|
|
!(function(){var Js=Math.pow;var Kl=(or,Ht,ke)=>new Promise((Re,gt)=>{var x=re=>{try{ve(ke.next(re))}catch(ne){gt(ne)}},De=re=>{try{ve(ke.throw(re))}catch(ne){gt(ne)}},ve=re=>re.done?Re(re.value):Promise.resolve(re.value).then(x,De);ve((ke=ke.apply(or,Ht)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[67424],{40001:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},26227:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},84105:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},41464:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},18785:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},87169:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},73331:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},15277:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},52671:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},8657:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},56082:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},33853:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},15075:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},62772:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},43531:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},61485:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},38819:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},47472:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},87395:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(se,me){return gt.createElement(ve.Z,(0,Re.Z)({},se,{ref:me,icon:De}))},ne=gt.forwardRef(re),ie=ne},22054:function(){"use strict"},68305:function(){"use strict"},2375:function(or,Ht){"use strict";Ht.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},44267:function(or,Ht){"use strict";Ht.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},40269:function(){"use strict"},75354:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var or={},Ht="5.0",ke={},Re=null,gt=!1,x=!1,De=null,ve=!1,re=null,ne=null,ie=0;ie<arguments.length;ie++){var oe=arguments[ie];if(oe!==null)switch(typeof oe){case"number":Ht=oe.toFixed(1);break;case"string":oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ht=oe:De=oe;break;case"object":typeof oe.is3D!="undefined"?Re=oe:ke=oe;break;case"boolean":gt=oe,x=!0;break}}Re===null&&(Re={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&&(gt=!0)),De!==null&&ke.id===void 0&&(ke.id=De);var se="",me="",te=!1,ae=null,ue=null,de=null,he=!1,we=null,Se=null,xe=null,ye=null,Ae=null;ke.height!==void 0&&(ke.height=Math.round(ke.height)),ke.width!==void 0&&(ke.width=Math.round(ke.width));var Le=function(et){return parseFloat(et)>4?parseFloat(et):5};or.setHTML5Codebase=function(et,qe){ne=et,nt(et,qe)},or.setJavaCodebase=or.setJavaCodebaseVersion=or.isCompiledInstalled=or.setPreCompiledScriptPath=or.setPreCompiledResourcePath=function(){},or.setHTML5CodebaseVersion=function(et,qe){var it=parseFloat(et);if(it!==NaN&&it<5){console.log("The GeoGebra HTML5 codebase version "+it+" is deprecated. Using version latest instead.");return}re=et,Xe(et,qe)},or.getHTML5CodebaseVersion=function(){return ue},or.getParameters=function(){return ke},or.setFontsCSSURL=function(et){ye=et},or.setGiacJSURL=function(et){},or.setJNLPFile=function(et){se=et},or.setJNLPBaseDir=function(et){},or.inject=function(){function et(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var qe="auto",it=ke.id,yt,pt=!1,Dt=0;Dt<arguments.length;Dt++){var At=arguments[Dt];typeof At=="string"?(At=At.toLowerCase(),At.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?qe=At:it=arguments[Dt]):typeof At=="boolean"?pt=At:At instanceof HTMLElement&&(yt=At)}st();function st(){if(!ve){setTimeout(st,200);return}qe=lt(qe);var Ge=yt||document.getElementById(it);if(!Ge){console.log("possibly bug on ajax loading? ");return}if(or.removeExistingApplet(Ge,!1),ke.width===void 0&&Ge.clientWidth&&(ke.width=Ge.clientWidth),ke.height===void 0&&Ge.clientHeight&&(ke.height=Ge.clientHeight),!(ke.width&&ke.height)&&qe==="html5"&&(delete ke.width,delete ke.height),ae=qe,qe==="screenshot")Pe(Ge,ke);else{var We=!1;ke.hasOwnProperty("playButton")&&ke.playButton||ke.hasOwnProperty("clickToLoad")&&ke.clickToLoad?We=!0:ke.hasOwnProperty("playButtonAutoDecide")&&ke.playButtonAutoDecide&&(We=(!Ce()||et())&&je()),We?(ae="screenshot",Qe(Ge,ke,pt,qe)):Ze(Ge,ke,pt)}}};function Ce(){try{return window.self!==window.top}catch(et){return!0}}function je(){return ke.hasOwnProperty("screenshotGenerator")&&ke.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}or.getViews=function(){return Re},or.isJavaInstalled=function(){return!1};var Me=function(et){var qe=function(Dt){var At=JSON.parse(Dt),st=function(le){return le.type=="G"||le.type=="E"},Ge=At.elements?At.elements.filter(st)[0]:At;if(!Ge||!Ge.url){it();return}ke.fileName=Ge.url,Oe(Ge.settings||{}),Re.is3D=!0;var We="https://www.geogebra.org/images/";or.setPreviewImage(we||Ge.previewUrl,We+"GeoGebra_loading.png",We+"applet_play.png"),et()},it=function(){ke.onError&&ke.onError(),ct("Error: Fetching material (id "+ke.material_id+") failed.",ke)},yt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",pt="/materials/"+ke.material_id+"?scope=basic";Ee("https://"+yt+"/api/proxy.php?path="+encodeURIComponent(pt),qe,it)};function Oe(et){var qe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(it){et[it]=!!et[it]}),qe.forEach(function(it){ke[it]===void 0&&et[it]!==void 0&&(ke[it]=et[it])}),ke.showToolBarHelp===void 0&&(ke.showToolBarHelp=ke.showToolBar)}function Ee(et,qe,it){var yt=new XMLHttpRequest;yt.open("GET",et),yt.onload=function(){qe(yt.responseText)},yt.onerror=it,yt.send()}or.isHTML5Installed=function(){return!0},or.getLoadedAppletType=function(){return ae},or.setPreviewImage=function(et,qe,it){we=et,Se=qe,xe=it},or.removeExistingApplet=function(et,qe){var it;typeof et=="string"&&(et=document.getElementById(et)),ae=null;var yt=null;for(it=0;it<et.childNodes.length;it++){var pt=et.childNodes[it],Dt=pt.className;Dt==="applet_screenshot"?qe?(pt.style.display="block",ae="screenshot"):pt.style.display="none":Dt!=="applet_scaler prerender"&&(et.removeChild(pt),yt=Dt&&Dt.indexOf("appletParameters")!=-1?pt.id:null,it--)}var At=ke.id!==void 0?ke.id:yt,st=window[At];st&&typeof st.getBase64=="function"&&(st.remove(),window[At]=null)},or.refreshHitPoints=function(){if(Le(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var et=or.getAppletObject();return et&&typeof et.recalculateEnvironments=="function"?(et.recalculateEnvironments(),!0):!1},or.startAnimation=function(){var et=or.getAppletObject();return et&&typeof et.startAnimation=="function"?(et.startAnimation(),!0):!1},or.stopAnimation=function(){var et=or.getAppletObject();return et&&typeof et.stopAnimation=="function"?(et.stopAnimation(),!0):!1},or.getAppletObject=function(){var et=ke.id!==void 0?ke.id:"ggbApplet";return window[et]},or.resize=function(){};var Ne=function(et,qe,it){var yt=document.createElement("param");yt.setAttribute("name",qe),yt.setAttribute("value",it),et.appendChild(yt)},_e=function(et){return et&&et!=="false"},Ze=function(et,qe,it){Le(ue)<=4.2&&(it=!0);var yt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ue||ggbHTML5LoadedCodebaseIsWebSimple&&!he)&&(yt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var pt=document.createElement("div");pt.classList.add("appletParameters","notranslate");var Dt=qe.width,At=qe.height;if(qe.disableAutoScale=qe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():qe.disableAutoScale,qe.width!==void 0)if(Le(ue)<=4.4)_e(qe.showToolBar)&&(qe.height-=7),_e(qe.showAlgebraInput)&&(qe.height-=37),qe.width<605&&_e(qe.showToolBar)&&(qe.width=605,Dt=605);else{var st=100;(_e(qe.showToolBar)||_e(qe.showMenuBar))&&(qe.hasOwnProperty("customToolBar")&&(qe.customToolbar=qe.customToolBar),st=_e(qe.showMenuBar)?245:155),Dt<st&&(qe.width=st,Dt=st)}pt.style.border="none",pt.style.display="inline-block";for(var Ge in qe)qe.hasOwnProperty(Ge)&&Ge!=="appletOnLoad"&&pt.setAttribute("data-param-"+Ge,qe[Ge]);ye&&pt.setAttribute("data-param-fontscssurl",ye),or.resize=function(){GGBAppletUtils.responsiveResize(et,qe)},window.addEventListener("resize",function(vt){or.resize()});var We=typeof qe.appletOnLoad=="function"?qe.appletOnLoad:function(){};if(!it&&qe.width!==void 0){qe.hasOwnProperty("showSplash")||pt.setAttribute("data-param-showSplash","false");var le=et.querySelector(".applet_scaler.prerender"),fe=le!==null;if(fe)var ze=le.querySelector(".ggb_preview");else{var ze=at(Dt,At,qe.borderColor,!1);le=document.createElement("div"),le.className="applet_scaler",le.style.position="relative",le.style.display="block",le.style.width=Dt+"px",le.style.height=At+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(le,"66%"),Le(ue)>=5?(qe.appletOnLoad=function(vt){var It=et.querySelector(".ggb_preview");It&&It.parentNode.removeChild(It),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(le),window.GGBT_wsf_view&&$(window).trigger("resize"),We(vt)},fe||le.appendChild(ze)):pt.appendChild(ze),le.appendChild(pt),fe||et.appendChild(le),setTimeout(function(){or.resize()},1)}else{var He=document.createElement("div");He.className="applet_scaler",He.style.position="relative",He.style.display="block",He.appendChild(pt),et.appendChild(He),qe.appletOnLoad=function(vt){or.resize(),We(vt)}}function pe(vt,It){It&&typeof It.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(vt,It.appletOnLoad):renderGGBElement(vt),ct("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",It)}function Ie(vt,It){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:vt,params:It}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Vt){pe(Vt.article,Vt.params)}),html5AppletsToProcess=null)},Le(ue)<5&&(vt.className+=" geogebraweb")):pe(vt,It)}if(yt){scriptLoadStarted=!0;for(var Ke=0;Ke<pt.childNodes.length;Ke++){var Ye=pt.childNodes[Ke].tagName;Ye==="TABLE"&&(pt.removeChild(pt.childNodes[Ke]),Ke--)}if(ggbHTML5LoadedScript!==null){var Je=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Je!=null&&Je.parentNode.removeChild(Je)}var dt=document.createElement("script"),bt=function(){Ie(pt,qe)};dt.src=me+de,ggbHTML5LoadedCodebaseIsWebSimple=he,ggbHTML5LoadedCodebaseVersion=ue,ggbHTML5LoadedScript=dt.src,ct("GeoGebra HTML5 codebase loaded: '"+me+"'.",qe),!ne&&(!re||re=="5.0")?(he?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),bt()):me.requirejs?__webpack_require__.e(49111).then(function(){var vt=[__webpack_require__(49111)];bt.apply(null,vt)}.bind(this)).catch(__webpack_require__.oe):(dt.onload=bt,et.appendChild(dt))}else Ie(pt,qe);qe.height=At,qe.width=Dt},Pe=function(et,qe,it){var yt=at(qe.width,qe.height,qe.borderColor,it),pt=document.createElement("div");pt.style.position="relative",pt.style.display="block",pt.style.width=qe.width+"px",pt.style.height=qe.height+"px",pt.className="applet_screenshot applet_scaler"+(it?" applet_screenshot_play":""),pt.appendChild(yt);var Dt=GGBAppletUtils.getScale(qe,et,it);it?(et.appendChild(tt()),window.GGBT_wsf_view||(et.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pt,"66%"),et.appendChild(pt),Dt!==1&&!isNaN(Dt)&&(GGBAppletUtils.scaleElement(pt,Dt),pt.style.width=qe.width+"px",pt.style.height=qe.height+"px",pt.parentNode.style.width=qe.width*Dt+"px",pt.parentNode.style.height=qe.height*Dt+"px"),or.resize=function(){Ue(et,yt,pt,it)},window.addEventListener("resize",function(At){or.resize()}),or.resize()};function Ue(et,qe,it,yt){if(et.contains(qe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(et.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(et)}var pt=GGBAppletUtils.getScale(ke,et,yt);it.parentNode!==null&&(!isNaN(pt)&&pt!==1?(GGBAppletUtils.scaleElement(it,pt),it.parentNode.style.width=ke.width*pt+"px",it.parentNode.style.height=ke.height*pt+"px"):(GGBAppletUtils.scaleElement(it,1),it.parentNode.style.width=ke.width+"px",it.parentNode.style.height=ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(et),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}or.onExitFullscreen=function(et,qe){qe.appendChild(et)};var Qe=function(et,qe,it,yt){Pe(et,qe,!0);for(var pt=function(){var st=[];for(At=0;At<et.childNodes.length;At++)st.push(et.childNodes[At]);if(window.GGBT_wsf_view){var Ge=window.GGBT_wsf_view.renderFullScreen(et,qe.id),We=document.getElementById("fullscreencontainer"),le=jQuery(et).find(".fullscreencontent");le.length>0?(Ge.remove(),le.attr("id","fullscreencontent").show(),jQuery(We).append(le),window.dispatchEvent(new Event("resize"))):Ze(Ge,qe,!1),window.GGBT_wsf_view.launchFullScreen(We)}else ae=yt,Ze(et,qe,!1);if(!window.GGBT_wsf_view)for(At=0;At<st.length;At++)et.removeChild(st[At])},Dt=et.getElementsByClassName("ggb_preview_play"),At=0;At<Dt.length;At++)Dt[At].addEventListener("click",pt,!1),Dt[At].addEventListener("ontouchstart",pt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(et),je()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},tt=function(){var et=document.createElement("div");if(et.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");}',it=document.createElement("style");it.styleSheet?it.styleSheet.cssText=qe:it.appendChild(document.createTextNode(qe)),document.getElementsByTagName("head")[0].appendChild(it)}return et},at=function(et,qe,it,yt){var pt=document.createElement("div");pt.className="ggb_preview",pt.style.position="absolute",pt.style.zIndex="90",pt.style.width=et-2+"px",pt.style.height=qe-2+"px",pt.style.top="0px",pt.style.left="0px",pt.style.overflow="hidden",pt.style.backgroundColor="white";var Dt="lightgrey";it!==void 0&&(it==="none"?Dt="transparent":Dt=it),pt.style.border="1px solid "+Dt;var At=document.createElement("img");if(At.style.position="relative",At.style.zIndex="1000",At.style.top="-1px",At.style.left="-1px",we!==null&&At.setAttribute("src",we),At.style.opacity=.7,Se!==null){var st,Ge,We;if(!yt){st=document.createElement("img"),st.style.position="absolute",st.style.zIndex="1001",st.style.opacity=1,At.style.opacity=.3,Ge=360,Ge>et/4*3&&(Ge=et/4*3),We=Ge/5.8,st.setAttribute("src",Se),st.setAttribute("width",Ge),st.setAttribute("height",We);var le=(et-Ge)/2,fe=(qe-We)/2;st.style.left=le+"px",st.style.top=fe+"px",pt.appendChild(st)}}return pt.appendChild(At),pt},lt=function(et){return et=et.toLowerCase(),et==="html5"||et==="screenshot"?et:"html5"},Ve=["web","webSimple","web3d","tablet","tablet3d","phone"],Xe=function(et,qe){if(ue=et,qe){nt(ue,!0);return}var it=!gt;if(it){var yt=Le(ue);!isNaN(yt)&&yt<4.4&&(it=!1)}var pt,Dt;window.location.protocol.substr(0,4)==="http"?pt=window.location.protocol:pt="http:";var At=ue.indexOf("//");At>0?Dt=ue:At===0?Dt=pt+ue:Dt="https://www.geogebra.org/apps/5.2.814.0/";for(var st in Ve)if(ue.slice(Ve[st].length*-1)===Ve[st]||ue.slice((Ve[st].length+1)*-1)===Ve[st]+"/"){nt(Dt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&it&&!Re.is3D&&!Re.AV&&!Re.SV&&!Re.CV&&!Re.EV2&&!Re.CP&&!Re.PC&&!Re.DA&&!Re.FI&&!Re.PV&&!_e(ke.showToolBar)&&!_e(ke.showMenuBar)&&!_e(ke.showAlgebraInput)&&!_e(ke.enableRightClick)&&(!ke.appName||ke.appName=="classic")?Dt+="webSimple/":Dt+="web3d/",nt(Dt,!1)},nt=function(et,qe){if(et.requirejs){me=et;return}et.slice(-1)!=="/"&&(et+="/"),me=et,qe===null&&(qe=et.indexOf("http")===-1),te=qe,de="web.nocache.js",he=!1;var it=me.split("/");it.length>1&&(!qe&&it[it.length-2]==="webSimple"?(de="webSimple.nocache.js",he=!0):Ve.indexOf(it[it.length-2])>=0&&(de=it[it.length-2]+".nocache.js")),it=et.split("/"),ue=it[it.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 yt=parseFloat(ue);yt!==NaN&&yt<5&&et.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+yt+" is deprecated. Using version latest instead."),Xe("5.0",qe))},ct=function(et,qe){window.console&&window.console.log&&(!qe||typeof qe.showLogging=="undefined"||qe.showLogging&&qe.showLogging!=="false")&&console.log(et)};ke.material_id!==void 0?Me(ot):ot();function ot(){var et=Ht;re!==null?et=re:parseFloat(et)<5&&(et="5.0"),Xe(et,!1),ne!==null&&nt(ne,te),ve=!0}return or},GGBAppletUtils=function(){"use strict";function or(){return window.GGBT_wsf_edit!==void 0}function Ht(ve,re){re!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+re+","+re+")",ve.style.webkitTransform="scale("+re+","+re+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function ke(ve,re,ne,ie,oe,se){var me=null;if(se!=null&&se!="")for(var te=ve.parentNode;te!=null;)if((" "+te.className+" ").indexOf(" "+se+" ")>-1){me=te;break}else te=te.parentNode;var ae=0,ue=0,de=0,he=0,we=0,Se=0,xe=0;if(me)ae=me.offsetWidth,ue=Math.max(ie?me.offsetWidth:0,me.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),ve){var ye=ve.getBoundingClientRect();ye.left>0&&ye.left<=ae&&(oe===void 0||!oe)&&(document.dir==="rtl"?(we=ae-ye.width-ye.left,Se=de<=480?10:30):(Se=ye.left,we=de<=480?10:30),he=Se+we)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ae=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(he=40,xe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he=0,xe=40)}}return ve&&((ne===void 0||!ne)&&re>0&&re+he<ae?ae=re:ae-=he,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ne===void 0||!ne)&&(ue-=xe)),{width:ae,height:ue}}function Re(ve,re,ne,ie,oe){if(ve.isScreenshoGenerator)return 1;var se=ie!==void 0&&ie,me=ve.noScaleMargin!=null&&ve.noScaleMargin,te=function(Ae){return Ae&&Ae!=="false"},ae=te(ve.autoHeight),ue=ke(re,ve.width,ne,ae,se&&window.GGBT_wsf_view||me,oe),de=parseInt(ue.width),he=ve.width,we=ve.height;if(he===void 0){var Se=re.querySelector(".appletParameters");Se&&(he=Se.offsetWidth,we=Se.offsetHeight)}var xe=de/he,ye=se?1:ue.height/we;return ne!==void 0&&!ne&&(xe=Math.min(1,xe),ye=Math.min(1,ye)),Math.min(xe,ye)}function gt(ve,re,ne){var ie=1,oe,se=!1;if(ve.hasOwnProperty("allowUpscale")&&(se=ve.allowUpscale),ve.hasOwnProperty("scale")&&(ie=parseFloat(ve.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),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))oe=Re(ve,re,se,ne,ve.scaleContainerClass);else return ie;return se&&(!ve.hasOwnProperty("scale")||ie===1)?oe:Math.min(ie,oe)}function x(ve){var re=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),ie=ve.getBoundingClientRect(),oe=(re-ie.width)/2,se=(ne-ie.height)/2;se<0&&(se=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(oe<40?ve.style.left="40px":ve.style.left=oe+"px",ve.style.top=se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(se<40?ve.style.top="40px":ve.style.top=se+"px",ve.style.left=oe+"px")}function De(ve,re){var ne=ve.querySelector(".appletParameters");if(ne){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(re.id!==ne.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(ne.parentElement&&/fullscreen/.test(ne.parentElement.className))return;var ie=gt(re,ve);or()&&ne.setAttribute("data-param-scale",ie);for(var oe=null,se=0;se<ve.childNodes.length;se++)if(ve.childNodes[se].className!==void 0&&ve.childNodes[se].className.match(/^applet_scaler/)){oe=ve.childNodes[se];break}if(oe!==null&&oe.querySelector(".noscale")!==null)return;var me=re.id!==void 0?re.id:"ggbApplet",te=window[me];(te==null||!te.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",Ht(oe,ie)):(Ht(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(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ne).parents(".content-added-content"))}}return{responsiveResize:De,isFlexibleWorksheetEditor:or,positionCenter:x,getScale:gt,scaleElement:Ht}}();__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 or=n.location.search;return or.indexOf(J)!=-1||or.indexOf(K)!=-1}function q(or,Ht){}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(or){var Ht=s[L].bindings;s[L].bindings=function(){for(var ke=Ht?Ht():{},Re=or[webModule.__softPermutationId],gt=O;gt<Re.length;gt++){var x=Re[gt];ke[x[O]]=x[P]}return ke}};var t;function u(){return v(),t}function v(){if(!t){var or=o.createElement(Q);if(or.id=L,or.style.cssText=R+S,or.tabIndex=-1,o.body.appendChild(or),t=or.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ht=document.compatMode==U?V:W;t.write(Ht+X),t.close()}}}function w(or){function Ht(Re){function gt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var x=gt();if(x){Re();return}function De(){if(!x){if(!gt())return;x=!0,Re(),o.removeEventListener&&o.removeEventListener(Z,De,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,De,!1);var ve=setInterval(function(){De()},$)}function ke(Re){var gt=u(),x=gt.body,De=gt.createElement(_);De.language=ab,De.crossOrigin=W,De.src=Re,webModule.__errFn&&(De.onerror=function(){webModule.__errFn(L,new Error(bb+Re))}),x.appendChild(De)}Ht(function(){ke(or)})}webModule.__startLoadingFragment=function(or){return C(or)},webModule.__installRunAsyncCode=function(or){var Ht=u(),ke=Ht.body,Re=Ht.createElement(_);Re.language=ab,Re.text=or,ke.appendChild(Re),ke.removeChild(Re)};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(or){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(or){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(or){var Ht=c[or];return Ht==null?null:Ht},r=d,webModule.__errFn=e}function B(){function or(ve){var re=ve.lastIndexOf(rb);re==-1&&(re=ve.length);var ne=ve.indexOf(sb);ne==-1&&(ne=ve.length);var ie=ve.lastIndexOf(tb,Math.min(ne,re));return ie>=O?ve.substring(O,ie+P):W}function Ht(ve){if(!ve.match(/^\w+:\/\//)){var re=o.createElement(ub);re.src=ve+vb,ve=or(re.src)}return ve}function ke(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function Re(){for(var ve=o.getElementsByTagName(_),re=O;re<ve.length;++re)if(ve[re].src.indexOf(xb)!=-1)return or(ve[re].src);return W}function gt(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function x(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var De=ke();return De==W&&(De=Re()),De==W&&(De=gt()),De==W&&x()&&(De=or(o.location.href)),De=Ht(De),De}function C(or){return or.match(/^\//)||or.match(/^[a-zA-Z]+:\/\//)?or:webModule.__moduleBase+or}function D(){var or=[],Ht=O,ke=[],Re=[];function gt(ve){var re=Re[ve](),ne=ke[ve];if(re in ne)return re;var ie=[];for(var oe in ne)ie[ne[oe]]=oe;throw r&&r(ve,ie,re),null}if(__gwt_isKnownPropertyValue=function(ve,re){return re in ke[ve]},webModule.__getPropMap=function(){var ve={};for(var re in ke)ke.hasOwnProperty(re)&&(ve[re]=gt(re));return ve},webModule.__computePropValue=gt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var x;try{x=Cb;var De=x.indexOf(Db);De!=-1&&(Ht=parseInt(x.substring(De+P),$),x=x.substring(O,De))}catch(ve){}return webModule.__softPermutationId=Ht,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})()},32546:function(or,Ht,ke){"use strict";ke.d(Ht,{Ax:function(){return De},Ds:function(){return ve},KI:function(){return ne},SI:function(){return x},f1:function(){return gt}});var Re=ke(42684);function gt(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 me=0;me<ie.length;me++){let te=ie[me],ae=oe?`${oe}/${te.name}`:`${te.name}`;se.push({title:te.name,type:te.type,isLeaf:te.type!=="tree",key:ae})}return se}function De(ie,oe,se){for(let me=0;me<ie.length;me++){let te=ie[me];if(te.key===oe){te.children=se;break}te.children&&De(te.children,oe,se)}return ie}function ve(ie,oe,se){let me;return function(){let te=this,ae=arguments,ue=function(){me=null,se||ie.apply(te,ae)},de=se&&!me;clearTimeout(me),me=setTimeout(ue,oe),de&&ie.apply(te,ae)}}const re=!0,ne=Re.Z.API_SERVER},18997:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return me}});var Re=ke(59301),gt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},x=ke(92310),De=ke.n(x),ve=ke(71418),re=ke(2859),ne=ke(58661),ie=ke(85333),oe=(te,ae,ue)=>new Promise((de,he)=>{var we=ye=>{try{xe(ue.next(ye))}catch(Ae){he(Ae)}},Se=ye=>{try{xe(ue.throw(ye))}catch(Ae){he(Ae)}},xe=ye=>ye.done?de(ye.value):Promise.resolve(ye.value).then(we,Se);xe((ue=ue.apply(te,ae)).next())}),me=({data:te,className:ae,fullWidth:ue,style:de={},onClose:he,onOk:we,showFullTools:Se,noAssociationId:xe})=>{const ye=(0,Re.useRef)(null),Ae=(0,Re.useRef)(null),Le=(0,Re.useRef)(null),Ce=(0,Re.useRef)(null),[je,Me]=(0,Re.useState)(!1),[Oe,Ee]=(0,Re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Re.useEffect)(()=>{Le.current||(Le.current=document.createElement("style"),document.head.appendChild(Le.current)),te!=null&&te.visible?(document.body.setAttribute("data-custom","y-hidden"),Le.current.innerHTML=" html { overflow-y: hidden; }",te!=null&&te.src&&Ne()):(document.body.removeAttribute("data-custom"),Le.current&&(document.head.removeChild(Le.current),Le.current=null))},[te==null?void 0:te.visible]);const Ne=()=>oe(void 0,null,function*(){Me(!0),Ee("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Qe=yield(0,ie.ZJ)(te==null?void 0:te.src);ye.current.src="",ye.current.src=Qe,ye.current.onload=function(){Ue()},Me(!1),Ee("")}),_e=()=>{document.body.removeAttribute("data-custom"),Le.current.innerHTML=" ",he()},Ze=Qe=>oe(void 0,null,function*(){Me(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const tt=yield(0,ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:te.title,file:Qe.dataUrl}});tt!=null&&tt.id&&!xe?(yield(0,ne.ZP)(`/api/attachments/${te.id}/add_subitem.json`,{method:"post",body:{subitem_id:tt==null?void 0:tt.id,settings:JSON.stringify(Qe.state)}})).status===0&&we():tt!=null&&tt.id&&we(tt),document.body.removeAttribute("data-custom"),Le.current.innerHTML=" ",Me(!1),Ee("")}),Pe=()=>{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(at=>{const lt=document.querySelector(at.name);lt&<.setAttribute("title",at.title)})},Ue=()=>{Ae.current=new re.hP(ye.current),Ae.current.targetRoot=Ce.current,Ae.current.addEventListener("render",Ze),Ae.current.addEventListener("beforeclose",_e),Se&&(Ae.current.availableMarkerTypes=Ae.current.ALL_MARKER_TYPES,Ae.current.uiStyleSettings.redoButtonVisible=!0,Ae.current.uiStyleSettings.notesButtonVisible=!0,Ae.current.uiStyleSettings.zoomButtonVisible=!0,Ae.current.uiStyleSettings.zoomOutButtonVisible=!0,Ae.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ae.current.uiStyleSettings,Ae.current.show(),te!=null&&te.snapshotData&&Ae.current.restoreState(te.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Pe()},300)};return Re.createElement(Re.Fragment,null,(te==null?void 0:te.visible)&&Re.createElement(ve.Z,{spinning:je,tip:Oe,style:{position:"absolute"}},Re.createElement("div",{ref:Ce,className:De()(gt.imageDimensions,ae,ue?gt.fullWidth:""),style:de},Re.createElement("img",{className:gt.img,ref:ye}))))}},18130:function(or,Ht,ke){"use strict";ke.d(Ht,{N:function(){return he}});var Re=ke(59301),gt=ke(57809),x=ke(43418),De=ke(92832),ve=ke(8591),re=ke(95237),ne=ke(43604),ie=ke(58661),oe={wrap:"wrap___F7E3F",selectWrapper:"selectWrapper____kESB",tips:"tips___aHjQY",linkBtn:"linkBtn___uggVr",mainText:"mainText____S1I0",public_tips:"public_tips___sZVWd",inputCss:"inputCss___t66EO",bt:"bt___lXptu",add_style:"add_style___knrMF"},se=ke(92310),me=ke.n(se),te=ke(87169),ae=ke(59301),ue=(we,Se,xe)=>new Promise((ye,Ae)=>{var Le=Me=>{try{je(xe.next(Me))}catch(Oe){Ae(Oe)}},Ce=Me=>{try{je(xe.throw(Me))}catch(Oe){Ae(Oe)}},je=Me=>Me.done?ye(Me.value):Promise.resolve(Me.value).then(Le,Ce);je((xe=xe.apply(we,Se)).next())});const{Option:de}=gt.default,he=({subId:we,value:Se,selectvalues:xe,disabled:ye,knowledgeOptions:Ae=[],className:Le,height:Ce,onChange:je=()=>{},onAddKnowledgeFinish:Me=()=>{},zIndex:Oe=1e3})=>{const Ee=(0,Re.useRef)(),[Ne,_e]=(0,Re.useState)([]);Se=Se||[];const Ze=(Ue,Qe)=>{Ue?(_e([...Qe]),je([...Qe])):(_e([]),je([]))};(0,Re.useEffect)(()=>{(xe==null?void 0:xe.length)>0?(_e([...xe]),je([...xe])):(_e([]),je([]))},[Ae]),(0,Re.useEffect)(()=>{(Se==null?void 0:Se.length)>0&&je([...Se])},[Ae]);const Pe=Ue=>{Ue.preventDefault(),Ee.current="",x.default.confirm({centered:!0,width:585,zIndex:Oe,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:ae.createElement("div",{className:"font14"},ae.createElement("div",{className:oe.public_tips},ae.createElement(te.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),ae.createElement("div",{style:{display:"flex",alignItems:"center"}},ae.createElement("div",{style:{width:"95px"}},ae.createElement("span",{className:oe.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),ae.createElement(De.default,{className:oe.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:Ee.current,onChange:Qe=>{Ee.current=Qe.target.value}}))),onOk:()=>new Promise((Qe,tt)=>ue(void 0,null,function*(){if(!Ee.current)return ve.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),tt();if(Ee.current.length>20)return ve.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),tt();const at=yield(0,ie.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Ee.current,sub_discipline_id:we}});if((at==null?void 0:at.status)===0){Me({id:at.tag_discipline_id,name:Ee.current,type:"personal"});let lt=xe||[];lt.push(at.tag_discipline_id),je([...lt]),_e([...lt]),je([...lt])}return Qe()}))})};return ae.createElement(re.Z,{wrap:!1,align:"middle",className:me()(oe.wrap,Le)},ae.createElement(ne.Z,null,ae.createElement(gt.default,{mode:"multiple",disabled:!we||ye,className:oe.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:Ze,style:{width:Ce||490},showSearch:!0,allowClear:!0,value:Ne,filterOption:(Ue,Qe)=>Qe.label.indexOf(Ue.toLowerCase())>=0},Ae==null?void 0:Ae.map(Ue=>ae.createElement(de,{key:Ue.id,value:Ue.id,label:Ue.name},ae.createElement("div",{style:{display:"flex",alignItems:"center"}},ae.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Ue.name),(Ue==null?void 0:Ue.type)==="personal"&&ae.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),we&&ae.createElement(ne.Z,{className:`ml20 ${Ce&&oe.add_style}`},ae.createElement("span",{className:oe.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),ae.createElement("span",{className:oe.linkBtn,onClick:Pe},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},80802:function(or,Ht,ke){"use strict";var Re=ke(59301),gt=ke(95237),x=ke(43604),De=ke(99313),ve=ke(3113),re=ke(58997),ne=ke(2375),ie=ke(48136),oe=ke(59301);const se=(0,Re.forwardRef)(({callback:me,showSaveButton:te,value:ae=""},ue)=>{const de=(0,Re.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 "}]}]}],we=[{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=Ae=>{de.current.setValue(de.current.getValue()+" "+Ae.value+" ")},xe=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:oe.createElement(gt.Z,{className:ne.Z.lists,gutter:[10,10]},he.map((Ae,Le)=>oe.createElement(x.Z,{flex:"110px",className:ne.Z.item},oe.createElement("div",null,oe.createElement(re.Z,{value:`$$${Ae.value}$$`}),Ae.name),oe.createElement("div",{className:ne.Z.children},Ae.children.map((Ce,je)=>oe.createElement("div",{key:je},oe.createElement("h1",null,Ce.name),oe.createElement(gt.Z,{gutter:[10,10]},Ce.data.map((Me,Oe)=>oe.createElement(x.Z,{key:Oe,onClick:()=>Se(Me),className:ne.Z.diamond},oe.createElement(re.Z,{value:"`$$"+Me.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:oe.createElement(gt.Z,{className:ne.Z.lists,gutter:[10,10]},we.map((Ae,Le)=>oe.createElement(x.Z,{flex:"110px",className:ne.Z.item},oe.createElement("div",null,oe.createElement(re.Z,{value:"`$$"+Ae.value+"$$`"}),Ae.name),oe.createElement("div",{className:ne.Z.children},Ae.children.map((Ce,je)=>oe.createElement("div",{key:je},Ce.name&&oe.createElement("h1",null,Ce.name),oe.createElement(gt.Z,{gutter:[10,10]},Ce.data.map((Me,Oe)=>oe.createElement(x.Z,{key:Oe,onClick:()=>Se(Me),className:ne.Z.diamond},oe.createElement(re.Z,{value:"`$$"+Me.value+"$$`"}))))))))))}],ye=()=>{var Ae=document.createElement("div");Ae.innerHTML=de.current.getValue();var Le=Ae.innerText;return me&&me(Le),Le};return(0,Re.useImperativeHandle)(ue,()=>({getData:ye})),oe.createElement("div",{className:ne.Z.mathWrap},oe.createElement(De.default,{defaultActiveKey:"1",items:xe}),oe.createElement("math-field",{locale:"zh_cn",className:ne.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:de,style:{width:800,marginTop:30,fontSize:18}},ae||""),te&&oe.createElement("div",{className:ne.Z.button},oe.createElement(ve.ZP,{size:"large",onClick:ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ht.Z=se},34051:function(or,Ht,ke){"use strict";ke.d(Ht,{h:function(){return de},x:function(){return he}});var Re=ke(74972),gt=ke(44267),x=ke(58997),De=ke(59301),ve=Object.defineProperty,re=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,me=(we,Se,xe)=>Se in we?ve(we,Se,{enumerable:!0,configurable:!0,writable:!0,value:xe}):we[Se]=xe,te=(we,Se)=>{for(var xe in Se||(Se={}))oe.call(Se,xe)&&me(we,xe,Se[xe]);if(ie)for(var xe of ie(Se))se.call(Se,xe)&&me(we,xe,Se[xe]);return we},ae=(we,Se)=>re(we,ne(Se)),ue=(we,Se)=>{var xe={};for(var ye in we)oe.call(we,ye)&&Se.indexOf(ye)<0&&(xe[ye]=we[ye]);if(we!=null&&ie)for(var ye of ie(we))Se.indexOf(ye)<0&&se.call(we,ye)&&(xe[ye]=we[ye]);return xe};const de=we=>{var Se=we,{value:xe,onChange:ye,scrollId:Ae}=Se,Le=ue(Se,["value","onChange","scrollId"]);return De.createElement("div",{id:Ae||""},De.createElement(Re.Z,ae(te({},Le),{defaultValue:xe,onChange:(Ce,je)=>{je!=null&&je.length?ye(Ce,je):ye(Ce)}})))},he=({value:we,onChange:Se,placeholder:xe,height:ye=140,isEdit:Ae,miniToolbar:Le,watch:Ce=!0})=>Ae?De.createElement(Re.Z,{watch:Ce,isFocus:!0,height:ye||void 0,placeholder:xe,defaultValue:we,onChange:Se,miniToolbar:Le}):De.createElement("div",{style:{cursor:"pointer"}},we?De.createElement(x.Z,{className:gt.Z.inputBorder,value:we}):De.createElement("div",{className:`${gt.Z.inputBorder} ${gt.Z.placeholder} inputBorderError`},xe))},67824:function(or,Ht,ke){"use strict";ke.d(Ht,{h:function(){return Ae}});var Re=ke(59301),gt=ke(57809),x=ke(78241),De=ke(3113),ve=ke(89780),re=ke.n(ve),ne=ke(22054),ie=ke(68305),oe=Object.defineProperty,se=Object.defineProperties,me=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,de=(Le,Ce,je)=>Ce in Le?oe(Le,Ce,{enumerable:!0,configurable:!0,writable:!0,value:je}):Le[Ce]=je,he=(Le,Ce)=>{for(var je in Ce||(Ce={}))ae.call(Ce,je)&&de(Le,je,Ce[je]);if(te)for(var je of te(Ce))ue.call(Ce,je)&&de(Le,je,Ce[je]);return Le},we=(Le,Ce)=>se(Le,me(Ce));const Se=gt.default.Option,xe={labelCol:{span:4},wrapperCol:{span:20}},ye={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"]};Ht.Z=({callback:Le,onCancel:Ce})=>{const[je,Me]=(0,Re.useState)("python");function Oe(Ne){Me(ye[Ne][1])}function Ee(Ne){Le(Ne)}return Re.createElement(x.default,we(he({},xe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ee,style:{width:500}}),Re.createElement(x.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Re.createElement(gt.default,{getPopupContainer:Ne=>Ne.parentNode,onChange:Oe},Object.keys(ye).map(Ne=>Re.createElement(Se,{key:Ne,value:Ne},ye[Ne][0])))),Re.createElement(x.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Re.createElement(Ae,{mode:je})),Re.createElement("div",{className:"flex-container flex-end"},Re.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Re.createElement(De.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function Ae({value:Le,onChange:Ce,mode:je,options:Me={}}){const Oe=(0,Re.useRef)(),[Ee,Ne]=(0,Re.useState)();return(0,Re.useEffect)(()=>{if(Ee){let _e=function(Ze){const Pe=Ze.getValue();Ce&&Ce(Pe)};return Ee.on("change",_e),()=>{Ee.off("change",_e)}}},[Ee,Ce]),(0,Re.useEffect)(()=>{Ee&&Ee.setOption("mode",je)},[Ee,je]),(0,Re.useEffect)(()=>{Ee&&(Le!==Ee.getValue()||Le==="")&&setTimeout(()=>{Ee.setValue(Le||"")},300)},[Ee,Le]),(0,Re.useEffect)(()=>{if(Oe.current&&!Ee){const _e=re().fromTextArea(Oe.current,he({mode:je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Me));Ne(_e)}},[Oe.current,Ee]),Re.createElement("div",{className:"my-codemirror-container"},Re.createElement("textarea",{ref:Oe}))}},74972:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Rr}});var Re=ke(59301),gt=ke(89780),x=ke.n(gt),De=ke(76374),ve=ke(22054),re=ke(6313),ne=ke(25717),ie=ke(99498),oe=ke(25419),se=ke(67549),me=ke(58997),te=({value:Tr="",className:Sr,showTextOnly:Dr,showLines:Or,style:Yr={}})=>{const Kt=(0,Re.useMemo)(()=>"",[Tr]);return Re.createElement(Re.Fragment,null,Re.createElement("div",{dangerouslySetInnerHTML:{__html:Kt}}))},ae=ke(59301),ue=Object.defineProperty,de=Object.defineProperties,he=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ye=(Tr,Sr,Dr)=>Sr in Tr?ue(Tr,Sr,{enumerable:!0,configurable:!0,writable:!0,value:Dr}):Tr[Sr]=Dr,Ae=(Tr,Sr)=>{for(var Dr in Sr||(Sr={}))Se.call(Sr,Dr)&&ye(Tr,Dr,Sr[Dr]);if(we)for(var Dr of we(Sr))xe.call(Sr,Dr)&&ye(Tr,Dr,Sr[Dr]);return Tr},Le=(Tr,Sr)=>de(Tr,he(Sr));let Ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function je({onActionCallback:Tr,title:Sr,icon:Dr,actionName:Or,className:Yr="",children:Kt}){function xt(){Tr(Or)}return ae.createElement("a",{title:Sr,className:Yr,onClick:xt},ae.createElement("i",{className:`${Dr}`}),Kt)}var Me=({watch:Tr,showNullButton:Sr,showNullProgramButton:Dr,onActionCallback:Or,fullScreen:Yr,insertTemp:Kt,hidetoolBar:xt,extraUse:Bt})=>{const Ot=[...Ce,{title:`${Tr?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Tr?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ae.createElement("ul",{className:"markdown-toolbar-container"},!xt&&Ot.map((Et,zt)=>ae.createElement("li",{key:zt},Et.actionName?ae.createElement(je,Le(Ae({},Et),{onActionCallback:Or})):ae.createElement("span",{className:"v-line"}))),Sr?ae.createElement("li",null,ae.createElement(je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Or},ae.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Dr?ae.createElement(ae.Fragment,null,ae.createElement("li",null,ae.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Or},ae.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ae.createElement("li",null,ae.createElement(je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Or},ae.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Kt&&ae.createElement("li",null,ae.createElement(je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Kt}`,onActionCallback:Or},ae.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Bt&&ae.createElement("li",null,Bt),ae.createElement("li",{className:"btn-full-screen"},ae.createElement(je,{icon:`${Yr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Yr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Or})))},Oe=ke(62488),Ee=ke(78241),Ne=ke(92832),_e=ke(3113),Ze=Object.defineProperty,Pe=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,lt=(Tr,Sr,Dr)=>Sr in Tr?Ze(Tr,Sr,{enumerable:!0,configurable:!0,writable:!0,value:Dr}):Tr[Sr]=Dr,Ve=(Tr,Sr)=>{for(var Dr in Sr||(Sr={}))tt.call(Sr,Dr)&<(Tr,Dr,Sr[Dr]);if(Qe)for(var Dr of Qe(Sr))at.call(Sr,Dr)&<(Tr,Dr,Sr[Dr]);return Tr},Xe=(Tr,Sr)=>Pe(Tr,Ue(Sr));const nt={labelCol:{span:4},wrapperCol:{span:20}};var ct=({callback:Tr,onCancel:Sr})=>{function Dr(Or){Tr(Or)}return Re.createElement(Ee.default,Xe(Ve({},nt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Dr,style:{width:500}}),Re.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Re.createElement(Ne.default,null)),Re.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Re.createElement(Ne.default,null)),Re.createElement("div",{className:"flex-container flex-end"},Re.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Re.createElement(_e.ZP,{type:"ghost",onClick:Sr},"\u53D6\u6D88")))},ot=ke(67824),et=ke(22477),qe=ke(43418),it=ke(95237),yt=ke(18997),pt=ke(59301),Dt=({callback:Tr,onCancel:Sr})=>{const Dr=document.createElement("canvas"),Or=Dr.getContext("2d");Dr.width=1e3,Dr.height=800,Or.fillStyle="#ffffff",Or.fillRect(0,0,Dr.width,Dr.height);const Yr=Dr.toDataURL("image/png");return pt.createElement(qe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},pt.createElement(it.Z,{style:{height:"100vh"}},pt.createElement(yt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Yr,visible:!0,title:String(Date.now())},onOk:Kt=>{Tr({src:Kt.url})},onClose:Sr})))},At=ke(43428),st=ke(43604),Ge=ke(8591),We={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},le=ke(59301),ze=(0,Re.forwardRef)(({onCancel:Tr,editImgId:Sr,callback:Dr},Or)=>{let Yr=(0,Re.useRef)(),Kt=(0,Re.useRef)(),xt=(0,Re.useRef)(),Bt=(0,Re.useRef)(!1);const Ot=(0,Re.useRef)(!1);console.log("ref:",Or);const[Et,zt]=(0,Re.useState)(0),[Zt,nr]=(0,Re.useState)("100vh");return(0,Re.useEffect)(()=>{zt(1);try{indexedDB.databases().then($t=>{$t.forEach(pr=>indexedDB.deleteDatabase(pr.name))})}catch($t){}},[]),(0,Re.useImperativeHandle)(Or,()=>({setHeight:nr})),le.createElement("div",{ref:Ot,className:"body-overflow-initial"},le.createElement(At.Z,{width:"100vw",height:Zt,footer:null,closable:!0,placement:"bottom",open:!!Et,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${We.drawerWrap}`,onClose:()=>{window.saveDrawData($t=>{Dr({src:`/api/attachments/${$t}`,id:$t})})},title:le.createElement(it.Z,{align:"middle"},le.createElement(st.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),le.createElement(st.Z,{onClick:()=>{nr(Zt==="60px"?"100vh":"60px")}},le.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),le.createElement(st.Z,{onClick:()=>{window.saveDrawData($t=>{if($t===null){Ge.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Ge.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Dr({src:`/api/attachments/${$t}`,id:$t,disabledClose:!0})})}},le.createElement(_e.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},le.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Sr||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Kt})))}),He=ke(42684),pe=ke(5112),Ie=ke(5871);const Ke=pe.ZP.Group,Ye={margin:"0 8px"};var Je=({callback:Tr,onCancel:Sr})=>{function Dr(Or){Tr(Or)}return Re.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Dr},Re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Re.createElement("span",{style:Ye},"\u5355\u5143\u683C\u6570\uFF1A"),Re.createElement("span",{style:Ye},"\u884C\u6570"),Re.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Re.createElement(Ie.Z,null)),Re.createElement("span",{style:Ye},"\u5217\u6570"),Re.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Re.createElement(Ie.Z,null))),Re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Re.createElement("span",{style:Ye},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Re.createElement(Ee.default.Item,{name:"align"},Re.createElement(Ke,null,Re.createElement(pe.ZP,{value:"default"},Re.createElement("i",{className:"fa fa-align-justify"})),Re.createElement(pe.ZP,{value:"left"},Re.createElement("i",{className:"fa fa-align-left"})),Re.createElement(pe.ZP,{value:"center"},Re.createElement("i",{className:"fa fa-align-center"})),Re.createElement(pe.ZP,{value:"right"},Re.createElement("i",{className:"fa fa-align-right"}))))),Re.createElement("div",{className:"flex-container flex-end"},Re.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Re.createElement(_e.ZP,{type:"ghost",onClick:Sr},"\u53D6\u6D88")))},dt=ke(78673),bt=ke(75354),vt=ke.n(bt),Vt=(0,Re.forwardRef)(({use3d:Tr,width:Sr,height:Dr,callback:Or,showSaveButton:Yr},Kt)=>{const xt=(0,Re.useRef)(),Bt=(0,Re.useRef)(),[Ot,Et]=(0,Re.useState)(!1),zt=(0,Re.useRef)({id:xt,appName:"graphing",width:Sr||1e3,height:Dr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Re.useEffect)(()=>{Bt.current=new(vt())(zt.current,!0),window.onload=function(){Bt.current.inject("applet_container")}},[]);const Zt=()=>{var nr=window.ggbApplet.getPNGBase64(1,!0,72);return Or&&Or(nr),nr};return(0,Re.useEffect)(()=>{zt.current.appName=Ot?"3D":"graphing",Bt.current.inject("applet_container")},[Ot]),(0,Re.useEffect)(()=>{Et(Tr)},[Tr]),(0,Re.useImperativeHandle)(Kt,()=>({getImgData:Zt})),Re.createElement(Re.Fragment,null,Re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:xt}),Re.createElement(it.Z,{align:"middle"},Re.createElement(st.Z,{flex:1},Re.createElement(dt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ot,onChange:nr=>Et(nr)})),Re.createElement(st.Z,null,Re.createElement(_e.ZP,{size:"large",onClick:Zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),kt=ke(80802),jt=ke(1012);const _t="link",Mt="upload-image",ft="add-flowchart",St="draw-image",Nt="add-flowchart",Ft="code-block",Ut="add-table",sr="------------",gr={default:sr,left:`:${sr}`,center:`:${sr}:`,right:`${sr}:`};var wr=ke(8204),zr=(Tr,Sr,Dr)=>new Promise((Or,Yr)=>{var Kt=Ot=>{try{Bt(Dr.next(Ot))}catch(Et){Yr(Et)}},xt=Ot=>{try{Bt(Dr.throw(Ot))}catch(Et){Yr(Et)}},Bt=Ot=>Ot.done?Or(Ot.value):Promise.resolve(Ot.value).then(Kt,xt);Bt((Dr=Dr.apply(Tr,Sr)).next())});function Wr(){}let Br=0;const Nr=1e4,on="\u2581",Mn="@\u2581\u2581@",jn="@\u2581@",an=`
|
|
|
**\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`,Tn=["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 Vr(Tr){return/^\d+$/.test(Tr)?`${Tr}px`:Tr}const Wn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Jt={[Wn+"-B"]:"bold",[Wn+"-I"]:"italic"},jr={[_t]:"\u6DFB\u52A0\u94FE\u63A5",[Ft]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Mt]:"\u6DFB\u52A0\u56FE\u7247",[St]:"\u6DFB\u52A0\u753B\u56FE",[ft]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ut]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Rr=({defaultValue:Tr="",onChange:Sr,width:Dr="100%",height:Or=400,miniToolbar:Yr=!1,isFocus:Kt=!1,watch:xt,insertTemp:Bt,mode:Ot="markdown",id:Et="markdown-editor-id",showResizeBar:zt=!1,noStorage:Zt=!1,showNullButton:nr=!1,showNullProgramButton:$t=!1,hidetoolBar:pr=!1,fullScreen:Ar=!1,onBlur:Lr,onCMBeforeChange:Er,onFullScreen:tr,className:br="",disablePaste:Wt=!1,disabled:Qt=!1,disabledFill:Xt=!1,placeholder:qt="",values:mr="",extraUse:ar,onAddBlank:xr})=>{const[Lt,Yt]=(0,Re.useState)(null),[er,dr]=(0,Re.useState)(Tr),[lr,fr]=(0,Re.useState)(xt),[hr,Cr]=(0,Re.useState)(Ar),[_r,Zr]=(0,Re.useState)(""),[$r,nn]=(0,Re.useState)(0),[cn,dn]=(0,Re.useState)(Or),[Jr,wn]=(0,Re.useState)(!1),fn=(0,Re.useRef)((0,jt.Z)()),On=(0,Re.useRef)(!1),un=(0,Re.useRef)(),[mn,yn]=(0,Re.useState)(0),[en,Ln]=(0,Re.useState)(0),Xn=(0,Re.useRef)(),hn=(0,Re.useRef)(),Kr=(0,Re.useRef)(),Ur=(0,Re.useRef)(),Dn=(0,Re.useRef)(),bn=(0,Re.useRef)(),Pn=()=>zr(void 0,null,function*(){var Cn;const Sn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:fn.current}});(Cn=Sn==null?void 0:Sn.attachments)!=null&&Cn.length&&(console.log("cm:",Lt,Xn),Sn.attachments.map(rn=>{rn.content_type.indexOf("image")>-1?Lt.replaceSelection(``):rn.content_type.indexOf("video")>-1?Lt.replaceSelection(`<video width="100%" controls src="${He.Z.API_SERVER}/api/attachments/${data.id}"></video>`):rn.content_type.indexOf("pdf")>-1?Lt.replaceSelection(`<a href="${He.Z.API_SERVER}/api/attachments/${rn.id}?type=${rn.content_type}&disposition=inline" target="_blank">${rn.name}</a>`):Lt.replaceSelection(`[${rn.name}](${He.Z.API_SERVER}/api/attachments/${rn.id}?type=${rn.content_type})`)}))});(0,Re.useEffect)(()=>{const Cn=window.scrollY||window.pageYOffset;dr(mr),Lt==null||Lt.setValue(mr),window.scrollTo(0,Cn)},[mr]),(0,Re.useEffect)(()=>{tr==null||tr(hr)},[hr]),(0,Re.useEffect)(()=>{if(Xn.current){let Cn=function(rn,ln){var ii;if(Wt){ln.preventDefault();return}const xi=ln.clipboardData;if(xi){const Ci=xi.types.toString(),Ai=xi.items;if(Ci==="Files"||xi.types.indexOf("Files")>-1){if(ln.preventDefault(),Ot=="stex")return;try{let gi=Ai[1];((ii=Ai[0])==null?void 0:ii.kind)==="file"&&(gi=Ai[0]);const Ii=gi.getAsFile(),Ki=Ii.name.split(".").pop();(0,et.I)(Ii,Fi=>{var Yi,li,hi;Fi.id?((Yi=Ii==null?void 0:Ii.type)==null?void 0:Yi.indexOf("image"))>-1?Sn.replaceSelection(`<img width="100%" src="/api/attachments/${Fi.id}?type=${Fi.content_type})" alt="" />`):((li=Ii==null?void 0:Ii.type)==null?void 0:li.indexOf("video"))>-1?Sn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Fi.id}"></video>`):((hi=Ii==null?void 0:Ii.type)==null?void 0:hi.indexOf("pdf"))>-1?Sn.replaceSelection(`<a href="/api/attachments/${Fi.id}?type=${Ii.type}&disposition=inline" target="_blank">${Ii.name}</a>`):Tn.includes(Ki)?Sn.replaceSelection(`<a href="/api/attachments/${Fi.id}?type=office&disposition=inline" target="_blank">${Ii.name}</a>`):Sn.replaceSelection(`[${Ii.name}](/api/attachments/${Fi.id}?type=${Fi.content_type})`):(Fi==null?void 0:Fi.status)===401&&(Ge.ZP.warning((Fi==null?void 0:Fi.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(gi){Ge.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Sn=x().fromTextArea(Xn.current,{mode:Ot,lineNumbers:!Yr,lineWrapping:!0,value:Tr,autoCloseTags:!$t,autoCloseBrackets:!0});return Sn.on("keyup",function(rn,ln){ln.keyCode===8&&(rn.getValue()==""?Sn.setOption("placeholder",qt):Sn.setOption("placeholder",null))}),Sn.on("keydown",function(rn,ln){if(ln.keyCode===8){var ii=Zn(rn);ii&&ln.preventDefault()}}),Kt&&Sn.focus(),Sn.on("paste",Cn),Sn.on("dragleave",function(rn,ln){hn.current.classList.remove("mouse-hover-md")}),Qt&&Sn.on("beforeChange",function(rn,ln){(ln.origin==="paste"||ln.origin==="+input")&&ln.cancel()}),Yt(Sn),()=>{Sn.off("paste",Cn)}}},[]);const Un=(0,Re.useCallback)(()=>{if(hn.current)try{}catch(Cn){console.log(Cn,"---- to set md editor body height")}},[cn,hn,hr]);(0,Re.useEffect)(()=>{function Cn(){let Sn=new De.Z(rn=>{for(let ln of rn)(ln.target.offsetHeight>0||ln.target.offsetWidth>0)&&(Un(),Lt.setSize("100%","100%"),Lt.refresh())});return Sn.observe(Xn.current.parentElement),Sn}if(Lt){const Sn=Cn();return()=>{var rn,ln;(rn=Xn.current)!=null&&rn.parentElement&&Sn.unobserve((ln=Xn.current)==null?void 0:ln.parentElement)}}},[Lt,Un]),(0,Re.useEffect)(()=>{if(Lt){let Cn=[];for(const[Sn,rn]of Object.entries(Jt)){let ln={[Sn]:()=>{kn(rn)}};Cn.push(ln),Lt.addKeyMap(ln)}return un.current=setInterval(()=>{On.current&&Pn()},4e3),()=>{clearInterval(un.current);for(let Sn of Cn)Lt.removeKeyMap(Sn)}}},[Lt]),(0,Re.useEffect)(()=>{Ar!==hr&&Cr(Ar)},[Ar]),(0,wr.Z)(()=>{if(!Zt&&$r>0){let Cn=new Date().getTime(),Sn=window.sessionStorage.getItem(Et);Cn>=$r+Nr&&(!Sn||Sn!==er)&&(window.sessionStorage.setItem(Et,er),wn(!0))}},Nr),(0,Re.useEffect)(()=>{fr(xt)},[Lt,xt]),(0,Re.useEffect)(()=>{Lt&&Kt&&Lt.focus()},[Lt,Kt]),(0,Re.useEffect)(()=>{if(lr&&Lt){let Cn=function(rn){let ln=rn.target;if(Ur.current){let ii=ln.scrollTop/ln.scrollHeight;Ur.current.scrollTop=Ur.current.scrollHeight*ii}};const Sn=Lt.getScrollerElement();return Sn.addEventListener("scroll",Cn),()=>{Sn.removeEventListener("scroll",Cn)}}},[Lt,lr]),(0,Re.useEffect)(()=>{if(Lt&&Er){let Cn=function(Sn,rn){Er(Sn,rn)};return Lt.on("beforeChange",Cn),()=>{Lt.off("beforeChange",Cn)}}},[Lt,Er]),(0,Re.useEffect)(()=>{if(Lt&&Lr){let Cn=function(){Lr(Lt.getValue())};return Lt.on("blur",Cn),()=>{Lt.off("blur",Cn)}}},[Lt,Lr]);function Zn(Cn,Sn){var rn=Cn.getDoc(),ln=rn.getCursor(),ii=rn.getLine(ln.line),xi=ii.charAt(ln.ch-1),Ci=ii.lastIndexOf("@\u2581@",ln.ch),Ai=ii.lastIndexOf("@\u2581\u2581@",ln.ch),gi=Ci>Ai?Ci:Ai,Ii=Ci>Ai?3:4;if(Mn.indexOf(xi)===-1)return null;if(console.log("change1:",Sn,Cn,ii,ln,gi,Ci,Ai,xi),gi>=0&&ln.ch-gi<5){var Ki=gi+Ii;return rn.replaceRange("",{line:ln.line,ch:gi},{line:ln.line,ch:Ki}),{line:ln.line,ch:Ki}}return null}(0,Re.useEffect)(()=>{if(Lt){let Cn=function(Sn,rn){const ln=Sn.getValue();dr(ln),nn(new Date().getTime()),Sn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Sr&&($t?Sr(ln,Ei(ln)):Sr(ln))};return Lt.on("change",Cn),()=>{Lt.off("change",Cn)}}},[Lt,Sr]),(0,Re.useEffect)(()=>{if(Lt)if(Tr==null)Lt.setValue(""),dr("");else{const Cn=window.scrollY||window.pageYOffset;Tr!==Lt.getValue()&&(Lt.setValue(Tr),dr(Tr),Lt.setCursor(Qt?1:Lt.lineCount(),0),window.scrollTo(0,Cn))}},[Lt,Tr]);const kn=(0,Re.useCallback)(Cn=>{const Sn=Lt.getCursor(),rn=Lt.getSelection();let ln=rn.split(`
|
|
|
`);switch(Cn){case"bold":return Lt.replaceSelection("**"+rn+"**"),rn===""&&Lt.setCursor(Sn.line,Sn.ch+2),Lt.focus();case"italic":return Lt.replaceSelection("*"+rn+"*"),rn===""&&Lt.setCursor(Sn.line,Sn.ch+1),Lt.focus();case"code":return Lt.replaceSelection("`"+rn+"`"),rn===""&&Lt.setCursor(Sn.line,Sn.ch+1),Lt.focus();case"inline-latex":return Zr("inline-latex"),Lt.focus();case"latex":return Lt.replaceSelection("```latex\n"+rn+"\n```"),Lt.setCursor(Sn.line+1,rn.length+1),Lt.focus();case"line-break":return Lt.replaceSelection(`<br/>
|
|
|
`),Lt.focus();case"list-ul":return rn===""?Lt.replaceSelection("- "+rn):Lt.replaceSelection(ln.map(ii=>ii===""?"":`- ${ii}`).join(`
|
|
|
`)),Lt.focus();case"list-ol":return rn===""?Lt.replaceSelection("1. "+rn):Lt.replaceSelection(ln.map((ii,xi)=>ii===""?"":`${xi+1}. ${ii}`).join(`
|
|
|
`)),Lt.focus();case"add-null-ch":xr==null||xr();return;case"add-signal":return rn===""&&Lt.setCursor(Sn.line,Sn.ch),Lt.replaceSelection(jn),Lt.focus();case"add-multiple":return rn===""&&Lt.setCursor(Sn.line,Sn.ch),Lt.replaceSelection(Mn),Lt.focus();case"inster-template-1":return rn===""&&Lt.setCursor(Sn.line,Sn.ch),Lt.replaceSelection(an),Lt.focus();case"eraser":return Lt.setValue(""),Lt.focus();case"trigger-watch":return fr(!lr),Lt.focus();case"trigger-full-screen":return Cr(!hr),Lt.focus();case _t:Zr(_t);return;case Ft:Zr(Ft);return;case Mt:Zr(Mt);return;case St:Zr(St);return;case"maths-latex":Zr("maths-latex");return;case ft:Dn.current="",sessionStorage.removeItem("file_id"),Zr(ft);return;case Ut:Zr(Ut);return;default:throw new Error}},[Lt,lr,hr]),zn=(0,Re.useCallback)((Cn,Sn)=>{var rn,ln,ii,xi,Ci,Ai;Zr("");const{src:gi,alt:Ii,id:Ki}=Cn||{};switch(_r){case _t:const{title:Li,link:yr}=Cn;return Lt.replaceSelection(`[${Li}](${yr})`),Lt.focus();case Ft:const{language:vr,content:Mr}=Cn;return Lt.replaceSelection(["```"+vr,Mr,"```"].join(`
|
|
|
`)),Lt.focus();case"maths-latex":for(var Fi=atob(Cn),Yi=new Uint8Array(Fi.length),li=0;li<Fi.length;li++)Yi[li]=Fi.charCodeAt(li);var hi=new Blob([Yi],{type:"image/png"});(0,et.I)(hi,Kn=>{Kn.id?Lt.replaceSelection(``):(Kn==null?void 0:Kn.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Lt.replaceSelection("`$$"+Cn+"$$`");break;case Nt:if(!Ki)return;Lt.focus(),Lt.getValue().indexOf(gi)===-1?Lt.replaceSelection(`<center><img id="${Ki}" width="80%" src="${gi}" class="draw-flowchart" alt="${Ii||""}" /></center>`):document.getElementById(Ki).src=He.Z.API_SERVER+gi+"?t="+Date.now();try{setTimeout(()=>{Lr(Lt.getValue())},100)}catch(Kn){}break;case Mt:case St:const Gr=Sn,Xr=(ii=(ln=(rn=Gr==null?void 0:Gr.name)==null?void 0:rn.split("."))==null?void 0:ln.pop)==null?void 0:ii.call(ln);return((xi=Gr==null?void 0:Gr.type)==null?void 0:xi.indexOf("image"))>-1||!(Gr!=null&&Gr.type)?Gr!=null&&Gr.align||Gr!=null&&Gr.width?Lt.replaceSelection(`<p style="text-align:${Gr.align||"initial"}"><img width="${Gr.width?Gr.width+"%":"initial"}" src="${gi}" alt="${Ii||""}" /></p>`):Lt.replaceSelection(`<img width="100%" src="${gi}" alt="${Ii||""}" />`):((Ci=Gr==null?void 0:Gr.type)==null?void 0:Ci.indexOf("video"))>-1?Lt.replaceSelection(`<video width="100%" controls src="${gi}"></video>`):((Ai=Gr==null?void 0:Gr.type)==null?void 0:Ai.indexOf("pdf"))>-1?Lt.replaceSelection(`<a href="${gi}?type=${Gr.type}&disposition=inline" target="_blank">${Gr.name}</a>`):Tn.includes(Xr)?Lt.replaceSelection(`<a href="${gi}?type=office&disposition=inline" target="_blank">${Gr.name}</a>`):Lt.replaceSelection(`[${Gr.name}](${gi})`),Lt.focus();case Ut:const{row:vn,col:Ir,align:Qr}=Cn;let In=`
|
|
|
`;for(let Kn=0;Kn<vn;Kn++){let Jn=[],gn=[];for(let ri=0;ri<Ir;ri++)Kn===1&&gn.push(gr[Qr]),Jn.push(" ");Kn===1&&(In+=`| ${gn.join(" | ")} |
|
|
|
`),In+=`| ${Jn.join(Ir===1?"":" | ")} |
|
|
|
`}return Lt.replaceSelection(In+`
|
|
|
`),Lt.focus();default:throw new Error}},[Lt,_r]),di=(0,Re.useMemo)(()=>{switch(_r){case _t:return Re.createElement(ct,{callback:zn,onCancel:pn});case Ft:return Re.createElement(ot.Z,{callback:zn,onCancel:pn});case Mt:return Re.createElement(et.Z,{callback:zn,onCancel:pn});case ft:return Re.createElement(ze,{editImgId:Dn.current,callback:zn,onCancel:pn});case Ut:return Re.createElement(Je,{callback:zn,onCancel:pn});case"maths-latex":return Re.createElement(Vt,{showSaveButton:!0,callback:zn});case"inline-latex":return Re.createElement(kt.Z,{showSaveButton:!0,callback:zn});default:return null}},[_r]);function pn(){Zr("")}(0,Re.useEffect)(()=>{if(Kr.current){let Cn=function(Ci){ii=!0,xi=Ci.pageY},Sn=function(){ii=!1},rn=function(Ci){if(ii){let Ai=Ci.pageY-xi;Ai<0&&(Ai=0),Ai>300&&(Ai=300);let gi=Or+Ai+"px";dn(gi)}},ln=Kr.current,ii=!1,xi=0;return ln.addEventListener("mousedown",Cn),document.addEventListener("mousemove",rn),document.addEventListener("mouseup",Sn),()=>{ln.removeEventListener("mousedown",Cn),document.removeEventListener("mousemove",rn),document.removeEventListener("mouseup",Sn)}}},[Lt,Kr]),(0,Re.useEffect)(()=>{dn(Or)},[Or]);const An=Vr(Dr),Yn=Vr(cn),ei={width:An,height:Yn},Si=(0,Re.useMemo)(()=>{if($r){let Cn=new Date($r),Sn=Cn.getHours(),rn=Cn.getMinutes(),ln=Cn.getSeconds();return Sn=Sn<10?"0"+Sn:Sn,rn=rn<10?"0"+rn:rn,ln=ln<10?"0"+ln:ln,`${Sn}:${rn}:${ln}`}return 0},[$r]),Ei=Cn=>{const Sn=[];if($t){let rn=-1;Cn=Cn.replace(/(@▁▁@|@▁@)/g,function(ln,ii,xi){Sn.push({multiLine:ln!==jn})})}return Sn};function bi(){window.sessionStorage.removeItem(Et),wn(!1),nn(0)}function ci(){wn(!1),nn(0),Lt.setValue(window.sessionStorage.getItem(Et))}(0,Re.useEffect)(()=>{jr[_r]&&_r!==St&&_r!==ft&&setTimeout(()=>{const Cn=document.getElementsByClassName("markdown-popup-form")[0],Sn=window.innerWidth/2-Cn.offsetWidth/2,rn=window.innerHeight/2-Cn.offsetHeight/2;yn(Sn),Ln(rn)},0)},[_r]);const Oi=Cn=>{Cn.preventDefault();const Sn=Cn.clientX-mn,rn=Cn.clientY-en;document.body.onmousemove=ln=>{let ii=ln.clientX-Sn,xi=ln.clientY-rn;const Ci=document.getElementsByClassName("markdown-popup-form")[0],Ai=window.innerWidth-Ci.offsetWidth,gi=window.innerHeight-Ci.offsetHeight;ii=Math.max(0,Math.min(ii,Ai)),xi=Math.max(0,Math.min(xi,gi)),Di(ln.clientX,ln.clientY,Sn,rn)&&(yn(ii),Ln(xi))},document.body.onmouseup=function(){document.body.onmousemove=null}},Di=(Cn,Sn,rn,ln)=>{const ii=document.body.clientHeight,xi=document.body.clientWidth;return Cn<20&&rn>Cn||Cn>xi-20&&rn<Cn||Sn<20&&ln>Sn||Sn>ii-20&&ln<Sn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Re.createElement(Re.Fragment,null,Re.createElement("div",{className:"markdown-editor-wrapper",ref:hn},Re.createElement("div",{className:`markdown-editor-container ${br} ${lr?"on-preview":""} ${Yr?"mini":""} ${hr?"full-screen":""}`,style:ei},Re.createElement(Me,{insertTemp:Bt,watch:lr,fullScreen:hr,showNullButton:nr,showNullProgramButton:$t,onActionCallback:kn,hidetoolBar:pr,extraUse:ar}),Re.createElement("div",{className:"markdown-editor-body"},Re.createElement("div",{className:"codemirror-container"},Re.createElement("textarea",{ref:Xn,placeholder:qt})),lr?Re.createElement("div",{ref:Ur,className:"preview-container"},Ot==="stex"&&Re.createElement(te,{value:er}),Ot!=="stex"&&Re.createElement(me.Z,{edit:!0,disabledFill:Xt,showProgramFill:$t,value:er,openEditor:Cn=>{var Sn;Dn.current=Cn,(Sn=bn.current)==null||Sn.setHeight("100vh"),setTimeout(()=>{Zr("add-flowchart")},150)}})):null))),zt?Re.createElement("a",{ref:Kr,className:"editor-resize"}):null,_r===St&&Re.createElement(Dt,{callback:zn,onCancel:pn}),_r===ft&&Re.createElement(ze,{ref:bn,editImgId:Dn.current,callback:zn,onCancel:pn}),Re.createElement(Oe.Z,null,jr[_r]&&_r!==St&&_r!==ft?Re.createElement(qe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:mn,top:en},title:Re.createElement("div",{style:{cursor:"move"},onMouseDown:Oi},jr[_r]),open:!0,onCancel:pn,footer:null,destroyOnClose:!0,width:_r===ft?"1200px":null,height:_r===ft?"80vh":null,className:"markdown-popup-form"},di):null))}},22477:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return je},I:function(){return Oe}});var Re=ke(78241),gt=ke(8591),x=ke(92832),De=ke(81327),ve=ke(5871),re=ke(5112),ne=ke(3113),ie=ke(32546),oe=ke(59301),se=ke(36466),me=ke(59301),te=Object.defineProperty,ae=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Se=(Ee,Ne,_e)=>Ne in Ee?te(Ee,Ne,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Ee[Ne]=_e,xe=(Ee,Ne)=>{for(var _e in Ne||(Ne={}))he.call(Ne,_e)&&Se(Ee,_e,Ne[_e]);if(de)for(var _e of de(Ne))we.call(Ne,_e)&&Se(Ee,_e,Ne[_e]);return Ee},ye=(Ee,Ne)=>ae(Ee,ue(Ne));const{useForm:Ae}=Re.default,Le={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var je=({callback:Ee,onCancel:Ne})=>{const[_e]=Ae();let Ze=(0,oe.useRef)();function Pe(tt){Ze.current.width=_e.getFieldValue("width"),Ze.current.align=_e.getFieldValue("align"),Ee(tt,Ze.current)}function Ue(tt,at){if(tt.status===-1){gt.ZP.error(tt.message);return}_e.setFieldsValue({src:`/api/attachments/${tt.id}`,type:at.type})}function Qe(tt){let at=tt.target.files[0];Ze.current=at,Oe(at,Ue)}return me.createElement(Re.default,ye(xe({form:_e},Ce),{className:"upload-image-panel",onFinish:Pe,style:{width:470,overflow:"hidden"}}),me.createElement(Re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},me.createElement("div",{className:"flex-container"},me.createElement(Re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},me.createElement(x.default,{style:Le})),me.createElement(Me,{onFileChange:Qe}))),me.createElement(Re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},me.createElement(x.default,{style:{width:264}})),me.createElement(Re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},me.createElement(De.Z,null,me.createElement(Re.default.Item,{name:"width",style:{margin:0}},me.createElement(ve.Z,{style:{width:264}})),me.createElement("span",{className:"ml8"},"%"))),me.createElement(Re.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},me.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"}]})),me.createElement("aside",null,me.createElement(Re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},me.createElement(ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),me.createElement(ne.ZP,{type:"default",onClick:Ne},"\u53D6\u6D88"))))};function Me({onFileChange:Ee}){return me.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",me.createElement("input",{type:"file",onChange:Ee}))}function Oe(Ee,Ne){if(!Ee)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,se.bg)())throw gt.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let _e=new FormData;_e.append("editormd-image-file",Ee),_e.append("file_param_name","editormd-image-file"),_e.append("byxhr","true");var Ze=new window.XMLHttpRequest;Ze.withCredentials=!0,Ze.addEventListener("load",function(Pe){Ne(JSON.parse(Pe.target.responseText),Ee)},!1),Ze.addEventListener("error",function(Pe){console.error(Pe)},!1),Ze.open("POST",`${ie.KI}/api/attachments.json`),Ze.send(_e)}},62488:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return x}});var Re=ke(59301),gt=ke(4676);class x extends Re.Component{constructor(ve){super(ve);const re=window.document;this.node=re.createElement("div"),re.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,gt.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},65038:function(or,Ht,ke){"use strict";var Re=ke(40269),gt=ke(57809),x=ke(78673),De=ke(59301);const ve=gt.default.Option;Ht.Z=({isTheoretical:re,onFontSizeChange:ne,cmFontSize:ie,cmCodeMode:oe,autoFormat:se,onCodeModeChange:me,onTabToSpace:te,onAutoFormat:ae,formatDocument:ue,className:de="",tabToSpace:he,children:we,code_editor:Se,challenge:xe,shixun_environment_id:ye,shixun_environments:Ae})=>{var Le;const Ce={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},je=(Le=Ae==null?void 0:Ae.find(Me=>Me.shixun_environment_id===ye))==null?void 0:Le.program_language;return De.createElement("div",{className:`tpi-code-setting ${de}`},De.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),De.createElement("section",null,De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),De.createElement(gt.default,{bordered:!1,size:"small",value:oe,onChange:me},De.createElement(ve,{value:"vs"},"\u767D\u8272\u80CC\u666F"),De.createElement(ve,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!re&&De.createElement(De.Fragment,null,De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),De.createElement(gt.default,{bordered:!1,size:"small",value:ie,onChange:ne},De.createElement(ve,{value:12},"12px"),De.createElement(ve,{value:14},"14px"),De.createElement(ve,{value:16},"16px"),De.createElement(ve,{value:18},"18px"),De.createElement(ve,{value:20},"20px"),De.createElement(ve,{value:22},"22px"))),De.createElement("div",{className:"file-item"},De.createElement("b",null,"Tab\u8F6C\u6362"),De.createElement(x.Z,{checked:he,onChange:te})),De.createElement("div",{className:"file-item",onClick:ue},De.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!re&&De.createElement(De.Fragment,null,De.createElement("h3",null,"\u5FEB\u6377\u952E"),De.createElement("section",null,De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),De.createElement("span",null,"Ctrl + S")),De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),De.createElement("span",null,"F1 / Alt + F1")),De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),De.createElement("span",null,"Ctrl + ]/[")),De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),De.createElement("span",null,"Ctrl + Shift + \\")),De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),De.createElement("span",null,"Home")),De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),De.createElement("span",null,"End"))),we),!re&&De.createElement(De.Fragment,null,De.createElement("h3",null,"\u5FEB\u6377\u952E"),De.createElement("section",null,je&&De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),De.createElement("span",null,je)),De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),De.createElement("span",null,Ce[xe==null?void 0:xe.difficulty])),De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),De.createElement("span",null,Se==null?void 0:Se.name)),De.createElement("div",{className:"file-item"},De.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),De.createElement("span",null,Se!=null&&Se.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},88276:function(or,Ht,ke){"use strict";ke.d(Ht,{i:function(){return Ce},Z:function(){return Me}});var Re={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},gt=ke(71418),x=ke(6848),De=ke(93948),ve=ke(92310),re=ke.n(ve),ne=ke(85333),ie=ke(61648),oe=ke(36466),se=ke(79005),me=ke(20345),te=ke(47027),ae=ke(31081),ue=ke(75309),de=ke(71979),he=ke(47558),we=ke(42922),Se=ke(66832),xe=ke(96593),ye=ke(19664),Ae=ke(91833),Le=ke(59301);const Ce=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:se,swimg:me},{name:"101\u8BA1\u5212",ptimg:te,swimg:ae},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:ue,swimg:de},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:he,swimg:we},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Se,swimg:xe},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ye,swimg:Ae}];var Me=({className:Oe,dataSource:Ee=[],col:Ne=4,right:_e,bottom:Ze=23,precision:Pe=0,wrapWidth:Ue=1200,trackEventItems:Qe,loading:tt,onRemove:at=()=>{},isCurrent:lt=!0,showAlias:Ve=!1,showProgress:Xe=!1})=>{const nt=Math.floor((Ue-(Ne-1)*_e)/Ne),ct=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(ot=>(window.ENV==="build"&&(ot.ptimg=`/react/build${ot.ptimg}`,ot.swimg=`/react/build${ot.swimg}`),ot));return Le.createElement(gt.Z,{spinning:tt},Le.createElement("div",{className:re()(Re.list,Oe)},!!(Ee!=null&&Ee.length)&&(Ee==null?void 0:Ee.map((ot,et)=>{var qe,it,yt,pt,Dt,At;const{name:st,id:Ge,identifier:We,featured:le,school_name:fe,image_url:ze,excellent:He,is_plan:pe}=ot;return Le.createElement("div",{key:Ge,className:lt&&Xe?Re.wrapisCurrent:Re.wrap,style:{width:nt,marginRight:(1+et)%Ne===0?0:_e+Pe,marginBottom:Ze}},Le.createElement("a",{className:Re.li,onClick:Ie=>{Ie.preventDefault(),Ie.stopPropagation(),Qe&&(0,ne.L9)([Qe]),(0,ne.xg)(`/paths/${We}`)}},Le.createElement("div",{className:Re.img},Le.createElement("img",{className:Re.cover,src:`${ze}`}),lt&&(0,oe.bg)()&&(ot==null?void 0:ot.studying)&&Le.createElement("div",{className:`${Re.movebq} user-path-items`,onClick:Ie=>{Ie.stopPropagation(),at(ot)}},Le.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Le.createElement("span",{className:"c-red"},"\u79FB\u9664")),(qe=ot==null?void 0:ot.subject_tags)==null?void 0:qe.map((Ie,Ke)=>{var Ye,Je;if(Ke===0){const bt=(Ye=ct.find(vt=>vt.name==Ie))==null?void 0:Ye.swimg;return Le.createElement("img",{className:Re.sign,src:bt,style:{left:"-4px"}})}const dt=(Je=ct.find(bt=>bt.name==Ie))==null?void 0:Je.ptimg;return Le.createElement("img",{className:Re.sign,src:dt,style:{left:`${48+52*(Ke-1)+2*Ke}px`}})}),Le.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(ot==null?void 0:ot.excellent)&&Le.createElement("div",{className:Re.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Le.createElement("div",{className:Re.name},Le.createElement(x.Z,{title:Ve&&(ot!=null&&ot.excellent_alias_name)?Le.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${st}`,Le.createElement("br",null),Le.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ot==null?void 0:ot.excellent_alias_name}`)):st},Le.createElement("span",{className:Re.e},Ve&&(ot==null?void 0:ot.excellent_alias_name)||st))),lt&&Xe&&((it=ot==null?void 0:ot.progress)==null?void 0:it.all_score)!=0&&Le.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Le.createElement(De.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((yt=ot==null?void 0:ot.progress)==null?void 0:yt.my_score)/((pt=ot==null?void 0:ot.progress)==null?void 0:pt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Dt=ot==null?void 0:ot.progress)==null?void 0:Dt.my_score,"/",(At=ot==null?void 0:ot.progress)==null?void 0:At.all_score),(!lt||!Xe)&&Le.createElement("div",{className:Re.tags},Le.createElement("div",null,Le.createElement(x.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Le.createElement("span",null,Le.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Le.createElement("span",null,ot.stages_count))),Le.createElement(x.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Le.createElement("span",null,Le.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Le.createElement("span",null,ot.members_count)))))))})),!Ee.length&&Le.createElement(ie.Z,null)))}},92090:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return re}});var Re=ke(59301),gt={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},x=ke(92310),De=ke.n(x),re=({dataSource:ne=[],value:ie,onChange:oe,className:se,style:me={}})=>Re.createElement("div",{style:me,className:De()(gt.tabs,se)},ne.map(te=>Re.createElement("span",{onClick:()=>oe(te.id),className:ie===te.id?gt.active:"",key:te.id},te.name)))},93351:function(or,Ht,ke){"use strict";ke.d(Ht,{jL:function(){return ve},w9:function(){return Wn},vv:function(){return Yr},dN:function(){return Tr},QD:function(){return un},cQ:function(){return pe.Z},vg:function(){return jn},Oz:function(){return zr},op:function(){return cn},O5:function(){return ei},_b:function(){return hn},t7:function(){return Ne},tT:function(){return Pe},Gi:function(){return Lr},YG:function(){return Ot},Ed:function(){return pr},kT:function(){return Zt},qp:function(){return we},Um:function(){return Ce},K3:function(){return ye},vr:function(){return en},qE:function(){return wn},Je:function(){return tt},wb:function(){return pt},rC:function(){return He},lB:function(){return st},cq:function(){return Xt},kO:function(){return xr},tp:function(){return je.Z},Si:function(){return bi},k8:function(){return Li},Du:function(){return ii}});var Re=ke(59301),gt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYV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0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ve=({dataSource:yr=[],img:vr,imgWidth:Mr=346,title:Gr,sunTitle:Xr,bannerExtraContent:vn})=>Re.createElement("div",{className:gt.banner},Re.createElement("div",{className:gt.content},Re.createElement("aside",null,Re.createElement("p",null,Re.createElement("b",null,Gr),Re.createElement("span",null,Xr)),yr.length>0&&Re.createElement("div",{className:gt.btns},yr.map((Ir,Qr)=>Re.createElement("div",{key:Qr,onClick:Ir.click},Ir.name,Ir.sign?Re.createElement("img",{src:x,width:39}):null))),vn),vr&&Re.createElement("img",{style:{marginTop:33,marginRight:38},src:vr,width:Mr}))),re={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ne=ke(92310),ie=ke.n(ne),oe=ke(78267),se=Object.defineProperty,me=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,ue=(yr,vr,Mr)=>vr in yr?se(yr,vr,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):yr[vr]=Mr,de=(yr,vr)=>{for(var Mr in vr||(vr={}))te.call(vr,Mr)&&ue(yr,Mr,vr[Mr]);if(me)for(var Mr of me(vr))ae.call(vr,Mr)&&ue(yr,Mr,vr[Mr]);return yr},we=({dataSource:yr=[],value:vr,onChange:Mr,onTitleChange:Gr,className:Xr,title:vn,titleWidth:Ir=41,style:Qr={},fontColor:In="#6A7283",showCount:Kn,classNameActive:Jn,styleItem:gn={}})=>{const[ri,pi]=(0,Re.useState)(0),[si,Nn]=(0,Re.useState)(!1),$n=(0,Re.useRef)(null),wi=(0,Re.useRef)(null);return(0,Re.useEffect)(()=>{var vi;yr.length!==0&&(((vi=$n==null?void 0:$n.current)==null?void 0:vi.clientHeight)>97?pi(1):pi(0)),yr.length===0&&pi(0),Nn(!1)},[yr]),Re.createElement("div",{className:ie()(re.row,Xr),style:Qr},Re.createElement("div",{onClick:(0,oe.throttle)(()=>Gr==null?void 0:Gr(),2e3),style:{width:Ir,marginTop:si?12:4},className:`${re.title} ${Gr?"current":""}`},vn),Re.createElement("div",{className:si?`${re.tagsWrap} ${re.tagsBorderWrap}`:re.tagsWrap},Re.createElement("div",{className:re.bar,ref:wi,style:ri>0?{height:ri===1?97:"auto",overflow:ri===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Re.createElement("div",{className:re.tag,ref:$n},yr==null?void 0:yr.map(vi=>Re.createElement("span",{onClick:()=>Mr(vi.id),key:vi.id,style:de(de({color:In},gn),(vi==null?void 0:vi.style)||{}),className:vr===vi.id?ie()(Jn||re.active,vi.classNameActive):""},Re.createElement("span",{title:vi.name,className:re.name},vi.name),!!Kn&&Re.createElement("span",{className:re.num},vi.count))))),!!ri&&Re.createElement(Re.Fragment,null,ri===1?Re.createElement("div",{onClick:()=>{var vi;pi(2),((vi=$n==null?void 0:$n.current)==null?void 0:vi.clientHeight)>245?Nn(!0):Nn(!1)},className:re.action},"\u5C55\u5F00",Re.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Re.createElement("div",{onClick:()=>{wi.current.scrollTop=0,pi(1),Nn(!1)},className:re.action},"\u6536\u8D77",Re.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Se={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},ye=({dataSource:yr=[],value:vr,onChange:Mr,onTitleChange:Gr,className:Xr,title:vn,titleWidth:Ir=41,style:Qr={},fontColor:In="#6A7283",showCount:Kn,expand:Jn=!0})=>{const[gn,ri]=(0,Re.useState)(0),[pi,si]=(0,Re.useState)(!1),Nn=(0,Re.useRef)(null),$n=(0,Re.useRef)(null),[wi,vi]=(0,Re.useState)(Jn);return Re.createElement("div",{className:ie()(Se.row,Xr),style:Qr},Re.createElement("div",{className:"flex item-center justify-between"},Re.createElement("div",{onClick:(0,oe.throttle)(()=>Gr==null?void 0:Gr(),2e3),style:{width:Ir,marginTop:pi?12:4},className:`${Se.title} ${Gr?"current":""}`},vn),Re.createElement("i",{className:`iconfont ${wi?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:wi?8:10},onClick:()=>vi(!wi)})),wi&&Re.createElement("div",{className:pi?`${Se.tagsWrap} ${Se.tagsBorderWrap}`:Se.tagsWrap},Re.createElement("div",{className:Se.fenge}),Re.createElement("div",{className:Se.bar,ref:$n},Re.createElement("div",{className:Se.tag,ref:Nn},yr==null?void 0:yr.map(Mi=>Re.createElement("span",{onClick:()=>Mr(Mi.id),key:Mi.id,style:{color:In},className:vr===Mi.id?Se.active:""},Re.createElement("span",{title:Mi.name,className:Se.name},Mi.name),!!Kn&&Re.createElement("span",{className:Se.num},Mi.count)))))))},Ae={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},Ce=({dataSource:yr=[],value:vr,onChange:Mr,onTitleChange:Gr,className:Xr,title:vn,titleWidth:Ir=41,style:Qr={},fontColor:In="#fff",showCount:Kn,expand:Jn=!0})=>{const[gn,ri]=(0,Re.useState)(0),[pi,si]=(0,Re.useState)(!1),Nn=(0,Re.useRef)(null),$n=(0,Re.useRef)(null),[wi,vi]=(0,Re.useState)(Jn);return Re.createElement("div",{className:ie()(Ae.row,Xr),style:Qr},Re.createElement("div",{className:"flex item-center justify-between"},Re.createElement("div",{onClick:(0,oe.throttle)(()=>Gr==null?void 0:Gr(),2e3),style:{width:Ir},className:`${Ae.title} ${Gr?"current":""}`},vn),Re.createElement("i",{className:`iconfont ${wi?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:wi?"#00DDC7":"#037F74",fontSize:wi?10:12},onClick:()=>vi(!wi)})),wi&&Re.createElement("div",{className:pi?`${Ae.tagsWrap} ${Ae.tagsBorderWrap}`:Ae.tagsWrap},Re.createElement("div",{className:Ae.bar,ref:$n},Re.createElement("div",{className:Ae.tag,ref:Nn},yr==null?void 0:yr.map(Mi=>Re.createElement("span",{onClick:()=>Mr(Mi.id),key:Mi.id,style:{color:In},className:vr===Mi.id?Ae.active:""},Re.createElement("span",{title:Mi.name,className:Ae.name},Mi.name),!!Kn&&Re.createElement("span",{className:Ae.num},Mi.count)))))))},je=ke(92090),Me={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Oe=ke(92832),Ne=({dataSource:yr=[],value:vr="",onChange:Mr,onInputChange:Gr=()=>{},className:Xr,style:vn={},placeholder:Ir,allowClear:Qr=!1})=>{var In;const[Kn,Jn]=(0,Re.useState)(""),[gn,ri]=(0,Re.useState)("");(0,Re.useEffect)(()=>{var Nn;let $n=vr;(Nn=JSON.stringify(vr))!=null&&Nn.includes("{")&&(Jn(vr.id),$n=vr.value||"");try{ri(decodeURIComponent($n||""))}catch(wi){ri(decodeURIComponent($n||""))}},[vr]);const pi=()=>{Mr(encodeURIComponent(gn),Kn||null)},si=Nn=>{Nn!==Kn&&(Jn(Nn),Mr(encodeURIComponent(gn),Nn))};return Re.createElement("div",{className:ie()(Me.input,Xr),style:vn},!!yr.length&&Re.createElement("div",{className:Me.dropdown},Re.createElement("div",{className:Me.text},(In=yr.find(Nn=>Nn.id===Kn))==null?void 0:In.name,Re.createElement("i",{className:"iconfont icon-zhankai4"}),Re.createElement("b",{className:Me.b1}),Re.createElement("b",{className:Me.b2})),Re.createElement("div",{className:Me.menu},yr.map((Nn,$n)=>Re.createElement("div",{key:$n,onClick:()=>si(Nn.id)},Nn.name)))),Re.createElement(Oe.default,{onPressEnter:pi,value:gn,onChange:Nn=>{ri(Nn.target.value),Gr(encodeURIComponent(Nn.target.value),Kn||null)},bordered:!1,placeholder:Ir}),Re.createElement("i",{onClick:pi,className:"iconfont icon-sousuo9 font14 pl10 current"}))},_e={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},Pe=({dataSource:yr=[],value:vr="",onChange:Mr,onInputChange:Gr=()=>{},className:Xr,style:vn={},placeholder:Ir,allowClear:Qr=!1})=>{var In;const[Kn,Jn]=(0,Re.useState)(""),[gn,ri]=(0,Re.useState)("");(0,Re.useEffect)(()=>{var Nn;let $n=vr;(Nn=JSON.stringify(vr))!=null&&Nn.includes("{")&&(Jn(vr.id),$n=vr.value||"");try{ri(decodeURIComponent($n||""))}catch(wi){ri(decodeURIComponent($n||""))}},[vr]);const pi=()=>{Mr(encodeURIComponent(gn),Kn||null)},si=Nn=>{Nn!==Kn&&(Jn(Nn),Mr(encodeURIComponent(gn),Nn))};return Re.createElement("div",{className:ie()(_e.input,Xr),style:vn},!!yr.length&&Re.createElement("div",{className:_e.dropdown},Re.createElement("div",{className:_e.text},(In=yr.find(Nn=>Nn.id===Kn))==null?void 0:In.name,Re.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),Re.createElement("div",{className:_e.menu},yr.map((Nn,$n)=>Re.createElement("div",{key:$n,onClick:()=>si(Nn.id)},Nn.name)))),Re.createElement(Oe.default,{onPressEnter:pi,value:gn,onChange:Nn=>{ri(Nn.target.value),Gr(encodeURIComponent(Nn.target.value),Kn||null)},bordered:!1,placeholder:Ir}),Re.createElement("i",{onClick:pi,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Ue={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},tt=({value:yr,onChange:vr,className:Mr,total:Gr,pageSize:Xr,style:vn={}})=>{const Ir=yr<2,Qr=yr>=Math.ceil(Gr/Xr);return Gr<=Xr?Re.createElement(Re.Fragment,null):Re.createElement("div",{className:ie()(Ue.quickPager,Mr),style:vn},Re.createElement("div",{onClick:()=>{Ir||vr(yr-1,"prev")},className:Ir?Ue.disabled:""},"\u4E0A\u4E00\u9875"),Re.createElement("div",{onClick:()=>{Qr||vr(yr+1,"next")},className:Qr?Ue.disabled:""},"\u4E0B\u4E00\u9875"))},at={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},lt=ke(71418),Ve=ke(6848),Xe=ke(13570),nt=ke(42684),ct=ke(85333),ot=ke(96908),et=ke(57177),qe=ke(81378),it=ke(61648),pt=({className:yr,dataSource:vr=[],col:Mr=4,right:Gr,bottom:Xr=23,precision:vn=0,wrapWidth:Ir=1200,trackEventItems:Qr,loading:In})=>{const Kn=Math.floor((Ir-(Mr-1)*Gr)/Mr);return Re.createElement(lt.Z,{spinning:In},Re.createElement("div",{className:ie()(at.list,yr)},!!vr.length&&vr.map((Jn,gn)=>{const{name:ri,id:pi,identifier:si,power:Nn,cover_image_id:$n,pic:wi}=Jn;return Re.createElement("div",{className:at.wrap,key:pi,style:{width:Kn,marginRight:(1+gn)%Mr===0?0:Gr+vn,marginBottom:Xr}},Re.createElement("a",{target:"_blank",href:`/shixuns/${si}/challenges`,className:at.li,onClick:vi=>{vi.preventDefault(),Qr&&(0,ct.L9)([Qr]),Nn&&(0,ct.xg)(`/shixuns/${si}/challenges`)}},Re.createElement("div",{className:at.img},Re.createElement("img",{className:at.cover,src:`${wi}`}),Jn.is_jupyter&&Re.createElement("img",{className:at.sign,src:ot}),Jn.is_jupyter_lab&&Re.createElement("img",{className:at.sign,src:et}),Jn.is_unity_3d&&Re.createElement("img",{className:at.sign,src:qe})),Re.createElement("div",{className:at.name},Re.createElement(Ve.Z,{title:ri||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Re.createElement("span",{className:at.e},ri||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Re.createElement("div",{className:at.tags},Re.createElement(Ve.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Re.createElement("span",null,Jn.challenges_count))),!!Jn.myshixuns_count&&Re.createElement(Ve.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Re.createElement("span",null,Jn.myshixuns_count))),Re.createElement(Ve.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Re.createElement("span",null,Re.createElement("span",null,Jn.level))),Re.createElement("div",{className:at.rate},Re.createElement(Xe.Z,{allowHalf:!0,disabled:!0,defaultValue:Jn.score_info}),Re.createElement("span",null,"\xA0",Jn.score_info?`${Jn.score_info}\u5206`:"5\u5206")))),!Nn&&Re.createElement("div",{className:at.lockWrap},Re.createElement("img",{src:`${nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Re.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!vr.length&&Re.createElement(it.Z,null)))},Dt={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},st=({className:yr,dataSource:vr=[],col:Mr=4,right:Gr,bottom:Xr=23,precision:vn=0,wrapWidth:Ir=1200,wrapClassName:Qr,trackEventItems:In,loading:Kn})=>{const Jn=Math.floor((Ir-(Mr-1)*Gr)/Mr);return Re.createElement(lt.Z,{spinning:Kn},Re.createElement("div",{className:ie()(Dt.list,yr)},!!vr.length&&vr.map((gn,ri)=>{const{name:pi,id:si,identifier:Nn,power:$n,cover_image_id:wi,pic:vi}=gn;return Re.createElement("div",{className:ie()(Dt.wrap,Qr),key:si,style:{width:Jn,marginRight:(1+ri)%Mr===0?0:Gr+vn,marginBottom:Xr}},Re.createElement("a",{target:"_blank",href:`/shixuns/${Nn}/challenges`,className:Dt.li,onClick:Mi=>{Mi.preventDefault(),In&&(0,ct.L9)([In]),$n&&(0,ct.xg)(`/shixuns/${Nn}/challenges`)}},Re.createElement("img",{src:ke(47621),className:Dt.titleBg}),Re.createElement("div",{className:Dt.name},Re.createElement(Ve.Z,{title:pi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Re.createElement("span",{className:Dt.e},pi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Re.createElement("div",{style:{padding:"14px",paddingBottom:0}},Re.createElement("div",{className:Dt.img},Re.createElement("img",{className:Dt.cover,src:wi?`${nt.Z.API_SERVER}/api/attachments/${wi}`:`${nt.Z.IMG_SERVER+vi}`}),gn.is_jupyter&&Re.createElement("div",{className:Dt.bq},"Jupyter"),gn.is_jupyter_lab&&Re.createElement("div",{className:Dt.bq},"JupyterLab"),gn.is_unity_3d&&Re.createElement("div",{className:Dt.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),Re.createElement("div",{className:"mt20 flex item-center justify-between"},Re.createElement("div",null,Re.createElement("span",{className:Dt.text},"\u5B66\u4E60\u4EBA\u6570"),Re.createElement("span",{className:Dt.value},gn.myshixuns_count)),Re.createElement("div",null,Re.createElement("span",{className:Dt.text},"\u56F0\u96BE\u7B49\u7EA7"),Re.createElement("span",{className:Dt.value},gn.level))),Re.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},Re.createElement("div",null,Re.createElement("span",{className:Dt.text},"\u5173\u5361\u6570"),Re.createElement("span",{className:Dt.value},gn.challenges_count)),Re.createElement("div",{className:Dt.rate},Re.createElement(Xe.Z,{allowHalf:!0,disabled:!0,defaultValue:gn.score_info}),Re.createElement("span",{className:Dt.value,style:{color:"#FF9C00"}},"\xA0",gn.score_info?`${gn.score_info}\u5206`:"5\u5206"))))),!$n&&Re.createElement("div",{className:Dt.lockWrap},Re.createElement("img",{src:`${nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Re.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!vr.length&&Re.createElement(it.Z,null)))},Ge={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},We="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13AN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gD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",He=({className:yr,dataSource:vr=[],col:Mr=4,right:Gr,bottom:Xr=23,precision:vn=0,wrapWidth:Ir=1200,trackEventItems:Qr,loading:In,wrapClassName:Kn,imgClassName:Jn})=>{const gn=Math.floor((Ir-(Mr-1)*Gr)/Mr);return Re.createElement(lt.Z,{spinning:In},Re.createElement("div",{className:ie()(Ge.list,yr)},!!vr.length&&vr.map((ri,pi)=>{const{name:si,id:Nn,identifier:$n,power:wi,cover_image_id:vi,pic:Mi}=ri;return Re.createElement("div",{className:ie()(Ge.wrap,Kn),key:Nn,style:{width:gn,marginRight:(1+pi)%Mr===0?0:Gr+vn,marginBottom:Xr}},Re.createElement("a",{target:"_blank",href:`/shixuns/${$n}/challenges`,className:Ge.li,onClick:pa=>{pa.preventDefault(),Qr&&(0,ct.L9)([Qr]),wi&&(0,ct.xg)(`/shixuns/${$n}/challenges`)}},Re.createElement("div",{className:ie()(Ge.img,Jn)},Re.createElement("img",{className:Ge.cover,src:vi?`${nt.Z.API_SERVER}/api/attachments/${vi}`:`${nt.Z.IMG_SERVER+Mi}`}),ri.is_jupyter&&Re.createElement("img",{className:Ge.sign,src:We}),ri.is_jupyter_lab&&Re.createElement("img",{className:Ge.sign,src:le}),ri.is_unity_3d&&Re.createElement("img",{className:Ge.sign,src:fe})),Re.createElement("div",{className:Ge.name},Re.createElement(Ve.Z,{title:si||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Re.createElement("span",{className:Ge.e},si||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Re.createElement("div",{className:Ge.tags},Re.createElement(Ve.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Re.createElement("span",null,ri.challenges_count))),!!ri.myshixuns_count&&Re.createElement(Ve.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Re.createElement("span",null,ri.myshixuns_count))),Re.createElement(Ve.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Re.createElement("span",null,Re.createElement("span",null,ri.level))),Re.createElement("div",{className:Ge.rate},Re.createElement(Xe.Z,{allowHalf:!0,disabled:!0,defaultValue:ri.score_info}),Re.createElement("span",null,"\xA0",ri.score_info?`${ri.score_info}\u5206`:"5\u5206")))),!wi&&Re.createElement("div",{className:Ge.lockWrap},Re.createElement("img",{src:`${nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Re.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!vr.length&&Re.createElement(it.Z,null)))},pe=ke(88276),Ie={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Ke=ke(79005),Ye=ke(20345),Je=ke(47027),dt=ke(31081),bt=ke(75309),vt=ke(71979),It=ke(47558),Vt=ke(42922),kt=ke(66832),jt=ke(96593),_t=ke(19664),Mt=ke(91833),ft=Object.defineProperty,St=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Ut=(yr,vr,Mr)=>vr in yr?ft(yr,vr,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):yr[vr]=Mr,sr=(yr,vr)=>{for(var Mr in vr||(vr={}))Nt.call(vr,Mr)&&Ut(yr,Mr,vr[Mr]);if(St)for(var Mr of St(vr))Ft.call(vr,Mr)&&Ut(yr,Mr,vr[Mr]);return yr};const gr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ke,swimg:Ye},{name:"101\u8BA1\u5212",ptimg:Je,swimg:dt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:bt,swimg:vt},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:It,swimg:Vt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:kt,swimg:jt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:_t,swimg:Mt}];var zr=({className:yr,dataSource:vr=[],col:Mr=4,right:Gr,bottom:Xr=23,precision:vn=0,wrapWidth:Ir=1200,trackEventItems:Qr,loading:In,wrapClassName:Kn,imgClassName:Jn,isArrow:gn=!1,imgStyle:ri={}})=>{const pi=Math.floor((Ir-(Mr-1)*Gr)/Mr),[si,Nn]=(0,Re.useState)(),[$n,wi]=(0,Re.useState)(),vi=pa=>Nn(pa),Mi=()=>Nn(-1);return Re.createElement(lt.Z,{spinning:In},Re.createElement("div",{className:ie()(Ie.list,yr)},!!(vr!=null&&vr.length)&&(vr==null?void 0:vr.map((pa,Ma)=>{var za;const{name:Ba,id:Bo,identifier:Va,featured:ba,school_name:Ji,image_url:Ka,excellent:so,is_plan:lo}=pa;return Re.createElement("div",{key:Bo,className:ie()(Ie.wrap,Kn),style:{width:pi,marginRight:(1+Ma)%Mr===0?0:Gr+vn,marginBottom:Xr}},Re.createElement("a",{target:"_blank",href:`/paths/${Va}`,className:Ie.li,onClick:co=>{co.preventDefault(),Qr&&(0,ct.L9)([Qr]),(0,ct.xg)(`/paths/${Va}`)}},Re.createElement("img",{src:ke(39057),className:Ie.titleBg}),Re.createElement("div",{className:Ie.name},Re.createElement(Ve.Z,{title:Ba},Re.createElement("span",{className:Ie.e,style:{color:gn&&si===Ma?"#145DFF":"#000000"},onMouseEnter:()=>{vi(Ma)},onMouseLeave:Mi},Ba))),Re.createElement("div",{style:{padding:"14px",paddingBottom:0}},Re.createElement("div",{className:ie()(Ie.img,Jn)},Re.createElement("img",{className:Ie.cover,style:sr({},ri),src:`${nt.Z.IMG_SERVER+Ka}`}),(za=pa==null?void 0:pa.subject_tags)==null?void 0:za.map((co,Ha)=>{var xa,wa;if(Ha===0){const uo=(xa=gr.find(zo=>zo.name==co))==null?void 0:xa.swimg;return Re.createElement("img",{className:Ie.sign,src:uo,style:{left:"-4px"}})}const Hi=(wa=gr.find(uo=>uo.name==co))==null?void 0:wa.ptimg;return Re.createElement("img",{className:Ie.sign,src:Hi,style:{left:`${48+52*(Ha-1)+2*Ha}px`}})}),Re.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(pa==null?void 0:pa.excellent)&&Re.createElement("div",{className:Ie.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Re.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},Re.createElement("div",null,Re.createElement("span",{className:Ie.text},"\u7AE0\u8282\u6570"),Re.createElement("span",{className:Ie.value},pa.stages_count)),Re.createElement("div",null,Re.createElement("span",{className:Ie.text},"\u5B66\u4E60\u4EBA\u6570"),Re.createElement("span",{className:Ie.value},pa.members_count))))))})),!vr.length&&Re.createElement(it.Z,null)))},Wr={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},Br=ke(36466),Nr=ke(59301);const on=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ke,swimg:Ye},{name:"101\u8BA1\u5212",ptimg:Je,swimg:dt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:bt,swimg:vt},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:It,swimg:Vt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:kt,swimg:jt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:_t,swimg:Mt}];var jn=({className:yr,dataSource:vr=[],col:Mr=4,right:Gr,bottom:Xr=23,precision:vn=0,wrapWidth:Ir=1200,trackEventItems:Qr,loading:In,onRemove:Kn=()=>{},isCurrent:Jn=!0,showAlias:gn=!1,wrapClassName:ri,imgClassName:pi})=>{const si=Math.floor((Ir-(Mr-1)*Gr)/Mr),Nn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map($n=>(window.ENV==="build"&&($n.ptimg=`/react/build${$n.ptimg}`,$n.swimg=`/react/build${$n.swimg}`),$n));return Nr.createElement(lt.Z,{spinning:In},Nr.createElement("div",{className:ie()(Wr.list,yr)},!!(vr!=null&&vr.length)&&(vr==null?void 0:vr.map(($n,wi)=>{var vi;const{name:Mi,id:pa,identifier:Ma,featured:za,school_name:Ba,image_url:Bo,excellent:Va,is_plan:ba}=$n;return Nr.createElement("div",{key:pa,className:ie()(Wr.wrap,ri),style:{width:si,marginRight:(1+wi)%Mr===0?0:Gr+vn,marginBottom:Xr}},Nr.createElement("a",{className:Wr.li,onClick:Ji=>{Ji.preventDefault(),Ji.stopPropagation(),Qr&&(0,ct.L9)([Qr]),(0,ct.xg)(`/paths/${Ma}`)}},Nr.createElement("div",{className:ie()(Wr.img,pi)},Nr.createElement("img",{className:Wr.cover,src:`${nt.Z.IMG_SERVER+Bo}`}),Jn&&(0,Br.bg)()&&($n==null?void 0:$n.studying)&&Nr.createElement("div",{className:`${Wr.movebq} user-path-items`,onClick:Ji=>{Ji.stopPropagation(),Kn($n)}},Nr.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Nr.createElement("span",{className:"c-red"},"\u79FB\u9664")),(vi=$n==null?void 0:$n.subject_tags)==null?void 0:vi.map((Ji,Ka)=>{var so,lo;if(Ka===0){const Ha=(so=Nn.find(xa=>xa.name==Ji))==null?void 0:so.swimg;return Nr.createElement("img",{className:Wr.sign,src:Ha,style:{left:"-4px"}})}const co=(lo=Nn.find(Ha=>Ha.name==Ji))==null?void 0:lo.ptimg;return Nr.createElement("img",{className:Wr.sign,src:co,style:{left:`${48+52*(Ka-1)+2*Ka}px`}})}),Nr.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},($n==null?void 0:$n.excellent)&&Nr.createElement("div",{className:Wr.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Nr.createElement("div",{className:Wr.name},Nr.createElement(Ve.Z,{title:gn&&($n!=null&&$n.excellent_alias_name)?Nr.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Mi}`,Nr.createElement("br",null),Nr.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${$n==null?void 0:$n.excellent_alias_name}`)):Mi},Nr.createElement("span",{className:Wr.e},gn&&($n==null?void 0:$n.excellent_alias_name)||Mi))),Nr.createElement("div",{className:Wr.tags},Nr.createElement("div",null,Nr.createElement(Ve.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Nr.createElement("span",null,Nr.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Nr.createElement("span",null,$n.stages_count))),Nr.createElement(Ve.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Nr.createElement("span",null,Nr.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Nr.createElement("span",null,$n.members_count)))))))})),!vr.length&&Nr.createElement(it.Z,null)))},an={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Tn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t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38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Vr=ke(59301),Wn=({className:yr,dataSource:vr=[],col:Mr=4,right:Gr,bottom:Xr=23,precision:vn=0,wrapWidth:Ir=1200,trackEventItems:Qr,loading:In})=>{const Kn=Math.floor((Ir-(Mr-1)*Gr)/Mr);return Vr.createElement(lt.Z,{spinning:In},Vr.createElement("div",{className:ie()(an.list,yr)},!!vr.length&&vr.map((Jn,gn)=>{const{subject_identifier:ri,id:pi,identifier:si,power:Nn}=Jn,$n=Jn.is_public!=0&&Jn.is_public;return Vr.createElement("div",{className:an.wrap,key:pi,style:{width:Kn,marginRight:(1+gn)%Mr===0?0:Gr+vn,marginBottom:Xr}},Vr.createElement("a",{className:an.li,onClick:wi=>{wi.preventDefault(),Qr&&(0,ct.L9)([Qr]),(0,ct.xg)(Jn.first_category_url)}},Vr.createElement("div",{className:an.top},Vr.createElement(Ve.Z,{title:Jn.name},Vr.createElement("div",{className:an.name},Jn.name)),Vr.createElement("img",{className:an.img,src:nt.Z.IMG_SERVER+"/images/"+Jn.avatar_url}),Vr.createElement("div",{className:an.text,title:Jn.creator},Jn.creator),ri&&Vr.createElement("div",{className:an.btns},Vr.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Vr.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),$n&&Vr.createElement("div",{className:an.sign},"\u516C\u5F00")),Vr.createElement("div",{className:an.bottom},Jn.visits>0&&Vr.createElement(Ve.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Vr.createElement("span",null,Vr.createElement("i",{className:"iconfont icon-liulanyan"}),Vr.createElement("span",null,Jn.visits))),Jn.course_members_count>0&&Vr.createElement(Ve.Z,{title:"\u6210\u5458",placement:"bottom"},Vr.createElement("span",null,Vr.createElement("i",{className:"iconfont icon-chengyuan"}),Jn.course_members_count)),Jn.tasks_count>0&&Vr.createElement(Ve.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Vr.createElement("span",null,Vr.createElement("i",{className:"iconfont icon-zuoye"}),Jn.tasks_count)),Jn.is_end?Vr.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Vr.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Jn.is_accessible&&Vr.createElement("div",{className:an.lockWrap},Vr.createElement("img",{src:`${nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Vr.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!vr.length&&Vr.createElement(it.Z,null)))},Jt={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8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rapWidth:Ir=1200,wrapClassName:Qr,trackEventItems:In,loading:Kn})=>{const Jn=Math.floor((Ir-(Mr-1)*Gr)/Mr);return Re.createElement(lt.Z,{spinning:Kn},Re.createElement("div",{className:ie()(Jt.list,yr)},!!vr.length&&vr.map((gn,ri)=>{const{subject_identifier:pi,id:si,identifier:Nn,power:$n}=gn,wi=gn.is_public!=0&&gn.is_public;return Re.createElement("div",{className:ie()(`${Jt.wrap} ${gn.is_accessible?"":Jt.warpStyle}`,Qr),key:si,style:{width:Jn,marginRight:(1+ri)%Mr===0?0:Gr+vn,marginBottom:Xr}},Re.createElement("a",{className:Jt.li,onClick:vi=>{vi.preventDefault(),In&&(0,ct.L9)([In]),(0,ct.xg)(gn.first_category_url)}},Re.createElement("div",{className:Jt.creator},Re.createElement("img",{className:Jt.img,src:nt.Z.IMG_SERVER+"/images/"+gn.avatar_url}),Re.createElement("div",{className:Jt.text,title:gn.creator},gn.creator)),Re.createElement("div",{className:Jt.top},Re.createElement(Ve.Z,{title:gn.name},Re.createElement("div",{className:Jt.name},gn.name)),wi&&Re.createElement("div",{className:Jt.sign},"\u516C\u5F00")),Re.createElement("div",{className:Jt.middle},Re.createElement("div",{className:Jt.row,style:{marginBottom:6}},Re.createElement("div",null,Re.createElement("span",{className:Jt.text},"\u8BBF\u95EE\u91CF"),Re.createElement("span",{className:Jt.value},(gn==null?void 0:gn.visits)||0)),Re.createElement("div",null,Re.createElement("span",{className:Jt.text},"\u6210\u5458"),Re.createElement("span",{className:Jt.value},(gn==null?void 0:gn.course_members_count)||0))),Re.createElement("div",{className:Jt.row},Re.createElement("div",null,Re.createElement("span",{className:Jt.text,style:{width:42}},"\u4F5C",Re.createElement("span",{style:{marginLeft:14}},"\u4E1A")),Re.createElement("span",{className:Jt.value},(gn==null?void 0:gn.tasks_count)||0)),Re.createElement("div",null,Re.createElement("span",{className:Jt.text},"\u72B6\u6001"),gn.is_end?Re.createElement("span",{className:Jt.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):Re.createElement("span",{className:Jt.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),pi&&Re.createElement("div",{className:Jt.btns},Re.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Re.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!gn.is_accessible&&Re.createElement("div",{className:Jt.lockWrap},Re.createElement("img",{src:`${nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Re.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!vr.length&&Re.createElement(it.Z,null)))},Sr={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},Dr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJ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ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Yr=({className:yr,dataSource:vr=[],col:Mr=4,right:Gr,bottom:Xr=23,precision:vn=0,wrapWidth:Ir=1200,wrapClassName:Qr,trackEventItems:In,loading:Kn})=>{const Jn=Math.floor((Ir-(Mr-1)*Gr)/Mr);return Re.createElement(lt.Z,{spinning:Kn},Re.createElement("div",{className:ie()(Sr.list,yr)},!!vr.length&&vr.map((gn,ri)=>{const{subject_identifier:pi,id:si,identifier:Nn,power:$n}=gn,wi=gn.is_public!=0&&gn.is_public;return Re.createElement("div",{className:ie()(`${Sr.wrap} ${gn.is_accessible?"":Sr.warpStyle}`,Qr),key:si,style:{width:Jn,marginRight:(1+ri)%Mr===0?0:Gr+vn,marginBottom:Xr}},Re.createElement("a",{className:Sr.li,onClick:vi=>{vi.preventDefault(),In&&(0,ct.L9)([In]),(0,ct.xg)(gn.first_category_url)}},Re.createElement("div",{className:Sr.creator},Re.createElement("img",{className:Sr.img,src:nt.Z.IMG_SERVER+"/images/"+gn.avatar_url}),Re.createElement("div",{className:Sr.text,title:gn.creator},gn.creator)),Re.createElement("div",{className:Sr.top},Re.createElement(Ve.Z,{title:gn.name},Re.createElement("div",{className:Sr.name},gn.name)),wi&&Re.createElement("div",{className:Sr.sign})),Re.createElement("div",{className:Sr.middle},Re.createElement("div",{className:Sr.row,style:{marginBottom:6}},Re.createElement("div",null,Re.createElement("span",{className:Sr.text},"\u8BBF\u95EE\u91CF"),Re.createElement("span",{className:Sr.value},(gn==null?void 0:gn.visits)||0)),Re.createElement("div",null,Re.createElement("span",{className:Sr.text},"\u6210\u5458"),Re.createElement("span",{className:Sr.value},(gn==null?void 0:gn.course_members_count)||0))),Re.createElement("div",{className:Sr.row},Re.createElement("div",null,Re.createElement("span",{className:Sr.text,style:{width:42}},"\u4F5C",Re.createElement("span",{style:{marginLeft:14}},"\u4E1A")),Re.createElement("span",{className:Sr.value},(gn==null?void 0:gn.tasks_count)||0)),Re.createElement("div",null,Re.createElement("span",{className:Sr.text},"\u72B6\u6001"),gn.is_end?Re.createElement("span",{className:Sr.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):Re.createElement("span",{className:Sr.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),pi&&Re.createElement("div",{className:Sr.btns},Re.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Re.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!gn.is_accessible&&Re.createElement("div",{className:Sr.lockWrap},Re.createElement("img",{src:`${nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Re.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!vr.length&&Re.createElement(it.Z,null)))},Kt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},xt=ke(44225),Ot=({dataSource:yr=[],value:vr,onChange:Mr,className:Gr,style:Xr={},tabBarExtraContent:vn})=>Re.createElement("div",{className:ie()(Kt.tabs,Gr),style:Xr},Re.createElement("div",{className:Kt.tabsWrap},yr.map((Ir,Qr)=>Re.createElement("aside",{className:Kt.tab,onClick:()=>{Mr(Ir.id),Ir.link&&xt.history.push(Ir.link)},key:Qr},Re.createElement("div",{className:vr===Ir.id?Kt.active:""},Ir.name),(Ir==null?void 0:Ir.resetCount)==null&&(Ir==null?void 0:Ir.total)!==void 0&&Re.createElement("span",null,"\uFF08",Ir==null?void 0:Ir.total,"\uFF09"),(Ir==null?void 0:Ir.resetCount)!==void 0&&(Ir==null?void 0:Ir.total)!==void 0&&Re.createElement(Ve.Z,{title:(Ir==null?void 0:Ir.tip)!=null?Ir==null?void 0:Ir.tip:""},Re.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Re.createElement("span",{style:{color:"#000"}},Ir==null?void 0:Ir.resetCount),"/",Re.createElement("span",null,Ir==null?void 0:Ir.total),"\uFF09"))))),Re.createElement("div",{className:Kt.tabBar},vn)),Et={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},Zt=({dataSource:yr=[],value:vr,onChange:Mr,className:Gr,style:Xr={},tabBarExtraContent:vn})=>Re.createElement("div",{className:ie()(Et.tabs,Gr),style:Xr},Re.createElement("div",{className:Et.tabsWrap},yr.map((Ir,Qr)=>Re.createElement("aside",{className:Et.tab,onClick:()=>{Mr(Ir.id),Ir.link&&xt.history.push(Ir.link)},key:Qr},Re.createElement("div",{className:vr===Ir.id?Et.active:""},Ir.name),(Ir==null?void 0:Ir.resetCount)==null&&(Ir==null?void 0:Ir.total)!==void 0&&Re.createElement("span",null,"\uFF08",Ir==null?void 0:Ir.total,"\uFF09"),(Ir==null?void 0:Ir.resetCount)!==void 0&&(Ir==null?void 0:Ir.total)!==void 0&&Re.createElement(Ve.Z,{title:(Ir==null?void 0:Ir.tip)!=null?Ir==null?void 0:Ir.tip:""},Re.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Re.createElement("span",{style:{color:"#000"}},Ir==null?void 0:Ir.resetCount),"/",Re.createElement("span",null,Ir==null?void 0:Ir.total),"\uFF09"))))),Re.createElement("div",{className:Et.tabBar},vn)),nr={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},pr=({dataSource:yr=[],value:vr,onChange:Mr,className:Gr,style:Xr={},tabBarExtraContent:vn})=>Re.createElement("div",{className:ie()(nr.tabs,Gr),style:Xr},Re.createElement("div",{className:nr.tabsWrap},yr.map((Ir,Qr)=>Re.createElement("aside",{className:`${nr.tab} ${vr===Ir.id?nr.active:""}`,onClick:()=>{Mr(Ir.id),Ir.link&&xt.history.push(Ir.link)},key:Qr},Re.createElement("div",null,Ir.name),(Ir==null?void 0:Ir.resetCount)==null&&(Ir==null?void 0:Ir.total)!==void 0&&Re.createElement("span",null,"\uFF08",Ir==null?void 0:Ir.total,"\uFF09"),(Ir==null?void 0:Ir.resetCount)!==void 0&&(Ir==null?void 0:Ir.total)!==void 0&&Re.createElement(Ve.Z,{title:(Ir==null?void 0:Ir.tip)!=null?Ir==null?void 0:Ir.tip:""},Re.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Re.createElement("span",{style:{color:"#000"}},Ir==null?void 0:Ir.resetCount),"/",Re.createElement("span",null,Ir==null?void 0:Ir.total),"\uFF09"))))),Re.createElement("div",{className:nr.tabBar},vn)),Lr=({className:yr,style:vr={},children:Mr})=>Re.createElement("div",{className:ie()(yr),style:vr},Mr),Er={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},tr=ke(38854),br=ke(20834);const Wt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Xt=({sortValue:yr,dropValue:vr,className:Mr,onSort:Gr,onDrop:Xr,dataSource:vn=Wt})=>{var Ir;return Re.createElement("div",{className:ie()(Er.orderWrap,Mr)},Re.createElement(tr.Z,{dropdownRender:()=>Re.createElement(br.default,null,vn.map((Qr,In)=>Re.createElement(br.default.Item,{key:In,onClick:()=>Xr(Qr.id)},Qr.name)))},Re.createElement("span",{className:Er.orderTextWrap},(Ir=vn.find(Qr=>vr===Qr.id))==null?void 0:Ir.name)),Re.createElement("span",{className:Er.orderIconWrap},Re.createElement("span",{className:Er.orderAsc},Re.createElement("i",{className:yr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Er.cursorPointer} ${Er.active}`:`iconfont icon-sanjiaoxing-up font12 ${Er.cursorPointer}`,onClick:()=>Gr(yr==="asc"?"desc":"asc")})),Re.createElement("span",{className:Er.orderDesc},Re.createElement("i",{className:yr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Er.cursorPointer} ${Er.active}`:`iconfont icon-sanjiaoxing-down font12 ${Er.cursorPointer}`,onClick:()=>Gr(yr==="asc"?"desc":"asc")}))))},qt={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const mr=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var xr=({sortValue:yr,dropValue:vr,className:Mr,onSort:Gr,onDrop:Xr,dataSource:vn=mr})=>{var Ir;return Re.createElement("div",{className:ie()(qt.orderWrap,Mr)},Re.createElement(tr.Z,{dropdownRender:()=>Re.createElement(br.default,null,vn.map((Qr,In)=>Re.createElement(br.default.Item,{key:In,onClick:()=>Xr(Qr.id)},Qr.name)))},Re.createElement("span",{className:qt.orderTextWrap},(Ir=vn.find(Qr=>vr===Qr.id))==null?void 0:Ir.name)),Re.createElement("span",{className:qt.orderIconWrap},Re.createElement("span",{className:qt.orderAsc},Re.createElement("i",{className:yr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${qt.cursorPointer} ${qt.active}`:`iconfont icon-sanjiaoxing-up font12 ${qt.cursorPointer}`,onClick:()=>Gr(yr==="asc"?"desc":"asc")})),Re.createElement("span",{className:qt.orderDesc},Re.createElement("i",{className:yr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${qt.cursorPointer} ${qt.active}`:`iconfont icon-sanjiaoxing-down font12 ${qt.cursorPointer}`,onClick:()=>Gr(yr==="asc"?"desc":"asc")}))))},Lt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},Yt=ke(3113),er=ke(66911),dr=Object.defineProperty,lr=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,Cr=(yr,vr,Mr)=>vr in yr?dr(yr,vr,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):yr[vr]=Mr,_r=(yr,vr)=>{for(var Mr in vr||(vr={}))fr.call(vr,Mr)&&Cr(yr,Mr,vr[Mr]);if(lr)for(var Mr of lr(vr))hr.call(vr,Mr)&&Cr(yr,Mr,vr[Mr]);return yr},Zr=(yr,vr)=>{var Mr={};for(var Gr in yr)fr.call(yr,Gr)&&vr.indexOf(Gr)<0&&(Mr[Gr]=yr[Gr]);if(yr!=null&&lr)for(var Gr of lr(yr))vr.indexOf(Gr)<0&&hr.call(yr,Gr)&&(Mr[Gr]=yr[Gr]);return Mr},$r=(yr,vr,Mr)=>new Promise((Gr,Xr)=>{var vn=In=>{try{Qr(Mr.next(In))}catch(Kn){Xr(Kn)}},Ir=In=>{try{Qr(Mr.throw(In))}catch(Kn){Xr(Kn)}},Qr=In=>In.done?Gr(In.value):Promise.resolve(In.value).then(vn,Ir);Qr((Mr=Mr.apply(yr,vr)).next())}),cn=yr=>{var vr=yr,{className:Mr,style:Gr,children:Xr,loading:vn=!1,openLoading:Ir,onClick:Qr=()=>{},size:In="middle",shape:Kn="round",theme:Jn}=vr,gn=Zr(vr,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[ri,pi]=(0,Re.useState)(!1),si=(0,Re.useMemo)(()=>{switch(Jn){case er.Fy.THEMEONE:return Lt.ThemeOne;case er.Fy.DEFAULT:default:return Lt.btn}},[Jn]);return Re.createElement(Yt.ZP,_r({onClick:(0,oe.throttle)(Nn=>$r(void 0,null,function*(){Ir&&pi(!0);try{yield Qr(Nn)}catch($n){console.log("error",$n)}Ir&&pi(!1)}),2e3,{leading:!0,trailing:!1}),className:ie()(si,Lt[`${In}-${Kn}`],Mr),style:Gr,size:In,shape:Kn,loading:ri||vn},gn),Xr)},dn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},wn=({className:yr,style:vr,children:Mr=null,onClick:Gr,title:Xr})=>Re.createElement("div",{className:ie()(dn.head,yr),style:vr},Re.createElement("span",{className:"primary-hover",onClick:Gr},Re.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Re.createElement("b",{title:Xr},Xr),Re.createElement("div",{className:dn.node},Mr)),fn={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},un=({confirmShow:yr=!0,confirmTitle:vr,confirmClick:Mr,cancelShow:Gr=!0,cancelTitle:Xr,cancelClick:vn,className:Ir,style:Qr,confirmLoading:In=!1})=>Re.createElement("div",{className:ie()(fn.btns,Ir),style:Qr},yr&&Re.createElement(Yt.ZP,{loading:In,onClick:Mr,type:"primary",className:fn.confirm},vr),Gr&&Re.createElement(Yt.ZP,{onClick:vn,className:fn.cancel},Xr)),mn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},en=({className:yr,style:vr={},LeftContent:Mr,children:Gr,RightContent:Xr})=>Re.createElement("div",{className:ie()(mn.fixedBottom,yr),style:vr},Re.createElement("div",{className:mn.wrap},Re.createElement("div",{className:mn.left},Mr),Re.createElement("div",{className:mn.center},Gr),Re.createElement("div",{className:mn.right},Xr))),Ln={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},hn=({className:yr,style:vr={},dataSource:Mr=[]})=>Re.createElement("div",{className:ie()(Ln.crumbs,yr),style:vr},Mr.map((Gr,Xr)=>Xr<Mr.length-1?Re.createElement(Re.Fragment,{key:Xr},Gr.path||Gr.onClick?Re.createElement("span",{className:Ln.hover,onClick:Gr!=null&&Gr.onClick?Gr.onClick:()=>xt.history.push(Gr.path)},Gr.name):Re.createElement("span",null,Gr.name),Re.createElement("span",null,"\xA0",">","\xA0")):Re.createElement("span",{key:Xr,style:{color:"#5F6368"}},Gr.name))),Kr=ke(31797),Ur=Object.defineProperty,Dn=Object.defineProperties,bn=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,kn=(yr,vr,Mr)=>vr in yr?Ur(yr,vr,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):yr[vr]=Mr,zn=(yr,vr)=>{for(var Mr in vr||(vr={}))Un.call(vr,Mr)&&kn(yr,Mr,vr[Mr]);if(Pn)for(var Mr of Pn(vr))Zn.call(vr,Mr)&&kn(yr,Mr,vr[Mr]);return yr},di=(yr,vr)=>Dn(yr,bn(vr)),pn=(yr,vr)=>{var Mr={};for(var Gr in yr)Un.call(yr,Gr)&&vr.indexOf(Gr)<0&&(Mr[Gr]=yr[Gr]);if(yr!=null&&Pn)for(var Gr of Pn(yr))vr.indexOf(Gr)<0&&Zn.call(yr,Gr)&&(Mr[Gr]=yr[Gr]);return Mr};const{Countdown:An}=Kr.default;var ei=yr=>{var vr=yr,{onChange:Mr}=vr,Gr=pn(vr,["onChange"]);const[Xr,vn]=(0,Re.useState)(null);(0,Re.useEffect)(()=>{typeof Xr=="number"&&Xr>=0&&Mr(Xr)},[Xr]);const Ir=Qr=>{const In=Math.floor(Qr/1e3);vn(In)};return Re.createElement(An,di(zn({},Gr),{onChange:Ir}))},Si={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},bi=({DataProps:yr,className:vr,style:Mr={}})=>{var Gr;return Re.createElement("div",{className:ie()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",Si.ClassRoomItem,vr),style:Mr,onClick:()=>{(0,ct.xg)(yr==null?void 0:yr.first_category_url)}},Re.createElement("div",{className:"flex flex-col item-center"},Re.createElement("img",{src:`${(Gr=nt.Z)==null?void 0:Gr.IMG_SERVER}/images/${yr==null?void 0:yr.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(yr==null?void 0:yr.subject_identifier)&&Re.createElement("div",{className:"mt-40px"},Re.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),Re.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),Re.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},Re.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(yr!=null&&yr.is_public)&&Re.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),Re.createElement("span",{className:ie()("text-16px font-medium",Si.TitleDom)},yr==null?void 0:yr.name)),Re.createElement("div",{className:"c-grey-333 font-medium"},yr==null?void 0:yr.creator),Re.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",yr==null?void 0:yr.course_members_count),Re.createElement("div",{className:"c-grey-333 flex item-center justify-between"},Re.createElement("div",null,"\u4F5C\u4E1A\uFF1A",yr==null?void 0:yr.tasks_count),yr!=null&&yr.is_end?Re.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):Re.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},ci=Object.defineProperty,Oi=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,Sn=(yr,vr,Mr)=>vr in yr?ci(yr,vr,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):yr[vr]=Mr,rn=(yr,vr)=>{for(var Mr in vr||(vr={}))Di.call(vr,Mr)&&Sn(yr,Mr,vr[Mr]);if(Oi)for(var Mr of Oi(vr))Cn.call(vr,Mr)&&Sn(yr,Mr,vr[Mr]);return yr},ii=({DataProps:yr=[],selectValue:vr,onChange:Mr,className:Gr,style:Xr={},extra:vn,classNameItem:Ir,styleItem:Qr={},barHidden:In})=>{const[Kn,Jn]=(0,Re.useState)();return(0,Re.useEffect)(()=>{Jn(Array.isArray(vr)?vr:[vr])},[vr]),Re.createElement("div",{className:ie()("flex px-20px py-10px gap-40px",Gr),style:rn({borderBottom:"1px solid #D3F0FF"},Xr)},yr==null?void 0:yr.map(gn=>Re.createElement("div",{key:gn==null?void 0:gn.id,className:ie()("flex item-center justify-center current c-grey-333 text-16 relative",Ir,gn==null?void 0:gn.className),style:rn(rn({color:Kn!=null&&Kn.includes(gn==null?void 0:gn.id)?"#1890FF":"",minWidth:88},Qr),(gn==null?void 0:gn.style)||{}),onClick:ri=>{Mr==null||Mr({domEvent:ri,item:gn}),gn!=null&&gn.link&&xt.history.push(gn==null?void 0:gn.link)}},gn==null?void 0:gn.name,!In&&(Kn==null?void 0:Kn.includes(gn==null?void 0:gn.id))&&Re.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),Re.createElement("div",{className:"ml-auto"},vn))},xi=Object.defineProperty,Ci=Object.defineProperties,Ai=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertySymbols,Ii=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,Fi=(yr,vr,Mr)=>vr in yr?xi(yr,vr,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):yr[vr]=Mr,Yi=(yr,vr)=>{for(var Mr in vr||(vr={}))Ii.call(vr,Mr)&&Fi(yr,Mr,vr[Mr]);if(gi)for(var Mr of gi(vr))Ki.call(vr,Mr)&&Fi(yr,Mr,vr[Mr]);return yr},li=(yr,vr)=>Ci(yr,Ai(vr)),Li=({value:yr,onChange:vr,onInputChange:Mr,className:Gr,style:Xr={},InputProps:vn})=>{const[Ir,Qr]=(0,Re.useState)(yr);return Re.createElement("div",{className:ie()("flex item-center rounded-full px-10px py-2px",Gr),style:Yi({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Xr)},Re.createElement(Oe.default,li(Yi({bordered:!1},vn),{onChange:In=>{Qr(In.target.value),Mr==null||Mr(encodeURIComponent(In.target.value))},onPressEnter:In=>{vr==null||vr({domEvent:In,item:{value:Ir}})}})),Re.createElement("img",{className:"h-22px current",src:ke(25365),height:22,onClick:In=>{vr==null||vr({domEvent:In,item:{value:Ir}})}}))}},8204:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return gt}});var Re=ke(59301);function gt(x,De){const ve=(0,Re.useRef)();(0,Re.useEffect)(()=>{ve.current=x}),(0,Re.useEffect)(()=>{function re(){ve.current()}if(De!==null){let ne=setInterval(re,De);return()=>clearInterval(ne)}},[De])}},15500:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Ne}});var Re=ke(59301),gt=ke(78241),x=ke(43428),De=ke(43418),ve=ke(8591),re=ke(24905),ne=ke(84897),ie=ke(65038),oe=ke(62488),se=ke(2159),me={"code-panel-container":"code-panel-container___RFtv_","action-oj-bar":"action-oj-bar___ByFmZ",active:"active___s9gT5",tip:"tip___XZhl7"},te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IPgBfTBBx9UUHyQGgslscGCIr2QHlpfWg1pktPW0rTunvttdqadTY85yUmTTXJSwe9pZ3dm/r/5f8PMtzQYs96FwEEI0Yj/KojGVUV5Y3dn8DgNnrduV8IQAWtCXty0iggYGmybI1vgiIS8MFNF2Hx1qInoRFc0vIcGR0xRKaEqQGuTH/GpPBqDHjDGkczaWBfxOZAlNqt77eiIznZHw09UAWkqIaCrEKDaiVXNJJDMMPDKtc0HJBE624PwaMoqwkxPnciUcDmemdGZD8irETrbQ6sOIwVKjCM2mvyfAp25VsTjLV7Ml9kEB0gAQXVho2vm0MCfOXwxksbeTTpe3VU/S5UBOJ6afvWMsTBUTYDKMA/Vq/hgdxgRvXrzT5SA03nAtwjUioHcwJTtcgO1IqClwLiFWjYQ48BbQyaumAz7thg4EK1zdSwUBPBzFkhz4DEv8KjMYUUsG0jOkSoIHPrFwpjJ0LujDn0dxoJQEuZUFjA5sN0HdHiru68IaClQbmBqdjBWOtXXUYfeHbOdkvfu8Bxn4qyAj1Pj2KgZ6NEjeETTHbtW7FDZdAl19NcEXuysx7aIVpWLWB7OgVlOk31X/JD1F+IsBxWE/kAbnvSFage02I5mEBhjOWzWZtyT7cPWKDgEfKTgw4atCHDlwdxl54pJfJqcwJFwOzbcS49cxDeZv3EiN+Wsp9dowXPepgcD9GP2Jr7P3kCbpuNoeBPKV9rZYgKfJCccoKf9jXjJ37o4kELT9ZAmy8ZlxnD+H3yZvuqM3m804wWjGb8VLHyVuY4Ml7cdsFdfix6K4NJkekblfhWjz6MgWFe9Wd3ymcTwkTqOcultQEUWcmvPxAF7HYJJDcyuKBkrgBIAgm4F3fQ7bSRwxpDTzh99ZguabM/sj0Qnu6PhZ2loxHpfEN6GEHMOdzfS9+8T01OQYEWq/k1pK/mxP7H238FEZAlQf3c09J1Tyf8eF3ohm1r0kmJ58R5n/DW3qNwvXvmh3hzLodBqonREAOvLY0PQ3nw5//C3sh3YHEjsIirJZ9e/FsPnc+sZCpeX5CTRaNPO0DYptmfy4lMATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",ae=ke(78267),ue=ke(93351),de=ke(59301),he=Object.defineProperty,we=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Le=(Ze,Pe,Ue)=>Pe in Ze?he(Ze,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Ze[Pe]=Ue,Ce=(Ze,Pe)=>{for(var Ue in Pe||(Pe={}))ye.call(Pe,Ue)&&Le(Ze,Ue,Pe[Ue]);if(xe)for(var Ue of xe(Pe))Ae.call(Pe,Ue)&&Le(Ze,Ue,Pe[Ue]);return Ze},je=(Ze,Pe)=>we(Ze,Se(Pe));const Me={theme:(0,se.G)("cmCodeMode","vs-dark"),fontSize:(0,se.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,se.G)("cmTabToSpace",!0)};var Oe=(Ze=>(Ze[Ze.set_font_size=0]="set_font_size",Ze[Ze.set_theme=1]="set_theme",Ze[Ze.on_tab_to_space=2]="on_tab_to_space",Ze[Ze.set_show_editor_setting=3]="set_show_editor_setting",Ze))(Oe||{});function Ee(Ze,Pe){switch(Pe.type){case 3:return je(Ce({},Ze),{showEditorSetting:Pe.payload});case 1:return je(Ce({},Ze),{theme:Pe.payload});case 0:return je(Ce({},Ze),{fontSize:Pe.payload});case 2:return je(Ce({},Ze),{tabToSpace:Pe.payload});default:throw new Error}}var Ne=({isLoading:Ze,value:Pe=[],onChange:Ue,form:Qe})=>{var tt;const[at,lt]=(0,Re.useReducer)(Ee,Me),{theme:Ve,fontSize:Xe,showEditorSetting:nt,tabToSpace:ct}=at,[ot,et]=(0,Re.useState)("C"),[qe,it]=(0,Re.useState)(!1),[yt,pt]=(0,Re.useState)([]),Dt=(0,Re.useRef)([]),At=gt.default.useWatch(["hack","languages"],Qe);(0,Re.useEffect)(()=>{Pe!=null&&Pe.length&&(Dt.current=(0,ae.cloneDeep)(Pe))},[Pe]),(0,Re.useEffect)(()=>{qe&&pt(At)},[qe]),(0,Re.useEffect)(()=>{et(At==null?void 0:At[0])},[At]);const st={onFontSizeChange:He=>{lt({type:0,payload:He}),(0,se.t)("cmFontSize",He)},tabToSpace:ct,cmFontSize:Xe,className:"oj",cmCodeMode:Ve,onTabToSpace:He=>{lt({type:2,payload:He}),(0,se.t)("cmTabToSpace",He)},onCodeModeChange:He=>{lt({type:1,payload:He}),(0,se.t)("cmCodeMode",He)}};function Ge(){lt({type:3,payload:!1})}function We(){lt({type:3,payload:!0})}function le(He){var pe;const Ie=(pe=Dt.current)==null?void 0:pe.map(Ke=>(Ke.language===ot&&(Ke.code=He),Ke));Dt.current=(0,ae.cloneDeep)(Ie),Ue(Ie)}const fe={key:ot,value:(tt=Pe==null?void 0:Pe.find(He=>He.language===ot))==null?void 0:tt.code,language:ot,onChange:le,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:Xe,insertSpaces:ct}};console.log(888,Pe,At);const ze=Pe.filter(He=>At==null?void 0:At.includes(He.language));return de.createElement(Re.Fragment,null,de.createElement("div",{className:me["code-panel-container"]},de.createElement(_e,{setVisible:it,languageItems:ze,onLanguage:He=>et(He),language:ot,onShowCodeSetting:We}),!Ze&&de.createElement(ne.ZP,Ce({},fe))),de.createElement(oe.Z,null,de.createElement(x.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:nt,onClose:Ge},de.createElement(ie.Z,Ce({},st)))),de.createElement(De.default,{centered:!0,open:qe,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!yt.length){ve.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}Qe.setFieldValue(["hack","languages"],yt),it(!1)},onCancel:()=>it(!1)},de.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},de.createElement(re.default.Group,{value:yt,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:He=>{pt(He)}}))))};function _e({languageItems:Ze,language:Pe,onShowCodeSetting:Ue,onLanguage:Qe,setVisible:tt}){return de.createElement("div",{className:me["action-oj-bar"]},Ze==null?void 0:Ze.map(at=>de.createElement("aside",{className:Pe===(at==null?void 0:at.language)?me.active:"",onClick:()=>Qe(at==null?void 0:at.language),key:at==null?void 0:at.language},de.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),de.createElement("span",null,at==null?void 0:at.language))),de.createElement("div",{className:me.tip},de.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),de.createElement("span",null,"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u660E\u786E\u7F16\u8BD1\u8D77\u70B9")),de.createElement(ue.op,{onClick:()=>tt(!0),shape:"default"},de.createElement("img",{src:te,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},49193:function(or,Ht,ke){"use strict";ke.d(Ht,{GM:function(){return ie},MK:function(){return ne},PR:function(){return gt},ZS:function(){return se},d1:function(){return x},fu:function(){return De},j2:function(){return oe},l_:function(){return ve},uE:function(){return me},zQ:function(){return re}});var Re=ke(58661);function gt(){return(0,Re.U2)("problems/new.json")}function x(ae="question"){return(0,Re.U2)("disciplines.json",{source:ae})}function De(ae){return(0,Re.U2)(`problems/${ae}/edit.json`)}function ve(ae,ue){return(0,Re.gz)(`problems/${ae}.json`,ue)}function re(ae){return(0,Re.v_)("problems.json",ae)}function ne(ae,ue){return(0,Re.v_)(`exercises/${ae}/exercise_questions.json`,ue)}function ie(ae,ue){return(0,Re.gz)(`exercise_questions/${ae}.json`,ue)}function oe(ae){return(0,Re.v_)(`problems/${ae}/publish.json`)}function se(ae){return(0,Re.v_)(`problems/${ae}/cancel_publish.json`)}function me(ae){return(0,Re.U2)(`problems/${ae}/start.json`)}function te(ae,ue){return post("tag_disciplines.json",{name:ue,sub_discipline_id:ae})}},97162:function(or,Ht,ke){"use strict";ke.d(Ht,{D0:function(){return ne},R8:function(){return De},jw:function(){return re},y3:function(){return ie}});var Re=ke(57809),gt=ke(59301);const{Option:x}=Re.default;var De=(oe=>(oe[oe.language=0]="language",oe[oe.difficult=1]="difficult",oe[oe.category=2]="category",oe[oe.openOrNot=3]="openOrNot",oe))(De||{});const ve={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",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 re(oe){return ve[oe].map(se=>gt.createElement(x,{key:se.title,value:se.key}," ",se.title," "))}function ne(oe,se){oe.map(me=>{const{id:te,name:ae,sub_disciplines:ue}=me;let de={value:te,label:ae};se.push(de),ue&&ue.length>0&&(de.children=[],ne(ue,de.children))})}function ie(oe,se){var me;let te=[];for(let ae=0;ae<oe.length;ae++){const ue=oe[ae];if(((me=ue.sub_disciplines)==null?void 0:me.length)>0){te[0]=ue.id;for(let de=0;de<ue.sub_disciplines.length;de++){const he=ue.sub_disciplines[de];if(he.id===se)return te[1]=he.id,[te,he.tag_disciplines||he.sub_disciplines||[]]}}}return[te,[]]}},26015:function(or,Ht,ke){"use strict";ke.d(Ht,{Y2:function(){return Qe},ZP:function(){return tt}});var Re=ke(59301),gt=ke(54580),x=ke(8591),De=ke(43418),ve=ke(95237),re=ke(5112),ne=ke(3113),ie=ke(24905),oe=ke(6848),se=ke(92832),me={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"},te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj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(59301),ye=Object.defineProperty,Ae=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Oe=(at,lt,Ve)=>lt in at?ye(at,lt,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):at[lt]=Ve,Ee=(at,lt)=>{for(var Ve in lt||(lt={}))je.call(lt,Ve)&&Oe(at,Ve,lt[Ve]);if(Ce)for(var Ve of Ce(lt))Me.call(lt,Ve)&&Oe(at,Ve,lt[Ve]);return at},Ne=(at,lt)=>Ae(at,Le(lt)),_e=(at,lt,Ve)=>new Promise((Xe,nt)=>{var ct=qe=>{try{et(Ve.next(qe))}catch(it){nt(it)}},ot=qe=>{try{et(Ve.throw(qe))}catch(it){nt(it)}},et=qe=>qe.done?Xe(qe.value):Promise.resolve(qe.value).then(ct,ot);et((Ve=Ve.apply(at,lt)).next())});const{Dragger:Ze}=gt.default,Pe=at=>{const lt=it=>it&&it.substring(0,it.lastIndexOf("."));for(var Ve=[...at],Xe=0,nt=[],ct=0;ct<Ve.length;ct++){for(var ot="",et=0;et<nt.length;et++)if(lt(nt[et][0].name)==lt(Ve[ct].name)){Xe=1,ot=et;break}if(Xe==1)nt[ot].push(Ve[ct]),Xe=0;else if(Xe==0){let it=new Array;it.push(Ve[ct]),nt.push(it)}}return nt.map(it=>{if(it.forEach(yt=>{let pt=yt.name.split(/\.(?=[^\.]+$)/);yt.name=`${pt[0]}.${pt[1].toLowerCase()}`}),it[0].name.includes(".in"))return it.length===2?it:[it[0],{}];if(it[0].name.includes(".out"))return it.length===2?it.reverse():[{},it[0]]})},Ue=({onClose:at,onOK:lt,visible:Ve,wrapClassName:Xe,rootIdentifier:nt,multiple:ct=!1,defaultMultipleValue:ot=!0})=>{const[et,qe]=(0,Re.useState)([]),[it,yt]=(0,Re.useState)({}),[pt,Dt]=(0,Re.useState)(!1),[At,st]=(0,Re.useState)(!0),[Ge,We]=(0,Re.useState)(null),le=(0,Re.useRef)([]),fe=(0,Re.useRef)(0),ze=()=>{at()};(0,Re.useEffect)(()=>{He()},[]),(0,Re.useEffect)(()=>{Ve&&(le.current=[],fe.current=0,qe([]),st(ot))},[Ve]);const He=()=>_e(void 0,null,function*(){try{We(!0)}catch(vt){}}),pe=vt=>vt&&vt.substring(0,vt.lastIndexOf(".")),Ie=vt=>{var It,Vt;const kt=pe((It=vt[0])==null?void 0:It.name)||pe((Vt=vt[1])==null?void 0:Vt.name),jt=et.filter(_t=>pe(_t.name)!==kt);le.current=[...jt],qe([...jt])},Ke=vt=>{if(!At){const Mt=new FormData;Mt.append("file",vt.file),(0,de.ZP)("/api/attachments/get_file_content.json",{method:"post",body:Mt},!0).then(St=>{if(St.status===0){fe.current=fe.current+1;const Nt=le.current.map(Ft=>{var Ut;if(Ft.name===vt.name){const sr=Ee({},Ft);return(Ut=vt==null?void 0:vt.name)!=null&&Ut.includes(".in")?sr.input=St==null?void 0:St.content:sr.output=St==null?void 0:St.content,sr}return Ft});if(le.current=[...Nt],qe([...Nt]),fe.current>0&&fe.current===et.length){Dt(!1);let Ft=Pe(Nt);Ft=Ft.filter(Ut=>{var sr,gr;return!!((sr=Ut[0])!=null&&sr.name&&((gr=Ut[1])!=null&&gr.name))}),Ft=Ft.map(Ut=>Ne(Ee(Ee({},Ut[0]),Ut[1]),{is_file:!1})),lt(Ft),at()}}else Dt(!1),at()});return}if(Ge){const Mt=new FormData;Mt.append("file",vt.file),nt===null?Mt.append("identifier","testsets"):Mt.append("identifier",nt),(0,de.ZP)("/api/attachments.json",{method:"post",body:Mt},!0).then(St=>{if(St.filename){fe.current=fe.current+1;const Nt=le.current.map(Ft=>{var Ut;if(Ft.name===(St==null?void 0:St.filename)){const sr=Ne(Ee({},Ft),{is_oss:!Ge});return(Ut=St==null?void 0:St.filename)!=null&&Ut.includes(".in")?(sr.in_object_key=St==null?void 0:St.object,sr.in_object_size=St==null?void 0:St.size,sr.input=St==null?void 0:St.filename,sr.in_file=vt):(sr.out_object_key=St==null?void 0:St.object,sr.out_object_size=St==null?void 0:St.size,sr.output=St==null?void 0:St.filename,sr.out_file=vt),sr}return Ft});if(le.current=[...Nt],qe([...Nt]),fe.current>0&&fe.current===et.length){Dt(!1);let Ft=Pe(Nt);Ft=Ft.filter(Ut=>{var sr,gr;return!!((sr=Ut[0])!=null&&sr.name&&((gr=Ut[1])!=null&&gr.name))}),Ft=Ft.map(Ut=>Ne(Ee(Ee({},Ut[0]),Ut[1]),{is_file:!0})),lt(Ft),at()}}else Dt(!1),at()});return}const It=new(ue())({endpoint:it.end_point,region:it.region,accessKeyId:it.access_key_id,accessKeySecret:it.access_key_secret,bucket:it.bucket,stsToken:it.security_token}),Vt=vt.name,kt={container_type:"TestSet",file_name:Vt},jt=(0,he.Z)();let _t=`testsets/${nt}/${jt}${Vt.indexOf(".")>-1?"."+Vt.split(".").pop():""}`;nt===null&&(_t=`testsets/${jt}${Vt.indexOf(".")>-1?"."+Vt.split(".").pop():""}`),It.multipartUpload(_t,new Blob([vt.file],{type:vt.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Vt+""},url:it==null?void 0:it.callback_url,host:it==null?void 0:it.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,de.rz)(kt)}}).then(function(Mt){if(Mt.data.status===0){fe.current=fe.current+1;const ft=le.current.map(St=>{var Nt,Ft,Ut,sr,gr,wr,zr,Wr,Br,Nr,on,Mn,jn,an,Tn,Vr,Gn;if(St.name===((Ft=(Nt=Mt.data)==null?void 0:Nt.data)==null?void 0:Ft.file_name)){const Wn=Ne(Ee({},St),{is_oss:!Ge});return(gr=(sr=(Ut=Mt.data)==null?void 0:Ut.data)==null?void 0:sr.file_name)!=null&&gr.includes(".in")?(Wn.in_object_key=(zr=(wr=Mt.data)==null?void 0:wr.data)==null?void 0:zr.object,Wn.in_object_size=(Br=(Wr=Mt.data)==null?void 0:Wr.data)==null?void 0:Br.size,Wn.input=(on=(Nr=Mt.data)==null?void 0:Nr.data)==null?void 0:on.file_name,Wn.in_file=vt):(Wn.out_object_key=(jn=(Mn=Mt.data)==null?void 0:Mn.data)==null?void 0:jn.object,Wn.out_object_size=(Tn=(an=Mt.data)==null?void 0:an.data)==null?void 0:Tn.size,Wn.output=(Gn=(Vr=Mt.data)==null?void 0:Vr.data)==null?void 0:Gn.file_name,Wn.out_file=vt),Wn}return St});if(le.current=[...ft],qe([...ft]),fe.current>0&&fe.current===et.length){Dt(!1);let St=Pe(ft);St=St.filter(Nt=>{var Ft,Ut;return!!((Ft=Nt[0])!=null&&Ft.name&&((Ut=Nt[1])!=null&&Ut.name))}),St=St.map(Nt=>Ne(Ee(Ee({},Nt[0]),Nt[1]),{is_file:!0})),lt(St),at()}}})},Ye=vt=>new Promise((It,Vt)=>{let kt=0,jt=[];for(let _t=0;_t<vt.length;_t++)vt[_t].file.slice(0,1).arrayBuffer().then(()=>{kt++,kt===vt.length&&(jt.length?(x.ZP.warning(`${jt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Vt()):It(vt))}).catch(Mt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",Mt),kt++,jt.push(vt[_t].name),kt===vt.length&&(jt.length?(x.ZP.warning(`${jt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Vt()):It(vt))})}),Je=()=>_e(void 0,null,function*(){if(et.length===0){x.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Ye(et),Dt(!0),Pe(et).some(It=>{var Vt,kt;return!((Vt=It[0])!=null&&Vt.name&&((kt=It[1])!=null&&kt.name))})){De.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:()=>_e(void 0,null,function*(){et.map(It=>_e(void 0,null,function*(){Ke(It)}))}),onCancel:()=>{Dt(!1)}});return}et.map(It=>_e(void 0,null,function*(){Ke(It)}))}),dt={name:"file",fileList:et,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:vt=>{if(et!=null&&et.some(Vt=>Vt.name===vt.name))return x.ZP.info(`${vt.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(vt.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(vt.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 It={name:vt.name,uid:vt.uid,file:vt,percent:0};return et.push(It),le.current=[...et],qe([...et]),!1}},bt=Pe(et);return console.log(et,bt,"fileList"),xe.createElement(De.default,{open:Ve,wrapClassName:Xe,onOk:Je,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:pt},onCancel:ze,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},xe.createElement("div",{className:me.wrap},et.length?xe.createElement("div",null,xe.createElement(ve.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},xe.createElement("div",{style:{visibility:ct?"visible":"hidden"}},xe.createElement("span",{className:me.greyText},"\u7528\u4F8B\u7C7B\u578B"),xe.createElement(re.ZP.Group,{className:`ml20 ${me.testCaseRadio}`,optionType:"button",value:At,onChange:vt=>st(vt.target.value)},xe.createElement(re.ZP,{value:!1},"\u6587\u672C"),xe.createElement(re.ZP,{value:!0},"\u6587\u4EF6"))),xe.createElement(gt.default,Ee({},dt),xe.createElement(ne.ZP,{type:"primary",className:me.btnS},xe.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),xe.createElement(Qe,{data:bt,onRemove:Ie})):xe.createElement("div",{className:`${me.noData} mb30`},xe.createElement(gt.default.Dragger,Ne(Ee({},dt),{className:me.dragger}),xe.createElement("img",{src:te,alt:"",className:"mb20"}),xe.createElement("div",null,xe.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),xe.createElement("span",{className:me.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),xe.createElement("div",{className:me.text},xe.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),xe.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",xe.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",xe.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",xe.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",xe.createElement("br",null))))},Qe=({data:at=[],onRemove:lt,width:Ve="auto",showScore:Xe=!1,disabled:nt=!1,inputChange:ct,onEvaluatingChange:ot,onSelectAll:et,checkAll1:qe,checkAll2:it,checkAll3:yt,checkAll4:pt,checkAll5:Dt,showEvaluatingSetting:At=!1,className:st="",isProgramHomework:Ge=!1})=>{const We={value:"",filename:"",dataUrl:""},[le,fe]=(0,Re.useState)(Ee({},We)),ze=Ie=>{let Ke=document.createElement("a");document.body.appendChild(Ke);let Ye=URL.createObjectURL(Ie.file);Ke.href=Ye,Ke.download=Ie.name,Ke.click(),URL.revokeObjectURL(Ye),document.body.removeChild(Ke)},He=(Ie,Ke)=>{(0,we.LR)(Ie,Ke)},pe=(Ie,Ke)=>{De.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:xe.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{lt(Ie,Ke)},onCancel:()=>{}})};return at.length?xe.createElement("div",{className:st,style:{width:Ve}},xe.createElement("div",{className:`${Ge?me.headProgram:me.head}`},At&&xe.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},xe.createElement(ie.default,{checked:qe,onChange:Ie=>{et(Ie.target.checked,"hidden")}}),xe.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'},xe.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),xe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),xe.createElement("div",{style:{width:Ge?"25%":"15%"}},"\u7528\u4F8B"),xe.createElement("div",{style:{width:Xe?Ge?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),xe.createElement("div",{style:{width:Xe?Ge?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),Xe&&xe.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),At&&xe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},xe.createElement(ie.default,{checked:pt,onChange:Ie=>{et(Ie.target.checked,"input_visible")}}),xe.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},xe.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),xe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),At&&xe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},xe.createElement(ie.default,{checked:it,onChange:Ie=>{et(Ie.target.checked,"is_invisible")}}),xe.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},xe.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),xe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),At&&xe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},xe.createElement(ie.default,{checked:Dt,onChange:Ie=>{et(Ie.target.checked,"actual_output_visible")}}),xe.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},xe.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),xe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),At&&xe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},xe.createElement(ie.default,{checked:yt,onChange:Ie=>{et(Ie.target.checked,"last_match_rule")}}),xe.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"},xe.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),xe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),xe.createElement("div",{className:me.operation,style:Ge?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),xe.createElement("div",{className:me.listWrapper,style:{boxShadow:Ge?"0px 2px 4px 0px #EAEEF4":"unset"}},at.map((Ie,Ke)=>{var Ye,Je,dt,bt;return xe.createElement("div",{key:Ke,className:me.list,style:Ge?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},At&&xe.createElement("div",{style:{width:"15%"}},xe.createElement(ie.default,{checked:!!Ie.hidden,onChange:vt=>{ot(vt.target.checked,Ke,"hidden")}})),xe.createElement("div",{style:{width:Ge?"25%":"15%",paddingLeft:Ge?"5px":"0px",paddingRight:Ge?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",Ke+1),xe.createElement("div",{className:me.info,style:{width:Xe?Ge?"20%":"15%":"25%"}},xe.createElement("span",{title:Ie.input||((Ye=Ie[0])==null?void 0:Ye.name),onClick:()=>_e(void 0,null,function*(){let vt;Ie.input?Ie.input_file_url?vt=Ie.input_file_url:vt=Ie.in_file:vt=Ie[0];let It;typeof vt=="string"?(It=yield fetch(vt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),fe({value:yield It.text(),filename:"",dataUrl:vt})):(It=yield(0,we.db)(vt.file),fe({value:It.text,filename:vt.name,dataUrl:It.link}))})},Ie.input||((Je=Ie[0])==null?void 0:Je.name))),xe.createElement("div",{className:me.info,style:{width:Xe?Ge?"20%":"15%":"25%"}},xe.createElement("span",{title:Ie.output||((dt=Ie[1])==null?void 0:dt.name),onClick:()=>_e(void 0,null,function*(){let vt;Ie.input?Ie.output_file_url?vt=Ie.output_file_url:vt=Ie.out_file:vt=Ie[1];let It;typeof vt=="string"?(It=yield fetch(vt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),fe({value:yield It.text(),filename:"",dataUrl:vt})):(It=yield(0,we.db)(vt.file),fe({value:It.text,filename:vt.name,dataUrl:It.link}))})},Ie.output||((bt=Ie[1])==null?void 0:bt.name))),Xe&&xe.createElement("div",{style:{width:"20%"}},xe.createElement(se.default,{size:"large",addonAfter:Ge?"%":null,disabled:nt,style:{width:"80%"},onChange:vt=>ct(vt,Ke),value:Ie.score}),!Ge&&xe.createElement("span",null,"\xA0%")),At&&xe.createElement("div",{style:{width:"20%"}},xe.createElement(ie.default,{checked:Ie.input_visible||!1,onChange:vt=>{ot(vt.target.checked,Ke,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),At&&xe.createElement("div",{style:{width:"20%"}},xe.createElement(ie.default,{checked:Ie.is_invisible||!1,onChange:vt=>{ot(vt.target.checked,Ke,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),At&&xe.createElement("div",{style:{width:"20%"}},xe.createElement(ie.default,{checked:Ie.actual_output_visible||!1,onChange:vt=>{ot(vt.target.checked,Ke,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),At&&xe.createElement("div",{style:{width:"20%"}},xe.createElement(ie.default,{checked:Ie.last_match_rule||!1,onChange:vt=>{ot(vt.target.checked,Ke,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),xe.createElement("div",{onClick:()=>pe(Ie,Ke),style:Ge?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},xe.createElement("span",{className:me.del},"\u5220\u9664")))})),xe.createElement(Se.Z,{close:!0,data:le.dataUrl,filename:le.filename,type:le.dataUrl.length?"txt":"",onClose:()=>fe(Ee({},We)),monacoEditor:{value:le.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):xe.createElement(xe.Fragment,null)};var tt=Ue},37388:function(or,Ht,ke){"use strict";ke.d(Ht,{c:function(){return gt}});var Re=(x=>(x.FirstPage="firstPage",x.PrevPage="prevPage",x.NextPage="nextPage",x))(Re||{}),gt=(x=>(x[x.Single=0]="Single",x[x.Multiple=1]="Multiple",x[x.Judge=2]="Judge",x[x.Fill=3]="Fill",x[x.Subjective=4]="Subjective",x[x.Shixun=5]="Shixun",x[x.Program=6]="Program",x[x.Combine=7]="Combine",x))(gt||{})},2159:function(or,Ht,ke){"use strict";ke.d(Ht,{G:function(){return ve},t:function(){return De}});var Re=ke(7062),gt=ke.n(Re);const x=null;function De(re,ne){let ie=gt().get("__ec");ie||(ie={}),ie[re]=ne,gt().set("__ec",ie)}function ve(re,ne){let ie=gt().get("__ec");return ie?ie[re]===void 0?ne:ie[re]:ne}},47257:function(or){(function(Ht){(function(ke){if(1)or.exports=ke();else var Re})(function(){var ke,Re,gt;return function(){function x(De,ve,re){function ne(se,me){if(!ve[se]){if(!De[se]){var te=void 0;if(!me&&te)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=ve[se]={exports:{}};De[se][0].call(ue.exports,function(de){var he=De[se][1][de];return ne(he||de)},ue,ue.exports,x,De,ve,re)}return ve[se].exports}for(var ie=void 0,oe=0;oe<re.length;oe++)ne(re[oe]);return ne}return x}()({1:[function(x,De,ve){"use strict";var re=x("./browser/client");re.Buffer=x("buffer").Buffer,re.urllib=x("../shims/xhr"),re.version=x("./browser/version").version,De.exports=re},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(x,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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"),me=se.checkBucketName,te=ve;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]:[]}te.useBucket=function(he){return me(he),this.options.bucket=he,this},te.setBucket=function(he){return me(he),this.options.bucket=he,this},te.getBucket=function(){return this.options.bucket},te.deleteBucket=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe){var ye,Ae;return ne.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ye=this._bucketRequestParams("DELETE",Se,"",xe),Ce.next=3,this.request(ye);case 3:if(Ae=Ce.sent,!(Ae.status===200||Ae.status===204)){Ce.next=6;break}return Ce.abrupt("return",{res:Ae.res});case 6:return Ce.next=8,this.requestError(Ae);case 8:throw Ce.sent;case 9:case"end":return Ce.stop()}},we,this)}));function he(we,Se){return de.apply(this,arguments)}return he}(),te.putBucketACL=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe,ye){var Ae,Le;return ne.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Ae=this._bucketRequestParams("PUT",Se,"acl",ye),Ae.headers={"x-oss-acl":xe},Ae.successStatuses=[200],je.next=5,this.request(Ae);case 5:return Le=je.sent,je.abrupt("return",{bucket:Le.headers.location&&Le.headers.location.substring(1)||null,res:Le.res});case 7:case"end":return je.stop()}},we,this)}));function he(we,Se,xe){return de.apply(this,arguments)}return he}(),te.getBucketACL=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe){var ye,Ae;return ne.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ye=this._bucketRequestParams("GET",Se,"acl",xe),ye.successStatuses=[200],ye.xmlResponse=!0,Ce.next=5,this.request(ye);case 5:return Ae=Ce.sent,Ce.abrupt("return",{acl:Ae.data.AccessControlList.Grant,owner:{id:Ae.data.Owner.ID,displayName:Ae.data.Owner.DisplayName},res:Ae.res});case 7:case"end":return Ce.stop()}},we,this)}));function he(we,Se){return de.apply(this,arguments)}return he}(),te.putBucketLogging=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe,ye){var Ae,Le,Ce;return ne.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Ae=this._bucketRequestParams("PUT",Se,"logging",ye),Le=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(Se,`</TargetBucket>
|
|
|
`),xe&&(Le+="<TargetPrefix>".concat(xe,`</TargetPrefix>
|
|
|
`)),Le+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,Ae.content=Le,Ae.mime="xml",Ae.successStatuses=[200],Me.next=9,this.request(Ae);case 9:return Ce=Me.sent,Me.abrupt("return",{res:Ce.res});case 11:case"end":return Me.stop()}},we,this)}));function he(we,Se,xe){return de.apply(this,arguments)}return he}(),te.getBucketLogging=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe){var ye,Ae,Le;return ne.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ye=this._bucketRequestParams("GET",Se,"logging",xe),ye.successStatuses=[200],ye.xmlResponse=!0,je.next=5,this.request(ye);case 5:return Ae=je.sent,Le=Ae.data.LoggingEnabled,je.abrupt("return",{enable:!!Le,prefix:Le&&Le.TargetPrefix||null,res:Ae.res});case 8:case"end":return je.stop()}},we,this)}));function he(we,Se){return de.apply(this,arguments)}return he}(),te.deleteBucketLogging=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe){var ye,Ae;return ne.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ye=this._bucketRequestParams("DELETE",Se,"logging",xe),ye.successStatuses=[204,200],Ce.next=4,this.request(ye);case 4:return Ae=Ce.sent,Ce.abrupt("return",{res:Ae.res});case 6:case"end":return Ce.stop()}},we,this)}));function he(we,Se){return de.apply(this,arguments)}return he}(),te.putBucketCORS=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe,ye){var Ae,Le,Ce,je,Me,Oe,Ee,Ne,_e,Ze;return ne.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:for(xe=xe||[],oe(xe.length,"rules is required"),xe.forEach(function(Qe){oe(Qe.allowedOrigin,"allowedOrigin is required"),oe(Qe.allowedMethod,"allowedMethod is required")}),Ae=this._bucketRequestParams("PUT",Se,"cors",ye),Le=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,Ce=function(tt){Le+="<AllowedOrigin>".concat(tt,"</AllowedOrigin>")},je=function(tt){Le+="<AllowedMethod>".concat(tt,"</AllowedMethod>")},Me=function(tt){Le+="<AllowedHeader>".concat(tt,"</AllowedHeader>")},Oe=function(tt){Le+="<ExposeHeader>".concat(tt,"</ExposeHeader>")},Ee=0,Ne=xe.length;Ee<Ne;Ee++)_e=xe[Ee],Le+="<CORSRule>",ue(_e.allowedOrigin).forEach(Ce),ue(_e.allowedMethod).forEach(je),ue(_e.allowedHeader).forEach(Me),ue(_e.exposeHeader).forEach(Oe),_e.maxAgeSeconds&&(Le+="<MaxAgeSeconds>".concat(_e.maxAgeSeconds,"</MaxAgeSeconds>")),Le+="</CORSRule>";return Le+="</CORSConfiguration>",Ae.content=Le,Ae.mime="xml",Ae.successStatuses=[200],Ue.next=16,this.request(Ae);case 16:return Ze=Ue.sent,Ue.abrupt("return",{res:Ze.res});case 18:case"end":return Ue.stop()}},we,this)}));function he(we,Se,xe){return de.apply(this,arguments)}return he}(),te.getBucketCORS=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe){var ye,Ae,Le,Ce;return ne.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return ye=this._bucketRequestParams("GET",Se,"cors",xe),ye.successStatuses=[200],ye.xmlResponse=!0,Me.next=5,this.request(ye);case 5:return Ae=Me.sent,Le=[],Ae.data&&Ae.data.CORSRule&&(Ce=Ae.data.CORSRule,ae(Ce)||(Ce=[Ce]),Ce.forEach(function(Oe){var Ee={};Object.keys(Oe).forEach(function(Ne){Ee[Ne.slice(0,1).toLowerCase()+Ne.slice(1,Ne.length)]=Oe[Ne]}),Le.push(Ee)})),Me.abrupt("return",{rules:Le,res:Ae.res});case 9:case"end":return Me.stop()}},we,this)}));function he(we,Se){return de.apply(this,arguments)}return he}(),te.deleteBucketCORS=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe){var ye,Ae;return ne.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ye=this._bucketRequestParams("DELETE",Se,"cors",xe),ye.successStatuses=[204],Ce.next=4,this.request(ye);case 4:return Ae=Ce.sent,Ce.abrupt("return",{res:Ae.res});case 6:case"end":return Ce.stop()}},we,this)}));function he(we,Se){return de.apply(this,arguments)}return he}(),te.putBucketReferer=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe,ye,Ae){var Le,Ce,je,Me;return ne.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(Le=this._bucketRequestParams("PUT",Se,"referer",Ae),Ce=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,Ce+=" <AllowEmptyReferer>".concat(xe?"true":"false",`</AllowEmptyReferer>
|
|
|
`),ye&&ye.length>0){for(Ce+=` <RefererList>
|
|
|
`,je=0;je<ye.length;je++)Ce+=" <Referer>".concat(ye[je],`</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 Me=Ee.sent,Ee.abrupt("return",{res:Me.res});case 12:case"end":return Ee.stop()}},we,this)}));function he(we,Se,xe,ye){return de.apply(this,arguments)}return he}(),te.getBucketReferer=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe){var ye,Ae,Le;return ne.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ye=this._bucketRequestParams("GET",Se,"referer",xe),ye.successStatuses=[200],ye.xmlResponse=!0,je.next=5,this.request(ye);case 5:return Ae=je.sent,Le=Ae.data.RefererList.Referer||null,Le&&(ae(Le)||(Le=[Le])),je.abrupt("return",{allowEmpty:Ae.data.AllowEmptyReferer==="true",referers:Le,res:Ae.res});case 9:case"end":return je.stop()}},we,this)}));function he(we,Se){return de.apply(this,arguments)}return he}(),te.deleteBucketReferer=function(){var de=(0,ie.default)(ne.default.mark(function we(Se,xe){return ne.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,this.putBucketReferer(Se,!0,null,xe);case 2:return Ae.abrupt("return",Ae.sent);case 3:case"end":return Ae.stop()}},we,this)}));function he(we,Se){return de.apply(this,arguments)}return he}(),te._bucketRequestParams=function(he,we,Se,xe){return{method:he,bucket:we,subres:Se,timeout:xe&&xe.timeout,ctx:xe&&xe.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,De,ve){(function(re,ne){(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 me=x("debug")("ali-oss"),te=x("xml2js"),ae=x("agentkeepalive"),ue=x("merge-descriptors"),de=x("platform"),he=x("utility"),we=x("urllib"),Se=x("./version"),xe=x("bowser"),ye=x("../common/signUtils"),Ae=x("../common/client/initOptions"),Le=x("../common/utils/createRequest"),Ce=Le.createRequest,je=x("../common/utils/encoder"),Me=je.encoder,Oe=x("../common/client/getReqUrl"),Ee=Oe.getReqUrl,Ne=x("../common/utils/setSTSToken"),_e=Ne.setSTSToken,Ze=x("../common/utils/retry"),Pe=Ze.retry,Ue=x("../common/utils/isFunction"),Qe=Ue.isFunction,tt=new ae;function at(){var ot=de.name,et=de.version;ot&&ot.toLowerCase&&ot.toLowerCase()==="ie"&&et.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function lt(){return location&&location.protocol==="https:"}function Ve(ot,et){if(at(),!(this instanceof Ve))return new Ve(ot,et);ot&&ot.inited?this.options=ot:this.options=Ve.initOptions(ot),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=we,this.agent=this.options.agent||tt),this.ctx=et,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}De.exports=Ve,Ve.initOptions=function(et){et.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:lt(),useFetch:!1},et);return Ae(qe)};var Xe=Ve.prototype;Xe.debug=me,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(et){return this.debug("authorization stringToSign: %s",et,"info"),ye.computeSignature(this.options.accessKeySecret,et,this.options.headerEncoding)},Xe._getReqUrl=Ee,Xe.authorization=function(et,qe,it,yt){var pt=ye.buildCanonicalString(et.toUpperCase(),qe,{headers:yt,parameters:it});return ye.authorization(this.options.accessKeyId,this.options.accessKeySecret,pt,this.options.headerEncoding)},Xe.request=function(){var ot=(0,se.default)(oe.default.mark(function et(qe){var it=this;return oe.default.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(!this.options.retryMax){pt.next=6;break}return pt.next=3,Pe(nt.bind(this),this.options.retryMax,{errorHandler:function(At){var st=function(We){if(qe.stream)return!1;var le=[-1,-2].includes(We.status),fe=it.options.requestErrorRetryHandle||function(){return!0};return le&&fe(We)};return!!st(At)}})(qe);case 3:return pt.abrupt("return",pt.sent);case 6:return pt.abrupt("return",nt.call(this,qe));case 7:case"end":return pt.stop()}},et,this)}));return function(et){return ot.apply(this,arguments)}}();function nt(ot){return ct.apply(this,arguments)}function ct(){return ct=(0,se.default)(oe.default.mark(function ot(et){var qe,it,yt,pt,Dt,At;return oe.default.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(!(this.options.stsToken&&Qe(this.options.refreshSTSToken))){Ge.next=3;break}return Ge.next=3,_e.call(this);case 3:return qe=Ce.call(this,et),this.options.useFetch||(qe.params.mode="disable-fetch"),pt=!!et.stream,Ge.prev=6,Ge.next=9,this.urllib.request(qe.url,qe.params);case 9:it=Ge.sent,this.debug("response %s %s, got %s, headers: %j",et.method,qe.url,it.status,it.headers,"info"),Ge.next=16;break;case 13:Ge.prev=13,Ge.t0=Ge.catch(6),yt=Ge.t0;case 16:if(!(it&&et.successStatuses&&et.successStatuses.indexOf(it.status)===-1)){Ge.next=28;break}return Ge.next=19,this.requestError(it);case 19:if(Dt=Ge.sent,!(Dt.code==="RequestTimeTooSkewed"&&!pt)){Ge.next=25;break}return this.options.amendTimeSkewed=+new Date(Dt.serverTime)-new Date,Ge.next=24,this.request(et);case 24:return Ge.abrupt("return",Ge.sent);case 25:Dt.params=et,Ge.next=32;break;case 28:if(!yt){Ge.next=32;break}return Ge.next=31,this.requestError(yt);case 31:Dt=Ge.sent;case 32:if(!Dt){Ge.next=34;break}throw Dt;case 34:if(!et.xmlResponse){Ge.next=39;break}return Ge.next=37,this.parseXML(it.data);case 37:At=Ge.sent,it.data=At;case 39:return Ge.abrupt("return",it);case 40:case"end":return Ge.stop()}},ot,this,[[6,13]])})),ct.apply(this,arguments)}Xe._getResource=function(et){var qe="/";return et.bucket&&(qe+="".concat(et.bucket,"/")),et.object&&(qe+=Me(et.object,this.options.headerEncoding)),qe},Xe._escape=function(et){return he.encodeURIComponent(et).replace(/%2F/g,"/")},Xe._getUserAgent=function(){var et=ne&&ne.browser?"js":"nodejs",qe="aliyun-sdk-".concat(et,"/").concat(Se.version),it=de.description;return!it&&ne&&(it="Node.js ".concat(ne.version.slice(1)," on ").concat(ne.platform," ").concat(ne.arch)),this._checkUserAgent("".concat(qe," ").concat(it))},Xe._checkUserAgent=function(et){var qe=et.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return qe},Xe.checkBrowserAndVersion=function(et,qe){return xe.name===et&&xe.version.split(".")[0]===qe},Xe.parseXML=function(et){return new Promise(function(qe,it){re.isBuffer(et)&&(et=et.toString()),te.parseString(et,{explicitRoot:!1,explicitArray:!1},function(yt,pt){yt?it(yt):qe(pt)})})},Xe.requestError=function(){var ot=(0,se.default)(oe.default.mark(function qe(it){var yt,pt,Dt,At;return oe.default.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(yt=null,!(!it.data||!it.data.length)){Ge.next=5;break}it.status===-1||it.status===-2?(yt=new Error(it.message),yt.name=it.name,yt.status=it.status,yt.code=it.name):(it.status===404?(yt=new Error("Object not exists"),yt.name="NoSuchKeyError",yt.status=404,yt.code="NoSuchKey"):it.status===412?(yt=new Error("Pre condition failed"),yt.name="PreconditionFailedError",yt.status=412,yt.code="PreconditionFailed"):(yt=new Error("Unknow error, status: ".concat(it.status)),yt.name="UnknownError",yt.status=it.status),yt.requestId=it.headers["x-oss-request-id"],yt.host=""),Ge.next=32;break;case 5:return pt=String(it.data),this.debug("request response error data: %s",pt,"error"),Ge.prev=7,Ge.next=10,this.parseXML(pt);case 10:if(Ge.t0=Ge.sent,Ge.t0){Ge.next=13;break}Ge.t0={};case 13:Dt=Ge.t0,Ge.next=23;break;case 16:return Ge.prev=16,Ge.t1=Ge.catch(7),this.debug(pt,"error"),Ge.t1.message+=`
|
|
|
raw xml: `.concat(pt),Ge.t1.status=it.status,Ge.t1.requestId=it.headers["x-oss-request-id"],Ge.abrupt("return",Ge.t1);case 23:At=Dt.Message||"unknow request error, status: ".concat(it.status),Dt.Condition&&(At+=" (condition: ".concat(Dt.Condition,")")),yt=new Error(At),yt.name=Dt.Code?"".concat(Dt.Code,"Error"):"UnknownError",yt.status=it.status,yt.code=Dt.Code,yt.requestId=Dt.RequestId,yt.hostId=Dt.HostId,yt.serverTime=Dt.ServerTime;case 32:return this.debug("generate error %j",yt,"error"),Ge.abrupt("return",yt);case 34:case"end":return Ge.stop()}},qe,this,[[7,16]])}));function et(qe){return ot.apply(this,arguments)}return et}()}).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,De,ve){(function(re){(function(){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),ie=ne(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=ne(x("@babel/runtime/helpers/asyncToGenerator")),se=x("util"),me=x("path"),te=x("mime"),ae=x("copy-to"),ue=x("../common/utils/isBlob"),de=ue.isBlob,he=x("../common/utils/isFile"),we=he.isFile,Se=x("../common/utils/isBuffer"),xe=Se.isBuffer,ye=ve;ye.multipartUpload=function(){var Me=(0,oe.default)(ie.default.mark(function Ee(Ne,_e){var Ze,Pe,Ue,Qe,tt,at,lt,Ve,Xe,nt=arguments;return ie.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(Ze=nt.length>2&&nt[2]!==void 0?nt[2]:{},this.resetCancelFlag(),Ze.disabledMD5=Ze.disabledMD5===void 0?!0:!!Ze.disabledMD5,!(Ze.checkpoint&&Ze.checkpoint.uploadId)){ot.next=8;break}return _e&&we(_e)&&(Ze.checkpoint.file=_e),ot.next=7,this._resumeMultipart(Ze.checkpoint,Ze);case 7:return ot.abrupt("return",ot.sent);case 8:return Pe=102400,Ze.mime||(we(_e)?Ze.mime=te.getType(me.extname(_e.name)):de(_e)?Ze.mime=_e.type:xe(_e)?Ze.mime="":Ze.mime=te.getType(me.extname(_e))),Ze.headers=Ze.headers||{},this._convertMetaToHeaders(Ze.meta,Ze.headers),ot.next=14,this._getFileSize(_e);case 14:if(Ue=ot.sent,!(Ue<Pe)){ot.next=26;break}return Ze.contentLength=Ue,ot.next=19,this.put(Ne,_e,Ze);case 19:if(Qe=ot.sent,!(Ze&&Ze.progress)){ot.next=23;break}return ot.next=23,Ze.progress(1);case 23:return tt={res:Qe.res,bucket:this.options.bucket,name:Ne,etag:Qe.res.headers.etag},(Ze.headers&&Ze.headers["x-oss-callback"]||Ze.callback)&&(tt.data=Qe.data),ot.abrupt("return",tt);case 26:if(!(Ze.partSize&&parseInt(Ze.partSize,10)!==Ze.partSize)){ot.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Ze.partSize&&Ze.partSize<Pe)){ot.next=30;break}throw new Error("partSize must not be smaller than ".concat(Pe));case 30:return ot.next=32,this.initMultipartUpload(Ne,Ze);case 32:if(at=ot.sent,lt=at.uploadId,Ve=this._getPartSize(Ue,Ze.partSize),Xe={file:_e,name:Ne,fileSize:Ue,partSize:Ve,uploadId:lt,doneParts:[]},!(Ze&&Ze.progress)){ot.next=39;break}return ot.next=39,Ze.progress(0,Xe,at.res);case 39:return ot.next=41,this._resumeMultipart(Xe,Ze);case 41:return ot.abrupt("return",ot.sent);case 42:case"end":return ot.stop()}},Ee,this)}));function Oe(Ee,Ne){return Me.apply(this,arguments)}return Oe}(),ye._resumeMultipart=function(){var Me=(0,oe.default)(ie.default.mark(function Ee(Ne,_e){var Ze,Pe,Ue,Qe,tt,at,lt,Ve,Xe,nt,ct,ot,et,qe,it,yt,pt,Dt,At;return ie.default.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(Ze=this,!this.isCancel()){Ge.next=3;break}throw this._makeCancelEvent();case 3:return Pe=Ne.file,Ue=Ne.fileSize,Qe=Ne.partSize,tt=Ne.uploadId,at=Ne.doneParts,lt=Ne.name,Ve=[],at.length>0&&ae(at).to(Ve),Xe=this._divideParts(Ue,Qe),nt=Xe.length,ct=!1,ot=function(le,fe){return new Promise(function(){var ze=(0,oe.default)(ie.default.mark(function He(pe,Ie){var Ke,Ye,Je,dt,bt;return ie.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:if(It.prev=0,le.isCancel()){It.next=29;break}return Ke=Xe[fe-1],It.next=5,le._createBuffer(Pe,Ke.start,Ke.end);case 5:return Ye=It.sent,Je={content:Ye,size:Ke.end-Ke.start},It.prev=7,It.next=10,le._uploadPart(lt,tt,fe,Je,_e);case 10:dt=It.sent,It.next=18;break;case 13:if(It.prev=13,It.t0=It.catch(7),It.t0.status!==404){It.next=17;break}throw le._makeAbortEvent();case 17:throw It.t0;case 18:if(!(!le.isCancel()&&!ct)){It.next=26;break}if(Ne.doneParts.push({number:fe,etag:dt.res.headers.etag}),!_e.progress){It.next=23;break}return It.next=23,_e.progress(at.length/(nt+1),Ne,dt.res);case 23:pe({number:fe,etag:dt.res.headers.etag}),It.next=27;break;case 26:pe();case 27:It.next=30;break;case 29:pe();case 30:It.next=41;break;case 32:It.prev=32,It.t1=It.catch(0),bt=new Error,bt.name=It.t1.name,bt.message=It.t1.message,bt.stack=It.t1.stack,bt.partNum=fe,ae(It.t1).to(bt),Ie(bt);case 41:case"end":return It.stop()}},He,null,[[0,32],[7,13]])}));return function(He,pe){return ze.apply(this,arguments)}}())},et=Array.from(new Array(nt),function(We,le){return le+1}),qe=Ve.map(function(We){return We.number}),it=et.filter(function(We){return qe.indexOf(We)<0}),yt=5,pt=_e.parallel||yt,Ge.next=17,this._parallel(it,pt,function(We){return new Promise(function(le,fe){ot(Ze,We).then(function(ze){ze&&Ve.push(ze),le()}).catch(function(ze){fe(ze)})})});case 17:if(Dt=Ge.sent,ct=!0,At=Dt.find(function(We){return We.name==="abort"}),!At){Ge.next=22;break}throw At;case 22:if(!this.isCancel()){Ge.next=25;break}throw ot=null,this._makeCancelEvent();case 25:if(!(Dt&&Dt.length>0)){Ge.next=28;break}throw Dt[0].message="Failed to upload some parts with error: ".concat(Dt[0].toString()," part_num: ").concat(Dt[0].partNum),Dt[0];case 28:return Ge.next=30,this.completeMultipartUpload(lt,tt,Ve,_e);case 30:return Ge.abrupt("return",Ge.sent);case 31:case"end":return Ge.stop()}},Ee,this)}));function Oe(Ee,Ne){return Me.apply(this,arguments)}return Oe}(),ye._getFileSize=function(){var Me=(0,oe.default)(ie.default.mark(function Ee(Ne){return ie.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(!xe(Ne)){Ze.next=4;break}return Ze.abrupt("return",Ne.length);case 4:if(!(de(Ne)||we(Ne))){Ze.next=6;break}return Ze.abrupt("return",Ne.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Ze.stop()}},Ee)}));function Oe(Ee){return Me.apply(this,arguments)}return Oe}();var Ae=x("stream"),Le=Ae.Readable;function Ce(Me,Oe){if(!(this instanceof Ce))return new Ce(Me,Oe);Le.call(this,Oe),this.file=Me,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}se.inherits(Ce,Le),Ce.prototype.readFileAndPush=function(Oe){if(this.fileBuffer)for(var Ee=!0;Ee&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Ne=this.start,_e=Ne+Oe;_e=_e>this.fileBuffer.length?this.fileBuffer.length:_e,this.start=_e,Ee=this.push(this.fileBuffer.slice(Ne,_e))}},Ce.prototype._read=function(Oe){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;Oe=Oe||Ee;var Ne=this;this.reader.onload=function(Ze){Ne.fileBuffer=re.from(new Uint8Array(Ze.target.result)),Ne.file=null,Ne.readFileAndPush(Oe)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(Oe)};function je(Me){return Me.arrayBuffer?Me.arrayBuffer():new Promise(function(Oe,Ee){var Ne=new FileReader;Ne.onload=function(_e){Oe(_e.target.result)},Ne.onerror=function(_e){Ee(_e)},Ne.readAsArrayBuffer(Me)})}ye._createBuffer=function(){var Me=(0,oe.default)(ie.default.mark(function Ee(Ne,_e,Ze){var Pe,Ue;return ie.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(!(de(Ne)||we(Ne))){tt.next=8;break}return Pe=Ne.slice(_e,Ze),tt.next=4,je(Pe);case 4:return Ue=tt.sent,tt.abrupt("return",re.from(Ue));case 8:if(!xe(Ne)){tt.next=12;break}return tt.abrupt("return",Ne.subarray(_e,Ze));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return tt.stop()}},Ee)}));function Oe(Ee,Ne,_e){return Me.apply(this,arguments)}return Oe}(),ye._getPartSize=function(Oe,Ee){var Ne=1e4,_e=1*1024*1024;Ee||(Ee=_e);var Ze=Math.ceil(Oe/Ne);return Ee<Ze&&(Ee=Ze,console.warn("partSize has been set to ".concat(Ee,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ee},ye._divideParts=function(Oe,Ee){for(var Ne=Math.ceil(Oe/Ee),_e=[],Ze=0;Ze<Ne;Ze++){var Pe=Ee*Ze,Ue=Math.min(Pe+Ee,Oe);_e.push({start:Pe,end:Ue})}return _e}}).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,De,ve){"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 ne=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("fs"),se=x("copy-to"),me=x("path"),te=x("mime"),ae=x("../common/callback"),ue=x("merge-descriptors"),de=x("../common/utils/isBlob"),he=de.isBlob,we=x("../common/utils/isFile"),Se=we.isFile,xe=x("../common/utils/isBuffer"),ye=xe.isBuffer,Ae=x("../common/utils/obj2xml"),Le=Ae.obj2xml,Ce=ve;Ce.append=function(){var je=(0,ie.default)(ne.default.mark(function Oe(Ee,Ne,_e){var Ze;return ne.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return _e=_e||{},_e.position===void 0&&(_e.position="0"),_e.subres={append:"",position:_e.position},_e.method="POST",Ue.next=6,this.put(Ee,Ne,_e);case 6:return Ze=Ue.sent,Ze.nextAppendPosition=Ze.res.headers["x-oss-next-append-position"],Ue.abrupt("return",Ze);case 9:case"end":return Ue.stop()}},Oe,this)}));function Me(Oe,Ee,Ne){return je.apply(this,arguments)}return Me}(),Ce.put=function(){var je=(0,ie.default)(ne.default.mark(function Oe(Ee,Ne,_e){var Ze,Pe,Ue,Qe,tt;return ne.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(_e=_e||{},_e.disabledMD5=_e.disabledMD5===void 0?!0:!!_e.disabledMD5,_e.headers=_e.headers||{},Ee=this._objectName(Ee),!ye(Ne)){lt.next=8;break}Ze=Ne,lt.next=19;break;case 8:if(!(he(Ne)||Se(Ne))){lt.next=18;break}return _e.mime||(Se(Ne)?_e.mime=te.getType(me.extname(Ne.name)):_e.mime=Ne.type),lt.next=12,this._createBuffer(Ne,0,Ne.size);case 12:return Ze=lt.sent,lt.next=15,this._getFileSize(Ne);case 15:_e.contentLength=lt.sent,lt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(_e.meta,_e.headers),Pe=_e.method||"PUT",Ue=this._objectRequestParams(Pe,Ee,_e),ae.encodeCallback(Ue,_e),Ue.mime=_e.mime,Ue.disabledMD5=_e.disabledMD5,Ue.content=Ze,Ue.successStatuses=[200],lt.next=29,this.request(Ue);case 29:return Qe=lt.sent,tt={name:Ee,url:this._objectUrl(Ee),res:Qe.res},Ue.headers&&Ue.headers["x-oss-callback"]&&(tt.data=JSON.parse(Qe.data.toString())),lt.abrupt("return",tt);case 33:case"end":return lt.stop()}},Oe,this)}));function Me(Oe,Ee,Ne){return je.apply(this,arguments)}return Me}(),Ce.putStream=function(){var je=(0,ie.default)(ne.default.mark(function Oe(Ee,Ne,_e){var Ze,Pe,Ue,Qe;return ne.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return _e=_e||{},_e.headers=_e.headers||{},Ee=this._objectName(Ee),_e.contentLength?_e.headers["Content-Length"]=_e.contentLength:_e.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_e.meta,_e.headers),Ze=_e.method||"PUT",Pe=this._objectRequestParams(Ze,Ee,_e),ae.encodeCallback(Pe,_e),Pe.mime=_e.mime,Pe.stream=Ne,Pe.successStatuses=[200],at.next=13,this.request(Pe);case 13:return Ue=at.sent,Qe={name:Ee,url:this._objectUrl(Ee),res:Ue.res},Pe.headers&&Pe.headers["x-oss-callback"]&&(Qe.data=JSON.parse(Ue.data.toString())),at.abrupt("return",Qe);case 17:case"end":return at.stop()}},Oe,this)}));function Me(Oe,Ee,Ne){return je.apply(this,arguments)}return Me}(),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 je=(0,ie.default)(ne.default.mark(function Oe(Ee,Ne,_e){var Ze;return ne.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,this.copy(Ee,Ee,{meta:Ne||{},timeout:_e&&_e.timeout,ctx:_e&&_e.ctx});case 2:return Ze=Ue.sent,Ue.abrupt("return",Ze);case 4:case"end":return Ue.stop()}},Oe,this)}));function Me(Oe,Ee,Ne){return je.apply(this,arguments)}return Me}(),Ce.list=function(){var je=(0,ie.default)(ne.default.mark(function Oe(Ee,Ne){var _e,Ze,Pe,Ue,Qe;return ne.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return _e=this._objectRequestParams("GET","",Ne),_e.query=Ee,_e.xmlResponse=!0,_e.successStatuses=[200],at.next=6,this.request(_e);case 6:return Ze=at.sent,Pe=Ze.data.Contents||[],Ue=this,Pe&&(Array.isArray(Pe)||(Pe=[Pe]),Pe=Pe.map(function(lt){return{name:lt.Key,url:Ue._objectUrl(lt.Key),lastModified:lt.LastModified,etag:lt.ETag,type:lt.Type,size:Number(lt.Size),storageClass:lt.StorageClass,owner:{id:lt.Owner.ID,displayName:lt.Owner.DisplayName}}})),Qe=Ze.data.CommonPrefixes||null,Qe&&(Array.isArray(Qe)||(Qe=[Qe]),Qe=Qe.map(function(lt){return lt.Prefix})),at.abrupt("return",{res:Ze.res,objects:Pe,prefixes:Qe,nextMarker:Ze.data.NextMarker||null,isTruncated:Ze.data.IsTruncated==="true"});case 13:case"end":return at.stop()}},Oe,this)}));function Me(Oe,Ee){return je.apply(this,arguments)}return Me}(),Ce.listV2=function(){var je=(0,ie.default)(ne.default.mark(function Oe(Ee){var Ne,_e,Ze,Pe,Ue,Qe,tt,at=arguments;return ne.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ne=at.length>1&&at[1]!==void 0?at[1]:{},_e=Ee["continuation-token"]||Ee.continuationToken,_e&&(Ne.subres=Object.assign({"continuation-token":_e},Ne.subres)),Ze=this._objectRequestParams("GET","",Ne),Ze.query=Object.assign({"list-type":2},Ee),delete Ze.query["continuation-token"],delete Ze.query.continuationToken,Ze.xmlResponse=!0,Ze.successStatuses=[200],Ve.next=11,this.request(Ze);case 11:return Pe=Ve.sent,Ue=Pe.data.Contents||[],Qe=this,Ue&&(Array.isArray(Ue)||(Ue=[Ue]),Ue=Ue.map(function(Xe){var nt=null;return Xe.Owner&&(nt={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:nt}})),tt=Pe.data.CommonPrefixes||null,tt&&(Array.isArray(tt)||(tt=[tt]),tt=tt.map(function(Xe){return Xe.Prefix})),Ve.abrupt("return",{res:Pe.res,objects:Ue,prefixes:tt,isTruncated:Pe.data.IsTruncated==="true",keyCount:+Pe.data.KeyCount,continuationToken:Pe.data.ContinuationToken||null,nextContinuationToken:Pe.data.NextContinuationToken||null});case 18:case"end":return Ve.stop()}},Oe,this)}));function Me(Oe){return je.apply(this,arguments)}return Me}(),Ce.restore=function(){var je=(0,ie.default)(ne.default.mark(function Oe(Ee){var Ne,_e,Ze,Pe,Ue=arguments;return ne.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return Ne=Ue.length>1&&Ue[1]!==void 0?Ue[1]:{type:"Archive"},Ne=Ne||{},Ne.subres=Object.assign({restore:""},Ne.subres),Ne.versionId&&(Ne.subres.versionId=Ne.versionId),_e=this._objectRequestParams("POST",Ee,Ne),Ne.type==="ColdArchive"&&(Ze={RestoreRequest:{Days:Ne.Days?Ne.Days:2,JobParameters:{Tier:Ne.JobParameters?Ne.JobParameters:"Standard"}}},_e.content=Le(Ze,{headers:!0}),_e.mime="xml"),_e.successStatuses=[202],tt.next=9,this.request(_e);case 9:return Pe=tt.sent,tt.abrupt("return",{res:Pe.res});case 11:case"end":return tt.stop()}},Oe,this)}));function Me(Oe){return je.apply(this,arguments)}return Me}(),Ce._objectUrl=function(Me){return this._getReqUrl({bucket:this.options.bucket,object:Me})},Ce._objectRequestParams=function(Me,Oe,Ee){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ee=Ee||{},Oe=this._objectName(Oe);var Ne={object:Oe,bucket:this.options.bucket,method:Me,subres:Ee&&Ee.subres,timeout:Ee&&Ee.timeout,ctx:Ee&&Ee.ctx};return Ee.headers&&(Ne.headers={},se(Ee.headers).to(Ne.headers)),Ne},Ce._objectName=function(Me){return Me.replace(/^\/+/,"")},Ce._convertMetaToHeaders=function(Me,Oe){Me&&Object.keys(Me).forEach(function(Ee){Oe["x-oss-meta-".concat(Ee)]=Me[Ee]})},Ce._deleteFileSafe=function(Me){var Oe=this;return new Promise(function(Ee){oe.exists(Me,function(Ne){Ne?oe.unlink(Me,function(_e){_e&&Oe.debug("unlink %j error: %s",Me,_e,"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,De,ve){"use strict";ve.version="6.18.1"},{}],7:[function(x,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.abortBucketWorm=void 0;var oe=x("../utils/checkBucketName");function se(te,ae){return me.apply(this,arguments)}function me(){return me=(0,ie.default)(ne.default.mark(function te(ae,ue){var de,he;return ne.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()}},te,this)})),me.apply(this,arguments)}ve.abortBucketWorm=se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(x,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.completeBucketWorm=void 0;var oe=x("../utils/checkBucketName");function se(te,ae,ue){return me.apply(this,arguments)}function me(){return me=(0,ie.default)(ne.default.mark(function te(ae,ue,de){var he,we;return ne.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return oe.checkBucketName(ae),he=this._bucketRequestParams("POST",ae,{wormId:ue},de),xe.next=4,this.request(he);case 4:return we=xe.sent,xe.abrupt("return",{res:we.res,status:we.status});case 6:case"end":return xe.stop()}},te,this)})),me.apply(this,arguments)}ve.completeBucketWorm=se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(x,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.deleteBucketInventory=void 0;var oe=x("../utils/checkBucketName");function se(te,ae){return me.apply(this,arguments)}function me(){return me=(0,ie.default)(ne.default.mark(function te(ae,ue){var de,he,we,Se,xe=arguments;return ne.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return de=xe.length>2&&xe[2]!==void 0?xe[2]:{},he=Object.assign({inventory:"",inventoryId:ue},de.subres),oe.checkBucketName(ae),we=this._bucketRequestParams("DELETE",ae,he,de),we.successStatuses=[204],Ae.next=7,this.request(we);case 7:return Se=Ae.sent,Ae.abrupt("return",{status:Se.status,res:Se.res});case 9:case"end":return Ae.stop()}},te,this)})),me.apply(this,arguments)}ve.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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,me=ve;me.deleteBucketLifecycle=function(){var te=(0,ie.default)(ne.default.mark(function ue(de,he){var we,Se;return ne.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return se(de),we=this._bucketRequestParams("DELETE",de,"lifecycle",he),we.successStatuses=[204],ye.next=5,this.request(we);case 5:return Se=ye.sent,ye.abrupt("return",{res:Se.res});case 7:case"end":return ye.stop()}},ue,this)}));function ae(ue,de){return te.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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,me=ve;me.deleteBucketWebsite=function(){var te=(0,ie.default)(ne.default.mark(function ue(de,he){var we,Se;return ne.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return se(de),we=this._bucketRequestParams("DELETE",de,"website",he),we.successStatuses=[204],ye.next=5,this.request(we);case 5:return Se=ye.sent,ye.abrupt("return",{res:Se.res});case 7:case"end":return ye.stop()}},ue,this)}));function ae(ue,de){return te.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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.extendBucketWorm=void 0;var oe=x("../utils/checkBucketName"),se=x("../utils/obj2xml");function me(ae,ue,de,he){return te.apply(this,arguments)}function te(){return te=(0,ie.default)(ne.default.mark(function ae(ue,de,he,we){var Se,xe,ye;return ne.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return oe.checkBucketName(ue),Se=this._bucketRequestParams("POST",ue,{wormExtend:"",wormId:de},we),xe={ExtendWormConfiguration:{RetentionPeriodInDays:he}},Se.mime="xml",Se.content=se.obj2xml(xe,{headers:!0}),Se.successStatuses=[200],Le.next=8,this.request(Se);case 8:return ye=Le.sent,Le.abrupt("return",{res:ye.res,status:ye.status});case 10:case"end":return Le.stop()}},ae,this)})),te.apply(this,arguments)}ve.extendBucketWorm=me},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(x,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.getBucketInventory=void 0;var oe=x("../utils/checkBucketName"),se=x("../utils/formatInventoryConfig");function me(ae,ue){return te.apply(this,arguments)}function te(){return te=(0,ie.default)(ne.default.mark(function ae(ue,de){var he,we,Se,xe,ye=arguments;return ne.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return he=ye.length>2&&ye[2]!==void 0?ye[2]:{},we=Object.assign({inventory:"",inventoryId:de},he.subres),oe.checkBucketName(ue),Se=this._bucketRequestParams("GET",ue,we,he),Se.successStatuses=[200],Se.xmlResponse=!0,Le.next=8,this.request(Se);case 8:return xe=Le.sent,Le.abrupt("return",{status:xe.status,res:xe.res,inventory:se.formatInventoryConfig(xe.data)});case 10:case"end":return Le.stop()}},ae,this)})),te.apply(this,arguments)}ve.getBucketInventory=me},{"../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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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,me=x("../utils/isArray"),te=me.isArray,ae=x("../utils/formatObjKey"),ue=ae.formatObjKey,de=ve;de.getBucketLifecycle=function(){var he=(0,ie.default)(ne.default.mark(function Se(xe,ye){var Ae,Le,Ce;return ne.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return se(xe),Ae=this._bucketRequestParams("GET",xe,"lifecycle",ye),Ae.successStatuses=[200],Ae.xmlResponse=!0,Me.next=6,this.request(Ae);case 6:return Le=Me.sent,Ce=Le.data.Rule||null,Ce&&(te(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Oe){return Oe.ID&&(Oe.id=Oe.ID,delete Oe.ID),Oe.Tag&&!te(Oe.Tag)&&(Oe.Tag=[Oe.Tag]),ue(Oe,"firstLowerCase")})),Me.abrupt("return",{rules:Ce,res:Le.res});case 10:case"end":return Me.stop()}},Se,this)}));function we(Se,xe){return he.apply(this,arguments)}return we}()},{"../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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,me=ve;me.getBucketVersioning=function(){var te=(0,ie.default)(ne.default.mark(function ue(de,he){var we,Se,xe;return ne.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return se(de),we=this._bucketRequestParams("GET",de,"versioning",he),we.xmlResponse=!0,we.successStatuses=[200],Ae.next=6,this.request(we);case 6:return Se=Ae.sent,xe=Se.data.Status,Ae.abrupt("return",{status:Se.status,versionStatus:xe,res:Se.res});case 9:case"end":return Ae.stop()}},ue,this)}));function ae(ue,de){return te.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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,me=x("../utils/isObject"),te=me.isObject,ae=ve;ae.getBucketWebsite=function(){var ue=(0,ie.default)(ne.default.mark(function he(we,Se){var xe,ye,Ae;return ne.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return se(we),xe=this._bucketRequestParams("GET",we,"website",Se),xe.successStatuses=[200],xe.xmlResponse=!0,Ce.next=6,this.request(xe);case 6:return ye=Ce.sent,Ae=[],ye.data.RoutingRules&&ye.data.RoutingRules.RoutingRule&&(te(ye.data.RoutingRules.RoutingRule)?Ae=[ye.data.RoutingRules.RoutingRule]:Ae=ye.data.RoutingRules.RoutingRule),Ce.abrupt("return",{index:ye.data.IndexDocument&&ye.data.IndexDocument.Suffix||"",supportSubDir:ye.data.IndexDocument&&ye.data.IndexDocument.SupportSubDir||"false",type:ye.data.IndexDocument&&ye.data.IndexDocument.Type,routingRules:Ae,error:ye.data.ErrorDocument&&ye.data.ErrorDocument.Key||null,res:ye.res});case 10:case"end":return Ce.stop()}},he,this)}));function de(he,we){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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.getBucketWorm=void 0;var oe=x("../utils/checkBucketName"),se=x("../utils/dataFix");function me(ae,ue){return te.apply(this,arguments)}function te(){return te=(0,ie.default)(ne.default.mark(function ae(ue,de){var he,we;return ne.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return oe.checkBucketName(ue),he=this._bucketRequestParams("GET",ue,"worm",de),he.successStatuses=[200],he.xmlResponse=!0,xe.next=6,this.request(he);case 6:return we=xe.sent,se.dataFix(we.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),xe.abrupt("return",Object.assign(Object.assign({},we.data),{res:we.res,status:we.status}));case 9:case"end":return xe.stop()}},ae,this)})),te.apply(this,arguments)}ve.getBucketWorm=me},{"../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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.initiateBucketWorm=void 0;var oe=x("../utils/obj2xml"),se=x("../utils/checkBucketName");function me(ae,ue,de){return te.apply(this,arguments)}function te(){return te=(0,ie.default)(ne.default.mark(function ae(ue,de,he){var we,Se,xe;return ne.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return se.checkBucketName(ue),we=this._bucketRequestParams("POST",ue,"worm",he),Se={InitiateWormConfiguration:{RetentionPeriodInDays:de}},we.mime="xml",we.content=oe.obj2xml(Se,{headers:!0}),we.successStatuses=[200],Ae.next=8,this.request(we);case 8:return xe=Ae.sent,Ae.abrupt("return",{res:xe.res,wormId:xe.res.headers["x-oss-worm-id"],status:xe.status});case 10:case"end":return Ae.stop()}},ae,this)})),te.apply(this,arguments)}ve.initiateBucketWorm=me},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(x,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.listBucketInventory=void 0;var oe=x("../utils/checkBucketName"),se=x("../utils/formatInventoryConfig");function me(ae){return te.apply(this,arguments)}function te(){return te=(0,ie.default)(ne.default.mark(function ae(ue){var de,he,we,Se,xe,ye,Ae,Le,Ce=arguments;return ne.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return de=Ce.length>1&&Ce[1]!==void 0?Ce[1]:{},he=de.continuationToken,we=Object.assign({inventory:""},he&&{"continuation-token":he},de.subres),oe.checkBucketName(ue),Se=this._bucketRequestParams("GET",ue,we,de),Se.successStatuses=[200],Se.xmlResponse=!0,Me.next=9,this.request(Se);case 9:return xe=Me.sent,ye=xe.data,Ae=xe.res,Le=xe.status,Me.abrupt("return",{isTruncated:ye.IsTruncated==="true",nextContinuationToken:ye.NextContinuationToken,inventoryList:se.formatInventoryConfig(ye.InventoryConfiguration,!0),status:Le,res:Ae});case 12:case"end":return Me.stop()}},ae,this)})),te.apply(this,arguments)}ve.listBucketInventory=me},{"../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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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(ve,"__esModule",{value:!0}),ve.putBucketInventory=void 0;var oe=x("../utils/checkBucketName"),se=x("../utils/obj2xml");function me(ae,ue){return te.apply(this,arguments)}function te(){return te=(0,ie.default)(ne.default.mark(function ae(ue,de){var he,we,Se,xe,ye,Ae,Le,Ce,je,Me,Oe,Ee=arguments;return ne.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return he=Ee.length>2&&Ee[2]!==void 0?Ee[2]:{},we=Object.assign({inventory:"",inventoryId:de.id},he.subres),oe.checkBucketName(ue),Se=de.OSSBucketDestination,xe=de.optionalFields,ye=de.includedObjectVersions,Ae="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(Ae).concat(Se.bucket),Prefix:Se.prefix||"",Encryption:Se.encryption||""}},Schedule:{Frequency:de.frequency},IncludedObjectVersions:ye,OptionalFields:{Field:(xe==null?void 0:xe.field)||[]}}},je=se.obj2xml(Ce,{headers:!0,firstUpperCase:!0}),Me=this._bucketRequestParams("PUT",ue,we,he),Me.successStatuses=[200],Me.mime="xml",Me.content=je,_e.next=14,this.request(Me);case 14:return Oe=_e.sent,_e.abrupt("return",{status:Oe.status,res:Oe.res});case 16:case"end":return _e.stop()}},ae,this)})),te.apply(this,arguments)}ve.putBucketInventory=me},{"../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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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,me=x("../utils/isArray"),te=me.isArray,ae=x("../utils/deepCopy"),ue=ae.deepCopy,de=x("../utils/isObject"),he=de.isObject,we=x("../utils/obj2xml"),Se=we.obj2xml,xe=x("../utils/checkObjectTag"),ye=xe.checkObjectTag,Ae=x("../utils/getStrBytesCount"),Le=Ae.getStrBytesCount,Ce=ve;Ce.putBucketLifecycle=function(){var Ne=(0,ie.default)(ne.default.mark(function Ze(Pe,Ue,Qe){var tt,at,lt,Ve,Xe;return ne.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(se(Pe),te(Ue)){ct.next=3;break}throw new Error("rules must be Array");case 3:return tt=this._bucketRequestParams("PUT",Pe,"lifecycle",Qe),at=[],lt={LifecycleConfiguration:{Rule:at}},Ue.forEach(function(ot){je(ot),Ee(ot),ot.id&&(ot.ID=ot.id,delete ot.id),at.push(ot)}),Ve=Se(lt,{headers:!0,firstUpperCase:!0}),tt.content=Ve,tt.mime="xml",tt.successStatuses=[200],ct.next=13,this.request(tt);case 13:return Xe=ct.sent,ct.abrupt("return",{res:Xe.res});case 15:case"end":return ct.stop()}},Ze,this)}));function _e(Ze,Pe,Ue){return Ne.apply(this,arguments)}return _e}();function je(Ne){Ne.days&&(Ne.expiration={days:Ne.days}),Ne.date&&(Ne.expiration={createdBeforeDate:Ne.date})}function Me(Ne,_e){var Ze=Ne.days,Pe=Ne.createdBeforeDate;if(!Ze&&!Pe)throw new Error("".concat(_e," must includes days or createdBeforeDate"));if(Ze&&!/^[1-9][0-9]*$/.test(Ze))throw new Error("days must be a positive integer");if(Pe&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Pe))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function Oe(Ne){if(!te(Ne)&&!he(Ne))throw new Error("tag must be Object or Array");Ne=he(Ne)?[Ne]:Ne;var _e={},Ze=ue(Ne);Ze.forEach(function(Pe){_e[Pe.key]=Pe.value}),ye(_e)}function Ee(Ne){if(Ne.id&&Le(Ne.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Ne.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Ne.status))throw new Error("Status must be Enabled or Disabled");if(Ne.transition){if(!["IA","Archive"].includes(Ne.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Me(Ne.transition,"Transition")}if(Ne.expiration){if(!Ne.expiration.expiredObjectDeleteMarker)Me(Ne.expiration,"Expiration");else if(Ne.expiration.days||Ne.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Ne.abortMultipartUpload&&Me(Ne.abortMultipartUpload,"AbortMultipartUpload"),!Ne.expiration&&!Ne.abortMultipartUpload&&!Ne.transition&&!Ne.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Ne.tag){if(Ne.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");Oe(Ne.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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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,me=x("../utils/obj2xml"),te=me.obj2xml,ae=ve;ae.putBucketVersioning=function(){var ue=(0,ie.default)(ne.default.mark(function he(we,Se){var xe,ye,Ae,Le,Ce=arguments;return ne.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(xe=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},se(we),["Enabled","Suspended"].includes(Se)){Me.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ye=this._bucketRequestParams("PUT",we,"versioning",xe),Ae={VersioningConfiguration:{Status:Se}},ye.mime="xml",ye.content=te(Ae,{headers:!0}),Me.next=10,this.request(ye);case 10:return Le=Me.sent,Me.abrupt("return",{res:Le.res,status:Le.status});case 12:case"end":return Me.stop()}},he,this)}));function de(he,we){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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),se=oe.checkBucketName,me=x("../utils/obj2xml"),te=me.obj2xml,ae=x("../utils/isArray"),ue=ae.isArray,de=ve;de.putBucketWebsite=function(){var he=(0,ie.default)(ne.default.mark(function Se(xe){var ye,Ae,Le,Ce,je,Me,Oe,Ee=arguments;return ne.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(ye=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},Ae=Ee.length>2?Ee[2]:void 0,se(xe),Le=this._bucketRequestParams("PUT",xe,"website",Ae),Ce={Suffix:ye.index||"index.html"},je={IndexDocument:Ce},Me={WebsiteConfiguration:je},ye.supportSubDir&&(Ce.SupportSubDir=ye.supportSubDir),ye.type&&(Ce.Type=ye.type),ye.error&&(je.ErrorDocument={Key:ye.error}),ye.routingRules===void 0){_e.next=14;break}if(ue(ye.routingRules)){_e.next=13;break}throw new Error("RoutingRules must be Array");case 13:je.RoutingRules={RoutingRule:ye.routingRules};case 14:return Me=te(Me),Le.content=Me,Le.mime="xml",Le.successStatuses=[200],_e.next=20,this.request(Le);case 20:return Oe=_e.sent,_e.abrupt("return",{res:Oe.res});case 22:case"end":return _e.stop()}},Se,this)}));function we(Se){return he.apply(this,arguments)}return we}()},{"../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,De,ve){(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"),ve.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 me=re.from(JSON.stringify(se)).toString("base64");if(ie.headers["x-oss-callback"]=me,oe.callback.customValue){var te={};Object.keys(oe.callback.customValue).forEach(function(ae){te["x:".concat(ae)]=oe.callback.customValue[ae].toString()}),ie.headers["x-oss-callback-var"]=re.from(JSON.stringify(te)).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,De,ve){"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(ve,"__esModule",{value:!0}),ve.getReqUrl=void 0;var ne=re(x("copy-to")),ie=re(x("url")),oe=re(x("merge-descriptors")),se=re(x("is-type-of")),me=x("../utils/isIP"),te=x("../utils/checkConfigValid");function ae(ue){var de={},he=this.options.cname;te.checkConfigValid(this.options.endpoint,"endpoint"),ne.default(this.options.endpoint,!1).to(de),ue.bucket&&!he&&!me.isIP(de.hostname)&&!this.options.sldEnable&&(de.host="".concat(ue.bucket,".").concat(de.host));var we="/";ue.bucket&&this.options.sldEnable&&(we+="".concat(ue.bucket,"/")),ue.object&&(we+=this._escape(ue.object).replace(/\+/g,"%2B")),de.pathname=we;var Se={};if(ue.query&&oe.default(Se,ue.query),ue.subres){var xe={};se.default.string(ue.subres)?xe[ue.subres]="":se.default.array(ue.subres)?ue.subres.forEach(function(ye){xe[ye]=""}):xe=ue.subres,oe.default(Se,xe)}return de.query=Se,ie.default.format(de)}ve.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,De,ve){"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"),ne=x("url"),ie=x("../utils/checkBucketName"),oe=ie.checkBucketName,se=x("../utils/setRegion"),me=se.setRegion,te=x("../utils/checkConfigValid"),ae=te.checkConfigValid;function ue(de,he){ae(de,"endpoint");var we=ne.parse(de);if(we.protocol||(we=ne.parse("http".concat(he?"s":"","://").concat(de))),we.protocol!=="http:"&&we.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return we}De.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=me(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,De,ve){"use strict";var re=x("merge-descriptors"),ne=ve;re(ne,x("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(x,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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,me=x("querystring"),te=x("js-base64"),ae=te.Base64.encode,ue=ve;ue.processObjectSave=function(){var he=(0,ie.default)(ne.default.mark(function Se(xe,ye,Ae,Le){var Ce,je,Me,Oe;return ne.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return de(xe,"sourceObject"),de(ye,"targetObject"),de(Ae,"process"),ye=this._objectName(ye),Le&&se(Le),Ce=this._objectRequestParams("POST",xe,{subres:"x-oss-process"}),je=Le?",b_".concat(ae(Le)):"",ye=ae(ye),Me={"x-oss-process":"".concat(Ae,"|sys/saveas,o_").concat(ye).concat(je)},Ce.content=me.stringify(Me),Ne.next=12,this.request(Ce);case 12:return Oe=Ne.sent,Ne.abrupt("return",{res:Oe.res,status:Oe.res.status});case 14:case"end":return Ne.stop()}},Se,this)}));function we(Se,xe,ye,Ae){return he.apply(this,arguments)}return we}();function de(he,we){if(!he)throw new Error("".concat(we," is required"));if(typeof he!="string")throw new Error("".concat(we," 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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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"),me=ve;me.uploadPartCopy=function(){var te=(0,ie.default)(ne.default.mark(function ue(de,he,we,Se,xe){var ye,Ae,Le,Ce,je,Me=arguments;return ne.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ye=Me.length>5&&Me[5]!==void 0?Me[5]:{},ye.headers=ye.headers||{},Ae=ye.versionId||ye.subres&&ye.subres.versionId||null,Ae?Le="/".concat(xe.sourceBucketName,"/").concat(encodeURIComponent(xe.sourceKey),"?versionId=").concat(Ae):Le="/".concat(xe.sourceBucketName,"/").concat(encodeURIComponent(xe.sourceKey)),ye.headers["x-oss-copy-source"]=Le,Se&&(ye.headers["x-oss-copy-source-range"]="bytes=".concat(Se)),ye.subres={partNumber:we,uploadId:he},Ce=this._objectRequestParams("PUT",de,ye),Ce.mime=ye.mime,Ce.successStatuses=[200],Ee.next=12,this.request(Ce);case 12:return je=Ee.sent,Ee.abrupt("return",{name:de,etag:je.res.headers.etag,res:je.res});case 14:case"end":return Ee.stop()}},ue,this)}));function ae(ue,de,he,we,Se){return te.apply(this,arguments)}return ae}(),me.multipartUploadCopy=function(){var te=(0,ie.default)(ne.default.mark(function ue(de,he){var we,Se,xe,ye,Ae,Le,Ce,je,Me,Oe,Ee,Ne,_e=arguments;return ne.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return we=_e.length>2&&_e[2]!==void 0?_e[2]:{},this.resetCancelFlag(),Se=we.versionId,xe=Se===void 0?null:Se,ye={versionId:xe},Pe.next=6,this._getObjectMeta(he.sourceBucketName,he.sourceKey,ye);case 6:if(Ae=Pe.sent,Le=Ae.res.headers["content-length"],he.startOffset=he.startOffset||0,he.endOffset=he.endOffset||Le,!(we.checkpoint&&we.checkpoint.uploadId)){Pe.next=14;break}return Pe.next=13,this._resumeMultipartCopy(we.checkpoint,he,we);case 13:return Pe.abrupt("return",Pe.sent);case 14:if(Ce=102400,je=he.endOffset-he.startOffset,!(je<Ce)){Pe.next=18;break}throw new Error("copySize must not be smaller than ".concat(Ce));case 18:if(!(we.partSize&&we.partSize<Ce)){Pe.next=20;break}throw new Error("partSize must not be smaller than ".concat(Ce));case 20:return Pe.next=22,this.initMultipartUpload(de,we);case 22:if(Me=Pe.sent,Oe=Me.uploadId,Ee=this._getPartSize(je,we.partSize),Ne={name:de,copySize:je,partSize:Ee,uploadId:Oe,doneParts:[]},!(we&&we.progress)){Pe.next=29;break}return Pe.next=29,we.progress(0,Ne,Me.res);case 29:return Pe.next=31,this._resumeMultipartCopy(Ne,he,we);case 31:return Pe.abrupt("return",Pe.sent);case 32:case"end":return Pe.stop()}},ue,this)}));function ae(ue,de){return te.apply(this,arguments)}return ae}(),me._resumeMultipartCopy=function(){var te=(0,ie.default)(ne.default.mark(function ue(de,he,we){var Se,xe,ye,Ae,Le,Ce,je,Me,Oe,Ee,Ne,_e,Ze,Pe,Ue,Qe,tt,at,lt,Ve,Xe;return ne.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(!this.isCancel()){ct.next=2;break}throw this._makeCancelEvent();case 2:if(Se=we.versionId,xe=Se===void 0?null:Se,ye={versionId:xe},Ae=de.copySize,Le=de.partSize,Ce=de.uploadId,je=de.doneParts,Me=de.name,Oe=this._divideMultipartCopyParts(Ae,Le,he.startOffset),Ee=Oe.length,Ne={headers:{}},we.copyheaders&&se(we.copyheaders).to(Ne.headers),xe&&se(ye).to(Ne),_e=function(et,qe,it){return new Promise(function(){var yt=(0,ie.default)(ne.default.mark(function pt(Dt,At){var st,Ge,We;return ne.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(fe.prev=0,et.isCancel()){fe.next=22;break}return st=Oe[qe-1],Ge="".concat(st.start,"-").concat(st.end-1),fe.prev=4,fe.next=7,et.uploadPartCopy(Me,Ce,qe,Ge,it,Ne);case 7:We=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 et._makeAbortEvent();case 14:throw fe.t0;case 15:if(et.isCancel()){fe.next=22;break}if(oe("content-range ".concat(We.res.headers["content-range"])),je.push({number:qe,etag:We.res.headers.etag}),de.doneParts=je,!(we&&we.progress)){fe.next=22;break}return fe.next=22,we.progress(je.length/Ee,de,We.res);case 22:Dt(),fe.next=29;break;case 25:fe.prev=25,fe.t1=fe.catch(0),fe.t1.partNum=qe,At(fe.t1);case 29:case"end":return fe.stop()}},pt,null,[[0,25],[4,10]])}));return function(pt,Dt){return yt.apply(this,arguments)}}())},Ze=Array.from(new Array(Ee),function(ot,et){return et+1}),Pe=je.map(function(ot){return ot.number}),Ue=Ze.filter(function(ot){return Pe.indexOf(ot)<0}),Qe=5,tt=we.parallel||Qe,!(this.checkBrowserAndVersion("Internet Explorer","10")||tt===1)){ct.next=28;break}at=0;case 18:if(!(at<Ue.length)){ct.next=26;break}if(!this.isCancel()){ct.next=21;break}throw this._makeCancelEvent();case 21:return ct.next=23,_e(this,Ue[at],he);case 23:at++,ct.next=18;break;case 26:ct.next=40;break;case 28:return ct.next=30,this._parallelNode(Ue,tt,_e,he);case 30:if(lt=ct.sent,Ve=lt.find(function(ot){return ot.name==="abort"}),!Ve){ct.next=34;break}throw Ve;case 34:if(!this.isCancel()){ct.next=36;break}throw this._makeCancelEvent();case 36:if(!(lt&<.length>0)){ct.next=40;break}throw Xe=lt[0],Xe.message="Failed to copy some parts with error: ".concat(Xe.toString()," part_num: ").concat(Xe.partNum),Xe;case 40:return ct.next=42,this.completeMultipartUpload(Me,Ce,je,we);case 42:return ct.abrupt("return",ct.sent);case 43:case"end":return ct.stop()}},ue,this)}));function ae(ue,de,he){return te.apply(this,arguments)}return ae}(),me._divideMultipartCopyParts=function(ae,ue,de){for(var he=Math.ceil(ae/ue),we=[],Se=0;Se<he;Se++){var xe=ue*Se+de,ye=Math.min(xe+ue,ae+de);we.push({start:xe,end:ye})}return we},me._getObjectMeta=function(){var te=(0,ie.default)(ne.default.mark(function ue(de,he,we){var Se,xe;return ne.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Se=this.getBucket(),this.setBucket(de),Ae.next=4,this.head(he,we);case 4:return xe=Ae.sent,this.setBucket(Se),Ae.abrupt("return",xe);case 7:case"end":return Ae.stop()}},ue,this)}));function ae(ue,de,he){return te.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,De,ve){(function(re){(function(){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),ie=ne(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=ne(x("@babel/runtime/helpers/asyncToGenerator")),se=x("copy-to"),me=x("./callback"),te=x("./utils/deepCopy"),ae=te.deepCopyWith,ue=x("./utils/isBuffer"),de=ue.isBuffer,he=x("./utils/omit"),we=he.omit,Se=ve;Se.listUploads=function(){var xe=(0,oe.default)(ie.default.mark(function Ae(Le,Ce){var je,Me,Oe,Ee;return ie.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Ce=Ce||{},je={},se(Ce).to(je),je.subres="uploads",Me=this._objectRequestParams("GET","",je),Me.query=Le,Me.xmlResponse=!0,Me.successStatuses=[200],_e.next=10,this.request(Me);case 10:return Oe=_e.sent,Ee=Oe.data.Upload||[],Array.isArray(Ee)||(Ee=[Ee]),Ee=Ee.map(function(Ze){return{name:Ze.Key,uploadId:Ze.UploadId,initiated:Ze.Initiated}}),_e.abrupt("return",{res:Oe.res,uploads:Ee,bucket:Oe.data.Bucket,nextKeyMarker:Oe.data.NextKeyMarker,nextUploadIdMarker:Oe.data.NextUploadIdMarker,isTruncated:Oe.data.IsTruncated==="true"});case 15:case"end":return _e.stop()}},Ae,this)}));function ye(Ae,Le){return xe.apply(this,arguments)}return ye}(),Se.listParts=function(){var xe=(0,oe.default)(ie.default.mark(function Ae(Le,Ce,je,Me){var Oe,Ee,Ne;return ie.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return Me=Me||{},Oe={},se(Me).to(Oe),Oe.subres={uploadId:Ce},Ee=this._objectRequestParams("GET",Le,Oe),Ee.query=je,Ee.xmlResponse=!0,Ee.successStatuses=[200],Ze.next=10,this.request(Ee);case 10:return Ne=Ze.sent,Ze.abrupt("return",{res:Ne.res,uploadId:Ne.data.UploadId,bucket:Ne.data.Bucket,name:Ne.data.Key,partNumberMarker:Ne.data.PartNumberMarker,nextPartNumberMarker:Ne.data.NextPartNumberMarker,maxParts:Ne.data.MaxParts,isTruncated:Ne.data.IsTruncated,parts:Ne.data.Part||[]});case 12:case"end":return Ze.stop()}},Ae,this)}));function ye(Ae,Le,Ce,je){return xe.apply(this,arguments)}return ye}(),Se.abortMultipartUpload=function(){var xe=(0,oe.default)(ie.default.mark(function Ae(Le,Ce,je){var Me,Oe,Ee;return ie.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return this._stop(),je=je||{},Me={},se(je).to(Me),Me.subres={uploadId:Ce},Oe=this._objectRequestParams("DELETE",Le,Me),Oe.successStatuses=[204],_e.next=9,this.request(Oe);case 9:return Ee=_e.sent,_e.abrupt("return",{res:Ee.res});case 11:case"end":return _e.stop()}},Ae,this)}));function ye(Ae,Le,Ce){return xe.apply(this,arguments)}return ye}(),Se.initMultipartUpload=function(){var xe=(0,oe.default)(ie.default.mark(function Ae(Le,Ce){var je,Me,Oe;return ie.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ce=Ce||{},je={},se(Ce).to(je),je.headers=je.headers||{},this._convertMetaToHeaders(Ce.meta,je.headers),je.subres="uploads",Me=this._objectRequestParams("POST",Le,je),Me.mime=Ce.mime,Me.xmlResponse=!0,Me.successStatuses=[200],Ne.next=12,this.request(Me);case 12:return Oe=Ne.sent,Ne.abrupt("return",{res:Oe.res,bucket:Oe.data.Bucket,name:Oe.data.Key,uploadId:Oe.data.UploadId});case 14:case"end":return Ne.stop()}},Ae,this)}));function ye(Ae,Le){return xe.apply(this,arguments)}return ye}(),Se.uploadPart=function(){var xe=(0,oe.default)(ie.default.mark(function Ae(Le,Ce,je,Me,Oe,Ee,Ne){var _e,Ze;return ie.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(_e={size:Ee-Oe},Ze=re&&re.browser,!Ze){Ue.next=8;break}return Ue.next=5,this._createBuffer(Me,Oe,Ee);case 5:_e.content=Ue.sent,Ue.next=11;break;case 8:return Ue.next=10,this._createStream(Me,Oe,Ee);case 10:_e.stream=Ue.sent;case 11:return Ue.next=13,this._uploadPart(Le,Ce,je,_e,Ne);case 13:return Ue.abrupt("return",Ue.sent);case 14:case"end":return Ue.stop()}},Ae,this)}));function ye(Ae,Le,Ce,je,Me,Oe,Ee){return xe.apply(this,arguments)}return ye}(),Se.completeMultipartUpload=function(){var xe=(0,oe.default)(ie.default.mark(function Ae(Le,Ce,je,Me){var Oe,Ee,Ne,_e,Ze,Pe,Ue,Qe;return ie.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:for(Oe=je.concat().sort(function(lt,Ve){return lt.number-Ve.number}).filter(function(lt,Ve,Xe){return!Ve||lt.number!==Xe[Ve-1].number}),Ee=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,Ne=0;Ne<Oe.length;Ne++)_e=Oe[Ne],Ee+=`<Part>
|
|
|
`,Ee+="<PartNumber>".concat(_e.number,`</PartNumber>
|
|
|
`),Ee+="<ETag>".concat(_e.etag,`</ETag>
|
|
|
`),Ee+=`</Part>
|
|
|
`;return Ee+="</CompleteMultipartUpload>",Me=Me||{},Ze={},Ze=ae(Me,function(lt){if(de(lt))return null}),Ze.subres={uploadId:Ce},Ze.headers=we(Ze.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Pe=this._objectRequestParams("POST",Le,Ze),me.encodeCallback(Pe,Ze),Pe.mime="xml",Pe.content=Ee,Pe.headers&&Pe.headers["x-oss-callback"]||(Pe.xmlResponse=!0),Pe.successStatuses=[200],at.next=17,this.request(Pe);case 17:if(Ue=at.sent,!Me.progress){at.next=21;break}return at.next=21,Me.progress(1,null,Ue.res);case 21:return Qe={res:Ue.res,bucket:Pe.bucket,name:Le,etag:Ue.res.headers.etag},Pe.headers&&Pe.headers["x-oss-callback"]&&(Qe.data=JSON.parse(Ue.data.toString())),at.abrupt("return",Qe);case 24:case"end":return at.stop()}},Ae,this)}));function ye(Ae,Le,Ce,je){return xe.apply(this,arguments)}return ye}(),Se._uploadPart=function(){var xe=(0,oe.default)(ie.default.mark(function Ae(Le,Ce,je,Me,Oe){var Ee,Ne,_e,Ze;return ie.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Oe=Oe||{},Ee={},se(Oe).to(Ee),Ee.headers=Ee.headers||{},Ee.headers["Content-Length"]=Me.size,Ee.headers=we(Ee.headers,["x-oss-server-side-encryption"]),Ee.subres={partNumber:je,uploadId:Ce},Ne=this._objectRequestParams("PUT",Le,Ee),Ne.mime=Ee.mime,_e=re&&re.browser,_e?Ne.content=Me.content:Ne.stream=Me.stream,Ne.successStatuses=[200],Ne.disabledMD5=Oe.disabledMD5,Ue.next=15,this.request(Ne);case 15:if(Ze=Ue.sent,Ze.res.headers.etag){Ue.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 Me.stream&&(Me.stream=null,Ne.stream=null),Ue.abrupt("return",{name:Le,etag:Ze.res.headers.etag,res:Ze.res});case 20:case"end":return Ue.stop()}},Ae,this)}));function ye(Ae,Le,Ce,je,Me){return xe.apply(this,arguments)}return ye}()}).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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator")),ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("url"),se=x("utility"),me=x("copy-to"),te=x("../../common/signUtils"),ae=x("../utils/isIP"),ue=ae.isIP,de=x("../utils/setSTSToken"),he=de.setSTSToken,we=x("../utils/isFunction"),Se=we.isFunction,xe=ve;xe.asyncSignatureUrl=function(){var ye=(0,ie.default)(ne.default.mark(function Le(Ce,je){var Me,Oe,Ee,Ne,_e;return ne.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(!ue(this.options.endpoint.hostname)){Pe.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(je=je||{},Ce=this._objectName(Ce),je.method=je.method||"GET",Me=se.timestamp()+(je.expires||1800),Oe={bucket:this.options.bucket,object:Ce},Ee=this._getResource(Oe),!(this.options.stsToken&&Se(this.options.refreshSTSToken))){Pe.next=11;break}return Pe.next=11,he.call(this);case 11:return this.options.stsToken&&(je["security-token"]=this.options.stsToken),Ne=te._signatureForURL(this.options.accessKeySecret,je,Ee,Me),_e=oe.parse(this._getReqUrl(Oe)),_e.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Me,Signature:Ne.Signature},me(Ne.subResource).to(_e.query),Pe.abrupt("return",_e.format());case 17:case"end":return Pe.stop()}},Le,this)}));function Ae(Le,Ce){return ye.apply(this,arguments)}return Ae}()},{"../../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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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"),me=se.checkBucketName,te=ve,ae=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];te.copy=function(){var ue=(0,oe.default)(ne.default.mark(function he(we,Se,xe,ye){var Ae,Le,Ce;return ne.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return(0,ie.default)(xe)==="object"&&(ye=xe),ye=ye||{},ye.headers=ye.headers||{},Object.keys(ye.headers).forEach(function(Oe){ye.headers["x-oss-copy-source-".concat(Oe.toLowerCase())]=ye.headers[Oe]}),(ye.meta||Object.keys(ye.headers).find(function(Oe){return ae.includes(Oe.toLowerCase())}))&&(ye.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ye.meta,ye.headers),Se=this._getSourceName(Se,xe),ye.versionId&&(Se="".concat(Se,"?versionId=").concat(ye.versionId)),ye.headers["x-oss-copy-source"]=Se,Ae=this._objectRequestParams("PUT",we,ye),Ae.xmlResponse=!0,Ae.successStatuses=[200,304],Me.next=14,this.request(Ae);case 14:return Le=Me.sent,Ce=Le.data,Ce&&(Ce={etag:Ce.ETag,lastModified:Ce.LastModified}),Me.abrupt("return",{data:Ce,res:Le.res});case 18:case"end":return Me.stop()}},he,this)}));function de(he,we,Se,xe){return ue.apply(this,arguments)}return de}(),te._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")),me(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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=ve;oe.delete=function(){var se=(0,ie.default)(ne.default.mark(function te(ae){var ue,de,he,we=arguments;return ne.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ue=we.length>1&&we[1]!==void 0?we[1]:{},ue.subres=Object.assign({},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),de=this._objectRequestParams("DELETE",ae,ue),de.successStatuses=[204],xe.next=7,this.request(de);case 7:return he=xe.sent,xe.abrupt("return",{res:he.res});case 9:case"end":return xe.stop()}},te,this)}));function me(te){return se.apply(this,arguments)}return me}()},{"@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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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"),me=se.obj2xml,te=ve;te.deleteMulti=function(){var ae=(0,ie.default)(ne.default.mark(function de(he){var we,Se,xe,ye,Ae,Le,Ce,je,Me,Oe,Ee,Ne,_e,Ze=arguments;return ne.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(we=Ze.length>1&&Ze[1]!==void 0?Ze[1]:{},Se=[],!(!he||!he.length)){Ue.next=4;break}throw new Error("names is required");case 4:for(xe=0;xe<he.length;xe++)ye={},typeof he[xe]=="string"?ye.Key=oe.escape(this._objectName(he[xe])):(Ae=he[xe],Le=Ae.key,Ce=Ae.versionId,ye.Key=oe.escape(this._objectName(Le)),ye.VersionId=Ce),Se.push(ye);return je={Delete:{Quiet:!!we.quiet,Object:Se}},Me=me(je,{headers:!0}),we.subres=Object.assign({delete:""},we.subres),we.versionId&&(we.subres.versionId=we.versionId),Oe=this._objectRequestParams("POST","",we),Oe.mime="xml",Oe.content=Me,Oe.xmlResponse=!0,Oe.successStatuses=[200],Ue.next=16,this.request(Oe);case 16:return Ee=Ue.sent,Ne=Ee.data,_e=Ne&&Ne.Deleted||null,_e&&(Array.isArray(_e)||(_e=[_e])),Ue.abrupt("return",{res:Ee.res,deleted:_e||[]});case 21:case"end":return Ue.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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=ve;oe.deleteObjectTagging=function(){var se=(0,ie.default)(ne.default.mark(function te(ae){var ue,de,he,we=arguments;return ne.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ue=we.length>1&&we[1]!==void 0?we[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],xe.next=8,this.request(de);case 8:return he=xe.sent,xe.abrupt("return",{status:he.status,res:he.res});case 10:case"end":return xe.stop()}},te,this)}));function me(te){return se.apply(this,arguments)}return me}()},{"@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,De,ve){"use strict";x("core-js/modules/es.array.concat.js");var re=x("url"),ne=x("../utils/isIP"),ie=ne.isIP,oe=ve;oe.generateObjectUrl=function(me,te){if(ie(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(te)te[te.length-1]!=="/"&&(te+="/");else{te=this.options.endpoint.format();var ae=re.parse(te),ue=this.options.bucket;ae.hostname="".concat(ue,".").concat(ae.hostname),ae.host="".concat(ue,".").concat(ae.host),te=ae.format()}return te+this._escape(this._objectName(me))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(x,De,ve){(function(re){(function(){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),ie=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var oe=ne(x("@babel/runtime/helpers/asyncToGenerator")),se=x("fs"),me=x("is-type-of"),te=ve;te.get=function(){var ae=(0,oe.default)(ie.default.mark(function de(he,we){var Se,xe,ye,Ae,Le,Ce,je,Me,Oe=arguments;return ie.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Se=Oe.length>2&&Oe[2]!==void 0?Oe[2]:{},xe=null,ye=!1,me.writableStream(we)?xe=we:me.string(we)?(xe=se.createWriteStream(we),ye=!0):Se=we,Se=Se||{},Ae=re&&re.browser,Le=Se.responseCacheControl===null?"":"no-cache",Ce=Ae&&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),Ne.prev=11,Me=this._objectRequestParams("GET",he,Se),Me.writeStream=xe,Me.successStatuses=[200,206,304],Ne.next=17,this.request(Me);case 17:je=Ne.sent,ye&&xe.destroy(),Ne.next=28;break;case 21:if(Ne.prev=21,Ne.t0=Ne.catch(11),!ye){Ne.next=27;break}return xe.destroy(),Ne.next=27,this._deleteFileSafe(we);case 27:throw Ne.t0;case 28:return Ne.abrupt("return",{res:je.res,content:je.data});case 29:case"end":return Ne.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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=ve;oe.getACL=function(){var se=(0,ie.default)(ne.default.mark(function te(ae){var ue,de,he,we=arguments;return ne.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ue=we.length>1&&we[1]!==void 0?we[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,xe.next=9,this.request(de);case 9:return he=xe.sent,xe.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 xe.stop()}},te,this)}));function me(te){return se.apply(this,arguments)}return me}()},{"@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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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=ve,se=x("../utils/isObject"),me=se.isObject,te=x("../utils/isArray"),ae=te.isArray;oe.getBucketVersions=ue,oe.listObjectVersions=ue;function ue(){return de.apply(this,arguments)}function de(){return de=(0,ie.default)(ne.default.mark(function Se(){var xe,ye,Ae,Le,Ce,je,Me,Oe,Ee=arguments;return ne.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(xe=Ee.length>0&&Ee[0]!==void 0?Ee[0]:{},ye=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},!(xe.versionIdMarker&&xe.keyMarker===void 0)){_e.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ye.subres=Object.assign({versions:""},ye.subres),ye.versionId&&(ye.subres.versionId=ye.versionId),Ae=this._objectRequestParams("GET","",ye),Ae.xmlResponse=!0,Ae.successStatuses=[200],Ae.query=we(xe),_e.next=12,this.request(Ae);case 12:return Le=_e.sent,Ce=Le.data.Version||[],je=Le.data.DeleteMarker||[],Me=this,Ce&&(Array.isArray(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Ze){return{name:Ze.Key,url:Me._objectUrl(Ze.Key),lastModified:Ze.LastModified,isLatest:Ze.IsLatest==="true",versionId:Ze.VersionId,etag:Ze.ETag,type:Ze.Type,size:Number(Ze.Size),storageClass:Ze.StorageClass,owner:{id:Ze.Owner.ID,displayName:Ze.Owner.DisplayName}}})),je&&(ae(je)||(je=[je]),je=je.map(function(Ze){return{name:Ze.Key,lastModified:Ze.LastModified,versionId:Ze.VersionId,owner:{id:Ze.Owner.ID,displayName:Ze.Owner.DisplayName}}})),Oe=Le.data.CommonPrefixes||null,Oe&&(ae(Oe)||(Oe=[Oe]),Oe=Oe.map(function(Ze){return Ze.Prefix})),_e.abrupt("return",{res:Le.res,objects:Ce,deleteMarker:je,prefixes:Oe,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 _e.stop()}},Se,this)})),de.apply(this,arguments)}function he(Se){return Se.replace(/([A-Z])/g,"-$1").toLowerCase()}function we(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xe={};return me(Se)&&Object.keys(Se).forEach(function(ye){xe[he(ye)]=Se[ye]}),xe}},{"../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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=ve;oe.getObjectMeta=function(){var se=(0,ie.default)(ne.default.mark(function te(ae,ue){var de,he;return ne.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()}},te,this)}));function me(te,ae){return se.apply(this,arguments)}return me}()},{"@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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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=ve,se=x("../utils/isObject"),me=se.isObject;oe.getObjectTagging=function(){var te=(0,ie.default)(ne.default.mark(function ue(de){var he,we,Se,xe,ye,Ae,Le=arguments;return ne.default.wrap(function(je){for(;;)switch(je.prev=je.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),we=this._objectRequestParams("GET",de,he),we.successStatuses=[200],je.next=8,this.request(we);case 8:return Se=je.sent,je.next=11,this.parseXML(Se.data);case 11:return xe=je.sent,ye=xe.TagSet.Tag,ye=ye&&me(ye)?[ye]:ye||[],Ae={},ye.forEach(function(Me){Ae[Me.Key]=Me.Value}),je.abrupt("return",{status:Se.status,res:Se.res,tag:Ae});case 17:case"end":return je.stop()}},ue,this)}));function ae(ue){return te.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,De,ve){"use strict";var re=x("../utils/isIP"),ne=re.isIP,ie=ve;ie.getObjectUrl=function(se,me){if(ne(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return me?me[me.length-1]!=="/"&&(me+="/"):me=this.options.endpoint.format(),me+this._escape(this._objectName(se))}},{"../utils/isIP":69}],43:[function(x,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=ve;oe.getSymlink=function(){var se=(0,ie.default)(ne.default.mark(function te(ae){var ue,de,he,we,Se=arguments;return ne.default.wrap(function(ye){for(;;)switch(ye.prev=ye.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],ye.next=8,this.request(de);case 8:return he=ye.sent,we=he.res.headers["x-oss-symlink-target"],ye.abrupt("return",{targetName:decodeURIComponent(we),res:he.res});case 11:case"end":return ye.stop()}},te,this)}));function me(te){return se.apply(this,arguments)}return me}()},{"@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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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,me=ve;me.head=function(){var te=(0,ie.default)(ne.default.mark(function ue(de){var he,we,Se,xe,ye=arguments;return ne.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return he=ye.length>1&&ye[1]!==void 0?ye[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),we=this._objectRequestParams("HEAD",de,he),we.successStatuses=[200,304],Le.next=8,this.request(we);case 8:return Se=Le.sent,xe={meta:null,res:Se.res,status:Se.status},Se.status===200&&Object.keys(Se.headers).forEach(function(Ce){Ce.indexOf("x-oss-meta-")===0&&(xe.meta||(xe.meta={}),xe.meta[Ce.substring(11)]=Se.headers[Ce])}),Le.abrupt("return",xe);case 12:case"end":return Le.stop()}},ue,this)}));function ae(ue){return te.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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=ve;oe.putACL=function(){var se=(0,ie.default)(ne.default.mark(function te(ae,ue,de){var he,we;return ne.default.wrap(function(xe){for(;;)switch(xe.prev=xe.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],xe.next=10,this.request(he);case 10:return we=xe.sent,xe.abrupt("return",{res:we.res});case 12:case"end":return xe.stop()}},te,this)}));function me(te,ae,ue){return se.apply(this,arguments)}return me}()},{"@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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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,me=x("../utils/checkObjectTag"),te=me.checkObjectTag,ae=ve;ae.putObjectTagging=function(){var ue=(0,ie.default)(ne.default.mark(function he(we,Se){var xe,ye,Ae,Le,Ce=arguments;return ne.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return xe=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},te(Se),xe.subres=Object.assign({tagging:""},xe.subres),xe.versionId&&(xe.subres.versionId=xe.versionId),we=this._objectName(we),ye=this._objectRequestParams("PUT",we,xe),ye.successStatuses=[200],Se=Object.keys(Se).map(function(Oe){return{Key:Oe,Value:Se[Oe]}}),Ae={Tagging:{TagSet:{Tag:Se}}},ye.mime="xml",ye.content=se(Ae),Me.next=13,this.request(ye);case 13:return Le=Me.sent,Me.abrupt("return",{res:Le.res,status:Le.status});case 15:case"end":return Me.stop()}},he,this)}));function de(he,we){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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ie=re(x("@babel/runtime/helpers/asyncToGenerator")),oe=ve;oe.putSymlink=function(){var se=(0,ie.default)(ne.default.mark(function te(ae,ue,de){var he,we;return ne.default.wrap(function(xe){for(;;)switch(xe.prev=xe.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],xe.next=13,this.request(he);case 13:return we=xe.sent,xe.abrupt("return",{res:we.res});case 15:case"end":return xe.stop()}},te,this)}));function me(te,ae,ue){return se.apply(this,arguments)}return me}()},{"@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,De,ve){"use strict";var re=x("url"),ne=x("utility"),ie=x("copy-to"),oe=x("../../common/signUtils"),se=x("../utils/isIP"),me=se.isIP,te=ve;te.signatureUrl=function(ue,de){if(me(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=ne.timestamp()+(de.expires||1800),we={bucket:this.options.bucket,object:ue},Se=this._getResource(we);this.options.stsToken&&(de["security-token"]=this.options.stsToken);var xe=oe._signatureForURL(this.options.accessKeySecret,de,Se,he),ye=re.parse(this._getReqUrl(we));return ye.query={OSSAccessKeyId:this.options.accessKeyId,Expires:he,Signature:xe.Signature},ie(xe.subResource).to(ye.query),ye.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(x,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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,me=ve;me._parallelNode=function(){var te=(0,ie.default)(ne.default.mark(function ue(de,he,we,Se){var xe,ye,Ae,Le,Ce,je,Me,Oe;return ne.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:xe=this,ye=[],Ae=[],Le=de.length/he,Ce=de.length%he,je=Ce===0?Le:(de.length-Ce)/he+1,Me=1,Oe=0;case 8:if(!(Oe<de.length)){Ne.next=26;break}if(!xe.isCancel()){Ne.next=11;break}return Ne.abrupt("break",26);case 11:if(Se?Ae.push(we(xe,de[Oe],Se)):Ae.push(we(xe,de[Oe])),!(Ae.length===he||Me===je&&Oe===de.length-1)){Ne.next=23;break}return Ne.prev=13,Me+=1,Ne.next=17,Promise.all(Ae);case 17:Ne.next=22;break;case 19:Ne.prev=19,Ne.t0=Ne.catch(13),ye.push(Ne.t0);case 22:Ae=[];case 23:Oe++,Ne.next=8;break;case 26:return Ne.abrupt("return",ye);case 27:case"end":return Ne.stop()}},ue,this,[[13,19]])}));function ae(ue,de,he,we){return te.apply(this,arguments)}return ae}(),me._parallel=function(ae,ue,de){var he=this;return new Promise(function(we){var Se=[];if(ue<=0||!ae){we(Se);return}function xe(Ne){return function(){if(Ne===null)throw new Error("Callback was already called.");var _e=Ne;Ne=null;for(var Ze=arguments.length,Pe=new Array(Ze),Ue=0;Ue<Ze;Ue++)Pe[Ue]=arguments[Ue];_e.apply(this,Pe)}}function ye(Ne){var _e=-1,Ze=Ne.length;return function(){return++_e<Ze&&!he.isCancel()?{value:Ne[_e],key:_e}:null}}var Ae=ye(ae),Le=!1,Ce=0,je=!1;function Me(Ne){Ce-=1,Ne?(Le=!0,Se.push(Ne),we(Se)):Le&&Ce<=0?(Le=!0,we(Se)):je||(he.isCancel()?we(Se):Ee())}function Oe(Ne,_e){de(Ne).then(function(Ze){_e(null,Ze)}).catch(function(Ze){_e(Ze)})}function Ee(){for(je=!0;Ce<ue&&!Le&&!he.isCancel();){var Ne=Ae();if(Ne===null||Se.length>0){Le=!0,Ce<=0&&we(Se);return}Ce+=1,Oe(Ne.value,xe(Me))}je=!1}Ee()})},me.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)},me.isCancel=function(){return this.options.cancelFlag},me.resetCancelFlag=function(){this.options.cancelFlag=!1},me._stop=function(){this.options.cancelFlag=!0},me._makeCancelEvent=function(){var ae={status:0,name:"cancel"};return ae},me._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,De,ve){(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 ne=x("./../../shims/crypto/crypto.js"),ie=x("is-type-of"),oe=x("./utils/lowercaseKeyHeader"),se=oe.lowercaseKeyHeader;ve.buildCanonicalizedResource=function(te,ae){var ue="".concat(te),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(xe,ye){return xe[0]>ye[0]?1:xe[0]<ye[0]?-1:0},we=function(xe){ue+=de+xe,(ae[xe]||ae[xe]===0)&&(ue+="=".concat(ae[xe])),de="&"};Object.keys(ae).sort(he).forEach(we)}return ue},ve.buildCanonicalString=function(te,ae,ue,de){ue=ue||{};var he=se(ue.headers),we="x-oss-",Se=[],xe={},ye=[te.toUpperCase(),he["content-md5"]||"",he["content-type"],de||he["x-oss-date"]];return Object.keys(he).forEach(function(Ae){var Le=Ae.toLowerCase();Le.indexOf(we)===0&&(xe[Le]=String(he[Ae]).trim())}),Object.keys(xe).sort().forEach(function(Ae){Se.push("".concat(Ae,":").concat(xe[Ae]))}),ye=ye.concat(Se),ye.push(this.buildCanonicalizedResource(ae,ue.parameters)),ye.join(`
|
|
|
`)},ve.computeSignature=function(te,ae){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",de=ne.createHmac("sha1",te);return de.update(re.from(ae,ue)).digest("base64")},ve.authorization=function(te,ae,ue,de){return"OSS ".concat(te,":").concat(this.computeSignature(ae,ue,de))},ve._signatureForURL=function(te){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,we={},Se=ae.subResource,xe=Se===void 0?{}:Se;if(ae.process){var ye="x-oss-process";xe[ye]=ae.process}if(ae.trafficLimit){var Ae="x-oss-traffic-limit";xe[Ae]=ae.trafficLimit}if(ae.response&&Object.keys(ae.response).forEach(function(Me){var Oe="response-".concat(Me.toLowerCase());xe[Oe]=ae.response[Me]}),Object.keys(ae).forEach(function(Me){var Oe=Me.toLowerCase(),Ee=ae[Me];Oe.indexOf("x-oss-")===0?we[Oe]=Ee:(Oe.indexOf("content-md5")===0||Oe.indexOf("content-type")===0)&&(we[Me]=Ee)}),Object.prototype.hasOwnProperty.call(ae,"security-token")&&(xe["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),xe.callback=re.from(JSON.stringify(Le)).toString("base64"),ae.callback.customValue){var Ce={};Object.keys(ae.callback.customValue).forEach(function(Me){Ce["x:".concat(Me)]=ae.callback.customValue[Me]}),xe["callback-var"]=re.from(JSON.stringify(Ce)).toString("base64")}}var je=this.buildCanonicalString(ae.method,ue,{headers:we,parameters:xe},de.toString());return{Signature:this.computeSignature(te,je,he),subResource:xe}}}).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,De,ve){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkBucketName=void 0,ve.checkBucketName=function(re){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=ne?/^[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,De,ve){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkConfigValid=void 0;var re={endpoint:ne,region:/^[a-zA-Z0-9\-_]+$/};function ne(ie){return typeof ie=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ie):ie.host?/^[a-zA-Z0-9._:/-]+$/.test(ie.host):!1}ve.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,De,ve){(function(re){(function(){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkEnv=void 0;function ne(ie){re.browser&&console.warn(ie)}ve.checkEnv=ne}).call(this)}).call(this,x("_process"))},{_process:467}],54:[function(x,De,ve){"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(ve,"__esModule",{value:!0}),ve.checkObjectTag=void 0;var re=x("./checkValid"),ne=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 (/)"}],me={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 te(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(we,Se){ne(we,me[de[Se]])})})}ve.checkObjectTag=te},{"./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,De,ve){"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(ve,"__esModule",{value:!0}),ve.checkValid=void 0;function re(ne,ie){ie.forEach(function(oe){if(oe.validator)oe.validator(ne);else if(oe.pattern&&!oe.pattern.test(ne))throw new Error(oe.msg)})}ve.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,De,ve){(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(ve,"__esModule",{value:!0}),ve.createRequest=void 0;var ne=x("./../../../shims/crypto/crypto.js"),ie=x("debug")("ali-oss"),oe=x("mime"),se=x("dateformat"),me=x("copy-to"),te=x("path"),ae=x("./encoder"),ue=ae.encoder,de=x("./isIP"),he=de.isIP,we=x("./setRegion"),Se=we.setRegion,xe=x("../client/getReqUrl"),ye=xe.getReqUrl,Ae=x("./isDingTalk"),Le=Ae.isDingTalk;function Ce(Oe,Ee){return Oe[Ee]||Oe[Ee.toLowerCase()]}function je(Oe,Ee){delete Oe[Ee],delete Oe[Ee.toLowerCase()]}function Me(Oe){var Ee=new Date;this.options.amendTimeSkewed&&(Ee=+new Date+this.options.amendTimeSkewed);var Ne={"x-oss-date":se(Ee,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Ne["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Ne["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Ne,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Ne["x-oss-security-token"]=this.options.stsToken),me(Oe.headers).to(Ne),Ce(Ne,"Content-Type")||(Oe.mime&&Oe.mime.indexOf("/")>0?Ne["Content-Type"]=Oe.mime:Le()?Ne["Content-Type"]="application/octet-stream":Ne["Content-Type"]=oe.getType(Oe.mime||te.extname(Oe.object||""))),Ce(Ne,"Content-Type")||je(Ne,"Content-Type"),Oe.content&&(Oe.disabledMD5||(!Oe.headers||!Oe.headers["Content-MD5"]?Ne["Content-MD5"]=ne.createHash("md5").update(re.from(Oe.content,"utf8")).digest("base64"):Ne["Content-MD5"]=Oe.headers["Content-MD5"]),Ne["Content-Length"]||(Ne["Content-Length"]=Oe.content.length));var _e=Object.prototype.hasOwnProperty;for(var Ze in Ne)Ne[Ze]&&_e.call(Ne,Ze)&&(Ne[Ze]=ue(String(Ne[Ze]),this.options.headerEncoding));var Pe=this._getResource(Oe);if(Ne.authorization=this.authorization(Oe.method,Pe,Oe.subres,Ne,this.options.headerEncoding),he(this.options.endpoint.hostname)){var Ue=this.options,Qe=Ue.region,tt=Ue.internal,at=Ue.secure,lt=Se(Qe,tt,at);Ne.host="".concat(Oe.bucket,".").concat(lt.host)}var Ve=ye.bind(this)(Oe);ie("request %s %s, with headers %j, !!stream: %s",Oe.method,Ve,Ne,!!Oe.stream);var Xe=Oe.timeout||this.options.timeout,nt={method:Oe.method,content:Oe.content,stream:Oe.stream,headers:Ne,timeout:Xe,writeStream:Oe.writeStream,customResponse:Oe.customResponse,ctx:Oe.ctx||this.ctx};return this.agent&&(nt.agent=this.agent),this.httpsAgent&&(nt.httpsAgent=this.httpsAgent),nt.enableProxy=!!this.options.enableProxy,nt.proxy=this.options.proxy?this.options.proxy:null,{url:Ve,params:nt}}ve.createRequest=Me}).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,De,ve){"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(ve,"__esModule",{value:!0}),ve.dataFix=void 0;var re=x("./isObject"),ne=["true","TRUE","1",1],ie=["false","FALSE","0",0];function oe(te,ae,ue){if(re.isObject(te)){var de=ae.remove,he=de===void 0?[]:de,we=ae.rename,Se=we===void 0?{}:we,xe=ae.camel,ye=xe===void 0?[]:xe,Ae=ae.bool,Le=Ae===void 0?[]:Ae,Ce=ae.lowerFirst,je=Ce===void 0?!1:Ce;return he.forEach(function(Me){return delete te[Me]}),Object.entries(Se).forEach(function(Me){te[Me[0]]&&(te[Me[1]]||(te[Me[1]]=te[Me[0]],delete te[Me[0]]))}),ye.forEach(function(Me){if(te[Me]){var Oe=Me.replace(/^(.)/,function(Ee){return Ee.toLowerCase()}).replace(/-(\w)/g,function(Ee,Ne){return Ne.toUpperCase()});te[Oe]||(te[Oe]=te[Me])}}),Le.forEach(function(Me){te[Me]=se(te[Me])}),typeof ue=="function"&&ue(te),me(te,je),oe}}ve.dataFix=oe;function se(te){return te?ne.includes(te)?!0:ie.includes(te)?!1:te:!1}function me(te,ae){ae&&Object.keys(te).forEach(function(ue){var de=ue.replace(/^\w/,function(he){return he.toLowerCase()});typeof te[de]=="undefined"&&(te[de]=te[ue],delete te[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,De,ve){"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 ne=re(x("@babel/runtime/helpers/typeof"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.deepCopyWith=ve.deepCopy=void 0;var ie=x("./isBuffer");ve.deepCopy=function(oe){if(oe===null||(0,ne.default)(oe)!=="object")return oe;if(ie.isBuffer(oe))return oe.slice();var se=Array.isArray(oe)?[]:{};return Object.keys(oe).forEach(function(me){se[me]=ve.deepCopy(oe[me])}),se},ve.deepCopyWith=function(oe,se){function me(te,ae,ue){var de=se(te,ae,ue);if(de!==void 0)return de;if(te===null||(0,ne.default)(te)!=="object")return te;if(ie.isBuffer(te))return te.slice();var he=Array.isArray(te)?[]:{};return Object.keys(te).forEach(function(we){he[we]=me(te[we],we,te)}),he}return se?me(oe,"",null):ve.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,De,ve){(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(ve,"__esModule",{value:!0}),ve.encoder=void 0;function ne(ie){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return oe==="utf-8"?ie:re.from(ie).toString("latin1")}ve.encoder=ne}).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,De,ve){"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(ve,"__esModule",{value:!0}),ve.formatInventoryConfig=void 0;var re=x("../utils/dataFix"),ne=x("../utils/isObject"),ie=x("../utils/isArray"),oe=x("../utils/formatObjKey");function se(te){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ae&&ne.isObject(te)&&(te=[te]),ie.isArray(te)?te=te.map(me):te=me(te),te}ve.formatInventoryConfig=se;function me(te){return re.dataFix(te,{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])}),te=oe.formatObjKey(te,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),te}},{"../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,De,ve){"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 ne=re(x("@babel/runtime/helpers/typeof"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.formatObjKey=void 0;function ie(se,me,te){if(se===null||(0,ne.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],me,te))}else ae={},Object.keys(se).forEach(function(de){ae[oe(de,me,te)]=ie(se[de],me,te)});return ae}ve.formatObjKey=ie;function oe(se,me,te){return te&&te.exclude&&te.exclude.includes(se)||(me==="firstUpperCase"?se=se.replace(/^./,function(ae){return ae.toUpperCase()}):me==="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,De,ve){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.getStrBytesCount=void 0;function re(ne){for(var ie=0,oe=0;oe<ne.length;oe++){var se=ne.charAt(oe);/^[\u00-\uff]$/.test(se)?ie+=1:ie+=2}return ie}ve.getStrBytesCount=re},{"core-js/modules/es.regexp.exec.js":300}],63:[function(x,De,ve){"use strict";x("core-js/modules/es.object.to-string.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isArray=void 0,ve.isArray=function(re){return Object.prototype.toString.call(re)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(x,De,ve){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isBlob=void 0;function re(ne){return typeof Blob!="undefined"&&ne instanceof Blob}ve.isBlob=re},{}],65:[function(x,De,ve){(function(re){(function(){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isBuffer=void 0;function ne(ie){return re.isBuffer(ie)}ve.isBuffer=ne}).call(this)}).call(this,{isBuffer:x("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(x,De,ve){(function(re){(function(){"use strict";x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isDingTalk=void 0;function ne(){return!!(re.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}ve.isDingTalk=ne}).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,De,ve){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isFile=void 0,ve.isFile=function(re){return typeof File!="undefined"&&re instanceof File}},{}],68:[function(x,De,ve){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isFunction=void 0,ve.isFunction=function(re){return typeof re=="function"}},{}],69:[function(x,De,ve){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isIP=void 0,ve.isIP=function(re){var ne=/^(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 ne.test(re)||ie.test(re)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(x,De,ve){"use strict";x("core-js/modules/es.object.to-string.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isObject=void 0,ve.isObject=function(re){return Object.prototype.toString.call(re)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(x,De,ve){"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(ve,"__esModule",{value:!0}),ve.lowercaseKeyHeader=void 0;var re=x("./isObject");function ne(ie){var oe={};return re.isObject(ie)&&Object.keys(ie).forEach(function(se){oe[se.toLowerCase()]=ie[se]}),oe}ve.lowercaseKeyHeader=ne},{"./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,De,ve){"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(ve,"__esModule",{value:!0}),ve.obj2xml=void 0;var re=x("./formatObjKey");function ne(oe){return Object.prototype.toString.call(oe).replace(/(.*? |])/g,"").toLowerCase()}function ie(oe,se){var me="";return se&&se.headers&&(me=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),se&&se.firstUpperCase&&(oe=re.formatObjKey(oe,"firstUpperCase")),ne(oe)==="object"?Object.keys(oe).forEach(function(te){ne(oe[te])!=="undefined"&&ne(oe[te])!=="null"&&(ne(oe[te])==="string"||ne(oe[te])==="number"?me+="<".concat(te,">").concat(oe[te],"</").concat(te,">"):ne(oe[te])==="object"?me+="<".concat(te,">").concat(ie(oe[te]),"</").concat(te,">"):ne(oe[te])==="array"?me+=oe[te].map(function(ae){return"<".concat(te,">").concat(ie(ae),"</").concat(te,">")}).join(""):me+="<".concat(te,">").concat(oe[te].toString(),"</").concat(te,">"))}):me+=oe.toString(),me}ve.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,De,ve){"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,me){var te=typeof Symbol!="undefined"&&se[Symbol.iterator]||se["@@iterator"];if(!te){if(Array.isArray(se)||(te=ne(se))||me&&se&&typeof se.length=="number"){te&&(se=te);var ae=0,ue=function(){};return{s:ue,n:function(){return ae>=se.length?{done:!0}:{done:!1,value:se[ae++]}},e:function(xe){throw xe},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,we;return{s:function(){te=te.call(se)},n:function(){var xe=te.next();return de=xe.done,xe},e:function(xe){he=!0,we=xe},f:function(){try{!de&&te.return!=null&&te.return()}finally{if(he)throw we}}}}function ne(se,me){if(se){if(typeof se=="string")return ie(se,me);var te=Object.prototype.toString.call(se).slice(8,-1);if(te==="Object"&&se.constructor&&(te=se.constructor.name),te==="Map"||te==="Set")return Array.from(se);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return ie(se,me)}}function ie(se,me){(me==null||me>se.length)&&(me=se.length);for(var te=0,ae=new Array(me);te<me;te++)ae[te]=se[te];return ae}Object.defineProperty(ve,"__esModule",{value:!0}),ve.omit=void 0;function oe(se,me){var te=Object.assign({},se),ae=re(me),ue;try{for(ae.s();!(ue=ae.n()).done;){var de=ue.value;delete te[de]}}catch(he){ae.e(he)}finally{ae.f()}return te}ve.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,De,ve){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.retry=void 0;function re(ne,ie){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},se=0,me=oe.retryDelay,te=me===void 0?500:me,ae=oe.errorHandler,ue=ae===void 0?function(){return!0}:ae,de=function he(){for(var we=arguments.length,Se=new Array(we),xe=0;xe<we;xe++)Se[xe]=arguments[xe];return new Promise(function(ye,Ae){ne.apply(void 0,Se).then(function(Le){se=0,ye(Le)}).catch(function(Le){se<ie&&ue(Le)?(se++,setTimeout(function(){ye(he.apply(void 0,Se))},te)):(se=0,Ae(Le))})})};return de}ve.retry=re},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(x,De,ve){"use strict";var re=function(se){return se&&se.__esModule?se:{default:se}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.setRegion=void 0;var ne=re(x("url")),ie=x("./checkConfigValid");function oe(se){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ie.checkConfigValid(se,"region");var ae=te?"https://":"http://",ue=me?"-internal.aliyuncs.com":".aliyuncs.com",de="vpc100-oss-cn-";return se.substr(0,de.length)===de&&(ue=".aliyuncs.com"),ne.default.parse(ae+se+ue)}ve.setRegion=oe},{"./checkConfigValid":52,url:472}],76:[function(x,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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(ve,"__esModule",{value:!0}),ve.checkCredentials=ve.setSTSToken=void 0;var oe=x("./formatObjKey");function se(){return me.apply(this,arguments)}function me(){return me=(0,ie.default)(ne.default.mark(function ae(){var ue,de;return ne.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(this.options||(this.options={}),ue=new Date,!this.stsTokenFreshTime){we.next=14;break}if(!(+ue-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){we.next=12;break}return this.stsTokenFreshTime=ue,we.next=7,this.options.refreshSTSToken();case 7:de=we.sent,de=oe.formatObjKey(de,"firstLowerCase"),de.securityToken&&(de.stsToken=de.securityToken),te(de),Object.assign(this.options,de);case 12:we.next=15;break;case 14:this.stsTokenFreshTime=ue;case 15:return we.abrupt("return",null);case 16:case"end":return we.stop()}},ae,this)})),me.apply(this,arguments)}ve.setSTSToken=se;function te(ae){var ue=["accessKeySecret","accessKeyId","stsToken"],de=Object.keys(ae);ue.forEach(function(he){if(!de.find(function(we){return we===he}))throw Error("refreshSTSToken must return contains ".concat(he))})}ve.checkCredentials=te},{"./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,De,ve){function re(ie,oe,se,me,te,ae,ue){try{var de=ie[ae](ue),he=de.value}catch(we){se(we);return}de.done?oe(he):Promise.resolve(he).then(me,te)}function ne(ie){return function(){var oe=this,se=arguments;return new Promise(function(me,te){var ae=ie.apply(oe,se);function ue(he){re(ae,me,te,ue,de,"next",he)}function de(he){re(ae,me,te,ue,de,"throw",he)}ue(void 0)})}}De.exports=ne,De.exports.__esModule=!0,De.exports.default=De.exports},{}],78:[function(x,De,ve){function re(ne){return ne&&ne.__esModule?ne:{default:ne}}De.exports=re,De.exports.__esModule=!0,De.exports.default=De.exports},{}],79:[function(x,De,ve){function re(ne){"@babel/helpers - typeof";return De.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},De.exports.__esModule=!0,De.exports.default=De.exports,re(ne)}De.exports=re,De.exports.__esModule=!0,De.exports.default=De.exports},{}],80:[function(x,De,ve){De.exports=x("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(x,De,ve){De.exports=re,De.exports.HttpsAgent=re;function re(){}},{}],82:[function(x,De,ve){(function(re){(function(){"use strict";var ne=x("object-assign");function ie(Qe,tt){if(Qe===tt)return 0;for(var at=Qe.length,lt=tt.length,Ve=0,Xe=Math.min(at,lt);Ve<Xe;++Ve)if(Qe[Ve]!==tt[Ve]){at=Qe[Ve],lt=tt[Ve];break}return at<lt?-1:lt<at?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/"),me=Object.prototype.hasOwnProperty,te=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=De.exports=Ce,we=/\s*function\s+([^\(\s]*)\s*/;function Se(Qe){if(se.isFunction(Qe)){if(ae)return Qe.name;var tt=Qe.toString(),at=tt.match(we);return at&&at[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=Ae(this),this.generatedMessage=!0);var at=tt.stackStartFunction||Le;if(Error.captureStackTrace)Error.captureStackTrace(this,at);else{var lt=new Error;if(lt.stack){var Ve=lt.stack,Xe=Se(at),nt=Ve.indexOf(`
|
|
|
`+Xe);if(nt>=0){var ct=Ve.indexOf(`
|
|
|
`,nt+1);Ve=Ve.substring(ct+1)}this.stack=Ve}}},se.inherits(he.AssertionError,Error);function xe(Qe,tt){return typeof Qe=="string"?Qe.length<tt?Qe:Qe.slice(0,tt):Qe}function ye(Qe){if(ae||!se.isFunction(Qe))return se.inspect(Qe);var tt=Se(Qe),at=tt?": "+tt:"";return"[Function"+at+"]"}function Ae(Qe){return xe(ye(Qe.actual),128)+" "+Qe.operator+" "+xe(ye(Qe.expected),128)}function Le(Qe,tt,at,lt,Ve){throw new he.AssertionError({message:at,actual:Qe,expected:tt,operator:lt,stackStartFunction:Ve})}he.fail=Le;function Ce(Qe,tt){Qe||Le(Qe,!0,tt,"==",he.ok)}he.ok=Ce,he.equal=function(tt,at,lt){tt!=at&&Le(tt,at,lt,"==",he.equal)},he.notEqual=function(tt,at,lt){tt==at&&Le(tt,at,lt,"!=",he.notEqual)},he.deepEqual=function(tt,at,lt){je(tt,at,!1)||Le(tt,at,lt,"deepEqual",he.deepEqual)},he.deepStrictEqual=function(tt,at,lt){je(tt,at,!0)||Le(tt,at,lt,"deepStrictEqual",he.deepStrictEqual)};function je(Qe,tt,at,lt){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 at?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;lt=lt||{actual:[],expected:[]};var Ve=lt.actual.indexOf(Qe);return Ve!==-1&&Ve===lt.expected.indexOf(tt)?!0:(lt.actual.push(Qe),lt.expected.push(tt),Oe(Qe,tt,at,lt))}function Me(Qe){return Object.prototype.toString.call(Qe)=="[object Arguments]"}function Oe(Qe,tt,at,lt){if(Qe==null||tt===null||tt===void 0)return!1;if(se.isPrimitive(Qe)||se.isPrimitive(tt))return Qe===tt;if(at&&Object.getPrototypeOf(Qe)!==Object.getPrototypeOf(tt))return!1;var Ve=Me(Qe),Xe=Me(tt);if(Ve&&!Xe||!Ve&&Xe)return!1;if(Ve)return Qe=te.call(Qe),tt=te.call(tt),je(Qe,tt,at);var nt=Ue(Qe),ct=Ue(tt),ot,et;if(nt.length!==ct.length)return!1;for(nt.sort(),ct.sort(),et=nt.length-1;et>=0;et--)if(nt[et]!==ct[et])return!1;for(et=nt.length-1;et>=0;et--)if(ot=nt[et],!je(Qe[ot],tt[ot],at,lt))return!1;return!0}he.notDeepEqual=function(tt,at,lt){je(tt,at,!1)&&Le(tt,at,lt,"notDeepEqual",he.notDeepEqual)},he.notDeepStrictEqual=Ee;function Ee(Qe,tt,at){je(Qe,tt,!0)&&Le(Qe,tt,at,"notDeepStrictEqual",Ee)}he.strictEqual=function(tt,at,lt){tt!==at&&Le(tt,at,lt,"===",he.strictEqual)},he.notStrictEqual=function(tt,at,lt){tt===at&&Le(tt,at,lt,"!==",he.notStrictEqual)};function Ne(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(at){}return Error.isPrototypeOf(tt)?!1:tt.call({},Qe)===!0}function _e(Qe){var tt;try{Qe()}catch(at){tt=at}return tt}function Ze(Qe,tt,at,lt){var Ve;if(typeof tt!="function")throw new TypeError('"block" argument must be a function');typeof at=="string"&&(lt=at,at=null),Ve=_e(tt),lt=(at&&at.name?" ("+at.name+").":".")+(lt?" "+lt:"."),Qe&&!Ve&&Le(Ve,at,"Missing expected exception"+lt);var Xe=typeof lt=="string",nt=!Qe&&se.isError(Ve),ct=!Qe&&Ve&&!at;if((nt&&Xe&&Ne(Ve,at)||ct)&&Le(Ve,at,"Got unwanted exception"+lt),Qe&&Ve&&at&&!Ne(Ve,at)||!Qe&&Ve)throw Ve}he.throws=function(Qe,tt,at){Ze(!0,Qe,tt,at)},he.doesNotThrow=function(Qe,tt,at){Ze(!1,Qe,tt,at)},he.ifError=function(Qe){if(Qe)throw Qe};function Pe(Qe,tt){Qe||Le(Qe,!0,tt,"==",Pe)}he.strict=ne(Pe,he,{equal:he.strictEqual,deepEqual:he.deepStrictEqual,notEqual:he.notStrictEqual,notDeepEqual:he.notDeepStrictEqual}),he.strict.strict=he.strict;var Ue=Object.keys||function(Qe){var tt=[];for(var at in Qe)me.call(Qe,at)&&tt.push(at);return tt}}).call(this)}).call(this,typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(x,De,ve){typeof Object.create=="function"?De.exports=function(ne,ie){ne.super_=ie,ne.prototype=Object.create(ie.prototype,{constructor:{value:ne,enumerable:!1,writable:!0,configurable:!0}})}:De.exports=function(ne,ie){ne.super_=ie;var oe=function(){};oe.prototype=ie.prototype,ne.prototype=new oe,ne.prototype.constructor=ne}},{}],84:[function(x,De,ve){De.exports=function(ne){return ne&&typeof ne=="object"&&typeof ne.copy=="function"&&typeof ne.fill=="function"&&typeof ne.readUInt8=="function"}},{}],85:[function(x,De,ve){(function(re,ne){(function(){var ie=/%[sdj%]/g;ve.format=function(ct){if(!Oe(ct)){for(var ot=[],et=0;et<arguments.length;et++)ot.push(me(arguments[et]));return ot.join(" ")}for(var et=1,qe=arguments,it=qe.length,yt=String(ct).replace(ie,function(Dt){if(Dt==="%%")return"%";if(et>=it)return Dt;switch(Dt){case"%s":return String(qe[et++]);case"%d":return Number(qe[et++]);case"%j":try{return JSON.stringify(qe[et++])}catch(At){return"[Circular]"}default:return Dt}}),pt=qe[et];et<it;pt=qe[++et])Ce(pt)||!Ze(pt)?yt+=" "+pt:yt+=" "+me(pt);return yt},ve.deprecate=function(ct,ot){if(Ne(ne.process))return function(){return ve.deprecate(ct,ot).apply(this,arguments)};if(re.noDeprecation===!0)return ct;var et=!1;function qe(){if(!et){if(re.throwDeprecation)throw new Error(ot);re.traceDeprecation?console.trace(ot):console.error(ot),et=!0}return ct.apply(this,arguments)}return qe};var oe={},se;ve.debuglog=function(ct){if(Ne(se)&&(se=re.env.NODE_DEBUG||""),ct=ct.toUpperCase(),!oe[ct])if(new RegExp("\\b"+ct+"\\b","i").test(se)){var ot=re.pid;oe[ct]=function(){var et=ve.format.apply(ve,arguments);console.error("%s %d: %s",ct,ot,et)}}else oe[ct]=function(){};return oe[ct]};function me(ct,ot){var et={seen:[],stylize:ae};return arguments.length>=3&&(et.depth=arguments[2]),arguments.length>=4&&(et.colors=arguments[3]),Le(ot)?et.showHidden=ot:ot&&ve._extend(et,ot),Ne(et.showHidden)&&(et.showHidden=!1),Ne(et.depth)&&(et.depth=2),Ne(et.colors)&&(et.colors=!1),Ne(et.customInspect)&&(et.customInspect=!0),et.colors&&(et.stylize=te),de(et,ct,et.depth)}ve.inspect=me,me.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]},me.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function te(ct,ot){var et=me.styles[ot];return et?"\x1B["+me.colors[et][0]+"m"+ct+"\x1B["+me.colors[et][1]+"m":ct}function ae(ct,ot){return ct}function ue(ct){var ot={};return ct.forEach(function(et,qe){ot[et]=!0}),ot}function de(ct,ot,et){if(ct.customInspect&&ot&&Qe(ot.inspect)&&ot.inspect!==ve.inspect&&!(ot.constructor&&ot.constructor.prototype===ot)){var qe=ot.inspect(et,ct);return Oe(qe)||(qe=de(ct,qe,et)),qe}var it=he(ct,ot);if(it)return it;var yt=Object.keys(ot),pt=ue(yt);if(ct.showHidden&&(yt=Object.getOwnPropertyNames(ot)),Ue(ot)&&(yt.indexOf("message")>=0||yt.indexOf("description")>=0))return we(ot);if(yt.length===0){if(Qe(ot)){var Dt=ot.name?": "+ot.name:"";return ct.stylize("[Function"+Dt+"]","special")}if(_e(ot))return ct.stylize(RegExp.prototype.toString.call(ot),"regexp");if(Pe(ot))return ct.stylize(Date.prototype.toString.call(ot),"date");if(Ue(ot))return we(ot)}var At="",st=!1,Ge=["{","}"];if(Ae(ot)&&(st=!0,Ge=["[","]"]),Qe(ot)){var We=ot.name?": "+ot.name:"";At=" [Function"+We+"]"}if(_e(ot)&&(At=" "+RegExp.prototype.toString.call(ot)),Pe(ot)&&(At=" "+Date.prototype.toUTCString.call(ot)),Ue(ot)&&(At=" "+we(ot)),yt.length===0&&(!st||ot.length==0))return Ge[0]+At+Ge[1];if(et<0)return _e(ot)?ct.stylize(RegExp.prototype.toString.call(ot),"regexp"):ct.stylize("[Object]","special");ct.seen.push(ot);var le;return st?le=Se(ct,ot,et,pt,yt):le=yt.map(function(fe){return xe(ct,ot,et,pt,fe,st)}),ct.seen.pop(),ye(le,At,Ge)}function he(ct,ot){if(Ne(ot))return ct.stylize("undefined","undefined");if(Oe(ot)){var et="'"+JSON.stringify(ot).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ct.stylize(et,"string")}if(Me(ot))return ct.stylize(""+ot,"number");if(Le(ot))return ct.stylize(""+ot,"boolean");if(Ce(ot))return ct.stylize("null","null")}function we(ct){return"["+Error.prototype.toString.call(ct)+"]"}function Se(ct,ot,et,qe,it){for(var yt=[],pt=0,Dt=ot.length;pt<Dt;++pt)nt(ot,String(pt))?yt.push(xe(ct,ot,et,qe,String(pt),!0)):yt.push("");return it.forEach(function(At){At.match(/^\d+$/)||yt.push(xe(ct,ot,et,qe,At,!0))}),yt}function xe(ct,ot,et,qe,it,yt){var pt,Dt,At;if(At=Object.getOwnPropertyDescriptor(ot,it)||{value:ot[it]},At.get?At.set?Dt=ct.stylize("[Getter/Setter]","special"):Dt=ct.stylize("[Getter]","special"):At.set&&(Dt=ct.stylize("[Setter]","special")),nt(qe,it)||(pt="["+it+"]"),Dt||(ct.seen.indexOf(At.value)<0?(Ce(et)?Dt=de(ct,At.value,null):Dt=de(ct,At.value,et-1),Dt.indexOf(`
|
|
|
`)>-1&&(yt?Dt=Dt.split(`
|
|
|
`).map(function(st){return" "+st}).join(`
|
|
|
`).substr(2):Dt=`
|
|
|
`+Dt.split(`
|
|
|
`).map(function(st){return" "+st}).join(`
|
|
|
`))):Dt=ct.stylize("[Circular]","special")),Ne(pt)){if(yt&&it.match(/^\d+$/))return Dt;pt=JSON.stringify(""+it),pt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(pt=pt.substr(1,pt.length-2),pt=ct.stylize(pt,"name")):(pt=pt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),pt=ct.stylize(pt,"string"))}return pt+": "+Dt}function ye(ct,ot,et){var qe=0,it=ct.reduce(function(yt,pt){return qe++,pt.indexOf(`
|
|
|
`)>=0&&qe++,yt+pt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return it>60?et[0]+(ot===""?"":ot+`
|
|
|
`)+" "+ct.join(`,
|
|
|
`)+" "+et[1]:et[0]+ot+" "+ct.join(", ")+" "+et[1]}function Ae(ct){return Array.isArray(ct)}ve.isArray=Ae;function Le(ct){return typeof ct=="boolean"}ve.isBoolean=Le;function Ce(ct){return ct===null}ve.isNull=Ce;function je(ct){return ct==null}ve.isNullOrUndefined=je;function Me(ct){return typeof ct=="number"}ve.isNumber=Me;function Oe(ct){return typeof ct=="string"}ve.isString=Oe;function Ee(ct){return typeof ct=="symbol"}ve.isSymbol=Ee;function Ne(ct){return ct===void 0}ve.isUndefined=Ne;function _e(ct){return Ze(ct)&&at(ct)==="[object RegExp]"}ve.isRegExp=_e;function Ze(ct){return typeof ct=="object"&&ct!==null}ve.isObject=Ze;function Pe(ct){return Ze(ct)&&at(ct)==="[object Date]"}ve.isDate=Pe;function Ue(ct){return Ze(ct)&&(at(ct)==="[object Error]"||ct instanceof Error)}ve.isError=Ue;function Qe(ct){return typeof ct=="function"}ve.isFunction=Qe;function tt(ct){return ct===null||typeof ct=="boolean"||typeof ct=="number"||typeof ct=="string"||typeof ct=="symbol"||typeof ct=="undefined"}ve.isPrimitive=tt,ve.isBuffer=x("./support/isBuffer");function at(ct){return Object.prototype.toString.call(ct)}function lt(ct){return ct<10?"0"+ct.toString(10):ct.toString(10)}var Ve=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Xe(){var ct=new Date,ot=[lt(ct.getHours()),lt(ct.getMinutes()),lt(ct.getSeconds())].join(":");return[ct.getDate(),Ve[ct.getMonth()],ot].join(" ")}ve.log=function(){console.log("%s - %s",Xe(),ve.format.apply(ve,arguments))},ve.inherits=x("inherits"),ve._extend=function(ct,ot){if(!ot||!Ze(ot))return ct;for(var et=Object.keys(ot),qe=et.length;qe--;)ct[et[qe]]=ot[et[qe]];return ct};function nt(ct,ot){return Object.prototype.hasOwnProperty.call(ct,ot)}}).call(this)}).call(this,x("_process"),typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(x,De,ve){(function(re){(function(){"use strict";var ne=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ie=typeof globalThis=="undefined"?re:globalThis;De.exports=function(){for(var se=[],me=0;me<ne.length;me++)typeof ie[ne[me]]=="function"&&(se[se.length]=ne[me]);return se}}).call(this)}).call(this,typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(x,De,ve){"use strict";ve.byteLength=ae,ve.toByteArray=de,ve.fromByteArray=Se;for(var re=[],ne=[],ie=typeof Uint8Array!="undefined"?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=0,me=oe.length;se<me;++se)re[se]=oe[se],ne[oe.charCodeAt(se)]=se;ne[45]=62,ne[95]=63;function te(xe){var ye=xe.length;if(ye%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Ae=xe.indexOf("=");Ae===-1&&(Ae=ye);var Le=Ae===ye?0:4-Ae%4;return[Ae,Le]}function ae(xe){var ye=te(xe),Ae=ye[0],Le=ye[1];return(Ae+Le)*3/4-Le}function ue(xe,ye,Ae){return(ye+Ae)*3/4-Ae}function de(xe){var ye,Ae=te(xe),Le=Ae[0],Ce=Ae[1],je=new ie(ue(xe,Le,Ce)),Me=0,Oe=Ce>0?Le-4:Le,Ee;for(Ee=0;Ee<Oe;Ee+=4)ye=ne[xe.charCodeAt(Ee)]<<18|ne[xe.charCodeAt(Ee+1)]<<12|ne[xe.charCodeAt(Ee+2)]<<6|ne[xe.charCodeAt(Ee+3)],je[Me++]=ye>>16&255,je[Me++]=ye>>8&255,je[Me++]=ye&255;return Ce===2&&(ye=ne[xe.charCodeAt(Ee)]<<2|ne[xe.charCodeAt(Ee+1)]>>4,je[Me++]=ye&255),Ce===1&&(ye=ne[xe.charCodeAt(Ee)]<<10|ne[xe.charCodeAt(Ee+1)]<<4|ne[xe.charCodeAt(Ee+2)]>>2,je[Me++]=ye>>8&255,je[Me++]=ye&255),je}function he(xe){return re[xe>>18&63]+re[xe>>12&63]+re[xe>>6&63]+re[xe&63]}function we(xe,ye,Ae){for(var Le,Ce=[],je=ye;je<Ae;je+=3)Le=(xe[je]<<16&16711680)+(xe[je+1]<<8&65280)+(xe[je+2]&255),Ce.push(he(Le));return Ce.join("")}function Se(xe){for(var ye,Ae=xe.length,Le=Ae%3,Ce=[],je=16383,Me=0,Oe=Ae-Le;Me<Oe;Me+=je)Ce.push(we(xe,Me,Me+je>Oe?Oe:Me+je));return Le===1?(ye=xe[Ae-1],Ce.push(re[ye>>2]+re[ye<<4&63]+"==")):Le===2&&(ye=(xe[Ae-2]<<8)+xe[Ae-1],Ce.push(re[ye>>10]+re[ye>>4&63]+re[ye<<2&63]+"=")),Ce.join("")}},{}],88:[function(x,De,ve){(function(re,ne,ie){typeof De!="undefined"&&De.exports?De.exports=ie():typeof ke=="function"&&ke.amd?ke(ne,ie):re[ne]=ie()})(this,"bowser",function(){var re=!0;function ne(ue){function de(ot){var et=ue.match(ot);return et&&et.length>1&&et[1]||""}function he(ot){var et=ue.match(ot);return et&&et.length>1&&et[2]||""}var we=de(/(ipod|iphone|ipad)/i).toLowerCase(),Se=/like android/i.test(ue),xe=!Se&&/android/i.test(ue),ye=/nexus\s*[0-6]\s*/i.test(ue),Ae=!ye&&/nexus\s*[0-9]+/i.test(ue),Le=/CrOS/.test(ue),Ce=/silk/i.test(ue),je=/sailfish/i.test(ue),Me=/tizen/i.test(ue),Oe=/(web|hpw)(o|0)s/i.test(ue),Ee=/windows phone/i.test(ue),Ne=/SamsungBrowser/i.test(ue),_e=!Ee&&/windows/i.test(ue),Ze=!we&&!Ce&&/macintosh/i.test(ue),Pe=!xe&&!je&&!Me&&!Oe&&/linux/i.test(ue),Ue=he(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Qe=de(/version\/(\d+(\.\d+)?)/i),tt=/tablet/i.test(ue)&&!/tablet pc/i.test(ue),at=!tt&&/[^-]mobi/i.test(ue),lt=/xbox/i.test(ue),Ve;/opera/i.test(ue)?Ve={name:"Opera",opera:re,version:Qe||de(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(ue)?Ve={name:"Opera",opera:re,version:de(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Qe}:/SamsungBrowser/i.test(ue)?Ve={name:"Samsung Internet for Android",samsungBrowser:re,version:Qe||de(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(ue)?Ve={name:"NAVER Whale browser",whale:re,version:de(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(ue)?Ve={name:"MZ Browser",mzbrowser:re,version:de(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(ue)?Ve={name:"Opera Coast",coast:re,version:Qe||de(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(ue)?Ve={name:"Focus",focus:re,version:de(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(ue)?Ve={name:"Yandex Browser",yandexbrowser:re,version:Qe||de(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(ue)?Ve={name:"UC Browser",ucbrowser:re,version:de(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(ue)?Ve={name:"Maxthon",maxthon:re,version:de(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(ue)?Ve={name:"Epiphany",epiphany:re,version:de(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(ue)?Ve={name:"Puffin",puffin:re,version:de(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(ue)?Ve={name:"Sleipnir",sleipnir:re,version:de(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(ue)?Ve={name:"K-Meleon",kMeleon:re,version:de(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ee?(Ve={name:"Windows Phone",osname:"Windows Phone",windowsphone:re},Ue?(Ve.msedge=re,Ve.version=Ue):(Ve.msie=re,Ve.version=de(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(ue)?Ve={name:"Internet Explorer",msie:re,version:de(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Le?Ve={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)?Ve={name:"Microsoft Edge",msedge:re,version:Ue}:/vivaldi/i.test(ue)?Ve={name:"Vivaldi",vivaldi:re,version:de(/vivaldi\/(\d+(\.\d+)?)/i)||Qe}:je?Ve={name:"Sailfish",osname:"Sailfish OS",sailfish:re,version:de(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(ue)?Ve={name:"SeaMonkey",seamonkey:re,version:de(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(ue)?(Ve={name:"Firefox",firefox:re,version:de(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ue)&&(Ve.firefoxos=re,Ve.osname="Firefox OS")):Ce?Ve={name:"Amazon Silk",silk:re,version:de(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(ue)?Ve={name:"PhantomJS",phantom:re,version:de(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(ue)?Ve={name:"SlimerJS",slimer:re,version:de(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(ue)||/rim\stablet/i.test(ue)?Ve={name:"BlackBerry",osname:"BlackBerry OS",blackberry:re,version:Qe||de(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Oe?(Ve={name:"WebOS",osname:"WebOS",webos:re,version:Qe||de(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(ue)&&(Ve.touchpad=re)):/bada/i.test(ue)?Ve={name:"Bada",osname:"Bada",bada:re,version:de(/dolfin\/(\d+(\.\d+)?)/i)}:Me?Ve={name:"Tizen",osname:"Tizen",tizen:re,version:de(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Qe}:/qupzilla/i.test(ue)?Ve={name:"QupZilla",qupzilla:re,version:de(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Qe}:/chromium/i.test(ue)?Ve={name:"Chromium",chromium:re,version:de(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Qe}:/chrome|crios|crmo/i.test(ue)?Ve={name:"Chrome",chrome:re,version:de(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:xe?Ve={name:"Android",version:Qe}:/safari|applewebkit/i.test(ue)?(Ve={name:"Safari",safari:re},Qe&&(Ve.version=Qe)):we?(Ve={name:we=="iphone"?"iPhone":we=="ipad"?"iPad":"iPod"},Qe&&(Ve.version=Qe)):/googlebot/i.test(ue)?Ve={name:"Googlebot",googlebot:re,version:de(/googlebot\/(\d+(\.\d+))/i)||Qe}:Ve={name:de(/^(.*)\/(.*) /),version:he(/^(.*)\/(.*) /)},!Ve.msedge&&/(apple)?webkit/i.test(ue)?(/(apple)?webkit\/537\.36/i.test(ue)?(Ve.name=Ve.name||"Blink",Ve.blink=re):(Ve.name=Ve.name||"Webkit",Ve.webkit=re),!Ve.version&&Qe&&(Ve.version=Qe)):!Ve.opera&&/gecko\//i.test(ue)&&(Ve.name=Ve.name||"Gecko",Ve.gecko=re,Ve.version=Ve.version||de(/gecko\/(\d+(\.\d+)?)/i)),!Ve.windowsphone&&(xe||Ve.silk)?(Ve.android=re,Ve.osname="Android"):!Ve.windowsphone&&we?(Ve[we]=re,Ve.ios=re,Ve.osname="iOS"):Ze?(Ve.mac=re,Ve.osname="macOS"):lt?(Ve.xbox=re,Ve.osname="Xbox"):_e?(Ve.windows=re,Ve.osname="Windows"):Pe&&(Ve.linux=re,Ve.osname="Linux");function Xe(ot){switch(ot){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 nt="";Ve.windows?nt=Xe(de(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Ve.windowsphone?nt=de(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Ve.mac?(nt=de(/Mac OS X (\d+([_\.\s]\d+)*)/i),nt=nt.replace(/[_\s]/g,".")):we?(nt=de(/os (\d+([_\s]\d+)*) like mac os x/i),nt=nt.replace(/[_\s]/g,".")):xe?nt=de(/android[ \/-](\d+(\.\d+)*)/i):Ve.webos?nt=de(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Ve.blackberry?nt=de(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Ve.bada?nt=de(/bada\/(\d+(\.\d+)*)/i):Ve.tizen&&(nt=de(/tizen[\/\s](\d+(\.\d+)*)/i)),nt&&(Ve.osversion=nt);var ct=!Ve.windows&&nt.split(".")[0];return tt||Ae||we=="ipad"||xe&&(ct==3||ct>=4&&!at)||Ve.silk?Ve.tablet=re:(at||we=="iphone"||we=="ipod"||xe||ye||Ve.blackberry||Ve.webos||Ve.bada)&&(Ve.mobile=re),Ve.msedge||Ve.msie&&Ve.version>=10||Ve.yandexbrowser&&Ve.version>=15||Ve.vivaldi&&Ve.version>=1||Ve.chrome&&Ve.version>=20||Ve.samsungBrowser&&Ve.version>=4||Ve.whale&&me([Ve.version,"1.0"])===1||Ve.mzbrowser&&me([Ve.version,"6.0"])===1||Ve.focus&&me([Ve.version,"1.0"])===1||Ve.firefox&&Ve.version>=20||Ve.safari&&Ve.version>=6||Ve.opera&&Ve.version>=10||Ve.ios&&Ve.osversion&&Ve.osversion.split(".")[0]>=6||Ve.blackberry&&Ve.version>=10.1||Ve.chromium&&Ve.version>=20?Ve.a=re:Ve.msie&&Ve.version<10||Ve.chrome&&Ve.version<20||Ve.firefox&&Ve.version<20||Ve.safari&&Ve.version<6||Ve.opera&&Ve.version<10||Ve.ios&&Ve.osversion&&Ve.osversion.split(".")[0]<6||Ve.chromium&&Ve.version<20?Ve.c=re:Ve.x=re,Ve}var ie=ne(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=[],we;if(Array.prototype.map)return Array.prototype.map.call(ue,de);for(we=0;we<ue.length;we++)he.push(de(ue[we]));return he}function me(ue){for(var de=Math.max(oe(ue[0]),oe(ue[1])),he=se(ue,function(we){var Se=de-oe(we);return we=we+new Array(Se+1).join(".0"),se(we.split("."),function(xe){return new Array(20-xe.length).join("0")+xe}).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 te(ue,de,he){var we=ie;typeof de=="string"&&(he=de,de=void 0),de===void 0&&(de=!1),he&&(we=ne(he));var Se=""+we.version;for(var xe in ue)if(ue.hasOwnProperty(xe)&&we[xe]){if(typeof ue[xe]!="string")throw new Error("Browser version in the minVersion map should be a string: "+xe+": "+String(ue));return me([Se,ue[xe]])<0}return de}function ae(ue,de,he){return!te(ue,de,he)}return ie.isUnsupportedBrowser=te,ie.compareVersions=me,ie.check=ae,ie._detect=ne,ie.detect=ne,ie})},{}],89:[function(x,De,ve){},{}],90:[function(x,De,ve){(function(re){(function(){"use strict";var ne=x("base64-js"),ie=x("ieee754");ve.Buffer=te,ve.SlowBuffer=Le,ve.INSPECT_MAX_BYTES=50;var oe=2147483647;ve.kMaxLength=oe,te.TYPED_ARRAY_SUPPORT=se(),!te.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 Ie=new Uint8Array(1);return Ie.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ie.foo()===42}catch(Ke){return!1}}Object.defineProperty(te.prototype,"parent",{enumerable:!0,get:function(){if(te.isBuffer(this))return this.buffer}}),Object.defineProperty(te.prototype,"offset",{enumerable:!0,get:function(){if(te.isBuffer(this))return this.byteOffset}});function me(Ie){if(Ie>oe)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var Ke=new Uint8Array(Ie);return Ke.__proto__=te.prototype,Ke}function te(Ie,Ke,Ye){if(typeof Ie=="number"){if(typeof Ke=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return he(Ie)}return ae(Ie,Ke,Ye)}typeof Symbol!="undefined"&&Symbol.species!=null&&te[Symbol.species]===te&&Object.defineProperty(te,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),te.poolSize=8192;function ae(Ie,Ke,Ye){if(typeof Ie=="string")return we(Ie,Ke);if(ArrayBuffer.isView(Ie))return Se(Ie);if(Ie==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie);if(He(Ie,ArrayBuffer)||Ie&&He(Ie.buffer,ArrayBuffer))return xe(Ie,Ke,Ye);if(typeof Ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Je=Ie.valueOf&&Ie.valueOf();if(Je!=null&&Je!==Ie)return te.from(Je,Ke,Ye);var dt=ye(Ie);if(dt)return dt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ie[Symbol.toPrimitive]=="function")return te.from(Ie[Symbol.toPrimitive]("string"),Ke,Ye);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie)}te.from=function(Ie,Ke,Ye){return ae(Ie,Ke,Ye)},te.prototype.__proto__=Uint8Array.prototype,te.__proto__=Uint8Array;function ue(Ie){if(typeof Ie!="number")throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function de(Ie,Ke,Ye){return ue(Ie),Ie<=0?me(Ie):Ke!==void 0?typeof Ye=="string"?me(Ie).fill(Ke,Ye):me(Ie).fill(Ke):me(Ie)}te.alloc=function(Ie,Ke,Ye){return de(Ie,Ke,Ye)};function he(Ie){return ue(Ie),me(Ie<0?0:Ae(Ie)|0)}te.allocUnsafe=function(Ie){return he(Ie)},te.allocUnsafeSlow=function(Ie){return he(Ie)};function we(Ie,Ke){if((typeof Ke!="string"||Ke==="")&&(Ke="utf8"),!te.isEncoding(Ke))throw new TypeError("Unknown encoding: "+Ke);var Ye=Ce(Ie,Ke)|0,Je=me(Ye),dt=Je.write(Ie,Ke);return dt!==Ye&&(Je=Je.slice(0,dt)),Je}function Se(Ie){for(var Ke=Ie.length<0?0:Ae(Ie.length)|0,Ye=me(Ke),Je=0;Je<Ke;Je+=1)Ye[Je]=Ie[Je]&255;return Ye}function xe(Ie,Ke,Ye){if(Ke<0||Ie.byteLength<Ke)throw new RangeError('"offset" is outside of buffer bounds');if(Ie.byteLength<Ke+(Ye||0))throw new RangeError('"length" is outside of buffer bounds');var Je;return Ke===void 0&&Ye===void 0?Je=new Uint8Array(Ie):Ye===void 0?Je=new Uint8Array(Ie,Ke):Je=new Uint8Array(Ie,Ke,Ye),Je.__proto__=te.prototype,Je}function ye(Ie){if(te.isBuffer(Ie)){var Ke=Ae(Ie.length)|0,Ye=me(Ke);return Ye.length===0||Ie.copy(Ye,0,0,Ke),Ye}if(Ie.length!==void 0)return typeof Ie.length!="number"||pe(Ie.length)?me(0):Se(Ie);if(Ie.type==="Buffer"&&Array.isArray(Ie.data))return Se(Ie.data)}function Ae(Ie){if(Ie>=oe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe.toString(16)+" bytes");return Ie|0}function Le(Ie){return+Ie!=Ie&&(Ie=0),te.alloc(+Ie)}te.isBuffer=function(Ke){return Ke!=null&&Ke._isBuffer===!0&&Ke!==te.prototype},te.compare=function(Ke,Ye){if(He(Ke,Uint8Array)&&(Ke=te.from(Ke,Ke.offset,Ke.byteLength)),He(Ye,Uint8Array)&&(Ye=te.from(Ye,Ye.offset,Ye.byteLength)),!te.isBuffer(Ke)||!te.isBuffer(Ye))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ke===Ye)return 0;for(var Je=Ke.length,dt=Ye.length,bt=0,vt=Math.min(Je,dt);bt<vt;++bt)if(Ke[bt]!==Ye[bt]){Je=Ke[bt],dt=Ye[bt];break}return Je<dt?-1:dt<Je?1:0},te.isEncoding=function(Ke){switch(String(Ke).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}},te.concat=function(Ke,Ye){if(!Array.isArray(Ke))throw new TypeError('"list" argument must be an Array of Buffers');if(Ke.length===0)return te.alloc(0);var Je;if(Ye===void 0)for(Ye=0,Je=0;Je<Ke.length;++Je)Ye+=Ke[Je].length;var dt=te.allocUnsafe(Ye),bt=0;for(Je=0;Je<Ke.length;++Je){var vt=Ke[Je];if(He(vt,Uint8Array)&&(vt=te.from(vt)),!te.isBuffer(vt))throw new TypeError('"list" argument must be an Array of Buffers');vt.copy(dt,bt),bt+=vt.length}return dt};function Ce(Ie,Ke){if(te.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||He(Ie,ArrayBuffer))return Ie.byteLength;if(typeof Ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ie);var Ye=Ie.length,Je=arguments.length>2&&arguments[2]===!0;if(!Je&&Ye===0)return 0;for(var dt=!1;;)switch(Ke){case"ascii":case"latin1":case"binary":return Ye;case"utf8":case"utf-8":return Ge(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye*2;case"hex":return Ye>>>1;case"base64":return fe(Ie).length;default:if(dt)return Je?-1:Ge(Ie).length;Ke=(""+Ke).toLowerCase(),dt=!0}}te.byteLength=Ce;function je(Ie,Ke,Ye){var Je=!1;if((Ke===void 0||Ke<0)&&(Ke=0),Ke>this.length||((Ye===void 0||Ye>this.length)&&(Ye=this.length),Ye<=0)||(Ye>>>=0,Ke>>>=0,Ye<=Ke))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return ct(this,Ke,Ye);case"utf8":case"utf-8":return at(this,Ke,Ye);case"ascii":return Xe(this,Ke,Ye);case"latin1":case"binary":return nt(this,Ke,Ye);case"base64":return tt(this,Ke,Ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,Ke,Ye);default:if(Je)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),Je=!0}}te.prototype._isBuffer=!0;function Me(Ie,Ke,Ye){var Je=Ie[Ke];Ie[Ke]=Ie[Ye],Ie[Ye]=Je}te.prototype.swap16=function(){var Ke=this.length;if(Ke%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ye=0;Ye<Ke;Ye+=2)Me(this,Ye,Ye+1);return this},te.prototype.swap32=function(){var Ke=this.length;if(Ke%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ye=0;Ye<Ke;Ye+=4)Me(this,Ye,Ye+3),Me(this,Ye+1,Ye+2);return this},te.prototype.swap64=function(){var Ke=this.length;if(Ke%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ye=0;Ye<Ke;Ye+=8)Me(this,Ye,Ye+7),Me(this,Ye+1,Ye+6),Me(this,Ye+2,Ye+5),Me(this,Ye+3,Ye+4);return this},te.prototype.toString=function(){var Ke=this.length;return Ke===0?"":arguments.length===0?at(this,0,Ke):je.apply(this,arguments)},te.prototype.toLocaleString=te.prototype.toString,te.prototype.equals=function(Ke){if(!te.isBuffer(Ke))throw new TypeError("Argument must be a Buffer");return this===Ke?!0:te.compare(this,Ke)===0},te.prototype.inspect=function(){var Ke="",Ye=ve.INSPECT_MAX_BYTES;return Ke=this.toString("hex",0,Ye).replace(/(.{2})/g,"$1 ").trim(),this.length>Ye&&(Ke+=" ... "),"<Buffer "+Ke+">"},te.prototype.compare=function(Ke,Ye,Je,dt,bt){if(He(Ke,Uint8Array)&&(Ke=te.from(Ke,Ke.offset,Ke.byteLength)),!te.isBuffer(Ke))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ke);if(Ye===void 0&&(Ye=0),Je===void 0&&(Je=Ke?Ke.length:0),dt===void 0&&(dt=0),bt===void 0&&(bt=this.length),Ye<0||Je>Ke.length||dt<0||bt>this.length)throw new RangeError("out of range index");if(dt>=bt&&Ye>=Je)return 0;if(dt>=bt)return-1;if(Ye>=Je)return 1;if(Ye>>>=0,Je>>>=0,dt>>>=0,bt>>>=0,this===Ke)return 0;for(var vt=bt-dt,It=Je-Ye,Vt=Math.min(vt,It),kt=this.slice(dt,bt),jt=Ke.slice(Ye,Je),_t=0;_t<Vt;++_t)if(kt[_t]!==jt[_t]){vt=kt[_t],It=jt[_t];break}return vt<It?-1:It<vt?1:0};function Oe(Ie,Ke,Ye,Je,dt){if(Ie.length===0)return-1;if(typeof Ye=="string"?(Je=Ye,Ye=0):Ye>2147483647?Ye=2147483647:Ye<-2147483648&&(Ye=-2147483648),Ye=+Ye,pe(Ye)&&(Ye=dt?0:Ie.length-1),Ye<0&&(Ye=Ie.length+Ye),Ye>=Ie.length){if(dt)return-1;Ye=Ie.length-1}else if(Ye<0)if(dt)Ye=0;else return-1;if(typeof Ke=="string"&&(Ke=te.from(Ke,Je)),te.isBuffer(Ke))return Ke.length===0?-1:Ee(Ie,Ke,Ye,Je,dt);if(typeof Ke=="number")return Ke=Ke&255,typeof Uint8Array.prototype.indexOf=="function"?dt?Uint8Array.prototype.indexOf.call(Ie,Ke,Ye):Uint8Array.prototype.lastIndexOf.call(Ie,Ke,Ye):Ee(Ie,[Ke],Ye,Je,dt);throw new TypeError("val must be string, number or Buffer")}function Ee(Ie,Ke,Ye,Je,dt){var bt=1,vt=Ie.length,It=Ke.length;if(Je!==void 0&&(Je=String(Je).toLowerCase(),Je==="ucs2"||Je==="ucs-2"||Je==="utf16le"||Je==="utf-16le")){if(Ie.length<2||Ke.length<2)return-1;bt=2,vt/=2,It/=2,Ye/=2}function Vt(ft,St){return bt===1?ft[St]:ft.readUInt16BE(St*bt)}var kt;if(dt){var jt=-1;for(kt=Ye;kt<vt;kt++)if(Vt(Ie,kt)===Vt(Ke,jt===-1?0:kt-jt)){if(jt===-1&&(jt=kt),kt-jt+1===It)return jt*bt}else jt!==-1&&(kt-=kt-jt),jt=-1}else for(Ye+It>vt&&(Ye=vt-It),kt=Ye;kt>=0;kt--){for(var _t=!0,Mt=0;Mt<It;Mt++)if(Vt(Ie,kt+Mt)!==Vt(Ke,Mt)){_t=!1;break}if(_t)return kt}return-1}te.prototype.includes=function(Ke,Ye,Je){return this.indexOf(Ke,Ye,Je)!==-1},te.prototype.indexOf=function(Ke,Ye,Je){return Oe(this,Ke,Ye,Je,!0)},te.prototype.lastIndexOf=function(Ke,Ye,Je){return Oe(this,Ke,Ye,Je,!1)};function Ne(Ie,Ke,Ye,Je){Ye=Number(Ye)||0;var dt=Ie.length-Ye;Je?(Je=Number(Je),Je>dt&&(Je=dt)):Je=dt;var bt=Ke.length;Je>bt/2&&(Je=bt/2);for(var vt=0;vt<Je;++vt){var It=parseInt(Ke.substr(vt*2,2),16);if(pe(It))return vt;Ie[Ye+vt]=It}return vt}function _e(Ie,Ke,Ye,Je){return ze(Ge(Ke,Ie.length-Ye),Ie,Ye,Je)}function Ze(Ie,Ke,Ye,Je){return ze(We(Ke),Ie,Ye,Je)}function Pe(Ie,Ke,Ye,Je){return Ze(Ie,Ke,Ye,Je)}function Ue(Ie,Ke,Ye,Je){return ze(fe(Ke),Ie,Ye,Je)}function Qe(Ie,Ke,Ye,Je){return ze(le(Ke,Ie.length-Ye),Ie,Ye,Je)}te.prototype.write=function(Ke,Ye,Je,dt){if(Ye===void 0)dt="utf8",Je=this.length,Ye=0;else if(Je===void 0&&typeof Ye=="string")dt=Ye,Je=this.length,Ye=0;else if(isFinite(Ye))Ye=Ye>>>0,isFinite(Je)?(Je=Je>>>0,dt===void 0&&(dt="utf8")):(dt=Je,Je=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var bt=this.length-Ye;if((Je===void 0||Je>bt)&&(Je=bt),Ke.length>0&&(Je<0||Ye<0)||Ye>this.length)throw new RangeError("Attempt to write outside buffer bounds");dt||(dt="utf8");for(var vt=!1;;)switch(dt){case"hex":return Ne(this,Ke,Ye,Je);case"utf8":case"utf-8":return _e(this,Ke,Ye,Je);case"ascii":return Ze(this,Ke,Ye,Je);case"latin1":case"binary":return Pe(this,Ke,Ye,Je);case"base64":return Ue(this,Ke,Ye,Je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,Ke,Ye,Je);default:if(vt)throw new TypeError("Unknown encoding: "+dt);dt=(""+dt).toLowerCase(),vt=!0}},te.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tt(Ie,Ke,Ye){return Ke===0&&Ye===Ie.length?ne.fromByteArray(Ie):ne.fromByteArray(Ie.slice(Ke,Ye))}function at(Ie,Ke,Ye){Ye=Math.min(Ie.length,Ye);for(var Je=[],dt=Ke;dt<Ye;){var bt=Ie[dt],vt=null,It=bt>239?4:bt>223?3:bt>191?2:1;if(dt+It<=Ye){var Vt,kt,jt,_t;switch(It){case 1:bt<128&&(vt=bt);break;case 2:Vt=Ie[dt+1],(Vt&192)===128&&(_t=(bt&31)<<6|Vt&63,_t>127&&(vt=_t));break;case 3:Vt=Ie[dt+1],kt=Ie[dt+2],(Vt&192)===128&&(kt&192)===128&&(_t=(bt&15)<<12|(Vt&63)<<6|kt&63,_t>2047&&(_t<55296||_t>57343)&&(vt=_t));break;case 4:Vt=Ie[dt+1],kt=Ie[dt+2],jt=Ie[dt+3],(Vt&192)===128&&(kt&192)===128&&(jt&192)===128&&(_t=(bt&15)<<18|(Vt&63)<<12|(kt&63)<<6|jt&63,_t>65535&&_t<1114112&&(vt=_t))}}vt===null?(vt=65533,It=1):vt>65535&&(vt-=65536,Je.push(vt>>>10&1023|55296),vt=56320|vt&1023),Je.push(vt),dt+=It}return Ve(Je)}var lt=4096;function Ve(Ie){var Ke=Ie.length;if(Ke<=lt)return String.fromCharCode.apply(String,Ie);for(var Ye="",Je=0;Je<Ke;)Ye+=String.fromCharCode.apply(String,Ie.slice(Je,Je+=lt));return Ye}function Xe(Ie,Ke,Ye){var Je="";Ye=Math.min(Ie.length,Ye);for(var dt=Ke;dt<Ye;++dt)Je+=String.fromCharCode(Ie[dt]&127);return Je}function nt(Ie,Ke,Ye){var Je="";Ye=Math.min(Ie.length,Ye);for(var dt=Ke;dt<Ye;++dt)Je+=String.fromCharCode(Ie[dt]);return Je}function ct(Ie,Ke,Ye){var Je=Ie.length;(!Ke||Ke<0)&&(Ke=0),(!Ye||Ye<0||Ye>Je)&&(Ye=Je);for(var dt="",bt=Ke;bt<Ye;++bt)dt+=st(Ie[bt]);return dt}function ot(Ie,Ke,Ye){for(var Je=Ie.slice(Ke,Ye),dt="",bt=0;bt<Je.length;bt+=2)dt+=String.fromCharCode(Je[bt]+Je[bt+1]*256);return dt}te.prototype.slice=function(Ke,Ye){var Je=this.length;Ke=~~Ke,Ye=Ye===void 0?Je:~~Ye,Ke<0?(Ke+=Je,Ke<0&&(Ke=0)):Ke>Je&&(Ke=Je),Ye<0?(Ye+=Je,Ye<0&&(Ye=0)):Ye>Je&&(Ye=Je),Ye<Ke&&(Ye=Ke);var dt=this.subarray(Ke,Ye);return dt.__proto__=te.prototype,dt};function et(Ie,Ke,Ye){if(Ie%1!==0||Ie<0)throw new RangeError("offset is not uint");if(Ie+Ke>Ye)throw new RangeError("Trying to access beyond buffer length")}te.prototype.readUIntLE=function(Ke,Ye,Je){Ke=Ke>>>0,Ye=Ye>>>0,Je||et(Ke,Ye,this.length);for(var dt=this[Ke],bt=1,vt=0;++vt<Ye&&(bt*=256);)dt+=this[Ke+vt]*bt;return dt},te.prototype.readUIntBE=function(Ke,Ye,Je){Ke=Ke>>>0,Ye=Ye>>>0,Je||et(Ke,Ye,this.length);for(var dt=this[Ke+--Ye],bt=1;Ye>0&&(bt*=256);)dt+=this[Ke+--Ye]*bt;return dt},te.prototype.readUInt8=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,1,this.length),this[Ke]},te.prototype.readUInt16LE=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,2,this.length),this[Ke]|this[Ke+1]<<8},te.prototype.readUInt16BE=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,2,this.length),this[Ke]<<8|this[Ke+1]},te.prototype.readUInt32LE=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,4,this.length),(this[Ke]|this[Ke+1]<<8|this[Ke+2]<<16)+this[Ke+3]*16777216},te.prototype.readUInt32BE=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,4,this.length),this[Ke]*16777216+(this[Ke+1]<<16|this[Ke+2]<<8|this[Ke+3])},te.prototype.readIntLE=function(Ke,Ye,Je){Ke=Ke>>>0,Ye=Ye>>>0,Je||et(Ke,Ye,this.length);for(var dt=this[Ke],bt=1,vt=0;++vt<Ye&&(bt*=256);)dt+=this[Ke+vt]*bt;return bt*=128,dt>=bt&&(dt-=Math.pow(2,8*Ye)),dt},te.prototype.readIntBE=function(Ke,Ye,Je){Ke=Ke>>>0,Ye=Ye>>>0,Je||et(Ke,Ye,this.length);for(var dt=Ye,bt=1,vt=this[Ke+--dt];dt>0&&(bt*=256);)vt+=this[Ke+--dt]*bt;return bt*=128,vt>=bt&&(vt-=Math.pow(2,8*Ye)),vt},te.prototype.readInt8=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,1,this.length),this[Ke]&128?(255-this[Ke]+1)*-1:this[Ke]},te.prototype.readInt16LE=function(Ke,Ye){Ke=Ke>>>0,Ye||et(Ke,2,this.length);var Je=this[Ke]|this[Ke+1]<<8;return Je&32768?Je|4294901760:Je},te.prototype.readInt16BE=function(Ke,Ye){Ke=Ke>>>0,Ye||et(Ke,2,this.length);var Je=this[Ke+1]|this[Ke]<<8;return Je&32768?Je|4294901760:Je},te.prototype.readInt32LE=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,4,this.length),this[Ke]|this[Ke+1]<<8|this[Ke+2]<<16|this[Ke+3]<<24},te.prototype.readInt32BE=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,4,this.length),this[Ke]<<24|this[Ke+1]<<16|this[Ke+2]<<8|this[Ke+3]},te.prototype.readFloatLE=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,4,this.length),ie.read(this,Ke,!0,23,4)},te.prototype.readFloatBE=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,4,this.length),ie.read(this,Ke,!1,23,4)},te.prototype.readDoubleLE=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,8,this.length),ie.read(this,Ke,!0,52,8)},te.prototype.readDoubleBE=function(Ke,Ye){return Ke=Ke>>>0,Ye||et(Ke,8,this.length),ie.read(this,Ke,!1,52,8)};function qe(Ie,Ke,Ye,Je,dt,bt){if(!te.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ke>dt||Ke<bt)throw new RangeError('"value" argument is out of bounds');if(Ye+Je>Ie.length)throw new RangeError("Index out of range")}te.prototype.writeUIntLE=function(Ke,Ye,Je,dt){if(Ke=+Ke,Ye=Ye>>>0,Je=Je>>>0,!dt){var bt=Math.pow(2,8*Je)-1;qe(this,Ke,Ye,Je,bt,0)}var vt=1,It=0;for(this[Ye]=Ke&255;++It<Je&&(vt*=256);)this[Ye+It]=Ke/vt&255;return Ye+Je},te.prototype.writeUIntBE=function(Ke,Ye,Je,dt){if(Ke=+Ke,Ye=Ye>>>0,Je=Je>>>0,!dt){var bt=Math.pow(2,8*Je)-1;qe(this,Ke,Ye,Je,bt,0)}var vt=Je-1,It=1;for(this[Ye+vt]=Ke&255;--vt>=0&&(It*=256);)this[Ye+vt]=Ke/It&255;return Ye+Je},te.prototype.writeUInt8=function(Ke,Ye,Je){return Ke=+Ke,Ye=Ye>>>0,Je||qe(this,Ke,Ye,1,255,0),this[Ye]=Ke&255,Ye+1},te.prototype.writeUInt16LE=function(Ke,Ye,Je){return Ke=+Ke,Ye=Ye>>>0,Je||qe(this,Ke,Ye,2,65535,0),this[Ye]=Ke&255,this[Ye+1]=Ke>>>8,Ye+2},te.prototype.writeUInt16BE=function(Ke,Ye,Je){return Ke=+Ke,Ye=Ye>>>0,Je||qe(this,Ke,Ye,2,65535,0),this[Ye]=Ke>>>8,this[Ye+1]=Ke&255,Ye+2},te.prototype.writeUInt32LE=function(Ke,Ye,Je){return Ke=+Ke,Ye=Ye>>>0,Je||qe(this,Ke,Ye,4,4294967295,0),this[Ye+3]=Ke>>>24,this[Ye+2]=Ke>>>16,this[Ye+1]=Ke>>>8,this[Ye]=Ke&255,Ye+4},te.prototype.writeUInt32BE=function(Ke,Ye,Je){return Ke=+Ke,Ye=Ye>>>0,Je||qe(this,Ke,Ye,4,4294967295,0),this[Ye]=Ke>>>24,this[Ye+1]=Ke>>>16,this[Ye+2]=Ke>>>8,this[Ye+3]=Ke&255,Ye+4},te.prototype.writeIntLE=function(Ke,Ye,Je,dt){if(Ke=+Ke,Ye=Ye>>>0,!dt){var bt=Math.pow(2,8*Je-1);qe(this,Ke,Ye,Je,bt-1,-bt)}var vt=0,It=1,Vt=0;for(this[Ye]=Ke&255;++vt<Je&&(It*=256);)Ke<0&&Vt===0&&this[Ye+vt-1]!==0&&(Vt=1),this[Ye+vt]=(Ke/It>>0)-Vt&255;return Ye+Je},te.prototype.writeIntBE=function(Ke,Ye,Je,dt){if(Ke=+Ke,Ye=Ye>>>0,!dt){var bt=Math.pow(2,8*Je-1);qe(this,Ke,Ye,Je,bt-1,-bt)}var vt=Je-1,It=1,Vt=0;for(this[Ye+vt]=Ke&255;--vt>=0&&(It*=256);)Ke<0&&Vt===0&&this[Ye+vt+1]!==0&&(Vt=1),this[Ye+vt]=(Ke/It>>0)-Vt&255;return Ye+Je},te.prototype.writeInt8=function(Ke,Ye,Je){return Ke=+Ke,Ye=Ye>>>0,Je||qe(this,Ke,Ye,1,127,-128),Ke<0&&(Ke=255+Ke+1),this[Ye]=Ke&255,Ye+1},te.prototype.writeInt16LE=function(Ke,Ye,Je){return Ke=+Ke,Ye=Ye>>>0,Je||qe(this,Ke,Ye,2,32767,-32768),this[Ye]=Ke&255,this[Ye+1]=Ke>>>8,Ye+2},te.prototype.writeInt16BE=function(Ke,Ye,Je){return Ke=+Ke,Ye=Ye>>>0,Je||qe(this,Ke,Ye,2,32767,-32768),this[Ye]=Ke>>>8,this[Ye+1]=Ke&255,Ye+2},te.prototype.writeInt32LE=function(Ke,Ye,Je){return Ke=+Ke,Ye=Ye>>>0,Je||qe(this,Ke,Ye,4,2147483647,-2147483648),this[Ye]=Ke&255,this[Ye+1]=Ke>>>8,this[Ye+2]=Ke>>>16,this[Ye+3]=Ke>>>24,Ye+4},te.prototype.writeInt32BE=function(Ke,Ye,Je){return Ke=+Ke,Ye=Ye>>>0,Je||qe(this,Ke,Ye,4,2147483647,-2147483648),Ke<0&&(Ke=4294967295+Ke+1),this[Ye]=Ke>>>24,this[Ye+1]=Ke>>>16,this[Ye+2]=Ke>>>8,this[Ye+3]=Ke&255,Ye+4};function it(Ie,Ke,Ye,Je,dt,bt){if(Ye+Je>Ie.length)throw new RangeError("Index out of range");if(Ye<0)throw new RangeError("Index out of range")}function yt(Ie,Ke,Ye,Je,dt){return Ke=+Ke,Ye=Ye>>>0,dt||it(Ie,Ke,Ye,4,34028234663852886e22,-34028234663852886e22),ie.write(Ie,Ke,Ye,Je,23,4),Ye+4}te.prototype.writeFloatLE=function(Ke,Ye,Je){return yt(this,Ke,Ye,!0,Je)},te.prototype.writeFloatBE=function(Ke,Ye,Je){return yt(this,Ke,Ye,!1,Je)};function pt(Ie,Ke,Ye,Je,dt){return Ke=+Ke,Ye=Ye>>>0,dt||it(Ie,Ke,Ye,8,17976931348623157e292,-17976931348623157e292),ie.write(Ie,Ke,Ye,Je,52,8),Ye+8}te.prototype.writeDoubleLE=function(Ke,Ye,Je){return pt(this,Ke,Ye,!0,Je)},te.prototype.writeDoubleBE=function(Ke,Ye,Je){return pt(this,Ke,Ye,!1,Je)},te.prototype.copy=function(Ke,Ye,Je,dt){if(!te.isBuffer(Ke))throw new TypeError("argument should be a Buffer");if(Je||(Je=0),!dt&&dt!==0&&(dt=this.length),Ye>=Ke.length&&(Ye=Ke.length),Ye||(Ye=0),dt>0&&dt<Je&&(dt=Je),dt===Je||Ke.length===0||this.length===0)return 0;if(Ye<0)throw new RangeError("targetStart out of bounds");if(Je<0||Je>=this.length)throw new RangeError("Index out of range");if(dt<0)throw new RangeError("sourceEnd out of bounds");dt>this.length&&(dt=this.length),Ke.length-Ye<dt-Je&&(dt=Ke.length-Ye+Je);var bt=dt-Je;if(this===Ke&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ye,Je,dt);else if(this===Ke&&Je<Ye&&Ye<dt)for(var vt=bt-1;vt>=0;--vt)Ke[vt+Ye]=this[vt+Je];else Uint8Array.prototype.set.call(Ke,this.subarray(Je,dt),Ye);return bt},te.prototype.fill=function(Ke,Ye,Je,dt){if(typeof Ke=="string"){if(typeof Ye=="string"?(dt=Ye,Ye=0,Je=this.length):typeof Je=="string"&&(dt=Je,Je=this.length),dt!==void 0&&typeof dt!="string")throw new TypeError("encoding must be a string");if(typeof dt=="string"&&!te.isEncoding(dt))throw new TypeError("Unknown encoding: "+dt);if(Ke.length===1){var bt=Ke.charCodeAt(0);(dt==="utf8"&&bt<128||dt==="latin1")&&(Ke=bt)}}else typeof Ke=="number"&&(Ke=Ke&255);if(Ye<0||this.length<Ye||this.length<Je)throw new RangeError("Out of range index");if(Je<=Ye)return this;Ye=Ye>>>0,Je=Je===void 0?this.length:Je>>>0,Ke||(Ke=0);var vt;if(typeof Ke=="number")for(vt=Ye;vt<Je;++vt)this[vt]=Ke;else{var It=te.isBuffer(Ke)?Ke:te.from(Ke,dt),Vt=It.length;if(Vt===0)throw new TypeError('The value "'+Ke+'" is invalid for argument "value"');for(vt=0;vt<Je-Ye;++vt)this[vt+Ye]=It[vt%Vt]}return this};var Dt=/[^+/0-9A-Za-z-_]/g;function At(Ie){if(Ie=Ie.split("=")[0],Ie=Ie.trim().replace(Dt,""),Ie.length<2)return"";for(;Ie.length%4!==0;)Ie=Ie+"=";return Ie}function st(Ie){return Ie<16?"0"+Ie.toString(16):Ie.toString(16)}function Ge(Ie,Ke){Ke=Ke||1/0;for(var Ye,Je=Ie.length,dt=null,bt=[],vt=0;vt<Je;++vt){if(Ye=Ie.charCodeAt(vt),Ye>55295&&Ye<57344){if(!dt){if(Ye>56319){(Ke-=3)>-1&&bt.push(239,191,189);continue}else if(vt+1===Je){(Ke-=3)>-1&&bt.push(239,191,189);continue}dt=Ye;continue}if(Ye<56320){(Ke-=3)>-1&&bt.push(239,191,189),dt=Ye;continue}Ye=(dt-55296<<10|Ye-56320)+65536}else dt&&(Ke-=3)>-1&&bt.push(239,191,189);if(dt=null,Ye<128){if((Ke-=1)<0)break;bt.push(Ye)}else if(Ye<2048){if((Ke-=2)<0)break;bt.push(Ye>>6|192,Ye&63|128)}else if(Ye<65536){if((Ke-=3)<0)break;bt.push(Ye>>12|224,Ye>>6&63|128,Ye&63|128)}else if(Ye<1114112){if((Ke-=4)<0)break;bt.push(Ye>>18|240,Ye>>12&63|128,Ye>>6&63|128,Ye&63|128)}else throw new Error("Invalid code point")}return bt}function We(Ie){for(var Ke=[],Ye=0;Ye<Ie.length;++Ye)Ke.push(Ie.charCodeAt(Ye)&255);return Ke}function le(Ie,Ke){for(var Ye,Je,dt,bt=[],vt=0;vt<Ie.length&&!((Ke-=2)<0);++vt)Ye=Ie.charCodeAt(vt),Je=Ye>>8,dt=Ye%256,bt.push(dt),bt.push(Je);return bt}function fe(Ie){return ne.toByteArray(At(Ie))}function ze(Ie,Ke,Ye,Je){for(var dt=0;dt<Je&&!(dt+Ye>=Ke.length||dt>=Ie.length);++dt)Ke[dt+Ye]=Ie[dt];return dt}function He(Ie,Ke){return Ie instanceof Ke||Ie!=null&&Ie.constructor!=null&&Ie.constructor.name!=null&&Ie.constructor.name===Ke.name}function pe(Ie){return Ie!==Ie}}).call(this)}).call(this,x("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(x,De,ve){De.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,De,ve){"use strict";var re=x("get-intrinsic"),ne=x("./"),ie=ne(re("String.prototype.indexOf"));De.exports=function(se,me){var te=re(se,!!me);return typeof te=="function"&&ie(se,".prototype.")>-1?ne(te):te}},{"./":93,"get-intrinsic":348}],93:[function(x,De,ve){"use strict";var re=x("function-bind"),ne=x("get-intrinsic"),ie=ne("%Function.prototype.apply%"),oe=ne("%Function.prototype.call%"),se=ne("%Reflect.apply%",!0)||re.call(oe,ie),me=ne("%Object.getOwnPropertyDescriptor%",!0),te=ne("%Object.defineProperty%",!0),ae=ne("%Math.max%");if(te)try{te({},"a",{value:1})}catch(de){te=null}De.exports=function(he){var we=se(re,oe,arguments);if(me&&te){var Se=me(we,"length");Se.configurable&&te(we,"length",{value:1+ae(0,he.length-(arguments.length-1))})}return we};var ue=function(){return se(re,ie,arguments)};te?te(De.exports,"apply",{value:ue}):De.exports.apply=ue},{"function-bind":347,"get-intrinsic":348}],94:[function(x,De,ve){"use strict";var re=Array.prototype.slice;De.exports=ne;function ne(oe,se){if(!(this instanceof ne))return new ne(oe,se);this.src=oe,this._withAccess=se}ne.prototype.withAccess=function(oe){return this._withAccess=oe!==!1,this},ne.prototype.pick=function(oe){return Array.isArray(oe)||(oe=re.call(arguments)),oe.length&&(this.keys=oe),this},ne.prototype.to=function(oe){if(oe=oe||{},!this.src)return oe;var se=this.keys||Object.keys(this.src);if(!this._withAccess){for(var me=0;me<se.length;me++)te=se[me],oe[te]===void 0&&(oe[te]=this.src[te]);return oe}for(var me=0;me<se.length;me++){var te=se[me];if(ie(oe,te)){var ae=this.src.__lookupGetter__(te),ue=this.src.__lookupSetter__(te);ae&&oe.__defineGetter__(te,ae),ue&&oe.__defineSetter__(te,ue),!ae&&!ue&&(oe[te]=this.src[te])}}return oe},ne.prototype.toCover=function(oe){for(var se=this.keys||Object.keys(this.src),me=0;me<se.length;me++){var te=se[me];delete oe[te];var ae=this.src.__lookupGetter__(te),ue=this.src.__lookupSetter__(te);ae&&oe.__defineGetter__(te,ae),ue&&oe.__defineSetter__(te,ue),!ae&&!ue&&(oe[te]=this.src[te])}},ne.prototype.override=ne.prototype.toCover,ne.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,De,ve){var re=x("../internals/global"),ne=x("../internals/is-callable"),ie=x("../internals/try-to-string"),oe=re.TypeError;De.exports=function(se){if(ne(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,De,ve){var re=x("../internals/global"),ne=x("../internals/is-constructor"),ie=x("../internals/try-to-string"),oe=re.TypeError;De.exports=function(se){if(ne(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,De,ve){var re=x("../internals/global"),ne=x("../internals/is-callable"),ie=re.String,oe=re.TypeError;De.exports=function(se){if(typeof se=="object"||ne(se))return se;throw oe("Can't set "+ie(se)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(x,De,ve){var re=x("../internals/well-known-symbol"),ne=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:ne(null)}),De.exports=function(me){se[oe][me]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(x,De,ve){"use strict";var re=x("../internals/string-multibyte").charAt;De.exports=function(ne,ie,oe){return ie+(oe?re(ne,ie).length:1)}},{"../internals/string-multibyte":239}],100:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/object-is-prototype-of"),ie=re.TypeError;De.exports=function(oe,se){if(ne(se,oe))return oe;throw ie("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/is-object"),ie=re.String,oe=re.TypeError;De.exports=function(se){if(ne(se))return se;throw oe(ie(se)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(x,De,ve){De.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(x,De,ve){"use strict";var re=x("../internals/array-buffer-native"),ne=x("../internals/descriptors"),ie=x("../internals/global"),oe=x("../internals/is-callable"),se=x("../internals/is-object"),me=x("../internals/has-own-property"),te=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,we=x("../internals/object-is-prototype-of"),Se=x("../internals/object-get-prototype-of"),xe=x("../internals/object-set-prototype-of"),ye=x("../internals/well-known-symbol"),Ae=x("../internals/uid"),Le=ie.Int8Array,Ce=Le&&Le.prototype,je=ie.Uint8ClampedArray,Me=je&&je.prototype,Oe=Le&&Se(Le),Ee=Ce&&Se(Ce),Ne=Object.prototype,_e=ie.TypeError,Ze=ye("toStringTag"),Pe=Ae("TYPED_ARRAY_TAG"),Ue=Ae("TYPED_ARRAY_CONSTRUCTOR"),Qe=re&&!!xe&&te(ie.opera)!=="Opera",tt=!1,at,lt,Ve,Xe={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},nt={BigInt64Array:8,BigUint64Array:8},ct=function(Dt){if(!se(Dt))return!1;var At=te(Dt);return At==="DataView"||me(Xe,At)||me(nt,At)},ot=function(pt){if(!se(pt))return!1;var Dt=te(pt);return me(Xe,Dt)||me(nt,Dt)},et=function(pt){if(ot(pt))return pt;throw _e("Target is not a typed array")},qe=function(pt){if(oe(pt)&&(!xe||we(Oe,pt)))return pt;throw _e(ae(pt)+" is not a typed array constructor")},it=function(pt,Dt,At,st){if(ne){if(At)for(var Ge in Xe){var We=ie[Ge];if(We&&me(We.prototype,pt))try{delete We.prototype[pt]}catch(le){try{We.prototype[pt]=Dt}catch(fe){}}}(!Ee[pt]||At)&&de(Ee,pt,At?Dt:Qe&&Ce[pt]||Dt,st)}},yt=function(pt,Dt,At){var st,Ge;if(ne){if(xe){if(At){for(st in Xe)if(Ge=ie[st],Ge&&me(Ge,pt))try{delete Ge[pt]}catch(We){}}if(!Oe[pt]||At)try{return de(Oe,pt,At?Dt:Qe&&Oe[pt]||Dt)}catch(We){}else return}for(st in Xe)Ge=ie[st],Ge&&(!Ge[pt]||At)&&de(Ge,pt,Dt)}};for(at in Xe)lt=ie[at],Ve=lt&<.prototype,Ve?ue(Ve,Ue,lt):Qe=!1;for(at in nt)lt=ie[at],Ve=lt&<.prototype,Ve&&ue(Ve,Ue,lt);if((!Qe||!oe(Oe)||Oe===Function.prototype)&&(Oe=function(){throw _e("Incorrect invocation")},Qe))for(at in Xe)ie[at]&&xe(ie[at],Oe);if((!Qe||!Ee||Ee===Ne)&&(Ee=Oe.prototype,Qe))for(at in Xe)ie[at]&&xe(ie[at].prototype,Ee);if(Qe&&Se(Me)!==Ee&&xe(Me,Ee),ne&&!me(Ee,Ze)){tt=!0,he(Ee,Ze,{get:function(){return se(this)?this[Pe]:void 0}});for(at in Xe)ie[at]&&ue(ie[at],Pe,at)}De.exports={NATIVE_ARRAY_BUFFER_VIEWS:Qe,TYPED_ARRAY_CONSTRUCTOR:Ue,TYPED_ARRAY_TAG:tt&&Pe,aTypedArray:et,aTypedArrayConstructor:qe,exportTypedArrayMethod:it,exportTypedArrayStaticMethod:yt,isView:ct,isTypedArray:ot,TypedArray:Oe,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,De,ve){"use strict";var re=x("../internals/global"),ne=x("../internals/function-uncurry-this"),ie=x("../internals/descriptors"),oe=x("../internals/array-buffer-native"),se=x("../internals/function-name"),me=x("../internals/create-non-enumerable-property"),te=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"),we=x("../internals/to-index"),Se=x("../internals/ieee754"),xe=x("../internals/object-get-prototype-of"),ye=x("../internals/object-set-prototype-of"),Ae=x("../internals/object-get-own-property-names").f,Le=x("../internals/object-define-property").f,Ce=x("../internals/array-fill"),je=x("../internals/array-slice-simple"),Me=x("../internals/set-to-string-tag"),Oe=x("../internals/internal-state"),Ee=se.PROPER,Ne=se.CONFIGURABLE,_e=Oe.get,Ze=Oe.set,Pe="ArrayBuffer",Ue="DataView",Qe="prototype",tt="Wrong length",at="Wrong index",lt=re[Pe],Ve=lt,Xe=Ve&&Ve[Qe],nt=re[Ue],ct=nt&&nt[Qe],ot=Object.prototype,et=re.Array,qe=re.RangeError,it=ne(Ce),yt=ne([].reverse),pt=Se.pack,Dt=Se.unpack,At=function(vt){return[vt&255]},st=function(vt){return[vt&255,vt>>8&255]},Ge=function(vt){return[vt&255,vt>>8&255,vt>>16&255,vt>>24&255]},We=function(vt){return vt[3]<<24|vt[2]<<16|vt[1]<<8|vt[0]},le=function(vt){return pt(vt,23,4)},fe=function(vt){return pt(vt,52,8)},ze=function(vt,It){Le(vt[Qe],It,{get:function(){return _e(this)[It]}})},He=function(vt,It,Vt,kt){var jt=we(Vt),_t=_e(vt);if(jt+It>_t.byteLength)throw qe(at);var Mt=_e(_t.buffer).bytes,ft=jt+_t.byteOffset,St=je(Mt,ft,ft+It);return kt?St:yt(St)},pe=function(vt,It,Vt,kt,jt,_t){var Mt=we(Vt),ft=_e(vt);if(Mt+It>ft.byteLength)throw qe(at);for(var St=_e(ft.buffer).bytes,Nt=Mt+ft.byteOffset,Ft=kt(+jt),Ut=0;Ut<It;Ut++)St[Nt+Ut]=Ft[_t?Ut:It-Ut-1]};if(!oe)Ve=function(It){ue(this,Xe);var Vt=we(It);Ze(this,{bytes:it(et(Vt),0),byteLength:Vt}),ie||(this.byteLength=Vt)},Xe=Ve[Qe],nt=function(It,Vt,kt){ue(this,ct),ue(It,Xe);var jt=_e(It).byteLength,_t=de(Vt);if(_t<0||_t>jt)throw qe("Wrong offset");if(kt=kt===void 0?jt-_t:he(kt),_t+kt>jt)throw qe(tt);Ze(this,{buffer:It,byteLength:kt,byteOffset:_t}),ie||(this.buffer=It,this.byteLength=kt,this.byteOffset=_t)},ct=nt[Qe],ie&&(ze(Ve,"byteLength"),ze(nt,"buffer"),ze(nt,"byteLength"),ze(nt,"byteOffset")),te(ct,{getInt8:function(It){return He(this,1,It)[0]<<24>>24},getUint8:function(It){return He(this,1,It)[0]},getInt16:function(It){var Vt=He(this,2,It,arguments.length>1?arguments[1]:void 0);return(Vt[1]<<8|Vt[0])<<16>>16},getUint16:function(It){var Vt=He(this,2,It,arguments.length>1?arguments[1]:void 0);return Vt[1]<<8|Vt[0]},getInt32:function(It){return We(He(this,4,It,arguments.length>1?arguments[1]:void 0))},getUint32:function(It){return We(He(this,4,It,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(It){return Dt(He(this,4,It,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(It){return Dt(He(this,8,It,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(It,Vt){pe(this,1,It,At,Vt)},setUint8:function(It,Vt){pe(this,1,It,At,Vt)},setInt16:function(It,Vt){pe(this,2,It,st,Vt,arguments.length>2?arguments[2]:void 0)},setUint16:function(It,Vt){pe(this,2,It,st,Vt,arguments.length>2?arguments[2]:void 0)},setInt32:function(It,Vt){pe(this,4,It,Ge,Vt,arguments.length>2?arguments[2]:void 0)},setUint32:function(It,Vt){pe(this,4,It,Ge,Vt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(It,Vt){pe(this,4,It,le,Vt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(It,Vt){pe(this,8,It,fe,Vt,arguments.length>2?arguments[2]:void 0)}});else{var Ie=Ee&<.name!==Pe;if(!ae(function(){lt(1)})||!ae(function(){new lt(-1)})||ae(function(){return new lt,new lt(1.5),new lt(NaN),Ie&&!Ne})){Ve=function(It){return ue(this,Xe),new lt(we(It))},Ve[Qe]=Xe;for(var Ke=Ae(lt),Ye=0,Je;Ke.length>Ye;)(Je=Ke[Ye++])in Ve||me(Ve,Je,lt[Je]);Xe.constructor=Ve}else Ie&&Ne&&me(lt,"name",Pe);ye&&xe(ct)!==ot&&ye(ct,ot);var dt=new nt(new Ve(2)),bt=ne(ct.setInt8);dt.setInt8(0,2147483648),dt.setInt8(1,2147483649),(dt.getInt8(0)||!dt.getInt8(1))&&te(ct,{setInt8:function(It,Vt){bt(this,It,Vt<<24>>24)},setUint8:function(It,Vt){bt(this,It,Vt<<24>>24)}},{unsafe:!0})}Me(Ve,Pe),Me(nt,Ue),De.exports={ArrayBuffer:Ve,DataView:nt}},{"../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,De,ve){"use strict";var re=x("../internals/to-object"),ne=x("../internals/to-absolute-index"),ie=x("../internals/length-of-array-like"),oe=Math.min;De.exports=[].copyWithin||function(me,te){var ae=re(this),ue=ie(ae),de=ne(me,ue),he=ne(te,ue),we=arguments.length>2?arguments[2]:void 0,Se=oe((we===void 0?ue:ne(we,ue))-he,ue-de),xe=1;for(he<de&&de<he+Se&&(xe=-1,he+=Se-1,de+=Se-1);Se-- >0;)he in ae?ae[de]=ae[he]:delete ae[de],de+=xe,he+=xe;return ae}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(x,De,ve){"use strict";var re=x("../internals/to-object"),ne=x("../internals/to-absolute-index"),ie=x("../internals/length-of-array-like");De.exports=function(se){for(var me=re(this),te=ie(me),ae=arguments.length,ue=ne(ae>1?arguments[1]:void 0,te),de=ae>2?arguments[2]:void 0,he=de===void 0?te:ne(de,te);he>ue;)me[ue++]=se;return me}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(x,De,ve){"use strict";var re=x("../internals/array-iteration").forEach,ne=x("../internals/array-method-is-strict"),ie=ne("forEach");De.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,De,ve){var re=x("../internals/length-of-array-like");De.exports=function(ne,ie){for(var oe=0,se=re(ie),me=new ne(se);se>oe;)me[oe]=ie[oe++];return me}},{"../internals/length-of-array-like":188}],109:[function(x,De,ve){"use strict";var re=x("../internals/global"),ne=x("../internals/function-bind-context"),ie=x("../internals/function-call"),oe=x("../internals/to-object"),se=x("../internals/call-with-safe-iteration-closing"),me=x("../internals/is-array-iterator-method"),te=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"),we=re.Array;De.exports=function(xe){var ye=oe(xe),Ae=te(this),Le=arguments.length,Ce=Le>1?arguments[1]:void 0,je=Ce!==void 0;je&&(Ce=ne(Ce,Le>2?arguments[2]:void 0));var Me=he(ye),Oe=0,Ee,Ne,_e,Ze,Pe,Ue;if(Me&&!(this==we&&me(Me)))for(Ze=de(ye,Me),Pe=Ze.next,Ne=Ae?new this:[];!(_e=ie(Pe,Ze)).done;Oe++)Ue=je?se(Ze,Ce,[_e.value,Oe],!0):_e.value,ue(Ne,Oe,Ue);else for(Ee=ae(ye),Ne=Ae?new this(Ee):we(Ee);Ee>Oe;Oe++)Ue=je?Ce(ye[Oe],Oe):ye[Oe],ue(Ne,Oe,Ue);return Ne.length=Oe,Ne}},{"../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,De,ve){var re=x("../internals/to-indexed-object"),ne=x("../internals/to-absolute-index"),ie=x("../internals/length-of-array-like"),oe=function(se){return function(me,te,ae){var ue=re(me),de=ie(ue),he=ne(ae,de),we;if(se&&te!=te){for(;de>he;)if(we=ue[he++],we!=we)return!0}else for(;de>he;he++)if((se||he in ue)&&ue[he]===te)return se||he||0;return!se&&-1}};De.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,De,ve){var re=x("../internals/function-bind-context"),ne=x("../internals/function-uncurry-this"),ie=x("../internals/indexed-object"),oe=x("../internals/to-object"),se=x("../internals/length-of-array-like"),me=x("../internals/array-species-create"),te=ne([].push),ae=function(ue){var de=ue==1,he=ue==2,we=ue==3,Se=ue==4,xe=ue==6,ye=ue==7,Ae=ue==5||xe;return function(Le,Ce,je,Me){for(var Oe=oe(Le),Ee=ie(Oe),Ne=re(Ce,je),_e=se(Ee),Ze=0,Pe=Me||me,Ue=de?Pe(Le,_e):he||ye?Pe(Le,0):void 0,Qe,tt;_e>Ze;Ze++)if((Ae||Ze in Ee)&&(Qe=Ee[Ze],tt=Ne(Qe,Ze,Oe),ue))if(de)Ue[Ze]=tt;else if(tt)switch(ue){case 3:return!0;case 5:return Qe;case 6:return Ze;case 2:te(Ue,Qe)}else switch(ue){case 4:return!1;case 7:te(Ue,Qe)}return xe?-1:we||Se?Se:Ue}};De.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,De,ve){"use strict";var re=x("../internals/function-apply"),ne=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"),me=Math.min,te=[].lastIndexOf,ae=!!te&&1/[1].lastIndexOf(1,-0)<0,ue=se("lastIndexOf"),de=ae||!ue;De.exports=de?function(we){if(ae)return re(te,this,arguments)||0;var Se=ne(this),xe=oe(Se),ye=xe-1;for(arguments.length>1&&(ye=me(ye,ie(arguments[1]))),ye<0&&(ye=xe+ye);ye>=0;ye--)if(ye in Se&&Se[ye]===we)return ye||0;return-1}:te},{"../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,De,ve){var re=x("../internals/fails"),ne=x("../internals/well-known-symbol"),ie=x("../internals/engine-v8-version"),oe=ne("species");De.exports=function(se){return ie>=51||!re(function(){var me=[],te=me.constructor={};return te[oe]=function(){return{foo:1}},me[se](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(x,De,ve){"use strict";var re=x("../internals/fails");De.exports=function(ne,ie){var oe=[][ne];return!!oe&&re(function(){oe.call(null,ie||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/a-callable"),ie=x("../internals/to-object"),oe=x("../internals/indexed-object"),se=x("../internals/length-of-array-like"),me=re.TypeError,te=function(ae){return function(ue,de,he,we){ne(de);var Se=ie(ue),xe=oe(Se),ye=se(Se),Ae=ae?ye-1:0,Le=ae?-1:1;if(he<2)for(;;){if(Ae in xe){we=xe[Ae],Ae+=Le;break}if(Ae+=Le,ae?Ae<0:ye<=Ae)throw me("Reduce of empty array with no initial value")}for(;ae?Ae>=0:ye>Ae;Ae+=Le)Ae in xe&&(we=de(we,xe[Ae],Ae,Se));return we}};De.exports={left:te(!1),right:te(!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,De,ve){var re=x("../internals/global"),ne=x("../internals/to-absolute-index"),ie=x("../internals/length-of-array-like"),oe=x("../internals/create-property"),se=re.Array,me=Math.max;De.exports=function(te,ae,ue){for(var de=ie(te),he=ne(ae,de),we=ne(ue===void 0?de:ue,de),Se=se(me(we-he,0)),xe=0;he<we;he++,xe++)oe(Se,xe,te[he]);return Se.length=xe,Se}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(x,De,ve){var re=x("../internals/function-uncurry-this");De.exports=re([].slice)},{"../internals/function-uncurry-this":157}],118:[function(x,De,ve){var re=x("../internals/array-slice-simple"),ne=Math.floor,ie=function(me,te){var ae=me.length,ue=ne(ae/2);return ae<8?oe(me,te):se(me,ie(re(me,0,ue),te),ie(re(me,ue),te),te)},oe=function(me,te){for(var ae=me.length,ue=1,de,he;ue<ae;){for(he=ue,de=me[ue];he&&te(me[he-1],de)>0;)me[he]=me[--he];he!==ue++&&(me[he]=de)}return me},se=function(me,te,ae,ue){for(var de=te.length,he=ae.length,we=0,Se=0;we<de||Se<he;)me[we+Se]=we<de&&Se<he?ue(te[we],ae[Se])<=0?te[we++]:ae[Se++]:we<de?te[we++]:ae[Se++];return me};De.exports=ie},{"../internals/array-slice-simple":116}],119:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/is-array"),ie=x("../internals/is-constructor"),oe=x("../internals/is-object"),se=x("../internals/well-known-symbol"),me=se("species"),te=re.Array;De.exports=function(ae){var ue;return ne(ae)&&(ue=ae.constructor,ie(ue)&&(ue===te||ne(ue.prototype))?ue=void 0:oe(ue)&&(ue=ue[me],ue===null&&(ue=void 0))),ue===void 0?te:ue}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(x,De,ve){var re=x("../internals/array-species-constructor");De.exports=function(ne,ie){return new(re(ne))(ie===0?0:ie)}},{"../internals/array-species-constructor":119}],121:[function(x,De,ve){var re=x("../internals/an-object"),ne=x("../internals/iterator-close");De.exports=function(ie,oe,se,me){try{return me?oe(re(se)[0],se[1]):oe(se)}catch(te){ne(ie,"throw",te)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(x,De,ve){var re=x("../internals/well-known-symbol"),ne=re("iterator"),ie=!1;try{var oe=0,se={next:function(){return{done:!!oe++}},return:function(){ie=!0}};se[ne]=function(){return this},Array.from(se,function(){throw 2})}catch(me){}De.exports=function(me,te){if(!te&&!ie)return!1;var ae=!1;try{var ue={};ue[ne]=function(){return{next:function(){return{done:ae=!0}}}},me(ue)}catch(de){}return ae}},{"../internals/well-known-symbol":268}],123:[function(x,De,ve){var re=x("../internals/function-uncurry-this"),ne=re({}.toString),ie=re("".slice);De.exports=function(oe){return ie(ne(oe),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/to-string-tag-support"),ie=x("../internals/is-callable"),oe=x("../internals/classof-raw"),se=x("../internals/well-known-symbol"),me=se("toStringTag"),te=re.Object,ae=oe(function(){return arguments}())=="Arguments",ue=function(de,he){try{return de[he]}catch(we){}};De.exports=ne?oe:function(de){var he,we,Se;return de===void 0?"Undefined":de===null?"Null":typeof(we=ue(he=te(de),me))=="string"?we: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,De,ve){var re=x("../internals/has-own-property"),ne=x("../internals/own-keys"),ie=x("../internals/object-get-own-property-descriptor"),oe=x("../internals/object-define-property");De.exports=function(se,me,te){for(var ae=ne(me),ue=oe.f,de=ie.f,he=0;he<ae.length;he++){var we=ae[he];!re(se,we)&&!(te&&re(te,we))&&ue(se,we,de(me,we))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(x,De,ve){var re=x("../internals/well-known-symbol"),ne=re("match");De.exports=function(ie){var oe=/./;try{"/./"[ie](oe)}catch(se){try{return oe[ne]=!1,"/./"[ie](oe)}catch(me){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(x,De,ve){var re=x("../internals/fails");De.exports=!re(function(){function ne(){}return ne.prototype.constructor=null,Object.getPrototypeOf(new ne)!==ne.prototype})},{"../internals/fails":150}],128:[function(x,De,ve){"use strict";var re=x("../internals/iterators-core").IteratorPrototype,ne=x("../internals/object-create"),ie=x("../internals/create-property-descriptor"),oe=x("../internals/set-to-string-tag"),se=x("../internals/iterators"),me=function(){return this};De.exports=function(te,ae,ue,de){var he=ae+" Iterator";return te.prototype=ne(re,{next:ie(+!de,ue)}),oe(te,he,!1,!0),se[he]=me,te}},{"../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,De,ve){var re=x("../internals/descriptors"),ne=x("../internals/object-define-property"),ie=x("../internals/create-property-descriptor");De.exports=re?function(oe,se,me){return ne.f(oe,se,ie(1,me))}:function(oe,se,me){return oe[se]=me,oe}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(x,De,ve){De.exports=function(re,ne){return{enumerable:!(re&1),configurable:!(re&2),writable:!(re&4),value:ne}}},{}],131:[function(x,De,ve){"use strict";var re=x("../internals/to-property-key"),ne=x("../internals/object-define-property"),ie=x("../internals/create-property-descriptor");De.exports=function(oe,se,me){var te=re(se);te in oe?ne.f(oe,te,ie(0,me)):oe[te]=me}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(x,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/function-call"),ie=x("../internals/is-pure"),oe=x("../internals/function-name"),se=x("../internals/is-callable"),me=x("../internals/create-iterator-constructor"),te=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"),we=x("../internals/well-known-symbol"),Se=x("../internals/iterators"),xe=x("../internals/iterators-core"),ye=oe.PROPER,Ae=oe.CONFIGURABLE,Le=xe.IteratorPrototype,Ce=xe.BUGGY_SAFARI_ITERATORS,je=we("iterator"),Me="keys",Oe="values",Ee="entries",Ne=function(){return this};De.exports=function(_e,Ze,Pe,Ue,Qe,tt,at){me(Pe,Ze,Ue);var lt=function(pt){if(pt===Qe&&ot)return ot;if(!Ce&&pt in nt)return nt[pt];switch(pt){case Me:return function(){return new Pe(this,pt)};case Oe:return function(){return new Pe(this,pt)};case Ee:return function(){return new Pe(this,pt)}}return function(){return new Pe(this)}},Ve=Ze+" Iterator",Xe=!1,nt=_e.prototype,ct=nt[je]||nt["@@iterator"]||Qe&&nt[Qe],ot=!Ce&&ct||lt(Qe),et=Ze=="Array"&&nt.entries||ct,qe,it,yt;if(et&&(qe=te(et.call(new _e)),qe!==Object.prototype&&qe.next&&(!ie&&te(qe)!==Le&&(ae?ae(qe,Le):se(qe[je])||he(qe,je,Ne)),ue(qe,Ve,!0,!0),ie&&(Se[Ve]=Ne))),ye&&Qe==Oe&&ct&&ct.name!==Oe&&(!ie&&Ae?de(nt,"name",Oe):(Xe=!0,ot=function(){return ne(ct,this)})),Qe)if(it={values:lt(Oe),keys:tt?ot:lt(Me),entries:lt(Ee)},at)for(yt in it)(Ce||Xe||!(yt in nt))&&he(nt,yt,it[yt]);else re({target:Ze,proto:!0,forced:Ce||Xe},it);return(!ie||at)&&nt[je]!==ot&&he(nt,je,ot,{name:Qe}),Se[Ze]=ot,it}},{"../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,De,ve){var re=x("../internals/path"),ne=x("../internals/has-own-property"),ie=x("../internals/well-known-symbol-wrapped"),oe=x("../internals/object-define-property").f;De.exports=function(se){var me=re.Symbol||(re.Symbol={});ne(me,se)||oe(me,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,De,ve){var re=x("../internals/fails");De.exports=!re(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/is-object"),ie=re.document,oe=ne(ie)&&ne(ie.createElement);De.exports=function(se){return oe?ie.createElement(se):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(x,De,ve){De.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,De,ve){var re=x("../internals/document-create-element"),ne=re("span").classList,ie=ne&&ne.constructor&&ne.constructor.prototype;De.exports=ie===Object.prototype?void 0:ie},{"../internals/document-create-element":135}],138:[function(x,De,ve){var re=x("../internals/engine-user-agent"),ne=re.match(/firefox\/(\d+)/i);De.exports=!!ne&&+ne[1]},{"../internals/engine-user-agent":145}],139:[function(x,De,ve){De.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(x,De,ve){var re=x("../internals/engine-user-agent");De.exports=/MSIE|Trident/.test(re)},{"../internals/engine-user-agent":145}],141:[function(x,De,ve){var re=x("../internals/engine-user-agent"),ne=x("../internals/global");De.exports=/ipad|iphone|ipod/i.test(re)&&ne.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(x,De,ve){var re=x("../internals/engine-user-agent");De.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(re)},{"../internals/engine-user-agent":145}],143:[function(x,De,ve){var re=x("../internals/classof-raw"),ne=x("../internals/global");De.exports=re(ne.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(x,De,ve){var re=x("../internals/engine-user-agent");De.exports=/web0s(?!.*chrome)/i.test(re)},{"../internals/engine-user-agent":145}],145:[function(x,De,ve){var re=x("../internals/get-built-in");De.exports=re("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/engine-user-agent"),ie=re.process,oe=re.Deno,se=ie&&ie.versions||oe&&oe.version,me=se&&se.v8,te,ae;me&&(te=me.split("."),ae=te[0]>0&&te[0]<4?1:+(te[0]+te[1])),!ae&&ne&&(te=ne.match(/Edge\/(\d+)/),(!te||te[1]>=74)&&(te=ne.match(/Chrome\/(\d+)/),te&&(ae=+te[1]))),De.exports=ae},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(x,De,ve){var re=x("../internals/engine-user-agent"),ne=re.match(/AppleWebKit\/(\d+)\./);De.exports=!!ne&&+ne[1]},{"../internals/engine-user-agent":145}],148:[function(x,De,ve){De.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/object-get-own-property-descriptor").f,ie=x("../internals/create-non-enumerable-property"),oe=x("../internals/redefine"),se=x("../internals/set-global"),me=x("../internals/copy-constructor-properties"),te=x("../internals/is-forced");De.exports=function(ae,ue){var de=ae.target,he=ae.global,we=ae.stat,Se,xe,ye,Ae,Le,Ce;if(he?xe=re:we?xe=re[de]||se(de,{}):xe=(re[de]||{}).prototype,xe)for(ye in ue){if(Le=ue[ye],ae.noTargetGet?(Ce=ne(xe,ye),Ae=Ce&&Ce.value):Ae=xe[ye],Se=te(he?ye:de+(we?".":"#")+ye,ae.forced),!Se&&Ae!==void 0){if(typeof Le==typeof Ae)continue;me(Le,Ae)}(ae.sham||Ae&&Ae.sham)&&ie(Le,"sham",!0),oe(xe,ye,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,De,ve){De.exports=function(re){try{return!!re()}catch(ne){return!0}}},{}],151:[function(x,De,ve){"use strict";x("../modules/es.regexp.exec");var re=x("../internals/function-uncurry-this"),ne=x("../internals/redefine"),ie=x("../internals/regexp-exec"),oe=x("../internals/fails"),se=x("../internals/well-known-symbol"),me=x("../internals/create-non-enumerable-property"),te=se("species"),ae=RegExp.prototype;De.exports=function(ue,de,he,we){var Se=se(ue),xe=!oe(function(){var Ce={};return Ce[Se]=function(){return 7},""[ue](Ce)!=7}),ye=xe&&!oe(function(){var Ce=!1,je=/a/;return ue==="split"&&(je={},je.constructor={},je.constructor[te]=function(){return je},je.flags="",je[Se]=/./[Se]),je.exec=function(){return Ce=!0,null},je[Se](""),!Ce});if(!xe||!ye||he){var Ae=re(/./[Se]),Le=de(Se,""[ue],function(Ce,je,Me,Oe,Ee){var Ne=re(Ce),_e=je.exec;return _e===ie||_e===ae.exec?xe&&!Ee?{done:!0,value:Ae(je,Me,Oe)}:{done:!0,value:Ne(Me,je,Oe)}:{done:!1}});ne(String.prototype,ue,Le[0]),ne(ae,Se,Le[1])}we&&me(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,De,ve){var re=x("../internals/function-bind-native"),ne=Function.prototype,ie=ne.apply,oe=ne.call;De.exports=typeof Reflect=="object"&&Reflect.apply||(re?oe.bind(ie):function(){return oe.apply(ie,arguments)})},{"../internals/function-bind-native":154}],153:[function(x,De,ve){var re=x("../internals/function-uncurry-this"),ne=x("../internals/a-callable"),ie=x("../internals/function-bind-native"),oe=re(re.bind);De.exports=function(se,me){return ne(se),me===void 0?se:ie?oe(se,me):function(){return se.apply(me,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(x,De,ve){var re=x("../internals/fails");De.exports=!re(function(){var ne=function(){}.bind();return typeof ne!="function"||ne.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(x,De,ve){var re=x("../internals/function-bind-native"),ne=Function.prototype.call;De.exports=re?ne.bind(ne):function(){return ne.apply(ne,arguments)}},{"../internals/function-bind-native":154}],156:[function(x,De,ve){var re=x("../internals/descriptors"),ne=x("../internals/has-own-property"),ie=Function.prototype,oe=re&&Object.getOwnPropertyDescriptor,se=ne(ie,"name"),me=se&&function(){}.name==="something",te=se&&(!re||re&&oe(ie,"name").configurable);De.exports={EXISTS:se,PROPER:me,CONFIGURABLE:te}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(x,De,ve){var re=x("../internals/function-bind-native"),ne=Function.prototype,ie=ne.bind,oe=ne.call,se=re&&ie.bind(oe,oe);De.exports=re?function(me){return me&&se(me)}:function(me){return me&&function(){return oe.apply(me,arguments)}}},{"../internals/function-bind-native":154}],158:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/is-callable"),ie=function(oe){return ne(oe)?oe:void 0};De.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,De,ve){var re=x("../internals/classof"),ne=x("../internals/get-method"),ie=x("../internals/iterators"),oe=x("../internals/well-known-symbol"),se=oe("iterator");De.exports=function(me){if(me!=null)return ne(me,se)||ne(me,"@@iterator")||ie[re(me)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/function-call"),ie=x("../internals/a-callable"),oe=x("../internals/an-object"),se=x("../internals/try-to-string"),me=x("../internals/get-iterator-method"),te=re.TypeError;De.exports=function(ae,ue){var de=arguments.length<2?me(ae):ue;if(ie(de))return oe(ne(de,ae));throw te(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,De,ve){var re=x("../internals/a-callable");De.exports=function(ne,ie){var oe=ne[ie];return oe==null?void 0:re(oe)}},{"../internals/a-callable":95}],162:[function(x,De,ve){var re=x("../internals/function-uncurry-this"),ne=x("../internals/to-object"),ie=Math.floor,oe=re("".charAt),se=re("".replace),me=re("".slice),te=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ae=/\$([$&'`]|\d{1,2})/g;De.exports=function(ue,de,he,we,Se,xe){var ye=he+ue.length,Ae=we.length,Le=ae;return Se!==void 0&&(Se=ne(Se),Le=te),se(xe,Le,function(Ce,je){var Me;switch(oe(je,0)){case"$":return"$";case"&":return ue;case"`":return me(de,0,he);case"'":return me(de,ye);case"<":Me=Se[me(je,1,-1)];break;default:var Oe=+je;if(Oe===0)return Ce;if(Oe>Ae){var Ee=ie(Oe/10);return Ee===0?Ce:Ee<=Ae?we[Ee-1]===void 0?oe(je,1):we[Ee-1]+oe(je,1):Ce}Me=we[Oe-1]}return Me===void 0?"":Me})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(x,De,ve){(function(re){(function(){var ne=function(ie){return ie&&ie.Math==Math&&ie};De.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof re=="object"&&re)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(x,De,ve){var re=x("../internals/function-uncurry-this"),ne=x("../internals/to-object"),ie=re({}.hasOwnProperty);De.exports=Object.hasOwn||function(se,me){return ie(ne(se),me)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(x,De,ve){De.exports={}},{}],166:[function(x,De,ve){var re=x("../internals/global");De.exports=function(ne,ie){var oe=re.console;oe&&oe.error&&(arguments.length==1?oe.error(ne):oe.error(ne,ie))}},{"../internals/global":163}],167:[function(x,De,ve){var re=x("../internals/get-built-in");De.exports=re("document","documentElement")},{"../internals/get-built-in":158}],168:[function(x,De,ve){var re=x("../internals/descriptors"),ne=x("../internals/fails"),ie=x("../internals/document-create-element");De.exports=!re&&!ne(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,De,ve){var re=x("../internals/global"),ne=re.Array,ie=Math.abs,oe=Math.pow,se=Math.floor,me=Math.log,te=Math.LN2,ae=function(de,he,we){var Se=ne(we),xe=we*8-he-1,ye=(1<<xe)-1,Ae=ye>>1,Le=he===23?oe(2,-24)-oe(2,-77):0,Ce=de<0||de===0&&1/de<0?1:0,je=0,Me,Oe,Ee;for(de=ie(de),de!=de||de===1/0?(Oe=de!=de?1:0,Me=ye):(Me=se(me(de)/te),Ee=oe(2,-Me),de*Ee<1&&(Me--,Ee*=2),Me+Ae>=1?de+=Le/Ee:de+=Le*oe(2,1-Ae),de*Ee>=2&&(Me++,Ee/=2),Me+Ae>=ye?(Oe=0,Me=ye):Me+Ae>=1?(Oe=(de*Ee-1)*oe(2,he),Me=Me+Ae):(Oe=de*oe(2,Ae-1)*oe(2,he),Me=0));he>=8;)Se[je++]=Oe&255,Oe/=256,he-=8;for(Me=Me<<he|Oe,xe+=he;xe>0;)Se[je++]=Me&255,Me/=256,xe-=8;return Se[--je]|=Ce*128,Se},ue=function(de,he){var we=de.length,Se=we*8-he-1,xe=(1<<Se)-1,ye=xe>>1,Ae=Se-7,Le=we-1,Ce=de[Le--],je=Ce&127,Me;for(Ce>>=7;Ae>0;)je=je*256+de[Le--],Ae-=8;for(Me=je&(1<<-Ae)-1,je>>=-Ae,Ae+=he;Ae>0;)Me=Me*256+de[Le--],Ae-=8;if(je===0)je=1-ye;else{if(je===xe)return Me?NaN:Ce?-1/0:1/0;Me=Me+oe(2,he),je=je-ye}return(Ce?-1:1)*Me*oe(2,je-he)};De.exports={pack:ae,unpack:ue}},{"../internals/global":163}],170:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/function-uncurry-this"),ie=x("../internals/fails"),oe=x("../internals/classof-raw"),se=re.Object,me=ne("".split);De.exports=ie(function(){return!se("z").propertyIsEnumerable(0)})?function(te){return oe(te)=="String"?me(te,""):se(te)}:se},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(x,De,ve){var re=x("../internals/is-callable"),ne=x("../internals/is-object"),ie=x("../internals/object-set-prototype-of");De.exports=function(oe,se,me){var te,ae;return ie&&re(te=se.constructor)&&te!==me&&ne(ae=te.prototype)&&ae!==me.prototype&&ie(oe,ae),oe}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(x,De,ve){var re=x("../internals/function-uncurry-this"),ne=x("../internals/is-callable"),ie=x("../internals/shared-store"),oe=re(Function.toString);ne(ie.inspectSource)||(ie.inspectSource=function(se){return oe(se)}),De.exports=ie.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(x,De,ve){var re=x("../internals/native-weak-map"),ne=x("../internals/global"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/is-object"),se=x("../internals/create-non-enumerable-property"),me=x("../internals/has-own-property"),te=x("../internals/shared-store"),ae=x("../internals/shared-key"),ue=x("../internals/hidden-keys"),de="Object already initialized",he=ne.TypeError,we=ne.WeakMap,Se,xe,ye,Ae=function(Ne){return ye(Ne)?xe(Ne):Se(Ne,{})},Le=function(Ne){return function(_e){var Ze;if(!oe(_e)||(Ze=xe(_e)).type!==Ne)throw he("Incompatible receiver, "+Ne+" required");return Ze}};if(re||te.state){var Ce=te.state||(te.state=new we),je=ie(Ce.get),Me=ie(Ce.has),Oe=ie(Ce.set);Se=function(Ne,_e){if(Me(Ce,Ne))throw new he(de);return _e.facade=Ne,Oe(Ce,Ne,_e),_e},xe=function(Ne){return je(Ce,Ne)||{}},ye=function(Ne){return Me(Ce,Ne)}}else{var Ee=ae("state");ue[Ee]=!0,Se=function(Ne,_e){if(me(Ne,Ee))throw new he(de);return _e.facade=Ne,se(Ne,Ee,_e),_e},xe=function(Ne){return me(Ne,Ee)?Ne[Ee]:{}},ye=function(Ne){return me(Ne,Ee)}}De.exports={set:Se,get:xe,has:ye,enforce:Ae,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,De,ve){var re=x("../internals/well-known-symbol"),ne=x("../internals/iterators"),ie=re("iterator"),oe=Array.prototype;De.exports=function(se){return se!==void 0&&(ne.Array===se||oe[ie]===se)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(x,De,ve){var re=x("../internals/classof-raw");De.exports=Array.isArray||function(ie){return re(ie)=="Array"}},{"../internals/classof-raw":123}],176:[function(x,De,ve){De.exports=function(re){return typeof re=="function"}},{}],177:[function(x,De,ve){var re=x("../internals/function-uncurry-this"),ne=x("../internals/fails"),ie=x("../internals/is-callable"),oe=x("../internals/classof"),se=x("../internals/get-built-in"),me=x("../internals/inspect-source"),te=function(){},ae=[],ue=se("Reflect","construct"),de=/^\s*(?:class|function)\b/,he=re(de.exec),we=!de.exec(te),Se=function(Ae){if(!ie(Ae))return!1;try{return ue(te,ae,Ae),!0}catch(Le){return!1}},xe=function(Ae){if(!ie(Ae))return!1;switch(oe(Ae)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return we||!!he(de,me(Ae))}catch(Le){return!0}};xe.sham=!0,De.exports=!ue||ne(function(){var ye;return Se(Se.call)||!Se(Object)||!Se(function(){ye=!0})||ye})?xe: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,De,ve){var re=x("../internals/fails"),ne=x("../internals/is-callable"),ie=/#|\.prototype\./,oe=function(ue,de){var he=me[se(ue)];return he==ae?!0:he==te?!1:ne(de)?re(de):!!de},se=oe.normalize=function(ue){return String(ue).replace(ie,".").toLowerCase()},me=oe.data={},te=oe.NATIVE="N",ae=oe.POLYFILL="P";De.exports=oe},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(x,De,ve){var re=x("../internals/is-object"),ne=Math.floor;De.exports=Number.isInteger||function(oe){return!re(oe)&&isFinite(oe)&&ne(oe)===oe}},{"../internals/is-object":180}],180:[function(x,De,ve){var re=x("../internals/is-callable");De.exports=function(ne){return typeof ne=="object"?ne!==null:re(ne)}},{"../internals/is-callable":176}],181:[function(x,De,ve){De.exports=!1},{}],182:[function(x,De,ve){var re=x("../internals/is-object"),ne=x("../internals/classof-raw"),ie=x("../internals/well-known-symbol"),oe=ie("match");De.exports=function(se){var me;return re(se)&&((me=se[oe])!==void 0?!!me:ne(se)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/get-built-in"),ie=x("../internals/is-callable"),oe=x("../internals/object-is-prototype-of"),se=x("../internals/use-symbol-as-uid"),me=re.Object;De.exports=se?function(te){return typeof te=="symbol"}:function(te){var ae=ne("Symbol");return ie(ae)&&oe(ae.prototype,me(te))}},{"../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,De,ve){var re=x("../internals/global"),ne=x("../internals/function-bind-context"),ie=x("../internals/function-call"),oe=x("../internals/an-object"),se=x("../internals/try-to-string"),me=x("../internals/is-array-iterator-method"),te=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"),we=re.TypeError,Se=function(ye,Ae){this.stopped=ye,this.result=Ae},xe=Se.prototype;De.exports=function(ye,Ae,Le){var Ce=Le&&Le.that,je=!!(Le&&Le.AS_ENTRIES),Me=!!(Le&&Le.IS_ITERATOR),Oe=!!(Le&&Le.INTERRUPTED),Ee=ne(Ae,Ce),Ne,_e,Ze,Pe,Ue,Qe,tt,at=function(Ve){return Ne&&he(Ne,"normal",Ve),new Se(!0,Ve)},lt=function(Ve){return je?(oe(Ve),Oe?Ee(Ve[0],Ve[1],at):Ee(Ve[0],Ve[1])):Oe?Ee(Ve,at):Ee(Ve)};if(Me)Ne=ye;else{if(_e=de(ye),!_e)throw we(se(ye)+" is not iterable");if(me(_e)){for(Ze=0,Pe=te(ye);Pe>Ze;Ze++)if(Ue=lt(ye[Ze]),Ue&&ae(xe,Ue))return Ue;return new Se(!1)}Ne=ue(ye,_e)}for(Qe=Ne.next;!(tt=ie(Qe,Ne)).done;){try{Ue=lt(tt.value)}catch(Ve){he(Ne,"throw",Ve)}if(typeof Ue=="object"&&Ue&&ae(xe,Ue))return Ue}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,De,ve){var re=x("../internals/function-call"),ne=x("../internals/an-object"),ie=x("../internals/get-method");De.exports=function(oe,se,me){var te,ae;ne(oe);try{if(te=ie(oe,"return"),!te){if(se==="throw")throw me;return me}te=re(te,oe)}catch(ue){ae=!0,te=ue}if(se==="throw")throw me;if(ae)throw te;return ne(te),me}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(x,De,ve){"use strict";var re=x("../internals/fails"),ne=x("../internals/is-callable"),ie=x("../internals/object-create"),oe=x("../internals/object-get-prototype-of"),se=x("../internals/redefine"),me=x("../internals/well-known-symbol"),te=x("../internals/is-pure"),ae=me("iterator"),ue=!1,de,he,we;[].keys&&(we=[].keys(),"next"in we?(he=oe(oe(we)),he!==Object.prototype&&(de=he)):ue=!0);var Se=de==null||re(function(){var xe={};return de[ae].call(xe)!==xe});Se?de={}:te&&(de=ie(de)),ne(de[ae])||se(de,ae,function(){return this}),De.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,De,ve){arguments[4][165][0].apply(ve,arguments)},{dup:165}],188:[function(x,De,ve){var re=x("../internals/to-length");De.exports=function(ne){return re(ne.length)}},{"../internals/to-length":249}],189:[function(x,De,ve){var re=x("../internals/global"),ne=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"),me=x("../internals/engine-is-ios-pebble"),te=x("../internals/engine-is-webos-webkit"),ae=x("../internals/engine-is-node"),ue=re.MutationObserver||re.WebKitMutationObserver,de=re.document,he=re.process,we=re.Promise,Se=ie(re,"queueMicrotask"),xe=Se&&Se.value,ye,Ae,Le,Ce,je,Me,Oe,Ee;xe||(ye=function(){var Ne,_e;for(ae&&(Ne=he.domain)&&Ne.exit();Ae;){_e=Ae.fn,Ae=Ae.next;try{_e()}catch(Ze){throw Ae?Ce():Le=void 0,Ze}}Le=void 0,Ne&&Ne.enter()},!se&&!ae&&!te&&ue&&de?(je=!0,Me=de.createTextNode(""),new ue(ye).observe(Me,{characterData:!0}),Ce=function(){Me.data=je=!je}):!me&&we&&we.resolve?(Oe=we.resolve(void 0),Oe.constructor=we,Ee=ne(Oe.then,Oe),Ce=function(){Ee(ye)}):ae?Ce=function(){he.nextTick(ye)}:(oe=ne(oe,re),Ce=function(){oe(ye)})),De.exports=xe||function(Ne){var _e={fn:Ne,next:void 0};Le&&(Le.next=_e),Ae||(Ae=_e,Ce()),Le=_e}},{"../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,De,ve){var re=x("../internals/native-symbol");De.exports=re&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(x,De,ve){var re=x("../internals/engine-v8-version"),ne=x("../internals/fails");De.exports=!!Object.getOwnPropertySymbols&&!ne(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,De,ve){var re=x("../internals/global"),ne=x("../internals/is-callable"),ie=x("../internals/inspect-source"),oe=re.WeakMap;De.exports=ne(oe)&&/native code/.test(ie(oe))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(x,De,ve){"use strict";var re=x("../internals/a-callable"),ne=function(ie){var oe,se;this.promise=new ie(function(me,te){if(oe!==void 0||se!==void 0)throw TypeError("Bad Promise constructor");oe=me,se=te}),this.resolve=re(oe),this.reject=re(se)};De.exports.f=function(ie){return new ne(ie)}},{"../internals/a-callable":95}],194:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/is-regexp"),ie=re.TypeError;De.exports=function(oe){if(ne(oe))throw ie("The method doesn't accept regular expressions");return oe}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(x,De,ve){"use strict";var re=x("../internals/descriptors"),ne=x("../internals/function-uncurry-this"),ie=x("../internals/function-call"),oe=x("../internals/fails"),se=x("../internals/object-keys"),me=x("../internals/object-get-own-property-symbols"),te=x("../internals/object-property-is-enumerable"),ae=x("../internals/to-object"),ue=x("../internals/indexed-object"),de=Object.assign,he=Object.defineProperty,we=ne([].concat);De.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={},xe={},ye=Symbol(),Ae="abcdefghijklmnopqrst";return Se[ye]=7,Ae.split("").forEach(function(Le){xe[Le]=Le}),de({},Se)[ye]!=7||se(de({},xe)).join("")!=Ae})?function(xe,ye){for(var Ae=ae(xe),Le=arguments.length,Ce=1,je=me.f,Me=te.f;Le>Ce;)for(var Oe=ue(arguments[Ce++]),Ee=je?we(se(Oe),je(Oe)):se(Oe),Ne=Ee.length,_e=0,Ze;Ne>_e;)Ze=Ee[_e++],(!re||ie(Me,Oe,Ze))&&(Ae[Ze]=Oe[Ze]);return Ae}: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,De,ve){var re=x("../internals/an-object"),ne=x("../internals/object-define-properties"),ie=x("../internals/enum-bug-keys"),oe=x("../internals/hidden-keys"),se=x("../internals/html"),me=x("../internals/document-create-element"),te=x("../internals/shared-key"),ae=">",ue="<",de="prototype",he="script",we=te("IE_PROTO"),Se=function(){},xe=function(je){return ue+he+ae+je+ue+"/"+he+ae},ye=function(je){je.write(xe("")),je.close();var Me=je.parentWindow.Object;return je=null,Me},Ae=function(){var je=me("iframe"),Me="java"+he+":",Oe;return je.style.display="none",se.appendChild(je),je.src=String(Me),Oe=je.contentWindow.document,Oe.open(),Oe.write(xe("document.F=Object")),Oe.close(),Oe.F},Le,Ce=function(){try{Le=new ActiveXObject("htmlfile")}catch(Me){}Ce=typeof document!="undefined"?document.domain&&Le?ye(Le):Ae():ye(Le);for(var je=ie.length;je--;)delete Ce[de][ie[je]];return Ce()};oe[we]=!0,De.exports=Object.create||function(Me,Oe){var Ee;return Me!==null?(Se[de]=re(Me),Ee=new Se,Se[de]=null,Ee[we]=Me):Ee=Ce(),Oe===void 0?Ee:ne.f(Ee,Oe)}},{"../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,De,ve){var re=x("../internals/descriptors"),ne=x("../internals/v8-prototype-define-bug"),ie=x("../internals/object-define-property"),oe=x("../internals/an-object"),se=x("../internals/to-indexed-object"),me=x("../internals/object-keys");ve.f=re&&!ne?Object.defineProperties:function(ae,ue){oe(ae);for(var de=se(ue),he=me(ue),we=he.length,Se=0,xe;we>Se;)ie.f(ae,xe=he[Se++],de[xe]);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,De,ve){var re=x("../internals/global"),ne=x("../internals/descriptors"),ie=x("../internals/ie8-dom-define"),oe=x("../internals/v8-prototype-define-bug"),se=x("../internals/an-object"),me=x("../internals/to-property-key"),te=re.TypeError,ae=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,de="enumerable",he="configurable",we="writable";ve.f=ne?oe?function(xe,ye,Ae){if(se(xe),ye=me(ye),se(Ae),typeof xe=="function"&&ye==="prototype"&&"value"in Ae&&we in Ae&&!Ae[we]){var Le=ue(xe,ye);Le&&Le[we]&&(xe[ye]=Ae.value,Ae={configurable:he in Ae?Ae[he]:Le[he],enumerable:de in Ae?Ae[de]:Le[de],writable:!1})}return ae(xe,ye,Ae)}:ae:function(xe,ye,Ae){if(se(xe),ye=me(ye),se(Ae),ie)try{return ae(xe,ye,Ae)}catch(Le){}if("get"in Ae||"set"in Ae)throw te("Accessors not supported");return"value"in Ae&&(xe[ye]=Ae.value),xe}},{"../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,De,ve){var re=x("../internals/descriptors"),ne=x("../internals/function-call"),ie=x("../internals/object-property-is-enumerable"),oe=x("../internals/create-property-descriptor"),se=x("../internals/to-indexed-object"),me=x("../internals/to-property-key"),te=x("../internals/has-own-property"),ae=x("../internals/ie8-dom-define"),ue=Object.getOwnPropertyDescriptor;ve.f=re?ue:function(he,we){if(he=se(he),we=me(we),ae)try{return ue(he,we)}catch(Se){}if(te(he,we))return oe(!ne(ie.f,he,we),he[we])}},{"../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,De,ve){var re=x("../internals/classof-raw"),ne=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):[],me=function(te){try{return ie(te)}catch(ae){return oe(se)}};De.exports.f=function(ae){return se&&re(ae)=="Window"?me(ae):ie(ne(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,De,ve){var re=x("../internals/object-keys-internal"),ne=x("../internals/enum-bug-keys"),ie=ne.concat("length","prototype");ve.f=Object.getOwnPropertyNames||function(se){return re(se,ie)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(x,De,ve){ve.f=Object.getOwnPropertySymbols},{}],203:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/has-own-property"),ie=x("../internals/is-callable"),oe=x("../internals/to-object"),se=x("../internals/shared-key"),me=x("../internals/correct-prototype-getter"),te=se("IE_PROTO"),ae=re.Object,ue=ae.prototype;De.exports=me?ae.getPrototypeOf:function(de){var he=oe(de);if(ne(he,te))return he[te];var we=he.constructor;return ie(we)&&he instanceof we?we.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,De,ve){var re=x("../internals/function-uncurry-this");De.exports=re({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(x,De,ve){var re=x("../internals/function-uncurry-this"),ne=x("../internals/has-own-property"),ie=x("../internals/to-indexed-object"),oe=x("../internals/array-includes").indexOf,se=x("../internals/hidden-keys"),me=re([].push);De.exports=function(te,ae){var ue=ie(te),de=0,he=[],we;for(we in ue)!ne(se,we)&&ne(ue,we)&&me(he,we);for(;ae.length>de;)ne(ue,we=ae[de++])&&(~oe(he,we)||me(he,we));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,De,ve){var re=x("../internals/object-keys-internal"),ne=x("../internals/enum-bug-keys");De.exports=Object.keys||function(oe){return re(oe,ne)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(x,De,ve){"use strict";var re={}.propertyIsEnumerable,ne=Object.getOwnPropertyDescriptor,ie=ne&&!re.call({1:2},1);ve.f=ie?function(se){var me=ne(this,se);return!!me&&me.enumerable}:re},{}],208:[function(x,De,ve){var re=x("../internals/function-uncurry-this"),ne=x("../internals/an-object"),ie=x("../internals/a-possible-prototype");De.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var oe=!1,se={},me;try{me=re(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),me(se,[]),oe=se instanceof Array}catch(te){}return function(ae,ue){return ne(ae),ie(ue),oe?me(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,De,ve){var re=x("../internals/descriptors"),ne=x("../internals/function-uncurry-this"),ie=x("../internals/object-keys"),oe=x("../internals/to-indexed-object"),se=x("../internals/object-property-is-enumerable").f,me=ne(se),te=ne([].push),ae=function(ue){return function(de){for(var he=oe(de),we=ie(he),Se=we.length,xe=0,ye=[],Ae;Se>xe;)Ae=we[xe++],(!re||me(he,Ae))&&te(ye,ue?[Ae,he[Ae]]:he[Ae]);return ye}};De.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,De,ve){"use strict";var re=x("../internals/to-string-tag-support"),ne=x("../internals/classof");De.exports=re?{}.toString:function(){return"[object "+ne(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/function-call"),ie=x("../internals/is-callable"),oe=x("../internals/is-object"),se=re.TypeError;De.exports=function(me,te){var ae,ue;if(te==="string"&&ie(ae=me.toString)&&!oe(ue=ne(ae,me))||ie(ae=me.valueOf)&&!oe(ue=ne(ae,me))||te!=="string"&&ie(ae=me.toString)&&!oe(ue=ne(ae,me)))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,De,ve){var re=x("../internals/get-built-in"),ne=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"),me=ne([].concat);De.exports=re("Reflect","ownKeys")||function(ae){var ue=ie.f(se(ae)),de=oe.f;return de?me(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,De,ve){var re=x("../internals/global");De.exports=re},{"../internals/global":163}],214:[function(x,De,ve){De.exports=function(re){try{return{error:!1,value:re()}}catch(ne){return{error:!0,value:ne}}}},{}],215:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/promise-native-constructor"),ie=x("../internals/is-callable"),oe=x("../internals/is-forced"),se=x("../internals/inspect-source"),me=x("../internals/well-known-symbol"),te=x("../internals/engine-is-browser"),ae=x("../internals/is-pure"),ue=x("../internals/engine-v8-version"),de=ne&&ne.prototype,he=me("species"),we=!1,Se=ie(re.PromiseRejectionEvent),xe=oe("Promise",function(){var ye=se(ne),Ae=ye!==String(ne);if(!Ae&&ue===66||ae&&!(de.catch&&de.finally))return!0;if(ue>=51&&/native code/.test(ye))return!1;var Le=new ne(function(Me){Me(1)}),Ce=function(Me){Me(function(){},function(){})},je=Le.constructor={};return je[he]=Ce,we=Le.then(function(){})instanceof Ce,we?!Ae&&te&&!Se:!0});De.exports={CONSTRUCTOR:xe,REJECTION_EVENT:Se,SUBCLASSING:we}},{"../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,De,ve){var re=x("../internals/global");De.exports=re.Promise},{"../internals/global":163}],217:[function(x,De,ve){var re=x("../internals/an-object"),ne=x("../internals/is-object"),ie=x("../internals/new-promise-capability");De.exports=function(oe,se){if(re(oe),ne(se)&&se.constructor===oe)return se;var me=ie.f(oe),te=me.resolve;return te(se),me.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(x,De,ve){var re=x("../internals/promise-native-constructor"),ne=x("../internals/check-correctness-of-iteration"),ie=x("../internals/promise-constructor-detection").CONSTRUCTOR;De.exports=ie||!ne(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,De,ve){var re=x("../internals/object-define-property").f;De.exports=function(ne,ie,oe){oe in ne||re(ne,oe,{configurable:!0,get:function(){return ie[oe]},set:function(se){ie[oe]=se}})}},{"../internals/object-define-property":198}],220:[function(x,De,ve){var re=function(){this.head=null,this.tail=null};re.prototype={add:function(ne){var ie={item:ne,next:null};this.head?this.tail.next=ie:this.head=ie,this.tail=ie},get:function(){var ne=this.head;if(ne)return this.head=ne.next,this.tail===ne&&(this.tail=null),ne.item}},De.exports=re},{}],221:[function(x,De,ve){var re=x("../internals/redefine");De.exports=function(ne,ie,oe){for(var se in ie)re(ne,se,ie[se],oe);return ne}},{"../internals/redefine":222}],222:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/is-callable"),ie=x("../internals/has-own-property"),oe=x("../internals/create-non-enumerable-property"),se=x("../internals/set-global"),me=x("../internals/inspect-source"),te=x("../internals/internal-state"),ae=x("../internals/function-name").CONFIGURABLE,ue=te.get,de=te.enforce,he=String(String).split("String");(De.exports=function(we,Se,xe,ye){var Ae=ye?!!ye.unsafe:!1,Le=ye?!!ye.enumerable:!1,Ce=ye?!!ye.noTargetGet:!1,je=ye&&ye.name!==void 0?ye.name:Se,Me;if(ne(xe)&&(String(je).slice(0,7)==="Symbol("&&(je="["+String(je).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ie(xe,"name")||ae&&xe.name!==je)&&oe(xe,"name",je),Me=de(xe),Me.source||(Me.source=he.join(typeof je=="string"?je:""))),we===re){Le?we[Se]=xe:se(Se,xe);return}else Ae?!Ce&&we[Se]&&(Le=!0):delete we[Se];Le?we[Se]=xe:oe(we,Se,xe)})(Function.prototype,"toString",function(){return ne(this)&&ue(this).source||me(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,De,ve){var re=x("../internals/global"),ne=x("../internals/function-call"),ie=x("../internals/an-object"),oe=x("../internals/is-callable"),se=x("../internals/classof-raw"),me=x("../internals/regexp-exec"),te=re.TypeError;De.exports=function(ae,ue){var de=ae.exec;if(oe(de)){var he=ne(de,ae,ue);return he!==null&&ie(he),he}if(se(ae)==="RegExp")return ne(me,ae,ue);throw te("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,De,ve){"use strict";var re=x("../internals/function-call"),ne=x("../internals/function-uncurry-this"),ie=x("../internals/to-string"),oe=x("../internals/regexp-flags"),se=x("../internals/regexp-sticky-helpers"),me=x("../internals/shared"),te=x("../internals/object-create"),ae=x("../internals/internal-state").get,ue=x("../internals/regexp-unsupported-dot-all"),de=x("../internals/regexp-unsupported-ncg"),he=me("native-string-replace",String.prototype.replace),we=RegExp.prototype.exec,Se=we,xe=ne("".charAt),ye=ne("".indexOf),Ae=ne("".replace),Le=ne("".slice),Ce=function(){var Ee=/a/,Ne=/b*/g;return re(we,Ee,"a"),re(we,Ne,"a"),Ee.lastIndex!==0||Ne.lastIndex!==0}(),je=se.BROKEN_CARET,Me=/()??/.exec("")[1]!==void 0,Oe=Ce||Me||je||ue||de;Oe&&(Se=function(Ne){var _e=this,Ze=ae(_e),Pe=ie(Ne),Ue=Ze.raw,Qe,tt,at,lt,Ve,Xe,nt;if(Ue)return Ue.lastIndex=_e.lastIndex,Qe=re(Se,Ue,Pe),_e.lastIndex=Ue.lastIndex,Qe;var ct=Ze.groups,ot=je&&_e.sticky,et=re(oe,_e),qe=_e.source,it=0,yt=Pe;if(ot&&(et=Ae(et,"y",""),ye(et,"g")===-1&&(et+="g"),yt=Le(Pe,_e.lastIndex),_e.lastIndex>0&&(!_e.multiline||_e.multiline&&xe(Pe,_e.lastIndex-1)!==`
|
|
|
`)&&(qe="(?: "+qe+")",yt=" "+yt,it++),tt=new RegExp("^(?:"+qe+")",et)),Me&&(tt=new RegExp("^"+qe+"$(?!\\s)",et)),Ce&&(at=_e.lastIndex),lt=re(we,ot?tt:_e,yt),ot?lt?(lt.input=Le(lt.input,it),lt[0]=Le(lt[0],it),lt.index=_e.lastIndex,_e.lastIndex+=lt[0].length):_e.lastIndex=0:Ce&<&&(_e.lastIndex=_e.global?lt.index+lt[0].length:at),Me&<&<.length>1&&re(he,lt[0],tt,function(){for(Ve=1;Ve<arguments.length-2;Ve++)arguments[Ve]===void 0&&(lt[Ve]=void 0)}),lt&&ct)for(lt.groups=Xe=te(null),Ve=0;Ve<ct.length;Ve++)nt=ct[Ve],Xe[nt[0]]=lt[nt[1]];return lt}),De.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,De,ve){"use strict";var re=x("../internals/an-object");De.exports=function(){var ne=re(this),ie="";return ne.hasIndices&&(ie+="d"),ne.global&&(ie+="g"),ne.ignoreCase&&(ie+="i"),ne.multiline&&(ie+="m"),ne.dotAll&&(ie+="s"),ne.unicode&&(ie+="u"),ne.sticky&&(ie+="y"),ie}},{"../internals/an-object":101}],226:[function(x,De,ve){var re=x("../internals/function-call"),ne=x("../internals/has-own-property"),ie=x("../internals/object-is-prototype-of"),oe=x("../internals/regexp-flags"),se=RegExp.prototype;De.exports=function(me){var te=me.flags;return te===void 0&&!("flags"in se)&&!ne(me,"flags")&&ie(se,me)?re(oe,me):te}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(x,De,ve){var re=x("../internals/fails"),ne=x("../internals/global"),ie=ne.RegExp,oe=re(function(){var te=ie("a","y");return te.lastIndex=2,te.exec("abcd")!=null}),se=oe||re(function(){return!ie("a","y").sticky}),me=oe||re(function(){var te=ie("^r","gy");return te.lastIndex=2,te.exec("str")!=null});De.exports={BROKEN_CARET:me,MISSED_STICKY:se,UNSUPPORTED_Y:oe}},{"../internals/fails":150,"../internals/global":163}],228:[function(x,De,ve){var re=x("../internals/fails"),ne=x("../internals/global"),ie=ne.RegExp;De.exports=re(function(){var oe=ie(".","s");return!(oe.dotAll&&oe.exec(`
|
|
|
`)&&oe.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(x,De,ve){var re=x("../internals/fails"),ne=x("../internals/global"),ie=ne.RegExp;De.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,De,ve){var re=x("../internals/global"),ne=re.TypeError;De.exports=function(ie){if(ie==null)throw ne("Can't call method on "+ie);return ie}},{"../internals/global":163}],231:[function(x,De,ve){De.exports=Object.is||function(ne,ie){return ne===ie?ne!==0||1/ne===1/ie:ne!=ne&&ie!=ie}},{}],232:[function(x,De,ve){var re=x("../internals/global"),ne=Object.defineProperty;De.exports=function(ie,oe){try{ne(re,ie,{value:oe,configurable:!0,writable:!0})}catch(se){re[ie]=oe}return oe}},{"../internals/global":163}],233:[function(x,De,ve){"use strict";var re=x("../internals/get-built-in"),ne=x("../internals/object-define-property"),ie=x("../internals/well-known-symbol"),oe=x("../internals/descriptors"),se=ie("species");De.exports=function(me){var te=re(me),ae=ne.f;oe&&te&&!te[se]&&ae(te,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,De,ve){var re=x("../internals/object-define-property").f,ne=x("../internals/has-own-property"),ie=x("../internals/well-known-symbol"),oe=ie("toStringTag");De.exports=function(se,me,te){se&&!te&&(se=se.prototype),se&&!ne(se,oe)&&re(se,oe,{configurable:!0,value:me})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(x,De,ve){var re=x("../internals/shared"),ne=x("../internals/uid"),ie=re("keys");De.exports=function(oe){return ie[oe]||(ie[oe]=ne(oe))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/set-global"),ie="__core-js_shared__",oe=re[ie]||ne(ie,{});De.exports=oe},{"../internals/global":163,"../internals/set-global":232}],237:[function(x,De,ve){var re=x("../internals/is-pure"),ne=x("../internals/shared-store");(De.exports=function(ie,oe){return ne[ie]||(ne[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,De,ve){var re=x("../internals/an-object"),ne=x("../internals/a-constructor"),ie=x("../internals/well-known-symbol"),oe=ie("species");De.exports=function(se,me){var te=re(se).constructor,ae;return te===void 0||(ae=re(te)[oe])==null?me:ne(ae)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(x,De,ve){var re=x("../internals/function-uncurry-this"),ne=x("../internals/to-integer-or-infinity"),ie=x("../internals/to-string"),oe=x("../internals/require-object-coercible"),se=re("".charAt),me=re("".charCodeAt),te=re("".slice),ae=function(ue){return function(de,he){var we=ie(oe(de)),Se=ne(he),xe=we.length,ye,Ae;return Se<0||Se>=xe?ue?"":void 0:(ye=me(we,Se),ye<55296||ye>56319||Se+1===xe||(Ae=me(we,Se+1))<56320||Ae>57343?ue?se(we,Se):ye:ue?te(we,Se,Se+2):(ye-55296<<10)+(Ae-56320)+65536)}};De.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,De,ve){var re=x("../internals/function-name").PROPER,ne=x("../internals/fails"),ie=x("../internals/whitespaces"),oe="\u200B\x85\u180E";De.exports=function(se){return ne(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,De,ve){var re=x("../internals/function-uncurry-this"),ne=x("../internals/require-object-coercible"),ie=x("../internals/to-string"),oe=x("../internals/whitespaces"),se=re("".replace),me="["+oe+"]",te=RegExp("^"+me+me+"*"),ae=RegExp(me+me+"*$"),ue=function(de){return function(he){var we=ie(ne(he));return de&1&&(we=se(we,te,"")),de&2&&(we=se(we,ae,"")),we}};De.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,De,ve){var re=x("../internals/function-call"),ne=x("../internals/get-built-in"),ie=x("../internals/well-known-symbol"),oe=x("../internals/redefine");De.exports=function(){var se=ne("Symbol"),me=se&&se.prototype,te=me&&me.valueOf,ae=ie("toPrimitive");me&&!me[ae]&&oe(me,ae,function(ue){return re(te,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/function-apply"),ie=x("../internals/function-bind-context"),oe=x("../internals/is-callable"),se=x("../internals/has-own-property"),me=x("../internals/fails"),te=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"),we=x("../internals/engine-is-node"),Se=re.setImmediate,xe=re.clearImmediate,ye=re.process,Ae=re.Dispatch,Le=re.Function,Ce=re.MessageChannel,je=re.String,Me=0,Oe={},Ee="onreadystatechange",Ne,_e,Ze,Pe;try{Ne=re.location}catch(lt){}var Ue=function(lt){if(se(Oe,lt)){var Ve=Oe[lt];delete Oe[lt],Ve()}},Qe=function(lt){return function(){Ue(lt)}},tt=function(lt){Ue(lt.data)},at=function(lt){re.postMessage(je(lt),Ne.protocol+"//"+Ne.host)};(!Se||!xe)&&(Se=function(Ve){de(arguments.length,1);var Xe=oe(Ve)?Ve:Le(Ve),nt=ae(arguments,1);return Oe[++Me]=function(){ne(Xe,void 0,nt)},_e(Me),Me},xe=function(Ve){delete Oe[Ve]},we?_e=function(lt){ye.nextTick(Qe(lt))}:Ae&&Ae.now?_e=function(lt){Ae.now(Qe(lt))}:Ce&&!he?(Ze=new Ce,Pe=Ze.port2,Ze.port1.onmessage=tt,_e=ie(Pe.postMessage,Pe)):re.addEventListener&&oe(re.postMessage)&&!re.importScripts&&Ne&&Ne.protocol!=="file:"&&!me(at)?(_e=at,re.addEventListener("message",tt,!1)):Ee in ue("script")?_e=function(lt){te.appendChild(ue("script"))[Ee]=function(){te.removeChild(this),Ue(lt)}}:_e=function(lt){setTimeout(Qe(lt),0)}),De.exports={set:Se,clear:xe}},{"../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,De,ve){var re=x("../internals/function-uncurry-this");De.exports=re(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(x,De,ve){var re=x("../internals/to-integer-or-infinity"),ne=Math.max,ie=Math.min;De.exports=function(oe,se){var me=re(oe);return me<0?ne(me+se,0):ie(me,se)}},{"../internals/to-integer-or-infinity":248}],246:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/to-integer-or-infinity"),ie=x("../internals/to-length"),oe=re.RangeError;De.exports=function(se){if(se===void 0)return 0;var me=ne(se),te=ie(me);if(me!==te)throw oe("Wrong length or index");return te}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(x,De,ve){var re=x("../internals/indexed-object"),ne=x("../internals/require-object-coercible");De.exports=function(ie){return re(ne(ie))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(x,De,ve){var re=Math.ceil,ne=Math.floor;De.exports=function(ie){var oe=+ie;return oe!==oe||oe===0?0:(oe>0?ne:re)(oe)}},{}],249:[function(x,De,ve){var re=x("../internals/to-integer-or-infinity"),ne=Math.min;De.exports=function(ie){return ie>0?ne(re(ie),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/require-object-coercible"),ie=re.Object;De.exports=function(oe){return ie(ne(oe))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/to-positive-integer"),ie=re.RangeError;De.exports=function(oe,se){var me=ne(oe);if(me%se)throw ie("Wrong offset");return me}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/to-integer-or-infinity"),ie=re.RangeError;De.exports=function(oe){var se=ne(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,De,ve){var re=x("../internals/global"),ne=x("../internals/function-call"),ie=x("../internals/is-object"),oe=x("../internals/is-symbol"),se=x("../internals/get-method"),me=x("../internals/ordinary-to-primitive"),te=x("../internals/well-known-symbol"),ae=re.TypeError,ue=te("toPrimitive");De.exports=function(de,he){if(!ie(de)||oe(de))return de;var we=se(de,ue),Se;if(we){if(he===void 0&&(he="default"),Se=ne(we,de,he),!ie(Se)||oe(Se))return Se;throw ae("Can't convert object to primitive value")}return he===void 0&&(he="number"),me(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,De,ve){var re=x("../internals/to-primitive"),ne=x("../internals/is-symbol");De.exports=function(ie){var oe=re(ie,"string");return ne(oe)?oe:oe+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(x,De,ve){var re=x("../internals/well-known-symbol"),ne=re("toStringTag"),ie={};ie[ne]="z",De.exports=String(ie)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/classof"),ie=re.String;De.exports=function(oe){if(ne(oe)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ie(oe)}},{"../internals/classof":124,"../internals/global":163}],257:[function(x,De,ve){var re=x("../internals/global"),ne=re.String;De.exports=function(ie){try{return ne(ie)}catch(oe){return"Object"}}},{"../internals/global":163}],258:[function(x,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/global"),ie=x("../internals/function-call"),oe=x("../internals/descriptors"),se=x("../internals/typed-array-constructors-require-wrappers"),me=x("../internals/array-buffer-view-core"),te=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"),we=x("../internals/to-length"),Se=x("../internals/to-index"),xe=x("../internals/to-offset"),ye=x("../internals/to-property-key"),Ae=x("../internals/has-own-property"),Le=x("../internals/classof"),Ce=x("../internals/is-object"),je=x("../internals/is-symbol"),Me=x("../internals/object-create"),Oe=x("../internals/object-is-prototype-of"),Ee=x("../internals/object-set-prototype-of"),Ne=x("../internals/object-get-own-property-names").f,_e=x("../internals/typed-array-from"),Ze=x("../internals/array-iteration").forEach,Pe=x("../internals/set-species"),Ue=x("../internals/object-define-property"),Qe=x("../internals/object-get-own-property-descriptor"),tt=x("../internals/internal-state"),at=x("../internals/inherit-if-required"),lt=tt.get,Ve=tt.set,Xe=Ue.f,nt=Qe.f,ct=Math.round,ot=ne.RangeError,et=te.ArrayBuffer,qe=et.prototype,it=te.DataView,yt=me.NATIVE_ARRAY_BUFFER_VIEWS,pt=me.TYPED_ARRAY_CONSTRUCTOR,Dt=me.TYPED_ARRAY_TAG,At=me.TypedArray,st=me.TypedArrayPrototype,Ge=me.aTypedArrayConstructor,We=me.isTypedArray,le="BYTES_PER_ELEMENT",fe="Wrong length",ze=function(Je,dt){Ge(Je);for(var bt=0,vt=dt.length,It=new Je(vt);vt>bt;)It[bt]=dt[bt++];return It},He=function(Je,dt){Xe(Je,dt,{get:function(){return lt(this)[dt]}})},pe=function(Je){var dt;return Oe(qe,Je)||(dt=Le(Je))=="ArrayBuffer"||dt=="SharedArrayBuffer"},Ie=function(Je,dt){return We(Je)&&!je(dt)&&dt in Je&&he(+dt)&&dt>=0},Ke=function(dt,bt){return bt=ye(bt),Ie(dt,bt)?ue(2,dt[bt]):nt(dt,bt)},Ye=function(dt,bt,vt){return bt=ye(bt),Ie(dt,bt)&&Ce(vt)&&Ae(vt,"value")&&!Ae(vt,"get")&&!Ae(vt,"set")&&!vt.configurable&&(!Ae(vt,"writable")||vt.writable)&&(!Ae(vt,"enumerable")||vt.enumerable)?(dt[bt]=vt.value,dt):Xe(dt,bt,vt)};oe?(yt||(Qe.f=Ke,Ue.f=Ye,He(st,"buffer"),He(st,"byteOffset"),He(st,"byteLength"),He(st,"length")),re({target:"Object",stat:!0,forced:!yt},{getOwnPropertyDescriptor:Ke,defineProperty:Ye}),De.exports=function(Je,dt,bt){var vt=Je.match(/\d+$/)[0]/8,It=Je+(bt?"Clamped":"")+"Array",Vt="get"+Je,kt="set"+Je,jt=ne[It],_t=jt,Mt=_t&&_t.prototype,ft={},St=function(Ut,sr){var gr=lt(Ut);return gr.view[Vt](sr*vt+gr.byteOffset,!0)},Nt=function(Ut,sr,gr){var wr=lt(Ut);bt&&(gr=(gr=ct(gr))<0?0:gr>255?255:gr&255),wr.view[kt](sr*vt+wr.byteOffset,gr,!0)},Ft=function(Ut,sr){Xe(Ut,sr,{get:function(){return St(this,sr)},set:function(gr){return Nt(this,sr,gr)},enumerable:!0})};yt?se&&(_t=dt(function(Ut,sr,gr,wr){return ae(Ut,Mt),at(function(){return Ce(sr)?pe(sr)?wr!==void 0?new jt(sr,xe(gr,vt),wr):gr!==void 0?new jt(sr,xe(gr,vt)):new jt(sr):We(sr)?ze(_t,sr):ie(_e,_t,sr):new jt(Se(sr))}(),Ut,_t)}),Ee&&Ee(_t,At),Ze(Ne(jt),function(Ut){Ut in _t||de(_t,Ut,jt[Ut])}),_t.prototype=Mt):(_t=dt(function(Ut,sr,gr,wr){ae(Ut,Mt);var zr=0,Wr=0,Br,Nr,on;if(!Ce(sr))on=Se(sr),Nr=on*vt,Br=new et(Nr);else if(pe(sr)){Br=sr,Wr=xe(gr,vt);var Mn=sr.byteLength;if(wr===void 0){if(Mn%vt||(Nr=Mn-Wr,Nr<0))throw ot(fe)}else if(Nr=we(wr)*vt,Nr+Wr>Mn)throw ot(fe);on=Nr/vt}else return We(sr)?ze(_t,sr):ie(_e,_t,sr);for(Ve(Ut,{buffer:Br,byteOffset:Wr,byteLength:Nr,length:on,view:new it(Br)});zr<on;)Ft(Ut,zr++)}),Ee&&Ee(_t,At),Mt=_t.prototype=Me(st)),Mt.constructor!==_t&&de(Mt,"constructor",_t),de(Mt,pt,_t),Dt&&de(Mt,Dt,It),ft[It]=_t,re({global:!0,forced:_t!=jt,sham:!yt},ft),le in _t||de(_t,le,vt),le in Mt||de(Mt,le,vt),Pe(It)}):De.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,De,ve){var re=x("../internals/global"),ne=x("../internals/fails"),ie=x("../internals/check-correctness-of-iteration"),oe=x("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,se=re.ArrayBuffer,me=re.Int8Array;De.exports=!oe||!ne(function(){me(1)})||!ne(function(){new me(-1)})||!ie(function(te){new me,new me(null),new me(1.5),new me(te)},!0)||ne(function(){return new me(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,De,ve){var re=x("../internals/array-from-constructor-and-list"),ne=x("../internals/typed-array-species-constructor");De.exports=function(ie,oe){return re(ne(ie),oe)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(x,De,ve){var re=x("../internals/function-bind-context"),ne=x("../internals/function-call"),ie=x("../internals/a-constructor"),oe=x("../internals/to-object"),se=x("../internals/length-of-array-like"),me=x("../internals/get-iterator"),te=x("../internals/get-iterator-method"),ae=x("../internals/is-array-iterator-method"),ue=x("../internals/array-buffer-view-core").aTypedArrayConstructor;De.exports=function(he){var we=ie(this),Se=oe(he),xe=arguments.length,ye=xe>1?arguments[1]:void 0,Ae=ye!==void 0,Le=te(Se),Ce,je,Me,Oe,Ee,Ne;if(Le&&!ae(Le))for(Ee=me(Se,Le),Ne=Ee.next,Se=[];!(Oe=ne(Ne,Ee)).done;)Se.push(Oe.value);for(Ae&&xe>2&&(ye=re(ye,arguments[2])),je=se(Se),Me=new(ue(we))(je),Ce=0;je>Ce;Ce++)Me[Ce]=Ae?ye(Se[Ce],Ce):Se[Ce];return Me}},{"../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,De,ve){var re=x("../internals/array-buffer-view-core"),ne=x("../internals/species-constructor"),ie=re.TYPED_ARRAY_CONSTRUCTOR,oe=re.aTypedArrayConstructor;De.exports=function(se){return oe(ne(se,se[ie]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(x,De,ve){var re=x("../internals/function-uncurry-this"),ne=0,ie=Math.random(),oe=re(1 .toString);De.exports=function(se){return"Symbol("+(se===void 0?"":se)+")_"+oe(++ne+ie,36)}},{"../internals/function-uncurry-this":157}],264:[function(x,De,ve){var re=x("../internals/native-symbol");De.exports=re&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(x,De,ve){var re=x("../internals/descriptors"),ne=x("../internals/fails");De.exports=re&&ne(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(x,De,ve){var re=x("../internals/global"),ne=re.TypeError;De.exports=function(ie,oe){if(ie<oe)throw ne("Not enough arguments");return ie}},{"../internals/global":163}],267:[function(x,De,ve){var re=x("../internals/well-known-symbol");ve.f=re},{"../internals/well-known-symbol":268}],268:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/shared"),ie=x("../internals/has-own-property"),oe=x("../internals/uid"),se=x("../internals/native-symbol"),me=x("../internals/use-symbol-as-uid"),te=ne("wks"),ae=re.Symbol,ue=ae&&ae.for,de=me?ae:ae&&ae.withoutSetter||oe;De.exports=function(he){if(!ie(te,he)||!(se||typeof te[he]=="string")){var we="Symbol."+he;se&&ie(ae,he)?te[he]=ae[he]:me&&ue?te[he]=ue(we):te[he]=de(we)}return te[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,De,ve){De.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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/global"),ie=x("../internals/array-buffer"),oe=x("../internals/set-species"),se="ArrayBuffer",me=ie[se],te=ne[se];re({global:!0,forced:te!==me},{ArrayBuffer:me}),oe(se)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(x,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/function-uncurry-this"),ie=x("../internals/fails"),oe=x("../internals/array-buffer"),se=x("../internals/an-object"),me=x("../internals/to-absolute-index"),te=x("../internals/to-length"),ae=x("../internals/species-constructor"),ue=oe.ArrayBuffer,de=oe.DataView,he=de.prototype,we=ne(ue.prototype.slice),Se=ne(he.getUint8),xe=ne(he.setUint8),ye=ie(function(){return!new ue(2).slice(1,void 0).byteLength});re({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ye},{slice:function(Le,Ce){if(we&&Ce===void 0)return we(se(this),Le);for(var je=se(this).byteLength,Me=me(Le,je),Oe=me(Ce===void 0?je:Ce,je),Ee=new(ae(this,ue))(te(Oe-Me)),Ne=new de(this),_e=new de(Ee),Ze=0;Me<Oe;)xe(_e,Ze++,Se(Ne,Me++));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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/global"),ie=x("../internals/fails"),oe=x("../internals/is-array"),se=x("../internals/is-object"),me=x("../internals/to-object"),te=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"),we=x("../internals/engine-v8-version"),Se=he("isConcatSpreadable"),xe=9007199254740991,ye="Maximum allowed index exceeded",Ae=ne.TypeError,Le=we>=51||!ie(function(){var Oe=[];return Oe[Se]=!1,Oe.concat()[0]!==Oe}),Ce=de("concat"),je=function(Oe){if(!se(Oe))return!1;var Ee=Oe[Se];return Ee!==void 0?!!Ee:oe(Oe)},Me=!Le||!Ce;re({target:"Array",proto:!0,forced:Me},{concat:function(Ee){var Ne=me(this),_e=ue(Ne,0),Ze=0,Pe,Ue,Qe,tt,at;for(Pe=-1,Qe=arguments.length;Pe<Qe;Pe++)if(at=Pe===-1?Ne:arguments[Pe],je(at)){if(tt=te(at),Ze+tt>xe)throw Ae(ye);for(Ue=0;Ue<tt;Ue++,Ze++)Ue in at&&ae(_e,Ze,at[Ue])}else{if(Ze>=xe)throw Ae(ye);ae(_e,Ze++,at)}return _e.length=Ze,_e}})},{"../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,De,ve){var re=x("../internals/export"),ne=x("../internals/array-fill"),ie=x("../internals/add-to-unscopables");re({target:"Array",proto:!0},{fill:ne}),ie("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(x,De,ve){"use strict";var re=x("../internals/export"),ne=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(me){return ne(this,me,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(x,De,ve){"use strict";var re=x("../internals/export"),ne=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(te){return ne(this,te,arguments.length>1?arguments[1]:void 0)}}),ie(oe)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(x,De,ve){var re=x("../internals/export"),ne=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:ne})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(x,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/array-includes").includes,ie=x("../internals/add-to-unscopables");re({target:"Array",proto:!0},{includes:function(se){return ne(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,De,ve){"use strict";var re=x("../internals/to-indexed-object"),ne=x("../internals/add-to-unscopables"),ie=x("../internals/iterators"),oe=x("../internals/internal-state"),se=x("../internals/object-define-property").f,me=x("../internals/define-iterator"),te=x("../internals/is-pure"),ae=x("../internals/descriptors"),ue="Array Iterator",de=oe.set,he=oe.getterFor(ue);De.exports=me(Array,"Array",function(Se,xe){de(this,{type:ue,target:re(Se),index:0,kind:xe})},function(){var Se=he(this),xe=Se.target,ye=Se.kind,Ae=Se.index++;return!xe||Ae>=xe.length?(Se.target=void 0,{value:void 0,done:!0}):ye=="keys"?{value:Ae,done:!1}:ye=="values"?{value:xe[Ae],done:!1}:{value:[Ae,xe[Ae]],done:!1}},"values");var we=ie.Arguments=ie.Array;if(ne("keys"),ne("values"),ne("entries"),!te&&ae&&we.name!=="values")try{se(we,"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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/function-uncurry-this"),ie=x("../internals/indexed-object"),oe=x("../internals/to-indexed-object"),se=x("../internals/array-method-is-strict"),me=ne([].join),te=ie!=Object,ae=se("join",",");re({target:"Array",proto:!0,forced:te||!ae},{join:function(de){return me(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,De,ve){"use strict";var re=x("../internals/export"),ne=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(me){return ne(this,me,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(x,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/global"),ie=x("../internals/is-array"),oe=x("../internals/is-constructor"),se=x("../internals/is-object"),me=x("../internals/to-absolute-index"),te=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"),we=x("../internals/array-slice"),Se=he("slice"),xe=de("species"),ye=ne.Array,Ae=Math.max;re({target:"Array",proto:!0,forced:!Se},{slice:function(Ce,je){var Me=ae(this),Oe=te(Me),Ee=me(Ce,Oe),Ne=me(je===void 0?Oe:je,Oe),_e,Ze,Pe;if(ie(Me)&&(_e=Me.constructor,oe(_e)&&(_e===ye||ie(_e.prototype))?_e=void 0:se(_e)&&(_e=_e[xe],_e===null&&(_e=void 0)),_e===ye||_e===void 0))return we(Me,Ee,Ne);for(Ze=new(_e===void 0?ye:_e)(Ae(Ne-Ee,0)),Pe=0;Ee<Ne;Ee++,Pe++)Ee in Me&&ue(Ze,Pe,Me[Ee]);return Ze.length=Pe,Ze}})},{"../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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/function-uncurry-this"),ie=x("../internals/a-callable"),oe=x("../internals/to-object"),se=x("../internals/length-of-array-like"),me=x("../internals/to-string"),te=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"),we=x("../internals/engine-v8-version"),Se=x("../internals/engine-webkit-version"),xe=[],ye=ne(xe.sort),Ae=ne(xe.push),Le=te(function(){xe.sort(void 0)}),Ce=te(function(){xe.sort(null)}),je=ue("sort"),Me=!te(function(){if(we)return we<70;if(!(de&&de>3)){if(he)return!0;if(Se)return Se<603;var Ne="",_e,Ze,Pe,Ue;for(_e=65;_e<76;_e++){switch(Ze=String.fromCharCode(_e),_e){case 66:case 69:case 70:case 72:Pe=3;break;case 68:case 71:Pe=4;break;default:Pe=2}for(Ue=0;Ue<47;Ue++)xe.push({k:Ze+Ue,v:Pe})}for(xe.sort(function(Qe,tt){return tt.v-Qe.v}),Ue=0;Ue<xe.length;Ue++)Ze=xe[Ue].k.charAt(0),Ne.charAt(Ne.length-1)!==Ze&&(Ne+=Ze);return Ne!=="DGBEFHACIJK"}}),Oe=Le||!Ce||!je||!Me,Ee=function(Ne){return function(_e,Ze){return Ze===void 0?-1:_e===void 0?1:Ne!==void 0?+Ne(_e,Ze)||0:me(_e)>me(Ze)?1:-1}};re({target:"Array",proto:!0,forced:Oe},{sort:function(_e){_e!==void 0&&ie(_e);var Ze=oe(this);if(Me)return _e===void 0?ye(Ze):ye(Ze,_e);var Pe=[],Ue=se(Ze),Qe,tt;for(tt=0;tt<Ue;tt++)tt in Ze&&Ae(Pe,Ze[tt]);for(ae(Pe,Ee(_e)),Qe=Pe.length,tt=0;tt<Qe;)Ze[tt]=Pe[tt++];for(;tt<Ue;)delete Ze[tt++];return Ze}})},{"../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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/global"),ie=x("../internals/to-absolute-index"),oe=x("../internals/to-integer-or-infinity"),se=x("../internals/length-of-array-like"),me=x("../internals/to-object"),te=x("../internals/array-species-create"),ae=x("../internals/create-property"),ue=x("../internals/array-method-has-species-support"),de=ue("splice"),he=ne.TypeError,we=Math.max,Se=Math.min,xe=9007199254740991,ye="Maximum allowed length exceeded";re({target:"Array",proto:!0,forced:!de},{splice:function(Le,Ce){var je=me(this),Me=se(je),Oe=ie(Le,Me),Ee=arguments.length,Ne,_e,Ze,Pe,Ue,Qe;if(Ee===0?Ne=_e=0:Ee===1?(Ne=0,_e=Me-Oe):(Ne=Ee-2,_e=Se(we(oe(Ce),0),Me-Oe)),Me+Ne-_e>xe)throw he(ye);for(Ze=te(je,_e),Pe=0;Pe<_e;Pe++)Ue=Oe+Pe,Ue in je&&ae(Ze,Pe,je[Ue]);if(Ze.length=_e,Ne<_e){for(Pe=Oe;Pe<Me-_e;Pe++)Ue=Pe+_e,Qe=Pe+Ne,Ue in je?je[Qe]=je[Ue]:delete je[Qe];for(Pe=Me;Pe>Me-_e+Ne;Pe--)delete je[Pe-1]}else if(Ne>_e)for(Pe=Me-_e;Pe>Oe;Pe--)Ue=Pe+_e-1,Qe=Pe+Ne-1,Ue in je?je[Qe]=je[Ue]:delete je[Qe];for(Pe=0;Pe<Ne;Pe++)je[Pe+Oe]=arguments[Pe+2];return je.length=Me-_e+Ne,Ze}})},{"../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,De,ve){var re=x("../internals/descriptors"),ne=x("../internals/function-name").EXISTS,ie=x("../internals/function-uncurry-this"),oe=x("../internals/object-define-property").f,se=Function.prototype,me=ie(se.toString),te=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ae=ie(te.exec),ue="name";re&&!ne&&oe(se,ue,{configurable:!0,get:function(){try{return ae(te,me(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,De,ve){var re=x("../internals/export"),ne=x("../internals/get-built-in"),ie=x("../internals/function-apply"),oe=x("../internals/function-call"),se=x("../internals/function-uncurry-this"),me=x("../internals/fails"),te=x("../internals/is-array"),ae=x("../internals/is-callable"),ue=x("../internals/is-object"),de=x("../internals/is-symbol"),he=x("../internals/array-slice"),we=x("../internals/native-symbol"),Se=ne("JSON","stringify"),xe=se(/./.exec),ye=se("".charAt),Ae=se("".charCodeAt),Le=se("".replace),Ce=se(1 .toString),je=/[\uD800-\uDFFF]/g,Me=/^[\uD800-\uDBFF]$/,Oe=/^[\uDC00-\uDFFF]$/,Ee=!we||me(function(){var Pe=ne("Symbol")();return Se([Pe])!="[null]"||Se({a:Pe})!="{}"||Se(Object(Pe))!="{}"}),Ne=me(function(){return Se("\uDF06\uD834")!=='"\\udf06\\ud834"'||Se("\uDEAD")!=='"\\udead"'}),_e=function(Pe,Ue){var Qe=he(arguments),tt=Ue;if(!(!ue(Ue)&&Pe===void 0||de(Pe)))return te(Ue)||(Ue=function(at,lt){if(ae(tt)&&(lt=oe(tt,this,at,lt)),!de(lt))return lt}),Qe[1]=Ue,ie(Se,null,Qe)},Ze=function(Pe,Ue,Qe){var tt=ye(Qe,Ue-1),at=ye(Qe,Ue+1);return xe(Me,Pe)&&!xe(Oe,at)||xe(Oe,Pe)&&!xe(Me,tt)?"\\u"+Ce(Ae(Pe,0),16):Pe};Se&&re({target:"JSON",stat:!0,forced:Ee||Ne},{stringify:function(Ue,Qe,tt){var at=he(arguments),lt=ie(Ee?_e:Se,null,at);return Ne&&typeof lt=="string"?Le(lt,je,Ze):lt}})},{"../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,De,ve){"use strict";var re=x("../internals/descriptors"),ne=x("../internals/global"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/is-forced"),se=x("../internals/redefine"),me=x("../internals/has-own-property"),te=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"),we=x("../internals/object-get-own-property-names").f,Se=x("../internals/object-get-own-property-descriptor").f,xe=x("../internals/object-define-property").f,ye=x("../internals/this-number-value"),Ae=x("../internals/string-trim").trim,Le="Number",Ce=ne[Le],je=Ce.prototype,Me=ne.TypeError,Oe=ie("".slice),Ee=ie("".charCodeAt),Ne=function(tt){var at=de(tt,"number");return typeof at=="bigint"?at:_e(at)},_e=function(tt){var at=de(tt,"number"),lt,Ve,Xe,nt,ct,ot,et,qe;if(ue(at))throw Me("Cannot convert a Symbol value to a number");if(typeof at=="string"&&at.length>2){if(at=Ae(at),lt=Ee(at,0),lt===43||lt===45){if(Ve=Ee(at,2),Ve===88||Ve===120)return NaN}else if(lt===48){switch(Ee(at,1)){case 66:case 98:Xe=2,nt=49;break;case 79:case 111:Xe=8,nt=55;break;default:return+at}for(ct=Oe(at,2),ot=ct.length,et=0;et<ot;et++)if(qe=Ee(ct,et),qe<48||qe>nt)return NaN;return parseInt(ct,Xe)}}return+at};if(oe(Le,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var Ze=function(at){var lt=arguments.length<1?0:Ce(Ne(at)),Ve=this;return ae(je,Ve)&&he(function(){ye(Ve)})?te(Object(lt),Ve,Ze):lt},Pe=re?we(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(","),Ue=0,Qe;Pe.length>Ue;Ue++)me(Ce,Qe=Pe[Ue])&&!me(Ze,Qe)&&xe(Ze,Qe,Se(Ce,Qe));Ze.prototype=je,je.constructor=Ze,se(ne,Le,Ze)}},{"../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,De,ve){var re=x("../internals/export"),ne=x("../internals/object-assign");re({target:"Object",stat:!0,forced:Object.assign!==ne},{assign:ne})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(x,De,ve){var re=x("../internals/export"),ne=x("../internals/object-to-array").entries;re({target:"Object",stat:!0},{entries:function(oe){return ne(oe)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(x,De,ve){var re=x("../internals/export"),ne=x("../internals/native-symbol"),ie=x("../internals/fails"),oe=x("../internals/object-get-own-property-symbols"),se=x("../internals/to-object"),me=!ne||ie(function(){oe.f(1)});re({target:"Object",stat:!0,forced:me},{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,De,ve){var re=x("../internals/export"),ne=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(te){return ie(ne(te))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(x,De,ve){var re=x("../internals/to-string-tag-support"),ne=x("../internals/redefine"),ie=x("../internals/object-to-string");re||ne(Object.prototype,"toString",ie,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(x,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/function-call"),ie=x("../internals/a-callable"),oe=x("../internals/new-promise-capability"),se=x("../internals/perform"),me=x("../internals/iterate"),te=x("../internals/promise-statics-incorrect-iteration");re({target:"Promise",stat:!0,forced:te},{all:function(ue){var de=this,he=oe.f(de),we=he.resolve,Se=he.reject,xe=se(function(){var ye=ie(de.resolve),Ae=[],Le=0,Ce=1;me(ue,function(je){var Me=Le++,Oe=!1;Ce++,ne(ye,de,je).then(function(Ee){Oe||(Oe=!0,Ae[Me]=Ee,--Ce||we(Ae))},Se)}),--Ce||we(Ae)});return xe.error&&Se(xe.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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/is-pure"),ie=x("../internals/promise-constructor-detection").CONSTRUCTOR,oe=x("../internals/promise-native-constructor"),se=x("../internals/get-built-in"),me=x("../internals/is-callable"),te=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)}}),!ne&&me(oe)){var ue=se("Promise").prototype.catch;ae.catch!==ue&&te(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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/is-pure"),ie=x("../internals/engine-is-node"),oe=x("../internals/global"),se=x("../internals/function-call"),me=x("../internals/redefine"),te=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"),we=x("../internals/is-callable"),Se=x("../internals/is-object"),xe=x("../internals/an-instance"),ye=x("../internals/species-constructor"),Ae=x("../internals/task").set,Le=x("../internals/microtask"),Ce=x("../internals/host-report-errors"),je=x("../internals/perform"),Me=x("../internals/queue"),Oe=x("../internals/internal-state"),Ee=x("../internals/promise-native-constructor"),Ne=x("../internals/promise-constructor-detection"),_e=x("../internals/new-promise-capability"),Ze="Promise",Pe=Ne.CONSTRUCTOR,Ue=Ne.REJECTION_EVENT,Qe=Ne.SUBCLASSING,tt=Oe.getterFor(Ze),at=Oe.set,lt=Ee&&Ee.prototype,Ve=Ee,Xe=lt,nt=oe.TypeError,ct=oe.document,ot=oe.process,et=_e.f,qe=et,it=!!(ct&&ct.createEvent&&oe.dispatchEvent),yt="unhandledrejection",pt="rejectionhandled",Dt=0,At=1,st=2,Ge=1,We=2,le,fe,ze,He,pe=function(kt){var jt;return Se(kt)&&we(jt=kt.then)?jt:!1},Ie=function(kt,jt){var _t=jt.value,Mt=jt.state==At,ft=Mt?kt.ok:kt.fail,St=kt.resolve,Nt=kt.reject,Ft=kt.domain,Ut,sr,gr;try{ft?(Mt||(jt.rejection===We&&bt(jt),jt.rejection=Ge),ft===!0?Ut=_t:(Ft&&Ft.enter(),Ut=ft(_t),Ft&&(Ft.exit(),gr=!0)),Ut===kt.promise?Nt(nt("Promise-chain cycle")):(sr=pe(Ut))?se(sr,Ut,St,Nt):St(Ut)):Nt(_t)}catch(wr){Ft&&!gr&&Ft.exit(),Nt(wr)}},Ke=function(kt,jt){kt.notified||(kt.notified=!0,Le(function(){for(var _t=kt.reactions,Mt;Mt=_t.get();)Ie(Mt,kt);kt.notified=!1,jt&&!kt.rejection&&Je(kt)}))},Ye=function(kt,jt,_t){var Mt,ft;it?(Mt=ct.createEvent("Event"),Mt.promise=jt,Mt.reason=_t,Mt.initEvent(kt,!1,!0),oe.dispatchEvent(Mt)):Mt={promise:jt,reason:_t},!Ue&&(ft=oe["on"+kt])?ft(Mt):kt===yt&&Ce("Unhandled promise rejection",_t)},Je=function(kt){se(Ae,oe,function(){var jt=kt.facade,_t=kt.value,Mt=dt(kt),ft;if(Mt&&(ft=je(function(){ie?ot.emit("unhandledRejection",_t,jt):Ye(yt,jt,_t)}),kt.rejection=ie||dt(kt)?We:Ge,ft.error))throw ft.value})},dt=function(kt){return kt.rejection!==Ge&&!kt.parent},bt=function(kt){se(Ae,oe,function(){var jt=kt.facade;ie?ot.emit("rejectionHandled",jt):Ye(pt,jt,kt.value)})},vt=function(kt,jt,_t){return function(Mt){kt(jt,Mt,_t)}},It=function(kt,jt,_t){kt.done||(kt.done=!0,_t&&(kt=_t),kt.value=jt,kt.state=st,Ke(kt,!0))},Vt=function(kt,jt,_t){if(!kt.done){kt.done=!0,_t&&(kt=_t);try{if(kt.facade===jt)throw nt("Promise can't be resolved itself");var Mt=pe(jt);Mt?Le(function(){var ft={done:!1};try{se(Mt,jt,vt(Vt,ft,kt),vt(It,ft,kt))}catch(St){It(ft,St,kt)}}):(kt.value=jt,kt.state=At,Ke(kt,!1))}catch(ft){It({done:!1},ft,kt)}}};if(Pe&&(Ve=function(jt){xe(this,Xe),he(jt),se(le,this);var _t=tt(this);try{jt(vt(Vt,_t),vt(It,_t))}catch(Mt){It(_t,Mt)}},Xe=Ve.prototype,le=function(jt){at(this,{type:Ze,done:!1,notified:!1,parent:!1,reactions:new Me,rejection:!1,state:Dt,value:void 0})},le.prototype=te(Xe,{then:function(jt,_t){var Mt=tt(this),ft=et(ye(this,Ve));return Mt.parent=!0,ft.ok=we(jt)?jt:!0,ft.fail=we(_t)&&_t,ft.domain=ie?ot.domain:void 0,Mt.state==Dt?Mt.reactions.add(ft):Le(function(){Ie(ft,Mt)}),ft.promise}}),fe=function(){var kt=new le,jt=tt(kt);this.promise=kt,this.resolve=vt(Vt,jt),this.reject=vt(It,jt)},_e.f=et=function(kt){return kt===Ve||kt===ze?new fe(kt):qe(kt)},!ne&&we(Ee)&<!==Object.prototype)){He=lt.then,Qe||me(lt,"then",function(jt,_t){var Mt=this;return new Ve(function(ft,St){se(He,Mt,ft,St)}).then(jt,_t)},{unsafe:!0});try{delete lt.constructor}catch(kt){}ae&&ae(lt,Xe)}re({global:!0,wrap:!0,forced:Pe},{Promise:Ve}),ue(Ve,Ze,!1,!0),de(Ze)},{"../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,De,ve){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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/function-call"),ie=x("../internals/a-callable"),oe=x("../internals/new-promise-capability"),se=x("../internals/perform"),me=x("../internals/iterate"),te=x("../internals/promise-statics-incorrect-iteration");re({target:"Promise",stat:!0,forced:te},{race:function(ue){var de=this,he=oe.f(de),we=he.reject,Se=se(function(){var xe=ie(de.resolve);me(ue,function(ye){ne(xe,de,ye).then(he.resolve,we)})});return Se.error&&we(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,De,ve){"use strict";var re=x("../internals/export"),ne=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(me){var te=ie.f(this);return ne(te.reject,void 0,me),te.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(x,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/get-built-in"),ie=x("../internals/is-pure"),oe=x("../internals/promise-native-constructor"),se=x("../internals/promise-constructor-detection").CONSTRUCTOR,me=x("../internals/promise-resolve"),te=ne("Promise"),ae=ie&&!se;re({target:"Promise",stat:!0,forced:ie||se},{resolve:function(de){return me(ae&&this===te?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,De,ve){var re=x("../internals/descriptors"),ne=x("../internals/global"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/is-forced"),se=x("../internals/inherit-if-required"),me=x("../internals/create-non-enumerable-property"),te=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"),we=x("../internals/regexp-sticky-helpers"),Se=x("../internals/proxy-accessor"),xe=x("../internals/redefine"),ye=x("../internals/fails"),Ae=x("../internals/has-own-property"),Le=x("../internals/internal-state").enforce,Ce=x("../internals/set-species"),je=x("../internals/well-known-symbol"),Me=x("../internals/regexp-unsupported-dot-all"),Oe=x("../internals/regexp-unsupported-ncg"),Ee=je("match"),Ne=ne.RegExp,_e=Ne.prototype,Ze=ne.SyntaxError,Pe=ie(_e.exec),Ue=ie("".charAt),Qe=ie("".replace),tt=ie("".indexOf),at=ie("".slice),lt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ve=/a/g,Xe=/a/g,nt=new Ne(Ve)!==Ve,ct=we.MISSED_STICKY,ot=we.UNSUPPORTED_Y,et=re&&(!nt||ct||Me||Oe||ye(function(){return Xe[Ee]=!1,Ne(Ve)!=Ve||Ne(Xe)==Xe||Ne(Ve,"i")!="/a/i"})),qe=function(At){for(var st=At.length,Ge=0,We="",le=!1,fe;Ge<=st;Ge++){if(fe=Ue(At,Ge),fe==="\\"){We+=fe+Ue(At,++Ge);continue}!le&&fe==="."?We+="[\\s\\S]":(fe==="["?le=!0:fe==="]"&&(le=!1),We+=fe)}return We},it=function(At){for(var st=At.length,Ge=0,We="",le=[],fe={},ze=!1,He=!1,pe=0,Ie="",Ke;Ge<=st;Ge++){if(Ke=Ue(At,Ge),Ke==="\\")Ke=Ke+Ue(At,++Ge);else if(Ke==="]")ze=!1;else if(!ze)switch(!0){case Ke==="[":ze=!0;break;case Ke==="(":Pe(lt,at(At,Ge+1))&&(Ge+=2,He=!0),We+=Ke,pe++;continue;case(Ke===">"&&He):if(Ie===""||Ae(fe,Ie))throw new Ze("Invalid capture group name");fe[Ie]=!0,le[le.length]=[Ie,pe],He=!1,Ie="";continue}He?Ie+=Ke:We+=Ke}return[We,le]};if(oe("RegExp",et)){for(var yt=function(st,Ge){var We=ae(_e,this),le=ue(st),fe=Ge===void 0,ze=[],He=st,pe,Ie,Ke,Ye,Je,dt;if(!We&&le&&fe&&st.constructor===yt)return st;if((le||ae(_e,st))&&(st=st.source,fe&&(Ge=he(He))),st=st===void 0?"":de(st),Ge=Ge===void 0?"":de(Ge),He=st,Me&&"dotAll"in Ve&&(Ie=!!Ge&&tt(Ge,"s")>-1,Ie&&(Ge=Qe(Ge,/s/g,""))),pe=Ge,ct&&"sticky"in Ve&&(Ke=!!Ge&&tt(Ge,"y")>-1,Ke&&ot&&(Ge=Qe(Ge,/y/g,""))),Oe&&(Ye=it(st),st=Ye[0],ze=Ye[1]),Je=se(Ne(st,Ge),We?this:_e,yt),(Ie||Ke||ze.length)&&(dt=Le(Je),Ie&&(dt.dotAll=!0,dt.raw=yt(qe(st),pe)),Ke&&(dt.sticky=!0),ze.length&&(dt.groups=ze)),st!==He)try{me(Je,"source",He===""?"(?:)":He)}catch(bt){}return Je},pt=te(Ne),Dt=0;pt.length>Dt;)Se(yt,Ne,pt[Dt++]);_e.constructor=yt,yt.prototype=_e,xe(ne,"RegExp",yt)}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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/regexp-exec");re({target:"RegExp",proto:!0,forced:/./.exec!==ne},{exec:ne})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(x,De,ve){"use strict";var re=x("../internals/function-name").PROPER,ne=x("../internals/redefine"),ie=x("../internals/an-object"),oe=x("../internals/to-string"),se=x("../internals/fails"),me=x("../internals/regexp-get-flags"),te="toString",ae=RegExp.prototype,ue=ae[te],de=se(function(){return ue.call({source:"a",flags:"b"})!="/a/b"}),he=re&&ue.name!=te;(de||he)&&ne(RegExp.prototype,te,function(){var Se=ie(this),xe=oe(Se.source),ye=oe(me(Se));return"/"+xe+"/"+ye},{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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/function-uncurry-this"),ie=x("../internals/not-a-regexp"),oe=x("../internals/require-object-coercible"),se=x("../internals/to-string"),me=x("../internals/correct-is-regexp-logic"),te=ne("".indexOf);re({target:"String",proto:!0,forced:!me("includes")},{includes:function(ue){return!!~te(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,De,ve){"use strict";var re=x("../internals/string-multibyte").charAt,ne=x("../internals/to-string"),ie=x("../internals/internal-state"),oe=x("../internals/define-iterator"),se="String Iterator",me=ie.set,te=ie.getterFor(se);oe(String,"String",function(ae){me(this,{type:se,string:ne(ae),index:0})},function(){var ue=te(this),de=ue.string,he=ue.index,we;return he>=de.length?{value:void 0,done:!0}:(we=re(de,he),ue.index+=we.length,{value:we,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(x,De,ve){"use strict";var re=x("../internals/function-call"),ne=x("../internals/fix-regexp-well-known-symbol-logic"),ie=x("../internals/an-object"),oe=x("../internals/to-length"),se=x("../internals/to-string"),me=x("../internals/require-object-coercible"),te=x("../internals/get-method"),ae=x("../internals/advance-string-index"),ue=x("../internals/regexp-exec-abstract");ne("match",function(de,he,we){return[function(xe){var ye=me(this),Ae=xe==null?void 0:te(xe,de);return Ae?re(Ae,xe,ye):new RegExp(xe)[de](se(ye))},function(Se){var xe=ie(this),ye=se(Se),Ae=we(he,xe,ye);if(Ae.done)return Ae.value;if(!xe.global)return ue(xe,ye);var Le=xe.unicode;xe.lastIndex=0;for(var Ce=[],je=0,Me;(Me=ue(xe,ye))!==null;){var Oe=se(Me[0]);Ce[je]=Oe,Oe===""&&(xe.lastIndex=ae(ye,oe(xe.lastIndex),Le)),je++}return je===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,De,ve){"use strict";var re=x("../internals/function-apply"),ne=x("../internals/function-call"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/fix-regexp-well-known-symbol-logic"),se=x("../internals/fails"),me=x("../internals/an-object"),te=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"),we=x("../internals/advance-string-index"),Se=x("../internals/get-method"),xe=x("../internals/get-substitution"),ye=x("../internals/regexp-exec-abstract"),Ae=x("../internals/well-known-symbol"),Le=Ae("replace"),Ce=Math.max,je=Math.min,Me=ie([].concat),Oe=ie([].push),Ee=ie("".indexOf),Ne=ie("".slice),_e=function(Qe){return Qe===void 0?Qe:String(Qe)},Ze=function(){return"a".replace(/./,"$0")==="$0"}(),Pe=function(){return/./[Le]?/./[Le]("a","$0")==="":!1}(),Ue=!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,at){var lt=Pe?"$":"$0";return[function(Xe,nt){var ct=he(this),ot=Xe==null?void 0:Se(Xe,Le);return ot?ne(ot,Xe,ct,nt):ne(tt,de(ct),Xe,nt)},function(Ve,Xe){var nt=me(this),ct=de(Ve);if(typeof Xe=="string"&&Ee(Xe,lt)===-1&&Ee(Xe,"$<")===-1){var ot=at(tt,nt,ct,Xe);if(ot.done)return ot.value}var et=te(Xe);et||(Xe=de(Xe));var qe=nt.global;if(qe){var it=nt.unicode;nt.lastIndex=0}for(var yt=[];;){var pt=ye(nt,ct);if(pt===null||(Oe(yt,pt),!qe))break;var Dt=de(pt[0]);Dt===""&&(nt.lastIndex=we(ct,ue(nt.lastIndex),it))}for(var At="",st=0,Ge=0;Ge<yt.length;Ge++){pt=yt[Ge];for(var We=de(pt[0]),le=Ce(je(ae(pt.index),ct.length),0),fe=[],ze=1;ze<pt.length;ze++)Oe(fe,_e(pt[ze]));var He=pt.groups;if(et){var pe=Me([We],fe,le,ct);He!==void 0&&Oe(pe,He);var Ie=de(re(Xe,void 0,pe))}else Ie=xe(We,ct,le,fe,He,Xe);le>=st&&(At+=Ne(ct,st,le)+Ie,st=le+We.length)}return At+Ne(ct,st)}]},!Ue||!Ze||Pe)},{"../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,De,ve){"use strict";var re=x("../internals/function-call"),ne=x("../internals/fix-regexp-well-known-symbol-logic"),ie=x("../internals/an-object"),oe=x("../internals/require-object-coercible"),se=x("../internals/same-value"),me=x("../internals/to-string"),te=x("../internals/get-method"),ae=x("../internals/regexp-exec-abstract");ne("search",function(ue,de,he){return[function(Se){var xe=oe(this),ye=Se==null?void 0:te(Se,ue);return ye?re(ye,Se,xe):new RegExp(Se)[ue](me(xe))},function(we){var Se=ie(this),xe=me(we),ye=he(de,Se,xe);if(ye.done)return ye.value;var Ae=Se.lastIndex;se(Ae,0)||(Se.lastIndex=0);var Le=ae(Se,xe);return se(Se.lastIndex,Ae)||(Se.lastIndex=Ae),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,De,ve){"use strict";var re=x("../internals/function-apply"),ne=x("../internals/function-call"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/fix-regexp-well-known-symbol-logic"),se=x("../internals/is-regexp"),me=x("../internals/an-object"),te=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"),we=x("../internals/get-method"),Se=x("../internals/array-slice-simple"),xe=x("../internals/regexp-exec-abstract"),ye=x("../internals/regexp-exec"),Ae=x("../internals/regexp-sticky-helpers"),Le=x("../internals/fails"),Ce=Ae.UNSUPPORTED_Y,je=4294967295,Me=Math.min,Oe=[].push,Ee=ie(/./.exec),Ne=ie(Oe),_e=ie("".slice),Ze=!Le(function(){var Pe=/(?:)/,Ue=Pe.exec;Pe.exec=function(){return Ue.apply(this,arguments)};var Qe="ab".split(Pe);return Qe.length!==2||Qe[0]!=="a"||Qe[1]!=="b"});oe("split",function(Pe,Ue,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(at,lt){var Ve=he(te(this)),Xe=lt===void 0?je:lt>>>0;if(Xe===0)return[];if(at===void 0)return[Ve];if(!se(at))return ne(Ue,Ve,at,Xe);for(var nt=[],ct=(at.ignoreCase?"i":"")+(at.multiline?"m":"")+(at.unicode?"u":"")+(at.sticky?"y":""),ot=0,et=new RegExp(at.source,ct+"g"),qe,it,yt;(qe=ne(ye,et,Ve))&&(it=et.lastIndex,!(it>ot&&(Ne(nt,_e(Ve,ot,qe.index)),qe.length>1&&qe.index<Ve.length&&re(Oe,nt,Se(qe,1)),yt=qe[0].length,ot=it,nt.length>=Xe)));)et.lastIndex===qe.index&&et.lastIndex++;return ot===Ve.length?(yt||!Ee(et,""))&&Ne(nt,""):Ne(nt,_e(Ve,ot)),nt.length>Xe?Se(nt,0,Xe):nt}:"0".split(void 0,0).length?tt=function(at,lt){return at===void 0&<===0?[]:ne(Ue,this,at,lt)}:tt=Ue,[function(lt,Ve){var Xe=te(this),nt=lt==null?void 0:we(lt,Pe);return nt?ne(nt,lt,Xe,Ve):ne(tt,he(Xe),lt,Ve)},function(at,lt){var Ve=me(this),Xe=he(at),nt=Qe(tt,Ve,Xe,lt,tt!==Ue);if(nt.done)return nt.value;var ct=ae(Ve,RegExp),ot=Ve.unicode,et=(Ve.ignoreCase?"i":"")+(Ve.multiline?"m":"")+(Ve.unicode?"u":"")+(Ce?"g":"y"),qe=new ct(Ce?"^(?:"+Ve.source+")":Ve,et),it=lt===void 0?je:lt>>>0;if(it===0)return[];if(Xe.length===0)return xe(qe,Xe)===null?[Xe]:[];for(var yt=0,pt=0,Dt=[];pt<Xe.length;){qe.lastIndex=Ce?0:pt;var At=xe(qe,Ce?_e(Xe,pt):Xe),st;if(At===null||(st=Me(de(qe.lastIndex+(Ce?pt:0)),Xe.length))===yt)pt=ue(Xe,pt,ot);else{if(Ne(Dt,_e(Xe,yt,pt)),Dt.length===it)return Dt;for(var Ge=1;Ge<=At.length-1;Ge++)if(Ne(Dt,At[Ge]),Dt.length===it)return Dt;pt=yt=st}}return Ne(Dt,_e(Xe,yt)),Dt}]},!Ze,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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/string-trim").trim,ie=x("../internals/string-trim-forced");re({target:"String",proto:!0,forced:ie("trim")},{trim:function(){return ne(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(x,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/global"),ie=x("../internals/function-call"),oe=x("../internals/function-uncurry-this"),se=x("../internals/is-pure"),me=x("../internals/descriptors"),te=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"),we=x("../internals/to-indexed-object"),Se=x("../internals/to-property-key"),xe=x("../internals/to-string"),ye=x("../internals/create-property-descriptor"),Ae=x("../internals/object-create"),Le=x("../internals/object-keys"),Ce=x("../internals/object-get-own-property-names"),je=x("../internals/object-get-own-property-names-external"),Me=x("../internals/object-get-own-property-symbols"),Oe=x("../internals/object-get-own-property-descriptor"),Ee=x("../internals/object-define-property"),Ne=x("../internals/object-define-properties"),_e=x("../internals/object-property-is-enumerable"),Ze=x("../internals/redefine"),Pe=x("../internals/shared"),Ue=x("../internals/shared-key"),Qe=x("../internals/hidden-keys"),tt=x("../internals/uid"),at=x("../internals/well-known-symbol"),lt=x("../internals/well-known-symbol-wrapped"),Ve=x("../internals/define-well-known-symbol"),Xe=x("../internals/symbol-define-to-primitive"),nt=x("../internals/set-to-string-tag"),ct=x("../internals/internal-state"),ot=x("../internals/array-iteration").forEach,et=Ue("hidden"),qe="Symbol",it="prototype",yt=ct.set,pt=ct.getterFor(qe),Dt=Object[it],At=ne.Symbol,st=At&&At[it],Ge=ne.TypeError,We=ne.QObject,le=Oe.f,fe=Ee.f,ze=je.f,He=_e.f,pe=oe([].push),Ie=Pe("symbols"),Ke=Pe("op-symbols"),Ye=Pe("wks"),Je=!We||!We[it]||!We[it].findChild,dt=me&&ae(function(){return Ae(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a!=7})?function(ft,St,Nt){var Ft=le(Dt,St);Ft&&delete Dt[St],fe(ft,St,Nt),Ft&&ft!==Dt&&fe(Dt,St,Ft)}:fe,bt=function(ft,St){var Nt=Ie[ft]=Ae(st);return yt(Nt,{type:qe,tag:ft,description:St}),me||(Nt.description=St),Nt},vt=function(St,Nt,Ft){St===Dt&&vt(Ke,Nt,Ft),he(St);var Ut=Se(Nt);return he(Ft),ue(Ie,Ut)?(Ft.enumerable?(ue(St,et)&&St[et][Ut]&&(St[et][Ut]=!1),Ft=Ae(Ft,{enumerable:ye(0,!1)})):(ue(St,et)||fe(St,et,ye(1,{})),St[et][Ut]=!0),dt(St,Ut,Ft)):fe(St,Ut,Ft)},It=function(St,Nt){he(St);var Ft=we(Nt),Ut=Le(Ft).concat(Mt(Ft));return ot(Ut,function(sr){(!me||ie(kt,Ft,sr))&&vt(St,sr,Ft[sr])}),St},Vt=function(St,Nt){return Nt===void 0?Ae(St):It(Ae(St),Nt)},kt=function(St){var Nt=Se(St),Ft=ie(He,this,Nt);return this===Dt&&ue(Ie,Nt)&&!ue(Ke,Nt)?!1:Ft||!ue(this,Nt)||!ue(Ie,Nt)||ue(this,et)&&this[et][Nt]?Ft:!0},jt=function(St,Nt){var Ft=we(St),Ut=Se(Nt);if(!(Ft===Dt&&ue(Ie,Ut)&&!ue(Ke,Ut))){var sr=le(Ft,Ut);return sr&&ue(Ie,Ut)&&!(ue(Ft,et)&&Ft[et][Ut])&&(sr.enumerable=!0),sr}},_t=function(St){var Nt=ze(we(St)),Ft=[];return ot(Nt,function(Ut){!ue(Ie,Ut)&&!ue(Qe,Ut)&&pe(Ft,Ut)}),Ft},Mt=function(ft){var St=ft===Dt,Nt=ze(St?Ke:we(ft)),Ft=[];return ot(Nt,function(Ut){ue(Ie,Ut)&&(!St||ue(Dt,Ut))&&pe(Ft,Ie[Ut])}),Ft};te||(At=function(){if(de(st,this))throw Ge("Symbol is not a constructor");var St=!arguments.length||arguments[0]===void 0?void 0:xe(arguments[0]),Nt=tt(St),Ft=function(Ut){this===Dt&&ie(Ft,Ke,Ut),ue(this,et)&&ue(this[et],Nt)&&(this[et][Nt]=!1),dt(this,Nt,ye(1,Ut))};return me&&Je&&dt(Dt,Nt,{configurable:!0,set:Ft}),bt(Nt,St)},st=At[it],Ze(st,"toString",function(){return pt(this).tag}),Ze(At,"withoutSetter",function(ft){return bt(tt(ft),ft)}),_e.f=kt,Ee.f=vt,Ne.f=It,Oe.f=jt,Ce.f=je.f=_t,Me.f=Mt,lt.f=function(ft){return bt(at(ft),ft)},me&&(fe(st,"description",{configurable:!0,get:function(){return pt(this).description}}),se||Ze(Dt,"propertyIsEnumerable",kt,{unsafe:!0}))),re({global:!0,wrap:!0,forced:!te,sham:!te},{Symbol:At}),ot(Le(Ye),function(ft){Ve(ft)}),re({target:qe,stat:!0,forced:!te},{useSetter:function(){Je=!0},useSimple:function(){Je=!1}}),re({target:"Object",stat:!0,forced:!te,sham:!me},{create:Vt,defineProperty:vt,defineProperties:It,getOwnPropertyDescriptor:jt}),re({target:"Object",stat:!0,forced:!te},{getOwnPropertyNames:_t}),Xe(),nt(At,qe),Qe[et]=!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,De,ve){"use strict";var re=x("../internals/export"),ne=x("../internals/descriptors"),ie=x("../internals/global"),oe=x("../internals/function-uncurry-this"),se=x("../internals/has-own-property"),me=x("../internals/is-callable"),te=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,we=he&&he.prototype;if(ne&&me(he)&&(!("description"in we)||he().description!==void 0)){var Se={},xe=function(){var Ee=arguments.length<1||arguments[0]===void 0?void 0:ae(arguments[0]),Ne=te(we,this)?new he(Ee):Ee===void 0?he():he(Ee);return Ee===""&&(Se[Ne]=!0),Ne};de(xe,he),xe.prototype=we,we.constructor=xe;var ye=String(he("test"))=="Symbol(test)",Ae=oe(we.toString),Le=oe(we.valueOf),Ce=/^Symbol\((.*)\)[^)]+$/,je=oe("".replace),Me=oe("".slice);ue(we,"description",{configurable:!0,get:function(){var Ee=Le(this),Ne=Ae(Ee);if(se(Se,Ee))return"";var _e=ye?Me(Ne,7,-1):je(Ne,Ce,"$1");return _e===""?void 0:_e}}),re({global:!0,forced:!0},{Symbol:xe})}},{"../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,De,ve){var re=x("../internals/export"),ne=x("../internals/get-built-in"),ie=x("../internals/has-own-property"),oe=x("../internals/to-string"),se=x("../internals/shared"),me=x("../internals/native-symbol-registry"),te=se("string-to-symbol-registry"),ae=se("symbol-to-string-registry");re({target:"Symbol",stat:!0,forced:!me},{for:function(ue){var de=oe(ue);if(ie(te,de))return te[de];var he=ne("Symbol")(de);return te[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,De,ve){var re=x("../internals/define-well-known-symbol");re("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(x,De,ve){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,De,ve){var re=x("../internals/export"),ne=x("../internals/has-own-property"),ie=x("../internals/is-symbol"),oe=x("../internals/try-to-string"),se=x("../internals/shared"),me=x("../internals/native-symbol-registry"),te=se("symbol-to-string-registry");re({target:"Symbol",stat:!0,forced:!me},{keyFor:function(ue){if(!ie(ue))throw TypeError(oe(ue)+" is not a symbol");if(ne(te,ue))return te[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,De,ve){"use strict";var re=x("../internals/function-uncurry-this"),ne=x("../internals/array-buffer-view-core"),ie=x("../internals/array-copy-within"),oe=re(ie),se=ne.aTypedArray,me=ne.exportTypedArrayMethod;me("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,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").every,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("every",function(me){return ne(ie(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(x,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/function-call"),ie=x("../internals/array-fill"),oe=re.aTypedArray,se=re.exportTypedArrayMethod;se("fill",function(te){var ae=arguments.length;return ne(ie,oe(this),te,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,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").filter,ie=x("../internals/typed-array-from-species-and-list"),oe=re.aTypedArray,se=re.exportTypedArrayMethod;se("filter",function(te){var ae=ne(oe(this),te,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,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").findIndex,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("findIndex",function(me){return ne(ie(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(x,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").find,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("find",function(me){return ne(ie(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(x,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").forEach,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("forEach",function(me){ne(ie(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(x,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/array-includes").includes,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("includes",function(me){return ne(ie(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(x,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/array-includes").indexOf,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("indexOf",function(me){return ne(ie(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(x,De,ve){"use strict";var re=x("../internals/global"),ne=x("../internals/fails"),ie=x("../internals/function-uncurry-this"),oe=x("../internals/array-buffer-view-core"),se=x("../modules/es.array.iterator"),me=x("../internals/well-known-symbol"),te=me("iterator"),ae=re.Uint8Array,ue=ie(se.values),de=ie(se.keys),he=ie(se.entries),we=oe.aTypedArray,Se=oe.exportTypedArrayMethod,xe=ae&&ae.prototype,ye=!ne(function(){xe[te].call([1])}),Ae=!!xe&&xe.values&&xe[te]===xe.values&&xe.values.name==="values",Le=function(){return ue(we(this))};Se("entries",function(){return he(we(this))},ye),Se("keys",function(){return de(we(this))},ye),Se("values",Le,ye||!Ae,{name:"values"}),Se(te,Le,ye||!Ae,{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,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/function-uncurry-this"),ie=re.aTypedArray,oe=re.exportTypedArrayMethod,se=ne([].join);oe("join",function(te){return se(ie(this),te)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(x,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/function-apply"),ie=x("../internals/array-last-index-of"),oe=re.aTypedArray,se=re.exportTypedArrayMethod;se("lastIndexOf",function(te){var ae=arguments.length;return ne(ie,oe(this),ae>1?[te,arguments[1]]:[te])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(x,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").map,ie=x("../internals/typed-array-species-constructor"),oe=re.aTypedArray,se=re.exportTypedArrayMethod;se("map",function(te){return ne(oe(this),te,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,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/array-reduce").right,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("reduceRight",function(me){var te=arguments.length;return ne(ie(this),me,te,te>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(x,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/array-reduce").left,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("reduce",function(me){var te=arguments.length;return ne(ie(this),me,te,te>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(x,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=re.aTypedArray,ie=re.exportTypedArrayMethod,oe=Math.floor;ie("reverse",function(){for(var me=this,te=ne(me).length,ae=oe(te/2),ue=0,de;ue<ae;)de=me[ue],me[ue++]=me[--te],me[te]=de;return me})},{"../internals/array-buffer-view-core":103}],331:[function(x,De,ve){"use strict";var re=x("../internals/global"),ne=x("../internals/function-call"),ie=x("../internals/array-buffer-view-core"),oe=x("../internals/length-of-array-like"),se=x("../internals/to-offset"),me=x("../internals/to-object"),te=x("../internals/fails"),ae=re.RangeError,ue=re.Int8Array,de=ue&&ue.prototype,he=de&&de.set,we=ie.aTypedArray,Se=ie.exportTypedArrayMethod,xe=!te(function(){var Ae=new Uint8ClampedArray(2);return ne(he,Ae,{length:1,0:3},1),Ae[1]!==3}),ye=xe&&ie.NATIVE_ARRAY_BUFFER_VIEWS&&te(function(){var Ae=new ue(2);return Ae.set(1),Ae.set("2",1),Ae[0]!==0||Ae[1]!==2});Se("set",function(Le){we(this);var Ce=se(arguments.length>1?arguments[1]:void 0,1),je=me(Le);if(xe)return ne(he,this,je,Ce);var Me=this.length,Oe=oe(je),Ee=0;if(Oe+Ce>Me)throw ae("Wrong length");for(;Ee<Oe;)this[Ce+Ee]=je[Ee++]},!xe||ye)},{"../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,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/typed-array-species-constructor"),ie=x("../internals/fails"),oe=x("../internals/array-slice"),se=re.aTypedArray,me=re.exportTypedArrayMethod,te=ie(function(){new Int8Array(1).slice()});me("slice",function(ue,de){for(var he=oe(se(this),ue,de),we=ne(this),Se=0,xe=he.length,ye=new we(xe);xe>Se;)ye[Se]=he[Se++];return ye},te)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(x,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").some,ie=re.aTypedArray,oe=re.exportTypedArrayMethod;oe("some",function(me){return ne(ie(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(x,De,ve){"use strict";var re=x("../internals/global"),ne=x("../internals/function-uncurry-this"),ie=x("../internals/fails"),oe=x("../internals/a-callable"),se=x("../internals/array-sort"),me=x("../internals/array-buffer-view-core"),te=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=me.aTypedArray,we=me.exportTypedArrayMethod,Se=re.Uint16Array,xe=Se&&ne(Se.prototype.sort),ye=!!xe&&!(ie(function(){xe(new Se(2),null)})&&ie(function(){xe(new Se(2),{})})),Ae=!!xe&&!ie(function(){if(ue)return ue<74;if(te)return te<67;if(ae)return!0;if(de)return de<602;var Ce=new Se(516),je=Array(516),Me,Oe;for(Me=0;Me<516;Me++)Oe=Me%4,Ce[Me]=515-Me,je[Me]=Me-2*Oe+3;for(xe(Ce,function(Ee,Ne){return(Ee/4|0)-(Ne/4|0)}),Me=0;Me<516;Me++)if(Ce[Me]!==je[Me])return!0}),Le=function(Ce){return function(je,Me){return Ce!==void 0?+Ce(je,Me)||0:Me!==Me?-1:je!==je?1:je===0&&Me===0?1/je>0&&1/Me<0?1:-1:je>Me}};we("sort",function(je){return je!==void 0&&oe(je),Ae?xe(this,je):se(he(this),Le(je))},!Ae||ye)},{"../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,De,ve){"use strict";var re=x("../internals/array-buffer-view-core"),ne=x("../internals/to-length"),ie=x("../internals/to-absolute-index"),oe=x("../internals/typed-array-species-constructor"),se=re.aTypedArray,me=re.exportTypedArrayMethod;me("subarray",function(ae,ue){var de=se(this),he=de.length,we=ie(ae,he),Se=oe(de);return new Se(de.buffer,de.byteOffset+we*de.BYTES_PER_ELEMENT,ne((ue===void 0?he:ie(ue,he))-we))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(x,De,ve){"use strict";var re=x("../internals/global"),ne=x("../internals/function-apply"),ie=x("../internals/array-buffer-view-core"),oe=x("../internals/fails"),se=x("../internals/array-slice"),me=re.Int8Array,te=ie.aTypedArray,ae=ie.exportTypedArrayMethod,ue=[].toLocaleString,de=!!me&&oe(function(){ue.call(new me(1))}),he=oe(function(){return[1,2].toLocaleString()!=new me([1,2]).toLocaleString()})||!oe(function(){me.prototype.toLocaleString.call([1,2])});ae("toLocaleString",function(){return ne(ue,de?se(te(this)):te(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,De,ve){"use strict";var re=x("../internals/array-buffer-view-core").exportTypedArrayMethod,ne=x("../internals/fails"),ie=x("../internals/global"),oe=x("../internals/function-uncurry-this"),se=ie.Uint8Array,me=se&&se.prototype||{},te=[].toString,ae=oe([].join);ne(function(){te.call({})})&&(te=function(){return ae(this)});var ue=me.toString!=te;re("toString",te,ue)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(x,De,ve){var re=x("../internals/typed-array-constructor");re("Uint8",function(ne){return function(oe,se,me){return ne(this,oe,se,me)}})},{"../internals/typed-array-constructor":258}],339:[function(x,De,ve){var re=x("../internals/global"),ne=x("../internals/dom-iterables"),ie=x("../internals/dom-token-list-prototype"),oe=x("../internals/array-for-each"),se=x("../internals/create-non-enumerable-property"),me=function(ae){if(ae&&ae.forEach!==oe)try{se(ae,"forEach",oe)}catch(ue){ae.forEach=oe}};for(var te in ne)ne[te]&&me(re[te]&&re[te].prototype);me(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,De,ve){var re=x("../internals/global"),ne=x("../internals/dom-iterables"),ie=x("../internals/dom-token-list-prototype"),oe=x("../modules/es.array.iterator"),se=x("../internals/create-non-enumerable-property"),me=x("../internals/well-known-symbol"),te=me("iterator"),ae=me("toStringTag"),ue=oe.values,de=function(we,Se){if(we){if(we[te]!==ue)try{se(we,te,ue)}catch(ye){we[te]=ue}if(we[ae]||se(we,ae,Se),ne[Se]){for(var xe in oe)if(we[xe]!==oe[xe])try{se(we,xe,oe[xe])}catch(ye){we[xe]=oe[xe]}}}};for(var he in ne)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,De,ve){function re(Ae){return Array.isArray?Array.isArray(Ae):ye(Ae)==="[object Array]"}ve.isArray=re;function ne(Ae){return typeof Ae=="boolean"}ve.isBoolean=ne;function ie(Ae){return Ae===null}ve.isNull=ie;function oe(Ae){return Ae==null}ve.isNullOrUndefined=oe;function se(Ae){return typeof Ae=="number"}ve.isNumber=se;function me(Ae){return typeof Ae=="string"}ve.isString=me;function te(Ae){return typeof Ae=="symbol"}ve.isSymbol=te;function ae(Ae){return Ae===void 0}ve.isUndefined=ae;function ue(Ae){return ye(Ae)==="[object RegExp]"}ve.isRegExp=ue;function de(Ae){return typeof Ae=="object"&&Ae!==null}ve.isObject=de;function he(Ae){return ye(Ae)==="[object Date]"}ve.isDate=he;function we(Ae){return ye(Ae)==="[object Error]"||Ae instanceof Error}ve.isError=we;function Se(Ae){return typeof Ae=="function"}ve.isFunction=Se;function xe(Ae){return Ae===null||typeof Ae=="boolean"||typeof Ae=="number"||typeof Ae=="string"||typeof Ae=="symbol"||typeof Ae=="undefined"}ve.isPrimitive=xe,ve.isBuffer=x("buffer").Buffer.isBuffer;function ye(Ae){return Object.prototype.toString.call(Ae)}},{buffer:90}],342:[function(x,De,ve){(function(re){"use strict";var ne=function(){var te=/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,we,Se){if(arguments.length===1&&me(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(ne.masks[he]||he||ne.masks.default);var xe=he.slice(0,4);(xe==="UTC:"||xe==="GMT:")&&(he=he.slice(4),we=!0,xe==="GMT:"&&(Se=!0));var ye=we?"getUTC":"get",Ae=de[ye+"Date"](),Le=de[ye+"Day"](),Ce=de[ye+"Month"](),je=de[ye+"FullYear"](),Me=de[ye+"Hours"](),Oe=de[ye+"Minutes"](),Ee=de[ye+"Seconds"](),Ne=de[ye+"Milliseconds"](),_e=we?0:de.getTimezoneOffset(),Ze=oe(de),Pe=se(de),Ue={d:Ae,dd:ie(Ae),ddd:ne.i18n.dayNames[Le],dddd:ne.i18n.dayNames[Le+7],m:Ce+1,mm:ie(Ce+1),mmm:ne.i18n.monthNames[Ce],mmmm:ne.i18n.monthNames[Ce+12],yy:String(je).slice(2),yyyy:je,h:Me%12||12,hh:ie(Me%12||12),H:Me,HH:ie(Me),M:Oe,MM:ie(Oe),s:Ee,ss:ie(Ee),l:ie(Ne,3),L:ie(Math.round(Ne/10)),t:Me<12?"a":"p",tt:Me<12?"am":"pm",T:Me<12?"A":"P",TT:Me<12?"AM":"PM",Z:Se?"GMT":we?"UTC":(String(de).match(ae)||[""]).pop().replace(ue,""),o:(_e>0?"-":"+")+ie(Math.floor(Math.abs(_e)/60)*100+Math.abs(_e)%60,4),S:["th","st","nd","rd"][Ae%10>3?0:(Ae%100-Ae%10!=10)*Ae%10],W:Ze,N:Pe};return he.replace(te,function(Qe){return Qe in Ue?Ue[Qe]:Qe.slice(1,Qe.length-1)})}}();ne.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"},ne.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(te,ae){for(te=String(te),ae=ae||2;te.length<ae;)te="0"+te;return te}function oe(te){var ae=new Date(te.getFullYear(),te.getMonth(),te.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(te){var ae=te.getDay();return ae===0&&(ae=7),ae}function me(te){return te===null?"null":te===void 0?"undefined":typeof te!="object"?typeof te:Array.isArray(te)?"array":{}.toString.call(te).slice(8,-1).toLowerCase()}typeof ke=="function"&&ke.amd?ke(function(){return ne}):typeof ve=="object"?De.exports=ne:re.dateFormat=ne})(this)},{}],343:[function(x,De,ve){"use strict";var re=/["'&<>]/;De.exports=ne;function ne(ie){var oe=""+ie,se=re.exec(oe);if(!se)return oe;var me,te="",ae=0,ue=0;for(ae=se.index;ae<oe.length;ae++){switch(oe.charCodeAt(ae)){case 34:me=""";break;case 38:me="&";break;case 39:me="'";break;case 60:me="<";break;case 62:me=">";break;default:continue}ue!==ae&&(te+=oe.substring(ue,ae)),ue=ae+1,te+=me}return ue!==ae?te+oe.substring(ue,ae):te}},{}],344:[function(x,De,ve){"use strict";var re=typeof Reflect=="object"?Reflect:null,ne=re&&typeof re.apply=="function"?re.apply:function(Ee,Ne,_e){return Function.prototype.apply.call(Ee,Ne,_e)},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(Oe){console&&console.warn&&console.warn(Oe)}var se=Number.isNaN||function(Ee){return Ee!==Ee};function me(){me.init.call(this)}De.exports=me,De.exports.once=Ce,me.EventEmitter=me,me.prototype._events=void 0,me.prototype._eventsCount=0,me.prototype._maxListeners=void 0;var te=10;function ae(Oe){if(typeof Oe!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Oe)}Object.defineProperty(me,"defaultMaxListeners",{enumerable:!0,get:function(){return te},set:function(Oe){if(typeof Oe!="number"||Oe<0||se(Oe))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Oe+".");te=Oe}}),me.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},me.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(Oe){return Oe._maxListeners===void 0?me.defaultMaxListeners:Oe._maxListeners}me.prototype.getMaxListeners=function(){return ue(this)},me.prototype.emit=function(Ee){for(var Ne=[],_e=1;_e<arguments.length;_e++)Ne.push(arguments[_e]);var Ze=Ee==="error",Pe=this._events;if(Pe!==void 0)Ze=Ze&&Pe.error===void 0;else if(!Ze)return!1;if(Ze){var Ue;if(Ne.length>0&&(Ue=Ne[0]),Ue instanceof Error)throw Ue;var Qe=new Error("Unhandled error."+(Ue?" ("+Ue.message+")":""));throw Qe.context=Ue,Qe}var tt=Pe[Ee];if(tt===void 0)return!1;if(typeof tt=="function")ne(tt,this,Ne);else for(var at=tt.length,lt=ye(tt,at),_e=0;_e<at;++_e)ne(lt[_e],this,Ne);return!0};function de(Oe,Ee,Ne,_e){var Ze,Pe,Ue;if(ae(Ne),Pe=Oe._events,Pe===void 0?(Pe=Oe._events=Object.create(null),Oe._eventsCount=0):(Pe.newListener!==void 0&&(Oe.emit("newListener",Ee,Ne.listener?Ne.listener:Ne),Pe=Oe._events),Ue=Pe[Ee]),Ue===void 0)Ue=Pe[Ee]=Ne,++Oe._eventsCount;else if(typeof Ue=="function"?Ue=Pe[Ee]=_e?[Ne,Ue]:[Ue,Ne]:_e?Ue.unshift(Ne):Ue.push(Ne),Ze=ue(Oe),Ze>0&&Ue.length>Ze&&!Ue.warned){Ue.warned=!0;var Qe=new Error("Possible EventEmitter memory leak detected. "+Ue.length+" "+String(Ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");Qe.name="MaxListenersExceededWarning",Qe.emitter=Oe,Qe.type=Ee,Qe.count=Ue.length,oe(Qe)}return Oe}me.prototype.addListener=function(Ee,Ne){return de(this,Ee,Ne,!1)},me.prototype.on=me.prototype.addListener,me.prototype.prependListener=function(Ee,Ne){return de(this,Ee,Ne,!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 we(Oe,Ee,Ne){var _e={fired:!1,wrapFn:void 0,target:Oe,type:Ee,listener:Ne},Ze=he.bind(_e);return Ze.listener=Ne,_e.wrapFn=Ze,Ze}me.prototype.once=function(Ee,Ne){return ae(Ne),this.on(Ee,we(this,Ee,Ne)),this},me.prototype.prependOnceListener=function(Ee,Ne){return ae(Ne),this.prependListener(Ee,we(this,Ee,Ne)),this},me.prototype.removeListener=function(Ee,Ne){var _e,Ze,Pe,Ue,Qe;if(ae(Ne),Ze=this._events,Ze===void 0)return this;if(_e=Ze[Ee],_e===void 0)return this;if(_e===Ne||_e.listener===Ne)--this._eventsCount===0?this._events=Object.create(null):(delete Ze[Ee],Ze.removeListener&&this.emit("removeListener",Ee,_e.listener||Ne));else if(typeof _e!="function"){for(Pe=-1,Ue=_e.length-1;Ue>=0;Ue--)if(_e[Ue]===Ne||_e[Ue].listener===Ne){Qe=_e[Ue].listener,Pe=Ue;break}if(Pe<0)return this;Pe===0?_e.shift():Ae(_e,Pe),_e.length===1&&(Ze[Ee]=_e[0]),Ze.removeListener!==void 0&&this.emit("removeListener",Ee,Qe||Ne)}return this},me.prototype.off=me.prototype.removeListener,me.prototype.removeAllListeners=function(Ee){var Ne,_e,Ze;if(_e=this._events,_e===void 0)return this;if(_e.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_e[Ee]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete _e[Ee]),this;if(arguments.length===0){var Pe=Object.keys(_e),Ue;for(Ze=0;Ze<Pe.length;++Ze)Ue=Pe[Ze],Ue!=="removeListener"&&this.removeAllListeners(Ue);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Ne=_e[Ee],typeof Ne=="function")this.removeListener(Ee,Ne);else if(Ne!==void 0)for(Ze=Ne.length-1;Ze>=0;Ze--)this.removeListener(Ee,Ne[Ze]);return this};function Se(Oe,Ee,Ne){var _e=Oe._events;if(_e===void 0)return[];var Ze=_e[Ee];return Ze===void 0?[]:typeof Ze=="function"?Ne?[Ze.listener||Ze]:[Ze]:Ne?Le(Ze):ye(Ze,Ze.length)}me.prototype.listeners=function(Ee){return Se(this,Ee,!0)},me.prototype.rawListeners=function(Ee){return Se(this,Ee,!1)},me.listenerCount=function(Oe,Ee){return typeof Oe.listenerCount=="function"?Oe.listenerCount(Ee):xe.call(Oe,Ee)},me.prototype.listenerCount=xe;function xe(Oe){var Ee=this._events;if(Ee!==void 0){var Ne=Ee[Oe];if(typeof Ne=="function")return 1;if(Ne!==void 0)return Ne.length}return 0}me.prototype.eventNames=function(){return this._eventsCount>0?ie(this._events):[]};function ye(Oe,Ee){for(var Ne=new Array(Ee),_e=0;_e<Ee;++_e)Ne[_e]=Oe[_e];return Ne}function Ae(Oe,Ee){for(;Ee+1<Oe.length;Ee++)Oe[Ee]=Oe[Ee+1];Oe.pop()}function Le(Oe){for(var Ee=new Array(Oe.length),Ne=0;Ne<Ee.length;++Ne)Ee[Ne]=Oe[Ne].listener||Oe[Ne];return Ee}function Ce(Oe,Ee){return new Promise(function(Ne,_e){function Ze(Ue){Oe.removeListener(Ee,Pe),_e(Ue)}function Pe(){typeof Oe.removeListener=="function"&&Oe.removeListener("error",Ze),Ne([].slice.call(arguments))}Me(Oe,Ee,Pe,{once:!0}),Ee!=="error"&&je(Oe,Ze,{once:!0})})}function je(Oe,Ee,Ne){typeof Oe.on=="function"&&Me(Oe,"error",Ee,Ne)}function Me(Oe,Ee,Ne,_e){if(typeof Oe.on=="function")_e.once?Oe.once(Ee,Ne):Oe.on(Ee,Ne);else if(typeof Oe.addEventListener=="function")Oe.addEventListener(Ee,function Ze(Pe){_e.once&&Oe.removeEventListener(Ee,Ze),Ne(Pe)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Oe)}},{}],345:[function(x,De,ve){"use strict";var re=x("is-callable"),ne=Object.prototype.toString,ie=Object.prototype.hasOwnProperty,oe=function(ue,de,he){for(var we=0,Se=ue.length;we<Se;we++)ie.call(ue,we)&&(he==null?de(ue[we],we,ue):de.call(he,ue[we],we,ue))},se=function(ue,de,he){for(var we=0,Se=ue.length;we<Se;we++)he==null?de(ue.charAt(we),we,ue):de.call(he,ue.charAt(we),we,ue)},me=function(ue,de,he){for(var we in ue)ie.call(ue,we)&&(he==null?de(ue[we],we,ue):de.call(he,ue[we],we,ue))},te=function(ue,de,he){if(!re(de))throw new TypeError("iterator must be a function");var we;arguments.length>=3&&(we=he),ne.call(ue)==="[object Array]"?oe(ue,de,we):typeof ue=="string"?se(ue,de,we):me(ue,de,we)};De.exports=te},{"is-callable":367}],346:[function(x,De,ve){"use strict";var re="Function.prototype.bind called on incompatible ",ne=Array.prototype.slice,ie=Object.prototype.toString,oe="[object Function]";De.exports=function(me){var te=this;if(typeof te!="function"||ie.call(te)!==oe)throw new TypeError(re+te);for(var ae=ne.call(arguments,1),ue,de=function(){if(this instanceof ue){var ye=te.apply(this,ae.concat(ne.call(arguments)));return Object(ye)===ye?ye:this}else return te.apply(me,ae.concat(ne.call(arguments)))},he=Math.max(0,te.length-ae.length),we=[],Se=0;Se<he;Se++)we.push("$"+Se);if(ue=Function("binder","return function ("+we.join(",")+"){ return binder.apply(this,arguments); }")(de),te.prototype){var xe=function(){};xe.prototype=te.prototype,ue.prototype=new xe,xe.prototype=null}return ue}},{}],347:[function(x,De,ve){"use strict";var re=x("./implementation");De.exports=Function.prototype.bind||re},{"./implementation":346}],348:[function(x,De,ve){"use strict";var re,ne=SyntaxError,ie=Function,oe=TypeError,se=function(tt){try{return ie('"use strict"; return ('+tt+").constructor;")()}catch(at){}},me=Object.getOwnPropertyDescriptor;if(me)try{me({},"")}catch(tt){me=null}var te=function(){throw new oe},ae=me?function(){try{return arguments.callee,te}catch(tt){try{return me(arguments,"callee").get}catch(at){return te}}}():te,ue=x("has-symbols")(),de=x("has-proto")(),he=Object.getPrototypeOf||(de?function(tt){return tt.__proto__}:null),we={},Se=typeof Uint8Array=="undefined"||!he?re:he(Uint8Array),xe={"%AggregateError%":typeof AggregateError=="undefined"?re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?re:ArrayBuffer,"%ArrayIteratorPrototype%":ue&&he?he([][Symbol.iterator]()):re,"%AsyncFromSyncIteratorPrototype%":re,"%AsyncFunction%":we,"%AsyncGenerator%":we,"%AsyncGeneratorFunction%":we,"%AsyncIteratorPrototype%":we,"%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%":we,"%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%":ne,"%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 ye=he(he(tt));xe["%Error.prototype%"]=ye}var Ae=function tt(at){var lt;if(at==="%AsyncFunction%")lt=se("async function () {}");else if(at==="%GeneratorFunction%")lt=se("function* () {}");else if(at==="%AsyncGeneratorFunction%")lt=se("async function* () {}");else if(at==="%AsyncGenerator%"){var Ve=tt("%AsyncGeneratorFunction%");Ve&&(lt=Ve.prototype)}else if(at==="%AsyncIteratorPrototype%"){var Xe=tt("%AsyncGenerator%");Xe&&he&&(lt=he(Xe.prototype))}return xe[at]=lt,lt},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"),je=x("has"),Me=Ce.call(Function.call,Array.prototype.concat),Oe=Ce.call(Function.apply,Array.prototype.splice),Ee=Ce.call(Function.call,String.prototype.replace),Ne=Ce.call(Function.call,String.prototype.slice),_e=Ce.call(Function.call,RegExp.prototype.exec),Ze=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Pe=/\\(\\)?/g,Ue=function(at){var lt=Ne(at,0,1),Ve=Ne(at,-1);if(lt==="%"&&Ve!=="%")throw new ne("invalid intrinsic syntax, expected closing `%`");if(Ve==="%"&<!=="%")throw new ne("invalid intrinsic syntax, expected opening `%`");var Xe=[];return Ee(at,Ze,function(nt,ct,ot,et){Xe[Xe.length]=ot?Ee(et,Pe,"$1"):ct||nt}),Xe},Qe=function(at,lt){var Ve=at,Xe;if(je(Le,Ve)&&(Xe=Le[Ve],Ve="%"+Xe[0]+"%"),je(xe,Ve)){var nt=xe[Ve];if(nt===we&&(nt=Ae(Ve)),typeof nt=="undefined"&&!lt)throw new oe("intrinsic "+at+" exists, but is not available. Please file an issue!");return{alias:Xe,name:Ve,value:nt}}throw new ne("intrinsic "+at+" does not exist!")};De.exports=function(at,lt){if(typeof at!="string"||at.length===0)throw new oe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof lt!="boolean")throw new oe('"allowMissing" argument must be a boolean');if(_e(/^%?[^%]*%?$/,at)===null)throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ve=Ue(at),Xe=Ve.length>0?Ve[0]:"",nt=Qe("%"+Xe+"%",lt),ct=nt.name,ot=nt.value,et=!1,qe=nt.alias;qe&&(Xe=qe[0],Oe(Ve,Me([0,1],qe)));for(var it=1,yt=!0;it<Ve.length;it+=1){var pt=Ve[it],Dt=Ne(pt,0,1),At=Ne(pt,-1);if((Dt==='"'||Dt==="'"||Dt==="`"||At==='"'||At==="'"||At==="`")&&Dt!==At)throw new ne("property names with quotes must have matching quotes");if((pt==="constructor"||!yt)&&(et=!0),Xe+="."+pt,ct="%"+Xe+"%",je(xe,ct))ot=xe[ct];else if(ot!=null){if(!(pt in ot)){if(!lt)throw new oe("base intrinsic for "+at+" exists, but the property is not available.");return}if(me&&it+1>=Ve.length){var st=me(ot,pt);yt=!!st,yt&&"get"in st&&!("originalValue"in st.get)?ot=st.get:ot=ot[pt]}else yt=je(ot,pt),ot=ot[pt];yt&&!et&&(xe[ct]=ot)}}return ot}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(x,De,ve){"use strict";var re=x("get-intrinsic"),ne=re("%Object.getOwnPropertyDescriptor%",!0);if(ne)try{ne([],"length")}catch(ie){ne=null}De.exports=ne},{"get-intrinsic":348}],350:[function(x,De,ve){"use strict";var re={foo:{}},ne=Object;De.exports=function(){return{__proto__:re}.foo===re.foo&&!({__proto__:null}instanceof ne)}},{}],351:[function(x,De,ve){"use strict";var re=typeof Symbol!="undefined"&&Symbol,ne=x("./shams");De.exports=function(){return typeof re!="function"||typeof Symbol!="function"||typeof re("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ne()}},{"./shams":352}],352:[function(x,De,ve){"use strict";De.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var ne={},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;ne[ie]=se;for(ie in ne)return!1;if(typeof Object.keys=="function"&&Object.keys(ne).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(ne).length!==0)return!1;var me=Object.getOwnPropertySymbols(ne);if(me.length!==1||me[0]!==ie||!Object.prototype.propertyIsEnumerable.call(ne,ie))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var te=Object.getOwnPropertyDescriptor(ne,ie);if(te.value!==se||te.enumerable!==!0)return!1}return!0}},{}],353:[function(x,De,ve){"use strict";var re=x("has-symbols/shams");De.exports=function(){return re()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(x,De,ve){"use strict";var re=x("function-bind");De.exports=re.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(x,De,ve){var re=x("http"),ne=x("url"),ie=De.exports;for(var oe in re)re.hasOwnProperty(oe)&&(ie[oe]=re[oe]);ie.request=function(me,te){return me=se(me),re.request.call(this,me,te)},ie.get=function(me,te){return me=se(me),re.get.call(this,me,te)};function se(me){if(typeof me=="string"&&(me=ne.parse(me)),me.protocol||(me.protocol="https:"),me.protocol!=="https:")throw new Error('Protocol "'+me.protocol+'" not supported. Expected "https:"');return me}},{http:468,url:472}],356:[function(x,De,ve){"use strict";var re=x("util"),ne=x("ms");De.exports=function(ie){if(typeof ie=="number")return ie;var oe=ne(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,De,ve){ve.read=function(re,ne,ie,oe,se){var me,te,ae=se*8-oe-1,ue=(1<<ae)-1,de=ue>>1,he=-7,we=ie?se-1:0,Se=ie?-1:1,xe=re[ne+we];for(we+=Se,me=xe&(1<<-he)-1,xe>>=-he,he+=ae;he>0;me=me*256+re[ne+we],we+=Se,he-=8);for(te=me&(1<<-he)-1,me>>=-he,he+=oe;he>0;te=te*256+re[ne+we],we+=Se,he-=8);if(me===0)me=1-de;else{if(me===ue)return te?NaN:(xe?-1:1)*(1/0);te=te+Math.pow(2,oe),me=me-de}return(xe?-1:1)*te*Math.pow(2,me-oe)},ve.write=function(re,ne,ie,oe,se,me){var te,ae,ue,de=me*8-se-1,he=(1<<de)-1,we=he>>1,Se=se===23?Math.pow(2,-24)-Math.pow(2,-77):0,xe=oe?0:me-1,ye=oe?1:-1,Ae=ne<0||ne===0&&1/ne<0?1:0;for(ne=Math.abs(ne),isNaN(ne)||ne===1/0?(ae=isNaN(ne)?1:0,te=he):(te=Math.floor(Math.log(ne)/Math.LN2),ne*(ue=Math.pow(2,-te))<1&&(te--,ue*=2),te+we>=1?ne+=Se/ue:ne+=Se*Math.pow(2,1-we),ne*ue>=2&&(te++,ue/=2),te+we>=he?(ae=0,te=he):te+we>=1?(ae=(ne*ue-1)*Math.pow(2,se),te=te+we):(ae=ne*Math.pow(2,we-1)*Math.pow(2,se),te=0));se>=8;re[ie+xe]=ae&255,xe+=ye,ae/=256,se-=8);for(te=te<<se|ae,de+=se;de>0;re[ie+xe]=te&255,xe+=ye,te/=256,de-=8);re[ie+xe-ye]|=Ae*128}},{}],358:[function(x,De,ve){"use strict";var re=[x("./nextTick"),x("./queueMicrotask"),x("./mutation.js"),x("./messageChannel"),x("./stateChange"),x("./timeout")],ne,ie,oe=-1,se=[],me=!1;function te(){!ne||!ie||(ne=!1,ie.length?se=ie.concat(se):oe=-1,se.length&&ae())}function ae(){if(!ne){me=!1,ne=!0;for(var xe=se.length,ye=setTimeout(te);xe;){for(ie=se,se=[];ie&&++oe<xe;)ie[oe].run();oe=-1,xe=se.length}ie=null,oe=-1,ne=!1,clearTimeout(ye)}}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 we(xe,ye){this.fun=xe,this.array=ye}we.prototype.run=function(){var xe=this.fun,ye=this.array;switch(ye.length){case 0:return xe();case 1:return xe(ye[0]);case 2:return xe(ye[0],ye[1]);case 3:return xe(ye[0],ye[1],ye[2]);default:return xe.apply(null,ye)}},De.exports=Se;function Se(xe){var ye=new Array(arguments.length-1);if(arguments.length>1)for(var Ae=1;Ae<arguments.length;Ae++)ye[Ae-1]=arguments[Ae];se.push(new we(xe,ye)),!me&&!ne&&(me=!0,ue())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(x,De,ve){(function(re){(function(){"use strict";ve.test=function(){return re.setImmediate?!1:typeof re.MessageChannel!="undefined"},ve.install=function(ne){var ie=new re.MessageChannel;return ie.port1.onmessage=ne,function(){ie.port2.postMessage(0)}}}).call(this)}).call(this,typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(x,De,ve){(function(re){(function(){"use strict";var ne=re.MutationObserver||re.WebKitMutationObserver;ve.test=function(){return ne},ve.install=function(ie){var oe=0,se=new ne(ie),me=re.document.createTextNode("");return se.observe(me,{characterData:!0}),function(){me.data=oe=++oe%2}}}).call(this)}).call(this,typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(x,De,ve){(function(re){(function(){"use strict";ve.test=function(){return typeof re.queueMicrotask=="function"},ve.install=function(ne){return function(){re.queueMicrotask(ne)}}}).call(this)}).call(this,typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(x,De,ve){(function(re){(function(){"use strict";ve.test=function(){return"document"in re&&"onreadystatechange"in re.document.createElement("script")},ve.install=function(ne){return function(){var ie=re.document.createElement("script");return ie.onreadystatechange=function(){ne(),ie.onreadystatechange=null,ie.parentNode.removeChild(ie),ie=null},re.document.documentElement.appendChild(ie),ne}}}).call(this)}).call(this,typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(x,De,ve){"use strict";ve.test=function(){return!0},ve.install=function(re){return function(){setTimeout(re,0)}}},{}],364:[function(x,De,ve){typeof Object.create=="function"?De.exports=function(ne,ie){ie&&(ne.super_=ie,ne.prototype=Object.create(ie.prototype,{constructor:{value:ne,enumerable:!1,writable:!0,configurable:!0}}))}:De.exports=function(ne,ie){if(ie){ne.super_=ie;var oe=function(){};oe.prototype=ie.prototype,ne.prototype=new oe,ne.prototype.constructor=ne}}},{}],365:[function(x,De,ve){"use strict";var re=x("has-tostringtag/shams")(),ne=x("call-bind/callBound"),ie=ne("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]"},me=function(){return oe(arguments)}();oe.isLegacyArguments=se,De.exports=me?oe:se},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(x,De,ve){De.exports=function(ie){return ie!=null&&(re(ie)||ne(ie)||!!ie._isBuffer)};function re(ie){return!!ie.constructor&&typeof ie.constructor.isBuffer=="function"&&ie.constructor.isBuffer(ie)}function ne(ie){return typeof ie.readFloatLE=="function"&&typeof ie.slice=="function"&&re(ie.slice(0,0))}},{}],367:[function(x,De,ve){"use strict";var re=Function.prototype.toString,ne=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ie,oe;if(typeof ne=="function"&&typeof Object.defineProperty=="function")try{ie=Object.defineProperty({},"length",{get:function(){throw oe}}),oe={},ne(function(){throw 42},null,ie)}catch(je){je!==oe&&(ne=null)}else ne=null;var se=/^\s*class\b/,me=function(Me){try{var Oe=re.call(Me);return se.test(Oe)}catch(Ee){return!1}},te=function(Me){try{return me(Me)?!1:(re.call(Me),!0)}catch(Oe){return!1}},ae=Object.prototype.toString,ue="[object Object]",de="[object Function]",he="[object GeneratorFunction]",we="[object HTMLAllCollection]",Se="[object HTML document.all class]",xe="[object HTMLCollection]",ye=typeof Symbol=="function"&&!!Symbol.toStringTag,Ae=!(0 in[,]),Le=function(){return!1};if(typeof document=="object"){var Ce=document.all;ae.call(Ce)===ae.call(document.all)&&(Le=function(Me){if((Ae||!Me)&&(typeof Me=="undefined"||typeof Me=="object"))try{var Oe=ae.call(Me);return(Oe===we||Oe===Se||Oe===xe||Oe===ue)&&Me("")==null}catch(Ee){}return!1})}De.exports=ne?function(Me){if(Le(Me))return!0;if(!Me||typeof Me!="function"&&typeof Me!="object")return!1;try{ne(Me,null,ie)}catch(Oe){if(Oe!==oe)return!1}return!me(Me)&&te(Me)}:function(Me){if(Le(Me))return!0;if(!Me||typeof Me!="function"&&typeof Me!="object")return!1;if(ye)return te(Me);if(me(Me))return!1;var Oe=ae.call(Me);return Oe!==de&&Oe!==he&&!/^\[object HTML/.test(Oe)?!1:te(Me)}},{}],368:[function(x,De,ve){"use strict";var re=Object.prototype.toString,ne=Function.prototype.toString,ie=/^\s*(?:function)?\*/,oe=x("has-tostringtag/shams")(),se=Object.getPrototypeOf,me=function(){if(!oe)return!1;try{return Function("return function*() {}")()}catch(ae){}},te;De.exports=function(ue){if(typeof ue!="function")return!1;if(ie.test(ne.call(ue)))return!0;if(!oe){var de=re.call(ue);return de==="[object GeneratorFunction]"}if(!se)return!1;if(typeof te=="undefined"){var he=me();te=he?se(he):!1}return se(ue)===te}},{"has-tostringtag/shams":353}],369:[function(x,De,ve){"use strict";var re=x("which-typed-array");De.exports=function(ie){return!!re(ie)}},{"which-typed-array":420}],370:[function(x,De,ve){var re={}.toString;De.exports=Array.isArray||function(ne){return re.call(ne)=="[object Array]"}},{}],371:[function(x,De,ve){(function(re){(function(){(function(ne,ie){typeof ve=="object"&&typeof De!="undefined"?De.exports=ie(ne):typeof ke=="function"&&ke.amd?ke(ie):ie(ne)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof re!="undefined"?re:this,function(ne){"use strict";ne=ne||{};var ie=ne.Base64,oe="2.6.4",se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",me=function(at){for(var lt={},Ve=0,Xe=at.length;Ve<Xe;Ve++)lt[at.charAt(Ve)]=Ve;return lt}(se),te=String.fromCharCode,ae=function(at){if(at.length<2){var lt=at.charCodeAt(0);return lt<128?at:lt<2048?te(192|lt>>>6)+te(128|lt&63):te(224|lt>>>12&15)+te(128|lt>>>6&63)+te(128|lt&63)}else{var lt=65536+(at.charCodeAt(0)-55296)*1024+(at.charCodeAt(1)-56320);return te(240|lt>>>18&7)+te(128|lt>>>12&63)+te(128|lt>>>6&63)+te(128|lt&63)}},ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,de=function(at){return at.replace(ue,ae)},he=function(at){var lt=[0,2,1][at.length%3],Ve=at.charCodeAt(0)<<16|(at.length>1?at.charCodeAt(1):0)<<8|(at.length>2?at.charCodeAt(2):0),Xe=[se.charAt(Ve>>>18),se.charAt(Ve>>>12&63),lt>=2?"=":se.charAt(Ve>>>6&63),lt>=1?"=":se.charAt(Ve&63)];return Xe.join("")},we=ne.btoa&&typeof ne.btoa=="function"?function(at){return ne.btoa(at)}:function(at){if(at.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return at.replace(/[\s\S]{1,3}/g,he)},Se=function(at){return we(de(String(at)))},xe=function(at){return at.replace(/[+\/]/g,function(lt){return lt=="+"?"-":"_"}).replace(/=/g,"")},ye=function(at,lt){return lt?xe(Se(at)):Se(at)},Ae=function(at){return ye(at,!0)},Le;ne.Uint8Array&&(Le=function(at,lt){for(var Ve="",Xe=0,nt=at.length;Xe<nt;Xe+=3){var ct=at[Xe],ot=at[Xe+1],et=at[Xe+2],qe=ct<<16|ot<<8|et;Ve+=se.charAt(qe>>>18)+se.charAt(qe>>>12&63)+(typeof ot!="undefined"?se.charAt(qe>>>6&63):"=")+(typeof et!="undefined"?se.charAt(qe&63):"=")}return lt?xe(Ve):Ve});var Ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,je=function(at){switch(at.length){case 4:var lt=(7&at.charCodeAt(0))<<18|(63&at.charCodeAt(1))<<12|(63&at.charCodeAt(2))<<6|63&at.charCodeAt(3),Ve=lt-65536;return te((Ve>>>10)+55296)+te((Ve&1023)+56320);case 3:return te((15&at.charCodeAt(0))<<12|(63&at.charCodeAt(1))<<6|63&at.charCodeAt(2));default:return te((31&at.charCodeAt(0))<<6|63&at.charCodeAt(1))}},Me=function(at){return at.replace(Ce,je)},Oe=function(at){var lt=at.length,Ve=lt%4,Xe=(lt>0?me[at.charAt(0)]<<18:0)|(lt>1?me[at.charAt(1)]<<12:0)|(lt>2?me[at.charAt(2)]<<6:0)|(lt>3?me[at.charAt(3)]:0),nt=[te(Xe>>>16),te(Xe>>>8&255),te(Xe&255)];return nt.length-=[0,0,2,1][Ve],nt.join("")},Ee=ne.atob&&typeof ne.atob=="function"?function(at){return ne.atob(at)}:function(at){return at.replace(/\S{1,4}/g,Oe)},Ne=function(at){return Ee(String(at).replace(/[^A-Za-z0-9\+\/]/g,""))},_e=function(at){return Me(Ee(at))},Ze=function(at){return String(at).replace(/[-_]/g,function(lt){return lt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Pe=function(at){return _e(Ze(at))},Ue;ne.Uint8Array&&(Ue=function(at){return Uint8Array.from(Ne(Ze(at)),function(lt){return lt.charCodeAt(0)})});var Qe=function(){var at=ne.Base64;return ne.Base64=ie,at};if(ne.Base64={VERSION:oe,atob:Ne,btoa:we,fromBase64:Pe,toBase64:ye,utob:de,encode:ye,encodeURI:Ae,btou:Me,decode:Pe,noConflict:Qe,fromUint8Array:Le,toUint8Array:Ue},typeof Object.defineProperty=="function"){var tt=function(at){return{value:at,enumerable:!1,writable:!0,configurable:!0}};ne.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",tt(function(){return Pe(this)})),Object.defineProperty(String.prototype,"toBase64",tt(function(at){return ye(this,at)})),Object.defineProperty(String.prototype,"toBase64URI",tt(function(){return ye(this,!0)}))}}return ne.Meteor&&(Base64=ne.Base64),typeof De!="undefined"&&De.exports?De.exports.Base64=ne.Base64:typeof ke=="function"&&ke.amd&&ke([],function(){return ne.Base64}),{Base64:ne.Base64}})}).call(this)}).call(this,typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(x,De,ve){"use strict";De.exports=ne;var re=Object.prototype.hasOwnProperty;function ne(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(te){if(!(!se&&re.call(ie,te))){var ae=Object.getOwnPropertyDescriptor(oe,te);Object.defineProperty(ie,te,ae)}}),ie}},{}],373:[function(x,De,ve){"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 ne=0;ne<arguments.length;ne++)this.define(arguments[ne]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}re.prototype.define=function(ne,ie){for(var oe in ne){var se=ne[oe].map(function(ue){return ue.toLowerCase()});oe=oe.toLowerCase();for(var me=0;me<se.length;me++){var te=se[me];if(te[0]!=="*"){if(!ie&&te in this._types)throw new Error('Attempt to change mapping for "'+te+'" extension from "'+this._types[te]+'" to "'+oe+'". Pass `force=true` to allow this, otherwise remove "'+te+'" from the list of extensions for "'+oe+'".');this._types[te]=oe}}if(ie||!this._extensions[oe]){var ae=se[0];this._extensions[oe]=ae[0]!=="*"?ae:ae.substr(1)}}},re.prototype.getType=function(ne){ne=String(ne);var ie=ne.replace(/^.*[/\\]/,"").toLowerCase(),oe=ie.replace(/^.*\./,"").toLowerCase(),se=ie.length<ne.length,me=oe.length<ie.length-1;return(me||!se)&&this._types[oe]||null},re.prototype.getExtension=function(ne){return ne=/^\s*([^;\s]*)/.test(ne)&&RegExp.$1,ne&&this._extensions[ne.toLowerCase()]||null},De.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,De,ve){"use strict";var re=x("./Mime");De.exports=new re(x("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(x,De,ve){"use strict";De.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,De,ve){var re=1e3,ne=re*60,ie=ne*60,oe=ie*24,se=oe*7,me=oe*365.25;De.exports=function(he,we){we=we||{};var Se=typeof he;if(Se==="string"&&he.length>0)return te(he);if(Se==="number"&&isFinite(he))return we.long?ue(he):ae(he);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(he))};function te(he){if(he=String(he),!(he.length>100)){var we=/^(-?(?:\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(we){var Se=parseFloat(we[1]),xe=(we[2]||"ms").toLowerCase();switch(xe){case"years":case"year":case"yrs":case"yr":case"y":return Se*me;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*ne;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 we=Math.abs(he);return we>=oe?Math.round(he/oe)+"d":we>=ie?Math.round(he/ie)+"h":we>=ne?Math.round(he/ne)+"m":we>=re?Math.round(he/re)+"s":he+"ms"}function ue(he){var we=Math.abs(he);return we>=oe?de(he,we,oe,"day"):we>=ie?de(he,we,ie,"hour"):we>=ne?de(he,we,ne,"minute"):we>=re?de(he,we,re,"second"):he+" ms"}function de(he,we,Se,xe){var ye=we>=Se*1.5;return Math.round(he/Se)+" "+xe+(ye?"s":"")}},{}],377:[function(x,De,ve){"use strict";var re=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;function oe(me){if(me==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(me)}function se(){try{if(!Object.assign)return!1;var me=new String("abc");if(me[5]="de",Object.getOwnPropertyNames(me)[0]==="5")return!1;for(var te={},ae=0;ae<10;ae++)te["_"+String.fromCharCode(ae)]=ae;var ue=Object.getOwnPropertyNames(te).map(function(he){return te[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}}De.exports=se()?Object.assign:function(me,te){for(var ae,ue=oe(me),de,he=1;he<arguments.length;he++){ae=Object(arguments[he]);for(var we in ae)ne.call(ae,we)&&(ue[we]=ae[we]);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,De,ve){(function(re){(function(){"use strict";function ne(me){if(typeof me!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(me))}function ie(me,te){for(var ae="",ue=0,de=-1,he=0,we,Se=0;Se<=me.length;++Se){if(Se<me.length)we=me.charCodeAt(Se);else{if(we===47)break;we=47}if(we===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 xe=ae.lastIndexOf("/");if(xe!==ae.length-1){xe===-1?(ae="",ue=0):(ae=ae.slice(0,xe),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}}te&&(ae.length>0?ae+="/..":ae="..",ue=2)}else ae.length>0?ae+="/"+me.slice(de+1,Se):ae=me.slice(de+1,Se),ue=Se-de-1;de=Se,he=0}else we===46&&he!==-1?++he:he=-1}return ae}function oe(me,te){var ae=te.dir||te.root,ue=te.base||(te.name||"")+(te.ext||"");return ae?ae===te.root?ae+ue:ae+me+ue:ue}var se={resolve:function(){for(var te="",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),ne(he),he.length!==0&&(te=he+"/"+te,ae=he.charCodeAt(0)===47)}return te=ie(te,!ae),ae?te.length>0?"/"+te:"/":te.length>0?te:"."},normalize:function(te){if(ne(te),te.length===0)return".";var ae=te.charCodeAt(0)===47,ue=te.charCodeAt(te.length-1)===47;return te=ie(te,!ae),te.length===0&&!ae&&(te="."),te.length>0&&ue&&(te+="/"),ae?"/"+te:te},isAbsolute:function(te){return ne(te),te.length>0&&te.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var te,ae=0;ae<arguments.length;++ae){var ue=arguments[ae];ne(ue),ue.length>0&&(te===void 0?te=ue:te+="/"+ue)}return te===void 0?".":se.normalize(te)},relative:function(te,ae){if(ne(te),ne(ae),te===ae||(te=se.resolve(te),ae=se.resolve(ae),te===ae))return"";for(var ue=1;ue<te.length&&te.charCodeAt(ue)===47;++ue);for(var de=te.length,he=de-ue,we=1;we<ae.length&&ae.charCodeAt(we)===47;++we);for(var Se=ae.length,xe=Se-we,ye=he<xe?he:xe,Ae=-1,Le=0;Le<=ye;++Le){if(Le===ye){if(xe>ye){if(ae.charCodeAt(we+Le)===47)return ae.slice(we+Le+1);if(Le===0)return ae.slice(we+Le)}else he>ye&&(te.charCodeAt(ue+Le)===47?Ae=Le:Le===0&&(Ae=0));break}var Ce=te.charCodeAt(ue+Le),je=ae.charCodeAt(we+Le);if(Ce!==je)break;Ce===47&&(Ae=Le)}var Me="";for(Le=ue+Ae+1;Le<=de;++Le)(Le===de||te.charCodeAt(Le)===47)&&(Me.length===0?Me+="..":Me+="/..");return Me.length>0?Me+ae.slice(we+Ae):(we+=Ae,ae.charCodeAt(we)===47&&++we,ae.slice(we))},_makeLong:function(te){return te},dirname:function(te){if(ne(te),te.length===0)return".";for(var ae=te.charCodeAt(0),ue=ae===47,de=-1,he=!0,we=te.length-1;we>=1;--we)if(ae=te.charCodeAt(we),ae===47){if(!he){de=we;break}}else he=!1;return de===-1?ue?"/":".":ue&&de===1?"//":te.slice(0,de)},basename:function(te,ae){if(ae!==void 0&&typeof ae!="string")throw new TypeError('"ext" argument must be a string');ne(te);var ue=0,de=-1,he=!0,we;if(ae!==void 0&&ae.length>0&&ae.length<=te.length){if(ae.length===te.length&&ae===te)return"";var Se=ae.length-1,xe=-1;for(we=te.length-1;we>=0;--we){var ye=te.charCodeAt(we);if(ye===47){if(!he){ue=we+1;break}}else xe===-1&&(he=!1,xe=we+1),Se>=0&&(ye===ae.charCodeAt(Se)?--Se===-1&&(de=we):(Se=-1,de=xe))}return ue===de?de=xe:de===-1&&(de=te.length),te.slice(ue,de)}else{for(we=te.length-1;we>=0;--we)if(te.charCodeAt(we)===47){if(!he){ue=we+1;break}}else de===-1&&(he=!1,de=we+1);return de===-1?"":te.slice(ue,de)}},extname:function(te){ne(te);for(var ae=-1,ue=0,de=-1,he=!0,we=0,Se=te.length-1;Se>=0;--Se){var xe=te.charCodeAt(Se);if(xe===47){if(!he){ue=Se+1;break}continue}de===-1&&(he=!1,de=Se+1),xe===46?ae===-1?ae=Se:we!==1&&(we=1):ae!==-1&&(we=-1)}return ae===-1||de===-1||we===0||we===1&&ae===de-1&&ae===ue+1?"":te.slice(ae,de)},format:function(te){if(te===null||typeof te!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof te);return oe("/",te)},parse:function(te){ne(te);var ae={root:"",dir:"",base:"",ext:"",name:""};if(te.length===0)return ae;var ue=te.charCodeAt(0),de=ue===47,he;de?(ae.root="/",he=1):he=0;for(var we=-1,Se=0,xe=-1,ye=!0,Ae=te.length-1,Le=0;Ae>=he;--Ae){if(ue=te.charCodeAt(Ae),ue===47){if(!ye){Se=Ae+1;break}continue}xe===-1&&(ye=!1,xe=Ae+1),ue===46?we===-1?we=Ae:Le!==1&&(Le=1):we!==-1&&(Le=-1)}return we===-1||xe===-1||Le===0||Le===1&&we===xe-1&&we===Se+1?xe!==-1&&(Se===0&&de?ae.base=ae.name=te.slice(1,xe):ae.base=ae.name=te.slice(Se,xe)):(Se===0&&de?(ae.name=te.slice(1,we),ae.base=te.slice(1,xe)):(ae.name=te.slice(Se,we),ae.base=te.slice(Se,xe)),ae.ext=te.slice(we,xe)),Se>0?ae.dir=te.slice(0,Se-1):de&&(ae.dir="/"),ae},sep:"/",delimiter:":",win32:null,posix:null};se.posix=se,De.exports=se}).call(this)}).call(this,x("_process"))},{_process:467}],379:[function(x,De,ve){(function(re){(function(){(function(){"use strict";var ne={function:!0,object:!0},ie=ne[typeof window]&&window||this,oe=ie,se=ne[typeof ve]&&ve,me=ne[typeof De]&&De&&!De.nodeType&&De,te=se&&me&&typeof re=="object"&&re;te&&(te.global===te||te.window===te||te.self===te)&&(ie=te);var ae=Math.pow(2,53)-1,ue=/\bOpera/,de=this,he=Object.prototype,we=he.hasOwnProperty,Se=he.toString;function xe(Pe){return Pe=String(Pe),Pe.charAt(0).toUpperCase()+Pe.slice(1)}function ye(Pe,Ue,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 Ue&&Qe&&/^Win/i.test(Pe)&&!/^Windows Phone /i.test(Pe)&&(tt=tt[/[\d.]+$/.exec(Pe)])&&(Pe="Windows "+tt),Pe=String(Pe),Ue&&Qe&&(Pe=Pe.replace(RegExp(Ue,"i"),Qe)),Pe=Le(Pe.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]),Pe}function Ae(Pe,Ue){var Qe=-1,tt=Pe?Pe.length:0;if(typeof tt=="number"&&tt>-1&&tt<=ae)for(;++Qe<tt;)Ue(Pe[Qe],Qe,Pe);else Ce(Pe,Ue)}function Le(Pe){return Pe=Ne(Pe),/^(?:webOS|i(?:OS|P))/.test(Pe)?Pe:xe(Pe)}function Ce(Pe,Ue){for(var Qe in Pe)we.call(Pe,Qe)&&Ue(Pe[Qe],Qe,Pe)}function je(Pe){return Pe==null?xe(Pe):Se.call(Pe).slice(8,-1)}function Me(Pe,Ue){var Qe=Pe!=null?typeof Pe[Ue]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Qe)&&(Qe=="object"?!!Pe[Ue]:!0)}function Oe(Pe){return String(Pe).replace(/([ -])(?!$)/g,"$1?")}function Ee(Pe,Ue){var Qe=null;return Ae(Pe,function(tt,at){Qe=Ue(Qe,tt,at,Pe)}),Qe}function Ne(Pe){return String(Pe).replace(/^ +| +$/g,"")}function _e(Pe){var Ue=ie,Qe=Pe&&typeof Pe=="object"&&je(Pe)!="String";Qe&&(Ue=Pe,Pe=null);var tt=Ue.navigator||{},at=tt.userAgent||"";Pe||(Pe=at);var lt=Qe||de==oe,Ve=Qe?!!tt.likeChrome:/\bChrome\b/.test(Pe)&&!/internal|\n/i.test(Se.toString()),Xe="Object",nt=Qe?Xe:"ScriptBridgingProxyObject",ct=Qe?Xe:"Environment",ot=Qe&&Ue.java?"JavaPackage":je(Ue.java),et=Qe?Xe:"RuntimeObject",qe=/\bJava/.test(ot)&&Ue.java,it=qe&&je(Ue.environment)==ct,yt=qe?"a":"\u03B1",pt=qe?"b":"\u03B2",Dt=Ue.document||{},At=Ue.operamini||Ue.opera,st=ue.test(st=Qe&&At?At["[[Class]]"]:je(At))?st:At=null,Ge,We=Pe,le=[],fe=null,ze=Pe==at,He=ze&&At&&typeof At.version=="function"&&At.version(),pe,Ie=bt([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Ke=It(["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"]),Ye=kt([{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"]),Je=vt({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}}),dt=Vt(["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(St,Nt){return St||RegExp("\\b"+(Nt.pattern||Oe(Nt))+"\\b","i").exec(Pe)&&(Nt.label||Nt)})}function vt(ft){return Ee(ft,function(St,Nt,Ft){return St||(Nt[Ye]||Nt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ye)]||RegExp("\\b"+Oe(Ft)+"(?:\\b|\\w*\\d)","i").exec(Pe))&&Ft})}function It(ft){return Ee(ft,function(St,Nt){return St||RegExp("\\b"+(Nt.pattern||Oe(Nt))+"\\b","i").exec(Pe)&&(Nt.label||Nt)})}function Vt(ft){return Ee(ft,function(St,Nt){var Ft=Nt.pattern||Oe(Nt);return!St&&(St=RegExp("\\b"+Ft+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Pe))&&(St=ye(St,Ft,Nt.label||Nt)),St})}function kt(ft){return Ee(ft,function(St,Nt){var Ft=Nt.pattern||Oe(Nt);return!St&&(St=RegExp("\\b"+Ft+" *\\d+[.\\w_]*","i").exec(Pe)||RegExp("\\b"+Ft+" *\\w+-[\\w]*","i").exec(Pe)||RegExp("\\b"+Ft+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Pe))&&((St=String(Nt.label&&!RegExp(Ft,"i").test(Nt.label)?Nt.label:St).split("/"))[1]&&!/[\d.]+/.test(St[0])&&(St[0]+=" "+St[1]),Nt=Nt.label||Nt,St=Le(St[0].replace(RegExp(Ft,"i"),Nt).replace(RegExp("; *(?:"+Nt+"[_-])?","i")," ").replace(RegExp("("+Nt+")[-_.]?(\\w)","i"),"$1 $2"))),St})}function jt(ft){return Ee(ft,function(St,Nt){return St||(RegExp(Nt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Pe)||0)[1]||null})}function _t(){return this.description||""}if(Ie&&(Ie=[Ie]),/\bAndroid\b/.test(dt)&&!Ye&&(Ge=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Pe))&&(Ye=Ne(Ge[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Je&&!Ye?Ye=kt([Je]):Je&&Ye&&(Ye=Ye.replace(RegExp("^("+Oe(Je)+")[-_.\\s]","i"),Je+" ").replace(RegExp("^("+Oe(Je)+")[-_.]?(\\w)","i"),Je+" $2")),(Ge=/\bGoogle TV\b/.exec(Ye))&&(Ye=Ge[0]),/\bSimulator\b/i.test(Pe)&&(Ye=(Ye?Ye+" ":"")+"Simulator"),Ke=="Opera Mini"&&/\bOPiOS\b/.test(Pe)&&le.push("running in Turbo/Uncompressed mode"),Ke=="IE"&&/\blike iPhone OS\b/.test(Pe)?(Ge=_e(Pe.replace(/like iPhone OS/,"")),Je=Ge.manufacturer,Ye=Ge.product):/^iP/.test(Ye)?(Ke||(Ke="Safari"),dt="iOS"+((Ge=/ OS ([\d_]+)/i.exec(Pe))?" "+Ge[1].replace(/_/g,"."):"")):Ke=="Konqueror"&&/^Linux\b/i.test(dt)?dt="Kubuntu":Je&&Je!="Google"&&(/Chrome/.test(Ke)&&!/\bMobile Safari\b/i.test(Pe)||/\bVita\b/.test(Ye))||/\bAndroid\b/.test(dt)&&/^Chrome/.test(Ke)&&/\bVersion\//i.test(Pe)?(Ke="Android Browser",dt=/\bAndroid\b/.test(dt)?dt:"Android"):Ke=="Silk"?(/\bMobi/i.test(Pe)||(dt="Android",le.unshift("desktop mode")),/Accelerated *= *true/i.test(Pe)&&le.unshift("accelerated")):Ke=="UC Browser"&&/\bUCWEB\b/.test(Pe)?le.push("speed mode"):Ke=="PaleMoon"&&(Ge=/\bFirefox\/([\d.]+)\b/.exec(Pe))?le.push("identifying as Firefox "+Ge[1]):Ke=="Firefox"&&(Ge=/\b(Mobile|Tablet|TV)\b/i.exec(Pe))?(dt||(dt="Firefox OS"),Ye||(Ye=Ge[1])):!Ke||(Ge=!/\bMinefield\b/i.test(Pe)&&/\b(?:Firefox|Safari)\b/.exec(Ke))?(Ke&&!Ye&&/[\/,]|^[^(]+?\)/.test(Pe.slice(Pe.indexOf(Ge+"/")+8))&&(Ke=null),(Ge=Ye||Je||dt)&&(Ye||Je||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(dt))&&(Ke=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(dt)?dt:Ge)+" Browser")):Ke=="Electron"&&(Ge=(/\bChrome\/([\d.]+)\b/.exec(Pe)||0)[1])&&le.push("Chromium "+Ge),He||(He=jt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",Oe(Ke),"(?:Firefox|Minefield|NetFront)"])),(Ge=Ie=="iCab"&&parseFloat(He)>3&&"WebKit"||/\bOpera\b/.test(Ke)&&(/\bOPR\b/.test(Pe)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Pe)&&!/^(?:Trident|EdgeHTML)$/.test(Ie)&&"WebKit"||!Ie&&/\bMSIE\b/i.test(Pe)&&(dt=="Mac OS"?"Tasman":"Trident")||Ie=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Ke)&&"NetFront")&&(Ie=[Ge]),Ke=="IE"&&(Ge=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Pe)||0)[1])?(Ke+=" Mobile",dt="Windows Phone "+(/\+$/.test(Ge)?Ge:Ge+".x"),le.unshift("desktop mode")):/\bWPDesktop\b/i.test(Pe)?(Ke="IE Mobile",dt="Windows Phone 8.x",le.unshift("desktop mode"),He||(He=(/\brv:([\d.]+)/.exec(Pe)||0)[1])):Ke!="IE"&&Ie=="Trident"&&(Ge=/\brv:([\d.]+)/.exec(Pe))&&(Ke&&le.push("identifying as "+Ke+(He?" "+He:"")),Ke="IE",He=Ge[1]),ze){if(Me(Ue,"global"))if(qe&&(Ge=qe.lang.System,We=Ge.getProperty("os.arch"),dt=dt||Ge.getProperty("os.name")+" "+Ge.getProperty("os.version")),it){try{He=Ue.require("ringo/engine").version.join("."),Ke="RingoJS"}catch(ft){(Ge=Ue.system)&&Ge.global.system==Ue.system&&(Ke="Narwhal",dt||(dt=Ge[0].os||null))}Ke||(Ke="Rhino")}else typeof Ue.process=="object"&&!Ue.process.browser&&(Ge=Ue.process)&&(typeof Ge.versions=="object"&&(typeof Ge.versions.electron=="string"?(le.push("Node "+Ge.versions.node),Ke="Electron",He=Ge.versions.electron):typeof Ge.versions.nw=="string"&&(le.push("Chromium "+He,"Node "+Ge.versions.node),Ke="NW.js",He=Ge.versions.nw)),Ke||(Ke="Node.js",We=Ge.arch,dt=Ge.platform,He=/[\d.]+/.exec(Ge.version),He=He?He[0]:null));else je(Ge=Ue.runtime)==nt?(Ke="Adobe AIR",dt=Ge.flash.system.Capabilities.os):je(Ge=Ue.phantom)==et?(Ke="PhantomJS",He=(Ge=Ge.version||null)&&Ge.major+"."+Ge.minor+"."+Ge.patch):typeof Dt.documentMode=="number"&&(Ge=/\bTrident\/(\d+)/i.exec(Pe))?(He=[He,Dt.documentMode],(Ge=+Ge[1]+4)!=He[1]&&(le.push("IE "+He[1]+" mode"),Ie&&(Ie[1]=""),He[1]=Ge),He=Ke=="IE"?String(He[1].toFixed(1)):He[0]):typeof Dt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Ke)&&(le.push("masking as "+Ke+" "+He),Ke="IE",He="11.0",Ie=["Trident"],dt="Windows");dt=dt&&Le(dt)}if(He&&(Ge=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(He)||/(?:alpha|beta)(?: ?\d)?/i.exec(Pe+";"+(ze&&tt.appMinorVersion))||/\bMinefield\b/i.test(Pe)&&"a")&&(fe=/b/i.test(Ge)?"beta":"alpha",He=He.replace(RegExp(Ge+"\\+?$"),"")+(fe=="beta"?pt:yt)+(/\d+\+?/.exec(Ge)||"")),Ke=="Fennec"||Ke=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(dt))Ke="Firefox Mobile";else if(Ke=="Maxthon"&&He)He=He.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ye))Ye=="Xbox 360"&&(dt=null),Ye=="Xbox 360"&&/\bIEMobile\b/.test(Pe)&&le.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Ke)||Ke&&!Ye&&!/Browser|Mobi/.test(Ke))&&(dt=="Windows CE"||/Mobi/i.test(Pe)))Ke+=" Mobile";else if(Ke=="IE"&&ze)try{Ue.external===null&&le.unshift("platform preview")}catch(ft){le.unshift("embedded")}else(/\bBlackBerry\b/.test(Ye)||/\bBB10\b/.test(Pe))&&(Ge=(RegExp(Ye.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Pe)||0)[1]||He)?(Ge=[Ge,/BB10/.test(Pe)],dt=(Ge[1]?(Ye=null,Je="BlackBerry"):"Device Software")+" "+Ge[0],He=null):this!=Ce&&Ye!="Wii"&&(ze&&At||/Opera/.test(Ke)&&/\b(?:MSIE|Firefox)\b/i.test(Pe)||Ke=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(dt)||Ke=="IE"&&(dt&&!/^Win/.test(dt)&&He>5.5||/\bWindows XP\b/.test(dt)&&He>8||He==8&&!/\bTrident\b/.test(Pe)))&&!ue.test(Ge=_e.call(Ce,Pe.replace(ue,"")+";"))&&Ge.name&&(Ge="ing as "+Ge.name+((Ge=Ge.version)?" "+Ge:""),ue.test(Ke)?(/\bIE\b/.test(Ge)&&dt=="Mac OS"&&(dt=null),Ge="identify"+Ge):(Ge="mask"+Ge,st?Ke=Le(st.replace(/([a-z])([A-Z])/g,"$1 $2")):Ke="Opera",/\bIE\b/.test(Ge)&&(dt=null),ze||(He=null)),Ie=["Presto"],le.push(Ge));(Ge=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Pe)||0)[1])&&(Ge=[parseFloat(Ge.replace(/\.(\d)$/,".0$1")),Ge],Ke=="Safari"&&Ge[1].slice(-1)=="+"?(Ke="WebKit Nightly",fe="alpha",He=Ge[1].slice(0,-1)):(He==Ge[1]||He==(Ge[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Pe)||0)[1]))&&(He=null),Ge[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Pe)||0)[1],Ge[0]==537.36&&Ge[2]==537.36&&parseFloat(Ge[1])>=28&&Ie=="WebKit"&&(Ie=["Blink"]),!ze||!Ve&&!Ge[1]?(Ie&&(Ie[1]="like Safari"),Ge=(Ge=Ge[0],Ge<400?1:Ge<500?2:Ge<526?3:Ge<533?4:Ge<534?"4+":Ge<535?5:Ge<537?6:Ge<538?7:Ge<601?8:Ge<602?9:Ge<604?10:Ge<606?11:Ge<608?12:"12")):(Ie&&(Ie[1]="like Chrome"),Ge=Ge[1]||(Ge=Ge[0],Ge<530?1:Ge<532?2:Ge<532.05?3:Ge<533?4:Ge<534.03?5:Ge<534.07?6:Ge<534.1?7:Ge<534.13?8:Ge<534.16?9:Ge<534.24?10:Ge<534.3?11:Ge<535.01?12:Ge<535.02?"13+":Ge<535.07?15:Ge<535.11?16:Ge<535.19?17:Ge<536.05?18:Ge<536.1?19:Ge<537.01?20:Ge<537.11?"21+":Ge<537.13?23:Ge<537.18?24:Ge<537.24?25:Ge<537.36?26:Ie!="Blink"?"27":"28")),Ie&&(Ie[1]+=" "+(Ge+=typeof Ge=="number"?".x":/[.+]/.test(Ge)?"":"+")),Ke=="Safari"&&(!He||parseInt(He)>45)?He=Ge:Ke=="Chrome"&&/\bHeadlessChrome/i.test(Pe)&&le.unshift("headless")),Ke=="Opera"&&(Ge=/\bzbov|zvav$/.exec(dt))?(Ke+=" ",le.unshift("desktop mode"),Ge=="zvav"?(Ke+="Mini",He=null):Ke+="Mobile",dt=dt.replace(RegExp(" *"+Ge+"$"),"")):Ke=="Safari"&&/\bChrome\b/.exec(Ie&&Ie[1])?(le.unshift("desktop mode"),Ke="Chrome Mobile",He=null,/\bOS X\b/.test(dt)?(Je="Apple",dt="iOS 4.3+"):dt=null):/\bSRWare Iron\b/.test(Ke)&&!He&&(He=jt("Chrome")),He&&He.indexOf(Ge=/[\d.]+$/.exec(dt))==0&&Pe.indexOf("/"+Ge+"-")>-1&&(dt=Ne(dt.replace(Ge,""))),dt&&dt.indexOf(Ke)!=-1&&!RegExp(Ke+" OS").test(dt)&&(dt=dt.replace(RegExp(" *"+Oe(Ke)+" *"),"")),Ie&&!/\b(?:Avant|Nook)\b/.test(Ke)&&(/Browser|Lunascape|Maxthon/.test(Ke)||Ke!="Safari"&&/^iOS/.test(dt)&&/\bSafari\b/.test(Ie[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Ke)&&Ie[1])&&(Ge=Ie[Ie.length-1])&&le.push(Ge),le.length&&(le=["("+le.join("; ")+")"]),Je&&Ye&&Ye.indexOf(Je)<0&&le.push("on "+Je),Ye&&le.push((/^on /.test(le[le.length-1])?"":"on ")+Ye),dt&&(Ge=/ ([\d.+]+)$/.exec(dt),pe=Ge&&dt.charAt(dt.length-Ge[0].length-1)=="/",dt={architecture:32,family:Ge&&!pe?dt.replace(Ge[0],""):dt,version:Ge?Ge[1]:null,toString:function(){var ft=this.version;return this.family+(ft&&!pe?" "+ft:"")+(this.architecture==64?" 64-bit":"")}}),(Ge=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(We))&&!/\bi686\b/i.test(We)?(dt&&(dt.architecture=64,dt.family=dt.family.replace(RegExp(" *"+Ge),"")),Ke&&(/\bWOW64\b/i.test(Pe)||ze&&/\w(?:86|32)$/.test(tt.cpuClass||tt.platform)&&!/\bWin64; x64\b/i.test(Pe))&&le.unshift("32-bit")):dt&&/^OS X/.test(dt.family)&&Ke=="Chrome"&&parseFloat(He)>=39&&(dt.architecture=64),Pe||(Pe=null);var Mt={};return Mt.description=Pe,Mt.layout=Ie&&Ie[0],Mt.manufacturer=Je,Mt.name=Ke,Mt.prerelease=fe,Mt.product=Ye,Mt.ua=Pe,Mt.version=Ke&&He,Mt.os=dt||{architecture:null,family:null,version:null,toString:function(){return"null"}},Mt.parse=_e,Mt.toString=_t,Mt.version&&le.unshift(He),Mt.name&&le.unshift(Ke),dt&&Ke&&!(dt==String(dt).split(" ")[0]&&(dt==Ke.split(" ")[0]||Ye))&&le.push(Ye?"("+dt+")":"on "+dt),le.length&&(Mt.description=le.join(" ")),Mt}var Ze=_e();typeof ke=="function"&&typeof ke.amd=="object"&&ke.amd?(ie.platform=Ze,ke(function(){return Ze})):se&&me?Ce(Ze,function(Pe,Ue){se[Ue]=Pe}):ie.platform=Ze}).call(this)}).call(this)}).call(this,typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(x,De,ve){(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?De.exports={nextTick:ne}:De.exports=re;function ne(ie,oe,se,me){if(typeof ie!="function")throw new TypeError('"callback" argument must be a function');var te=arguments.length,ae,ue;switch(te){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,me)});default:for(ae=new Array(te-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,De,ve){var re=De.exports={},ne,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"?ne=setTimeout:ne=oe}catch(Ae){ne=oe}try{typeof clearTimeout=="function"?ie=clearTimeout:ie=se}catch(Ae){ie=se}})();function me(Ae){if(ne===setTimeout)return setTimeout(Ae,0);if((ne===oe||!ne)&&setTimeout)return ne=setTimeout,setTimeout(Ae,0);try{return ne(Ae,0)}catch(Le){try{return ne.call(null,Ae,0)}catch(Ce){return ne.call(this,Ae,0)}}}function te(Ae){if(ie===clearTimeout)return clearTimeout(Ae);if((ie===se||!ie)&&clearTimeout)return ie=clearTimeout,clearTimeout(Ae);try{return ie(Ae)}catch(Le){try{return ie.call(null,Ae)}catch(Ce){return ie.call(this,Ae)}}}var ae=[],ue=!1,de,he=-1;function we(){!ue||!de||(ue=!1,de.length?ae=de.concat(ae):he=-1,ae.length&&Se())}function Se(){if(!ue){var Ae=me(we);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,te(Ae)}}re.nextTick=function(Ae){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 xe(Ae,Le)),ae.length===1&&!ue&&me(Se)};function xe(Ae,Le){this.fun=Ae,this.array=Le}xe.prototype.run=function(){this.fun.apply(null,this.array)},re.title="browser",re.browser=!0,re.env={},re.argv=[],re.version="",re.versions={};function ye(){}re.on=ye,re.addListener=ye,re.once=ye,re.off=ye,re.removeListener=ye,re.removeAllListeners=ye,re.emit=ye,re.prependListener=ye,re.prependOnceListener=ye,re.listeners=function(Ae){return[]},re.binding=function(Ae){throw new Error("process.binding is not supported")},re.cwd=function(){return"/"},re.chdir=function(Ae){throw new Error("process.chdir is not supported")},re.umask=function(){return 0}},{}],382:[function(x,De,ve){(function(re){(function(){(function(ne){var ie=typeof ve=="object"&&ve&&!ve.nodeType&&ve,oe=typeof De=="object"&&De&&!De.nodeType&&De,se=typeof re=="object"&&re;(se.global===se||se.window===se||se.self===se)&&(ne=se);var me,te=2147483647,ae=36,ue=1,de=26,he=38,we=700,Se=72,xe=128,ye="-",Ae=/^xn--/,Le=/[^\x20-\x7E]/,Ce=/[\x2E\u3002\uFF0E\uFF61]/g,je={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Me=ae-ue,Oe=Math.floor,Ee=String.fromCharCode,Ne;function _e(ot){throw new RangeError(je[ot])}function Ze(ot,et){for(var qe=ot.length,it=[];qe--;)it[qe]=et(ot[qe]);return it}function Pe(ot,et){var qe=ot.split("@"),it="";qe.length>1&&(it=qe[0]+"@",ot=qe[1]),ot=ot.replace(Ce,".");var yt=ot.split("."),pt=Ze(yt,et).join(".");return it+pt}function Ue(ot){for(var et=[],qe=0,it=ot.length,yt,pt;qe<it;)yt=ot.charCodeAt(qe++),yt>=55296&&yt<=56319&&qe<it?(pt=ot.charCodeAt(qe++),(pt&64512)==56320?et.push(((yt&1023)<<10)+(pt&1023)+65536):(et.push(yt),qe--)):et.push(yt);return et}function Qe(ot){return Ze(ot,function(et){var qe="";return et>65535&&(et-=65536,qe+=Ee(et>>>10&1023|55296),et=56320|et&1023),qe+=Ee(et),qe}).join("")}function tt(ot){return ot-48<10?ot-22:ot-65<26?ot-65:ot-97<26?ot-97:ae}function at(ot,et){return ot+22+75*(ot<26)-((et!=0)<<5)}function lt(ot,et,qe){var it=0;for(ot=qe?Oe(ot/we):ot>>1,ot+=Oe(ot/et);ot>Me*de>>1;it+=ae)ot=Oe(ot/Me);return Oe(it+(Me+1)*ot/(ot+he))}function Ve(ot){var et=[],qe=ot.length,it,yt=0,pt=xe,Dt=Se,At,st,Ge,We,le,fe,ze,He,pe;for(At=ot.lastIndexOf(ye),At<0&&(At=0),st=0;st<At;++st)ot.charCodeAt(st)>=128&&_e("not-basic"),et.push(ot.charCodeAt(st));for(Ge=At>0?At+1:0;Ge<qe;){for(We=yt,le=1,fe=ae;Ge>=qe&&_e("invalid-input"),ze=tt(ot.charCodeAt(Ge++)),(ze>=ae||ze>Oe((te-yt)/le))&&_e("overflow"),yt+=ze*le,He=fe<=Dt?ue:fe>=Dt+de?de:fe-Dt,!(ze<He);fe+=ae)pe=ae-He,le>Oe(te/pe)&&_e("overflow"),le*=pe;it=et.length+1,Dt=lt(yt-We,it,We==0),Oe(yt/it)>te-pt&&_e("overflow"),pt+=Oe(yt/it),yt%=it,et.splice(yt++,0,pt)}return Qe(et)}function Xe(ot){var et,qe,it,yt,pt,Dt,At,st,Ge,We,le,fe=[],ze,He,pe,Ie;for(ot=Ue(ot),ze=ot.length,et=xe,qe=0,pt=Se,Dt=0;Dt<ze;++Dt)le=ot[Dt],le<128&&fe.push(Ee(le));for(it=yt=fe.length,yt&&fe.push(ye);it<ze;){for(At=te,Dt=0;Dt<ze;++Dt)le=ot[Dt],le>=et&&le<At&&(At=le);for(He=it+1,At-et>Oe((te-qe)/He)&&_e("overflow"),qe+=(At-et)*He,et=At,Dt=0;Dt<ze;++Dt)if(le=ot[Dt],le<et&&++qe>te&&_e("overflow"),le==et){for(st=qe,Ge=ae;We=Ge<=pt?ue:Ge>=pt+de?de:Ge-pt,!(st<We);Ge+=ae)Ie=st-We,pe=ae-We,fe.push(Ee(at(We+Ie%pe,0))),st=Oe(Ie/pe);fe.push(Ee(at(st,0))),pt=lt(qe,He,it==yt),qe=0,++it}++qe,++et}return fe.join("")}function nt(ot){return Pe(ot,function(et){return Ae.test(et)?Ve(et.slice(4).toLowerCase()):et})}function ct(ot){return Pe(ot,function(et){return Le.test(et)?"xn--"+Xe(et):et})}if(me={version:"1.4.1",ucs2:{decode:Ue,encode:Qe},decode:Ve,encode:Xe,toASCII:ct,toUnicode:nt},typeof ke=="function"&&typeof ke.amd=="object"&&ke.amd)ke("punycode",function(){return me});else if(ie&&oe)if(De.exports==ie)oe.exports=me;else for(Ne in me)me.hasOwnProperty(Ne)&&(ie[Ne]=me[Ne]);else ne.punycode=me})(this)}).call(this)}).call(this,typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(x,De,ve){"use strict";function re(ie,oe){return Object.prototype.hasOwnProperty.call(ie,oe)}De.exports=function(ie,oe,se,me){oe=oe||"&",se=se||"=";var te={};if(typeof ie!="string"||ie.length===0)return te;var ae=/\+/g;ie=ie.split(oe);var ue=1e3;me&&typeof me.maxKeys=="number"&&(ue=me.maxKeys);var de=ie.length;ue>0&&de>ue&&(de=ue);for(var he=0;he<de;++he){var we=ie[he].replace(ae,"%20"),Se=we.indexOf(se),xe,ye,Ae,Le;Se>=0?(xe=we.substr(0,Se),ye=we.substr(Se+1)):(xe=we,ye=""),Ae=decodeURIComponent(xe),Le=decodeURIComponent(ye),re(te,Ae)?ne(te[Ae])?te[Ae].push(Le):te[Ae]=[te[Ae],Le]:te[Ae]=Le}return te};var ne=Array.isArray||function(ie){return Object.prototype.toString.call(ie)==="[object Array]"}},{}],384:[function(x,De,ve){"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""}};De.exports=function(se,me,te,ae){return me=me||"&",te=te||"=",se===null&&(se=void 0),typeof se=="object"?ie(oe(se),function(ue){var de=encodeURIComponent(re(ue))+te;return ne(se[ue])?ie(se[ue],function(he){return de+encodeURIComponent(re(he))}).join(me):de+encodeURIComponent(re(se[ue]))}).join(me):ae?encodeURIComponent(re(ae))+te+encodeURIComponent(re(se)):""};var ne=Array.isArray||function(se){return Object.prototype.toString.call(se)==="[object Array]"};function ie(se,me){if(se.map)return se.map(me);for(var te=[],ae=0;ae<se.length;ae++)te.push(me(se[ae],ae));return te}var oe=Object.keys||function(se){var me=[];for(var te in se)Object.prototype.hasOwnProperty.call(se,te)&&me.push(te);return me}},{}],385:[function(x,De,ve){"use strict";ve.decode=ve.parse=x("./decode"),ve.encode=ve.stringify=x("./encode")},{"./decode":383,"./encode":384}],386:[function(x,De,ve){"use strict";var re=x("process-nextick-args"),ne=Object.keys||function(we){var Se=[];for(var xe in we)Se.push(xe);return Se};De.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 me=ne(se.prototype),te=0;te<me.length;te++){var ae=me[te];ue.prototype[ae]||(ue.prototype[ae]=se.prototype[ae])}function ue(we){if(!(this instanceof ue))return new ue(we);oe.call(this,we),se.call(this,we),we&&we.readable===!1&&(this.readable=!1),we&&we.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,we&&we.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(we){we.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(we){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=we,this._writableState.destroyed=we)}}),ue.prototype._destroy=function(we,Se){this.push(null),this.end(),re.nextTick(Se,we)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(x,De,ve){"use strict";De.exports=ie;var re=x("./_stream_transform"),ne=Object.create(x("core-util-is"));ne.inherits=x("inherits"),ne.inherits(ie,re);function ie(oe){if(!(this instanceof ie))return new ie(oe);re.call(this,oe)}ie.prototype._transform=function(oe,se,me){me(null,oe)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(x,De,ve){(function(re,ne){(function(){"use strict";var ie=x("process-nextick-args");De.exports=Ee;var oe=x("isarray"),se;Ee.ReadableState=Oe;var me=x("events").EventEmitter,te=function(le,fe){return le.listeners(fe).length},ae=x("./internal/streams/stream"),ue=x("safe-buffer").Buffer,de=ne.Uint8Array||function(){};function he(le){return ue.from(le)}function we(le){return ue.isBuffer(le)||le instanceof de}var Se=Object.create(x("core-util-is"));Se.inherits=x("inherits");var xe=x("util"),ye=void 0;xe&&xe.debuglog?ye=xe.debuglog("stream"):ye=function(){};var Ae=x("./internal/streams/BufferList"),Le=x("./internal/streams/destroy"),Ce;Se.inherits(Ee,ae);var je=["error","close","destroy","pause","resume"];function Me(le,fe,ze){if(typeof le.prependListener=="function")return le.prependListener(fe,ze);!le._events||!le._events[fe]?le.on(fe,ze):oe(le._events[fe])?le._events[fe].unshift(ze):le._events[fe]=[ze,le._events[fe]]}function Oe(le,fe){se=se||x("./_stream_duplex"),le=le||{};var ze=fe instanceof se;this.objectMode=!!le.objectMode,ze&&(this.objectMode=this.objectMode||!!le.readableObjectMode);var He=le.highWaterMark,pe=le.readableHighWaterMark,Ie=this.objectMode?16:16*1024;He||He===0?this.highWaterMark=He:ze&&(pe||pe===0)?this.highWaterMark=pe:this.highWaterMark=Ie,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Ae,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 Oe(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 ze=this._readableState,He;return ze.objectMode?He=!0:typeof le=="string"&&(fe=fe||ze.defaultEncoding,fe!==ze.encoding&&(le=ue.from(le,fe),fe=""),He=!0),Ne(this,le,fe,!1,He)},Ee.prototype.unshift=function(le){return Ne(this,le,null,!0,!1)};function Ne(le,fe,ze,He,pe){var Ie=le._readableState;if(fe===null)Ie.reading=!1,at(le,Ie);else{var Ke;pe||(Ke=Ze(Ie,fe)),Ke?le.emit("error",Ke):Ie.objectMode||fe&&fe.length>0?(typeof fe!="string"&&!Ie.objectMode&&Object.getPrototypeOf(fe)!==ue.prototype&&(fe=he(fe)),He?Ie.endEmitted?le.emit("error",new Error("stream.unshift() after end event")):_e(le,Ie,fe,!0):Ie.ended?le.emit("error",new Error("stream.push() after EOF")):(Ie.reading=!1,Ie.decoder&&!ze?(fe=Ie.decoder.write(fe),Ie.objectMode||fe.length!==0?_e(le,Ie,fe,!1):Xe(le,Ie)):_e(le,Ie,fe,!1))):He||(Ie.reading=!1)}return Pe(Ie)}function _e(le,fe,ze,He){fe.flowing&&fe.length===0&&!fe.sync?(le.emit("data",ze),le.read(0)):(fe.length+=fe.objectMode?1:ze.length,He?fe.buffer.unshift(ze):fe.buffer.push(ze),fe.needReadable&<(le)),Xe(le,fe)}function Ze(le,fe){var ze;return!we(fe)&&typeof fe!="string"&&fe!==void 0&&!le.objectMode&&(ze=new TypeError("Invalid non-string/buffer chunk")),ze}function Pe(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 Ue=8388608;function Qe(le){return le>=Ue?le=Ue:(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){ye("read",le),le=parseInt(le,10);var fe=this._readableState,ze=le;if(le!==0&&(fe.emittedReadable=!1),le===0&&fe.needReadable&&(fe.length>=fe.highWaterMark||fe.ended))return ye("read: emitReadable",fe.length,fe.ended),fe.length===0&&fe.ended?st(this):lt(this),null;if(le=tt(le,fe),le===0&&fe.ended)return fe.length===0&&st(this),null;var He=fe.needReadable;ye("need readable",He),(fe.length===0||fe.length-le<fe.highWaterMark)&&(He=!0,ye("length less than watermark",He)),fe.ended||fe.reading?(He=!1,ye("reading or ended",He)):He&&(ye("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(ze,fe)));var pe;return le>0?pe=yt(le,fe):pe=null,pe===null?(fe.needReadable=!0,le=0):fe.length-=le,fe.length===0&&(fe.ended||(fe.needReadable=!0),ze!==le&&fe.ended&&st(this)),pe!==null&&this.emit("data",pe),pe};function at(le,fe){if(!fe.ended){if(fe.decoder){var ze=fe.decoder.end();ze&&ze.length&&(fe.buffer.push(ze),fe.length+=fe.objectMode?1:ze.length)}fe.ended=!0,lt(le)}}function lt(le){var fe=le._readableState;fe.needReadable=!1,fe.emittedReadable||(ye("emitReadable",fe.flowing),fe.emittedReadable=!0,fe.sync?ie.nextTick(Ve,le):Ve(le))}function Ve(le){ye("emit readable"),le.emit("readable"),it(le)}function Xe(le,fe){fe.readingMore||(fe.readingMore=!0,ie.nextTick(nt,le,fe))}function nt(le,fe){for(var ze=fe.length;!fe.reading&&!fe.flowing&&!fe.ended&&fe.length<fe.highWaterMark&&(ye("maybeReadMore read 0"),le.read(0),ze!==fe.length);)ze=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 ze=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,ye("pipe count=%d opts=%j",He.pipesCount,fe);var pe=(!fe||fe.end!==!1)&&le!==re.stdout&&le!==re.stderr,Ie=pe?Ye:_t;He.endEmitted?ie.nextTick(Ie):ze.once("end",Ie),le.on("unpipe",Ke);function Ke(Mt,ft){ye("onunpipe"),Mt===ze&&ft&&ft.hasUnpiped===!1&&(ft.hasUnpiped=!0,bt())}function Ye(){ye("onend"),le.end()}var Je=ct(ze);le.on("drain",Je);var dt=!1;function bt(){ye("cleanup"),le.removeListener("close",kt),le.removeListener("finish",jt),le.removeListener("drain",Je),le.removeListener("error",Vt),le.removeListener("unpipe",Ke),ze.removeListener("end",Ye),ze.removeListener("end",_t),ze.removeListener("data",It),dt=!0,He.awaitDrain&&(!le._writableState||le._writableState.needDrain)&&Je()}var vt=!1;ze.on("data",It);function It(Mt){ye("ondata"),vt=!1;var ft=le.write(Mt);ft===!1&&!vt&&((He.pipesCount===1&&He.pipes===le||He.pipesCount>1&&We(He.pipes,le)!==-1)&&!dt&&(ye("false write response, pause",ze._readableState.awaitDrain),ze._readableState.awaitDrain++,vt=!0),ze.pause())}function Vt(Mt){ye("onerror",Mt),_t(),le.removeListener("error",Vt),te(le,"error")===0&&le.emit("error",Mt)}Me(le,"error",Vt);function kt(){le.removeListener("finish",jt),_t()}le.once("close",kt);function jt(){ye("onfinish"),le.removeListener("close",kt),_t()}le.once("finish",jt);function _t(){ye("unpipe"),ze.unpipe(le)}return le.emit("pipe",ze),He.flowing||(ye("pipe resume"),ze.resume()),le};function ct(le){return function(){var fe=le._readableState;ye("pipeOnDrain",fe.awaitDrain),fe.awaitDrain&&fe.awaitDrain--,fe.awaitDrain===0&&te(le,"data")&&(fe.flowing=!0,it(le))}}Ee.prototype.unpipe=function(le){var fe=this._readableState,ze={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,ze),this);if(!le){var He=fe.pipes,pe=fe.pipesCount;fe.pipes=null,fe.pipesCount=0,fe.flowing=!1;for(var Ie=0;Ie<pe;Ie++)He[Ie].emit("unpipe",this,ze);return this}var Ke=We(fe.pipes,le);return Ke===-1?this:(fe.pipes.splice(Ke,1),fe.pipesCount-=1,fe.pipesCount===1&&(fe.pipes=fe.pipes[0]),le.emit("unpipe",this,ze),this)},Ee.prototype.on=function(le,fe){var ze=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&<(this):ie.nextTick(ot,this))}return ze},Ee.prototype.addListener=Ee.prototype.on;function ot(le){ye("readable nexttick read 0"),le.read(0)}Ee.prototype.resume=function(){var le=this._readableState;return le.flowing||(ye("resume"),le.flowing=!0,et(this,le)),this};function et(le,fe){fe.resumeScheduled||(fe.resumeScheduled=!0,ie.nextTick(qe,le,fe))}function qe(le,fe){fe.reading||(ye("resume read 0"),le.read(0)),fe.resumeScheduled=!1,fe.awaitDrain=0,le.emit("resume"),it(le),fe.flowing&&!fe.reading&&le.read(0)}Ee.prototype.pause=function(){return ye("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ye("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function it(le){var fe=le._readableState;for(ye("flow",fe.flowing);fe.flowing&&le.read()!==null;);}Ee.prototype.wrap=function(le){var fe=this,ze=this._readableState,He=!1;le.on("end",function(){if(ye("wrapped end"),ze.decoder&&!ze.ended){var Ke=ze.decoder.end();Ke&&Ke.length&&fe.push(Ke)}fe.push(null)}),le.on("data",function(Ke){if(ye("wrapped data"),ze.decoder&&(Ke=ze.decoder.write(Ke)),!(ze.objectMode&&Ke==null)&&!(!ze.objectMode&&(!Ke||!Ke.length))){var Ye=fe.push(Ke);Ye||(He=!0,le.pause())}});for(var pe in le)this[pe]===void 0&&typeof le[pe]=="function"&&(this[pe]=function(Ke){return function(){return le[Ke].apply(le,arguments)}}(pe));for(var Ie=0;Ie<je.length;Ie++)le.on(je[Ie],this.emit.bind(this,je[Ie]));return this._read=function(Ke){ye("wrapped _read",Ke),He&&(He=!1,le.resume())},this},Object.defineProperty(Ee.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ee._fromList=yt;function yt(le,fe){if(fe.length===0)return null;var ze;return fe.objectMode?ze=fe.buffer.shift():!le||le>=fe.length?(fe.decoder?ze=fe.buffer.join(""):fe.buffer.length===1?ze=fe.buffer.head.data:ze=fe.buffer.concat(fe.length),fe.buffer.clear()):ze=pt(le,fe.buffer,fe.decoder),ze}function pt(le,fe,ze){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=ze?Dt(le,fe):At(le,fe),He}function Dt(le,fe){var ze=fe.head,He=1,pe=ze.data;for(le-=pe.length;ze=ze.next;){var Ie=ze.data,Ke=le>Ie.length?Ie.length:le;if(Ke===Ie.length?pe+=Ie:pe+=Ie.slice(0,le),le-=Ke,le===0){Ke===Ie.length?(++He,ze.next?fe.head=ze.next:fe.head=fe.tail=null):(fe.head=ze,ze.data=Ie.slice(Ke));break}++He}return fe.length-=He,pe}function At(le,fe){var ze=ue.allocUnsafe(le),He=fe.head,pe=1;for(He.data.copy(ze),le-=He.data.length;He=He.next;){var Ie=He.data,Ke=le>Ie.length?Ie.length:le;if(Ie.copy(ze,ze.length-le,0,Ke),le-=Ke,le===0){Ke===Ie.length?(++pe,He.next?fe.head=He.next:fe.head=fe.tail=null):(fe.head=He,He.data=Ie.slice(Ke));break}++pe}return fe.length-=pe,ze}function st(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(Ge,fe,le))}function Ge(le,fe){!le.endEmitted&&le.length===0&&(le.endEmitted=!0,fe.readable=!1,fe.emit("end"))}function We(le,fe){for(var ze=0,He=le.length;ze<He;ze++)if(le[ze]===fe)return ze;return-1}}).call(this)}).call(this,x("_process"),typeof Ht!="undefined"?Ht: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,De,ve){"use strict";De.exports=oe;var re=x("./_stream_duplex"),ne=Object.create(x("core-util-is"));ne.inherits=x("inherits"),ne.inherits(oe,re);function ie(te,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(te);var he=this._readableState;he.reading=!1,(he.needReadable||he.length<he.highWaterMark)&&this._read(he.highWaterMark)}function oe(te){if(!(this instanceof oe))return new oe(te);re.call(this,te),this._transformState={afterTransform:ie.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,te&&(typeof te.transform=="function"&&(this._transform=te.transform),typeof te.flush=="function"&&(this._flush=te.flush)),this.on("prefinish",se)}function se(){var te=this;typeof this._flush=="function"?this._flush(function(ae,ue){me(te,ae,ue)}):me(this,null,null)}oe.prototype.push=function(te,ae){return this._transformState.needTransform=!1,re.prototype.push.call(this,te,ae)},oe.prototype._transform=function(te,ae,ue){throw new Error("_transform() is not implemented")},oe.prototype._write=function(te,ae,ue){var de=this._transformState;if(de.writecb=ue,de.writechunk=te,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(te){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(te,ae){var ue=this;re.prototype._destroy.call(this,te,function(de){ae(de),ue.emit("close")})};function me(te,ae,ue){if(ae)return te.emit("error",ae);if(ue!=null&&te.push(ue),te._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(te._transformState.transforming)throw new Error("Calling transform done when still transforming");return te.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(x,De,ve){(function(re,ne,ie){(function(){"use strict";var oe=x("process-nextick-args");De.exports=Me;function se(qe,it,yt){this.chunk=qe,this.encoding=it,this.callback=yt,this.next=null}function me(qe){var it=this;this.next=null,this.entry=null,this.finish=function(){et(it,qe)}}var te=!re.browser&&["v0.10","v0.9."].indexOf(re.version.slice(0,5))>-1?ie:oe.nextTick,ae;Me.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"),we=x("safe-buffer").Buffer,Se=ne.Uint8Array||function(){};function xe(qe){return we.from(qe)}function ye(qe){return we.isBuffer(qe)||qe instanceof Se}var Ae=x("./internal/streams/destroy");ue.inherits(Me,he);function Le(){}function Ce(qe,it){ae=ae||x("./_stream_duplex"),qe=qe||{};var yt=it instanceof ae;this.objectMode=!!qe.objectMode,yt&&(this.objectMode=this.objectMode||!!qe.writableObjectMode);var pt=qe.highWaterMark,Dt=qe.writableHighWaterMark,At=this.objectMode?16:16*1024;pt||pt===0?this.highWaterMark=pt:yt&&(Dt||Dt===0)?this.highWaterMark=Dt:this.highWaterMark=At,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 st=qe.decodeStrings===!1;this.decodeStrings=!st,this.defaultEncoding=qe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ge){Qe(it,Ge)},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 me(this)}Ce.prototype.getBuffer=function(){for(var it=this.bufferedRequest,yt=[];it;)yt.push(it),it=it.next;return yt},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 je;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(je=Function.prototype[Symbol.hasInstance],Object.defineProperty(Me,Symbol.hasInstance,{value:function(qe){return je.call(this,qe)?!0:this!==Me?!1:qe&&qe._writableState instanceof Ce}})):je=function(qe){return qe instanceof this};function Me(qe){if(ae=ae||x("./_stream_duplex"),!je.call(Me,this)&&!(this instanceof ae))return new Me(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)}Me.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Oe(qe,it){var yt=new Error("write after end");qe.emit("error",yt),oe.nextTick(it,yt)}function Ee(qe,it,yt,pt){var Dt=!0,At=!1;return yt===null?At=new TypeError("May not write null values to stream"):typeof yt!="string"&&yt!==void 0&&!it.objectMode&&(At=new TypeError("Invalid non-string/buffer chunk")),At&&(qe.emit("error",At),oe.nextTick(pt,At),Dt=!1),Dt}Me.prototype.write=function(qe,it,yt){var pt=this._writableState,Dt=!1,At=!pt.objectMode&&ye(qe);return At&&!we.isBuffer(qe)&&(qe=xe(qe)),typeof it=="function"&&(yt=it,it=null),At?it="buffer":it||(it=pt.defaultEncoding),typeof yt!="function"&&(yt=Le),pt.ended?Oe(this,yt):(At||Ee(this,pt,qe,yt))&&(pt.pendingcb++,Dt=_e(this,pt,At,qe,it,yt)),Dt},Me.prototype.cork=function(){var qe=this._writableState;qe.corked++},Me.prototype.uncork=function(){var qe=this._writableState;qe.corked&&(qe.corked--,!qe.writing&&!qe.corked&&!qe.finished&&!qe.bufferProcessing&&qe.bufferedRequest&<(this,qe))},Me.prototype.setDefaultEncoding=function(it){if(typeof it=="string"&&(it=it.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((it+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+it);return this._writableState.defaultEncoding=it,this};function Ne(qe,it,yt){return!qe.objectMode&&qe.decodeStrings!==!1&&typeof it=="string"&&(it=we.from(it,yt)),it}Object.defineProperty(Me.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _e(qe,it,yt,pt,Dt,At){if(!yt){var st=Ne(it,pt,Dt);pt!==st&&(yt=!0,Dt="buffer",pt=st)}var Ge=it.objectMode?1:pt.length;it.length+=Ge;var We=it.length<it.highWaterMark;if(We||(it.needDrain=!0),it.writing||it.corked){var le=it.lastBufferedRequest;it.lastBufferedRequest={chunk:pt,encoding:Dt,isBuf:yt,callback:At,next:null},le?le.next=it.lastBufferedRequest:it.bufferedRequest=it.lastBufferedRequest,it.bufferedRequestCount+=1}else Ze(qe,it,!1,Ge,pt,Dt,At);return We}function Ze(qe,it,yt,pt,Dt,At,st){it.writelen=pt,it.writecb=st,it.writing=!0,it.sync=!0,yt?qe._writev(Dt,it.onwrite):qe._write(Dt,At,it.onwrite),it.sync=!1}function Pe(qe,it,yt,pt,Dt){--it.pendingcb,yt?(oe.nextTick(Dt,pt),oe.nextTick(ct,qe,it),qe._writableState.errorEmitted=!0,qe.emit("error",pt)):(Dt(pt),qe._writableState.errorEmitted=!0,qe.emit("error",pt),ct(qe,it))}function Ue(qe){qe.writing=!1,qe.writecb=null,qe.length-=qe.writelen,qe.writelen=0}function Qe(qe,it){var yt=qe._writableState,pt=yt.sync,Dt=yt.writecb;if(Ue(yt),it)Pe(qe,yt,pt,it,Dt);else{var At=Ve(yt);!At&&!yt.corked&&!yt.bufferProcessing&&yt.bufferedRequest&<(qe,yt),pt?te(tt,qe,yt,At,Dt):tt(qe,yt,At,Dt)}}function tt(qe,it,yt,pt){yt||at(qe,it),it.pendingcb--,pt(),ct(qe,it)}function at(qe,it){it.length===0&&it.needDrain&&(it.needDrain=!1,qe.emit("drain"))}function lt(qe,it){it.bufferProcessing=!0;var yt=it.bufferedRequest;if(qe._writev&&yt&&yt.next){var pt=it.bufferedRequestCount,Dt=new Array(pt),At=it.corkedRequestsFree;At.entry=yt;for(var st=0,Ge=!0;yt;)Dt[st]=yt,yt.isBuf||(Ge=!1),yt=yt.next,st+=1;Dt.allBuffers=Ge,Ze(qe,it,!0,it.length,Dt,"",At.finish),it.pendingcb++,it.lastBufferedRequest=null,At.next?(it.corkedRequestsFree=At.next,At.next=null):it.corkedRequestsFree=new me(it),it.bufferedRequestCount=0}else{for(;yt;){var We=yt.chunk,le=yt.encoding,fe=yt.callback,ze=it.objectMode?1:We.length;if(Ze(qe,it,!1,ze,We,le,fe),yt=yt.next,it.bufferedRequestCount--,it.writing)break}yt===null&&(it.lastBufferedRequest=null)}it.bufferedRequest=yt,it.bufferProcessing=!1}Me.prototype._write=function(qe,it,yt){yt(new Error("_write() is not implemented"))},Me.prototype._writev=null,Me.prototype.end=function(qe,it,yt){var pt=this._writableState;typeof qe=="function"?(yt=qe,qe=null,it=null):typeof it=="function"&&(yt=it,it=null),qe!=null&&this.write(qe,it),pt.corked&&(pt.corked=1,this.uncork()),!pt.ending&&!pt.finished&&ot(this,pt,yt)};function Ve(qe){return qe.ending&&qe.length===0&&qe.bufferedRequest===null&&!qe.finished&&!qe.writing}function Xe(qe,it){qe._final(function(yt){it.pendingcb--,yt&&qe.emit("error",yt),it.prefinished=!0,qe.emit("prefinish"),ct(qe,it)})}function nt(qe,it){!it.prefinished&&!it.finalCalled&&(typeof qe._final=="function"?(it.pendingcb++,it.finalCalled=!0,oe.nextTick(Xe,qe,it)):(it.prefinished=!0,qe.emit("prefinish")))}function ct(qe,it){var yt=Ve(it);return yt&&(nt(qe,it),it.pendingcb===0&&(it.finished=!0,qe.emit("finish"))),yt}function ot(qe,it,yt){it.ending=!0,ct(qe,it),yt&&(it.finished?oe.nextTick(yt):qe.once("finish",yt)),it.ended=!0,qe.writable=!1}function et(qe,it,yt){var pt=qe.entry;for(qe.entry=null;pt;){var Dt=pt.callback;it.pendingcb--,Dt(yt),pt=pt.next}it.corkedRequestsFree?it.corkedRequestsFree.next=qe:it.corkedRequestsFree=qe}Object.defineProperty(Me.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(qe){this._writableState&&(this._writableState.destroyed=qe)}}),Me.prototype.destroy=Ae.destroy,Me.prototype._undestroy=Ae.undestroy,Me.prototype._destroy=function(qe,it){this.end(),it(qe)}}).call(this)}).call(this,x("_process"),typeof Ht!="undefined"?Ht: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,De,ve){"use strict";function re(se,me){if(!(se instanceof me))throw new TypeError("Cannot call a class as a function")}var ne=x("safe-buffer").Buffer,ie=x("util");function oe(se,me,te){se.copy(me,te)}De.exports=function(){function se(){re(this,se),this.head=null,this.tail=null,this.length=0}return se.prototype.push=function(te){var ae={data:te,next:null};this.length>0?this.tail.next=ae:this.head=ae,this.tail=ae,++this.length},se.prototype.unshift=function(te){var ae={data:te,next:this.head};this.length===0&&(this.tail=ae),this.head=ae,++this.length},se.prototype.shift=function(){if(this.length!==0){var te=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,te}},se.prototype.clear=function(){this.head=this.tail=null,this.length=0},se.prototype.join=function(te){if(this.length===0)return"";for(var ae=this.head,ue=""+ae.data;ae=ae.next;)ue+=te+ae.data;return ue},se.prototype.concat=function(te){if(this.length===0)return ne.alloc(0);if(this.length===1)return this.head.data;for(var ae=ne.allocUnsafe(te>>>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&&(De.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,De,ve){"use strict";var re=x("process-nextick-args");function ne(se,me){var te=this,ae=this._readableState&&this._readableState.destroyed,ue=this._writableState&&this._writableState.destroyed;return ae||ue?(me?me(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){!me&&de?(re.nextTick(oe,te,de),te._writableState&&(te._writableState.errorEmitted=!0)):me&&me(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,me){se.emit("error",me)}De.exports={destroy:ne,undestroy:ie}},{"process-nextick-args":380}],393:[function(x,De,ve){De.exports=x("events").EventEmitter},{events:344}],394:[function(x,De,ve){ve=De.exports=x("./lib/_stream_readable.js"),ve.Stream=ve,ve.Readable=ve,ve.Writable=x("./lib/_stream_writable.js"),ve.Duplex=x("./lib/_stream_duplex.js"),ve.Transform=x("./lib/_stream_transform.js"),ve.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,De,ve){var re=function(ne){"use strict";var ie=Object.prototype,oe=ie.hasOwnProperty,se,me=typeof Symbol=="function"?Symbol:{},te=me.iterator||"@@iterator",ae=me.asyncIterator||"@@asyncIterator",ue=me.toStringTag||"@@toStringTag";function de(nt,ct,ot){return Object.defineProperty(nt,ct,{value:ot,enumerable:!0,configurable:!0,writable:!0}),nt[ct]}try{de({},"")}catch(nt){de=function(ct,ot,et){return ct[ot]=et}}function he(nt,ct,ot,et){var qe=ct&&ct.prototype instanceof Ce?ct:Ce,it=Object.create(qe.prototype),yt=new lt(et||[]);return it._invoke=Ue(nt,ot,yt),it}ne.wrap=he;function we(nt,ct,ot){try{return{type:"normal",arg:nt.call(ct,ot)}}catch(et){return{type:"throw",arg:et}}}var Se="suspendedStart",xe="suspendedYield",ye="executing",Ae="completed",Le={};function Ce(){}function je(){}function Me(){}var Oe={};de(Oe,te,function(){return this});var Ee=Object.getPrototypeOf,Ne=Ee&&Ee(Ee(Ve([])));Ne&&Ne!==ie&&oe.call(Ne,te)&&(Oe=Ne);var _e=Me.prototype=Ce.prototype=Object.create(Oe);je.prototype=Me,de(_e,"constructor",Me),de(Me,"constructor",je),je.displayName=de(Me,ue,"GeneratorFunction");function Ze(nt){["next","throw","return"].forEach(function(ct){de(nt,ct,function(ot){return this._invoke(ct,ot)})})}ne.isGeneratorFunction=function(nt){var ct=typeof nt=="function"&&nt.constructor;return ct?ct===je||(ct.displayName||ct.name)==="GeneratorFunction":!1},ne.mark=function(nt){return Object.setPrototypeOf?Object.setPrototypeOf(nt,Me):(nt.__proto__=Me,de(nt,ue,"GeneratorFunction")),nt.prototype=Object.create(_e),nt},ne.awrap=function(nt){return{__await:nt}};function Pe(nt,ct){function ot(it,yt,pt,Dt){var At=we(nt[it],nt,yt);if(At.type==="throw")Dt(At.arg);else{var st=At.arg,Ge=st.value;return Ge&&typeof Ge=="object"&&oe.call(Ge,"__await")?ct.resolve(Ge.__await).then(function(We){ot("next",We,pt,Dt)},function(We){ot("throw",We,pt,Dt)}):ct.resolve(Ge).then(function(We){st.value=We,pt(st)},function(We){return ot("throw",We,pt,Dt)})}}var et;function qe(it,yt){function pt(){return new ct(function(Dt,At){ot(it,yt,Dt,At)})}return et=et?et.then(pt,pt):pt()}this._invoke=qe}Ze(Pe.prototype),de(Pe.prototype,ae,function(){return this}),ne.AsyncIterator=Pe,ne.async=function(nt,ct,ot,et,qe){qe===void 0&&(qe=Promise);var it=new Pe(he(nt,ct,ot,et),qe);return ne.isGeneratorFunction(ct)?it:it.next().then(function(yt){return yt.done?yt.value:it.next()})};function Ue(nt,ct,ot){var et=Se;return function(it,yt){if(et===ye)throw new Error("Generator is already running");if(et===Ae){if(it==="throw")throw yt;return Xe()}for(ot.method=it,ot.arg=yt;;){var pt=ot.delegate;if(pt){var Dt=Qe(pt,ot);if(Dt){if(Dt===Le)continue;return Dt}}if(ot.method==="next")ot.sent=ot._sent=ot.arg;else if(ot.method==="throw"){if(et===Se)throw et=Ae,ot.arg;ot.dispatchException(ot.arg)}else ot.method==="return"&&ot.abrupt("return",ot.arg);et=ye;var At=we(nt,ct,ot);if(At.type==="normal"){if(et=ot.done?Ae:xe,At.arg===Le)continue;return{value:At.arg,done:ot.done}}else At.type==="throw"&&(et=Ae,ot.method="throw",ot.arg=At.arg)}}}function Qe(nt,ct){var ot=nt.iterator[ct.method];if(ot===se){if(ct.delegate=null,ct.method==="throw"){if(nt.iterator.return&&(ct.method="return",ct.arg=se,Qe(nt,ct),ct.method==="throw"))return Le;ct.method="throw",ct.arg=new TypeError("The iterator does not provide a 'throw' method")}return Le}var et=we(ot,nt.iterator,ct.arg);if(et.type==="throw")return ct.method="throw",ct.arg=et.arg,ct.delegate=null,Le;var qe=et.arg;if(!qe)return ct.method="throw",ct.arg=new TypeError("iterator result is not an object"),ct.delegate=null,Le;if(qe.done)ct[nt.resultName]=qe.value,ct.next=nt.nextLoc,ct.method!=="return"&&(ct.method="next",ct.arg=se);else return qe;return ct.delegate=null,Le}Ze(_e),de(_e,ue,"Generator"),de(_e,te,function(){return this}),de(_e,"toString",function(){return"[object Generator]"});function tt(nt){var ct={tryLoc:nt[0]};1 in nt&&(ct.catchLoc=nt[1]),2 in nt&&(ct.finallyLoc=nt[2],ct.afterLoc=nt[3]),this.tryEntries.push(ct)}function at(nt){var ct=nt.completion||{};ct.type="normal",delete ct.arg,nt.completion=ct}function lt(nt){this.tryEntries=[{tryLoc:"root"}],nt.forEach(tt,this),this.reset(!0)}ne.keys=function(nt){var ct=[];for(var ot in nt)ct.push(ot);return ct.reverse(),function et(){for(;ct.length;){var qe=ct.pop();if(qe in nt)return et.value=qe,et.done=!1,et}return et.done=!0,et}};function Ve(nt){if(nt){var ct=nt[te];if(ct)return ct.call(nt);if(typeof nt.next=="function")return nt;if(!isNaN(nt.length)){var ot=-1,et=function qe(){for(;++ot<nt.length;)if(oe.call(nt,ot))return qe.value=nt[ot],qe.done=!1,qe;return qe.value=se,qe.done=!0,qe};return et.next=et}}return{next:Xe}}ne.values=Ve;function Xe(){return{value:se,done:!0}}return lt.prototype={constructor:lt,reset:function(nt){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(at),!nt)for(var ct in this)ct.charAt(0)==="t"&&oe.call(this,ct)&&!isNaN(+ct.slice(1))&&(this[ct]=se)},stop:function(){this.done=!0;var nt=this.tryEntries[0],ct=nt.completion;if(ct.type==="throw")throw ct.arg;return this.rval},dispatchException:function(nt){if(this.done)throw nt;var ct=this;function ot(Dt,At){return it.type="throw",it.arg=nt,ct.next=Dt,At&&(ct.method="next",ct.arg=se),!!At}for(var et=this.tryEntries.length-1;et>=0;--et){var qe=this.tryEntries[et],it=qe.completion;if(qe.tryLoc==="root")return ot("end");if(qe.tryLoc<=this.prev){var yt=oe.call(qe,"catchLoc"),pt=oe.call(qe,"finallyLoc");if(yt&&pt){if(this.prev<qe.catchLoc)return ot(qe.catchLoc,!0);if(this.prev<qe.finallyLoc)return ot(qe.finallyLoc)}else if(yt){if(this.prev<qe.catchLoc)return ot(qe.catchLoc,!0)}else if(pt){if(this.prev<qe.finallyLoc)return ot(qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(nt,ct){for(var ot=this.tryEntries.length-1;ot>=0;--ot){var et=this.tryEntries[ot];if(et.tryLoc<=this.prev&&oe.call(et,"finallyLoc")&&this.prev<et.finallyLoc){var qe=et;break}}qe&&(nt==="break"||nt==="continue")&&qe.tryLoc<=ct&&ct<=qe.finallyLoc&&(qe=null);var it=qe?qe.completion:{};return it.type=nt,it.arg=ct,qe?(this.method="next",this.next=qe.finallyLoc,Le):this.complete(it)},complete:function(nt,ct){if(nt.type==="throw")throw nt.arg;return nt.type==="break"||nt.type==="continue"?this.next=nt.arg:nt.type==="return"?(this.rval=this.arg=nt.arg,this.method="return",this.next="end"):nt.type==="normal"&&ct&&(this.next=ct),Le},finish:function(nt){for(var ct=this.tryEntries.length-1;ct>=0;--ct){var ot=this.tryEntries[ct];if(ot.finallyLoc===nt)return this.complete(ot.completion,ot.afterLoc),at(ot),Le}},catch:function(nt){for(var ct=this.tryEntries.length-1;ct>=0;--ct){var ot=this.tryEntries[ct];if(ot.tryLoc===nt){var et=ot.completion;if(et.type==="throw"){var qe=et.arg;at(ot)}return qe}}throw new Error("illegal catch attempt")},delegateYield:function(nt,ct,ot){return this.delegate={iterator:Ve(nt),resultName:ct,nextLoc:ot},this.method==="next"&&(this.arg=se),Le}},ne}(typeof De=="object"?De.exports:{});try{regeneratorRuntime=re}catch(ne){typeof globalThis=="object"?globalThis.regeneratorRuntime=re:Function("r","regeneratorRuntime = r")(re)}},{}],396:[function(x,De,ve){var re=x("buffer"),ne=re.Buffer;function ie(se,me){for(var te in se)me[te]=se[te]}ne.from&&ne.alloc&&ne.allocUnsafe&&ne.allocUnsafeSlow?De.exports=re:(ie(re,ve),ve.Buffer=oe);function oe(se,me,te){return ne(se,me,te)}ie(ne,oe),oe.from=function(se,me,te){if(typeof se=="number")throw new TypeError("Argument must not be a number");return ne(se,me,te)},oe.alloc=function(se,me,te){if(typeof se!="number")throw new TypeError("Argument must be a number");var ae=ne(se);return me!==void 0?typeof te=="string"?ae.fill(me,te):ae.fill(me):ae.fill(0),ae},oe.allocUnsafe=function(se){if(typeof se!="number")throw new TypeError("Argument must be a number");return ne(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,De,ve){(function(re){(function(){(function(ne){ne.parser=function(st,Ge){return new oe(st,Ge)},ne.SAXParser=oe,ne.SAXStream=he,ne.createStream=de,ne.MAX_BUFFER_LENGTH=64*1024;var ie=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ne.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function oe(st,Ge){if(!(this instanceof oe))return new oe(st,Ge);var We=this;me(We),We.q=We.c="",We.bufferCheckPosition=ne.MAX_BUFFER_LENGTH,We.opt=Ge||{},We.opt.lowercase=We.opt.lowercase||We.opt.lowercasetags,We.looseCase=We.opt.lowercase?"toLowerCase":"toUpperCase",We.tags=[],We.closed=We.closedRoot=We.sawRoot=!1,We.tag=We.error=null,We.strict=!!st,We.noscript=!!(st||We.opt.noscript),We.state=Pe.BEGIN,We.strictEntities=We.opt.strictEntities,We.ENTITIES=We.strictEntities?Object.create(ne.XML_ENTITIES):Object.create(ne.ENTITIES),We.attribList=[],We.opt.xmlns&&(We.ns=Object.create(Ae)),We.trackPosition=We.opt.position!==!1,We.trackPosition&&(We.position=We.line=We.column=0),Qe(We,"onready")}Object.create||(Object.create=function(st){function Ge(){}Ge.prototype=st;var We=new Ge;return We}),Object.keys||(Object.keys=function(st){var Ge=[];for(var We in st)st.hasOwnProperty(We)&&Ge.push(We);return Ge});function se(st){for(var Ge=Math.max(ne.MAX_BUFFER_LENGTH,10),We=0,le=0,fe=ie.length;le<fe;le++){var ze=st[ie[le]].length;if(ze>Ge)switch(ie[le]){case"textNode":at(st);break;case"cdata":tt(st,"oncdata",st.cdata),st.cdata="";break;case"script":tt(st,"onscript",st.script),st.script="";break;default:Ve(st,"Max buffer length exceeded: "+ie[le])}We=Math.max(We,ze)}var He=ne.MAX_BUFFER_LENGTH-We;st.bufferCheckPosition=He+st.position}function me(st){for(var Ge=0,We=ie.length;Ge<We;Ge++)st[ie[Ge]]=""}function te(st){at(st),st.cdata!==""&&(tt(st,"oncdata",st.cdata),st.cdata=""),st.script!==""&&(tt(st,"onscript",st.script),st.script="")}oe.prototype={end:function(){Xe(this)},write:At,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){te(this)}};var ae;try{ae=x("stream").Stream}catch(st){ae=function(){}}var ue=ne.EVENTS.filter(function(st){return st!=="error"&&st!=="end"});function de(st,Ge){return new he(st,Ge)}function he(st,Ge){if(!(this instanceof he))return new he(st,Ge);ae.apply(this),this._parser=new oe(st,Ge),this.writable=!0,this.readable=!0;var We=this;this._parser.onend=function(){We.emit("end")},this._parser.onerror=function(le){We.emit("error",le),We._parser.error=null},this._decoder=null,ue.forEach(function(le){Object.defineProperty(We,"on"+le,{get:function(){return We._parser["on"+le]},set:function(fe){if(!fe)return We.removeAllListeners(le),We._parser["on"+le]=fe,fe;We.on(le,fe)},enumerable:!0,configurable:!1})})}he.prototype=Object.create(ae.prototype,{constructor:{value:he}}),he.prototype.write=function(st){if(typeof re=="function"&&typeof re.isBuffer=="function"&&re.isBuffer(st)){if(!this._decoder){var Ge=x("string_decoder").StringDecoder;this._decoder=new Ge("utf8")}st=this._decoder.write(st)}return this._parser.write(st.toString()),this.emit("data",st),!0},he.prototype.end=function(st){return st&&st.length&&this.write(st),this._parser.end(),!0},he.prototype.on=function(st,Ge){var We=this;return!We._parser["on"+st]&&ue.indexOf(st)!==-1&&(We._parser["on"+st]=function(){var le=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);le.splice(0,0,st),We.emit.apply(We,le)}),ae.prototype.on.call(We,st,Ge)};var we="[CDATA[",Se="DOCTYPE",xe="http://www.w3.org/XML/1998/namespace",ye="http://www.w3.org/2000/xmlns/",Ae={xml:xe,xmlns:ye},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-]/,je=/[#:_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]/,Me=/[#:_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 Oe(st){return st===" "||st===`
|
|
|
`||st==="\r"||st===" "}function Ee(st){return st==='"'||st==="'"}function Ne(st){return st===">"||Oe(st)}function _e(st,Ge){return st.test(Ge)}function Ze(st,Ge){return!_e(st,Ge)}var Pe=0;ne.STATE={BEGIN:Pe++,BEGIN_WHITESPACE:Pe++,TEXT:Pe++,TEXT_ENTITY:Pe++,OPEN_WAKA:Pe++,SGML_DECL:Pe++,SGML_DECL_QUOTED:Pe++,DOCTYPE:Pe++,DOCTYPE_QUOTED:Pe++,DOCTYPE_DTD:Pe++,DOCTYPE_DTD_QUOTED:Pe++,COMMENT_STARTING:Pe++,COMMENT:Pe++,COMMENT_ENDING:Pe++,COMMENT_ENDED:Pe++,CDATA:Pe++,CDATA_ENDING:Pe++,CDATA_ENDING_2:Pe++,PROC_INST:Pe++,PROC_INST_BODY:Pe++,PROC_INST_ENDING:Pe++,OPEN_TAG:Pe++,OPEN_TAG_SLASH:Pe++,ATTRIB:Pe++,ATTRIB_NAME:Pe++,ATTRIB_NAME_SAW_WHITE:Pe++,ATTRIB_VALUE:Pe++,ATTRIB_VALUE_QUOTED:Pe++,ATTRIB_VALUE_CLOSED:Pe++,ATTRIB_VALUE_UNQUOTED:Pe++,ATTRIB_VALUE_ENTITY_Q:Pe++,ATTRIB_VALUE_ENTITY_U:Pe++,CLOSE_TAG:Pe++,CLOSE_TAG_SAW_WHITE:Pe++,SCRIPT:Pe++,SCRIPT_ENDING:Pe++},ne.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ne.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(ne.ENTITIES).forEach(function(st){var Ge=ne.ENTITIES[st],We=typeof Ge=="number"?String.fromCharCode(Ge):Ge;ne.ENTITIES[st]=We});for(var Ue in ne.STATE)ne.STATE[ne.STATE[Ue]]=Ue;Pe=ne.STATE;function Qe(st,Ge,We){st[Ge]&&st[Ge](We)}function tt(st,Ge,We){st.textNode&&at(st),Qe(st,Ge,We)}function at(st){st.textNode=lt(st.opt,st.textNode),st.textNode&&Qe(st,"ontext",st.textNode),st.textNode=""}function lt(st,Ge){return st.trim&&(Ge=Ge.trim()),st.normalize&&(Ge=Ge.replace(/\s+/g," ")),Ge}function Ve(st,Ge){return at(st),st.trackPosition&&(Ge+=`
|
|
|
Line: `+st.line+`
|
|
|
Column: `+st.column+`
|
|
|
Char: `+st.c),Ge=new Error(Ge),st.error=Ge,Qe(st,"onerror",Ge),st}function Xe(st){return st.sawRoot&&!st.closedRoot&&nt(st,"Unclosed root tag"),st.state!==Pe.BEGIN&&st.state!==Pe.BEGIN_WHITESPACE&&st.state!==Pe.TEXT&&Ve(st,"Unexpected end"),at(st),st.c="",st.closed=!0,Qe(st,"onend"),oe.call(st,st.strict,st.opt),st}function nt(st,Ge){if(typeof st!="object"||!(st instanceof oe))throw new Error("bad call to strictFail");st.strict&&Ve(st,Ge)}function ct(st){st.strict||(st.tagName=st.tagName[st.looseCase]());var Ge=st.tags[st.tags.length-1]||st,We=st.tag={name:st.tagName,attributes:{}};st.opt.xmlns&&(We.ns=Ge.ns),st.attribList.length=0,tt(st,"onopentagstart",We)}function ot(st,Ge){var We=st.indexOf(":"),le=We<0?["",st]:st.split(":"),fe=le[0],ze=le[1];return Ge&&st==="xmlns"&&(fe="xmlns",ze=""),{prefix:fe,local:ze}}function et(st){if(st.strict||(st.attribName=st.attribName[st.looseCase]()),st.attribList.indexOf(st.attribName)!==-1||st.tag.attributes.hasOwnProperty(st.attribName)){st.attribName=st.attribValue="";return}if(st.opt.xmlns){var Ge=ot(st.attribName,!0),We=Ge.prefix,le=Ge.local;if(We==="xmlns")if(le==="xml"&&st.attribValue!==xe)nt(st,"xml: prefix must be bound to "+xe+`
|
|
|
Actual: `+st.attribValue);else if(le==="xmlns"&&st.attribValue!==ye)nt(st,"xmlns: prefix must be bound to "+ye+`
|
|
|
Actual: `+st.attribValue);else{var fe=st.tag,ze=st.tags[st.tags.length-1]||st;fe.ns===ze.ns&&(fe.ns=Object.create(ze.ns)),fe.ns[le]=st.attribValue}st.attribList.push([st.attribName,st.attribValue])}else st.tag.attributes[st.attribName]=st.attribValue,tt(st,"onattribute",{name:st.attribName,value:st.attribValue});st.attribName=st.attribValue=""}function qe(st,Ge){if(st.opt.xmlns){var We=st.tag,le=ot(st.tagName);We.prefix=le.prefix,We.local=le.local,We.uri=We.ns[le.prefix]||"",We.prefix&&!We.uri&&(nt(st,"Unbound namespace prefix: "+JSON.stringify(st.tagName)),We.uri=le.prefix);var fe=st.tags[st.tags.length-1]||st;We.ns&&fe.ns!==We.ns&&Object.keys(We.ns).forEach(function(It){tt(st,"onopennamespace",{prefix:It,uri:We.ns[It]})});for(var ze=0,He=st.attribList.length;ze<He;ze++){var pe=st.attribList[ze],Ie=pe[0],Ke=pe[1],Ye=ot(Ie,!0),Je=Ye.prefix,dt=Ye.local,bt=Je===""?"":We.ns[Je]||"",vt={name:Ie,value:Ke,prefix:Je,local:dt,uri:bt};Je&&Je!=="xmlns"&&!bt&&(nt(st,"Unbound namespace prefix: "+JSON.stringify(Je)),vt.uri=Je),st.tag.attributes[Ie]=vt,tt(st,"onattribute",vt)}st.attribList.length=0}st.tag.isSelfClosing=!!Ge,st.sawRoot=!0,st.tags.push(st.tag),tt(st,"onopentag",st.tag),Ge||(!st.noscript&&st.tagName.toLowerCase()==="script"?st.state=Pe.SCRIPT:st.state=Pe.TEXT,st.tag=null,st.tagName=""),st.attribName=st.attribValue="",st.attribList.length=0}function it(st){if(!st.tagName){nt(st,"Weird empty close tag."),st.textNode+="</>",st.state=Pe.TEXT;return}if(st.script){if(st.tagName!=="script"){st.script+="</"+st.tagName+">",st.tagName="",st.state=Pe.SCRIPT;return}tt(st,"onscript",st.script),st.script=""}var Ge=st.tags.length,We=st.tagName;st.strict||(We=We[st.looseCase]());for(var le=We;Ge--;){var fe=st.tags[Ge];if(fe.name!==le)nt(st,"Unexpected close tag");else break}if(Ge<0){nt(st,"Unmatched closing tag: "+st.tagName),st.textNode+="</"+st.tagName+">",st.state=Pe.TEXT;return}st.tagName=We;for(var ze=st.tags.length;ze-- >Ge;){var He=st.tag=st.tags.pop();st.tagName=st.tag.name,tt(st,"onclosetag",st.tagName);var pe={};for(var Ie in He.ns)pe[Ie]=He.ns[Ie];var Ke=st.tags[st.tags.length-1]||st;st.opt.xmlns&&He.ns!==Ke.ns&&Object.keys(He.ns).forEach(function(Ye){var Je=He.ns[Ye];tt(st,"onclosenamespace",{prefix:Ye,uri:Je})})}Ge===0&&(st.closedRoot=!0),st.tagName=st.attribValue=st.attribName="",st.attribList.length=0,st.state=Pe.TEXT}function yt(st){var Ge=st.entity,We=Ge.toLowerCase(),le,fe="";return st.ENTITIES[Ge]?st.ENTITIES[Ge]:st.ENTITIES[We]?st.ENTITIES[We]:(Ge=We,Ge.charAt(0)==="#"&&(Ge.charAt(1)==="x"?(Ge=Ge.slice(2),le=parseInt(Ge,16),fe=le.toString(16)):(Ge=Ge.slice(1),le=parseInt(Ge,10),fe=le.toString(10))),Ge=Ge.replace(/^0+/,""),isNaN(le)||fe.toLowerCase()!==Ge?(nt(st,"Invalid character entity"),"&"+st.entity+";"):String.fromCodePoint(le))}function pt(st,Ge){Ge==="<"?(st.state=Pe.OPEN_WAKA,st.startTagPosition=st.position):Oe(Ge)||(nt(st,"Non-whitespace before first tag."),st.textNode=Ge,st.state=Pe.TEXT)}function Dt(st,Ge){var We="";return Ge<st.length&&(We=st.charAt(Ge)),We}function At(st){var Ge=this;if(this.error)throw this.error;if(Ge.closed)return Ve(Ge,"Cannot write after close. Assign an onready handler.");if(st===null)return Xe(Ge);typeof st=="object"&&(st=st.toString());for(var We=0,le="";le=Dt(st,We++),Ge.c=le,!!le;)switch(Ge.trackPosition&&(Ge.position++,le===`
|
|
|
`?(Ge.line++,Ge.column=0):Ge.column++),Ge.state){case Pe.BEGIN:if(Ge.state=Pe.BEGIN_WHITESPACE,le==="\uFEFF")continue;pt(Ge,le);continue;case Pe.BEGIN_WHITESPACE:pt(Ge,le);continue;case Pe.TEXT:if(Ge.sawRoot&&!Ge.closedRoot){for(var fe=We-1;le&&le!=="<"&&le!=="&";)le=Dt(st,We++),le&&Ge.trackPosition&&(Ge.position++,le===`
|
|
|
`?(Ge.line++,Ge.column=0):Ge.column++);Ge.textNode+=st.substring(fe,We-1)}le==="<"&&!(Ge.sawRoot&&Ge.closedRoot&&!Ge.strict)?(Ge.state=Pe.OPEN_WAKA,Ge.startTagPosition=Ge.position):(!Oe(le)&&(!Ge.sawRoot||Ge.closedRoot)&&nt(Ge,"Text data outside of root node."),le==="&"?Ge.state=Pe.TEXT_ENTITY:Ge.textNode+=le);continue;case Pe.SCRIPT:le==="<"?Ge.state=Pe.SCRIPT_ENDING:Ge.script+=le;continue;case Pe.SCRIPT_ENDING:le==="/"?Ge.state=Pe.CLOSE_TAG:(Ge.script+="<"+le,Ge.state=Pe.SCRIPT);continue;case Pe.OPEN_WAKA:if(le==="!")Ge.state=Pe.SGML_DECL,Ge.sgmlDecl="";else if(!Oe(le))if(_e(Le,le))Ge.state=Pe.OPEN_TAG,Ge.tagName=le;else if(le==="/")Ge.state=Pe.CLOSE_TAG,Ge.tagName="";else if(le==="?")Ge.state=Pe.PROC_INST,Ge.procInstName=Ge.procInstBody="";else{if(nt(Ge,"Unencoded <"),Ge.startTagPosition+1<Ge.position){var ze=Ge.position-Ge.startTagPosition;le=new Array(ze).join(" ")+le}Ge.textNode+="<"+le,Ge.state=Pe.TEXT}continue;case Pe.SGML_DECL:(Ge.sgmlDecl+le).toUpperCase()===we?(tt(Ge,"onopencdata"),Ge.state=Pe.CDATA,Ge.sgmlDecl="",Ge.cdata=""):Ge.sgmlDecl+le==="--"?(Ge.state=Pe.COMMENT,Ge.comment="",Ge.sgmlDecl=""):(Ge.sgmlDecl+le).toUpperCase()===Se?(Ge.state=Pe.DOCTYPE,(Ge.doctype||Ge.sawRoot)&&nt(Ge,"Inappropriately located doctype declaration"),Ge.doctype="",Ge.sgmlDecl=""):le===">"?(tt(Ge,"onsgmldeclaration",Ge.sgmlDecl),Ge.sgmlDecl="",Ge.state=Pe.TEXT):(Ee(le)&&(Ge.state=Pe.SGML_DECL_QUOTED),Ge.sgmlDecl+=le);continue;case Pe.SGML_DECL_QUOTED:le===Ge.q&&(Ge.state=Pe.SGML_DECL,Ge.q=""),Ge.sgmlDecl+=le;continue;case Pe.DOCTYPE:le===">"?(Ge.state=Pe.TEXT,tt(Ge,"ondoctype",Ge.doctype),Ge.doctype=!0):(Ge.doctype+=le,le==="["?Ge.state=Pe.DOCTYPE_DTD:Ee(le)&&(Ge.state=Pe.DOCTYPE_QUOTED,Ge.q=le));continue;case Pe.DOCTYPE_QUOTED:Ge.doctype+=le,le===Ge.q&&(Ge.q="",Ge.state=Pe.DOCTYPE);continue;case Pe.DOCTYPE_DTD:Ge.doctype+=le,le==="]"?Ge.state=Pe.DOCTYPE:Ee(le)&&(Ge.state=Pe.DOCTYPE_DTD_QUOTED,Ge.q=le);continue;case Pe.DOCTYPE_DTD_QUOTED:Ge.doctype+=le,le===Ge.q&&(Ge.state=Pe.DOCTYPE_DTD,Ge.q="");continue;case Pe.COMMENT:le==="-"?Ge.state=Pe.COMMENT_ENDING:Ge.comment+=le;continue;case Pe.COMMENT_ENDING:le==="-"?(Ge.state=Pe.COMMENT_ENDED,Ge.comment=lt(Ge.opt,Ge.comment),Ge.comment&&tt(Ge,"oncomment",Ge.comment),Ge.comment=""):(Ge.comment+="-"+le,Ge.state=Pe.COMMENT);continue;case Pe.COMMENT_ENDED:le!==">"?(nt(Ge,"Malformed comment"),Ge.comment+="--"+le,Ge.state=Pe.COMMENT):Ge.state=Pe.TEXT;continue;case Pe.CDATA:le==="]"?Ge.state=Pe.CDATA_ENDING:Ge.cdata+=le;continue;case Pe.CDATA_ENDING:le==="]"?Ge.state=Pe.CDATA_ENDING_2:(Ge.cdata+="]"+le,Ge.state=Pe.CDATA);continue;case Pe.CDATA_ENDING_2:le===">"?(Ge.cdata&&tt(Ge,"oncdata",Ge.cdata),tt(Ge,"onclosecdata"),Ge.cdata="",Ge.state=Pe.TEXT):le==="]"?Ge.cdata+="]":(Ge.cdata+="]]"+le,Ge.state=Pe.CDATA);continue;case Pe.PROC_INST:le==="?"?Ge.state=Pe.PROC_INST_ENDING:Oe(le)?Ge.state=Pe.PROC_INST_BODY:Ge.procInstName+=le;continue;case Pe.PROC_INST_BODY:if(!Ge.procInstBody&&Oe(le))continue;le==="?"?Ge.state=Pe.PROC_INST_ENDING:Ge.procInstBody+=le;continue;case Pe.PROC_INST_ENDING:le===">"?(tt(Ge,"onprocessinginstruction",{name:Ge.procInstName,body:Ge.procInstBody}),Ge.procInstName=Ge.procInstBody="",Ge.state=Pe.TEXT):(Ge.procInstBody+="?"+le,Ge.state=Pe.PROC_INST_BODY);continue;case Pe.OPEN_TAG:_e(Ce,le)?Ge.tagName+=le:(ct(Ge),le===">"?qe(Ge):le==="/"?Ge.state=Pe.OPEN_TAG_SLASH:(Oe(le)||nt(Ge,"Invalid character in tag name"),Ge.state=Pe.ATTRIB));continue;case Pe.OPEN_TAG_SLASH:le===">"?(qe(Ge,!0),it(Ge)):(nt(Ge,"Forward-slash in opening tag not followed by >"),Ge.state=Pe.ATTRIB);continue;case Pe.ATTRIB:if(Oe(le))continue;le===">"?qe(Ge):le==="/"?Ge.state=Pe.OPEN_TAG_SLASH:_e(Le,le)?(Ge.attribName=le,Ge.attribValue="",Ge.state=Pe.ATTRIB_NAME):nt(Ge,"Invalid attribute name");continue;case Pe.ATTRIB_NAME:le==="="?Ge.state=Pe.ATTRIB_VALUE:le===">"?(nt(Ge,"Attribute without value"),Ge.attribValue=Ge.attribName,et(Ge),qe(Ge)):Oe(le)?Ge.state=Pe.ATTRIB_NAME_SAW_WHITE:_e(Ce,le)?Ge.attribName+=le:nt(Ge,"Invalid attribute name");continue;case Pe.ATTRIB_NAME_SAW_WHITE:if(le==="=")Ge.state=Pe.ATTRIB_VALUE;else{if(Oe(le))continue;nt(Ge,"Attribute without value"),Ge.tag.attributes[Ge.attribName]="",Ge.attribValue="",tt(Ge,"onattribute",{name:Ge.attribName,value:""}),Ge.attribName="",le===">"?qe(Ge):_e(Le,le)?(Ge.attribName=le,Ge.state=Pe.ATTRIB_NAME):(nt(Ge,"Invalid attribute name"),Ge.state=Pe.ATTRIB)}continue;case Pe.ATTRIB_VALUE:if(Oe(le))continue;Ee(le)?(Ge.q=le,Ge.state=Pe.ATTRIB_VALUE_QUOTED):(nt(Ge,"Unquoted attribute value"),Ge.state=Pe.ATTRIB_VALUE_UNQUOTED,Ge.attribValue=le);continue;case Pe.ATTRIB_VALUE_QUOTED:if(le!==Ge.q){le==="&"?Ge.state=Pe.ATTRIB_VALUE_ENTITY_Q:Ge.attribValue+=le;continue}et(Ge),Ge.q="",Ge.state=Pe.ATTRIB_VALUE_CLOSED;continue;case Pe.ATTRIB_VALUE_CLOSED:Oe(le)?Ge.state=Pe.ATTRIB:le===">"?qe(Ge):le==="/"?Ge.state=Pe.OPEN_TAG_SLASH:_e(Le,le)?(nt(Ge,"No whitespace between attributes"),Ge.attribName=le,Ge.attribValue="",Ge.state=Pe.ATTRIB_NAME):nt(Ge,"Invalid attribute name");continue;case Pe.ATTRIB_VALUE_UNQUOTED:if(!Ne(le)){le==="&"?Ge.state=Pe.ATTRIB_VALUE_ENTITY_U:Ge.attribValue+=le;continue}et(Ge),le===">"?qe(Ge):Ge.state=Pe.ATTRIB;continue;case Pe.CLOSE_TAG:if(Ge.tagName)le===">"?it(Ge):_e(Ce,le)?Ge.tagName+=le:Ge.script?(Ge.script+="</"+Ge.tagName,Ge.tagName="",Ge.state=Pe.SCRIPT):(Oe(le)||nt(Ge,"Invalid tagname in closing tag"),Ge.state=Pe.CLOSE_TAG_SAW_WHITE);else{if(Oe(le))continue;Ze(Le,le)?Ge.script?(Ge.script+="</"+le,Ge.state=Pe.SCRIPT):nt(Ge,"Invalid tagname in closing tag."):Ge.tagName=le}continue;case Pe.CLOSE_TAG_SAW_WHITE:if(Oe(le))continue;le===">"?it(Ge):nt(Ge,"Invalid characters in closing tag");continue;case Pe.TEXT_ENTITY:case Pe.ATTRIB_VALUE_ENTITY_Q:case Pe.ATTRIB_VALUE_ENTITY_U:var He,pe;switch(Ge.state){case Pe.TEXT_ENTITY:He=Pe.TEXT,pe="textNode";break;case Pe.ATTRIB_VALUE_ENTITY_Q:He=Pe.ATTRIB_VALUE_QUOTED,pe="attribValue";break;case Pe.ATTRIB_VALUE_ENTITY_U:He=Pe.ATTRIB_VALUE_UNQUOTED,pe="attribValue";break}le===";"?(Ge[pe]+=yt(Ge),Ge.entity="",Ge.state=He):_e(Ge.entity.length?Me:je,le)?Ge.entity+=le:(nt(Ge,"Invalid character in entity name"),Ge[pe]+="&"+Ge.entity+le,Ge.entity="",Ge.state=He);continue;default:throw new Error(Ge,"Unknown state: "+Ge.state)}return Ge.position>=Ge.bufferCheckPosition&&se(Ge),Ge}String.fromCodePoint||function(){var st=String.fromCharCode,Ge=Math.floor,We=function(){var le=16384,fe=[],ze,He,pe=-1,Ie=arguments.length;if(!Ie)return"";for(var Ke="";++pe<Ie;){var Ye=Number(arguments[pe]);if(!isFinite(Ye)||Ye<0||Ye>1114111||Ge(Ye)!==Ye)throw RangeError("Invalid code point: "+Ye);Ye<=65535?fe.push(Ye):(Ye-=65536,ze=(Ye>>10)+55296,He=Ye%1024+56320,fe.push(ze,He)),(pe+1===Ie||fe.length>le)&&(Ke+=st.apply(null,fe),fe.length=0)}return Ke};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:We,configurable:!0,writable:!0}):String.fromCodePoint=We}()})(typeof ve=="undefined"?this.sax={}:ve)}).call(this)}).call(this,x("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(x,De,ve){De.exports=ie;var re=x("events").EventEmitter,ne=x("inherits");ne(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 me=this;function te(xe){oe.writable&&oe.write(xe)===!1&&me.pause&&me.pause()}me.on("data",te);function ae(){me.readable&&me.resume&&me.resume()}oe.on("drain",ae),!oe._isStdio&&(!se||se.end!==!1)&&(me.on("end",de),me.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 we(xe){if(Se(),re.listenerCount(this,"error")===0)throw xe}me.on("error",we),oe.on("error",we);function Se(){me.removeListener("data",te),oe.removeListener("drain",ae),me.removeListener("end",de),me.removeListener("close",he),me.removeListener("error",we),oe.removeListener("error",we),me.removeListener("end",Se),me.removeListener("close",Se),oe.removeListener("close",Se)}return me.on("end",Se),me.on("close",Se),oe.on("close",Se),oe.emit("pipe",me),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,De,ve){"use strict";function re(ae,ue){ae.prototype=Object.create(ue.prototype),ae.prototype.constructor=ae,ae.__proto__=ue}var ne={};function ie(ae,ue,de){de||(de=Error);function he(Se,xe,ye){return typeof ue=="string"?ue:ue(Se,xe,ye)}var we=function(Se){re(xe,Se);function xe(ye,Ae,Le){return Se.call(this,he(ye,Ae,Le))||this}return xe}(de);we.prototype.name=de.name,we.prototype.code=ae,ne[ae]=we}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 me(ae,ue,de){return(de===void 0||de>ae.length)&&(de=ae.length),ae.substring(de-ue.length,de)===ue}function te(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 we;if(me(ae," argument"))we="The ".concat(ae," ").concat(he," ").concat(oe(ue,"type"));else{var Se=te(ae,".")?"property":"argument";we='The "'.concat(ae,'" ').concat(Se," ").concat(he," ").concat(oe(ue,"type"))}return we+=". Received type ".concat(typeof de),we},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"),De.exports.codes=ne},{}],400:[function(x,De,ve){(function(re){(function(){"use strict";var ne=Object.keys||function(he){var we=[];for(var Se in he)we.push(Se);return we};De.exports=ae;var ie=x("./_stream_readable"),oe=x("./_stream_writable");x("inherits")(ae,ie);for(var se=ne(oe.prototype),me=0;me<se.length;me++){var te=se[me];ae.prototype[te]||(ae.prototype[te]=oe.prototype[te])}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(we){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=we,this._writableState.destroyed=we)}})}).call(this)}).call(this,x("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(x,De,ve){"use strict";De.exports=ne;var re=x("./_stream_transform");x("inherits")(ne,re);function ne(ie){if(!(this instanceof ne))return new ne(ie);re.call(this,ie)}ne.prototype._transform=function(ie,oe,se){se(null,ie)}},{"./_stream_transform":403,inherits:364}],402:[function(x,De,ve){(function(re,ne){(function(){"use strict";De.exports=tt;var ie;tt.ReadableState=Qe;var oe=x("events").EventEmitter,se=function(Ie,Ke){return Ie.listeners(Ke).length},me=x("./internal/streams/stream"),te=x("buffer").Buffer,ae=(typeof ne!="undefined"?ne:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function ue(pe){return te.from(pe)}function de(pe){return te.isBuffer(pe)||pe instanceof ae}var he=x("util"),we;he&&he.debuglog?we=he.debuglog("stream"):we=function(){};var Se=x("./internal/streams/buffer_list"),xe=x("./internal/streams/destroy"),ye=x("./internal/streams/state"),Ae=ye.getHighWaterMark,Le=x("../errors").codes,Ce=Le.ERR_INVALID_ARG_TYPE,je=Le.ERR_STREAM_PUSH_AFTER_EOF,Me=Le.ERR_METHOD_NOT_IMPLEMENTED,Oe=Le.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ee,Ne,_e;x("inherits")(tt,me);var Ze=xe.errorOrDestroy,Pe=["error","close","destroy","pause","resume"];function Ue(pe,Ie,Ke){if(typeof pe.prependListener=="function")return pe.prependListener(Ie,Ke);!pe._events||!pe._events[Ie]?pe.on(Ie,Ke):Array.isArray(pe._events[Ie])?pe._events[Ie].unshift(Ke):pe._events[Ie]=[Ke,pe._events[Ie]]}function Qe(pe,Ie,Ke){ie=ie||x("./_stream_duplex"),pe=pe||{},typeof Ke!="boolean"&&(Ke=Ie instanceof ie),this.objectMode=!!pe.objectMode,Ke&&(this.objectMode=this.objectMode||!!pe.readableObjectMode),this.highWaterMark=Ae(this,pe,"readableHighWaterMark",Ke),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=pe.emitClose!==!1,this.autoDestroy=!!pe.autoDestroy,this.destroyed=!1,this.defaultEncoding=pe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,pe.encoding&&(Ee||(Ee=x("string_decoder/").StringDecoder),this.decoder=new Ee(pe.encoding),this.encoding=pe.encoding)}function tt(pe){if(ie=ie||x("./_stream_duplex"),!(this instanceof tt))return new tt(pe);var Ie=this instanceof ie;this._readableState=new Qe(pe,this,Ie),this.readable=!0,pe&&(typeof pe.read=="function"&&(this._read=pe.read),typeof pe.destroy=="function"&&(this._destroy=pe.destroy)),me.call(this)}Object.defineProperty(tt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ie){this._readableState&&(this._readableState.destroyed=Ie)}}),tt.prototype.destroy=xe.destroy,tt.prototype._undestroy=xe.undestroy,tt.prototype._destroy=function(pe,Ie){Ie(pe)},tt.prototype.push=function(pe,Ie){var Ke=this._readableState,Ye;return Ke.objectMode?Ye=!0:typeof pe=="string"&&(Ie=Ie||Ke.defaultEncoding,Ie!==Ke.encoding&&(pe=te.from(pe,Ie),Ie=""),Ye=!0),at(this,pe,Ie,!1,Ye)},tt.prototype.unshift=function(pe){return at(this,pe,null,!0,!1)};function at(pe,Ie,Ke,Ye,Je){we("readableAddChunk",Ie);var dt=pe._readableState;if(Ie===null)dt.reading=!1,ot(pe,dt);else{var bt;if(Je||(bt=Ve(dt,Ie)),bt)Ze(pe,bt);else if(dt.objectMode||Ie&&Ie.length>0)if(typeof Ie!="string"&&!dt.objectMode&&Object.getPrototypeOf(Ie)!==te.prototype&&(Ie=ue(Ie)),Ye)dt.endEmitted?Ze(pe,new Oe):lt(pe,dt,Ie,!0);else if(dt.ended)Ze(pe,new je);else{if(dt.destroyed)return!1;dt.reading=!1,dt.decoder&&!Ke?(Ie=dt.decoder.write(Ie),dt.objectMode||Ie.length!==0?lt(pe,dt,Ie,!1):it(pe,dt)):lt(pe,dt,Ie,!1)}else Ye||(dt.reading=!1,it(pe,dt))}return!dt.ended&&(dt.length<dt.highWaterMark||dt.length===0)}function lt(pe,Ie,Ke,Ye){Ie.flowing&&Ie.length===0&&!Ie.sync?(Ie.awaitDrain=0,pe.emit("data",Ke)):(Ie.length+=Ie.objectMode?1:Ke.length,Ye?Ie.buffer.unshift(Ke):Ie.buffer.push(Ke),Ie.needReadable&&et(pe)),it(pe,Ie)}function Ve(pe,Ie){var Ke;return!de(Ie)&&typeof Ie!="string"&&Ie!==void 0&&!pe.objectMode&&(Ke=new Ce("chunk",["string","Buffer","Uint8Array"],Ie)),Ke}tt.prototype.isPaused=function(){return this._readableState.flowing===!1},tt.prototype.setEncoding=function(pe){Ee||(Ee=x("string_decoder/").StringDecoder);var Ie=new Ee(pe);this._readableState.decoder=Ie,this._readableState.encoding=this._readableState.decoder.encoding;for(var Ke=this._readableState.buffer.head,Ye="";Ke!==null;)Ye+=Ie.write(Ke.data),Ke=Ke.next;return this._readableState.buffer.clear(),Ye!==""&&this._readableState.buffer.push(Ye),this._readableState.length=Ye.length,this};var Xe=1073741824;function nt(pe){return pe>=Xe?pe=Xe:(pe--,pe|=pe>>>1,pe|=pe>>>2,pe|=pe>>>4,pe|=pe>>>8,pe|=pe>>>16,pe++),pe}function ct(pe,Ie){return pe<=0||Ie.length===0&&Ie.ended?0:Ie.objectMode?1:pe!==pe?Ie.flowing&&Ie.length?Ie.buffer.head.data.length:Ie.length:(pe>Ie.highWaterMark&&(Ie.highWaterMark=nt(pe)),pe<=Ie.length?pe:Ie.ended?Ie.length:(Ie.needReadable=!0,0))}tt.prototype.read=function(pe){we("read",pe),pe=parseInt(pe,10);var Ie=this._readableState,Ke=pe;if(pe!==0&&(Ie.emittedReadable=!1),pe===0&&Ie.needReadable&&((Ie.highWaterMark!==0?Ie.length>=Ie.highWaterMark:Ie.length>0)||Ie.ended))return we("read: emitReadable",Ie.length,Ie.ended),Ie.length===0&&Ie.ended?fe(this):et(this),null;if(pe=ct(pe,Ie),pe===0&&Ie.ended)return Ie.length===0&&fe(this),null;var Ye=Ie.needReadable;we("need readable",Ye),(Ie.length===0||Ie.length-pe<Ie.highWaterMark)&&(Ye=!0,we("length less than watermark",Ye)),Ie.ended||Ie.reading?(Ye=!1,we("reading or ended",Ye)):Ye&&(we("do read"),Ie.reading=!0,Ie.sync=!0,Ie.length===0&&(Ie.needReadable=!0),this._read(Ie.highWaterMark),Ie.sync=!1,Ie.reading||(pe=ct(Ke,Ie)));var Je;return pe>0?Je=le(pe,Ie):Je=null,Je===null?(Ie.needReadable=Ie.length<=Ie.highWaterMark,pe=0):(Ie.length-=pe,Ie.awaitDrain=0),Ie.length===0&&(Ie.ended||(Ie.needReadable=!0),Ke!==pe&&Ie.ended&&fe(this)),Je!==null&&this.emit("data",Je),Je};function ot(pe,Ie){if(we("onEofChunk"),!Ie.ended){if(Ie.decoder){var Ke=Ie.decoder.end();Ke&&Ke.length&&(Ie.buffer.push(Ke),Ie.length+=Ie.objectMode?1:Ke.length)}Ie.ended=!0,Ie.sync?et(pe):(Ie.needReadable=!1,Ie.emittedReadable||(Ie.emittedReadable=!0,qe(pe)))}}function et(pe){var Ie=pe._readableState;we("emitReadable",Ie.needReadable,Ie.emittedReadable),Ie.needReadable=!1,Ie.emittedReadable||(we("emitReadable",Ie.flowing),Ie.emittedReadable=!0,re.nextTick(qe,pe))}function qe(pe){var Ie=pe._readableState;we("emitReadable_",Ie.destroyed,Ie.length,Ie.ended),!Ie.destroyed&&(Ie.length||Ie.ended)&&(pe.emit("readable"),Ie.emittedReadable=!1),Ie.needReadable=!Ie.flowing&&!Ie.ended&&Ie.length<=Ie.highWaterMark,We(pe)}function it(pe,Ie){Ie.readingMore||(Ie.readingMore=!0,re.nextTick(yt,pe,Ie))}function yt(pe,Ie){for(;!Ie.reading&&!Ie.ended&&(Ie.length<Ie.highWaterMark||Ie.flowing&&Ie.length===0);){var Ke=Ie.length;if(we("maybeReadMore read 0"),pe.read(0),Ke===Ie.length)break}Ie.readingMore=!1}tt.prototype._read=function(pe){Ze(this,new Me("_read()"))},tt.prototype.pipe=function(pe,Ie){var Ke=this,Ye=this._readableState;switch(Ye.pipesCount){case 0:Ye.pipes=pe;break;case 1:Ye.pipes=[Ye.pipes,pe];break;default:Ye.pipes.push(pe);break}Ye.pipesCount+=1,we("pipe count=%d opts=%j",Ye.pipesCount,Ie);var Je=(!Ie||Ie.end!==!1)&&pe!==re.stdout&&pe!==re.stderr,dt=Je?vt:St;Ye.endEmitted?re.nextTick(dt):Ke.once("end",dt),pe.on("unpipe",bt);function bt(Nt,Ft){we("onunpipe"),Nt===Ke&&Ft&&Ft.hasUnpiped===!1&&(Ft.hasUnpiped=!0,kt())}function vt(){we("onend"),pe.end()}var It=pt(Ke);pe.on("drain",It);var Vt=!1;function kt(){we("cleanup"),pe.removeListener("close",Mt),pe.removeListener("finish",ft),pe.removeListener("drain",It),pe.removeListener("error",_t),pe.removeListener("unpipe",bt),Ke.removeListener("end",vt),Ke.removeListener("end",St),Ke.removeListener("data",jt),Vt=!0,Ye.awaitDrain&&(!pe._writableState||pe._writableState.needDrain)&&It()}Ke.on("data",jt);function jt(Nt){we("ondata");var Ft=pe.write(Nt);we("dest.write",Ft),Ft===!1&&((Ye.pipesCount===1&&Ye.pipes===pe||Ye.pipesCount>1&&He(Ye.pipes,pe)!==-1)&&!Vt&&(we("false write response, pause",Ye.awaitDrain),Ye.awaitDrain++),Ke.pause())}function _t(Nt){we("onerror",Nt),St(),pe.removeListener("error",_t),se(pe,"error")===0&&Ze(pe,Nt)}Ue(pe,"error",_t);function Mt(){pe.removeListener("finish",ft),St()}pe.once("close",Mt);function ft(){we("onfinish"),pe.removeListener("close",Mt),St()}pe.once("finish",ft);function St(){we("unpipe"),Ke.unpipe(pe)}return pe.emit("pipe",Ke),Ye.flowing||(we("pipe resume"),Ke.resume()),pe};function pt(pe){return function(){var Ke=pe._readableState;we("pipeOnDrain",Ke.awaitDrain),Ke.awaitDrain&&Ke.awaitDrain--,Ke.awaitDrain===0&&se(pe,"data")&&(Ke.flowing=!0,We(pe))}}tt.prototype.unpipe=function(pe){var Ie=this._readableState,Ke={hasUnpiped:!1};if(Ie.pipesCount===0)return this;if(Ie.pipesCount===1)return pe&&pe!==Ie.pipes?this:(pe||(pe=Ie.pipes),Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1,pe&&pe.emit("unpipe",this,Ke),this);if(!pe){var Ye=Ie.pipes,Je=Ie.pipesCount;Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1;for(var dt=0;dt<Je;dt++)Ye[dt].emit("unpipe",this,{hasUnpiped:!1});return this}var bt=He(Ie.pipes,pe);return bt===-1?this:(Ie.pipes.splice(bt,1),Ie.pipesCount-=1,Ie.pipesCount===1&&(Ie.pipes=Ie.pipes[0]),pe.emit("unpipe",this,Ke),this)},tt.prototype.on=function(pe,Ie){var Ke=me.prototype.on.call(this,pe,Ie),Ye=this._readableState;return pe==="data"?(Ye.readableListening=this.listenerCount("readable")>0,Ye.flowing!==!1&&this.resume()):pe==="readable"&&!Ye.endEmitted&&!Ye.readableListening&&(Ye.readableListening=Ye.needReadable=!0,Ye.flowing=!1,Ye.emittedReadable=!1,we("on readable",Ye.length,Ye.reading),Ye.length?et(this):Ye.reading||re.nextTick(At,this)),Ke},tt.prototype.addListener=tt.prototype.on,tt.prototype.removeListener=function(pe,Ie){var Ke=me.prototype.removeListener.call(this,pe,Ie);return pe==="readable"&&re.nextTick(Dt,this),Ke},tt.prototype.removeAllListeners=function(pe){var Ie=me.prototype.removeAllListeners.apply(this,arguments);return(pe==="readable"||pe===void 0)&&re.nextTick(Dt,this),Ie};function Dt(pe){var Ie=pe._readableState;Ie.readableListening=pe.listenerCount("readable")>0,Ie.resumeScheduled&&!Ie.paused?Ie.flowing=!0:pe.listenerCount("data")>0&&pe.resume()}function At(pe){we("readable nexttick read 0"),pe.read(0)}tt.prototype.resume=function(){var pe=this._readableState;return pe.flowing||(we("resume"),pe.flowing=!pe.readableListening,st(this,pe)),pe.paused=!1,this};function st(pe,Ie){Ie.resumeScheduled||(Ie.resumeScheduled=!0,re.nextTick(Ge,pe,Ie))}function Ge(pe,Ie){we("resume",Ie.reading),Ie.reading||pe.read(0),Ie.resumeScheduled=!1,pe.emit("resume"),We(pe),Ie.flowing&&!Ie.reading&&pe.read(0)}tt.prototype.pause=function(){return we("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(we("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function We(pe){var Ie=pe._readableState;for(we("flow",Ie.flowing);Ie.flowing&&pe.read()!==null;);}tt.prototype.wrap=function(pe){var Ie=this,Ke=this._readableState,Ye=!1;pe.on("end",function(){if(we("wrapped end"),Ke.decoder&&!Ke.ended){var bt=Ke.decoder.end();bt&&bt.length&&Ie.push(bt)}Ie.push(null)}),pe.on("data",function(bt){if(we("wrapped data"),Ke.decoder&&(bt=Ke.decoder.write(bt)),!(Ke.objectMode&&bt==null)&&!(!Ke.objectMode&&(!bt||!bt.length))){var vt=Ie.push(bt);vt||(Ye=!0,pe.pause())}});for(var Je in pe)this[Je]===void 0&&typeof pe[Je]=="function"&&(this[Je]=function(vt){return function(){return pe[vt].apply(pe,arguments)}}(Je));for(var dt=0;dt<Pe.length;dt++)pe.on(Pe[dt],this.emit.bind(this,Pe[dt]));return this._read=function(bt){we("wrapped _read",bt),Ye&&(Ye=!1,pe.resume())},this},typeof Symbol=="function"&&(tt.prototype[Symbol.asyncIterator]=function(){return Ne===void 0&&(Ne=x("./internal/streams/async_iterator")),Ne(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(Ie){this._readableState&&(this._readableState.flowing=Ie)}}),tt._fromList=le,Object.defineProperty(tt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function le(pe,Ie){if(Ie.length===0)return null;var Ke;return Ie.objectMode?Ke=Ie.buffer.shift():!pe||pe>=Ie.length?(Ie.decoder?Ke=Ie.buffer.join(""):Ie.buffer.length===1?Ke=Ie.buffer.first():Ke=Ie.buffer.concat(Ie.length),Ie.buffer.clear()):Ke=Ie.buffer.consume(pe,Ie.decoder),Ke}function fe(pe){var Ie=pe._readableState;we("endReadable",Ie.endEmitted),Ie.endEmitted||(Ie.ended=!0,re.nextTick(ze,Ie,pe))}function ze(pe,Ie){if(we("endReadableNT",pe.endEmitted,pe.length),!pe.endEmitted&&pe.length===0&&(pe.endEmitted=!0,Ie.readable=!1,Ie.emit("end"),pe.autoDestroy)){var Ke=Ie._writableState;(!Ke||Ke.autoDestroy&&Ke.finished)&&Ie.destroy()}}typeof Symbol=="function"&&(tt.from=function(pe,Ie){return _e===void 0&&(_e=x("./internal/streams/from")),_e(tt,pe,Ie)});function He(pe,Ie){for(var Ke=0,Ye=pe.length;Ke<Ye;Ke++)if(pe[Ke]===Ie)return Ke;return-1}}).call(this)}).call(this,x("_process"),typeof Ht!="undefined"?Ht: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,De,ve){"use strict";De.exports=ae;var re=x("../errors").codes,ne=re.ERR_METHOD_NOT_IMPLEMENTED,ie=re.ERR_MULTIPLE_CALLBACK,oe=re.ERR_TRANSFORM_ALREADY_TRANSFORMING,se=re.ERR_TRANSFORM_WITH_LENGTH_0,me=x("./_stream_duplex");x("inherits")(ae,me);function te(he,we){var Se=this._transformState;Se.transforming=!1;var xe=Se.writecb;if(xe===null)return this.emit("error",new ie);Se.writechunk=null,Se.writecb=null,we!=null&&this.push(we),xe(he);var ye=this._readableState;ye.reading=!1,(ye.needReadable||ye.length<ye.highWaterMark)&&this._read(ye.highWaterMark)}function ae(he){if(!(this instanceof ae))return new ae(he);me.call(this,he),this._transformState={afterTransform:te.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(we,Se){de(he,we,Se)}):de(this,null,null)}ae.prototype.push=function(he,we){return this._transformState.needTransform=!1,me.prototype.push.call(this,he,we)},ae.prototype._transform=function(he,we,Se){Se(new ne("_transform()"))},ae.prototype._write=function(he,we,Se){var xe=this._transformState;if(xe.writecb=Se,xe.writechunk=he,xe.writeencoding=we,!xe.transforming){var ye=this._readableState;(xe.needTransform||ye.needReadable||ye.length<ye.highWaterMark)&&this._read(ye.highWaterMark)}},ae.prototype._read=function(he){var we=this._transformState;we.writechunk!==null&&!we.transforming?(we.transforming=!0,this._transform(we.writechunk,we.writeencoding,we.afterTransform)):we.needTransform=!0},ae.prototype._destroy=function(he,we){me.prototype._destroy.call(this,he,function(Se){we(Se)})};function de(he,we,Se){if(we)return he.emit("error",we);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,De,ve){(function(re,ne){(function(){"use strict";De.exports=Qe;function ie(We,le,fe){this.chunk=We,this.encoding=le,this.callback=fe,this.next=null}function oe(We){var le=this;this.next=null,this.entry=null,this.finish=function(){Ge(le,We)}}var se;Qe.WritableState=Pe;var me={deprecate:x("util-deprecate")},te=x("./internal/streams/stream"),ae=x("buffer").Buffer,ue=(typeof ne!="undefined"?ne:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function de(We){return ae.from(We)}function he(We){return ae.isBuffer(We)||We instanceof ue}var we=x("./internal/streams/destroy"),Se=x("./internal/streams/state"),xe=Se.getHighWaterMark,ye=x("../errors").codes,Ae=ye.ERR_INVALID_ARG_TYPE,Le=ye.ERR_METHOD_NOT_IMPLEMENTED,Ce=ye.ERR_MULTIPLE_CALLBACK,je=ye.ERR_STREAM_CANNOT_PIPE,Me=ye.ERR_STREAM_DESTROYED,Oe=ye.ERR_STREAM_NULL_VALUES,Ee=ye.ERR_STREAM_WRITE_AFTER_END,Ne=ye.ERR_UNKNOWN_ENCODING,_e=we.errorOrDestroy;x("inherits")(Qe,te);function Ze(){}function Pe(We,le,fe){se=se||x("./_stream_duplex"),We=We||{},typeof fe!="boolean"&&(fe=le instanceof se),this.objectMode=!!We.objectMode,fe&&(this.objectMode=this.objectMode||!!We.writableObjectMode),this.highWaterMark=xe(this,We,"writableHighWaterMark",fe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ze=We.decodeStrings===!1;this.decodeStrings=!ze,this.defaultEncoding=We.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(He){ot(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=We.emitClose!==!1,this.autoDestroy=!!We.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new oe(this)}Pe.prototype.getBuffer=function(){for(var le=this.bufferedRequest,fe=[];le;)fe.push(le),le=le.next;return fe},function(){try{Object.defineProperty(Pe.prototype,"buffer",{get:me.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(We){}}();var Ue;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ue=Function.prototype[Symbol.hasInstance],Object.defineProperty(Qe,Symbol.hasInstance,{value:function(le){return Ue.call(this,le)?!0:this!==Qe?!1:le&&le._writableState instanceof Pe}})):Ue=function(le){return le instanceof this};function Qe(We){se=se||x("./_stream_duplex");var le=this instanceof se;if(!le&&!Ue.call(Qe,this))return new Qe(We);this._writableState=new Pe(We,this,le),this.writable=!0,We&&(typeof We.write=="function"&&(this._write=We.write),typeof We.writev=="function"&&(this._writev=We.writev),typeof We.destroy=="function"&&(this._destroy=We.destroy),typeof We.final=="function"&&(this._final=We.final)),te.call(this)}Qe.prototype.pipe=function(){_e(this,new je)};function tt(We,le){var fe=new Ee;_e(We,fe),re.nextTick(le,fe)}function at(We,le,fe,ze){var He;return fe===null?He=new Oe:typeof fe!="string"&&!le.objectMode&&(He=new Ae("chunk",["string","Buffer"],fe)),He?(_e(We,He),re.nextTick(ze,He),!1):!0}Qe.prototype.write=function(We,le,fe){var ze=this._writableState,He=!1,pe=!ze.objectMode&&he(We);return pe&&!ae.isBuffer(We)&&(We=de(We)),typeof le=="function"&&(fe=le,le=null),pe?le="buffer":le||(le=ze.defaultEncoding),typeof fe!="function"&&(fe=Ze),ze.ending?tt(this,fe):(pe||at(this,ze,We,fe))&&(ze.pendingcb++,He=Ve(this,ze,pe,We,le,fe)),He},Qe.prototype.cork=function(){this._writableState.corked++},Qe.prototype.uncork=function(){var We=this._writableState;We.corked&&(We.corked--,!We.writing&&!We.corked&&!We.bufferProcessing&&We.bufferedRequest&&it(this,We))},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 Ne(le);return this._writableState.defaultEncoding=le,this},Object.defineProperty(Qe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function lt(We,le,fe){return!We.objectMode&&We.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 Ve(We,le,fe,ze,He,pe){if(!fe){var Ie=lt(le,ze,He);ze!==Ie&&(fe=!0,He="buffer",ze=Ie)}var Ke=le.objectMode?1:ze.length;le.length+=Ke;var Ye=le.length<le.highWaterMark;if(Ye||(le.needDrain=!0),le.writing||le.corked){var Je=le.lastBufferedRequest;le.lastBufferedRequest={chunk:ze,encoding:He,isBuf:fe,callback:pe,next:null},Je?Je.next=le.lastBufferedRequest:le.bufferedRequest=le.lastBufferedRequest,le.bufferedRequestCount+=1}else Xe(We,le,!1,Ke,ze,He,pe);return Ye}function Xe(We,le,fe,ze,He,pe,Ie){le.writelen=ze,le.writecb=Ie,le.writing=!0,le.sync=!0,le.destroyed?le.onwrite(new Me("write")):fe?We._writev(He,le.onwrite):We._write(He,pe,le.onwrite),le.sync=!1}function nt(We,le,fe,ze,He){--le.pendingcb,fe?(re.nextTick(He,ze),re.nextTick(At,We,le),We._writableState.errorEmitted=!0,_e(We,ze)):(He(ze),We._writableState.errorEmitted=!0,_e(We,ze),At(We,le))}function ct(We){We.writing=!1,We.writecb=null,We.length-=We.writelen,We.writelen=0}function ot(We,le){var fe=We._writableState,ze=fe.sync,He=fe.writecb;if(typeof He!="function")throw new Ce;if(ct(fe),le)nt(We,fe,ze,le,He);else{var pe=yt(fe)||We.destroyed;!pe&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&it(We,fe),ze?re.nextTick(et,We,fe,pe,He):et(We,fe,pe,He)}}function et(We,le,fe,ze){fe||qe(We,le),le.pendingcb--,ze(),At(We,le)}function qe(We,le){le.length===0&&le.needDrain&&(le.needDrain=!1,We.emit("drain"))}function it(We,le){le.bufferProcessing=!0;var fe=le.bufferedRequest;if(We._writev&&fe&&fe.next){var ze=le.bufferedRequestCount,He=new Array(ze),pe=le.corkedRequestsFree;pe.entry=fe;for(var Ie=0,Ke=!0;fe;)He[Ie]=fe,fe.isBuf||(Ke=!1),fe=fe.next,Ie+=1;He.allBuffers=Ke,Xe(We,le,!0,le.length,He,"",pe.finish),le.pendingcb++,le.lastBufferedRequest=null,pe.next?(le.corkedRequestsFree=pe.next,pe.next=null):le.corkedRequestsFree=new oe(le),le.bufferedRequestCount=0}else{for(;fe;){var Ye=fe.chunk,Je=fe.encoding,dt=fe.callback,bt=le.objectMode?1:Ye.length;if(Xe(We,le,!1,bt,Ye,Je,dt),fe=fe.next,le.bufferedRequestCount--,le.writing)break}fe===null&&(le.lastBufferedRequest=null)}le.bufferedRequest=fe,le.bufferProcessing=!1}Qe.prototype._write=function(We,le,fe){fe(new Le("_write()"))},Qe.prototype._writev=null,Qe.prototype.end=function(We,le,fe){var ze=this._writableState;return typeof We=="function"?(fe=We,We=null,le=null):typeof le=="function"&&(fe=le,le=null),We!=null&&this.write(We,le),ze.corked&&(ze.corked=1,this.uncork()),ze.ending||st(this,ze,fe),this},Object.defineProperty(Qe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function yt(We){return We.ending&&We.length===0&&We.bufferedRequest===null&&!We.finished&&!We.writing}function pt(We,le){We._final(function(fe){le.pendingcb--,fe&&_e(We,fe),le.prefinished=!0,We.emit("prefinish"),At(We,le)})}function Dt(We,le){!le.prefinished&&!le.finalCalled&&(typeof We._final=="function"&&!le.destroyed?(le.pendingcb++,le.finalCalled=!0,re.nextTick(pt,We,le)):(le.prefinished=!0,We.emit("prefinish")))}function At(We,le){var fe=yt(le);if(fe&&(Dt(We,le),le.pendingcb===0&&(le.finished=!0,We.emit("finish"),le.autoDestroy))){var ze=We._readableState;(!ze||ze.autoDestroy&&ze.endEmitted)&&We.destroy()}return fe}function st(We,le,fe){le.ending=!0,At(We,le),fe&&(le.finished?re.nextTick(fe):We.once("finish",fe)),le.ended=!0,We.writable=!1}function Ge(We,le,fe){var ze=We.entry;for(We.entry=null;ze;){var He=ze.callback;le.pendingcb--,He(fe),ze=ze.next}le.corkedRequestsFree.next=We}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=we.destroy,Qe.prototype._undestroy=we.undestroy,Qe.prototype._destroy=function(We,le){le(We)}}).call(this)}).call(this,x("_process"),typeof Ht!="undefined"?Ht: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,De,ve){(function(re){(function(){"use strict";var ne;function ie(Oe,Ee,Ne){return Ee=oe(Ee),Ee in Oe?Object.defineProperty(Oe,Ee,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):Oe[Ee]=Ne,Oe}function oe(Oe){var Ee=se(Oe,"string");return typeof Ee=="symbol"?Ee:String(Ee)}function se(Oe,Ee){if(typeof Oe!="object"||Oe===null)return Oe;var Ne=Oe[Symbol.toPrimitive];if(Ne!==void 0){var _e=Ne.call(Oe,Ee||"default");if(typeof _e!="object")return _e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ee==="string"?String:Number)(Oe)}var me=x("./end-of-stream"),te=Symbol("lastResolve"),ae=Symbol("lastReject"),ue=Symbol("error"),de=Symbol("ended"),he=Symbol("lastPromise"),we=Symbol("handlePromise"),Se=Symbol("stream");function xe(Oe,Ee){return{value:Oe,done:Ee}}function ye(Oe){var Ee=Oe[te];if(Ee!==null){var Ne=Oe[Se].read();Ne!==null&&(Oe[he]=null,Oe[te]=null,Oe[ae]=null,Ee(xe(Ne,!1)))}}function Ae(Oe){re.nextTick(ye,Oe)}function Le(Oe,Ee){return function(Ne,_e){Oe.then(function(){if(Ee[de]){Ne(xe(void 0,!0));return}Ee[we](Ne,_e)},_e)}}var Ce=Object.getPrototypeOf(function(){}),je=Object.setPrototypeOf((ne={get stream(){return this[Se]},next:function(){var Ee=this,Ne=this[ue];if(Ne!==null)return Promise.reject(Ne);if(this[de])return Promise.resolve(xe(void 0,!0));if(this[Se].destroyed)return new Promise(function(Ue,Qe){re.nextTick(function(){Ee[ue]?Qe(Ee[ue]):Ue(xe(void 0,!0))})});var _e=this[he],Ze;if(_e)Ze=new Promise(Le(_e,this));else{var Pe=this[Se].read();if(Pe!==null)return Promise.resolve(xe(Pe,!1));Ze=new Promise(this[we])}return this[he]=Ze,Ze}},ie(ne,Symbol.asyncIterator,function(){return this}),ie(ne,"return",function(){var Ee=this;return new Promise(function(Ne,_e){Ee[Se].destroy(null,function(Ze){if(Ze){_e(Ze);return}Ne(xe(void 0,!0))})})}),ne),Ce),Me=function(Ee){var Ne,_e=Object.create(je,(Ne={},ie(Ne,Se,{value:Ee,writable:!0}),ie(Ne,te,{value:null,writable:!0}),ie(Ne,ae,{value:null,writable:!0}),ie(Ne,ue,{value:null,writable:!0}),ie(Ne,de,{value:Ee._readableState.endEmitted,writable:!0}),ie(Ne,we,{value:function(Pe,Ue){var Qe=_e[Se].read();Qe?(_e[he]=null,_e[te]=null,_e[ae]=null,Pe(xe(Qe,!1))):(_e[te]=Pe,_e[ae]=Ue)},writable:!0}),Ne));return _e[he]=null,me(Ee,function(Ze){if(Ze&&Ze.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Pe=_e[ae];Pe!==null&&(_e[he]=null,_e[te]=null,_e[ae]=null,Pe(Ze)),_e[ue]=Ze;return}var Ue=_e[te];Ue!==null&&(_e[he]=null,_e[te]=null,_e[ae]=null,Ue(xe(void 0,!0))),_e[de]=!0}),Ee.on("readable",Ae.bind(null,_e)),_e};De.exports=Me}).call(this)}).call(this,x("_process"))},{"./end-of-stream":408,_process:467}],406:[function(x,De,ve){"use strict";function re(ye,Ae){var Le=Object.keys(ye);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(ye);Ae&&(Ce=Ce.filter(function(je){return Object.getOwnPropertyDescriptor(ye,je).enumerable})),Le.push.apply(Le,Ce)}return Le}function ne(ye){for(var Ae=1;Ae<arguments.length;Ae++){var Le=arguments[Ae]!=null?arguments[Ae]:{};Ae%2?re(Object(Le),!0).forEach(function(Ce){ie(ye,Ce,Le[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ye,Object.getOwnPropertyDescriptors(Le)):re(Object(Le)).forEach(function(Ce){Object.defineProperty(ye,Ce,Object.getOwnPropertyDescriptor(Le,Ce))})}return ye}function ie(ye,Ae,Le){return Ae=te(Ae),Ae in ye?Object.defineProperty(ye,Ae,{value:Le,enumerable:!0,configurable:!0,writable:!0}):ye[Ae]=Le,ye}function oe(ye,Ae){if(!(ye instanceof Ae))throw new TypeError("Cannot call a class as a function")}function se(ye,Ae){for(var Le=0;Le<Ae.length;Le++){var Ce=Ae[Le];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(ye,te(Ce.key),Ce)}}function me(ye,Ae,Le){return Ae&&se(ye.prototype,Ae),Le&&se(ye,Le),Object.defineProperty(ye,"prototype",{writable:!1}),ye}function te(ye){var Ae=ae(ye,"string");return typeof Ae=="symbol"?Ae:String(Ae)}function ae(ye,Ae){if(typeof ye!="object"||ye===null)return ye;var Le=ye[Symbol.toPrimitive];if(Le!==void 0){var Ce=Le.call(ye,Ae||"default");if(typeof Ce!="object")return Ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ae==="string"?String:Number)(ye)}var ue=x("buffer"),de=ue.Buffer,he=x("util"),we=he.inspect,Se=we&&we.custom||"inspect";function xe(ye,Ae,Le){de.prototype.copy.call(ye,Ae,Le)}De.exports=function(){function ye(){oe(this,ye),this.head=null,this.tail=null,this.length=0}return me(ye,[{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,je=""+Ce.data;Ce=Ce.next;)je+=Le+Ce.data;return je}},{key:"concat",value:function(Le){if(this.length===0)return de.alloc(0);for(var Ce=de.allocUnsafe(Le>>>0),je=this.head,Me=0;je;)xe(je.data,Ce,Me),Me+=je.data.length,je=je.next;return Ce}},{key:"consume",value:function(Le,Ce){var je;return Le<this.head.data.length?(je=this.head.data.slice(0,Le),this.head.data=this.head.data.slice(Le)):Le===this.head.data.length?je=this.shift():je=Ce?this._getString(Le):this._getBuffer(Le),je}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Le){var Ce=this.head,je=1,Me=Ce.data;for(Le-=Me.length;Ce=Ce.next;){var Oe=Ce.data,Ee=Le>Oe.length?Oe.length:Le;if(Ee===Oe.length?Me+=Oe:Me+=Oe.slice(0,Le),Le-=Ee,Le===0){Ee===Oe.length?(++je,Ce.next?this.head=Ce.next:this.head=this.tail=null):(this.head=Ce,Ce.data=Oe.slice(Ee));break}++je}return this.length-=je,Me}},{key:"_getBuffer",value:function(Le){var Ce=de.allocUnsafe(Le),je=this.head,Me=1;for(je.data.copy(Ce),Le-=je.data.length;je=je.next;){var Oe=je.data,Ee=Le>Oe.length?Oe.length:Le;if(Oe.copy(Ce,Ce.length-Le,0,Ee),Le-=Ee,Le===0){Ee===Oe.length?(++Me,je.next?this.head=je.next:this.head=this.tail=null):(this.head=je,je.data=Oe.slice(Ee));break}++Me}return this.length-=Me,Ce}},{key:Se,value:function(Le,Ce){return we(this,ne(ne({},Ce),{},{depth:0,customInspect:!1}))}}]),ye}()},{buffer:90,util:89}],407:[function(x,De,ve){(function(re){(function(){"use strict";function ne(ae,ue){var de=this,he=this._readableState&&this._readableState.destroyed,we=this._writableState&&this._writableState.destroyed;return he||we?(ue?ue(ae):ae&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,re.nextTick(me,this,ae)):re.nextTick(me,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){me(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 me(ae,ue){ae.emit("error",ue)}function te(ae,ue){var de=ae._readableState,he=ae._writableState;de&&de.autoDestroy||he&&he.autoDestroy?ae.destroy(ue):ae.emit("error",ue)}De.exports={destroy:ne,undestroy:se,errorOrDestroy:te}}).call(this)}).call(this,x("_process"))},{_process:467}],408:[function(x,De,ve){"use strict";var re=x("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function ne(me){var te=!1;return function(){if(!te){te=!0;for(var ae=arguments.length,ue=new Array(ae),de=0;de<ae;de++)ue[de]=arguments[de];me.apply(this,ue)}}}function ie(){}function oe(me){return me.setHeader&&typeof me.abort=="function"}function se(me,te,ae){if(typeof te=="function")return se(me,null,te);te||(te={}),ae=ne(ae||ie);var ue=te.readable||te.readable!==!1&&me.readable,de=te.writable||te.writable!==!1&&me.writable,he=function(){me.writable||Se()},we=me._writableState&&me._writableState.finished,Se=function(){de=!1,we=!0,ue||ae.call(me)},xe=me._readableState&&me._readableState.endEmitted,ye=function(){ue=!1,xe=!0,de||ae.call(me)},Ae=function(Me){ae.call(me,Me)},Le=function(){var Me;if(ue&&!xe)return(!me._readableState||!me._readableState.ended)&&(Me=new re),ae.call(me,Me);if(de&&!we)return(!me._writableState||!me._writableState.ended)&&(Me=new re),ae.call(me,Me)},Ce=function(){me.req.on("finish",Se)};return oe(me)?(me.on("complete",Se),me.on("abort",Le),me.req?Ce():me.on("request",Ce)):de&&!me._writableState&&(me.on("end",he),me.on("close",he)),me.on("end",ye),me.on("finish",Se),te.error!==!1&&me.on("error",Ae),me.on("close",Le),function(){me.removeListener("complete",Se),me.removeListener("abort",Le),me.removeListener("request",Ce),me.req&&me.req.removeListener("finish",Se),me.removeListener("end",he),me.removeListener("close",he),me.removeListener("finish",Se),me.removeListener("end",ye),me.removeListener("error",Ae),me.removeListener("close",Le)}}De.exports=se},{"../../../errors":399}],409:[function(x,De,ve){De.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(x,De,ve){"use strict";var re;function ne(Se){var xe=!1;return function(){xe||(xe=!0,Se.apply(void 0,arguments))}}var ie=x("../../../errors").codes,oe=ie.ERR_MISSING_ARGS,se=ie.ERR_STREAM_DESTROYED;function me(Se){if(Se)throw Se}function te(Se){return Se.setHeader&&typeof Se.abort=="function"}function ae(Se,xe,ye,Ae){Ae=ne(Ae);var Le=!1;Se.on("close",function(){Le=!0}),re===void 0&&(re=x("./end-of-stream")),re(Se,{readable:xe,writable:ye},function(je){if(je)return Ae(je);Le=!0,Ae()});var Ce=!1;return function(je){if(!Le&&!Ce){if(Ce=!0,te(Se))return Se.abort();if(typeof Se.destroy=="function")return Se.destroy();Ae(je||new se("pipe"))}}}function ue(Se){Se()}function de(Se,xe){return Se.pipe(xe)}function he(Se){return!Se.length||typeof Se[Se.length-1]!="function"?me:Se.pop()}function we(){for(var Se=arguments.length,xe=new Array(Se),ye=0;ye<Se;ye++)xe[ye]=arguments[ye];var Ae=he(xe);if(Array.isArray(xe[0])&&(xe=xe[0]),xe.length<2)throw new oe("streams");var Le,Ce=xe.map(function(je,Me){var Oe=Me<xe.length-1,Ee=Me>0;return ae(je,Oe,Ee,function(Ne){Le||(Le=Ne),Ne&&Ce.forEach(ue),!Oe&&(Ce.forEach(ue),Ae(Le))})});return xe.reduce(de)}De.exports=we},{"../../../errors":399,"./end-of-stream":408}],411:[function(x,De,ve){"use strict";var re=x("../../../errors").codes.ERR_INVALID_OPT_VALUE;function ne(oe,se,me){return oe.highWaterMark!=null?oe.highWaterMark:se?oe[me]:null}function ie(oe,se,me,te){var ae=ne(se,te,me);if(ae!=null){if(!(isFinite(ae)&&Math.floor(ae)===ae)||ae<0){var ue=te?me:"highWaterMark";throw new re(ue,ae)}return Math.floor(ae)}return oe.objectMode?16:16*1024}De.exports={getHighWaterMark:ie}},{"../../../errors":399}],412:[function(x,De,ve){arguments[4][393][0].apply(ve,arguments)},{dup:393,events:344}],413:[function(x,De,ve){"use strict";var re=x("safe-buffer").Buffer,ne=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 je;;)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(je)return;Ce=(""+Ce).toLowerCase(),je=!0}}function oe(Ce){var je=ie(Ce);if(typeof je!="string"&&(re.isEncoding===ne||!ne(Ce)))throw new Error("Unknown encoding: "+Ce);return je||Ce}ve.StringDecoder=se;function se(Ce){this.encoding=oe(Ce);var je;switch(this.encoding){case"utf16le":this.text=we,this.end=Se,je=4;break;case"utf8":this.fillLast=ue,je=4;break;case"base64":this.text=xe,this.end=ye,je=3;break;default:this.write=Ae,this.end=Le;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=re.allocUnsafe(je)}se.prototype.write=function(Ce){if(Ce.length===0)return"";var je,Me;if(this.lastNeed){if(je=this.fillLast(Ce),je===void 0)return"";Me=this.lastNeed,this.lastNeed=0}else Me=0;return Me<Ce.length?je?je+this.text(Ce,Me):this.text(Ce,Me):je||""},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 me(Ce){return Ce<=127?0:Ce>>5===6?2:Ce>>4===14?3:Ce>>3===30?4:Ce>>6===2?-1:-2}function te(Ce,je,Me){var Oe=je.length-1;if(Oe<Me)return 0;var Ee=me(je[Oe]);return Ee>=0?(Ee>0&&(Ce.lastNeed=Ee-1),Ee):--Oe<Me||Ee===-2?0:(Ee=me(je[Oe]),Ee>=0?(Ee>0&&(Ce.lastNeed=Ee-2),Ee):--Oe<Me||Ee===-2?0:(Ee=me(je[Oe]),Ee>=0?(Ee>0&&(Ee===2?Ee=0:Ce.lastNeed=Ee-3),Ee):0))}function ae(Ce,je,Me){if((je[0]&192)!==128)return Ce.lastNeed=0,"\uFFFD";if(Ce.lastNeed>1&&je.length>1){if((je[1]&192)!==128)return Ce.lastNeed=1,"\uFFFD";if(Ce.lastNeed>2&&je.length>2&&(je[2]&192)!==128)return Ce.lastNeed=2,"\uFFFD"}}function ue(Ce){var je=this.lastTotal-this.lastNeed,Me=ae(this,Ce,je);if(Me!==void 0)return Me;if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,je,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,je,0,Ce.length),this.lastNeed-=Ce.length}function de(Ce,je){var Me=te(this,Ce,je);if(!this.lastNeed)return Ce.toString("utf8",je);this.lastTotal=Me;var Oe=Ce.length-(Me-this.lastNeed);return Ce.copy(this.lastChar,0,Oe),Ce.toString("utf8",je,Oe)}function he(Ce){var je=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?je+"\uFFFD":je}function we(Ce,je){if((Ce.length-je)%2===0){var Me=Ce.toString("utf16le",je);if(Me){var Oe=Me.charCodeAt(Me.length-1);if(Oe>=55296&&Oe<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1],Me.slice(0,-1)}return Me}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Ce[Ce.length-1],Ce.toString("utf16le",je,Ce.length-1)}function Se(Ce){var je=Ce&&Ce.length?this.write(Ce):"";if(this.lastNeed){var Me=this.lastTotal-this.lastNeed;return je+this.lastChar.toString("utf16le",0,Me)}return je}function xe(Ce,je){var Me=(Ce.length-je)%3;return Me===0?Ce.toString("base64",je):(this.lastNeed=3-Me,this.lastTotal=3,Me===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",je,Ce.length-Me))}function ye(Ce){var je=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?je+this.lastChar.toString("base64",0,3-this.lastNeed):je}function Ae(Ce){return Ce.toString(this.encoding)}function Le(Ce){return Ce&&Ce.length?this.write(Ce):""}},{"safe-buffer":396}],414:[function(x,De,ve){(function(re,ne){(function(){var ie=x("process/browser.js").nextTick,oe=Function.prototype.apply,se=Array.prototype.slice,me={},te=0;ve.setTimeout=function(){return new ae(oe.call(setTimeout,window,arguments),clearTimeout)},ve.setInterval=function(){return new ae(oe.call(setInterval,window,arguments),clearInterval)},ve.clearTimeout=ve.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)},ve.enroll=function(ue,de){clearTimeout(ue._idleTimeoutId),ue._idleTimeout=de},ve.unenroll=function(ue){clearTimeout(ue._idleTimeoutId),ue._idleTimeout=-1},ve._unrefActive=ve.active=function(ue){clearTimeout(ue._idleTimeoutId);var de=ue._idleTimeout;de>=0&&(ue._idleTimeoutId=setTimeout(function(){ue._onTimeout&&ue._onTimeout()},de))},ve.setImmediate=typeof re=="function"?re:function(ue){var de=te++,he=arguments.length<2?!1:se.call(arguments,1);return me[de]=!0,ie(function(){me[de]&&(he?ue.apply(null,he):ue.call(null),ve.clearImmediate(de))}),de},ve.clearImmediate=typeof ne=="function"?ne:function(ue){delete me[ue]}}).call(this)}).call(this,x("timers").setImmediate,x("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(x,De,ve){var re=x("buffer").Buffer;De.exports=function(ne){if(ne instanceof Uint8Array){if(ne.byteOffset===0&&ne.byteLength===ne.buffer.byteLength)return ne.buffer;if(typeof ne.buffer.slice=="function")return ne.buffer.slice(ne.byteOffset,ne.byteOffset+ne.byteLength)}if(re.isBuffer(ne)){for(var ie=new Uint8Array(ne.length),oe=ne.length,se=0;se<oe;se++)ie[se]=ne[se];return ie.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(x,De,ve){(function(re){(function(){De.exports=ne;function ne(oe,se){if(ie("noDeprecation"))return oe;var me=!1;function te(){if(!me){if(ie("throwDeprecation"))throw new Error(se);ie("traceDeprecation")?console.trace(se):console.warn(se),me=!0}return oe.apply(this,arguments)}return te}function ie(oe){try{if(!re.localStorage)return!1}catch(me){return!1}var se=re.localStorage[oe];return se==null?!1:String(se).toLowerCase()==="true"}}).call(this)}).call(this,typeof Ht!="undefined"?Ht:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(x,De,ve){arguments[4][84][0].apply(ve,arguments)},{dup:84}],418:[function(x,De,ve){"use strict";var re=x("is-arguments"),ne=x("is-generator-function"),ie=x("which-typed-array"),oe=x("is-typed-array");function se(Je){return Je.call.bind(Je)}var me=typeof BigInt!="undefined",te=typeof Symbol!="undefined",ae=se(Object.prototype.toString),ue=se(Number.prototype.valueOf),de=se(String.prototype.valueOf),he=se(Boolean.prototype.valueOf);if(me)var we=se(BigInt.prototype.valueOf);if(te)var Se=se(Symbol.prototype.valueOf);function xe(Je,dt){if(typeof Je!="object")return!1;try{return dt(Je),!0}catch(bt){return!1}}ve.isArgumentsObject=re,ve.isGeneratorFunction=ne,ve.isTypedArray=oe;function ye(Je){return typeof Promise!="undefined"&&Je instanceof Promise||Je!==null&&typeof Je=="object"&&typeof Je.then=="function"&&typeof Je.catch=="function"}ve.isPromise=ye;function Ae(Je){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Je):oe(Je)||it(Je)}ve.isArrayBufferView=Ae;function Le(Je){return ie(Je)==="Uint8Array"}ve.isUint8Array=Le;function Ce(Je){return ie(Je)==="Uint8ClampedArray"}ve.isUint8ClampedArray=Ce;function je(Je){return ie(Je)==="Uint16Array"}ve.isUint16Array=je;function Me(Je){return ie(Je)==="Uint32Array"}ve.isUint32Array=Me;function Oe(Je){return ie(Je)==="Int8Array"}ve.isInt8Array=Oe;function Ee(Je){return ie(Je)==="Int16Array"}ve.isInt16Array=Ee;function Ne(Je){return ie(Je)==="Int32Array"}ve.isInt32Array=Ne;function _e(Je){return ie(Je)==="Float32Array"}ve.isFloat32Array=_e;function Ze(Je){return ie(Je)==="Float64Array"}ve.isFloat64Array=Ze;function Pe(Je){return ie(Je)==="BigInt64Array"}ve.isBigInt64Array=Pe;function Ue(Je){return ie(Je)==="BigUint64Array"}ve.isBigUint64Array=Ue;function Qe(Je){return ae(Je)==="[object Map]"}Qe.working=typeof Map!="undefined"&&Qe(new Map);function tt(Je){return typeof Map=="undefined"?!1:Qe.working?Qe(Je):Je instanceof Map}ve.isMap=tt;function at(Je){return ae(Je)==="[object Set]"}at.working=typeof Set!="undefined"&&at(new Set);function lt(Je){return typeof Set=="undefined"?!1:at.working?at(Je):Je instanceof Set}ve.isSet=lt;function Ve(Je){return ae(Je)==="[object WeakMap]"}Ve.working=typeof WeakMap!="undefined"&&Ve(new WeakMap);function Xe(Je){return typeof WeakMap=="undefined"?!1:Ve.working?Ve(Je):Je instanceof WeakMap}ve.isWeakMap=Xe;function nt(Je){return ae(Je)==="[object WeakSet]"}nt.working=typeof WeakSet!="undefined"&&nt(new WeakSet);function ct(Je){return nt(Je)}ve.isWeakSet=ct;function ot(Je){return ae(Je)==="[object ArrayBuffer]"}ot.working=typeof ArrayBuffer!="undefined"&&ot(new ArrayBuffer);function et(Je){return typeof ArrayBuffer=="undefined"?!1:ot.working?ot(Je):Je instanceof ArrayBuffer}ve.isArrayBuffer=et;function qe(Je){return ae(Je)==="[object DataView]"}qe.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&qe(new DataView(new ArrayBuffer(1),0,1));function it(Je){return typeof DataView=="undefined"?!1:qe.working?qe(Je):Je instanceof DataView}ve.isDataView=it;var yt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function pt(Je){return ae(Je)==="[object SharedArrayBuffer]"}function Dt(Je){return typeof yt=="undefined"?!1:(typeof pt.working=="undefined"&&(pt.working=pt(new yt)),pt.working?pt(Je):Je instanceof yt)}ve.isSharedArrayBuffer=Dt;function At(Je){return ae(Je)==="[object AsyncFunction]"}ve.isAsyncFunction=At;function st(Je){return ae(Je)==="[object Map Iterator]"}ve.isMapIterator=st;function Ge(Je){return ae(Je)==="[object Set Iterator]"}ve.isSetIterator=Ge;function We(Je){return ae(Je)==="[object Generator]"}ve.isGeneratorObject=We;function le(Je){return ae(Je)==="[object WebAssembly.Module]"}ve.isWebAssemblyCompiledModule=le;function fe(Je){return xe(Je,ue)}ve.isNumberObject=fe;function ze(Je){return xe(Je,de)}ve.isStringObject=ze;function He(Je){return xe(Je,he)}ve.isBooleanObject=He;function pe(Je){return me&&xe(Je,we)}ve.isBigIntObject=pe;function Ie(Je){return te&&xe(Je,Se)}ve.isSymbolObject=Ie;function Ke(Je){return fe(Je)||ze(Je)||He(Je)||pe(Je)||Ie(Je)}ve.isBoxedPrimitive=Ke;function Ye(Je){return typeof Uint8Array!="undefined"&&(et(Je)||Dt(Je))}ve.isAnyArrayBuffer=Ye,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Je){Object.defineProperty(ve,Je,{enumerable:!1,value:function(){throw new Error(Je+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(x,De,ve){(function(re){(function(){var ne=Object.getOwnPropertyDescriptors||function(yt){for(var pt=Object.keys(yt),Dt={},At=0;At<pt.length;At++)Dt[pt[At]]=Object.getOwnPropertyDescriptor(yt,pt[At]);return Dt},ie=/%[sdj%]/g;ve.format=function(it){if(!Ee(it)){for(var yt=[],pt=0;pt<arguments.length;pt++)yt.push(te(arguments[pt]));return yt.join(" ")}for(var pt=1,Dt=arguments,At=Dt.length,st=String(it).replace(ie,function(We){if(We==="%%")return"%";if(pt>=At)return We;switch(We){case"%s":return String(Dt[pt++]);case"%d":return Number(Dt[pt++]);case"%j":try{return JSON.stringify(Dt[pt++])}catch(le){return"[Circular]"}default:return We}}),Ge=Dt[pt];pt<At;Ge=Dt[++pt])je(Ge)||!Pe(Ge)?st+=" "+Ge:st+=" "+te(Ge);return st},ve.deprecate=function(it,yt){if(typeof re!="undefined"&&re.noDeprecation===!0)return it;if(typeof re=="undefined")return function(){return ve.deprecate(it,yt).apply(this,arguments)};var pt=!1;function Dt(){if(!pt){if(re.throwDeprecation)throw new Error(yt);re.traceDeprecation?console.trace(yt):console.error(yt),pt=!0}return it.apply(this,arguments)}return Dt};var oe={},se=/^$/;if(re.env.NODE_DEBUG){var me=re.env.NODE_DEBUG;me=me.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),se=new RegExp("^"+me+"$","i")}ve.debuglog=function(it){if(it=it.toUpperCase(),!oe[it])if(se.test(it)){var yt=re.pid;oe[it]=function(){var pt=ve.format.apply(ve,arguments);console.error("%s %d: %s",it,yt,pt)}}else oe[it]=function(){};return oe[it]};function te(it,yt){var pt={seen:[],stylize:ue};return arguments.length>=3&&(pt.depth=arguments[2]),arguments.length>=4&&(pt.colors=arguments[3]),Ce(yt)?pt.showHidden=yt:yt&&ve._extend(pt,yt),_e(pt.showHidden)&&(pt.showHidden=!1),_e(pt.depth)&&(pt.depth=2),_e(pt.colors)&&(pt.colors=!1),_e(pt.customInspect)&&(pt.customInspect=!0),pt.colors&&(pt.stylize=ae),he(pt,it,pt.depth)}ve.inspect=te,te.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]},te.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ae(it,yt){var pt=te.styles[yt];return pt?"\x1B["+te.colors[pt][0]+"m"+it+"\x1B["+te.colors[pt][1]+"m":it}function ue(it,yt){return it}function de(it){var yt={};return it.forEach(function(pt,Dt){yt[pt]=!0}),yt}function he(it,yt,pt){if(it.customInspect&&yt&&tt(yt.inspect)&&yt.inspect!==ve.inspect&&!(yt.constructor&&yt.constructor.prototype===yt)){var Dt=yt.inspect(pt,it);return Ee(Dt)||(Dt=he(it,Dt,pt)),Dt}var At=we(it,yt);if(At)return At;var st=Object.keys(yt),Ge=de(st);if(it.showHidden&&(st=Object.getOwnPropertyNames(yt)),Qe(yt)&&(st.indexOf("message")>=0||st.indexOf("description")>=0))return Se(yt);if(st.length===0){if(tt(yt)){var We=yt.name?": "+yt.name:"";return it.stylize("[Function"+We+"]","special")}if(Ze(yt))return it.stylize(RegExp.prototype.toString.call(yt),"regexp");if(Ue(yt))return it.stylize(Date.prototype.toString.call(yt),"date");if(Qe(yt))return Se(yt)}var le="",fe=!1,ze=["{","}"];if(Le(yt)&&(fe=!0,ze=["[","]"]),tt(yt)){var He=yt.name?": "+yt.name:"";le=" [Function"+He+"]"}if(Ze(yt)&&(le=" "+RegExp.prototype.toString.call(yt)),Ue(yt)&&(le=" "+Date.prototype.toUTCString.call(yt)),Qe(yt)&&(le=" "+Se(yt)),st.length===0&&(!fe||yt.length==0))return ze[0]+le+ze[1];if(pt<0)return Ze(yt)?it.stylize(RegExp.prototype.toString.call(yt),"regexp"):it.stylize("[Object]","special");it.seen.push(yt);var pe;return fe?pe=xe(it,yt,pt,Ge,st):pe=st.map(function(Ie){return ye(it,yt,pt,Ge,Ie,fe)}),it.seen.pop(),Ae(pe,le,ze)}function we(it,yt){if(_e(yt))return it.stylize("undefined","undefined");if(Ee(yt)){var pt="'"+JSON.stringify(yt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return it.stylize(pt,"string")}if(Oe(yt))return it.stylize(""+yt,"number");if(Ce(yt))return it.stylize(""+yt,"boolean");if(je(yt))return it.stylize("null","null")}function Se(it){return"["+Error.prototype.toString.call(it)+"]"}function xe(it,yt,pt,Dt,At){for(var st=[],Ge=0,We=yt.length;Ge<We;++Ge)ct(yt,String(Ge))?st.push(ye(it,yt,pt,Dt,String(Ge),!0)):st.push("");return At.forEach(function(le){le.match(/^\d+$/)||st.push(ye(it,yt,pt,Dt,le,!0))}),st}function ye(it,yt,pt,Dt,At,st){var Ge,We,le;if(le=Object.getOwnPropertyDescriptor(yt,At)||{value:yt[At]},le.get?le.set?We=it.stylize("[Getter/Setter]","special"):We=it.stylize("[Getter]","special"):le.set&&(We=it.stylize("[Setter]","special")),ct(Dt,At)||(Ge="["+At+"]"),We||(it.seen.indexOf(le.value)<0?(je(pt)?We=he(it,le.value,null):We=he(it,le.value,pt-1),We.indexOf(`
|
|
|
`)>-1&&(st?We=We.split(`
|
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
|
`).slice(2):We=`
|
|
|
`+We.split(`
|
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
|
`))):We=it.stylize("[Circular]","special")),_e(Ge)){if(st&&At.match(/^\d+$/))return We;Ge=JSON.stringify(""+At),Ge.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ge=Ge.slice(1,-1),Ge=it.stylize(Ge,"name")):(Ge=Ge.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ge=it.stylize(Ge,"string"))}return Ge+": "+We}function Ae(it,yt,pt){var Dt=0,At=it.reduce(function(st,Ge){return Dt++,Ge.indexOf(`
|
|
|
`)>=0&&Dt++,st+Ge.replace(/\u001b\[\d\d?m/g,"").length+1},0);return At>60?pt[0]+(yt===""?"":yt+`
|
|
|
`)+" "+it.join(`,
|
|
|
`)+" "+pt[1]:pt[0]+yt+" "+it.join(", ")+" "+pt[1]}ve.types=x("./support/types");function Le(it){return Array.isArray(it)}ve.isArray=Le;function Ce(it){return typeof it=="boolean"}ve.isBoolean=Ce;function je(it){return it===null}ve.isNull=je;function Me(it){return it==null}ve.isNullOrUndefined=Me;function Oe(it){return typeof it=="number"}ve.isNumber=Oe;function Ee(it){return typeof it=="string"}ve.isString=Ee;function Ne(it){return typeof it=="symbol"}ve.isSymbol=Ne;function _e(it){return it===void 0}ve.isUndefined=_e;function Ze(it){return Pe(it)&<(it)==="[object RegExp]"}ve.isRegExp=Ze,ve.types.isRegExp=Ze;function Pe(it){return typeof it=="object"&&it!==null}ve.isObject=Pe;function Ue(it){return Pe(it)&<(it)==="[object Date]"}ve.isDate=Ue,ve.types.isDate=Ue;function Qe(it){return Pe(it)&&(lt(it)==="[object Error]"||it instanceof Error)}ve.isError=Qe,ve.types.isNativeError=Qe;function tt(it){return typeof it=="function"}ve.isFunction=tt;function at(it){return it===null||typeof it=="boolean"||typeof it=="number"||typeof it=="string"||typeof it=="symbol"||typeof it=="undefined"}ve.isPrimitive=at,ve.isBuffer=x("./support/isBuffer");function lt(it){return Object.prototype.toString.call(it)}function Ve(it){return it<10?"0"+it.toString(10):it.toString(10)}var Xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function nt(){var it=new Date,yt=[Ve(it.getHours()),Ve(it.getMinutes()),Ve(it.getSeconds())].join(":");return[it.getDate(),Xe[it.getMonth()],yt].join(" ")}ve.log=function(){console.log("%s - %s",nt(),ve.format.apply(ve,arguments))},ve.inherits=x("inherits"),ve._extend=function(it,yt){if(!yt||!Pe(yt))return it;for(var pt=Object.keys(yt),Dt=pt.length;Dt--;)it[pt[Dt]]=yt[pt[Dt]];return it};function ct(it,yt){return Object.prototype.hasOwnProperty.call(it,yt)}var ot=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ve.promisify=function(yt){if(typeof yt!="function")throw new TypeError('The "original" argument must be of type Function');if(ot&&yt[ot]){var pt=yt[ot];if(typeof pt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(pt,ot,{value:pt,enumerable:!1,writable:!1,configurable:!0}),pt}function pt(){for(var Dt,At,st=new Promise(function(le,fe){Dt=le,At=fe}),Ge=[],We=0;We<arguments.length;We++)Ge.push(arguments[We]);Ge.push(function(le,fe){le?At(le):Dt(fe)});try{yt.apply(this,Ge)}catch(le){At(le)}return st}return Object.setPrototypeOf(pt,Object.getPrototypeOf(yt)),ot&&Object.defineProperty(pt,ot,{value:pt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(pt,ne(yt))},ve.promisify.custom=ot;function et(it,yt){if(!it){var pt=new Error("Promise was rejected with a falsy value");pt.reason=it,it=pt}return yt(it)}function qe(it){if(typeof it!="function")throw new TypeError('The "original" argument must be of type Function');function yt(){for(var pt=[],Dt=0;Dt<arguments.length;Dt++)pt.push(arguments[Dt]);var At=pt.pop();if(typeof At!="function")throw new TypeError("The last argument must be of type Function");var st=this,Ge=function(){return At.apply(st,arguments)};it.apply(this,pt).then(function(We){re.nextTick(Ge.bind(null,null,We))},function(We){re.nextTick(et.bind(null,We,Ge))})}return Object.setPrototypeOf(yt,Object.getPrototypeOf(it)),Object.defineProperties(yt,ne(it)),yt}ve.callbackify=qe}).call(this)}).call(this,x("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(x,De,ve){(function(re){(function(){"use strict";var ne=x("for-each"),ie=x("available-typed-arrays"),oe=x("call-bind"),se=x("call-bind/callBound"),me=x("gopd"),te=se("Object.prototype.toString"),ae=x("has-tostringtag/shams")(),ue=typeof globalThis=="undefined"?re:globalThis,de=ie(),he=se("String.prototype.slice"),we=Object.getPrototypeOf,Se=se("Array.prototype.indexOf",!0)||function(Ce,je){for(var Me=0;Me<Ce.length;Me+=1)if(Ce[Me]===je)return Me;return-1},xe={__proto__:null};ae&&me&&we?ne(de,function(Le){var Ce=new ue[Le];if(Symbol.toStringTag in Ce){var je=we(Ce),Me=me(je,Symbol.toStringTag);if(!Me){var Oe=we(je);Me=me(Oe,Symbol.toStringTag)}xe["$"+Le]=oe(Me.get)}}):ne(de,function(Le){var Ce=new ue[Le];xe["$"+Le]=oe(Ce.slice)});var ye=function(Ce){var je=!1;return ne(xe,function(Me,Oe){if(!je)try{"$"+Me(Ce)===Oe&&(je=he(Oe,1))}catch(Ee){}}),je},Ae=function(Ce){var je=!1;return ne(xe,function(Me,Oe){if(!je)try{Me(Ce),je=he(Oe,1)}catch(Ee){}}),je};De.exports=function(Ce){if(!Ce||typeof Ce!="object")return!1;if(!ae){var je=he(te(Ce),8,-1);return Se(de,je)>-1?je:je!=="Object"?!1:Ae(Ce)}return me?ye(Ce):null}}).call(this)}).call(this,typeof Ht!="undefined"?Ht: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,De,ve){(function(){"use strict";ve.stripBOM=function(re){return re[0]==="\uFEFF"?re.substring(1):re}}).call(this)},{}],422:[function(x,De,ve){(function(){"use strict";var re,ne,ie,oe,se,me={}.hasOwnProperty;re=x("xmlbuilder"),ne=x("./defaults").defaults,oe=function(te){return typeof te=="string"&&(te.indexOf("&")>=0||te.indexOf(">")>=0||te.indexOf("<")>=0)},se=function(te){return"<![CDATA["+ie(te)+"]]>"},ie=function(te){return te.replace("]]>","]]]]><![CDATA[>")},ve.Builder=function(){function te(ae){var ue,de,he;this.options={},de=ne["0.2"];for(ue in de)me.call(de,ue)&&(he=de[ue],this.options[ue]=he);for(ue in ae)me.call(ae,ue)&&(he=ae[ue],this.options[ue]=he)}return te.prototype.buildObject=function(ae){var ue,de,he,we,Se;return ue=this.options.attrkey,de=this.options.charkey,Object.keys(ae).length===1&&this.options.rootName===ne["0.2"].rootName?(Se=Object.keys(ae)[0],ae=ae[Se]):Se=this.options.rootName,he=function(xe){return function(ye,Ae){var Le,Ce,je,Me,Oe,Ee;if(typeof Ae!="object")xe.options.cdata&&oe(Ae)?ye.raw(se(Ae)):ye.txt(Ae);else if(Array.isArray(Ae)){for(Me in Ae)if(me.call(Ae,Me)){Ce=Ae[Me];for(Oe in Ce)je=Ce[Oe],ye=he(ye.ele(Oe),je).up()}}else for(Oe in Ae)if(me.call(Ae,Oe))if(Ce=Ae[Oe],Oe===ue){if(typeof Ce=="object")for(Le in Ce)Ee=Ce[Le],ye=ye.att(Le,Ee)}else if(Oe===de)xe.options.cdata&&oe(Ce)?ye=ye.raw(se(Ce)):ye=ye.txt(Ce);else if(Array.isArray(Ce))for(Me in Ce)me.call(Ce,Me)&&(je=Ce[Me],typeof je=="string"?xe.options.cdata&&oe(je)?ye=ye.ele(Oe).raw(se(je)).up():ye=ye.ele(Oe,je).up():ye=he(ye.ele(Oe),je).up());else typeof Ce=="object"?ye=he(ye.ele(Oe),Ce).up():typeof Ce=="string"&&xe.options.cdata&&oe(Ce)?ye=ye.ele(Oe).raw(se(Ce)).up():(Ce==null&&(Ce=""),ye=ye.ele(Oe,Ce.toString()).up());return ye}}(this),we=re.create(Se,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),he(we,ae).end(this.options.renderOpts)},te}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(x,De,ve){(function(){ve.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,De,ve){(function(){"use strict";var re,ne,ie,oe,se,me,te,ae,ue,de=function(Se,xe){return function(){return Se.apply(xe,arguments)}},he=function(Se,xe){for(var ye in xe)we.call(xe,ye)&&(Se[ye]=xe[ye]);function Ae(){this.constructor=Se}return Ae.prototype=xe.prototype,Se.prototype=new Ae,Se.__super__=xe.prototype,Se},we={}.hasOwnProperty;ae=x("sax"),oe=x("events"),re=x("./bom"),te=x("./processors"),ue=x("timers").setImmediate,ne=x("./defaults").defaults,se=function(Se){return typeof Se=="object"&&Se!=null&&Object.keys(Se).length===0},me=function(Se,xe,ye){var Ae,Le,Ce;for(Ae=0,Le=Se.length;Ae<Le;Ae++)Ce=Se[Ae],xe=Ce(xe,ye);return xe},ie=function(Se,xe,ye){var Ae;return Ae=Object.create(null),Ae.value=ye,Ae.writable=!0,Ae.enumerable=!0,Ae.configurable=!0,Object.defineProperty(Se,xe,Ae)},ve.Parser=function(Se){he(xe,Se);function xe(ye){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 Ae,Le,Ce;if(!(this instanceof ve.Parser))return new ve.Parser(ye);this.options={},Le=ne["0.2"];for(Ae in Le)we.call(Le,Ae)&&(Ce=Le[Ae],this.options[Ae]=Ce);for(Ae in ye)we.call(ye,Ae)&&(Ce=ye[Ae],this.options[Ae]=Ce);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(te.normalize)),this.reset()}return xe.prototype.processAsync=function(){var ye,Ae;try{return this.remaining.length<=this.options.chunkSize?(ye=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ye),this.saxParser.close()):(ye=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ye),ue(this.processAsync))}catch(Le){if(Ae=Le,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(Ae)}},xe.prototype.assignOrPush=function(ye,Ae,Le){return Ae in ye?(ye[Ae]instanceof Array||ie(ye,Ae,[ye[Ae]]),ye[Ae].push(Le)):this.options.explicitArray?ie(ye,Ae,[Le]):ie(ye,Ae,Le)},xe.prototype.reset=function(){var ye,Ae,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(je){return function(Me){if(je.saxParser.resume(),!je.saxParser.errThrown)return je.saxParser.errThrown=!0,je.emit("error",Me)}}(this),this.saxParser.onend=function(je){return function(){if(!je.saxParser.ended)return je.saxParser.ended=!0,je.emit("end",je.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Ce=[],ye=this.options.attrkey,Ae=this.options.charkey,this.saxParser.onopentag=function(je){return function(Me){var Oe,Ee,Ne,_e,Ze;if(Ne={},Ne[Ae]="",!je.options.ignoreAttrs){Ze=Me.attributes;for(Oe in Ze)we.call(Ze,Oe)&&(!(ye in Ne)&&!je.options.mergeAttrs&&(Ne[ye]={}),Ee=je.options.attrValueProcessors?me(je.options.attrValueProcessors,Me.attributes[Oe],Oe):Me.attributes[Oe],_e=je.options.attrNameProcessors?me(je.options.attrNameProcessors,Oe):Oe,je.options.mergeAttrs?je.assignOrPush(Ne,_e,Ee):ie(Ne[ye],_e,Ee))}return Ne["#name"]=je.options.tagNameProcessors?me(je.options.tagNameProcessors,Me.name):Me.name,je.options.xmlns&&(Ne[je.options.xmlnskey]={uri:Me.uri,local:Me.local}),Ce.push(Ne)}}(this),this.saxParser.onclosetag=function(je){return function(){var Me,Oe,Ee,Ne,_e,Ze,Pe,Ue,Qe,tt;if(Ze=Ce.pop(),_e=Ze["#name"],(!je.options.explicitChildren||!je.options.preserveChildrenOrder)&&delete Ze["#name"],Ze.cdata===!0&&(Me=Ze.cdata,delete Ze.cdata),Qe=Ce[Ce.length-1],Ze[Ae].match(/^\s*$/)&&!Me?(Oe=Ze[Ae],delete Ze[Ae]):(je.options.trim&&(Ze[Ae]=Ze[Ae].trim()),je.options.normalize&&(Ze[Ae]=Ze[Ae].replace(/\s{2,}/g," ").trim()),Ze[Ae]=je.options.valueProcessors?me(je.options.valueProcessors,Ze[Ae],_e):Ze[Ae],Object.keys(Ze).length===1&&Ae in Ze&&!je.EXPLICIT_CHARKEY&&(Ze=Ze[Ae])),se(Ze)&&(typeof je.options.emptyTag=="function"?Ze=je.options.emptyTag():Ze=je.options.emptyTag!==""?je.options.emptyTag:Oe),je.options.validator!=null&&(tt="/"+function(){var at,lt,Ve;for(Ve=[],at=0,lt=Ce.length;at<lt;at++)Ne=Ce[at],Ve.push(Ne["#name"]);return Ve}().concat(_e).join("/"),function(){var at;try{return Ze=je.options.validator(tt,Qe&&Qe[_e],Ze)}catch(lt){return at=lt,je.emit("error",at)}}()),je.options.explicitChildren&&!je.options.mergeAttrs&&typeof Ze=="object"){if(!je.options.preserveChildrenOrder)Ne={},je.options.attrkey in Ze&&(Ne[je.options.attrkey]=Ze[je.options.attrkey],delete Ze[je.options.attrkey]),!je.options.charsAsChildren&&je.options.charkey in Ze&&(Ne[je.options.charkey]=Ze[je.options.charkey],delete Ze[je.options.charkey]),Object.getOwnPropertyNames(Ze).length>0&&(Ne[je.options.childkey]=Ze),Ze=Ne;else if(Qe){Qe[je.options.childkey]=Qe[je.options.childkey]||[],Pe={};for(Ee in Ze)we.call(Ze,Ee)&&ie(Pe,Ee,Ze[Ee]);Qe[je.options.childkey].push(Pe),delete Ze["#name"],Object.keys(Ze).length===1&&Ae in Ze&&!je.EXPLICIT_CHARKEY&&(Ze=Ze[Ae])}}return Ce.length>0?je.assignOrPush(Qe,_e,Ze):(je.options.explicitRoot&&(Ue=Ze,Ze={},ie(Ze,_e,Ue)),je.resultObject=Ze,je.saxParser.ended=!0,je.emit("end",je.resultObject))}}(this),Le=function(je){return function(Me){var Oe,Ee;if(Ee=Ce[Ce.length-1],Ee)return Ee[Ae]+=Me,je.options.explicitChildren&&je.options.preserveChildrenOrder&&je.options.charsAsChildren&&(je.options.includeWhiteChars||Me.replace(/\\n/g,"").trim()!=="")&&(Ee[je.options.childkey]=Ee[je.options.childkey]||[],Oe={"#name":"__text__"},Oe[Ae]=Me,je.options.normalize&&(Oe[Ae]=Oe[Ae].replace(/\s{2,}/g," ").trim()),Ee[je.options.childkey].push(Oe)),Ee}}(this),this.saxParser.ontext=Le,this.saxParser.oncdata=function(je){return function(Me){var Oe;if(Oe=Le(Me),Oe)return Oe.cdata=!0}}(this)},xe.prototype.parseString=function(ye,Ae){var Le;Ae!=null&&typeof Ae=="function"&&(this.on("end",function(Ce){return this.reset(),Ae(null,Ce)}),this.on("error",function(Ce){return this.reset(),Ae(Ce)}));try{return ye=ye.toString(),ye.trim()===""?(this.emit("end",null),!0):(ye=re.stripBOM(ye),this.options.async?(this.remaining=ye,ue(this.processAsync),this.saxParser):this.saxParser.write(ye).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}},xe.prototype.parseStringPromise=function(ye){return new Promise(function(Ae){return function(Le,Ce){return Ae.parseString(ye,function(je,Me){return je?Ce(je):Le(Me)})}}(this))},xe}(oe),ve.parseString=function(Se,xe,ye){var Ae,Le,Ce;return ye!=null?(typeof ye=="function"&&(Ae=ye),typeof xe=="object"&&(Le=xe)):(typeof xe=="function"&&(Ae=xe),Le={}),Ce=new ve.Parser(Le),Ce.parseString(Se,Ae)},ve.parseStringPromise=function(Se,xe){var ye,Ae;return typeof xe=="object"&&(ye=xe),Ae=new ve.Parser(ye),Ae.parseStringPromise(Se)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(x,De,ve){(function(){"use strict";var re;re=new RegExp(/(?!xmlns)^.*:/),ve.normalize=function(ne){return ne.toLowerCase()},ve.firstCharLowerCase=function(ne){return ne.charAt(0).toLowerCase()+ne.slice(1)},ve.stripPrefix=function(ne){return ne.replace(re,"")},ve.parseNumbers=function(ne){return isNaN(ne)||(ne=ne%1===0?parseInt(ne,10):parseFloat(ne)),ne},ve.parseBooleans=function(ne){return/^(?:true|false)$/i.test(ne)&&(ne=ne.toLowerCase()==="true"),ne}}).call(this)},{}],426:[function(x,De,ve){(function(){"use strict";var re,ne,ie,oe,se=function(te,ae){for(var ue in ae)me.call(ae,ue)&&(te[ue]=ae[ue]);function de(){this.constructor=te}return de.prototype=ae.prototype,te.prototype=new de,te.__super__=ae.prototype,te},me={}.hasOwnProperty;ne=x("./defaults"),re=x("./builder"),ie=x("./parser"),oe=x("./processors"),ve.defaults=ne.defaults,ve.processors=oe,ve.ValidationError=function(te){se(ae,te);function ae(ue){this.message=ue}return ae}(Error),ve.Builder=re.Builder,ve.Parser=ie.Parser,ve.parseString=ie.parseString,ve.parseStringPromise=ie.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(x,De,ve){(function(){De.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(x,De,ve){(function(){De.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,De,ve){(function(){var re,ne,ie,oe,se,me,te,ae=[].slice,ue={}.hasOwnProperty;re=function(){var de,he,we,Se,xe,ye;if(ye=arguments[0],xe=2<=arguments.length?ae.call(arguments,1):[],se(Object.assign))Object.assign.apply(null,arguments);else for(de=0,we=xe.length;de<we;de++)if(Se=xe[de],Se!=null)for(he in Se)ue.call(Se,he)&&(ye[he]=Se[he]);return ye},se=function(de){return!!de&&Object.prototype.toString.call(de)==="[object Function]"},me=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},te=function(de){var he,we;return me(de)&&(we=Object.getPrototypeOf(de))&&(he=we.constructor)&&typeof he=="function"&&he instanceof he&&Function.prototype.toString.call(he)===Function.prototype.toString.call(Object)},ne=function(de){return se(de.valueOf)?de.valueOf():de},De.exports.assign=re,De.exports.isFunction=se,De.exports.isObject=me,De.exports.isArray=ie,De.exports.isEmpty=oe,De.exports.isPlainObject=te,De.exports.getValue=ne}).call(this)},{}],430:[function(x,De,ve){(function(){De.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(x,De,ve){(function(){var re,ne,ie;re=x("./NodeType"),ie=x("./XMLNode"),De.exports=ne=function(){function oe(se,me,te){if(this.parent=se,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),me==null)throw new Error("Missing attribute name. "+this.debugInfo(me));this.name=this.stringify.name(me),this.value=this.stringify.attValue(te),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,De,ve){(function(){var re,ne,ie,oe=function(me,te){for(var ae in te)se.call(te,ae)&&(me[ae]=te[ae]);function ue(){this.constructor=me}return ue.prototype=te.prototype,me.prototype=new ue,me.__super__=te.prototype,me},se={}.hasOwnProperty;re=x("./NodeType"),ie=x("./XMLCharacterData"),De.exports=ne=function(me){oe(te,me);function te(ae,ue){if(te.__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 te.prototype.clone=function(){return Object.create(this)},te.prototype.toString=function(ae){return this.options.writer.cdata(this,this.options.writer.filterOptions(ae))},te}(ie)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(x,De,ve){(function(){var re,ne,ie=function(se,me){for(var te in me)oe.call(me,te)&&(se[te]=me[te]);function ae(){this.constructor=se}return ae.prototype=me.prototype,se.prototype=new ae,se.__super__=me.prototype,se},oe={}.hasOwnProperty;ne=x("./XMLNode"),De.exports=re=function(se){ie(me,se);function me(te){me.__super__.constructor.call(this,te),this.value=""}return Object.defineProperty(me.prototype,"data",{get:function(){return this.value},set:function(te){return this.value=te||""}}),Object.defineProperty(me.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(me.prototype,"textContent",{get:function(){return this.value},set:function(te){return this.value=te||""}}),me.prototype.clone=function(){return Object.create(this)},me.prototype.substringData=function(te,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.appendData=function(te){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.insertData=function(te,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.deleteData=function(te,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.replaceData=function(te,ae,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.isEqualNode=function(te){return!(!me.__super__.isEqualNode.apply(this,arguments).isEqualNode(te)||te.data!==this.data)},me}(ne)}).call(this)},{"./XMLNode":450}],434:[function(x,De,ve){(function(){var re,ne,ie,oe=function(me,te){for(var ae in te)se.call(te,ae)&&(me[ae]=te[ae]);function ue(){this.constructor=me}return ue.prototype=te.prototype,me.prototype=new ue,me.__super__=te.prototype,me},se={}.hasOwnProperty;re=x("./NodeType"),ne=x("./XMLCharacterData"),De.exports=ie=function(me){oe(te,me);function te(ae,ue){if(te.__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 te.prototype.clone=function(){return Object.create(this)},te.prototype.toString=function(ae){return this.options.writer.comment(this,this.options.writer.filterOptions(ae))},te}(ne)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(x,De,ve){(function(){var re,ne,ie;ne=x("./XMLDOMErrorHandler"),ie=x("./XMLDOMStringList"),De.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 ne,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,me){return!0},oe.prototype.setParameter=function(se,me){return me!=null?this.params[se]=me:delete this.params[se]},oe}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(x,De,ve){(function(){var re;De.exports=re=function(){function ne(){}return ne.prototype.handleError=function(ie){throw new Error(ie)},ne}()}).call(this)},{}],437:[function(x,De,ve){(function(){var re;De.exports=re=function(){function ne(){}return ne.prototype.hasFeature=function(ie,oe){return!0},ne.prototype.createDocumentType=function(ie,oe,se){throw new Error("This DOM method is not implemented.")},ne.prototype.createDocument=function(ie,oe,se){throw new Error("This DOM method is not implemented.")},ne.prototype.createHTMLDocument=function(ie){throw new Error("This DOM method is not implemented.")},ne.prototype.getFeature=function(ie,oe){throw new Error("This DOM method is not implemented.")},ne}()}).call(this)},{}],438:[function(x,De,ve){(function(){var re;De.exports=re=function(){function ne(ie){this.arr=ie||[]}return Object.defineProperty(ne.prototype,"length",{get:function(){return this.arr.length}}),ne.prototype.item=function(ie){return this.arr[ie]||null},ne.prototype.contains=function(ie){return this.arr.indexOf(ie)!==-1},ne}()}).call(this)},{}],439:[function(x,De,ve){(function(){var re,ne,ie,oe=function(me,te){for(var ae in te)se.call(te,ae)&&(me[ae]=te[ae]);function ue(){this.constructor=me}return ue.prototype=te.prototype,me.prototype=new ue,me.__super__=te.prototype,me},se={}.hasOwnProperty;ie=x("./XMLNode"),re=x("./NodeType"),De.exports=ne=function(me){oe(te,me);function te(ae,ue,de,he,we,Se){if(te.__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(!we)throw new Error("Missing DTD attribute default. "+this.debugInfo(ue));if(we.indexOf("#")!==0&&(we="#"+we),!we.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(ue));if(Se&&!we.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=we}return te.prototype.toString=function(ae){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ae))},te}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(x,De,ve){(function(){var re,ne,ie,oe=function(me,te){for(var ae in te)se.call(te,ae)&&(me[ae]=te[ae]);function ue(){this.constructor=me}return ue.prototype=te.prototype,me.prototype=new ue,me.__super__=te.prototype,me},se={}.hasOwnProperty;ie=x("./XMLNode"),re=x("./NodeType"),De.exports=ne=function(me){oe(te,me);function te(ae,ue,de){if(te.__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 te.prototype.toString=function(ae){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ae))},te}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(x,De,ve){(function(){var re,ne,ie,oe,se=function(te,ae){for(var ue in ae)me.call(ae,ue)&&(te[ue]=ae[ue]);function de(){this.constructor=te}return de.prototype=ae.prototype,te.prototype=new de,te.__super__=ae.prototype,te},me={}.hasOwnProperty;oe=x("./Utility").isObject,ie=x("./XMLNode"),re=x("./NodeType"),De.exports=ne=function(te){se(ae,te);function ae(ue,de,he,we){if(ae.__super__.constructor.call(this,ue),he==null)throw new Error("Missing DTD entity name. "+this.debugInfo(he));if(we==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(we))this.value=this.stringify.dtdEntityValue(we),this.internal=!0;else{if(!we.pubID&&!we.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(he));if(we.pubID&&!we.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(he));if(this.internal=!1,we.pubID!=null&&(this.pubID=this.stringify.dtdPubID(we.pubID)),we.sysID!=null&&(this.sysID=this.stringify.dtdSysID(we.sysID)),we.nData!=null&&(this.nData=this.stringify.dtdNData(we.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,De,ve){(function(){var re,ne,ie,oe=function(me,te){for(var ae in te)se.call(te,ae)&&(me[ae]=te[ae]);function ue(){this.constructor=me}return ue.prototype=te.prototype,me.prototype=new ue,me.__super__=te.prototype,me},se={}.hasOwnProperty;ie=x("./XMLNode"),re=x("./NodeType"),De.exports=ne=function(me){oe(te,me);function te(ae,ue,de){if(te.__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(te.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(te.prototype,"systemId",{get:function(){return this.sysID}}),te.prototype.toString=function(ae){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ae))},te}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(x,De,ve){(function(){var re,ne,ie,oe,se=function(te,ae){for(var ue in ae)me.call(ae,ue)&&(te[ue]=ae[ue]);function de(){this.constructor=te}return de.prototype=ae.prototype,te.prototype=new de,te.__super__=ae.prototype,te},me={}.hasOwnProperty;oe=x("./Utility").isObject,ie=x("./XMLNode"),re=x("./NodeType"),De.exports=ne=function(te){se(ae,te);function ae(ue,de,he,we){var Se;ae.__super__.constructor.call(this,ue),oe(de)&&(Se=de,de=Se.version,he=Se.encoding,we=Se.standalone),de||(de="1.0"),this.type=re.Declaration,this.version=this.stringify.xmlVersion(de),he!=null&&(this.encoding=this.stringify.xmlEncoding(he)),we!=null&&(this.standalone=this.stringify.xmlStandalone(we))}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,De,ve){(function(){var re,ne,ie,oe,se,me,te,ae,ue,de=function(we,Se){for(var xe in Se)he.call(Se,xe)&&(we[xe]=Se[xe]);function ye(){this.constructor=we}return ye.prototype=Se.prototype,we.prototype=new ye,we.__super__=Se.prototype,we},he={}.hasOwnProperty;ue=x("./Utility").isObject,ae=x("./XMLNode"),re=x("./NodeType"),ne=x("./XMLDTDAttList"),oe=x("./XMLDTDEntity"),ie=x("./XMLDTDElement"),se=x("./XMLDTDNotation"),te=x("./XMLNamedNodeMap"),De.exports=me=function(we){de(Se,we);function Se(xe,ye,Ae){var Le,Ce,je,Me,Oe,Ee;if(Se.__super__.constructor.call(this,xe),this.type=re.DocType,xe.children){for(Me=xe.children,Ce=0,je=Me.length;Ce<je;Ce++)if(Le=Me[Ce],Le.type===re.Element){this.name=Le.name;break}}this.documentObject=xe,ue(ye)&&(Oe=ye,ye=Oe.pubID,Ae=Oe.sysID),Ae==null&&(Ee=[ye,Ae],Ae=Ee[0],ye=Ee[1]),ye!=null&&(this.pubID=this.stringify.dtdPubID(ye)),Ae!=null&&(this.sysID=this.stringify.dtdSysID(Ae))}return Object.defineProperty(Se.prototype,"entities",{get:function(){var xe,ye,Ae,Le,Ce;for(Le={},Ce=this.children,ye=0,Ae=Ce.length;ye<Ae;ye++)xe=Ce[ye],xe.type===re.EntityDeclaration&&!xe.pe&&(Le[xe.name]=xe);return new te(Le)}}),Object.defineProperty(Se.prototype,"notations",{get:function(){var xe,ye,Ae,Le,Ce;for(Le={},Ce=this.children,ye=0,Ae=Ce.length;ye<Ae;ye++)xe=Ce[ye],xe.type===re.NotationDeclaration&&(Le[xe.name]=xe);return new te(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(xe,ye){var Ae;return Ae=new ie(this,xe,ye),this.children.push(Ae),this},Se.prototype.attList=function(xe,ye,Ae,Le,Ce){var je;return je=new ne(this,xe,ye,Ae,Le,Ce),this.children.push(je),this},Se.prototype.entity=function(xe,ye){var Ae;return Ae=new oe(this,!1,xe,ye),this.children.push(Ae),this},Se.prototype.pEntity=function(xe,ye){var Ae;return Ae=new oe(this,!0,xe,ye),this.children.push(Ae),this},Se.prototype.notation=function(xe,ye){var Ae;return Ae=new se(this,xe,ye),this.children.push(Ae),this},Se.prototype.toString=function(xe){return this.options.writer.docType(this,this.options.writer.filterOptions(xe))},Se.prototype.ele=function(xe,ye){return this.element(xe,ye)},Se.prototype.att=function(xe,ye,Ae,Le,Ce){return this.attList(xe,ye,Ae,Le,Ce)},Se.prototype.ent=function(xe,ye){return this.entity(xe,ye)},Se.prototype.pent=function(xe,ye){return this.pEntity(xe,ye)},Se.prototype.not=function(xe,ye){return this.notation(xe,ye)},Se.prototype.up=function(){return this.root()||this.documentObject},Se.prototype.isEqualNode=function(xe){return!(!Se.__super__.isEqualNode.apply(this,arguments).isEqualNode(xe)||xe.name!==this.name||xe.publicId!==this.publicId||xe.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,De,ve){(function(){var re,ne,ie,oe,se,me,te,ae,ue=function(he,we){for(var Se in we)de.call(we,Se)&&(he[Se]=we[Se]);function xe(){this.constructor=he}return xe.prototype=we.prototype,he.prototype=new xe,he.__super__=we.prototype,he},de={}.hasOwnProperty;ae=x("./Utility").isPlainObject,ie=x("./XMLDOMImplementation"),ne=x("./XMLDOMConfiguration"),se=x("./XMLNode"),re=x("./NodeType"),te=x("./XMLStringifier"),me=x("./XMLStringWriter"),De.exports=oe=function(he){ue(we,he);function we(Se){we.__super__.constructor.call(this,null),this.name="#document",this.type=re.Document,this.documentURI=null,this.domConfig=new ne,Se||(Se={}),Se.writer||(Se.writer=new me),this.options=Se,this.stringify=new te(Se)}return Object.defineProperty(we.prototype,"implementation",{value:new ie}),Object.defineProperty(we.prototype,"doctype",{get:function(){var Se,xe,ye,Ae;for(Ae=this.children,xe=0,ye=Ae.length;xe<ye;xe++)if(Se=Ae[xe],Se.type===re.DocType)return Se;return null}}),Object.defineProperty(we.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(we.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(we.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(we.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===re.Declaration?this.children[0].encoding:null}}),Object.defineProperty(we.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===re.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(we.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===re.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(we.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(we.prototype,"origin",{get:function(){return null}}),Object.defineProperty(we.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(we.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(we.prototype,"contentType",{get:function(){return null}}),we.prototype.end=function(Se){var xe;return xe={},Se?ae(Se)&&(xe=Se,Se=this.options.writer):Se=this.options.writer,Se.document(this,Se.filterOptions(xe))},we.prototype.toString=function(Se){return this.options.writer.document(this,this.options.writer.filterOptions(Se))},we.prototype.createElement=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createTextNode=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createComment=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createCDATASection=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createProcessingInstruction=function(Se,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createAttribute=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createEntityReference=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.getElementsByTagName=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.importNode=function(Se,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createElementNS=function(Se,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createAttributeNS=function(Se,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.getElementsByTagNameNS=function(Se,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.getElementById=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.adoptNode=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.renameNode=function(Se,xe,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.getElementsByClassName=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createEvent=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createNodeIterator=function(Se,xe,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.createTreeWalker=function(Se,xe,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},we}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(x,De,ve){(function(){var re,ne,ie,oe,se,me,te,ae,ue,de,he,we,Se,xe,ye,Ae,Le,Ce,je,Me,Oe,Ee,Ne,_e,Ze={}.hasOwnProperty;_e=x("./Utility"),Ee=_e.isObject,Oe=_e.isFunction,Ne=_e.isPlainObject,Me=_e.getValue,re=x("./NodeType"),we=x("./XMLDocument"),xe=x("./XMLElement"),oe=x("./XMLCData"),se=x("./XMLComment"),Ae=x("./XMLRaw"),je=x("./XMLText"),ye=x("./XMLProcessingInstruction"),de=x("./XMLDeclaration"),he=x("./XMLDocType"),me=x("./XMLDTDAttList"),ae=x("./XMLDTDEntity"),te=x("./XMLDTDElement"),ue=x("./XMLDTDNotation"),ie=x("./XMLAttribute"),Ce=x("./XMLStringifier"),Le=x("./XMLStringWriter"),ne=x("./WriterState"),De.exports=Se=function(){function Pe(Ue,Qe,tt){var at;this.name="?xml",this.type=re.Document,Ue||(Ue={}),at={},Ue.writer?Ne(Ue.writer)&&(at=Ue.writer,Ue.writer=new Le):Ue.writer=new Le,this.options=Ue,this.writer=Ue.writer,this.writerOptions=this.writer.filterOptions(at),this.stringify=new Ce(Ue),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 Pe.prototype.createChildNode=function(Ue){var Qe,tt,at,lt,Ve,Xe,nt,ct;switch(Ue.type){case re.CData:this.cdata(Ue.value);break;case re.Comment:this.comment(Ue.value);break;case re.Element:at={},nt=Ue.attribs;for(tt in nt)Ze.call(nt,tt)&&(Qe=nt[tt],at[tt]=Qe.value);this.node(Ue.name,at);break;case re.Dummy:this.dummy();break;case re.Raw:this.raw(Ue.value);break;case re.Text:this.text(Ue.value);break;case re.ProcessingInstruction:this.instruction(Ue.target,Ue.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Ue.constructor.name)}for(ct=Ue.children,Ve=0,Xe=ct.length;Ve<Xe;Ve++)lt=ct[Ve],this.createChildNode(lt),lt.type===re.Element&&this.up();return this},Pe.prototype.dummy=function(){return this},Pe.prototype.node=function(Ue,Qe,tt){var at;if(Ue==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(Ue));return this.openCurrent(),Ue=Me(Ue),Qe==null&&(Qe={}),Qe=Me(Qe),Ee(Qe)||(at=[Qe,tt],tt=at[0],Qe=at[1]),this.currentNode=new xe(this,Ue,Qe),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,tt!=null&&this.text(tt),this},Pe.prototype.element=function(Ue,Qe,tt){var at,lt,Ve,Xe,nt,ct;if(this.currentNode&&this.currentNode.type===re.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Ue)||Ee(Ue)||Oe(Ue))for(Xe=this.options.noValidation,this.options.noValidation=!0,ct=new we(this.options).element("TEMP_ROOT"),ct.element(Ue),this.options.noValidation=Xe,nt=ct.children,lt=0,Ve=nt.length;lt<Ve;lt++)at=nt[lt],this.createChildNode(at),at.type===re.Element&&this.up();else this.node(Ue,Qe,tt);return this},Pe.prototype.attribute=function(Ue,Qe){var tt,at;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Ue));if(Ue!=null&&(Ue=Me(Ue)),Ee(Ue))for(tt in Ue)Ze.call(Ue,tt)&&(at=Ue[tt],this.attribute(tt,at));else Oe(Qe)&&(Qe=Qe.apply()),this.options.keepNullAttributes&&Qe==null?this.currentNode.attribs[Ue]=new ie(this,Ue,""):Qe!=null&&(this.currentNode.attribs[Ue]=new ie(this,Ue,Qe));return this},Pe.prototype.text=function(Ue){var Qe;return this.openCurrent(),Qe=new je(this,Ue),this.onData(this.writer.text(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Pe.prototype.cdata=function(Ue){var Qe;return this.openCurrent(),Qe=new oe(this,Ue),this.onData(this.writer.cdata(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Pe.prototype.comment=function(Ue){var Qe;return this.openCurrent(),Qe=new se(this,Ue),this.onData(this.writer.comment(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Pe.prototype.raw=function(Ue){var Qe;return this.openCurrent(),Qe=new Ae(this,Ue),this.onData(this.writer.raw(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Pe.prototype.instruction=function(Ue,Qe){var tt,at,lt,Ve,Xe;if(this.openCurrent(),Ue!=null&&(Ue=Me(Ue)),Qe!=null&&(Qe=Me(Qe)),Array.isArray(Ue))for(tt=0,Ve=Ue.length;tt<Ve;tt++)at=Ue[tt],this.instruction(at);else if(Ee(Ue))for(at in Ue)Ze.call(Ue,at)&&(lt=Ue[at],this.instruction(at,lt));else Oe(Qe)&&(Qe=Qe.apply()),Xe=new ye(this,Ue,Qe),this.onData(this.writer.processingInstruction(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Pe.prototype.declaration=function(Ue,Qe,tt){var at;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return at=new de(this,Ue,Qe,tt),this.onData(this.writer.declaration(at,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Pe.prototype.doctype=function(Ue,Qe,tt){if(this.openCurrent(),Ue==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=Ue,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Pe.prototype.dtdElement=function(Ue,Qe){var tt;return this.openCurrent(),tt=new te(this,Ue,Qe),this.onData(this.writer.dtdElement(tt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Pe.prototype.attList=function(Ue,Qe,tt,at,lt){var Ve;return this.openCurrent(),Ve=new me(this,Ue,Qe,tt,at,lt),this.onData(this.writer.dtdAttList(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Pe.prototype.entity=function(Ue,Qe){var tt;return this.openCurrent(),tt=new ae(this,!1,Ue,Qe),this.onData(this.writer.dtdEntity(tt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Pe.prototype.pEntity=function(Ue,Qe){var tt;return this.openCurrent(),tt=new ae(this,!0,Ue,Qe),this.onData(this.writer.dtdEntity(tt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Pe.prototype.notation=function(Ue,Qe){var tt;return this.openCurrent(),tt=new ue(this,Ue,Qe),this.onData(this.writer.dtdNotation(tt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Pe.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},Pe.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Pe.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Pe.prototype.openNode=function(Ue){var Qe,tt,at,lt;if(!Ue.isOpen){if(!this.root&&this.currentLevel===0&&Ue.type===re.Element&&(this.root=Ue),tt="",Ue.type===re.Element){this.writerOptions.state=ne.OpenTag,tt=this.writer.indent(Ue,this.writerOptions,this.currentLevel)+"<"+Ue.name,lt=Ue.attribs;for(at in lt)Ze.call(lt,at)&&(Qe=lt[at],tt+=this.writer.attribute(Qe,this.writerOptions,this.currentLevel));tt+=(Ue.children?">":"/>")+this.writer.endline(Ue,this.writerOptions,this.currentLevel),this.writerOptions.state=ne.InsideTag}else this.writerOptions.state=ne.OpenTag,tt=this.writer.indent(Ue,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Ue.rootNodeName,Ue.pubID&&Ue.sysID?tt+=' PUBLIC "'+Ue.pubID+'" "'+Ue.sysID+'"':Ue.sysID&&(tt+=' SYSTEM "'+Ue.sysID+'"'),Ue.children?(tt+=" [",this.writerOptions.state=ne.InsideTag):(this.writerOptions.state=ne.CloseTag,tt+=">"),tt+=this.writer.endline(Ue,this.writerOptions,this.currentLevel);return this.onData(tt,this.currentLevel),Ue.isOpen=!0}},Pe.prototype.closeNode=function(Ue){var Qe;if(!Ue.isClosed)return Qe="",this.writerOptions.state=ne.CloseTag,Ue.type===re.Element?Qe=this.writer.indent(Ue,this.writerOptions,this.currentLevel)+"</"+Ue.name+">"+this.writer.endline(Ue,this.writerOptions,this.currentLevel):Qe=this.writer.indent(Ue,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Ue,this.writerOptions,this.currentLevel),this.writerOptions.state=ne.None,this.onData(Qe,this.currentLevel),Ue.isClosed=!0},Pe.prototype.onData=function(Ue,Qe){return this.documentStarted=!0,this.onDataCallback(Ue,Qe+1)},Pe.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Pe.prototype.debugInfo=function(Ue){return Ue==null?"":"node: <"+Ue+">"},Pe.prototype.ele=function(){return this.element.apply(this,arguments)},Pe.prototype.nod=function(Ue,Qe,tt){return this.node(Ue,Qe,tt)},Pe.prototype.txt=function(Ue){return this.text(Ue)},Pe.prototype.dat=function(Ue){return this.cdata(Ue)},Pe.prototype.com=function(Ue){return this.comment(Ue)},Pe.prototype.ins=function(Ue,Qe){return this.instruction(Ue,Qe)},Pe.prototype.dec=function(Ue,Qe,tt){return this.declaration(Ue,Qe,tt)},Pe.prototype.dtd=function(Ue,Qe,tt){return this.doctype(Ue,Qe,tt)},Pe.prototype.e=function(Ue,Qe,tt){return this.element(Ue,Qe,tt)},Pe.prototype.n=function(Ue,Qe,tt){return this.node(Ue,Qe,tt)},Pe.prototype.t=function(Ue){return this.text(Ue)},Pe.prototype.d=function(Ue){return this.cdata(Ue)},Pe.prototype.c=function(Ue){return this.comment(Ue)},Pe.prototype.r=function(Ue){return this.raw(Ue)},Pe.prototype.i=function(Ue,Qe){return this.instruction(Ue,Qe)},Pe.prototype.att=function(){return this.currentNode&&this.currentNode.type===re.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Pe.prototype.a=function(){return this.currentNode&&this.currentNode.type===re.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Pe.prototype.ent=function(Ue,Qe){return this.entity(Ue,Qe)},Pe.prototype.pent=function(Ue,Qe){return this.pEntity(Ue,Qe)},Pe.prototype.not=function(Ue,Qe){return this.notation(Ue,Qe)},Pe}()}).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,De,ve){(function(){var re,ne,ie,oe=function(me,te){for(var ae in te)se.call(te,ae)&&(me[ae]=te[ae]);function ue(){this.constructor=me}return ue.prototype=te.prototype,me.prototype=new ue,me.__super__=te.prototype,me},se={}.hasOwnProperty;ie=x("./XMLNode"),re=x("./NodeType"),De.exports=ne=function(me){oe(te,me);function te(ae){te.__super__.constructor.call(this,ae),this.type=re.Dummy}return te.prototype.clone=function(){return Object.create(this)},te.prototype.toString=function(ae){return""},te}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(x,De,ve){(function(){var re,ne,ie,oe,se,me,te,ae,ue,de=function(we,Se){for(var xe in Se)he.call(Se,xe)&&(we[xe]=Se[xe]);function ye(){this.constructor=we}return ye.prototype=Se.prototype,we.prototype=new ye,we.__super__=Se.prototype,we},he={}.hasOwnProperty;ue=x("./Utility"),ae=ue.isObject,te=ue.isFunction,me=ue.getValue,se=x("./XMLNode"),re=x("./NodeType"),ne=x("./XMLAttribute"),oe=x("./XMLNamedNodeMap"),De.exports=ie=function(we){de(Se,we);function Se(xe,ye,Ae){var Le,Ce,je,Me;if(Se.__super__.constructor.call(this,xe),ye==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ye),this.type=re.Element,this.attribs={},this.schemaTypeInfo=null,Ae!=null&&this.attribute(Ae),xe.type===re.Document&&(this.isRoot=!0,this.documentObject=xe,xe.rootObject=this,xe.children)){for(Me=xe.children,Ce=0,je=Me.length;Ce<je;Ce++)if(Le=Me[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 xe,ye,Ae,Le;Ae=Object.create(this),Ae.isRoot&&(Ae.documentObject=null),Ae.attribs={},Le=this.attribs;for(ye in Le)he.call(Le,ye)&&(xe=Le[ye],Ae.attribs[ye]=xe.clone());return Ae.children=[],this.children.forEach(function(Ce){var je;return je=Ce.clone(),je.parent=Ae,Ae.children.push(je)}),Ae},Se.prototype.attribute=function(xe,ye){var Ae,Le;if(xe!=null&&(xe=me(xe)),ae(xe))for(Ae in xe)he.call(xe,Ae)&&(Le=xe[Ae],this.attribute(Ae,Le));else te(ye)&&(ye=ye.apply()),this.options.keepNullAttributes&&ye==null?this.attribs[xe]=new ne(this,xe,""):ye!=null&&(this.attribs[xe]=new ne(this,xe,ye));return this},Se.prototype.removeAttribute=function(xe){var ye,Ae,Le;if(xe==null)throw new Error("Missing attribute name. "+this.debugInfo());if(xe=me(xe),Array.isArray(xe))for(Ae=0,Le=xe.length;Ae<Le;Ae++)ye=xe[Ae],delete this.attribs[ye];else delete this.attribs[xe];return this},Se.prototype.toString=function(xe){return this.options.writer.element(this,this.options.writer.filterOptions(xe))},Se.prototype.att=function(xe,ye){return this.attribute(xe,ye)},Se.prototype.a=function(xe,ye){return this.attribute(xe,ye)},Se.prototype.getAttribute=function(xe){return this.attribs.hasOwnProperty(xe)?this.attribs[xe].value:null},Se.prototype.setAttribute=function(xe,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNode=function(xe){return this.attribs.hasOwnProperty(xe)?this.attribs[xe]:null},Se.prototype.setAttributeNode=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeAttributeNode=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagName=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNS=function(xe,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setAttributeNS=function(xe,ye,Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeAttributeNS=function(xe,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNodeNS=function(xe,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setAttributeNodeNS=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagNameNS=function(xe,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.hasAttribute=function(xe){return this.attribs.hasOwnProperty(xe)},Se.prototype.hasAttributeNS=function(xe,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setIdAttribute=function(xe,ye){return this.attribs.hasOwnProperty(xe)?this.attribs[xe].isId:ye},Se.prototype.setIdAttributeNS=function(xe,ye,Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setIdAttributeNode=function(xe,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagName=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagNameNS=function(xe,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByClassName=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isEqualNode=function(xe){var ye,Ae,Le;if(!Se.__super__.isEqualNode.apply(this,arguments).isEqualNode(xe)||xe.namespaceURI!==this.namespaceURI||xe.prefix!==this.prefix||xe.localName!==this.localName||xe.attribs.length!==this.attribs.length)return!1;for(ye=Ae=0,Le=this.attribs.length-1;0<=Le?Ae<=Le:Ae>=Le;ye=0<=Le?++Ae:--Ae)if(!this.attribs[ye].isEqualNode(xe.attribs[ye]))return!1;return!0},Se}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(x,De,ve){(function(){var re;De.exports=re=function(){function ne(ie){this.nodes=ie}return Object.defineProperty(ne.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),ne.prototype.clone=function(){return this.nodes=null},ne.prototype.getNamedItem=function(ie){return this.nodes[ie]},ne.prototype.setNamedItem=function(ie){var oe;return oe=this.nodes[ie.nodeName],this.nodes[ie.nodeName]=ie,oe||null},ne.prototype.removeNamedItem=function(ie){var oe;return oe=this.nodes[ie],delete this.nodes[ie],oe||null},ne.prototype.item=function(ie){return this.nodes[Object.keys(this.nodes)[ie]]||null},ne.prototype.getNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},ne.prototype.setNamedItemNS=function(ie){throw new Error("This DOM method is not implemented.")},ne.prototype.removeNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},ne}()}).call(this)},{}],450:[function(x,De,ve){(function(){var re,ne,ie,oe,se,me,te,ae,ue,de,he,we,Se,xe,ye,Ae,Le,Ce,je,Me={}.hasOwnProperty;je=x("./Utility"),Ce=je.isObject,Le=je.isFunction,Ae=je.isEmpty,ye=je.getValue,ae=null,ie=null,oe=null,se=null,me=null,Se=null,xe=null,we=null,te=null,ne=null,he=null,ue=null,re=null,De.exports=de=function(){function Oe(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"),me=x("./XMLDocType"),Se=x("./XMLRaw"),xe=x("./XMLText"),we=x("./XMLProcessingInstruction"),te=x("./XMLDummy"),ne=x("./NodeType"),he=x("./XMLNodeList"),ue=x("./XMLNamedNodeMap"),re=x("./DocumentPosition"))}return Object.defineProperty(Oe.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(Oe.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Oe.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(Oe.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(Oe.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new he(this.children)),this.childNodeList}}),Object.defineProperty(Oe.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(Oe.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(Oe.prototype,"previousSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee-1]||null}}),Object.defineProperty(Oe.prototype,"nextSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee+1]||null}}),Object.defineProperty(Oe.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(Oe.prototype,"textContent",{get:function(){var Ee,Ne,_e,Ze,Pe;if(this.nodeType===ne.Element||this.nodeType===ne.DocumentFragment){for(Pe="",Ze=this.children,Ne=0,_e=Ze.length;Ne<_e;Ne++)Ee=Ze[Ne],Ee.textContent&&(Pe+=Ee.textContent);return Pe}else return null},set:function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Oe.prototype.setParent=function(Ee){var Ne,_e,Ze,Pe,Ue;for(this.parent=Ee,Ee&&(this.options=Ee.options,this.stringify=Ee.stringify),Pe=this.children,Ue=[],_e=0,Ze=Pe.length;_e<Ze;_e++)Ne=Pe[_e],Ue.push(Ne.setParent(this));return Ue},Oe.prototype.element=function(Ee,Ne,_e){var Ze,Pe,Ue,Qe,tt,at,lt,Ve,Xe,nt,ct;if(at=null,Ne===null&&_e==null&&(Xe=[{},null],Ne=Xe[0],_e=Xe[1]),Ne==null&&(Ne={}),Ne=ye(Ne),Ce(Ne)||(nt=[Ne,_e],_e=nt[0],Ne=nt[1]),Ee!=null&&(Ee=ye(Ee)),Array.isArray(Ee))for(Ue=0,lt=Ee.length;Ue<lt;Ue++)Pe=Ee[Ue],at=this.element(Pe);else if(Le(Ee))at=this.element(Ee.apply());else if(Ce(Ee)){for(tt in Ee)if(Me.call(Ee,tt))if(ct=Ee[tt],Le(ct)&&(ct=ct.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&tt.indexOf(this.stringify.convertAttKey)===0)at=this.attribute(tt.substr(this.stringify.convertAttKey.length),ct);else if(!this.options.separateArrayItems&&Array.isArray(ct)&&Ae(ct))at=this.dummy();else if(Ce(ct)&&Ae(ct))at=this.element(tt);else if(!this.options.keepNullNodes&&ct==null)at=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(ct))for(Qe=0,Ve=ct.length;Qe<Ve;Qe++)Pe=ct[Qe],Ze={},Ze[tt]=Pe,at=this.element(Ze);else Ce(ct)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&tt.indexOf(this.stringify.convertTextKey)===0?at=this.element(ct):(at=this.element(tt),at.element(ct)):at=this.element(tt,ct)}else!this.options.keepNullNodes&&_e===null?at=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ee.indexOf(this.stringify.convertTextKey)===0?at=this.text(_e):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ee.indexOf(this.stringify.convertCDataKey)===0?at=this.cdata(_e):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ee.indexOf(this.stringify.convertCommentKey)===0?at=this.comment(_e):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ee.indexOf(this.stringify.convertRawKey)===0?at=this.raw(_e):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ee.indexOf(this.stringify.convertPIKey)===0?at=this.instruction(Ee.substr(this.stringify.convertPIKey.length),_e):at=this.node(Ee,Ne,_e);if(at==null)throw new Error("Could not create any elements with: "+Ee+". "+this.debugInfo());return at},Oe.prototype.insertBefore=function(Ee,Ne,_e){var Ze,Pe,Ue,Qe,tt;if(Ee!=null&&Ee.type)return Ue=Ee,Qe=Ne,Ue.setParent(this),Qe?(Pe=children.indexOf(Qe),tt=children.splice(Pe),children.push(Ue),Array.prototype.push.apply(children,tt)):children.push(Ue),Ue;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Pe=this.parent.children.indexOf(this),tt=this.parent.children.splice(Pe),Ze=this.parent.element(Ee,Ne,_e),Array.prototype.push.apply(this.parent.children,tt),Ze},Oe.prototype.insertAfter=function(Ee,Ne,_e){var Ze,Pe,Ue;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Pe=this.parent.children.indexOf(this),Ue=this.parent.children.splice(Pe+1),Ze=this.parent.element(Ee,Ne,_e),Array.prototype.push.apply(this.parent.children,Ue),Ze},Oe.prototype.remove=function(){var Ee,Ne;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(Ne=[])),this.parent},Oe.prototype.node=function(Ee,Ne,_e){var Ze,Pe;return Ee!=null&&(Ee=ye(Ee)),Ne||(Ne={}),Ne=ye(Ne),Ce(Ne)||(Pe=[Ne,_e],_e=Pe[0],Ne=Pe[1]),Ze=new ae(this,Ee,Ne),_e!=null&&Ze.text(_e),this.children.push(Ze),Ze},Oe.prototype.text=function(Ee){var Ne;return Ce(Ee)&&this.element(Ee),Ne=new xe(this,Ee),this.children.push(Ne),this},Oe.prototype.cdata=function(Ee){var Ne;return Ne=new ie(this,Ee),this.children.push(Ne),this},Oe.prototype.comment=function(Ee){var Ne;return Ne=new oe(this,Ee),this.children.push(Ne),this},Oe.prototype.commentBefore=function(Ee){var Ne,_e,Ze;return _e=this.parent.children.indexOf(this),Ze=this.parent.children.splice(_e),Ne=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Ze),this},Oe.prototype.commentAfter=function(Ee){var Ne,_e,Ze;return _e=this.parent.children.indexOf(this),Ze=this.parent.children.splice(_e+1),Ne=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Ze),this},Oe.prototype.raw=function(Ee){var Ne;return Ne=new Se(this,Ee),this.children.push(Ne),this},Oe.prototype.dummy=function(){var Ee;return Ee=new te(this),Ee},Oe.prototype.instruction=function(Ee,Ne){var _e,Ze,Pe,Ue,Qe;if(Ee!=null&&(Ee=ye(Ee)),Ne!=null&&(Ne=ye(Ne)),Array.isArray(Ee))for(Ue=0,Qe=Ee.length;Ue<Qe;Ue++)_e=Ee[Ue],this.instruction(_e);else if(Ce(Ee))for(_e in Ee)Me.call(Ee,_e)&&(Ze=Ee[_e],this.instruction(_e,Ze));else Le(Ne)&&(Ne=Ne.apply()),Pe=new we(this,Ee,Ne),this.children.push(Pe);return this},Oe.prototype.instructionBefore=function(Ee,Ne){var _e,Ze,Pe;return Ze=this.parent.children.indexOf(this),Pe=this.parent.children.splice(Ze),_e=this.parent.instruction(Ee,Ne),Array.prototype.push.apply(this.parent.children,Pe),this},Oe.prototype.instructionAfter=function(Ee,Ne){var _e,Ze,Pe;return Ze=this.parent.children.indexOf(this),Pe=this.parent.children.splice(Ze+1),_e=this.parent.instruction(Ee,Ne),Array.prototype.push.apply(this.parent.children,Pe),this},Oe.prototype.declaration=function(Ee,Ne,_e){var Ze,Pe;return Ze=this.document(),Pe=new se(Ze,Ee,Ne,_e),Ze.children.length===0?Ze.children.unshift(Pe):Ze.children[0].type===ne.Declaration?Ze.children[0]=Pe:Ze.children.unshift(Pe),Ze.root()||Ze},Oe.prototype.dtd=function(Ee,Ne){var _e,Ze,Pe,Ue,Qe,tt,at,lt,Ve,Xe;for(Ze=this.document(),Pe=new me(Ze,Ee,Ne),Ve=Ze.children,Ue=Qe=0,at=Ve.length;Qe<at;Ue=++Qe)if(_e=Ve[Ue],_e.type===ne.DocType)return Ze.children[Ue]=Pe,Pe;for(Xe=Ze.children,Ue=tt=0,lt=Xe.length;tt<lt;Ue=++tt)if(_e=Xe[Ue],_e.isRoot)return Ze.children.splice(Ue,0,Pe),Pe;return Ze.children.push(Pe),Pe},Oe.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},Oe.prototype.root=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===ne.Document)return Ee.rootObject;if(Ee.isRoot)return Ee;Ee=Ee.parent}},Oe.prototype.document=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===ne.Document)return Ee;Ee=Ee.parent}},Oe.prototype.end=function(Ee){return this.document().end(Ee)},Oe.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]},Oe.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]},Oe.prototype.importDocument=function(Ee){var Ne;return Ne=Ee.root().clone(),Ne.parent=this,Ne.isRoot=!1,this.children.push(Ne),this},Oe.prototype.debugInfo=function(Ee){var Ne,_e;return Ee=Ee||this.name,Ee==null&&!((Ne=this.parent)!=null&&Ne.name)?"":Ee==null?"parent: <"+this.parent.name+">":(_e=this.parent)!=null&&_e.name?"node: <"+Ee+">, parent: <"+this.parent.name+">":"node: <"+Ee+">"},Oe.prototype.ele=function(Ee,Ne,_e){return this.element(Ee,Ne,_e)},Oe.prototype.nod=function(Ee,Ne,_e){return this.node(Ee,Ne,_e)},Oe.prototype.txt=function(Ee){return this.text(Ee)},Oe.prototype.dat=function(Ee){return this.cdata(Ee)},Oe.prototype.com=function(Ee){return this.comment(Ee)},Oe.prototype.ins=function(Ee,Ne){return this.instruction(Ee,Ne)},Oe.prototype.doc=function(){return this.document()},Oe.prototype.dec=function(Ee,Ne,_e){return this.declaration(Ee,Ne,_e)},Oe.prototype.e=function(Ee,Ne,_e){return this.element(Ee,Ne,_e)},Oe.prototype.n=function(Ee,Ne,_e){return this.node(Ee,Ne,_e)},Oe.prototype.t=function(Ee){return this.text(Ee)},Oe.prototype.d=function(Ee){return this.cdata(Ee)},Oe.prototype.c=function(Ee){return this.comment(Ee)},Oe.prototype.r=function(Ee){return this.raw(Ee)},Oe.prototype.i=function(Ee,Ne){return this.instruction(Ee,Ne)},Oe.prototype.u=function(){return this.up()},Oe.prototype.importXMLBuilder=function(Ee){return this.importDocument(Ee)},Oe.prototype.replaceChild=function(Ee,Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.removeChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.appendChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.hasChildNodes=function(){return this.children.length!==0},Oe.prototype.cloneNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.isSupported=function(Ee,Ne){return!0},Oe.prototype.hasAttributes=function(){return this.attribs.length!==0},Oe.prototype.compareDocumentPosition=function(Ee){var Ne,_e;return Ne=this,Ne===Ee?0:this.document()!==Ee.document()?(_e=re.Disconnected|re.ImplementationSpecific,Math.random()<.5?_e|=re.Preceding:_e|=re.Following,_e):Ne.isAncestor(Ee)?re.Contains|re.Preceding:Ne.isDescendant(Ee)?re.Contains|re.Following:Ne.isPreceding(Ee)?re.Preceding:re.Following},Oe.prototype.isSameNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.lookupPrefix=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.isDefaultNamespace=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.lookupNamespaceURI=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.isEqualNode=function(Ee){var Ne,_e,Ze;if(Ee.nodeType!==this.nodeType||Ee.children.length!==this.children.length)return!1;for(Ne=_e=0,Ze=this.children.length-1;0<=Ze?_e<=Ze:_e>=Ze;Ne=0<=Ze?++_e:--_e)if(!this.children[Ne].isEqualNode(Ee.children[Ne]))return!1;return!0},Oe.prototype.getFeature=function(Ee,Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.setUserData=function(Ee,Ne,_e){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.getUserData=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.contains=function(Ee){return Ee?Ee===this||this.isDescendant(Ee):!1},Oe.prototype.isDescendant=function(Ee){var Ne,_e,Ze,Pe,Ue;for(Ue=this.children,Ze=0,Pe=Ue.length;Ze<Pe;Ze++)if(Ne=Ue[Ze],Ee===Ne||(_e=Ne.isDescendant(Ee),_e))return!0;return!1},Oe.prototype.isAncestor=function(Ee){return Ee.isDescendant(this)},Oe.prototype.isPreceding=function(Ee){var Ne,_e;return Ne=this.treePosition(Ee),_e=this.treePosition(this),Ne===-1||_e===-1?!1:Ne<_e},Oe.prototype.isFollowing=function(Ee){var Ne,_e;return Ne=this.treePosition(Ee),_e=this.treePosition(this),Ne===-1||_e===-1?!1:Ne>_e},Oe.prototype.treePosition=function(Ee){var Ne,_e;return _e=0,Ne=!1,this.foreachTreeNode(this.document(),function(Ze){if(_e++,!Ne&&Ze===Ee)return Ne=!0}),Ne?_e:-1},Oe.prototype.foreachTreeNode=function(Ee,Ne){var _e,Ze,Pe,Ue,Qe;for(Ee||(Ee=this.document()),Ue=Ee.children,Ze=0,Pe=Ue.length;Ze<Pe;Ze++){if(_e=Ue[Ze],Qe=Ne(_e))return Qe;if(Qe=this.foreachTreeNode(_e,Ne),Qe)return Qe}},Oe}()}).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,De,ve){(function(){var re;De.exports=re=function(){function ne(ie){this.nodes=ie}return Object.defineProperty(ne.prototype,"length",{get:function(){return this.nodes.length||0}}),ne.prototype.clone=function(){return this.nodes=null},ne.prototype.item=function(ie){return this.nodes[ie]||null},ne}()}).call(this)},{}],452:[function(x,De,ve){(function(){var re,ne,ie,oe=function(me,te){for(var ae in te)se.call(te,ae)&&(me[ae]=te[ae]);function ue(){this.constructor=me}return ue.prototype=te.prototype,me.prototype=new ue,me.__super__=te.prototype,me},se={}.hasOwnProperty;re=x("./NodeType"),ne=x("./XMLCharacterData"),De.exports=ie=function(me){oe(te,me);function te(ae,ue,de){if(te.__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 te.prototype.clone=function(){return Object.create(this)},te.prototype.toString=function(ae){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(ae))},te.prototype.isEqualNode=function(ae){return!(!te.__super__.isEqualNode.apply(this,arguments).isEqualNode(ae)||ae.target!==this.target)},te}(ne)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(x,De,ve){(function(){var re,ne,ie,oe=function(me,te){for(var ae in te)se.call(te,ae)&&(me[ae]=te[ae]);function ue(){this.constructor=me}return ue.prototype=te.prototype,me.prototype=new ue,me.__super__=te.prototype,me},se={}.hasOwnProperty;re=x("./NodeType"),ne=x("./XMLNode"),De.exports=ie=function(me){oe(te,me);function te(ae,ue){if(te.__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 te.prototype.clone=function(){return Object.create(this)},te.prototype.toString=function(ae){return this.options.writer.raw(this,this.options.writer.filterOptions(ae))},te}(ne)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(x,De,ve){(function(){var re,ne,ie,oe,se=function(te,ae){for(var ue in ae)me.call(ae,ue)&&(te[ue]=ae[ue]);function de(){this.constructor=te}return de.prototype=ae.prototype,te.prototype=new de,te.__super__=ae.prototype,te},me={}.hasOwnProperty;re=x("./NodeType"),oe=x("./XMLWriterBase"),ne=x("./WriterState"),De.exports=ie=function(te){se(ae,te);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===ne.CloseTag?"":ae.__super__.endline.call(this,ue,de,he)},ae.prototype.document=function(ue,de){var he,we,Se,xe,ye,Ae,Le,Ce,je;for(Le=ue.children,we=Se=0,ye=Le.length;Se<ye;we=++Se)he=Le[we],he.isLastRootNode=we===ue.children.length-1;for(de=this.filterOptions(de),Ce=ue.children,je=[],xe=0,Ae=Ce.length;xe<Ae;xe++)he=Ce[xe],je.push(this.writeChildNode(he,de,0));return je},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 we,Se,xe,ye;if(he||(he=0),this.openNode(ue,de,he),de.state=ne.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=ne.InsideTag,ye=ue.children,Se=0,xe=ye.length;Se<xe;Se++)we=ye[Se],this.writeChildNode(we,de,he+1);de.state=ne.CloseTag,this.stream.write("]")}return de.state=ne.CloseTag,this.stream.write(de.spaceBeforeSlash+">"),this.stream.write(this.endline(ue,de,he)),de.state=ne.None,this.closeNode(ue,de,he)},ae.prototype.element=function(ue,de,he){var we,Se,xe,ye,Ae,Le,Ce,je,Me,Oe;he||(he=0),this.openNode(ue,de,he),de.state=ne.OpenTag,this.stream.write(this.indent(ue,de,he)+"<"+ue.name),Me=ue.attribs;for(Ce in Me)me.call(Me,Ce)&&(we=Me[Ce],this.attribute(we,de,he));if(xe=ue.children.length,ye=xe===0?null:ue.children[0],xe===0||ue.children.every(function(Ee){return(Ee.type===re.Text||Ee.type===re.Raw)&&Ee.value===""}))de.allowEmpty?(this.stream.write(">"),de.state=ne.CloseTag,this.stream.write("</"+ue.name+">")):(de.state=ne.CloseTag,this.stream.write(de.spaceBeforeSlash+"/>"));else if(de.pretty&&xe===1&&(ye.type===re.Text||ye.type===re.Raw)&&ye.value!=null)this.stream.write(">"),de.state=ne.InsideTag,de.suppressPrettyCount++,je=!0,this.writeChildNode(ye,de,he+1),de.suppressPrettyCount--,je=!1,de.state=ne.CloseTag,this.stream.write("</"+ue.name+">");else{for(this.stream.write(">"+this.endline(ue,de,he)),de.state=ne.InsideTag,Oe=ue.children,Ae=0,Le=Oe.length;Ae<Le;Ae++)Se=Oe[Ae],this.writeChildNode(Se,de,he+1);de.state=ne.CloseTag,this.stream.write(this.indent(ue,de,he)+"</"+ue.name+">")}return this.stream.write(this.endline(ue,de,he)),de.state=ne.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,De,ve){(function(){var re,ne,ie=function(se,me){for(var te in me)oe.call(me,te)&&(se[te]=me[te]);function ae(){this.constructor=se}return ae.prototype=me.prototype,se.prototype=new ae,se.__super__=me.prototype,se},oe={}.hasOwnProperty;ne=x("./XMLWriterBase"),De.exports=re=function(se){ie(me,se);function me(te){me.__super__.constructor.call(this,te)}return me.prototype.document=function(te,ae){var ue,de,he,we,Se;for(ae=this.filterOptions(ae),we="",Se=te.children,de=0,he=Se.length;de<he;de++)ue=Se[de],we+=this.writeChildNode(ue,ae,0);return ae.pretty&&we.slice(-ae.newline.length)===ae.newline&&(we=we.slice(0,-ae.newline.length)),we},me}(ne)}).call(this)},{"./XMLWriterBase":458}],456:[function(x,De,ve){(function(){var re,ne=function(oe,se){return function(){return oe.apply(se,arguments)}},ie={}.hasOwnProperty;De.exports=re=function(){function oe(se){this.assertLegalName=ne(this.assertLegalName,this),this.assertLegalChar=ne(this.assertLegalChar,this);var me,te,ae;se||(se={}),this.options=se,this.options.version||(this.options.version="1.0"),te=se.stringify||{};for(me in te)ie.call(te,me)&&(ae=te[me],this[me]=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 me,te;if(this.options.noValidation)return se;if(me="",this.options.version==="1.0"){if(me=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,te=se.match(me))throw new Error("Invalid character in string: "+se+" at index "+te.index)}else if(this.options.version==="1.1"&&(me=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,te=se.match(me)))throw new Error("Invalid character in string: "+se+" at index "+te.index);return se},oe.prototype.assertLegalName=function(se){var me;if(this.options.noValidation)return se;if(this.assertLegalChar(se),me=/^([: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(me))throw new Error("Invalid character in name");return se},oe.prototype.textEscape=function(se){var me;return this.options.noValidation?se:(me=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,se.replace(me,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},oe.prototype.attEscape=function(se){var me;return this.options.noValidation?se:(me=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,se.replace(me,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},oe}()}).call(this)},{}],457:[function(x,De,ve){(function(){var re,ne,ie,oe=function(me,te){for(var ae in te)se.call(te,ae)&&(me[ae]=te[ae]);function ue(){this.constructor=me}return ue.prototype=te.prototype,me.prototype=new ue,me.__super__=te.prototype,me},se={}.hasOwnProperty;re=x("./NodeType"),ne=x("./XMLCharacterData"),De.exports=ie=function(me){oe(te,me);function te(ae,ue){if(te.__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(te.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(te.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}}),te.prototype.clone=function(){return Object.create(this)},te.prototype.toString=function(ae){return this.options.writer.text(this,this.options.writer.filterOptions(ae))},te.prototype.splitText=function(ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},te.prototype.replaceWholeText=function(ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},te}(ne)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(x,De,ve){(function(){var re,ne,ie,oe,se,me,te,ae,ue,de,he,we,Se,xe,ye,Ae,Le,Ce={}.hasOwnProperty;Le=x("./Utility").assign,re=x("./NodeType"),ue=x("./XMLDeclaration"),de=x("./XMLDocType"),ie=x("./XMLCData"),oe=x("./XMLComment"),we=x("./XMLElement"),xe=x("./XMLRaw"),ye=x("./XMLText"),Se=x("./XMLProcessingInstruction"),he=x("./XMLDummy"),se=x("./XMLDTDAttList"),me=x("./XMLDTDElement"),te=x("./XMLDTDEntity"),ae=x("./XMLDTDNotation"),ne=x("./WriterState"),De.exports=Ae=function(){function je(Me){var Oe,Ee,Ne;Me||(Me={}),this.options=Me,Ee=Me.writer||{};for(Oe in Ee)Ce.call(Ee,Oe)&&(Ne=Ee[Oe],this["_"+Oe]=this[Oe],this[Oe]=Ne)}return je.prototype.filterOptions=function(Me){var Oe,Ee,Ne,_e,Ze,Pe,Ue,Qe;return Me||(Me={}),Me=Le({},this.options,Me),Oe={writer:this},Oe.pretty=Me.pretty||!1,Oe.allowEmpty=Me.allowEmpty||!1,Oe.indent=(Ee=Me.indent)!=null?Ee:" ",Oe.newline=(Ne=Me.newline)!=null?Ne:`
|
|
|
`,Oe.offset=(_e=Me.offset)!=null?_e:0,Oe.dontPrettyTextNodes=(Ze=(Pe=Me.dontPrettyTextNodes)!=null?Pe:Me.dontprettytextnodes)!=null?Ze:0,Oe.spaceBeforeSlash=(Ue=(Qe=Me.spaceBeforeSlash)!=null?Qe:Me.spacebeforeslash)!=null?Ue:"",Oe.spaceBeforeSlash===!0&&(Oe.spaceBeforeSlash=" "),Oe.suppressPrettyCount=0,Oe.user={},Oe.state=ne.None,Oe},je.prototype.indent=function(Me,Oe,Ee){var Ne;return!Oe.pretty||Oe.suppressPrettyCount?"":Oe.pretty&&(Ne=(Ee||0)+Oe.offset+1,Ne>0)?new Array(Ne).join(Oe.indent):""},je.prototype.endline=function(Me,Oe,Ee){return!Oe.pretty||Oe.suppressPrettyCount?"":Oe.newline},je.prototype.attribute=function(Me,Oe,Ee){var Ne;return this.openAttribute(Me,Oe,Ee),Ne=" "+Me.name+'="'+Me.value+'"',this.closeAttribute(Me,Oe,Ee),Ne},je.prototype.cdata=function(Me,Oe,Ee){var Ne;return this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Ne=this.indent(Me,Oe,Ee)+"<![CDATA[",Oe.state=ne.InsideTag,Ne+=Me.value,Oe.state=ne.CloseTag,Ne+="]]>"+this.endline(Me,Oe,Ee),Oe.state=ne.None,this.closeNode(Me,Oe,Ee),Ne},je.prototype.comment=function(Me,Oe,Ee){var Ne;return this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Ne=this.indent(Me,Oe,Ee)+"<!-- ",Oe.state=ne.InsideTag,Ne+=Me.value,Oe.state=ne.CloseTag,Ne+=" -->"+this.endline(Me,Oe,Ee),Oe.state=ne.None,this.closeNode(Me,Oe,Ee),Ne},je.prototype.declaration=function(Me,Oe,Ee){var Ne;return this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Ne=this.indent(Me,Oe,Ee)+"<?xml",Oe.state=ne.InsideTag,Ne+=' version="'+Me.version+'"',Me.encoding!=null&&(Ne+=' encoding="'+Me.encoding+'"'),Me.standalone!=null&&(Ne+=' standalone="'+Me.standalone+'"'),Oe.state=ne.CloseTag,Ne+=Oe.spaceBeforeSlash+"?>",Ne+=this.endline(Me,Oe,Ee),Oe.state=ne.None,this.closeNode(Me,Oe,Ee),Ne},je.prototype.docType=function(Me,Oe,Ee){var Ne,_e,Ze,Pe,Ue;if(Ee||(Ee=0),this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Pe=this.indent(Me,Oe,Ee),Pe+="<!DOCTYPE "+Me.root().name,Me.pubID&&Me.sysID?Pe+=' PUBLIC "'+Me.pubID+'" "'+Me.sysID+'"':Me.sysID&&(Pe+=' SYSTEM "'+Me.sysID+'"'),Me.children.length>0){for(Pe+=" [",Pe+=this.endline(Me,Oe,Ee),Oe.state=ne.InsideTag,Ue=Me.children,_e=0,Ze=Ue.length;_e<Ze;_e++)Ne=Ue[_e],Pe+=this.writeChildNode(Ne,Oe,Ee+1);Oe.state=ne.CloseTag,Pe+="]"}return Oe.state=ne.CloseTag,Pe+=Oe.spaceBeforeSlash+">",Pe+=this.endline(Me,Oe,Ee),Oe.state=ne.None,this.closeNode(Me,Oe,Ee),Pe},je.prototype.element=function(Me,Oe,Ee){var Ne,_e,Ze,Pe,Ue,Qe,tt,at,lt,Ve,Xe,nt,ct,ot;Ee||(Ee=0),Ve=!1,Xe="",this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Xe+=this.indent(Me,Oe,Ee)+"<"+Me.name,nt=Me.attribs;for(lt in nt)Ce.call(nt,lt)&&(Ne=nt[lt],Xe+=this.attribute(Ne,Oe,Ee));if(Ze=Me.children.length,Pe=Ze===0?null:Me.children[0],Ze===0||Me.children.every(function(et){return(et.type===re.Text||et.type===re.Raw)&&et.value===""}))Oe.allowEmpty?(Xe+=">",Oe.state=ne.CloseTag,Xe+="</"+Me.name+">"+this.endline(Me,Oe,Ee)):(Oe.state=ne.CloseTag,Xe+=Oe.spaceBeforeSlash+"/>"+this.endline(Me,Oe,Ee));else if(Oe.pretty&&Ze===1&&(Pe.type===re.Text||Pe.type===re.Raw)&&Pe.value!=null)Xe+=">",Oe.state=ne.InsideTag,Oe.suppressPrettyCount++,Ve=!0,Xe+=this.writeChildNode(Pe,Oe,Ee+1),Oe.suppressPrettyCount--,Ve=!1,Oe.state=ne.CloseTag,Xe+="</"+Me.name+">"+this.endline(Me,Oe,Ee);else{if(Oe.dontPrettyTextNodes){for(ct=Me.children,Ue=0,tt=ct.length;Ue<tt;Ue++)if(_e=ct[Ue],(_e.type===re.Text||_e.type===re.Raw)&&_e.value!=null){Oe.suppressPrettyCount++,Ve=!0;break}}for(Xe+=">"+this.endline(Me,Oe,Ee),Oe.state=ne.InsideTag,ot=Me.children,Qe=0,at=ot.length;Qe<at;Qe++)_e=ot[Qe],Xe+=this.writeChildNode(_e,Oe,Ee+1);Oe.state=ne.CloseTag,Xe+=this.indent(Me,Oe,Ee)+"</"+Me.name+">",Ve&&Oe.suppressPrettyCount--,Xe+=this.endline(Me,Oe,Ee),Oe.state=ne.None}return this.closeNode(Me,Oe,Ee),Xe},je.prototype.writeChildNode=function(Me,Oe,Ee){switch(Me.type){case re.CData:return this.cdata(Me,Oe,Ee);case re.Comment:return this.comment(Me,Oe,Ee);case re.Element:return this.element(Me,Oe,Ee);case re.Raw:return this.raw(Me,Oe,Ee);case re.Text:return this.text(Me,Oe,Ee);case re.ProcessingInstruction:return this.processingInstruction(Me,Oe,Ee);case re.Dummy:return"";case re.Declaration:return this.declaration(Me,Oe,Ee);case re.DocType:return this.docType(Me,Oe,Ee);case re.AttributeDeclaration:return this.dtdAttList(Me,Oe,Ee);case re.ElementDeclaration:return this.dtdElement(Me,Oe,Ee);case re.EntityDeclaration:return this.dtdEntity(Me,Oe,Ee);case re.NotationDeclaration:return this.dtdNotation(Me,Oe,Ee);default:throw new Error("Unknown XML node type: "+Me.constructor.name)}},je.prototype.processingInstruction=function(Me,Oe,Ee){var Ne;return this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Ne=this.indent(Me,Oe,Ee)+"<?",Oe.state=ne.InsideTag,Ne+=Me.target,Me.value&&(Ne+=" "+Me.value),Oe.state=ne.CloseTag,Ne+=Oe.spaceBeforeSlash+"?>",Ne+=this.endline(Me,Oe,Ee),Oe.state=ne.None,this.closeNode(Me,Oe,Ee),Ne},je.prototype.raw=function(Me,Oe,Ee){var Ne;return this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Ne=this.indent(Me,Oe,Ee),Oe.state=ne.InsideTag,Ne+=Me.value,Oe.state=ne.CloseTag,Ne+=this.endline(Me,Oe,Ee),Oe.state=ne.None,this.closeNode(Me,Oe,Ee),Ne},je.prototype.text=function(Me,Oe,Ee){var Ne;return this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Ne=this.indent(Me,Oe,Ee),Oe.state=ne.InsideTag,Ne+=Me.value,Oe.state=ne.CloseTag,Ne+=this.endline(Me,Oe,Ee),Oe.state=ne.None,this.closeNode(Me,Oe,Ee),Ne},je.prototype.dtdAttList=function(Me,Oe,Ee){var Ne;return this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Ne=this.indent(Me,Oe,Ee)+"<!ATTLIST",Oe.state=ne.InsideTag,Ne+=" "+Me.elementName+" "+Me.attributeName+" "+Me.attributeType,Me.defaultValueType!=="#DEFAULT"&&(Ne+=" "+Me.defaultValueType),Me.defaultValue&&(Ne+=' "'+Me.defaultValue+'"'),Oe.state=ne.CloseTag,Ne+=Oe.spaceBeforeSlash+">"+this.endline(Me,Oe,Ee),Oe.state=ne.None,this.closeNode(Me,Oe,Ee),Ne},je.prototype.dtdElement=function(Me,Oe,Ee){var Ne;return this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Ne=this.indent(Me,Oe,Ee)+"<!ELEMENT",Oe.state=ne.InsideTag,Ne+=" "+Me.name+" "+Me.value,Oe.state=ne.CloseTag,Ne+=Oe.spaceBeforeSlash+">"+this.endline(Me,Oe,Ee),Oe.state=ne.None,this.closeNode(Me,Oe,Ee),Ne},je.prototype.dtdEntity=function(Me,Oe,Ee){var Ne;return this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Ne=this.indent(Me,Oe,Ee)+"<!ENTITY",Oe.state=ne.InsideTag,Me.pe&&(Ne+=" %"),Ne+=" "+Me.name,Me.value?Ne+=' "'+Me.value+'"':(Me.pubID&&Me.sysID?Ne+=' PUBLIC "'+Me.pubID+'" "'+Me.sysID+'"':Me.sysID&&(Ne+=' SYSTEM "'+Me.sysID+'"'),Me.nData&&(Ne+=" NDATA "+Me.nData)),Oe.state=ne.CloseTag,Ne+=Oe.spaceBeforeSlash+">"+this.endline(Me,Oe,Ee),Oe.state=ne.None,this.closeNode(Me,Oe,Ee),Ne},je.prototype.dtdNotation=function(Me,Oe,Ee){var Ne;return this.openNode(Me,Oe,Ee),Oe.state=ne.OpenTag,Ne=this.indent(Me,Oe,Ee)+"<!NOTATION",Oe.state=ne.InsideTag,Ne+=" "+Me.name,Me.pubID&&Me.sysID?Ne+=' PUBLIC "'+Me.pubID+'" "'+Me.sysID+'"':Me.pubID?Ne+=' PUBLIC "'+Me.pubID+'"':Me.sysID&&(Ne+=' SYSTEM "'+Me.sysID+'"'),Oe.state=ne.CloseTag,Ne+=Oe.spaceBeforeSlash+">"+this.endline(Me,Oe,Ee),Oe.state=ne.None,this.closeNode(Me,Oe,Ee),Ne},je.prototype.openNode=function(Me,Oe,Ee){},je.prototype.closeNode=function(Me,Oe,Ee){},je.prototype.openAttribute=function(Me,Oe,Ee){},je.prototype.closeAttribute=function(Me,Oe,Ee){},je}()}).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,De,ve){(function(){var re,ne,ie,oe,se,me,te,ae,ue,de;de=x("./Utility"),ae=de.assign,ue=de.isFunction,ie=x("./XMLDOMImplementation"),oe=x("./XMLDocument"),se=x("./XMLDocumentCB"),te=x("./XMLStringWriter"),me=x("./XMLStreamWriter"),re=x("./NodeType"),ne=x("./WriterState"),De.exports.create=function(he,we,Se,xe){var ye,Ae;if(he==null)throw new Error("Root element needs a name.");return xe=ae({},we,Se,xe),ye=new oe(xe),Ae=ye.element(he),xe.headless||(ye.declaration(xe),(xe.pubID!=null||xe.sysID!=null)&&ye.dtd(xe)),Ae},De.exports.begin=function(he,we,Se){var xe;return ue(he)&&(xe=[he,we],we=xe[0],Se=xe[1],he={}),we?new se(he,we,Se):new oe(he)},De.exports.stringWriter=function(he){return new te(he)},De.exports.streamWriter=function(he,we){return new me(he,we)},De.exports.implementation=new ie,De.exports.nodeType=re,De.exports.writerState=ne}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(x,De,ve){De.exports=ne;var re=Object.prototype.hasOwnProperty;function ne(){for(var ie={},oe=0;oe<arguments.length;oe++){var se=arguments[oe];for(var me in se)re.call(se,me)&&(ie[me]=se[me])}return ie}},{}],461:[function(x,De,ve){"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,ne=x("./sha"),ie=x("./md5"),oe={sha1:ne,md5:ie},se=64,me=re.alloc(se);me.fill(0);function te(de,he,we){re.isBuffer(he)||(he=re.from(he)),re.isBuffer(we)||(we=re.from(we)),he.length>se?he=de(he):he.length<se&&(he=re.concat([he,me],se));for(var Se=re.alloc(se),xe=re.alloc(se),ye=0;ye<se;ye++)Se[ye]=he[ye]^54,xe[ye]=he[ye]^92;var Ae=de(re.concat([Se,we]));return de(re.concat([xe,Ae]))}function ae(de,he){de=de||"sha1";var we=oe[de],Se=[],xe=0;return we||ue("algorithm:",de,"is not yet supported"),{update:function(Ae){return re.isBuffer(Ae)||(Ae=re.from(Ae)),Se.push(Ae),xe+=Ae.length,this},digest:function(Ae){var Le=re.concat(Se),Ce=he?te(we,he,Le):we(Le);return Se=null,Ae?Ce.toString(Ae):Ce}}}function ue(){var de=[].slice.call(arguments).join(" ");throw new Error([de,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}ve.createHash=function(de){return ae(de)},ve.createHmac=function(de,he){return ae(de,he)},ve.createCredentials=function(){ue("sorry,createCredentials is not implemented yet")},ve.createCipher=function(){ue("sorry,createCipher is not implemented yet")},ve.createCipheriv=function(){ue("sorry,createCipheriv is not implemented yet")},ve.createDecipher=function(){ue("sorry,createDecipher is not implemented yet")},ve.createDecipheriv=function(){ue("sorry,createDecipheriv is not implemented yet")},ve.createSign=function(){ue("sorry,createSign is not implemented yet")},ve.createVerify=function(){ue("sorry,createVerify is not implemented yet")},ve.createDiffieHellman=function(){ue("sorry,createDiffieHellman is not implemented yet")},ve.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,De,ve){"use strict";x("core-js/modules/es.array.fill.js"),x("core-js/modules/es.array.concat.js");var re=x("buffer").Buffer,ne=4,ie=re.alloc(ne);ie.fill(0);var oe=8;function se(ae,ue){if(ae.length%ne!==0){var de=ae.length+(ne-ae.length%ne);ae=re.concat([ae,ie],de)}for(var he=[],we=ue?ae.readInt32BE:ae.readInt32LE,Se=0;Se<ae.length;Se+=ne)he.push(we.call(ae,Se));return he}function me(ae,ue,de){for(var he=re.alloc(ue),we=de?he.writeInt32BE:he.writeInt32LE,Se=0;Se<ae.length;Se++)we.call(he,ae[Se],Se*4,!0);return he}function te(ae,ue,de,he){re.isBuffer(ae)||(ae=re.from(ae));var we=ue(se(ae,he),ae.length*oe);return me(we,de,he)}De.exports={hash:te}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(x,De,ve){"use strict";var re=x("./helpers");function ne(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function ie(he,we){he[we>>5]|=128<<we%32,he[(we+64>>>9<<4)+14]=we;for(var Se=1732584193,xe=-271733879,ye=-1732584194,Ae=271733878,Le=0;Le<he.length;Le+=16){var Ce=Se,je=xe,Me=ye,Oe=Ae;Se=se(Se,xe,ye,Ae,he[Le+0],7,-680876936),Ae=se(Ae,Se,xe,ye,he[Le+1],12,-389564586),ye=se(ye,Ae,Se,xe,he[Le+2],17,606105819),xe=se(xe,ye,Ae,Se,he[Le+3],22,-1044525330),Se=se(Se,xe,ye,Ae,he[Le+4],7,-176418897),Ae=se(Ae,Se,xe,ye,he[Le+5],12,1200080426),ye=se(ye,Ae,Se,xe,he[Le+6],17,-1473231341),xe=se(xe,ye,Ae,Se,he[Le+7],22,-45705983),Se=se(Se,xe,ye,Ae,he[Le+8],7,1770035416),Ae=se(Ae,Se,xe,ye,he[Le+9],12,-1958414417),ye=se(ye,Ae,Se,xe,he[Le+10],17,-42063),xe=se(xe,ye,Ae,Se,he[Le+11],22,-1990404162),Se=se(Se,xe,ye,Ae,he[Le+12],7,1804603682),Ae=se(Ae,Se,xe,ye,he[Le+13],12,-40341101),ye=se(ye,Ae,Se,xe,he[Le+14],17,-1502002290),xe=se(xe,ye,Ae,Se,he[Le+15],22,1236535329),Se=me(Se,xe,ye,Ae,he[Le+1],5,-165796510),Ae=me(Ae,Se,xe,ye,he[Le+6],9,-1069501632),ye=me(ye,Ae,Se,xe,he[Le+11],14,643717713),xe=me(xe,ye,Ae,Se,he[Le+0],20,-373897302),Se=me(Se,xe,ye,Ae,he[Le+5],5,-701558691),Ae=me(Ae,Se,xe,ye,he[Le+10],9,38016083),ye=me(ye,Ae,Se,xe,he[Le+15],14,-660478335),xe=me(xe,ye,Ae,Se,he[Le+4],20,-405537848),Se=me(Se,xe,ye,Ae,he[Le+9],5,568446438),Ae=me(Ae,Se,xe,ye,he[Le+14],9,-1019803690),ye=me(ye,Ae,Se,xe,he[Le+3],14,-187363961),xe=me(xe,ye,Ae,Se,he[Le+8],20,1163531501),Se=me(Se,xe,ye,Ae,he[Le+13],5,-1444681467),Ae=me(Ae,Se,xe,ye,he[Le+2],9,-51403784),ye=me(ye,Ae,Se,xe,he[Le+7],14,1735328473),xe=me(xe,ye,Ae,Se,he[Le+12],20,-1926607734),Se=te(Se,xe,ye,Ae,he[Le+5],4,-378558),Ae=te(Ae,Se,xe,ye,he[Le+8],11,-2022574463),ye=te(ye,Ae,Se,xe,he[Le+11],16,1839030562),xe=te(xe,ye,Ae,Se,he[Le+14],23,-35309556),Se=te(Se,xe,ye,Ae,he[Le+1],4,-1530992060),Ae=te(Ae,Se,xe,ye,he[Le+4],11,1272893353),ye=te(ye,Ae,Se,xe,he[Le+7],16,-155497632),xe=te(xe,ye,Ae,Se,he[Le+10],23,-1094730640),Se=te(Se,xe,ye,Ae,he[Le+13],4,681279174),Ae=te(Ae,Se,xe,ye,he[Le+0],11,-358537222),ye=te(ye,Ae,Se,xe,he[Le+3],16,-722521979),xe=te(xe,ye,Ae,Se,he[Le+6],23,76029189),Se=te(Se,xe,ye,Ae,he[Le+9],4,-640364487),Ae=te(Ae,Se,xe,ye,he[Le+12],11,-421815835),ye=te(ye,Ae,Se,xe,he[Le+15],16,530742520),xe=te(xe,ye,Ae,Se,he[Le+2],23,-995338651),Se=ae(Se,xe,ye,Ae,he[Le+0],6,-198630844),Ae=ae(Ae,Se,xe,ye,he[Le+7],10,1126891415),ye=ae(ye,Ae,Se,xe,he[Le+14],15,-1416354905),xe=ae(xe,ye,Ae,Se,he[Le+5],21,-57434055),Se=ae(Se,xe,ye,Ae,he[Le+12],6,1700485571),Ae=ae(Ae,Se,xe,ye,he[Le+3],10,-1894986606),ye=ae(ye,Ae,Se,xe,he[Le+10],15,-1051523),xe=ae(xe,ye,Ae,Se,he[Le+1],21,-2054922799),Se=ae(Se,xe,ye,Ae,he[Le+8],6,1873313359),Ae=ae(Ae,Se,xe,ye,he[Le+15],10,-30611744),ye=ae(ye,Ae,Se,xe,he[Le+6],15,-1560198380),xe=ae(xe,ye,Ae,Se,he[Le+13],21,1309151649),Se=ae(Se,xe,ye,Ae,he[Le+4],6,-145523070),Ae=ae(Ae,Se,xe,ye,he[Le+11],10,-1120210379),ye=ae(ye,Ae,Se,xe,he[Le+2],15,718787259),xe=ae(xe,ye,Ae,Se,he[Le+9],21,-343485551),Se=ue(Se,Ce),xe=ue(xe,je),ye=ue(ye,Me),Ae=ue(Ae,Oe)}return Array(Se,xe,ye,Ae)}function oe(he,we,Se,xe,ye,Ae){return ue(de(ue(ue(we,he),ue(xe,Ae)),ye),Se)}function se(he,we,Se,xe,ye,Ae,Le){return oe(we&Se|~we&xe,he,we,ye,Ae,Le)}function me(he,we,Se,xe,ye,Ae,Le){return oe(we&xe|Se&~xe,he,we,ye,Ae,Le)}function te(he,we,Se,xe,ye,Ae,Le){return oe(we^Se^xe,he,we,ye,Ae,Le)}function ae(he,we,Se,xe,ye,Ae,Le){return oe(Se^(we|~xe),he,we,ye,Ae,Le)}function ue(he,we){var Se=(he&65535)+(we&65535),xe=(he>>16)+(we>>16)+(Se>>16);return xe<<16|Se&65535}function de(he,we){return he<<we|he>>>32-we}De.exports=function(we){return re.hash(we,ie,16)}},{"./helpers":462}],464:[function(x,De,ve){"use strict";var re=x("./helpers");function ne(te,ae){te[ae>>5]|=128<<24-ae%32,te[(ae+64>>9<<4)+15]=ae;for(var ue=Array(80),de=1732584193,he=-271733879,we=-1732584194,Se=271733878,xe=-1009589776,ye=0;ye<te.length;ye+=16){for(var Ae=de,Le=he,Ce=we,je=Se,Me=xe,Oe=0;Oe<80;Oe++){Oe<16?ue[Oe]=te[ye+Oe]:ue[Oe]=me(ue[Oe-3]^ue[Oe-8]^ue[Oe-14]^ue[Oe-16],1);var Ee=se(se(me(de,5),ie(Oe,he,we,Se)),se(se(xe,ue[Oe]),oe(Oe)));xe=Se,Se=we,we=me(he,30),he=de,de=Ee}de=se(de,Ae),he=se(he,Le),we=se(we,Ce),Se=se(Se,je),xe=se(xe,Me)}return Array(de,he,we,Se,xe)}function ie(te,ae,ue,de){return te<20?ae&ue|~ae&de:te<40?ae^ue^de:te<60?ae&ue|ae&de|ue&de:ae^ue^de}function oe(te){return te<20?1518500249:te<40?1859775393:te<60?-1894007588:-899497514}function se(te,ae){var ue=(te&65535)+(ae&65535),de=(te>>16)+(ae>>16)+(ue>>16);return de<<16|ue&65535}function me(te,ae){return te<<ae|te>>>32-ae}De.exports=function(ae){return re.hash(ae,ne,20,!0)}},{"./helpers":462}],465:[function(x,De,ve){"use strict";De.exports=function(){return function(){}}},{}],466:[function(x,De,ve){(function(re){(function(){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),ie=ne(x("@babel/runtime/helpers/typeof")),oe=x("stream"),se=oe.Stream,me=x("../lib/common/utils/isArray"),te=me.isArray;De.exports.string=function(de){return typeof de=="string"},De.exports.array=te,De.exports.buffer=re.isBuffer;function ae(ue){return ue instanceof se}De.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,De,ve){"use strict";var re=x("immediate"),ne=De.exports={};ne.nextTick=re,ne.title="browser",ne.browser=!0,ne.env={},ne.argv=[],ne.version="",ne.versions={};function ie(){}ne.on=ie,ne.addListener=ie,ne.once=ie,ne.off=ie,ne.removeListener=ie,ne.removeAllListeners=ie,ne.emit=ie,ne.prependListener=ie,ne.prependOnceListener=ie,ne.listeners=function(oe){return[]},ne.binding=function(oe){throw new Error("process.binding is not supported")},ne.cwd=function(){return"/"},ne.chdir=function(oe){throw new Error("process.chdir is not supported")},ne.umask=function(){return 0}},{immediate:358}],468:[function(x,De,ve){(function(re){(function(){"use strict";x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.search.js");var ne=x("./lib/request"),ie=x("./lib/response"),oe=x("xtend"),se=x("builtin-status-codes"),me=x("url"),te=ve;te.request=function(ae,ue){typeof ae=="string"?ae=me.parse(ae):ae=oe(ae);var de=re.location.protocol.search(/^https?:$/)===-1?"http:":"",he=ae.protocol||de,we=ae.hostname||ae.host,Se=ae.port,xe=ae.path||"/";we&&we.indexOf(":")!==-1&&(we="["+we+"]"),ae.url=(we?he+"//"+we:"")+(Se?":"+Se:"")+xe,ae.method=(ae.method||"GET").toUpperCase(),ae.headers=ae.headers||{};var ye=new ne(ae);return ue&&ye.on("response",ue),ye},te.get=function(ue,de){var he=te.request(ue,de);return he.end(),he},te.ClientRequest=ne,te.IncomingMessage=ie.IncomingMessage,te.Agent=function(){},te.Agent.defaultMaxSockets=4,te.globalAgent=new te.Agent,te.STATUS_CODES=se,te.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 Ht!="undefined"?Ht: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,De,ve){(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"),ve.fetch=te(re.fetch)&&te(re.ReadableStream),ve.writableStream=te(re.WritableStream),ve.abortController=te(re.AbortController),ve.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),ve.blobConstructor=!0}catch(ae){}var ne;function ie(){if(ne!==void 0)return ne;if(re.XMLHttpRequest){ne=new re.XMLHttpRequest;try{ne.open("GET",re.XDomainRequest?"/":"https://example.com")}catch(ae){ne=null}}else ne=null;return ne}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",me=se&&te(re.ArrayBuffer.prototype.slice);ve.arraybuffer=ve.fetch||se&&oe("arraybuffer"),ve.msstream=!ve.fetch&&me&&oe("ms-stream"),ve.mozchunkedarraybuffer=!ve.fetch&&se&&oe("moz-chunked-arraybuffer"),ve.overrideMimeType=ve.fetch||(ie()?te(ie().overrideMimeType):!1),ve.vbArray=te(re.VBArray);function te(ae){return typeof ae=="function"}ne=null}).call(this)}).call(this,typeof Ht!="undefined"?Ht: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,De,ve){(function(re,ne,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"),me=x("./response"),te=x("readable-stream"),ae=x("to-arraybuffer"),ue=me.IncomingMessage,de=me.readyStates;function he(ye,Ae){return oe.fetch&&Ae?"fetch":oe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":oe.msstream?"ms-stream":oe.arraybuffer&&ye?"arraybuffer":oe.vbArray&&ye?"text:vbarray":"text"}var we=De.exports=function(ye){var Ae=this;te.Writable.call(Ae),Ae._opts=ye,Ae._body=[],Ae._headers={},ye.auth&&Ae.setHeader("Authorization","Basic "+new ie(ye.auth).toString("base64")),Object.keys(ye.headers).forEach(function(je){Ae.setHeader(je,ye.headers[je])});var Le,Ce=!0;if(ye.mode==="disable-fetch"||"requestTimeout"in ye&&!oe.abortController)Ce=!1,Le=!0;else if(ye.mode==="prefer-streaming")Le=!1;else if(ye.mode==="allow-wrong-content-type")Le=!oe.overrideMimeType;else if(!ye.mode||ye.mode==="default"||ye.mode==="prefer-fast")Le=!0;else throw new Error("Invalid value for opts.mode");Ae._mode=he(Le,Ce),Ae._fetchTimer=null,Ae.on("finish",function(){Ae._onFinish()})};se(we,te.Writable),we.prototype.setHeader=function(ye,Ae){var Le=this,Ce=ye.toLowerCase();xe.indexOf(Ce)===-1&&(Le._headers[Ce]={name:ye,value:Ae})},we.prototype.getHeader=function(ye){var Ae=this._headers[ye.toLowerCase()];return Ae?Ae.value:null},we.prototype.removeHeader=function(ye){var Ae=this;delete Ae._headers[ye.toLowerCase()]},we.prototype._onFinish=function(){var ye=this;if(!ye._destroyed){var Ae=ye._opts,Le=ye._headers,Ce=null;Ae.method!=="GET"&&Ae.method!=="HEAD"&&(oe.arraybuffer?Ce=ae(ie.concat(ye._body)):oe.blobConstructor?Ce=new ne.Blob(ye._body.map(function(_e){return ae(_e)}),{type:(Le["content-type"]||{}).value||""}):Ce=ie.concat(ye._body).toString());var je=[];if(Object.keys(Le).forEach(function(_e){var Ze=Le[_e].name,Pe=Le[_e].value;Array.isArray(Pe)?Pe.forEach(function(Ue){je.push([Ze,Ue])}):je.push([Ze,Pe])}),ye._mode==="fetch"){var Me=null,Oe=null;if(oe.abortController){var Ee=new AbortController;Me=Ee.signal,ye._fetchAbortController=Ee,"requestTimeout"in Ae&&Ae.requestTimeout!==0&&(ye._fetchTimer=ne.setTimeout(function(){ye.emit("requestTimeout"),ye._fetchAbortController&&ye._fetchAbortController.abort()},Ae.requestTimeout))}ne.fetch(ye._opts.url,{method:ye._opts.method,headers:je,body:Ce||void 0,mode:"cors",credentials:Ae.withCredentials?"include":"same-origin",signal:Me}).then(function(_e){ye._fetchResponse=_e,ye._connect()},function(_e){ne.clearTimeout(ye._fetchTimer),ye._destroyed||ye.emit("error",_e)})}else{var Ne=ye._xhr=new ne.XMLHttpRequest;try{Ne.open(ye._opts.method,ye._opts.url,!0)}catch(_e){re.nextTick(function(){ye.emit("error",_e)});return}"responseType"in Ne&&(Ne.responseType=ye._mode.split(":")[0]),"withCredentials"in Ne&&(Ne.withCredentials=!!Ae.withCredentials),ye._mode==="text"&&"overrideMimeType"in Ne&&Ne.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in Ae&&(Ne.timeout=Ae.requestTimeout,Ne.ontimeout=function(){ye.emit("requestTimeout")}),je.forEach(function(_e){Ne.setRequestHeader(_e[0],_e[1])}),ye._response=null,Ne.onreadystatechange=function(){switch(Ne.readyState){case de.LOADING:case de.DONE:ye._onXHRProgress();break}},ye._mode==="moz-chunked-arraybuffer"&&(Ne.onprogress=function(){ye._onXHRProgress()}),Ne.onerror=function(){ye._destroyed||ye.emit("error",new Error("XHR error"))};try{Ne.send(Ce)}catch(_e){re.nextTick(function(){ye.emit("error",_e)});return}}}};function Se(ye){try{var Ae=ye.status;return Ae!==null&&Ae!==0}catch(Le){return!1}}we.prototype._onXHRProgress=function(){var ye=this;!Se(ye._xhr)||ye._destroyed||(ye._response||ye._connect(),ye._response._onXHRProgress())},we.prototype._connect=function(){var ye=this;ye._destroyed||(ye._response=new ue(ye._xhr,ye._fetchResponse,ye._mode,ye._fetchTimer),ye._response.on("error",function(Ae){ye.emit("error",Ae)}),ye.emit("response",ye._response))},we.prototype._write=function(ye,Ae,Le){var Ce=this;Ce._body.push(ye),Le()},we.prototype.abort=we.prototype.destroy=function(){var ye=this;ye._destroyed=!0,ne.clearTimeout(ye._fetchTimer),ye._response&&(ye._response._destroyed=!0),ye._xhr?ye._xhr.abort():ye._fetchAbortController&&ye._fetchAbortController.abort()},we.prototype.end=function(ye,Ae,Le){var Ce=this;typeof ye=="function"&&(Le=ye,ye=void 0),te.Writable.prototype.end.call(Ce,ye,Ae,Le)},we.prototype.flushHeaders=function(){},we.prototype.setTimeout=function(){},we.prototype.setNoDelay=function(){},we.prototype.setSocketKeepAlive=function(){};var xe=["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 Ht!="undefined"?Ht: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,De,ve){(function(re,ne,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"),me=x("readable-stream"),te=ve.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ae=ve.IncomingMessage=function(ue,de,he,we){var Se=this;if(me.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 xe=function Me(){Ae.read().then(function(Oe){if(!Se._destroyed){if(Oe.done){ne.clearTimeout(we),Se.push(null);return}Se.push(new ie(Oe.value)),Me()}}).catch(function(Oe){ne.clearTimeout(we),Se._destroyed||Se.emit("error",Oe)})};if(Se._fetchResponse=de,Se.url=de.url,Se.statusCode=de.status,Se.statusMessage=de.statusText,de.headers.forEach(function(Me,Oe){Se.headers[Oe.toLowerCase()]=Me,Se.rawHeaders.push(Oe,Me)}),oe.writableStream){var ye=new WritableStream({write:function(Oe){return new Promise(function(Ee,Ne){Se._destroyed?Ne():Se.push(new ie(Oe))?Ee():Se._resumeFetch=Ee})},close:function(){ne.clearTimeout(we),Se._destroyed||Se.push(null)},abort:function(Oe){Se._destroyed||Se.emit("error",Oe)}});try{de.body.pipeTo(ye).catch(function(Me){ne.clearTimeout(we),Se._destroyed||Se.emit("error",Me)});return}catch(Me){}}var Ae=de.body.getReader();xe()}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(Me){var Oe=Me.match(/^([^:]+):\s*(.*)/);if(Oe){var Ee=Oe[1].toLowerCase();Ee==="set-cookie"?(Se.headers[Ee]===void 0&&(Se.headers[Ee]=[]),Se.headers[Ee].push(Oe[2])):Se.headers[Ee]!==void 0?Se.headers[Ee]+=", "+Oe[2]:Se.headers[Ee]=Oe[2],Se.rawHeaders.push(Oe[1],Oe[2])}}),Se._charset="x-user-defined",!oe.overrideMimeType){var Ce=Se.rawHeaders["mime-type"];if(Ce){var je=Ce.match(/;\s*charset=([^;])(;|$)/);je&&(Se._charset=je[1].toLowerCase())}Se._charset||(Se._charset="utf-8")}}};se(ae,me.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!==te.DONE)break;try{he=new ne.VBArray(de.responseBody).toArray()}catch(Ae){}if(he!==null){ue.push(new ie(he));break}case"text":try{he=de.responseText}catch(Ae){ue._mode="text:vbarray";break}if(he.length>ue._pos){var we=he.substr(ue._pos);if(ue._charset==="x-user-defined"){for(var Se=new ie(we.length),xe=0;xe<we.length;xe++)Se[xe]=we.charCodeAt(xe)&255;ue.push(Se)}else ue.push(we,ue._charset);ue._pos=he.length}break;case"arraybuffer":if(de.readyState!==te.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!==te.LOADING||!he)break;ue.push(new ie(new Uint8Array(he)));break;case"ms-stream":if(he=de.response,de.readyState!==te.LOADING)break;var ye=new ne.MSStreamReader;ye.onprogress=function(){ye.result.byteLength>ue._pos&&(ue.push(new ie(new Uint8Array(ye.result.slice(ue._pos)))),ue._pos=ye.result.byteLength)},ye.onload=function(){ue.push(null)},ye.readAsArrayBuffer(he);break}ue._xhr.readyState===te.DONE&&ue._mode!=="ms-stream"&&ue.push(null)}}).call(this)}).call(this,x("_process"),typeof Ht!="undefined"?Ht: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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=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");ve.parse=Oe,ve.resolve=Ne,ve.resolveObject=_e,ve.format=Ee,ve.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 me=/^([a-z0-9.+-]+:)/i,te=/:[0-9]*$/,ae=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ue=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],de=["{","}","|","\\","^","`"].concat(ue),he=["'"].concat(de),we=["%","/","?",";","#"].concat(he),Se=["/","?","#"],xe=255,ye=/^[+a-z0-9A-Z_-]{0,63}$/,Ae=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Le={javascript:!0,"javascript:":!0},Ce={javascript:!0,"javascript:":!0},je={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Me=x("querystring");function Oe(Ze,Pe,Ue){if(Ze&&oe.isObject(Ze)&&Ze instanceof se)return Ze;var Qe=new se;return Qe.parse(Ze,Pe,Ue),Qe}se.prototype.parse=function(Ze,Pe,Ue){if(!oe.isString(Ze))throw new TypeError("Parameter 'url' must be a string, not "+(0,ne.default)(Ze));var Qe=Ze.indexOf("?"),tt=Qe!==-1&&Qe<Ze.indexOf("#")?"?":"#",at=Ze.split(tt),lt=/\\/g;at[0]=at[0].replace(lt,"/"),Ze=at.join(tt);var Ve=Ze;if(Ve=Ve.trim(),!Ue&&Ze.split("#").length===1){var Xe=ae.exec(Ve);if(Xe)return this.path=Ve,this.href=Ve,this.pathname=Xe[1],Xe[2]?(this.search=Xe[2],Pe?this.query=Me.parse(this.search.substr(1)):this.query=this.search.substr(1)):Pe&&(this.search="",this.query={}),this}var nt=me.exec(Ve);if(nt){nt=nt[0];var ct=nt.toLowerCase();this.protocol=ct,Ve=Ve.substr(nt.length)}if(Ue||nt||Ve.match(/^\/\/[^@\/]+@[^@\/]+/)){var ot=Ve.substr(0,2)==="//";ot&&!(nt&&Ce[nt])&&(Ve=Ve.substr(2),this.slashes=!0)}if(!Ce[nt]&&(ot||nt&&!je[nt])){for(var et=-1,qe=0;qe<Se.length;qe++){var it=Ve.indexOf(Se[qe]);it!==-1&&(et===-1||it<et)&&(et=it)}var yt,pt;et===-1?pt=Ve.lastIndexOf("@"):pt=Ve.lastIndexOf("@",et),pt!==-1&&(yt=Ve.slice(0,pt),Ve=Ve.slice(pt+1),this.auth=decodeURIComponent(yt)),et=-1;for(var qe=0;qe<we.length;qe++){var it=Ve.indexOf(we[qe]);it!==-1&&(et===-1||it<et)&&(et=it)}et===-1&&(et=Ve.length),this.host=Ve.slice(0,et),Ve=Ve.slice(et),this.parseHost(),this.hostname=this.hostname||"";var Dt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Dt)for(var At=this.hostname.split("."),qe=0,st=At.length;qe<st;qe++){var Ge=At[qe];if(Ge&&!Ge.match(ye)){for(var We="",le=0,fe=Ge.length;le<fe;le++)Ge.charCodeAt(le)>127?We+="x":We+=Ge[le];if(!We.match(ye)){var ze=At.slice(0,qe),He=At.slice(qe+1),pe=Ge.match(Ae);pe&&(ze.push(pe[1]),He.unshift(pe[2])),He.length&&(Ve="/"+He.join(".")+Ve),this.hostname=ze.join(".");break}}}this.hostname.length>xe?this.hostname="":this.hostname=this.hostname.toLowerCase(),Dt||(this.hostname=ie.toASCII(this.hostname));var Ie=this.port?":"+this.port:"",Ke=this.hostname||"";this.host=Ke+Ie,this.href+=this.host,Dt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Ve[0]!=="/"&&(Ve="/"+Ve))}if(!Le[ct])for(var qe=0,st=he.length;qe<st;qe++){var Ye=he[qe];if(Ve.indexOf(Ye)!==-1){var Je=encodeURIComponent(Ye);Je===Ye&&(Je=escape(Ye)),Ve=Ve.split(Ye).join(Je)}}var dt=Ve.indexOf("#");dt!==-1&&(this.hash=Ve.substr(dt),Ve=Ve.slice(0,dt));var bt=Ve.indexOf("?");if(bt!==-1?(this.search=Ve.substr(bt),this.query=Ve.substr(bt+1),Pe&&(this.query=Me.parse(this.query)),Ve=Ve.slice(0,bt)):Pe&&(this.search="",this.query={}),Ve&&(this.pathname=Ve),je[ct]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ie=this.pathname||"",vt=this.search||"";this.path=Ie+vt}return this.href=this.format(),this};function Ee(Ze){return oe.isString(Ze)&&(Ze=Oe(Ze)),Ze instanceof se?Ze.format():se.prototype.format.call(Ze)}se.prototype.format=function(){var Ze=this.auth||"";Ze&&(Ze=encodeURIComponent(Ze),Ze=Ze.replace(/%3A/i,":"),Ze+="@");var Pe=this.protocol||"",Ue=this.pathname||"",Qe=this.hash||"",tt=!1,at="";this.host?tt=Ze+this.host:this.hostname&&(tt=Ze+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(tt+=":"+this.port)),this.query&&oe.isObject(this.query)&&Object.keys(this.query).length&&(at=Me.stringify(this.query));var lt=this.search||at&&"?"+at||"";return Pe&&Pe.substr(-1)!==":"&&(Pe+=":"),this.slashes||(!Pe||je[Pe])&&tt!==!1?(tt="//"+(tt||""),Ue&&Ue.charAt(0)!=="/"&&(Ue="/"+Ue)):tt||(tt=""),Qe&&Qe.charAt(0)!=="#"&&(Qe="#"+Qe),lt&<.charAt(0)!=="?"&&(lt="?"+lt),Ue=Ue.replace(/[?#]/g,function(Ve){return encodeURIComponent(Ve)}),lt=lt.replace("#","%23"),Pe+tt+Ue+lt+Qe};function Ne(Ze,Pe){return Oe(Ze,!1,!0).resolve(Pe)}se.prototype.resolve=function(Ze){return this.resolveObject(Oe(Ze,!1,!0)).format()};function _e(Ze,Pe){return Ze?Oe(Ze,!1,!0).resolveObject(Pe):Pe}se.prototype.resolveObject=function(Ze){if(oe.isString(Ze)){var Pe=new se;Pe.parse(Ze,!1,!0),Ze=Pe}for(var Ue=new se,Qe=Object.keys(this),tt=0;tt<Qe.length;tt++){var at=Qe[tt];Ue[at]=this[at]}if(Ue.hash=Ze.hash,Ze.href==="")return Ue.href=Ue.format(),Ue;if(Ze.slashes&&!Ze.protocol){for(var lt=Object.keys(Ze),Ve=0;Ve<lt.length;Ve++){var Xe=lt[Ve];Xe!=="protocol"&&(Ue[Xe]=Ze[Xe])}return je[Ue.protocol]&&Ue.hostname&&!Ue.pathname&&(Ue.path=Ue.pathname="/"),Ue.href=Ue.format(),Ue}if(Ze.protocol&&Ze.protocol!==Ue.protocol){if(!je[Ze.protocol]){for(var nt=Object.keys(Ze),ct=0;ct<nt.length;ct++){var ot=nt[ct];Ue[ot]=Ze[ot]}return Ue.href=Ue.format(),Ue}if(Ue.protocol=Ze.protocol,!Ze.host&&!Ce[Ze.protocol]){for(var st=(Ze.pathname||"").split("/");st.length&&!(Ze.host=st.shift()););Ze.host||(Ze.host=""),Ze.hostname||(Ze.hostname=""),st[0]!==""&&st.unshift(""),st.length<2&&st.unshift(""),Ue.pathname=st.join("/")}else Ue.pathname=Ze.pathname;if(Ue.search=Ze.search,Ue.query=Ze.query,Ue.host=Ze.host||"",Ue.auth=Ze.auth,Ue.hostname=Ze.hostname||Ze.host,Ue.port=Ze.port,Ue.pathname||Ue.search){var et=Ue.pathname||"",qe=Ue.search||"";Ue.path=et+qe}return Ue.slashes=Ue.slashes||Ze.slashes,Ue.href=Ue.format(),Ue}var it=Ue.pathname&&Ue.pathname.charAt(0)==="/",yt=Ze.host||Ze.pathname&&Ze.pathname.charAt(0)==="/",pt=yt||it||Ue.host&&Ze.pathname,Dt=pt,At=Ue.pathname&&Ue.pathname.split("/")||[],st=Ze.pathname&&Ze.pathname.split("/")||[],Ge=Ue.protocol&&!je[Ue.protocol];if(Ge&&(Ue.hostname="",Ue.port=null,Ue.host&&(At[0]===""?At[0]=Ue.host:At.unshift(Ue.host)),Ue.host="",Ze.protocol&&(Ze.hostname=null,Ze.port=null,Ze.host&&(st[0]===""?st[0]=Ze.host:st.unshift(Ze.host)),Ze.host=null),pt=pt&&(st[0]===""||At[0]==="")),yt)Ue.host=Ze.host||Ze.host===""?Ze.host:Ue.host,Ue.hostname=Ze.hostname||Ze.hostname===""?Ze.hostname:Ue.hostname,Ue.search=Ze.search,Ue.query=Ze.query,At=st;else if(st.length)At||(At=[]),At.pop(),At=At.concat(st),Ue.search=Ze.search,Ue.query=Ze.query;else if(!oe.isNullOrUndefined(Ze.search)){if(Ge){Ue.hostname=Ue.host=At.shift();var We=Ue.host&&Ue.host.indexOf("@")>0?Ue.host.split("@"):!1;We&&(Ue.auth=We.shift(),Ue.host=Ue.hostname=We.shift())}return Ue.search=Ze.search,Ue.query=Ze.query,(!oe.isNull(Ue.pathname)||!oe.isNull(Ue.search))&&(Ue.path=(Ue.pathname?Ue.pathname:"")+(Ue.search?Ue.search:"")),Ue.href=Ue.format(),Ue}if(!At.length)return Ue.pathname=null,Ue.search?Ue.path="/"+Ue.search:Ue.path=null,Ue.href=Ue.format(),Ue;for(var le=At.slice(-1)[0],fe=(Ue.host||Ze.host||At.length>1)&&(le==="."||le==="..")||le==="",ze=0,He=At.length;He>=0;He--)le=At[He],le==="."?At.splice(He,1):le===".."?(At.splice(He,1),ze++):ze&&(At.splice(He,1),ze--);if(!pt&&!Dt)for(;ze--;ze)At.unshift("..");pt&&At[0]!==""&&(!At[0]||At[0].charAt(0)!=="/")&&At.unshift(""),fe&&At.join("/").substr(-1)!=="/"&&At.push("");var pe=At[0]===""||At[0]&&At[0].charAt(0)==="/";if(Ge){Ue.hostname=Ue.host=pe?"":At.length?At.shift():"";var We=Ue.host&&Ue.host.indexOf("@")>0?Ue.host.split("@"):!1;We&&(Ue.auth=We.shift(),Ue.host=Ue.hostname=We.shift())}return pt=pt||Ue.host&&At.length,pt&&!pe&&At.unshift(""),At.length?Ue.pathname=At.join("/"):(Ue.pathname=null,Ue.path=null),(!oe.isNull(Ue.pathname)||!oe.isNull(Ue.search))&&(Ue.path=(Ue.pathname?Ue.pathname:"")+(Ue.search?Ue.search:"")),Ue.auth=Ze.auth||Ue.auth,Ue.slashes=Ue.slashes||Ze.slashes,Ue.href=Ue.format(),Ue},se.prototype.parseHost=function(){var Ze=this.host,Pe=te.exec(Ze);Pe&&(Pe=Pe[0],Pe!==":"&&(this.port=Pe.substr(1)),Ze=Ze.substr(0,Ze.length-Pe.length)),Ze&&(this.hostname=Ze)}},{"./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,De,ve){"use strict";var re=x("@babel/runtime/helpers/interopRequireDefault"),ne=re(x("@babel/runtime/helpers/typeof"));De.exports={isString:function(oe){return typeof oe=="string"},isObject:function(oe){return(0,ne.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,De,ve){"use strict";x("core-js/modules/es.number.constructor.js"),ve.encodeURIComponent=function(re){try{return encodeURIComponent(re)}catch(ne){return re}},ve.escape=x("escape-html"),ve.timestamp=function(ne){if(ne){var ie=ne;return typeof ie=="string"&&(ie=Number(ie)),String(ne).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,De,ve){(function(re,ne){(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"),me=x("url"),te=x("http"),ae=x("https"),ue=x("debug")("urllib"),de=x("humanize-ms"),he=0,we=Math.pow(2,31)-10,Se=/^https?:\/\//i;function xe(Ce,je){return Ce===void 0?je:Ce}function ye(Ce){return Ce?Ce.split(";")[0].trim().toLowerCase():""}function Ae(Ce,je){return function(Me,Oe,Ee){if(Me)return je(Me);Ce({data:Oe,status:Ee.statusCode,headers:Ee.headers,res:Ee})}}ve.TIMEOUTS=[de("300s"),de("300s")];var Le=["json","text"];ve.request=function(je,Me,Oe){return arguments.length===2&&typeof Me=="function"&&(Oe=Me,Me=null),typeof Oe=="function"?ve.requestWithCallback(je,Me,Oe):new Promise(function(Ee,Ne){ve.requestWithCallback(je,Me,Ae(Ee,Ne))})},ve.requestWithCallback=function(je,Me,Oe){if(!je||typeof je!="string"&&(0,oe.default)(je)!=="object"){var Ee=se.format("expect request url to be a string or a http request options, but got %j",je);throw new Error(Ee)}arguments.length===2&&typeof Me=="function"&&(Oe=Me,Me=null),Me=Me||{},he>=we&&(he=0);var Ne=++he;Me.requestUrls=Me.requestUrls||[];var _e={requestId:Ne,url:je,args:Me,ctx:Me.ctx};Me.emitter&&Me.emitter.emit("request",_e),Me.timeout=Me.timeout||ve.TIMEOUTS,Me.maxRedirects=Me.maxRedirects||10,Me.streaming=Me.streaming||Me.customResponse;var Ze=Date.now(),Pe;typeof je=="string"?(Se.test(je)||(je="https://"+je),Pe=me.parse(je)):Pe=je;var Ue=(Me.type||Me.method||Pe.method||"GET").toUpperCase(),Qe=Pe.port||80,tt=te,at=xe(Me.agent,ve.agent),lt=Me.fixJSONCtlChars;Pe.protocol==="https:"&&(tt=ae,at=xe(Me.httpsAgent,ve.httpsAgent),Pe.port||(Qe=443));var Ve={host:Pe.hostname||Pe.host||"localhost",path:Pe.path||"/",method:Ue,port:Qe,agent:at,headers:Me.headers||{},lookup:Me.lookup};Array.isArray(Me.timeout)?Ve.requestTimeout=Me.timeout[Me.timeout.length-1]:typeof Me.timeout!="undefined"&&(Ve.requestTimeout=Me.timeout);var Xe=Me.auth||Pe.auth;Xe&&(Ve.auth=Xe);var nt=Me.content||Me.data,ct=Ue==="GET"||Ue==="HEAD"||Me.dataAsQueryString;if(!Me.content&&nt&&!(typeof nt=="string"||ne.isBuffer(nt)))if(ct)nt=Me.nestedQuerystring?qs.stringify(nt):querystring.stringify(nt);else{var ot=Ve.headers["Content-Type"]||Ve.headers["content-type"];ot||(Me.contentType==="json"?ot="application/json":ot="application/x-www-form-urlencoded",Ve.headers["Content-Type"]=ot),ye(ot)==="application/json"?nt=JSON.stringify(nt):nt=Me.nestedQuerystring?qs.stringify(nt):querystring.stringify(nt)}ct&&nt&&(Ve.path+=(Pe.query?"&":"?")+nt,nt=null);var et=0;if(nt){var qe=nt.length;ne.isBuffer(nt)||(qe=ne.byteLength(nt)),et=Ve.headers["Content-Length"]=qe}Me.dataType==="json"&&(Ve.headers.Accept="application/json"),typeof Me.beforeRequest=="function"&&Me.beforeRequest(Ve);var it=null,yt=null,pt=null,Dt=!1,At=!1,st=0,Ge=-1,We=!1,le="",fe="",ze=null;Me.timing&&(ze={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function He(){it&&(clearTimeout(it),it=null)}function pe(){yt&&(clearTimeout(yt),yt=null)}function Ie(_t,Mt,ft){if(pe(),!Oe){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Ne,re.pid,Ve.method,je),_t&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Ne,re.pid,_t.name,_t.message,_t.stack);return}var St=Oe;Oe=null;var Nt={};ft&&(Ge=ft.statusCode,Nt=ft.headers);var Ft=Date.now()-Ze;ze&&(ze.contentDownload=Ft),ue("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ft,st,Ge,Ve.method,Ve.host,Ve.path,At,ze);var Ut={status:Ge,statusCode:Ge,headers:Nt,size:st,aborted:We,rt:Ft,keepAliveSocket:At,data:Mt,requestUrls:Me.requestUrls,timing:ze,remoteAddress:le,remotePort:fe};if(_t){var sr="";at&&typeof at.getCurrentStatus=="function"&&(sr=", agent status: "+JSON.stringify(at.getCurrentStatus())),_t.message+=", "+Ve.method+" "+je+" "+Ge+" (connected: "+Dt+", keepalive socket: "+At+sr+`)
|
|
|
headers: `+JSON.stringify(Nt),_t.data=Mt,_t.path=Ve.path,_t.status=Ge,_t.headers=Nt,_t.res=Ut}St(_t,Mt,Me.streaming?ft:Ut),Me.emitter&&(_e.url=je,_e.socket=kt&&kt.connection,_e.options=Ve,_e.size=et,Me.emitter.emit("response",{requestId:Ne,error:_t,ctx:Me.ctx,req:_e,res:Ut}))}function Ke(_t){var Mt=null;if(Me.followRedirect&&statuses.redirect[_t.statusCode]){Me._followRedirectCount=(Me._followRedirectCount||0)+1;var ft=_t.headers.location;if(!ft)Mt=new Error("Got statusCode "+_t.statusCode+" but cannot resolve next location from headers"),Mt.name="FollowRedirectError";else if(Me._followRedirectCount>Me.maxRedirects)Mt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+je),Mt.name="MaxRedirectError";else{var St=Me.formatRedirectUrl?Me.formatRedirectUrl(je,ft):me.resolve(je,ft);ue("Request#%d %s: `redirected` from %s to %s",Ne,Ve.path,je,St),pe(),Me.headers&&Me.headers.Host&&Se.test(ft)&&(Me.headers.Host=null);var Nt=Oe;return Oe=null,ve.requestWithCallback(St,Me,Nt),{redirect:!0,error:null}}}return{redirect:!1,error:Mt}}Me.gzip&&!Ve.headers["Accept-Encoding"]&&!Ve.headers["accept-encoding"]&&(Ve.headers["Accept-Encoding"]="gzip");function Ye(_t,Mt,ft){var St=_t.headers["content-encoding"];return ft(null,Mt,St)}var Je=Me.writeStream;ue("Request#%d %s %s with headers %j, options.path: %s",Ne,Ue,je,Ve.headers,Ve.path),Me.requestUrls.push(je);function dt(_t){if(ze&&(ze.waiting=Date.now()-Ze),ue("Request#%d %s `req response` event emit: status %d, headers: %j",Ne,je,_t.statusCode,_t.headers),Me.streaming){var Mt=Ke(_t);if(Mt.redirect){_t.resume();return}return Mt.error?(_t.resume(),Ie(Mt.error,null,_t)):Ie(null,null,_t)}if(_t.on("close",function(){ue("Request#%d %s: `res close` event emit, total size %d",Ne,je,st)}),_t.on("error",function(){ue("Request#%d %s: `res error` event emit, total size %d",Ne,je,st)}),_t.on("aborted",function(){We=!0,ue("Request#%d %s: `res aborted` event emit, total size %d",Ne,je,st)}),Je){var ft=Ke(_t);if(ft.redirect){_t.resume();return}return ft.error?(_t.resume(),Je.end(),Ie(ft.error,null,_t)):(Me.consumeWriteStream===!1?_t.on("end",Ie.bind(null,null,null,_t)):Je.on("close",function(){ue("Request#%d %s: writeStream close event emitted",Ne,je),Ie(pt||null,null,_t)}),_t.pipe(Je))}var St=[];_t.on("data",function(Nt){ue("Request#%d %s: `res data` event emit, size %d",Ne,je,Nt.length),st+=Nt.length,St.push(Nt)}),_t.on("end",function(){var Nt=ne.concat(St,st);if(ue("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Ne,je,st,_t._dumped),pt)return Ie(pt,Nt,_t);var Ft=Ke(_t);if(Ft.error)return Ie(Ft.error,Nt,_t);Ft.redirect||Ye(_t,Nt,function(Ut,sr,gr){if(Ut)return Ie(Ut,Nt,_t);if(!gr&&Le.indexOf(Me.dataType)>=0){try{sr=decodeBodyByCharset(sr,_t)}catch(zr){return ue("decodeBodyByCharset error: %s",zr),Ie(null,sr,_t)}if(Me.dataType==="json")if(st===0)sr=null;else{var wr=parseJSON(sr,lt);wr.error?Ut=wr.error:sr=wr.data}}We&&ue("Request#%d %s: Remote socket was terminated before `response.end()` was called",Ne,je),Ie(Ut,sr,_t)})})}var bt,vt;Array.isArray(Me.timeout)?(bt=de(Me.timeout[0]),vt=de(Me.timeout[1])):bt=vt=de(Me.timeout),ue("ConnectTimeout: %d, ResponseTimeout: %d",bt,vt);function It(){ue("Connect timer ticking, timeout: %d",bt),it=setTimeout(function(){it=null,Ge===-1&&(Ge=-2);var _t="Connect timeout for "+bt+"ms",Mt="ConnectionTimeoutError";kt.socket||(Mt="SocketAssignTimeoutError",_t+=", working sockets is full"),pt=new Error(_t),pt.name=Mt,pt.requestId=Ne,ue("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Ne,je,pt.name,_t,Dt),jt()},bt)}function Vt(){ue("Response timer ticking, timeout: %d",vt),yt=setTimeout(function(){yt=null;var _t="Response timeout for "+vt+"ms",Mt="ResponseTimeoutError";pt=new Error(_t),pt.name=Mt,pt.requestId=Ne,ue("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Ne,je,pt.name,_t,Dt),jt()},vt)}var kt;Ve.mode=Me.mode?Me.mode:"";try{kt=tt.request(Ve,dt)}catch(_t){return Ie(_t)}typeof window=="undefined"?It():kt.on("requestTimeout",function(){Ge===-1&&(Ge=-2);var _t="Connect timeout for "+bt+"ms",Mt="ConnectionTimeoutError";pt=new Error(_t),pt.name=Mt,pt.requestId=Ne,jt()});function jt(){ue("Request#%d %s abort, connected: %s",Ne,je,Dt),kt.socket||(pt.noSocket=!0,Ie(pt)),kt.abort()}return ze&&kt.on("finish",function(){ze.requestSent=Date.now()-Ze}),kt.once("socket",function(_t){ze&&(ze.queuing=Date.now()-Ze);var Mt=_t.readyState;if(Mt==="opening"){_t.once("lookup",function(ft,St,Nt){ue("Request#%d %s lookup: %s, %s, %s",Ne,je,ft,St,Nt),ze&&(ze.dnslookup=Date.now()-Ze),St&&(le=St)}),_t.once("connect",function(){ze&&(ze.connected=Date.now()-Ze),He(),Vt(),ue("Request#%d %s new socket connected",Ne,je),Dt=!0,le||(le=_t.remoteAddress),fe=_t.remotePort});return}ue("Request#%d %s reuse socket connected, readyState: %s",Ne,je,Mt),Dt=!0,At=!0,le||(le=_t.remoteAddress),fe=_t.remotePort,He(),Vt()}),kt.on("error",function(_t){(_t.name==="Error"||_t.name==="TypeError")&&(_t.name=Dt?"ResponseError":"RequestError"),_t.message+=' (req "error")',ue("Request#%d %s `req error` event emit, %s: %s",Ne,je,_t.name,_t.message),Ie(pt||_t)}),Je&&Je.once("error",function(_t){_t.message+=' (writeStream "error")',pt=_t,ue("Request#%d %s `writeStream error` event emit, %s: %s",Ne,je,_t.name,_t.message),jt()}),Me.stream?(Me.stream.pipe(kt),Me.stream.once("error",function(_t){_t.message+=' (stream "error")',pt=_t,ue("Request#%d %s `readStream error` event emit, %s: %s",Ne,je,_t.name,_t.message),jt()})):kt.end(nt),kt.requestId=Ne,kt}}).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)},77578:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Re}});const Re=gt=>gt?typeof gt=="function"?gt():gt:null},56762:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return gt}});var Re=ke(59301);function gt(){const[,x]=Re.useReducer(De=>De+1,0);return x}},19080:function(or,Ht,ke){"use strict";ke.d(Ht,{F:function(){return ve},Z:function(){return De}});var Re=ke(92310),gt=ke.n(Re);const x=null;function De(re,ne,ie){return gt()({[`${re}-status-success`]:ne==="success",[`${re}-status-warning`]:ne==="warning",[`${re}-status-error`]:ne==="error",[`${re}-status-validating`]:ne==="validating",[`${re}-has-feedback`]:ie})}const ve=(re,ne)=>ne||re},19842:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Wn}});var Re=ke(77654),gt=ke(59301),x=ke(33853),De=ke(58617),ve=ke(38819),re=ke(92310),ne=ke.n(re),ie=ke(60499),oe=ke(72190),se=ke(42244),me=ke(77861),te=ke(17115),ae=ke(90782),ue=ke(6089),de=ke(18929),he=gt.createContext(null),we=he,Se=ke(43749),xe=ke(18642),ye=ke(85899),Ae="__rc_cascader_search_mark__",Le=function(jr,Rr,Tr){var Sr=Tr.label;return Rr.some(function(Dr){return String(Dr[Sr]).toLowerCase().includes(jr.toLowerCase())})},Ce=function(jr,Rr,Tr,Sr){return Rr.map(function(Dr){return Dr[Sr.label]}).join(" / ")},je=function(Jt,jr,Rr,Tr,Sr,Dr){var Or=Sr.filter,Yr=Or===void 0?Le:Or,Kt=Sr.render,xt=Kt===void 0?Ce:Kt,Bt=Sr.limit,Ot=Bt===void 0?50:Bt,Et=Sr.sort;return gt.useMemo(function(){var zt=[];if(!Jt)return[];function Zt(nr,$t){var pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;nr.forEach(function(Ar){if(!(!Et&&Ot!==!1&&Ot>0&&zt.length>=Ot)){var Lr=[].concat((0,Re.Z)($t),[Ar]),Er=Ar[Rr.children],tr=pr||Ar.disabled;if((!Er||Er.length===0||Dr)&&Yr(Jt,Lr,{label:Rr.label})){var br;zt.push((0,ye.Z)((0,ye.Z)({},Ar),{},(br={disabled:tr},(0,xe.Z)(br,Rr.label,xt(Jt,Lr,Tr,Rr)),(0,xe.Z)(br,Ae,Lr),(0,xe.Z)(br,Rr.children,void 0),br)))}Er&&Zt(Ar[Rr.children],Lr,tr)}})}return Zt(jr,[]),Et&&zt.sort(function(nr,$t){return Et(nr[Ae],$t[Ae],Jt,Rr)}),Ot!==!1&&Ot>0?zt.slice(0,Ot):zt},[Jt,jr,Rr,Tr,xt,Dr,Yr,Et,Ot])},Me="__RC_CASCADER_SPLIT__",Oe="SHOW_PARENT",Ee="SHOW_CHILD";function Ne(Jt){return Jt.join(Me)}function _e(Jt){return Jt.map(Ne)}function Ze(Jt){return Jt.split(Me)}function Pe(Jt){var jr=Jt||{},Rr=jr.label,Tr=jr.value,Sr=jr.children,Dr=Tr||"value";return{label:Rr||"label",value:Dr,key:Dr,children:Sr||"children"}}function Ue(Jt,jr){var Rr,Tr;return(Rr=Jt.isLeaf)!==null&&Rr!==void 0?Rr:!((Tr=Jt[jr.children])!==null&&Tr!==void 0&&Tr.length)}function Qe(Jt){var jr=Jt.parentElement;if(jr){var Rr=Jt.offsetTop-jr.offsetTop;Rr-jr.scrollTop<0?jr.scrollTo({top:Rr}):Rr+Jt.offsetHeight-jr.scrollTop>jr.offsetHeight&&jr.scrollTo({top:Rr+Jt.offsetHeight-jr.offsetHeight})}}function tt(Jt,jr){return Jt.map(function(Rr){var Tr;return(Tr=Rr[Ae])===null||Tr===void 0?void 0:Tr.map(function(Sr){return Sr[jr.value]})})}function at(Jt,jr,Rr){var Tr=new Set(Jt),Sr=jr();return Jt.filter(function(Dr){var Or=Sr[Dr],Yr=Or?Or.parent:null,Kt=Or?Or.children:null;return Or&&Or.node.disabled?!0:Rr===Ee?!(Kt&&Kt.some(function(xt){return xt.key&&Tr.has(xt.key)})):!(Yr&&!Yr.node.disabled&&Tr.has(Yr.key))})}function lt(Jt,jr,Rr){for(var Tr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Sr=jr,Dr=[],Or=function(){var xt,Bt,Ot,Et=Jt[Yr],zt=(xt=Sr)===null||xt===void 0?void 0:xt.findIndex(function(nr){var $t=nr[Rr.value];return Tr?String($t)===String(Et):$t===Et}),Zt=zt!==-1?(Bt=Sr)===null||Bt===void 0?void 0:Bt[zt]:null;Dr.push({value:(Ot=Zt==null?void 0:Zt[Rr.value])!==null&&Ot!==void 0?Ot:Et,index:zt,option:Zt}),Sr=Zt==null?void 0:Zt[Rr.children]},Yr=0;Yr<Jt.length;Yr+=1)Or();return Dr}var Ve=function(Jt,jr,Rr,Tr,Sr){return gt.useMemo(function(){var Dr=Sr||function(Or){var Yr=Tr?Or.slice(-1):Or,Kt=" / ";return Yr.every(function(xt){return["string","number"].includes((0,Se.Z)(xt))})?Yr.join(Kt):Yr.reduce(function(xt,Bt,Ot){var Et=gt.isValidElement(Bt)?gt.cloneElement(Bt,{key:Ot}):Bt;return Ot===0?[Et]:[].concat((0,Re.Z)(xt),[Kt,Et])},[])};return Jt.map(function(Or){var Yr,Kt,xt=lt(Or,jr,Rr),Bt=Dr(xt.map(function(Et){var zt,Zt=Et.option,nr=Et.value;return(zt=Zt==null?void 0:Zt[Rr.label])!==null&&zt!==void 0?zt:nr}),xt.map(function(Et){var zt=Et.option;return zt})),Ot=Ne(Or);return{label:Bt,value:Ot,key:Ot,valueCells:Or,disabled:(Yr=xt[xt.length-1])===null||Yr===void 0||(Kt=Yr.option)===null||Kt===void 0?void 0:Kt.disabled}})},[Jt,jr,Rr,Sr,Tr])},Xe=ke(71430),nt=function(Jt,jr){var Rr=gt.useRef({options:null,info:null}),Tr=gt.useCallback(function(){return Rr.current.options!==Jt&&(Rr.current.options=Jt,Rr.current.info=(0,Xe.I8)(Jt,{fieldNames:jr,initWrapper:function(Dr){return(0,ye.Z)((0,ye.Z)({},Dr),{},{pathKeyEntities:{}})},processEntity:function(Dr,Or){var Yr=Dr.nodes.map(function(Kt){return Kt[jr.value]}).join(Me);Or.pathKeyEntities[Yr]=Dr,Dr.key=Yr}})),Rr.current.info.pathKeyEntities},[jr,Jt]);return Tr},ct=function(Jt,jr){return gt.useCallback(function(Rr){var Tr=[],Sr=[];return Rr.forEach(function(Dr){var Or=lt(Dr,Jt,jr);Or.every(function(Yr){return Yr.option})?Sr.push(Dr):Tr.push(Dr)}),[Sr,Tr]},[Jt,jr])},ot=ke(48736);function et(Jt){return gt.useMemo(function(){if(!Jt)return[!1,{}];var jr={matchInputWidth:!0,limit:50};return Jt&&(0,Se.Z)(Jt)==="object"&&(jr=(0,ye.Z)((0,ye.Z)({},jr),Jt)),jr.limit<=0&&delete jr.limit,[!0,jr]},[Jt])}var qe=gt.memo(function(Jt){var jr=Jt.children;return jr},function(Jt,jr){return!jr.open}),it=qe;function yt(Jt){var jr,Rr=Jt.prefixCls,Tr=Jt.checked,Sr=Jt.halfChecked,Dr=Jt.disabled,Or=Jt.onClick,Yr=Jt.disableCheckbox,Kt=gt.useContext(we),xt=Kt.checkable,Bt=typeof xt!="boolean"?xt:null;return gt.createElement("span",{className:ne()("".concat(Rr),(jr={},(0,xe.Z)(jr,"".concat(Rr,"-checked"),Tr),(0,xe.Z)(jr,"".concat(Rr,"-indeterminate"),!Tr&&Sr),(0,xe.Z)(jr,"".concat(Rr,"-disabled"),Dr||Yr),jr)),onClick:Or},Bt)}var pt="__cascader_fix_label__";function Dt(Jt){var jr=Jt.prefixCls,Rr=Jt.multiple,Tr=Jt.options,Sr=Jt.activeValue,Dr=Jt.prevValuePath,Or=Jt.onToggleOpen,Yr=Jt.onSelect,Kt=Jt.onActive,xt=Jt.checkedSet,Bt=Jt.halfCheckedSet,Ot=Jt.loadingKeys,Et=Jt.isSelectable,zt=Jt.searchValue,Zt="".concat(jr,"-menu"),nr="".concat(jr,"-menu-item"),$t=gt.useContext(we),pr=$t.fieldNames,Ar=$t.changeOnSelect,Lr=$t.expandTrigger,Er=$t.expandIcon,tr=$t.loadingIcon,br=$t.dropdownMenuColumnStyle,Wt=Lr==="hover",Qt=gt.useMemo(function(){return Tr.map(function(Xt){var qt,mr=Xt.disabled,ar=Xt.disableCheckbox,xr=Xt[Ae],Lt=(qt=Xt[pt])!==null&&qt!==void 0?qt:Xt[pr.label],Yt=Xt[pr.value],er=Ue(Xt,pr),dr=xr?xr.map(function(_r){return _r[pr.value]}):[].concat((0,Re.Z)(Dr),[Yt]),lr=Ne(dr),fr=Ot.includes(lr),hr=xt.has(lr),Cr=Bt.has(lr);return{disabled:mr,label:Lt,value:Yt,isLeaf:er,isLoading:fr,checked:hr,halfChecked:Cr,option:Xt,disableCheckbox:ar,fullPath:dr,fullPathKey:lr}})},[Tr,xt,pr,Bt,Ot,Dr]);return gt.createElement("ul",{className:Zt,role:"menu"},Qt.map(function(Xt){var qt,mr=Xt.disabled,ar=Xt.label,xr=Xt.value,Lt=Xt.isLeaf,Yt=Xt.isLoading,er=Xt.checked,dr=Xt.halfChecked,lr=Xt.option,fr=Xt.fullPath,hr=Xt.fullPathKey,Cr=Xt.disableCheckbox,_r=function(){if(!(mr||zt)){var cn=(0,Re.Z)(fr);Wt&&Lt&&cn.pop(),Kt(cn)}},Zr=function(){Et(lr)&&Yr(fr,Lt)},$r;return typeof lr.title=="string"?$r=lr.title:typeof ar=="string"&&($r=ar),gt.createElement("li",{key:hr,className:ne()(nr,(qt={},(0,xe.Z)(qt,"".concat(nr,"-expand"),!Lt),(0,xe.Z)(qt,"".concat(nr,"-active"),Sr===xr||Sr===hr),(0,xe.Z)(qt,"".concat(nr,"-disabled"),mr),(0,xe.Z)(qt,"".concat(nr,"-loading"),Yt),qt)),style:br,role:"menuitemcheckbox",title:$r,"aria-checked":er,"data-path-key":hr,onClick:function(){_r(),!Cr&&(!Rr||Lt)&&Zr()},onDoubleClick:function(){Ar&&Or(!1)},onMouseEnter:function(){Wt&&_r()},onMouseDown:function(cn){cn.preventDefault()}},Rr&>.createElement(yt,{prefixCls:"".concat(jr,"-checkbox"),checked:er,halfChecked:dr,disabled:mr||Cr,disableCheckbox:Cr,onClick:function(cn){Cr||(cn.stopPropagation(),Zr())}}),gt.createElement("div",{className:"".concat(nr,"-content")},ar),!Yt&&Er&&!Lt&>.createElement("div",{className:"".concat(nr,"-expand-icon")},Er),Yt&&tr&>.createElement("div",{className:"".concat(nr,"-loading-icon")},tr))}))}var At=function(){var Jt=(0,me.lk)(),jr=Jt.multiple,Rr=Jt.open,Tr=gt.useContext(we),Sr=Tr.values,Dr=gt.useState([]),Or=(0,oe.Z)(Dr,2),Yr=Or[0],Kt=Or[1];return gt.useEffect(function(){if(Rr&&!jr){var xt=Sr[0];Kt(xt||[])}},[Rr]),[Yr,Kt]},st=ke(10228),Ge=function(Jt,jr,Rr,Tr,Sr,Dr){var Or=(0,me.lk)(),Yr=Or.direction,Kt=Or.searchValue,xt=Or.toggleOpen,Bt=Or.open,Ot=Yr==="rtl",Et=gt.useMemo(function(){for(var br=-1,Wt=jr,Qt=[],Xt=[],qt=Tr.length,mr=tt(jr,Rr),ar=function(lr){var fr=Wt.findIndex(function(hr,Cr){return(mr[Cr]?Ne(mr[Cr]):hr[Rr.value])===Tr[lr]});if(fr===-1)return"break";br=fr,Qt.push(br),Xt.push(Tr[lr]),Wt=Wt[br][Rr.children]},xr=0;xr<qt&&Wt;xr+=1){var Lt=ar(xr);if(Lt==="break")break}for(var Yt=jr,er=0;er<Qt.length-1;er+=1)Yt=Yt[Qt[er]][Rr.children];return[Xt,br,Yt,mr]},[Tr,Rr,jr]),zt=(0,oe.Z)(Et,4),Zt=zt[0],nr=zt[1],$t=zt[2],pr=zt[3],Ar=function(Wt){Sr(Wt)},Lr=function(Wt){var Qt=$t.length,Xt=nr;Xt===-1&&Wt<0&&(Xt=Qt);for(var qt=0;qt<Qt;qt+=1){Xt=(Xt+Wt+Qt)%Qt;var mr=$t[Xt];if(mr&&!mr.disabled){var ar=Zt.slice(0,-1).concat(pr[Xt]?Ne(pr[Xt]):mr[Rr.value]);Ar(ar);return}}},Er=function(){if(Zt.length>1){var Wt=Zt.slice(0,-1);Ar(Wt)}else xt(!1)},tr=function(){var Wt,Qt=((Wt=$t[nr])===null||Wt===void 0?void 0:Wt[Rr.children])||[],Xt=Qt.find(function(mr){return!mr.disabled});if(Xt){var qt=[].concat((0,Re.Z)(Zt),[Xt[Rr.value]]);Ar(qt)}};gt.useImperativeHandle(Jt,function(){return{onKeyDown:function(Wt){var Qt=Wt.which;switch(Qt){case st.Z.UP:case st.Z.DOWN:{var Xt=0;Qt===st.Z.UP?Xt=-1:Qt===st.Z.DOWN&&(Xt=1),Xt!==0&&Lr(Xt);break}case st.Z.LEFT:{if(Kt)break;Ot?tr():Er();break}case st.Z.RIGHT:{if(Kt)break;Ot?Er():tr();break}case st.Z.BACKSPACE:{Kt||Er();break}case st.Z.ENTER:{if(Zt.length){var qt=$t[nr],mr=(qt==null?void 0:qt[Ae])||[];mr.length?Dr(mr.map(function(ar){return ar[Rr.value]}),mr[mr.length-1]):Dr(Zt,$t[nr])}break}case st.Z.ESC:xt(!1),Bt&&Wt.stopPropagation()}},onKeyUp:function(){}}})},We=gt.forwardRef(function(Jt,jr){var Rr,Tr,Sr,Dr,Or=(0,me.lk)(),Yr=Or.prefixCls,Kt=Or.multiple,xt=Or.searchValue,Bt=Or.toggleOpen,Ot=Or.notFoundContent,Et=Or.direction,zt=Or.open,Zt=gt.useRef(),nr=Et==="rtl",$t=gt.useContext(we),pr=$t.options,Ar=$t.values,Lr=$t.halfValues,Er=$t.fieldNames,tr=$t.changeOnSelect,br=$t.onSelect,Wt=$t.searchOptions,Qt=$t.dropdownPrefixCls,Xt=$t.loadData,qt=$t.expandTrigger,mr=Qt||Yr,ar=gt.useState([]),xr=(0,oe.Z)(ar,2),Lt=xr[0],Yt=xr[1],er=function(en){if(!(!Xt||xt)){var Ln=lt(en,pr,Er),Xn=Ln.map(function(Ur){var Dn=Ur.option;return Dn}),hn=Xn[Xn.length-1];if(hn&&!Ue(hn,Er)){var Kr=Ne(en);Yt(function(Ur){return[].concat((0,Re.Z)(Ur),[Kr])}),Xt(Xn)}}};gt.useEffect(function(){Lt.length&&Lt.forEach(function(yn){var en=Ze(yn),Ln=lt(en,pr,Er,!0).map(function(hn){var Kr=hn.option;return Kr}),Xn=Ln[Ln.length-1];(!Xn||Xn[Er.children]||Ue(Xn,Er))&&Yt(function(hn){return hn.filter(function(Kr){return Kr!==yn})})})},[pr,Lt,Er]);var dr=gt.useMemo(function(){return new Set(_e(Ar))},[Ar]),lr=gt.useMemo(function(){return new Set(_e(Lr))},[Lr]),fr=At(),hr=(0,oe.Z)(fr,2),Cr=hr[0],_r=hr[1],Zr=function(en){_r(en),er(en)},$r=function(en){var Ln=en.disabled,Xn=Ue(en,Er);return!Ln&&(Xn||tr||Kt)},nn=function(en,Ln){var Xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;br(en),!Kt&&(Ln||tr&&(qt==="hover"||Xn))&&Bt(!1)},cn=gt.useMemo(function(){return xt?Wt:pr},[xt,Wt,pr]),dn=gt.useMemo(function(){for(var yn=[{options:cn}],en=cn,Ln=tt(en,Er),Xn=function(){var Dn=Cr[hn],bn=en.find(function(Un,Zn){return(Ln[Zn]?Ne(Ln[Zn]):Un[Er.value])===Dn}),Pn=bn==null?void 0:bn[Er.children];if(!(Pn!=null&&Pn.length))return"break";en=Pn,yn.push({options:Pn})},hn=0;hn<Cr.length;hn+=1){var Kr=Xn();if(Kr==="break")break}return yn},[cn,Cr,Er]),Jr=function(en,Ln){$r(Ln)&&nn(en,Ue(Ln,Er),!0)};Ge(jr,cn,Er,Cr,Zr,Jr),gt.useEffect(function(){for(var yn=0;yn<Cr.length;yn+=1){var en,Ln=Cr.slice(0,yn+1),Xn=Ne(Ln),hn=(en=Zt.current)===null||en===void 0?void 0:en.querySelector('li[data-path-key="'.concat(Xn.replace(/\\{0,2}"/g,'\\"'),'"]'));hn&&Qe(hn)}},[Cr]);var wn=!((Rr=dn[0])!==null&&Rr!==void 0&&(Tr=Rr.options)!==null&&Tr!==void 0&&Tr.length),fn=[(Sr={},(0,xe.Z)(Sr,Er.value,"__EMPTY__"),(0,xe.Z)(Sr,pt,Ot),(0,xe.Z)(Sr,"disabled",!0),Sr)],On=(0,ye.Z)((0,ye.Z)({},Jt),{},{multiple:!wn&&Kt,onSelect:nn,onActive:Zr,onToggleOpen:Bt,checkedSet:dr,halfCheckedSet:lr,loadingKeys:Lt,isSelectable:$r}),un=wn?[{options:fn}]:dn,mn=un.map(function(yn,en){var Ln=Cr.slice(0,en),Xn=Cr[en];return gt.createElement(Dt,(0,ie.Z)({key:en},On,{searchValue:xt,prefixCls:mr,options:yn.options,prevValuePath:Ln,activeValue:Xn}))});return gt.createElement(it,{open:zt},gt.createElement("div",{className:ne()("".concat(mr,"-menus"),(Dr={},(0,xe.Z)(Dr,"".concat(mr,"-menu-empty"),wn),(0,xe.Z)(Dr,"".concat(mr,"-rtl"),nr),Dr)),ref:Zt},mn))}),le=We;function fe(Jt){var jr=Jt.onPopupVisibleChange,Rr=Jt.popupVisible,Tr=Jt.popupClassName,Sr=Jt.popupPlacement;warning(!jr,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Rr===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Tr===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Sr===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ze(Jt,jr){if(Jt){var Rr=function Tr(Sr){for(var Dr=0;Dr<Sr.length;Dr++){var Or=Sr[Dr];if(Or[jr==null?void 0:jr.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Or[jr==null?void 0:jr.children])&&Tr(Or[jr==null?void 0:jr.children]))return!0}};Rr(Jt)}}var He=null,pe=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Ie(Jt){return Array.isArray(Jt)&&Array.isArray(Jt[0])}function Ke(Jt){return Jt?Ie(Jt)?Jt:(Jt.length===0?[]:[Jt]).map(function(jr){return Array.isArray(jr)?jr:[jr]}):[]}var Ye=gt.forwardRef(function(Jt,jr){var Rr=Jt.id,Tr=Jt.prefixCls,Sr=Tr===void 0?"rc-cascader":Tr,Dr=Jt.fieldNames,Or=Jt.defaultValue,Yr=Jt.value,Kt=Jt.changeOnSelect,xt=Jt.onChange,Bt=Jt.displayRender,Ot=Jt.checkable,Et=Jt.autoClearSearchValue,zt=Et===void 0?!0:Et,Zt=Jt.searchValue,nr=Jt.onSearch,$t=Jt.showSearch,pr=Jt.expandTrigger,Ar=Jt.options,Lr=Jt.dropdownPrefixCls,Er=Jt.loadData,tr=Jt.popupVisible,br=Jt.open,Wt=Jt.popupClassName,Qt=Jt.dropdownClassName,Xt=Jt.dropdownMenuColumnStyle,qt=Jt.popupPlacement,mr=Jt.placement,ar=Jt.onDropdownVisibleChange,xr=Jt.onPopupVisibleChange,Lt=Jt.expandIcon,Yt=Lt===void 0?">":Lt,er=Jt.loadingIcon,dr=Jt.children,lr=Jt.dropdownMatchSelectWidth,fr=lr===void 0?!1:lr,hr=Jt.showCheckedStrategy,Cr=hr===void 0?Oe:hr,_r=(0,se.Z)(Jt,pe),Zr=(0,te.ZP)(Rr),$r=!!Ot,nn=(0,de.Z)(Or,{value:Yr,postState:Ke}),cn=(0,oe.Z)(nn,2),dn=cn[0],Jr=cn[1],wn=gt.useMemo(function(){return Pe(Dr)},[JSON.stringify(Dr)]),fn=gt.useMemo(function(){return Ar||[]},[Ar]),On=nt(fn,wn),un=gt.useCallback(function(rn){var ln=On();return rn.map(function(ii){var xi=ln[ii].nodes;return xi.map(function(Ci){return Ci[wn.value]})})},[On,wn]),mn=(0,de.Z)("",{value:Zt,postState:function(ln){return ln||""}}),yn=(0,oe.Z)(mn,2),en=yn[0],Ln=yn[1],Xn=function(ln,ii){Ln(ln),ii.source!=="blur"&&nr&&nr(ln)},hn=et($t),Kr=(0,oe.Z)(hn,2),Ur=Kr[0],Dn=Kr[1],bn=je(en,fn,wn,Lr||Sr,Dn,Kt),Pn=ct(fn,wn),Un=gt.useMemo(function(){var rn=Pn(dn),ln=(0,oe.Z)(rn,2),ii=ln[0],xi=ln[1];if(!$r||!dn.length)return[ii,[],xi];var Ci=_e(ii),Ai=On(),gi=(0,ae.S)(Ci,!0,Ai),Ii=gi.checkedKeys,Ki=gi.halfCheckedKeys;return[un(Ii),un(Ki),xi]},[$r,dn,On,un,Pn]),Zn=(0,oe.Z)(Un,3),kn=Zn[0],zn=Zn[1],di=Zn[2],pn=gt.useMemo(function(){var rn=_e(kn),ln=at(rn,On,Cr);return[].concat((0,Re.Z)(di),(0,Re.Z)(un(ln)))},[kn,On,un,di,Cr]),An=Ve(pn,fn,wn,$r,Bt),Yn=(0,ue.Z)(function(rn){if(Jr(rn),xt){var ln=Ke(rn),ii=ln.map(function(Ai){return lt(Ai,fn,wn).map(function(gi){return gi.option})}),xi=$r?ln:ln[0],Ci=$r?ii:ii[0];xt(xi,Ci)}}),ei=(0,ue.Z)(function(rn){if((!$r||zt)&&Ln(""),!$r)Yn(rn);else{var ln=Ne(rn),ii=_e(kn),xi=_e(zn),Ci=ii.includes(ln),Ai=di.some(function(yr){return Ne(yr)===ln}),gi=kn,Ii=di;if(Ai&&!Ci)Ii=di.filter(function(yr){return Ne(yr)!==ln});else{var Ki=Ci?ii.filter(function(yr){return yr!==ln}):[].concat((0,Re.Z)(ii),[ln]),Fi=On(),Yi;if(Ci){var li=(0,ae.S)(Ki,{checked:!1,halfCheckedKeys:xi},Fi);Yi=li.checkedKeys}else{var hi=(0,ae.S)(Ki,!0,Fi);Yi=hi.checkedKeys}var Li=at(Yi,On,Cr);gi=un(Li)}Yn([].concat((0,Re.Z)(Ii),(0,Re.Z)(gi)))}}),Si=function(ln,ii){if(ii.type==="clear"){Yn([]);return}var xi=ii.values[0],Ci=xi.valueCells;ei(Ci)},Ei=br!==void 0?br:tr,bi=Qt||Wt,ci=mr||qt,Oi=function(ln){ar==null||ar(ln),xr==null||xr(ln)},Di=gt.useMemo(function(){return{options:fn,fieldNames:wn,values:kn,halfValues:zn,changeOnSelect:Kt,onSelect:ei,checkable:Ot,searchOptions:bn,dropdownPrefixCls:Lr,loadData:Er,expandTrigger:pr,expandIcon:Yt,loadingIcon:er,dropdownMenuColumnStyle:Xt}},[fn,wn,kn,zn,Kt,ei,Ot,bn,Lr,Er,pr,Yt,er,Xt]),Cn=!(en?bn:fn).length,Sn=en&&Dn.matchInputWidth||Cn?{}:{minWidth:"auto"};return gt.createElement(we.Provider,{value:Di},gt.createElement(me.Ac,(0,ie.Z)({},_r,{ref:jr,id:Zr,prefixCls:Sr,autoClearSearchValue:zt,dropdownMatchSelectWidth:fr,dropdownStyle:Sn,displayValues:An,onDisplayValuesChange:Si,mode:$r?"multiple":void 0,searchValue:en,onSearch:Xn,showSearch:Ur,OptionList:le,emptyOptions:Cn,open:Ei,dropdownClassName:bi,placement:ci,onDropdownVisibleChange:Oi,getRawInputElement:function(){return dr}})))});Ye.SHOW_PARENT=Oe,Ye.SHOW_CHILD=Ee;var Je=Ye,dt=Je,bt=ke(2738),vt=ke(62892),It=ke(53487),Vt=ke(19080),kt=ke(36355),jt=ke(93891),_t=ke(1684),Mt=ke(19716),ft=ke(32441),St=ke(14154),Nt=ke(58582),Ft=ke(84443),Ut=ke(66339),sr=ke(33234),gr=ke(98447),wr=ke(17313),zr=ke(74207),Wr=ke(83116);const Br=Jt=>{const{prefixCls:jr,componentCls:Rr,antCls:Tr}=Jt,Sr=`${Rr}-menu-item`,Dr=`
|
|
|
&${Sr}-expand ${Sr}-expand-icon,
|
|
|
${Sr}-loading-icon
|
|
|
`;return[{[Rr]:{width:Jt.controlWidth}},{[`${Rr}-dropdown`]:[(0,gr.C2)(`${jr}-checkbox`,Jt),{[`&${Tr}-select-dropdown`]:{padding:0}},{[Rr]:{"&-checkbox":{top:0,marginInlineEnd:Jt.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Rr}-menu-empty`]:{[`${Rr}-menu`]:{width:"100%",height:"auto",[Sr]:{color:Jt.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Jt.controlItemWidth,height:Jt.dropdownHeight,margin:0,padding:Jt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Jt.lineWidth}px ${Jt.lineType} ${Jt.colorSplit}`},"&-item":Object.assign(Object.assign({},wr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Jt.optionPadding,lineHeight:Jt.lineHeight,cursor:"pointer",transition:`all ${Jt.motionDurationMid}`,borderRadius:Jt.borderRadiusSM,"&:hover":{background:Jt.controlItemBgHover},"&-disabled":{color:Jt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Dr]:{color:Jt.colorTextDisabled}},[`&-active:not(${Sr}-disabled)`]:{"&, &:hover":{fontWeight:Jt.optionSelectedFontWeight,backgroundColor:Jt.optionSelectedBg}},"&-content":{flex:"auto"},[Dr]:{marginInlineStart:Jt.paddingXXS,color:Jt.colorTextDescription,fontSize:Jt.fontSizeIcon},"&-keyword":{color:Jt.colorHighlight}})}}}]},{[`${Rr}-dropdown-rtl`]:{direction:"rtl"}},(0,zr.c)(Jt)]};var Nr=(0,Wr.Z)("Cascader",Jt=>[Br(Jt)],Jt=>{const jr=Math.round((Jt.controlHeight-Jt.fontSize*Jt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Jt.controlItemBgActive,optionSelectedFontWeight:Jt.fontWeightStrong,optionPadding:`${jr}px ${Jt.paddingSM}px`,menuPadding:Jt.paddingXXS}}),on=function(Jt,jr){var Rr={};for(var Tr in Jt)Object.prototype.hasOwnProperty.call(Jt,Tr)&&jr.indexOf(Tr)<0&&(Rr[Tr]=Jt[Tr]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sr=0,Tr=Object.getOwnPropertySymbols(Jt);Sr<Tr.length;Sr++)jr.indexOf(Tr[Sr])<0&&Object.prototype.propertyIsEnumerable.call(Jt,Tr[Sr])&&(Rr[Tr[Sr]]=Jt[Tr[Sr]]);return Rr};const{SHOW_CHILD:Mn,SHOW_PARENT:jn}=dt;function an(Jt,jr,Rr){const Tr=Jt.toLowerCase().split(jr).reduce((Or,Yr,Kt)=>Kt===0?[Yr]:[].concat((0,Re.Z)(Or),[jr,Yr]),[]),Sr=[];let Dr=0;return Tr.forEach((Or,Yr)=>{const Kt=Dr+Or.length;let xt=Jt.slice(Dr,Kt);Dr=Kt,Yr%2===1&&(xt=gt.createElement("span",{className:`${Rr}-menu-item-keyword`,key:`separator-${Yr}`},xt)),Sr.push(xt)}),Sr}const Tn=(Jt,jr,Rr,Tr)=>{const Sr=[],Dr=Jt.toLowerCase();return jr.forEach((Or,Yr)=>{Yr!==0&&Sr.push(" / ");let Kt=Or[Tr.label];const xt=typeof Kt;(xt==="string"||xt==="number")&&(Kt=an(String(Kt),Dr,Rr)),Sr.push(Kt)}),Sr},Vr=gt.forwardRef((Jt,jr)=>{const{prefixCls:Rr,size:Tr,disabled:Sr,className:Dr,rootClassName:Or,multiple:Yr,bordered:Kt=!0,transitionName:xt,choiceTransitionName:Bt="",popupClassName:Ot,dropdownClassName:Et,expandIcon:zt,placement:Zt,showSearch:nr,allowClear:$t=!0,notFoundContent:pr,direction:Ar,getPopupContainer:Lr,status:Er,showArrow:tr,builtinPlacements:br,style:Wt}=Jt,Qt=on(Jt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Xt=(0,bt.Z)(Qt,["suffixIcon"]),{getPopupContainer:qt,getPrefixCls:mr,renderEmpty:ar,direction:xr,popupOverflow:Lt,cascader:Yt}=gt.useContext(kt.E_),er=Ar||xr,dr=er==="rtl",{status:lr,hasFeedback:fr,isFormItemInput:hr,feedbackIcon:Cr}=gt.useContext(ft.aM),_r=(0,Vt.F)(lr,Er),Zr=pr||(ar==null?void 0:ar("Cascader"))||gt.createElement(jt.Z,{componentName:"Cascader"}),$r=mr(),nn=mr("select",Rr),cn=mr("cascader",Rr),[dn,Jr]=(0,St.Z)(nn),[wn]=Nr(cn),{compactSize:fn,compactItemClassnames:On}=(0,sr.ri)(nn,Ar),un=ne()(Ot||Et,`${cn}-dropdown`,{[`${cn}-dropdown-rtl`]:er==="rtl"},Or,Jr),mn=gt.useMemo(()=>{if(!nr)return nr;let di={render:Tn};return typeof nr=="object"&&(di=Object.assign(Object.assign({},di),nr)),di},[nr]),yn=(0,Mt.Z)(di=>{var pn;return(pn=Tr!=null?Tr:fn)!==null&&pn!==void 0?pn:di}),en=gt.useContext(_t.Z),Ln=Sr!=null?Sr:en;let Xn=zt;zt||(Xn=dr?gt.createElement(x.Z,null):gt.createElement(ve.Z,null));const hn=gt.createElement("span",{className:`${nn}-menu-item-loading-icon`},gt.createElement(De.Z,{spin:!0})),Kr=gt.useMemo(()=>Yr?gt.createElement("span",{className:`${cn}-checkbox-inner`}):!1,[Yr]),Ur=(0,Ft.Z)(Jt.suffixIcon,tr),{suffixIcon:Dn,removeIcon:bn,clearIcon:Pn}=(0,Ut.Z)(Object.assign(Object.assign({},Jt),{hasFeedback:fr,feedbackIcon:Cr,showSuffixIcon:Ur,multiple:Yr,prefixCls:nn,componentName:"Cascader"})),Un=gt.useMemo(()=>Zt!==void 0?Zt:dr?"bottomRight":"bottomLeft",[Zt,dr]),Zn=(0,Nt.Z)(br,Lt),kn=$t===!0?{clearIcon:Pn}:$t,zn=gt.createElement(dt,Object.assign({prefixCls:nn,className:ne()(!Rr&&cn,{[`${nn}-lg`]:yn==="large",[`${nn}-sm`]:yn==="small",[`${nn}-rtl`]:dr,[`${nn}-borderless`]:!Kt,[`${nn}-in-form-item`]:hr},(0,Vt.Z)(nn,_r,fr),On,Yt==null?void 0:Yt.className,Dr,Or,Jr),disabled:Ln,style:Object.assign(Object.assign({},Yt==null?void 0:Yt.style),Wt)},Xt,{builtinPlacements:Zn,direction:er,placement:Un,notFoundContent:Zr,allowClear:kn,showSearch:mn,expandIcon:Xn,suffixIcon:Dn,removeIcon:bn,loadingIcon:hn,checkable:Kr,dropdownClassName:un,dropdownPrefixCls:Rr||cn,choiceTransitionName:(0,vt.m)($r,"",Bt),transitionName:(0,vt.m)($r,"slide-up",xt),getPopupContainer:Lr||qt,ref:jr}));return wn(dn(zn))}),Gn=(0,It.Z)(Vr);Vr.SHOW_PARENT=jn,Vr.SHOW_CHILD=Mn,Vr._InternalPanelDoNotUseOrYouWillBeFired=Gn;var Wn=Vr},24905:function(or,Ht,ke){"use strict";ke.d(Ht,{default:function(){return je}});var Re=ke(92310),gt=ke.n(Re),x=ke(5630),De=ke(59301),ve=ke(36355),re=ke(1684),ne=ke(32441),oe=De.createContext(null),se=ke(98447),me=ke(14088),te=ke(4572),ae=function(Me,Oe){var Ee={};for(var Ne in Me)Object.prototype.hasOwnProperty.call(Me,Ne)&&Oe.indexOf(Ne)<0&&(Ee[Ne]=Me[Ne]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Ne=Object.getOwnPropertySymbols(Me);_e<Ne.length;_e++)Oe.indexOf(Ne[_e])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ne[_e])&&(Ee[Ne[_e]]=Me[Ne[_e]]);return Ee};const ue=(Me,Oe)=>{var Ee;const{prefixCls:Ne,className:_e,rootClassName:Ze,children:Pe,indeterminate:Ue=!1,style:Qe,onMouseEnter:tt,onMouseLeave:at,skipGroup:lt=!1,disabled:Ve}=Me,Xe=ae(Me,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:nt,direction:ct,checkbox:ot}=De.useContext(ve.E_),et=De.useContext(oe),{isFormItemInput:qe}=De.useContext(ne.aM),it=De.useContext(re.Z),yt=(Ee=(et==null?void 0:et.disabled)||Ve)!==null&&Ee!==void 0?Ee:it,pt=De.useRef(Xe.value);De.useEffect(()=>{et==null||et.registerValue(Xe.value)},[]),De.useEffect(()=>{if(!lt)return Xe.value!==pt.current&&(et==null||et.cancelValue(pt.current),et==null||et.registerValue(Xe.value),pt.current=Xe.value),()=>et==null?void 0:et.cancelValue(Xe.value)},[Xe.value]);const Dt=nt("checkbox",Ne),[At,st]=(0,se.ZP)(Dt),Ge=Object.assign({},Xe);et&&!lt&&(Ge.onChange=function(){Xe.onChange&&Xe.onChange.apply(Xe,arguments),et.toggleOption&&et.toggleOption({label:Pe,value:Xe.value})},Ge.name=et.name,Ge.checked=et.value.includes(Xe.value));const We=gt()(`${Dt}-wrapper`,{[`${Dt}-rtl`]:ct==="rtl",[`${Dt}-wrapper-checked`]:Ge.checked,[`${Dt}-wrapper-disabled`]:yt,[`${Dt}-wrapper-in-form-item`]:qe},ot==null?void 0:ot.className,_e,Ze,st),le=gt()({[`${Dt}-indeterminate`]:Ue},te.A,st),fe=Ue?"mixed":void 0;return At(De.createElement(me.Z,{component:"Checkbox",disabled:yt},De.createElement("label",{className:We,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),Qe),onMouseEnter:tt,onMouseLeave:at},De.createElement(x.Z,Object.assign({"aria-checked":fe},Ge,{prefixCls:Dt,className:le,disabled:yt,ref:Oe})),Pe!==void 0&&De.createElement("span",null,Pe))))};var he=De.forwardRef(ue),we=ke(77654),Se=ke(2738),xe=function(Me,Oe){var Ee={};for(var Ne in Me)Object.prototype.hasOwnProperty.call(Me,Ne)&&Oe.indexOf(Ne)<0&&(Ee[Ne]=Me[Ne]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Ne=Object.getOwnPropertySymbols(Me);_e<Ne.length;_e++)Oe.indexOf(Ne[_e])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ne[_e])&&(Ee[Ne[_e]]=Me[Ne[_e]]);return Ee};const ye=(Me,Oe)=>{const{defaultValue:Ee,children:Ne,options:_e=[],prefixCls:Ze,className:Pe,rootClassName:Ue,style:Qe,onChange:tt}=Me,at=xe(Me,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:lt,direction:Ve}=De.useContext(ve.E_),[Xe,nt]=De.useState(at.value||Ee||[]),[ct,ot]=De.useState([]);De.useEffect(()=>{"value"in at&&nt(at.value||[])},[at.value]);const et=De.useMemo(()=>_e.map(ze=>typeof ze=="string"||typeof ze=="number"?{label:ze,value:ze}:ze),[_e]),qe=ze=>{ot(He=>He.filter(pe=>pe!==ze))},it=ze=>{ot(He=>[].concat((0,we.Z)(He),[ze]))},yt=ze=>{const He=Xe.indexOf(ze.value),pe=(0,we.Z)(Xe);He===-1?pe.push(ze.value):pe.splice(He,1),"value"in at||nt(pe),tt==null||tt(pe.filter(Ie=>ct.includes(Ie)).sort((Ie,Ke)=>{const Ye=et.findIndex(dt=>dt.value===Ie),Je=et.findIndex(dt=>dt.value===Ke);return Ye-Je}))},pt=lt("checkbox",Ze),Dt=`${pt}-group`,[At,st]=(0,se.ZP)(pt),Ge=(0,Se.Z)(at,["value","disabled"]),We=_e.length?et.map(ze=>De.createElement(he,{prefixCls:pt,key:ze.value.toString(),disabled:"disabled"in ze?ze.disabled:at.disabled,value:ze.value,checked:Xe.includes(ze.value),onChange:ze.onChange,className:`${Dt}-item`,style:ze.style,title:ze.title},ze.label)):Ne,le={toggleOption:yt,value:Xe,disabled:at.disabled,name:at.name,registerValue:it,cancelValue:qe},fe=gt()(Dt,{[`${Dt}-rtl`]:Ve==="rtl"},Pe,Ue,st);return At(De.createElement("div",Object.assign({className:fe,style:Qe},Ge,{ref:Oe}),De.createElement(oe.Provider,{value:le},We)))},Ae=De.forwardRef(ye);var Le=De.memo(Ae);const Ce=he;Ce.Group=Le,Ce.__ANT_CHECKBOX=!0;var je=Ce},98447:function(or,Ht,ke){"use strict";ke.d(Ht,{C2:function(){return ve}});var Re=ke(17313),gt=ke(37613),x=ke(83116);const De=re=>{const{checkboxCls:ne}=re,ie=`${ne}-wrapper`;return[{[`${ne}-group`]:Object.assign(Object.assign({},(0,Re.Wf)(re)),{display:"inline-flex",flexWrap:"wrap",columnGap:re.marginXS,[`> ${re.antCls}-row`]:{flex:1}}),[ie]:Object.assign(Object.assign({},(0,Re.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}}}),[ne]:Object.assign(Object.assign({},(0,Re.Wf)(re)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:re.borderRadiusSM,alignSelf:"center",[`${ne}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ne}-inner`]:Object.assign({},(0,Re.oN)(re))},[`${ne}-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),
|
|
|
${ne}:not(${ne}-disabled)
|
|
|
`]:{[`&:hover ${ne}-inner`]:{borderColor:re.colorPrimary}},[`${ie}:not(${ie}-disabled)`]:{[`&:hover ${ne}-checked:not(${ne}-disabled) ${ne}-inner`]:{backgroundColor:re.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ne}-checked:not(${ne}-disabled):after`]:{borderColor:re.colorPrimaryHover}}},{[`${ne}-checked`]:{[`${ne}-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),
|
|
|
${ne}-checked:not(${ne}-disabled)
|
|
|
`]:{[`&:hover ${ne}-inner`]:{backgroundColor:re.colorPrimaryHover,borderColor:"transparent"}}},{[ne]:{"&-indeterminate":{[`${ne}-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"},[`${ne}-disabled`]:{[`&, ${ne}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ne}-inner`]:{background:re.colorBgContainerDisabled,borderColor:re.colorBorder,"&:after":{borderColor:re.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:re.colorTextDisabled},[`&${ne}-indeterminate ${ne}-inner::after`]:{background:re.colorTextDisabled}}}]};function ve(re,ne){const ie=(0,gt.TS)(ne,{checkboxCls:`.${re}`,checkboxSize:ne.controlInteractiveSize});return[De(ie)]}Ht.ZP=(0,x.Z)("Checkbox",(re,ne)=>{let{prefixCls:ie}=ne;return[ve(ie,re)]})},36381:function(or,Ht,ke){"use strict";ke.d(Ht,{default:function(){return Ge}});var Re=ke(38819),gt=ke(92310),x=ke.n(gt),De=ke(60499),ve=ke(77654),re=ke(72190),ne=ke(43749),ie=ke(18929),oe=ke(48736),se=ke(59301),me=ke(42244),te=ke(11592),ae=ke(18642),ue=ke(77900),de=ke(10228),he=se.forwardRef(function(We,le){var fe=We.prefixCls,ze=We.forceRender,He=We.className,pe=We.style,Ie=We.children,Ke=We.isActive,Ye=We.role,Je=se.useState(Ke||ze),dt=(0,re.Z)(Je,2),bt=dt[0],vt=dt[1];return se.useEffect(function(){(ze||Ke)&&vt(!0)},[ze,Ke]),bt?se.createElement("div",{ref:le,className:x()("".concat(fe,"-content"),(0,ae.Z)((0,ae.Z)({},"".concat(fe,"-content-active"),Ke),"".concat(fe,"-content-inactive"),!Ke),He),style:pe,role:Ye},se.createElement("div",{className:"".concat(fe,"-content-box")},Ie)):null});he.displayName="PanelContent";var we=he,Se=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],xe=se.forwardRef(function(We,le){var fe=We.showArrow,ze=fe===void 0?!0:fe,He=We.headerClass,pe=We.isActive,Ie=We.onItemClick,Ke=We.forceRender,Ye=We.className,Je=We.prefixCls,dt=We.collapsible,bt=We.accordion,vt=We.panelKey,It=We.extra,Vt=We.header,kt=We.expandIcon,jt=We.openMotion,_t=We.destroyInactivePanel,Mt=We.children,ft=(0,me.Z)(We,Se),St=dt==="disabled",Nt=dt==="header",Ft=dt==="icon",Ut=It!=null&&typeof It!="boolean",sr=function(){Ie==null||Ie(vt)},gr=function(on){(on.key==="Enter"||on.keyCode===de.Z.ENTER||on.which===de.Z.ENTER)&&sr()},wr=typeof kt=="function"?kt(We):se.createElement("i",{className:"arrow"});wr&&(wr=se.createElement("div",{className:"".concat(Je,"-expand-icon"),onClick:["header","icon"].includes(dt)?sr:void 0},wr));var zr=x()((0,ae.Z)((0,ae.Z)((0,ae.Z)({},"".concat(Je,"-item"),!0),"".concat(Je,"-item-active"),pe),"".concat(Je,"-item-disabled"),St),Ye),Wr=x()(He,(0,ae.Z)((0,ae.Z)((0,ae.Z)({},"".concat(Je,"-header"),!0),"".concat(Je,"-header-collapsible-only"),Nt),"".concat(Je,"-icon-collapsible-only"),Ft)),Br={className:Wr,"aria-expanded":pe,"aria-disabled":St,onKeyDown:gr};return!Nt&&!Ft&&(Br.onClick=sr,Br.role=bt?"tab":"button",Br.tabIndex=St?-1:0),se.createElement("div",(0,De.Z)({},ft,{ref:le,className:zr}),se.createElement("div",Br,ze&&wr,se.createElement("span",{className:"".concat(Je,"-header-text"),onClick:dt==="header"?sr:void 0},Vt),Ut&&se.createElement("div",{className:"".concat(Je,"-extra")},It)),se.createElement(ue.default,(0,De.Z)({visible:pe,leavedClassName:"".concat(Je,"-content-hidden")},jt,{forceRender:Ke,removeOnLeave:_t}),function(Nr,on){var Mn=Nr.className,jn=Nr.style;return se.createElement(we,{ref:on,prefixCls:Je,className:Mn,style:jn,isActive:pe,forceRender:Ke,role:bt?"tabpanel":void 0},Mt)}))}),ye=xe,Ae=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Le=function(le,fe){var ze=fe.prefixCls,He=fe.accordion,pe=fe.collapsible,Ie=fe.destroyInactivePanel,Ke=fe.onItemClick,Ye=fe.activeKey,Je=fe.openMotion,dt=fe.expandIcon;return le.map(function(bt,vt){var It=bt.children,Vt=bt.label,kt=bt.key,jt=bt.collapsible,_t=bt.onItemClick,Mt=bt.destroyInactivePanel,ft=(0,me.Z)(bt,Ae),St=String(kt!=null?kt:vt),Nt=jt!=null?jt:pe,Ft=Mt!=null?Mt:Ie,Ut=function(wr){Nt!=="disabled"&&(Ke(wr),_t==null||_t(wr))},sr=!1;return He?sr=Ye[0]===St:sr=Ye.indexOf(St)>-1,se.createElement(ye,(0,De.Z)({},ft,{prefixCls:ze,key:St,panelKey:St,isActive:sr,accordion:He,openMotion:Je,expandIcon:dt,header:Vt,collapsible:Nt,onItemClick:Ut,destroyInactivePanel:Ft}),It)})},Ce=function(le,fe,ze){if(!le)return null;var He=ze.prefixCls,pe=ze.accordion,Ie=ze.collapsible,Ke=ze.destroyInactivePanel,Ye=ze.onItemClick,Je=ze.activeKey,dt=ze.openMotion,bt=ze.expandIcon,vt=le.key||String(fe),It=le.props,Vt=It.header,kt=It.headerClass,jt=It.destroyInactivePanel,_t=It.collapsible,Mt=It.onItemClick,ft=!1;pe?ft=Je[0]===vt:ft=Je.indexOf(vt)>-1;var St=_t!=null?_t:Ie,Nt=function(sr){St!=="disabled"&&(Ye(sr),Mt==null||Mt(sr))},Ft={key:vt,panelKey:vt,header:Vt,headerClass:kt,isActive:ft,prefixCls:He,destroyInactivePanel:jt!=null?jt:Ke,openMotion:dt,accordion:pe,children:le.props.children,onItemClick:Nt,expandIcon:bt,collapsible:St};return typeof le.type=="string"?le:(Object.keys(Ft).forEach(function(Ut){typeof Ft[Ut]=="undefined"&&delete Ft[Ut]}),se.cloneElement(le,Ft))};function je(We,le,fe){return Array.isArray(We)?Le(We,fe):(0,te.Z)(le).map(function(ze,He){return Ce(ze,He,fe)})}var Me=je,Oe=ke(26112);function Ee(We){var le=We;if(!Array.isArray(le)){var fe=(0,ne.Z)(le);le=fe==="number"||fe==="string"?[le]:[]}return le.map(function(ze){return String(ze)})}var Ne=se.forwardRef(function(We,le){var fe=We.prefixCls,ze=fe===void 0?"rc-collapse":fe,He=We.destroyInactivePanel,pe=He===void 0?!1:He,Ie=We.style,Ke=We.accordion,Ye=We.className,Je=We.children,dt=We.collapsible,bt=We.openMotion,vt=We.expandIcon,It=We.activeKey,Vt=We.defaultActiveKey,kt=We.onChange,jt=We.items,_t=x()(ze,Ye),Mt=(0,ie.Z)([],{value:It,onChange:function(gr){return kt==null?void 0:kt(gr)},defaultValue:Vt,postState:Ee}),ft=(0,re.Z)(Mt,2),St=ft[0],Nt=ft[1],Ft=function(gr){return Nt(function(){if(Ke)return St[0]===gr?[]:[gr];var wr=St.indexOf(gr),zr=wr>-1;return zr?St.filter(function(Wr){return Wr!==gr}):[].concat((0,ve.Z)(St),[gr])})};(0,oe.ZP)(!Je,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Ut=Me(jt,Je,{prefixCls:ze,accordion:Ke,openMotion:bt,expandIcon:vt,collapsible:dt,destroyInactivePanel:pe,onItemClick:Ft,activeKey:St});return se.createElement("div",(0,De.Z)({ref:le,className:_t,style:Ie,role:Ke?"tablist":void 0},(0,Oe.Z)(We,{aria:!0,data:!0})),Ut)}),_e=Object.assign(Ne,{Panel:ye}),Ze=_e,Pe=_e.Panel,Ue=ke(2738),Qe=ke(62892),tt=ke(92343),at=ke(36355),lt=ke(19716),Xe=se.forwardRef((We,le)=>{const{getPrefixCls:fe}=se.useContext(at.E_),{prefixCls:ze,className:He,showArrow:pe=!0}=We,Ie=fe("collapse",ze),Ke=x()({[`${Ie}-no-arrow`]:!pe},He);return se.createElement(Ze.Panel,Object.assign({ref:le},We,{prefixCls:Ie,className:Ke}))}),nt=ke(17313),ct=ke(8378),ot=ke(83116),et=ke(37613);const qe=We=>{const{componentCls:le,contentBg:fe,padding:ze,headerBg:He,headerPadding:pe,collapseHeaderPaddingSM:Ie,collapseHeaderPaddingLG:Ke,collapsePanelBorderRadius:Ye,lineWidth:Je,lineType:dt,colorBorder:bt,colorText:vt,colorTextHeading:It,colorTextDisabled:Vt,fontSize:kt,fontSizeLG:jt,lineHeight:_t,marginSM:Mt,paddingSM:ft,paddingLG:St,paddingXS:Nt,motionDurationSlow:Ft,fontSizeIcon:Ut,contentPadding:sr}=We,gr=`${Je}px ${dt} ${bt}`;return{[le]:Object.assign(Object.assign({},(0,nt.Wf)(We)),{backgroundColor:He,border:gr,borderBottom:0,borderRadius:`${Ye}px`,"&-rtl":{direction:"rtl"},[`& > ${le}-item`]:{borderBottom:gr,"&:last-child":{[`
|
|
|
&,
|
|
|
& > ${le}-header`]:{borderRadius:`0 0 ${Ye}px ${Ye}px`}},[`> ${le}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:pe,color:It,lineHeight:_t,cursor:"pointer",transition:`all ${Ft}, visibility 0s`,[`> ${le}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${le}-expand-icon`]:{height:kt*_t,display:"flex",alignItems:"center",paddingInlineEnd:Mt},[`${le}-arrow`]:Object.assign(Object.assign({},(0,nt.Ro)()),{fontSize:Ut,svg:{transition:`transform ${Ft}`}}),[`${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:vt,backgroundColor:fe,borderTop:gr,[`& > ${le}-content-box`]:{padding:sr},"&-hidden":{display:"none"}},"&-small":{[`> ${le}-item`]:{[`> ${le}-header`]:{padding:Ie,paddingInlineStart:Nt,[`> ${le}-expand-icon`]:{marginInlineStart:ft-Nt}},[`> ${le}-content > ${le}-content-box`]:{padding:ft}}},"&-large":{[`> ${le}-item`]:{fontSize:jt,[`> ${le}-header`]:{padding:Ke,paddingInlineStart:ze,[`> ${le}-expand-icon`]:{height:jt*_t,marginInlineStart:St-ze}},[`> ${le}-content > ${le}-content-box`]:{padding:St}}},[`${le}-item:last-child`]:{[`> ${le}-content`]:{borderRadius:`0 0 ${Ye}px ${Ye}px`}},[`& ${le}-item-disabled > ${le}-header`]:{"\n &,\n & > .arrow\n ":{color:Vt,cursor:"not-allowed"}},[`&${le}-icon-position-end`]:{[`& > ${le}-item`]:{[`> ${le}-header`]:{[`${le}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:Mt}}}}})}},it=We=>{const{componentCls:le}=We,fe=`> ${le}-item > ${le}-header ${le}-arrow svg`;return{[`${le}-rtl`]:{[fe]:{transform:"rotate(180deg)"}}}},yt=We=>{const{componentCls:le,headerBg:fe,paddingXXS:ze,colorBorder:He}=We;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:ze}}}},pt=We=>{const{componentCls:le,paddingSM:fe}=We;return{[`${le}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${le}-item`]:{borderBottom:0,[`> ${le}-content`]:{backgroundColor:"transparent",border:0,[`> ${le}-content-box`]:{paddingBlock:fe}}}}}};var Dt=(0,ot.Z)("Collapse",We=>{const le=(0,et.TS)(We,{collapseHeaderPaddingSM:`${We.paddingXS}px ${We.paddingSM}px`,collapseHeaderPaddingLG:`${We.padding}px ${We.paddingLG}px`,collapsePanelBorderRadius:We.borderRadiusLG});return[qe(le),yt(le),pt(le),it(le),(0,ct.Z)(le)]},We=>({headerPadding:`${We.paddingSM}px ${We.padding}px`,headerBg:We.colorFillAlter,contentPadding:`${We.padding}px 16px`,contentBg:We.colorBgContainer})),st=Object.assign(se.forwardRef((We,le)=>{const{getPrefixCls:fe,direction:ze,collapse:He}=se.useContext(at.E_),{prefixCls:pe,className:Ie,rootClassName:Ke,style:Ye,bordered:Je=!0,ghost:dt,size:bt,expandIconPosition:vt="start",children:It,expandIcon:Vt}=We,kt=(0,lt.Z)(gr=>{var wr;return(wr=bt!=null?bt:gr)!==null&&wr!==void 0?wr:"middle"}),jt=fe("collapse",pe),_t=fe(),[Mt,ft]=Dt(jt),St=se.useMemo(()=>vt==="left"?"start":vt==="right"?"end":vt,[vt]),Nt=function(){let gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const wr=Vt?Vt(gr):se.createElement(Re.Z,{rotate:gr.isActive?90:void 0});return(0,tt.Tm)(wr,()=>({className:x()(wr.props.className,`${jt}-arrow`)}))},Ft=x()(`${jt}-icon-position-${St}`,{[`${jt}-borderless`]:!Je,[`${jt}-rtl`]:ze==="rtl",[`${jt}-ghost`]:!!dt,[`${jt}-${kt}`]:kt!=="middle"},He==null?void 0:He.className,Ie,Ke,ft),Ut=Object.assign(Object.assign({},(0,Qe.Z)(_t)),{motionAppear:!1,leavedClassName:`${jt}-content-hidden`}),sr=se.useMemo(()=>It?(0,te.Z)(It).map((gr,wr)=>{var zr,Wr;if(!((zr=gr.props)===null||zr===void 0)&&zr.disabled){const Br=(Wr=gr.key)!==null&&Wr!==void 0?Wr:String(wr),{disabled:Nr,collapsible:on}=gr.props,Mn=Object.assign(Object.assign({},(0,Ue.Z)(gr.props,["disabled"])),{key:Br,collapsible:on!=null?on:Nr?"disabled":void 0});return(0,tt.Tm)(gr,Mn)}return gr}):null,[It]);return Mt(se.createElement(Ze,Object.assign({ref:le,openMotion:Ut},(0,Ue.Z)(We,["rootClassName"]),{expandIcon:Nt,prefixCls:jt,className:Ft,style:Object.assign(Object.assign({},He==null?void 0:He.style),Ye)}),sr))}),{Panel:Xe}),Ge=st},93891:function(or,Ht,ke){"use strict";var Re=ke(59301),gt=ke(36355),x=ke(64165);const De=ve=>{const{componentName:re}=ve,{getPrefixCls:ne}=(0,Re.useContext)(gt.E_),ie=ne("empty");switch(re){case"Table":case"List":return Re.createElement(x.Z,{image:x.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Re.createElement(x.Z,{image:x.Z.PRESENTED_IMAGE_SIMPLE,className:`${ie}-small`});default:return Re.createElement(x.Z,null)}};Ht.Z=De},43428:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return At}});var Re=ke(92310),gt=ke.n(Re),x=ke(85899),De=ke(72190),ve=ke(43403),re=ke(34280),ne=ke(59301),ie=ne.createContext(null),oe=ne.createContext({}),se=ie,me=ke(18642),te=ke(60499),ae=ke(77900),ue=ke(10228),de=ke(26112),he=ke(70425),we=function(Ge){var We=Ge.prefixCls,le=Ge.className,fe=Ge.style,ze=Ge.children,He=Ge.containerRef,pe=Ge.id,Ie=Ge.onMouseEnter,Ke=Ge.onMouseOver,Ye=Ge.onMouseLeave,Je=Ge.onClick,dt=Ge.onKeyDown,bt=Ge.onKeyUp,vt={onMouseEnter:Ie,onMouseOver:Ke,onMouseLeave:Ye,onClick:Je,onKeyDown:dt,onKeyUp:bt},It=ne.useContext(oe),Vt=It.panel,kt=(0,he.useComposeRef)(Vt,He);return ne.createElement(ne.Fragment,null,ne.createElement("div",(0,te.Z)({id:pe,className:gt()("".concat(We,"-content"),le),style:(0,x.Z)({},fe),"aria-modal":"true",role:"dialog",ref:kt},vt),ze))},Se=we,xe=ke(48736);function ye(st){return typeof st=="string"&&String(Number(st))===st?((0,xe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(st)):st}function Ae(st){warning(!("wrapperClassName"in st),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!st.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(st,Ge){var We,le,fe,ze,He=st.prefixCls,pe=st.open,Ie=st.placement,Ke=st.inline,Ye=st.push,Je=st.forceRender,dt=st.autoFocus,bt=st.keyboard,vt=st.rootClassName,It=st.rootStyle,Vt=st.zIndex,kt=st.className,jt=st.id,_t=st.style,Mt=st.motion,ft=st.width,St=st.height,Nt=st.children,Ft=st.contentWrapperStyle,Ut=st.mask,sr=st.maskClosable,gr=st.maskMotion,wr=st.maskClassName,zr=st.maskStyle,Wr=st.afterOpenChange,Br=st.onClose,Nr=st.onMouseEnter,on=st.onMouseOver,Mn=st.onMouseLeave,jn=st.onClick,an=st.onKeyDown,Tn=st.onKeyUp,Vr=ne.useRef(),Gn=ne.useRef(),Wn=ne.useRef();ne.useImperativeHandle(Ge,function(){return Vr.current});var Jt=function($t){var pr=$t.keyCode,Ar=$t.shiftKey;switch(pr){case ue.Z.TAB:{if(pr===ue.Z.TAB){if(!Ar&&document.activeElement===Wn.current){var Lr;(Lr=Gn.current)===null||Lr===void 0||Lr.focus({preventScroll:!0})}else if(Ar&&document.activeElement===Gn.current){var Er;(Er=Wn.current)===null||Er===void 0||Er.focus({preventScroll:!0})}}break}case ue.Z.ESC:{Br&&bt&&($t.stopPropagation(),Br($t));break}}};ne.useEffect(function(){if(pe&&dt){var nr;(nr=Vr.current)===null||nr===void 0||nr.focus({preventScroll:!0})}},[pe]);var jr=ne.useState(!1),Rr=(0,De.Z)(jr,2),Tr=Rr[0],Sr=Rr[1],Dr=ne.useContext(se),Or;Ye===!1?Or={distance:0}:Ye===!0?Or={}:Or=Ye||{};var Yr=(We=(le=(fe=Or)===null||fe===void 0?void 0:fe.distance)!==null&&le!==void 0?le:Dr==null?void 0:Dr.pushDistance)!==null&&We!==void 0?We:180,Kt=ne.useMemo(function(){return{pushDistance:Yr,push:function(){Sr(!0)},pull:function(){Sr(!1)}}},[Yr]);ne.useEffect(function(){if(pe){var nr;Dr==null||(nr=Dr.push)===null||nr===void 0||nr.call(Dr)}else{var $t;Dr==null||($t=Dr.pull)===null||$t===void 0||$t.call(Dr)}},[pe]),ne.useEffect(function(){return function(){var nr;Dr==null||(nr=Dr.pull)===null||nr===void 0||nr.call(Dr)}},[]);var xt=Ut&&ne.createElement(ae.default,(0,te.Z)({key:"mask"},gr,{visible:pe}),function(nr,$t){var pr=nr.className,Ar=nr.style;return ne.createElement("div",{className:gt()("".concat(He,"-mask"),pr,wr),style:(0,x.Z)((0,x.Z)({},Ar),zr),onClick:sr&&pe?Br:void 0,ref:$t})}),Bt=typeof Mt=="function"?Mt(Ie):Mt,Ot={};if(Tr&&Yr)switch(Ie){case"top":Ot.transform="translateY(".concat(Yr,"px)");break;case"bottom":Ot.transform="translateY(".concat(-Yr,"px)");break;case"left":Ot.transform="translateX(".concat(Yr,"px)");break;default:Ot.transform="translateX(".concat(-Yr,"px)");break}Ie==="left"||Ie==="right"?Ot.width=ye(ft):Ot.height=ye(St);var Et={onMouseEnter:Nr,onMouseOver:on,onMouseLeave:Mn,onClick:jn,onKeyDown:an,onKeyUp:Tn},zt=ne.createElement(ae.default,(0,te.Z)({key:"panel"},Bt,{visible:pe,forceRender:Je,onVisibleChanged:function($t){Wr==null||Wr($t)},removeOnLeave:!1,leavedClassName:"".concat(He,"-content-wrapper-hidden")}),function(nr,$t){var pr=nr.className,Ar=nr.style;return ne.createElement("div",(0,te.Z)({className:gt()("".concat(He,"-content-wrapper"),pr),style:(0,x.Z)((0,x.Z)((0,x.Z)({},Ot),Ar),Ft)},(0,de.Z)(st,{data:!0})),ne.createElement(Se,(0,te.Z)({id:jt,containerRef:$t,prefixCls:He,className:kt,style:_t},Et),Nt))}),Zt=(0,x.Z)({},It);return Vt&&(Zt.zIndex=Vt),ne.createElement(se.Provider,{value:Kt},ne.createElement("div",{className:gt()(He,"".concat(He,"-").concat(Ie),vt,(ze={},(0,me.Z)(ze,"".concat(He,"-open"),pe),(0,me.Z)(ze,"".concat(He,"-inline"),Ke),ze)),style:Zt,tabIndex:-1,ref:Vr,onKeyDown:Jt},xt,ne.createElement("div",{tabIndex:0,ref:Gn,style:Le,"aria-hidden":"true","data-sentinel":"start"}),zt,ne.createElement("div",{tabIndex:0,ref:Wn,style:Le,"aria-hidden":"true","data-sentinel":"end"})))}var je=ne.forwardRef(Ce),Me=je,Oe=function(Ge){var We=Ge.open,le=We===void 0?!1:We,fe=Ge.prefixCls,ze=fe===void 0?"rc-drawer":fe,He=Ge.placement,pe=He===void 0?"right":He,Ie=Ge.autoFocus,Ke=Ie===void 0?!0:Ie,Ye=Ge.keyboard,Je=Ye===void 0?!0:Ye,dt=Ge.width,bt=dt===void 0?378:dt,vt=Ge.mask,It=vt===void 0?!0:vt,Vt=Ge.maskClosable,kt=Vt===void 0?!0:Vt,jt=Ge.getContainer,_t=Ge.forceRender,Mt=Ge.afterOpenChange,ft=Ge.destroyOnClose,St=Ge.onMouseEnter,Nt=Ge.onMouseOver,Ft=Ge.onMouseLeave,Ut=Ge.onClick,sr=Ge.onKeyDown,gr=Ge.onKeyUp,wr=Ge.panelRef,zr=ne.useState(!1),Wr=(0,De.Z)(zr,2),Br=Wr[0],Nr=Wr[1],on=ne.useState(!1),Mn=(0,De.Z)(on,2),jn=Mn[0],an=Mn[1];(0,re.Z)(function(){an(!0)},[]);var Tn=jn?le:!1,Vr=ne.useRef(),Gn=ne.useRef();(0,re.Z)(function(){Tn&&(Gn.current=document.activeElement)},[Tn]);var Wn=function(Sr){var Dr;if(Nr(Sr),Mt==null||Mt(Sr),!Sr&&Gn.current&&!((Dr=Vr.current)!==null&&Dr!==void 0&&Dr.contains(Gn.current))){var Or;(Or=Gn.current)===null||Or===void 0||Or.focus({preventScroll:!0})}},Jt=ne.useMemo(function(){return{panel:wr}},[wr]);if(!_t&&!Br&&!Tn&&ft)return null;var jr={onMouseEnter:St,onMouseOver:Nt,onMouseLeave:Ft,onClick:Ut,onKeyDown:sr,onKeyUp:gr},Rr=(0,x.Z)((0,x.Z)({},Ge),{},{open:Tn,prefixCls:ze,placement:pe,autoFocus:Ke,keyboard:Je,width:bt,mask:It,maskClosable:kt,inline:jt===!1,afterOpenChange:Wn,ref:Vr},jr);return ne.createElement(oe.Provider,{value:Jt},ne.createElement(ve.Z,{open:Tn||_t||Br,autoDestroy:!1,getContainer:jt,autoLock:It&&(Tn||Br)},ne.createElement(Me,Rr)))},Ee=Oe,Ne=Ee,_e=ke(62892),Ze=ke(36355),Pe=ke(32441),Ue=ke(47729),tt=st=>{const{prefixCls:Ge,title:We,footer:le,extra:fe,closeIcon:ze,closable:He,onClose:pe,headerStyle:Ie,drawerStyle:Ke,bodyStyle:Ye,footerStyle:Je,children:dt}=st,bt=ne.useCallback(jt=>ne.createElement("button",{type:"button",onClick:pe,"aria-label":"Close",className:`${Ge}-close`},jt),[pe]),[vt,It]=(0,Ue.Z)(He,ze,bt,void 0,!0),Vt=ne.useMemo(()=>!We&&!vt?null:ne.createElement("div",{style:Ie,className:gt()(`${Ge}-header`,{[`${Ge}-header-close-only`]:vt&&!We&&!fe})},ne.createElement("div",{className:`${Ge}-header-title`},It,We&&ne.createElement("div",{className:`${Ge}-title`},We)),fe&&ne.createElement("div",{className:`${Ge}-extra`},fe)),[vt,It,fe,Ie,Ge,We]),kt=ne.useMemo(()=>{if(!le)return null;const jt=`${Ge}-footer`;return ne.createElement("div",{className:jt,style:Je},le)},[le,Je,Ge]);return ne.createElement("div",{className:`${Ge}-wrapper-body`,style:Ke},Vt,ne.createElement("div",{className:`${Ge}-body`,style:Ye},dt),kt)},at=ke(33234),lt=ke(83116),Ve=ke(37613),nt=st=>{const{componentCls:Ge,motionDurationSlow:We}=st,le={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${We}`}}};return{[Ge]:{[`${Ge}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${We}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Ge}-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 ct=st=>{const{componentCls:Ge,zIndexPopup:We,colorBgMask:le,colorBgElevated:fe,motionDurationSlow:ze,motionDurationMid:He,padding:pe,paddingLG:Ie,fontSizeLG:Ke,lineHeightLG:Ye,lineWidth:Je,lineType:dt,colorSplit:bt,marginSM:vt,colorIcon:It,colorIconHover:Vt,colorText:kt,fontWeightStrong:jt,footerPaddingBlock:_t,footerPaddingInline:Mt}=st,ft=`${Ge}-content-wrapper`;return{[Ge]:{position:"fixed",inset:0,zIndex:We,pointerEvents:"none","&-pure":{position:"relative",background:fe,[`&${Ge}-left`]:{boxShadow:st.boxShadowDrawerLeft},[`&${Ge}-right`]:{boxShadow:st.boxShadowDrawerRight},[`&${Ge}-top`]:{boxShadow:st.boxShadowDrawerUp},[`&${Ge}-bottom`]:{boxShadow:st.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Ge}-mask`]:{position:"absolute",inset:0,zIndex:We,background:le,pointerEvents:"auto"},[ft]:{position:"absolute",zIndex:We,maxWidth:"100vw",transition:`all ${ze}`,"&-hidden":{display:"none"}},[`&-left > ${ft}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:st.boxShadowDrawerLeft},[`&-right > ${ft}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:st.boxShadowDrawerRight},[`&-top > ${ft}`]:{top:0,insetInline:0,boxShadow:st.boxShadowDrawerUp},[`&-bottom > ${ft}`]:{bottom:0,insetInline:0,boxShadow:st.boxShadowDrawerDown},[`${Ge}-content`]:{width:"100%",height:"100%",overflow:"auto",background:fe,pointerEvents:"auto"},[`${Ge}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Ge}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${pe}px ${Ie}px`,fontSize:Ke,lineHeight:Ye,borderBottom:`${Je}px ${dt} ${bt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Ge}-extra`]:{flex:"none"},[`${Ge}-close`]:{display:"inline-block",marginInlineEnd:vt,color:It,fontWeight:jt,fontSize:Ke,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:Vt,textDecoration:"none"}},[`${Ge}-title`]:{flex:1,margin:0,color:kt,fontWeight:st.fontWeightStrong,fontSize:Ke,lineHeight:Ye},[`${Ge}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ie,overflow:"auto"},[`${Ge}-footer`]:{flexShrink:0,padding:`${_t}px ${Mt}px`,borderTop:`${Je}px ${dt} ${bt}`},"&-rtl":{direction:"rtl"}}}};var ot=(0,lt.Z)("Drawer",st=>{const Ge=(0,Ve.TS)(st,{});return[ct(Ge),nt(Ge)]},st=>({zIndexPopup:st.zIndexPopupBase,footerPaddingBlock:st.paddingXS,footerPaddingInline:st.padding})),et=ke(11575),qe=function(st,Ge){var We={};for(var le in st)Object.prototype.hasOwnProperty.call(st,le)&&Ge.indexOf(le)<0&&(We[le]=st[le]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,le=Object.getOwnPropertySymbols(st);fe<le.length;fe++)Ge.indexOf(le[fe])<0&&Object.prototype.propertyIsEnumerable.call(st,le[fe])&&(We[le[fe]]=st[le[fe]]);return We};const it=null,yt={distance:180},pt=st=>{var Ge;const{rootClassName:We,width:le,height:fe,size:ze="default",mask:He=!0,push:pe=yt,open:Ie,afterOpenChange:Ke,onClose:Ye,prefixCls:Je,getContainer:dt,style:bt,className:vt,visible:It,afterVisibleChange:Vt}=st,kt=qe(st,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:jt,getPrefixCls:_t,direction:Mt,drawer:ft}=ne.useContext(Ze.E_),St=_t("drawer",Je),[Nt,Ft]=ot(St),Ut=dt===void 0&&jt?()=>jt(document.body):dt,sr=gt()({"no-mask":!He,[`${St}-rtl`]:Mt==="rtl"},We,Ft),gr=ne.useMemo(()=>le!=null?le:ze==="large"?736:378,[le,ze]),wr=ne.useMemo(()=>fe!=null?fe:ze==="large"?736:378,[fe,ze]),zr={motionName:(0,_e.m)(St,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Wr=Nr=>({motionName:(0,_e.m)(St,`panel-motion-${Nr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Br=(0,et.H)();return Nt(ne.createElement(at.BR,null,ne.createElement(Pe.Ux,{status:!0,override:!0},ne.createElement(Ne,Object.assign({prefixCls:St,onClose:Ye,maskMotion:zr,motion:Wr},kt,{open:Ie!=null?Ie:It,mask:He,push:pe,width:gr,height:wr,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),bt),className:gt()(ft==null?void 0:ft.className,vt),rootClassName:sr,getContainer:Ut,afterOpenChange:Ke!=null?Ke:Vt,panelRef:Br}),ne.createElement(tt,Object.assign({prefixCls:St},kt,{onClose:Ye}))))))},Dt=st=>{const{prefixCls:Ge,style:We,className:le,placement:fe="right"}=st,ze=qe(st,["prefixCls","style","className","placement"]),{getPrefixCls:He}=ne.useContext(Ze.E_),pe=He("drawer",Ge),[Ie,Ke]=ot(pe),Ye=gt()(pe,`${pe}-pure`,`${pe}-${fe}`,Ke,le);return Ie(ne.createElement("div",{className:Ye,style:We},ne.createElement(tt,Object.assign({prefixCls:pe},ze))))};pt._InternalPanelDoNotUseOrYouWillBeFired=Dt;var At=pt},91857:function(or,Ht,ke){"use strict";var Re=ke(59301),gt=ke(38819),x=ke(92310),De=ke.n(x),ve=ke(31561),re=ke(70425),ne=ke(18929),ie=ke(2738),oe=ke(79676),se=ke(53487),me=ke(92343),te=ke(36355),ae=ke(20834),ue=ke(40875),de=ke(70305),he=ke(47211);const we=null,Se=Le=>{const{menu:Ce,arrow:je,prefixCls:Me,children:Oe,trigger:Ee,disabled:Ne,dropdownRender:_e,getPopupContainer:Ze,overlayClassName:Pe,rootClassName:Ue,open:Qe,onOpenChange:tt,visible:at,onVisibleChange:lt,mouseEnterDelay:Ve=.15,mouseLeaveDelay:Xe=.1,autoAdjustOverflow:nt=!0,placement:ct="",overlay:ot,transitionName:et}=Le,{getPopupContainer:qe,getPrefixCls:it,direction:yt}=Re.useContext(te.E_),pt=Re.useMemo(()=>{const vt=it();return et!==void 0?et:ct.includes("top")?`${vt}-slide-down`:`${vt}-slide-up`},[it,ct,et]),Dt=Re.useMemo(()=>ct?ct.includes("Center")?ct.slice(0,ct.indexOf("Center")):ct:yt==="rtl"?"bottomRight":"bottomLeft",[ct,yt]),At=it("dropdown",Me),[st,Ge]=(0,he.Z)(At),[,We]=(0,de.Z)(),le=Re.Children.only(Oe),fe=(0,me.Tm)(le,{className:De()(`${At}-trigger`,{[`${At}-rtl`]:yt==="rtl"},le.props.className),disabled:Ne}),ze=Ne?[]:Ee;let He;ze&&ze.includes("contextMenu")&&(He=!0);const[pe,Ie]=(0,ne.Z)(!1,{value:Qe!=null?Qe:at}),Ke=(0,re.useEvent)(vt=>{tt==null||tt(vt),lt==null||lt(vt),Ie(vt)}),Ye=De()(Pe,Ue,Ge,{[`${At}-rtl`]:yt==="rtl"}),Je=(0,oe.Z)({arrowPointAtCenter:typeof je=="object"&&je.pointAtCenter,autoAdjustOverflow:nt,offset:We.marginXXS,arrowWidth:je?We.sizePopupArrow:0,borderRadius:We.borderRadius}),dt=Re.useCallback(()=>{Ie(!1)},[]),bt=()=>{let vt;return Ce!=null&&Ce.items?vt=Re.createElement(ae.default,Object.assign({},Ce)):typeof ot=="function"?vt=ot():vt=ot,_e&&(vt=_e(vt)),vt=Re.Children.only(typeof vt=="string"?Re.createElement("span",null,vt):vt),Re.createElement(ue.J,{prefixCls:`${At}-menu`,expandIcon:Re.createElement("span",{className:`${At}-menu-submenu-arrow`},Re.createElement(gt.Z,{className:`${At}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:dt,validator:It=>{let{mode:Vt}=It}},vt)};return st(Re.createElement(ve.Z,Object.assign({alignPoint:He},(0,ie.Z)(Le,["rootClassName"]),{mouseEnterDelay:Ve,mouseLeaveDelay:Xe,visible:pe,builtinPlacements:Je,arrow:!!je,overlayClassName:Ye,prefixCls:At,getPopupContainer:Ze||qe,transitionName:pt,trigger:ze,overlay:bt,placement:Dt,onVisibleChange:Ke}),fe))};function xe(Le){return Object.assign(Object.assign({},Le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ye=(0,se.Z)(Se,"dropdown",Le=>Le,xe),Ae=Le=>Re.createElement(ye,Object.assign({},Le),Re.createElement("span",null));Se._InternalPanelDoNotUseOrYouWillBeFired=Ae,Ht.Z=Se},38854:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return de}});var Re=ke(91857),gt=ke(92310),x=ke.n(gt),De=ke(59301),ve=ke(18785),re=ke(3113),ne=ke(36355),ie=ke(81327),oe=ke(33234),se=ke(47211),me=function(he,we){var Se={};for(var xe in he)Object.prototype.hasOwnProperty.call(he,xe)&&we.indexOf(xe)<0&&(Se[xe]=he[xe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,xe=Object.getOwnPropertySymbols(he);ye<xe.length;ye++)we.indexOf(xe[ye])<0&&Object.prototype.propertyIsEnumerable.call(he,xe[ye])&&(Se[xe[ye]]=he[xe[ye]]);return Se};const te=he=>{const{getPopupContainer:we,getPrefixCls:Se,direction:xe}=De.useContext(ne.E_),{prefixCls:ye,type:Ae="default",danger:Le,disabled:Ce,loading:je,onClick:Me,htmlType:Oe,children:Ee,className:Ne,menu:_e,arrow:Ze,autoFocus:Pe,overlay:Ue,trigger:Qe,align:tt,open:at,onOpenChange:lt,placement:Ve,getPopupContainer:Xe,href:nt,icon:ct=De.createElement(ve.Z,null),title:ot,buttonsRender:et=bt=>bt,mouseEnterDelay:qe,mouseLeaveDelay:it,overlayClassName:yt,overlayStyle:pt,destroyPopupOnHide:Dt,dropdownRender:At}=he,st=me(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"]),Ge=Se("dropdown",ye),We=`${Ge}-button`,[le,fe]=(0,se.Z)(Ge),ze={menu:_e,arrow:Ze,autoFocus:Pe,align:tt,disabled:Ce,trigger:Ce?[]:Qe,onOpenChange:lt,getPopupContainer:Xe||we,mouseEnterDelay:qe,mouseLeaveDelay:it,overlayClassName:yt,overlayStyle:pt,destroyPopupOnHide:Dt,dropdownRender:At},{compactSize:He,compactItemClassnames:pe}=(0,oe.ri)(Ge,xe),Ie=x()(We,pe,Ne,fe);"overlay"in he&&(ze.overlay=Ue),"open"in he&&(ze.open=at),"placement"in he?ze.placement=Ve:ze.placement=xe==="rtl"?"bottomLeft":"bottomRight";const Ke=De.createElement(re.ZP,{type:Ae,danger:Le,disabled:Ce,loading:je,onClick:Me,htmlType:Oe,href:nt,title:ot},Ee),Ye=De.createElement(re.ZP,{type:Ae,danger:Le,icon:ct}),[Je,dt]=et([Ke,Ye]);return le(De.createElement(ie.Z.Compact,Object.assign({className:Ie,size:He,block:!0},st),Je,De.createElement(Re.Z,Object.assign({},ze),dt)))};te.__ANT_BUTTON=!0;var ae=te;const ue=Re.Z;ue.Button=ae;var de=ue},47211:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return me}});var Re=ke(17313),gt=ke(13826),x=ke(92899),De=ke(29878),ve=ke(19447),re=ke(83116),ne=ke(37613),oe=te=>{const{componentCls:ae,menuCls:ue,colorError:de,colorTextLightSolid:he}=te,we=`${ue}-item`;return{[`${ae}, ${ae}-menu-submenu`]:{[`${ue} ${we}`]:{[`&${we}-danger:not(${we}-disabled)`]:{color:de,"&:hover":{color:he,backgroundColor:de}}}}}};const se=te=>{const{componentCls:ae,menuCls:ue,zIndexPopup:de,dropdownArrowDistance:he,sizePopupArrow:we,antCls:Se,iconCls:xe,motionDurationMid:ye,dropdownPaddingVertical:Ae,fontSize:Le,dropdownEdgeChildPadding:Ce,colorTextDisabled:je,fontSizeIcon:Me,controlPaddingHorizontal:Oe,colorBgElevated:Ee}=te;return[{[ae]:Object.assign(Object.assign({},(0,Re.Wf)(te)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:de,display:"block","&::before":{position:"absolute",insetBlock:-he+we/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Se}-btn`]:{[`& > ${xe}-down, & > ${Se}-btn-icon > ${xe}-down`]:{fontSize:Me}},[`${ae}-wrap`]:{position:"relative",[`${Se}-btn > ${xe}-down`]:{fontSize:Me},[`${xe}-down::before`]:{transition:`transform ${ye}`}},[`${ae}-wrap-open`]:{[`${xe}-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:gt.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:gt.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:gt.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:gt.ly}})},(0,ve.ZP)(te,{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:te.borderRadiusLG,outline:"none",boxShadow:te.boxShadowSecondary},(0,Re.Qy)(te)),{[`${ue}-item-group-title`]:{padding:`${Ae}px ${Oe}px`,color:te.colorTextDescription,transition:`all ${ye}`},[`${ue}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ue}-item-icon`]:{minWidth:Le,marginInlineEnd:te.marginXS,fontSize:te.fontSizeSM},[`${ue}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ye}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ue}-item, ${ue}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Ae}px ${Oe}px`,color:te.colorText,fontWeight:"normal",fontSize:Le,lineHeight:te.lineHeight,cursor:"pointer",transition:`all ${ye}`,borderRadius:te.borderRadiusSM,"&:hover, &-active":{backgroundColor:te.controlItemBgHover}},(0,Re.Qy)(te)),{"&-selected":{color:te.colorPrimary,backgroundColor:te.controlItemBgActive,"&:hover, &-active":{backgroundColor:te.controlItemBgActiveHover}},"&-disabled":{color:je,cursor:"not-allowed","&:hover":{color:je,backgroundColor:Ee,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${te.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:te.colorSplit},[`${ae}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:te.paddingXS,[`${ae}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:te.colorTextDescription,fontSize:Me,fontStyle:"normal"}}}),[`${ue}-item-group-list`]:{margin:`0 ${te.marginXS}px`,padding:0,listStyle:"none"},[`${ue}-submenu-title`]:{paddingInlineEnd:Oe+te.fontSizeSM},[`${ue}-submenu-vertical`]:{position:"relative"},[`${ue}-submenu${ue}-submenu-disabled ${ae}-menu-submenu-title`]:{[`&, ${ae}-menu-submenu-arrow-icon`]:{color:je,backgroundColor:Ee,cursor:"not-allowed"}},[`${ue}-submenu-selected ${ae}-menu-submenu-title`]:{color:te.colorPrimary}})}},[(0,gt.oN)(te,"slide-up"),(0,gt.oN)(te,"slide-down"),(0,x.Fm)(te,"move-up"),(0,x.Fm)(te,"move-down"),(0,De._y)(te,"zoom-big")]]};var me=(0,re.Z)("Dropdown",(te,ae)=>{let{rootPrefixCls:ue}=ae;const{marginXXS:de,sizePopupArrow:he,controlHeight:we,fontSize:Se,lineHeight:xe,paddingXXS:ye,componentCls:Ae,borderRadiusLG:Le}=te,Ce=(we-Se*xe)/2,{dropdownArrowOffset:je}=(0,ve.fS)({contentRadius:Le}),Me=(0,ne.TS)(te,{menuCls:`${Ae}-menu`,rootPrefixCls:ue,dropdownArrowDistance:he/2+de,dropdownArrowOffset:je,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:ye});return[se(Me),oe(Me)]},te=>({zIndexPopup:te.zIndexPopupBase+50}))},64165:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ye}});var Re=ke(92310),gt=ke.n(Re),x=ke(59301),De=ke(36355),ve=ke(9763),re=ke(64993),ne=ke(70305),oe=()=>{const[,Ae]=(0,ne.Z)(),Ce=new re.C(Ae.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"}))))},me=()=>{const[,Ae]=(0,ne.Z)(),{colorFill:Le,colorFillTertiary:Ce,colorFillQuaternary:je,colorBgContainer:Me}=Ae,{borderColor:Oe,shadowColor:Ee,contentColor:Ne}=(0,x.useMemo)(()=>({borderColor:new re.C(Le).onBackground(Me).toHexShortString(),shadowColor:new re.C(Ce).onBackground(Me).toHexShortString(),contentColor:new re.C(je).onBackground(Me).toHexShortString()}),[Le,Ce,je,Me]);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:Oe},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:Ne}))))},te=ke(83116),ae=ke(37613);const ue=Ae=>{const{componentCls:Le,margin:Ce,marginXS:je,marginXL:Me,fontSize:Oe,lineHeight:Ee}=Ae;return{[Le]:{marginInline:je,fontSize:Oe,lineHeight:Ee,textAlign:"center",[`${Le}-image`]:{height:Ae.emptyImgHeight,marginBottom:je,opacity:Ae.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Le}-description`]:{color:Ae.colorText},[`${Le}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:Me,color:Ae.colorTextDisabled,[`${Le}-description`]:{color:Ae.colorTextDisabled},[`${Le}-image`]:{height:Ae.emptyImgHeightMD}},"&-small":{marginBlock:je,color:Ae.colorTextDisabled,[`${Le}-image`]:{height:Ae.emptyImgHeightSM}}}}};var de=(0,te.Z)("Empty",Ae=>{const{componentCls:Le,controlHeightLG:Ce}=Ae,je=(0,ae.TS)(Ae,{emptyImgCls:`${Le}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[ue(je)]}),he=function(Ae,Le){var Ce={};for(var je in Ae)Object.prototype.hasOwnProperty.call(Ae,je)&&Le.indexOf(je)<0&&(Ce[je]=Ae[je]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,je=Object.getOwnPropertySymbols(Ae);Me<je.length;Me++)Le.indexOf(je[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ae,je[Me])&&(Ce[je[Me]]=Ae[je[Me]]);return Ce};const we=x.createElement(oe,null),Se=x.createElement(me,null),xe=Ae=>{var{className:Le,rootClassName:Ce,prefixCls:je,image:Me=we,description:Oe,children:Ee,imageStyle:Ne,style:_e}=Ae,Ze=he(Ae,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Pe,direction:Ue,empty:Qe}=x.useContext(De.E_),tt=Pe("empty",je),[at,lt]=de(tt),[Ve]=(0,ve.Z)("Empty"),Xe=typeof Oe!="undefined"?Oe:Ve==null?void 0:Ve.description,nt=typeof Xe=="string"?Xe:"empty";let ct=null;return typeof Me=="string"?ct=x.createElement("img",{alt:nt,src:Me}):ct=Me,at(x.createElement("div",Object.assign({className:gt()(lt,tt,Qe==null?void 0:Qe.className,{[`${tt}-normal`]:Me===Se,[`${tt}-rtl`]:Ue==="rtl"},Le,Ce),style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),_e)},Ze),x.createElement("div",{className:`${tt}-image`,style:Ne},ct),Xe&&x.createElement("div",{className:`${tt}-description`},Xe),Ee&&x.createElement("div",{className:`${tt}-footer`},Ee)))};xe.PRESENTED_IMAGE_DEFAULT=we,xe.PRESENTED_IMAGE_SIMPLE=Se;var ye=xe},78241:function(or,Ht,ke){"use strict";ke.d(Ht,{default:function(){return Yr}});var Re=ke(77654),gt=ke(92310),x=ke.n(gt),De=ke(77900),ve=ke(59301),re=ke(62892),ne=ke(32441);function ie(Kt){const[xt,Bt]=ve.useState(Kt);return ve.useEffect(()=>{const Ot=setTimeout(()=>{Bt(Kt)},Kt.length?0:10);return()=>{clearTimeout(Ot)}},[Kt]),xt}var oe=ke(17313),se=ke(29878),me=ke(8378),te=ke(37613),ae=ke(83116),de=Kt=>{const{componentCls:xt}=Kt,Bt=`${xt}-show-help`,Ot=`${xt}-show-help-item`;return{[Bt]:{transition:`opacity ${Kt.motionDurationSlow} ${Kt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ot]:{overflow:"hidden",transition:`height ${Kt.motionDurationSlow} ${Kt.motionEaseInOut},
|
|
|
opacity ${Kt.motionDurationSlow} ${Kt.motionEaseInOut},
|
|
|
transform ${Kt.motionDurationSlow} ${Kt.motionEaseInOut} !important`,[`&${Ot}-appear, &${Ot}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ot}-leave-active`]:{transform:"translateY(-5px)"}}}}};const he=Kt=>({legend:{display:"block",width:"100%",marginBottom:Kt.marginLG,padding:0,color:Kt.colorTextDescription,fontSize:Kt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Kt.lineWidth}px ${Kt.lineType} ${Kt.colorBorder}`},label:{fontSize:Kt.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 ${Kt.controlOutlineWidth}px ${Kt.controlOutline}`},output:{display:"block",paddingTop:15,color:Kt.colorText,fontSize:Kt.fontSize,lineHeight:Kt.lineHeight}}),we=(Kt,xt)=>{const{formItemCls:Bt}=Kt;return{[Bt]:{[`${Bt}-label > label`]:{height:xt},[`${Bt}-control-input`]:{minHeight:xt}}}},Se=Kt=>{const{componentCls:xt}=Kt;return{[Kt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Kt)),he(Kt)),{[`${xt}-text`]:{display:"inline-block",paddingInlineEnd:Kt.paddingSM},"&-small":Object.assign({},we(Kt,Kt.controlHeightSM)),"&-large":Object.assign({},we(Kt,Kt.controlHeightLG))})}},xe=Kt=>{const{formItemCls:xt,iconCls:Bt,componentCls:Ot,rootPrefixCls:Et,labelRequiredMarkColor:zt,labelColor:Zt,labelFontSize:nr,labelHeight:$t,labelColonMarginInlineStart:pr,labelColonMarginInlineEnd:Ar,itemMarginBottom:Lr}=Kt;return{[xt]:Object.assign(Object.assign({},(0,oe.Wf)(Kt)),{marginBottom:Lr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Et}-row`]:{display:"none"},"&-has-warning":{[`${xt}-split`]:{color:Kt.colorError}},"&-has-error":{[`${xt}-split`]:{color:Kt.colorWarning}},[`${xt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Kt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:$t,color:Zt,fontSize:nr,[`> ${Bt}`]:{fontSize:Kt.fontSize,verticalAlign:"top"},[`&${xt}-required:not(${xt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Kt.marginXXS,color:zt,fontSize:Kt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ot}-hide-required-mark &`]:{display:"none"}},[`${xt}-optional`]:{display:"inline-block",marginInlineStart:Kt.marginXXS,color:Kt.colorTextDescription,[`${Ot}-hide-required-mark &`]:{display:"none"}},[`${xt}-tooltip`]:{color:Kt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Kt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:pr,marginInlineEnd:Ar},[`&${xt}-no-colon::after`]:{content:'"\\a0"'}}},[`${xt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Et}-col-'"]):not([class*="' ${Et}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Kt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[xt]:{"&-explain, &-extra":{clear:"both",color:Kt.colorTextDescription,fontSize:Kt.fontSize,lineHeight:Kt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Kt.controlHeightSM,transition:`color ${Kt.motionDurationMid} ${Kt.motionEaseOut}`},"&-explain":{"&-error":{color:Kt.colorError},"&-warning":{color:Kt.colorWarning}}},[`&-with-help ${xt}-explain`]:{height:"auto",opacity:1},[`${xt}-feedback-icon`]:{fontSize:Kt.fontSize,textAlign:"center",visibility:"visible",animationName:se.kr,animationDuration:Kt.motionDurationMid,animationTimingFunction:Kt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Kt.colorSuccess},"&-error":{color:Kt.colorError},"&-warning":{color:Kt.colorWarning},"&-validating":{color:Kt.colorPrimary}}})}},ye=Kt=>{const{componentCls:xt,formItemCls:Bt}=Kt;return{[`${xt}-horizontal`]:{[`${Bt}-label`]:{flexGrow:0},[`${Bt}-control`]:{flex:"1 1 0",minWidth:0},[`${Bt}-label[class$='-24'], ${Bt}-label[class*='-24 ']`]:{[`& + ${Bt}-control`]:{minWidth:"unset"}}}}},Ae=Kt=>{const{componentCls:xt,formItemCls:Bt}=Kt;return{[`${xt}-inline`]:{display:"flex",flexWrap:"wrap",[Bt]:{flex:"none",marginInlineEnd:Kt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Bt}-label,
|
|
|
> ${Bt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Bt}-label`]:{flex:"none"},[`${xt}-text`]:{display:"inline-block"},[`${Bt}-has-feedback`]:{display:"inline-block"}}}}},Le=Kt=>({padding:Kt.verticalLabelPadding,margin:Kt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=Kt=>{const{componentCls:xt,formItemCls:Bt,rootPrefixCls:Ot}=Kt;return{[`${Bt} ${Bt}-label`]:Le(Kt),[xt]:{[Bt]:{flexWrap:"wrap",[`${Bt}-label, ${Bt}-control`]:{[`&:not([class*=" ${Ot}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},je=Kt=>{const{componentCls:xt,formItemCls:Bt,rootPrefixCls:Ot}=Kt;return{[`${xt}-vertical`]:{[Bt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${xt}-item-control`]:{width:"100%"}}},[`${xt}-vertical ${Bt}-label,
|
|
|
.${Ot}-col-24${Bt}-label,
|
|
|
.${Ot}-col-xl-24${Bt}-label`]:Le(Kt),[`@media (max-width: ${Kt.screenXSMax}px)`]:[Ce(Kt),{[xt]:{[`.${Ot}-col-xs-24${Bt}-label`]:Le(Kt)}}],[`@media (max-width: ${Kt.screenSMMax}px)`]:{[xt]:{[`.${Ot}-col-sm-24${Bt}-label`]:Le(Kt)}},[`@media (max-width: ${Kt.screenMDMax}px)`]:{[xt]:{[`.${Ot}-col-md-24${Bt}-label`]:Le(Kt)}},[`@media (max-width: ${Kt.screenLGMax}px)`]:{[xt]:{[`.${Ot}-col-lg-24${Bt}-label`]:Le(Kt)}}}},Me=(Kt,xt)=>(0,te.TS)(Kt,{formItemCls:`${Kt.componentCls}-item`,rootPrefixCls:xt});var Oe=(0,ae.Z)("Form",(Kt,xt)=>{let{rootPrefixCls:Bt}=xt;const Ot=Me(Kt,Bt);return[Se(Ot),xe(Ot),de(Ot),ye(Ot),Ae(Ot),je(Ot),(0,me.Z)(Ot),se.kr]},Kt=>({labelRequiredMarkColor:Kt.colorError,labelColor:Kt.colorTextHeading,labelFontSize:Kt.fontSize,labelHeight:Kt.controlHeight,labelColonMarginInlineStart:Kt.marginXXS/2,labelColonMarginInlineEnd:Kt.marginXS,itemMarginBottom:Kt.marginLG,verticalLabelPadding:`0 0 ${Kt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ee=[];function Ne(Kt,xt,Bt){let Ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Kt=="string"?Kt:`${xt}-${Ot}`,error:Kt,errorStatus:Bt}}var Ze=Kt=>{let{help:xt,helpStatus:Bt,errors:Ot=Ee,warnings:Et=Ee,className:zt,fieldId:Zt,onVisibleChanged:nr}=Kt;const{prefixCls:$t}=ve.useContext(ne.Rk),pr=`${$t}-item-explain`,[,Ar]=Oe($t),Lr=(0,ve.useMemo)(()=>(0,re.Z)($t),[$t]),Er=ie(Ot),tr=ie(Et),br=ve.useMemo(()=>xt!=null?[Ne(xt,"help",Bt)]:[].concat((0,Re.Z)(Er.map((Qt,Xt)=>Ne(Qt,"error","error",Xt))),(0,Re.Z)(tr.map((Qt,Xt)=>Ne(Qt,"warning","warning",Xt)))),[xt,Bt,Er,tr]),Wt={};return Zt&&(Wt.id=`${Zt}_help`),ve.createElement(De.default,{motionDeadline:Lr.motionDeadline,motionName:`${$t}-show-help`,visible:!!br.length,onVisibleChanged:nr},Qt=>{const{className:Xt,style:qt}=Qt;return ve.createElement("div",Object.assign({},Wt,{className:x()(pr,Xt,zt,Ar),style:qt,role:"alert"}),ve.createElement(De.CSSMotionList,Object.assign({keys:br},(0,re.Z)($t),{motionName:`${$t}-show-help-item`,component:!1}),mr=>{const{key:ar,error:xr,errorStatus:Lt,className:Yt,style:er}=mr;return ve.createElement("div",{key:ar,className:x()(Yt,{[`${pr}-${Lt}`]:Lt}),style:er},xr)}))})},Pe=ke(95013),Ue=ke(36355),Qe=ke(1684),tt=ke(52946),at=ke(19716),lt=ke(16722);const Ve=["parentNode"],Xe="form_item";function nt(Kt){return Kt===void 0||Kt===!1?[]:Array.isArray(Kt)?Kt:[Kt]}function ct(Kt,xt){if(!Kt.length)return;const Bt=Kt.join("_");return xt?`${xt}_${Bt}`:Ve.includes(Bt)?`${Xe}_${Bt}`:Bt}function ot(Kt,xt,Bt,Ot,Et,zt){let Zt=Ot;return zt!==void 0?Zt=zt:Bt.validating?Zt="validating":Kt.length?Zt="error":xt.length?Zt="warning":(Bt.touched||Et&&Bt.validated)&&(Zt="success"),Zt}function et(Kt){return nt(Kt).join("_")}function qe(Kt){const[xt]=(0,Pe.useForm)(),Bt=ve.useRef({}),Ot=ve.useMemo(()=>Kt!=null?Kt:Object.assign(Object.assign({},xt),{__INTERNAL__:{itemRef:Et=>zt=>{const Zt=et(Et);zt?Bt.current[Zt]=zt:delete Bt.current[Zt]}},scrollToField:function(Et){let zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Zt=nt(Et),nr=ct(Zt,Ot.__INTERNAL__.name),$t=nr?document.getElementById(nr):null;$t&&(0,lt.Z)($t,Object.assign({scrollMode:"if-needed",block:"nearest"},zt))},getFieldInstance:Et=>{const zt=et(Et);return Bt.current[zt]}}),[Kt,xt]);return[Ot]}var it=ke(28726),yt=function(Kt,xt){var Bt={};for(var Ot in Kt)Object.prototype.hasOwnProperty.call(Kt,Ot)&&xt.indexOf(Ot)<0&&(Bt[Ot]=Kt[Ot]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Ot=Object.getOwnPropertySymbols(Kt);Et<Ot.length;Et++)xt.indexOf(Ot[Et])<0&&Object.prototype.propertyIsEnumerable.call(Kt,Ot[Et])&&(Bt[Ot[Et]]=Kt[Ot[Et]]);return Bt};const pt=(Kt,xt)=>{const Bt=ve.useContext(Qe.Z),{getPrefixCls:Ot,direction:Et,form:zt}=ve.useContext(Ue.E_),{prefixCls:Zt,className:nr,rootClassName:$t,size:pr,disabled:Ar=Bt,form:Lr,colon:Er,labelAlign:tr,labelWrap:br,labelCol:Wt,wrapperCol:Qt,hideRequiredMark:Xt,layout:qt="horizontal",scrollToFirstError:mr,requiredMark:ar,onFinishFailed:xr,name:Lt,style:Yt,feedbackIcons:er}=Kt,dr=yt(Kt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),lr=(0,at.Z)(pr),fr=ve.useContext(it.Z),hr=(0,ve.useMemo)(()=>ar!==void 0?ar:zt&&zt.requiredMark!==void 0?zt.requiredMark:!Xt,[Xt,ar,zt]),Cr=Er!=null?Er:zt==null?void 0:zt.colon,_r=Ot("form",Zt),[Zr,$r]=Oe(_r),nn=x()(_r,`${_r}-${qt}`,{[`${_r}-hide-required-mark`]:hr===!1,[`${_r}-rtl`]:Et==="rtl",[`${_r}-${lr}`]:lr},$r,zt==null?void 0:zt.className,nr,$t),[cn]=qe(Lr),{__INTERNAL__:dn}=cn;dn.name=Lt;const Jr=(0,ve.useMemo)(()=>({name:Lt,labelAlign:tr,labelCol:Wt,labelWrap:br,wrapperCol:Qt,vertical:qt==="vertical",colon:Cr,requiredMark:hr,itemRef:dn.itemRef,form:cn,feedbackIcons:er}),[Lt,tr,Wt,Qt,qt,Cr,hr,cn,er]);ve.useImperativeHandle(xt,()=>cn);const wn=(On,un)=>{if(On){let mn={block:"nearest"};typeof On=="object"&&(mn=On),cn.scrollToField(un,mn)}},fn=On=>{if(xr==null||xr(On),On.errorFields.length){const un=On.errorFields[0].name;if(mr!==void 0){wn(mr,un);return}zt&&zt.scrollToFirstError!==void 0&&wn(zt.scrollToFirstError,un)}};return Zr(ve.createElement(Qe.n,{disabled:Ar},ve.createElement(tt.q,{size:lr},ve.createElement(ne.RV,Object.assign({},{validateMessages:fr}),ve.createElement(ne.q3.Provider,{value:Jr},ve.createElement(Pe.default,Object.assign({id:Lt},dr,{name:Lt,onFinishFailed:fn,form:cn,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),Yt),className:nn})))))))};var At=ve.forwardRef(pt),st=ke(41799),Ge=ke(8654),We=ke(92343),le=ke(11592);function fe(Kt){if(typeof Kt=="function")return Kt;const xt=(0,le.Z)(Kt);return xt.length<=1?xt[0]:xt}const ze=()=>{const{status:Kt,errors:xt=[],warnings:Bt=[]}=(0,ve.useContext)(ne.aM);return{status:Kt,errors:xt,warnings:Bt}};ze.Context=ne.aM;var He=ze,pe=ke(16089);function Ie(Kt){const[xt,Bt]=ve.useState(Kt),Ot=(0,ve.useRef)(null),Et=(0,ve.useRef)([]),zt=(0,ve.useRef)(!1);ve.useEffect(()=>(zt.current=!1,()=>{zt.current=!0,pe.Z.cancel(Ot.current),Ot.current=null}),[]);function Zt(nr){zt.current||(Ot.current===null&&(Et.current=[],Ot.current=(0,pe.Z)(()=>{Ot.current=null,Bt($t=>{let pr=$t;return Et.current.forEach(Ar=>{pr=Ar(pr)}),pr})})),Et.current.push(nr))}return[xt,Zt]}function Ke(){const{itemRef:Kt}=ve.useContext(ne.q3),xt=ve.useRef({});function Bt(Ot,Et){const zt=Et&&typeof Et=="object"&&Et.ref,Zt=Ot.join("_");return(xt.current.name!==Zt||xt.current.originRef!==zt)&&(xt.current.name=Zt,xt.current.originRef=zt,xt.current.ref=(0,Ge.sQ)(Kt(Ot),zt)),xt.current.ref}return Bt}var Ye=ke(29194),Je=ke(34280),dt=ke(2738),bt=ke(27382),vt=ke(37028);const It=Kt=>{const{formItemCls:xt}=Kt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${xt}-control`]:{display:"flex"}}}};var Vt=(0,ae.b)(["Form","item-item"],(Kt,xt)=>{let{rootPrefixCls:Bt}=xt;const Ot=Me(Kt,Bt);return[It(Ot)]}),jt=Kt=>{const{prefixCls:xt,status:Bt,wrapperCol:Ot,children:Et,errors:zt,warnings:Zt,_internalItemRender:nr,extra:$t,help:pr,fieldId:Ar,marginBottom:Lr,onErrorVisibleChanged:Er}=Kt,tr=`${xt}-item`,br=ve.useContext(ne.q3),Wt=Ot||br.wrapperCol||{},Qt=x()(`${tr}-control`,Wt.className),Xt=ve.useMemo(()=>Object.assign({},br),[br]);delete Xt.labelCol,delete Xt.wrapperCol;const qt=ve.createElement("div",{className:`${tr}-control-input`},ve.createElement("div",{className:`${tr}-control-input-content`},Et)),mr=ve.useMemo(()=>({prefixCls:xt,status:Bt}),[xt,Bt]),ar=Lr!==null||zt.length||Zt.length?ve.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ve.createElement(ne.Rk.Provider,{value:mr},ve.createElement(Ze,{fieldId:Ar,errors:zt,warnings:Zt,help:pr,helpStatus:Bt,className:`${tr}-explain-connected`,onVisibleChanged:Er})),!!Lr&&ve.createElement("div",{style:{width:0,height:Lr}})):null,xr={};Ar&&(xr.id=`${Ar}_extra`);const Lt=$t?ve.createElement("div",Object.assign({},xr,{className:`${tr}-extra`}),$t):null,Yt=nr&&nr.mark==="pro_table_render"&&nr.render?nr.render(Kt,{input:qt,errorList:ar,extra:Lt}):ve.createElement(ve.Fragment,null,qt,ar,Lt);return ve.createElement(ne.q3.Provider,{value:Xt},ve.createElement(vt.Z,Object.assign({},Wt,{className:Qt}),Yt),ve.createElement(Vt,{prefixCls:xt}))},_t=ke(61485),Mt=ke(31724),ft=ke(9763),St=ke(6848),Nt=function(Kt,xt){var Bt={};for(var Ot in Kt)Object.prototype.hasOwnProperty.call(Kt,Ot)&&xt.indexOf(Ot)<0&&(Bt[Ot]=Kt[Ot]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Ot=Object.getOwnPropertySymbols(Kt);Et<Ot.length;Et++)xt.indexOf(Ot[Et])<0&&Object.prototype.propertyIsEnumerable.call(Kt,Ot[Et])&&(Bt[Ot[Et]]=Kt[Ot[Et]]);return Bt};function Ft(Kt){return Kt?typeof Kt=="object"&&!ve.isValidElement(Kt)?Kt:{title:Kt}:null}var sr=Kt=>{let{prefixCls:xt,label:Bt,htmlFor:Ot,labelCol:Et,labelAlign:zt,colon:Zt,required:nr,requiredMark:$t,tooltip:pr}=Kt;var Ar;const[Lr]=(0,ft.Z)("Form"),{vertical:Er,labelAlign:tr,labelCol:br,labelWrap:Wt,colon:Qt}=ve.useContext(ne.q3);if(!Bt)return null;const Xt=Et||br||{},qt=zt||tr,mr=`${xt}-item-label`,ar=x()(mr,qt==="left"&&`${mr}-left`,Xt.className,{[`${mr}-wrap`]:!!Wt});let xr=Bt;const Lt=Zt===!0||Qt!==!1&&Zt!==!1;Lt&&!Er&&typeof Bt=="string"&&Bt.trim()!==""&&(xr=Bt.replace(/[:|:]\s*$/,""));const er=Ft(pr);if(er){const{icon:hr=ve.createElement(_t.Z,null)}=er,Cr=Nt(er,["icon"]),_r=ve.createElement(St.Z,Object.assign({},Cr),ve.cloneElement(hr,{className:`${xt}-item-tooltip`,title:""}));xr=ve.createElement(ve.Fragment,null,xr,_r)}const dr=$t==="optional",lr=typeof $t=="function";lr?xr=$t(xr,{required:!!nr}):dr&&!nr&&(xr=ve.createElement(ve.Fragment,null,xr,ve.createElement("span",{className:`${xt}-item-optional`,title:""},(Lr==null?void 0:Lr.optional)||((Ar=Mt.Z.Form)===null||Ar===void 0?void 0:Ar.optional))));const fr=x()({[`${xt}-item-required`]:nr,[`${xt}-item-required-mark-optional`]:dr||lr,[`${xt}-item-no-colon`]:!Lt});return ve.createElement(vt.Z,Object.assign({},Xt,{className:ar}),ve.createElement("label",{htmlFor:Ot,className:fr,title:typeof Bt=="string"?Bt:""},xr))},gr=ke(29679),wr=ke(19248),zr=ke(96512),Wr=ke(58617);const Br={success:gr.Z,warning:zr.Z,error:wr.Z,validating:Wr.Z};function Nr(Kt){let{children:xt,errors:Bt,warnings:Ot,hasFeedback:Et,validateStatus:zt,prefixCls:Zt,meta:nr,noStyle:$t}=Kt;const pr=`${Zt}-item`,{feedbackIcons:Ar}=ve.useContext(ne.q3),Lr=ot(Bt,Ot,nr,null,!!Et,zt),{isFormItemInput:Er,status:tr}=ve.useContext(ne.aM),br=ve.useMemo(()=>{var Wt;let Qt;if(Et){const mr=Et!==!0&&Et.icons||Ar,ar=Lr&&((Wt=mr==null?void 0:mr({status:Lr,errors:Bt,warnings:Ot}))===null||Wt===void 0?void 0:Wt[Lr]),xr=Lr&&Br[Lr];Qt=ar!==!1&&xr?ve.createElement("span",{className:x()(`${pr}-feedback-icon`,`${pr}-feedback-icon-${Lr}`)},ar||ve.createElement(xr,null)):null}let Xt=!0,qt=Lr||"";return $t&&(Xt=Er,qt=(Lr!=null?Lr:tr)||""),{status:qt,errors:Bt,warnings:Ot,hasFeedback:!!Et,feedbackIcon:Qt,isFormItemInput:Xt}},[Lr,Et,$t,Er,tr]);return ve.createElement(ne.aM.Provider,{value:br},xt)}var on=function(Kt,xt){var Bt={};for(var Ot in Kt)Object.prototype.hasOwnProperty.call(Kt,Ot)&&xt.indexOf(Ot)<0&&(Bt[Ot]=Kt[Ot]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Ot=Object.getOwnPropertySymbols(Kt);Et<Ot.length;Et++)xt.indexOf(Ot[Et])<0&&Object.prototype.propertyIsEnumerable.call(Kt,Ot[Et])&&(Bt[Ot[Et]]=Kt[Ot[Et]]);return Bt};function Mn(Kt){const{prefixCls:xt,className:Bt,rootClassName:Ot,style:Et,help:zt,errors:Zt,warnings:nr,validateStatus:$t,meta:pr,hasFeedback:Ar,hidden:Lr,children:Er,fieldId:tr,required:br,isRequired:Wt,onSubItemMetaChange:Qt}=Kt,Xt=on(Kt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),qt=`${xt}-item`,{requiredMark:mr}=ve.useContext(ne.q3),ar=ve.useRef(null),xr=ie(Zt),Lt=ie(nr),Yt=zt!=null,er=!!(Yt||Zt.length||nr.length),dr=!!ar.current&&(0,Ye.Z)(ar.current),[lr,fr]=ve.useState(null);(0,Je.Z)(()=>{if(er&&ar.current){const $r=getComputedStyle(ar.current);fr(parseInt($r.marginBottom,10))}},[er,dr]);const hr=$r=>{$r||fr(null)},_r=function(){let $r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const nn=$r?xr:pr.errors,cn=$r?Lt:pr.warnings;return ot(nn,cn,pr,"",!!Ar,$t)}(),Zr=x()(qt,Bt,Ot,{[`${qt}-with-help`]:Yt||xr.length||Lt.length,[`${qt}-has-feedback`]:_r&&Ar,[`${qt}-has-success`]:_r==="success",[`${qt}-has-warning`]:_r==="warning",[`${qt}-has-error`]:_r==="error",[`${qt}-is-validating`]:_r==="validating",[`${qt}-hidden`]:Lr});return ve.createElement("div",{className:Zr,style:Et,ref:ar},ve.createElement(bt.Z,Object.assign({className:`${qt}-row`},(0,dt.Z)(Xt,["_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"])),ve.createElement(sr,Object.assign({htmlFor:tr},Kt,{requiredMark:mr,required:br!=null?br:Wt,prefixCls:xt})),ve.createElement(jt,Object.assign({},Kt,pr,{errors:xr,warnings:Lt,prefixCls:xt,status:_r,help:zt,marginBottom:lr,onErrorVisibleChanged:hr}),ve.createElement(ne.qI.Provider,{value:Qt},ve.createElement(Nr,{prefixCls:xt,meta:pr,errors:pr.errors,warnings:pr.warnings,hasFeedback:Ar,validateStatus:_r},Er)))),!!lr&&ve.createElement("div",{className:`${qt}-margin-offset`,style:{marginBottom:-lr}}))}const jn="__SPLIT__",an=null,Tn=ve.memo(Kt=>{let{children:xt}=Kt;return xt},(Kt,xt)=>Kt.value===xt.value&&Kt.update===xt.update&&Kt.childProps.length===xt.childProps.length&&Kt.childProps.every((Bt,Ot)=>Bt===xt.childProps[Ot]));function Vr(Kt){return Kt!=null}function Gn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Wn(Kt){const{name:xt,noStyle:Bt,className:Ot,dependencies:Et,prefixCls:zt,shouldUpdate:Zt,rules:nr,children:$t,required:pr,label:Ar,messageVariables:Lr,trigger:Er="onChange",validateTrigger:tr,hidden:br,help:Wt}=Kt,{getPrefixCls:Qt}=ve.useContext(Ue.E_),{name:Xt}=ve.useContext(ne.q3),qt=fe($t),mr=typeof qt=="function",ar=ve.useContext(ne.qI),{validateTrigger:xr}=ve.useContext(Pe.FieldContext),Lt=tr!==void 0?tr:xr,Yt=Vr(xt),er=Qt("form",zt),[dr,lr]=Oe(er),fr=ve.useContext(Pe.ListContext),hr=ve.useRef(),[Cr,_r]=Ie({}),[Zr,$r]=(0,st.Z)(()=>Gn()),nn=un=>{const mn=fr==null?void 0:fr.getKey(un.name);if($r(un.destroy?Gn():un,!0),Bt&&Wt!==!1&&ar){let yn=un.name;if(un.destroy)yn=hr.current||yn;else if(mn!==void 0){const[en,Ln]=mn;yn=[en].concat((0,Re.Z)(Ln)),hr.current=yn}ar(un,yn)}},cn=(un,mn)=>{_r(yn=>{const en=Object.assign({},yn),Xn=[].concat((0,Re.Z)(un.name.slice(0,-1)),(0,Re.Z)(mn)).join(jn);return un.destroy?delete en[Xn]:en[Xn]=un,en})},[dn,Jr]=ve.useMemo(()=>{const un=(0,Re.Z)(Zr.errors),mn=(0,Re.Z)(Zr.warnings);return Object.values(Cr).forEach(yn=>{un.push.apply(un,(0,Re.Z)(yn.errors||[])),mn.push.apply(mn,(0,Re.Z)(yn.warnings||[]))}),[un,mn]},[Cr,Zr.errors,Zr.warnings]),wn=Ke();function fn(un,mn,yn){return Bt&&!br?ve.createElement(Nr,{prefixCls:er,hasFeedback:Kt.hasFeedback,validateStatus:Kt.validateStatus,meta:Zr,errors:dn,warnings:Jr,noStyle:!0},un):ve.createElement(Mn,Object.assign({key:"row"},Kt,{className:x()(Ot,lr),prefixCls:er,fieldId:mn,isRequired:yn,errors:dn,warnings:Jr,meta:Zr,onSubItemMetaChange:cn}),un)}if(!Yt&&!mr&&!Et)return dr(fn(qt));let On={};return typeof Ar=="string"?On.label=Ar:xt&&(On.label=String(xt)),Lr&&(On=Object.assign(Object.assign({},On),Lr)),dr(ve.createElement(Pe.Field,Object.assign({},Kt,{messageVariables:On,trigger:Er,validateTrigger:Lt,onMetaChange:nn}),(un,mn,yn)=>{const en=nt(xt).length&&mn?mn.name:[],Ln=ct(en,Xt),Xn=pr!==void 0?pr:!!(nr&&nr.some(Ur=>{if(Ur&&typeof Ur=="object"&&Ur.required&&!Ur.warningOnly)return!0;if(typeof Ur=="function"){const Dn=Ur(yn);return Dn&&Dn.required&&!Dn.warningOnly}return!1})),hn=Object.assign({},un);let Kr=null;if(Array.isArray(qt)&&Yt)Kr=qt;else if(!(mr&&(!(Zt||Et)||Yt))){if(!(Et&&!mr&&!Yt))if((0,We.l$)(qt)){const Ur=Object.assign(Object.assign({},qt.props),hn);if(Ur.id||(Ur.id=Ln),Wt||dn.length>0||Jr.length>0||Kt.extra){const Pn=[];(Wt||dn.length>0)&&Pn.push(`${Ln}_help`),Kt.extra&&Pn.push(`${Ln}_extra`),Ur["aria-describedby"]=Pn.join(" ")}dn.length>0&&(Ur["aria-invalid"]="true"),Xn&&(Ur["aria-required"]="true"),(0,Ge.Yr)(qt)&&(Ur.ref=wn(en,qt)),new Set([].concat((0,Re.Z)(nt(Er)),(0,Re.Z)(nt(Lt)))).forEach(Pn=>{Ur[Pn]=function(){for(var Un,Zn,kn,zn,di,pn=arguments.length,An=new Array(pn),Yn=0;Yn<pn;Yn++)An[Yn]=arguments[Yn];(kn=hn[Pn])===null||kn===void 0||(Un=kn).call.apply(Un,[hn].concat(An)),(di=(zn=qt.props)[Pn])===null||di===void 0||(Zn=di).call.apply(Zn,[zn].concat(An))}});const bn=[Ur["aria-required"],Ur["aria-invalid"],Ur["aria-describedby"]];Kr=ve.createElement(Tn,{value:hn[Kt.valuePropName||"value"],update:qt,childProps:bn},(0,We.Tm)(qt,Ur))}else mr&&(Zt||Et)&&!Yt?Kr=qt(yn):Kr=qt}return fn(Kr,Ln,Xn)}))}const Jt=Wn;Jt.useStatus=He;var jr=Jt,Rr=function(Kt,xt){var Bt={};for(var Ot in Kt)Object.prototype.hasOwnProperty.call(Kt,Ot)&&xt.indexOf(Ot)<0&&(Bt[Ot]=Kt[Ot]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Ot=Object.getOwnPropertySymbols(Kt);Et<Ot.length;Et++)xt.indexOf(Ot[Et])<0&&Object.prototype.propertyIsEnumerable.call(Kt,Ot[Et])&&(Bt[Ot[Et]]=Kt[Ot[Et]]);return Bt},Sr=Kt=>{var{prefixCls:xt,children:Bt}=Kt,Ot=Rr(Kt,["prefixCls","children"]);const{getPrefixCls:Et}=ve.useContext(Ue.E_),zt=Et("form",xt),Zt=ve.useMemo(()=>({prefixCls:zt,status:"error"}),[zt]);return ve.createElement(Pe.List,Object.assign({},Ot),(nr,$t,pr)=>ve.createElement(ne.Rk.Provider,{value:Zt},Bt(nr.map(Ar=>Object.assign(Object.assign({},Ar),{fieldKey:Ar.key})),$t,{errors:pr.errors,warnings:pr.warnings})))};function Dr(){const{form:Kt}=(0,ve.useContext)(ne.q3);return Kt}const Or=At;Or.Item=jr,Or.List=Sr,Or.ErrorList=Ze,Or.useForm=qe,Or.useFormInstance=Dr,Or.useWatch=Pe.useWatch,Or.Provider=ne.RV,Or.create=()=>{};var Yr=Or},5871:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return _t}});var Re=ke(84105),gt=ke(87395),x=ke(92310),De=ke.n(x),ve=ke(60499),re=ke(18642),ne=ke(43749),ie=ke(72190),oe=ke(42244),se=ke(38705),me=ke(17212);function te(){return typeof BigInt=="function"}function ae(Mt){return!Mt&&Mt!==0&&!Number.isNaN(Mt)||!String(Mt).trim()}function ue(Mt){var ft=Mt.trim(),St=ft.startsWith("-");St&&(ft=ft.slice(1)),ft=ft.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ft.startsWith(".")&&(ft="0".concat(ft));var Nt=ft||"0",Ft=Nt.split("."),Ut=Ft[0]||"0",sr=Ft[1]||"0";Ut==="0"&&sr==="0"&&(St=!1);var gr=St?"-":"";return{negative:St,negativeStr:gr,trimStr:Nt,integerStr:Ut,decimalStr:sr,fullStr:"".concat(gr).concat(Nt)}}function de(Mt){var ft=String(Mt);return!Number.isNaN(Number(ft))&&ft.includes("e")}function he(Mt){var ft=String(Mt);if(de(Mt)){var St=Number(ft.slice(ft.indexOf("e-")+2)),Nt=ft.match(/\.(\d+)/);return Nt!=null&&Nt[1]&&(St+=Nt[1].length),St}return ft.includes(".")&&Se(ft)?ft.length-ft.indexOf(".")-1:0}function we(Mt){var ft=String(Mt);if(de(Mt)){if(Mt>Number.MAX_SAFE_INTEGER)return String(te()?BigInt(Mt).toString():Number.MAX_SAFE_INTEGER);if(Mt<Number.MIN_SAFE_INTEGER)return String(te()?BigInt(Mt).toString():Number.MIN_SAFE_INTEGER);ft=Mt.toFixed(he(ft))}return ue(ft).fullStr}function Se(Mt){return typeof Mt=="number"?!Number.isNaN(Mt):Mt?/^\s*-?\d+(\.\d+)?\s*$/.test(Mt)||/^\s*-?\d+\.\s*$/.test(Mt)||/^\s*-?\.\d+\s*$/.test(Mt):!1}var xe=function(){function Mt(ft){if((0,se.Z)(this,Mt),(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 St=ft;if(de(St)&&(St=Number(St)),St=typeof St=="string"?St:we(St),Se(St)){var Nt=ue(St);this.negative=Nt.negative;var Ft=Nt.trimStr.split(".");this.integer=BigInt(Ft[0]);var Ut=Ft[1]||"0";this.decimal=BigInt(Ut),this.decimalLen=Ut.length}else this.nan=!0}return(0,me.Z)(Mt,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(St){var Nt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(St,"0"));return BigInt(Nt)}},{key:"negate",value:function(){var St=new Mt(this.toString());return St.negative=!St.negative,St}},{key:"cal",value:function(St,Nt,Ft){var Ut=Math.max(this.getDecimalStr().length,St.getDecimalStr().length),sr=this.alignDecimal(Ut),gr=St.alignDecimal(Ut),wr=Nt(sr,gr).toString(),zr=Ft(Ut),Wr=ue(wr),Br=Wr.negativeStr,Nr=Wr.trimStr,on="".concat(Br).concat(Nr.padStart(zr+1,"0"));return new Mt("".concat(on.slice(0,-zr),".").concat(on.slice(-zr)))}},{key:"add",value:function(St){if(this.isInvalidate())return new Mt(St);var Nt=new Mt(St);return Nt.isInvalidate()?this:this.cal(Nt,function(Ft,Ut){return Ft+Ut},function(Ft){return Ft})}},{key:"multi",value:function(St){var Nt=new Mt(St);return this.isInvalidate()||Nt.isInvalidate()?new Mt(NaN):this.cal(Nt,function(Ft,Ut){return Ft*Ut},function(Ft){return Ft*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(St){return this.toString()===(St==null?void 0:St.toString())}},{key:"lessEquals",value:function(St){return this.add(St.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return St?this.isInvalidate()?"":ue("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Mt}(),ye=function(){function Mt(ft){if((0,se.Z)(this,Mt),(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,me.Z)(Mt,[{key:"negate",value:function(){return new Mt(-this.toNumber())}},{key:"add",value:function(St){if(this.isInvalidate())return new Mt(St);var Nt=Number(St);if(Number.isNaN(Nt))return this;var Ft=this.number+Nt;if(Ft>Number.MAX_SAFE_INTEGER)return new Mt(Number.MAX_SAFE_INTEGER);if(Ft<Number.MIN_SAFE_INTEGER)return new Mt(Number.MIN_SAFE_INTEGER);var Ut=Math.max(he(this.number),he(Nt));return new Mt(Ft.toFixed(Ut))}},{key:"multi",value:function(St){var Nt=Number(St);if(this.isInvalidate()||Number.isNaN(Nt))return new Mt(NaN);var Ft=this.number*Nt;if(Ft>Number.MAX_SAFE_INTEGER)return new Mt(Number.MAX_SAFE_INTEGER);if(Ft<Number.MIN_SAFE_INTEGER)return new Mt(Number.MIN_SAFE_INTEGER);var Ut=Math.max(he(this.number),he(Nt));return new Mt(Ft.toFixed(Ut))}},{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(St){return this.toNumber()===(St==null?void 0:St.toNumber())}},{key:"lessEquals",value:function(St){return this.add(St.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return St?this.isInvalidate()?"":we(this.number):this.origin}}]),Mt}();function Ae(Mt){return te()?new xe(Mt):new ye(Mt)}function Le(Mt,ft,St){var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Mt==="")return"";var Ft=ue(Mt),Ut=Ft.negativeStr,sr=Ft.integerStr,gr=Ft.decimalStr,wr="".concat(ft).concat(gr),zr="".concat(Ut).concat(sr);if(St>=0){var Wr=Number(gr[St]);if(Wr>=5&&!Nt){var Br=Ae(Mt).add("".concat(Ut,"0.").concat("0".repeat(St)).concat(10-Wr));return Le(Br.toString(),ft,St,Nt)}return St===0?zr:"".concat(zr).concat(ft).concat(gr.padEnd(St,"0").slice(0,St))}return wr===".0"?zr:"".concat(zr).concat(wr)}var Ce=Ae,je=ke(93681),Me=ke(34280),Oe=ke(8654),Ee=ke(59301),Ne=ke(48736);function _e(Mt,ft){var St=(0,Ee.useRef)(null);function Nt(){try{var Ut=Mt.selectionStart,sr=Mt.selectionEnd,gr=Mt.value,wr=gr.substring(0,Ut),zr=gr.substring(sr);St.current={start:Ut,end:sr,value:gr,beforeTxt:wr,afterTxt:zr}}catch(Wr){}}function Ft(){if(Mt&&St.current&&ft)try{var Ut=Mt.value,sr=St.current,gr=sr.beforeTxt,wr=sr.afterTxt,zr=sr.start,Wr=Ut.length;if(Ut.endsWith(wr))Wr=Ut.length-St.current.afterTxt.length;else if(Ut.startsWith(gr))Wr=gr.length;else{var Br=gr[zr-1],Nr=Ut.indexOf(Br,zr-1);Nr!==-1&&(Wr=Nr+1)}Mt.setSelectionRange(Wr,Wr)}catch(on){(0,Ne.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(on.message))}}return[Nt,Ft]}var Ze=ke(49658),Pe=function(){var ft=(0,Ee.useState)(!1),St=(0,ie.Z)(ft,2),Nt=St[0],Ft=St[1];return(0,Me.Z)(function(){Ft((0,Ze.Z)())},[]),Nt},Ue=Pe,Qe=ke(16089),tt=200,at=600;function lt(Mt){var ft=Mt.prefixCls,St=Mt.upNode,Nt=Mt.downNode,Ft=Mt.upDisabled,Ut=Mt.downDisabled,sr=Mt.onStep,gr=Ee.useRef(),wr=Ee.useRef([]),zr=Ee.useRef();zr.current=sr;var Wr=function(){clearTimeout(gr.current)},Br=function(Gn,Wn){Gn.preventDefault(),Wr(),zr.current(Wn);function Jt(){zr.current(Wn),gr.current=setTimeout(Jt,tt)}gr.current=setTimeout(Jt,at)};Ee.useEffect(function(){return function(){Wr(),wr.current.forEach(function(Vr){return Qe.Z.cancel(Vr)})}},[]);var Nr=Ue();if(Nr)return null;var on="".concat(ft,"-handler"),Mn=De()(on,"".concat(on,"-up"),(0,re.Z)({},"".concat(on,"-up-disabled"),Ft)),jn=De()(on,"".concat(on,"-down"),(0,re.Z)({},"".concat(on,"-down-disabled"),Ut)),an=function(){return wr.current.push((0,Qe.Z)(Wr))},Tn={unselectable:"on",role:"button",onMouseUp:an,onMouseLeave:an};return Ee.createElement("div",{className:"".concat(on,"-wrap")},Ee.createElement("span",(0,ve.Z)({},Tn,{onMouseDown:function(Gn){Br(Gn,!0)},"aria-label":"Increase Value","aria-disabled":Ft,className:Mn}),St||Ee.createElement("span",{unselectable:"on",className:"".concat(ft,"-handler-up-inner")})),Ee.createElement("span",(0,ve.Z)({},Tn,{onMouseDown:function(Gn){Br(Gn,!1)},"aria-label":"Decrease Value","aria-disabled":Ut,className:jn}),Nt||Ee.createElement("span",{unselectable:"on",className:"".concat(ft,"-handler-down-inner")})))}function Ve(Mt){var ft=typeof Mt=="number"?we(Mt):ue(Mt).fullStr,St=ft.includes(".");return St?ue(ft.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Mt+"0"}var Xe=ke(5643),nt=function(){var Mt=(0,Ee.useRef)(0),ft=function(){Qe.Z.cancel(Mt.current)};return(0,Ee.useEffect)(function(){return ft},[]),function(St){ft(),Mt.current=(0,Qe.Z)(function(){St()})}},ct=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],ot=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],et=function(ft,St){return ft||St.isEmpty()?St.toString():St.toNumber()},qe=function(ft){var St=Ce(ft);return St.isInvalidate()?null:St},it=Ee.forwardRef(function(Mt,ft){var St,Nt=Mt.prefixCls,Ft=Nt===void 0?"rc-input-number":Nt,Ut=Mt.className,sr=Mt.style,gr=Mt.min,wr=Mt.max,zr=Mt.step,Wr=zr===void 0?1:zr,Br=Mt.defaultValue,Nr=Mt.value,on=Mt.disabled,Mn=Mt.readOnly,jn=Mt.upHandler,an=Mt.downHandler,Tn=Mt.keyboard,Vr=Mt.controls,Gn=Vr===void 0?!0:Vr,Wn=Mt.classNames,Jt=Mt.stringMode,jr=Mt.parser,Rr=Mt.formatter,Tr=Mt.precision,Sr=Mt.decimalSeparator,Dr=Mt.onChange,Or=Mt.onInput,Yr=Mt.onPressEnter,Kt=Mt.onStep,xt=(0,oe.Z)(Mt,ct),Bt="".concat(Ft,"-input"),Ot=Ee.useRef(null),Et=Ee.useState(!1),zt=(0,ie.Z)(Et,2),Zt=zt[0],nr=zt[1],$t=Ee.useRef(!1),pr=Ee.useRef(!1),Ar=Ee.useRef(!1),Lr=Ee.useState(function(){return Ce(Nr!=null?Nr:Br)}),Er=(0,ie.Z)(Lr,2),tr=Er[0],br=Er[1];function Wt(Kr){Nr===void 0&&br(Kr)}var Qt=Ee.useCallback(function(Kr,Ur){if(!Ur)return Tr>=0?Tr:Math.max(he(Kr),he(Wr))},[Tr,Wr]),Xt=Ee.useCallback(function(Kr){var Ur=String(Kr);if(jr)return jr(Ur);var Dn=Ur;return Sr&&(Dn=Dn.replace(Sr,".")),Dn.replace(/[^\w.-]+/g,"")},[jr,Sr]),qt=Ee.useRef(""),mr=Ee.useCallback(function(Kr,Ur){if(Rr)return Rr(Kr,{userTyping:Ur,input:String(qt.current)});var Dn=typeof Kr=="number"?we(Kr):Kr;if(!Ur){var bn=Qt(Dn,Ur);if(Se(Dn)&&(Sr||bn>=0)){var Pn=Sr||".";Dn=Le(Dn,Pn,bn)}}return Dn},[Rr,Qt,Sr]),ar=Ee.useState(function(){var Kr=Br!=null?Br:Nr;return tr.isInvalidate()&&["string","number"].includes((0,ne.Z)(Kr))?Number.isNaN(Kr)?"":Kr:mr(tr.toString(),!1)}),xr=(0,ie.Z)(ar,2),Lt=xr[0],Yt=xr[1];qt.current=Lt;function er(Kr,Ur){Yt(mr(Kr.isInvalidate()?Kr.toString(!1):Kr.toString(!Ur),Ur))}var dr=Ee.useMemo(function(){return qe(wr)},[wr,Tr]),lr=Ee.useMemo(function(){return qe(gr)},[gr,Tr]),fr=Ee.useMemo(function(){return!dr||!tr||tr.isInvalidate()?!1:dr.lessEquals(tr)},[dr,tr]),hr=Ee.useMemo(function(){return!lr||!tr||tr.isInvalidate()?!1:tr.lessEquals(lr)},[lr,tr]),Cr=_e(Ot.current,Zt),_r=(0,ie.Z)(Cr,2),Zr=_r[0],$r=_r[1],nn=function(Ur){return dr&&!Ur.lessEquals(dr)?dr:lr&&!lr.lessEquals(Ur)?lr:null},cn=function(Ur){return!nn(Ur)},dn=function(Ur,Dn){var bn=Ur,Pn=cn(bn)||bn.isEmpty();if(!bn.isEmpty()&&!Dn&&(bn=nn(bn)||bn,Pn=!0),!Mn&&!on&&Pn){var Un=bn.toString(),Zn=Qt(Un,Dn);return Zn>=0&&(bn=Ce(Le(Un,".",Zn)),cn(bn)||(bn=Ce(Le(Un,".",Zn,!0)))),bn.equals(tr)||(Wt(bn),Dr==null||Dr(bn.isEmpty()?null:et(Jt,bn)),Nr===void 0&&er(bn,Dn)),bn}return tr},Jr=nt(),wn=function Kr(Ur){if(Zr(),qt.current=Ur,Yt(Ur),!pr.current){var Dn=Xt(Ur),bn=Ce(Dn);bn.isNaN()||dn(bn,!0)}Or==null||Or(Ur),Jr(function(){var Pn=Ur;jr||(Pn=Ur.replace(/。/g,".")),Pn!==Ur&&Kr(Pn)})},fn=function(){pr.current=!0},On=function(){pr.current=!1,wn(Ot.current.value)},un=function(Ur){wn(Ur.target.value)},mn=function(Ur){var Dn;if(!(Ur&&fr||!Ur&&hr)){$t.current=!1;var bn=Ce(Ar.current?Ve(Wr):Wr);Ur||(bn=bn.negate());var Pn=(tr||Ce(0)).add(bn.toString()),Un=dn(Pn,!1);Kt==null||Kt(et(Jt,Un),{offset:Ar.current?Ve(Wr):Wr,type:Ur?"up":"down"}),(Dn=Ot.current)===null||Dn===void 0||Dn.focus()}},yn=function(Ur){var Dn=Ce(Xt(Lt)),bn=Dn;Dn.isNaN()?bn=dn(tr,Ur):bn=dn(Dn,Ur),Nr!==void 0?er(tr,!1):bn.isNaN()||er(bn,!1)},en=function(){$t.current=!0},Ln=function(Ur){var Dn=Ur.key,bn=Ur.shiftKey;$t.current=!0,Ar.current=bn,Dn==="Enter"&&(pr.current||($t.current=!1),yn(!1),Yr==null||Yr(Ur)),Tn!==!1&&!pr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Dn)&&(mn(Dn==="Up"||Dn==="ArrowUp"),Ur.preventDefault())},Xn=function(){$t.current=!1,Ar.current=!1},hn=function(){yn(!1),nr(!1),$t.current=!1};return(0,Me.o)(function(){tr.isInvalidate()||er(tr,!1)},[Tr]),(0,Me.o)(function(){var Kr=Ce(Nr);br(Kr);var Ur=Ce(Xt(Lt));(!Kr.equals(Ur)||!$t.current||Rr)&&er(Kr,$t.current)},[Nr]),(0,Me.o)(function(){Rr&&$r()},[Lt]),Ee.createElement("div",{className:De()(Ft,Wn==null?void 0:Wn.input,Ut,(St={},(0,re.Z)(St,"".concat(Ft,"-focused"),Zt),(0,re.Z)(St,"".concat(Ft,"-disabled"),on),(0,re.Z)(St,"".concat(Ft,"-readonly"),Mn),(0,re.Z)(St,"".concat(Ft,"-not-a-number"),tr.isNaN()),(0,re.Z)(St,"".concat(Ft,"-out-of-range"),!tr.isInvalidate()&&!cn(tr)),St)),style:sr,onFocus:function(){nr(!0)},onBlur:hn,onKeyDown:Ln,onKeyUp:Xn,onCompositionStart:fn,onCompositionEnd:On,onBeforeInput:en},Gn&&Ee.createElement(lt,{prefixCls:Ft,upNode:jn,downNode:an,upDisabled:fr,downDisabled:hr,onStep:mn}),Ee.createElement("div",{className:"".concat(Bt,"-wrap")},Ee.createElement("input",(0,ve.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":gr,"aria-valuemax":wr,"aria-valuenow":tr.isInvalidate()?null:tr.toString(),step:Wr},xt,{ref:(0,Oe.sQ)(Ot,ft),className:Bt,value:Lt,onChange:un,disabled:on,readOnly:Mn}))))}),yt=Ee.forwardRef(function(Mt,ft){var St=Mt.disabled,Nt=Mt.style,Ft=Mt.prefixCls,Ut=Mt.value,sr=Mt.prefix,gr=Mt.suffix,wr=Mt.addonBefore,zr=Mt.addonAfter,Wr=Mt.classes,Br=Mt.className,Nr=Mt.classNames,on=(0,oe.Z)(Mt,ot),Mn=Ee.useRef(null),jn=function(Tn){Mn.current&&(0,Xe.nH)(Mn.current,Tn)};return Ee.createElement(je.BaseInput,{inputElement:Ee.createElement(it,(0,ve.Z)({prefixCls:Ft,disabled:St,classNames:Nr,ref:(0,Oe.sQ)(Mn,ft)},on)),className:Br,triggerFocus:jn,prefixCls:Ft,value:Ut,disabled:St,style:Nt,prefix:sr,suffix:gr,addonAfter:zr,addonBefore:wr,classes:Wr,classNames:Nr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});yt.displayName="InputNumber";var pt=yt,Dt=pt,At=ke(19080),st=ke(36355),Ge=ke(92736),We=ke(1684),le=ke(19716),fe=ke(32441),ze=ke(33234),He=ke(9937),pe=ke(17313),Ie=ke(74207),Ke=ke(83116),Ye=ke(37613);const Je=(Mt,ft)=>{let{componentCls:St,borderRadiusSM:Nt,borderRadiusLG:Ft}=Mt;const Ut=ft==="lg"?Ft:Nt;return{[`&-${ft}`]:{[`${St}-handler-wrap`]:{borderStartEndRadius:Ut,borderEndEndRadius:Ut},[`${St}-handler-up`]:{borderStartEndRadius:Ut},[`${St}-handler-down`]:{borderEndEndRadius:Ut}}}},dt=Mt=>{const{componentCls:ft,lineWidth:St,lineType:Nt,colorBorder:Ft,borderRadius:Ut,fontSizeLG:sr,controlHeightLG:gr,controlHeightSM:wr,colorError:zr,paddingInlineSM:Wr,colorTextDescription:Br,motionDurationMid:Nr,handleHoverColor:on,paddingInline:Mn,paddingBlock:jn,handleBg:an,handleActiveBg:Tn,colorTextDisabled:Vr,borderRadiusSM:Gn,borderRadiusLG:Wn,controlWidth:Jt,handleVisible:jr,handleBorderColor:Rr}=Mt;return[{[ft]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(Mt)),(0,He.ik)(Mt)),(0,He.bi)(Mt,ft)),{display:"inline-block",width:Jt,margin:0,padding:0,border:`${St}px ${Nt} ${Ft}`,borderRadius:Ut,"&-rtl":{direction:"rtl",[`${ft}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:sr,borderRadius:Wn,[`input${ft}-input`]:{height:gr-2*St}},"&-sm":{padding:0,borderRadius:Gn,[`input${ft}-input`]:{height:wr-2*St,padding:`0 ${Wr}px`}},"&:hover":Object.assign({},(0,He.pU)(Mt)),"&-focused":Object.assign({},(0,He.M1)(Mt)),"&-out-of-range":{[`${ft}-input-wrap`]:{input:{color:zr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(Mt)),(0,He.s7)(Mt)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ft}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ft}-group-addon`]:{borderRadius:Wn,fontSize:Mt.fontSizeLG}},"&-sm":{[`${ft}-group-addon`]:{borderRadius:Gn}},[`${ft}-wrapper-disabled > ${ft}-group-addon`]:Object.assign({},(0,He.Xy)(Mt))}}),[`&-disabled ${ft}-input`]:{cursor:"not-allowed"},[ft]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(Mt)),{width:"100%",padding:`${jn}px ${Mn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Ut,outline:0,transition:`all ${Nr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,He.nz)(Mt.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:Mt.handleWidth,height:"100%",background:an,borderStartStartRadius:0,borderStartEndRadius:Ut,borderEndEndRadius:Ut,borderEndStartRadius:0,opacity:jr===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Nr} linear ${Nr}`,[`${ft}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${ft}-handler-up-inner,
|
|
|
${ft}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Mt.handleFontSize}}},[`${ft}-handler`]:{height:"50%",overflow:"hidden",color:Br,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${St}px ${Nt} ${Rr}`,transition:`all ${Nr} linear`,"&:active":{background:Tn},"&:hover":{height:"60%",[`
|
|
|
${ft}-handler-up-inner,
|
|
|
${ft}-handler-down-inner
|
|
|
`]:{color:on}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,pe.Ro)()),{color:Br,transition:`all ${Nr} linear`,userSelect:"none"})},[`${ft}-handler-up`]:{borderStartEndRadius:Ut},[`${ft}-handler-down`]:{borderBlockStart:`${St}px ${Nt} ${Rr}`,borderEndEndRadius:Ut}},Je(Mt,"lg")),Je(Mt,"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:Vr}})},{[`${ft}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${ft}-handler-down`]:{borderBlockStartWidth:0}}}]},bt=Mt=>{const{componentCls:ft,paddingBlock:St,paddingInline:Nt,inputAffixPadding:Ft,controlWidth:Ut,borderRadiusLG:sr,borderRadiusSM:gr}=Mt;return{[`${ft}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,He.ik)(Mt)),(0,He.bi)(Mt,`${ft}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Ut,padding:0,paddingInlineStart:Nt,"&-lg":{borderRadius:sr},"&-sm":{borderRadius:gr},[`&:not(${ft}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,He.pU)(Mt)),{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:`${St}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:Ft},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Nt,marginInlineStart:Ft}}})}};var vt=(0,Ke.Z)("InputNumber",Mt=>{const ft=(0,Ye.TS)(Mt,(0,He.e5)(Mt));return[dt(ft),bt(ft),(0,Ie.c)(ft)]},Mt=>Object.assign(Object.assign({},(0,He.TM)(Mt)),{controlWidth:90,handleWidth:Mt.controlHeightSM-Mt.lineWidth*2,handleFontSize:Mt.fontSize/2,handleVisible:"auto",handleActiveBg:Mt.colorFillAlter,handleBg:Mt.colorBgContainer,handleHoverColor:Mt.colorPrimary,handleBorderColor:Mt.colorBorder})),It=function(Mt,ft){var St={};for(var Nt in Mt)Object.prototype.hasOwnProperty.call(Mt,Nt)&&ft.indexOf(Nt)<0&&(St[Nt]=Mt[Nt]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Nt=Object.getOwnPropertySymbols(Mt);Ft<Nt.length;Ft++)ft.indexOf(Nt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(Mt,Nt[Ft])&&(St[Nt[Ft]]=Mt[Nt[Ft]]);return St};const Vt=Ee.forwardRef((Mt,ft)=>{const{getPrefixCls:St,direction:Nt}=Ee.useContext(st.E_),Ft=Ee.useRef(null);Ee.useImperativeHandle(ft,()=>Ft.current);const{className:Ut,rootClassName:sr,size:gr,disabled:wr,prefixCls:zr,addonBefore:Wr,addonAfter:Br,prefix:Nr,bordered:on=!0,readOnly:Mn,status:jn,controls:an}=Mt,Tn=It(Mt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Vr=St("input-number",zr),[Gn,Wn]=vt(Vr),{compactSize:Jt,compactItemClassnames:jr}=(0,ze.ri)(Vr,Nt);let Rr=Ee.createElement(gt.Z,{className:`${Vr}-handler-up-inner`}),Tr=Ee.createElement(Re.Z,{className:`${Vr}-handler-down-inner`});const Sr=typeof an=="boolean"?an:void 0;typeof an=="object"&&(Rr=typeof an.upIcon=="undefined"?Rr:Ee.createElement("span",{className:`${Vr}-handler-up-inner`},an.upIcon),Tr=typeof an.downIcon=="undefined"?Tr:Ee.createElement("span",{className:`${Vr}-handler-down-inner`},an.downIcon));const{hasFeedback:Dr,status:Or,isFormItemInput:Yr,feedbackIcon:Kt}=Ee.useContext(fe.aM),xt=(0,At.F)(Or,jn),Bt=(0,le.Z)($t=>{var pr;return(pr=gr!=null?gr:Jt)!==null&&pr!==void 0?pr:$t}),Ot=Ee.useContext(We.Z),Et=wr!=null?wr:Ot,zt=De()({[`${Vr}-lg`]:Bt==="large",[`${Vr}-sm`]:Bt==="small",[`${Vr}-rtl`]:Nt==="rtl",[`${Vr}-borderless`]:!on,[`${Vr}-in-form-item`]:Yr},(0,At.Z)(Vr,xt),jr,Wn),Zt=`${Vr}-group`,nr=Ee.createElement(Dt,Object.assign({ref:Ft,disabled:Et,className:De()(Ut,sr),upHandler:Rr,downHandler:Tr,prefixCls:Vr,readOnly:Mn,controls:Sr,prefix:Nr,suffix:Dr&&Kt,addonAfter:Br&&Ee.createElement(ze.BR,null,Ee.createElement(fe.Ux,{override:!0,status:!0},Br)),addonBefore:Wr&&Ee.createElement(ze.BR,null,Ee.createElement(fe.Ux,{override:!0,status:!0},Wr)),classNames:{input:zt},classes:{affixWrapper:De()((0,At.Z)(`${Vr}-affix-wrapper`,xt,Dr),{[`${Vr}-affix-wrapper-sm`]:Bt==="small",[`${Vr}-affix-wrapper-lg`]:Bt==="large",[`${Vr}-affix-wrapper-rtl`]:Nt==="rtl",[`${Vr}-affix-wrapper-borderless`]:!on},Wn),wrapper:De()({[`${Zt}-rtl`]:Nt==="rtl",[`${Vr}-wrapper-disabled`]:Et},Wn),group:De()({[`${Vr}-group-wrapper-sm`]:Bt==="small",[`${Vr}-group-wrapper-lg`]:Bt==="large",[`${Vr}-group-wrapper-rtl`]:Nt==="rtl"},(0,At.Z)(`${Vr}-group-wrapper`,xt,Dr),Wn)}},Tn));return Gn(nr)}),kt=Vt,jt=Mt=>Ee.createElement(Ge.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ee.createElement(Vt,Object.assign({},Mt)));kt._InternalPanelDoNotUseOrYouWillBeFired=jt;var _t=kt},9432:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return xe},n:function(){return we}});var Re=ke(19248),gt=ke(92310),x=ke.n(gt),De=ke(93681),ve=ke(8654),re=ke(59301),ne=ke(19080),ie=ke(36355),oe=ke(1684),se=ke(19716),me=ke(32441),te=ke(33234),ae=ke(59412),ue=ke(9937);function de(ye){return!!(ye.prefix||ye.suffix||ye.allowClear)}var he=function(ye,Ae){var Le={};for(var Ce in ye)Object.prototype.hasOwnProperty.call(ye,Ce)&&Ae.indexOf(Ce)<0&&(Le[Ce]=ye[Ce]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ce=Object.getOwnPropertySymbols(ye);je<Ce.length;je++)Ae.indexOf(Ce[je])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ce[je])&&(Le[Ce[je]]=ye[Ce[je]]);return Le};function we(ye,Ae){if(!ye)return;ye.focus(Ae);const{cursor:Le}=Ae||{};if(Le){const Ce=ye.value.length;switch(Le){case"start":ye.setSelectionRange(0,0);break;case"end":ye.setSelectionRange(Ce,Ce);break;default:ye.setSelectionRange(0,Ce);break}}}var xe=(0,re.forwardRef)((ye,Ae)=>{var Le;const{prefixCls:Ce,bordered:je=!0,status:Me,size:Oe,disabled:Ee,onBlur:Ne,onFocus:_e,suffix:Ze,allowClear:Pe,addonAfter:Ue,addonBefore:Qe,className:tt,style:at,styles:lt,rootClassName:Ve,onChange:Xe,classNames:nt}=ye,ct=he(ye,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ot,direction:et,input:qe}=re.useContext(ie.E_),it=ot("input",Ce),yt=(0,re.useRef)(null),[pt,Dt]=(0,ue.ZP)(it),{compactSize:At,compactItemClassnames:st}=(0,te.ri)(it,et),Ge=(0,se.Z)(Vt=>{var kt;return(kt=Oe!=null?Oe:At)!==null&&kt!==void 0?kt:Vt}),We=re.useContext(oe.Z),le=Ee!=null?Ee:We,{status:fe,hasFeedback:ze,feedbackIcon:He}=(0,re.useContext)(me.aM),pe=(0,ne.F)(fe,Me),Ie=de(ye)||!!ze,Ke=(0,re.useRef)(Ie);(0,re.useEffect)(()=>{var Vt;Ie&&Ke.current,Ke.current=Ie},[Ie]);const Ye=(0,ae.Z)(yt,!0),Je=Vt=>{Ye(),Ne==null||Ne(Vt)},dt=Vt=>{Ye(),_e==null||_e(Vt)},bt=Vt=>{Ye(),Xe==null||Xe(Vt)},vt=(ze||Ze)&&re.createElement(re.Fragment,null,Ze,ze&&He);let It;return typeof Pe=="object"&&(Pe!=null&&Pe.clearIcon)?It=Pe:Pe&&(It={clearIcon:re.createElement(Re.Z,null)}),pt(re.createElement(De.default,Object.assign({ref:(0,ve.sQ)(Ae,yt),prefixCls:it,autoComplete:qe==null?void 0:qe.autoComplete},ct,{disabled:le,onBlur:Je,onFocus:dt,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),at),styles:Object.assign(Object.assign({},qe==null?void 0:qe.styles),lt),suffix:vt,allowClear:It,className:x()(tt,Ve,st,qe==null?void 0:qe.className),onChange:bt,addonAfter:Ue&&re.createElement(te.BR,null,re.createElement(me.Ux,{override:!0,status:!0},Ue)),addonBefore:Qe&&re.createElement(te.BR,null,re.createElement(me.Ux,{override:!0,status:!0},Qe)),classNames:Object.assign(Object.assign(Object.assign({},nt),qe==null?void 0:qe.classNames),{input:x()({[`${it}-sm`]:Ge==="small",[`${it}-lg`]:Ge==="large",[`${it}-rtl`]:et==="rtl",[`${it}-borderless`]:!je},!Ie&&(0,ne.Z)(it,pe),nt==null?void 0:nt.input,(Le=qe==null?void 0:qe.classNames)===null||Le===void 0?void 0:Le.input,Dt)}),classes:{affixWrapper:x()({[`${it}-affix-wrapper-sm`]:Ge==="small",[`${it}-affix-wrapper-lg`]:Ge==="large",[`${it}-affix-wrapper-rtl`]:et==="rtl",[`${it}-affix-wrapper-borderless`]:!je},(0,ne.Z)(`${it}-affix-wrapper`,pe,ze),Dt),wrapper:x()({[`${it}-group-rtl`]:et==="rtl"},Dt),group:x()({[`${it}-group-wrapper-sm`]:Ge==="small",[`${it}-group-wrapper-lg`]:Ge==="large",[`${it}-group-wrapper-rtl`]:et==="rtl",[`${it}-group-wrapper-disabled`]:le},(0,ne.Z)(`${it}-group-wrapper`,pe,ze),Dt)}})))})},1643:function(or,Ht,ke){"use strict";var Re=ke(19248),gt=ke(92310),x=ke.n(gt),De=ke(9296),ve=ke(59301),re=ke(19080),ne=ke(36355),ie=ke(1684),oe=ke(19716),se=ke(32441),me=ke(9432),te=ke(9937),ae=function(de,he){var we={};for(var Se in de)Object.prototype.hasOwnProperty.call(de,Se)&&he.indexOf(Se)<0&&(we[Se]=de[Se]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Se=Object.getOwnPropertySymbols(de);xe<Se.length;xe++)he.indexOf(Se[xe])<0&&Object.prototype.propertyIsEnumerable.call(de,Se[xe])&&(we[Se[xe]]=de[Se[xe]]);return we};const ue=(0,ve.forwardRef)((de,he)=>{const{prefixCls:we,bordered:Se=!0,size:xe,disabled:ye,status:Ae,allowClear:Le,showCount:Ce,classNames:je,rootClassName:Me,className:Oe}=de,Ee=ae(de,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ne,direction:_e}=ve.useContext(ne.E_),Ze=(0,oe.Z)(xe),Pe=ve.useContext(ie.Z),Ue=ye!=null?ye:Pe,{status:Qe,hasFeedback:tt,feedbackIcon:at}=ve.useContext(se.aM),lt=(0,re.F)(Qe,Ae),Ve=ve.useRef(null);ve.useImperativeHandle(he,()=>{var et;return{resizableTextArea:(et=Ve.current)===null||et===void 0?void 0:et.resizableTextArea,focus:qe=>{var it,yt;(0,me.n)((yt=(it=Ve.current)===null||it===void 0?void 0:it.resizableTextArea)===null||yt===void 0?void 0:yt.textArea,qe)},blur:()=>{var qe;return(qe=Ve.current)===null||qe===void 0?void 0:qe.blur()}}});const Xe=Ne("input",we);let nt;typeof Le=="object"&&(Le!=null&&Le.clearIcon)?nt=Le:Le&&(nt={clearIcon:ve.createElement(Re.Z,null)});const[ct,ot]=(0,te.ZP)(Xe);return ct(ve.createElement(De.default,Object.assign({},Ee,{disabled:Ue,allowClear:nt,className:x()(Oe,Me),classes:{affixWrapper:x()(`${Xe}-textarea-affix-wrapper`,{[`${Xe}-affix-wrapper-rtl`]:_e==="rtl",[`${Xe}-affix-wrapper-borderless`]:!Se,[`${Xe}-affix-wrapper-sm`]:Ze==="small",[`${Xe}-affix-wrapper-lg`]:Ze==="large",[`${Xe}-textarea-show-count`]:Ce},(0,re.Z)(`${Xe}-affix-wrapper`,lt),ot)},classNames:Object.assign(Object.assign({},je),{textarea:x()({[`${Xe}-borderless`]:!Se,[`${Xe}-sm`]:Ze==="small",[`${Xe}-lg`]:Ze==="large"},(0,re.Z)(Xe,lt),ot,je==null?void 0:je.textarea)}),prefixCls:Xe,suffix:tt&&ve.createElement("span",{className:`${Xe}-textarea-suffix`},at),showCount:Ce,ref:Ve})))});Ht.Z=ue},59412:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return gt}});var Re=ke(59301);function gt(x,De){const ve=(0,Re.useRef)([]),re=()=>{ve.current.push(setTimeout(()=>{var ne,ie,oe,se;!((ne=x.current)===null||ne===void 0)&&ne.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,Re.useEffect)(()=>(De&&re(),()=>ve.current.forEach(ne=>{ne&&clearTimeout(ne)})),[]),re}},92832:function(or,Ht,ke){"use strict";ke.d(Ht,{default:function(){return Ze}});var Re=ke(92310),gt=ke.n(Re),x=ke(59301),De=ke(36355),ve=ke(32441),re=ke(9937),ie=Pe=>{const{getPrefixCls:Ue,direction:Qe}=(0,x.useContext)(De.E_),{prefixCls:tt,className:at}=Pe,lt=Ue("input-group",tt),Ve=Ue("input"),[Xe,nt]=(0,re.ZP)(Ve),ct=gt()(lt,{[`${lt}-lg`]:Pe.size==="large",[`${lt}-sm`]:Pe.size==="small",[`${lt}-compact`]:Pe.compact,[`${lt}-rtl`]:Qe==="rtl"},nt,at),ot=(0,x.useContext)(ve.aM),et=(0,x.useMemo)(()=>Object.assign(Object.assign({},ot),{isFormItemInput:!1}),[ot]);return Xe(x.createElement("span",{className:ct,style:Pe.style,onMouseEnter:Pe.onMouseEnter,onMouseLeave:Pe.onMouseLeave,onFocus:Pe.onFocus,onBlur:Pe.onBlur},x.createElement(ve.aM.Provider,{value:et},Pe.children)))},oe=ke(9432),se=ke(73331),me=ke(15277),te=ke(2738),ae=ke(8654),ue=ke(59412),de=function(Pe,Ue){var Qe={};for(var tt in Pe)Object.prototype.hasOwnProperty.call(Pe,tt)&&Ue.indexOf(tt)<0&&(Qe[tt]=Pe[tt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,tt=Object.getOwnPropertySymbols(Pe);at<tt.length;at++)Ue.indexOf(tt[at])<0&&Object.prototype.propertyIsEnumerable.call(Pe,tt[at])&&(Qe[tt[at]]=Pe[tt[at]]);return Qe};const he=Pe=>Pe?x.createElement(me.Z,null):x.createElement(se.Z,null),we={click:"onClick",hover:"onMouseOver"};var xe=x.forwardRef((Pe,Ue)=>{const{visibilityToggle:Qe=!0}=Pe,tt=typeof Qe=="object"&&Qe.visible!==void 0,[at,lt]=(0,x.useState)(()=>tt?Qe.visible:!1),Ve=(0,x.useRef)(null);x.useEffect(()=>{tt&<(Qe.visible)},[tt,Qe]);const Xe=(0,ue.Z)(Ve),nt=()=>{const{disabled:le}=Pe;le||(at&&Xe(),lt(fe=>{var ze;const He=!fe;return typeof Qe=="object"&&((ze=Qe.onVisibleChange)===null||ze===void 0||ze.call(Qe,He)),He}))},ct=le=>{const{action:fe="click",iconRender:ze=he}=Pe,He=we[fe]||"",pe=ze(at),Ie={[He]:nt,className:`${le}-icon`,key:"passwordIcon",onMouseDown:Ke=>{Ke.preventDefault()},onMouseUp:Ke=>{Ke.preventDefault()}};return x.cloneElement(x.isValidElement(pe)?pe:x.createElement("span",null,pe),Ie)},{className:ot,prefixCls:et,inputPrefixCls:qe,size:it}=Pe,yt=de(Pe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:pt}=x.useContext(De.E_),Dt=pt("input",qe),At=pt("input-password",et),st=Qe&&ct(At),Ge=gt()(At,ot,{[`${At}-${it}`]:!!it}),We=Object.assign(Object.assign({},(0,te.Z)(yt,["suffix","iconRender","visibilityToggle"])),{type:at?"text":"password",className:Ge,prefixCls:Dt,suffix:st});return it&&(We.size=it),x.createElement(oe.Z,Object.assign({ref:(0,ae.sQ)(Ue,Ve)},We))}),ye=ke(47472),Ae=ke(92343),Le=ke(3113),Ce=ke(19716),je=ke(33234),Me=function(Pe,Ue){var Qe={};for(var tt in Pe)Object.prototype.hasOwnProperty.call(Pe,tt)&&Ue.indexOf(tt)<0&&(Qe[tt]=Pe[tt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,tt=Object.getOwnPropertySymbols(Pe);at<tt.length;at++)Ue.indexOf(tt[at])<0&&Object.prototype.propertyIsEnumerable.call(Pe,tt[at])&&(Qe[tt[at]]=Pe[tt[at]]);return Qe},Ee=x.forwardRef((Pe,Ue)=>{const{prefixCls:Qe,inputPrefixCls:tt,className:at,size:lt,suffix:Ve,enterButton:Xe=!1,addonAfter:nt,loading:ct,disabled:ot,onSearch:et,onChange:qe,onCompositionStart:it,onCompositionEnd:yt}=Pe,pt=Me(Pe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Dt,direction:At}=x.useContext(De.E_),st=x.useRef(!1),Ge=Dt("input-search",Qe),We=Dt("input",tt),{compactSize:le}=(0,je.ri)(Ge,At),fe=(0,Ce.Z)(jt=>{var _t;return(_t=lt!=null?lt:le)!==null&&_t!==void 0?_t:jt}),ze=x.useRef(null),He=jt=>{jt&&jt.target&&jt.type==="click"&&et&&et(jt.target.value,jt,{source:"clear"}),qe&&qe(jt)},pe=jt=>{var _t;document.activeElement===((_t=ze.current)===null||_t===void 0?void 0:_t.input)&&jt.preventDefault()},Ie=jt=>{var _t,Mt;et&&et((Mt=(_t=ze.current)===null||_t===void 0?void 0:_t.input)===null||Mt===void 0?void 0:Mt.value,jt,{source:"input"})},Ke=jt=>{st.current||ct||Ie(jt)},Ye=typeof Xe=="boolean"?x.createElement(ye.Z,null):null,Je=`${Ge}-button`;let dt;const bt=Xe||{},vt=bt.type&&bt.type.__ANT_BUTTON===!0;vt||bt.type==="button"?dt=(0,Ae.Tm)(bt,Object.assign({onMouseDown:pe,onClick:jt=>{var _t,Mt;(Mt=(_t=bt==null?void 0:bt.props)===null||_t===void 0?void 0:_t.onClick)===null||Mt===void 0||Mt.call(_t,jt),Ie(jt)},key:"enterButton"},vt?{className:Je,size:fe}:{})):dt=x.createElement(Le.ZP,{className:Je,type:Xe?"primary":void 0,size:fe,disabled:ot,key:"enterButton",onMouseDown:pe,onClick:Ie,loading:ct,icon:Ye},Xe),nt&&(dt=[dt,(0,Ae.Tm)(nt,{key:"addonAfter"})]);const It=gt()(Ge,{[`${Ge}-rtl`]:At==="rtl",[`${Ge}-${fe}`]:!!fe,[`${Ge}-with-button`]:!!Xe},at),Vt=jt=>{st.current=!0,it==null||it(jt)},kt=jt=>{st.current=!1,yt==null||yt(jt)};return x.createElement(oe.Z,Object.assign({ref:(0,ae.sQ)(ze,Ue),onPressEnter:Ke},pt,{size:fe,onCompositionStart:Vt,onCompositionEnd:kt,prefixCls:We,addonAfter:dt,suffix:Ve,onChange:He,className:It,disabled:ot}))}),Ne=ke(1643);const _e=oe.Z;_e.Group=ie,_e.Search=Ee,_e.TextArea=Ne.Z,_e.Password=xe;var Ze=_e},9937:function(or,Ht,ke){"use strict";ke.d(Ht,{M1:function(){return ne},TM:function(){return Ae},Xy:function(){return ie},bi:function(){return me},e5:function(){return ye},ik:function(){return te},nz:function(){return ve},pU:function(){return re},s7:function(){return ae},x0:function(){return se}});var Re=ke(17313),gt=ke(74207),x=ke(37613),De=ke(83116);const ve=Le=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Le,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),re=Le=>({borderColor:Le.hoverBorderColor}),ne=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:je,lineHeightLG:Me,borderRadiusLG:Oe,paddingInlineLG:Ee}=Le;return{padding:`${Ce}px ${Ee}px`,fontSize:je,lineHeight:Me,borderRadius:Oe}},se=Le=>({padding:`${Le.paddingBlockSM}px ${Le.paddingInlineSM}px`,borderRadius:Le.borderRadiusSM}),me=(Le,Ce)=>{const{componentCls:je,colorError:Me,colorWarning:Oe,errorActiveShadow:Ee,warningActiveShadow:Ne,colorErrorBorderHover:_e,colorWarningBorderHover:Ze}=Le;return{[`&-status-error:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:Me,"&:hover":{borderColor:_e},"&:focus, &-focused":Object.assign({},ne((0,x.TS)(Le,{activeBorderColor:Me,activeShadow:Ee}))),[`${je}-prefix, ${je}-suffix`]:{color:Me}},[`&-status-warning:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:Oe,"&:hover":{borderColor:Ze},"&:focus, &-focused":Object.assign({},ne((0,x.TS)(Le,{activeBorderColor:Oe,activeShadow:Ne}))),[`${je}-prefix, ${je}-suffix`]:{color:Oe}}}},te=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}`},ve(Le.colorTextPlaceholder)),{"&:hover":Object.assign({},re(Le)),"&:focus, &-focused":Object.assign({},ne(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:je}=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 ${je}-select-single ${je}-select-selector`]:{height:Le.controlHeightLG},[`&-sm ${je}-select-single ${je}-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,[`${je}-select`]:{margin:`-${Le.paddingBlock+1}px -${Le.paddingInline}px`,[`&${je}-select-single:not(${je}-select-customize-input)`]:{[`${je}-select-selector`]:{backgroundColor:"inherit",border:`${Le.lineWidth}px ${Le.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${je}-select-selector`]:{color:Le.colorPrimary}}},[`${je}-cascader-picker`]:{margin:`-9px -${Le.paddingInline}px`,backgroundColor:"transparent",[`${je}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Ce}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Ce}-search-with-button &`]:{zIndex:0}}},[`> ${Ce}:first-child, ${Ce}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${je}-select ${je}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}-affix-wrapper`]:{[`&:not(:first-child) ${Ce}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Ce}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}:last-child, ${Ce}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${je}-select ${je}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Ce}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ce}-search &`]:{borderStartStartRadius: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,Re.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,
|
|
|
& > ${je}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Le.lineWidth,borderInlineEndWidth:Le.lineWidth},[`${Ce}`]:{float:"none"},[`& > ${je}-select > ${je}-select-selector,
|
|
|
& > ${je}-select-auto-complete ${Ce},
|
|
|
& > ${je}-cascader-picker ${Ce},
|
|
|
& > ${Ce}-group-wrapper ${Ce}`]:{borderInlineEndWidth:Le.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${je}-select-focused`]:{zIndex:1},[`& > ${je}-select > ${je}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${je}-select:first-child > ${je}-select-selector,
|
|
|
& > ${je}-select-auto-complete:first-child ${Ce},
|
|
|
& > ${je}-cascader-picker:first-child ${Ce}`]:{borderStartStartRadius:Le.borderRadius,borderEndStartRadius:Le.borderRadius},[`& > *:last-child,
|
|
|
& > ${je}-select:last-child > ${je}-select-selector,
|
|
|
& > ${je}-cascader-picker:last-child ${Ce},
|
|
|
& > ${je}-cascader-picker-focused:last-child ${Ce}`]:{borderInlineEndWidth:Le.lineWidth,borderStartEndRadius:Le.borderRadius,borderEndEndRadius:Le.borderRadius},[`& > ${je}-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:je,lineWidth:Me}=Le,Ee=(je-Me*2-16)/2;return{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(Le)),te(Le)),me(Le,Ce)),{'&[type="color"]':{height:Le.controlHeight,[`&${Ce}-lg`]:{height:Le.controlHeightLG},[`&${Ce}-sm`]:{height:je,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:je,colorTextDescription:Me,motionDurationSlow:Oe,colorIcon:Ee,colorIconHover:Ne,iconCls:_e}=Le;return{[`${Ce}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},te(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:Me},"&-show-count-has-suffix":{marginInlineEnd:Le.paddingXXS},"&-prefix":{marginInlineEnd:je},"&-suffix":{marginInlineStart:je}}}),de(Le)),{[`${_e}${Ce}-password-icon`]:{color:Ee,cursor:"pointer",transition:`all ${Oe}`,"&:hover":{color:Ne}}}),me(Le,`${Ce}-affix-wrapper`))}},we=Le=>{const{componentCls:Ce,colorError:je,colorWarning:Me,borderRadiusLG:Oe,borderRadiusSM:Ee}=Le;return{[`${Ce}-group`]:Object.assign(Object.assign(Object.assign({},(0,Re.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:Oe,fontSize:Le.fontSizeLG}},"&-sm":{[`${Ce}-group-addon`]:{borderRadius:Ee}},"&-status-error":{[`${Ce}-group-addon`]:{color:je,borderColor:je}},"&-status-warning":{[`${Ce}-group-addon`]:{color:Me,borderColor:Me}},"&-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:je}=Le,Me=`${Ce}-search`;return{[Me]:{[`${Ce}`]:{"&:hover, &:focus":{borderColor:Le.colorPrimaryHover,[`+ ${Ce}-group-addon ${Me}-button:not(${je}-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,[`${Me}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Le.borderRadius,borderEndEndRadius:Le.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Me}-button:not(${je}-btn-primary)`]:{color:Le.colorTextDescription,"&:hover":{color:Le.colorPrimaryHover},"&:active":{color:Le.colorPrimaryActive},[`&${je}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Me}-button`]:{height:Le.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Me}-button`]:{height:Le.controlHeightLG},[`&-small ${Me}-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}}}}},xe=Le=>{const{componentCls:Ce,paddingLG:je}=Le,Me=`${Ce}-textarea`;return{[Me]:{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:je}},[`&-affix-wrapper${Me}-has-feedback`]:{[`${Ce}`]:{paddingInlineEnd:je}},[`&-affix-wrapper${Ce}-affix-wrapper`]:{padding:0,[`> textarea${Ce}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Ce}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ce}-clear-icon`]:{position:"absolute",insetInlineEnd:Le.paddingXS,insetBlockStart:Le.paddingXS},[`${Me}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Le.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ye(Le){return(0,x.TS)(Le,{inputAffixPadding:Le.paddingXXS})}const Ae=Le=>{const{controlHeight:Ce,fontSize:je,lineHeight:Me,lineWidth:Oe,controlHeightSM:Ee,controlHeightLG:Ne,fontSizeLG:_e,lineHeightLG:Ze,paddingSM:Pe,controlPaddingHorizontalSM:Ue,controlPaddingHorizontal:Qe,colorFillAlter:tt,colorPrimaryHover:at,controlOutlineWidth:lt,controlOutline:Ve,colorErrorOutline:Xe,colorWarningOutline:nt}=Le;return{paddingBlock:Math.max(Math.round((Ce-je*Me)/2*10)/10-Oe,3),paddingBlockSM:Math.max(Math.round((Ee-je*Me)/2*10)/10-Oe,0),paddingBlockLG:Math.ceil((Ne-_e*Ze)/2*10)/10-Oe,paddingInline:Pe-Oe,paddingInlineSM:Ue-Oe,paddingInlineLG:Qe-Oe,addonBg:tt,activeBorderColor:at,hoverBorderColor:at,activeShadow:`0 0 0 ${lt}px ${Ve}`,errorActiveShadow:`0 0 0 ${lt}px ${Xe}`,warningActiveShadow:`0 0 0 ${lt}px ${nt}`}};Ht.ZP=(0,De.Z)("Input",Le=>{const Ce=(0,x.TS)(Le,ye(Le));return[ue(Ce),xe(Ce),he(Ce),we(Ce),Se(Ce),(0,gt.c)(Ce)]},Ae)},45818:function(or,Ht,ke){"use strict";ke.d(Ht,{D:function(){return ye},Z:function(){return Ce}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(Me,Oe){return gt.createElement(ve.Z,(0,Re.Z)({},Me,{ref:Oe,icon:De}))},ne=gt.forwardRef(re),ie=ne,oe=ke(33853),se=ke(38819),me=ke(92310),te=ke.n(me),ae=ke(2738),de=je=>!isNaN(parseFloat(je))&&isFinite(je),he=ke(36355),we=ke(84966),Se=function(je,Me){var Oe={};for(var Ee in je)Object.prototype.hasOwnProperty.call(je,Ee)&&Me.indexOf(Ee)<0&&(Oe[Ee]=je[Ee]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ee=Object.getOwnPropertySymbols(je);Ne<Ee.length;Ne++)Me.indexOf(Ee[Ne])<0&&Object.prototype.propertyIsEnumerable.call(je,Ee[Ne])&&(Oe[Ee[Ne]]=je[Ee[Ne]]);return Oe};const xe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ye=gt.createContext({}),Ae=(()=>{let je=0;return function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return je+=1,`${Me}${je}`}})();var Ce=gt.forwardRef((je,Me)=>{const{prefixCls:Oe,className:Ee,trigger:Ne,children:_e,defaultCollapsed:Ze=!1,theme:Pe="dark",style:Ue={},collapsible:Qe=!1,reverseArrow:tt=!1,width:at=200,collapsedWidth:lt=80,zeroWidthTriggerStyle:Ve,breakpoint:Xe,onCollapse:nt,onBreakpoint:ct}=je,ot=Se(je,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:et}=(0,gt.useContext)(we.Gs),[qe,it]=(0,gt.useState)("collapsed"in je?je.collapsed:Ze),[yt,pt]=(0,gt.useState)(!1);(0,gt.useEffect)(()=>{"collapsed"in je&&it(je.collapsed)},[je.collapsed]);const Dt=(fe,ze)=>{"collapsed"in je||it(fe),nt==null||nt(fe,ze)},At=(0,gt.useRef)();At.current=fe=>{pt(fe.matches),ct==null||ct(fe.matches),qe!==fe.matches&&Dt(fe.matches,"responsive")},(0,gt.useEffect)(()=>{function fe(He){return At.current(He)}let ze;if(typeof window!="undefined"){const{matchMedia:He}=window;if(He&&Xe&&Xe in xe){ze=He(`(max-width: ${xe[Xe]})`);try{ze.addEventListener("change",fe)}catch(pe){ze.addListener(fe)}fe(ze)}}return()=>{try{ze==null||ze.removeEventListener("change",fe)}catch(He){ze==null||ze.removeListener(fe)}}},[Xe]),(0,gt.useEffect)(()=>{const fe=Ae("ant-sider-");return et.addSider(fe),()=>et.removeSider(fe)},[]);const st=()=>{Dt(!qe,"clickTrigger")},{getPrefixCls:Ge}=(0,gt.useContext)(he.E_),We=()=>{const fe=Ge("layout-sider",Oe),ze=(0,ae.Z)(ot,["collapsed"]),He=qe?lt:at,pe=de(He)?`${He}px`:String(He),Ie=parseFloat(String(lt||0))===0?gt.createElement("span",{onClick:st,className:te()(`${fe}-zero-width-trigger`,`${fe}-zero-width-trigger-${tt?"right":"left"}`),style:Ve},Ne||gt.createElement(ie,null)):null,Je={expanded:tt?gt.createElement(se.Z,null):gt.createElement(oe.Z,null),collapsed:tt?gt.createElement(oe.Z,null):gt.createElement(se.Z,null)}[qe?"collapsed":"expanded"],dt=Ne!==null?Ie||gt.createElement("div",{className:`${fe}-trigger`,onClick:st,style:{width:pe}},Ne||Je):null,bt=Object.assign(Object.assign({},Ue),{flex:`0 0 ${pe}`,maxWidth:pe,minWidth:pe,width:pe}),vt=te()(fe,`${fe}-${Pe}`,{[`${fe}-collapsed`]:!!qe,[`${fe}-has-trigger`]:Qe&&Ne!==null&&!Ie,[`${fe}-below`]:!!yt,[`${fe}-zero-width`]:parseFloat(pe)===0},Ee);return gt.createElement("aside",Object.assign({className:vt},ze,{style:bt,ref:Me}),gt.createElement("div",{className:`${fe}-children`},_e),Qe||yt&&Ie?dt:null)},le=gt.useMemo(()=>({siderCollapsed:qe}),[qe]);return gt.createElement(ye.Provider,{value:le},We())})},84966:function(or,Ht,ke){"use strict";ke.d(Ht,{VY:function(){return ye},$_:function(){return xe},h4:function(){return Se},Gs:function(){return ae},ZP:function(){return Ae}});var Re=ke(77654),gt=ke(92310),x=ke.n(gt),De=ke(2738),ve=ke(59301),re=ke(36355),ne=ke(83116),oe=Le=>{const{componentCls:Ce,bodyBg:je,lightSiderBg:Me,lightTriggerBg:Oe,lightTriggerColor:Ee}=Le;return{[`${Ce}-sider-light`]:{background:Me,[`${Ce}-sider-trigger`]:{color:Ee,background:Oe},[`${Ce}-sider-zero-width-trigger`]:{color:Ee,background:Oe,border:`1px solid ${je}`,borderInlineStart:0}}}};const se=Le=>{const{antCls:Ce,componentCls:je,colorText:Me,triggerColor:Oe,footerBg:Ee,triggerBg:Ne,headerHeight:_e,headerPadding:Ze,headerColor:Pe,footerPadding:Ue,triggerHeight:Qe,zeroTriggerHeight:tt,zeroTriggerWidth:at,motionDurationMid:lt,motionDurationSlow:Ve,fontSize:Xe,borderRadius:nt,bodyBg:ct,headerBg:ot,siderBg:et}=Le;return{[je]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ct,"&, *":{boxSizing:"border-box"},[`&${je}-has-sider`]:{flexDirection:"row",[`> ${je}, > ${je}-content`]:{width:0}},[`${je}-header, &${je}-footer`]:{flex:"0 0 auto"},[`${je}-sider`]:{position:"relative",minWidth:0,background:et,transition:`all ${lt}, 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:Oe,lineHeight:`${Qe}px`,textAlign:"center",background:Ne,cursor:"pointer",transition:`all ${lt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:_e,insetInlineEnd:-at,zIndex:1,width:at,height:tt,color:Oe,fontSize:Le.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:et,borderStartStartRadius:0,borderStartEndRadius:nt,borderEndEndRadius:nt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ve} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ve}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-at,borderStartStartRadius:nt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:nt}}}}},oe(Le)),{"&-rtl":{direction:"rtl"}}),[`${je}-header`]:{height:_e,padding:Ze,color:Pe,lineHeight:`${_e}px`,background:ot,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${je}-footer`]:{padding:Ue,color:Me,fontSize:Xe,background:Ee},[`${je}-content`]:{flex:"auto",minHeight:0}}};var me=(0,ne.Z)("Layout",Le=>[se(Le)],Le=>{const{colorBgLayout:Ce,controlHeight:je,controlHeightLG:Me,colorText:Oe,controlHeightSM:Ee,marginXXS:Ne,colorTextLightSolid:_e,colorBgContainer:Ze}=Le,Pe=Me*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:je*2,headerPadding:`0 ${Pe}px`,headerColor:Oe,footerPadding:`${Ee}px ${Pe}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:Me+Ne*2,triggerBg:"#002140",triggerColor:_e,zeroTriggerWidth:Me,zeroTriggerHeight:Me,lightSiderBg:Ze,lightTriggerBg:Ze,lightTriggerColor:Oe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),te=function(Le,Ce){var je={};for(var Me in Le)Object.prototype.hasOwnProperty.call(Le,Me)&&Ce.indexOf(Me)<0&&(je[Me]=Le[Me]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Me=Object.getOwnPropertySymbols(Le);Oe<Me.length;Oe++)Ce.indexOf(Me[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Le,Me[Oe])&&(je[Me[Oe]]=Le[Me[Oe]]);return je};const ae=ve.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ue(Le){let{suffixCls:Ce,tagName:je,displayName:Me}=Le;return Oe=>ve.forwardRef((Ne,_e)=>ve.createElement(Oe,Object.assign({ref:_e,suffixCls:Ce,tagName:je},Ne)))}const de=ve.forwardRef((Le,Ce)=>{const{prefixCls:je,suffixCls:Me,className:Oe,tagName:Ee}=Le,Ne=te(Le,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:_e}=ve.useContext(re.E_),Ze=_e("layout",je),[Pe,Ue]=me(Ze),Qe=Me?`${Ze}-${Me}`:Ze;return Pe(ve.createElement(Ee,Object.assign({className:x()(je||Qe,Oe,Ue),ref:Ce},Ne)))}),he=ve.forwardRef((Le,Ce)=>{const{direction:je}=ve.useContext(re.E_),[Me,Oe]=ve.useState([]),{prefixCls:Ee,className:Ne,rootClassName:_e,children:Ze,hasSider:Pe,tagName:Ue,style:Qe}=Le,tt=te(Le,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),at=(0,De.Z)(tt,["suffixCls"]),{getPrefixCls:lt,layout:Ve}=ve.useContext(re.E_),Xe=lt("layout",Ee),[nt,ct]=me(Xe),ot=x()(Xe,{[`${Xe}-has-sider`]:typeof Pe=="boolean"?Pe:Me.length>0,[`${Xe}-rtl`]:je==="rtl"},Ve==null?void 0:Ve.className,Ne,_e,ct),et=ve.useMemo(()=>({siderHook:{addSider:qe=>{Oe(it=>[].concat((0,Re.Z)(it),[qe]))},removeSider:qe=>{Oe(it=>it.filter(yt=>yt!==qe))}}}),[]);return nt(ve.createElement(ae.Provider,{value:et},ve.createElement(Ue,Object.assign({ref:Ce,className:ot,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),Qe)},at),Ze)))}),we=ue({tagName:"div",displayName:"Layout"})(he),Se=ue({suffixCls:"header",tagName:"header",displayName:"Header"})(de),xe=ue({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(de),ye=ue({suffixCls:"content",tagName:"main",displayName:"Content"})(de);var Ae=we},40875:function(or,Ht,ke){"use strict";ke.d(Ht,{J:function(){return re}});var Re=ke(59301),gt=ke(33234),x=ke(70425),De=function(ne,ie){var oe={};for(var se in ne)Object.prototype.hasOwnProperty.call(ne,se)&&ie.indexOf(se)<0&&(oe[se]=ne[se]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,se=Object.getOwnPropertySymbols(ne);me<se.length;me++)ie.indexOf(se[me])<0&&Object.prototype.propertyIsEnumerable.call(ne,se[me])&&(oe[se[me]]=ne[se[me]]);return oe};const ve=Re.createContext(null),re=Re.forwardRef((ne,ie)=>{const{children:oe}=ne,se=De(ne,["children"]),me=Re.useContext(ve),te=Re.useMemo(()=>Object.assign(Object.assign({},me),se),[me,se.prefixCls,se.mode,se.selectable]);return Re.createElement(ve.Provider,{value:te},Re.createElement(gt.BR,null,(0,x.supportNodeRef)(oe)?Re.cloneElement(oe,{ref:ie}):oe))});Ht.Z=ve},20834:function(or,Ht,ke){"use strict";ke.d(Ht,{default:function(){return le}});var Re=ke(15285),gt=ke(59301),x=ke(45818),De=ke(92310),ve=ke.n(De),re=ke(36355),ne=function(fe,ze){var He={};for(var pe in fe)Object.prototype.hasOwnProperty.call(fe,pe)&&ze.indexOf(pe)<0&&(He[pe]=fe[pe]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,pe=Object.getOwnPropertySymbols(fe);Ie<pe.length;Ie++)ze.indexOf(pe[Ie])<0&&Object.prototype.propertyIsEnumerable.call(fe,pe[Ie])&&(He[pe[Ie]]=fe[pe[Ie]]);return He},oe=fe=>{const{prefixCls:ze,className:He,dashed:pe}=fe,Ie=ne(fe,["prefixCls","className","dashed"]),{getPrefixCls:Ke}=gt.useContext(re.E_),Ye=Ke("menu",ze),Je=ve()({[`${Ye}-item-divider-dashed`]:!!pe},He);return gt.createElement(Re.iz,Object.assign({className:Je},Ie))},se=ke(11592),me=ke(2738),te=ke(6848),ae=ke(92343),de=(0,gt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),we=fe=>{var ze;const{className:He,children:pe,icon:Ie,title:Ke,danger:Ye}=fe,{prefixCls:Je,firstLevel:dt,direction:bt,disableMenuItemTitleTooltip:vt,inlineCollapsed:It}=gt.useContext(de),Vt=St=>{const Nt=gt.createElement("span",{className:`${Je}-title-content`},pe);return(!Ie||(0,ae.l$)(pe)&&pe.type==="span")&&pe&&St&&dt&&typeof pe=="string"?gt.createElement("div",{className:`${Je}-inline-collapsed-noicon`},pe.charAt(0)):Nt},{siderCollapsed:kt}=gt.useContext(x.D);let jt=Ke;typeof Ke=="undefined"?jt=dt?pe:"":Ke===!1&&(jt="");const _t={title:jt};!kt&&!It&&(_t.title=null,_t.open=!1);const Mt=(0,se.Z)(pe).length;let ft=gt.createElement(Re.ck,Object.assign({},(0,me.Z)(fe,["title","icon","danger"]),{className:ve()({[`${Je}-item-danger`]:Ye,[`${Je}-item-only-child`]:(Ie?Mt+1:Mt)===1},He),title:typeof Ke=="string"?Ke:void 0}),(0,ae.Tm)(Ie,{className:ve()((0,ae.l$)(Ie)?(ze=Ie.props)===null||ze===void 0?void 0:ze.className:"",`${Je}-item-icon`)}),Vt(It));return vt||(ft=gt.createElement(te.Z,Object.assign({},_t,{placement:bt==="rtl"?"left":"right",overlayClassName:`${Je}-inline-collapsed-tooltip`}),ft)),ft},xe=fe=>{var ze;const{popupClassName:He,icon:pe,title:Ie,theme:Ke}=fe,Ye=gt.useContext(de),{prefixCls:Je,inlineCollapsed:dt,theme:bt}=Ye,vt=(0,Re.Xl)();let It;if(!pe)It=dt&&!vt.length&&Ie&&typeof Ie=="string"?gt.createElement("div",{className:`${Je}-inline-collapsed-noicon`},Ie.charAt(0)):gt.createElement("span",{className:`${Je}-title-content`},Ie);else{const kt=(0,ae.l$)(Ie)&&Ie.type==="span";It=gt.createElement(gt.Fragment,null,(0,ae.Tm)(pe,{className:ve()((0,ae.l$)(pe)?(ze=pe.props)===null||ze===void 0?void 0:ze.className:"",`${Je}-item-icon`)}),kt?Ie:gt.createElement("span",{className:`${Je}-title-content`},Ie))}const Vt=gt.useMemo(()=>Object.assign(Object.assign({},Ye),{firstLevel:!1}),[Ye]);return gt.createElement(de.Provider,{value:Vt},gt.createElement(Re.Wd,Object.assign({},(0,me.Z)(fe,["icon"]),{title:It,popupClassName:ve()(Je,He,`${Je}-${Ke||bt}`)})))},ye=ke(18785),Ae=ke(70425),Le=ke(62892),Ce=ke(40875),je=function(fe,ze){var He={};for(var pe in fe)Object.prototype.hasOwnProperty.call(fe,pe)&&ze.indexOf(pe)<0&&(He[pe]=fe[pe]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,pe=Object.getOwnPropertySymbols(fe);Ie<pe.length;Ie++)ze.indexOf(pe[Ie])<0&&Object.prototype.propertyIsEnumerable.call(fe,pe[Ie])&&(He[pe[Ie]]=fe[pe[Ie]]);return He};function Me(fe){return(fe||[]).map((ze,He)=>{if(ze&&typeof ze=="object"){const pe=ze,{label:Ie,children:Ke,key:Ye,type:Je}=pe,dt=je(pe,["label","children","key","type"]),bt=Ye!=null?Ye:`tmp-${He}`;return Ke||Je==="group"?Je==="group"?gt.createElement(Re.BW,Object.assign({key:bt},dt,{title:Ie}),Me(Ke)):gt.createElement(xe,Object.assign({key:bt},dt,{title:Ie}),Me(Ke)):Je==="divider"?gt.createElement(oe,Object.assign({key:bt},dt)):gt.createElement(we,Object.assign({key:bt},dt),Ie)}return null}).filter(ze=>ze)}function Oe(fe){return gt.useMemo(()=>fe&&Me(fe),[fe])}var Ee=ke(64993),Ne=ke(17313),_e=ke(8378),Ze=ke(13826),Pe=ke(29878),Ue=ke(83116),Qe=ke(37613),at=fe=>{const{componentCls:ze,motionDurationSlow:He,horizontalLineHeight:pe,colorSplit:Ie,lineWidth:Ke,lineType:Ye,itemPaddingInline:Je}=fe;return{[`${ze}-horizontal`]:{lineHeight:pe,border:0,borderBottom:`${Ke}px ${Ye} ${Ie}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ze}-item, ${ze}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Je},[`> ${ze}-item:hover,
|
|
|
> ${ze}-item-active,
|
|
|
> ${ze}-submenu ${ze}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ze}-item, ${ze}-submenu-title`]:{transition:[`border-color ${He}`,`background ${He}`].join(",")},[`${ze}-submenu-arrow`]:{display:"none"}}}},Ve=fe=>{let{componentCls:ze,menuArrowOffset:He}=fe;return{[`${ze}-rtl`]:{direction:"rtl"},[`${ze}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ze}-rtl${ze}-vertical,
|
|
|
${ze}-submenu-rtl ${ze}-vertical`]:{[`${ze}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${He})`},"&::after":{transform:`rotate(45deg) translateY(${He})`}}}}};const Xe=fe=>Object.assign({},(0,Ne.oN)(fe));var ct=(fe,ze)=>{const{componentCls:He,itemColor:pe,itemSelectedColor:Ie,groupTitleColor:Ke,itemBg:Ye,subMenuItemBg:Je,itemSelectedBg:dt,activeBarHeight:bt,activeBarWidth:vt,activeBarBorderWidth:It,motionDurationSlow:Vt,motionEaseInOut:kt,motionEaseOut:jt,itemPaddingInline:_t,motionDurationMid:Mt,itemHoverColor:ft,lineType:St,colorSplit:Nt,itemDisabledColor:Ft,dangerItemColor:Ut,dangerItemHoverColor:sr,dangerItemSelectedColor:gr,dangerItemActiveBg:wr,dangerItemSelectedBg:zr,itemHoverBg:Wr,itemActiveBg:Br,menuSubMenuBg:Nr,horizontalItemSelectedColor:on,horizontalItemSelectedBg:Mn,horizontalItemBorderRadius:jn,horizontalItemHoverBg:an,popupBg:Tn}=fe;return{[`${He}-${ze}, ${He}-${ze} > ${He}`]:{color:pe,background:Ye,[`&${He}-root:focus-visible`]:Object.assign({},Xe(fe)),[`${He}-item-group-title`]:{color:Ke},[`${He}-submenu-selected`]:{[`> ${He}-submenu-title`]:{color:Ie}},[`${He}-item-disabled, ${He}-submenu-disabled`]:{color:`${Ft} !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:Wr},"&:active":{backgroundColor:Br}},[`${He}-submenu-title`]:{"&:hover":{backgroundColor:Wr},"&:active":{backgroundColor:Br}}},[`${He}-item-danger`]:{color:Ut,[`&${He}-item:hover`]:{[`&:not(${He}-item-selected):not(${He}-submenu-selected)`]:{color:sr}},[`&${He}-item:active`]:{background:wr}},[`${He}-item a`]:{"&, &:hover":{color:"inherit"}},[`${He}-item-selected`]:{color:Ie,[`&${He}-item-danger`]:{color:gr},"a, a:hover":{color:"inherit"}},[`& ${He}-item-selected`]:{backgroundColor:dt,[`&${He}-item-danger`]:{backgroundColor:zr}},[`${He}-item, ${He}-submenu-title`]:{[`&:not(${He}-item-disabled):focus-visible`]:Object.assign({},Xe(fe))},[`&${He}-submenu > ${He}`]:{backgroundColor:Nr},[`&${He}-popup > ${He}`]:{backgroundColor:Tn},[`&${He}-horizontal`]:Object.assign(Object.assign({},ze==="dark"?{borderBottom:0}:{}),{[`> ${He}-item, > ${He}-submenu`]:{top:It,marginTop:-It,marginBottom:0,borderRadius:jn,"&::after":{position:"absolute",insetInline:_t,bottom:0,borderBottom:`${bt}px solid transparent`,transition:`border-color ${Vt} ${kt}`,content:'""'},"&:hover, &-active, &-open":{background:an,"&::after":{borderBottomWidth:bt,borderBottomColor:on}},"&-selected":{color:on,backgroundColor:Mn,"&:hover":{backgroundColor:Mn},"&::after":{borderBottomWidth:bt,borderBottomColor:on}}}}),[`&${He}-root`]:{[`&${He}-inline, &${He}-vertical`]:{borderInlineEnd:`${It}px ${St} ${Nt}`}},[`&${He}-inline`]:{[`${He}-sub${He}-inline`]:{background:Je},[`${He}-item, ${He}-submenu-title`]:It&&vt?{width:`calc(100% + ${It}px)`}:{},[`${He}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${vt}px solid ${Ie}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Mt} ${jt}`,`opacity ${Mt} ${jt}`].join(","),content:'""'},[`&${He}-item-danger`]:{"&::after":{borderInlineEndColor:gr}}},[`${He}-selected, ${He}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Mt} ${kt}`,`opacity ${Mt} ${kt}`].join(",")}}}}}};const ot=fe=>{const{componentCls:ze,itemHeight:He,itemMarginInline:pe,padding:Ie,menuArrowSize:Ke,marginXS:Ye,itemMarginBlock:Je}=fe,dt=Ie+Ke+Ye;return{[`${ze}-item`]:{position:"relative",overflow:"hidden"},[`${ze}-item, ${ze}-submenu-title`]:{height:He,lineHeight:`${He}px`,paddingInline:Ie,overflow:"hidden",textOverflow:"ellipsis",marginInline:pe,marginBlock:Je,width:`calc(100% - ${pe*2}px)`},[`> ${ze}-item,
|
|
|
> ${ze}-submenu > ${ze}-submenu-title`]:{height:He,lineHeight:`${He}px`},[`${ze}-item-group-list ${ze}-submenu-title,
|
|
|
${ze}-submenu-title`]:{paddingInlineEnd:dt}}};var qe=fe=>{const{componentCls:ze,iconCls:He,itemHeight:pe,colorTextLightSolid:Ie,dropdownWidth:Ke,controlHeightLG:Ye,motionDurationMid:Je,motionEaseOut:dt,paddingXL:bt,itemMarginInline:vt,fontSizeLG:It,motionDurationSlow:Vt,paddingXS:kt,boxShadowSecondary:jt,collapsedWidth:_t,collapsedIconSize:Mt}=fe,ft={height:pe,lineHeight:`${pe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ze]:{"&-inline, &-vertical":Object.assign({[`&${ze}-root`]:{boxShadow:"none"}},ot(fe))},[`${ze}-submenu-popup`]:{[`${ze}-vertical`]:Object.assign(Object.assign({},ot(fe)),{boxShadow:jt})}},{[`${ze}-submenu-popup ${ze}-vertical${ze}-sub`]:{minWidth:Ke,maxHeight:`calc(100vh - ${Ye*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ze}-inline`]:{width:"100%",[`&${ze}-root`]:{[`${ze}-item, ${ze}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Vt}`,`background ${Vt}`,`padding ${Je} ${dt}`].join(","),[`> ${ze}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ze}-sub${ze}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ze}-submenu > ${ze}-submenu-title`]:ft,[`& ${ze}-item-group-title`]:{paddingInlineStart:bt}},[`${ze}-item`]:ft}},{[`${ze}-inline-collapsed`]:{width:_t,[`&${ze}-root`]:{[`${ze}-item, ${ze}-submenu ${ze}-submenu-title`]:{[`> ${ze}-inline-collapsed-noicon`]:{fontSize:It,textAlign:"center"}}},[`> ${ze}-item,
|
|
|
> ${ze}-item-group > ${ze}-item-group-list > ${ze}-item,
|
|
|
> ${ze}-item-group > ${ze}-item-group-list > ${ze}-submenu > ${ze}-submenu-title,
|
|
|
> ${ze}-submenu > ${ze}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${It/2}px - ${vt}px)`,textOverflow:"clip",[`
|
|
|
${ze}-submenu-arrow,
|
|
|
${ze}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${ze}-item-icon, ${He}`]:{margin:0,fontSize:Mt,lineHeight:`${pe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ze}-item-icon, ${He}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ze}-item-icon, ${He}`]:{display:"none"},"a, a:hover":{color:Ie}},[`${ze}-item-group-title`]:Object.assign(Object.assign({},Ne.vS),{paddingInline:kt})}}]};const it=fe=>{const{componentCls:ze,motionDurationSlow:He,motionDurationMid:pe,motionEaseInOut:Ie,motionEaseOut:Ke,iconCls:Ye,iconSize:Je,iconMarginInlineEnd:dt}=fe;return{[`${ze}-item, ${ze}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${He}`,`background ${He}`,`padding ${He} ${Ie}`].join(","),[`${ze}-item-icon, ${Ye}`]:{minWidth:Je,fontSize:Je,transition:[`font-size ${pe} ${Ke}`,`margin ${He} ${Ie}`,`color ${He}`].join(","),"+ span":{marginInlineStart:dt,opacity:1,transition:[`opacity ${He} ${Ie}`,`margin ${He}`,`color ${He}`].join(",")}},[`${ze}-item-icon`]:Object.assign({},(0,Ne.Ro)()),[`&${ze}-item-only-child`]:{[`> ${Ye}, > ${ze}-item-icon`]:{marginInlineEnd:0}}},[`${ze}-item-disabled, ${ze}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ze}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},yt=fe=>{const{componentCls:ze,motionDurationSlow:He,motionEaseInOut:pe,borderRadius:Ie,menuArrowSize:Ke,menuArrowOffset:Ye}=fe;return{[`${ze}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:fe.margin,width:Ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${He} ${pe}, opacity ${He}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ke*.6,height:Ke*.15,backgroundColor:"currentcolor",borderRadius:Ie,transition:[`background ${He} ${pe}`,`transform ${He} ${pe}`,`top ${He} ${pe}`,`color ${He} ${pe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ye})`},"&::after":{transform:`rotate(-45deg) translateY(${Ye})`}}}}},pt=fe=>{const{antCls:ze,componentCls:He,fontSize:pe,motionDurationSlow:Ie,motionDurationMid:Ke,motionEaseInOut:Ye,paddingXS:Je,padding:dt,colorSplit:bt,lineWidth:vt,zIndexPopup:It,borderRadiusLG:Vt,subMenuItemBorderRadius:kt,menuArrowSize:jt,menuArrowOffset:_t,lineType:Mt,menuPanelMaskInset:ft,groupTitleLineHeight:St,groupTitleFontSize:Nt}=fe;return[{"":{[`${He}`]:Object.assign(Object.assign({},(0,Ne.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,Ne.Wf)(fe)),(0,Ne.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:pe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ie} 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:`${Je}px ${dt}px`,fontSize:Nt,lineHeight:St,transition:`all ${Ie}`},[`&-horizontal ${He}-submenu`]:{transition:[`border-color ${Ie} ${Ye}`,`background ${Ie} ${Ye}`].join(",")},[`${He}-submenu, ${He}-submenu-inline`]:{transition:[`border-color ${Ie} ${Ye}`,`background ${Ie} ${Ye}`,`padding ${Ke} ${Ye}`].join(",")},[`${He}-submenu ${He}-sub`]:{cursor:"initial",transition:[`background ${Ie} ${Ye}`,`padding ${Ie} ${Ye}`].join(",")},[`${He}-title-content`]:{transition:`color ${Ie}`},[`${He}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${He}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:bt,borderStyle:Mt,borderWidth:0,borderTopWidth:vt,marginBlock:vt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),it(fe)),{[`${He}-item-group`]:{[`${He}-item-group-list`]:{margin:0,padding:0,[`${He}-item, ${He}-submenu-title`]:{paddingInline:`${pe*2}px ${dt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:It,borderRadius:Vt,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:Vt},it(fe)),yt(fe)),{[`${He}-item, ${He}-submenu > ${He}-submenu-title`]:{borderRadius:kt},[`${He}-submenu-title::after`]:{transition:`transform ${Ie} ${Ye}`}})}}),yt(fe)),{[`&-inline-collapsed ${He}-submenu-arrow,
|
|
|
&-inline ${He}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_t})`},"&::after":{transform:`rotate(45deg) translateX(-${_t})`}},[`${He}-submenu-open${He}-submenu-inline > ${He}-submenu-title > ${He}-submenu-arrow`]:{transform:`translateY(-${jt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${_t})`},"&::before":{transform:`rotate(45deg) translateX(${_t})`}}})},{[`${ze}-layout-header`]:{[He]:{lineHeight:"inherit"}}}]};var Dt=(fe,ze)=>(0,Ue.Z)("Menu",pe=>{if(ze===!1)return[];const{colorBgElevated:Ie,colorPrimary:Ke,colorTextLightSolid:Ye,controlHeightLG:Je,fontSize:dt,darkItemColor:bt,darkDangerItemColor:vt,darkItemBg:It,darkSubMenuItemBg:Vt,darkItemSelectedColor:kt,darkItemSelectedBg:jt,darkDangerItemSelectedBg:_t,darkItemHoverBg:Mt,darkGroupTitleColor:ft,darkItemHoverColor:St,darkItemDisabledColor:Nt,darkDangerItemHoverColor:Ft,darkDangerItemSelectedColor:Ut,darkDangerItemActiveBg:sr}=pe,gr=dt/7*5,wr=(0,Qe.TS)(pe,{menuArrowSize:gr,menuHorizontalHeight:Je*1.15,menuArrowOffset:`${gr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ie}),zr=(0,Qe.TS)(wr,{itemColor:bt,itemHoverColor:St,groupTitleColor:ft,itemSelectedColor:kt,itemBg:It,popupBg:It,subMenuItemBg:Vt,itemActiveBg:"transparent",itemSelectedBg:jt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Mt,itemDisabledColor:Nt,dangerItemColor:vt,dangerItemHoverColor:Ft,dangerItemSelectedColor:Ut,dangerItemActiveBg:sr,dangerItemSelectedBg:_t,menuSubMenuBg:Vt,horizontalItemSelectedColor:Ye,horizontalItemSelectedBg:Ke});return[pt(wr),at(wr),qe(wr),ct(wr,"light"),ct(zr,"dark"),Ve(wr),(0,_e.Z)(wr),(0,Ze.oN)(wr,"slide-up"),(0,Ze.oN)(wr,"slide-down"),(0,Pe._y)(wr,"zoom-big")]},pe=>{const{colorPrimary:Ie,colorError:Ke,colorTextDisabled:Ye,colorErrorBg:Je,colorText:dt,colorTextDescription:bt,colorBgContainer:vt,colorFillAlter:It,colorFillContent:Vt,lineWidth:kt,lineWidthBold:jt,controlItemBgActive:_t,colorBgTextHover:Mt,controlHeightLG:ft,lineHeight:St,colorBgElevated:Nt,marginXXS:Ft,padding:Ut,fontSize:sr,controlHeightSM:gr,fontSizeLG:wr,colorTextLightSolid:zr,colorErrorHover:Wr}=pe,Br=new Ee.C(zr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:pe.zIndexPopupBase+50,radiusItem:pe.borderRadiusLG,itemBorderRadius:pe.borderRadiusLG,radiusSubMenuItem:pe.borderRadiusSM,subMenuItemBorderRadius:pe.borderRadiusSM,colorItemText:dt,itemColor:dt,colorItemTextHover:dt,itemHoverColor:dt,colorItemTextHoverHorizontal:Ie,horizontalItemHoverColor:Ie,colorGroupTitle:bt,groupTitleColor:bt,colorItemTextSelected:Ie,itemSelectedColor:Ie,colorItemTextSelectedHorizontal:Ie,horizontalItemSelectedColor:Ie,colorItemBg:vt,itemBg:vt,colorItemBgHover:Mt,itemHoverBg:Mt,colorItemBgActive:Vt,itemActiveBg:_t,colorSubItemBg:It,subMenuItemBg:It,colorItemBgSelected:_t,itemSelectedBg:_t,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jt,activeBarHeight:jt,colorActiveBarBorderSize:kt,activeBarBorderWidth:kt,colorItemTextDisabled:Ye,itemDisabledColor:Ye,colorDangerItemText:Ke,dangerItemColor:Ke,colorDangerItemTextHover:Ke,dangerItemHoverColor:Ke,colorDangerItemTextSelected:Ke,dangerItemSelectedColor:Ke,colorDangerItemBgActive:Je,dangerItemActiveBg:Je,colorDangerItemBgSelected:Je,dangerItemSelectedBg:Je,itemMarginInline:pe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ft,groupTitleLineHeight:St,collapsedWidth:ft*2,popupBg:Nt,itemMarginBlock:Ft,itemPaddingInline:Ut,horizontalLineHeight:`${ft*1.15}px`,iconSize:sr,iconMarginInlineEnd:gr-sr,collapsedIconSize:wr,groupTitleFontSize:sr,darkItemDisabledColor:new Ee.C(zr).setAlpha(.25).toRgbString(),darkItemColor:Br,darkDangerItemColor:Ke,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:zr,darkItemSelectedBg:Ie,darkDangerItemSelectedBg:Ke,darkItemHoverBg:"transparent",darkGroupTitleColor:Br,darkItemHoverColor:zr,darkDangerItemHoverColor:Wr,darkDangerItemSelectedColor:zr,darkDangerItemActiveBg:Ke}},{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),At=function(fe,ze){var He={};for(var pe in fe)Object.prototype.hasOwnProperty.call(fe,pe)&&ze.indexOf(pe)<0&&(He[pe]=fe[pe]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,pe=Object.getOwnPropertySymbols(fe);Ie<pe.length;Ie++)ze.indexOf(pe[Ie])<0&&Object.prototype.propertyIsEnumerable.call(fe,pe[Ie])&&(He[pe[Ie]]=fe[pe[Ie]]);return He},Ge=(0,gt.forwardRef)((fe,ze)=>{var He,pe;const Ie=gt.useContext(Ce.Z),Ke=Ie||{},{getPrefixCls:Ye,getPopupContainer:Je,direction:dt,menu:bt}=gt.useContext(re.E_),vt=Ye(),{prefixCls:It,className:Vt,style:kt,theme:jt="light",expandIcon:_t,_internalDisableMenuItemTitleTooltip:Mt,inlineCollapsed:ft,siderCollapsed:St,items:Nt,children:Ft,rootClassName:Ut,mode:sr,selectable:gr,onClick:wr,overflowedIndicatorPopupClassName:zr}=fe,Wr=At(fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Br=(0,me.Z)(Wr,["collapsedWidth"]),Nr=Oe(Nt)||Ft;(He=Ke.validator)===null||He===void 0||He.call(Ke,{mode:sr});const on=(0,Ae.useEvent)(function(){var Tr;wr==null||wr.apply(void 0,arguments),(Tr=Ke.onClick)===null||Tr===void 0||Tr.call(Ke)}),Mn=Ke.mode||sr,jn=gr!=null?gr:Ke.selectable,an=gt.useMemo(()=>St!==void 0?St:ft,[ft,St]),Tn={horizontal:{motionName:`${vt}-slide-up`},inline:(0,Le.Z)(vt),other:{motionName:`${vt}-zoom-big`}},Vr=Ye("menu",It||Ke.prefixCls),[Gn,Wn]=Dt(Vr,!Ie),Jt=ve()(`${Vr}-${jt}`,bt==null?void 0:bt.className,Vt);let jr;if(typeof _t=="function")jr=_t;else if(_t===null||_t===!1)jr=null;else if(Ke.expandIcon===null||Ke.expandIcon===!1)jr=null;else{const Tr=_t!=null?_t:Ke.expandIcon;jr=(0,ae.Tm)(Tr,{className:ve()(`${Vr}-submenu-expand-icon`,(0,ae.l$)(Tr)?(pe=Tr.props)===null||pe===void 0?void 0:pe.className:"")})}const Rr=gt.useMemo(()=>({prefixCls:Vr,inlineCollapsed:an||!1,direction:dt,firstLevel:!0,theme:jt,mode:Mn,disableMenuItemTitleTooltip:Mt}),[Vr,an,dt,Mt,jt]);return Gn(gt.createElement(Ce.Z.Provider,{value:null},gt.createElement(de.Provider,{value:Rr},gt.createElement(Re.ZP,Object.assign({getPopupContainer:Je,overflowedIndicator:gt.createElement(ye.Z,null),overflowedIndicatorPopupClassName:ve()(Vr,`${Vr}-${jt}`,zr),mode:Mn,selectable:jn,onClick:on},Br,{inlineCollapsed:an,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),kt),className:Jt,prefixCls:Vr,direction:dt,defaultMotions:Tn,expandIcon:jr,ref:ze,rootClassName:ve()(Ut,Wn)}),Nr))))});const We=(0,gt.forwardRef)((fe,ze)=>{const He=(0,gt.useRef)(null),pe=gt.useContext(x.D);return(0,gt.useImperativeHandle)(ze,()=>({menu:He.current,focus:Ie=>{var Ke;(Ke=He.current)===null||Ke===void 0||Ke.focus(Ie)}})),gt.createElement(Ge,Object.assign({ref:He},fe,pe))});We.Item=we,We.SubMenu=xe,We.Divider=oe,We.ItemGroup=Re.BW;var le=We},14478:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Ee}});var Re=ke(96512),gt=ke(92310),x=ke.n(gt),De=ke(10228),ve=ke(18929),re=ke(2738),ne=ke(59301),ie=ke(92343),oe=ke(36355),se=ke(60324),me=ke(92806),te=ke(77578),ae=ke(3113),ue=ke(67797),de=ke(9763),he=ke(31724),we=ke(39722),Se=ke(83116);const xe=Ne=>{const{componentCls:_e,iconCls:Ze,antCls:Pe,zIndexPopup:Ue,colorText:Qe,colorWarning:tt,marginXXS:at,marginXS:lt,fontSize:Ve,fontWeightStrong:Xe,colorTextHeading:nt}=Ne;return{[_e]:{zIndex:Ue,[`&${Pe}-popover`]:{fontSize:Ve},[`${_e}-message`]:{marginBottom:lt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${_e}-message-icon ${Ze}`]:{color:tt,fontSize:Ve,lineHeight:1,marginInlineEnd:lt},[`${_e}-title`]:{fontWeight:Xe,color:nt,"&:only-child":{fontWeight:"normal"}},[`${_e}-description`]:{marginTop:at,color:Qe}},[`${_e}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:lt}}}}};var ye=(0,Se.Z)("Popconfirm",Ne=>xe(Ne),Ne=>{const{zIndexPopupBase:_e}=Ne;return{zIndexPopup:_e+60}},{resetStyle:!1}),Ae=function(Ne,_e){var Ze={};for(var Pe in Ne)Object.prototype.hasOwnProperty.call(Ne,Pe)&&_e.indexOf(Pe)<0&&(Ze[Pe]=Ne[Pe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Pe=Object.getOwnPropertySymbols(Ne);Ue<Pe.length;Ue++)_e.indexOf(Pe[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Pe[Ue])&&(Ze[Pe[Ue]]=Ne[Pe[Ue]]);return Ze};const Le=Ne=>{const{prefixCls:_e,okButtonProps:Ze,cancelButtonProps:Pe,title:Ue,description:Qe,cancelText:tt,okText:at,okType:lt="primary",icon:Ve=ne.createElement(Re.Z,null),showCancel:Xe=!0,close:nt,onConfirm:ct,onCancel:ot,onPopupClick:et}=Ne,{getPrefixCls:qe}=ne.useContext(oe.E_),[it]=(0,de.Z)("Popconfirm",he.Z.Popconfirm),yt=(0,te.Z)(Ue),pt=(0,te.Z)(Qe);return ne.createElement("div",{className:`${_e}-inner-content`,onClick:et},ne.createElement("div",{className:`${_e}-message`},Ve&&ne.createElement("span",{className:`${_e}-message-icon`},Ve),ne.createElement("div",{className:`${_e}-message-text`},yt&&ne.createElement("div",{className:x()(`${_e}-title`)},yt),pt&&ne.createElement("div",{className:`${_e}-description`},pt))),ne.createElement("div",{className:`${_e}-buttons`},Xe&&ne.createElement(ae.ZP,Object.assign({onClick:ot,size:"small"},Pe),tt!=null?tt:it==null?void 0:it.cancelText),ne.createElement(me.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,ue.n)(lt)),Ze),actionFn:ct,close:nt,prefixCls:qe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},at!=null?at:it==null?void 0:it.okText)))};var je=Ne=>{const{prefixCls:_e,placement:Ze,className:Pe,style:Ue}=Ne,Qe=Ae(Ne,["prefixCls","placement","className","style"]),{getPrefixCls:tt}=ne.useContext(oe.E_),at=tt("popconfirm",_e),[lt]=ye(at);return lt(ne.createElement(we.ZP,{placement:Ze,className:x()(at,Pe),style:Ue,content:ne.createElement(Le,Object.assign({prefixCls:at},Qe))}))},Me=function(Ne,_e){var Ze={};for(var Pe in Ne)Object.prototype.hasOwnProperty.call(Ne,Pe)&&_e.indexOf(Pe)<0&&(Ze[Pe]=Ne[Pe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Pe=Object.getOwnPropertySymbols(Ne);Ue<Pe.length;Ue++)_e.indexOf(Pe[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Pe[Ue])&&(Ze[Pe[Ue]]=Ne[Pe[Ue]]);return Ze};const Oe=ne.forwardRef((Ne,_e)=>{const{prefixCls:Ze,placement:Pe="top",trigger:Ue="click",okType:Qe="primary",icon:tt=ne.createElement(Re.Z,null),children:at,overlayClassName:lt,onOpenChange:Ve,onVisibleChange:Xe}=Ne,nt=Me(Ne,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:ct}=ne.useContext(oe.E_),[ot,et]=(0,ve.Z)(!1,{value:Ne.open,defaultValue:Ne.defaultOpen}),qe=(le,fe)=>{et(le,!0),Xe==null||Xe(le),Ve==null||Ve(le,fe)},it=le=>{qe(!1,le)},yt=le=>{var fe;return(fe=Ne.onConfirm)===null||fe===void 0?void 0:fe.call(void 0,le)},pt=le=>{var fe;qe(!1,le),(fe=Ne.onCancel)===null||fe===void 0||fe.call(void 0,le)},Dt=le=>{le.keyCode===De.Z.ESC&&ot&&qe(!1,le)},At=le=>{const{disabled:fe=!1}=Ne;fe||qe(le)},st=ct("popconfirm",Ze),Ge=x()(st,lt),[We]=ye(st);return We(ne.createElement(se.Z,Object.assign({},(0,re.Z)(nt,["title"]),{trigger:Ue,placement:Pe,onOpenChange:At,open:ot,ref:_e,overlayClassName:Ge,content:ne.createElement(Le,Object.assign({okType:Qe,icon:tt},Ne,{prefixCls:st,close:it,onConfirm:yt,onCancel:pt})),"data-popover-inject":!0}),(0,ie.Tm)(at,{onKeyDown:le=>{var fe,ze;ne.isValidElement(at)&&((ze=at==null?void 0:(fe=at.props).onKeyDown)===null||ze===void 0||ze.call(fe,le)),Dt(le)}})))});Oe._InternalPanelDoNotUseOrYouWillBeFired=je;var Ee=Oe},39722:function(or,Ht,ke){"use strict";ke.d(Ht,{t5:function(){return se}});var Re=ke(92310),gt=ke.n(Re),x=ke(55477),De=ke(59301),ve=ke(36355),re=ke(77578),ne=ke(17356),ie=function(te,ae){var ue={};for(var de in te)Object.prototype.hasOwnProperty.call(te,de)&&ae.indexOf(de)<0&&(ue[de]=te[de]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,de=Object.getOwnPropertySymbols(te);he<de.length;he++)ae.indexOf(de[he])<0&&Object.prototype.propertyIsEnumerable.call(te,de[he])&&(ue[de[he]]=te[de[he]]);return ue};const oe=(te,ae,ue)=>{if(!(!ae&&!ue))return De.createElement(De.Fragment,null,ae&&De.createElement("div",{className:`${te}-title`},(0,re.Z)(ae)),De.createElement("div",{className:`${te}-inner-content`},(0,re.Z)(ue)))},se=te=>{const{hashId:ae,prefixCls:ue,className:de,style:he,placement:we="top",title:Se,content:xe,children:ye}=te;return De.createElement("div",{className:gt()(ae,ue,`${ue}-pure`,`${ue}-placement-${we}`,de),style:he},De.createElement("div",{className:`${ue}-arrow`}),De.createElement(x.G,Object.assign({},te,{className:ae,prefixCls:ue}),ye||oe(ue,Se,xe)))},me=te=>{const{prefixCls:ae}=te,ue=ie(te,["prefixCls"]),{getPrefixCls:de}=De.useContext(ve.E_),he=de("popover",ae),[we,Se]=(0,ne.Z)(he);return we(De.createElement(se,Object.assign({},ue,{prefixCls:he,hashId:Se})))};Ht.ZP=me},60324:function(or,Ht,ke){"use strict";var Re=ke(92310),gt=ke.n(Re),x=ke(59301),De=ke(77578),ve=ke(62892),re=ke(36355),ne=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 we=0,he=Object.getOwnPropertySymbols(ae);we<he.length;we++)ue.indexOf(he[we])<0&&Object.prototype.propertyIsEnumerable.call(ae,he[we])&&(de[he[we]]=ae[he[we]]);return de};const me=ae=>{let{title:ue,content:de,prefixCls:he}=ae;return x.createElement(x.Fragment,null,ue&&x.createElement("div",{className:`${he}-title`},(0,De.Z)(ue)),x.createElement("div",{className:`${he}-inner-content`},(0,De.Z)(de)))},te=x.forwardRef((ae,ue)=>{const{prefixCls:de,title:he,content:we,overlayClassName:Se,placement:xe="top",trigger:ye="hover",mouseEnterDelay:Ae=.1,mouseLeaveDelay:Le=.1,overlayStyle:Ce={}}=ae,je=se(ae,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Me}=x.useContext(re.E_),Oe=Me("popover",de),[Ee,Ne]=(0,oe.Z)(Oe),_e=Me(),Ze=gt()(Se,Ne);return Ee(x.createElement(ne.Z,Object.assign({placement:xe,trigger:ye,mouseEnterDelay:Ae,mouseLeaveDelay:Le,overlayStyle:Ce},je,{prefixCls:Oe,overlayClassName:Ze,ref:ue,overlay:he||we?x.createElement(me,{prefixCls:Oe,title:he,content:we}):null,transitionName:(0,ve.m)(_e,"zoom-big",je.transitionName),"data-popover-inject":!0})))});te._InternalPanelDoNotUseOrYouWillBeFired=ie.ZP,Ht.Z=te},17356:function(or,Ht,ke){"use strict";var Re=ke(17313),gt=ke(29878),x=ke(19447),De=ke(33166),ve=ke(83116),re=ke(37613);const ne=se=>{const{componentCls:me,popoverColor:te,minWidth:ae,fontWeightStrong:ue,popoverPadding:de,boxShadowSecondary:he,colorTextHeading:we,borderRadiusLG:Se,zIndexPopup:xe,marginXS:ye,colorBgElevated:Ae,popoverBg:Le}=se;return[{[me]:Object.assign(Object.assign({},(0,Re.Wf)(se)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:xe,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Ae,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${me}-content`]:{position:"relative"},[`${me}-inner`]:{backgroundColor:Le,backgroundClip:"padding-box",borderRadius:Se,boxShadow:he,padding:de},[`${me}-title`]:{minWidth:ae,marginBottom:ye,color:we,fontWeight:ue},[`${me}-inner-content`]:{color:te}})},(0,x.ZP)(se,{colorBg:"var(--antd-arrow-background-color)"}),{[`${me}-pure`]:{position:"relative",maxWidth:"none",margin:se.sizePopupArrow,display:"inline-block",[`${me}-content`]:{display:"inline-block"}}}]},ie=se=>{const{componentCls:me}=se;return{[me]:De.i.map(te=>{const ae=se[`${te}6`];return{[`&${me}-${te}`]:{"--antd-arrow-background-color":ae,[`${me}-inner`]:{backgroundColor:ae},[`${me}-arrow`]:{background:"transparent"}}}})}},oe=se=>{const{componentCls:me,lineWidth:te,lineType:ae,colorSplit:ue,paddingSM:de,controlHeight:he,fontSize:we,lineHeight:Se,padding:xe}=se,ye=he-Math.round(we*Se),Ae=ye/2,Le=ye/2-te,Ce=xe;return{[me]:{[`${me}-inner`]:{padding:0},[`${me}-title`]:{margin:0,padding:`${Ae}px ${Ce}px ${Le}px`,borderBottom:`${te}px ${ae} ${ue}`},[`${me}-inner-content`]:{padding:`${de}px ${Ce}px`}}}};Ht.Z=(0,ve.Z)("Popover",se=>{const{colorBgElevated:me,colorText:te,wireframe:ae}=se,ue=(0,re.TS)(se,{popoverPadding:12,popoverBg:me,popoverColor:te});return[ne(ue),ie(ue),ae&&oe(ue),(0,gt._y)(ue,"zoom-big")]},se=>({width:177,minWidth:177,zIndexPopup:se.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Mt}});var Re=ke(59301),gt=ke(29679),x=ke(40001),De=ke(19248),ve=ke(99267),re=ke(92310),ne=ke.n(re),ie=ke(2738),oe=ke(36355),se=ke(60499),me=ke(85899),te=ke(42244),ae={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ue=function(){var St=(0,Re.useRef)([]),Nt=(0,Re.useRef)(null);return(0,Re.useEffect)(function(){var Ft=Date.now(),Ut=!1;St.current.forEach(function(sr){if(sr){Ut=!0;var gr=sr.style;gr.transitionDuration=".3s, .3s, .3s, .06s",Nt.current&&Ft-Nt.current<100&&(gr.transitionDuration="0s, 0s")}}),Ut&&(Nt.current=Date.now())}),St.current},de=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],he=function(St){var Nt=(0,me.Z)((0,me.Z)({},ae),St),Ft=Nt.className,Ut=Nt.percent,sr=Nt.prefixCls,gr=Nt.strokeColor,wr=Nt.strokeLinecap,zr=Nt.strokeWidth,Wr=Nt.style,Br=Nt.trailColor,Nr=Nt.trailWidth,on=Nt.transition,Mn=(0,te.Z)(Nt,de);delete Mn.gapPosition;var jn=Array.isArray(Ut)?Ut:[Ut],an=Array.isArray(gr)?gr:[gr],Tn=ue(),Vr=zr/2,Gn=100-zr/2,Wn="M ".concat(wr==="round"?Vr:0,",").concat(Vr,`
|
|
|
L `).concat(wr==="round"?Gn:100,",").concat(Vr),Jt="0 0 100 ".concat(zr),jr=0;return Re.createElement("svg",(0,se.Z)({className:ne()("".concat(sr,"-line"),Ft),viewBox:Jt,preserveAspectRatio:"none",style:Wr},Mn),Re.createElement("path",{className:"".concat(sr,"-line-trail"),d:Wn,strokeLinecap:wr,stroke:Br,strokeWidth:Nr||zr,fillOpacity:"0"}),jn.map(function(Rr,Tr){var Sr=1;switch(wr){case"round":Sr=1-zr/100;break;case"square":Sr=1-zr/2/100;break;default:Sr=1;break}var Dr={strokeDasharray:"".concat(Rr*Sr,"px, 100px"),strokeDashoffset:"-".concat(jr,"px"),transition:on||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Or=an[Tr]||an[an.length-1];return jr+=Rr,Re.createElement("path",{key:Tr,className:"".concat(sr,"-line-path"),d:Wn,strokeLinecap:wr,stroke:Or,strokeWidth:zr,fillOpacity:"0",ref:function(Kt){Tn[Tr]=Kt},style:Dr})}))},we=he,Se=ke(43749),xe=ke(72190),ye=ke(47273),Ae=0,Le=(0,ye.Z)();function Ce(){var ft;return Le?(ft=Ae,Ae+=1):ft="TEST_OR_SSR",ft}var je=function(ft){var St=Re.useState(),Nt=(0,xe.Z)(St,2),Ft=Nt[0],Ut=Nt[1];return Re.useEffect(function(){Ut("rc_progress_".concat(Ce()))},[]),ft||Ft},Me=function(St){var Nt=St.bg,Ft=St.children;return Re.createElement("div",{style:{width:"100%",height:"100%",background:Nt}},Ft)};function Oe(ft,St){return Object.keys(ft).map(function(Nt){var Ft=parseFloat(Nt),Ut="".concat(Math.floor(Ft*St),"%");return"".concat(ft[Nt]," ").concat(Ut)})}var Ee=Re.forwardRef(function(ft,St){var Nt=ft.prefixCls,Ft=ft.color,Ut=ft.gradientId,sr=ft.radius,gr=ft.style,wr=ft.ptg,zr=ft.strokeLinecap,Wr=ft.strokeWidth,Br=ft.size,Nr=ft.gapDegree,on=Ft&&(0,Se.Z)(Ft)==="object",Mn=on?"#FFF":void 0,jn=Br/2,an=Re.createElement("circle",{className:"".concat(Nt,"-circle-path"),r:sr,cx:jn,cy:jn,stroke:Mn,strokeLinecap:zr,strokeWidth:Wr,opacity:wr===0?0:1,style:gr,ref:St});if(!on)return an;var Tn="".concat(Ut,"-conic"),Vr=Nr?"".concat(180+Nr/2,"deg"):"0deg",Gn=Oe(Ft,(360-Nr)/360),Wn=Oe(Ft,1),Jt="conic-gradient(from ".concat(Vr,", ").concat(Gn.join(", "),")"),jr="linear-gradient(to ".concat(Nr?"bottom":"top",", ").concat(Wn.join(", "),")");return Re.createElement(Re.Fragment,null,Re.createElement("mask",{id:Tn},an),Re.createElement("foreignObject",{x:0,y:0,width:Br,height:Br,mask:"url(#".concat(Tn,")")},Re.createElement(Me,{bg:jr},Re.createElement(Me,{bg:Jt}))))}),Ne=Ee,_e=100,Ze=function(St,Nt,Ft,Ut,sr,gr,wr,zr,Wr,Br){var Nr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=Ft/100*360*((360-gr)/360),Mn=gr===0?0:{bottom:0,top:180,left:90,right:-90}[wr],jn=(100-Ut)/100*Nt;Wr==="round"&&Ut!==100&&(jn+=Br/2,jn>=Nt&&(jn=Nt-.01));var an=_e/2;return{stroke:typeof zr=="string"?zr:void 0,strokeDasharray:"".concat(Nt,"px ").concat(St),strokeDashoffset:jn+Nr,transform:"rotate(".concat(sr+on+Mn,"deg)"),transformOrigin:"".concat(an,"px ").concat(an,"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}},Pe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ue(ft){var St=ft!=null?ft:[];return Array.isArray(St)?St:[St]}var Qe=function(St){var Nt=(0,me.Z)((0,me.Z)({},ae),St),Ft=Nt.id,Ut=Nt.prefixCls,sr=Nt.steps,gr=Nt.strokeWidth,wr=Nt.trailWidth,zr=Nt.gapDegree,Wr=zr===void 0?0:zr,Br=Nt.gapPosition,Nr=Nt.trailColor,on=Nt.strokeLinecap,Mn=Nt.style,jn=Nt.className,an=Nt.strokeColor,Tn=Nt.percent,Vr=(0,te.Z)(Nt,Pe),Gn=_e/2,Wn=je(Ft),Jt="".concat(Wn,"-gradient"),jr=Gn-gr/2,Rr=Math.PI*2*jr,Tr=Wr>0?90+Wr/2:-90,Sr=Rr*((360-Wr)/360),Dr=(0,Se.Z)(sr)==="object"?sr:{count:sr,space:2},Or=Dr.count,Yr=Dr.space,Kt=Ue(Tn),xt=Ue(an),Bt=xt.find(function(pr){return pr&&(0,Se.Z)(pr)==="object"}),Ot=Bt&&(0,Se.Z)(Bt)==="object",Et=Ot?"butt":on,zt=Ze(Rr,Sr,0,100,Tr,Wr,Br,Nr,Et,gr),Zt=ue(),nr=function(){var Ar=0;return Kt.map(function(Lr,Er){var tr=xt[Er]||xt[xt.length-1],br=Ze(Rr,Sr,Ar,Lr,Tr,Wr,Br,tr,Et,gr);return Ar+=Lr,Re.createElement(Ne,{key:Er,color:tr,ptg:Lr,radius:jr,prefixCls:Ut,gradientId:Jt,style:br,strokeLinecap:Et,strokeWidth:gr,gapDegree:Wr,ref:function(Qt){Zt[Er]=Qt},size:_e})}).reverse()},$t=function(){var Ar=Math.round(Or*(Kt[0]/100)),Lr=100/Or,Er=0;return new Array(Or).fill(null).map(function(tr,br){var Wt=br<=Ar-1?xt[0]:Nr,Qt=Wt&&(0,Se.Z)(Wt)==="object"?"url(#".concat(Jt,")"):void 0,Xt=Ze(Rr,Sr,Er,Lr,Tr,Wr,Br,Wt,"butt",gr,Yr);return Er+=(Sr-Xt.strokeDashoffset+Yr)*100/Sr,Re.createElement("circle",{key:br,className:"".concat(Ut,"-circle-path"),r:jr,cx:Gn,cy:Gn,stroke:Qt,strokeWidth:gr,opacity:1,style:Xt,ref:function(mr){Zt[br]=mr}})})};return Re.createElement("svg",(0,se.Z)({className:ne()("".concat(Ut,"-circle"),jn),viewBox:"0 0 ".concat(_e," ").concat(_e),style:Mn,id:Ft,role:"presentation"},Vr),!Or&&Re.createElement("circle",{className:"".concat(Ut,"-circle-trail"),r:jr,cx:Gn,cy:Gn,stroke:Nr,strokeLinecap:Et,strokeWidth:wr||gr,style:zt}),Or?$t():nr())},tt=Qe,at={Line:we,Circle:tt},lt=ke(6848),Ve=ke(30071);function Xe(ft){return!ft||ft<0?0:ft>100?100:ft}function nt(ft){let{success:St,successPercent:Nt}=ft,Ft=Nt;return St&&"progress"in St&&(Ft=St.progress),St&&"percent"in St&&(Ft=St.percent),Ft}const ct=ft=>{let{percent:St,success:Nt,successPercent:Ft}=ft;const Ut=Xe(nt({success:Nt,successPercent:Ft}));return[Ut,Xe(Xe(St)-Ut)]},ot=ft=>{let{success:St={},strokeColor:Nt}=ft;const{strokeColor:Ft}=St;return[Ft||Ve.presetPrimaryColors.green,Nt||null]},et=(ft,St,Nt)=>{var Ft,Ut,sr,gr;let wr=-1,zr=-1;if(St==="step"){const Wr=Nt.steps,Br=Nt.strokeWidth;typeof ft=="string"||typeof ft=="undefined"?(wr=ft==="small"?2:14,zr=Br!=null?Br:8):typeof ft=="number"?[wr,zr]=[ft,ft]:[wr=14,zr=8]=ft,wr*=Wr}else if(St==="line"){const Wr=Nt==null?void 0:Nt.strokeWidth;typeof ft=="string"||typeof ft=="undefined"?zr=Wr||(ft==="small"?6:8):typeof ft=="number"?[wr,zr]=[ft,ft]:[wr=-1,zr=8]=ft}else(St==="circle"||St==="dashboard")&&(typeof ft=="string"||typeof ft=="undefined"?[wr,zr]=ft==="small"?[60,60]:[120,120]:typeof ft=="number"?[wr,zr]=[ft,ft]:(wr=(Ut=(Ft=ft[0])!==null&&Ft!==void 0?Ft:ft[1])!==null&&Ut!==void 0?Ut:120,zr=(gr=(sr=ft[0])!==null&&sr!==void 0?sr:ft[1])!==null&&gr!==void 0?gr:120));return[wr,zr]},qe=3,it=ft=>qe/ft*100;var pt=ft=>{const{prefixCls:St,trailColor:Nt=null,strokeLinecap:Ft="round",gapPosition:Ut,gapDegree:sr,width:gr=120,type:wr,children:zr,success:Wr,size:Br=gr}=ft,[Nr,on]=et(Br,"circle");let{strokeWidth:Mn}=ft;Mn===void 0&&(Mn=Math.max(it(Nr),6));const jn={width:Nr,height:on,fontSize:Nr*.15+6},an=Re.useMemo(()=>{if(sr||sr===0)return sr;if(wr==="dashboard")return 75},[sr,wr]),Tn=Ut||wr==="dashboard"&&"bottom"||void 0,Vr=Object.prototype.toString.call(ft.strokeColor)==="[object Object]",Gn=ot({success:Wr,strokeColor:ft.strokeColor}),Wn=ne()(`${St}-inner`,{[`${St}-circle-gradient`]:Vr}),Jt=Re.createElement(tt,{percent:ct(ft),strokeWidth:Mn,trailWidth:Mn,strokeColor:Gn,strokeLinecap:Ft,trailColor:Nt,prefixCls:St,gapDegree:an,gapPosition:Tn});return Re.createElement("div",{className:Wn,style:jn},Nr<=20?Re.createElement(lt.Z,{title:zr},Re.createElement("span",null,Jt)):Re.createElement(Re.Fragment,null,Jt,zr))},Dt=function(ft,St){var Nt={};for(var Ft in ft)Object.prototype.hasOwnProperty.call(ft,Ft)&&St.indexOf(Ft)<0&&(Nt[Ft]=ft[Ft]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Ft=Object.getOwnPropertySymbols(ft);Ut<Ft.length;Ut++)St.indexOf(Ft[Ut])<0&&Object.prototype.propertyIsEnumerable.call(ft,Ft[Ut])&&(Nt[Ft[Ut]]=ft[Ft[Ut]]);return Nt};const At=ft=>{let St=[];return Object.keys(ft).forEach(Nt=>{const Ft=parseFloat(Nt.replace(/%/g,""));isNaN(Ft)||St.push({key:Ft,value:ft[Nt]})}),St=St.sort((Nt,Ft)=>Nt.key-Ft.key),St.map(Nt=>{let{key:Ft,value:Ut}=Nt;return`${Ut} ${Ft}%`}).join(", ")},st=(ft,St)=>{const{from:Nt=Ve.presetPrimaryColors.blue,to:Ft=Ve.presetPrimaryColors.blue,direction:Ut=St==="rtl"?"to left":"to right"}=ft,sr=Dt(ft,["from","to","direction"]);if(Object.keys(sr).length!==0){const gr=At(sr);return{backgroundImage:`linear-gradient(${Ut}, ${gr})`}}return{backgroundImage:`linear-gradient(${Ut}, ${Nt}, ${Ft})`}};var We=ft=>{const{prefixCls:St,direction:Nt,percent:Ft,size:Ut,strokeWidth:sr,strokeColor:gr,strokeLinecap:wr="round",children:zr,trailColor:Wr=null,success:Br}=ft,Nr=gr&&typeof gr!="string"?st(gr,Nt):{backgroundColor:gr},on=wr==="square"||wr==="butt"?0:void 0,Mn={backgroundColor:Wr||void 0,borderRadius:on},jn=Ut!=null?Ut:[-1,sr||(Ut==="small"?6:8)],[an,Tn]=et(jn,"line",{strokeWidth:sr}),Vr=Object.assign({width:`${Xe(Ft)}%`,height:Tn,borderRadius:on},Nr),Gn=nt(ft),Wn={width:`${Xe(Gn)}%`,height:Tn,borderRadius:on,backgroundColor:Br==null?void 0:Br.strokeColor},Jt={width:an<0?"100%":an,height:Tn};return Re.createElement(Re.Fragment,null,Re.createElement("div",{className:`${St}-outer`,style:Jt},Re.createElement("div",{className:`${St}-inner`,style:Mn},Re.createElement("div",{className:`${St}-bg`,style:Vr}),Gn!==void 0?Re.createElement("div",{className:`${St}-success-bg`,style:Wn}):null)),zr)},fe=ft=>{const{size:St,steps:Nt,percent:Ft=0,strokeWidth:Ut=8,strokeColor:sr,trailColor:gr=null,prefixCls:wr,children:zr}=ft,Wr=Math.round(Nt*(Ft/100)),Br=St==="small"?2:14,Nr=St!=null?St:[Br,Ut],[on,Mn]=et(Nr,"step",{steps:Nt,strokeWidth:Ut}),jn=on/Nt,an=new Array(Nt);for(let Tn=0;Tn<Nt;Tn++){const Vr=Array.isArray(sr)?sr[Tn]:sr;an[Tn]=Re.createElement("div",{key:Tn,className:ne()(`${wr}-steps-item`,{[`${wr}-steps-item-active`]:Tn<=Wr-1}),style:{backgroundColor:Tn<=Wr-1?Vr:gr,width:jn,height:Mn}})}return Re.createElement("div",{className:`${wr}-steps-outer`},an,zr)},ze=ke(36237),He=ke(17313),pe=ke(83116),Ie=ke(37613);const Ke=ft=>{const St=ft?"100%":"-100%";return new ze.Keyframes(`antProgress${ft?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${St}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${St}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ye=ft=>{const{componentCls:St,iconCls:Nt}=ft;return{[St]: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},[`${St}-outer`]:{display:"inline-block",width:"100%"},[`&${St}-show-info`]:{[`${St}-outer`]:{marginInlineEnd:`calc(-2em - ${ft.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ft.paddingXS}px)`}},[`${St}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ft.remainingColor,borderRadius:ft.lineBorderRadius},[`${St}-inner:not(${St}-circle-gradient)`]:{[`${St}-circle-path`]:{stroke:ft.defaultColor}},[`${St}-success-bg, ${St}-bg`]:{position:"relative",backgroundColor:ft.defaultColor,borderRadius:ft.lineBorderRadius,transition:`all ${ft.motionDurationSlow} ${ft.motionEaseInOutCirc}`},[`${St}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ft.colorSuccess},[`${St}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ft.marginXS,color:ft.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Nt]:{fontSize:ft.fontSize}},[`&${St}-status-active`]:{[`${St}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ft.colorBgContainer,borderRadius:ft.lineBorderRadius,opacity:0,animationName:Ke(),animationDuration:ft.progressActiveMotionDuration,animationTimingFunction:ft.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${St}-rtl${St}-status-active`]:{[`${St}-bg::before`]:{animationName:Ke(!0)}},[`&${St}-status-exception`]:{[`${St}-bg`]:{backgroundColor:ft.colorError},[`${St}-text`]:{color:ft.colorError}},[`&${St}-status-exception ${St}-inner:not(${St}-circle-gradient)`]:{[`${St}-circle-path`]:{stroke:ft.colorError}},[`&${St}-status-success`]:{[`${St}-bg`]:{backgroundColor:ft.colorSuccess},[`${St}-text`]:{color:ft.colorSuccess}},[`&${St}-status-success ${St}-inner:not(${St}-circle-gradient)`]:{[`${St}-circle-path`]:{stroke:ft.colorSuccess}}})}},Je=ft=>{const{componentCls:St,iconCls:Nt}=ft;return{[St]:{[`${St}-circle-trail`]:{stroke:ft.remainingColor},[`&${St}-circle ${St}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${St}-circle ${St}-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%)",[Nt]:{fontSize:`${ft.fontSize/ft.fontSizeSM}em`}},[`${St}-circle&-status-exception`]:{[`${St}-text`]:{color:ft.colorError}},[`${St}-circle&-status-success`]:{[`${St}-text`]:{color:ft.colorSuccess}}},[`${St}-inline-circle`]:{lineHeight:1,[`${St}-inner`]:{verticalAlign:"bottom"}}}},dt=ft=>{const{componentCls:St}=ft;return{[St]:{[`${St}-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:St,iconCls:Nt}=ft;return{[St]:{[`${St}-small&-line, ${St}-small&-line ${St}-text ${Nt}`]:{fontSize:ft.fontSizeSM}}}};var vt=(0,pe.Z)("Progress",ft=>{const St=ft.marginXXS/2,Nt=(0,Ie.TS)(ft,{progressStepMarginInlineEnd:St,progressStepMinWidth:St,progressActiveMotionDuration:"2.4s"});return[Ye(Nt),Je(Nt),dt(Nt),bt(Nt)]},ft=>({circleTextColor:ft.colorText,defaultColor:ft.colorInfo,remainingColor:ft.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),It=function(ft,St){var Nt={};for(var Ft in ft)Object.prototype.hasOwnProperty.call(ft,Ft)&&St.indexOf(Ft)<0&&(Nt[Ft]=ft[Ft]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Ft=Object.getOwnPropertySymbols(ft);Ut<Ft.length;Ut++)St.indexOf(Ft[Ut])<0&&Object.prototype.propertyIsEnumerable.call(ft,Ft[Ut])&&(Nt[Ft[Ut]]=ft[Ft[Ut]]);return Nt};const Vt=null,kt=["normal","exception","active","success"];var _t=Re.forwardRef((ft,St)=>{const{prefixCls:Nt,className:Ft,rootClassName:Ut,steps:sr,strokeColor:gr,percent:wr=0,size:zr="default",showInfo:Wr=!0,type:Br="line",status:Nr,format:on,style:Mn}=ft,jn=It(ft,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),an=Re.useMemo(()=>{var Kt,xt;const Bt=nt(ft);return parseInt(Bt!==void 0?(Kt=Bt!=null?Bt:0)===null||Kt===void 0?void 0:Kt.toString():(xt=wr!=null?wr:0)===null||xt===void 0?void 0:xt.toString(),10)},[wr,ft.success,ft.successPercent]),Tn=Re.useMemo(()=>!kt.includes(Nr)&&an>=100?"success":Nr||"normal",[Nr,an]),{getPrefixCls:Vr,direction:Gn,progress:Wn}=Re.useContext(oe.E_),Jt=Vr("progress",Nt),[jr,Rr]=vt(Jt),Tr=Re.useMemo(()=>{if(!Wr)return null;const Kt=nt(ft);let xt;const Bt=on||(Et=>`${Et}%`),Ot=Br==="line";return on||Tn!=="exception"&&Tn!=="success"?xt=Bt(Xe(wr),Xe(Kt)):Tn==="exception"?xt=Ot?Re.createElement(De.Z,null):Re.createElement(ve.Z,null):Tn==="success"&&(xt=Ot?Re.createElement(gt.Z,null):Re.createElement(x.Z,null)),Re.createElement("span",{className:`${Jt}-text`,title:typeof xt=="string"?xt:void 0},xt)},[Wr,wr,an,Tn,Br,Jt,on]),Sr=Array.isArray(gr)?gr[0]:gr,Dr=typeof gr=="string"||Array.isArray(gr)?gr:void 0;let Or;Br==="line"?Or=sr?Re.createElement(fe,Object.assign({},ft,{strokeColor:Dr,prefixCls:Jt,steps:sr}),Tr):Re.createElement(We,Object.assign({},ft,{strokeColor:Sr,prefixCls:Jt,direction:Gn}),Tr):(Br==="circle"||Br==="dashboard")&&(Or=Re.createElement(pt,Object.assign({},ft,{strokeColor:Sr,prefixCls:Jt,progressStatus:Tn}),Tr));const Yr=ne()(Jt,`${Jt}-status-${Tn}`,`${Jt}-${Br==="dashboard"&&"circle"||sr&&"steps"||Br}`,{[`${Jt}-inline-circle`]:Br==="circle"&&et(zr,"circle")[0]<=20,[`${Jt}-show-info`]:Wr,[`${Jt}-${zr}`]:typeof zr=="string",[`${Jt}-rtl`]:Gn==="rtl"},Wn==null?void 0:Wn.className,Ft,Ut,Rr);return jr(Re.createElement("div",Object.assign({ref:St,style:Object.assign(Object.assign({},Wn==null?void 0:Wn.style),Mn),className:Yr,role:"progressbar","aria-valuenow":an},(0,ie.Z)(jn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Or))}),Mt=_t},5112:function(or,Ht,ke){"use strict";ke.d(Ht,{ZP:function(){return Ve}});var Re=ke(92310),gt=ke.n(Re),x=ke(18929),De=ke(26112),ve=ke(59301),re=ke(36355),ne=ke(19716);const ie=ve.createContext(null),oe=ie.Provider;var se=ie;const me=ve.createContext(null),te=me.Provider;var ae=ke(5630),ue=ke(8654),de=ke(1684),he=ke(32441),we=ke(17313),Se=ke(83116),xe=ke(37613);const ye=Xe=>{const{componentCls:nt,antCls:ct}=Xe,ot=`${nt}-group`;return{[ot]:Object.assign(Object.assign({},(0,we.Wf)(Xe)),{display:"inline-block",fontSize:0,[`&${ot}-rtl`]:{direction:"rtl"},[`${ct}-badge ${ct}-badge-count`]:{zIndex:1},[`> ${ct}-badge:not(:first-child) > ${ct}-button-wrapper`]:{borderInlineStart:"none"}})}},Ae=Xe=>{const{componentCls:nt,wrapperMarginInlineEnd:ct,colorPrimary:ot,radioSize:et,motionDurationSlow:qe,motionDurationMid:it,motionEaseInOutCirc:yt,colorBgContainer:pt,colorBorder:Dt,lineWidth:At,dotSize:st,colorBgContainerDisabled:Ge,colorTextDisabled:We,paddingXS:le,dotColorDisabled:fe,lineType:ze,radioDotDisabledSize:He,wireframe:pe,colorWhite:Ie}=Xe,Ke=`${nt}-inner`;return{[`${nt}-wrapper`]:Object.assign(Object.assign({},(0,we.Wf)(Xe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:ct,cursor:"pointer",[`&${nt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Xe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${nt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${At}px ${ze} ${ot}`,borderRadius:"50%",visibility:"hidden",content:'""'},[nt]:Object.assign(Object.assign({},(0,we.Wf)(Xe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${nt}-wrapper:hover &,
|
|
|
&:hover ${Ke}`]:{borderColor:ot},[`${nt}-input:focus-visible + ${Ke}`]:Object.assign({},(0,we.oN)(Xe)),[`${nt}:hover::after, ${nt}-wrapper:hover &::after`]:{visibility:"visible"},[`${nt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:et,height:et,marginBlockStart:et/-2,marginInlineStart:et/-2,backgroundColor:pe?ot:Ie,borderBlockStart:0,borderInlineStart:0,borderRadius:et,transform:"scale(0)",opacity:0,transition:`all ${qe} ${yt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:et,height:et,backgroundColor:pt,borderColor:Dt,borderStyle:"solid",borderWidth:At,borderRadius:"50%",transition:`all ${it}`},[`${nt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${nt}-checked`]:{[Ke]:{borderColor:ot,backgroundColor:pe?pt:ot,"&::after":{transform:`scale(${st/et})`,opacity:1,transition:`all ${qe} ${yt}`}}},[`${nt}-disabled`]:{cursor:"not-allowed",[Ke]:{backgroundColor:Ge,borderColor:Dt,cursor:"not-allowed","&::after":{backgroundColor:fe}},[`${nt}-input`]:{cursor:"not-allowed"},[`${nt}-disabled + span`]:{color:We,cursor:"not-allowed"},[`&${nt}-checked`]:{[Ke]:{"&::after":{transform:`scale(${He/et})`}}}},[`span${nt} + *`]:{paddingInlineStart:le,paddingInlineEnd:le}})}},Le=Xe=>{const{buttonColor:nt,controlHeight:ct,componentCls:ot,lineWidth:et,lineType:qe,colorBorder:it,motionDurationSlow:yt,motionDurationMid:pt,buttonPaddingInline:Dt,fontSize:At,buttonBg:st,fontSizeLG:Ge,controlHeightLG:We,controlHeightSM:le,paddingXS:fe,borderRadius:ze,borderRadiusSM:He,borderRadiusLG:pe,buttonCheckedBg:Ie,buttonSolidCheckedColor:Ke,colorTextDisabled:Ye,colorBgContainerDisabled:Je,buttonCheckedBgDisabled:dt,buttonCheckedColorDisabled:bt,colorPrimary:vt,colorPrimaryHover:It,colorPrimaryActive:Vt,buttonSolidCheckedBg:kt,buttonSolidCheckedHoverBg:jt,buttonSolidCheckedActiveBg:_t}=Xe;return{[`${ot}-button-wrapper`]:{position:"relative",display:"inline-block",height:ct,margin:0,paddingInline:Dt,paddingBlock:0,color:nt,fontSize:At,lineHeight:`${ct-et*2}px`,background:st,border:`${et}px ${qe} ${it}`,borderBlockStartWidth:et+.02,borderInlineStartWidth:0,borderInlineEndWidth:et,cursor:"pointer",transition:[`color ${pt}`,`background ${pt}`,`box-shadow ${pt}`].join(","),a:{color:nt},[`> ${ot}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-et,insetInlineStart:-et,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:et,paddingInline:0,backgroundColor:it,transition:`background-color ${yt}`,content:'""'}},"&:first-child":{borderInlineStart:`${et}px ${qe} ${it}`,borderStartStartRadius:ze,borderEndStartRadius:ze},"&:last-child":{borderStartEndRadius:ze,borderEndEndRadius:ze},"&:first-child:last-child":{borderRadius:ze},[`${ot}-group-large &`]:{height:We,fontSize:Ge,lineHeight:`${We-et*2}px`,"&:first-child":{borderStartStartRadius:pe,borderEndStartRadius:pe},"&:last-child":{borderStartEndRadius:pe,borderEndEndRadius:pe}},[`${ot}-group-small &`]:{height:le,paddingInline:fe-et,paddingBlock:0,lineHeight:`${le-et*2}px`,"&:first-child":{borderStartStartRadius:He,borderEndStartRadius:He},"&:last-child":{borderStartEndRadius:He,borderEndEndRadius:He}},"&:hover":{position:"relative",color:vt},"&:has(:focus-visible)":Object.assign({},(0,we.oN)(Xe)),[`${ot}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${ot}-button-wrapper-disabled)`]:{zIndex:1,color:vt,background:Ie,borderColor:vt,"&::before":{backgroundColor:vt},"&:first-child":{borderColor:vt},"&:hover":{color:It,borderColor:It,"&::before":{backgroundColor:It}},"&:active":{color:Vt,borderColor:Vt,"&::before":{backgroundColor:Vt}}},[`${ot}-group-solid &-checked:not(${ot}-button-wrapper-disabled)`]:{color:Ke,background:kt,borderColor:kt,"&:hover":{color:Ke,background:jt,borderColor:jt},"&:active":{color:Ke,background:_t,borderColor:_t}},"&-disabled":{color:Ye,backgroundColor:Je,borderColor:it,cursor:"not-allowed","&:first-child, &:hover":{color:Ye,backgroundColor:Je,borderColor:it}},[`&-disabled${ot}-button-wrapper-checked`]:{color:bt,backgroundColor:dt,borderColor:it,boxShadow:"none"}}}},Ce=Xe=>Xe-4*2;var je=(0,Se.Z)("Radio",Xe=>{const{controlOutline:nt,controlOutlineWidth:ct,radioSize:ot}=Xe,et=`0 0 0 ${ct}px ${nt}`,qe=et,it=Ce(ot),yt=(0,xe.TS)(Xe,{radioDotDisabledSize:it,radioFocusShadow:et,radioButtonFocusShadow:qe});return[ye(yt),Ae(yt),Le(yt)]},Xe=>{const{wireframe:nt,padding:ct,marginXS:ot,lineWidth:et,fontSizeLG:qe,colorText:it,colorBgContainer:yt,colorTextDisabled:pt,controlItemBgActiveDisabled:Dt,colorTextLightSolid:At,colorPrimary:st,colorPrimaryHover:Ge,colorPrimaryActive:We}=Xe,le=4,fe=qe,ze=nt?Ce(fe):fe-(le+et)*2;return{radioSize:fe,dotSize:ze,dotColorDisabled:pt,buttonSolidCheckedColor:At,buttonSolidCheckedBg:st,buttonSolidCheckedHoverBg:Ge,buttonSolidCheckedActiveBg:We,buttonBg:yt,buttonCheckedBg:yt,buttonColor:it,buttonCheckedBgDisabled:Dt,buttonCheckedColorDisabled:pt,buttonPaddingInline:ct-et,wrapperMarginInlineEnd:ot}}),Me=ke(14088),Oe=ke(4572),Ee=function(Xe,nt){var ct={};for(var ot in Xe)Object.prototype.hasOwnProperty.call(Xe,ot)&&nt.indexOf(ot)<0&&(ct[ot]=Xe[ot]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,ot=Object.getOwnPropertySymbols(Xe);et<ot.length;et++)nt.indexOf(ot[et])<0&&Object.prototype.propertyIsEnumerable.call(Xe,ot[et])&&(ct[ot[et]]=Xe[ot[et]]);return ct};const Ne=(Xe,nt)=>{var ct,ot;const et=ve.useContext(se),qe=ve.useContext(me),{getPrefixCls:it,direction:yt,radio:pt}=ve.useContext(re.E_),Dt=ve.useRef(null),At=(0,ue.sQ)(nt,Dt),{isFormItemInput:st}=ve.useContext(he.aM),Ge=Vt=>{var kt,jt;(kt=Xe.onChange)===null||kt===void 0||kt.call(Xe,Vt),(jt=et==null?void 0:et.onChange)===null||jt===void 0||jt.call(et,Vt)},{prefixCls:We,className:le,rootClassName:fe,children:ze,style:He}=Xe,pe=Ee(Xe,["prefixCls","className","rootClassName","children","style"]),Ie=it("radio",We),Ke=((et==null?void 0:et.optionType)||qe)==="button",Ye=Ke?`${Ie}-button`:Ie,[Je,dt]=je(Ie),bt=Object.assign({},pe),vt=ve.useContext(de.Z);et&&(bt.name=et.name,bt.onChange=Ge,bt.checked=Xe.value===et.value,bt.disabled=(ct=bt.disabled)!==null&&ct!==void 0?ct:et.disabled),bt.disabled=(ot=bt.disabled)!==null&&ot!==void 0?ot:vt;const It=gt()(`${Ye}-wrapper`,{[`${Ye}-wrapper-checked`]:bt.checked,[`${Ye}-wrapper-disabled`]:bt.disabled,[`${Ye}-wrapper-rtl`]:yt==="rtl",[`${Ye}-wrapper-in-form-item`]:st},pt==null?void 0:pt.className,le,fe,dt);return Je(ve.createElement(Me.Z,{component:"Radio",disabled:bt.disabled},ve.createElement("label",{className:It,style:Object.assign(Object.assign({},pt==null?void 0:pt.style),He),onMouseEnter:Xe.onMouseEnter,onMouseLeave:Xe.onMouseLeave},ve.createElement(ae.Z,Object.assign({},bt,{className:gt()(bt.className,!Ke&&Oe.A),type:"radio",prefixCls:Ye,ref:At})),ze!==void 0?ve.createElement("span",null,ze):null)))};var Ze=ve.forwardRef(Ne);const Pe=ve.forwardRef((Xe,nt)=>{const{getPrefixCls:ct,direction:ot}=ve.useContext(re.E_),[et,qe]=(0,x.Z)(Xe.defaultValue,{value:Xe.value}),it=kt=>{const jt=et,_t=kt.target.value;"value"in Xe||qe(_t);const{onChange:Mt}=Xe;Mt&&_t!==jt&&Mt(kt)},{prefixCls:yt,className:pt,rootClassName:Dt,options:At,buttonStyle:st="outline",disabled:Ge,children:We,size:le,style:fe,id:ze,onMouseEnter:He,onMouseLeave:pe,onFocus:Ie,onBlur:Ke}=Xe,Ye=ct("radio",yt),Je=`${Ye}-group`,[dt,bt]=je(Ye);let vt=We;At&&At.length>0&&(vt=At.map(kt=>typeof kt=="string"||typeof kt=="number"?ve.createElement(Ze,{key:kt.toString(),prefixCls:Ye,disabled:Ge,value:kt,checked:et===kt},kt):ve.createElement(Ze,{key:`radio-group-value-options-${kt.value}`,prefixCls:Ye,disabled:kt.disabled||Ge,value:kt.value,checked:et===kt.value,title:kt.title,style:kt.style},kt.label)));const It=(0,ne.Z)(le),Vt=gt()(Je,`${Je}-${st}`,{[`${Je}-${It}`]:It,[`${Je}-rtl`]:ot==="rtl"},pt,Dt,bt);return dt(ve.createElement("div",Object.assign({},(0,De.Z)(Xe,{aria:!0,data:!0}),{className:Vt,style:fe,onMouseEnter:He,onMouseLeave:pe,onFocus:Ie,onBlur:Ke,id:ze,ref:nt}),ve.createElement(oe,{value:{onChange:it,value:et,disabled:Xe.disabled,name:Xe.name,optionType:Xe.optionType}},vt)))});var Ue=ve.memo(Pe),Qe=function(Xe,nt){var ct={};for(var ot in Xe)Object.prototype.hasOwnProperty.call(Xe,ot)&&nt.indexOf(ot)<0&&(ct[ot]=Xe[ot]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,ot=Object.getOwnPropertySymbols(Xe);et<ot.length;et++)nt.indexOf(ot[et])<0&&Object.prototype.propertyIsEnumerable.call(Xe,ot[et])&&(ct[ot[et]]=Xe[ot[et]]);return ct};const tt=(Xe,nt)=>{const{getPrefixCls:ct}=ve.useContext(re.E_),{prefixCls:ot}=Xe,et=Qe(Xe,["prefixCls"]),qe=ct("radio",ot);return ve.createElement(te,{value:"button"},ve.createElement(Ze,Object.assign({prefixCls:qe},et,{type:"radio",ref:nt})))};var at=ve.forwardRef(tt);const lt=Ze;lt.Button=at,lt.Group=Ue,lt.__ANT_RADIO=!0;var Ve=lt},13570:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Xe}});var Re=ke(60499),gt=ke(59301),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},De=x,ve=ke(85221),re=function(ct,ot){return gt.createElement(ve.Z,(0,Re.Z)({},ct,{ref:ot,icon:De}))},ne=gt.forwardRef(re),ie=ne,oe=ke(92310),se=ke.n(oe),me=ke(18642),te=ke(72190),ae=ke(42244),ue=ke(18929),de=ke(10228),he=ke(26112);function we(nt,ct){var ot=nt.disabled,et=nt.prefixCls,qe=nt.character,it=nt.characterRender,yt=nt.index,pt=nt.count,Dt=nt.value,At=nt.allowHalf,st=nt.focused,Ge=nt.onHover,We=nt.onClick,le=function(Je){Ge(Je,yt)},fe=function(Je){We(Je,yt)},ze=function(Je){Je.keyCode===de.Z.ENTER&&We(Je,yt)},He=yt+1,pe=new Set([et]);Dt===0&&yt===0&&st?pe.add("".concat(et,"-focused")):At&&Dt+.5>=He&&Dt<He?(pe.add("".concat(et,"-half")),pe.add("".concat(et,"-active")),st&&pe.add("".concat(et,"-focused"))):(He<=Dt?pe.add("".concat(et,"-full")):pe.add("".concat(et,"-zero")),He===Dt&&st&&pe.add("".concat(et,"-focused")));var Ie=typeof qe=="function"?qe(nt):qe,Ke=gt.createElement("li",{className:se()(Array.from(pe)),ref:ct},gt.createElement("div",{onClick:ot?null:fe,onKeyDown:ot?null:ze,onMouseMove:ot?null:le,role:"radio","aria-checked":Dt>yt?"true":"false","aria-posinset":yt+1,"aria-setsize":pt,tabIndex:ot?-1:0},gt.createElement("div",{className:"".concat(et,"-first")},Ie),gt.createElement("div",{className:"".concat(et,"-second")},Ie)));return it&&(Ke=it(Ke,nt)),Ke}var Se=gt.forwardRef(we);function xe(){var nt=gt.useRef({});function ct(et){return nt.current[et]}function ot(et){return function(qe){nt.current[et]=qe}}return[ct,ot]}function ye(nt){var ct=nt.pageXOffset,ot="scrollLeft";if(typeof ct!="number"){var et=nt.document;ct=et.documentElement[ot],typeof ct!="number"&&(ct=et.body[ot])}return ct}function Ae(nt){var ct,ot,et=nt.ownerDocument,qe=et.body,it=et&&et.documentElement,yt=nt.getBoundingClientRect();return ct=yt.left,ot=yt.top,ct-=it.clientLeft||qe.clientLeft||0,ot-=it.clientTop||qe.clientTop||0,{left:ct,top:ot}}function Le(nt){var ct=Ae(nt),ot=nt.ownerDocument,et=ot.defaultView||ot.parentWindow;return ct.left+=ye(et),ct.left}var Ce=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function je(nt,ct){var ot,et=nt.prefixCls,qe=et===void 0?"rc-rate":et,it=nt.className,yt=nt.defaultValue,pt=nt.value,Dt=nt.count,At=Dt===void 0?5:Dt,st=nt.allowHalf,Ge=st===void 0?!1:st,We=nt.allowClear,le=We===void 0?!0:We,fe=nt.character,ze=fe===void 0?"\u2605":fe,He=nt.characterRender,pe=nt.disabled,Ie=nt.direction,Ke=Ie===void 0?"ltr":Ie,Ye=nt.tabIndex,Je=Ye===void 0?0:Ye,dt=nt.autoFocus,bt=nt.onHoverChange,vt=nt.onChange,It=nt.onFocus,Vt=nt.onBlur,kt=nt.onKeyDown,jt=nt.onMouseLeave,_t=(0,ae.Z)(nt,Ce),Mt=xe(),ft=(0,te.Z)(Mt,2),St=ft[0],Nt=ft[1],Ft=gt.useRef(null),Ut=function(){if(!pe){var Et;(Et=Ft.current)===null||Et===void 0||Et.focus()}};gt.useImperativeHandle(ct,function(){return{focus:Ut,blur:function(){if(!pe){var Et;(Et=Ft.current)===null||Et===void 0||Et.blur()}}}});var sr=(0,ue.Z)(yt||0,{value:pt}),gr=(0,te.Z)(sr,2),wr=gr[0],zr=gr[1],Wr=(0,ue.Z)(null),Br=(0,te.Z)(Wr,2),Nr=Br[0],on=Br[1],Mn=function(Et,zt){var Zt=Ke==="rtl",nr=Et+1;if(Ge){var $t=St(Et),pr=Le($t),Ar=$t.clientWidth;(Zt&&zt-pr>Ar/2||!Zt&&zt-pr<Ar/2)&&(nr-=.5)}return nr},jn=function(Et){zr(Et),vt==null||vt(Et)},an=gt.useState(!1),Tn=(0,te.Z)(an,2),Vr=Tn[0],Gn=Tn[1],Wn=function(){Gn(!0),It==null||It()},Jt=function(){Gn(!1),Vt==null||Vt()},jr=gt.useState(null),Rr=(0,te.Z)(jr,2),Tr=Rr[0],Sr=Rr[1],Dr=function(Et,zt){var Zt=Mn(zt,Et.pageX);Zt!==Nr&&(Sr(Zt),on(null)),bt==null||bt(Zt)},Or=function(Et){pe||(Sr(null),on(null),bt==null||bt(void 0)),Et&&(jt==null||jt(Et))},Yr=function(Et,zt){var Zt=Mn(zt,Et.pageX),nr=!1;le&&(nr=Zt===wr),Or(),jn(nr?0:Zt),on(nr?Zt:null)},Kt=function(Et){var zt=Et.keyCode,Zt=Ke==="rtl",nr=wr;zt===de.Z.RIGHT&&nr<At&&!Zt?(Ge?nr+=.5:nr+=1,jn(nr),Et.preventDefault()):zt===de.Z.LEFT&&nr>0&&!Zt||zt===de.Z.RIGHT&&nr>0&&Zt?(Ge?nr-=.5:nr-=1,jn(nr),Et.preventDefault()):zt===de.Z.LEFT&&nr<At&&Zt&&(Ge?nr+=.5:nr+=1,jn(nr),Et.preventDefault()),kt==null||kt(Et)};gt.useEffect(function(){dt&&!pe&&Ut()},[]);var xt=new Array(At).fill(0).map(function(Ot,Et){return gt.createElement(Se,{ref:Nt(Et),index:Et,count:At,disabled:pe,prefixCls:"".concat(qe,"-star"),allowHalf:Ge,value:Tr===null?wr:Tr,onClick:Yr,onHover:Dr,key:Ot||Et,character:ze,characterRender:He,focused:Vr})}),Bt=se()(qe,it,(ot={},(0,me.Z)(ot,"".concat(qe,"-disabled"),pe),(0,me.Z)(ot,"".concat(qe,"-rtl"),Ke==="rtl"),ot));return gt.createElement("ul",(0,Re.Z)({className:Bt,onMouseLeave:Or,tabIndex:pe?-1:Je,onFocus:pe?null:Wn,onBlur:pe?null:Jt,onKeyDown:pe?null:Kt,ref:Ft,role:"radiogroup"},(0,he.Z)(_t,{aria:!0,data:!0,attr:!0})),xt)}var Me=gt.forwardRef(je),Oe=Me,Ee=ke(36355),Ne=ke(6848),_e=ke(17313),Ze=ke(83116),Pe=ke(37613);const Ue=nt=>{const{componentCls:ct}=nt;return{[`${ct}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:nt.marginXS},"> div":{transition:`all ${nt.motionDurationMid}, outline 0s`,"&:hover":{transform:nt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${nt.lineWidth}px dashed ${nt.starColor}`,transform:nt.starHoverScale}},"&-first, &-second":{color:nt.starBg,transition:`all ${nt.motionDurationMid}`,userSelect:"none",[nt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${ct}-star-first, &-half ${ct}-star-second`]:{opacity:1},[`&-half ${ct}-star-first, &-full ${ct}-star-second`]:{color:"inherit"}}}},Qe=nt=>({[`&-rtl${nt.componentCls}`]:{direction:"rtl"}}),tt=nt=>{const{componentCls:ct}=nt;return{[ct]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(nt)),{display:"inline-block",margin:0,padding:0,color:nt.starColor,fontSize:nt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${ct} ${ct}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ue(nt)),{[`+ ${ct}-text`]:{display:"inline-block",marginInlineStart:nt.marginXS,fontSize:nt.fontSize}}),Qe(nt))}};var at=(0,Ze.Z)("Rate",nt=>{const ct=(0,Pe.TS)(nt,{});return[tt(ct)]},nt=>({starColor:nt.yellow6,starSize:nt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:nt.colorFillContent})),lt=function(nt,ct){var ot={};for(var et in nt)Object.prototype.hasOwnProperty.call(nt,et)&&ct.indexOf(et)<0&&(ot[et]=nt[et]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,et=Object.getOwnPropertySymbols(nt);qe<et.length;qe++)ct.indexOf(et[qe])<0&&Object.prototype.propertyIsEnumerable.call(nt,et[qe])&&(ot[et[qe]]=nt[et[qe]]);return ot},Xe=gt.forwardRef((nt,ct)=>{const{prefixCls:ot,className:et,rootClassName:qe,style:it,tooltips:yt,character:pt=gt.createElement(ie,null)}=nt,Dt=lt(nt,["prefixCls","className","rootClassName","style","tooltips","character"]),At=(pe,Ie)=>{let{index:Ke}=Ie;return yt?gt.createElement(Ne.Z,{title:yt[Ke]},pe):pe},{getPrefixCls:st,direction:Ge,rate:We}=gt.useContext(Ee.E_),le=st("rate",ot),[fe,ze]=at(le),He=Object.assign(Object.assign({},We==null?void 0:We.style),it);return fe(gt.createElement(Oe,Object.assign({ref:ct,character:pt,characterRender:At},Dt,{className:se()(et,qe,ze,We==null?void 0:We.className),style:He,prefixCls:le,direction:Ge})))})},57809:function(or,Ht,ke){"use strict";var Re=ke(92310),gt=ke.n(Re),x=ke(77861),De=ke(2738),ve=ke(59301),re=ke(53487),ne=ke(62892),ie=ke(19080),oe=ke(36355),se=ke(1684),me=ke(93891),te=ke(19716),ae=ke(32441),ue=ke(33234),de=ke(14154),he=ke(58582),we=ke(84443),Se=ke(66339),xe=function(je,Me){var Oe={};for(var Ee in je)Object.prototype.hasOwnProperty.call(je,Ee)&&Me.indexOf(Ee)<0&&(Oe[Ee]=je[Ee]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ee=Object.getOwnPropertySymbols(je);Ne<Ee.length;Ne++)Me.indexOf(Ee[Ne])<0&&Object.prototype.propertyIsEnumerable.call(je,Ee[Ne])&&(Oe[Ee[Ne]]=je[Ee[Ne]]);return Oe};const ye="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ae=(je,Me)=>{var Oe,{prefixCls:Ee,bordered:Ne=!0,className:_e,rootClassName:Ze,getPopupContainer:Pe,popupClassName:Ue,dropdownClassName:Qe,listHeight:tt=256,placement:at,listItemHeight:lt=24,size:Ve,disabled:Xe,notFoundContent:nt,status:ct,builtinPlacements:ot,dropdownMatchSelectWidth:et,popupMatchSelectWidth:qe,direction:it,style:yt,allowClear:pt}=je,Dt=xe(je,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:At,getPrefixCls:st,renderEmpty:Ge,direction:We,virtual:le,popupMatchSelectWidth:fe,popupOverflow:ze,select:He}=ve.useContext(oe.E_),pe=st("select",Ee),Ie=st(),Ke=it!=null?it:We,{compactSize:Ye,compactItemClassnames:Je}=(0,ue.ri)(pe,Ke),[dt,bt]=(0,de.Z)(pe),vt=ve.useMemo(()=>{const{mode:Tn}=Dt;if(Tn!=="combobox")return Tn===ye?"combobox":Tn},[Dt.mode]),It=vt==="multiple"||vt==="tags",Vt=(0,we.Z)(Dt.suffixIcon,Dt.showArrow),kt=(Oe=qe!=null?qe:et)!==null&&Oe!==void 0?Oe:fe,{status:jt,hasFeedback:_t,isFormItemInput:Mt,feedbackIcon:ft}=ve.useContext(ae.aM),St=(0,ie.F)(jt,ct);let Nt;nt!==void 0?Nt=nt:vt==="combobox"?Nt=null:Nt=(Ge==null?void 0:Ge("Select"))||ve.createElement(me.Z,{componentName:"Select"});const{suffixIcon:Ft,itemIcon:Ut,removeIcon:sr,clearIcon:gr}=(0,Se.Z)(Object.assign(Object.assign({},Dt),{multiple:It,hasFeedback:_t,feedbackIcon:ft,showSuffixIcon:Vt,prefixCls:pe,showArrow:Dt.showArrow,componentName:"Select"})),wr=pt===!0?{clearIcon:gr}:pt,zr=(0,De.Z)(Dt,["suffixIcon","itemIcon"]),Wr=gt()(Ue||Qe,{[`${pe}-dropdown-${Ke}`]:Ke==="rtl"},Ze,bt),Br=(0,te.Z)(Tn=>{var Vr;return(Vr=Ve!=null?Ve:Ye)!==null&&Vr!==void 0?Vr:Tn}),Nr=ve.useContext(se.Z),on=Xe!=null?Xe:Nr,Mn=gt()({[`${pe}-lg`]:Br==="large",[`${pe}-sm`]:Br==="small",[`${pe}-rtl`]:Ke==="rtl",[`${pe}-borderless`]:!Ne,[`${pe}-in-form-item`]:Mt},(0,ie.Z)(pe,St,_t),Je,He==null?void 0:He.className,_e,Ze,bt),jn=ve.useMemo(()=>at!==void 0?at:Ke==="rtl"?"bottomRight":"bottomLeft",[at,Ke]),an=(0,he.Z)(ot,ze);return dt(ve.createElement(x.ZP,Object.assign({ref:Me,virtual:le,showSearch:He==null?void 0:He.showSearch},zr,{style:Object.assign(Object.assign({},He==null?void 0:He.style),yt),dropdownMatchSelectWidth:kt,builtinPlacements:an,transitionName:(0,ne.m)(Ie,"slide-up",Dt.transitionName),listHeight:tt,listItemHeight:lt,mode:vt,prefixCls:pe,placement:jn,direction:Ke,suffixIcon:Ft,menuItemSelectedIcon:Ut,removeIcon:sr,allowClear:wr,notFoundContent:Nt,className:Mn,getPopupContainer:Pe||At,dropdownClassName:Wr,disabled:on})))},Le=ve.forwardRef(Ae),Ce=(0,re.Z)(Le);Le.SECRET_COMBOBOX_MODE_DO_NOT_USE=ye,Le.Option=x.Wx,Le.OptGroup=x.Xo,Le._InternalPanelDoNotUseOrYouWillBeFired=Ce,Ht.default=Le},14154:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Le}});var Re=ke(17313),gt=ke(74207),x=ke(37613),De=ke(83116),ve=ke(13826),re=ke(92899);const ne=Ce=>{const{optionHeight:je,optionFontSize:Me,optionLineHeight:Oe,optionPadding:Ee}=Ce;return{position:"relative",display:"block",minHeight:je,padding:Ee,color:Ce.colorText,fontWeight:"normal",fontSize:Me,lineHeight:Oe,boxSizing:"border-box"}};var oe=Ce=>{const{antCls:je,componentCls:Me}=Ce,Oe=`${Me}-item`,Ee=`&${je}-slide-up-enter${je}-slide-up-enter-active`,Ne=`&${je}-slide-up-appear${je}-slide-up-appear-active`,_e=`&${je}-slide-up-leave${je}-slide-up-leave-active`,Ze=`${Me}-dropdown-placement-`;return[{[`${Me}-dropdown`]:Object.assign(Object.assign({},(0,Re.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}${Ze}bottomLeft,
|
|
|
${Ne}${Ze}bottomLeft
|
|
|
`]:{animationName:ve.fJ},[`
|
|
|
${Ee}${Ze}topLeft,
|
|
|
${Ne}${Ze}topLeft,
|
|
|
${Ee}${Ze}topRight,
|
|
|
${Ne}${Ze}topRight
|
|
|
`]:{animationName:ve.Qt},[`${_e}${Ze}bottomLeft`]:{animationName:ve.Uw},[`
|
|
|
${_e}${Ze}topLeft,
|
|
|
${_e}${Ze}topRight
|
|
|
`]:{animationName:ve.ly},"&-hidden":{display:"none"},[`${Oe}`]:Object.assign(Object.assign({},ne(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"},Re.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Oe}-option-disabled)`]:{backgroundColor:Ce.optionActiveBg},[`&-selected:not(${Oe}-option-disabled)`]:{color:Ce.optionSelectedColor,fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg,[`${Oe}-option-state`]:{color:Ce.colorPrimary}},"&-disabled":{[`&${Oe}-option-selected`]:{backgroundColor:Ce.colorBgContainerDisabled},color:Ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ce.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ve.oN)(Ce,"slide-up"),(0,ve.oN)(Ce,"slide-down"),(0,re.Fm)(Ce,"move-up"),(0,re.Fm)(Ce,"move-down")]};const se=2,me=Ce=>{let{controlHeightSM:je,controlHeight:Me,lineWidth:Oe}=Ce;const Ee=(Me-je)/2-Oe,Ne=Math.ceil(Ee/2);return[Ee,Ne]};function te(Ce,je){const{componentCls:Me,iconCls:Oe}=Ce,Ee=`${Me}-selection-overflow`,Ne=Ce.multipleSelectItemHeight,[_e]=me(Ce),Ze=je?`${Me}-${je}`:"";return{[`${Me}-multiple${Ze}`]:{fontSize:Ce.fontSize,[Ee]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Me}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${_e-se}px ${se*2}px`,borderRadius:Ce.borderRadius,[`${Me}-show-search&`]:{cursor:"text"},[`${Me}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${se}px 0`,lineHeight:`${Ne}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Me}-show-arrow ${Me}-selector,
|
|
|
&${Me}-allow-clear ${Me}-selector
|
|
|
`]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${Me}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ne,marginTop:se,marginBottom:se,lineHeight:`${Ne-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,[`${Me}-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,Re.Ro)()),{display:"inline-flex",alignItems:"center",color:Ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Oe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ce.colorIconHover}})},[`${Ee}-item + ${Ee}-item`]:{[`${Me}-selection-search`]:{marginInlineStart:0}},[`${Me}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-_e,"\n &-input,\n &-mirror\n ":{height:Ne,fontFamily:Ce.fontFamily,lineHeight:`${Ne}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"}},[`${Me}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var ue=Ce=>{const{componentCls:je}=Ce,Me=(0,x.TS)(Ce,{controlHeight:Ce.controlHeightSM,multipleSelectItemHeight:Ce.controlHeightXS,borderRadius:Ce.borderRadiusSM,borderRadiusSM:Ce.borderRadiusXS}),Oe=(0,x.TS)(Ce,{fontSize:Ce.fontSizeLG,controlHeight:Ce.controlHeightLG,multipleSelectItemHeight:Ce.multipleItemHeightLG,borderRadius:Ce.borderRadiusLG,borderRadiusSM:Ce.borderRadius}),[,Ee]=me(Ce);return[te(Ce),te(Me,"sm"),{[`${je}-multiple${je}-sm`]:{[`${je}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${je}-selection-search`]:{marginInlineStart:Ee}}},te(Oe,"lg")]};function de(Ce,je){const{componentCls:Me,inputPaddingHorizontalBase:Oe,borderRadius:Ee}=Ce,Ne=Ce.controlHeight-Ce.lineWidth*2,_e=Math.ceil(Ce.fontSize*1.25),Ze=je?`${Me}-${je}`:"";return{[`${Me}-single${Ze}`]:{fontSize:Ce.fontSize,[`${Me}-selector`]:Object.assign(Object.assign({},(0,Re.Wf)(Ce)),{display:"flex",borderRadius:Ee,[`${Me}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Oe,insetInlineEnd:Oe,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Me}-selection-item,
|
|
|
${Me}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Ne}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ne}px`}},[`${Me}-selection-item`]:{position:"relative",userSelect:"none"},[`${Me}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Me}-selection-item:after`,`${Me}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Me}-show-arrow ${Me}-selection-item,
|
|
|
&${Me}-show-arrow ${Me}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:_e},[`&${Me}-open ${Me}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${Me}-customize-input)`]:{[`${Me}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${Oe}px`,[`${Me}-selection-search-input`]:{height:Ne},"&:after":{lineHeight:`${Ne}px`}}},[`&${Me}-customize-input`]:{[`${Me}-selector`]:{"&:after":{display:"none"},[`${Me}-selection-search`]:{position:"static",width:"100%"},[`${Me}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Oe}px`,"&:after":{display:"none"}}}}}}}function he(Ce){const{componentCls:je}=Ce,Me=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[de(Ce),de((0,x.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${je}-single${je}-sm`]:{[`&:not(${je}-customize-input)`]:{[`${je}-selection-search`]:{insetInlineStart:Me,insetInlineEnd:Me},[`${je}-selector`]:{padding:`0 ${Me}px`},[`&${je}-show-arrow ${je}-selection-search`]:{insetInlineEnd:Me+Ce.fontSize*1.5},[`
|
|
|
&${je}-show-arrow ${je}-selection-item,
|
|
|
&${je}-show-arrow ${je}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ce.fontSize*1.5}}}},de((0,x.TS)(Ce,{controlHeight:Ce.singleItemHeightLG,fontSize:Ce.fontSizeLG,borderRadius:Ce.borderRadiusLG}),"lg")]}const we=Ce=>{const{componentCls:je,selectorBg:Me}=Ce;return{position:"relative",backgroundColor:Me,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${je}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${je}-disabled&`]:{color:Ce.colorTextDisabled,background:Ce.colorBgContainerDisabled,cursor:"not-allowed",[`${je}-multiple&`]:{background:Ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Se=function(Ce,je){let Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Oe,borderHoverColor:Ee,outlineColor:Ne,antCls:_e}=je,Ze=Me?{[`${Oe}-selector`]:{borderColor:Ee}}:{};return{[Ce]:{[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${_e}-pagination-size-changer)`]:Object.assign(Object.assign({},Ze),{[`${Oe}-focused& ${Oe}-selector`]:{borderColor:Ee,boxShadow:`0 0 0 ${je.controlOutlineWidth}px ${Ne}`,outline:0},[`&:hover ${Oe}-selector`]:{borderColor:Ee}})}}},xe=Ce=>{const{componentCls:je}=Ce;return{[`${je}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ye=Ce=>{const{componentCls:je,inputPaddingHorizontalBase:Me,iconCls:Oe}=Ce;return{[je]:Object.assign(Object.assign({},(0,Re.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${je}-customize-input) ${je}-selector`]:Object.assign(Object.assign({},we(Ce)),xe(Ce)),[`${je}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Re.vS),[`${je}-selection-placeholder`]:Object.assign(Object.assign({},Re.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${je}-arrow`]:Object.assign(Object.assign({},(0,Re.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Me,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Oe]:{verticalAlign:"top",transition:`transform ${Ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${je}-suffix)`]:{pointerEvents:"auto"}},[`${je}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${je}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Me,zIndex:1,display:"inline-block",width:Ce.fontSizeIcon,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ce.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ce.motionDurationMid} ease, opacity ${Ce.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ce.colorTextTertiary}},"&:hover":{[`${je}-clear`]:{opacity:1}}}),[`${je}-has-feedback`]:{[`${je}-clear`]:{insetInlineEnd:Me+Ce.fontSize+Ce.paddingXS}}}},Ae=Ce=>{const{componentCls:je}=Ce;return[{[je]:{[`&-borderless ${je}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${je}-in-form-item`]:{width:"100%"}}},ye(Ce),he(Ce),ue(Ce),oe(Ce),{[`${je}-rtl`]:{direction:"rtl"}},Se(je,(0,x.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),Se(`${je}-status-error`,(0,x.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),Se(`${je}-status-warning`,(0,x.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,gt.c)(Ce,{borderElCls:`${je}-selector`,focusElCls:`${je}-focused`})]};var Le=(0,De.Z)("Select",(Ce,je)=>{let{rootPrefixCls:Me}=je;const Oe=(0,x.TS)(Ce,{rootPrefixCls:Me,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[Ae(Oe)]},Ce=>{const{fontSize:je,lineHeight:Me,controlHeight:Oe,controlPaddingHorizontal:Ee,zIndexPopupBase:Ne,colorText:_e,fontWeightStrong:Ze,controlItemBgActive:Pe,controlItemBgHover:Ue,colorBgContainer:Qe,colorFillSecondary:tt,controlHeightLG:at,controlHeightSM:lt,colorBgContainerDisabled:Ve,colorTextDisabled:Xe}=Ce;return{zIndexPopup:Ne+50,optionSelectedColor:_e,optionSelectedFontWeight:Ze,optionSelectedBg:Pe,optionActiveBg:Ue,optionPadding:`${(Oe-je*Me)/2}px ${Ee}px`,optionFontSize:je,optionLineHeight:Me,optionHeight:Oe,selectorBg:Qe,clearBg:Qe,singleItemHeightLG:at,multipleItemBg:tt,multipleItemBorderColor:"transparent",multipleItemHeight:lt,multipleItemHeightLG:Oe,multipleSelectorBgDisabled:Ve,multipleItemColorDisabled:Xe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return gt}});const Re=x=>{const ve={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:x==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ve),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ve),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ve),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ve),{points:["br","tr"],offset:[0,-4]})}};function gt(x,De){return x||Re(De)}},84443:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Re}});function Re(gt,x){return x!==void 0?x:gt!==null}},66339:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});var Re=ke(40001),gt=ke(19248),x=ke(99267),De=ke(84105),ve=ke(58617),re=ke(47472),ne=ke(59301);function ie(oe){let{suffixIcon:se,clearIcon:me,menuItemSelectedIcon:te,removeIcon:ae,loading:ue,multiple:de,hasFeedback:he,prefixCls:we,showSuffixIcon:Se,feedbackIcon:xe,showArrow:ye,componentName:Ae}=oe;const Le=me!=null?me:ne.createElement(gt.Z,null),Ce=Ee=>se===null&&!he&&!ye?null:ne.createElement(ne.Fragment,null,Se!==!1&&Ee,he&&xe);let je=null;if(se!==void 0)je=Ce(se);else if(ue)je=Ce(ne.createElement(ve.Z,{spin:!0}));else{const Ee=`${we}-suffix`;je=Ne=>{let{open:_e,showSearch:Ze}=Ne;return Ce(_e&&Ze?ne.createElement(re.Z,{className:Ee}):ne.createElement(De.Z,{className:Ee}))}}let Me=null;te!==void 0?Me=te:de?Me=ne.createElement(Re.Z,null):Me=null;let Oe=null;return ae!==void 0?Oe=ae:Oe=ne.createElement(x.Z,null),{clearIcon:Le,suffixIcon:je,itemIcon:Me,removeIcon:Oe}}},61621:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ze}});var Re=ke(92310),gt=ke.n(Re),x=ke(59301),De=ke(36355),ve=ke(2738),ne=He=>{const{prefixCls:pe,className:Ie,style:Ke,size:Ye,shape:Je}=He,dt=gt()({[`${pe}-lg`]:Ye==="large",[`${pe}-sm`]:Ye==="small"}),bt=gt()({[`${pe}-circle`]:Je==="circle",[`${pe}-square`]:Je==="square",[`${pe}-round`]:Je==="round"}),vt=x.useMemo(()=>typeof Ye=="number"?{width:Ye,height:Ye,lineHeight:`${Ye}px`}:{},[Ye]);return x.createElement("span",{className:gt()(pe,dt,bt,Ie),style:Object.assign(Object.assign({},vt),Ke)})},ie=ke(36237),oe=ke(83116),se=ke(37613);const me=new ie.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),te=He=>({height:He,lineHeight:`${He}px`}),ae=He=>Object.assign({width:He},te(He)),ue=He=>({background:He.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:me,animationDuration:He.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),de=He=>Object.assign({width:He*5,minWidth:He*5},te(He)),he=He=>{const{skeletonAvatarCls:pe,gradientFromColor:Ie,controlHeight:Ke,controlHeightLG:Ye,controlHeightSM:Je}=He;return{[`${pe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ie},ae(Ke)),[`${pe}${pe}-circle`]:{borderRadius:"50%"},[`${pe}${pe}-lg`]:Object.assign({},ae(Ye)),[`${pe}${pe}-sm`]:Object.assign({},ae(Je))}},we=He=>{const{controlHeight:pe,borderRadiusSM:Ie,skeletonInputCls:Ke,controlHeightLG:Ye,controlHeightSM:Je,gradientFromColor:dt}=He;return{[`${Ke}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:dt,borderRadius:Ie},de(pe)),[`${Ke}-lg`]:Object.assign({},de(Ye)),[`${Ke}-sm`]:Object.assign({},de(Je))}},Se=He=>Object.assign({width:He},te(He)),xe=He=>{const{skeletonImageCls:pe,imageSizeBase:Ie,gradientFromColor:Ke,borderRadiusSM:Ye}=He;return{[`${pe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ke,borderRadius:Ye},Se(Ie*2)),{[`${pe}-path`]:{fill:"#bfbfbf"},[`${pe}-svg`]:Object.assign(Object.assign({},Se(Ie)),{maxWidth:Ie*4,maxHeight:Ie*4}),[`${pe}-svg${pe}-svg-circle`]:{borderRadius:"50%"}}),[`${pe}${pe}-circle`]:{borderRadius:"50%"}}},ye=(He,pe,Ie)=>{const{skeletonButtonCls:Ke}=He;return{[`${Ie}${Ke}-circle`]:{width:pe,minWidth:pe,borderRadius:"50%"},[`${Ie}${Ke}-round`]:{borderRadius:pe}}},Ae=He=>Object.assign({width:He*2,minWidth:He*2},te(He)),Le=He=>{const{borderRadiusSM:pe,skeletonButtonCls:Ie,controlHeight:Ke,controlHeightLG:Ye,controlHeightSM:Je,gradientFromColor:dt}=He;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ie}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:dt,borderRadius:pe,width:Ke*2,minWidth:Ke*2},Ae(Ke))},ye(He,Ke,Ie)),{[`${Ie}-lg`]:Object.assign({},Ae(Ye))}),ye(He,Ye,`${Ie}-lg`)),{[`${Ie}-sm`]:Object.assign({},Ae(Je))}),ye(He,Je,`${Ie}-sm`))},Ce=He=>{const{componentCls:pe,skeletonAvatarCls:Ie,skeletonTitleCls:Ke,skeletonParagraphCls:Ye,skeletonButtonCls:Je,skeletonInputCls:dt,skeletonImageCls:bt,controlHeight:vt,controlHeightLG:It,controlHeightSM:Vt,gradientFromColor:kt,padding:jt,marginSM:_t,borderRadius:Mt,titleHeight:ft,blockRadius:St,paragraphLiHeight:Nt,controlHeightXS:Ft,paragraphMarginTop:Ut}=He;return{[`${pe}`]:{display:"table",width:"100%",[`${pe}-header`]:{display:"table-cell",paddingInlineEnd:jt,verticalAlign:"top",[`${Ie}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:kt},ae(vt)),[`${Ie}-circle`]:{borderRadius:"50%"},[`${Ie}-lg`]:Object.assign({},ae(It)),[`${Ie}-sm`]:Object.assign({},ae(Vt))},[`${pe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ke}`]:{width:"100%",height:ft,background:kt,borderRadius:St,[`+ ${Ye}`]:{marginBlockStart:Vt}},[`${Ye}`]:{padding:0,"> li":{width:"100%",height:Nt,listStyle:"none",background:kt,borderRadius:St,"+ li":{marginBlockStart:Ft}}},[`${Ye}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${pe}-content`]:{[`${Ke}, ${Ye} > li`]:{borderRadius:Mt}}},[`${pe}-with-avatar ${pe}-content`]:{[`${Ke}`]:{marginBlockStart:_t,[`+ ${Ye}`]:{marginBlockStart:Ut}}},[`${pe}${pe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Le(He)),he(He)),we(He)),xe(He)),[`${pe}${pe}-block`]:{width:"100%",[`${Je}`]:{width:"100%"},[`${dt}`]:{width:"100%"}},[`${pe}${pe}-active`]:{[`
|
|
|
${Ke},
|
|
|
${Ye} > li,
|
|
|
${Ie},
|
|
|
${Je},
|
|
|
${dt},
|
|
|
${bt}
|
|
|
`]:Object.assign({},ue(He))}}};var je=(0,oe.Z)("Skeleton",He=>{const{componentCls:pe}=He,Ie=(0,se.TS)(He,{skeletonAvatarCls:`${pe}-avatar`,skeletonTitleCls:`${pe}-title`,skeletonParagraphCls:`${pe}-paragraph`,skeletonButtonCls:`${pe}-button`,skeletonInputCls:`${pe}-input`,skeletonImageCls:`${pe}-image`,imageSizeBase:He.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${He.gradientFromColor} 25%, ${He.gradientToColor} 37%, ${He.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ce(Ie)]},He=>{const{colorFillContent:pe,colorFill:Ie}=He,Ke=pe,Ye=Ie;return{color:Ke,colorGradientEnd:Ye,gradientFromColor:Ke,gradientToColor:Ye,titleHeight:He.controlHeight/2,blockRadius:He.borderRadiusSM,paragraphMarginTop:He.marginLG+He.marginXXS,paragraphLiHeight:He.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Oe=He=>{const{prefixCls:pe,className:Ie,rootClassName:Ke,active:Ye,shape:Je="circle",size:dt="default"}=He,{getPrefixCls:bt}=x.useContext(De.E_),vt=bt("skeleton",pe),[It,Vt]=je(vt),kt=(0,ve.Z)(He,["prefixCls","className"]),jt=gt()(vt,`${vt}-element`,{[`${vt}-active`]:Ye},Ie,Ke,Vt);return It(x.createElement("div",{className:jt},x.createElement(ne,Object.assign({prefixCls:`${vt}-avatar`,shape:Je,size:dt},kt))))},Ne=He=>{const{prefixCls:pe,className:Ie,rootClassName:Ke,active:Ye,block:Je=!1,size:dt="default"}=He,{getPrefixCls:bt}=x.useContext(De.E_),vt=bt("skeleton",pe),[It,Vt]=je(vt),kt=(0,ve.Z)(He,["prefixCls"]),jt=gt()(vt,`${vt}-element`,{[`${vt}-active`]:Ye,[`${vt}-block`]:Je},Ie,Ke,Vt);return It(x.createElement("div",{className:jt},x.createElement(ne,Object.assign({prefixCls:`${vt}-button`,size:dt},kt))))};const _e="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Pe=He=>{const{prefixCls:pe,className:Ie,rootClassName:Ke,style:Ye,active:Je}=He,{getPrefixCls:dt}=x.useContext(De.E_),bt=dt("skeleton",pe),[vt,It]=je(bt),Vt=gt()(bt,`${bt}-element`,{[`${bt}-active`]:Je},Ie,Ke,It);return vt(x.createElement("div",{className:Vt},x.createElement("div",{className:gt()(`${bt}-image`,Ie),style:Ye},x.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${bt}-image-svg`},x.createElement("path",{d:_e,className:`${bt}-image-path`})))))},Qe=He=>{const{prefixCls:pe,className:Ie,rootClassName:Ke,active:Ye,block:Je,size:dt="default"}=He,{getPrefixCls:bt}=x.useContext(De.E_),vt=bt("skeleton",pe),[It,Vt]=je(vt),kt=(0,ve.Z)(He,["prefixCls"]),jt=gt()(vt,`${vt}-element`,{[`${vt}-active`]:Ye,[`${vt}-block`]:Je},Ie,Ke,Vt);return It(x.createElement("div",{className:jt},x.createElement(ne,Object.assign({prefixCls:`${vt}-input`,size:dt},kt))))},tt=ke(60499),at={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},lt=at,Ve=ke(85221),Xe=function(pe,Ie){return x.createElement(Ve.Z,(0,tt.Z)({},pe,{ref:Ie,icon:lt}))},nt=x.forwardRef(Xe),ct=nt,et=He=>{const{prefixCls:pe,className:Ie,rootClassName:Ke,style:Ye,active:Je,children:dt}=He,{getPrefixCls:bt}=x.useContext(De.E_),vt=bt("skeleton",pe),[It,Vt]=je(vt),kt=gt()(vt,`${vt}-element`,{[`${vt}-active`]:Je},Vt,Ie,Ke),jt=dt!=null?dt:x.createElement(ct,null);return It(x.createElement("div",{className:kt},x.createElement("div",{className:gt()(`${vt}-image`,Ie),style:Ye},jt)))},qe=ke(77654),yt=He=>{const pe=bt=>{const{width:vt,rows:It=2}=He;if(Array.isArray(vt))return vt[bt];if(It-1===bt)return vt},{prefixCls:Ie,className:Ke,style:Ye,rows:Je}=He,dt=(0,qe.Z)(Array(Je)).map((bt,vt)=>x.createElement("li",{key:vt,style:{width:pe(vt)}}));return x.createElement("ul",{className:gt()(Ie,Ke),style:Ye},dt)},Dt=He=>{let{prefixCls:pe,className:Ie,width:Ke,style:Ye}=He;return x.createElement("h3",{className:gt()(pe,Ie),style:Object.assign({width:Ke},Ye)})};function At(He){return He&&typeof He=="object"?He:{}}function st(He,pe){return He&&!pe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ge(He,pe){return!He&&pe?{width:"38%"}:He&&pe?{width:"50%"}:{}}function We(He,pe){const Ie={};return(!He||!pe)&&(Ie.width="61%"),!He&&pe?Ie.rows=3:Ie.rows=2,Ie}const le=He=>{const{prefixCls:pe,loading:Ie,className:Ke,rootClassName:Ye,style:Je,children:dt,avatar:bt=!1,title:vt=!0,paragraph:It=!0,active:Vt,round:kt}=He,{getPrefixCls:jt,direction:_t,skeleton:Mt}=x.useContext(De.E_),ft=jt("skeleton",pe),[St,Nt]=je(ft);if(Ie||!("loading"in He)){const Ft=!!bt,Ut=!!vt,sr=!!It;let gr;if(Ft){const Wr=Object.assign(Object.assign({prefixCls:`${ft}-avatar`},st(Ut,sr)),At(bt));gr=x.createElement("div",{className:`${ft}-header`},x.createElement(ne,Object.assign({},Wr)))}let wr;if(Ut||sr){let Wr;if(Ut){const Nr=Object.assign(Object.assign({prefixCls:`${ft}-title`},Ge(Ft,sr)),At(vt));Wr=x.createElement(Dt,Object.assign({},Nr))}let Br;if(sr){const Nr=Object.assign(Object.assign({prefixCls:`${ft}-paragraph`},We(Ft,Ut)),At(It));Br=x.createElement(yt,Object.assign({},Nr))}wr=x.createElement("div",{className:`${ft}-content`},Wr,Br)}const zr=gt()(ft,{[`${ft}-with-avatar`]:Ft,[`${ft}-active`]:Vt,[`${ft}-rtl`]:_t==="rtl",[`${ft}-round`]:kt},Mt==null?void 0:Mt.className,Ke,Ye,Nt);return St(x.createElement("div",{className:zr,style:Object.assign(Object.assign({},Mt==null?void 0:Mt.style),Je)},gr,wr))}return typeof dt!="undefined"?dt:null};le.Button=Ne,le.Avatar=Oe,le.Input=Qe,le.Image=Pe,le.Node=et;var fe=le,ze=fe},31797:function(or,Ht,ke){"use strict";ke.d(Ht,{default:function(){return je}});var Re=ke(59301),gt=ke(56762),x=ke(92343),De=ke(92310),ve=ke.n(De),re=ke(36355),ne=ke(61621),oe=Me=>{const{value:Oe,formatter:Ee,precision:Ne,decimalSeparator:_e,groupSeparator:Ze="",prefixCls:Pe}=Me;let Ue;if(typeof Ee=="function")Ue=Ee(Oe);else{const Qe=String(Oe),tt=Qe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!tt||Qe==="-")Ue=Qe;else{const at=tt[1];let lt=tt[2]||"0",Ve=tt[4]||"";lt=lt.replace(/\B(?=(\d{3})+(?!\d))/g,Ze),typeof Ne=="number"&&(Ve=Ve.padEnd(Ne,"0").slice(0,Ne>0?Ne:0)),Ve&&(Ve=`${_e}${Ve}`),Ue=[Re.createElement("span",{key:"int",className:`${Pe}-content-value-int`},at,lt),Ve&&Re.createElement("span",{key:"decimal",className:`${Pe}-content-value-decimal`},Ve)]}}return Re.createElement("span",{className:`${Pe}-content-value`},Ue)},se=ke(17313),me=ke(83116),te=ke(37613);const ae=Me=>{const{componentCls:Oe,marginXXS:Ee,padding:Ne,colorTextDescription:_e,titleFontSize:Ze,colorTextHeading:Pe,contentFontSize:Ue,fontFamily:Qe}=Me;return{[`${Oe}`]:Object.assign(Object.assign({},(0,se.Wf)(Me)),{[`${Oe}-title`]:{marginBottom:Ee,color:_e,fontSize:Ze},[`${Oe}-skeleton`]:{paddingTop:Ne},[`${Oe}-content`]:{color:Pe,fontSize:Ue,fontFamily:Qe,[`${Oe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Oe}-content-prefix, ${Oe}-content-suffix`]:{display:"inline-block"},[`${Oe}-content-prefix`]:{marginInlineEnd:Ee},[`${Oe}-content-suffix`]:{marginInlineStart:Ee}}})}};var ue=(0,me.Z)("Statistic",Me=>{const Oe=(0,te.TS)(Me,{});return[ae(Oe)]},Me=>{const{fontSizeHeading3:Oe,fontSize:Ee}=Me;return{titleFontSize:Ee,contentFontSize:Oe}}),he=Me=>{const{prefixCls:Oe,className:Ee,rootClassName:Ne,style:_e,valueStyle:Ze,value:Pe=0,title:Ue,valueRender:Qe,prefix:tt,suffix:at,loading:lt=!1,onMouseEnter:Ve,onMouseLeave:Xe,decimalSeparator:nt=".",groupSeparator:ct=","}=Me,{getPrefixCls:ot,direction:et,statistic:qe}=Re.useContext(re.E_),it=ot("statistic",Oe),[yt,pt]=ue(it),Dt=Re.createElement(oe,Object.assign({decimalSeparator:nt,groupSeparator:ct,prefixCls:it},Me,{value:Pe})),At=ve()(it,{[`${it}-rtl`]:et==="rtl"},qe==null?void 0:qe.className,Ee,Ne,pt);return yt(Re.createElement("div",{className:At,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),_e),onMouseEnter:Ve,onMouseLeave:Xe},Ue&&Re.createElement("div",{className:`${it}-title`},Ue),Re.createElement(ne.Z,{paragraph:!1,loading:lt,className:`${it}-skeleton`},Re.createElement("div",{style:Ze,className:`${it}-content`},tt&&Re.createElement("span",{className:`${it}-content-prefix`},tt),Qe?Qe(Dt):Dt,at&&Re.createElement("span",{className:`${it}-content-suffix`},at)))))};const we=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Se(Me,Oe){let Ee=Me;const Ne=/\[[^\]]*]/g,_e=(Oe.match(Ne)||[]).map(Qe=>Qe.slice(1,-1)),Ze=Oe.replace(Ne,"[]"),Pe=we.reduce((Qe,tt)=>{let[at,lt]=tt;if(Qe.includes(at)){const Ve=Math.floor(Ee/lt);return Ee-=Ve*lt,Qe.replace(new RegExp(`${at}+`,"g"),Xe=>{const nt=Xe.length;return Ve.toString().padStart(nt,"0")})}return Qe},Ze);let Ue=0;return Pe.replace(Ne,()=>{const Qe=_e[Ue];return Ue+=1,Qe})}function xe(Me,Oe){const{format:Ee=""}=Oe,Ne=new Date(Me).getTime(),_e=Date.now(),Ze=Math.max(Ne-_e,0);return Se(Ze,Ee)}const ye=1e3/30;function Ae(Me){return new Date(Me).getTime()}const Le=Me=>{const{value:Oe,format:Ee="HH:mm:ss",onChange:Ne,onFinish:_e}=Me,Ze=(0,gt.Z)(),Pe=Re.useRef(null),Ue=()=>{_e==null||_e(),Pe.current&&(clearInterval(Pe.current),Pe.current=null)},Qe=()=>{const lt=Ae(Oe);lt>=Date.now()&&(Pe.current=setInterval(()=>{Ze(),Ne==null||Ne(lt-Date.now()),lt<Date.now()&&Ue()},ye))};Re.useEffect(()=>(Qe(),()=>{Pe.current&&(clearInterval(Pe.current),Pe.current=null)}),[Oe]);const tt=(lt,Ve)=>xe(lt,Object.assign(Object.assign({},Ve),{format:Ee})),at=lt=>(0,x.Tm)(lt,{title:void 0});return Re.createElement(he,Object.assign({},Me,{valueRender:at,formatter:tt}))};var Ce=Re.memo(Le);he.Countdown=Ce;var je=he},8378:function(or,Ht){"use strict";const ke=Re=>({[Re.componentCls]:{[`${Re.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${Re.motionDurationMid} ${Re.motionEaseInOut},
|
|
|
opacity ${Re.motionDurationMid} ${Re.motionEaseInOut} !important`}},[`${Re.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${Re.motionDurationMid} ${Re.motionEaseInOut},
|
|
|
opacity ${Re.motionDurationMid} ${Re.motionEaseInOut} !important`}}});Ht.Z=ke},92899:function(or,Ht,ke){"use strict";ke.d(Ht,{Fm:function(){return te}});var Re=ke(36237),gt=ke(95406);const x=new Re.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),De=new Re.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ve=new Re.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 Re.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ne=new Re.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 Re.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 Re.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 Re.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),me={"move-up":{inKeyframes:oe,outKeyframes:se},"move-down":{inKeyframes:x,outKeyframes:De},"move-left":{inKeyframes:ve,outKeyframes:re},"move-right":{inKeyframes:ne,outKeyframes:ie}},te=(ae,ue)=>{const{antCls:de}=ae,he=`${de}-${ue}`,{inKeyframes:we,outKeyframes:Se}=me[ue];return[(0,gt.R)(he,we,Se,ae.motionDurationMid),{[`
|
|
|
${he}-enter,
|
|
|
${he}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:ae.motionEaseOutCirc},[`${he}-leave`]:{animationTimingFunction:ae.motionEaseInOutCirc}}]}},13826:function(or,Ht,ke){"use strict";ke.d(Ht,{Qt:function(){return ve},Uw:function(){return De},fJ:function(){return x},ly:function(){return re},oN:function(){return te}});var Re=ke(36237),gt=ke(95406);const x=new Re.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),De=new Re.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ve=new Re.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),re=new Re.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ne=new Re.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ie=new Re.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),oe=new Re.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),se=new Re.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),me={"slide-up":{inKeyframes:x,outKeyframes:De},"slide-down":{inKeyframes:ve,outKeyframes:re},"slide-left":{inKeyframes:ne,outKeyframes:ie},"slide-right":{inKeyframes:oe,outKeyframes:se}},te=(ae,ue)=>{const{antCls:de}=ae,he=`${de}-${ue}`,{inKeyframes:we,outKeyframes:Se}=me[ue];return[(0,gt.R)(he,we,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}}]}},78673:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Ze}});var Re=ke(58617),gt=ke(92310),x=ke.n(gt),De=ke(60499),ve=ke(18642),re=ke(72190),ne=ke(42244),ie=ke(59301),oe=ke(18929),se=ke(10228),me=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],te=ie.forwardRef(function(Pe,Ue){var Qe,tt=Pe.prefixCls,at=tt===void 0?"rc-switch":tt,lt=Pe.className,Ve=Pe.checked,Xe=Pe.defaultChecked,nt=Pe.disabled,ct=Pe.loadingIcon,ot=Pe.checkedChildren,et=Pe.unCheckedChildren,qe=Pe.onClick,it=Pe.onChange,yt=Pe.onKeyDown,pt=(0,ne.Z)(Pe,me),Dt=(0,oe.Z)(!1,{value:Ve,defaultValue:Xe}),At=(0,re.Z)(Dt,2),st=At[0],Ge=At[1];function We(He,pe){var Ie=st;return nt||(Ie=He,Ge(Ie),it==null||it(Ie,pe)),Ie}function le(He){He.which===se.Z.LEFT?We(!1,He):He.which===se.Z.RIGHT&&We(!0,He),yt==null||yt(He)}function fe(He){var pe=We(!st,He);qe==null||qe(pe,He)}var ze=x()(at,lt,(Qe={},(0,ve.Z)(Qe,"".concat(at,"-checked"),st),(0,ve.Z)(Qe,"".concat(at,"-disabled"),nt),Qe));return ie.createElement("button",(0,De.Z)({},pt,{type:"button",role:"switch","aria-checked":st,disabled:nt,className:ze,ref:Ue,onKeyDown:le,onClick:fe}),ct,ie.createElement("span",{className:"".concat(at,"-inner")},ie.createElement("span",{className:"".concat(at,"-inner-checked")},ot),ie.createElement("span",{className:"".concat(at,"-inner-unchecked")},et)))});te.displayName="Switch";var ae=te,ue=ke(14088),de=ke(36355),he=ke(1684),we=ke(19716),Se=ke(64993),xe=ke(17313),ye=ke(83116),Ae=ke(37613);const Le=Pe=>{const{componentCls:Ue,trackHeightSM:Qe,trackPadding:tt,trackMinWidthSM:at,innerMinMarginSM:lt,innerMaxMarginSM:Ve,handleSizeSM:Xe}=Pe,nt=`${Ue}-inner`;return{[Ue]:{[`&${Ue}-small`]:{minWidth:at,height:Qe,lineHeight:`${Qe}px`,[`${Ue}-inner`]:{paddingInlineStart:Ve,paddingInlineEnd:lt,[`${nt}-checked`]:{marginInlineStart:`calc(-100% + ${Xe+tt*2}px - ${Ve*2}px)`,marginInlineEnd:`calc(100% - ${Xe+tt*2}px + ${Ve*2}px)`},[`${nt}-unchecked`]:{marginTop:-Qe,marginInlineStart:0,marginInlineEnd:0}},[`${Ue}-handle`]:{width:Xe,height:Xe},[`${Ue}-loading-icon`]:{top:(Xe-Pe.switchLoadingIconSize)/2,fontSize:Pe.switchLoadingIconSize},[`&${Ue}-checked`]:{[`${Ue}-inner`]:{paddingInlineStart:lt,paddingInlineEnd:Ve,[`${nt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${nt}-unchecked`]:{marginInlineStart:`calc(100% - ${Xe+tt*2}px + ${Ve*2}px)`,marginInlineEnd:`calc(-100% + ${Xe+tt*2}px - ${Ve*2}px)`}},[`${Ue}-handle`]:{insetInlineStart:`calc(100% - ${Xe+tt}px)`}},[`&:not(${Ue}-disabled):active`]:{[`&:not(${Ue}-checked) ${nt}`]:{[`${nt}-unchecked`]:{marginInlineStart:Pe.marginXXS/2,marginInlineEnd:-Pe.marginXXS/2}},[`&${Ue}-checked ${nt}`]:{[`${nt}-checked`]:{marginInlineStart:-Pe.marginXXS/2,marginInlineEnd:Pe.marginXXS/2}}}}}}},Ce=Pe=>{const{componentCls:Ue,handleSize:Qe}=Pe;return{[Ue]:{[`${Ue}-loading-icon${Pe.iconCls}`]:{position:"relative",top:(Qe-Pe.fontSize)/2,color:Pe.switchLoadingIconColor,verticalAlign:"top"},[`&${Ue}-checked ${Ue}-loading-icon`]:{color:Pe.switchColor}}}},je=Pe=>{const{componentCls:Ue,motion:Qe,trackPadding:tt,handleBg:at,handleShadow:lt,handleSize:Ve}=Pe,Xe=`${Ue}-handle`;return{[Ue]:{[Xe]:{position:"absolute",top:tt,insetInlineStart:tt,width:Ve,height:Ve,transition:`all ${Pe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:at,borderRadius:Ve/2,boxShadow:lt,transition:`all ${Pe.switchDuration} ease-in-out`,content:'""'}},[`&${Ue}-checked ${Xe}`]:{insetInlineStart:`calc(100% - ${Ve+tt}px)`},[`&:not(${Ue}-disabled):active`]:Qe?{[`${Xe}::before`]:{insetInlineEnd:Pe.switchHandleActiveInset,insetInlineStart:0},[`&${Ue}-checked ${Xe}::before`]:{insetInlineEnd:0,insetInlineStart:Pe.switchHandleActiveInset}}:{}}}},Me=Pe=>{const{componentCls:Ue,trackHeight:Qe,trackPadding:tt,innerMinMargin:at,innerMaxMargin:lt,handleSize:Ve}=Pe,Xe=`${Ue}-inner`;return{[Ue]:{[Xe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:lt,paddingInlineEnd:at,transition:`padding-inline-start ${Pe.switchDuration} ease-in-out, padding-inline-end ${Pe.switchDuration} ease-in-out`,[`${Xe}-checked, ${Xe}-unchecked`]:{display:"block",color:Pe.colorTextLightSolid,fontSize:Pe.fontSizeSM,transition:`margin-inline-start ${Pe.switchDuration} ease-in-out, margin-inline-end ${Pe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Xe}-checked`]:{marginInlineStart:`calc(-100% + ${Ve+tt*2}px - ${lt*2}px)`,marginInlineEnd:`calc(100% - ${Ve+tt*2}px + ${lt*2}px)`},[`${Xe}-unchecked`]:{marginTop:-Qe,marginInlineStart:0,marginInlineEnd:0}},[`&${Ue}-checked ${Xe}`]:{paddingInlineStart:at,paddingInlineEnd:lt,[`${Xe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Xe}-unchecked`]:{marginInlineStart:`calc(100% - ${Ve+tt*2}px + ${lt*2}px)`,marginInlineEnd:`calc(-100% + ${Ve+tt*2}px - ${lt*2}px)`}},[`&:not(${Ue}-disabled):active`]:{[`&:not(${Ue}-checked) ${Xe}`]:{[`${Xe}-unchecked`]:{marginInlineStart:tt*2,marginInlineEnd:-tt*2}},[`&${Ue}-checked ${Xe}`]:{[`${Xe}-checked`]:{marginInlineStart:-tt*2,marginInlineEnd:tt*2}}}}}},Oe=Pe=>{const{componentCls:Ue,trackHeight:Qe,trackMinWidth:tt}=Pe;return{[Ue]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(Pe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:tt,height:Qe,lineHeight:`${Qe}px`,verticalAlign:"middle",background:Pe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Pe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ue}-disabled)`]:{background:Pe.colorTextTertiary}}),(0,xe.Qy)(Pe)),{[`&${Ue}-checked`]:{background:Pe.switchColor,[`&:hover:not(${Ue}-disabled)`]:{background:Pe.colorPrimaryHover}},[`&${Ue}-loading, &${Ue}-disabled`]:{cursor:"not-allowed",opacity:Pe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ue}-rtl`]:{direction:"rtl"}})}};var Ee=(0,ye.Z)("Switch",Pe=>{const Ue=(0,Ae.TS)(Pe,{switchDuration:Pe.motionDurationMid,switchColor:Pe.colorPrimary,switchDisabledOpacity:Pe.opacityLoading,switchLoadingIconSize:Pe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Pe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Oe(Ue),Me(Ue),je(Ue),Ce(Ue),Le(Ue)]},Pe=>{const{fontSize:Ue,lineHeight:Qe,controlHeight:tt,colorWhite:at}=Pe,lt=Ue*Qe,Ve=tt/2,Xe=2,nt=lt-Xe*2,ct=Ve-Xe*2;return{trackHeight:lt,trackHeightSM:Ve,trackMinWidth:nt*2+Xe*4,trackMinWidthSM:ct*2+Xe*2,trackPadding:Xe,handleBg:at,handleSize:nt,handleSizeSM:ct,handleShadow:`0 2px 4px 0 ${new Se.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:nt/2,innerMaxMargin:nt+Xe+Xe*2,innerMinMarginSM:ct/2,innerMaxMarginSM:ct+Xe+Xe*2}}),Ne=function(Pe,Ue){var Qe={};for(var tt in Pe)Object.prototype.hasOwnProperty.call(Pe,tt)&&Ue.indexOf(tt)<0&&(Qe[tt]=Pe[tt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,tt=Object.getOwnPropertySymbols(Pe);at<tt.length;at++)Ue.indexOf(tt[at])<0&&Object.prototype.propertyIsEnumerable.call(Pe,tt[at])&&(Qe[tt[at]]=Pe[tt[at]]);return Qe};const _e=ie.forwardRef((Pe,Ue)=>{const{prefixCls:Qe,size:tt,disabled:at,loading:lt,className:Ve,rootClassName:Xe,style:nt}=Pe,ct=Ne(Pe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ot,direction:et,switch:qe}=ie.useContext(de.E_),it=ie.useContext(he.Z),yt=(at!=null?at:it)||lt,pt=ot("switch",Qe),Dt=ie.createElement("div",{className:`${pt}-handle`},lt&&ie.createElement(Re.Z,{className:`${pt}-loading-icon`})),[At,st]=Ee(pt),Ge=(0,we.Z)(tt),We=x()(qe==null?void 0:qe.className,{[`${pt}-small`]:Ge==="small",[`${pt}-loading`]:lt,[`${pt}-rtl`]:et==="rtl"},Ve,Xe,st),le=Object.assign(Object.assign({},qe==null?void 0:qe.style),nt);return At(ie.createElement(ue.Z,{component:"Switch"},ie.createElement(ae,Object.assign({},ct,{prefixCls:pt,className:We,style:le,disabled:yt,ref:Ue,loadingIcon:Dt}))))});_e.__ANT_SWITCH=!0;var Ze=_e},99313:function(or,Ht,ke){"use strict";ke.d(Ht,{default:function(){return Kt}});var Re=ke(99267),gt=ke(18785),x=ke(62772),De=ke(92310),ve=ke.n(De),re=ke(60499),ne=ke(18642),ie=ke(85899),oe=ke(72190),se=ke(43749),me=ke(42244),te=ke(59301),ae=ke(49658),ue=ke(18929),de=ke(77900),he=(0,te.createContext)(null),we=te.forwardRef(function(xt,Bt){var Ot=xt.prefixCls,Et=xt.className,zt=xt.style,Zt=xt.id,nr=xt.active,$t=xt.tabKey,pr=xt.children;return te.createElement("div",{id:Zt&&"".concat(Zt,"-panel-").concat($t),role:"tabpanel",tabIndex:nr?0:-1,"aria-labelledby":Zt&&"".concat(Zt,"-tab-").concat($t),"aria-hidden":!nr,style:zt,className:ve()(Ot,nr&&"".concat(Ot,"-active"),Et),ref:Bt},pr)}),Se=we,xe=["key","forceRender","style","className"];function ye(xt){var Bt=xt.id,Ot=xt.activeKey,Et=xt.animated,zt=xt.tabPosition,Zt=xt.destroyInactiveTabPane,nr=te.useContext(he),$t=nr.prefixCls,pr=nr.tabs,Ar=Et.tabPane,Lr="".concat($t,"-tabpane");return te.createElement("div",{className:ve()("".concat($t,"-content-holder"))},te.createElement("div",{className:ve()("".concat($t,"-content"),"".concat($t,"-content-").concat(zt),(0,ne.Z)({},"".concat($t,"-content-animated"),Ar))},pr.map(function(Er){var tr=Er.key,br=Er.forceRender,Wt=Er.style,Qt=Er.className,Xt=(0,me.Z)(Er,xe),qt=tr===Ot;return te.createElement(de.default,(0,re.Z)({key:tr,visible:qt,forceRender:br,removeOnLeave:!!Zt,leavedClassName:"".concat(Lr,"-hidden")},Et.tabPaneMotion),function(mr,ar){var xr=mr.style,Lt=mr.className;return te.createElement(Se,(0,re.Z)({},Xt,{prefixCls:Lr,id:Bt,tabKey:tr,animated:Ar,active:qt,style:(0,ie.Z)((0,ie.Z)({},Wt),xr),className:ve()(Qt,Lt),ref:ar}))})})))}var Ae=ke(77654),Le=ke(29301),Ce=ke(6089),je=ke(8654),Me={width:0,height:0,left:0,top:0};function Oe(xt,Bt,Ot){return(0,te.useMemo)(function(){for(var Et,zt=new Map,Zt=Bt.get((Et=xt[0])===null||Et===void 0?void 0:Et.key)||Me,nr=Zt.left+Zt.width,$t=0;$t<xt.length;$t+=1){var pr=xt[$t].key,Ar=Bt.get(pr);if(!Ar){var Lr;Ar=Bt.get((Lr=xt[$t-1])===null||Lr===void 0?void 0:Lr.key)||Me}var Er=zt.get(pr)||(0,ie.Z)({},Ar);Er.right=nr-Er.left-Er.width,zt.set(pr,Er)}return zt},[xt.map(function(Et){return Et.key}).join("_"),Bt,Ot])}function Ee(xt,Bt){var Ot=te.useRef(xt),Et=te.useState({}),zt=(0,oe.Z)(Et,2),Zt=zt[1];function nr($t){var pr=typeof $t=="function"?$t(Ot.current):$t;pr!==Ot.current&&Bt(pr,Ot.current),Ot.current=pr,Zt({})}return[Ot.current,nr]}var Ne=.1,_e=.01,Ze=20,Pe=Math.pow(.995,Ze);function Ue(xt,Bt){var Ot=(0,te.useState)(),Et=(0,oe.Z)(Ot,2),zt=Et[0],Zt=Et[1],nr=(0,te.useState)(0),$t=(0,oe.Z)(nr,2),pr=$t[0],Ar=$t[1],Lr=(0,te.useState)(0),Er=(0,oe.Z)(Lr,2),tr=Er[0],br=Er[1],Wt=(0,te.useState)(),Qt=(0,oe.Z)(Wt,2),Xt=Qt[0],qt=Qt[1],mr=(0,te.useRef)();function ar(lr){var fr=lr.touches[0],hr=fr.screenX,Cr=fr.screenY;Zt({x:hr,y:Cr}),window.clearInterval(mr.current)}function xr(lr){if(zt){lr.preventDefault();var fr=lr.touches[0],hr=fr.screenX,Cr=fr.screenY;Zt({x:hr,y:Cr});var _r=hr-zt.x,Zr=Cr-zt.y;Bt(_r,Zr);var $r=Date.now();Ar($r),br($r-pr),qt({x:_r,y:Zr})}}function Lt(){if(zt&&(Zt(null),qt(null),Xt)){var lr=Xt.x/tr,fr=Xt.y/tr,hr=Math.abs(lr),Cr=Math.abs(fr);if(Math.max(hr,Cr)<Ne)return;var _r=lr,Zr=fr;mr.current=window.setInterval(function(){if(Math.abs(_r)<_e&&Math.abs(Zr)<_e){window.clearInterval(mr.current);return}_r*=Pe,Zr*=Pe,Bt(_r*Ze,Zr*Ze)},Ze)}}var Yt=(0,te.useRef)();function er(lr){var fr=lr.deltaX,hr=lr.deltaY,Cr=0,_r=Math.abs(fr),Zr=Math.abs(hr);_r===Zr?Cr=Yt.current==="x"?fr:hr:_r>Zr?(Cr=fr,Yt.current="x"):(Cr=hr,Yt.current="y"),Bt(-Cr,-Cr)&&lr.preventDefault()}var dr=(0,te.useRef)(null);dr.current={onTouchStart:ar,onTouchMove:xr,onTouchEnd:Lt,onWheel:er},te.useEffect(function(){function lr(_r){dr.current.onTouchStart(_r)}function fr(_r){dr.current.onTouchMove(_r)}function hr(_r){dr.current.onTouchEnd(_r)}function Cr(_r){dr.current.onWheel(_r)}return document.addEventListener("touchmove",fr,{passive:!1}),document.addEventListener("touchend",hr,{passive:!1}),xt.current.addEventListener("touchstart",lr,{passive:!1}),xt.current.addEventListener("wheel",Cr),function(){document.removeEventListener("touchmove",fr),document.removeEventListener("touchend",hr)}},[])}var Qe=ke(34280);function tt(xt){var Bt=(0,te.useState)(0),Ot=(0,oe.Z)(Bt,2),Et=Ot[0],zt=Ot[1],Zt=(0,te.useRef)(0),nr=(0,te.useRef)();return nr.current=xt,(0,Qe.o)(function(){var $t;($t=nr.current)===null||$t===void 0||$t.call(nr)},[Et]),function(){Zt.current===Et&&(Zt.current+=1,zt(Zt.current))}}function at(xt){var Bt=(0,te.useRef)([]),Ot=(0,te.useState)({}),Et=(0,oe.Z)(Ot,2),zt=Et[1],Zt=(0,te.useRef)(typeof xt=="function"?xt():xt),nr=tt(function(){var pr=Zt.current;Bt.current.forEach(function(Ar){pr=Ar(pr)}),Bt.current=[],Zt.current=pr,zt({})});function $t(pr){Bt.current.push(pr),nr()}return[Zt.current,$t]}var lt={width:0,height:0,left:0,top:0,right:0};function Ve(xt,Bt,Ot,Et,zt,Zt,nr){var $t=nr.tabs,pr=nr.tabPosition,Ar=nr.rtl,Lr,Er,tr;return["top","bottom"].includes(pr)?(Lr="width",Er=Ar?"right":"left",tr=Math.abs(Ot)):(Lr="height",Er="top",tr=-Ot),(0,te.useMemo)(function(){if(!$t.length)return[0,0];for(var br=$t.length,Wt=br,Qt=0;Qt<br;Qt+=1){var Xt=xt.get($t[Qt].key)||lt;if(Xt[Er]+Xt[Lr]>tr+Bt){Wt=Qt-1;break}}for(var qt=0,mr=br-1;mr>=0;mr-=1){var ar=xt.get($t[mr].key)||lt;if(ar[Er]<tr){qt=mr+1;break}}return qt>=Wt?[0,0]:[qt,Wt]},[xt,Bt,Et,zt,Zt,tr,pr,$t.map(function(br){return br.key}).join("_"),Ar])}function Xe(xt){var Bt;return xt instanceof Map?(Bt={},xt.forEach(function(Ot,Et){Bt[Et]=Ot})):Bt=xt,JSON.stringify(Bt)}var nt="TABS_DQ";function ct(xt){return String(xt).replace(/"/g,nt)}function ot(xt,Bt,Ot,Et){return!(!Ot||Et||xt===!1||xt===void 0&&(Bt===!1||Bt===null))}function et(xt,Bt){var Ot=xt.prefixCls,Et=xt.editable,zt=xt.locale,Zt=xt.style;return!Et||Et.showAdd===!1?null:te.createElement("button",{ref:Bt,type:"button",className:"".concat(Ot,"-nav-add"),style:Zt,"aria-label":(zt==null?void 0:zt.addAriaLabel)||"Add tab",onClick:function($t){Et.onEdit("add",{event:$t})}},Et.addIcon||"+")}var qe=te.forwardRef(et),it=te.forwardRef(function(xt,Bt){var Ot=xt.position,Et=xt.prefixCls,zt=xt.extra;if(!zt)return null;var Zt,nr={};return(0,se.Z)(zt)==="object"&&!te.isValidElement(zt)?nr=zt:nr.right=zt,Ot==="right"&&(Zt=nr.right),Ot==="left"&&(Zt=nr.left),Zt?te.createElement("div",{className:"".concat(Et,"-extra-content"),ref:Bt},Zt):null}),yt=it,pt=ke(31561),Dt=ke(15285),At=ke(10228);function st(xt,Bt){var Ot=xt.prefixCls,Et=xt.id,zt=xt.tabs,Zt=xt.locale,nr=xt.mobile,$t=xt.moreIcon,pr=$t===void 0?"More":$t,Ar=xt.moreTransitionName,Lr=xt.style,Er=xt.className,tr=xt.editable,br=xt.tabBarGutter,Wt=xt.rtl,Qt=xt.removeAriaLabel,Xt=xt.onTabClick,qt=xt.getPopupContainer,mr=xt.popupClassName,ar=(0,te.useState)(!1),xr=(0,oe.Z)(ar,2),Lt=xr[0],Yt=xr[1],er=(0,te.useState)(null),dr=(0,oe.Z)(er,2),lr=dr[0],fr=dr[1],hr="".concat(Et,"-more-popup"),Cr="".concat(Ot,"-dropdown"),_r=lr!==null?"".concat(hr,"-").concat(lr):null,Zr=Zt==null?void 0:Zt.dropdownAriaLabel;function $r(On,un){On.preventDefault(),On.stopPropagation(),tr.onEdit("remove",{key:un,event:On})}var nn=te.createElement(Dt.ZP,{onClick:function(un){var mn=un.key,yn=un.domEvent;Xt(mn,yn),Yt(!1)},prefixCls:"".concat(Cr,"-menu"),id:hr,tabIndex:-1,role:"listbox","aria-activedescendant":_r,selectedKeys:[lr],"aria-label":Zr!==void 0?Zr:"expanded dropdown"},zt.map(function(On){var un=On.closable,mn=On.disabled,yn=On.closeIcon,en=On.key,Ln=On.label,Xn=ot(un,yn,tr,mn);return te.createElement(Dt.sN,{key:en,id:"".concat(hr,"-").concat(en),role:"option","aria-controls":Et&&"".concat(Et,"-panel-").concat(en),disabled:mn},te.createElement("span",null,Ln),Xn&&te.createElement("button",{type:"button","aria-label":Qt||"remove",tabIndex:0,className:"".concat(Cr,"-menu-item-remove"),onClick:function(Kr){Kr.stopPropagation(),$r(Kr,en)}},yn||tr.removeIcon||"\xD7"))}));function cn(On){for(var un=zt.filter(function(Xn){return!Xn.disabled}),mn=un.findIndex(function(Xn){return Xn.key===lr})||0,yn=un.length,en=0;en<yn;en+=1){mn=(mn+On+yn)%yn;var Ln=un[mn];if(!Ln.disabled){fr(Ln.key);return}}}function dn(On){var un=On.which;if(!Lt){[At.Z.DOWN,At.Z.SPACE,At.Z.ENTER].includes(un)&&(Yt(!0),On.preventDefault());return}switch(un){case At.Z.UP:cn(-1),On.preventDefault();break;case At.Z.DOWN:cn(1),On.preventDefault();break;case At.Z.ESC:Yt(!1);break;case At.Z.SPACE:case At.Z.ENTER:lr!==null&&Xt(lr,On);break}}(0,te.useEffect)(function(){var On=document.getElementById(_r);On&&On.scrollIntoView&&On.scrollIntoView(!1)},[lr]),(0,te.useEffect)(function(){Lt||fr(null)},[Lt]);var Jr=(0,ne.Z)({},Wt?"marginRight":"marginLeft",br);zt.length||(Jr.visibility="hidden",Jr.order=1);var wn=ve()((0,ne.Z)({},"".concat(Cr,"-rtl"),Wt)),fn=nr?null:te.createElement(pt.Z,{prefixCls:Cr,overlay:nn,trigger:["hover"],visible:zt.length?Lt:!1,transitionName:Ar,onVisibleChange:Yt,overlayClassName:ve()(wn,mr),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:qt},te.createElement("button",{type:"button",className:"".concat(Ot,"-nav-more"),style:Jr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":hr,id:"".concat(Et,"-more"),"aria-expanded":Lt,onKeyDown:dn},pr));return te.createElement("div",{className:ve()("".concat(Ot,"-nav-operations"),Er),style:Lr,ref:Bt},fn,te.createElement(qe,{prefixCls:Ot,locale:Zt,editable:tr}))}var Ge=te.memo(te.forwardRef(st),function(xt,Bt){return Bt.tabMoving});function We(xt){var Bt,Ot=xt.prefixCls,Et=xt.id,zt=xt.active,Zt=xt.tab,nr=Zt.key,$t=Zt.label,pr=Zt.disabled,Ar=Zt.closeIcon,Lr=xt.closable,Er=xt.renderWrapper,tr=xt.removeAriaLabel,br=xt.editable,Wt=xt.onClick,Qt=xt.onFocus,Xt=xt.style,qt="".concat(Ot,"-tab"),mr=ot(Lr,Ar,br,pr);function ar(Yt){pr||Wt(Yt)}function xr(Yt){Yt.preventDefault(),Yt.stopPropagation(),br.onEdit("remove",{key:nr,event:Yt})}var Lt=te.createElement("div",{key:nr,"data-node-key":ct(nr),className:ve()(qt,(Bt={},(0,ne.Z)(Bt,"".concat(qt,"-with-remove"),mr),(0,ne.Z)(Bt,"".concat(qt,"-active"),zt),(0,ne.Z)(Bt,"".concat(qt,"-disabled"),pr),Bt)),style:Xt,onClick:ar},te.createElement("div",{role:"tab","aria-selected":zt,id:Et&&"".concat(Et,"-tab-").concat(nr),className:"".concat(qt,"-btn"),"aria-controls":Et&&"".concat(Et,"-panel-").concat(nr),"aria-disabled":pr,tabIndex:pr?null:0,onClick:function(er){er.stopPropagation(),ar(er)},onKeyDown:function(er){[At.Z.SPACE,At.Z.ENTER].includes(er.which)&&(er.preventDefault(),ar(er))},onFocus:Qt},$t),mr&&te.createElement("button",{type:"button","aria-label":tr||"remove",tabIndex:0,className:"".concat(qt,"-remove"),onClick:function(er){er.stopPropagation(),xr(er)}},Ar||br.removeIcon||"\xD7"));return Er?Er(Lt):Lt}var le=We,fe=ke(16089),ze=function(Bt){var Ot=Bt.activeTabOffset,Et=Bt.horizontal,zt=Bt.rtl,Zt=Bt.indicatorSize,nr=(0,te.useState)(),$t=(0,oe.Z)(nr,2),pr=$t[0],Ar=$t[1],Lr=(0,te.useRef)(),Er=function(Wt){return typeof Zt=="function"?Zt(Wt):typeof Zt=="number"?Zt:Wt};function tr(){fe.Z.cancel(Lr.current)}return(0,te.useEffect)(function(){var br={};return Ot&&(Et?(zt?(br.right=Ot.right+Ot.width/2,br.transform="translateX(50%)"):(br.left=Ot.left+Ot.width/2,br.transform="translateX(-50%)"),br.width=Er(Ot.width)):(br.top=Ot.top+Ot.height/2,br.transform="translateY(-50%)",br.height=Er(Ot.height))),tr(),Lr.current=(0,fe.Z)(function(){Ar(br)}),tr},[Ot,Et,zt,Zt]),{style:pr}},He=ze,pe=function(Bt){var Ot=Bt.current||{},Et=Ot.offsetWidth,zt=Et===void 0?0:Et,Zt=Ot.offsetHeight,nr=Zt===void 0?0:Zt;return[zt,nr]},Ie=function(Bt,Ot){return Bt[Ot?0:1]};function Ke(xt,Bt){var Ot,Et=te.useContext(he),zt=Et.prefixCls,Zt=Et.tabs,nr=xt.className,$t=xt.style,pr=xt.id,Ar=xt.animated,Lr=xt.activeKey,Er=xt.rtl,tr=xt.extra,br=xt.editable,Wt=xt.locale,Qt=xt.tabPosition,Xt=xt.tabBarGutter,qt=xt.children,mr=xt.onTabClick,ar=xt.onTabScroll,xr=xt.indicatorSize,Lt=(0,te.useRef)(),Yt=(0,te.useRef)(),er=(0,te.useRef)(),dr=(0,te.useRef)(),lr=(0,te.useRef)(),fr=(0,te.useRef)(),hr=(0,te.useRef)(),Cr=Qt==="top"||Qt==="bottom",_r=Ee(0,function(si,Nn){Cr&&ar&&ar({direction:si>Nn?"left":"right"})}),Zr=(0,oe.Z)(_r,2),$r=Zr[0],nn=Zr[1],cn=Ee(0,function(si,Nn){!Cr&&ar&&ar({direction:si>Nn?"top":"bottom"})}),dn=(0,oe.Z)(cn,2),Jr=dn[0],wn=dn[1],fn=(0,te.useState)([0,0]),On=(0,oe.Z)(fn,2),un=On[0],mn=On[1],yn=(0,te.useState)([0,0]),en=(0,oe.Z)(yn,2),Ln=en[0],Xn=en[1],hn=(0,te.useState)([0,0]),Kr=(0,oe.Z)(hn,2),Ur=Kr[0],Dn=Kr[1],bn=(0,te.useState)([0,0]),Pn=(0,oe.Z)(bn,2),Un=Pn[0],Zn=Pn[1],kn=at(new Map),zn=(0,oe.Z)(kn,2),di=zn[0],pn=zn[1],An=Oe(Zt,di,Ln[0]),Yn=Ie(un,Cr),ei=Ie(Ln,Cr),Si=Ie(Ur,Cr),Ei=Ie(Un,Cr),bi=Yn<ei+Si,ci=bi?Yn-Ei:Yn-Si,Oi="".concat(zt,"-nav-operations-hidden"),Di=0,Cn=0;Cr&&Er?(Di=0,Cn=Math.max(0,ei-ci)):(Di=Math.min(0,ci-ei),Cn=0);function Sn(si){return si<Di?Di:si>Cn?Cn:si}var rn=(0,te.useRef)(),ln=(0,te.useState)(),ii=(0,oe.Z)(ln,2),xi=ii[0],Ci=ii[1];function Ai(){Ci(Date.now())}function gi(){window.clearTimeout(rn.current)}Ue(dr,function(si,Nn){function $n(wi,vi){wi(function(Mi){var pa=Sn(Mi+vi);return pa})}return bi?(Cr?$n(nn,si):$n(wn,Nn),gi(),Ai(),!0):!1}),(0,te.useEffect)(function(){return gi(),xi&&(rn.current=window.setTimeout(function(){Ci(0)},100)),gi},[xi]);var Ii=Ve(An,ci,Cr?$r:Jr,ei,Si,Ei,(0,ie.Z)((0,ie.Z)({},xt),{},{tabs:Zt})),Ki=(0,oe.Z)(Ii,2),Fi=Ki[0],Yi=Ki[1],li=(0,Ce.Z)(function(){var si=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lr,Nn=An.get(si)||{width:0,height:0,left:0,right:0,top:0};if(Cr){var $n=$r;Er?Nn.right<$r?$n=Nn.right:Nn.right+Nn.width>$r+ci&&($n=Nn.right+Nn.width-ci):Nn.left<-$r?$n=-Nn.left:Nn.left+Nn.width>-$r+ci&&($n=-(Nn.left+Nn.width-ci)),wn(0),nn(Sn($n))}else{var wi=Jr;Nn.top<-Jr?wi=-Nn.top:Nn.top+Nn.height>-Jr+ci&&(wi=-(Nn.top+Nn.height-ci)),nn(0),wn(Sn(wi))}}),hi={};Qt==="top"||Qt==="bottom"?hi[Er?"marginRight":"marginLeft"]=Xt:hi.marginTop=Xt;var Li=Zt.map(function(si,Nn){var $n=si.key;return te.createElement(le,{id:pr,prefixCls:zt,key:$n,tab:si,style:Nn===0?void 0:hi,closable:si.closable,editable:br,active:$n===Lr,renderWrapper:qt,removeAriaLabel:Wt==null?void 0:Wt.removeAriaLabel,onClick:function(vi){mr($n,vi)},onFocus:function(){li($n),Ai(),dr.current&&(Er||(dr.current.scrollLeft=0),dr.current.scrollTop=0)}})}),yr=function(){return pn(function(){var Nn=new Map;return Zt.forEach(function($n){var wi,vi=$n.key,Mi=(wi=lr.current)===null||wi===void 0?void 0:wi.querySelector('[data-node-key="'.concat(ct(vi),'"]'));Mi&&Nn.set(vi,{width:Mi.offsetWidth,height:Mi.offsetHeight,left:Mi.offsetLeft,top:Mi.offsetTop})}),Nn})};(0,te.useEffect)(function(){yr()},[Zt.map(function(si){return si.key}).join("_")]);var vr=tt(function(){var si=pe(Lt),Nn=pe(Yt),$n=pe(er);mn([si[0]-Nn[0]-$n[0],si[1]-Nn[1]-$n[1]]);var wi=pe(hr);Dn(wi);var vi=pe(fr);Zn(vi);var Mi=pe(lr);Xn([Mi[0]-wi[0],Mi[1]-wi[1]]),yr()}),Mr=Zt.slice(0,Fi),Gr=Zt.slice(Yi+1),Xr=[].concat((0,Ae.Z)(Mr),(0,Ae.Z)(Gr)),vn=An.get(Lr),Ir=He({activeTabOffset:vn,horizontal:Cr,rtl:Er,indicatorSize:xr}),Qr=Ir.style;(0,te.useEffect)(function(){li()},[Lr,Di,Cn,Xe(vn),Xe(An),Cr]),(0,te.useEffect)(function(){vr()},[Er]);var In=!!Xr.length,Kn="".concat(zt,"-nav-wrap"),Jn,gn,ri,pi;return Cr?Er?(gn=$r>0,Jn=$r!==Cn):(Jn=$r<0,gn=$r!==Di):(ri=Jr<0,pi=Jr!==Di),te.createElement(Le.Z,{onResize:vr},te.createElement("div",{ref:(0,je.x1)(Bt,Lt),role:"tablist",className:ve()("".concat(zt,"-nav"),nr),style:$t,onKeyDown:function(){Ai()}},te.createElement(yt,{ref:Yt,position:"left",extra:tr,prefixCls:zt}),te.createElement(Le.Z,{onResize:vr},te.createElement("div",{className:ve()(Kn,(Ot={},(0,ne.Z)(Ot,"".concat(Kn,"-ping-left"),Jn),(0,ne.Z)(Ot,"".concat(Kn,"-ping-right"),gn),(0,ne.Z)(Ot,"".concat(Kn,"-ping-top"),ri),(0,ne.Z)(Ot,"".concat(Kn,"-ping-bottom"),pi),Ot)),ref:dr},te.createElement(Le.Z,{onResize:vr},te.createElement("div",{ref:lr,className:"".concat(zt,"-nav-list"),style:{transform:"translate(".concat($r,"px, ").concat(Jr,"px)"),transition:xi?"none":void 0}},Li,te.createElement(qe,{ref:hr,prefixCls:zt,locale:Wt,editable:br,style:(0,ie.Z)((0,ie.Z)({},Li.length===0?void 0:hi),{},{visibility:In?"hidden":null})}),te.createElement("div",{className:ve()("".concat(zt,"-ink-bar"),(0,ne.Z)({},"".concat(zt,"-ink-bar-animated"),Ar.inkBar)),style:Qr}))))),te.createElement(Ge,(0,re.Z)({},xt,{removeAriaLabel:Wt==null?void 0:Wt.removeAriaLabel,ref:fr,prefixCls:zt,tabs:Xr,className:!In&&Oi,tabMoving:!!xi})),te.createElement(yt,{ref:er,position:"right",extra:tr,prefixCls:zt})))}var Ye=te.forwardRef(Ke),Je=["renderTabBar"],dt=["label","key"];function bt(xt){var Bt=xt.renderTabBar,Ot=(0,me.Z)(xt,Je),Et=te.useContext(he),zt=Et.tabs;if(Bt){var Zt=(0,ie.Z)((0,ie.Z)({},Ot),{},{panes:zt.map(function(nr){var $t=nr.label,pr=nr.key,Ar=(0,me.Z)(nr,dt);return te.createElement(Se,(0,re.Z)({tab:$t,key:pr,tabKey:pr},Ar))})});return Bt(Zt,Ye)}return te.createElement(Ye,Ot)}var vt=ke(48736);function It(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Bt;return xt===!1?Bt={inkBar:!1,tabPane:!1}:xt===!0?Bt={inkBar:!0,tabPane:!1}:Bt=(0,ie.Z)({inkBar:!0},(0,se.Z)(xt)==="object"?xt:{}),Bt.tabPaneMotion&&Bt.tabPane===void 0&&(Bt.tabPane=!0),!Bt.tabPaneMotion&&Bt.tabPane&&(Bt.tabPane=!1),Bt}var Vt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],kt=0;function jt(xt,Bt){var Ot,Et=xt.id,zt=xt.prefixCls,Zt=zt===void 0?"rc-tabs":zt,nr=xt.className,$t=xt.items,pr=xt.direction,Ar=xt.activeKey,Lr=xt.defaultActiveKey,Er=xt.editable,tr=xt.animated,br=xt.tabPosition,Wt=br===void 0?"top":br,Qt=xt.tabBarGutter,Xt=xt.tabBarStyle,qt=xt.tabBarExtraContent,mr=xt.locale,ar=xt.moreIcon,xr=xt.moreTransitionName,Lt=xt.destroyInactiveTabPane,Yt=xt.renderTabBar,er=xt.onChange,dr=xt.onTabClick,lr=xt.onTabScroll,fr=xt.getPopupContainer,hr=xt.popupClassName,Cr=xt.indicatorSize,_r=(0,me.Z)(xt,Vt),Zr=te.useMemo(function(){return($t||[]).filter(function(Zn){return Zn&&(0,se.Z)(Zn)==="object"&&"key"in Zn})},[$t]),$r=pr==="rtl",nn=It(tr),cn=(0,te.useState)(!1),dn=(0,oe.Z)(cn,2),Jr=dn[0],wn=dn[1];(0,te.useEffect)(function(){wn((0,ae.Z)())},[]);var fn=(0,ue.Z)(function(){var Zn;return(Zn=Zr[0])===null||Zn===void 0?void 0:Zn.key},{value:Ar,defaultValue:Lr}),On=(0,oe.Z)(fn,2),un=On[0],mn=On[1],yn=(0,te.useState)(function(){return Zr.findIndex(function(Zn){return Zn.key===un})}),en=(0,oe.Z)(yn,2),Ln=en[0],Xn=en[1];(0,te.useEffect)(function(){var Zn=Zr.findIndex(function(zn){return zn.key===un});if(Zn===-1){var kn;Zn=Math.max(0,Math.min(Ln,Zr.length-1)),mn((kn=Zr[Zn])===null||kn===void 0?void 0:kn.key)}Xn(Zn)},[Zr.map(function(Zn){return Zn.key}).join("_"),un,Ln]);var hn=(0,ue.Z)(null,{value:Et}),Kr=(0,oe.Z)(hn,2),Ur=Kr[0],Dn=Kr[1];(0,te.useEffect)(function(){Et||(Dn("rc-tabs-".concat(kt)),kt+=1)},[]);function bn(Zn,kn){dr==null||dr(Zn,kn);var zn=Zn!==un;mn(Zn),zn&&(er==null||er(Zn))}var Pn={id:Ur,activeKey:un,animated:nn,tabPosition:Wt,rtl:$r,mobile:Jr},Un=(0,ie.Z)((0,ie.Z)({},Pn),{},{editable:Er,locale:mr,moreIcon:ar,moreTransitionName:xr,tabBarGutter:Qt,onTabClick:bn,onTabScroll:lr,extra:qt,style:Xt,panes:null,getPopupContainer:fr,popupClassName:hr,indicatorSize:Cr});return te.createElement(he.Provider,{value:{tabs:Zr,prefixCls:Zt}},te.createElement("div",(0,re.Z)({ref:Bt,id:Et,className:ve()(Zt,"".concat(Zt,"-").concat(Wt),(Ot={},(0,ne.Z)(Ot,"".concat(Zt,"-mobile"),Jr),(0,ne.Z)(Ot,"".concat(Zt,"-editable"),Er),(0,ne.Z)(Ot,"".concat(Zt,"-rtl"),$r),Ot),nr)},_r),te.createElement(bt,(0,re.Z)({},Un,{renderTabBar:Yt})),te.createElement(ye,(0,re.Z)({destroyInactiveTabPane:Lt},Pn,{animated:nn}))))}var _t=te.forwardRef(jt),Mt=_t,ft=Mt,St=ke(36355),Nt=ke(19716),Ut=()=>null,sr=ke(62892);const gr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function wr(xt){let Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ot;return Bt===!1?Ot={inkBar:!1,tabPane:!1}:Bt===!0?Ot={inkBar:!0,tabPane:!0}:Ot=Object.assign({inkBar:!0},typeof Bt=="object"?Bt:{}),Ot.tabPane&&(Ot.tabPaneMotion=Object.assign(Object.assign({},gr),{motionName:(0,sr.m)(xt,"switch")})),Ot}var zr=ke(11592),Wr=function(xt,Bt){var Ot={};for(var Et in xt)Object.prototype.hasOwnProperty.call(xt,Et)&&Bt.indexOf(Et)<0&&(Ot[Et]=xt[Et]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Et=Object.getOwnPropertySymbols(xt);zt<Et.length;zt++)Bt.indexOf(Et[zt])<0&&Object.prototype.propertyIsEnumerable.call(xt,Et[zt])&&(Ot[Et[zt]]=xt[Et[zt]]);return Ot};function Br(xt){return xt.filter(Bt=>Bt)}function Nr(xt,Bt){if(xt)return xt;const Ot=(0,zr.Z)(Bt).map(Et=>{if(te.isValidElement(Et)){const{key:zt,props:Zt}=Et,nr=Zt||{},{tab:$t}=nr,pr=Wr(nr,["tab"]);return Object.assign(Object.assign({key:String(zt)},pr),{label:$t})}return null});return Br(Ot)}var on=ke(17313),Mn=ke(83116),jn=ke(37613),an=ke(13826),Vr=xt=>{const{componentCls:Bt,motionDurationSlow:Ot}=xt;return[{[Bt]:{[`${Bt}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ot}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ot}`}}}}},[(0,an.oN)(xt,"slide-up"),(0,an.oN)(xt,"slide-down")]]};const Gn=xt=>{const{componentCls:Bt,tabsCardPadding:Ot,cardBg:Et,cardGutter:zt,colorBorderSecondary:Zt,itemSelectedColor:nr}=xt;return{[`${Bt}-card`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{[`${Bt}-tab`]:{margin:0,padding:Ot,background:Et,border:`${xt.lineWidth}px ${xt.lineType} ${Zt}`,transition:`all ${xt.motionDurationSlow} ${xt.motionEaseInOut}`},[`${Bt}-tab-active`]:{color:nr,background:xt.colorBgContainer},[`${Bt}-ink-bar`]:{visibility:"hidden"}},[`&${Bt}-top, &${Bt}-bottom`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{[`${Bt}-tab + ${Bt}-tab`]:{marginLeft:{_skip_check_:!0,value:`${zt}px`}}}},[`&${Bt}-top`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{[`${Bt}-tab`]:{borderRadius:`${xt.borderRadiusLG}px ${xt.borderRadiusLG}px 0 0`},[`${Bt}-tab-active`]:{borderBottomColor:xt.colorBgContainer}}},[`&${Bt}-bottom`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{[`${Bt}-tab`]:{borderRadius:`0 0 ${xt.borderRadiusLG}px ${xt.borderRadiusLG}px`},[`${Bt}-tab-active`]:{borderTopColor:xt.colorBgContainer}}},[`&${Bt}-left, &${Bt}-right`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{[`${Bt}-tab + ${Bt}-tab`]:{marginTop:`${zt}px`}}},[`&${Bt}-left`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{[`${Bt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xt.borderRadiusLG}px 0 0 ${xt.borderRadiusLG}px`}},[`${Bt}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:xt.colorBgContainer}}}},[`&${Bt}-right`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{[`${Bt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${xt.borderRadiusLG}px ${xt.borderRadiusLG}px 0`}},[`${Bt}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:xt.colorBgContainer}}}}}}},Wn=xt=>{const{componentCls:Bt,itemHoverColor:Ot,dropdownEdgeChildVerticalPadding:Et}=xt;return{[`${Bt}-dropdown`]:Object.assign(Object.assign({},(0,on.Wf)(xt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:xt.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Bt}-dropdown-menu`]:{maxHeight:xt.tabsDropdownHeight,margin:0,padding:`${Et}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:xt.colorBgContainer,backgroundClip:"padding-box",borderRadius:xt.borderRadiusLG,outline:"none",boxShadow:xt.boxShadowSecondary,"&-item":Object.assign(Object.assign({},on.vS),{display:"flex",alignItems:"center",minWidth:xt.tabsDropdownWidth,margin:0,padding:`${xt.paddingXXS}px ${xt.paddingSM}px`,color:xt.colorText,fontWeight:"normal",fontSize:xt.fontSize,lineHeight:xt.lineHeight,cursor:"pointer",transition:`all ${xt.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:xt.marginSM},color:xt.colorTextDescription,fontSize:xt.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ot}},"&:hover":{background:xt.controlItemBgHover},"&-disabled":{"&, &:hover":{color:xt.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Jt=xt=>{const{componentCls:Bt,margin:Ot,colorBorderSecondary:Et,horizontalMargin:zt,verticalItemPadding:Zt,verticalItemMargin:nr}=xt;return{[`${Bt}-top, ${Bt}-bottom`]:{flexDirection:"column",[`> ${Bt}-nav, > div > ${Bt}-nav`]:{margin:zt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${xt.lineWidth}px ${xt.lineType} ${Et}`,content:"''"},[`${Bt}-ink-bar`]:{height:xt.lineWidthBold,"&-animated":{transition:`width ${xt.motionDurationSlow}, left ${xt.motionDurationSlow},
|
|
|
right ${xt.motionDurationSlow}`}},[`${Bt}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:xt.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:xt.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:xt.boxShadowTabsOverflowRight},[`&${Bt}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Bt}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Bt}-top`]:{[`> ${Bt}-nav,
|
|
|
> div > ${Bt}-nav`]:{"&::before":{bottom:0},[`${Bt}-ink-bar`]:{bottom:0}}},[`${Bt}-bottom`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{order:1,marginTop:`${Ot}px`,marginBottom:0,"&::before":{top:0},[`${Bt}-ink-bar`]:{top:0}},[`> ${Bt}-content-holder, > div > ${Bt}-content-holder`]:{order:0}},[`${Bt}-left, ${Bt}-right`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{flexDirection:"column",minWidth:xt.controlHeight*1.25,[`${Bt}-tab`]:{padding:Zt,textAlign:"center"},[`${Bt}-tab + ${Bt}-tab`]:{margin:nr},[`${Bt}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:xt.controlHeight},"&::before":{top:0,boxShadow:xt.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:xt.boxShadowTabsOverflowBottom},[`&${Bt}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Bt}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Bt}-ink-bar`]:{width:xt.lineWidthBold,"&-animated":{transition:`height ${xt.motionDurationSlow}, top ${xt.motionDurationSlow}`}},[`${Bt}-nav-list, ${Bt}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Bt}-left`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{[`${Bt}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Bt}-content-holder, > div > ${Bt}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${xt.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${xt.lineWidth}px ${xt.lineType} ${xt.colorBorder}`},[`> ${Bt}-content > ${Bt}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:xt.paddingLG}}}},[`${Bt}-right`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{order:1,[`${Bt}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Bt}-content-holder, > div > ${Bt}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-xt.lineWidth},borderRight:{_skip_check_:!0,value:`${xt.lineWidth}px ${xt.lineType} ${xt.colorBorder}`},[`> ${Bt}-content > ${Bt}-tabpane`]:{paddingRight:{_skip_check_:!0,value:xt.paddingLG}}}}}},jr=xt=>{const{componentCls:Bt,cardPaddingSM:Ot,cardPaddingLG:Et,horizontalItemPaddingSM:zt,horizontalItemPaddingLG:Zt}=xt;return{[Bt]:{"&-small":{[`> ${Bt}-nav`]:{[`${Bt}-tab`]:{padding:zt,fontSize:xt.titleFontSizeSM}}},"&-large":{[`> ${Bt}-nav`]:{[`${Bt}-tab`]:{padding:Zt,fontSize:xt.titleFontSizeLG}}}},[`${Bt}-card`]:{[`&${Bt}-small`]:{[`> ${Bt}-nav`]:{[`${Bt}-tab`]:{padding:Ot}},[`&${Bt}-bottom`]:{[`> ${Bt}-nav ${Bt}-tab`]:{borderRadius:`0 0 ${xt.borderRadius}px ${xt.borderRadius}px`}},[`&${Bt}-top`]:{[`> ${Bt}-nav ${Bt}-tab`]:{borderRadius:`${xt.borderRadius}px ${xt.borderRadius}px 0 0`}},[`&${Bt}-right`]:{[`> ${Bt}-nav ${Bt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${xt.borderRadius}px ${xt.borderRadius}px 0`}}},[`&${Bt}-left`]:{[`> ${Bt}-nav ${Bt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xt.borderRadius}px 0 0 ${xt.borderRadius}px`}}}},[`&${Bt}-large`]:{[`> ${Bt}-nav`]:{[`${Bt}-tab`]:{padding:Et}}}}}},Rr=xt=>{const{componentCls:Bt,itemActiveColor:Ot,itemHoverColor:Et,iconCls:zt,tabsHorizontalItemMargin:Zt,horizontalItemPadding:nr,itemSelectedColor:$t,itemColor:pr}=xt,Ar=`${Bt}-tab`;return{[Ar]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:nr,fontSize:xt.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:pr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ot}},(0,on.Qy)(xt)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-xt.marginXXS},marginLeft:{_skip_check_:!0,value:xt.marginXS},color:xt.colorTextDescription,fontSize:xt.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${xt.motionDurationSlow}`,"&:hover":{color:xt.colorTextHeading}},"&:hover":{color:Et},[`&${Ar}-active ${Ar}-btn`]:{color:$t,textShadow:xt.tabsActiveTextShadow},[`&${Ar}-disabled`]:{color:xt.colorTextDisabled,cursor:"not-allowed"},[`&${Ar}-disabled ${Ar}-btn, &${Ar}-disabled ${Bt}-remove`]:{"&:focus, &:active":{color:xt.colorTextDisabled}},[`& ${Ar}-remove ${zt}`]:{margin:0},[zt]:{marginRight:{_skip_check_:!0,value:xt.marginSM}}},[`${Ar} + ${Ar}`]:{margin:{_skip_check_:!0,value:Zt}}}},Tr=xt=>{const{componentCls:Bt,tabsHorizontalItemMarginRTL:Ot,iconCls:Et,cardGutter:zt}=xt;return{[`${Bt}-rtl`]:{direction:"rtl",[`${Bt}-nav`]:{[`${Bt}-tab`]:{margin:{_skip_check_:!0,value:Ot},[`${Bt}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Et]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${xt.marginSM}px`}},[`${Bt}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${xt.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${xt.marginXXS}px`},[Et]:{margin:0}}}},[`&${Bt}-left`]:{[`> ${Bt}-nav`]:{order:1},[`> ${Bt}-content-holder`]:{order:0}},[`&${Bt}-right`]:{[`> ${Bt}-nav`]:{order:0},[`> ${Bt}-content-holder`]:{order:1}},[`&${Bt}-card${Bt}-top, &${Bt}-card${Bt}-bottom`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{[`${Bt}-tab + ${Bt}-tab`]:{marginRight:{_skip_check_:!0,value:zt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Bt}-dropdown-rtl`]:{direction:"rtl"},[`${Bt}-menu-item`]:{[`${Bt}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Sr=xt=>{const{componentCls:Bt,tabsCardPadding:Ot,cardHeight:Et,cardGutter:zt,itemHoverColor:Zt,itemActiveColor:nr,colorBorderSecondary:$t}=xt;return{[Bt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,on.Wf)(xt)),{display:"flex",[`> ${Bt}-nav, > div > ${Bt}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Bt}-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 ${xt.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Bt}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${xt.motionDurationSlow}`},[`${Bt}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Bt}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Bt}-nav-more`]:{position:"relative",padding:Ot,background:"transparent",border:0,color:xt.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:xt.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Bt}-nav-add`]:Object.assign({minWidth:Et,marginLeft:{_skip_check_:!0,value:zt},padding:`0 ${xt.paddingXS}px`,background:"transparent",border:`${xt.lineWidth}px ${xt.lineType} ${$t}`,borderRadius:`${xt.borderRadiusLG}px ${xt.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:xt.colorText,transition:`all ${xt.motionDurationSlow} ${xt.motionEaseInOut}`,"&:hover":{color:Zt},"&:active, &:focus:not(:focus-visible)":{color:nr}},(0,on.Qy)(xt))},[`${Bt}-extra-content`]:{flex:"none"},[`${Bt}-ink-bar`]:{position:"absolute",background:xt.inkBarColor,pointerEvents:"none"}}),Rr(xt)),{[`${Bt}-content`]:{position:"relative",width:"100%"},[`${Bt}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Bt}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Bt}-centered`]:{[`> ${Bt}-nav, > div > ${Bt}-nav`]:{[`${Bt}-nav-wrap`]:{[`&:not([class*='${Bt}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Dr=(0,Mn.Z)("Tabs",xt=>{const Bt=(0,jn.TS)(xt,{tabsCardPadding:xt.cardPadding||`${(xt.cardHeight-Math.round(xt.fontSize*xt.lineHeight))/2-xt.lineWidth}px ${xt.padding}px`,dropdownEdgeChildVerticalPadding:xt.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${xt.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${xt.horizontalItemGutter}px`});return[jr(Bt),Tr(Bt),Jt(Bt),Wn(Bt),Gn(Bt),Sr(Bt),Vr(Bt)]},xt=>{const Bt=xt.controlHeightLG;return{zIndexPopup:xt.zIndexPopupBase+50,cardBg:xt.colorFillAlter,cardHeight:Bt,cardPadding:"",cardPaddingSM:`${xt.paddingXXS*1.5}px ${xt.padding}px`,cardPaddingLG:`${xt.paddingXS}px ${xt.padding}px ${xt.paddingXXS*1.5}px`,titleFontSize:xt.fontSize,titleFontSizeLG:xt.fontSizeLG,titleFontSizeSM:xt.fontSize,inkBarColor:xt.colorPrimary,horizontalMargin:`0 0 ${xt.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${xt.paddingSM}px 0`,horizontalItemPaddingSM:`${xt.paddingXS}px 0`,horizontalItemPaddingLG:`${xt.padding}px 0`,verticalItemPadding:`${xt.paddingXS}px ${xt.paddingLG}px`,verticalItemMargin:`${xt.margin}px 0 0 0`,itemColor:xt.colorText,itemSelectedColor:xt.colorPrimary,itemHoverColor:xt.colorPrimaryHover,itemActiveColor:xt.colorPrimaryActive,cardGutter:xt.marginXXS/2}}),Or=function(xt,Bt){var Ot={};for(var Et in xt)Object.prototype.hasOwnProperty.call(xt,Et)&&Bt.indexOf(Et)<0&&(Ot[Et]=xt[Et]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Et=Object.getOwnPropertySymbols(xt);zt<Et.length;zt++)Bt.indexOf(Et[zt])<0&&Object.prototype.propertyIsEnumerable.call(xt,Et[zt])&&(Ot[Et[zt]]=xt[Et[zt]]);return Ot};const Yr=xt=>{const{type:Bt,className:Ot,rootClassName:Et,size:zt,onEdit:Zt,hideAdd:nr,centered:$t,addIcon:pr,popupClassName:Ar,children:Lr,items:Er,animated:tr,style:br,indicatorSize:Wt}=xt,Qt=Or(xt,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Xt,moreIcon:qt=te.createElement(gt.Z,null)}=Qt,{direction:mr,tabs:ar,getPrefixCls:xr,getPopupContainer:Lt}=te.useContext(St.E_),Yt=xr("tabs",Xt),[er,dr]=Dr(Yt);let lr;Bt==="editable-card"&&(lr={onEdit:($r,nn)=>{let{key:cn,event:dn}=nn;Zt==null||Zt($r==="add"?dn:cn,$r)},removeIcon:te.createElement(Re.Z,null),addIcon:pr||te.createElement(x.Z,null),showAdd:nr!==!0});const fr=xr(),hr=Nr(Er,Lr),Cr=wr(Yt,tr),_r=(0,Nt.Z)(zt),Zr=Object.assign(Object.assign({},ar==null?void 0:ar.style),br);return er(te.createElement(ft,Object.assign({direction:mr,getPopupContainer:Lt,moreTransitionName:`${fr}-slide-up`},Qt,{items:hr,className:ve()({[`${Yt}-${_r}`]:_r,[`${Yt}-card`]:["card","editable-card"].includes(Bt),[`${Yt}-editable-card`]:Bt==="editable-card",[`${Yt}-centered`]:$t},ar==null?void 0:ar.className,Ot,Et,dr),popupClassName:ve()(Ar,dr),style:Zr,editable:lr,moreIcon:qt,prefixCls:Yt,animated:Cr,indicatorSize:Wt!=null?Wt:ar==null?void 0:ar.indicatorSize})))};Yr.TabPane=Ut;var Kt=Yr},17574:function(or,Ht,ke){"use strict";ke.d(Ht,{default:function(){return Ve}});var Re=ke(38028),gt=ke(77654),x=ke(52671),De=ke(8657),ve=ke(60499),re=ke(59301),ne={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=ne,oe=ke(85221),se=function(nt,ct){return re.createElement(oe.Z,(0,ve.Z)({},nt,{ref:ct,icon:ie}))},me=re.forwardRef(se),te=me,ae=ke(92310),ue=ke.n(ae),de=ke(35654),he=ke(71430),we=ke(36355),Se=ke(56082),xe=ke(62892),ye=ke(20648);const Ae=4;function Le(Xe){const{dropPosition:nt,dropLevelOffset:ct,prefixCls:ot,indent:et,direction:qe="ltr"}=Xe,it=qe==="ltr"?"left":"right",yt=qe==="ltr"?"right":"left",pt={[it]:-ct*et+Ae,[yt]:0};switch(nt){case-1:pt.top=-3;break;case 1:pt.bottom=-3;break;default:pt.bottom=-3,pt[it]=et+Ae;break}return re.createElement("div",{style:pt,className:`${ot}-drop-indicator`})}var Ce=ke(71997),Me=re.forwardRef((Xe,nt)=>{const{getPrefixCls:ct,direction:ot,virtual:et,tree:qe}=re.useContext(we.E_),{prefixCls:it,className:yt,showIcon:pt=!1,showLine:Dt,switcherIcon:At,blockNode:st=!1,children:Ge,checkable:We=!1,selectable:le=!0,draggable:fe,motion:ze,style:He}=Xe,pe=ct("tree",it),Ie=ct(),Ke=ze!=null?ze:Object.assign(Object.assign({},(0,xe.Z)(Ie)),{motionAppear:!1}),Ye=Object.assign(Object.assign({},Xe),{checkable:We,selectable:le,showIcon:pt,motion:Ke,blockNode:st,showLine:!!Dt,dropIndicatorRender:Le}),[Je,dt]=(0,ye.ZP)(pe),bt=re.useMemo(()=>{if(!fe)return!1;let It={};switch(typeof fe){case"function":It.nodeDraggable=fe;break;case"object":It=Object.assign({},fe);break;default:break}return It.icon!==!1&&(It.icon=It.icon||re.createElement(Se.Z,null)),It},[fe]),vt=It=>re.createElement(Ce.Z,{prefixCls:pe,switcherIcon:At,treeNodeProps:It,showLine:Dt});return Je(re.createElement(Re.Z,Object.assign({itemHeight:20,ref:nt,virtual:et},Ye,{style:Object.assign(Object.assign({},qe==null?void 0:qe.style),He),prefixCls:pe,className:ue()({[`${pe}-icon-hide`]:!pt,[`${pe}-block-node`]:st,[`${pe}-unselectable`]:!le,[`${pe}-rtl`]:ot==="rtl"},qe==null?void 0:qe.className,yt,dt),direction:ot,checkable:We&&re.createElement("span",{className:`${pe}-checkbox-inner`}),selectable:le,switcherIcon:vt,draggable:bt}),Ge))}),Oe;(function(Xe){Xe[Xe.None=0]="None",Xe[Xe.Start=1]="Start",Xe[Xe.End=2]="End"})(Oe||(Oe={}));function Ee(Xe,nt){function ct(ot){const{key:et,children:qe}=ot;nt(et,ot)!==!1&&Ee(qe||[],nt)}Xe.forEach(ct)}function Ne(Xe){let{treeData:nt,expandedKeys:ct,startKey:ot,endKey:et}=Xe;const qe=[];let it=Oe.None;if(ot&&ot===et)return[ot];if(!ot||!et)return[];function yt(pt){return pt===ot||pt===et}return Ee(nt,pt=>{if(it===Oe.End)return!1;if(yt(pt)){if(qe.push(pt),it===Oe.None)it=Oe.Start;else if(it===Oe.Start)return it=Oe.End,!1}else it===Oe.Start&&qe.push(pt);return ct.includes(pt)}),qe}function _e(Xe,nt){const ct=(0,gt.Z)(nt),ot=[];return Ee(Xe,(et,qe)=>{const it=ct.indexOf(et);return it!==-1&&(ot.push(qe),ct.splice(it,1)),!!ct.length}),ot}var Ze=function(Xe,nt){var ct={};for(var ot in Xe)Object.prototype.hasOwnProperty.call(Xe,ot)&&nt.indexOf(ot)<0&&(ct[ot]=Xe[ot]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,ot=Object.getOwnPropertySymbols(Xe);et<ot.length;et++)nt.indexOf(ot[et])<0&&Object.prototype.propertyIsEnumerable.call(Xe,ot[et])&&(ct[ot[et]]=Xe[ot[et]]);return ct};function Pe(Xe){const{isLeaf:nt,expanded:ct}=Xe;return nt?re.createElement(x.Z,null):ct?re.createElement(De.Z,null):re.createElement(te,null)}function Ue(Xe){let{treeData:nt,children:ct}=Xe;return nt||(0,he.zn)(ct)}const Qe=(Xe,nt)=>{var{defaultExpandAll:ct,defaultExpandParent:ot,defaultExpandedKeys:et}=Xe,qe=Ze(Xe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const it=re.useRef(),yt=re.useRef(),pt=()=>{const{keyEntities:bt}=(0,he.I8)(Ue(qe));let vt;return ct?vt=Object.keys(bt):ot?vt=(0,de.r7)(qe.expandedKeys||et||[],bt):vt=qe.expandedKeys||et,vt},[Dt,At]=re.useState(qe.selectedKeys||qe.defaultSelectedKeys||[]),[st,Ge]=re.useState(()=>pt());re.useEffect(()=>{"selectedKeys"in qe&&At(qe.selectedKeys)},[qe.selectedKeys]),re.useEffect(()=>{"expandedKeys"in qe&&Ge(qe.expandedKeys)},[qe.expandedKeys]);const We=(bt,vt)=>{var It;return"expandedKeys"in qe||Ge(bt),(It=qe.onExpand)===null||It===void 0?void 0:It.call(qe,bt,vt)},le=(bt,vt)=>{var It;const{multiple:Vt}=qe,{node:kt,nativeEvent:jt}=vt,{key:_t=""}=kt,Mt=Ue(qe),ft=Object.assign(Object.assign({},vt),{selected:!0}),St=(jt==null?void 0:jt.ctrlKey)||(jt==null?void 0:jt.metaKey),Nt=jt==null?void 0:jt.shiftKey;let Ft;Vt&&St?(Ft=bt,it.current=_t,yt.current=Ft,ft.selectedNodes=_e(Mt,Ft)):Vt&&Nt?(Ft=Array.from(new Set([].concat((0,gt.Z)(yt.current||[]),(0,gt.Z)(Ne({treeData:Mt,expandedKeys:st,startKey:_t,endKey:it.current}))))),ft.selectedNodes=_e(Mt,Ft)):(Ft=[_t],it.current=_t,yt.current=Ft,ft.selectedNodes=_e(Mt,Ft)),(It=qe.onSelect)===null||It===void 0||It.call(qe,Ft,ft),"selectedKeys"in qe||At(Ft)},{getPrefixCls:fe,direction:ze}=re.useContext(we.E_),{prefixCls:He,className:pe,showIcon:Ie=!0,expandAction:Ke="click"}=qe,Ye=Ze(qe,["prefixCls","className","showIcon","expandAction"]),Je=fe("tree",He),dt=ue()(`${Je}-directory`,{[`${Je}-directory-rtl`]:ze==="rtl"},pe);return re.createElement(Me,Object.assign({icon:Pe,ref:nt,blockNode:!0},Ye,{showIcon:Ie,expandAction:Ke,prefixCls:Je,className:dt,expandedKeys:st,selectedKeys:Dt,onSelect:le,onExpand:We}))};var at=re.forwardRef(Qe);const lt=Me;lt.DirectoryTree=at,lt.TreeNode=Re.O;var Ve=lt},20648:function(or,Ht,ke){"use strict";ke.d(Ht,{TM:function(){return ae},Yk:function(){return te}});var Re=ke(36237),gt=ke(98447),x=ke(17313),De=ke(8378),ve=ke(37613),re=ke(83116);const ne=new Re.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:we,treeNodePadding:Se,titleHeight:xe,nodeSelectedBg:ye,nodeHoverBg:Ae}=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"},[`${we}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Se,insetInlineStart:0,border:`1px solid ${de.colorPrimary}`,opacity:0,animationName:ne,animationDuration:de.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${we}`]:{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(${we}-disabled).filter-node ${he}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${he}-draggable-icon`]:{flexShrink:0,width:xe,lineHeight:`${xe}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${de.motionDurationSlow}`,[`${we}:hover &`]:{opacity:.45}},[`&${we}-disabled`]:{[`${he}-draggable-icon`]:{visibility:"hidden"}}}},[`${he}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:xe}},[`${he}-draggable-icon`]:{visibility:"hidden"},[`${he}-switcher`]:Object.assign(Object.assign({},ie(ue,de)),{position:"relative",flex:"none",alignSelf:"stretch",width:xe,margin:0,lineHeight:`${xe}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:xe/2,bottom:-Se,marginInlineStart:-1,borderInlineEnd:`1px solid ${de.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:xe/2*.8,height:xe/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:xe,margin:0,padding:`0 ${de.paddingXS/2}px`,color:"inherit",lineHeight:`${xe}px`,background:"transparent",borderRadius:de.borderRadius,cursor:"pointer",transition:`all ${de.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Ae},[`&${he}-node-selected`]:{backgroundColor:ye},[`${he}-iconEle`]:{display:"inline-block",width:xe,height:xe,lineHeight:`${xe}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${he}-unselectable ${he}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${he}-node-content-wrapper`]:Object.assign({lineHeight:`${xe}px`,userSelect:"none"},oe(ue,de)),[`${we}.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:xe/2,bottom:-Se,borderInlineEnd:`1px solid ${de.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${he}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${we}-leaf-last`]:{[`${he}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${xe/2}px !important`}}}}})}},me=ue=>{const{treeCls:de,treeNodeCls:he,treeNodePadding:we,directoryNodeSelectedBg:Se,directoryNodeSelectedColor:xe}=ue;return{[`${de}${de}-directory`]:{[he]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:we,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:xe,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Se},[`${de}-switcher`]:{color:xe},[`${de}-node-content-wrapper`]:{color:xe,background:"transparent"}}}}}},te=(ue,de)=>{const he=`.${ue}`,we=`${he}-treenode`,Se=de.paddingXS/2,xe=(0,ve.TS)(de,{treeCls:he,treeNodeCls:we,treeNodePadding:Se});return[se(ue,xe),me(xe)]},ae=ue=>{const{controlHeightSM:de}=ue;return{titleHeight:de,nodeHoverBg:ue.controlItemBgHover,nodeSelectedBg:ue.controlItemBgActive}};Ht.ZP=(0,re.Z)("Tree",(ue,de)=>{let{prefixCls:he}=de;return[{[ue.componentCls]:(0,gt.C2)(`${he}-checkbox`,ue)},te(he,ue),(0,De.Z)(ue)]},ue=>{const{colorTextLightSolid:de,colorPrimary:he}=ue;return Object.assign(Object.assign({},ae(ue)),{directoryNodeSelectedColor:de,directoryNodeSelectedBg:he})})},71997:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return we}});var Re=ke(60499),gt=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"},De=x,ve=ke(85221),re=function(xe,ye){return gt.createElement(ve.Z,(0,Re.Z)({},xe,{ref:ye,icon:De}))},ne=gt.forwardRef(re),ie=ne,oe=ke(52671),se=ke(58617),me=ke(15075),te=ke(43531),ae=ke(92310),ue=ke.n(ae),de=ke(92343),we=Se=>{const{prefixCls:xe,switcherIcon:ye,treeNodeProps:Ae,showLine:Le}=Se,{isLeaf:Ce,expanded:je,loading:Me}=Ae;if(Me)return gt.createElement(se.Z,{className:`${xe}-switcher-loading-icon`});let Oe;if(Le&&typeof Le=="object"&&(Oe=Le.showLeafIcon),Ce){if(!Le)return null;if(typeof Oe!="boolean"&&Oe){const _e=typeof Oe=="function"?Oe(Ae):Oe,Ze=`${xe}-switcher-line-custom-icon`;return(0,de.l$)(_e)?(0,de.Tm)(_e,{className:ue()(_e.props.className||"",Ze)}):_e}return Oe?gt.createElement(oe.Z,{className:`${xe}-switcher-line-icon`}):gt.createElement("span",{className:`${xe}-switcher-leaf-line`})}const Ee=`${xe}-switcher-icon`,Ne=typeof ye=="function"?ye(Ae):ye;return(0,de.l$)(Ne)?(0,de.Tm)(Ne,{className:ue()(Ne.props.className||"",Ee)}):Ne!==void 0?Ne:Le?je?gt.createElement(me.Z,{className:`${xe}-switcher-line-icon`}):gt.createElement(te.Z,{className:`${xe}-switcher-line-icon`}):gt.createElement(ie,{className:Ee})}},54580:function(or,Ht,ke){"use strict";ke.d(Ht,{default:function(){return br}});var Re=ke(59301),gt=ke(77654),x=ke(92310),De=ke.n(x),ve=ke(60499),re=ke(38705),ne=ke(17212),ie=ke(39153),oe=ke(55401),se=ke(18642),me=ke(42244),te=ke(73001),ae=ke(43749),ue=ke(11576),de=ke(26112);function he(Wt,Qt){var Xt="cannot ".concat(Wt.method," ").concat(Wt.action," ").concat(Qt.status,"'"),qt=new Error(Xt);return qt.status=Qt.status,qt.method=Wt.method,qt.url=Wt.action,qt}function we(Wt){var Qt=Wt.responseText||Wt.response;if(!Qt)return Qt;try{return JSON.parse(Qt)}catch(Xt){return Qt}}function Se(Wt){var Qt=new XMLHttpRequest;Wt.onProgress&&Qt.upload&&(Qt.upload.onprogress=function(ar){ar.total>0&&(ar.percent=ar.loaded/ar.total*100),Wt.onProgress(ar)});var Xt=new FormData;Wt.data&&Object.keys(Wt.data).forEach(function(mr){var ar=Wt.data[mr];if(Array.isArray(ar)){ar.forEach(function(xr){Xt.append("".concat(mr,"[]"),xr)});return}Xt.append(mr,ar)}),Wt.file instanceof Blob?Xt.append(Wt.filename,Wt.file,Wt.file.name):Xt.append(Wt.filename,Wt.file),Qt.onerror=function(ar){Wt.onError(ar)},Qt.onload=function(){return Qt.status<200||Qt.status>=300?Wt.onError(he(Wt,Qt),we(Qt)):Wt.onSuccess(we(Qt),Qt)},Qt.open(Wt.method,Wt.action,!0),Wt.withCredentials&&"withCredentials"in Qt&&(Qt.withCredentials=!0);var qt=Wt.headers||{};return qt["X-Requested-With"]!==null&&Qt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(qt).forEach(function(mr){qt[mr]!==null&&Qt.setRequestHeader(mr,qt[mr])}),Qt.send(Xt),{abort:function(){Qt.abort()}}}var xe=+new Date,ye=0;function Ae(){return"rc-upload-".concat(xe,"-").concat(++ye)}var Le=ke(48736),Ce=function(Wt,Qt){if(Wt&&Qt){var Xt=Array.isArray(Qt)?Qt:Qt.split(","),qt=Wt.name||"",mr=Wt.type||"",ar=mr.replace(/\/.*$/,"");return Xt.some(function(xr){var Lt=xr.trim();if(/^\*(\/\*)?$/.test(xr))return!0;if(Lt.charAt(0)==="."){var Yt=qt.toLowerCase(),er=Lt.toLowerCase(),dr=[er];return(er===".jpg"||er===".jpeg")&&(dr=[".jpg",".jpeg"]),dr.some(function(lr){return Yt.endsWith(lr)})}return/\/\*$/.test(Lt)?ar===Lt.replace(/\/.*$/,""):mr===Lt?!0:/^\w+$/.test(Lt)?((0,Le.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Lt,"'.Skip for check.")),!0):!1})}return!0};function je(Wt,Qt){var Xt=Wt.createReader(),qt=[];function mr(){Xt.readEntries(function(ar){var xr=Array.prototype.slice.apply(ar);qt=qt.concat(xr);var Lt=!xr.length;Lt?Qt(qt):mr()})}mr()}var Me=function(Qt,Xt,qt){var mr=function ar(xr,Lt){xr&&(xr.path=Lt||"",xr.isFile?xr.file(function(Yt){qt(Yt)&&(xr.fullPath&&!Yt.webkitRelativePath&&(Object.defineProperties(Yt,{webkitRelativePath:{writable:!0}}),Yt.webkitRelativePath=xr.fullPath.replace(/^\//,""),Object.defineProperties(Yt,{webkitRelativePath:{writable:!1}})),Xt([Yt]))}):xr.isDirectory&&je(xr,function(Yt){Yt.forEach(function(er){ar(er,"".concat(Lt).concat(xr.name,"/"))})}))};Qt.forEach(function(ar){mr(ar.webkitGetAsEntry())})},Oe=Me,Ee=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ne=function(Wt){(0,ie.Z)(Xt,Wt);var Qt=(0,oe.Z)(Xt);function Xt(){var qt;(0,re.Z)(this,Xt);for(var mr=arguments.length,ar=new Array(mr),xr=0;xr<mr;xr++)ar[xr]=arguments[xr];return qt=Qt.call.apply(Qt,[this].concat(ar)),qt.state={uid:Ae()},qt.reqs={},qt.fileInput=void 0,qt._isMounted=void 0,qt.onChange=function(Lt){var Yt=qt.props,er=Yt.accept,dr=Yt.directory,lr=Lt.target.files,fr=(0,gt.Z)(lr).filter(function(hr){return!dr||Ce(hr,er)});qt.uploadFiles(fr),qt.reset()},qt.onClick=function(Lt){var Yt=qt.fileInput;if(Yt){var er=Lt.target,dr=qt.props.onClick;if(er&&er.tagName==="BUTTON"){var lr=Yt.parentNode;lr.focus(),er.blur()}Yt.click(),dr&&dr(Lt)}},qt.onKeyDown=function(Lt){Lt.key==="Enter"&&qt.onClick(Lt)},qt.onFileDrop=function(Lt){var Yt=qt.props.multiple;if(Lt.preventDefault(),Lt.type!=="dragover")if(qt.props.directory)Oe(Array.prototype.slice.call(Lt.dataTransfer.items),qt.uploadFiles,function(dr){return Ce(dr,qt.props.accept)});else{var er=(0,gt.Z)(Lt.dataTransfer.files).filter(function(dr){return Ce(dr,qt.props.accept)});Yt===!1&&(er=er.slice(0,1)),qt.uploadFiles(er)}},qt.uploadFiles=function(Lt){var Yt=(0,gt.Z)(Lt),er=Yt.map(function(dr){return dr.uid=Ae(),qt.processFile(dr,Yt)});Promise.all(er).then(function(dr){var lr=qt.props.onBatchStart;lr==null||lr(dr.map(function(fr){var hr=fr.origin,Cr=fr.parsedFile;return{file:hr,parsedFile:Cr}})),dr.filter(function(fr){return fr.parsedFile!==null}).forEach(function(fr){qt.post(fr)})})},qt.processFile=function(){var Lt=(0,ue.Z)((0,te.Z)().mark(function Yt(er,dr){var lr,fr,hr,Cr,_r,Zr,$r,nn,cn;return(0,te.Z)().wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:if(lr=qt.props.beforeUpload,fr=er,!lr){Jr.next=14;break}return Jr.prev=3,Jr.next=6,lr(er,dr);case 6:fr=Jr.sent,Jr.next=12;break;case 9:Jr.prev=9,Jr.t0=Jr.catch(3),fr=!1;case 12:if(fr!==!1){Jr.next=14;break}return Jr.abrupt("return",{origin:er,parsedFile:null,action:null,data:null});case 14:if(hr=qt.props.action,typeof hr!="function"){Jr.next=21;break}return Jr.next=18,hr(er);case 18:Cr=Jr.sent,Jr.next=22;break;case 21:Cr=hr;case 22:if(_r=qt.props.data,typeof _r!="function"){Jr.next=29;break}return Jr.next=26,_r(er);case 26:Zr=Jr.sent,Jr.next=30;break;case 29:Zr=_r;case 30:return $r=((0,ae.Z)(fr)==="object"||typeof fr=="string")&&fr?fr:er,$r instanceof File?nn=$r:nn=new File([$r],er.name,{type:er.type}),cn=nn,cn.uid=er.uid,Jr.abrupt("return",{origin:er,data:Zr,parsedFile:cn,action:Cr});case 35:case"end":return Jr.stop()}},Yt,null,[[3,9]])}));return function(Yt,er){return Lt.apply(this,arguments)}}(),qt.saveFileInput=function(Lt){qt.fileInput=Lt},qt}return(0,ne.Z)(Xt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(mr){var ar=this,xr=mr.data,Lt=mr.origin,Yt=mr.action,er=mr.parsedFile;if(this._isMounted){var dr=this.props,lr=dr.onStart,fr=dr.customRequest,hr=dr.name,Cr=dr.headers,_r=dr.withCredentials,Zr=dr.method,$r=Lt.uid,nn=fr||Se,cn={action:Yt,filename:hr,data:xr,file:er,headers:Cr,withCredentials:_r,method:Zr||"post",onProgress:function(Jr){var wn=ar.props.onProgress;wn==null||wn(Jr,er)},onSuccess:function(Jr,wn){var fn=ar.props.onSuccess;fn==null||fn(Jr,er,wn),delete ar.reqs[$r]},onError:function(Jr,wn){var fn=ar.props.onError;fn==null||fn(Jr,wn,er),delete ar.reqs[$r]}};lr(Lt),this.reqs[$r]=nn(cn)}}},{key:"reset",value:function(){this.setState({uid:Ae()})}},{key:"abort",value:function(mr){var ar=this.reqs;if(mr){var xr=mr.uid?mr.uid:mr;ar[xr]&&ar[xr].abort&&ar[xr].abort(),delete ar[xr]}else Object.keys(ar).forEach(function(Lt){ar[Lt]&&ar[Lt].abort&&ar[Lt].abort(),delete ar[Lt]})}},{key:"render",value:function(){var mr=this.props,ar=mr.component,xr=mr.prefixCls,Lt=mr.className,Yt=mr.disabled,er=mr.id,dr=mr.style,lr=mr.multiple,fr=mr.accept,hr=mr.capture,Cr=mr.children,_r=mr.directory,Zr=mr.openFileDialogOnClick,$r=mr.onMouseEnter,nn=mr.onMouseLeave,cn=(0,me.Z)(mr,Ee),dn=De()((0,se.Z)((0,se.Z)((0,se.Z)({},xr,!0),"".concat(xr,"-disabled"),Yt),Lt,Lt)),Jr=_r?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},wn=Yt?{}:{onClick:Zr?this.onClick:function(){},onKeyDown:Zr?this.onKeyDown:function(){},onMouseEnter:$r,onMouseLeave:nn,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Re.createElement(ar,(0,ve.Z)({},wn,{className:dn,role:"button",style:dr}),Re.createElement("input",(0,ve.Z)({},(0,de.Z)(cn,{aria:!0,data:!0}),{id:er,disabled:Yt,type:"file",ref:this.saveFileInput,onClick:function(On){return On.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:fr},Jr,{multiple:lr,onChange:this.onChange},hr!=null?{capture:hr}:{})),Cr)}}]),Xt}(Re.Component),_e=Ne;function Ze(){}var Pe=function(Wt){(0,ie.Z)(Xt,Wt);var Qt=(0,oe.Z)(Xt);function Xt(){var qt;(0,re.Z)(this,Xt);for(var mr=arguments.length,ar=new Array(mr),xr=0;xr<mr;xr++)ar[xr]=arguments[xr];return qt=Qt.call.apply(Qt,[this].concat(ar)),qt.uploader=void 0,qt.saveUploader=function(Lt){qt.uploader=Lt},qt}return(0,ne.Z)(Xt,[{key:"abort",value:function(mr){this.uploader.abort(mr)}},{key:"render",value:function(){return Re.createElement(_e,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),Xt}(Re.Component);Pe.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ze,onError:Ze,onSuccess:Ze,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ue=Pe,Qe=Ue,tt=ke(18929),at=ke(4676),lt=ke(36355),Ve=ke(1684),Xe=ke(9763),nt=ke(31724),ct={icon:function(Qt,Xt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Xt}},{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:Qt}}]}},name:"file",theme:"twotone"},ot=ct,et=ke(85221),qe=function(Qt,Xt){return Re.createElement(et.Z,(0,ve.Z)({},Qt,{ref:Xt,icon:ot}))},it=Re.forwardRef(qe),yt=it,pt=ke(58617),Dt={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"},At=Dt,st=function(Qt,Xt){return Re.createElement(et.Z,(0,ve.Z)({},Qt,{ref:Xt,icon:At}))},Ge=Re.forwardRef(st),We=Ge,le={icon:function(Qt,Xt){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:Qt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Xt}},{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:Xt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Xt}},{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:Qt}}]}},name:"picture",theme:"twotone"},fe=le,ze=function(Qt,Xt){return Re.createElement(et.Z,(0,ve.Z)({},Qt,{ref:Xt,icon:fe}))},He=Re.forwardRef(ze),pe=He,Ie=ke(77900),Ke=ke(56762),Ye=ke(62892),Je=ke(92343),dt=ke(3113);function bt(Wt){return Object.assign(Object.assign({},Wt),{lastModified:Wt.lastModified,lastModifiedDate:Wt.lastModifiedDate,name:Wt.name,size:Wt.size,type:Wt.type,uid:Wt.uid,percent:0,originFileObj:Wt})}function vt(Wt,Qt){const Xt=(0,gt.Z)(Qt),qt=Xt.findIndex(mr=>{let{uid:ar}=mr;return ar===Wt.uid});return qt===-1?Xt.push(Wt):Xt[qt]=Wt,Xt}function It(Wt,Qt){const Xt=Wt.uid!==void 0?"uid":"name";return Qt.filter(qt=>qt[Xt]===Wt[Xt])[0]}function Vt(Wt,Qt){const Xt=Wt.uid!==void 0?"uid":"name",qt=Qt.filter(mr=>mr[Xt]!==Wt[Xt]);return qt.length===Qt.length?null:qt}const kt=function(){const Qt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),qt=Qt[Qt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(qt)||[""])[0]},jt=Wt=>Wt.indexOf("image/")===0,_t=Wt=>{if(Wt.type&&!Wt.thumbUrl)return jt(Wt.type);const Qt=Wt.thumbUrl||Wt.url||"",Xt=kt(Qt);return/^data:image\//.test(Qt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Xt)?!0:!(/^data:/.test(Qt)||Xt)},Mt=200;function ft(Wt){return new Promise(Qt=>{if(!Wt.type||!jt(Wt.type)){Qt("");return}const Xt=document.createElement("canvas");Xt.width=Mt,Xt.height=Mt,Xt.style.cssText=`position: fixed; left: 0; top: 0; width: ${Mt}px; height: ${Mt}px; z-index: 9999; display: none;`,document.body.appendChild(Xt);const qt=Xt.getContext("2d"),mr=new Image;if(mr.onload=()=>{const{width:ar,height:xr}=mr;let Lt=Mt,Yt=Mt,er=0,dr=0;ar>xr?(Yt=xr*(Mt/ar),dr=-(Yt-Lt)/2):(Lt=ar*(Mt/xr),er=-(Lt-Yt)/2),qt.drawImage(mr,er,dr,Lt,Yt);const lr=Xt.toDataURL();document.body.removeChild(Xt),window.URL.revokeObjectURL(mr.src),Qt(lr)},mr.crossOrigin="anonymous",Wt.type.startsWith("image/svg+xml")){const ar=new FileReader;ar.onload=()=>{ar.result&&(mr.src=ar.result)},ar.readAsDataURL(Wt)}else if(Wt.type.startsWith("image/gif")){const ar=new FileReader;ar.onload=()=>{ar.result&&Qt(ar.result)},ar.readAsDataURL(Wt)}else mr.src=window.URL.createObjectURL(Wt)})}var St=ke(26227),Nt=ke(41464),Ft=ke(15277),Ut=ke(93948),sr=ke(6848),wr=Re.forwardRef((Wt,Qt)=>{let{prefixCls:Xt,className:qt,style:mr,locale:ar,listType:xr,file:Lt,items:Yt,progress:er,iconRender:dr,actionIconRender:lr,itemRender:fr,isImgUrl:hr,showPreviewIcon:Cr,showRemoveIcon:_r,showDownloadIcon:Zr,previewIcon:$r,removeIcon:nn,downloadIcon:cn,onPreview:dn,onDownload:Jr,onClose:wn}=Wt;var fn,On;const{status:un}=Lt,[mn,yn]=Re.useState(un);Re.useEffect(()=>{un!=="removed"&&yn(un)},[un]);const[en,Ln]=Re.useState(!1);Re.useEffect(()=>{const Ei=setTimeout(()=>{Ln(!0)},300);return()=>{clearTimeout(Ei)}},[]);const Xn=dr(Lt);let hn=Re.createElement("div",{className:`${Xt}-icon`},Xn);if(xr==="picture"||xr==="picture-card"||xr==="picture-circle")if(mn==="uploading"||!Lt.thumbUrl&&!Lt.url){const Ei=De()(`${Xt}-list-item-thumbnail`,{[`${Xt}-list-item-file`]:mn!=="uploading"});hn=Re.createElement("div",{className:Ei},Xn)}else{const Ei=hr!=null&&hr(Lt)?Re.createElement("img",{src:Lt.thumbUrl||Lt.url,alt:Lt.name,className:`${Xt}-list-item-image`,crossOrigin:Lt.crossOrigin}):Xn,bi=De()(`${Xt}-list-item-thumbnail`,{[`${Xt}-list-item-file`]:hr&&!hr(Lt)});hn=Re.createElement("a",{className:bi,onClick:ci=>dn(Lt,ci),href:Lt.url||Lt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ei)}const Kr=De()(`${Xt}-list-item`,`${Xt}-list-item-${mn}`),Ur=typeof Lt.linkProps=="string"?JSON.parse(Lt.linkProps):Lt.linkProps,Dn=_r?lr((typeof nn=="function"?nn(Lt):nn)||Re.createElement(St.Z,null),()=>wn(Lt),Xt,ar.removeFile):null,bn=Zr&&mn==="done"?lr((typeof cn=="function"?cn(Lt):cn)||Re.createElement(Nt.Z,null),()=>Jr(Lt),Xt,ar.downloadFile):null,Pn=xr!=="picture-card"&&xr!=="picture-circle"&&Re.createElement("span",{key:"download-delete",className:De()(`${Xt}-list-item-actions`,{picture:xr==="picture"})},bn,Dn),Un=De()(`${Xt}-list-item-name`),Zn=Lt.url?[Re.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Un,title:Lt.name},Ur,{href:Lt.url,onClick:Ei=>dn(Lt,Ei)}),Lt.name),Pn]:[Re.createElement("span",{key:"view",className:Un,onClick:Ei=>dn(Lt,Ei),title:Lt.name},Lt.name),Pn],kn={pointerEvents:"none",opacity:.5},zn=Cr?Re.createElement("a",{href:Lt.url||Lt.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Lt.url||Lt.thumbUrl?void 0:kn,onClick:Ei=>dn(Lt,Ei),title:ar.previewFile},typeof $r=="function"?$r(Lt):$r||Re.createElement(Ft.Z,null)):null,di=(xr==="picture-card"||xr==="picture-circle")&&mn!=="uploading"&&Re.createElement("span",{className:`${Xt}-list-item-actions`},zn,mn==="done"&&bn,Dn),{getPrefixCls:pn}=Re.useContext(lt.E_),An=pn(),Yn=Re.createElement("div",{className:Kr},hn,Zn,di,en&&Re.createElement(Ie.default,{motionName:`${An}-fade`,visible:mn==="uploading",motionDeadline:2e3},Ei=>{let{className:bi}=Ei;const ci="percent"in Lt?Re.createElement(Ut.Z,Object.assign({},er,{type:"line",percent:Lt.percent,"aria-label":Lt["aria-label"],"aria-labelledby":Lt["aria-labelledby"]})):null;return Re.createElement("div",{className:De()(`${Xt}-list-item-progress`,bi)},ci)})),ei=Lt.response&&typeof Lt.response=="string"?Lt.response:((fn=Lt.error)===null||fn===void 0?void 0:fn.statusText)||((On=Lt.error)===null||On===void 0?void 0:On.message)||ar.uploadError,Si=mn==="error"?Re.createElement(sr.Z,{title:ei,getPopupContainer:Ei=>Ei.parentNode},Yn):Yn;return Re.createElement("div",{className:De()(`${Xt}-list-item-container`,qt),style:mr,ref:Qt},fr?fr(Si,Lt,Yt,{download:Jr.bind(null,Lt),preview:dn.bind(null,Lt),remove:wn.bind(null,Lt)}):Si)});const zr=(Wt,Qt)=>{const{listType:Xt="text",previewFile:qt=ft,onPreview:mr,onDownload:ar,onRemove:xr,locale:Lt,iconRender:Yt,isImageUrl:er=_t,prefixCls:dr,items:lr=[],showPreviewIcon:fr=!0,showRemoveIcon:hr=!0,showDownloadIcon:Cr=!1,removeIcon:_r,previewIcon:Zr,downloadIcon:$r,progress:nn={size:[-1,2],showInfo:!1},appendAction:cn,appendActionVisible:dn=!0,itemRender:Jr,disabled:wn}=Wt,fn=(0,Ke.Z)(),[On,un]=Re.useState(!1);Re.useEffect(()=>{Xt!=="picture"&&Xt!=="picture-card"&&Xt!=="picture-circle"||(lr||[]).forEach(kn=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(kn.originFileObj instanceof File||kn.originFileObj instanceof Blob)||kn.thumbUrl!==void 0||(kn.thumbUrl="",qt&&qt(kn.originFileObj).then(zn=>{kn.thumbUrl=zn||"",fn()}))})},[Xt,lr,qt]),Re.useEffect(()=>{un(!0)},[]);const mn=(kn,zn)=>{if(mr)return zn==null||zn.preventDefault(),mr(kn)},yn=kn=>{typeof ar=="function"?ar(kn):kn.url&&window.open(kn.url)},en=kn=>{xr==null||xr(kn)},Ln=kn=>{if(Yt)return Yt(kn,Xt);const zn=kn.status==="uploading",di=er&&er(kn)?Re.createElement(pe,null):Re.createElement(yt,null);let pn=zn?Re.createElement(pt.Z,null):Re.createElement(We,null);return Xt==="picture"?pn=zn?Re.createElement(pt.Z,null):di:(Xt==="picture-card"||Xt==="picture-circle")&&(pn=zn?Lt.uploading:di),pn},Xn=(kn,zn,di,pn)=>{const An={type:"text",size:"small",title:pn,onClick:Yn=>{zn(),(0,Je.l$)(kn)&&kn.props.onClick&&kn.props.onClick(Yn)},className:`${di}-list-item-action`,disabled:wn};if((0,Je.l$)(kn)){const Yn=(0,Je.Tm)(kn,Object.assign(Object.assign({},kn.props),{onClick:()=>{}}));return Re.createElement(dt.ZP,Object.assign({},An,{icon:Yn}))}return Re.createElement(dt.ZP,Object.assign({},An),Re.createElement("span",null,kn))};Re.useImperativeHandle(Qt,()=>({handlePreview:mn,handleDownload:yn}));const{getPrefixCls:hn}=Re.useContext(lt.E_),Kr=hn("upload",dr),Ur=hn(),Dn=De()(`${Kr}-list`,`${Kr}-list-${Xt}`),bn=(0,gt.Z)(lr.map(kn=>({key:kn.uid,file:kn})));let Un={motionDeadline:2e3,motionName:`${Kr}-${Xt==="picture-card"||Xt==="picture-circle"?"animate-inline":"animate"}`,keys:bn,motionAppear:On};const Zn=Re.useMemo(()=>{const kn=Object.assign({},(0,Ye.Z)(Ur));return delete kn.onAppearEnd,delete kn.onEnterEnd,delete kn.onLeaveEnd,kn},[Ur]);return Xt!=="picture-card"&&Xt!=="picture-circle"&&(Un=Object.assign(Object.assign({},Zn),Un)),Re.createElement("div",{className:Dn},Re.createElement(Ie.CSSMotionList,Object.assign({},Un,{component:!1}),kn=>{let{key:zn,file:di,className:pn,style:An}=kn;return Re.createElement(wr,{key:zn,locale:Lt,prefixCls:Kr,className:pn,style:An,file:di,items:lr,progress:nn,listType:Xt,isImgUrl:er,showPreviewIcon:fr,showRemoveIcon:hr,showDownloadIcon:Cr,removeIcon:_r,previewIcon:Zr,downloadIcon:$r,iconRender:Ln,actionIconRender:Xn,itemRender:Jr,onPreview:mn,onDownload:yn,onClose:en})}),cn&&Re.createElement(Ie.default,Object.assign({},Un,{visible:dn,forceRender:!0}),kn=>{let{className:zn,style:di}=kn;return(0,Je.Tm)(cn,pn=>({className:De()(pn.className,zn),style:Object.assign(Object.assign(Object.assign({},di),{pointerEvents:zn?"none":void 0}),pn.style)}))}))};var Br=Re.forwardRef(zr),Nr=ke(17313),on=ke(8378),Mn=ke(83116),jn=ke(37613),Tn=Wt=>{const{componentCls:Qt,iconCls:Xt}=Wt;return{[`${Qt}-wrapper`]:{[`${Qt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Wt.colorFillAlter,border:`${Wt.lineWidth}px dashed ${Wt.colorBorder}`,borderRadius:Wt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Wt.motionDurationSlow}`,[Qt]:{padding:`${Wt.padding}px 0`},[`${Qt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Qt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Qt}-disabled):hover`]:{borderColor:Wt.colorPrimaryHover},[`p${Qt}-drag-icon`]:{marginBottom:Wt.margin,[Xt]:{color:Wt.colorPrimary,fontSize:Wt.uploadThumbnailSize}},[`p${Qt}-text`]:{margin:`0 0 ${Wt.marginXXS}px`,color:Wt.colorTextHeading,fontSize:Wt.fontSizeLG},[`p${Qt}-hint`]:{color:Wt.colorTextDescription,fontSize:Wt.fontSize},[`&${Qt}-disabled`]:{cursor:"not-allowed",[`p${Qt}-drag-icon ${Xt},
|
|
|
p${Qt}-text,
|
|
|
p${Qt}-hint
|
|
|
`]:{color:Wt.colorTextDisabled}}}}}},Gn=Wt=>{const{componentCls:Qt,antCls:Xt,iconCls:qt,fontSize:mr,lineHeight:ar}=Wt,xr=`${Qt}-list-item`,Lt=`${xr}-actions`,Yt=`${xr}-action`,er=Math.round(mr*ar);return{[`${Qt}-wrapper`]:{[`${Qt}-list`]:Object.assign(Object.assign({},(0,Nr.dF)()),{lineHeight:Wt.lineHeight,[xr]:{position:"relative",height:Wt.lineHeight*mr,marginTop:Wt.marginXS,fontSize:mr,display:"flex",alignItems:"center",transition:`background-color ${Wt.motionDurationSlow}`,"&:hover":{backgroundColor:Wt.controlItemBgHover},[`${xr}-name`]:Object.assign(Object.assign({},Nr.vS),{padding:`0 ${Wt.paddingXS}px`,lineHeight:ar,flex:"auto",transition:`all ${Wt.motionDurationSlow}`}),[Lt]:{[Yt]:{opacity:0},[`${Yt}${Xt}-btn-sm`]:{height:er,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Yt}:focus-visible,
|
|
|
&.picture ${Yt}
|
|
|
`]:{opacity:1},[qt]:{color:Wt.actionsColor,transition:`all ${Wt.motionDurationSlow}`},[`&:hover ${qt}`]:{color:Wt.colorText}},[`${Qt}-icon ${qt}`]:{color:Wt.colorTextDescription,fontSize:mr},[`${xr}-progress`]:{position:"absolute",bottom:-Wt.uploadProgressOffset,width:"100%",paddingInlineStart:mr+Wt.paddingXS,fontSize:mr,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${xr}:hover ${Yt}`]:{opacity:1,color:Wt.colorText},[`${xr}-error`]:{color:Wt.colorError,[`${xr}-name, ${Qt}-icon ${qt}`]:{color:Wt.colorError},[Lt]:{[`${qt}, ${qt}:hover`]:{color:Wt.colorError},[Yt]:{opacity:1}}},[`${Qt}-list-item-container`]:{transition:`opacity ${Wt.motionDurationSlow}, height ${Wt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Wn=ke(36237),Jt=ke(1950);const jr=new Wn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Rr=new Wn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Sr=Wt=>{const{componentCls:Qt}=Wt,Xt=`${Qt}-animate-inline`;return[{[`${Qt}-wrapper`]:{[`${Xt}-appear, ${Xt}-enter, ${Xt}-leave`]:{animationDuration:Wt.motionDurationSlow,animationTimingFunction:Wt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Xt}-appear, ${Xt}-enter`]:{animationName:jr},[`${Xt}-leave`]:{animationName:Rr}}},{[`${Qt}-wrapper`]:(0,Jt.J$)(Wt)},jr,Rr]},Dr=ke(30071),Or=ke(64993);const Yr=Wt=>{const{componentCls:Qt,iconCls:Xt,uploadThumbnailSize:qt,uploadProgressOffset:mr}=Wt,ar=`${Qt}-list`,xr=`${ar}-item`;return{[`${Qt}-wrapper`]:{[`
|
|
|
${ar}${ar}-picture,
|
|
|
${ar}${ar}-picture-card,
|
|
|
${ar}${ar}-picture-circle
|
|
|
`]:{[xr]:{position:"relative",height:qt+Wt.lineWidth*2+Wt.paddingXS*2,padding:Wt.paddingXS,border:`${Wt.lineWidth}px ${Wt.lineType} ${Wt.colorBorder}`,borderRadius:Wt.borderRadiusLG,"&:hover":{background:"transparent"},[`${xr}-thumbnail`]:Object.assign(Object.assign({},Nr.vS),{width:qt,height:qt,lineHeight:`${qt+Wt.paddingSM}px`,textAlign:"center",flex:"none",[Xt]:{fontSize:Wt.fontSizeHeading2,color:Wt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${xr}-progress`]:{bottom:mr,width:`calc(100% - ${Wt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:qt+Wt.paddingXS}},[`${xr}-error`]:{borderColor:Wt.colorError,[`${xr}-thumbnail ${Xt}`]:{[`svg path[fill='${Dr.blue[0]}']`]:{fill:Wt.colorErrorBg},[`svg path[fill='${Dr.blue.primary}']`]:{fill:Wt.colorError}}},[`${xr}-uploading`]:{borderStyle:"dashed",[`${xr}-name`]:{marginBottom:mr}}},[`${ar}${ar}-picture-circle ${xr}`]:{[`&, &::before, ${xr}-thumbnail`]:{borderRadius:"50%"}}}}},Kt=Wt=>{const{componentCls:Qt,iconCls:Xt,fontSizeLG:qt,colorTextLightSolid:mr}=Wt,ar=`${Qt}-list`,xr=`${ar}-item`,Lt=Wt.uploadPicCardSize;return{[`
|
|
|
${Qt}-wrapper${Qt}-picture-card-wrapper,
|
|
|
${Qt}-wrapper${Qt}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Nr.dF)()),{display:"inline-block",width:"100%",[`${Qt}${Qt}-select`]:{width:Lt,height:Lt,marginInlineEnd:Wt.marginXS,marginBottom:Wt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Wt.colorFillAlter,border:`${Wt.lineWidth}px dashed ${Wt.colorBorder}`,borderRadius:Wt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Wt.motionDurationSlow}`,[`> ${Qt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Qt}-disabled):hover`]:{borderColor:Wt.colorPrimary}},[`${ar}${ar}-picture-card, ${ar}${ar}-picture-circle`]:{[`${ar}-item-container`]:{display:"inline-block",width:Lt,height:Lt,marginBlock:`0 ${Wt.marginXS}px`,marginInline:`0 ${Wt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[xr]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Wt.paddingXS*2}px)`,height:`calc(100% - ${Wt.paddingXS*2}px)`,backgroundColor:Wt.colorBgMask,opacity:0,transition:`all ${Wt.motionDurationSlow}`,content:'" "'}},[`${xr}:hover`]:{[`&::before, ${xr}-actions`]:{opacity:1}},[`${xr}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Wt.motionDurationSlow}`,[`${Xt}-eye, ${Xt}-download, ${Xt}-delete`]:{zIndex:10,width:qt,margin:`0 ${Wt.marginXXS}px`,fontSize:qt,cursor:"pointer",transition:`all ${Wt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${xr}-actions, ${xr}-actions:hover`]:{[`${Xt}-eye, ${Xt}-download, ${Xt}-delete`]:{color:new Or.C(mr).setAlpha(.65).toRgbString(),"&:hover":{color:mr}}},[`${xr}-thumbnail, ${xr}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${xr}-name`]:{display:"none",textAlign:"center"},[`${xr}-file + ${xr}-name`]:{position:"absolute",bottom:Wt.margin,display:"block",width:`calc(100% - ${Wt.paddingXS*2}px)`},[`${xr}-uploading`]:{[`&${xr}`]:{backgroundColor:Wt.colorFillAlter},[`&::before, ${Xt}-eye, ${Xt}-download, ${Xt}-delete`]:{display:"none"}},[`${xr}-progress`]:{bottom:Wt.marginXL,width:`calc(100% - ${Wt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Qt}-wrapper${Qt}-picture-circle-wrapper`]:{[`${Qt}${Qt}-select`]:{borderRadius:"50%"}}}};var Bt=Wt=>{const{componentCls:Qt}=Wt;return{[`${Qt}-rtl`]:{direction:"rtl"}}};const Ot=Wt=>{const{componentCls:Qt,colorTextDisabled:Xt}=Wt;return{[`${Qt}-wrapper`]:Object.assign(Object.assign({},(0,Nr.Wf)(Wt)),{[Qt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Qt}-select`]:{display:"inline-block"},[`${Qt}-disabled`]:{color:Xt,cursor:"not-allowed"}})}};var Et=(0,Mn.Z)("Upload",Wt=>{const{fontSizeHeading3:Qt,fontSize:Xt,lineHeight:qt,lineWidth:mr,controlHeightLG:ar}=Wt,xr=Math.round(Xt*qt),Lt=(0,jn.TS)(Wt,{uploadThumbnailSize:Qt*2,uploadProgressOffset:xr/2+mr,uploadPicCardSize:ar*2.55});return[Ot(Lt),Tn(Lt),Yr(Lt),Kt(Lt),Gn(Lt),Sr(Lt),Bt(Lt),(0,on.Z)(Lt)]},Wt=>({actionsColor:Wt.colorTextDescription})),zt=function(Wt,Qt,Xt,qt){function mr(ar){return ar instanceof Xt?ar:new Xt(function(xr){xr(ar)})}return new(Xt||(Xt=Promise))(function(ar,xr){function Lt(dr){try{er(qt.next(dr))}catch(lr){xr(lr)}}function Yt(dr){try{er(qt.throw(dr))}catch(lr){xr(lr)}}function er(dr){dr.done?ar(dr.value):mr(dr.value).then(Lt,Yt)}er((qt=qt.apply(Wt,Qt||[])).next())})};const Zt=`__LIST_IGNORE_${Date.now()}__`,nr=(Wt,Qt)=>{const{fileList:Xt,defaultFileList:qt,onRemove:mr,showUploadList:ar=!0,listType:xr="text",onPreview:Lt,onDownload:Yt,onChange:er,onDrop:dr,previewFile:lr,disabled:fr,locale:hr,iconRender:Cr,isImageUrl:_r,progress:Zr,prefixCls:$r,className:nn,type:cn="select",children:dn,style:Jr,itemRender:wn,maxCount:fn,data:On={},multiple:un=!1,action:mn="",accept:yn="",supportServerRender:en=!0,rootClassName:Ln}=Wt,Xn=Re.useContext(Ve.Z),hn=fr!=null?fr:Xn,[Kr,Ur]=(0,tt.Z)(qt||[],{value:Xt,postState:li=>li!=null?li:[]}),[Dn,bn]=Re.useState("drop"),Pn=Re.useRef(null);Re.useMemo(()=>{const li=Date.now();(Xt||[]).forEach((hi,Li)=>{!hi.uid&&!Object.isFrozen(hi)&&(hi.uid=`__AUTO__${li}_${Li}__`)})},[Xt]);const Un=(li,hi,Li)=>{let yr=(0,gt.Z)(hi),vr=!1;fn===1?yr=yr.slice(-1):fn&&(vr=yr.length>fn,yr=yr.slice(0,fn)),(0,at.flushSync)(()=>{Ur(yr)});const Mr={file:li,fileList:yr};Li&&(Mr.event=Li),(!vr||yr.some(Gr=>Gr.uid===li.uid))&&(0,at.flushSync)(()=>{er==null||er(Mr)})},Zn=(li,hi)=>zt(void 0,void 0,void 0,function*(){const{beforeUpload:Li,transformFile:yr}=Wt;let vr=li;if(Li){const Mr=yield Li(li,hi);if(Mr===!1)return!1;if(delete li[Zt],Mr===Zt)return Object.defineProperty(li,Zt,{value:!0,configurable:!0}),!1;typeof Mr=="object"&&Mr&&(vr=Mr)}return yr&&(vr=yield yr(vr)),vr}),kn=li=>{const hi=li.filter(vr=>!vr.file[Zt]);if(!hi.length)return;const Li=hi.map(vr=>bt(vr.file));let yr=(0,gt.Z)(Kr);Li.forEach(vr=>{yr=vt(vr,yr)}),Li.forEach((vr,Mr)=>{let Gr=vr;if(hi[Mr].parsedFile)vr.status="uploading";else{const{originFileObj:Xr}=vr;let vn;try{vn=new File([Xr],Xr.name,{type:Xr.type})}catch(Ir){vn=new Blob([Xr],{type:Xr.type}),vn.name=Xr.name,vn.lastModifiedDate=new Date,vn.lastModified=new Date().getTime()}vn.uid=vr.uid,Gr=vn}Un(Gr,yr)})},zn=(li,hi,Li)=>{try{typeof li=="string"&&(li=JSON.parse(li))}catch(Mr){}if(!It(hi,Kr))return;const yr=bt(hi);yr.status="done",yr.percent=100,yr.response=li,yr.xhr=Li;const vr=vt(yr,Kr);Un(yr,vr)},di=(li,hi)=>{if(!It(hi,Kr))return;const Li=bt(hi);Li.status="uploading",Li.percent=li.percent;const yr=vt(Li,Kr);Un(Li,yr,li)},pn=(li,hi,Li)=>{if(!It(Li,Kr))return;const yr=bt(Li);yr.error=li,yr.response=hi,yr.status="error";const vr=vt(yr,Kr);Un(yr,vr)},An=li=>{let hi;Promise.resolve(typeof mr=="function"?mr(li):mr).then(Li=>{var yr;if(Li===!1)return;const vr=Vt(li,Kr);vr&&(hi=Object.assign(Object.assign({},li),{status:"removed"}),Kr==null||Kr.forEach(Mr=>{const Gr=hi.uid!==void 0?"uid":"name";Mr[Gr]===hi[Gr]&&!Object.isFrozen(Mr)&&(Mr.status="removed")}),(yr=Pn.current)===null||yr===void 0||yr.abort(hi),Un(hi,vr))})},Yn=li=>{bn(li.type),li.type==="drop"&&(dr==null||dr(li))};Re.useImperativeHandle(Qt,()=>({onBatchStart:kn,onSuccess:zn,onProgress:di,onError:pn,fileList:Kr,upload:Pn.current}));const{getPrefixCls:ei,direction:Si,upload:Ei}=Re.useContext(lt.E_),bi=ei("upload",$r),ci=Object.assign(Object.assign({onBatchStart:kn,onError:pn,onProgress:di,onSuccess:zn},Wt),{data:On,multiple:un,action:mn,accept:yn,supportServerRender:en,prefixCls:bi,disabled:hn,beforeUpload:Zn,onChange:void 0});delete ci.className,delete ci.style,(!dn||hn)&&delete ci.id;const[Oi,Di]=Et(bi),[Cn]=(0,Xe.Z)("Upload",nt.Z.Upload),{showRemoveIcon:Sn,showPreviewIcon:rn,showDownloadIcon:ln,removeIcon:ii,previewIcon:xi,downloadIcon:Ci}=typeof ar=="boolean"?{}:ar,Ai=(li,hi)=>ar?Re.createElement(Br,{prefixCls:bi,listType:xr,items:Kr,previewFile:lr,onPreview:Lt,onDownload:Yt,onRemove:An,showRemoveIcon:!hn&&Sn,showPreviewIcon:rn,showDownloadIcon:ln,removeIcon:ii,previewIcon:xi,downloadIcon:Ci,iconRender:Cr,locale:Object.assign(Object.assign({},Cn),hr),isImageUrl:_r,progress:Zr,appendAction:li,appendActionVisible:hi,itemRender:wn,disabled:hn}):li,gi=De()(`${bi}-wrapper`,nn,Ln,Di,Ei==null?void 0:Ei.className,{[`${bi}-rtl`]:Si==="rtl",[`${bi}-picture-card-wrapper`]:xr==="picture-card",[`${bi}-picture-circle-wrapper`]:xr==="picture-circle"}),Ii=Object.assign(Object.assign({},Ei==null?void 0:Ei.style),Jr);if(cn==="drag"){const li=De()(Di,bi,`${bi}-drag`,{[`${bi}-drag-uploading`]:Kr.some(hi=>hi.status==="uploading"),[`${bi}-drag-hover`]:Dn==="dragover",[`${bi}-disabled`]:hn,[`${bi}-rtl`]:Si==="rtl"});return Oi(Re.createElement("span",{className:gi},Re.createElement("div",{className:li,style:Ii,onDrop:Yn,onDragOver:Yn,onDragLeave:Yn},Re.createElement(Qe,Object.assign({},ci,{ref:Pn,className:`${bi}-btn`}),Re.createElement("div",{className:`${bi}-drag-container`},dn))),Ai()))}const Ki=De()(bi,`${bi}-select`,{[`${bi}-disabled`]:hn}),Yi=(li=>Re.createElement("div",{className:Ki,style:li},Re.createElement(Qe,Object.assign({},ci,{ref:Pn}))))(dn?void 0:{display:"none"});return Oi(xr==="picture-card"||xr==="picture-circle"?Re.createElement("span",{className:gi},Ai(Yi,!!dn)):Re.createElement("span",{className:gi},Yi,Ai()))};var pr=Re.forwardRef(nr),Ar=function(Wt,Qt){var Xt={};for(var qt in Wt)Object.prototype.hasOwnProperty.call(Wt,qt)&&Qt.indexOf(qt)<0&&(Xt[qt]=Wt[qt]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mr=0,qt=Object.getOwnPropertySymbols(Wt);mr<qt.length;mr++)Qt.indexOf(qt[mr])<0&&Object.prototype.propertyIsEnumerable.call(Wt,qt[mr])&&(Xt[qt[mr]]=Wt[qt[mr]]);return Xt},Er=Re.forwardRef((Wt,Qt)=>{var{style:Xt,height:qt}=Wt,mr=Ar(Wt,["style","height"]);return Re.createElement(pr,Object.assign({ref:Qt},mr,{type:"drag",style:Object.assign(Object.assign({},Xt),{height:qt})}))});const tr=pr;tr.Dragger=Er,tr.LIST_IGNORE=Zt;var br=tr},99498:function(or,Ht,ke){(function(Re){Re(ke(89780))})(function(Re){Re.defineOption("placeholder","",function(ie,oe,se){var me=se&&se!=Re.Init;if(oe&&!me)ie.on("blur",ve),ie.on("change",re),ie.on("swapDoc",re),Re.on(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose=function(){De(ie)}),re(ie);else if(!oe&&me){ie.off("blur",ve),ie.off("change",re),ie.off("swapDoc",re),Re.off(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose),gt(ie);var te=ie.getWrapperElement();te.className=te.className.replace(" CodeMirror-empty","")}oe&&!ie.hasFocus()&&ve(ie)});function gt(ie){ie.state.placeholder&&(ie.state.placeholder.parentNode.removeChild(ie.state.placeholder),ie.state.placeholder=null)}function x(ie){gt(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 De(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):gt(ie)},20)}function ve(ie){ne(ie)&&x(ie)}function re(ie){var oe=ie.getWrapperElement(),se=ne(ie);oe.className=oe.className.replace(" CodeMirror-empty","")+(se?" CodeMirror-empty":""),se?x(ie):gt(ie)}function ne(ie){return ie.lineCount()===1&&ie.getLine(0)===""}})},25717:function(or,Ht,ke){(function(Re){Re(ke(89780))})(function(Re){var gt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=Re.Pos;Re.defineOption("autoCloseBrackets",!1,function(de,he,we){we&&we!=Re.Init&&(de.removeKeyMap(ve),de.state.closeBrackets=null),he&&(re(De(he,"pairs")),de.state.closeBrackets=he,de.addKeyMap(ve))});function De(de,he){return he=="pairs"&&typeof de=="string"?de:typeof de=="object"&&de[he]!=null?de[he]:gt[he]}var ve={Backspace:oe,Enter:se};function re(de){for(var he=0;he<de.length;he++){var we=de.charAt(he),Se="'"+we+"'";ve[Se]||(ve[Se]=ne(we))}}re(gt.pairs+"`");function ne(de){return function(he){return te(he,de)}}function ie(de){var he=de.state.closeBrackets;if(!he||he.override)return he;var we=de.getModeAt(de.getCursor());return we.closeBrackets||he}function oe(de){var he=ie(de);if(!he||de.getOption("disableInput"))return Re.Pass;for(var we=De(he,"pairs"),Se=de.listSelections(),xe=0;xe<Se.length;xe++){if(!Se[xe].empty())return Re.Pass;var ye=ae(de,Se[xe].head);if(!ye||we.indexOf(ye)%2!=0)return Re.Pass}for(var xe=Se.length-1;xe>=0;xe--){var Ae=Se[xe].head;de.replaceRange("",x(Ae.line,Ae.ch-1),x(Ae.line,Ae.ch+1),"+delete")}}function se(de){var he=ie(de),we=he&&De(he,"explode");if(!we||de.getOption("disableInput"))return Re.Pass;for(var Se=de.listSelections(),xe=0;xe<Se.length;xe++){if(!Se[xe].empty())return Re.Pass;var ye=ae(de,Se[xe].head);if(!ye||we.indexOf(ye)%2!=0)return Re.Pass}de.operation(function(){var Ae=de.lineSeparator()||`
|
|
|
`;de.replaceSelection(Ae+Ae,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 me(de){var he=Re.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 te(de,he){var we=ie(de);if(!we||de.getOption("disableInput"))return Re.Pass;var Se=De(we,"pairs"),xe=Se.indexOf(he);if(xe==-1)return Re.Pass;for(var ye=De(we,"closeBefore"),Ae=De(we,"triples"),Le=Se.charAt(xe+1)==he,Ce=de.listSelections(),je=xe%2==0,Me,Oe=0;Oe<Ce.length;Oe++){var Ee=Ce[Oe],Ne=Ee.head,_e,Ze=de.getRange(Ne,x(Ne.line,Ne.ch+1));if(je&&!Ee.empty())_e="surround";else if((Le||!je)&&Ze==he)Le&&ue(de,Ne)?_e="both":Ae.indexOf(he)>=0&&de.getRange(Ne,x(Ne.line,Ne.ch+3))==he+he+he?_e="skipThree":_e="skip";else if(Le&&Ne.ch>1&&Ae.indexOf(he)>=0&&de.getRange(x(Ne.line,Ne.ch-2),Ne)==he+he){if(Ne.ch>2&&/\bstring/.test(de.getTokenTypeAt(x(Ne.line,Ne.ch-2))))return Re.Pass;_e="addFour"}else if(Le){var Pe=Ne.ch==0?" ":de.getRange(x(Ne.line,Ne.ch-1),Ne);if(!Re.isWordChar(Ze)&&Pe!=he&&!Re.isWordChar(Pe))_e="both";else return Re.Pass}else if(je&&(Ze.length===0||/\s/.test(Ze)||ye.indexOf(Ze)>-1))_e="both";else return Re.Pass;if(!Me)Me=_e;else if(Me!=_e)return Re.Pass}var Ue=xe%2?Se.charAt(xe-1):he,Qe=xe%2?he:Se.charAt(xe+1);de.operation(function(){if(Me=="skip")de.execCommand("goCharRight");else if(Me=="skipThree")for(var tt=0;tt<3;tt++)de.execCommand("goCharRight");else if(Me=="surround"){for(var at=de.getSelections(),tt=0;tt<at.length;tt++)at[tt]=Ue+at[tt]+Qe;de.replaceSelections(at,"around"),at=de.listSelections().slice();for(var tt=0;tt<at.length;tt++)at[tt]=me(at[tt]);de.setSelections(at)}else Me=="both"?(de.replaceSelection(Ue+Qe,null),de.triggerElectric(Ue+Qe),de.execCommand("goCharLeft")):Me=="addFour"&&(de.replaceSelection(Ue+Ue+Ue+Ue,"before"),de.execCommand("goCharRight"))})}function ae(de,he){var we=de.getRange(x(he.line,he.ch-1),x(he.line,he.ch+1));return we.length==2?we:null}function ue(de,he){var we=de.getTokenAt(x(he.line,he.ch+1));return/\bstring/.test(we.type)&&we.start==he.ch&&(he.ch==0||!/\bstring/.test(de.getTokenTypeAt(he)))}})},6313:function(or,Ht,ke){(function(Re){Re(ke(89780),ke(32855))})(function(Re){Re.defineOption("autoCloseTags",!1,function(oe,se,me){if(me!=Re.Init&&me&&oe.removeKeyMap("autoCloseTags"),!!se){var te={name:"autoCloseTags"};(typeof se!="object"||se.whenClosing!==!1)&&(te["'/'"]=function(ae){return re(ae)}),(typeof se!="object"||se.whenOpening!==!1)&&(te["'>'"]=function(ae){return De(ae)}),oe.addKeyMap(te)}});var gt=["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 De(oe){if(oe.getOption("disableInput"))return Re.Pass;for(var se=oe.listSelections(),me=[],te=oe.getOption("autoCloseTags"),ae=0;ae<se.length;ae++){if(!se[ae].empty())return Re.Pass;var ue=se[ae].head,de=oe.getTokenAt(ue),he=Re.innerMode(oe.getMode(),de.state),we=he.state,Se=he.mode.xmlCurrentTag&&he.mode.xmlCurrentTag(we),xe=Se&&Se.name;if(!xe)return Re.Pass;var ye=he.mode.configuration=="html",Ae=typeof te=="object"&&te.dontCloseTags||ye&>,Le=typeof te=="object"&&te.indentTags||ye&&x;de.end>ue.ch&&(xe=xe.slice(0,xe.length-de.end+ue.ch));var Ce=xe.toLowerCase();if(!xe||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||Ae&&ne(Ae,Ce)>-1||ie(oe,he.mode.xmlCurrentContext&&he.mode.xmlCurrentContext(we)||[],xe,ue,!0))return Re.Pass;var je=typeof te=="object"&&te.emptyTags;if(je&&ne(je,xe)>-1){me[ae]={text:"/>",newPos:Re.Pos(ue.line,ue.ch+2)};continue}var Me=Le&&ne(Le,Ce)>-1;me[ae]={indent:Me,text:">"+(Me?`
|
|
|
|
|
|
`:"")+"</"+xe+">",newPos:Me?Re.Pos(ue.line+1,0):Re.Pos(ue.line,ue.ch+1)}}for(var Oe=typeof te=="object"&&te.dontIndentOnAutoClose,ae=se.length-1;ae>=0;ae--){var Ee=me[ae];oe.replaceRange(Ee.text,se[ae].head,se[ae].anchor,"+insert");var Ne=oe.listSelections().slice(0);Ne[ae]={head:Ee.newPos,anchor:Ee.newPos},oe.setSelections(Ne),!Oe&&Ee.indent&&(oe.indentLine(Ee.newPos.line,null,!0),oe.indentLine(Ee.newPos.line+1,null,!0))}}function ve(oe,se){for(var me=oe.listSelections(),te=[],ae=se?"/":"</",ue=oe.getOption("autoCloseTags"),de=typeof ue=="object"&&ue.dontIndentOnSlash,he=0;he<me.length;he++){if(!me[he].empty())return Re.Pass;var we=me[he].head,Se=oe.getTokenAt(we),xe=Re.innerMode(oe.getMode(),Se.state),ye=xe.state;if(se&&(Se.type=="string"||Se.string.charAt(0)!="<"||Se.start!=we.ch-1))return Re.Pass;var Ae,Le=xe.mode.name!="xml"&&oe.getMode().name=="htmlmixed";if(Le&&xe.mode.name=="javascript")Ae=ae+"script";else if(Le&&xe.mode.name=="css")Ae=ae+"style";else{var Ce=xe.mode.xmlCurrentContext&&xe.mode.xmlCurrentContext(ye);if(!Ce||Ce.length&&ie(oe,Ce,Ce[Ce.length-1],we))return Re.Pass;Ae=ae+Ce[Ce.length-1]}oe.getLine(we.line).charAt(Se.end)!=">"&&(Ae+=">"),te[he]=Ae}if(oe.replaceSelections(te),me=oe.listSelections(),!de)for(var he=0;he<me.length;he++)(he==me.length-1||me[he].head.line<me[he+1].head.line)&&oe.indentLine(me[he].head.line)}function re(oe){return oe.getOption("disableInput")?Re.Pass:ve(oe,!0)}Re.commands.closeTag=function(oe){return ve(oe)};function ne(oe,se){if(oe.indexOf)return oe.indexOf(se);for(var me=0,te=oe.length;me<te;++me)if(oe[me]==se)return me;return-1}function ie(oe,se,me,te,ae){if(!Re.scanForClosingTag)return!1;var ue=Math.min(oe.lastLine()+1,te.line+500),de=Re.scanForClosingTag(oe,te,null,ue);if(!de||de.tag!=me)return!1;for(var he=ae?1:0,we=se.length-1;we>=0&&se[we]==me;we--)++he;te=de.to;for(var we=1;we<he;we++){var Se=Re.scanForClosingTag(oe,te,null,ue);if(!Se||Se.tag!=me)return!1;te=Se.to}return!0}})},32855:function(or,Ht,ke){(function(Re){Re(ke(89780))})(function(Re){"use strict";var gt=Re.Pos;function x(we,Se){return we.line-Se.line||we.ch-Se.ch}var De="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",ve=De+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",re=new RegExp("<(/?)(["+De+"]["+ve+"]*)","g");function ne(we,Se,xe,ye){this.line=Se,this.ch=xe,this.cm=we,this.text=we.getLine(Se),this.min=ye?Math.max(ye.from,we.firstLine()):we.firstLine(),this.max=ye?Math.min(ye.to-1,we.lastLine()):we.lastLine()}function ie(we,Se){var xe=we.cm.getTokenTypeAt(gt(we.line,Se));return xe&&/\btag\b/.test(xe)}function oe(we){if(!(we.line>=we.max))return we.ch=0,we.text=we.cm.getLine(++we.line),!0}function se(we){if(!(we.line<=we.min))return we.text=we.cm.getLine(--we.line),we.ch=we.text.length,!0}function me(we){for(;;){var Se=we.text.indexOf(">",we.ch);if(Se==-1){if(oe(we))continue;return}if(!ie(we,Se+1)){we.ch=Se+1;continue}var xe=we.text.lastIndexOf("/",Se),ye=xe>-1&&!/\S/.test(we.text.slice(xe+1,Se));return we.ch=Se+1,ye?"selfClose":"regular"}}function te(we){for(;;){var Se=we.ch?we.text.lastIndexOf("<",we.ch-1):-1;if(Se==-1){if(se(we))continue;return}if(!ie(we,Se+1)){we.ch=Se;continue}re.lastIndex=Se,we.ch=Se;var xe=re.exec(we.text);if(xe&&xe.index==Se)return xe}}function ae(we){for(;;){re.lastIndex=we.ch;var Se=re.exec(we.text);if(!Se){if(oe(we))continue;return}if(!ie(we,Se.index+1)){we.ch=Se.index+1;continue}return we.ch=Se.index+Se[0].length,Se}}function ue(we){for(;;){var Se=we.ch?we.text.lastIndexOf(">",we.ch-1):-1;if(Se==-1){if(se(we))continue;return}if(!ie(we,Se+1)){we.ch=Se;continue}var xe=we.text.lastIndexOf("/",Se),ye=xe>-1&&!/\S/.test(we.text.slice(xe+1,Se));return we.ch=Se+1,ye?"selfClose":"regular"}}function de(we,Se){for(var xe=[];;){var ye=ae(we),Ae,Le=we.line,Ce=we.ch-(ye?ye[0].length:0);if(!ye||!(Ae=me(we)))return;if(Ae!="selfClose")if(ye[1]){for(var je=xe.length-1;je>=0;--je)if(xe[je]==ye[2]){xe.length=je;break}if(je<0&&(!Se||Se==ye[2]))return{tag:ye[2],from:gt(Le,Ce),to:gt(we.line,we.ch)}}else xe.push(ye[2])}}function he(we,Se){for(var xe=[];;){var ye=ue(we);if(!ye)return;if(ye=="selfClose"){te(we);continue}var Ae=we.line,Le=we.ch,Ce=te(we);if(!Ce)return;if(Ce[1])xe.push(Ce[2]);else{for(var je=xe.length-1;je>=0;--je)if(xe[je]==Ce[2]){xe.length=je;break}if(je<0&&(!Se||Se==Ce[2]))return{tag:Ce[2],from:gt(we.line,we.ch),to:gt(Ae,Le)}}}}Re.registerHelper("fold","xml",function(we,Se){for(var xe=new ne(we,Se.line,0);;){var ye=ae(xe);if(!ye||xe.line!=Se.line)return;var Ae=me(xe);if(!Ae)return;if(!ye[1]&&Ae!="selfClose"){var Le=gt(xe.line,xe.ch),Ce=de(xe,ye[2]);return Ce&&x(Ce.from,Le)>0?{from:Le,to:Ce.from}:null}}}),Re.findMatchingTag=function(we,Se,xe){var ye=new ne(we,Se.line,Se.ch,xe);if(!(ye.text.indexOf(">")==-1&&ye.text.indexOf("<")==-1)){var Ae=me(ye),Le=Ae&>(ye.line,ye.ch),Ce=Ae&&te(ye);if(!(!Ae||!Ce||x(ye,Se)>0)){var je={from:gt(ye.line,ye.ch),to:Le,tag:Ce[2]};return Ae=="selfClose"?{open:je,close:null,at:"open"}:Ce[1]?{open:he(ye,Ce[2]),close:je,at:"close"}:(ye=new ne(we,Le.line,Le.ch,xe),{open:je,close:de(ye,Ce[2]),at:"open"})}}},Re.findEnclosingTag=function(we,Se,xe,ye){for(var Ae=new ne(we,Se.line,Se.ch,xe);;){var Le=he(Ae,ye);if(!Le)break;var Ce=new ne(we,Se.line,Se.ch,xe),je=de(Ce,Le.tag);if(je)return{open:Le,close:je}}},Re.scanForClosingTag=function(we,Se,xe,ye){var Ae=new ne(we,Se.line,Se.ch,ye?{from:0,to:ye}:null);return de(Ae,xe)}})},89780:function(or){(function(Ht,ke){or.exports=ke()})(this,function(){"use strict";var Ht=navigator.userAgent,ke=navigator.platform,Re=/gecko\/\d/i.test(Ht),gt=/MSIE \d/.test(Ht),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ht),De=/Edge\/(\d+)/.exec(Ht),ve=gt||x||De,re=ve&&(gt?document.documentMode||6:+(De||x)[1]),ne=!De&&/WebKit\//.test(Ht),ie=ne&&/Qt\/\d+\.\d+/.test(Ht),oe=!De&&/Chrome\//.test(Ht),se=/Opera\//.test(Ht),me=/Apple Computer/.test(navigator.vendor),te=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ht),ae=/PhantomJS/.test(Ht),ue=!De&&/AppleWebKit/.test(Ht)&&/Mobile\/\w+/.test(Ht),de=/Android/.test(Ht),he=ue||de||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ht),we=ue||/Mac/.test(ke),Se=/\bCrOS\b/.test(Ht),xe=/win/i.test(ke),ye=se&&Ht.match(/Version\/(\d*\.\d*)/);ye&&(ye=Number(ye[1])),ye&&ye>=15&&(se=!1,ne=!0);var Ae=we&&(ie||se&&(ye==null||ye<12.11)),Le=Re||ve&&re>=9;function Ce(E){return new RegExp("(^|\\s)"+E+"(?:$|\\s)\\s*")}var je=function(E,ee){var be=E.className,ge=Ce(ee).exec(be);if(ge){var Be=be.slice(ge.index+ge[0].length);E.className=be.slice(0,ge.index)+(Be?ge[1]+Be:"")}};function Me(E){for(var ee=E.childNodes.length;ee>0;--ee)E.removeChild(E.firstChild);return E}function Oe(E,ee){return Me(E).appendChild(ee)}function Ee(E,ee,be,ge){var Be=document.createElement(E);if(be&&(Be.className=be),ge&&(Be.style.cssText=ge),typeof ee=="string")Be.appendChild(document.createTextNode(ee));else if(ee)for(var $e=0;$e<ee.length;++$e)Be.appendChild(ee[$e]);return Be}function Ne(E,ee,be,ge){var Be=Ee(E,ee,be,ge);return Be.setAttribute("role","presentation"),Be}var _e;document.createRange?_e=function(E,ee,be,ge){var Be=document.createRange();return Be.setEnd(ge||E,be),Be.setStart(E,ee),Be}:_e=function(E,ee,be){var ge=document.body.createTextRange();try{ge.moveToElementText(E.parentNode)}catch(Be){return ge}return ge.collapse(!0),ge.moveEnd("character",be),ge.moveStart("character",ee),ge};function Ze(E,ee){if(ee.nodeType==3&&(ee=ee.parentNode),E.contains)return E.contains(ee);do if(ee.nodeType==11&&(ee=ee.host),ee==E)return!0;while(ee=ee.parentNode)}function Pe(){var E;try{E=document.activeElement}catch(ee){E=document.body||null}for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E}function Ue(E,ee){var be=E.className;Ce(ee).test(be)||(E.className+=(be?" ":"")+ee)}function Qe(E,ee){for(var be=E.split(" "),ge=0;ge<be.length;ge++)be[ge]&&!Ce(be[ge]).test(ee)&&(ee+=" "+be[ge]);return ee}var tt=function(E){E.select()};ue?tt=function(E){E.selectionStart=0,E.selectionEnd=E.value.length}:ve&&(tt=function(E){try{E.select()}catch(ee){}});function at(E){var ee=Array.prototype.slice.call(arguments,1);return function(){return E.apply(null,ee)}}function lt(E,ee,be){ee||(ee={});for(var ge in E)E.hasOwnProperty(ge)&&(be!==!1||!ee.hasOwnProperty(ge))&&(ee[ge]=E[ge]);return ee}function Ve(E,ee,be,ge,Be){ee==null&&(ee=E.search(/[^\s\u00a0]/),ee==-1&&(ee=E.length));for(var $e=ge||0,ht=Be||0;;){var Ct=E.indexOf(" ",$e);if(Ct<0||Ct>=ee)return ht+(ee-$e);ht+=Ct-$e,ht+=be-ht%be,$e=Ct+1}}var Xe=function(){this.id=null,this.f=null,this.time=0,this.handler=at(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,ee){this.f=ee;var be=+new Date+E;(!this.id||be<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,E),this.time=be)};function nt(E,ee){for(var be=0;be<E.length;++be)if(E[be]==ee)return be;return-1}var ct=50,ot={toString:function(){return"CodeMirror.Pass"}},et={scroll:!1},qe={origin:"*mouse"},it={origin:"+move"};function yt(E,ee,be){for(var ge=0,Be=0;;){var $e=E.indexOf(" ",ge);$e==-1&&($e=E.length);var ht=$e-ge;if($e==E.length||Be+ht>=ee)return ge+Math.min(ht,ee-Be);if(Be+=$e-ge,Be+=be-Be%be,ge=$e+1,Be>=ee)return ge}}var pt=[""];function Dt(E){for(;pt.length<=E;)pt.push(At(pt)+" ");return pt[E]}function At(E){return E[E.length-1]}function st(E,ee){for(var be=[],ge=0;ge<E.length;ge++)be[ge]=ee(E[ge],ge);return be}function Ge(E,ee,be){for(var ge=0,Be=be(ee);ge<E.length&&be(E[ge])<=Be;)ge++;E.splice(ge,0,ee)}function We(){}function le(E,ee){var be;return Object.create?be=Object.create(E):(We.prototype=E,be=new We),ee&<(ee,be),be}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ze(E){return/\w/.test(E)||E>"\x80"&&(E.toUpperCase()!=E.toLowerCase()||fe.test(E))}function He(E,ee){return ee?ee.source.indexOf("\\w")>-1&&ze(E)?!0:ee.test(E):ze(E)}function pe(E){for(var ee in E)if(E.hasOwnProperty(ee)&&E[ee])return!1;return!0}var Ie=/[\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 Ke(E){return E.charCodeAt(0)>=768&&Ie.test(E)}function Ye(E,ee,be){for(;(be<0?ee>0:ee<E.length)&&Ke(E.charAt(ee));)ee+=be;return ee}function Je(E,ee,be){for(var ge=ee>be?-1:1;;){if(ee==be)return ee;var Be=(ee+be)/2,$e=ge<0?Math.ceil(Be):Math.floor(Be);if($e==ee)return E($e)?ee:be;E($e)?be=$e:ee=$e+ge}}function dt(E,ee,be,ge){if(!E)return ge(ee,be,"ltr",0);for(var Be=!1,$e=0;$e<E.length;++$e){var ht=E[$e];(ht.from<be&&ht.to>ee||ee==be&&ht.to==ee)&&(ge(Math.max(ht.from,ee),Math.min(ht.to,be),ht.level==1?"rtl":"ltr",$e),Be=!0)}Be||ge(ee,be,"ltr")}var bt=null;function vt(E,ee,be){var ge;bt=null;for(var Be=0;Be<E.length;++Be){var $e=E[Be];if($e.from<ee&&$e.to>ee)return Be;$e.to==ee&&($e.from!=$e.to&&be=="before"?ge=Be:bt=Be),$e.from==ee&&($e.from!=$e.to&&be!="before"?ge=Be:bt=Be)}return ge!=null?ge:bt}var It=function(){var E="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ee="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function be(Pt){return Pt<=247?E.charAt(Pt):1424<=Pt&&Pt<=1524?"R":1536<=Pt&&Pt<=1785?ee.charAt(Pt-1536):1774<=Pt&&Pt<=2220?"r":8192<=Pt&&Pt<=8203?"w":Pt==8204?"b":"L"}var ge=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Be=/[stwN]/,$e=/[LRr]/,ht=/[Lb1n]/,Ct=/[1n]/;function Tt(Pt,rr,ur){this.level=Pt,this.from=rr,this.to=ur}return function(Pt,rr){var ur=rr=="ltr"?"L":"R";if(Pt.length==0||rr=="ltr"&&!ge.test(Pt))return!1;for(var Pr=Pt.length,kr=[],tn=0;tn<Pr;++tn)kr.push(be(Pt.charCodeAt(tn)));for(var En=0,Hn=ur;En<Pr;++En){var qn=kr[En];qn=="m"?kr[En]=Hn:Hn=qn}for(var ti=0,Qn=ur;ti<Pr;++ti){var ni=kr[ti];ni=="1"&&Qn=="r"?kr[ti]="n":$e.test(ni)&&(Qn=ni,ni=="r"&&(kr[ti]="R"))}for(var mi=1,yi=kr[0];mi<Pr-1;++mi){var Ri=kr[mi];Ri=="+"&&yi=="1"&&kr[mi+1]=="1"?kr[mi]="1":Ri==","&&yi==kr[mi+1]&&(yi=="1"||yi=="n")&&(kr[mi]=yi),yi=Ri}for(var ia=0;ia<Pr;++ia){var Za=kr[ia];if(Za==",")kr[ia]="N";else if(Za=="%"){var fa=void 0;for(fa=ia+1;fa<Pr&&kr[fa]=="%";++fa);for(var yo=ia&&kr[ia-1]=="!"||fa<Pr&&kr[fa]=="1"?"1":"N",bo=ia;bo<fa;++bo)kr[bo]=yo;ia=fa-1}}for(var Da=0,xo=ur;Da<Pr;++Da){var Ti=kr[Da];xo=="L"&&Ti=="1"?kr[Da]="L":$e.test(Ti)&&(xo=Ti)}for(var ga=0;ga<Pr;++ga)if(Be.test(kr[ga])){var ha=void 0;for(ha=ga+1;ha<Pr&&Be.test(kr[ha]);++ha);for(var va=(ga?kr[ga-1]:ur)=="L",Ca=(ha<Pr?kr[ha]:ur)=="L",pl=va==Ca?va?"L":"R":ur,Eo=ga;Eo<ha;++Eo)kr[Eo]=pl;ga=ha-1}for(var $a=[],Vi,ja=0;ja<Pr;)if(ht.test(kr[ja])){var ou=ja;for(++ja;ja<Pr&&ht.test(kr[ja]);++ja);$a.push(new Tt(0,ou,ja))}else{var xs=ja,js=$a.length,es=rr=="rtl"?1:0;for(++ja;ja<Pr&&kr[ja]!="L";++ja);for(var Ia=xs;Ia<ja;)if(Ct.test(kr[Ia])){xs<Ia&&($a.splice(js,0,new Tt(1,xs,Ia)),js+=es);var ml=Ia;for(++Ia;Ia<ja&&Ct.test(kr[Ia]);++Ia);$a.splice(js,0,new Tt(2,ml,Ia)),js+=es,xs=Ia}else++Ia;xs<ja&&$a.splice(js,0,new Tt(1,xs,ja))}return rr=="ltr"&&($a[0].level==1&&(Vi=Pt.match(/^\s+/))&&($a[0].from=Vi[0].length,$a.unshift(new Tt(0,0,Vi[0].length))),At($a).level==1&&(Vi=Pt.match(/\s+$/))&&(At($a).to-=Vi[0].length,$a.push(new Tt(0,Pr-Vi[0].length,Pr)))),rr=="rtl"?$a.reverse():$a}}();function Vt(E,ee){var be=E.order;return be==null&&(be=E.order=It(E.text,ee)),be}var kt=[],jt=function(E,ee,be){if(E.addEventListener)E.addEventListener(ee,be,!1);else if(E.attachEvent)E.attachEvent("on"+ee,be);else{var ge=E._handlers||(E._handlers={});ge[ee]=(ge[ee]||kt).concat(be)}};function _t(E,ee){return E._handlers&&E._handlers[ee]||kt}function Mt(E,ee,be){if(E.removeEventListener)E.removeEventListener(ee,be,!1);else if(E.detachEvent)E.detachEvent("on"+ee,be);else{var ge=E._handlers,Be=ge&&ge[ee];if(Be){var $e=nt(Be,be);$e>-1&&(ge[ee]=Be.slice(0,$e).concat(Be.slice($e+1)))}}}function ft(E,ee){var be=_t(E,ee);if(be.length)for(var ge=Array.prototype.slice.call(arguments,2),Be=0;Be<be.length;++Be)be[Be].apply(null,ge)}function St(E,ee,be){return typeof ee=="string"&&(ee={type:ee,preventDefault:function(){this.defaultPrevented=!0}}),ft(E,be||ee.type,E,ee),wr(ee)||ee.codemirrorIgnore}function Nt(E){var ee=E._handlers&&E._handlers.cursorActivity;if(ee)for(var be=E.curOp.cursorActivityHandlers||(E.curOp.cursorActivityHandlers=[]),ge=0;ge<ee.length;++ge)nt(be,ee[ge])==-1&&be.push(ee[ge])}function Ft(E,ee){return _t(E,ee).length>0}function Ut(E){E.prototype.on=function(ee,be){jt(this,ee,be)},E.prototype.off=function(ee,be){Mt(this,ee,be)}}function sr(E){E.preventDefault?E.preventDefault():E.returnValue=!1}function gr(E){E.stopPropagation?E.stopPropagation():E.cancelBubble=!0}function wr(E){return E.defaultPrevented!=null?E.defaultPrevented:E.returnValue==!1}function zr(E){sr(E),gr(E)}function Wr(E){return E.target||E.srcElement}function Br(E){var ee=E.which;return ee==null&&(E.button&1?ee=1:E.button&2?ee=3:E.button&4&&(ee=2)),we&&E.ctrlKey&&ee==1&&(ee=3),ee}var Nr=function(){if(ve&&re<9)return!1;var E=Ee("div");return"draggable"in E||"dragDrop"in E}(),on;function Mn(E){if(on==null){var ee=Ee("span","\u200B");Oe(E,Ee("span",[ee,document.createTextNode("x")])),E.firstChild.offsetHeight!=0&&(on=ee.offsetWidth<=1&&ee.offsetHeight>2&&!(ve&&re<8))}var be=on?Ee("span","\u200B"):Ee("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return be.setAttribute("cm-text",""),be}var jn;function an(E){if(jn!=null)return jn;var ee=Oe(E,document.createTextNode("A\u062EA")),be=_e(ee,0,1).getBoundingClientRect(),ge=_e(ee,1,2).getBoundingClientRect();return Me(E),!be||be.left==be.right?!1:jn=ge.right-be.right<3}var Tn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(E){for(var ee=0,be=[],ge=E.length;ee<=ge;){var Be=E.indexOf(`
|
|
|
`,ee);Be==-1&&(Be=E.length);var $e=E.slice(ee,E.charAt(Be-1)=="\r"?Be-1:Be),ht=$e.indexOf("\r");ht!=-1?(be.push($e.slice(0,ht)),ee+=ht+1):(be.push($e),ee=Be+1)}return be}:function(E){return E.split(/\r\n?|\n/)},Vr=window.getSelection?function(E){try{return E.selectionStart!=E.selectionEnd}catch(ee){return!1}}:function(E){var ee;try{ee=E.ownerDocument.selection.createRange()}catch(be){}return!ee||ee.parentElement()!=E?!1:ee.compareEndPoints("StartToEnd",ee)!=0},Gn=function(){var E=Ee("div");return"oncopy"in E?!0:(E.setAttribute("oncopy","return;"),typeof E.oncopy=="function")}(),Wn=null;function Jt(E){if(Wn!=null)return Wn;var ee=Oe(E,Ee("span","x")),be=ee.getBoundingClientRect(),ge=_e(ee,0,1).getBoundingClientRect();return Wn=Math.abs(be.left-ge.left)>1}var jr={},Rr={};function Tr(E,ee){arguments.length>2&&(ee.dependencies=Array.prototype.slice.call(arguments,2)),jr[E]=ee}function Sr(E,ee){Rr[E]=ee}function Dr(E){if(typeof E=="string"&&Rr.hasOwnProperty(E))E=Rr[E];else if(E&&typeof E.name=="string"&&Rr.hasOwnProperty(E.name)){var ee=Rr[E.name];typeof ee=="string"&&(ee={name:ee}),E=le(ee,E),E.name=ee.name}else{if(typeof E=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(E))return Dr("application/xml");if(typeof E=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(E))return Dr("application/json")}return typeof E=="string"?{name:E}:E||{name:"null"}}function Or(E,ee){ee=Dr(ee);var be=jr[ee.name];if(!be)return Or(E,"text/plain");var ge=be(E,ee);if(Yr.hasOwnProperty(ee.name)){var Be=Yr[ee.name];for(var $e in Be)Be.hasOwnProperty($e)&&(ge.hasOwnProperty($e)&&(ge["_"+$e]=ge[$e]),ge[$e]=Be[$e])}if(ge.name=ee.name,ee.helperType&&(ge.helperType=ee.helperType),ee.modeProps)for(var ht in ee.modeProps)ge[ht]=ee.modeProps[ht];return ge}var Yr={};function Kt(E,ee){var be=Yr.hasOwnProperty(E)?Yr[E]:Yr[E]={};lt(ee,be)}function xt(E,ee){if(ee===!0)return ee;if(E.copyState)return E.copyState(ee);var be={};for(var ge in ee){var Be=ee[ge];Be instanceof Array&&(Be=Be.concat([])),be[ge]=Be}return be}function Bt(E,ee){for(var be;E.innerMode&&(be=E.innerMode(ee),!(!be||be.mode==E));)ee=be.state,E=be.mode;return be||{mode:E,state:ee}}function Ot(E,ee,be){return E.startState?E.startState(ee,be):!0}var Et=function(E,ee,be){this.pos=this.start=0,this.string=E,this.tabSize=ee||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=be};Et.prototype.eol=function(){return this.pos>=this.string.length},Et.prototype.sol=function(){return this.pos==this.lineStart},Et.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Et.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Et.prototype.eat=function(E){var ee=this.string.charAt(this.pos),be;if(typeof E=="string"?be=ee==E:be=ee&&(E.test?E.test(ee):E(ee)),be)return++this.pos,ee},Et.prototype.eatWhile=function(E){for(var ee=this.pos;this.eat(E););return this.pos>ee},Et.prototype.eatSpace=function(){for(var E=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>E},Et.prototype.skipToEnd=function(){this.pos=this.string.length},Et.prototype.skipTo=function(E){var ee=this.string.indexOf(E,this.pos);if(ee>-1)return this.pos=ee,!0},Et.prototype.backUp=function(E){this.pos-=E},Et.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ve(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ve(this.string,this.lineStart,this.tabSize):0)},Et.prototype.indentation=function(){return Ve(this.string,null,this.tabSize)-(this.lineStart?Ve(this.string,this.lineStart,this.tabSize):0)},Et.prototype.match=function(E,ee,be){if(typeof E=="string"){var ge=function(ht){return be?ht.toLowerCase():ht},Be=this.string.substr(this.pos,E.length);if(ge(Be)==ge(E))return ee!==!1&&(this.pos+=E.length),!0}else{var $e=this.string.slice(this.pos).match(E);return $e&&$e.index>0?null:($e&&ee!==!1&&(this.pos+=$e[0].length),$e)}},Et.prototype.current=function(){return this.string.slice(this.start,this.pos)},Et.prototype.hideFirstChars=function(E,ee){this.lineStart+=E;try{return ee()}finally{this.lineStart-=E}},Et.prototype.lookAhead=function(E){var ee=this.lineOracle;return ee&&ee.lookAhead(E)},Et.prototype.baseToken=function(){var E=this.lineOracle;return E&&E.baseToken(this.pos)};function zt(E,ee){if(ee-=E.first,ee<0||ee>=E.size)throw new Error("There is no line "+(ee+E.first)+" in the document.");for(var be=E;!be.lines;)for(var ge=0;;++ge){var Be=be.children[ge],$e=Be.chunkSize();if(ee<$e){be=Be;break}ee-=$e}return be.lines[ee]}function Zt(E,ee,be){var ge=[],Be=ee.line;return E.iter(ee.line,be.line+1,function($e){var ht=$e.text;Be==be.line&&(ht=ht.slice(0,be.ch)),Be==ee.line&&(ht=ht.slice(ee.ch)),ge.push(ht),++Be}),ge}function nr(E,ee,be){var ge=[];return E.iter(ee,be,function(Be){ge.push(Be.text)}),ge}function $t(E,ee){var be=ee-E.height;if(be)for(var ge=E;ge;ge=ge.parent)ge.height+=be}function pr(E){if(E.parent==null)return null;for(var ee=E.parent,be=nt(ee.lines,E),ge=ee.parent;ge;ee=ge,ge=ge.parent)for(var Be=0;ge.children[Be]!=ee;++Be)be+=ge.children[Be].chunkSize();return be+ee.first}function Ar(E,ee){var be=E.first;e:do{for(var ge=0;ge<E.children.length;++ge){var Be=E.children[ge],$e=Be.height;if(ee<$e){E=Be;continue e}ee-=$e,be+=Be.chunkSize()}return be}while(!E.lines);for(var ht=0;ht<E.lines.length;++ht){var Ct=E.lines[ht],Tt=Ct.height;if(ee<Tt)break;ee-=Tt}return be+ht}function Lr(E,ee){return ee>=E.first&&ee<E.first+E.size}function Er(E,ee){return String(E.lineNumberFormatter(ee+E.firstLineNumber))}function tr(E,ee,be){if(be===void 0&&(be=null),!(this instanceof tr))return new tr(E,ee,be);this.line=E,this.ch=ee,this.sticky=be}function br(E,ee){return E.line-ee.line||E.ch-ee.ch}function Wt(E,ee){return E.sticky==ee.sticky&&br(E,ee)==0}function Qt(E){return tr(E.line,E.ch)}function Xt(E,ee){return br(E,ee)<0?ee:E}function qt(E,ee){return br(E,ee)<0?E:ee}function mr(E,ee){return Math.max(E.first,Math.min(ee,E.first+E.size-1))}function ar(E,ee){if(ee.line<E.first)return tr(E.first,0);var be=E.first+E.size-1;return ee.line>be?tr(be,zt(E,be).text.length):xr(ee,zt(E,ee.line).text.length)}function xr(E,ee){var be=E.ch;return be==null||be>ee?tr(E.line,ee):be<0?tr(E.line,0):E}function Lt(E,ee){for(var be=[],ge=0;ge<ee.length;ge++)be[ge]=ar(E,ee[ge]);return be}var Yt=function(E,ee){this.state=E,this.lookAhead=ee},er=function(E,ee,be,ge){this.state=ee,this.doc=E,this.line=be,this.maxLookAhead=ge||0,this.baseTokens=null,this.baseTokenPos=1};er.prototype.lookAhead=function(E){var ee=this.doc.getLine(this.line+E);return ee!=null&&E>this.maxLookAhead&&(this.maxLookAhead=E),ee},er.prototype.baseToken=function(E){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=E;)this.baseTokenPos+=2;var ee=this.baseTokens[this.baseTokenPos+1];return{type:ee&&ee.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-E}},er.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},er.fromSaved=function(E,ee,be){return ee instanceof Yt?new er(E,xt(E.mode,ee.state),be,ee.lookAhead):new er(E,xt(E.mode,ee),be)},er.prototype.save=function(E){var ee=E!==!1?xt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Yt(ee,this.maxLookAhead):ee};function dr(E,ee,be,ge){var Be=[E.state.modeGen],$e={};cn(E,ee.text,E.doc.mode,be,function(Pt,rr){return Be.push(Pt,rr)},$e,ge);for(var ht=be.state,Ct=function(Pt){be.baseTokens=Be;var rr=E.state.overlays[Pt],ur=1,Pr=0;be.state=!0,cn(E,ee.text,rr.mode,be,function(kr,tn){for(var En=ur;Pr<kr;){var Hn=Be[ur];Hn>kr&&Be.splice(ur,1,kr,Be[ur+1],Hn),ur+=2,Pr=Math.min(kr,Hn)}if(tn)if(rr.opaque)Be.splice(En,ur-En,kr,"overlay "+tn),ur=En+2;else for(;En<ur;En+=2){var qn=Be[En+1];Be[En+1]=(qn?qn+" ":"")+"overlay "+tn}},$e),be.state=ht,be.baseTokens=null,be.baseTokenPos=1},Tt=0;Tt<E.state.overlays.length;++Tt)Ct(Tt);return{styles:Be,classes:$e.bgClass||$e.textClass?$e:null}}function lr(E,ee,be){if(!ee.styles||ee.styles[0]!=E.state.modeGen){var ge=fr(E,pr(ee)),Be=ee.text.length>E.options.maxHighlightLength&&xt(E.doc.mode,ge.state),$e=dr(E,ee,ge);Be&&(ge.state=Be),ee.stateAfter=ge.save(!Be),ee.styles=$e.styles,$e.classes?ee.styleClasses=$e.classes:ee.styleClasses&&(ee.styleClasses=null),be===E.doc.highlightFrontier&&(E.doc.modeFrontier=Math.max(E.doc.modeFrontier,++E.doc.highlightFrontier))}return ee.styles}function fr(E,ee,be){var ge=E.doc,Be=E.display;if(!ge.mode.startState)return new er(ge,!0,ee);var $e=dn(E,ee,be),ht=$e>ge.first&&zt(ge,$e-1).stateAfter,Ct=ht?er.fromSaved(ge,ht,$e):new er(ge,Ot(ge.mode),$e);return ge.iter($e,ee,function(Tt){hr(E,Tt.text,Ct);var Pt=Ct.line;Tt.stateAfter=Pt==ee-1||Pt%5==0||Pt>=Be.viewFrom&&Pt<Be.viewTo?Ct.save():null,Ct.nextLine()}),be&&(ge.modeFrontier=Ct.line),Ct}function hr(E,ee,be,ge){var Be=E.doc.mode,$e=new Et(ee,E.options.tabSize,be);for($e.start=$e.pos=ge||0,ee==""&&Cr(Be,be.state);!$e.eol();)_r(Be,$e,be.state),$e.start=$e.pos}function Cr(E,ee){if(E.blankLine)return E.blankLine(ee);if(E.innerMode){var be=Bt(E,ee);if(be.mode.blankLine)return be.mode.blankLine(be.state)}}function _r(E,ee,be,ge){for(var Be=0;Be<10;Be++){ge&&(ge[0]=Bt(E,be).mode);var $e=E.token(ee,be);if(ee.pos>ee.start)return $e}throw new Error("Mode "+E.name+" failed to advance stream.")}var Zr=function(E,ee,be){this.start=E.start,this.end=E.pos,this.string=E.current(),this.type=ee||null,this.state=be};function $r(E,ee,be,ge){var Be=E.doc,$e=Be.mode,ht;ee=ar(Be,ee);var Ct=zt(Be,ee.line),Tt=fr(E,ee.line,be),Pt=new Et(Ct.text,E.options.tabSize,Tt),rr;for(ge&&(rr=[]);(ge||Pt.pos<ee.ch)&&!Pt.eol();)Pt.start=Pt.pos,ht=_r($e,Pt,Tt.state),ge&&rr.push(new Zr(Pt,ht,xt(Be.mode,Tt.state)));return ge?rr:new Zr(Pt,ht,Tt.state)}function nn(E,ee){if(E)for(;;){var be=E.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!be)break;E=E.slice(0,be.index)+E.slice(be.index+be[0].length);var ge=be[1]?"bgClass":"textClass";ee[ge]==null?ee[ge]=be[2]:new RegExp("(?:^|\\s)"+be[2]+"(?:$|\\s)").test(ee[ge])||(ee[ge]+=" "+be[2])}return E}function cn(E,ee,be,ge,Be,$e,ht){var Ct=be.flattenSpans;Ct==null&&(Ct=E.options.flattenSpans);var Tt=0,Pt=null,rr=new Et(ee,E.options.tabSize,ge),ur,Pr=E.options.addModeClass&&[null];for(ee==""&&nn(Cr(be,ge.state),$e);!rr.eol();){if(rr.pos>E.options.maxHighlightLength?(Ct=!1,ht&&hr(E,ee,ge,rr.pos),rr.pos=ee.length,ur=null):ur=nn(_r(be,rr,ge.state,Pr),$e),Pr){var kr=Pr[0].name;kr&&(ur="m-"+(ur?kr+" "+ur:kr))}if(!Ct||Pt!=ur){for(;Tt<rr.start;)Tt=Math.min(rr.start,Tt+5e3),Be(Tt,Pt);Pt=ur}rr.start=rr.pos}for(;Tt<rr.pos;){var tn=Math.min(rr.pos,Tt+5e3);Be(tn,Pt),Tt=tn}}function dn(E,ee,be){for(var ge,Be,$e=E.doc,ht=be?-1:ee-(E.doc.mode.innerMode?1e3:100),Ct=ee;Ct>ht;--Ct){if(Ct<=$e.first)return $e.first;var Tt=zt($e,Ct-1),Pt=Tt.stateAfter;if(Pt&&(!be||Ct+(Pt instanceof Yt?Pt.lookAhead:0)<=$e.modeFrontier))return Ct;var rr=Ve(Tt.text,null,E.options.tabSize);(Be==null||ge>rr)&&(Be=Ct-1,ge=rr)}return Be}function Jr(E,ee){if(E.modeFrontier=Math.min(E.modeFrontier,ee),!(E.highlightFrontier<ee-10)){for(var be=E.first,ge=ee-1;ge>be;ge--){var Be=zt(E,ge).stateAfter;if(Be&&(!(Be instanceof Yt)||ge+Be.lookAhead<ee)){be=ge+1;break}}E.highlightFrontier=Math.min(E.highlightFrontier,be)}}var wn=!1,fn=!1;function On(){wn=!0}function un(){fn=!0}function mn(E,ee,be){this.marker=E,this.from=ee,this.to=be}function yn(E,ee){if(E)for(var be=0;be<E.length;++be){var ge=E[be];if(ge.marker==ee)return ge}}function en(E,ee){for(var be,ge=0;ge<E.length;++ge)E[ge]!=ee&&(be||(be=[])).push(E[ge]);return be}function Ln(E,ee){E.markedSpans=E.markedSpans?E.markedSpans.concat([ee]):[ee],ee.marker.attachLine(E)}function Xn(E,ee,be){var ge;if(E)for(var Be=0;Be<E.length;++Be){var $e=E[Be],ht=$e.marker,Ct=$e.from==null||(ht.inclusiveLeft?$e.from<=ee:$e.from<ee);if(Ct||$e.from==ee&&ht.type=="bookmark"&&(!be||!$e.marker.insertLeft)){var Tt=$e.to==null||(ht.inclusiveRight?$e.to>=ee:$e.to>ee);(ge||(ge=[])).push(new mn(ht,$e.from,Tt?null:$e.to))}}return ge}function hn(E,ee,be){var ge;if(E)for(var Be=0;Be<E.length;++Be){var $e=E[Be],ht=$e.marker,Ct=$e.to==null||(ht.inclusiveRight?$e.to>=ee:$e.to>ee);if(Ct||$e.from==ee&&ht.type=="bookmark"&&(!be||$e.marker.insertLeft)){var Tt=$e.from==null||(ht.inclusiveLeft?$e.from<=ee:$e.from<ee);(ge||(ge=[])).push(new mn(ht,Tt?null:$e.from-ee,$e.to==null?null:$e.to-ee))}}return ge}function Kr(E,ee){if(ee.full)return null;var be=Lr(E,ee.from.line)&&zt(E,ee.from.line).markedSpans,ge=Lr(E,ee.to.line)&&zt(E,ee.to.line).markedSpans;if(!be&&!ge)return null;var Be=ee.from.ch,$e=ee.to.ch,ht=br(ee.from,ee.to)==0,Ct=Xn(be,Be,ht),Tt=hn(ge,$e,ht),Pt=ee.text.length==1,rr=At(ee.text).length+(Pt?Be:0);if(Ct)for(var ur=0;ur<Ct.length;++ur){var Pr=Ct[ur];if(Pr.to==null){var kr=yn(Tt,Pr.marker);kr?Pt&&(Pr.to=kr.to==null?null:kr.to+rr):Pr.to=Be}}if(Tt)for(var tn=0;tn<Tt.length;++tn){var En=Tt[tn];if(En.to!=null&&(En.to+=rr),En.from==null){var Hn=yn(Ct,En.marker);Hn||(En.from=rr,Pt&&(Ct||(Ct=[])).push(En))}else En.from+=rr,Pt&&(Ct||(Ct=[])).push(En)}Ct&&(Ct=Ur(Ct)),Tt&&Tt!=Ct&&(Tt=Ur(Tt));var qn=[Ct];if(!Pt){var ti=ee.text.length-2,Qn;if(ti>0&&Ct)for(var ni=0;ni<Ct.length;++ni)Ct[ni].to==null&&(Qn||(Qn=[])).push(new mn(Ct[ni].marker,null,null));for(var mi=0;mi<ti;++mi)qn.push(Qn);qn.push(Tt)}return qn}function Ur(E){for(var ee=0;ee<E.length;++ee){var be=E[ee];be.from!=null&&be.from==be.to&&be.marker.clearWhenEmpty!==!1&&E.splice(ee--,1)}return E.length?E:null}function Dn(E,ee,be){var ge=null;if(E.iter(ee.line,be.line+1,function(kr){if(kr.markedSpans)for(var tn=0;tn<kr.markedSpans.length;++tn){var En=kr.markedSpans[tn].marker;En.readOnly&&(!ge||nt(ge,En)==-1)&&(ge||(ge=[])).push(En)}}),!ge)return null;for(var Be=[{from:ee,to:be}],$e=0;$e<ge.length;++$e)for(var ht=ge[$e],Ct=ht.find(0),Tt=0;Tt<Be.length;++Tt){var Pt=Be[Tt];if(!(br(Pt.to,Ct.from)<0||br(Pt.from,Ct.to)>0)){var rr=[Tt,1],ur=br(Pt.from,Ct.from),Pr=br(Pt.to,Ct.to);(ur<0||!ht.inclusiveLeft&&!ur)&&rr.push({from:Pt.from,to:Ct.from}),(Pr>0||!ht.inclusiveRight&&!Pr)&&rr.push({from:Ct.to,to:Pt.to}),Be.splice.apply(Be,rr),Tt+=rr.length-3}}return Be}function bn(E){var ee=E.markedSpans;if(ee){for(var be=0;be<ee.length;++be)ee[be].marker.detachLine(E);E.markedSpans=null}}function Pn(E,ee){if(ee){for(var be=0;be<ee.length;++be)ee[be].marker.attachLine(E);E.markedSpans=ee}}function Un(E){return E.inclusiveLeft?-1:0}function Zn(E){return E.inclusiveRight?1:0}function kn(E,ee){var be=E.lines.length-ee.lines.length;if(be!=0)return be;var ge=E.find(),Be=ee.find(),$e=br(ge.from,Be.from)||Un(E)-Un(ee);if($e)return-$e;var ht=br(ge.to,Be.to)||Zn(E)-Zn(ee);return ht||ee.id-E.id}function zn(E,ee){var be=fn&&E.markedSpans,ge;if(be)for(var Be=void 0,$e=0;$e<be.length;++$e)Be=be[$e],Be.marker.collapsed&&(ee?Be.from:Be.to)==null&&(!ge||kn(ge,Be.marker)<0)&&(ge=Be.marker);return ge}function di(E){return zn(E,!0)}function pn(E){return zn(E,!1)}function An(E,ee){var be=fn&&E.markedSpans,ge;if(be)for(var Be=0;Be<be.length;++Be){var $e=be[Be];$e.marker.collapsed&&($e.from==null||$e.from<ee)&&($e.to==null||$e.to>ee)&&(!ge||kn(ge,$e.marker)<0)&&(ge=$e.marker)}return ge}function Yn(E,ee,be,ge,Be){var $e=zt(E,ee),ht=fn&&$e.markedSpans;if(ht)for(var Ct=0;Ct<ht.length;++Ct){var Tt=ht[Ct];if(Tt.marker.collapsed){var Pt=Tt.marker.find(0),rr=br(Pt.from,be)||Un(Tt.marker)-Un(Be),ur=br(Pt.to,ge)||Zn(Tt.marker)-Zn(Be);if(!(rr>=0&&ur<=0||rr<=0&&ur>=0)&&(rr<=0&&(Tt.marker.inclusiveRight&&Be.inclusiveLeft?br(Pt.to,be)>=0:br(Pt.to,be)>0)||rr>=0&&(Tt.marker.inclusiveRight&&Be.inclusiveLeft?br(Pt.from,ge)<=0:br(Pt.from,ge)<0)))return!0}}}function ei(E){for(var ee;ee=di(E);)E=ee.find(-1,!0).line;return E}function Si(E){for(var ee;ee=pn(E);)E=ee.find(1,!0).line;return E}function Ei(E){for(var ee,be;ee=pn(E);)E=ee.find(1,!0).line,(be||(be=[])).push(E);return be}function bi(E,ee){var be=zt(E,ee),ge=ei(be);return be==ge?ee:pr(ge)}function ci(E,ee){if(ee>E.lastLine())return ee;var be=zt(E,ee),ge;if(!Oi(E,be))return ee;for(;ge=pn(be);)be=ge.find(1,!0).line;return pr(be)+1}function Oi(E,ee){var be=fn&&ee.markedSpans;if(be){for(var ge=void 0,Be=0;Be<be.length;++Be)if(ge=be[Be],!!ge.marker.collapsed){if(ge.from==null)return!0;if(!ge.marker.widgetNode&&ge.from==0&&ge.marker.inclusiveLeft&&Di(E,ee,ge))return!0}}}function Di(E,ee,be){if(be.to==null){var ge=be.marker.find(1,!0);return Di(E,ge.line,yn(ge.line.markedSpans,be.marker))}if(be.marker.inclusiveRight&&be.to==ee.text.length)return!0;for(var Be=void 0,$e=0;$e<ee.markedSpans.length;++$e)if(Be=ee.markedSpans[$e],Be.marker.collapsed&&!Be.marker.widgetNode&&Be.from==be.to&&(Be.to==null||Be.to!=be.from)&&(Be.marker.inclusiveLeft||be.marker.inclusiveRight)&&Di(E,ee,Be))return!0}function Cn(E){E=ei(E);for(var ee=0,be=E.parent,ge=0;ge<be.lines.length;++ge){var Be=be.lines[ge];if(Be==E)break;ee+=Be.height}for(var $e=be.parent;$e;be=$e,$e=be.parent)for(var ht=0;ht<$e.children.length;++ht){var Ct=$e.children[ht];if(Ct==be)break;ee+=Ct.height}return ee}function Sn(E){if(E.height==0)return 0;for(var ee=E.text.length,be,ge=E;be=di(ge);){var Be=be.find(0,!0);ge=Be.from.line,ee+=Be.from.ch-Be.to.ch}for(ge=E;be=pn(ge);){var $e=be.find(0,!0);ee-=ge.text.length-$e.from.ch,ge=$e.to.line,ee+=ge.text.length-$e.to.ch}return ee}function rn(E){var ee=E.display,be=E.doc;ee.maxLine=zt(be,be.first),ee.maxLineLength=Sn(ee.maxLine),ee.maxLineChanged=!0,be.iter(function(ge){var Be=Sn(ge);Be>ee.maxLineLength&&(ee.maxLineLength=Be,ee.maxLine=ge)})}var ln=function(E,ee,be){this.text=E,Pn(this,ee),this.height=be?be(this):1};ln.prototype.lineNo=function(){return pr(this)},Ut(ln);function ii(E,ee,be,ge){E.text=ee,E.stateAfter&&(E.stateAfter=null),E.styles&&(E.styles=null),E.order!=null&&(E.order=null),bn(E),Pn(E,be);var Be=ge?ge(E):1;Be!=E.height&&$t(E,Be)}function xi(E){E.parent=null,bn(E)}var Ci={},Ai={};function gi(E,ee){if(!E||/^\s*$/.test(E))return null;var be=ee.addModeClass?Ai:Ci;return be[E]||(be[E]=E.replace(/\S+/g,"cm-$&"))}function Ii(E,ee){var be=Ne("span",null,null,ne?"padding-right: .1px":null),ge={pre:Ne("pre",[be],"CodeMirror-line"),content:be,col:0,pos:0,cm:E,trailingSpace:!1,splitSpaces:E.getOption("lineWrapping")};ee.measure={};for(var Be=0;Be<=(ee.rest?ee.rest.length:0);Be++){var $e=Be?ee.rest[Be-1]:ee.line,ht=void 0;ge.pos=0,ge.addToken=Fi,an(E.display.measure)&&(ht=Vt($e,E.doc.direction))&&(ge.addToken=li(ge.addToken,ht)),ge.map=[];var Ct=ee!=E.display.externalMeasured&&pr($e);Li($e,ge,lr(E,$e,Ct)),$e.styleClasses&&($e.styleClasses.bgClass&&(ge.bgClass=Qe($e.styleClasses.bgClass,ge.bgClass||"")),$e.styleClasses.textClass&&(ge.textClass=Qe($e.styleClasses.textClass,ge.textClass||""))),ge.map.length==0&&ge.map.push(0,0,ge.content.appendChild(Mn(E.display.measure))),Be==0?(ee.measure.map=ge.map,ee.measure.cache={}):((ee.measure.maps||(ee.measure.maps=[])).push(ge.map),(ee.measure.caches||(ee.measure.caches=[])).push({}))}if(ne){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,ee.line,ge.pre),ge.pre.className&&(ge.textClass=Qe(ge.pre.className,ge.textClass||"")),ge}function Ki(E){var ee=Ee("span","\u2022","cm-invalidchar");return ee.title="\\u"+E.charCodeAt(0).toString(16),ee.setAttribute("aria-label",ee.title),ee}function Fi(E,ee,be,ge,Be,$e,ht){if(ee){var Ct=E.splitSpaces?Yi(ee,E.trailingSpace):ee,Tt=E.cm.state.specialChars,Pt=!1,rr;if(!Tt.test(ee))E.col+=ee.length,rr=document.createTextNode(Ct),E.map.push(E.pos,E.pos+ee.length,rr),ve&&re<9&&(Pt=!0),E.pos+=ee.length;else{rr=document.createDocumentFragment();for(var ur=0;;){Tt.lastIndex=ur;var Pr=Tt.exec(ee),kr=Pr?Pr.index-ur:ee.length-ur;if(kr){var tn=document.createTextNode(Ct.slice(ur,ur+kr));ve&&re<9?rr.appendChild(Ee("span",[tn])):rr.appendChild(tn),E.map.push(E.pos,E.pos+kr,tn),E.col+=kr,E.pos+=kr}if(!Pr)break;ur+=kr+1;var En=void 0;if(Pr[0]==" "){var Hn=E.cm.options.tabSize,qn=Hn-E.col%Hn;En=rr.appendChild(Ee("span",Dt(qn),"cm-tab")),En.setAttribute("role","presentation"),En.setAttribute("cm-text"," "),E.col+=qn}else Pr[0]=="\r"||Pr[0]==`
|
|
|
`?(En=rr.appendChild(Ee("span",Pr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),En.setAttribute("cm-text",Pr[0]),E.col+=1):(En=E.cm.options.specialCharPlaceholder(Pr[0]),En.setAttribute("cm-text",Pr[0]),ve&&re<9?rr.appendChild(Ee("span",[En])):rr.appendChild(En),E.col+=1);E.map.push(E.pos,E.pos+1,En),E.pos++}}if(E.trailingSpace=Ct.charCodeAt(ee.length-1)==32,be||ge||Be||Pt||$e||ht){var ti=be||"";ge&&(ti+=ge),Be&&(ti+=Be);var Qn=Ee("span",[rr],ti,$e);if(ht)for(var ni in ht)ht.hasOwnProperty(ni)&&ni!="style"&&ni!="class"&&Qn.setAttribute(ni,ht[ni]);return E.content.appendChild(Qn)}E.content.appendChild(rr)}}function Yi(E,ee){if(E.length>1&&!/ /.test(E))return E;for(var be=ee,ge="",Be=0;Be<E.length;Be++){var $e=E.charAt(Be);$e==" "&&be&&(Be==E.length-1||E.charCodeAt(Be+1)==32)&&($e="\xA0"),ge+=$e,be=$e==" "}return ge}function li(E,ee){return function(be,ge,Be,$e,ht,Ct,Tt){Be=Be?Be+" cm-force-border":"cm-force-border";for(var Pt=be.pos,rr=Pt+ge.length;;){for(var ur=void 0,Pr=0;Pr<ee.length&&(ur=ee[Pr],!(ur.to>Pt&&ur.from<=Pt));Pr++);if(ur.to>=rr)return E(be,ge,Be,$e,ht,Ct,Tt);E(be,ge.slice(0,ur.to-Pt),Be,$e,null,Ct,Tt),$e=null,ge=ge.slice(ur.to-Pt),Pt=ur.to}}}function hi(E,ee,be,ge){var Be=!ge&&be.widgetNode;Be&&E.map.push(E.pos,E.pos+ee,Be),!ge&&E.cm.display.input.needsContentAttribute&&(Be||(Be=E.content.appendChild(document.createElement("span"))),Be.setAttribute("cm-marker",be.id)),Be&&(E.cm.display.input.setUneditable(Be),E.content.appendChild(Be)),E.pos+=ee,E.trailingSpace=!1}function Li(E,ee,be){var ge=E.markedSpans,Be=E.text,$e=0;if(!ge){for(var ht=1;ht<be.length;ht+=2)ee.addToken(ee,Be.slice($e,$e=be[ht]),gi(be[ht+1],ee.cm.options));return}for(var Ct=Be.length,Tt=0,Pt=1,rr="",ur,Pr,kr=0,tn,En,Hn,qn,ti;;){if(kr==Tt){tn=En=Hn=Pr="",ti=null,qn=null,kr=1/0;for(var Qn=[],ni=void 0,mi=0;mi<ge.length;++mi){var yi=ge[mi],Ri=yi.marker;if(Ri.type=="bookmark"&&yi.from==Tt&&Ri.widgetNode)Qn.push(Ri);else if(yi.from<=Tt&&(yi.to==null||yi.to>Tt||Ri.collapsed&&yi.to==Tt&&yi.from==Tt)){if(yi.to!=null&&yi.to!=Tt&&kr>yi.to&&(kr=yi.to,En=""),Ri.className&&(tn+=" "+Ri.className),Ri.css&&(Pr=(Pr?Pr+";":"")+Ri.css),Ri.startStyle&&yi.from==Tt&&(Hn+=" "+Ri.startStyle),Ri.endStyle&&yi.to==kr&&(ni||(ni=[])).push(Ri.endStyle,yi.to),Ri.title&&((ti||(ti={})).title=Ri.title),Ri.attributes)for(var ia in Ri.attributes)(ti||(ti={}))[ia]=Ri.attributes[ia];Ri.collapsed&&(!qn||kn(qn.marker,Ri)<0)&&(qn=yi)}else yi.from>Tt&&kr>yi.from&&(kr=yi.from)}if(ni)for(var Za=0;Za<ni.length;Za+=2)ni[Za+1]==kr&&(En+=" "+ni[Za]);if(!qn||qn.from==Tt)for(var fa=0;fa<Qn.length;++fa)hi(ee,0,Qn[fa]);if(qn&&(qn.from||0)==Tt){if(hi(ee,(qn.to==null?Ct+1:qn.to)-Tt,qn.marker,qn.from==null),qn.to==null)return;qn.to==Tt&&(qn=!1)}}if(Tt>=Ct)break;for(var yo=Math.min(Ct,kr);;){if(rr){var bo=Tt+rr.length;if(!qn){var Da=bo>yo?rr.slice(0,yo-Tt):rr;ee.addToken(ee,Da,ur?ur+tn:tn,Hn,Tt+Da.length==kr?En:"",Pr,ti)}if(bo>=yo){rr=rr.slice(yo-Tt),Tt=yo;break}Tt=bo,Hn=""}rr=Be.slice($e,$e=be[Pt++]),ur=gi(be[Pt++],ee.cm.options)}}}function yr(E,ee,be){this.line=ee,this.rest=Ei(ee),this.size=this.rest?pr(At(this.rest))-be+1:1,this.node=this.text=null,this.hidden=Oi(E,ee)}function vr(E,ee,be){for(var ge=[],Be,$e=ee;$e<be;$e=Be){var ht=new yr(E.doc,zt(E.doc,$e),$e);Be=$e+ht.size,ge.push(ht)}return ge}var Mr=null;function Gr(E){Mr?Mr.ops.push(E):E.ownsGroup=Mr={ops:[E],delayedCallbacks:[]}}function Xr(E){var ee=E.delayedCallbacks,be=0;do{for(;be<ee.length;be++)ee[be].call(null);for(var ge=0;ge<E.ops.length;ge++){var Be=E.ops[ge];if(Be.cursorActivityHandlers)for(;Be.cursorActivityCalled<Be.cursorActivityHandlers.length;)Be.cursorActivityHandlers[Be.cursorActivityCalled++].call(null,Be.cm)}}while(be<ee.length)}function vn(E,ee){var be=E.ownsGroup;if(be)try{Xr(be)}finally{Mr=null,ee(be)}}var Ir=null;function Qr(E,ee){var be=_t(E,ee);if(be.length){var ge=Array.prototype.slice.call(arguments,2),Be;Mr?Be=Mr.delayedCallbacks:Ir?Be=Ir:(Be=Ir=[],setTimeout(In,0));for(var $e=function(Ct){Be.push(function(){return be[Ct].apply(null,ge)})},ht=0;ht<be.length;++ht)$e(ht)}}function In(){var E=Ir;Ir=null;for(var ee=0;ee<E.length;++ee)E[ee]()}function Kn(E,ee,be,ge){for(var Be=0;Be<ee.changes.length;Be++){var $e=ee.changes[Be];$e=="text"?pi(E,ee):$e=="gutter"?Nn(E,ee,be,ge):$e=="class"?si(E,ee):$e=="widget"&&$n(E,ee,ge)}ee.changes=null}function Jn(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),ve&&re<8&&(E.node.style.zIndex=2)),E.node}function gn(E,ee){var be=ee.bgClass?ee.bgClass+" "+(ee.line.bgClass||""):ee.line.bgClass;if(be&&(be+=" CodeMirror-linebackground"),ee.background)be?ee.background.className=be:(ee.background.parentNode.removeChild(ee.background),ee.background=null);else if(be){var ge=Jn(ee);ee.background=ge.insertBefore(Ee("div",null,be),ge.firstChild),E.display.input.setUneditable(ee.background)}}function ri(E,ee){var be=E.display.externalMeasured;return be&&be.line==ee.line?(E.display.externalMeasured=null,ee.measure=be.measure,be.built):Ii(E,ee)}function pi(E,ee){var be=ee.text.className,ge=ri(E,ee);ee.text==ee.node&&(ee.node=ge.pre),ee.text.parentNode.replaceChild(ge.pre,ee.text),ee.text=ge.pre,ge.bgClass!=ee.bgClass||ge.textClass!=ee.textClass?(ee.bgClass=ge.bgClass,ee.textClass=ge.textClass,si(E,ee)):be&&(ee.text.className=be)}function si(E,ee){gn(E,ee),ee.line.wrapClass?Jn(ee).className=ee.line.wrapClass:ee.node!=ee.text&&(ee.node.className="");var be=ee.textClass?ee.textClass+" "+(ee.line.textClass||""):ee.line.textClass;ee.text.className=be||""}function Nn(E,ee,be,ge){if(ee.gutter&&(ee.node.removeChild(ee.gutter),ee.gutter=null),ee.gutterBackground&&(ee.node.removeChild(ee.gutterBackground),ee.gutterBackground=null),ee.line.gutterClass){var Be=Jn(ee);ee.gutterBackground=Ee("div",null,"CodeMirror-gutter-background "+ee.line.gutterClass,"left: "+(E.options.fixedGutter?ge.fixedPos:-ge.gutterTotalWidth)+"px; width: "+ge.gutterTotalWidth+"px"),E.display.input.setUneditable(ee.gutterBackground),Be.insertBefore(ee.gutterBackground,ee.text)}var $e=ee.line.gutterMarkers;if(E.options.lineNumbers||$e){var ht=Jn(ee),Ct=ee.gutter=Ee("div",null,"CodeMirror-gutter-wrapper","left: "+(E.options.fixedGutter?ge.fixedPos:-ge.gutterTotalWidth)+"px");if(E.display.input.setUneditable(Ct),ht.insertBefore(Ct,ee.text),ee.line.gutterClass&&(Ct.className+=" "+ee.line.gutterClass),E.options.lineNumbers&&(!$e||!$e["CodeMirror-linenumbers"])&&(ee.lineNumber=Ct.appendChild(Ee("div",Er(E.options,be),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ge.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+E.display.lineNumInnerWidth+"px"))),$e)for(var Tt=0;Tt<E.display.gutterSpecs.length;++Tt){var Pt=E.display.gutterSpecs[Tt].className,rr=$e.hasOwnProperty(Pt)&&$e[Pt];rr&&Ct.appendChild(Ee("div",[rr],"CodeMirror-gutter-elt","left: "+ge.gutterLeft[Pt]+"px; width: "+ge.gutterWidth[Pt]+"px"))}}}function $n(E,ee,be){ee.alignable&&(ee.alignable=null);for(var ge=Ce("CodeMirror-linewidget"),Be=ee.node.firstChild,$e=void 0;Be;Be=$e)$e=Be.nextSibling,ge.test(Be.className)&&ee.node.removeChild(Be);vi(E,ee,be)}function wi(E,ee,be,ge){var Be=ri(E,ee);return ee.text=ee.node=Be.pre,Be.bgClass&&(ee.bgClass=Be.bgClass),Be.textClass&&(ee.textClass=Be.textClass),si(E,ee),Nn(E,ee,be,ge),vi(E,ee,ge),ee.node}function vi(E,ee,be){if(Mi(E,ee.line,ee,be,!0),ee.rest)for(var ge=0;ge<ee.rest.length;ge++)Mi(E,ee.rest[ge],ee,be,!1)}function Mi(E,ee,be,ge,Be){if(ee.widgets)for(var $e=Jn(be),ht=0,Ct=ee.widgets;ht<Ct.length;++ht){var Tt=Ct[ht],Pt=Ee("div",[Tt.node],"CodeMirror-linewidget"+(Tt.className?" "+Tt.className:""));Tt.handleMouseEvents||Pt.setAttribute("cm-ignore-events","true"),pa(Tt,Pt,be,ge),E.display.input.setUneditable(Pt),Be&&Tt.above?$e.insertBefore(Pt,be.gutter||be.text):$e.appendChild(Pt),Qr(Tt,"redraw")}}function pa(E,ee,be,ge){if(E.noHScroll){(be.alignable||(be.alignable=[])).push(ee);var Be=ge.wrapperWidth;ee.style.left=ge.fixedPos+"px",E.coverGutter||(Be-=ge.gutterTotalWidth,ee.style.paddingLeft=ge.gutterTotalWidth+"px"),ee.style.width=Be+"px"}E.coverGutter&&(ee.style.zIndex=5,ee.style.position="relative",E.noHScroll||(ee.style.marginLeft=-ge.gutterTotalWidth+"px"))}function Ma(E){if(E.height!=null)return E.height;var ee=E.doc.cm;if(!ee)return 0;if(!Ze(document.body,E.node)){var be="position: relative;";E.coverGutter&&(be+="margin-left: -"+ee.display.gutters.offsetWidth+"px;"),E.noHScroll&&(be+="width: "+ee.display.wrapper.clientWidth+"px;"),Oe(ee.display.measure,Ee("div",[E.node],null,be))}return E.height=E.node.parentNode.offsetHeight}function za(E,ee){for(var be=Wr(ee);be!=E.wrapper;be=be.parentNode)if(!be||be.nodeType==1&&be.getAttribute("cm-ignore-events")=="true"||be.parentNode==E.sizer&&be!=E.mover)return!0}function Ba(E){return E.lineSpace.offsetTop}function Bo(E){return E.mover.offsetHeight-E.lineSpace.offsetHeight}function Va(E){if(E.cachedPaddingH)return E.cachedPaddingH;var ee=Oe(E.measure,Ee("pre","x","CodeMirror-line-like")),be=window.getComputedStyle?window.getComputedStyle(ee):ee.currentStyle,ge={left:parseInt(be.paddingLeft),right:parseInt(be.paddingRight)};return!isNaN(ge.left)&&!isNaN(ge.right)&&(E.cachedPaddingH=ge),ge}function ba(E){return ct-E.display.nativeBarWidth}function Ji(E){return E.display.scroller.clientWidth-ba(E)-E.display.barWidth}function Ka(E){return E.display.scroller.clientHeight-ba(E)-E.display.barHeight}function so(E,ee,be){var ge=E.options.lineWrapping,Be=ge&&Ji(E);if(!ee.measure.heights||ge&&ee.measure.width!=Be){var $e=ee.measure.heights=[];if(ge){ee.measure.width=Be;for(var ht=ee.text.firstChild.getClientRects(),Ct=0;Ct<ht.length-1;Ct++){var Tt=ht[Ct],Pt=ht[Ct+1];Math.abs(Tt.bottom-Pt.bottom)>2&&$e.push((Tt.bottom+Pt.top)/2-be.top)}}$e.push(be.bottom-be.top)}}function lo(E,ee,be){if(E.line==ee)return{map:E.measure.map,cache:E.measure.cache};for(var ge=0;ge<E.rest.length;ge++)if(E.rest[ge]==ee)return{map:E.measure.maps[ge],cache:E.measure.caches[ge]};for(var Be=0;Be<E.rest.length;Be++)if(pr(E.rest[Be])>be)return{map:E.measure.maps[Be],cache:E.measure.caches[Be],before:!0}}function co(E,ee){ee=ei(ee);var be=pr(ee),ge=E.display.externalMeasured=new yr(E.doc,ee,be);ge.lineN=be;var Be=ge.built=Ii(E,ge);return ge.text=Be.pre,Oe(E.display.lineMeasure,Be.pre),ge}function Ha(E,ee,be,ge){return Hi(E,wa(E,ee),be,ge)}function xa(E,ee){if(ee>=E.display.viewFrom&&ee<E.display.viewTo)return E.display.view[wo(E,ee)];var be=E.display.externalMeasured;if(be&&ee>=be.lineN&&ee<be.lineN+be.size)return be}function wa(E,ee){var be=pr(ee),ge=xa(E,be);ge&&!ge.text?ge=null:ge&&ge.changes&&(Kn(E,ge,be,Zi(E)),E.curOp.forceUpdate=!0),ge||(ge=co(E,ee));var Be=lo(ge,ee,be);return{line:ee,view:ge,rect:null,map:Be.map,cache:Be.cache,before:Be.before,hasHeights:!1}}function Hi(E,ee,be,ge,Be){ee.before&&(be=-1);var $e=be+(ge||""),ht;return ee.cache.hasOwnProperty($e)?ht=ee.cache[$e]:(ee.rect||(ee.rect=ee.view.text.getBoundingClientRect()),ee.hasHeights||(so(E,ee.view,ee.rect),ee.hasHeights=!0),ht=Ni(E,ee,be,ge),ht.bogus||(ee.cache[$e]=ht)),{left:ht.left,right:ht.right,top:Be?ht.rtop:ht.top,bottom:Be?ht.rbottom:ht.bottom}}var uo={left:0,right:0,top:0,bottom:0};function zo(E,ee,be){for(var ge,Be,$e,ht,Ct,Tt,Pt=0;Pt<E.length;Pt+=3)if(Ct=E[Pt],Tt=E[Pt+1],ee<Ct?(Be=0,$e=1,ht="left"):ee<Tt?(Be=ee-Ct,$e=Be+1):(Pt==E.length-3||ee==Tt&&E[Pt+3]>ee)&&($e=Tt-Ct,Be=$e-1,ee>=Tt&&(ht="right")),Be!=null){if(ge=E[Pt+2],Ct==Tt&&be==(ge.insertLeft?"left":"right")&&(ht=be),be=="left"&&Be==0)for(;Pt&&E[Pt-2]==E[Pt-3]&&E[Pt-1].insertLeft;)ge=E[(Pt-=3)+2],ht="left";if(be=="right"&&Be==Tt-Ct)for(;Pt<E.length-3&&E[Pt+3]==E[Pt+4]&&!E[Pt+5].insertLeft;)ge=E[(Pt+=3)+2],ht="right";break}return{node:ge,start:Be,end:$e,collapse:ht,coverStart:Ct,coverEnd:Tt}}function Lo(E,ee){var be=uo;if(ee=="left")for(var ge=0;ge<E.length&&(be=E[ge]).left==be.right;ge++);else for(var Be=E.length-1;Be>=0&&(be=E[Be]).left==be.right;Be--);return be}function Ni(E,ee,be,ge){var Be=zo(ee.map,be,ge),$e=Be.node,ht=Be.start,Ct=Be.end,Tt=Be.collapse,Pt;if($e.nodeType==3){for(var rr=0;rr<4;rr++){for(;ht&&Ke(ee.line.text.charAt(Be.coverStart+ht));)--ht;for(;Be.coverStart+Ct<Be.coverEnd&&Ke(ee.line.text.charAt(Be.coverStart+Ct));)++Ct;if(ve&&re<9&&ht==0&&Ct==Be.coverEnd-Be.coverStart?Pt=$e.parentNode.getBoundingClientRect():Pt=Lo(_e($e,ht,Ct).getClientRects(),ge),Pt.left||Pt.right||ht==0)break;Ct=ht,ht=ht-1,Tt="right"}ve&&re<11&&(Pt=Bi(E.display.measure,Pt))}else{ht>0&&(Tt=ge="right");var ur;E.options.lineWrapping&&(ur=$e.getClientRects()).length>1?Pt=ur[ge=="right"?ur.length-1:0]:Pt=$e.getBoundingClientRect()}if(ve&&re<9&&!ht&&(!Pt||!Pt.left&&!Pt.right)){var Pr=$e.parentNode.getClientRects()[0];Pr?Pt={left:Pr.left,right:Pr.left+Wi(E.display),top:Pr.top,bottom:Pr.bottom}:Pt=uo}for(var kr=Pt.top-ee.rect.top,tn=Pt.bottom-ee.rect.top,En=(kr+tn)/2,Hn=ee.view.measure.heights,qn=0;qn<Hn.length-1&&!(En<Hn[qn]);qn++);var ti=qn?Hn[qn-1]:0,Qn=Hn[qn],ni={left:(Tt=="right"?Pt.right:Pt.left)-ee.rect.left,right:(Tt=="left"?Pt.left:Pt.right)-ee.rect.left,top:ti,bottom:Qn};return!Pt.left&&!Pt.right&&(ni.bogus=!0),E.options.singleCursorHeightPerLine||(ni.rtop=kr,ni.rbottom=tn),ni}function Bi(E,ee){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Jt(E))return ee;var be=screen.logicalXDPI/screen.deviceXDPI,ge=screen.logicalYDPI/screen.deviceYDPI;return{left:ee.left*be,right:ee.right*be,top:ee.top*ge,bottom:ee.bottom*ge}}function Qi(E){if(E.measure&&(E.measure.cache={},E.measure.heights=null,E.rest))for(var ee=0;ee<E.rest.length;ee++)E.measure.caches[ee]={}}function La(E){E.display.externalMeasure=null,Me(E.display.lineMeasure);for(var ee=0;ee<E.display.view.length;ee++)Qi(E.display.view[ee])}function ta(E){La(E),E.display.cachedCharWidth=E.display.cachedTextHeight=E.display.cachedPaddingH=null,E.options.lineWrapping||(E.display.maxLineChanged=!0),E.display.lineNumChars=null}function Wa(){return oe&&de?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ga(){return oe&&de?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function fo(E){var ee=0;if(E.widgets)for(var be=0;be<E.widgets.length;++be)E.widgets[be].above&&(ee+=Ma(E.widgets[be]));return ee}function Ua(E,ee,be,ge,Be){if(!Be){var $e=fo(ee);be.top+=$e,be.bottom+=$e}if(ge=="line")return be;ge||(ge="local");var ht=Cn(ee);if(ge=="local"?ht+=Ba(E.display):ht-=E.display.viewOffset,ge=="page"||ge=="window"){var Ct=E.display.lineSpace.getBoundingClientRect();ht+=Ct.top+(ge=="window"?0:Ga());var Tt=Ct.left+(ge=="window"?0:Wa());be.left+=Tt,be.right+=Tt}return be.top+=ht,be.bottom+=ht,be}function go(E,ee,be){if(be=="div")return ee;var ge=ee.left,Be=ee.top;if(be=="page")ge-=Wa(),Be-=Ga();else if(be=="local"||!be){var $e=E.display.sizer.getBoundingClientRect();ge+=$e.left,Be+=$e.top}var ht=E.display.lineSpace.getBoundingClientRect();return{left:ge-ht.left,top:Be-ht.top}}function vo(E,ee,be,ge,Be){return ge||(ge=zt(E.doc,ee.line)),Ua(E,ge,Ha(E,ge,ee.ch,Be),be)}function Pa(E,ee,be,ge,Be,$e){ge=ge||zt(E.doc,ee.line),Be||(Be=wa(E,ge));function ht(tn,En){var Hn=Hi(E,Be,tn,En?"right":"left",$e);return En?Hn.left=Hn.right:Hn.right=Hn.left,Ua(E,ge,Hn,be)}var Ct=Vt(ge,E.doc.direction),Tt=ee.ch,Pt=ee.sticky;if(Tt>=ge.text.length?(Tt=ge.text.length,Pt="before"):Tt<=0&&(Tt=0,Pt="after"),!Ct)return ht(Pt=="before"?Tt-1:Tt,Pt=="before");function rr(tn,En,Hn){var qn=Ct[En],ti=qn.level==1;return ht(Hn?tn-1:tn,ti!=Hn)}var ur=vt(Ct,Tt,Pt),Pr=bt,kr=rr(Tt,ur,Pt=="before");return Pr!=null&&(kr.other=rr(Tt,Pr,Pt!="before")),kr}function xl(E,ee){var be=0;ee=ar(E.doc,ee),E.options.lineWrapping||(be=Wi(E.display)*ee.ch);var ge=zt(E.doc,ee.line),Be=Cn(ge)+Ba(E.display);return{left:be,right:be,top:Be,bottom:Be+ge.height}}function Yo(E,ee,be,ge,Be){var $e=tr(E,ee,be);return $e.xRel=Be,ge&&($e.outside=ge),$e}function Qs(E,ee,be){var ge=E.doc;if(be+=E.display.viewOffset,be<0)return Yo(ge.first,0,null,-1,-1);var Be=Ar(ge,be),$e=ge.first+ge.size-1;if(Be>$e)return Yo(ge.first+ge.size-1,zt(ge,$e).text.length,null,1,1);ee<0&&(ee=0);for(var ht=zt(ge,Be);;){var Ct=Mc(E,ht,Be,ee,be),Tt=An(ht,Ct.ch+(Ct.xRel>0||Ct.outside>0?1:0));if(!Tt)return Ct;var Pt=Tt.find(1);if(Pt.line==Be)return Pt;ht=zt(ge,Be=Pt.line)}}function Hl(E,ee,be,ge){ge-=fo(ee);var Be=ee.text.length,$e=Je(function(ht){return Hi(E,be,ht-1).bottom<=ge},Be,0);return Be=Je(function(ht){return Hi(E,be,ht).top>ge},$e,Be),{begin:$e,end:Be}}function Wl(E,ee,be,ge){be||(be=wa(E,ee));var Be=Ua(E,ee,Hi(E,be,ge),"line").top;return Hl(E,ee,be,Be)}function Cs(E,ee,be,ge){return E.bottom<=be?!1:E.top>be?!0:(ge?E.left:E.right)>ee}function Mc(E,ee,be,ge,Be){Be-=Cn(ee);var $e=wa(E,ee),ht=fo(ee),Ct=0,Tt=ee.text.length,Pt=!0,rr=Vt(ee,E.doc.direction);if(rr){var ur=(E.options.lineWrapping?wl:as)(E,ee,be,$e,rr,ge,Be);Pt=ur.level!=1,Ct=Pt?ur.from:ur.to-1,Tt=Pt?ur.to:ur.from-1}var Pr=null,kr=null,tn=Je(function(mi){var yi=Hi(E,$e,mi);return yi.top+=ht,yi.bottom+=ht,Cs(yi,ge,Be,!1)?(yi.top<=Be&&yi.left<=ge&&(Pr=mi,kr=yi),!0):!1},Ct,Tt),En,Hn,qn=!1;if(kr){var ti=ge-kr.left<kr.right-ge,Qn=ti==Pt;tn=Pr+(Qn?0:1),Hn=Qn?"after":"before",En=ti?kr.left:kr.right}else{!Pt&&(tn==Tt||tn==Ct)&&tn++,Hn=tn==0?"after":tn==ee.text.length?"before":Hi(E,$e,tn-(Pt?1:0)).bottom+ht<=Be==Pt?"after":"before";var ni=Pa(E,tr(be,tn,Hn),"line",ee,$e);En=ni.left,qn=Be<ni.top?-1:Be>=ni.bottom?1:0}return tn=Ye(ee.text,tn,1),Yo(be,tn,Hn,qn,ge-En)}function as(E,ee,be,ge,Be,$e,ht){var Ct=Je(function(ur){var Pr=Be[ur],kr=Pr.level!=1;return Cs(Pa(E,tr(be,kr?Pr.to:Pr.from,kr?"before":"after"),"line",ee,ge),$e,ht,!0)},0,Be.length-1),Tt=Be[Ct];if(Ct>0){var Pt=Tt.level!=1,rr=Pa(E,tr(be,Pt?Tt.from:Tt.to,Pt?"after":"before"),"line",ee,ge);Cs(rr,$e,ht,!0)&&rr.top>ht&&(Tt=Be[Ct-1])}return Tt}function wl(E,ee,be,ge,Be,$e,ht){var Ct=Hl(E,ee,ge,ht),Tt=Ct.begin,Pt=Ct.end;/\s/.test(ee.text.charAt(Pt-1))&&Pt--;for(var rr=null,ur=null,Pr=0;Pr<Be.length;Pr++){var kr=Be[Pr];if(!(kr.from>=Pt||kr.to<=Tt)){var tn=kr.level!=1,En=Hi(E,ge,tn?Math.min(Pt,kr.to)-1:Math.max(Tt,kr.from)).right,Hn=En<$e?$e-En+1e9:En-$e;(!rr||ur>Hn)&&(rr=kr,ur=Hn)}}return rr||(rr=Be[Be.length-1]),rr.from<Tt&&(rr={from:Tt,to:rr.to,level:rr.level}),rr.to>Pt&&(rr={from:rr.from,to:Pt,level:rr.level}),rr}var Jo;function os(E){if(E.cachedTextHeight!=null)return E.cachedTextHeight;if(Jo==null){Jo=Ee("pre",null,"CodeMirror-line-like");for(var ee=0;ee<49;++ee)Jo.appendChild(document.createTextNode("x")),Jo.appendChild(Ee("br"));Jo.appendChild(document.createTextNode("x"))}Oe(E.measure,Jo);var be=Jo.offsetHeight/50;return be>3&&(E.cachedTextHeight=be),Me(E.measure),be||1}function Wi(E){if(E.cachedCharWidth!=null)return E.cachedCharWidth;var ee=Ee("span","xxxxxxxxxx"),be=Ee("pre",[ee],"CodeMirror-line-like");Oe(E.measure,be);var ge=ee.getBoundingClientRect(),Be=(ge.right-ge.left)/10;return Be>2&&(E.cachedCharWidth=Be),Be||10}function Zi(E){for(var ee=E.display,be={},ge={},Be=ee.gutters.clientLeft,$e=ee.gutters.firstChild,ht=0;$e;$e=$e.nextSibling,++ht){var Ct=E.display.gutterSpecs[ht].className;be[Ct]=$e.offsetLeft+$e.clientLeft+Be,ge[Ct]=$e.clientWidth}return{fixedPos:$i(ee),gutterTotalWidth:ee.gutters.offsetWidth,gutterLeft:be,gutterWidth:ge,wrapperWidth:ee.wrapper.clientWidth}}function $i(E){return E.scroller.getBoundingClientRect().left-E.sizer.getBoundingClientRect().left}function no(E){var ee=os(E.display),be=E.options.lineWrapping,ge=be&&Math.max(5,E.display.scroller.clientWidth/Wi(E.display)-3);return function(Be){if(Oi(E.doc,Be))return 0;var $e=0;if(Be.widgets)for(var ht=0;ht<Be.widgets.length;ht++)Be.widgets[ht].height&&($e+=Be.widgets[ht].height);return be?$e+(Math.ceil(Be.text.length/ge)||1)*ee:$e+ee}}function Ra(E){var ee=E.doc,be=no(E);ee.iter(function(ge){var Be=be(ge);Be!=ge.height&&$t(ge,Be)})}function Mo(E,ee,be,ge){var Be=E.display;if(!be&&Wr(ee).getAttribute("cm-not-content")=="true")return null;var $e,ht,Ct=Be.lineSpace.getBoundingClientRect();try{$e=ee.clientX-Ct.left,ht=ee.clientY-Ct.top}catch(ur){return null}var Tt=Qs(E,$e,ht),Pt;if(ge&&Tt.xRel>0&&(Pt=zt(E.doc,Tt.line).text).length==Tt.ch){var rr=Ve(Pt,Pt.length,E.options.tabSize)-Pt.length;Tt=tr(Tt.line,Math.max(0,Math.round(($e-Va(E.display).left)/Wi(E.display))-rr))}return Tt}function wo(E,ee){if(ee>=E.display.viewTo||(ee-=E.display.viewFrom,ee<0))return null;for(var be=E.display.view,ge=0;ge<be.length;ge++)if(ee-=be[ge].size,ee<0)return ge}function Xa(E,ee,be,ge){ee==null&&(ee=E.doc.first),be==null&&(be=E.doc.first+E.doc.size),ge||(ge=0);var Be=E.display;if(ge&&be<Be.viewTo&&(Be.updateLineNumbers==null||Be.updateLineNumbers>ee)&&(Be.updateLineNumbers=ee),E.curOp.viewChanged=!0,ee>=Be.viewTo)fn&&bi(E.doc,ee)<Be.viewTo&&Ro(E);else if(be<=Be.viewFrom)fn&&ci(E.doc,be+ge)>Be.viewFrom?Ro(E):(Be.viewFrom+=ge,Be.viewTo+=ge);else if(ee<=Be.viewFrom&&be>=Be.viewTo)Ro(E);else if(ee<=Be.viewFrom){var $e=ko(E,be,be+ge,1);$e?(Be.view=Be.view.slice($e.index),Be.viewFrom=$e.lineN,Be.viewTo+=ge):Ro(E)}else if(be>=Be.viewTo){var ht=ko(E,ee,ee,-1);ht?(Be.view=Be.view.slice(0,ht.index),Be.viewTo=ht.lineN):Ro(E)}else{var Ct=ko(E,ee,ee,-1),Tt=ko(E,be,be+ge,1);Ct&&Tt?(Be.view=Be.view.slice(0,Ct.index).concat(vr(E,Ct.lineN,Tt.lineN)).concat(Be.view.slice(Tt.index)),Be.viewTo+=ge):Ro(E)}var Pt=Be.externalMeasured;Pt&&(be<Pt.lineN?Pt.lineN+=ge:ee<Pt.lineN+Pt.size&&(Be.externalMeasured=null))}function Po(E,ee,be){E.curOp.viewChanged=!0;var ge=E.display,Be=E.display.externalMeasured;if(Be&&ee>=Be.lineN&&ee<Be.lineN+Be.size&&(ge.externalMeasured=null),!(ee<ge.viewFrom||ee>=ge.viewTo)){var $e=ge.view[wo(E,ee)];if($e.node!=null){var ht=$e.changes||($e.changes=[]);nt(ht,be)==-1&&ht.push(be)}}}function Ro(E){E.display.viewFrom=E.display.viewTo=E.doc.first,E.display.view=[],E.display.viewOffset=0}function ko(E,ee,be,ge){var Be=wo(E,ee),$e,ht=E.display.view;if(!fn||be==E.doc.first+E.doc.size)return{index:Be,lineN:be};for(var Ct=E.display.viewFrom,Tt=0;Tt<Be;Tt++)Ct+=ht[Tt].size;if(Ct!=ee){if(ge>0){if(Be==ht.length-1)return null;$e=Ct+ht[Be].size-ee,Be++}else $e=Ct-ee;ee+=$e,be+=$e}for(;bi(E.doc,be)!=be;){if(Be==(ge<0?0:ht.length-1))return null;be+=ge*ht[Be-(ge<0?1:0)].size,Be+=ge}return{index:Be,lineN:be}}function ss(E,ee,be){var ge=E.display,Be=ge.view;Be.length==0||ee>=ge.viewTo||be<=ge.viewFrom?(ge.view=vr(E,ee,be),ge.viewFrom=ee):(ge.viewFrom>ee?ge.view=vr(E,ee,ge.viewFrom).concat(ge.view):ge.viewFrom<ee&&(ge.view=ge.view.slice(wo(E,ee))),ge.viewFrom=ee,ge.viewTo<be?ge.view=ge.view.concat(vr(E,ge.viewTo,be)):ge.viewTo>be&&(ge.view=ge.view.slice(0,wo(E,be)))),ge.viewTo=be}function Ul(E){for(var ee=E.display.view,be=0,ge=0;ge<ee.length;ge++){var Be=ee[ge];!Be.hidden&&(!Be.node||Be.changes)&&++be}return be}function Sl(E){E.display.input.showSelection(E.display.input.prepareSelection())}function Mu(E,ee){ee===void 0&&(ee=!0);for(var be=E.doc,ge={},Be=ge.cursors=document.createDocumentFragment(),$e=ge.selection=document.createDocumentFragment(),ht=0;ht<be.sel.ranges.length;ht++)if(!(!ee&&ht==be.sel.primIndex)){var Ct=be.sel.ranges[ht];if(!(Ct.from().line>=E.display.viewTo||Ct.to().line<E.display.viewFrom)){var Tt=Ct.empty();(Tt||E.options.showCursorWhenSelecting)&&ku(E,Ct.head,Be),Tt||Nd(E,Ct,$e)}}return ge}function ku(E,ee,be){var ge=Pa(E,ee,"div",null,null,!E.options.singleCursorHeightPerLine),Be=be.appendChild(Ee("div","\xA0","CodeMirror-cursor"));if(Be.style.left=ge.left+"px",Be.style.top=ge.top+"px",Be.style.height=Math.max(0,ge.bottom-ge.top)*E.options.cursorHeight+"px",ge.other){var $e=be.appendChild(Ee("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));$e.style.display="",$e.style.left=ge.other.left+"px",$e.style.top=ge.other.top+"px",$e.style.height=(ge.other.bottom-ge.other.top)*.85+"px"}}function Zl(E,ee){return E.top-ee.top||E.left-ee.left}function Nd(E,ee,be){var ge=E.display,Be=E.doc,$e=document.createDocumentFragment(),ht=Va(E.display),Ct=ht.left,Tt=Math.max(ge.sizerWidth,Ji(E)-ge.sizer.offsetLeft)-ht.right,Pt=Be.direction=="ltr";function rr(Qn,ni,mi,yi){ni<0&&(ni=0),ni=Math.round(ni),yi=Math.round(yi),$e.appendChild(Ee("div",null,"CodeMirror-selected","position: absolute; left: "+Qn+`px;
|
|
|
top: `+ni+"px; width: "+(mi==null?Tt-Qn:mi)+`px;
|
|
|
height: `+(yi-ni)+"px"))}function ur(Qn,ni,mi){var yi=zt(Be,Qn),Ri=yi.text.length,ia,Za;function fa(Da,xo){return vo(E,tr(Qn,Da),"div",yi,xo)}function yo(Da,xo,Ti){var ga=Wl(E,yi,null,Da),ha=xo=="ltr"==(Ti=="after")?"left":"right",va=Ti=="after"?ga.begin:ga.end-(/\s/.test(yi.text.charAt(ga.end-1))?2:1);return fa(va,ha)[ha]}var bo=Vt(yi,Be.direction);return dt(bo,ni||0,mi==null?Ri:mi,function(Da,xo,Ti,ga){var ha=Ti=="ltr",va=fa(Da,ha?"left":"right"),Ca=fa(xo-1,ha?"right":"left"),pl=ni==null&&Da==0,Eo=mi==null&&xo==Ri,$a=ga==0,Vi=!bo||ga==bo.length-1;if(Ca.top-va.top<=3){var ja=(Pt?pl:Eo)&&$a,ou=(Pt?Eo:pl)&&Vi,xs=ja?Ct:(ha?va:Ca).left,js=ou?Tt:(ha?Ca:va).right;rr(xs,va.top,js-xs,va.bottom)}else{var es,Ia,ml,qa;ha?(es=Pt&&pl&&$a?Ct:va.left,Ia=Pt?Tt:yo(Da,Ti,"before"),ml=Pt?Ct:yo(xo,Ti,"after"),qa=Pt&&Eo&&Vi?Tt:Ca.right):(es=Pt?yo(Da,Ti,"before"):Ct,Ia=!Pt&&pl&&$a?Tt:va.right,ml=!Pt&&Eo&&Vi?Ct:Ca.left,qa=Pt?yo(xo,Ti,"after"):Tt),rr(es,va.top,Ia-es,va.bottom),va.bottom<Ca.top&&rr(Ct,va.bottom,null,Ca.top),rr(ml,Ca.top,qa-ml,Ca.bottom)}(!ia||Zl(va,ia)<0)&&(ia=va),Zl(Ca,ia)<0&&(ia=Ca),(!Za||Zl(va,Za)<0)&&(Za=va),Zl(Ca,Za)<0&&(Za=Ca)}),{start:ia,end:Za}}var Pr=ee.from(),kr=ee.to();if(Pr.line==kr.line)ur(Pr.line,Pr.ch,kr.ch);else{var tn=zt(Be,Pr.line),En=zt(Be,kr.line),Hn=ei(tn)==ei(En),qn=ur(Pr.line,Pr.ch,Hn?tn.text.length+1:null).end,ti=ur(kr.line,Hn?0:null,kr.ch).start;Hn&&(qn.top<ti.top-2?(rr(qn.right,qn.top,null,qn.bottom),rr(Ct,ti.top,ti.left,ti.bottom)):rr(qn.right,qn.top,ti.left-qn.right,qn.bottom)),qn.bottom<ti.top&&rr(Ct,qn.bottom,null,ti.top)}be.appendChild($e)}function kc(E){if(E.state.focused){var ee=E.display;clearInterval(ee.blinker);var be=!0;ee.cursorDiv.style.visibility="",E.options.cursorBlinkRate>0?ee.blinker=setInterval(function(){E.hasFocus()||$s(E),ee.cursorDiv.style.visibility=(be=!be)?"":"hidden"},E.options.cursorBlinkRate):E.options.cursorBlinkRate<0&&(ee.cursorDiv.style.visibility="hidden")}}function Cl(E){E.state.focused||(E.display.input.focus(),Tc(E))}function Tu(E){E.state.delayingBlurEvent=!0,setTimeout(function(){E.state.delayingBlurEvent&&(E.state.delayingBlurEvent=!1,$s(E))},100)}function Tc(E,ee){E.state.delayingBlurEvent&&(E.state.delayingBlurEvent=!1),E.options.readOnly!="nocursor"&&(E.state.focused||(ft(E,"focus",E,ee),E.state.focused=!0,Ue(E.display.wrapper,"CodeMirror-focused"),!E.curOp&&E.display.selForContextMenu!=E.doc.sel&&(E.display.input.reset(),ne&&setTimeout(function(){return E.display.input.reset(!0)},20)),E.display.input.receivedFocus()),kc(E))}function $s(E,ee){E.state.delayingBlurEvent||(E.state.focused&&(ft(E,"blur",E,ee),E.state.focused=!1,je(E.display.wrapper,"CodeMirror-focused")),clearInterval(E.display.blinker),setTimeout(function(){E.state.focused||(E.display.shift=!1)},150))}function Vl(E){for(var ee=E.display,be=ee.lineDiv.offsetTop,ge=0;ge<ee.view.length;ge++){var Be=ee.view[ge],$e=E.options.lineWrapping,ht=void 0,Ct=0;if(!Be.hidden){if(ve&&re<8){var Tt=Be.node.offsetTop+Be.node.offsetHeight;ht=Tt-be,be=Tt}else{var Pt=Be.node.getBoundingClientRect();ht=Pt.bottom-Pt.top,!$e&&Be.text.firstChild&&(Ct=Be.text.firstChild.getBoundingClientRect().right-Pt.left-1)}var rr=Be.line.height-ht;if((rr>.005||rr<-.005)&&($t(Be.line,ht),Ou(Be.line),Be.rest))for(var ur=0;ur<Be.rest.length;ur++)Ou(Be.rest[ur]);if(Ct>E.display.sizerWidth){var Pr=Math.ceil(Ct/Wi(E.display));Pr>E.display.maxLineLength&&(E.display.maxLineLength=Pr,E.display.maxLine=Be.line,E.display.maxLineChanged=!0)}}}}function Ou(E){if(E.widgets)for(var ee=0;ee<E.widgets.length;++ee){var be=E.widgets[ee],ge=be.node.parentNode;ge&&(be.height=ge.offsetHeight)}}function Na(E,ee,be){var ge=be&&be.top!=null?Math.max(0,be.top):E.scroller.scrollTop;ge=Math.floor(ge-Ba(E));var Be=be&&be.bottom!=null?be.bottom:ge+E.wrapper.clientHeight,$e=Ar(ee,ge),ht=Ar(ee,Be);if(be&&be.ensure){var Ct=be.ensure.from.line,Tt=be.ensure.to.line;Ct<$e?($e=Ct,ht=Ar(ee,Cn(zt(ee,Ct))+E.wrapper.clientHeight)):Math.min(Tt,ee.lastLine())>=ht&&($e=Ar(ee,Cn(zt(ee,Tt))-E.wrapper.clientHeight),ht=Tt)}return{from:$e,to:Math.max(ht,$e+1)}}function ls(E,ee){if(!St(E,"scrollCursorIntoView")){var be=E.display,ge=be.sizer.getBoundingClientRect(),Be=null;if(ee.top+ge.top<0?Be=!0:ee.bottom+ge.top>(window.innerHeight||document.documentElement.clientHeight)&&(Be=!1),Be!=null&&!ae){var $e=Ee("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ee.top-be.viewOffset-Ba(E.display))+`px;
|
|
|
height: `+(ee.bottom-ee.top+ba(E)+be.barHeight)+`px;
|
|
|
left: `+ee.left+"px; width: "+Math.max(2,ee.right-ee.left)+"px;");E.display.lineSpace.appendChild($e),$e.scrollIntoView(Be),E.display.lineSpace.removeChild($e)}}}function Es(E,ee,be,ge){ge==null&&(ge=0);var Be;!E.options.lineWrapping&&ee==be&&(ee=ee.ch?tr(ee.line,ee.sticky=="before"?ee.ch-1:ee.ch,"after"):ee,be=ee.sticky=="before"?tr(ee.line,ee.ch+1,"before"):ee);for(var $e=0;$e<5;$e++){var ht=!1,Ct=Pa(E,ee),Tt=!be||be==ee?Ct:Pa(E,be);Be={left:Math.min(Ct.left,Tt.left),top:Math.min(Ct.top,Tt.top)-ge,right:Math.max(Ct.left,Tt.left),bottom:Math.max(Ct.bottom,Tt.bottom)+ge};var Pt=Gl(E,Be),rr=E.doc.scrollTop,ur=E.doc.scrollLeft;if(Pt.scrollTop!=null&&(As(E,Pt.scrollTop),Math.abs(E.doc.scrollTop-rr)>1&&(ht=!0)),Pt.scrollLeft!=null&&(Ms(E,Pt.scrollLeft),Math.abs(E.doc.scrollLeft-ur)>1&&(ht=!0)),!ht)break}return Be}function _d(E,ee){var be=Gl(E,ee);be.scrollTop!=null&&As(E,be.scrollTop),be.scrollLeft!=null&&Ms(E,be.scrollLeft)}function Gl(E,ee){var be=E.display,ge=os(E.display);ee.top<0&&(ee.top=0);var Be=E.curOp&&E.curOp.scrollTop!=null?E.curOp.scrollTop:be.scroller.scrollTop,$e=Ka(E),ht={};ee.bottom-ee.top>$e&&(ee.bottom=ee.top+$e);var Ct=E.doc.height+Bo(be),Tt=ee.top<ge,Pt=ee.bottom>Ct-ge;if(ee.top<Be)ht.scrollTop=Tt?0:ee.top;else if(ee.bottom>Be+$e){var rr=Math.min(ee.top,(Pt?Ct:ee.bottom)-$e);rr!=Be&&(ht.scrollTop=rr)}var ur=E.options.fixedGutter?0:be.gutters.offsetWidth,Pr=E.curOp&&E.curOp.scrollLeft!=null?E.curOp.scrollLeft:be.scroller.scrollLeft-ur,kr=Ji(E)-be.gutters.offsetWidth,tn=ee.right-ee.left>kr;return tn&&(ee.right=ee.left+kr),ee.left<10?ht.scrollLeft=0:ee.left<Pr?ht.scrollLeft=Math.max(0,ee.left+ur-(tn?0:10)):ee.right>kr+Pr-3&&(ht.scrollLeft=ee.right+(tn?0:10)-kr),ht}function Oc(E,ee){ee!=null&&(Xl(E),E.curOp.scrollTop=(E.curOp.scrollTop==null?E.doc.scrollTop:E.curOp.scrollTop)+ee)}function el(E){Xl(E);var ee=E.getCursor();E.curOp.scrollToPos={from:ee,to:ee,margin:E.options.cursorScrollMargin}}function tl(E,ee,be){(ee!=null||be!=null)&&Xl(E),ee!=null&&(E.curOp.scrollLeft=ee),be!=null&&(E.curOp.scrollTop=be)}function jd(E,ee){Xl(E),E.curOp.scrollToPos=ee}function Xl(E){var ee=E.curOp.scrollToPos;if(ee){E.curOp.scrollToPos=null;var be=xl(E,ee.from),ge=xl(E,ee.to);Du(E,be,ge,ee.margin)}}function Du(E,ee,be,ge){var Be=Gl(E,{left:Math.min(ee.left,be.left),top:Math.min(ee.top,be.top)-ge,right:Math.max(ee.right,be.right),bottom:Math.max(ee.bottom,be.bottom)+ge});tl(E,Be.scrollLeft,Be.scrollTop)}function As(E,ee){Math.abs(E.doc.scrollTop-ee)<2||(Re||Bc(E,{top:ee}),Iu(E,ee,!0),Re&&Bc(E),nl(E,100))}function Iu(E,ee,be){ee=Math.max(0,Math.min(E.display.scroller.scrollHeight-E.display.scroller.clientHeight,ee)),!(E.display.scroller.scrollTop==ee&&!be)&&(E.doc.scrollTop=ee,E.display.scrollbars.setScrollTop(ee),E.display.scroller.scrollTop!=ee&&(E.display.scroller.scrollTop=ee))}function Ms(E,ee,be,ge){ee=Math.max(0,Math.min(ee,E.display.scroller.scrollWidth-E.display.scroller.clientWidth)),!((be?ee==E.doc.scrollLeft:Math.abs(E.doc.scrollLeft-ee)<2)&&!ge)&&(E.doc.scrollLeft=ee,_u(E),E.display.scroller.scrollLeft!=ee&&(E.display.scroller.scrollLeft=ee),E.display.scrollbars.setScrollLeft(ee))}function rl(E){var ee=E.display,be=ee.gutters.offsetWidth,ge=Math.round(E.doc.height+Bo(E.display));return{clientHeight:ee.scroller.clientHeight,viewHeight:ee.wrapper.clientHeight,scrollWidth:ee.scroller.scrollWidth,clientWidth:ee.scroller.clientWidth,viewWidth:ee.wrapper.clientWidth,barLeft:E.options.fixedGutter?be:0,docHeight:ge,scrollHeight:ge+ba(E)+ee.barHeight,nativeBarWidth:ee.nativeBarWidth,gutterWidth:be}}var cs=function(E,ee,be){this.cm=be;var ge=this.vert=Ee("div",[Ee("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Be=this.horiz=Ee("div",[Ee("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ge.tabIndex=Be.tabIndex=-1,E(ge),E(Be),jt(ge,"scroll",function(){ge.clientHeight&&ee(ge.scrollTop,"vertical")}),jt(Be,"scroll",function(){Be.clientWidth&&ee(Be.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ve&&re<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};cs.prototype.update=function(E){var ee=E.scrollWidth>E.clientWidth+1,be=E.scrollHeight>E.clientHeight+1,ge=E.nativeBarWidth;if(be){this.vert.style.display="block",this.vert.style.bottom=ee?ge+"px":"0";var Be=E.viewHeight-(ee?ge:0);this.vert.firstChild.style.height=Math.max(0,E.scrollHeight-E.clientHeight+Be)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ee){this.horiz.style.display="block",this.horiz.style.right=be?ge+"px":"0",this.horiz.style.left=E.barLeft+"px";var $e=E.viewWidth-E.barLeft-(be?ge:0);this.horiz.firstChild.style.width=Math.max(0,E.scrollWidth-E.clientWidth+$e)+"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:be?ge:0,bottom:ee?ge:0}},cs.prototype.setScrollLeft=function(E){this.horiz.scrollLeft!=E&&(this.horiz.scrollLeft=E),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},cs.prototype.setScrollTop=function(E){this.vert.scrollTop!=E&&(this.vert.scrollTop=E),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},cs.prototype.zeroWidthHack=function(){var E=we&&!te?"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},cs.prototype.enableZeroWidthBar=function(E,ee,be){E.style.pointerEvents="auto";function ge(){var Be=E.getBoundingClientRect(),$e=be=="vert"?document.elementFromPoint(Be.right-1,(Be.top+Be.bottom)/2):document.elementFromPoint((Be.right+Be.left)/2,Be.bottom-1);$e!=E?E.style.pointerEvents="none":ee.set(1e3,ge)}ee.set(1e3,ge)},cs.prototype.clear=function(){var E=this.horiz.parentNode;E.removeChild(this.horiz),E.removeChild(this.vert)};var So=function(){};So.prototype.update=function(){return{bottom:0,right:0}},So.prototype.setScrollLeft=function(){},So.prototype.setScrollTop=function(){},So.prototype.clear=function(){};function ks(E,ee){ee||(ee=rl(E));var be=E.display.barWidth,ge=E.display.barHeight;Dc(E,ee);for(var Be=0;Be<4&&be!=E.display.barWidth||ge!=E.display.barHeight;Be++)be!=E.display.barWidth&&E.options.lineWrapping&&Vl(E),Dc(E,rl(E)),be=E.display.barWidth,ge=E.display.barHeight}function Dc(E,ee){var be=E.display,ge=be.scrollbars.update(ee);be.sizer.style.paddingRight=(be.barWidth=ge.right)+"px",be.sizer.style.paddingBottom=(be.barHeight=ge.bottom)+"px",be.heightForcer.style.borderBottom=ge.bottom+"px solid transparent",ge.right&&ge.bottom?(be.scrollbarFiller.style.display="block",be.scrollbarFiller.style.height=ge.bottom+"px",be.scrollbarFiller.style.width=ge.right+"px"):be.scrollbarFiller.style.display="",ge.bottom&&E.options.coverGutterNextToScrollbar&&E.options.fixedGutter?(be.gutterFiller.style.display="block",be.gutterFiller.style.height=ge.bottom+"px",be.gutterFiller.style.width=ee.gutterWidth+"px"):be.gutterFiller.style.display=""}var Bu={native:cs,null:So};function Lu(E){E.display.scrollbars&&(E.display.scrollbars.clear(),E.display.scrollbars.addClass&&je(E.display.wrapper,E.display.scrollbars.addClass)),E.display.scrollbars=new Bu[E.options.scrollbarStyle](function(ee){E.display.wrapper.insertBefore(ee,E.display.scrollbarFiller),jt(ee,"mousedown",function(){E.state.focused&&setTimeout(function(){return E.display.input.focus()},0)}),ee.setAttribute("cm-not-content","true")},function(ee,be){be=="horizontal"?Ms(E,ee):As(E,ee)},E),E.display.scrollbars.addClass&&Ue(E.display.wrapper,E.display.scrollbars.addClass)}var Fd=0;function Ts(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:++Fd},Gr(E.curOp)}function us(E){var ee=E.curOp;ee&&vn(ee,function(be){for(var ge=0;ge<be.ops.length;ge++)be.ops[ge].cm.curOp=null;zd(be)})}function zd(E){for(var ee=E.ops,be=0;be<ee.length;be++)Kd(ee[be]);for(var ge=0;ge<ee.length;ge++)Hd(ee[ge]);for(var Be=0;Be<ee.length;Be++)Wd(ee[Be]);for(var $e=0;$e<ee.length;$e++)Ud(ee[$e]);for(var ht=0;ht<ee.length;ht++)Zd(ee[ht])}function Kd(E){var ee=E.cm,be=ee.display;Ru(ee),E.updateMaxLine&&rn(ee),E.mustUpdate=E.viewChanged||E.forceUpdate||E.scrollTop!=null||E.scrollToPos&&(E.scrollToPos.from.line<be.viewFrom||E.scrollToPos.to.line>=be.viewTo)||be.maxLineChanged&&ee.options.lineWrapping,E.update=E.mustUpdate&&new Yl(ee,E.mustUpdate&&{top:E.scrollTop,ensure:E.scrollToPos},E.forceUpdate)}function Hd(E){E.updatedDisplay=E.mustUpdate&&Ic(E.cm,E.update)}function Wd(E){var ee=E.cm,be=ee.display;E.updatedDisplay&&Vl(ee),E.barMeasure=rl(ee),be.maxLineChanged&&!ee.options.lineWrapping&&(E.adjustWidthTo=Ha(ee,be.maxLine,be.maxLine.text.length).left+3,ee.display.sizerWidth=E.adjustWidthTo,E.barMeasure.scrollWidth=Math.max(be.scroller.clientWidth,be.sizer.offsetLeft+E.adjustWidthTo+ba(ee)+ee.display.barWidth),E.maxScrollLeft=Math.max(0,be.sizer.offsetLeft+E.adjustWidthTo-Ji(ee))),(E.updatedDisplay||E.selectionChanged)&&(E.preparedSelection=be.input.prepareSelection())}function Ud(E){var ee=E.cm;E.adjustWidthTo!=null&&(ee.display.sizer.style.minWidth=E.adjustWidthTo+"px",E.maxScrollLeft<ee.doc.scrollLeft&&Ms(ee,Math.min(ee.display.scroller.scrollLeft,E.maxScrollLeft),!0),ee.display.maxLineChanged=!1);var be=E.focus&&E.focus==Pe();E.preparedSelection&&ee.display.input.showSelection(E.preparedSelection,be),(E.updatedDisplay||E.startHeight!=ee.doc.height)&&ks(ee,E.barMeasure),E.updatedDisplay&&Pc(ee,E.barMeasure),E.selectionChanged&&kc(ee),ee.state.focused&&E.updateInput&&ee.display.input.reset(E.typing),be&&Cl(E.cm)}function Zd(E){var ee=E.cm,be=ee.display,ge=ee.doc;if(E.updatedDisplay&&Nu(ee,E.update),be.wheelStartX!=null&&(E.scrollTop!=null||E.scrollLeft!=null||E.scrollToPos)&&(be.wheelStartX=be.wheelStartY=null),E.scrollTop!=null&&Iu(ee,E.scrollTop,E.forceScroll),E.scrollLeft!=null&&Ms(ee,E.scrollLeft,!0,!0),E.scrollToPos){var Be=Es(ee,ar(ge,E.scrollToPos.from),ar(ge,E.scrollToPos.to),E.scrollToPos.margin);ls(ee,Be)}var $e=E.maybeHiddenMarkers,ht=E.maybeUnhiddenMarkers;if($e)for(var Ct=0;Ct<$e.length;++Ct)$e[Ct].lines.length||ft($e[Ct],"hide");if(ht)for(var Tt=0;Tt<ht.length;++Tt)ht[Tt].lines.length&&ft(ht[Tt],"unhide");be.wrapper.offsetHeight&&(ge.scrollTop=ee.display.scroller.scrollTop),E.changeObjs&&ft(ee,"changes",ee,E.changeObjs),E.update&&E.update.finish()}function ma(E,ee){if(E.curOp)return ee();Ts(E);try{return ee()}finally{us(E)}}function ka(E,ee){return function(){if(E.curOp)return ee.apply(E,arguments);Ts(E);try{return ee.apply(E,arguments)}finally{us(E)}}}function da(E){return function(){if(this.curOp)return E.apply(this,arguments);Ts(this);try{return E.apply(this,arguments)}finally{us(this)}}}function _a(E){return function(){var ee=this.cm;if(!ee||ee.curOp)return E.apply(this,arguments);Ts(ee);try{return E.apply(this,arguments)}finally{us(ee)}}}function nl(E,ee){E.doc.highlightFrontier<E.display.viewTo&&E.state.highlight.set(ee,at(Pu,E))}function Pu(E){var ee=E.doc;if(!(ee.highlightFrontier>=E.display.viewTo)){var be=+new Date+E.options.workTime,ge=fr(E,ee.highlightFrontier),Be=[];ee.iter(ge.line,Math.min(ee.first+ee.size,E.display.viewTo+500),function($e){if(ge.line>=E.display.viewFrom){var ht=$e.styles,Ct=$e.text.length>E.options.maxHighlightLength?xt(ee.mode,ge.state):null,Tt=dr(E,$e,ge,!0);Ct&&(ge.state=Ct),$e.styles=Tt.styles;var Pt=$e.styleClasses,rr=Tt.classes;rr?$e.styleClasses=rr:Pt&&($e.styleClasses=null);for(var ur=!ht||ht.length!=$e.styles.length||Pt!=rr&&(!Pt||!rr||Pt.bgClass!=rr.bgClass||Pt.textClass!=rr.textClass),Pr=0;!ur&&Pr<ht.length;++Pr)ur=ht[Pr]!=$e.styles[Pr];ur&&Be.push(ge.line),$e.stateAfter=ge.save(),ge.nextLine()}else $e.text.length<=E.options.maxHighlightLength&&hr(E,$e.text,ge),$e.stateAfter=ge.line%5==0?ge.save():null,ge.nextLine();if(+new Date>be)return nl(E,E.options.workDelay),!0}),ee.highlightFrontier=ge.line,ee.modeFrontier=Math.max(ee.modeFrontier,ge.line),Be.length&&ma(E,function(){for(var $e=0;$e<Be.length;$e++)Po(E,Be[$e],"text")})}}var Yl=function(E,ee,be){var ge=E.display;this.viewport=ee,this.visible=Na(ge,E.doc,ee),this.editorIsHidden=!ge.wrapper.offsetWidth,this.wrapperHeight=ge.wrapper.clientHeight,this.wrapperWidth=ge.wrapper.clientWidth,this.oldDisplayWidth=Ji(E),this.force=be,this.dims=Zi(E),this.events=[]};Yl.prototype.signal=function(E,ee){Ft(E,ee)&&this.events.push(arguments)},Yl.prototype.finish=function(){for(var E=0;E<this.events.length;E++)ft.apply(null,this.events[E])};function Ru(E){var ee=E.display;!ee.scrollbarsClipped&&ee.scroller.offsetWidth&&(ee.nativeBarWidth=ee.scroller.offsetWidth-ee.scroller.clientWidth,ee.heightForcer.style.height=ba(E)+"px",ee.sizer.style.marginBottom=-ee.nativeBarWidth+"px",ee.sizer.style.borderRightWidth=ba(E)+"px",ee.scrollbarsClipped=!0)}function Vd(E){if(E.hasFocus())return null;var ee=Pe();if(!ee||!Ze(E.display.lineDiv,ee))return null;var be={activeElt:ee};if(window.getSelection){var ge=window.getSelection();ge.anchorNode&&ge.extend&&Ze(E.display.lineDiv,ge.anchorNode)&&(be.anchorNode=ge.anchorNode,be.anchorOffset=ge.anchorOffset,be.focusNode=ge.focusNode,be.focusOffset=ge.focusOffset)}return be}function Gd(E){if(!(!E||!E.activeElt||E.activeElt==Pe())&&(E.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(E.activeElt.nodeName)&&E.anchorNode&&Ze(document.body,E.anchorNode)&&Ze(document.body,E.focusNode))){var ee=window.getSelection(),be=document.createRange();be.setEnd(E.anchorNode,E.anchorOffset),be.collapse(!1),ee.removeAllRanges(),ee.addRange(be),ee.extend(E.focusNode,E.focusOffset)}}function Ic(E,ee){var be=E.display,ge=E.doc;if(ee.editorIsHidden)return Ro(E),!1;if(!ee.force&&ee.visible.from>=be.viewFrom&&ee.visible.to<=be.viewTo&&(be.updateLineNumbers==null||be.updateLineNumbers>=be.viewTo)&&be.renderedView==be.view&&Ul(E)==0)return!1;Jl(E)&&(Ro(E),ee.dims=Zi(E));var Be=ge.first+ge.size,$e=Math.max(ee.visible.from-E.options.viewportMargin,ge.first),ht=Math.min(Be,ee.visible.to+E.options.viewportMargin);be.viewFrom<$e&&$e-be.viewFrom<20&&($e=Math.max(ge.first,be.viewFrom)),be.viewTo>ht&&be.viewTo-ht<20&&(ht=Math.min(Be,be.viewTo)),fn&&($e=bi(E.doc,$e),ht=ci(E.doc,ht));var Ct=$e!=be.viewFrom||ht!=be.viewTo||be.lastWrapHeight!=ee.wrapperHeight||be.lastWrapWidth!=ee.wrapperWidth;ss(E,$e,ht),be.viewOffset=Cn(zt(E.doc,be.viewFrom)),E.display.mover.style.top=be.viewOffset+"px";var Tt=Ul(E);if(!Ct&&Tt==0&&!ee.force&&be.renderedView==be.view&&(be.updateLineNumbers==null||be.updateLineNumbers>=be.viewTo))return!1;var Pt=Vd(E);return Tt>4&&(be.lineDiv.style.display="none"),Xd(E,be.updateLineNumbers,ee.dims),Tt>4&&(be.lineDiv.style.display=""),be.renderedView=be.view,Gd(Pt),Me(be.cursorDiv),Me(be.selectionDiv),be.gutters.style.height=be.sizer.style.minHeight=0,Ct&&(be.lastWrapHeight=ee.wrapperHeight,be.lastWrapWidth=ee.wrapperWidth,nl(E,400)),be.updateLineNumbers=null,!0}function Nu(E,ee){for(var be=ee.viewport,ge=!0;;ge=!1){if(!ge||!E.options.lineWrapping||ee.oldDisplayWidth==Ji(E)){if(be&&be.top!=null&&(be={top:Math.min(E.doc.height+Bo(E.display)-Ka(E),be.top)}),ee.visible=Na(E.display,E.doc,be),ee.visible.from>=E.display.viewFrom&&ee.visible.to<=E.display.viewTo)break}else ge&&(ee.visible=Na(E.display,E.doc,be));if(!Ic(E,ee))break;Vl(E);var Be=rl(E);Sl(E),ks(E,Be),Pc(E,Be),ee.force=!1}ee.signal(E,"update",E),(E.display.viewFrom!=E.display.reportedViewFrom||E.display.viewTo!=E.display.reportedViewTo)&&(ee.signal(E,"viewportChange",E,E.display.viewFrom,E.display.viewTo),E.display.reportedViewFrom=E.display.viewFrom,E.display.reportedViewTo=E.display.viewTo)}function Bc(E,ee){var be=new Yl(E,ee);if(Ic(E,be)){Vl(E),Nu(E,be);var ge=rl(E);Sl(E),ks(E,ge),Pc(E,ge),be.finish()}}function Xd(E,ee,be){var ge=E.display,Be=E.options.lineNumbers,$e=ge.lineDiv,ht=$e.firstChild;function Ct(tn){var En=tn.nextSibling;return ne&&we&&E.display.currentWheelTarget==tn?tn.style.display="none":tn.parentNode.removeChild(tn),En}for(var Tt=ge.view,Pt=ge.viewFrom,rr=0;rr<Tt.length;rr++){var ur=Tt[rr];if(!ur.hidden)if(!ur.node||ur.node.parentNode!=$e){var Pr=wi(E,ur,Pt,be);$e.insertBefore(Pr,ht)}else{for(;ht!=ur.node;)ht=Ct(ht);var kr=Be&&ee!=null&&ee<=Pt&&ur.lineNumber;ur.changes&&(nt(ur.changes,"gutter")>-1&&(kr=!1),Kn(E,ur,Pt,be)),kr&&(Me(ur.lineNumber),ur.lineNumber.appendChild(document.createTextNode(Er(E.options,Pt)))),ht=ur.node.nextSibling}Pt+=ur.size}for(;ht;)ht=Ct(ht)}function Lc(E){var ee=E.gutters.offsetWidth;E.sizer.style.marginLeft=ee+"px"}function Pc(E,ee){E.display.sizer.style.minHeight=ee.docHeight+"px",E.display.heightForcer.style.top=ee.docHeight+"px",E.display.gutters.style.height=ee.docHeight+E.display.barHeight+ba(E)+"px"}function _u(E){var ee=E.display,be=ee.view;if(!(!ee.alignWidgets&&(!ee.gutters.firstChild||!E.options.fixedGutter))){for(var ge=$i(ee)-ee.scroller.scrollLeft+E.doc.scrollLeft,Be=ee.gutters.offsetWidth,$e=ge+"px",ht=0;ht<be.length;ht++)if(!be[ht].hidden){E.options.fixedGutter&&(be[ht].gutter&&(be[ht].gutter.style.left=$e),be[ht].gutterBackground&&(be[ht].gutterBackground.style.left=$e));var Ct=be[ht].alignable;if(Ct)for(var Tt=0;Tt<Ct.length;Tt++)Ct[Tt].style.left=$e}E.options.fixedGutter&&(ee.gutters.style.left=ge+Be+"px")}}function Jl(E){if(!E.options.lineNumbers)return!1;var ee=E.doc,be=Er(E.options,ee.first+ee.size-1),ge=E.display;if(be.length!=ge.lineNumChars){var Be=ge.measure.appendChild(Ee("div",[Ee("div",be)],"CodeMirror-linenumber CodeMirror-gutter-elt")),$e=Be.firstChild.offsetWidth,ht=Be.offsetWidth-$e;return ge.lineGutter.style.width="",ge.lineNumInnerWidth=Math.max($e,ge.lineGutter.offsetWidth-ht)+1,ge.lineNumWidth=ge.lineNumInnerWidth+ht,ge.lineNumChars=ge.lineNumInnerWidth?be.length:-1,ge.lineGutter.style.width=ge.lineNumWidth+"px",Lc(E.display),!0}return!1}function Rc(E,ee){for(var be=[],ge=!1,Be=0;Be<E.length;Be++){var $e=E[Be],ht=null;if(typeof $e!="string"&&(ht=$e.style,$e=$e.className),$e=="CodeMirror-linenumbers")if(ee)ge=!0;else continue;be.push({className:$e,style:ht})}return ee&&!ge&&be.push({className:"CodeMirror-linenumbers",style:null}),be}function ju(E){var ee=E.gutters,be=E.gutterSpecs;Me(ee),E.lineGutter=null;for(var ge=0;ge<be.length;++ge){var Be=be[ge],$e=Be.className,ht=Be.style,Ct=ee.appendChild(Ee("div",null,"CodeMirror-gutter "+$e));ht&&(Ct.style.cssText=ht),$e=="CodeMirror-linenumbers"&&(E.lineGutter=Ct,Ct.style.width=(E.lineNumWidth||1)+"px")}ee.style.display=be.length?"":"none",Lc(E)}function El(E){ju(E.display),Xa(E),_u(E)}function Yd(E,ee,be,ge){var Be=this;this.input=be,Be.scrollbarFiller=Ee("div",null,"CodeMirror-scrollbar-filler"),Be.scrollbarFiller.setAttribute("cm-not-content","true"),Be.gutterFiller=Ee("div",null,"CodeMirror-gutter-filler"),Be.gutterFiller.setAttribute("cm-not-content","true"),Be.lineDiv=Ne("div",null,"CodeMirror-code"),Be.selectionDiv=Ee("div",null,null,"position: relative; z-index: 1"),Be.cursorDiv=Ee("div",null,"CodeMirror-cursors"),Be.measure=Ee("div",null,"CodeMirror-measure"),Be.lineMeasure=Ee("div",null,"CodeMirror-measure"),Be.lineSpace=Ne("div",[Be.measure,Be.lineMeasure,Be.selectionDiv,Be.cursorDiv,Be.lineDiv],null,"position: relative; outline: none");var $e=Ne("div",[Be.lineSpace],"CodeMirror-lines");Be.mover=Ee("div",[$e],null,"position: relative"),Be.sizer=Ee("div",[Be.mover],"CodeMirror-sizer"),Be.sizerWidth=null,Be.heightForcer=Ee("div",null,null,"position: absolute; height: "+ct+"px; width: 1px;"),Be.gutters=Ee("div",null,"CodeMirror-gutters"),Be.lineGutter=null,Be.scroller=Ee("div",[Be.sizer,Be.heightForcer,Be.gutters],"CodeMirror-scroll"),Be.scroller.setAttribute("tabIndex","-1"),Be.wrapper=Ee("div",[Be.scrollbarFiller,Be.gutterFiller,Be.scroller],"CodeMirror"),ve&&re<8&&(Be.gutters.style.zIndex=-1,Be.scroller.style.paddingRight=0),!ne&&!(Re&&he)&&(Be.scroller.draggable=!0),E&&(E.appendChild?E.appendChild(Be.wrapper):E(Be.wrapper)),Be.viewFrom=Be.viewTo=ee.first,Be.reportedViewFrom=Be.reportedViewTo=ee.first,Be.view=[],Be.renderedView=null,Be.externalMeasured=null,Be.viewOffset=0,Be.lastWrapHeight=Be.lastWrapWidth=0,Be.updateLineNumbers=null,Be.nativeBarWidth=Be.barHeight=Be.barWidth=0,Be.scrollbarsClipped=!1,Be.lineNumWidth=Be.lineNumInnerWidth=Be.lineNumChars=null,Be.alignWidgets=!1,Be.cachedCharWidth=Be.cachedTextHeight=Be.cachedPaddingH=null,Be.maxLine=null,Be.maxLineLength=0,Be.maxLineChanged=!1,Be.wheelDX=Be.wheelDY=Be.wheelStartX=Be.wheelStartY=null,Be.shift=!1,Be.selForContextMenu=null,Be.activeTouch=null,Be.gutterSpecs=Rc(ge.gutters,ge.lineNumbers),ju(Be),be.init(Be)}var Ql=0,Ya=null;ve?Ya=-.53:Re?Ya=15:oe?Ya=-.7:me&&(Ya=-1/3);function il(E){var ee=E.wheelDeltaX,be=E.wheelDeltaY;return ee==null&&E.detail&&E.axis==E.HORIZONTAL_AXIS&&(ee=E.detail),be==null&&E.detail&&E.axis==E.VERTICAL_AXIS?be=E.detail:be==null&&(be=E.wheelDelta),{x:ee,y:be}}function Fu(E){var ee=il(E);return ee.x*=Ya,ee.y*=Ya,ee}function zu(E,ee){var be=il(ee),ge=be.x,Be=be.y,$e=E.display,ht=$e.scroller,Ct=ht.scrollWidth>ht.clientWidth,Tt=ht.scrollHeight>ht.clientHeight;if(ge&&Ct||Be&&Tt){if(Be&&we&&ne){e:for(var Pt=ee.target,rr=$e.view;Pt!=ht;Pt=Pt.parentNode)for(var ur=0;ur<rr.length;ur++)if(rr[ur].node==Pt){E.display.currentWheelTarget=Pt;break e}}if(ge&&!Re&&!se&&Ya!=null){Be&&Tt&&As(E,Math.max(0,ht.scrollTop+Be*Ya)),Ms(E,Math.max(0,ht.scrollLeft+ge*Ya)),(!Be||Be&&Tt)&&sr(ee),$e.wheelStartX=null;return}if(Be&&Ya!=null){var Pr=Be*Ya,kr=E.doc.scrollTop,tn=kr+$e.wrapper.clientHeight;Pr<0?kr=Math.max(0,kr+Pr-50):tn=Math.min(E.doc.height,tn+Pr+50),Bc(E,{top:kr,bottom:tn})}Ql<20&&($e.wheelStartX==null?($e.wheelStartX=ht.scrollLeft,$e.wheelStartY=ht.scrollTop,$e.wheelDX=ge,$e.wheelDY=Be,setTimeout(function(){if($e.wheelStartX!=null){var En=ht.scrollLeft-$e.wheelStartX,Hn=ht.scrollTop-$e.wheelStartY,qn=Hn&&$e.wheelDY&&Hn/$e.wheelDY||En&&$e.wheelDX&&En/$e.wheelDX;$e.wheelStartX=$e.wheelStartY=null,qn&&(Ya=(Ya*Ql+qn)/(Ql+1),++Ql)}},200)):($e.wheelDX+=ge,$e.wheelDY+=Be))}}var Co=function(E,ee){this.ranges=E,this.primIndex=ee};Co.prototype.primary=function(){return this.ranges[this.primIndex]},Co.prototype.equals=function(E){if(E==this)return!0;if(E.primIndex!=this.primIndex||E.ranges.length!=this.ranges.length)return!1;for(var ee=0;ee<this.ranges.length;ee++){var be=this.ranges[ee],ge=E.ranges[ee];if(!Wt(be.anchor,ge.anchor)||!Wt(be.head,ge.head))return!1}return!0},Co.prototype.deepCopy=function(){for(var E=[],ee=0;ee<this.ranges.length;ee++)E[ee]=new Xi(Qt(this.ranges[ee].anchor),Qt(this.ranges[ee].head));return new Co(E,this.primIndex)},Co.prototype.somethingSelected=function(){for(var E=0;E<this.ranges.length;E++)if(!this.ranges[E].empty())return!0;return!1},Co.prototype.contains=function(E,ee){ee||(ee=E);for(var be=0;be<this.ranges.length;be++){var ge=this.ranges[be];if(br(ee,ge.from())>=0&&br(E,ge.to())<=0)return be}return-1};var Xi=function(E,ee){this.anchor=E,this.head=ee};Xi.prototype.from=function(){return qt(this.anchor,this.head)},Xi.prototype.to=function(){return Xt(this.anchor,this.head)},Xi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function No(E,ee,be){var ge=E&&E.options.selectionsMayTouch,Be=ee[be];ee.sort(function(Pr,kr){return br(Pr.from(),kr.from())}),be=nt(ee,Be);for(var $e=1;$e<ee.length;$e++){var ht=ee[$e],Ct=ee[$e-1],Tt=br(Ct.to(),ht.from());if(ge&&!ht.empty()?Tt>0:Tt>=0){var Pt=qt(Ct.from(),ht.from()),rr=Xt(Ct.to(),ht.to()),ur=Ct.empty()?ht.from()==ht.head:Ct.from()==Ct.head;$e<=be&&--be,ee.splice(--$e,2,new Xi(ur?rr:Pt,ur?Pt:rr))}}return new Co(ee,be)}function Ko(E,ee){return new Co([new Xi(E,ee||E)],0)}function ds(E){return E.text?tr(E.from.line+E.text.length-1,At(E.text).length+(E.text.length==1?E.from.ch:0)):E.to}function Ku(E,ee){if(br(E,ee.from)<0)return E;if(br(E,ee.to)<=0)return ds(ee);var be=E.line+ee.text.length-(ee.to.line-ee.from.line)-1,ge=E.ch;return E.line==ee.to.line&&(ge+=ds(ee).ch-ee.to.ch),tr(be,ge)}function Nc(E,ee){for(var be=[],ge=0;ge<E.sel.ranges.length;ge++){var Be=E.sel.ranges[ge];be.push(new Xi(Ku(Be.anchor,ee),Ku(Be.head,ee)))}return No(E.cm,be,E.sel.primIndex)}function al(E,ee,be){return E.line==ee.line?tr(be.line,E.ch-ee.ch+be.ch):tr(be.line+(E.line-ee.line),E.ch)}function _c(E,ee,be){for(var ge=[],Be=tr(E.first,0),$e=Be,ht=0;ht<ee.length;ht++){var Ct=ee[ht],Tt=al(Ct.from,Be,$e),Pt=al(ds(Ct),Be,$e);if(Be=Ct.to,$e=Pt,be=="around"){var rr=E.sel.ranges[ht],ur=br(rr.head,rr.anchor)<0;ge[ht]=new Xi(ur?Pt:Tt,ur?Tt:Pt)}else ge[ht]=new Xi(Tt,Tt)}return new Co(ge,E.sel.primIndex)}function jc(E){E.doc.mode=Or(E.options,E.doc.modeOption),ol(E)}function ol(E){E.doc.iter(function(ee){ee.stateAfter&&(ee.stateAfter=null),ee.styles&&(ee.styles=null)}),E.doc.modeFrontier=E.doc.highlightFrontier=E.doc.first,nl(E,100),E.state.modeGen++,E.curOp&&Xa(E)}function Hu(E,ee){return ee.from.ch==0&&ee.to.ch==0&&At(ee.text)==""&&(!E.cm||E.cm.options.wholeLineUpdateBefore)}function Fc(E,ee,be,ge){function Be(ti){return be?be[ti]:null}function $e(ti,Qn,ni){ii(ti,Qn,ni,ge),Qr(ti,"change",ti,ee)}function ht(ti,Qn){for(var ni=[],mi=ti;mi<Qn;++mi)ni.push(new ln(Pt[mi],Be(mi),ge));return ni}var Ct=ee.from,Tt=ee.to,Pt=ee.text,rr=zt(E,Ct.line),ur=zt(E,Tt.line),Pr=At(Pt),kr=Be(Pt.length-1),tn=Tt.line-Ct.line;if(ee.full)E.insert(0,ht(0,Pt.length)),E.remove(Pt.length,E.size-Pt.length);else if(Hu(E,ee)){var En=ht(0,Pt.length-1);$e(ur,ur.text,kr),tn&&E.remove(Ct.line,tn),En.length&&E.insert(Ct.line,En)}else if(rr==ur)if(Pt.length==1)$e(rr,rr.text.slice(0,Ct.ch)+Pr+rr.text.slice(Tt.ch),kr);else{var Hn=ht(1,Pt.length-1);Hn.push(new ln(Pr+rr.text.slice(Tt.ch),kr,ge)),$e(rr,rr.text.slice(0,Ct.ch)+Pt[0],Be(0)),E.insert(Ct.line+1,Hn)}else if(Pt.length==1)$e(rr,rr.text.slice(0,Ct.ch)+Pt[0]+ur.text.slice(Tt.ch),Be(0)),E.remove(Ct.line+1,tn);else{$e(rr,rr.text.slice(0,Ct.ch)+Pt[0],Be(0)),$e(ur,Pr+ur.text.slice(Tt.ch),kr);var qn=ht(1,Pt.length-1);tn>1&&E.remove(Ct.line+1,tn-1),E.insert(Ct.line+1,qn)}Qr(E,"change",E,ee)}function fs(E,ee,be){function ge(Be,$e,ht){if(Be.linked)for(var Ct=0;Ct<Be.linked.length;++Ct){var Tt=Be.linked[Ct];if(Tt.doc!=$e){var Pt=ht&&Tt.sharedHist;be&&!Pt||(ee(Tt.doc,Pt),ge(Tt.doc,Be,Pt))}}}ge(E,null,!0)}function $l(E,ee){if(ee.cm)throw new Error("This document is already in use.");E.doc=ee,ee.cm=E,Ra(E),jc(E),ql(E),E.options.lineWrapping||rn(E),E.options.mode=ee.modeOption,Xa(E)}function ql(E){(E.doc.direction=="rtl"?Ue:je)(E.display.lineDiv,"CodeMirror-rtl")}function zc(E){ma(E,function(){ql(E),Xa(E)})}function ec(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 Kc(E,ee){var be={from:Qt(ee.from),to:ds(ee),text:Zt(E,ee.from,ee.to)};return Zc(E,be,ee.from.line,ee.to.line+1),fs(E,function(ge){return Zc(ge,be,ee.from.line,ee.to.line+1)},!0),be}function Wu(E){for(;E.length;){var ee=At(E);if(ee.ranges)E.pop();else break}}function Hc(E,ee){if(ee)return Wu(E.done),At(E.done);if(E.done.length&&!At(E.done).ranges)return At(E.done);if(E.done.length>1&&!E.done[E.done.length-2].ranges)return E.done.pop(),At(E.done)}function tc(E,ee,be,ge){var Be=E.history;Be.undone.length=0;var $e=+new Date,ht,Ct;if((Be.lastOp==ge||Be.lastOrigin==ee.origin&&ee.origin&&(ee.origin.charAt(0)=="+"&&Be.lastModTime>$e-(E.cm?E.cm.options.historyEventDelay:500)||ee.origin.charAt(0)=="*"))&&(ht=Hc(Be,Be.lastOp==ge)))Ct=At(ht.changes),br(ee.from,ee.to)==0&&br(ee.from,Ct.to)==0?Ct.to=ds(ee):ht.changes.push(Kc(E,ee));else{var Tt=At(Be.done);for((!Tt||!Tt.ranges)&&rc(E.sel,Be.done),ht={changes:[Kc(E,ee)],generation:Be.generation},Be.done.push(ht);Be.done.length>Be.undoDepth;)Be.done.shift(),Be.done[0].ranges||Be.done.shift()}Be.done.push(be),Be.generation=++Be.maxGeneration,Be.lastModTime=Be.lastSelTime=$e,Be.lastOp=Be.lastSelOp=ge,Be.lastOrigin=Be.lastSelOrigin=ee.origin,Ct||ft(E,"historyAdded")}function Wc(E,ee,be,ge){var Be=ee.charAt(0);return Be=="*"||Be=="+"&&be.ranges.length==ge.ranges.length&&be.somethingSelected()==ge.somethingSelected()&&new Date-E.history.lastSelTime<=(E.cm?E.cm.options.historyEventDelay:500)}function Uc(E,ee,be,ge){var Be=E.history,$e=ge&&ge.origin;be==Be.lastSelOp||$e&&Be.lastSelOrigin==$e&&(Be.lastModTime==Be.lastSelTime&&Be.lastOrigin==$e||Wc(E,$e,At(Be.done),ee))?Be.done[Be.done.length-1]=ee:rc(ee,Be.done),Be.lastSelTime=+new Date,Be.lastSelOrigin=$e,Be.lastSelOp=be,ge&&ge.clearRedo!==!1&&Wu(Be.undone)}function rc(E,ee){var be=At(ee);be&&be.ranges&&be.equals(E)||ee.push(E)}function Zc(E,ee,be,ge){var Be=ee["spans_"+E.id],$e=0;E.iter(Math.max(E.first,be),Math.min(E.first+E.size,ge),function(ht){ht.markedSpans&&((Be||(Be=ee["spans_"+E.id]={}))[$e]=ht.markedSpans),++$e})}function Vc(E){if(!E)return null;for(var ee,be=0;be<E.length;++be)E[be].marker.explicitlyCleared?ee||(ee=E.slice(0,be)):ee&&ee.push(E[be]);return ee?ee.length?ee:null:E}function Jd(E,ee){var be=ee["spans_"+E.id];if(!be)return null;for(var ge=[],Be=0;Be<ee.text.length;++Be)ge.push(Vc(be[Be]));return ge}function Uu(E,ee){var be=Jd(E,ee),ge=Kr(E,ee);if(!be)return ge;if(!ge)return be;for(var Be=0;Be<be.length;++Be){var $e=be[Be],ht=ge[Be];if($e&&ht)e:for(var Ct=0;Ct<ht.length;++Ct){for(var Tt=ht[Ct],Pt=0;Pt<$e.length;++Pt)if($e[Pt].marker==Tt.marker)continue e;$e.push(Tt)}else ht&&(be[Be]=ht)}return be}function sl(E,ee,be){for(var ge=[],Be=0;Be<E.length;++Be){var $e=E[Be];if($e.ranges){ge.push(be?Co.prototype.deepCopy.call($e):$e);continue}var ht=$e.changes,Ct=[];ge.push({changes:Ct});for(var Tt=0;Tt<ht.length;++Tt){var Pt=ht[Tt],rr=void 0;if(Ct.push({from:Pt.from,to:Pt.to,text:Pt.text}),ee)for(var ur in Pt)(rr=ur.match(/^spans_(\d+)$/))&&nt(ee,Number(rr[1]))>-1&&(At(Ct)[ur]=Pt[ur],delete Pt[ur])}}return ge}function Gc(E,ee,be,ge){if(ge){var Be=E.anchor;if(be){var $e=br(ee,Be)<0;$e!=br(be,Be)<0?(Be=ee,ee=be):$e!=br(ee,be)<0&&(ee=be)}return new Xi(Be,ee)}else return new Xi(be||ee,ee)}function ll(E,ee,be,ge,Be){Be==null&&(Be=E.cm&&(E.cm.display.shift||E.extend)),Ta(E,new Co([Gc(E.sel.primary(),ee,be,Be)],0),ge)}function ai(E,ee,be){for(var ge=[],Be=E.cm&&(E.cm.display.shift||E.extend),$e=0;$e<E.sel.ranges.length;$e++)ge[$e]=Gc(E.sel.ranges[$e],ee[$e],null,Be);var ht=No(E.cm,ge,E.sel.primIndex);Ta(E,ht,be)}function To(E,ee,be,ge){var Be=E.sel.ranges.slice(0);Be[ee]=be,Ta(E,No(E.cm,Be,E.sel.primIndex),ge)}function Zu(E,ee,be,ge){Ta(E,Ko(ee,be),ge)}function Qd(E,ee,be){var ge={ranges:ee.ranges,update:function(Be){this.ranges=[];for(var $e=0;$e<Be.length;$e++)this.ranges[$e]=new Xi(ar(E,Be[$e].anchor),ar(E,Be[$e].head))},origin:be&&be.origin};return ft(E,"beforeSelectionChange",E,ge),E.cm&&ft(E.cm,"beforeSelectionChange",E.cm,ge),ge.ranges!=ee.ranges?No(E.cm,ge.ranges,ge.ranges.length-1):ee}function ho(E,ee,be){var ge=E.history.done,Be=At(ge);Be&&Be.ranges?(ge[ge.length-1]=ee,nc(E,ee,be)):Ta(E,ee,be)}function Ta(E,ee,be){nc(E,ee,be),Uc(E,E.sel,E.cm?E.cm.curOp.id:NaN,be)}function nc(E,ee,be){(Ft(E,"beforeSelectionChange")||E.cm&&Ft(E.cm,"beforeSelectionChange"))&&(ee=Qd(E,ee,be));var ge=be&&be.bias||(br(ee.primary().head,E.sel.primary().head)<0?-1:1);$d(E,cl(E,ee,ge,!0)),!(be&&be.scroll===!1)&&E.cm&&el(E.cm)}function $d(E,ee){ee.equals(E.sel)||(E.sel=ee,E.cm&&(E.cm.curOp.updateInput=1,E.cm.curOp.selectionChanged=!0,Nt(E.cm)),Qr(E,"cursorActivity",E))}function qd(E){$d(E,cl(E,E.sel,null,!1))}function cl(E,ee,be,ge){for(var Be,$e=0;$e<ee.ranges.length;$e++){var ht=ee.ranges[$e],Ct=ee.ranges.length==E.sel.ranges.length&&E.sel.ranges[$e],Tt=Xc(E,ht.anchor,Ct&&Ct.anchor,be,ge),Pt=Xc(E,ht.head,Ct&&Ct.head,be,ge);(Be||Tt!=ht.anchor||Pt!=ht.head)&&(Be||(Be=ee.ranges.slice(0,$e)),Be[$e]=new Xi(Tt,Pt))}return Be?No(E.cm,Be,ee.primIndex):ee}function po(E,ee,be,ge,Be){var $e=zt(E,ee.line);if($e.markedSpans)for(var ht=0;ht<$e.markedSpans.length;++ht){var Ct=$e.markedSpans[ht],Tt=Ct.marker,Pt="selectLeft"in Tt?!Tt.selectLeft:Tt.inclusiveLeft,rr="selectRight"in Tt?!Tt.selectRight:Tt.inclusiveRight;if((Ct.from==null||(Pt?Ct.from<=ee.ch:Ct.from<ee.ch))&&(Ct.to==null||(rr?Ct.to>=ee.ch:Ct.to>ee.ch))){if(Be&&(ft(Tt,"beforeCursorEnter"),Tt.explicitlyCleared))if($e.markedSpans){--ht;continue}else break;if(!Tt.atomic)continue;if(be){var ur=Tt.find(ge<0?1:-1),Pr=void 0;if((ge<0?rr:Pt)&&(ur=hs(E,ur,-ge,ur&&ur.line==ee.line?$e:null)),ur&&ur.line==ee.line&&(Pr=br(ur,be))&&(ge<0?Pr<0:Pr>0))return po(E,ur,ee,ge,Be)}var kr=Tt.find(ge<0?-1:1);return(ge<0?Pt:rr)&&(kr=hs(E,kr,ge,kr.line==ee.line?$e:null)),kr?po(E,kr,ee,ge,Be):null}}return ee}function Xc(E,ee,be,ge,Be){var $e=ge||1,ht=po(E,ee,be,$e,Be)||!Be&&po(E,ee,be,$e,!0)||po(E,ee,be,-$e,Be)||!Be&&po(E,ee,be,-$e,!0);return ht||(E.cantEdit=!0,tr(E.first,0))}function hs(E,ee,be,ge){return be<0&&ee.ch==0?ee.line>E.first?ar(E,tr(ee.line-1)):null:be>0&&ee.ch==(ge||zt(E,ee.line)).text.length?ee.line<E.first+E.size-1?tr(ee.line+1,0):null:new tr(ee.line,ee.ch+be)}function Vu(E){E.setSelection(tr(E.firstLine(),0),tr(E.lastLine()),et)}function Yc(E,ee,be){var ge={canceled:!1,from:ee.from,to:ee.to,text:ee.text,origin:ee.origin,cancel:function(){return ge.canceled=!0}};return be&&(ge.update=function(Be,$e,ht,Ct){Be&&(ge.from=ar(E,Be)),$e&&(ge.to=ar(E,$e)),ht&&(ge.text=ht),Ct!==void 0&&(ge.origin=Ct)}),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 Os(E,ee,be){if(E.cm){if(!E.cm.curOp)return ka(E.cm,Os)(E,ee,be);if(E.cm.state.suppressEdits)return}if(!((Ft(E,"beforeChange")||E.cm&&Ft(E.cm,"beforeChange"))&&(ee=Yc(E,ee,!0),!ee))){var ge=wn&&!be&&Dn(E,ee.from,ee.to);if(ge)for(var Be=ge.length-1;Be>=0;--Be)Gu(E,{from:ge[Be].from,to:ge[Be].to,text:Be?[""]:ee.text,origin:ee.origin});else Gu(E,ee)}}function Gu(E,ee){if(!(ee.text.length==1&&ee.text[0]==""&&br(ee.from,ee.to)==0)){var be=Nc(E,ee);tc(E,ee,be,E.cm?E.cm.curOp.id:NaN),ul(E,ee,be,Kr(E,ee));var ge=[];fs(E,function(Be,$e){!$e&&nt(ge,Be.history)==-1&&(ic(Be.history,ee),ge.push(Be.history)),ul(Be,ee,null,Kr(Be,ee))})}}function ps(E,ee,be){var ge=E.cm&&E.cm.state.suppressEdits;if(!(ge&&!be)){for(var Be=E.history,$e,ht=E.sel,Ct=ee=="undo"?Be.done:Be.undone,Tt=ee=="undo"?Be.undone:Be.done,Pt=0;Pt<Ct.length&&($e=Ct[Pt],!(be?$e.ranges&&!$e.equals(E.sel):!$e.ranges));Pt++);if(Pt!=Ct.length){for(Be.lastOrigin=Be.lastSelOrigin=null;;)if($e=Ct.pop(),$e.ranges){if(rc($e,Tt),be&&!$e.equals(E.sel)){Ta(E,$e,{clearRedo:!1});return}ht=$e}else if(ge){Ct.push($e);return}else break;var rr=[];rc(ht,Tt),Tt.push({changes:rr,generation:Be.generation}),Be.generation=$e.generation||++Be.maxGeneration;for(var ur=Ft(E,"beforeChange")||E.cm&&Ft(E.cm,"beforeChange"),Pr=function(En){var Hn=$e.changes[En];if(Hn.origin=ee,ur&&!Yc(E,Hn,!1))return Ct.length=0,{};rr.push(Kc(E,Hn));var qn=En?Nc(E,Hn):At(Ct);ul(E,Hn,qn,Uu(E,Hn)),!En&&E.cm&&E.cm.scrollIntoView({from:Hn.from,to:ds(Hn)});var ti=[];fs(E,function(Qn,ni){!ni&&nt(ti,Qn.history)==-1&&(ic(Qn.history,Hn),ti.push(Qn.history)),ul(Qn,Hn,null,Uu(Qn,Hn))})},kr=$e.changes.length-1;kr>=0;--kr){var tn=Pr(kr);if(tn)return tn.v}}}}function Jc(E,ee){if(ee!=0&&(E.first+=ee,E.sel=new Co(st(E.sel.ranges,function(Be){return new Xi(tr(Be.anchor.line+ee,Be.anchor.ch),tr(Be.head.line+ee,Be.head.ch))}),E.sel.primIndex),E.cm)){Xa(E.cm,E.first,E.first-ee,ee);for(var be=E.cm.display,ge=be.viewFrom;ge<be.viewTo;ge++)Po(E.cm,ge,"gutter")}}function ul(E,ee,be,ge){if(E.cm&&!E.cm.curOp)return ka(E.cm,ul)(E,ee,be,ge);if(ee.to.line<E.first){Jc(E,ee.text.length-1-(ee.to.line-ee.from.line));return}if(!(ee.from.line>E.lastLine())){if(ee.from.line<E.first){var Be=ee.text.length-1-(E.first-ee.from.line);Jc(E,Be),ee={from:tr(E.first,0),to:tr(ee.to.line+Be,ee.to.ch),text:[At(ee.text)],origin:ee.origin}}var $e=E.lastLine();ee.to.line>$e&&(ee={from:ee.from,to:tr($e,zt(E,$e).text.length),text:[ee.text[0]],origin:ee.origin}),ee.removed=Zt(E,ee.from,ee.to),be||(be=Nc(E,ee)),E.cm?ef(E.cm,ee,ge):Fc(E,ee,ge),nc(E,be,et),E.cantEdit&&Xc(E,tr(E.firstLine(),0))&&(E.cantEdit=!1)}}function ef(E,ee,be){var ge=E.doc,Be=E.display,$e=ee.from,ht=ee.to,Ct=!1,Tt=$e.line;E.options.lineWrapping||(Tt=pr(ei(zt(ge,$e.line))),ge.iter(Tt,ht.line+1,function(kr){if(kr==Be.maxLine)return Ct=!0,!0})),ge.sel.contains(ee.from,ee.to)>-1&&Nt(E),Fc(ge,ee,be,no(E)),E.options.lineWrapping||(ge.iter(Tt,$e.line+ee.text.length,function(kr){var tn=Sn(kr);tn>Be.maxLineLength&&(Be.maxLine=kr,Be.maxLineLength=tn,Be.maxLineChanged=!0,Ct=!1)}),Ct&&(E.curOp.updateMaxLine=!0)),Jr(ge,$e.line),nl(E,400);var Pt=ee.text.length-(ht.line-$e.line)-1;ee.full?Xa(E):$e.line==ht.line&&ee.text.length==1&&!Hu(E.doc,ee)?Po(E,$e.line,"text"):Xa(E,$e.line,ht.line+1,Pt);var rr=Ft(E,"changes"),ur=Ft(E,"change");if(ur||rr){var Pr={from:$e,to:ht,text:ee.text,removed:ee.removed,origin:ee.origin};ur&&Qr(E,"change",E,Pr),rr&&(E.curOp.changeObjs||(E.curOp.changeObjs=[])).push(Pr)}E.display.selForContextMenu=null}function Al(E,ee,be,ge,Be){var $e;ge||(ge=be),br(ge,be)<0&&($e=[ge,be],be=$e[0],ge=$e[1]),typeof ee=="string"&&(ee=E.splitLines(ee)),Os(E,{from:be,to:ge,text:ee,origin:Be})}function tf(E,ee,be,ge){be<E.line?E.line+=ge:ee<E.line&&(E.line=ee,E.ch=0)}function rf(E,ee,be,ge){for(var Be=0;Be<E.length;++Be){var $e=E[Be],ht=!0;if($e.ranges){$e.copied||($e=E[Be]=$e.deepCopy(),$e.copied=!0);for(var Ct=0;Ct<$e.ranges.length;Ct++)tf($e.ranges[Ct].anchor,ee,be,ge),tf($e.ranges[Ct].head,ee,be,ge);continue}for(var Tt=0;Tt<$e.changes.length;++Tt){var Pt=$e.changes[Tt];if(be<Pt.from.line)Pt.from=tr(Pt.from.line+ge,Pt.from.ch),Pt.to=tr(Pt.to.line+ge,Pt.to.ch);else if(ee<=Pt.to.line){ht=!1;break}}ht||(E.splice(0,Be+1),Be=0)}}function ic(E,ee){var be=ee.from.line,ge=ee.to.line,Be=ee.text.length-(ge-be)-1;rf(E.done,be,ge,Be),rf(E.undone,be,ge,Be)}function ac(E,ee,be,ge){var Be=ee,$e=ee;return typeof ee=="number"?$e=zt(E,mr(E,ee)):Be=pr(ee),Be==null?null:(ge($e,Be)&&E.cm&&Po(E.cm,Be,be),$e)}function Ds(E){this.lines=E,this.parent=null;for(var ee=0,be=0;be<E.length;++be)E[be].parent=this,ee+=E[be].height;this.height=ee}Ds.prototype={chunkSize:function(){return this.lines.length},removeInner:function(E,ee){for(var be=E,ge=E+ee;be<ge;++be){var Be=this.lines[be];this.height-=Be.height,xi(Be),Qr(Be,"delete")}this.lines.splice(E,ee)},collapse:function(E){E.push.apply(E,this.lines)},insertInner:function(E,ee,be){this.height+=be,this.lines=this.lines.slice(0,E).concat(ee).concat(this.lines.slice(E));for(var ge=0;ge<ee.length;++ge)ee[ge].parent=this},iterN:function(E,ee,be){for(var ge=E+ee;E<ge;++E)if(be(this.lines[E]))return!0}};function Ml(E){this.children=E;for(var ee=0,be=0,ge=0;ge<E.length;++ge){var Be=E[ge];ee+=Be.chunkSize(),be+=Be.height,Be.parent=this}this.size=ee,this.height=be,this.parent=null}Ml.prototype={chunkSize:function(){return this.size},removeInner:function(E,ee){this.size-=ee;for(var be=0;be<this.children.length;++be){var ge=this.children[be],Be=ge.chunkSize();if(E<Be){var $e=Math.min(ee,Be-E),ht=ge.height;if(ge.removeInner(E,$e),this.height-=ht-ge.height,Be==$e&&(this.children.splice(be--,1),ge.parent=null),(ee-=$e)==0)break;E=0}else E-=Be}if(this.size-ee<25&&(this.children.length>1||!(this.children[0]instanceof Ds))){var Ct=[];this.collapse(Ct),this.children=[new Ds(Ct)],this.children[0].parent=this}},collapse:function(E){for(var ee=0;ee<this.children.length;++ee)this.children[ee].collapse(E)},insertInner:function(E,ee,be){this.size+=ee.length,this.height+=be;for(var ge=0;ge<this.children.length;++ge){var Be=this.children[ge],$e=Be.chunkSize();if(E<=$e){if(Be.insertInner(E,ee,be),Be.lines&&Be.lines.length>50){for(var ht=Be.lines.length%25+25,Ct=ht;Ct<Be.lines.length;){var Tt=new Ds(Be.lines.slice(Ct,Ct+=25));Be.height-=Tt.height,this.children.splice(++ge,0,Tt),Tt.parent=this}Be.lines=Be.lines.slice(0,ht),this.maybeSpill()}break}E-=$e}},maybeSpill:function(){if(!(this.children.length<=10)){var E=this;do{var ee=E.children.splice(E.children.length-5,5),be=new Ml(ee);if(E.parent){E.size-=be.size,E.height-=be.height;var Be=nt(E.parent.children,E);E.parent.children.splice(Be+1,0,be)}else{var ge=new Ml(E.children);ge.parent=E,E.children=[ge,be],E=ge}be.parent=E.parent}while(E.children.length>10);E.parent.maybeSpill()}},iterN:function(E,ee,be){for(var ge=0;ge<this.children.length;++ge){var Be=this.children[ge],$e=Be.chunkSize();if(E<$e){var ht=Math.min(ee,$e-E);if(Be.iterN(E,ht,be))return!0;if((ee-=ht)==0)break;E=0}else E-=$e}}};var kl=function(E,ee,be){if(be)for(var ge in be)be.hasOwnProperty(ge)&&(this[ge]=be[ge]);this.doc=E,this.node=ee};kl.prototype.clear=function(){var E=this.doc.cm,ee=this.line.widgets,be=this.line,ge=pr(be);if(!(ge==null||!ee)){for(var Be=0;Be<ee.length;++Be)ee[Be]==this&&ee.splice(Be--,1);ee.length||(be.widgets=null);var $e=Ma(this);$t(be,Math.max(0,be.height-$e)),E&&(ma(E,function(){nf(E,be,-$e),Po(E,ge,"widget")}),Qr(E,"lineWidgetCleared",E,this,ge))}},kl.prototype.changed=function(){var E=this,ee=this.height,be=this.doc.cm,ge=this.line;this.height=null;var Be=Ma(this)-ee;Be&&(Oi(this.doc,ge)||$t(ge,ge.height+Be),be&&ma(be,function(){be.curOp.forceUpdate=!0,nf(be,ge,Be),Qr(be,"lineWidgetChanged",be,E,pr(ge))}))},Ut(kl);function nf(E,ee,be){Cn(ee)<(E.curOp&&E.curOp.scrollTop||E.doc.scrollTop)&&Oc(E,be)}function af(E,ee,be,ge){var Be=new kl(E,be,ge),$e=E.cm;return $e&&Be.noHScroll&&($e.display.alignWidgets=!0),ac(E,ee,"widget",function(ht){var Ct=ht.widgets||(ht.widgets=[]);if(Be.insertAt==null?Ct.push(Be):Ct.splice(Math.min(Ct.length-1,Math.max(0,Be.insertAt)),0,Be),Be.line=ht,$e&&!Oi(E,ht)){var Tt=Cn(ht)<E.scrollTop;$t(ht,ht.height+Ma(Be)),Tt&&Oc($e,Be.height),$e.curOp.forceUpdate=!0}return!0}),$e&&Qr($e,"lineWidgetAdded",$e,Be,typeof ee=="number"?ee:pr(ee)),Be}var of=0,Is=function(E,ee){this.lines=[],this.type=ee,this.doc=E,this.id=++of};Is.prototype.clear=function(){if(!this.explicitlyCleared){var E=this.doc.cm,ee=E&&!E.curOp;if(ee&&Ts(E),Ft(this,"clear")){var be=this.find();be&&Qr(this,"clear",be.from,be.to)}for(var ge=null,Be=null,$e=0;$e<this.lines.length;++$e){var ht=this.lines[$e],Ct=yn(ht.markedSpans,this);E&&!this.collapsed?Po(E,pr(ht),"text"):E&&(Ct.to!=null&&(Be=pr(ht)),Ct.from!=null&&(ge=pr(ht))),ht.markedSpans=en(ht.markedSpans,Ct),Ct.from==null&&this.collapsed&&!Oi(this.doc,ht)&&E&&$t(ht,os(E.display))}if(E&&this.collapsed&&!E.options.lineWrapping)for(var Tt=0;Tt<this.lines.length;++Tt){var Pt=ei(this.lines[Tt]),rr=Sn(Pt);rr>E.display.maxLineLength&&(E.display.maxLine=Pt,E.display.maxLineLength=rr,E.display.maxLineChanged=!0)}ge!=null&&E&&this.collapsed&&Xa(E,ge,Be+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,E&&qd(E.doc)),E&&Qr(E,"markerCleared",E,this,ge,Be),ee&&us(E),this.parent&&this.parent.clear()}},Is.prototype.find=function(E,ee){E==null&&this.type=="bookmark"&&(E=1);for(var be,ge,Be=0;Be<this.lines.length;++Be){var $e=this.lines[Be],ht=yn($e.markedSpans,this);if(ht.from!=null&&(be=tr(ee?$e:pr($e),ht.from),E==-1))return be;if(ht.to!=null&&(ge=tr(ee?$e:pr($e),ht.to),E==1))return ge}return be&&{from:be,to:ge}},Is.prototype.changed=function(){var E=this,ee=this.find(-1,!0),be=this,ge=this.doc.cm;!ee||!ge||ma(ge,function(){var Be=ee.line,$e=pr(ee.line),ht=xa(ge,$e);if(ht&&(Qi(ht),ge.curOp.selectionChanged=ge.curOp.forceUpdate=!0),ge.curOp.updateMaxLine=!0,!Oi(be.doc,Be)&&be.height!=null){var Ct=be.height;be.height=null;var Tt=Ma(be)-Ct;Tt&&$t(Be,Be.height+Tt)}Qr(ge,"markerChanged",ge,E)})},Is.prototype.attachLine=function(E){if(!this.lines.length&&this.doc.cm){var ee=this.doc.cm.curOp;(!ee.maybeHiddenMarkers||nt(ee.maybeHiddenMarkers,this)==-1)&&(ee.maybeUnhiddenMarkers||(ee.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(E)},Is.prototype.detachLine=function(E){if(this.lines.splice(nt(this.lines,E),1),!this.lines.length&&this.doc.cm){var ee=this.doc.cm.curOp;(ee.maybeHiddenMarkers||(ee.maybeHiddenMarkers=[])).push(this)}},Ut(Is);function ms(E,ee,be,ge,Be){if(ge&&ge.shared)return sa(E,ee,be,ge,Be);if(E.cm&&!E.cm.curOp)return ka(E.cm,ms)(E,ee,be,ge,Be);var $e=new Is(E,Be),ht=br(ee,be);if(ge&<(ge,$e,!1),ht>0||ht==0&&$e.clearWhenEmpty!==!1)return $e;if($e.replacedWith&&($e.collapsed=!0,$e.widgetNode=Ne("span",[$e.replacedWith],"CodeMirror-widget"),ge.handleMouseEvents||$e.widgetNode.setAttribute("cm-ignore-events","true"),ge.insertLeft&&($e.widgetNode.insertLeft=!0)),$e.collapsed){if(Yn(E,ee.line,ee,be,$e)||ee.line!=be.line&&Yn(E,be.line,ee,be,$e))throw new Error("Inserting collapsed marker partially overlapping an existing one");un()}$e.addToHistory&&tc(E,{from:ee,to:be,origin:"markText"},E.sel,NaN);var Ct=ee.line,Tt=E.cm,Pt;if(E.iter(Ct,be.line+1,function(ur){Tt&&$e.collapsed&&!Tt.options.lineWrapping&&ei(ur)==Tt.display.maxLine&&(Pt=!0),$e.collapsed&&Ct!=ee.line&&$t(ur,0),Ln(ur,new mn($e,Ct==ee.line?ee.ch:null,Ct==be.line?be.ch:null)),++Ct}),$e.collapsed&&E.iter(ee.line,be.line+1,function(ur){Oi(E,ur)&&$t(ur,0)}),$e.clearOnEnter&&jt($e,"beforeCursorEnter",function(){return $e.clear()}),$e.readOnly&&(On(),(E.history.done.length||E.history.undone.length)&&E.clearHistory()),$e.collapsed&&($e.id=++of,$e.atomic=!0),Tt){if(Pt&&(Tt.curOp.updateMaxLine=!0),$e.collapsed)Xa(Tt,ee.line,be.line+1);else if($e.className||$e.startStyle||$e.endStyle||$e.css||$e.attributes||$e.title)for(var rr=ee.line;rr<=be.line;rr++)Po(Tt,rr,"text");$e.atomic&&qd(Tt.doc),Qr(Tt,"markerAdded",Tt,$e)}return $e}var Pi=function(E,ee){this.markers=E,this.primary=ee;for(var be=0;be<E.length;++be)E[be].parent=this};Pi.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var E=0;E<this.markers.length;++E)this.markers[E].clear();Qr(this,"clear")}},Pi.prototype.find=function(E,ee){return this.primary.find(E,ee)},Ut(Pi);function sa(E,ee,be,ge,Be){ge=lt(ge),ge.shared=!1;var $e=[ms(E,ee,be,ge,Be)],ht=$e[0],Ct=ge.widgetNode;return fs(E,function(Tt){Ct&&(ge.widgetNode=Ct.cloneNode(!0)),$e.push(ms(Tt,ar(Tt,ee),ar(Tt,be),ge,Be));for(var Pt=0;Pt<Tt.linked.length;++Pt)if(Tt.linked[Pt].isParent)return;ht=At($e)}),new Pi($e,ht)}function Bs(E){return E.findMarks(tr(E.first,0),E.clipPos(tr(E.lastLine())),function(ee){return ee.parent})}function sf(E,ee){for(var be=0;be<ee.length;be++){var ge=ee[be],Be=ge.find(),$e=E.clipPos(Be.from),ht=E.clipPos(Be.to);if(br($e,ht)){var Ct=ms(E,$e,ht,ge.primary,ge.primary.type);ge.markers.push(Ct),Ct.parent=ge}}}function Oo(E){for(var ee=function(ge){var Be=E[ge],$e=[Be.primary.doc];fs(Be.primary.doc,function(Tt){return $e.push(Tt)});for(var ht=0;ht<Be.markers.length;ht++){var Ct=Be.markers[ht];nt($e,Ct.doc)==-1&&(Ct.parent=null,Be.markers.splice(ht--,1))}},be=0;be<E.length;be++)ee(be)}var lf=0,Sa=function(E,ee,be,ge,Be){if(!(this instanceof Sa))return new Sa(E,ee,be,ge,Be);be==null&&(be=0),Ml.call(this,[new Ds([new ln("",null)])]),this.first=be,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=be;var $e=tr(be,0);this.sel=Ko($e),this.history=new ec(null),this.id=++lf,this.modeOption=ee,this.lineSep=ge,this.direction=Be=="rtl"?"rtl":"ltr",this.extend=!1,typeof E=="string"&&(E=this.splitLines(E)),Fc(this,{from:$e,to:$e,text:E}),Ta(this,Ko($e),et)};Sa.prototype=le(Ml.prototype,{constructor:Sa,iter:function(E,ee,be){be?this.iterN(E-this.first,ee-E,be):this.iterN(this.first,this.first+this.size,E)},insert:function(E,ee){for(var be=0,ge=0;ge<ee.length;++ge)be+=ee[ge].height;this.insertInner(E-this.first,ee,be)},remove:function(E,ee){this.removeInner(E-this.first,ee)},getValue:function(E){var ee=nr(this,this.first,this.first+this.size);return E===!1?ee:ee.join(E||this.lineSeparator())},setValue:_a(function(E){var ee=tr(this.first,0),be=this.first+this.size-1;Os(this,{from:ee,to:tr(be,zt(this,be).text.length),text:this.splitLines(E),origin:"setValue",full:!0},!0),this.cm&&tl(this.cm,0,0),Ta(this,Ko(ee),et)}),replaceRange:function(E,ee,be,ge){ee=ar(this,ee),be=be?ar(this,be):ee,Al(this,E,ee,be,ge)},getRange:function(E,ee,be){var ge=Zt(this,ar(this,E),ar(this,ee));return be===!1?ge:ge.join(be||this.lineSeparator())},getLine:function(E){var ee=this.getLineHandle(E);return ee&&ee.text},getLineHandle:function(E){if(Lr(this,E))return zt(this,E)},getLineNumber:function(E){return pr(E)},getLineHandleVisualStart:function(E){return typeof E=="number"&&(E=zt(this,E)),ei(E)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(E){return ar(this,E)},getCursor:function(E){var ee=this.sel.primary(),be;return E==null||E=="head"?be=ee.head:E=="anchor"?be=ee.anchor:E=="end"||E=="to"||E===!1?be=ee.to():be=ee.from(),be},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:_a(function(E,ee,be){Zu(this,ar(this,typeof E=="number"?tr(E,ee||0):E),null,be)}),setSelection:_a(function(E,ee,be){Zu(this,ar(this,E),ar(this,ee||E),be)}),extendSelection:_a(function(E,ee,be){ll(this,ar(this,E),ee&&ar(this,ee),be)}),extendSelections:_a(function(E,ee){ai(this,Lt(this,E),ee)}),extendSelectionsBy:_a(function(E,ee){var be=st(this.sel.ranges,E);ai(this,Lt(this,be),ee)}),setSelections:_a(function(E,ee,be){if(E.length){for(var ge=[],Be=0;Be<E.length;Be++)ge[Be]=new Xi(ar(this,E[Be].anchor),ar(this,E[Be].head));ee==null&&(ee=Math.min(E.length-1,this.sel.primIndex)),Ta(this,No(this.cm,ge,ee),be)}}),addSelection:_a(function(E,ee,be){var ge=this.sel.ranges.slice(0);ge.push(new Xi(ar(this,E),ar(this,ee||E))),Ta(this,No(this.cm,ge,ge.length-1),be)}),getSelection:function(E){for(var ee=this.sel.ranges,be,ge=0;ge<ee.length;ge++){var Be=Zt(this,ee[ge].from(),ee[ge].to());be=be?be.concat(Be):Be}return E===!1?be:be.join(E||this.lineSeparator())},getSelections:function(E){for(var ee=[],be=this.sel.ranges,ge=0;ge<be.length;ge++){var Be=Zt(this,be[ge].from(),be[ge].to());E!==!1&&(Be=Be.join(E||this.lineSeparator())),ee[ge]=Be}return ee},replaceSelection:function(E,ee,be){for(var ge=[],Be=0;Be<this.sel.ranges.length;Be++)ge[Be]=E;this.replaceSelections(ge,ee,be||"+input")},replaceSelections:_a(function(E,ee,be){for(var ge=[],Be=this.sel,$e=0;$e<Be.ranges.length;$e++){var ht=Be.ranges[$e];ge[$e]={from:ht.from(),to:ht.to(),text:this.splitLines(E[$e]),origin:be}}for(var Ct=ee&&ee!="end"&&_c(this,ge,ee),Tt=ge.length-1;Tt>=0;Tt--)Os(this,ge[Tt]);Ct?ho(this,Ct):this.cm&&el(this.cm)}),undo:_a(function(){ps(this,"undo")}),redo:_a(function(){ps(this,"redo")}),undoSelection:_a(function(){ps(this,"undo",!0)}),redoSelection:_a(function(){ps(this,"redo",!0)}),setExtending:function(E){this.extend=E},getExtending:function(){return this.extend},historySize:function(){for(var E=this.history,ee=0,be=0,ge=0;ge<E.done.length;ge++)E.done[ge].ranges||++ee;for(var Be=0;Be<E.undone.length;Be++)E.undone[Be].ranges||++be;return{undo:ee,redo:be}},clearHistory:function(){var E=this;this.history=new ec(this.history.maxGeneration),fs(this,function(ee){return ee.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:sl(this.history.done),undone:sl(this.history.undone)}},setHistory:function(E){var ee=this.history=new ec(this.history.maxGeneration);ee.done=sl(E.done.slice(0),null,!0),ee.undone=sl(E.undone.slice(0),null,!0)},setGutterMarker:_a(function(E,ee,be){return ac(this,E,"gutter",function(ge){var Be=ge.gutterMarkers||(ge.gutterMarkers={});return Be[ee]=be,!be&&pe(Be)&&(ge.gutterMarkers=null),!0})}),clearGutter:_a(function(E){var ee=this;this.iter(function(be){be.gutterMarkers&&be.gutterMarkers[E]&&ac(ee,be,"gutter",function(){return be.gutterMarkers[E]=null,pe(be.gutterMarkers)&&(be.gutterMarkers=null),!0})})}),lineInfo:function(E){var ee;if(typeof E=="number"){if(!Lr(this,E)||(ee=E,E=zt(this,E),!E))return null}else if(ee=pr(E),ee==null)return null;return{line:ee,handle:E,text:E.text,gutterMarkers:E.gutterMarkers,textClass:E.textClass,bgClass:E.bgClass,wrapClass:E.wrapClass,widgets:E.widgets}},addLineClass:_a(function(E,ee,be){return ac(this,E,ee=="gutter"?"gutter":"class",function(ge){var Be=ee=="text"?"textClass":ee=="background"?"bgClass":ee=="gutter"?"gutterClass":"wrapClass";if(!ge[Be])ge[Be]=be;else{if(Ce(be).test(ge[Be]))return!1;ge[Be]+=" "+be}return!0})}),removeLineClass:_a(function(E,ee,be){return ac(this,E,ee=="gutter"?"gutter":"class",function(ge){var Be=ee=="text"?"textClass":ee=="background"?"bgClass":ee=="gutter"?"gutterClass":"wrapClass",$e=ge[Be];if($e)if(be==null)ge[Be]=null;else{var ht=$e.match(Ce(be));if(!ht)return!1;var Ct=ht.index+ht[0].length;ge[Be]=$e.slice(0,ht.index)+(!ht.index||Ct==$e.length?"":" ")+$e.slice(Ct)||null}else return!1;return!0})}),addLineWidget:_a(function(E,ee,be){return af(this,E,ee,be)}),removeLineWidget:function(E){E.clear()},markText:function(E,ee,be){return ms(this,ar(this,E),ar(this,ee),be,be&&be.type||"range")},setBookmark:function(E,ee){var be={replacedWith:ee&&(ee.nodeType==null?ee.widget:ee),insertLeft:ee&&ee.insertLeft,clearWhenEmpty:!1,shared:ee&&ee.shared,handleMouseEvents:ee&&ee.handleMouseEvents};return E=ar(this,E),ms(this,E,E,be,"bookmark")},findMarksAt:function(E){E=ar(this,E);var ee=[],be=zt(this,E.line).markedSpans;if(be)for(var ge=0;ge<be.length;++ge){var Be=be[ge];(Be.from==null||Be.from<=E.ch)&&(Be.to==null||Be.to>=E.ch)&&ee.push(Be.marker.parent||Be.marker)}return ee},findMarks:function(E,ee,be){E=ar(this,E),ee=ar(this,ee);var ge=[],Be=E.line;return this.iter(E.line,ee.line+1,function($e){var ht=$e.markedSpans;if(ht)for(var Ct=0;Ct<ht.length;Ct++){var Tt=ht[Ct];!(Tt.to!=null&&Be==E.line&&E.ch>=Tt.to||Tt.from==null&&Be!=E.line||Tt.from!=null&&Be==ee.line&&Tt.from>=ee.ch)&&(!be||be(Tt.marker))&&ge.push(Tt.marker.parent||Tt.marker)}++Be}),ge},getAllMarks:function(){var E=[];return this.iter(function(ee){var be=ee.markedSpans;if(be)for(var ge=0;ge<be.length;++ge)be[ge].from!=null&&E.push(be[ge].marker)}),E},posFromIndex:function(E){var ee,be=this.first,ge=this.lineSeparator().length;return this.iter(function(Be){var $e=Be.text.length+ge;if($e>E)return ee=E,!0;E-=$e,++be}),ar(this,tr(be,ee))},indexFromPos:function(E){E=ar(this,E);var ee=E.ch;if(E.line<this.first||E.ch<0)return 0;var be=this.lineSeparator().length;return this.iter(this.first,E.line,function(ge){ee+=ge.text.length+be}),ee},copy:function(E){var ee=new Sa(nr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ee.scrollTop=this.scrollTop,ee.scrollLeft=this.scrollLeft,ee.sel=this.sel,ee.extend=!1,E&&(ee.history.undoDepth=this.history.undoDepth,ee.setHistory(this.getHistory())),ee},linkedDoc:function(E){E||(E={});var ee=this.first,be=this.first+this.size;E.from!=null&&E.from>ee&&(ee=E.from),E.to!=null&&E.to<be&&(be=E.to);var ge=new Sa(nr(this,ee,be),E.mode||this.modeOption,ee,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}],sf(ge,Bs(this)),ge},unlinkDoc:function(E){if(E instanceof ki&&(E=E.doc),this.linked)for(var ee=0;ee<this.linked.length;++ee){var be=this.linked[ee];if(be.doc==E){this.linked.splice(ee,1),E.unlinkDoc(this),Oo(Bs(this));break}}if(E.history==this.history){var ge=[E.id];fs(E,function(Be){return ge.push(Be.id)},!0),E.history=new ec(null),E.history.done=sl(this.history.done,ge),E.history.undone=sl(this.history.undone,ge)}},iterLinkedDocs:function(E){fs(this,E)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(E){return this.lineSep?E.split(this.lineSep):Tn(E)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:_a(function(E){E!="rtl"&&(E="ltr"),E!=this.direction&&(this.direction=E,this.iter(function(ee){return ee.order=null}),this.cm&&zc(this.cm))})}),Sa.prototype.eachLine=Sa.prototype.iter;var Xu=0;function th(E){var ee=this;if(Tl(ee),!(St(ee,E)||za(ee.display,E))){sr(E),ve&&(Xu=+new Date);var be=Mo(ee,E,!0),ge=E.dataTransfer.files;if(!(!be||ee.isReadOnly()))if(ge&&ge.length&&window.FileReader&&window.File)for(var Be=ge.length,$e=Array(Be),ht=0,Ct=function(){++ht==Be&&ka(ee,function(){be=ar(ee.doc,be);var kr={from:be,to:be,text:ee.doc.splitLines($e.filter(function(tn){return tn!=null}).join(ee.doc.lineSeparator())),origin:"paste"};Os(ee.doc,kr),ho(ee.doc,Ko(ar(ee.doc,be),ar(ee.doc,ds(kr))))})()},Tt=function(kr,tn){if(ee.options.allowDropFileTypes&&nt(ee.options.allowDropFileTypes,kr.type)==-1){Ct();return}var En=new FileReader;En.onerror=function(){return Ct()},En.onload=function(){var Hn=En.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Hn)){Ct();return}$e[tn]=Hn,Ct()},En.readAsText(kr)},Pt=0;Pt<ge.length;Pt++)Tt(ge[Pt],Pt);else{if(ee.state.draggingText&&ee.doc.sel.contains(be)>-1){ee.state.draggingText(E),setTimeout(function(){return ee.display.input.focus()},20);return}try{var rr=E.dataTransfer.getData("Text");if(rr){var ur;if(ee.state.draggingText&&!ee.state.draggingText.copy&&(ur=ee.listSelections()),nc(ee.doc,Ko(be,be)),ur)for(var Pr=0;Pr<ur.length;++Pr)Al(ee.doc,"",ur[Pr].anchor,ur[Pr].head,"drag");ee.replaceSelection(rr,"around","paste"),ee.display.input.focus()}}catch(kr){}}}}function rh(E,ee){if(ve&&(!E.state.draggingText||+new Date-Xu<100)){zr(ee);return}if(!(St(E,ee)||za(E.display,ee))&&(ee.dataTransfer.setData("Text",E.getSelection()),ee.dataTransfer.effectAllowed="copyMove",ee.dataTransfer.setDragImage&&!me)){var be=Ee("img",null,null,"position: fixed; left: 0; top: 0;");be.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",se&&(be.width=be.height=1,E.display.wrapper.appendChild(be),be._top=be.offsetTop),ee.dataTransfer.setDragImage(be,0,0),se&&be.parentNode.removeChild(be)}}function Yu(E,ee){var be=Mo(E,ee);if(be){var ge=document.createDocumentFragment();ku(E,be,ge),E.display.dragCursor||(E.display.dragCursor=Ee("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),E.display.lineSpace.insertBefore(E.display.dragCursor,E.display.cursorDiv)),Oe(E.display.dragCursor,ge)}}function Tl(E){E.display.dragCursor&&(E.display.lineSpace.removeChild(E.display.dragCursor),E.display.dragCursor=null)}function Ol(E){if(document.getElementsByClassName){for(var ee=document.getElementsByClassName("CodeMirror"),be=[],ge=0;ge<ee.length;ge++){var Be=ee[ge].CodeMirror;Be&&be.push(Be)}be.length&&be[0].operation(function(){for(var $e=0;$e<be.length;$e++)E(be[$e])})}}var _n=!1;function Ju(){_n||(Qc(),_n=!0)}function Qc(){var E;jt(window,"resize",function(){E==null&&(E=setTimeout(function(){E=null,Ol($c)},100))}),jt(window,"blur",function(){return Ol($s)})}function $c(E){var ee=E.display;ee.cachedCharWidth=ee.cachedTextHeight=ee.cachedPaddingH=null,ee.scrollbarsClipped=!1,E.setSize()}for(var Ho={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"},oc=0;oc<10;oc++)Ho[oc+48]=Ho[oc+96]=String(oc);for(var qc=65;qc<=90;qc++)Ho[qc]=String.fromCharCode(qc);for(var sc=1;sc<=12;sc++)Ho[sc+111]=Ho[sc+63235]="F"+sc;var ra={};ra.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"},ra.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"},ra.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"},ra.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"]},ra.default=we?ra.macDefault:ra.pcDefault;function nh(E){var ee=E.split(/-(?!$)/);E=ee[ee.length-1];for(var be,ge,Be,$e,ht=0;ht<ee.length-1;ht++){var Ct=ee[ht];if(/^(cmd|meta|m)$/i.test(Ct))$e=!0;else if(/^a(lt)?$/i.test(Ct))be=!0;else if(/^(c|ctrl|control)$/i.test(Ct))ge=!0;else if(/^s(hift)?$/i.test(Ct))Be=!0;else throw new Error("Unrecognized modifier name: "+Ct)}return be&&(E="Alt-"+E),ge&&(E="Ctrl-"+E),$e&&(E="Cmd-"+E),Be&&(E="Shift-"+E),E}function Qu(E){var ee={};for(var be in E)if(E.hasOwnProperty(be)){var ge=E[be];if(/^(name|fallthrough|(de|at)tach)$/.test(be))continue;if(ge=="..."){delete E[be];continue}for(var Be=st(be.split(" "),nh),$e=0;$e<Be.length;$e++){var ht=void 0,Ct=void 0;$e==Be.length-1?(Ct=Be.join(" "),ht=ge):(Ct=Be.slice(0,$e+1).join(" "),ht="...");var Tt=ee[Ct];if(!Tt)ee[Ct]=ht;else if(Tt!=ht)throw new Error("Inconsistent bindings for "+Ct)}delete E[be]}for(var Pt in ee)E[Pt]=ee[Pt];return E}function gs(E,ee,be,ge){ee=mo(ee);var Be=ee.call?ee.call(E,ge):ee[E];if(Be===!1)return"nothing";if(Be==="...")return"multi";if(Be!=null&&be(Be))return"handled";if(ee.fallthrough){if(Object.prototype.toString.call(ee.fallthrough)!="[object Array]")return gs(E,ee.fallthrough,be,ge);for(var $e=0;$e<ee.fallthrough.length;$e++){var ht=gs(E,ee.fallthrough[$e],be,ge);if(ht)return ht}}}function lc(E){var ee=typeof E=="string"?E:Ho[E.keyCode];return ee=="Ctrl"||ee=="Alt"||ee=="Shift"||ee=="Mod"}function Ls(E,ee,be){var ge=E;return ee.altKey&&ge!="Alt"&&(E="Alt-"+E),(Ae?ee.metaKey:ee.ctrlKey)&&ge!="Ctrl"&&(E="Ctrl-"+E),(Ae?ee.ctrlKey:ee.metaKey)&&ge!="Mod"&&(E="Cmd-"+E),!be&&ee.shiftKey&&ge!="Shift"&&(E="Shift-"+E),E}function dl(E,ee){if(se&&E.keyCode==34&&E.char)return!1;var be=Ho[E.keyCode];return be==null||E.altGraphKey?!1:(E.keyCode==3&&E.code&&(be=E.code),Ls(be,E,ee))}function mo(E){return typeof E=="string"?ra[E]:E}function _o(E,ee){for(var be=E.doc.sel.ranges,ge=[],Be=0;Be<be.length;Be++){for(var $e=ee(be[Be]);ge.length&&br($e.from,At(ge).to)<=0;){var ht=ge.pop();if(br(ht.from,$e.from)<0){$e.from=ht.from;break}}ge.push($e)}ma(E,function(){for(var Ct=ge.length-1;Ct>=0;Ct--)Al(E.doc,"",ge[Ct].from,ge[Ct].to,"+delete");el(E)})}function Ja(E,ee,be){var ge=Ye(E.text,ee+be,be);return ge<0||ge>E.text.length?null:ge}function Qo(E,ee,be){var ge=Ja(E,ee.ch,be);return ge==null?null:new tr(ee.line,ge,be<0?"after":"before")}function fl(E,ee,be,ge,Be){if(E){ee.doc.direction=="rtl"&&(Be=-Be);var $e=Vt(be,ee.doc.direction);if($e){var ht=Be<0?At($e):$e[0],Ct=Be<0==(ht.level==1),Tt=Ct?"after":"before",Pt;if(ht.level>0||ee.doc.direction=="rtl"){var rr=wa(ee,be);Pt=Be<0?be.text.length-1:0;var ur=Hi(ee,rr,Pt).top;Pt=Je(function(Pr){return Hi(ee,rr,Pr).top==ur},Be<0==(ht.level==1)?ht.from:ht.to-1,Pt),Tt=="before"&&(Pt=Ja(be,Pt,1))}else Pt=Be<0?ht.to:ht.from;return new tr(ge,Pt,Tt)}}return new tr(ge,Be<0?be.text.length:0,Be<0?"before":"after")}function $o(E,ee,be,ge){var Be=Vt(ee,E.doc.direction);if(!Be)return Qo(ee,be,ge);be.ch>=ee.text.length?(be.ch=ee.text.length,be.sticky="before"):be.ch<=0&&(be.ch=0,be.sticky="after");var $e=vt(Be,be.ch,be.sticky),ht=Be[$e];if(E.doc.direction=="ltr"&&ht.level%2==0&&(ge>0?ht.to>be.ch:ht.from<be.ch))return Qo(ee,be,ge);var Ct=function(qn,ti){return Ja(ee,qn instanceof tr?qn.ch:qn,ti)},Tt,Pt=function(qn){return E.options.lineWrapping?(Tt=Tt||wa(E,ee),Wl(E,ee,Tt,qn)):{begin:0,end:ee.text.length}},rr=Pt(be.sticky=="before"?Ct(be,-1):be.ch);if(E.doc.direction=="rtl"||ht.level==1){var ur=ht.level==1==ge<0,Pr=Ct(be,ur?1:-1);if(Pr!=null&&(ur?Pr<=ht.to&&Pr<=rr.end:Pr>=ht.from&&Pr>=rr.begin)){var kr=ur?"before":"after";return new tr(be.line,Pr,kr)}}var tn=function(qn,ti,Qn){for(var ni=function(ia,Za){return Za?new tr(be.line,Ct(ia,1),"before"):new tr(be.line,ia,"after")};qn>=0&&qn<Be.length;qn+=ti){var mi=Be[qn],yi=ti>0==(mi.level!=1),Ri=yi?Qn.begin:Ct(Qn.end,-1);if(mi.from<=Ri&&Ri<mi.to||(Ri=yi?mi.from:Ct(mi.to,-1),Qn.begin<=Ri&&Ri<Qn.end))return ni(Ri,yi)}},En=tn($e+ge,ge,rr);if(En)return En;var Hn=ge>0?rr.end:Ct(rr.begin,-1);return Hn!=null&&!(ge>0&&Hn==ee.text.length)&&(En=tn(ge>0?0:Be.length-1,ge,Pt(Hn)),En)?En:null}var Dl={selectAll:Vu,singleSelection:function(E){return E.setSelection(E.getCursor("anchor"),E.getCursor("head"),et)},killLine:function(E){return _o(E,function(ee){if(ee.empty()){var be=zt(E.doc,ee.head.line).text.length;return ee.head.ch==be&&ee.head.line<E.lastLine()?{from:ee.head,to:tr(ee.head.line+1,0)}:{from:ee.head,to:tr(ee.head.line,be)}}else return{from:ee.from(),to:ee.to()}})},deleteLine:function(E){return _o(E,function(ee){return{from:tr(ee.from().line,0),to:ar(E.doc,tr(ee.to().line+1,0))}})},delLineLeft:function(E){return _o(E,function(ee){return{from:tr(ee.from().line,0),to:ee.from()}})},delWrappedLineLeft:function(E){return _o(E,function(ee){var be=E.charCoords(ee.head,"div").top+5,ge=E.coordsChar({left:0,top:be},"div");return{from:ge,to:ee.from()}})},delWrappedLineRight:function(E){return _o(E,function(ee){var be=E.charCoords(ee.head,"div").top+5,ge=E.coordsChar({left:E.display.lineDiv.offsetWidth+100,top:be},"div");return{from:ee.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(tr(E.firstLine(),0))},goDocEnd:function(E){return E.extendSelection(tr(E.lastLine()))},goLineStart:function(E){return E.extendSelectionsBy(function(ee){return $u(E,ee.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(E){return E.extendSelectionsBy(function(ee){return cf(E,ee.head)},{origin:"+move",bias:1})},goLineEnd:function(E){return E.extendSelectionsBy(function(ee){return qu(E,ee.head.line)},{origin:"+move",bias:-1})},goLineRight:function(E){return E.extendSelectionsBy(function(ee){var be=E.cursorCoords(ee.head,"div").top+5;return E.coordsChar({left:E.display.lineDiv.offsetWidth+100,top:be},"div")},it)},goLineLeft:function(E){return E.extendSelectionsBy(function(ee){var be=E.cursorCoords(ee.head,"div").top+5;return E.coordsChar({left:0,top:be},"div")},it)},goLineLeftSmart:function(E){return E.extendSelectionsBy(function(ee){var be=E.cursorCoords(ee.head,"div").top+5,ge=E.coordsChar({left:0,top:be},"div");return ge.ch<E.getLine(ge.line).search(/\S/)?cf(E,ee.head):ge},it)},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 ee=[],be=E.listSelections(),ge=E.options.tabSize,Be=0;Be<be.length;Be++){var $e=be[Be].from(),ht=Ve(E.getLine($e.line),$e.ch,ge);ee.push(Dt(ge-ht%ge))}E.replaceSelections(ee)},defaultTab:function(E){E.somethingSelected()?E.indentSelection("add"):E.execCommand("insertTab")},transposeChars:function(E){return ma(E,function(){for(var ee=E.listSelections(),be=[],ge=0;ge<ee.length;ge++)if(ee[ge].empty()){var Be=ee[ge].head,$e=zt(E.doc,Be.line).text;if($e){if(Be.ch==$e.length&&(Be=new tr(Be.line,Be.ch-1)),Be.ch>0)Be=new tr(Be.line,Be.ch+1),E.replaceRange($e.charAt(Be.ch-1)+$e.charAt(Be.ch-2),tr(Be.line,Be.ch-2),Be,"+transpose");else if(Be.line>E.doc.first){var ht=zt(E.doc,Be.line-1).text;ht&&(Be=new tr(Be.line,1),E.replaceRange($e.charAt(0)+E.doc.lineSeparator()+ht.charAt(ht.length-1),tr(Be.line-1,ht.length-1),Be,"+transpose"))}}be.push(new Xi(Be,Be))}E.setSelections(be)})},newlineAndIndent:function(E){return ma(E,function(){for(var ee=E.listSelections(),be=ee.length-1;be>=0;be--)E.replaceRange(E.doc.lineSeparator(),ee[be].anchor,ee[be].head,"+input");ee=E.listSelections();for(var ge=0;ge<ee.length;ge++)E.indentLine(ee[ge].from().line,null,!0);el(E)})},openLine:function(E){return E.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(E){return E.toggleOverwrite()}};function $u(E,ee){var be=zt(E.doc,ee),ge=ei(be);return ge!=be&&(ee=pr(ge)),fl(!0,E,ge,ee,1)}function qu(E,ee){var be=zt(E.doc,ee),ge=Si(be);return ge!=be&&(ee=pr(ge)),fl(!0,E,be,ee,-1)}function cf(E,ee){var be=$u(E,ee.line),ge=zt(E.doc,be.line),Be=Vt(ge,E.doc.direction);if(!Be||Be[0].level==0){var $e=Math.max(be.ch,ge.text.search(/\S/)),ht=ee.line==be.line&&ee.ch<=$e&&ee.ch;return tr(be.line,ht?0:$e,be.sticky)}return be}function Oa(E,ee,be){if(typeof ee=="string"&&(ee=Dl[ee],!ee))return!1;E.display.input.ensurePolled();var ge=E.display.shift,Be=!1;try{E.isReadOnly()&&(E.state.suppressEdits=!0),be&&(E.display.shift=!1),Be=ee(E)!=ot}finally{E.display.shift=ge,E.state.suppressEdits=!1}return Be}function qo(E,ee,be){for(var ge=0;ge<E.state.keyMaps.length;ge++){var Be=gs(ee,E.state.keyMaps[ge],be,E);if(Be)return Be}return E.options.extraKeys&&gs(ee,E.options.extraKeys,be,E)||gs(ee,E.options.keyMap,be,E)}var ih=new Xe;function Il(E,ee,be,ge){var Be=E.state.keySeq;if(Be){if(lc(ee))return"handled";if(/\'$/.test(ee)?E.state.keySeq=null:ih.set(50,function(){E.state.keySeq==Be&&(E.state.keySeq=null,E.display.input.reset())}),eu(E,Be+" "+ee,be,ge))return!0}return eu(E,ee,be,ge)}function eu(E,ee,be,ge){var Be=qo(E,ee,ge);return Be=="multi"&&(E.state.keySeq=ee),Be=="handled"&&Qr(E,"keyHandled",E,ee,be),(Be=="handled"||Be=="multi")&&(sr(be),kc(E)),!!Be}function ji(E,ee){var be=dl(ee,!0);return be?ee.shiftKey&&!E.state.keySeq?Il(E,"Shift-"+be,ee,function(ge){return Oa(E,ge,!0)})||Il(E,be,ee,function(ge){if(typeof ge=="string"?/^go[A-Z]/.test(ge):ge.motion)return Oa(E,ge)}):Il(E,be,ee,function(ge){return Oa(E,ge)}):!1}function Bl(E,ee,be){return Il(E,"'"+be+"'",ee,function(ge){return Oa(E,ge,!0)})}var vs=null;function cc(E){var ee=this;if(!(E.target&&E.target!=ee.display.input.getField())&&(ee.curOp.focus=Pe(),!St(ee,E))){ve&&re<11&&E.keyCode==27&&(E.returnValue=!1);var be=E.keyCode;ee.display.shift=be==16||E.shiftKey;var ge=ji(ee,E);se&&(vs=ge?be:null,!ge&&be==88&&!Gn&&(we?E.metaKey:E.ctrlKey)&&ee.replaceSelection("",null,"cut")),Re&&!we&&!ge&&be==46&&E.shiftKey&&!E.ctrlKey&&document.execCommand&&document.execCommand("cut"),be==18&&!/\bCodeMirror-crosshair\b/.test(ee.display.lineDiv.className)&&qr(ee)}}function qr(E){var ee=E.display.lineDiv;Ue(ee,"CodeMirror-crosshair");function be(ge){(ge.keyCode==18||!ge.altKey)&&(je(ee,"CodeMirror-crosshair"),Mt(document,"keyup",be),Mt(document,"mouseover",be))}jt(document,"keyup",be),jt(document,"mouseover",be)}function uf(E){E.keyCode==16&&(this.doc.sel.shift=!1),St(this,E)}function df(E){var ee=this;if(!(E.target&&E.target!=ee.display.input.getField())&&!(za(ee.display,E)||St(ee,E)||E.ctrlKey&&!E.altKey||we&&E.metaKey)){var be=E.keyCode,ge=E.charCode;if(se&&be==vs){vs=null,sr(E);return}if(!(se&&(!E.which||E.which<10)&&ji(ee,E))){var Be=String.fromCharCode(ge==null?be:ge);Be!="\b"&&(Bl(ee,E,Be)||ee.display.input.onKeyPress(E))}}}var ed=400,td=function(E,ee,be){this.time=E,this.pos=ee,this.button=be};td.prototype.compare=function(E,ee,be){return this.time+ed>E&&br(ee,this.pos)==0&&be==this.button};var ys,uc;function ah(E,ee){var be=+new Date;return uc&&uc.compare(be,E,ee)?(ys=uc=null,"triple"):ys&&ys.compare(be,E,ee)?(uc=new td(be,E,ee),ys=null,"double"):(ys=new td(be,E,ee),uc=null,"single")}function Qa(E){var ee=this,be=ee.display;if(!(St(ee,E)||be.activeTouch&&be.input.supportsTouch())){if(be.input.ensurePolled(),be.shift=E.shiftKey,za(be,E)){ne||(be.scroller.draggable=!1,setTimeout(function(){return be.scroller.draggable=!0},100));return}if(!io(ee,E)){var ge=Mo(ee,E),Be=Br(E),$e=ge?ah(ge,Be):"single";window.focus(),Be==1&&ee.state.selectingText&&ee.state.selectingText(E),!(ge&&Ps(ee,Be,ge,$e,E))&&(Be==1?ge?ru(ee,ge,$e,E):Wr(E)==be.scroller&&sr(E):Be==2?(ge&&ll(ee.doc,ge),setTimeout(function(){return be.input.focus()},20)):Be==3&&(Le?ee.display.input.onContextMenu(E):Tu(ee)))}}}function Ps(E,ee,be,ge,Be){var $e="Click";return ge=="double"?$e="Double"+$e:ge=="triple"&&($e="Triple"+$e),$e=(ee==1?"Left":ee==2?"Middle":"Right")+$e,Il(E,Ls($e,Be),Be,function(ht){if(typeof ht=="string"&&(ht=Dl[ht]),!ht)return!1;var Ct=!1;try{E.isReadOnly()&&(E.state.suppressEdits=!0),Ct=ht(E,be)!=ot}finally{E.state.suppressEdits=!1}return Ct})}function tu(E,ee,be){var ge=E.getOption("configureMouse"),Be=ge?ge(E,ee,be):{};if(Be.unit==null){var $e=Se?be.shiftKey&&be.metaKey:be.altKey;Be.unit=$e?"rectangle":ee=="single"?"char":ee=="double"?"word":"line"}return(Be.extend==null||E.doc.extend)&&(Be.extend=E.doc.extend||be.shiftKey),Be.addNew==null&&(Be.addNew=we?be.metaKey:be.ctrlKey),Be.moveOnDrag==null&&(Be.moveOnDrag=!(we?be.altKey:be.ctrlKey)),Be}function ru(E,ee,be,ge){ve?setTimeout(at(Cl,E),0):E.curOp.focus=Pe();var Be=tu(E,be,ge),$e=E.doc.sel,ht;E.options.dragDrop&&Nr&&!E.isReadOnly()&&be=="single"&&(ht=$e.contains(ee))>-1&&(br((ht=$e.ranges[ht]).from(),ee)<0||ee.xRel>0)&&(br(ht.to(),ee)>0||ee.xRel<0)?oh(E,ge,ee,Be):rd(E,ge,ee,Be)}function oh(E,ee,be,ge){var Be=E.display,$e=!1,ht=ka(E,function(Pt){ne&&(Be.scroller.draggable=!1),E.state.draggingText=!1,Mt(Be.wrapper.ownerDocument,"mouseup",ht),Mt(Be.wrapper.ownerDocument,"mousemove",Ct),Mt(Be.scroller,"dragstart",Tt),Mt(Be.scroller,"drop",ht),$e||(sr(Pt),ge.addNew||ll(E.doc,be,null,null,ge.extend),ne&&!me||ve&&re==9?setTimeout(function(){Be.wrapper.ownerDocument.body.focus({preventScroll:!0}),Be.input.focus()},20):Be.input.focus())}),Ct=function(Pt){$e=$e||Math.abs(ee.clientX-Pt.clientX)+Math.abs(ee.clientY-Pt.clientY)>=10},Tt=function(){return $e=!0};ne&&(Be.scroller.draggable=!0),E.state.draggingText=ht,ht.copy=!ge.moveOnDrag,Be.scroller.dragDrop&&Be.scroller.dragDrop(),jt(Be.wrapper.ownerDocument,"mouseup",ht),jt(Be.wrapper.ownerDocument,"mousemove",Ct),jt(Be.scroller,"dragstart",Tt),jt(Be.scroller,"drop",ht),Tu(E),setTimeout(function(){return Be.input.focus()},20)}function ff(E,ee,be){if(be=="char")return new Xi(ee,ee);if(be=="word")return E.findWordAt(ee);if(be=="line")return new Xi(tr(ee.line,0),ar(E.doc,tr(ee.line+1,0)));var ge=be(E,ee);return new Xi(ge.from,ge.to)}function rd(E,ee,be,ge){var Be=E.display,$e=E.doc;sr(ee);var ht,Ct,Tt=$e.sel,Pt=Tt.ranges;if(ge.addNew&&!ge.extend?(Ct=$e.sel.contains(be),Ct>-1?ht=Pt[Ct]:ht=new Xi(be,be)):(ht=$e.sel.primary(),Ct=$e.sel.primIndex),ge.unit=="rectangle")ge.addNew||(ht=new Xi(be,be)),be=Mo(E,ee,!0,!0),Ct=-1;else{var rr=ff(E,be,ge.unit);ge.extend?ht=Gc(ht,rr.anchor,rr.head,ge.extend):ht=rr}ge.addNew?Ct==-1?(Ct=Pt.length,Ta($e,No(E,Pt.concat([ht]),Ct),{scroll:!1,origin:"*mouse"})):Pt.length>1&&Pt[Ct].empty()&&ge.unit=="char"&&!ge.extend?(Ta($e,No(E,Pt.slice(0,Ct).concat(Pt.slice(Ct+1)),0),{scroll:!1,origin:"*mouse"}),Tt=$e.sel):To($e,Ct,ht,qe):(Ct=0,Ta($e,new Co([ht],0),qe),Tt=$e.sel);var ur=be;function Pr(Qn){if(br(ur,Qn)!=0)if(ur=Qn,ge.unit=="rectangle"){for(var ni=[],mi=E.options.tabSize,yi=Ve(zt($e,be.line).text,be.ch,mi),Ri=Ve(zt($e,Qn.line).text,Qn.ch,mi),ia=Math.min(yi,Ri),Za=Math.max(yi,Ri),fa=Math.min(be.line,Qn.line),yo=Math.min(E.lastLine(),Math.max(be.line,Qn.line));fa<=yo;fa++){var bo=zt($e,fa).text,Da=yt(bo,ia,mi);ia==Za?ni.push(new Xi(tr(fa,Da),tr(fa,Da))):bo.length>Da&&ni.push(new Xi(tr(fa,Da),tr(fa,yt(bo,Za,mi))))}ni.length||ni.push(new Xi(be,be)),Ta($e,No(E,Tt.ranges.slice(0,Ct).concat(ni),Ct),{origin:"*mouse",scroll:!1}),E.scrollIntoView(Qn)}else{var xo=ht,Ti=ff(E,Qn,ge.unit),ga=xo.anchor,ha;br(Ti.anchor,ga)>0?(ha=Ti.head,ga=qt(xo.from(),Ti.anchor)):(ha=Ti.anchor,ga=Xt(xo.to(),Ti.head));var va=Tt.ranges.slice(0);va[Ct]=hf(E,new Xi(ar($e,ga),ha)),Ta($e,No(E,va,Ct),qe)}}var kr=Be.wrapper.getBoundingClientRect(),tn=0;function En(Qn){var ni=++tn,mi=Mo(E,Qn,!0,ge.unit=="rectangle");if(mi)if(br(mi,ur)!=0){E.curOp.focus=Pe(),Pr(mi);var yi=Na(Be,$e);(mi.line>=yi.to||mi.line<yi.from)&&setTimeout(ka(E,function(){tn==ni&&En(Qn)}),150)}else{var Ri=Qn.clientY<kr.top?-20:Qn.clientY>kr.bottom?20:0;Ri&&setTimeout(ka(E,function(){tn==ni&&(Be.scroller.scrollTop+=Ri,En(Qn))}),50)}}function Hn(Qn){E.state.selectingText=!1,tn=1/0,Qn&&(sr(Qn),Be.input.focus()),Mt(Be.wrapper.ownerDocument,"mousemove",qn),Mt(Be.wrapper.ownerDocument,"mouseup",ti),$e.history.lastSelOrigin=null}var qn=ka(E,function(Qn){Qn.buttons===0||!Br(Qn)?Hn(Qn):En(Qn)}),ti=ka(E,Hn);E.state.selectingText=ti,jt(Be.wrapper.ownerDocument,"mousemove",qn),jt(Be.wrapper.ownerDocument,"mouseup",ti)}function hf(E,ee){var be=ee.anchor,ge=ee.head,Be=zt(E.doc,be.line);if(br(be,ge)==0&&be.sticky==ge.sticky)return ee;var $e=Vt(Be);if(!$e)return ee;var ht=vt($e,be.ch,be.sticky),Ct=$e[ht];if(Ct.from!=be.ch&&Ct.to!=be.ch)return ee;var Tt=ht+(Ct.from==be.ch==(Ct.level!=1)?0:1);if(Tt==0||Tt==$e.length)return ee;var Pt;if(ge.line!=be.line)Pt=(ge.line-be.line)*(E.doc.direction=="ltr"?1:-1)>0;else{var rr=vt($e,ge.ch,ge.sticky),ur=rr-ht||(ge.ch-be.ch)*(Ct.level==1?-1:1);rr==Tt-1||rr==Tt?Pt=ur<0:Pt=ur>0}var Pr=$e[Tt+(Pt?-1:0)],kr=Pt==(Pr.level==1),tn=kr?Pr.from:Pr.to,En=kr?"after":"before";return be.ch==tn&&be.sticky==En?ee:new Xi(new tr(be.line,tn,En),ge)}function dc(E,ee,be,ge){var Be,$e;if(ee.touches)Be=ee.touches[0].clientX,$e=ee.touches[0].clientY;else try{Be=ee.clientX,$e=ee.clientY}catch(Pr){return!1}if(Be>=Math.floor(E.display.gutters.getBoundingClientRect().right))return!1;ge&&sr(ee);var ht=E.display,Ct=ht.lineDiv.getBoundingClientRect();if($e>Ct.bottom||!Ft(E,be))return wr(ee);$e-=Ct.top-ht.viewOffset;for(var Tt=0;Tt<E.display.gutterSpecs.length;++Tt){var Pt=ht.gutters.childNodes[Tt];if(Pt&&Pt.getBoundingClientRect().right>=Be){var rr=Ar(E.doc,$e),ur=E.display.gutterSpecs[Tt];return ft(E,be,E,rr,ur.className,ee),wr(ee)}}}function io(E,ee){return dc(E,ee,"gutterClick",!0)}function Rs(E,ee){za(E.display,ee)||pf(E,ee)||St(E,ee,"contextmenu")||Le||E.display.input.onContextMenu(ee)}function pf(E,ee){return Ft(E,"gutterContextMenu")?dc(E,ee,"gutterContextMenu",!1):!1}function nd(E){E.display.wrapper.className=E.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+E.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ta(E)}var Ns={toString:function(){return"CodeMirror.Init"}},mf={},nu={};function sh(E){var ee=E.optionHandlers;function be(ge,Be,$e,ht){E.defaults[ge]=Be,$e&&(ee[ge]=ht?function(Ct,Tt,Pt){Pt!=Ns&&$e(Ct,Tt,Pt)}:$e)}E.defineOption=be,E.Init=Ns,be("value","",function(ge,Be){return ge.setValue(Be)},!0),be("mode",null,function(ge,Be){ge.doc.modeOption=Be,jc(ge)},!0),be("indentUnit",2,jc,!0),be("indentWithTabs",!1),be("smartIndent",!0),be("tabSize",4,function(ge){ol(ge),ta(ge),Xa(ge)},!0),be("lineSeparator",null,function(ge,Be){if(ge.doc.lineSep=Be,!!Be){var $e=[],ht=ge.doc.first;ge.doc.iter(function(Tt){for(var Pt=0;;){var rr=Tt.text.indexOf(Be,Pt);if(rr==-1)break;Pt=rr+Be.length,$e.push(tr(ht,rr))}ht++});for(var Ct=$e.length-1;Ct>=0;Ct--)Al(ge.doc,Be,$e[Ct],tr($e[Ct].line,$e[Ct].ch+Be.length))}}),be("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ge,Be,$e){ge.state.specialChars=new RegExp(Be.source+(Be.test(" ")?"":"| "),"g"),$e!=Ns&&ge.refresh()}),be("specialCharPlaceholder",Ki,function(ge){return ge.refresh()},!0),be("electricChars",!0),be("inputStyle",he?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),be("spellcheck",!1,function(ge,Be){return ge.getInputField().spellcheck=Be},!0),be("autocorrect",!1,function(ge,Be){return ge.getInputField().autocorrect=Be},!0),be("autocapitalize",!1,function(ge,Be){return ge.getInputField().autocapitalize=Be},!0),be("rtlMoveVisually",!xe),be("wholeLineUpdateBefore",!0),be("theme","default",function(ge){nd(ge),El(ge)},!0),be("keyMap","default",function(ge,Be,$e){var ht=mo(Be),Ct=$e!=Ns&&mo($e);Ct&&Ct.detach&&Ct.detach(ge,ht),ht.attach&&ht.attach(ge,Ct||null)}),be("extraKeys",null),be("configureMouse",null),be("lineWrapping",!1,gf,!0),be("gutters",[],function(ge,Be){ge.display.gutterSpecs=Rc(Be,ge.options.lineNumbers),El(ge)},!0),be("fixedGutter",!0,function(ge,Be){ge.display.gutters.style.left=Be?$i(ge.display)+"px":"0",ge.refresh()},!0),be("coverGutterNextToScrollbar",!1,function(ge){return ks(ge)},!0),be("scrollbarStyle","native",function(ge){Lu(ge),ks(ge),ge.display.scrollbars.setScrollTop(ge.doc.scrollTop),ge.display.scrollbars.setScrollLeft(ge.doc.scrollLeft)},!0),be("lineNumbers",!1,function(ge,Be){ge.display.gutterSpecs=Rc(ge.options.gutters,Be),El(ge)},!0),be("firstLineNumber",1,El,!0),be("lineNumberFormatter",function(ge){return ge},El,!0),be("showCursorWhenSelecting",!1,Sl,!0),be("resetSelectionOnContextMenu",!0),be("lineWiseCopyCut",!0),be("pasteLinesPerSelection",!0),be("selectionsMayTouch",!1),be("readOnly",!1,function(ge,Be){Be=="nocursor"&&($s(ge),ge.display.input.blur()),ge.display.input.readOnlyChanged(Be)}),be("screenReaderLabel",null,function(ge,Be){Be=Be===""?null:Be,ge.display.input.screenReaderLabelChanged(Be)}),be("disableInput",!1,function(ge,Be){Be||ge.display.input.reset()},!0),be("dragDrop",!0,lh),be("allowDropFileTypes",null),be("cursorBlinkRate",530),be("cursorScrollMargin",0),be("cursorHeight",1,Sl,!0),be("singleCursorHeightPerLine",!0,Sl,!0),be("workTime",100),be("workDelay",100),be("flattenSpans",!0,ol,!0),be("addModeClass",!1,ol,!0),be("pollInterval",100),be("undoDepth",200,function(ge,Be){return ge.doc.history.undoDepth=Be}),be("historyEventDelay",1250),be("viewportMargin",10,function(ge){return ge.refresh()},!0),be("maxHighlightLength",1e4,ol,!0),be("moveInputWithCursor",!0,function(ge,Be){Be||ge.display.input.resetPosition()}),be("tabindex",null,function(ge,Be){return ge.display.input.getField().tabIndex=Be||""}),be("autofocus",null),be("direction","ltr",function(ge,Be){return ge.doc.setDirection(Be)},!0),be("phrases",null)}function lh(E,ee,be){var ge=be&&be!=Ns;if(!ee!=!ge){var Be=E.display.dragFunctions,$e=ee?jt:Mt;$e(E.display.scroller,"dragstart",Be.start),$e(E.display.scroller,"dragenter",Be.enter),$e(E.display.scroller,"dragover",Be.over),$e(E.display.scroller,"dragleave",Be.leave),$e(E.display.scroller,"drop",Be.drop)}}function gf(E){E.options.lineWrapping?(Ue(E.display.wrapper,"CodeMirror-wrap"),E.display.sizer.style.minWidth="",E.display.sizerWidth=null):(je(E.display.wrapper,"CodeMirror-wrap"),rn(E)),Ra(E),Xa(E),ta(E),setTimeout(function(){return ks(E)},100)}function ki(E,ee){var be=this;if(!(this instanceof ki))return new ki(E,ee);this.options=ee=ee?lt(ee):{},lt(mf,ee,!1);var ge=ee.value;typeof ge=="string"?ge=new Sa(ge,ee.mode,null,ee.lineSeparator,ee.direction):ee.mode&&(ge.modeOption=ee.mode),this.doc=ge;var Be=new ki.inputStyles[ee.inputStyle](this),$e=this.display=new Yd(E,ge,Be,ee);$e.wrapper.CodeMirror=this,nd(this),ee.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Lu(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},ee.autofocus&&!he&&$e.input.focus(),ve&&re<11&&setTimeout(function(){return be.display.input.reset(!0)},20),ch(this),Ju(),Ts(this),this.curOp.forceUpdate=!0,$l(this,ge),ee.autofocus&&!he||this.hasFocus()?setTimeout(function(){be.hasFocus()&&!be.state.focused&&Tc(be)},20):$s(this);for(var ht in nu)nu.hasOwnProperty(ht)&&nu[ht](this,ee[ht],Ns);Jl(this),ee.finishInit&&ee.finishInit(this);for(var Ct=0;Ct<id.length;++Ct)id[Ct](this);us(this),ne&&ee.lineWrapping&&getComputedStyle($e.lineDiv).textRendering=="optimizelegibility"&&($e.lineDiv.style.textRendering="auto")}ki.defaults=mf,ki.optionHandlers=nu;function ch(E){var ee=E.display;jt(ee.scroller,"mousedown",ka(E,Qa)),ve&&re<11?jt(ee.scroller,"dblclick",ka(E,function(Tt){if(!St(E,Tt)){var Pt=Mo(E,Tt);if(!(!Pt||io(E,Tt)||za(E.display,Tt))){sr(Tt);var rr=E.findWordAt(Pt);ll(E.doc,rr.anchor,rr.head)}}})):jt(ee.scroller,"dblclick",function(Tt){return St(E,Tt)||sr(Tt)}),jt(ee.scroller,"contextmenu",function(Tt){return Rs(E,Tt)}),jt(ee.input.getField(),"contextmenu",function(Tt){ee.scroller.contains(Tt.target)||Rs(E,Tt)});var be,ge={end:0};function Be(){ee.activeTouch&&(be=setTimeout(function(){return ee.activeTouch=null},1e3),ge=ee.activeTouch,ge.end=+new Date)}function $e(Tt){if(Tt.touches.length!=1)return!1;var Pt=Tt.touches[0];return Pt.radiusX<=1&&Pt.radiusY<=1}function ht(Tt,Pt){if(Pt.left==null)return!0;var rr=Pt.left-Tt.left,ur=Pt.top-Tt.top;return rr*rr+ur*ur>20*20}jt(ee.scroller,"touchstart",function(Tt){if(!St(E,Tt)&&!$e(Tt)&&!io(E,Tt)){ee.input.ensurePolled(),clearTimeout(be);var Pt=+new Date;ee.activeTouch={start:Pt,moved:!1,prev:Pt-ge.end<=300?ge:null},Tt.touches.length==1&&(ee.activeTouch.left=Tt.touches[0].pageX,ee.activeTouch.top=Tt.touches[0].pageY)}}),jt(ee.scroller,"touchmove",function(){ee.activeTouch&&(ee.activeTouch.moved=!0)}),jt(ee.scroller,"touchend",function(Tt){var Pt=ee.activeTouch;if(Pt&&!za(ee,Tt)&&Pt.left!=null&&!Pt.moved&&new Date-Pt.start<300){var rr=E.coordsChar(ee.activeTouch,"page"),ur;!Pt.prev||ht(Pt,Pt.prev)?ur=new Xi(rr,rr):!Pt.prev.prev||ht(Pt,Pt.prev.prev)?ur=E.findWordAt(rr):ur=new Xi(tr(rr.line,0),ar(E.doc,tr(rr.line+1,0))),E.setSelection(ur.anchor,ur.head),E.focus(),sr(Tt)}Be()}),jt(ee.scroller,"touchcancel",Be),jt(ee.scroller,"scroll",function(){ee.scroller.clientHeight&&(As(E,ee.scroller.scrollTop),Ms(E,ee.scroller.scrollLeft,!0),ft(E,"scroll",E))}),jt(ee.scroller,"mousewheel",function(Tt){return zu(E,Tt)}),jt(ee.scroller,"DOMMouseScroll",function(Tt){return zu(E,Tt)}),jt(ee.wrapper,"scroll",function(){return ee.wrapper.scrollTop=ee.wrapper.scrollLeft=0}),ee.dragFunctions={enter:function(Tt){St(E,Tt)||zr(Tt)},over:function(Tt){St(E,Tt)||(Yu(E,Tt),zr(Tt))},start:function(Tt){return rh(E,Tt)},drop:ka(E,th),leave:function(Tt){St(E,Tt)||Tl(E)}};var Ct=ee.input.getField();jt(Ct,"keyup",function(Tt){return uf.call(E,Tt)}),jt(Ct,"keydown",ka(E,cc)),jt(Ct,"keypress",ka(E,df)),jt(Ct,"focus",function(Tt){return Tc(E,Tt)}),jt(Ct,"blur",function(Tt){return $s(E,Tt)})}var id=[];ki.defineInitHook=function(E){return id.push(E)};function Wo(E,ee,be,ge){var Be=E.doc,$e;be==null&&(be="add"),be=="smart"&&(Be.mode.indent?$e=fr(E,ee).state:be="prev");var ht=E.options.tabSize,Ct=zt(Be,ee),Tt=Ve(Ct.text,null,ht);Ct.stateAfter&&(Ct.stateAfter=null);var Pt=Ct.text.match(/^\s*/)[0],rr;if(!ge&&!/\S/.test(Ct.text))rr=0,be="not";else if(be=="smart"&&(rr=Be.mode.indent($e,Ct.text.slice(Pt.length),Ct.text),rr==ot||rr>150)){if(!ge)return;be="prev"}be=="prev"?ee>Be.first?rr=Ve(zt(Be,ee-1).text,null,ht):rr=0:be=="add"?rr=Tt+E.options.indentUnit:be=="subtract"?rr=Tt-E.options.indentUnit:typeof be=="number"&&(rr=Tt+be),rr=Math.max(0,rr);var ur="",Pr=0;if(E.options.indentWithTabs)for(var kr=Math.floor(rr/ht);kr;--kr)Pr+=ht,ur+=" ";if(Pr<rr&&(ur+=Dt(rr-Pr)),ur!=Pt)return Al(Be,ur,tr(ee,0),tr(ee,Pt.length),"+input"),Ct.stateAfter=null,!0;for(var tn=0;tn<Be.sel.ranges.length;tn++){var En=Be.sel.ranges[tn];if(En.head.line==ee&&En.head.ch<Pt.length){var Hn=tr(ee,Pt.length);To(Be,tn,new Xi(Hn,Hn));break}}}var Uo=null;function _s(E){Uo=E}function ad(E,ee,be,ge,Be){var $e=E.doc;E.display.shift=!1,ge||(ge=$e.sel);var ht=+new Date-200,Ct=Be=="paste"||E.state.pasteIncoming>ht,Tt=Tn(ee),Pt=null;if(Ct&&ge.ranges.length>1)if(Uo&&Uo.text.join(`
|
|
|
`)==ee){if(ge.ranges.length%Uo.text.length==0){Pt=[];for(var rr=0;rr<Uo.text.length;rr++)Pt.push($e.splitLines(Uo.text[rr]))}}else Tt.length==ge.ranges.length&&E.options.pasteLinesPerSelection&&(Pt=st(Tt,function(qn){return[qn]}));for(var ur=E.curOp.updateInput,Pr=ge.ranges.length-1;Pr>=0;Pr--){var kr=ge.ranges[Pr],tn=kr.from(),En=kr.to();kr.empty()&&(be&&be>0?tn=tr(tn.line,tn.ch-be):E.state.overwrite&&!Ct?En=tr(En.line,Math.min(zt($e,En.line).text.length,En.ch+At(Tt).length)):Ct&&Uo&&Uo.lineWise&&Uo.text.join(`
|
|
|
`)==Tt.join(`
|
|
|
`)&&(tn=En=tr(tn.line,0)));var Hn={from:tn,to:En,text:Pt?Pt[Pr%Pt.length]:Tt,origin:Be||(Ct?"paste":E.state.cutIncoming>ht?"cut":"+input")};Os(E.doc,Hn),Qr(E,"inputRead",E,Hn)}ee&&!Ct&&sd(E,ee),el(E),E.curOp.updateInput<2&&(E.curOp.updateInput=ur),E.curOp.typing=!0,E.state.pasteIncoming=E.state.cutIncoming=-1}function od(E,ee){var be=E.clipboardData&&E.clipboardData.getData("Text");if(be)return E.preventDefault(),!ee.isReadOnly()&&!ee.options.disableInput&&ma(ee,function(){return ad(ee,be,0,null,"paste")}),!0}function sd(E,ee){if(!(!E.options.electricChars||!E.options.smartIndent))for(var be=E.doc.sel,ge=be.ranges.length-1;ge>=0;ge--){var Be=be.ranges[ge];if(!(Be.head.ch>100||ge&&be.ranges[ge-1].head.line==Be.head.line)){var $e=E.getModeAt(Be.head),ht=!1;if($e.electricChars){for(var Ct=0;Ct<$e.electricChars.length;Ct++)if(ee.indexOf($e.electricChars.charAt(Ct))>-1){ht=Wo(E,Be.head.line,"smart");break}}else $e.electricInput&&$e.electricInput.test(zt(E.doc,Be.head.line).text.slice(0,Be.head.ch))&&(ht=Wo(E,Be.head.line,"smart"));ht&&Qr(E,"electricInput",E,Be.head.line)}}}function Ll(E){for(var ee=[],be=[],ge=0;ge<E.doc.sel.ranges.length;ge++){var Be=E.doc.sel.ranges[ge].head.line,$e={anchor:tr(Be,0),head:tr(Be+1,0)};be.push($e),ee.push(E.getRange($e.anchor,$e.head))}return{text:ee,ranges:be}}function vf(E,ee,be,ge){E.setAttribute("autocorrect",be?"":"off"),E.setAttribute("autocapitalize",ge?"":"off"),E.setAttribute("spellcheck",!!ee)}function ld(){var E=Ee("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ee=Ee("div",[E],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ne?E.style.width="1000px":E.setAttribute("wrap","off"),ue&&(E.style.border="1px solid black"),vf(E),ee}function cd(E){var ee=E.optionHandlers,be=E.helpers={};E.prototype={constructor:E,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ge,Be){var $e=this.options,ht=$e[ge];$e[ge]==Be&&ge!="mode"||($e[ge]=Be,ee.hasOwnProperty(ge)&&ka(this,ee[ge])(this,Be,ht),ft(this,"optionChange",this,ge))},getOption:function(ge){return this.options[ge]},getDoc:function(){return this.doc},addKeyMap:function(ge,Be){this.state.keyMaps[Be?"push":"unshift"](mo(ge))},removeKeyMap:function(ge){for(var Be=this.state.keyMaps,$e=0;$e<Be.length;++$e)if(Be[$e]==ge||Be[$e].name==ge)return Be.splice($e,1),!0},addOverlay:da(function(ge,Be){var $e=ge.token?ge:E.getMode(this.options,ge);if($e.startState)throw new Error("Overlays may not be stateful.");Ge(this.state.overlays,{mode:$e,modeSpec:ge,opaque:Be&&Be.opaque,priority:Be&&Be.priority||0},function(ht){return ht.priority}),this.state.modeGen++,Xa(this)}),removeOverlay:da(function(ge){for(var Be=this.state.overlays,$e=0;$e<Be.length;++$e){var ht=Be[$e].modeSpec;if(ht==ge||typeof ge=="string"&&ht.name==ge){Be.splice($e,1),this.state.modeGen++,Xa(this);return}}}),indentLine:da(function(ge,Be,$e){typeof Be!="string"&&typeof Be!="number"&&(Be==null?Be=this.options.smartIndent?"smart":"prev":Be=Be?"add":"subtract"),Lr(this.doc,ge)&&Wo(this,ge,Be,$e)}),indentSelection:da(function(ge){for(var Be=this.doc.sel.ranges,$e=-1,ht=0;ht<Be.length;ht++){var Ct=Be[ht];if(Ct.empty())Ct.head.line>$e&&(Wo(this,Ct.head.line,ge,!0),$e=Ct.head.line,ht==this.doc.sel.primIndex&&el(this));else{var Tt=Ct.from(),Pt=Ct.to(),rr=Math.max($e,Tt.line);$e=Math.min(this.lastLine(),Pt.line-(Pt.ch?0:1))+1;for(var ur=rr;ur<$e;++ur)Wo(this,ur,ge);var Pr=this.doc.sel.ranges;Tt.ch==0&&Be.length==Pr.length&&Pr[ht].from().ch>0&&To(this.doc,ht,new Xi(Tt,Pr[ht].to()),et)}}}),getTokenAt:function(ge,Be){return $r(this,ge,Be)},getLineTokens:function(ge,Be){return $r(this,tr(ge),Be,!0)},getTokenTypeAt:function(ge){ge=ar(this.doc,ge);var Be=lr(this,zt(this.doc,ge.line)),$e=0,ht=(Be.length-1)/2,Ct=ge.ch,Tt;if(Ct==0)Tt=Be[2];else for(;;){var Pt=$e+ht>>1;if((Pt?Be[Pt*2-1]:0)>=Ct)ht=Pt;else if(Be[Pt*2+1]<Ct)$e=Pt+1;else{Tt=Be[Pt*2+2];break}}var rr=Tt?Tt.indexOf("overlay "):-1;return rr<0?Tt:rr==0?null:Tt.slice(0,rr-1)},getModeAt:function(ge){var Be=this.doc.mode;return Be.innerMode?E.innerMode(Be,this.getTokenAt(ge).state).mode:Be},getHelper:function(ge,Be){return this.getHelpers(ge,Be)[0]},getHelpers:function(ge,Be){var $e=[];if(!be.hasOwnProperty(Be))return $e;var ht=be[Be],Ct=this.getModeAt(ge);if(typeof Ct[Be]=="string")ht[Ct[Be]]&&$e.push(ht[Ct[Be]]);else if(Ct[Be])for(var Tt=0;Tt<Ct[Be].length;Tt++){var Pt=ht[Ct[Be][Tt]];Pt&&$e.push(Pt)}else Ct.helperType&&ht[Ct.helperType]?$e.push(ht[Ct.helperType]):ht[Ct.name]&&$e.push(ht[Ct.name]);for(var rr=0;rr<ht._global.length;rr++){var ur=ht._global[rr];ur.pred(Ct,this)&&nt($e,ur.val)==-1&&$e.push(ur.val)}return $e},getStateAfter:function(ge,Be){var $e=this.doc;return ge=mr($e,ge==null?$e.first+$e.size-1:ge),fr(this,ge+1,Be).state},cursorCoords:function(ge,Be){var $e,ht=this.doc.sel.primary();return ge==null?$e=ht.head:typeof ge=="object"?$e=ar(this.doc,ge):$e=ge?ht.from():ht.to(),Pa(this,$e,Be||"page")},charCoords:function(ge,Be){return vo(this,ar(this.doc,ge),Be||"page")},coordsChar:function(ge,Be){return ge=go(this,ge,Be||"page"),Qs(this,ge.left,ge.top)},lineAtHeight:function(ge,Be){return ge=go(this,{top:ge,left:0},Be||"page").top,Ar(this.doc,ge+this.display.viewOffset)},heightAtLine:function(ge,Be,$e){var ht=!1,Ct;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,ht=!0),Ct=zt(this.doc,ge)}else Ct=ge;return Ua(this,Ct,{top:0,left:0},Be||"page",$e||ht).top+(ht?this.doc.height-Cn(Ct):0)},defaultTextHeight:function(){return os(this.display)},defaultCharWidth:function(){return Wi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ge,Be,$e,ht,Ct){var Tt=this.display;ge=Pa(this,ar(this.doc,ge));var Pt=ge.bottom,rr=ge.left;if(Be.style.position="absolute",Be.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Be),Tt.sizer.appendChild(Be),ht=="over")Pt=ge.top;else if(ht=="above"||ht=="near"){var ur=Math.max(Tt.wrapper.clientHeight,this.doc.height),Pr=Math.max(Tt.sizer.clientWidth,Tt.lineSpace.clientWidth);(ht=="above"||ge.bottom+Be.offsetHeight>ur)&&ge.top>Be.offsetHeight?Pt=ge.top-Be.offsetHeight:ge.bottom+Be.offsetHeight<=ur&&(Pt=ge.bottom),rr+Be.offsetWidth>Pr&&(rr=Pr-Be.offsetWidth)}Be.style.top=Pt+"px",Be.style.left=Be.style.right="",Ct=="right"?(rr=Tt.sizer.clientWidth-Be.offsetWidth,Be.style.right="0px"):(Ct=="left"?rr=0:Ct=="middle"&&(rr=(Tt.sizer.clientWidth-Be.offsetWidth)/2),Be.style.left=rr+"px"),$e&&_d(this,{left:rr,top:Pt,right:rr+Be.offsetWidth,bottom:Pt+Be.offsetHeight})},triggerOnKeyDown:da(cc),triggerOnKeyPress:da(df),triggerOnKeyUp:uf,triggerOnMouseDown:da(Qa),execCommand:function(ge){if(Dl.hasOwnProperty(ge))return Dl[ge].call(null,this)},triggerElectric:da(function(ge){sd(this,ge)}),findPosH:function(ge,Be,$e,ht){var Ct=1;Be<0&&(Ct=-1,Be=-Be);for(var Tt=ar(this.doc,ge),Pt=0;Pt<Be&&(Tt=iu(this.doc,Tt,Ct,$e,ht),!Tt.hitSide);++Pt);return Tt},moveH:da(function(ge,Be){var $e=this;this.extendSelectionsBy(function(ht){return $e.display.shift||$e.doc.extend||ht.empty()?iu($e.doc,ht.head,ge,Be,$e.options.rtlMoveVisually):ge<0?ht.from():ht.to()},it)}),deleteH:da(function(ge,Be){var $e=this.doc.sel,ht=this.doc;$e.somethingSelected()?ht.replaceSelection("",null,"+delete"):_o(this,function(Ct){var Tt=iu(ht,Ct.head,ge,Be,!1);return ge<0?{from:Tt,to:Ct.head}:{from:Ct.head,to:Tt}})}),findPosV:function(ge,Be,$e,ht){var Ct=1,Tt=ht;Be<0&&(Ct=-1,Be=-Be);for(var Pt=ar(this.doc,ge),rr=0;rr<Be;++rr){var ur=Pa(this,Pt,"div");if(Tt==null?Tt=ur.left:ur.left=Tt,Pt=yf(this,ur,Ct,$e),Pt.hitSide)break}return Pt},moveV:da(function(ge,Be){var $e=this,ht=this.doc,Ct=[],Tt=!this.display.shift&&!ht.extend&&ht.sel.somethingSelected();if(ht.extendSelectionsBy(function(rr){if(Tt)return ge<0?rr.from():rr.to();var ur=Pa($e,rr.head,"div");rr.goalColumn!=null&&(ur.left=rr.goalColumn),Ct.push(ur.left);var Pr=yf($e,ur,ge,Be);return Be=="page"&&rr==ht.sel.primary()&&Oc($e,vo($e,Pr,"div").top-ur.top),Pr},it),Ct.length)for(var Pt=0;Pt<ht.sel.ranges.length;Pt++)ht.sel.ranges[Pt].goalColumn=Ct[Pt]}),findWordAt:function(ge){var Be=this.doc,$e=zt(Be,ge.line).text,ht=ge.ch,Ct=ge.ch;if($e){var Tt=this.getHelper(ge,"wordChars");(ge.sticky=="before"||Ct==$e.length)&&ht?--ht:++Ct;for(var Pt=$e.charAt(ht),rr=He(Pt,Tt)?function(ur){return He(ur,Tt)}:/\s/.test(Pt)?function(ur){return/\s/.test(ur)}:function(ur){return!/\s/.test(ur)&&!He(ur)};ht>0&&rr($e.charAt(ht-1));)--ht;for(;Ct<$e.length&&rr($e.charAt(Ct));)++Ct}return new Xi(tr(ge.line,ht),tr(ge.line,Ct))},toggleOverwrite:function(ge){ge!=null&&ge==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ue(this.display.cursorDiv,"CodeMirror-overwrite"):je(this.display.cursorDiv,"CodeMirror-overwrite"),ft(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Pe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:da(function(ge,Be){tl(this,ge,Be)}),getScrollInfo:function(){var ge=this.display.scroller;return{left:ge.scrollLeft,top:ge.scrollTop,height:ge.scrollHeight-ba(this)-this.display.barHeight,width:ge.scrollWidth-ba(this)-this.display.barWidth,clientHeight:Ka(this),clientWidth:Ji(this)}},scrollIntoView:da(function(ge,Be){ge==null?(ge={from:this.doc.sel.primary().head,to:null},Be==null&&(Be=this.options.cursorScrollMargin)):typeof ge=="number"?ge={from:tr(ge,0),to:null}:ge.from==null&&(ge={from:ge,to:null}),ge.to||(ge.to=ge.from),ge.margin=Be||0,ge.from.line!=null?jd(this,ge):Du(this,ge.from,ge.to,ge.margin)}),setSize:da(function(ge,Be){var $e=this,ht=function(Tt){return typeof Tt=="number"||/^\d+$/.test(String(Tt))?Tt+"px":Tt};ge!=null&&(this.display.wrapper.style.width=ht(ge)),Be!=null&&(this.display.wrapper.style.height=ht(Be)),this.options.lineWrapping&&La(this);var Ct=this.display.viewFrom;this.doc.iter(Ct,this.display.viewTo,function(Tt){if(Tt.widgets){for(var Pt=0;Pt<Tt.widgets.length;Pt++)if(Tt.widgets[Pt].noHScroll){Po($e,Ct,"widget");break}}++Ct}),this.curOp.forceUpdate=!0,ft(this,"refresh",this)}),operation:function(ge){return ma(this,ge)},startOperation:function(){return Ts(this)},endOperation:function(){return us(this)},refresh:da(function(){var ge=this.display.cachedTextHeight;Xa(this),this.curOp.forceUpdate=!0,ta(this),tl(this,this.doc.scrollLeft,this.doc.scrollTop),Lc(this.display),(ge==null||Math.abs(ge-os(this.display))>.5||this.options.lineWrapping)&&Ra(this),ft(this,"refresh",this)}),swapDoc:da(function(ge){var Be=this.doc;return Be.cm=null,this.state.selectingText&&this.state.selectingText(),$l(this,ge),ta(this),this.display.input.reset(),tl(this,ge.scrollLeft,ge.scrollTop),this.curOp.forceScroll=!0,Qr(this,"swapDoc",this,Be),Be}),phrase:function(ge){var Be=this.options.phrases;return Be&&Object.prototype.hasOwnProperty.call(Be,ge)?Be[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}},Ut(E),E.registerHelper=function(ge,Be,$e){be.hasOwnProperty(ge)||(be[ge]=E[ge]={_global:[]}),be[ge][Be]=$e},E.registerGlobalHelper=function(ge,Be,$e,ht){E.registerHelper(ge,Be,ht),be[ge]._global.push({pred:$e,val:ht})}}function iu(E,ee,be,ge,Be){var $e=ee,ht=be,Ct=zt(E,ee.line),Tt=Be&&E.direction=="rtl"?-be:be;function Pt(){var ti=ee.line+Tt;return ti<E.first||ti>=E.first+E.size?!1:(ee=new tr(ti,ee.ch,ee.sticky),Ct=zt(E,ti))}function rr(ti){var Qn;if(ge=="codepoint"){var ni=Ct.text.charCodeAt(ee.ch+(ge>0?0:-1));isNaN(ni)?Qn=null:Qn=new tr(ee.line,Math.max(0,Math.min(Ct.text.length,ee.ch+be*(ni>=55296&&ni<56320?2:1))),-be)}else Be?Qn=$o(E.cm,Ct,ee,be):Qn=Qo(Ct,ee,be);if(Qn==null)if(!ti&&Pt())ee=fl(Be,E.cm,Ct,ee.line,Tt);else return!1;else ee=Qn;return!0}if(ge=="char"||ge=="codepoint")rr();else if(ge=="column")rr(!0);else if(ge=="word"||ge=="group")for(var ur=null,Pr=ge=="group",kr=E.cm&&E.cm.getHelper(ee,"wordChars"),tn=!0;!(be<0&&!rr(!tn));tn=!1){var En=Ct.text.charAt(ee.ch)||`
|
|
|
`,Hn=He(En,kr)?"w":Pr&&En==`
|
|
|
`?"n":!Pr||/\s/.test(En)?null:"p";if(Pr&&!tn&&!Hn&&(Hn="s"),ur&&ur!=Hn){be<0&&(be=1,rr(),ee.sticky="after");break}if(Hn&&(ur=Hn),be>0&&!rr(!tn))break}var qn=Xc(E,ee,$e,ht,!0);return Wt($e,qn)&&(qn.hitSide=!0),qn}function yf(E,ee,be,ge){var Be=E.doc,$e=ee.left,ht;if(ge=="page"){var Ct=Math.min(E.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Tt=Math.max(Ct-.5*os(E.display),3);ht=(be>0?ee.bottom:ee.top)+be*Tt}else ge=="line"&&(ht=be>0?ee.bottom+3:ee.top-3);for(var Pt;Pt=Qs(E,$e,ht),!!Pt.outside;){if(be<0?ht<=0:ht>=Be.height){Pt.hitSide=!0;break}ht+=be*5}return Pt}var qi=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};qi.prototype.init=function(E){var ee=this,be=this,ge=be.cm,Be=be.div=E.lineDiv;vf(Be,ge.options.spellcheck,ge.options.autocorrect,ge.options.autocapitalize);function $e(Ct){for(var Tt=Ct.target;Tt;Tt=Tt.parentNode){if(Tt==Be)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Tt.className))break}return!1}jt(Be,"paste",function(Ct){!$e(Ct)||St(ge,Ct)||od(Ct,ge)||re<=11&&setTimeout(ka(ge,function(){return ee.updateFromDOM()}),20)}),jt(Be,"compositionstart",function(Ct){ee.composing={data:Ct.data,done:!1}}),jt(Be,"compositionupdate",function(Ct){ee.composing||(ee.composing={data:Ct.data,done:!1})}),jt(Be,"compositionend",function(Ct){ee.composing&&(Ct.data!=ee.composing.data&&ee.readFromDOMSoon(),ee.composing.done=!0)}),jt(Be,"touchstart",function(){return be.forceCompositionEnd()}),jt(Be,"input",function(){ee.composing||ee.readFromDOMSoon()});function ht(Ct){if(!(!$e(Ct)||St(ge,Ct))){if(ge.somethingSelected())_s({lineWise:!1,text:ge.getSelections()}),Ct.type=="cut"&&ge.replaceSelection("",null,"cut");else if(ge.options.lineWiseCopyCut){var Tt=Ll(ge);_s({lineWise:!0,text:Tt.text}),Ct.type=="cut"&&ge.operation(function(){ge.setSelections(Tt.ranges,0,et),ge.replaceSelection("",null,"cut")})}else return;if(Ct.clipboardData){Ct.clipboardData.clearData();var Pt=Uo.text.join(`
|
|
|
`);if(Ct.clipboardData.setData("Text",Pt),Ct.clipboardData.getData("Text")==Pt){Ct.preventDefault();return}}var rr=ld(),ur=rr.firstChild;ge.display.lineSpace.insertBefore(rr,ge.display.lineSpace.firstChild),ur.value=Uo.text.join(`
|
|
|
`);var Pr=document.activeElement;tt(ur),setTimeout(function(){ge.display.lineSpace.removeChild(rr),Pr.focus(),Pr==Be&&be.showPrimarySelection()},50)}}jt(Be,"copy",ht),jt(Be,"cut",ht)},qi.prototype.screenReaderLabelChanged=function(E){E?this.div.setAttribute("aria-label",E):this.div.removeAttribute("aria-label")},qi.prototype.prepareSelection=function(){var E=Mu(this.cm,!1);return E.focus=document.activeElement==this.div,E},qi.prototype.showSelection=function(E,ee){!E||!this.cm.display.view.length||((E.focus||ee)&&this.showPrimarySelection(),this.showMultipleSelections(E))},qi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qi.prototype.showPrimarySelection=function(){var E=this.getSelection(),ee=this.cm,be=ee.doc.sel.primary(),ge=be.from(),Be=be.to();if(ee.display.viewTo==ee.display.viewFrom||ge.line>=ee.display.viewTo||Be.line<ee.display.viewFrom){E.removeAllRanges();return}var $e=au(ee,E.anchorNode,E.anchorOffset),ht=au(ee,E.focusNode,E.focusOffset);if(!($e&&!$e.bad&&ht&&!ht.bad&&br(qt($e,ht),ge)==0&&br(Xt($e,ht),Be)==0)){var Ct=ee.display.view,Tt=ge.line>=ee.display.viewFrom&&bf(ee,ge)||{node:Ct[0].measure.map[2],offset:0},Pt=Be.line<ee.display.viewTo&&bf(ee,Be);if(!Pt){var rr=Ct[Ct.length-1].measure,ur=rr.maps?rr.maps[rr.maps.length-1]:rr.map;Pt={node:ur[ur.length-1],offset:ur[ur.length-2]-ur[ur.length-3]}}if(!Tt||!Pt){E.removeAllRanges();return}var Pr=E.rangeCount&&E.getRangeAt(0),kr;try{kr=_e(Tt.node,Tt.offset,Pt.offset,Pt.node)}catch(tn){}kr&&(!Re&&ee.state.focused?(E.collapse(Tt.node,Tt.offset),kr.collapsed||(E.removeAllRanges(),E.addRange(kr))):(E.removeAllRanges(),E.addRange(kr)),Pr&&E.anchorNode==null?E.addRange(Pr):Re&&this.startGracePeriod()),this.rememberSelection()}},qi.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)},qi.prototype.showMultipleSelections=function(E){Oe(this.cm.display.cursorDiv,E.cursors),Oe(this.cm.display.selectionDiv,E.selection)},qi.prototype.rememberSelection=function(){var E=this.getSelection();this.lastAnchorNode=E.anchorNode,this.lastAnchorOffset=E.anchorOffset,this.lastFocusNode=E.focusNode,this.lastFocusOffset=E.focusOffset},qi.prototype.selectionInEditor=function(){var E=this.getSelection();if(!E.rangeCount)return!1;var ee=E.getRangeAt(0).commonAncestorContainer;return Ze(this.div,ee)},qi.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},qi.prototype.blur=function(){this.div.blur()},qi.prototype.getField=function(){return this.div},qi.prototype.supportsTouch=function(){return!0},qi.prototype.receivedFocus=function(){var E=this;this.selectionInEditor()?this.pollSelection():ma(this.cm,function(){return E.cm.curOp.selectionChanged=!0});function ee(){E.cm.state.focused&&(E.pollSelection(),E.polling.set(E.cm.options.pollInterval,ee))}this.polling.set(this.cm.options.pollInterval,ee)},qi.prototype.selectionChanged=function(){var E=this.getSelection();return E.anchorNode!=this.lastAnchorNode||E.anchorOffset!=this.lastAnchorOffset||E.focusNode!=this.lastFocusNode||E.focusOffset!=this.lastFocusOffset},qi.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var E=this.getSelection(),ee=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 be=au(ee,E.anchorNode,E.anchorOffset),ge=au(ee,E.focusNode,E.focusOffset);be&&ge&&ma(ee,function(){Ta(ee.doc,Ko(be,ge),et),(be.bad||ge.bad)&&(ee.curOp.selectionChanged=!0)})}}},qi.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var E=this.cm,ee=E.display,be=E.doc.sel.primary(),ge=be.from(),Be=be.to();if(ge.ch==0&&ge.line>E.firstLine()&&(ge=tr(ge.line-1,zt(E.doc,ge.line-1).length)),Be.ch==zt(E.doc,Be.line).text.length&&Be.line<E.lastLine()&&(Be=tr(Be.line+1,0)),ge.line<ee.viewFrom||Be.line>ee.viewTo-1)return!1;var $e,ht,Ct;ge.line==ee.viewFrom||($e=wo(E,ge.line))==0?(ht=pr(ee.view[0].line),Ct=ee.view[0].node):(ht=pr(ee.view[$e].line),Ct=ee.view[$e-1].node.nextSibling);var Tt=wo(E,Be.line),Pt,rr;if(Tt==ee.view.length-1?(Pt=ee.viewTo-1,rr=ee.lineDiv.lastChild):(Pt=pr(ee.view[Tt+1].line)-1,rr=ee.view[Tt+1].node.previousSibling),!Ct)return!1;for(var ur=E.doc.splitLines(dh(E,Ct,rr,ht,Pt)),Pr=Zt(E.doc,tr(ht,0),tr(Pt,zt(E.doc,Pt).text.length));ur.length>1&&Pr.length>1;)if(At(ur)==At(Pr))ur.pop(),Pr.pop(),Pt--;else if(ur[0]==Pr[0])ur.shift(),Pr.shift(),ht++;else break;for(var kr=0,tn=0,En=ur[0],Hn=Pr[0],qn=Math.min(En.length,Hn.length);kr<qn&&En.charCodeAt(kr)==Hn.charCodeAt(kr);)++kr;for(var ti=At(ur),Qn=At(Pr),ni=Math.min(ti.length-(ur.length==1?kr:0),Qn.length-(Pr.length==1?kr:0));tn<ni&&ti.charCodeAt(ti.length-tn-1)==Qn.charCodeAt(Qn.length-tn-1);)++tn;if(ur.length==1&&Pr.length==1&&ht==ge.line)for(;kr&&kr>ge.ch&&ti.charCodeAt(ti.length-tn-1)==Qn.charCodeAt(Qn.length-tn-1);)kr--,tn++;ur[ur.length-1]=ti.slice(0,ti.length-tn).replace(/^\u200b+/,""),ur[0]=ur[0].slice(kr).replace(/\u200b+$/,"");var mi=tr(ht,kr),yi=tr(Pt,Pr.length?At(Pr).length-tn:0);if(ur.length>1||ur[0]||br(mi,yi))return Al(E.doc,ur,mi,yi,"+input"),!0},qi.prototype.ensurePolled=function(){this.forceCompositionEnd()},qi.prototype.reset=function(){this.forceCompositionEnd()},qi.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qi.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))},qi.prototype.updateFromDOM=function(){var E=this;(this.cm.isReadOnly()||!this.pollContent())&&ma(this.cm,function(){return Xa(E.cm)})},qi.prototype.setUneditable=function(E){E.contentEditable="false"},qi.prototype.onKeyPress=function(E){E.charCode==0||this.composing||(E.preventDefault(),this.cm.isReadOnly()||ka(this.cm,ad)(this.cm,String.fromCharCode(E.charCode==null?E.keyCode:E.charCode),0))},qi.prototype.readOnlyChanged=function(E){this.div.contentEditable=String(E!="nocursor")},qi.prototype.onContextMenu=function(){},qi.prototype.resetPosition=function(){},qi.prototype.needsContentAttribute=!0;function bf(E,ee){var be=xa(E,ee.line);if(!be||be.hidden)return null;var ge=zt(E.doc,ee.line),Be=lo(be,ge,ee.line),$e=Vt(ge,E.doc.direction),ht="left";if($e){var Ct=vt($e,ee.ch);ht=Ct%2?"right":"left"}var Tt=zo(Be.map,ee.ch,ht);return Tt.offset=Tt.collapse=="right"?Tt.end:Tt.start,Tt}function uh(E){for(var ee=E;ee;ee=ee.parentNode)if(/CodeMirror-gutter-wrapper/.test(ee.className))return!0;return!1}function Pl(E,ee){return ee&&(E.bad=!0),E}function dh(E,ee,be,ge,Be){var $e="",ht=!1,Ct=E.doc.lineSeparator(),Tt=!1;function Pt(kr){return function(tn){return tn.id==kr}}function rr(){ht&&($e+=Ct,Tt&&($e+=Ct),ht=Tt=!1)}function ur(kr){kr&&(rr(),$e+=kr)}function Pr(kr){if(kr.nodeType==1){var tn=kr.getAttribute("cm-text");if(tn){ur(tn);return}var En=kr.getAttribute("cm-marker"),Hn;if(En){var qn=E.findMarks(tr(ge,0),tr(Be+1,0),Pt(+En));qn.length&&(Hn=qn[0].find(0))&&ur(Zt(E.doc,Hn.from,Hn.to).join(Ct));return}if(kr.getAttribute("contenteditable")=="false")return;var ti=/^(pre|div|p|li|table|br)$/i.test(kr.nodeName);if(!/^br$/i.test(kr.nodeName)&&kr.textContent.length==0)return;ti&&rr();for(var Qn=0;Qn<kr.childNodes.length;Qn++)Pr(kr.childNodes[Qn]);/^(pre|p)$/i.test(kr.nodeName)&&(Tt=!0),ti&&(ht=!0)}else kr.nodeType==3&&ur(kr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Pr(ee),ee!=be;)ee=ee.nextSibling,Tt=!1;return $e}function au(E,ee,be){var ge;if(ee==E.display.lineDiv){if(ge=E.display.lineDiv.childNodes[be],!ge)return Pl(E.clipPos(tr(E.display.viewTo-1)),!0);ee=null,be=0}else for(ge=ee;;ge=ge.parentNode){if(!ge||ge==E.display.lineDiv)return null;if(ge.parentNode&&ge.parentNode==E.display.lineDiv)break}for(var Be=0;Be<E.display.view.length;Be++){var $e=E.display.view[Be];if($e.node==ge)return fh($e,ee,be)}}function fh(E,ee,be){var ge=E.text.firstChild,Be=!1;if(!ee||!Ze(ge,ee))return Pl(tr(pr(E.line),0),!0);if(ee==ge&&(Be=!0,ee=ge.childNodes[be],be=0,!ee)){var $e=E.rest?At(E.rest):E.line;return Pl(tr(pr($e),$e.text.length),Be)}var ht=ee.nodeType==3?ee:null,Ct=ee;for(!ht&&ee.childNodes.length==1&&ee.firstChild.nodeType==3&&(ht=ee.firstChild,be&&(be=ht.nodeValue.length));Ct.parentNode!=ge;)Ct=Ct.parentNode;var Tt=E.measure,Pt=Tt.maps;function rr(Hn,qn,ti){for(var Qn=-1;Qn<(Pt?Pt.length:0);Qn++)for(var ni=Qn<0?Tt.map:Pt[Qn],mi=0;mi<ni.length;mi+=3){var yi=ni[mi+2];if(yi==Hn||yi==qn){var Ri=pr(Qn<0?E.line:E.rest[Qn]),ia=ni[mi]+ti;return(ti<0||yi!=Hn)&&(ia=ni[mi+(ti?1:0)]),tr(Ri,ia)}}}var ur=rr(ht,Ct,be);if(ur)return Pl(ur,Be);for(var Pr=Ct.nextSibling,kr=ht?ht.nodeValue.length-be:0;Pr;Pr=Pr.nextSibling){if(ur=rr(Pr,Pr.firstChild,0),ur)return Pl(tr(ur.line,ur.ch-kr),Be);kr+=Pr.textContent.length}for(var tn=Ct.previousSibling,En=be;tn;tn=tn.previousSibling){if(ur=rr(tn,tn.firstChild,-1),ur)return Pl(tr(ur.line,ur.ch+En),Be);En+=tn.textContent.length}}var na=function(E){this.cm=E,this.prevInput="",this.pollingFast=!1,this.polling=new Xe,this.hasSelection=!1,this.composing=null};na.prototype.init=function(E){var ee=this,be=this,ge=this.cm;this.createField(E);var Be=this.textarea;E.wrapper.insertBefore(this.wrapper,E.wrapper.firstChild),ue&&(Be.style.width="0px"),jt(Be,"input",function(){ve&&re>=9&&ee.hasSelection&&(ee.hasSelection=null),be.poll()}),jt(Be,"paste",function(ht){St(ge,ht)||od(ht,ge)||(ge.state.pasteIncoming=+new Date,be.fastPoll())});function $e(ht){if(!St(ge,ht)){if(ge.somethingSelected())_s({lineWise:!1,text:ge.getSelections()});else if(ge.options.lineWiseCopyCut){var Ct=Ll(ge);_s({lineWise:!0,text:Ct.text}),ht.type=="cut"?ge.setSelections(Ct.ranges,null,et):(be.prevInput="",Be.value=Ct.text.join(`
|
|
|
`),tt(Be))}else return;ht.type=="cut"&&(ge.state.cutIncoming=+new Date)}}jt(Be,"cut",$e),jt(Be,"copy",$e),jt(E.scroller,"paste",function(ht){if(!(za(E,ht)||St(ge,ht))){if(!Be.dispatchEvent){ge.state.pasteIncoming=+new Date,be.focus();return}var Ct=new Event("paste");Ct.clipboardData=ht.clipboardData,Be.dispatchEvent(Ct)}}),jt(E.lineSpace,"selectstart",function(ht){za(E,ht)||sr(ht)}),jt(Be,"compositionstart",function(){var ht=ge.getCursor("from");be.composing&&be.composing.range.clear(),be.composing={start:ht,range:ge.markText(ht,ge.getCursor("to"),{className:"CodeMirror-composing"})}}),jt(Be,"compositionend",function(){be.composing&&(be.poll(),be.composing.range.clear(),be.composing=null)})},na.prototype.createField=function(E){this.wrapper=ld(),this.textarea=this.wrapper.firstChild},na.prototype.screenReaderLabelChanged=function(E){E?this.textarea.setAttribute("aria-label",E):this.textarea.removeAttribute("aria-label")},na.prototype.prepareSelection=function(){var E=this.cm,ee=E.display,be=E.doc,ge=Mu(E);if(E.options.moveInputWithCursor){var Be=Pa(E,be.sel.primary().head,"div"),$e=ee.wrapper.getBoundingClientRect(),ht=ee.lineDiv.getBoundingClientRect();ge.teTop=Math.max(0,Math.min(ee.wrapper.clientHeight-10,Be.top+ht.top-$e.top)),ge.teLeft=Math.max(0,Math.min(ee.wrapper.clientWidth-10,Be.left+ht.left-$e.left))}return ge},na.prototype.showSelection=function(E){var ee=this.cm,be=ee.display;Oe(be.cursorDiv,E.cursors),Oe(be.selectionDiv,E.selection),E.teTop!=null&&(this.wrapper.style.top=E.teTop+"px",this.wrapper.style.left=E.teLeft+"px")},na.prototype.reset=function(E){if(!(this.contextMenuPending||this.composing)){var ee=this.cm;if(ee.somethingSelected()){this.prevInput="";var be=ee.getSelection();this.textarea.value=be,ee.state.focused&&tt(this.textarea),ve&&re>=9&&(this.hasSelection=be)}else E||(this.prevInput=this.textarea.value="",ve&&re>=9&&(this.hasSelection=null))}},na.prototype.getField=function(){return this.textarea},na.prototype.supportsTouch=function(){return!1},na.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!he||Pe()!=this.textarea))try{this.textarea.focus()}catch(E){}},na.prototype.blur=function(){this.textarea.blur()},na.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},na.prototype.receivedFocus=function(){this.slowPoll()},na.prototype.slowPoll=function(){var E=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){E.poll(),E.cm.state.focused&&E.slowPoll()})},na.prototype.fastPoll=function(){var E=!1,ee=this;ee.pollingFast=!0;function be(){var ge=ee.poll();!ge&&!E?(E=!0,ee.polling.set(60,be)):(ee.pollingFast=!1,ee.slowPoll())}ee.polling.set(20,be)},na.prototype.poll=function(){var E=this,ee=this.cm,be=this.textarea,ge=this.prevInput;if(this.contextMenuPending||!ee.state.focused||Vr(be)&&!ge&&!this.composing||ee.isReadOnly()||ee.options.disableInput||ee.state.keySeq)return!1;var Be=be.value;if(Be==ge&&!ee.somethingSelected())return!1;if(ve&&re>=9&&this.hasSelection===Be||we&&/[\uf700-\uf7ff]/.test(Be))return ee.display.input.reset(),!1;if(ee.doc.sel==ee.display.selForContextMenu){var $e=Be.charCodeAt(0);if($e==8203&&!ge&&(ge="\u200B"),$e==8666)return this.reset(),this.cm.execCommand("undo")}for(var ht=0,Ct=Math.min(ge.length,Be.length);ht<Ct&&ge.charCodeAt(ht)==Be.charCodeAt(ht);)++ht;return ma(ee,function(){ad(ee,Be.slice(ht),ge.length-ht,null,E.composing?"*compose":null),Be.length>1e3||Be.indexOf(`
|
|
|
`)>-1?be.value=E.prevInput="":E.prevInput=Be,E.composing&&(E.composing.range.clear(),E.composing.range=ee.markText(E.composing.start,ee.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},na.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},na.prototype.onKeyPress=function(){ve&&re>=9&&(this.hasSelection=null),this.fastPoll()},na.prototype.onContextMenu=function(E){var ee=this,be=ee.cm,ge=be.display,Be=ee.textarea;ee.contextMenuPending&&ee.contextMenuPending();var $e=Mo(be,E),ht=ge.scroller.scrollTop;if(!$e||se)return;var Ct=be.options.resetSelectionOnContextMenu;Ct&&be.doc.sel.contains($e)==-1&&ka(be,Ta)(be.doc,Ko($e),et);var Tt=Be.style.cssText,Pt=ee.wrapper.style.cssText,rr=ee.wrapper.offsetParent.getBoundingClientRect();ee.wrapper.style.cssText="position: static",Be.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(E.clientY-rr.top-5)+"px; left: "+(E.clientX-rr.left-5)+`px;
|
|
|
z-index: 1000; background: `+(ve?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ur;ne&&(ur=window.scrollY),ge.input.focus(),ne&&window.scrollTo(null,ur),ge.input.reset(),be.somethingSelected()||(Be.value=ee.prevInput=" "),ee.contextMenuPending=kr,ge.selForContextMenu=be.doc.sel,clearTimeout(ge.detectingSelectAll);function Pr(){if(Be.selectionStart!=null){var En=be.somethingSelected(),Hn="\u200B"+(En?Be.value:"");Be.value="\u21DA",Be.value=Hn,ee.prevInput=En?"":"\u200B",Be.selectionStart=1,Be.selectionEnd=Hn.length,ge.selForContextMenu=be.doc.sel}}function kr(){if(ee.contextMenuPending==kr&&(ee.contextMenuPending=!1,ee.wrapper.style.cssText=Pt,Be.style.cssText=Tt,ve&&re<9&&ge.scrollbars.setScrollTop(ge.scroller.scrollTop=ht),Be.selectionStart!=null)){(!ve||ve&&re<9)&&Pr();var En=0,Hn=function(){ge.selForContextMenu==be.doc.sel&&Be.selectionStart==0&&Be.selectionEnd>0&&ee.prevInput=="\u200B"?ka(be,Vu)(be):En++<10?ge.detectingSelectAll=setTimeout(Hn,500):(ge.selForContextMenu=null,ge.input.reset())};ge.detectingSelectAll=setTimeout(Hn,200)}}if(ve&&re>=9&&Pr(),Le){zr(E);var tn=function(){Mt(window,"mouseup",tn),setTimeout(kr,20)};jt(window,"mouseup",tn)}else setTimeout(kr,50)},na.prototype.readOnlyChanged=function(E){E||this.reset(),this.textarea.disabled=E=="nocursor",this.textarea.readOnly=!!E},na.prototype.setUneditable=function(){},na.prototype.needsContentAttribute=!1;function hl(E,ee){if(ee=ee?lt(ee):{},ee.value=E.value,!ee.tabindex&&E.tabIndex&&(ee.tabindex=E.tabIndex),!ee.placeholder&&E.placeholder&&(ee.placeholder=E.placeholder),ee.autofocus==null){var be=Pe();ee.autofocus=be==E||E.getAttribute("autofocus")!=null&&be==document.body}function ge(){E.value=Ct.getValue()}var Be;if(E.form&&(jt(E.form,"submit",ge),!ee.leaveSubmitMethodAlone)){var $e=E.form;Be=$e.submit;try{var ht=$e.submit=function(){ge(),$e.submit=Be,$e.submit(),$e.submit=ht}}catch(Tt){}}ee.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&&(Mt(E.form,"submit",ge),!ee.leaveSubmitMethodAlone&&typeof E.form.submit=="function"&&(E.form.submit=Be))}},E.style.display="none";var Ct=ki(function(Tt){return E.parentNode.insertBefore(Tt,E.nextSibling)},ee);return Ct}function Rl(E){E.off=Mt,E.on=jt,E.wheelEventPixels=Fu,E.Doc=Sa,E.splitLines=Tn,E.countColumn=Ve,E.findColumn=yt,E.isWordChar=ze,E.Pass=ot,E.signal=ft,E.Line=ln,E.changeEnd=ds,E.scrollbarModel=Bu,E.Pos=tr,E.cmpPos=br,E.modes=jr,E.mimeModes=Rr,E.resolveMode=Dr,E.getMode=Or,E.modeExtensions=Yr,E.extendMode=Kt,E.copyState=xt,E.startState=Ot,E.innerMode=Bt,E.commands=Dl,E.keyMap=ra,E.keyName=dl,E.isModifierKey=lc,E.lookupKey=gs,E.normalizeKeyMap=Qu,E.StringStream=Et,E.SharedTextMarker=Pi,E.TextMarker=Is,E.LineWidget=kl,E.e_preventDefault=sr,E.e_stopPropagation=gr,E.e_stop=zr,E.addClass=Ue,E.contains=Ze,E.rmClass=je,E.keyNames=Ho}sh(ki),cd(ki);var bs="iter insert remove copy getEditor constructor".split(" ");for(var jo in Sa.prototype)Sa.prototype.hasOwnProperty(jo)&&nt(bs,jo)<0&&(ki.prototype[jo]=function(E){return function(){return E.apply(this.doc,arguments)}}(Sa.prototype[jo]));return Ut(Sa),ki.inputStyles={textarea:na,contenteditable:qi},ki.defineMode=function(E){!ki.defaults.mode&&E!="null"&&(ki.defaults.mode=E),Tr.apply(this,arguments)},ki.defineMIME=Sr,ki.defineMode("null",function(){return{token:function(E){return E.skipToEnd()}}}),ki.defineMIME("text/plain","null"),ki.defineExtension=function(E,ee){ki.prototype[E]=ee},ki.defineDocExtension=function(E,ee){Sa.prototype[E]=ee},ki.fromTextArea=hl,Rl(ki),ki.version="5.58.2",ki})},25419:function(or,Ht,ke){(function(Re){Re(ke(89780),ke(15525),ke(98101))})(function(Re){"use strict";Re.defineMode("markdown",function(gt,x){var De=Re.getMode(gt,"text/html"),ve=De.name=="null";function re(Ve){if(Re.findModeByName){var Xe=Re.findModeByName(Ve);Xe&&(Ve=Xe.mime||Xe.mimes[0])}var nt=Re.getMode(gt,Ve);return nt.name=="null"?null:nt}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 ne={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 ne)ne.hasOwnProperty(ie)&&x.tokenTypeOverrides[ie]&&(ne[ie]=x.tokenTypeOverrides[ie]);var oe=/^([*\-_])(?:\s*\1){2,}\s*$/,se=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,me=/^\[(x| )\](?=\s)/i,te=x.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ae=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ue=/^[^#!\[\]*_\\<>` "'(~:]+/,de=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,he=/^\s*\[[^\]]+?\]:.*$/,we=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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 xe(Ve,Xe,nt){return Xe.f=Xe.inline=nt,nt(Ve,Xe)}function ye(Ve,Xe,nt){return Xe.f=Xe.block=nt,nt(Ve,Xe)}function Ae(Ve){return!Ve||!/\S/.test(Ve.string)}function Le(Ve){if(Ve.linkTitle=!1,Ve.linkHref=!1,Ve.linkText=!1,Ve.em=!1,Ve.strong=!1,Ve.strikethrough=!1,Ve.quote=0,Ve.indentedCode=!1,Ve.f==je){var Xe=ve;if(!Xe){var nt=Re.innerMode(De,Ve.htmlState);Xe=nt.mode.name=="xml"&&nt.state.tagStart===null&&!nt.state.context&&nt.state.tokenize.isInText}Xe&&(Ve.f=Ne,Ve.block=Ce,Ve.htmlState=null)}return Ve.trailingSpace=0,Ve.trailingSpaceNewLine=!1,Ve.prevLine=Ve.thisLine,Ve.thisLine={stream:null},null}function Ce(Ve,Xe){var nt=Ve.column()===Xe.indentation,ct=Ae(Xe.prevLine.stream),ot=Xe.indentedCode,et=Xe.prevLine.hr,qe=Xe.list!==!1,it=(Xe.listStack[Xe.listStack.length-1]||0)+3;Xe.indentedCode=!1;var yt=Xe.indentation;if(Xe.indentationDiff===null&&(Xe.indentationDiff=Xe.indentation,qe)){for(Xe.list=null;yt<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=yt-Xe.listStack[Xe.listStack.length-1])}var pt=!ct&&!et&&!Xe.prevLine.header&&(!qe||!ot)&&!Xe.prevLine.fencedCodeEnd,Dt=(Xe.list===!1||et||ct)&&Xe.indentation<=it&&Ve.match(oe),At=null;if(Xe.indentationDiff>=4&&(ot||Xe.prevLine.fencedCodeEnd||Xe.prevLine.header||ct))return Ve.skipToEnd(),Xe.indentedCode=!0,ne.code;if(Ve.eatSpace())return null;if(nt&&Xe.indentation<=it&&(At=Ve.match(te))&&At[1].length<=6)return Xe.quote=0,Xe.header=At[1].length,Xe.thisLine.header=!0,x.highlightFormatting&&(Xe.formatting="header"),Xe.f=Xe.inline,Oe(Xe);if(Xe.indentation<=it&&Ve.eat(">"))return Xe.quote=nt?1:Xe.quote+1,x.highlightFormatting&&(Xe.formatting="quote"),Ve.eatSpace(),Oe(Xe);if(!Dt&&!Xe.setext&&nt&&Xe.indentation<=it&&(At=Ve.match(se))){var st=At[1]?"ol":"ul";return Xe.indentation=yt+Ve.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&&Ve.match(me,!1)&&(Xe.taskList=!0),Xe.f=Xe.inline,x.highlightFormatting&&(Xe.formatting=["list","list-"+st]),Oe(Xe)}else{if(nt&&Xe.indentation<=it&&(At=Ve.match(de,!0)))return Xe.quote=0,Xe.fencedEndRE=new RegExp(At[1]+"+ *$"),Xe.localMode=x.fencedCodeBlockHighlighting&&re(At[2]||x.fencedCodeBlockDefaultMode),Xe.localMode&&(Xe.localState=Re.startState(Xe.localMode)),Xe.f=Xe.block=Me,x.highlightFormatting&&(Xe.formatting="code-block"),Xe.code=-1,Oe(Xe);if(Xe.setext||(!pt||!qe)&&!Xe.quote&&Xe.list===!1&&!Xe.code&&!Dt&&!he.test(Ve.string)&&(At=Ve.lookAhead(1))&&(At=At.match(ae)))return Xe.setext?(Xe.header=Xe.setext,Xe.setext=0,Ve.skipToEnd(),x.highlightFormatting&&(Xe.formatting="header")):(Xe.header=At[0].charAt(0)=="="?1:2,Xe.setext=Xe.header),Xe.thisLine.header=!0,Xe.f=Xe.inline,Oe(Xe);if(Dt)return Ve.skipToEnd(),Xe.hr=!0,Xe.thisLine.hr=!0,ne.hr;if(Ve.peek()==="[")return xe(Ve,Xe,Qe)}return xe(Ve,Xe,Xe.inline)}function je(Ve,Xe){var nt=De.token(Ve,Xe.htmlState);if(!ve){var ct=Re.innerMode(De,Xe.htmlState);(ct.mode.name=="xml"&&ct.state.tagStart===null&&!ct.state.context&&ct.state.tokenize.isInText||Xe.md_inside&&Ve.current().indexOf(">")>-1)&&(Xe.f=Ne,Xe.block=Ce,Xe.htmlState=null)}return nt}function Me(Ve,Xe){var nt=Xe.listStack[Xe.listStack.length-1]||0,ct=Xe.indentation<nt,ot=nt+3;if(Xe.fencedEndRE&&Xe.indentation<=ot&&(ct||Ve.match(Xe.fencedEndRE))){x.highlightFormatting&&(Xe.formatting="code-block");var et;return ct||(et=Oe(Xe)),Xe.localMode=Xe.localState=null,Xe.block=Ce,Xe.f=Ne,Xe.fencedEndRE=null,Xe.code=0,Xe.thisLine.fencedCodeEnd=!0,ct?ye(Ve,Xe,Xe.block):et}else return Xe.localMode?Xe.localMode.token(Ve,Xe.localState):(Ve.skipToEnd(),ne.code)}function Oe(Ve){var Xe=[];if(Ve.formatting){Xe.push(ne.formatting),typeof Ve.formatting=="string"&&(Ve.formatting=[Ve.formatting]);for(var nt=0;nt<Ve.formatting.length;nt++)Xe.push(ne.formatting+"-"+Ve.formatting[nt]),Ve.formatting[nt]==="header"&&Xe.push(ne.formatting+"-"+Ve.formatting[nt]+"-"+Ve.header),Ve.formatting[nt]==="quote"&&(!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=Ve.quote?Xe.push(ne.formatting+"-"+Ve.formatting[nt]+"-"+Ve.quote):Xe.push("error"))}if(Ve.taskOpen)return Xe.push("meta"),Xe.length?Xe.join(" "):null;if(Ve.taskClosed)return Xe.push("property"),Xe.length?Xe.join(" "):null;if(Ve.linkHref?Xe.push(ne.linkHref,"url"):(Ve.strong&&Xe.push(ne.strong),Ve.em&&Xe.push(ne.em),Ve.strikethrough&&Xe.push(ne.strikethrough),Ve.emoji&&Xe.push(ne.emoji),Ve.linkText&&Xe.push(ne.linkText),Ve.code&&Xe.push(ne.code),Ve.image&&Xe.push(ne.image),Ve.imageAltText&&Xe.push(ne.imageAltText,"link"),Ve.imageMarker&&Xe.push(ne.imageMarker)),Ve.header&&Xe.push(ne.header,ne.header+"-"+Ve.header),Ve.quote&&(Xe.push(ne.quote),!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=Ve.quote?Xe.push(ne.quote+"-"+Ve.quote):Xe.push(ne.quote+"-"+x.maxBlockquoteDepth)),Ve.list!==!1){var ct=(Ve.listStack.length-1)%3;ct?ct===1?Xe.push(ne.list2):Xe.push(ne.list3):Xe.push(ne.list1)}return Ve.trailingSpaceNewLine?Xe.push("trailing-space-new-line"):Ve.trailingSpace&&Xe.push("trailing-space-"+(Ve.trailingSpace%2?"a":"b")),Xe.length?Xe.join(" "):null}function Ee(Ve,Xe){if(Ve.match(ue,!0))return Oe(Xe)}function Ne(Ve,Xe){var nt=Xe.text(Ve,Xe);if(typeof nt!="undefined")return nt;if(Xe.list)return Xe.list=null,Oe(Xe);if(Xe.taskList){var ct=Ve.match(me,!0)[1]===" ";return ct?Xe.taskOpen=!0:Xe.taskClosed=!0,x.highlightFormatting&&(Xe.formatting="task"),Xe.taskList=!1,Oe(Xe)}if(Xe.taskOpen=!1,Xe.taskClosed=!1,Xe.header&&Ve.match(/^#+$/,!0))return x.highlightFormatting&&(Xe.formatting="header"),Oe(Xe);var ot=Ve.next();if(Xe.linkTitle){Xe.linkTitle=!1;var et=ot;ot==="("&&(et=")"),et=(et+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var qe="^\\s*(?:[^"+et+"\\\\]+|\\\\\\\\|\\\\.)"+et;if(Ve.match(new RegExp(qe),!0))return ne.linkHref}if(ot==="`"){var it=Xe.formatting;x.highlightFormatting&&(Xe.formatting="code"),Ve.eatWhile("`");var yt=Ve.current().length;if(Xe.code==0&&(!Xe.quote||yt==1))return Xe.code=yt,Oe(Xe);if(yt==Xe.code){var pt=Oe(Xe);return Xe.code=0,pt}else return Xe.formatting=it,Oe(Xe)}else if(Xe.code)return Oe(Xe);if(ot==="\\"&&(Ve.next(),x.highlightFormatting)){var Dt=Oe(Xe),At=ne.formatting+"-escape";return Dt?Dt+" "+At:At}if(ot==="!"&&Ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Xe.imageMarker=!0,Xe.image=!0,x.highlightFormatting&&(Xe.formatting="image"),Oe(Xe);if(ot==="["&&Xe.imageMarker&&Ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Xe.imageMarker=!1,Xe.imageAltText=!0,x.highlightFormatting&&(Xe.formatting="image"),Oe(Xe);if(ot==="]"&&Xe.imageAltText){x.highlightFormatting&&(Xe.formatting="image");var Dt=Oe(Xe);return Xe.imageAltText=!1,Xe.image=!1,Xe.inline=Xe.f=Ze,Dt}if(ot==="["&&!Xe.image)return Xe.linkText&&Ve.match(/^.*?\]/)||(Xe.linkText=!0,x.highlightFormatting&&(Xe.formatting="link")),Oe(Xe);if(ot==="]"&&Xe.linkText){x.highlightFormatting&&(Xe.formatting="link");var Dt=Oe(Xe);return Xe.linkText=!1,Xe.inline=Xe.f=Ve.match(/\(.*?\)| ?\[.*?\]/,!1)?Ze:Ne,Dt}if(ot==="<"&&Ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Xe.f=Xe.inline=_e,x.highlightFormatting&&(Xe.formatting="link");var Dt=Oe(Xe);return Dt?Dt+=" ":Dt="",Dt+ne.linkInline}if(ot==="<"&&Ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Xe.f=Xe.inline=_e,x.highlightFormatting&&(Xe.formatting="link");var Dt=Oe(Xe);return Dt?Dt+=" ":Dt="",Dt+ne.linkEmail}if(x.xml&&ot==="<"&&Ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var st=Ve.string.indexOf(">",Ve.pos);if(st!=-1){var Ge=Ve.string.substring(Ve.start,st);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ge)&&(Xe.md_inside=!0)}return Ve.backUp(1),Xe.htmlState=Re.startState(De),ye(Ve,Xe,je)}if(x.xml&&ot==="<"&&Ve.match(/^\/\w*?>/))return Xe.md_inside=!1,"tag";if(ot==="*"||ot==="_"){for(var We=1,le=Ve.pos==1?" ":Ve.string.charAt(Ve.pos-2);We<3&&Ve.eat(ot);)We++;var fe=Ve.peek()||" ",ze=!/\s/.test(fe)&&(!we.test(fe)||/\s/.test(le)||we.test(le)),He=!/\s/.test(le)&&(!we.test(le)||/\s/.test(fe)||we.test(fe)),pe=null,Ie=null;if(We%2&&(!Xe.em&&ze&&(ot==="*"||!He||we.test(le))?pe=!0:Xe.em==ot&&He&&(ot==="*"||!ze||we.test(fe))&&(pe=!1)),We>1&&(!Xe.strong&&ze&&(ot==="*"||!He||we.test(le))?Ie=!0:Xe.strong==ot&&He&&(ot==="*"||!ze||we.test(fe))&&(Ie=!1)),Ie!=null||pe!=null){x.highlightFormatting&&(Xe.formatting=pe==null?"strong":Ie==null?"em":"strong em"),pe===!0&&(Xe.em=ot),Ie===!0&&(Xe.strong=ot);var pt=Oe(Xe);return pe===!1&&(Xe.em=!1),Ie===!1&&(Xe.strong=!1),pt}}else if(ot===" "&&(Ve.eat("*")||Ve.eat("_"))){if(Ve.peek()===" ")return Oe(Xe);Ve.backUp(1)}if(x.strikethrough){if(ot==="~"&&Ve.eatWhile(ot)){if(Xe.strikethrough){x.highlightFormatting&&(Xe.formatting="strikethrough");var pt=Oe(Xe);return Xe.strikethrough=!1,pt}else if(Ve.match(/^[^\s]/,!1))return Xe.strikethrough=!0,x.highlightFormatting&&(Xe.formatting="strikethrough"),Oe(Xe)}else if(ot===" "&&Ve.match(/^~~/,!0)){if(Ve.peek()===" ")return Oe(Xe);Ve.backUp(2)}}if(x.emoji&&ot===":"&&Ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Xe.emoji=!0,x.highlightFormatting&&(Xe.formatting="emoji");var Ke=Oe(Xe);return Xe.emoji=!1,Ke}return ot===" "&&(Ve.match(/^ +$/,!1)?Xe.trailingSpace++:Xe.trailingSpace&&(Xe.trailingSpaceNewLine=!0)),Oe(Xe)}function _e(Ve,Xe){var nt=Ve.next();if(nt===">"){Xe.f=Xe.inline=Ne,x.highlightFormatting&&(Xe.formatting="link");var ct=Oe(Xe);return ct?ct+=" ":ct="",ct+ne.linkInline}return Ve.match(/^[^>]+/,!0),ne.linkInline}function Ze(Ve,Xe){if(Ve.eatSpace())return null;var nt=Ve.next();return nt==="("||nt==="["?(Xe.f=Xe.inline=Ue(nt==="("?")":"]"),x.highlightFormatting&&(Xe.formatting="link-string"),Xe.linkHref=!0,Oe(Xe)):"error"}var Pe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ue(Ve){return function(Xe,nt){var ct=Xe.next();if(ct===Ve){nt.f=nt.inline=Ne,x.highlightFormatting&&(nt.formatting="link-string");var ot=Oe(nt);return nt.linkHref=!1,ot}return Xe.match(Pe[Ve]),nt.linkHref=!0,Oe(nt)}}function Qe(Ve,Xe){return Ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(Xe.f=tt,Ve.next(),x.highlightFormatting&&(Xe.formatting="link"),Xe.linkText=!0,Oe(Xe)):xe(Ve,Xe,Ne)}function tt(Ve,Xe){if(Ve.match(/^\]:/,!0)){Xe.f=Xe.inline=at,x.highlightFormatting&&(Xe.formatting="link");var nt=Oe(Xe);return Xe.linkText=!1,nt}return Ve.match(/^([^\]\\]|\\.)+/,!0),ne.linkText}function at(Ve,Xe){return Ve.eatSpace()?null:(Ve.match(/^[^\s]+/,!0),Ve.peek()===void 0?Xe.linkTitle=!0:Ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Xe.f=Xe.inline=Ne,ne.linkHref+" url")}var lt={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:Ne,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(Ve){return{f:Ve.f,prevLine:Ve.prevLine,thisLine:Ve.thisLine,block:Ve.block,htmlState:Ve.htmlState&&Re.copyState(De,Ve.htmlState),indentation:Ve.indentation,localMode:Ve.localMode,localState:Ve.localMode?Re.copyState(Ve.localMode,Ve.localState):null,inline:Ve.inline,text:Ve.text,formatting:!1,linkText:Ve.linkText,linkTitle:Ve.linkTitle,linkHref:Ve.linkHref,code:Ve.code,em:Ve.em,strong:Ve.strong,strikethrough:Ve.strikethrough,emoji:Ve.emoji,header:Ve.header,setext:Ve.setext,hr:Ve.hr,taskList:Ve.taskList,list:Ve.list,listStack:Ve.listStack.slice(0),quote:Ve.quote,indentedCode:Ve.indentedCode,trailingSpace:Ve.trailingSpace,trailingSpaceNewLine:Ve.trailingSpaceNewLine,md_inside:Ve.md_inside,fencedEndRE:Ve.fencedEndRE}},token:function(Ve,Xe){if(Xe.formatting=!1,Ve!=Xe.thisLine.stream){if(Xe.header=0,Xe.hr=!1,Ve.match(/^\s*$/,!0))return Le(Xe),null;if(Xe.prevLine=Xe.thisLine,Xe.thisLine={stream:Ve},Xe.taskList=!1,Xe.trailingSpace=0,Xe.trailingSpaceNewLine=!1,!Xe.localState&&(Xe.f=Xe.block,Xe.f!=je)){var nt=Ve.match(/^\s*/,!0)[0].replace(/\t/g,Se).length;if(Xe.indentation=nt,Xe.indentationDiff=null,nt>0)return null}}return Xe.f(Ve,Xe)},innerMode:function(Ve){return Ve.block==je?{state:Ve.htmlState,mode:De}:Ve.localState?{state:Ve.localState,mode:Ve.localMode}:{state:Ve,mode:lt}},indent:function(Ve,Xe,nt){return Ve.block==je&&De.indent?De.indent(Ve.htmlState,Xe,nt):Ve.localState&&Ve.localMode.indent?Ve.localMode.indent(Ve.localState,Xe,nt):Re.Pass},blankLine:Le,getType:Oe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return lt},"xml"),Re.defineMIME("text/markdown","markdown"),Re.defineMIME("text/x-markdown","markdown")})},98101:function(or,Ht,ke){(function(Re){Re(ke(89780))})(function(Re){"use strict";Re.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 gt=0;gt<Re.modeInfo.length;gt++){var x=Re.modeInfo[gt];x.mimes&&(x.mime=x.mimes[0])}Re.findModeByMIME=function(De){De=De.toLowerCase();for(var ve=0;ve<Re.modeInfo.length;ve++){var re=Re.modeInfo[ve];if(re.mime==De)return re;if(re.mimes){for(var ne=0;ne<re.mimes.length;ne++)if(re.mimes[ne]==De)return re}}if(/\+xml$/.test(De))return Re.findModeByMIME("application/xml");if(/\+json$/.test(De))return Re.findModeByMIME("application/json")},Re.findModeByExtension=function(De){De=De.toLowerCase();for(var ve=0;ve<Re.modeInfo.length;ve++){var re=Re.modeInfo[ve];if(re.ext){for(var ne=0;ne<re.ext.length;ne++)if(re.ext[ne]==De)return re}}},Re.findModeByFileName=function(De){for(var ve=0;ve<Re.modeInfo.length;ve++){var re=Re.modeInfo[ve];if(re.file&&re.file.test(De))return re}var ne=De.lastIndexOf("."),ie=ne>-1&&De.substring(ne+1,De.length);if(ie)return Re.findModeByExtension(ie)},Re.findModeByName=function(De){De=De.toLowerCase();for(var ve=0;ve<Re.modeInfo.length;ve++){var re=Re.modeInfo[ve];if(re.name.toLowerCase()==De)return re;if(re.alias){for(var ne=0;ne<re.alias.length;ne++)if(re.alias[ne].toLowerCase()==De)return re}}}})},67549:function(or,Ht,ke){(function(Re){Re(ke(89780))})(function(Re){"use strict";Re.defineMode("stex",function(gt,x){"use strict";function De(ue,de){ue.cmdState.push(de)}function ve(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 ne(ue){for(var de=ue.cmdState,he=de.length-1;he>=0;he--){var we=de[he];if(we.name!="DEFAULT")return we}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 me(ue,de){var he;if(ue.match(/^\\[a-zA-Z@]+/)){var we=ue.current().slice(1);return he=oe.hasOwnProperty(we)?oe[we]:oe.DEFAULT,he=new he,De(de,he),se(de,ae),he.style}if(ue.match(/^\\[$&%#{}_]/)||ue.match(/^\\[,;!\/\\]/))return"tag";if(ue.match("\\["))return se(de,function(xe,ye){return te(xe,ye,"\\]")}),"keyword";if(ue.match("\\("))return se(de,function(xe,ye){return te(xe,ye,"\\)")}),"keyword";if(ue.match("$$"))return se(de,function(xe,ye){return te(xe,ye,"$$")}),"keyword";if(ue.match("$"))return se(de,function(xe,ye){return te(xe,ye,"$")}),"keyword";var Se=ue.next();if(Se=="%")return ue.skipToEnd(),"comment";if(Se=="}"||Se=="]"){if(he=ve(de),he)he.closeBracket(Se),se(de,ae);else return"error";return"bracket"}else return Se=="{"||Se=="["?(he=oe.DEFAULT,he=new he,De(de,he),"bracket"):/\d/.test(Se)?(ue.eatWhile(/[\w.%]/),"atom"):(ue.eatWhile(/[\w\-_]/),he=ne(de),he.name=="begin"&&(he.argument=ue.current()),he.styleIdentifier())}function te(ue,de,he){if(ue.eatSpace())return null;if(he&&ue.match(he))return se(de,me),"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 we=ue.next();return we=="{"||we=="}"||we=="["||we=="]"||we=="("||we==")"?"bracket":we=="%"?(ue.skipToEnd(),"comment"):"error"}function ae(ue,de){var he=ue.peek(),we;return he=="{"||he=="["?(we=ve(de),we.openBracket(he),ue.eat(he),se(de,me),"bracket"):/[ \t\r]/.test(he)?(ue.eat(he),null):(se(de,me),re(de),me(ue,de))}return{startState:function(){var ue=x.inMathMode?function(de,he){return te(de,he)}:me;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=me,ue.cmdState.length=0},lineComment:"%"}}),Re.defineMIME("text/x-stex","stex"),Re.defineMIME("text/x-latex","stex")})},15525:function(or,Ht,ke){(function(Re){Re(ke(89780))})(function(Re){"use strict";var gt={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};Re.defineMode("xml",function(De,ve){var re=De.indentUnit,ne={},ie=ve.htmlMode?gt:x;for(var oe in ie)ne[oe]=ie[oe];for(var oe in ve)ne[oe]=ve[oe];var se,me;function te(_e,Ze){function Pe(tt){return Ze.tokenize=tt,tt(_e,Ze)}var Ue=_e.next();if(Ue=="<")return _e.eat("!")?_e.eat("[")?_e.match("CDATA[")?Pe(de("atom","]]>")):null:_e.match("--")?Pe(de("comment","-->")):_e.match("DOCTYPE",!0,!0)?(_e.eatWhile(/[\w\._\-]/),Pe(he(1))):null:_e.eat("?")?(_e.eatWhile(/[\w\._\-]/),Ze.tokenize=de("meta","?>"),"meta"):(se=_e.eat("/")?"closeTag":"openTag",Ze.tokenize=ae,"tag bracket");if(Ue=="&"){var Qe;return _e.eat("#")?_e.eat("x")?Qe=_e.eatWhile(/[a-fA-F\d]/)&&_e.eat(";"):Qe=_e.eatWhile(/[\d]/)&&_e.eat(";"):Qe=_e.eatWhile(/[\w\.\-:]/)&&_e.eat(";"),Qe?"atom":"error"}else return _e.eatWhile(/[^&<]/),null}te.isInText=!0;function ae(_e,Ze){var Pe=_e.next();if(Pe==">"||Pe=="/"&&_e.eat(">"))return Ze.tokenize=te,se=Pe==">"?"endTag":"selfcloseTag","tag bracket";if(Pe=="=")return se="equals",null;if(Pe=="<"){Ze.tokenize=te,Ze.state=ye,Ze.tagName=Ze.tagStart=null;var Ue=Ze.tokenize(_e,Ze);return Ue?Ue+" tag error":"tag error"}else return/[\'\"]/.test(Pe)?(Ze.tokenize=ue(Pe),Ze.stringStartCol=_e.column(),Ze.tokenize(_e,Ze)):(_e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ue(_e){var Ze=function(Pe,Ue){for(;!Pe.eol();)if(Pe.next()==_e){Ue.tokenize=ae;break}return"string"};return Ze.isInAttribute=!0,Ze}function de(_e,Ze){return function(Pe,Ue){for(;!Pe.eol();){if(Pe.match(Ze)){Ue.tokenize=te;break}Pe.next()}return _e}}function he(_e){return function(Ze,Pe){for(var Ue;(Ue=Ze.next())!=null;){if(Ue=="<")return Pe.tokenize=he(_e+1),Pe.tokenize(Ze,Pe);if(Ue==">")if(_e==1){Pe.tokenize=te;break}else return Pe.tokenize=he(_e-1),Pe.tokenize(Ze,Pe)}return"meta"}}function we(_e,Ze,Pe){this.prev=_e.context,this.tagName=Ze,this.indent=_e.indented,this.startOfLine=Pe,(ne.doNotIndent.hasOwnProperty(Ze)||_e.context&&_e.context.noIndent)&&(this.noIndent=!0)}function Se(_e){_e.context&&(_e.context=_e.context.prev)}function xe(_e,Ze){for(var Pe;;){if(!_e.context||(Pe=_e.context.tagName,!ne.contextGrabbers.hasOwnProperty(Pe)||!ne.contextGrabbers[Pe].hasOwnProperty(Ze)))return;Se(_e)}}function ye(_e,Ze,Pe){return _e=="openTag"?(Pe.tagStart=Ze.column(),Ae):_e=="closeTag"?Le:ye}function Ae(_e,Ze,Pe){return _e=="word"?(Pe.tagName=Ze.current(),me="tag",Me):ne.allowMissingTagName&&_e=="endTag"?(me="tag bracket",Me(_e,Ze,Pe)):(me="error",Ae)}function Le(_e,Ze,Pe){if(_e=="word"){var Ue=Ze.current();return Pe.context&&Pe.context.tagName!=Ue&&ne.implicitlyClosed.hasOwnProperty(Pe.context.tagName)&&Se(Pe),Pe.context&&Pe.context.tagName==Ue||ne.matchClosing===!1?(me="tag",Ce):(me="tag error",je)}else return ne.allowMissingTagName&&_e=="endTag"?(me="tag bracket",Ce(_e,Ze,Pe)):(me="error",je)}function Ce(_e,Ze,Pe){return _e!="endTag"?(me="error",Ce):(Se(Pe),ye)}function je(_e,Ze,Pe){return me="error",Ce(_e,Ze,Pe)}function Me(_e,Ze,Pe){if(_e=="word")return me="attribute",Oe;if(_e=="endTag"||_e=="selfcloseTag"){var Ue=Pe.tagName,Qe=Pe.tagStart;return Pe.tagName=Pe.tagStart=null,_e=="selfcloseTag"||ne.autoSelfClosers.hasOwnProperty(Ue)?xe(Pe,Ue):(xe(Pe,Ue),Pe.context=new we(Pe,Ue,Qe==Pe.indented)),ye}return me="error",Me}function Oe(_e,Ze,Pe){return _e=="equals"?Ee:(ne.allowMissing||(me="error"),Me(_e,Ze,Pe))}function Ee(_e,Ze,Pe){return _e=="string"?Ne:_e=="word"&&ne.allowUnquoted?(me="string",Me):(me="error",Me(_e,Ze,Pe))}function Ne(_e,Ze,Pe){return _e=="string"?Ne:Me(_e,Ze,Pe)}return{startState:function(_e){var Ze={tokenize:te,state:ye,indented:_e||0,tagName:null,tagStart:null,context:null};return _e!=null&&(Ze.baseIndent=_e),Ze},token:function(_e,Ze){if(!Ze.tagName&&_e.sol()&&(Ze.indented=_e.indentation()),_e.eatSpace())return null;se=null;var Pe=Ze.tokenize(_e,Ze);return(Pe||se)&&Pe!="comment"&&(me=null,Ze.state=Ze.state(se||Pe,_e,Ze),me&&(Pe=me=="error"?Pe+" error":me)),Pe},indent:function(_e,Ze,Pe){var Ue=_e.context;if(_e.tokenize.isInAttribute)return _e.tagStart==_e.indented?_e.stringStartCol+1:_e.indented+re;if(Ue&&Ue.noIndent)return Re.Pass;if(_e.tokenize!=ae&&_e.tokenize!=te)return Pe?Pe.match(/^(\s*)/)[0].length:0;if(_e.tagName)return ne.multilineTagIndentPastTag!==!1?_e.tagStart+_e.tagName.length+2:_e.tagStart+re*(ne.multilineTagIndentFactor||1);if(ne.alignCDATA&&/<!\[CDATA\[/.test(Ze))return 0;var Qe=Ze&&/^<(\/)?([\w_:\.-]*)/.exec(Ze);if(Qe&&Qe[1])for(;Ue;)if(Ue.tagName==Qe[2]){Ue=Ue.prev;break}else if(ne.implicitlyClosed.hasOwnProperty(Ue.tagName))Ue=Ue.prev;else break;else if(Qe)for(;Ue;){var tt=ne.contextGrabbers[Ue.tagName];if(tt&&tt.hasOwnProperty(Qe[2]))Ue=Ue.prev;else break}for(;Ue&&Ue.prev&&!Ue.startOfLine;)Ue=Ue.prev;return Ue?Ue.indent+re:_e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ne.htmlMode?"html":"xml",helperType:ne.htmlMode?"html":"xml",skipAttribute:function(_e){_e.state==Ee&&(_e.state=Me)},xmlCurrentTag:function(_e){return _e.tagName?{name:_e.tagName,close:_e.type=="closeTag"}:null},xmlCurrentContext:function(_e){for(var Ze=[],Pe=_e.context;Pe;Pe=Pe.prev)Pe.tagName&&Ze.push(Pe.tagName);return Ze.reverse()}}}),Re.defineMIME("text/xml","xml"),Re.defineMIME("application/xml","xml"),Re.mimeModes.hasOwnProperty("text/html")||Re.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(or,Ht,ke){var Re,gt;(function(x,De){or.exports=De(x)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ke.g!="undefined"?ke.g:this,function(x){"use strict";x=x||{};var De=x.Base64,ve="2.6.4",re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ne=function(Pe){for(var Ue={},Qe=0,tt=Pe.length;Qe<tt;Qe++)Ue[Pe.charAt(Qe)]=Qe;return Ue}(re),ie=String.fromCharCode,oe=function(Pe){if(Pe.length<2){var Ue=Pe.charCodeAt(0);return Ue<128?Pe:Ue<2048?ie(192|Ue>>>6)+ie(128|Ue&63):ie(224|Ue>>>12&15)+ie(128|Ue>>>6&63)+ie(128|Ue&63)}else{var Ue=65536+(Pe.charCodeAt(0)-55296)*1024+(Pe.charCodeAt(1)-56320);return ie(240|Ue>>>18&7)+ie(128|Ue>>>12&63)+ie(128|Ue>>>6&63)+ie(128|Ue&63)}},se=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,me=function(Pe){return Pe.replace(se,oe)},te=function(Pe){var Ue=[0,2,1][Pe.length%3],Qe=Pe.charCodeAt(0)<<16|(Pe.length>1?Pe.charCodeAt(1):0)<<8|(Pe.length>2?Pe.charCodeAt(2):0),tt=[re.charAt(Qe>>>18),re.charAt(Qe>>>12&63),Ue>=2?"=":re.charAt(Qe>>>6&63),Ue>=1?"=":re.charAt(Qe&63)];return tt.join("")},ae=x.btoa&&typeof x.btoa=="function"?function(Pe){return x.btoa(Pe)}:function(Pe){if(Pe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Pe.replace(/[\s\S]{1,3}/g,te)},ue=function(Pe){return ae(me(String(Pe)))},de=function(Pe){return Pe.replace(/[+\/]/g,function(Ue){return Ue=="+"?"-":"_"}).replace(/=/g,"")},he=function(Pe,Ue){return Ue?de(ue(Pe)):ue(Pe)},we=function(Pe){return he(Pe,!0)},Se;x.Uint8Array&&(Se=function(Pe,Ue){for(var Qe="",tt=0,at=Pe.length;tt<at;tt+=3){var lt=Pe[tt],Ve=Pe[tt+1],Xe=Pe[tt+2],nt=lt<<16|Ve<<8|Xe;Qe+=re.charAt(nt>>>18)+re.charAt(nt>>>12&63)+(typeof Ve!="undefined"?re.charAt(nt>>>6&63):"=")+(typeof Xe!="undefined"?re.charAt(nt&63):"=")}return Ue?de(Qe):Qe});var xe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ye=function(Pe){switch(Pe.length){case 4:var Ue=(7&Pe.charCodeAt(0))<<18|(63&Pe.charCodeAt(1))<<12|(63&Pe.charCodeAt(2))<<6|63&Pe.charCodeAt(3),Qe=Ue-65536;return ie((Qe>>>10)+55296)+ie((Qe&1023)+56320);case 3:return ie((15&Pe.charCodeAt(0))<<12|(63&Pe.charCodeAt(1))<<6|63&Pe.charCodeAt(2));default:return ie((31&Pe.charCodeAt(0))<<6|63&Pe.charCodeAt(1))}},Ae=function(Pe){return Pe.replace(xe,ye)},Le=function(Pe){var Ue=Pe.length,Qe=Ue%4,tt=(Ue>0?ne[Pe.charAt(0)]<<18:0)|(Ue>1?ne[Pe.charAt(1)]<<12:0)|(Ue>2?ne[Pe.charAt(2)]<<6:0)|(Ue>3?ne[Pe.charAt(3)]:0),at=[ie(tt>>>16),ie(tt>>>8&255),ie(tt&255)];return at.length-=[0,0,2,1][Qe],at.join("")},Ce=x.atob&&typeof x.atob=="function"?function(Pe){return x.atob(Pe)}:function(Pe){return Pe.replace(/\S{1,4}/g,Le)},je=function(Pe){return Ce(String(Pe).replace(/[^A-Za-z0-9\+\/]/g,""))},Me=function(Pe){return Ae(Ce(Pe))},Oe=function(Pe){return String(Pe).replace(/[-_]/g,function(Ue){return Ue=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Pe){return Me(Oe(Pe))},Ne;x.Uint8Array&&(Ne=function(Pe){return Uint8Array.from(je(Oe(Pe)),function(Ue){return Ue.charCodeAt(0)})});var _e=function(){var Pe=x.Base64;return x.Base64=De,Pe};if(x.Base64={VERSION:ve,atob:je,btoa:ae,fromBase64:Ee,toBase64:he,utob:me,encode:he,encodeURI:we,btou:Ae,decode:Ee,noConflict:_e,fromUint8Array:Se,toUint8Array:Ne},typeof Object.defineProperty=="function"){var Ze=function(Pe){return{value:Pe,enumerable:!1,writable:!0,configurable:!0}};x.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ze(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",Ze(function(Pe){return he(this,Pe)})),Object.defineProperty(String.prototype,"toBase64URI",Ze(function(){return he(this,!0)}))}}return x.Meteor&&(Base64=x.Base64),or.exports?or.exports.Base64=x.Base64:(Re=[],gt=function(){return x.Base64}.apply(Ht,Re),gt!==void 0&&(or.exports=gt)),{Base64:x.Base64}})},2859:function(or,Ht,ke){"use strict";ke.d(Ht,{hP:function(){return Ge}});var Re=function(We,le){return(Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ze){fe.__proto__=ze}||function(fe,ze){for(var He in ze)Object.prototype.hasOwnProperty.call(ze,He)&&(fe[He]=ze[He])})(We,le)};function gt(We,le){function fe(){this.constructor=We}Re(We,le),We.prototype=le===null?Object.create(le):(fe.prototype=le.prototype,new fe)}function x(We,le,fe,ze){return new(fe||(fe=Promise))(function(He,pe){function Ie(Je){try{Ye(ze.next(Je))}catch(dt){pe(dt)}}function Ke(Je){try{Ye(ze.throw(Je))}catch(dt){pe(dt)}}function Ye(Je){var dt;Je.done?He(Je.value):(dt=Je.value,dt instanceof fe?dt:new fe(function(bt){bt(dt)})).then(Ie,Ke)}Ye((ze=ze.apply(We,le||[])).next())})}function De(We,le){var fe,ze,He,pe,Ie={label:0,sent:function(){if(1&He[0])throw He[1];return He[1]},trys:[],ops:[]};return pe={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(pe[Symbol.iterator]=function(){return this}),pe;function Ke(Ye){return function(Je){return function(dt){if(fe)throw new TypeError("Generator is already executing.");for(;Ie;)try{if(fe=1,ze&&(He=2&dt[0]?ze.return:dt[0]?ze.throw||((He=ze.return)&&He.call(ze),0):ze.next)&&!(He=He.call(ze,dt[1])).done)return He;switch(ze=0,He&&(dt=[2&dt[0],He.value]),dt[0]){case 0:case 1:He=dt;break;case 4:return Ie.label++,{value:dt[1],done:!1};case 5:Ie.label++,ze=dt[1],dt=[0];continue;case 7:dt=Ie.ops.pop(),Ie.trys.pop();continue;default:if(He=Ie.trys,!((He=He.length>0&&He[He.length-1])||dt[0]!==6&&dt[0]!==2)){Ie=0;continue}if(dt[0]===3&&(!He||dt[1]>He[0]&&dt[1]<He[3])){Ie.label=dt[1];break}if(dt[0]===6&&Ie.label<He[1]){Ie.label=He[1],He=dt;break}if(He&&Ie.label<He[2]){Ie.label=He[2],Ie.ops.push(dt);break}He[2]&&Ie.ops.pop(),Ie.trys.pop();continue}dt=le.call(We,Ie)}catch(bt){dt=[6,bt],ze=0}finally{fe=He=0}if(5&dt[0])throw dt[1];return{value:dt[0]?dt[1]:void 0,done:!0}}([Ye,Je])}}}function ve(){for(var We=0,le=0,fe=arguments.length;le<fe;le++)We+=arguments[le].length;var ze=Array(We),He=0;for(le=0;le<fe;le++)for(var pe=arguments[le],Ie=0,Ke=pe.length;Ie<Ke;Ie++,He++)ze[He]=pe[Ie];return ze}var re=function(){function We(){}return We.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},We.setAttributes=function(le,fe){for(var ze=0,He=fe;ze<He.length;ze++){var pe=He[ze],Ie=pe[0],Ke=pe[1];le.setAttribute(Ie,Ke)}},We.createRect=function(le,fe,ze){var He=document.createElementNS("http://www.w3.org/2000/svg","rect");return He.setAttribute("width",le.toString()),He.setAttribute("height",fe.toString()),ze&&We.setAttributes(He,ze),He},We.createLine=function(le,fe,ze,He,pe){var Ie=document.createElementNS("http://www.w3.org/2000/svg","line");return Ie.setAttribute("x1",le.toString()),Ie.setAttribute("y1",fe.toString()),Ie.setAttribute("x2",ze.toString()),Ie.setAttribute("y2",He.toString()),pe&&We.setAttributes(Ie,pe),Ie},We.createPolygon=function(le,fe){var ze=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ze.setAttribute("points",le),fe&&We.setAttributes(ze,fe),ze},We.createCircle=function(le,fe){var ze=document.createElementNS("http://www.w3.org/2000/svg","circle");return ze.setAttribute("cx",(le/2).toString()),ze.setAttribute("cy",(le/2).toString()),ze.setAttribute("r",le.toString()),fe&&We.setAttributes(ze,fe),ze},We.createEllipse=function(le,fe,ze){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()),ze&&We.setAttributes(He,ze),He},We.createGroup=function(le){var fe=document.createElementNS("http://www.w3.org/2000/svg","g");return le&&We.setAttributes(fe,le),fe},We.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},We.createMarker=function(le,fe,ze,He,pe,Ie,Ke){var Ye=document.createElementNS("http://www.w3.org/2000/svg","marker");return We.setAttributes(Ye,[["id",le],["orient",fe],["markerWidth",ze.toString()],["markerHeight",He.toString()],["refX",pe.toString()],["refY",Ie.toString()]]),Ye.appendChild(Ke),Ye},We.createText=function(le){var fe=document.createElementNS("http://www.w3.org/2000/svg","text");return fe.setAttribute("x","0"),fe.setAttribute("y","0"),le&&We.setAttributes(fe,le),fe},We.createTSpan=function(le,fe){var ze=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ze.textContent=le,fe&&We.setAttributes(ze,fe),ze},We.createImage=function(le){var fe=document.createElementNS("http://www.w3.org/2000/svg","image");return le&&We.setAttributes(fe,le),fe},We.createPoint=function(le,fe){var ze=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ze.x=le,ze.y=fe,ze},We.createPath=function(le,fe){var ze=document.createElementNS("http://www.w3.org/2000/svg","path");return ze.setAttribute("d",le),fe&&We.setAttributes(ze,fe),ze},We}(),ne=function(){function We(){}return We.addKey=function(le){We.key=le},Object.defineProperty(We,"isLicensed",{get:function(){return!!We.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(We.key)},enumerable:!1,configurable:!0}),We}(),ie=function(){function We(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return We.prototype.rasterize=function(le,fe,ze){var He=this;return new Promise(function(pe){var Ie=ze!==void 0?ze:document.createElement("canvas");le===null&&(He.markersOnly=!0,He.naturalSize=!1);var Ke=document.createElementNS("http://www.w3.org/2000/svg","svg");Ke.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ke.setAttribute("width",fe.width.baseVal.valueAsString),Ke.setAttribute("height",fe.height.baseVal.valueAsString),Ke.setAttribute("viewBox","0 0 "+fe.viewBox.baseVal.width.toString()+" "+fe.viewBox.baseVal.height.toString()),Ke.innerHTML=fe.innerHTML,He.naturalSize===!0?(Ke.width.baseVal.value=le.naturalWidth,Ke.height.baseVal.value=le.naturalHeight):He.width!==void 0&&He.height!==void 0&&(Ke.width.baseVal.value=He.width,Ke.height.baseVal.value=He.height),Ie.width=Ke.width.baseVal.value,Ie.height=Ke.height.baseVal.value;var Ye=Ke.outerHTML,Je=Ie.getContext("2d");He.markersOnly!==!0&&Je.drawImage(le,0,0,Ie.width,Ie.height);var dt=window.URL,bt=new Image(Ie.width,Ie.height);bt.setAttribute("crossOrigin","anonymous");var vt=new Blob([Ye],{type:"image/svg+xml"}),It=dt.createObjectURL(vt);bt.onload=function(){Je.drawImage(bt,0,0),dt.revokeObjectURL(It);var Vt=Ie.toDataURL(He.imageType,He.imageQuality);pe(Vt)},bt.src=It})},We}(),oe=function(){},se=function(){function We(le){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+le+"_"}return Object.defineProperty(We.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(We.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(We.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),We.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},We.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)},We.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 me("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new me("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new me("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new te("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new te("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},We.prototype.removeStyleSheet=function(){var le;this.styleSheet&&(((le=this.styleSheetRoot)!==null&&le!==void 0?le:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},We}(),me=function(We,le){this.selector=We,this.style=le},te=function(We,le){this.localName=We,this.style=le},ae=function(){function We(le,fe,ze,He,pe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=le,this.displayMode=fe,this.markerItems=ze,this.uiStyleSettings=He,this.styles=pe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return We.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 ze=document.createElement("div");ze.className=this.toolbarBlockStyleClass.name,ze.style.whiteSpace="nowrap",this.uiContainer.appendChild(ze),this.addActionButton(ze,'<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(ze,'<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(ze,'<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(ze,'<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(ze,'<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(ze,'<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(ze,'<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(ze,'<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(pe){var Ie=document.createElement("div");Ie.className=""+fe.toolbarButtonStyleClass.name,Ie.setAttribute("data-type-name",pe.typeName),Ie.innerHTML=pe.icon,Ie.addEventListener("click",function(){fe.markerToolbarButtonClicked(Ie,pe)}),fe.buttons.push(Ie),fe.markerButtons.push(Ie)}),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()},We.prototype.addButtonClickListener=function(le){this.buttonClickListeners.push(le)},We.prototype.removeButtonClickListener=function(le){this.buttonClickListeners.indexOf(le)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(le),1)},We.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},We.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]))}},We.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")},We.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)})},We.prototype.addActionButton=function(le,fe,ze){var He=this,pe=document.createElement("div");switch(pe.className=""+this.toolbarButtonStyleClass.name,pe.innerHTML=fe,pe.setAttribute("data-action",ze),pe.addEventListener("click",function(){He.actionToolbarButtonClicked(pe,ze)}),ze){case"select":pe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":pe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":pe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":pe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":pe.style.fill=this.uiStyleSettings.closeButtonColor}le.appendChild(pe),this.buttons.push(pe)},We.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new te("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 te("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new te("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new te("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 te("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var le=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new te("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 te("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new te("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new me("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new me("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},We.prototype.markerToolbarButtonClicked=function(le,fe){this.setActiveButton(le),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ze){return ze("marker",fe)}),this.markerButtonOverflowBlock.style.display="none"},We.prototype.actionToolbarButtonClicked=function(le,fe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ze){return ze("action",fe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},We.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)},We.prototype.setActiveMarkerButton=function(le){var fe=this.markerButtons.find(function(ze){return ze.getAttribute("data-type-name")===le});fe&&this.setActiveButton(fe)},We.prototype.setCurrentMarker=function(le){var fe=this;this.currentMarker=le,this.buttons.filter(function(ze){return/delete|notes/.test(ze.getAttribute("data-action"))}).forEach(function(ze){fe.currentMarker===void 0?(ze.style.fillOpacity="0.4",ze.style.pointerEvents="none"):(ze.style.fillOpacity="1",ze.style.pointerEvents="all")})},We}(),ue=function(){function We(le,fe,ze,He){this.panels=[],this.panelButtons=[],this.markerjsContainer=le,this.displayMode=fe,this.uiStyleSettings=ze,this.styles=He,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return We.prototype.addStyles=function(){var le;this.toolboxStyleClass=this.styles.addClass(new te("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 te("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var fe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new te("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new te("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new te("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 te("toolbox-panel-row_colors",`
|
|
|
background-color: `+((le=this.uiStyleSettings.toolboxBackgroundColor)!==null&&le!==void 0?le:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new te("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 te("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new te("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new me("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new me("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},We.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)},We.prototype.setPanelButtons=function(le){var fe,ze,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+" "+((ze=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ze!==void 0?ze:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(pe){var Ie;pe.uiStyleSettings=He.uiStyleSettings;var Ke=document.createElement("div");Ke.className=He.toolboxButtonStyleClass.name+" "+((Ie=He.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ie!==void 0?Ie:He.toolboxButtonStyleColorsClass.name),Ke.innerHTML=pe.icon,Ke.title=pe.title,Ke.addEventListener("click",function(){He.panelButtonClick(pe)}),He.panelButtons.push(Ke),He.buttonRow.appendChild(Ke)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},We.prototype.panelButtonClick=function(le){var fe=this,ze=-1;if(le!==this.activePanel){ze=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(pe,Ie){var Ke,Ye;pe.className=fe.toolboxButtonStyleClass.name+" "+(Ie===ze?""+((Ke=fe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ke!==void 0?Ke:fe.toolboxActiveButtonStyleColorsClass.name):""+((Ye=fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ye!==void 0?Ye:fe.toolboxButtonStyleColorsClass.name))})},We}(),de=function(We,le){this.title=We,this.icon=le},he=function(We){function le(fe,ze,He,pe){var Ie=We.call(this,fe,pe||'<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 Ie.colors=[],Ie.addTransparent=!1,Ie.colorBoxes=[],Ie.colors=ze,Ie.currentColor=He,Ie.setCurrentColor=Ie.setCurrentColor.bind(Ie),Ie.getColorBox=Ie.getColorBox.bind(Ie),Ie}return gt(le,We),le.prototype.getUi=function(){var fe=this,ze=document.createElement("div");return ze.style.overflow="hidden",ze.style.whiteSpace="nowrap",this.colors.forEach(function(He){var pe=fe.getColorBox(He);ze.appendChild(pe),fe.colorBoxes.push(pe)}),ze},le.prototype.getColorBox=function(fe){var ze=this,He=this.uiStyleSettings.toolbarHeight/4,pe=this.uiStyleSettings.toolbarHeight-He,Ie=document.createElement("div");Ie.style.display="inline-block",Ie.style.boxSizing="content-box",Ie.style.width=pe-2+"px",Ie.style.height=pe-2+"px",Ie.style.padding="1px",Ie.style.marginRight="2px",Ie.style.marginBottom="2px",Ie.style.borderWidth="2px",Ie.style.borderStyle="solid",Ie.style.borderRadius=(pe+2)/2+"px",Ie.style.borderColor=fe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ie.addEventListener("click",function(){ze.setCurrentColor(fe,Ie)});var Ke=document.createElement("div");return Ke.style.display="inline-block",Ke.style.width=pe-2+"px",Ke.style.height=pe-2+"px",Ke.style.backgroundColor=fe,Ke.style.borderRadius=pe/2+"px",fe==="transparent"&&(Ke.style.fill=this.uiStyleSettings.toolboxAccentColor,Ke.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>`),Ie.appendChild(Ke),Ie},le.prototype.setCurrentColor=function(fe,ze){var He=this;this.currentColor=fe,this.colorBoxes.forEach(function(pe){pe.style.borderColor=pe===ze?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(fe)},le}(de),we=function(){function We(le,fe,ze){this._state="new",this._isSelected=!1,this._container=le,this._overlayContainer=fe,this.globalSettings=ze,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(We.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),We.prototype.ownsTarget=function(le){return!1},Object.defineProperty(We.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),We.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},We.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},We.prototype.pointerDown=function(le,fe){},We.prototype.dblClick=function(le,fe){},We.prototype.manipulate=function(le){},We.prototype.pointerUp=function(le){this.stateChanged()},We.prototype.dispose=function(){},We.prototype.addMarkerVisualToContainer=function(le){this.container.childNodes.length>0?this.container.insertBefore(le,this.container.childNodes[0]):this.container.appendChild(le)},We.prototype.getState=function(){return{typeName:We.typeName,state:this.state,notes:this.notes}},We.prototype.restoreState=function(le){this._state=le.state,this.notes=le.notes},We.prototype.scale=function(le,fe){},We.prototype.colorChanged=function(le){this.onColorChanged&&this.onColorChanged(le),this.stateChanged()},We.prototype.fillColorChanged=function(le){this.onFillColorChanged&&this.onFillColorChanged(le),this.stateChanged()},We.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)}},We.typeName="MarkerBase",We}(),Se=function(){function We(){this.findGripByVisual=this.findGripByVisual.bind(this)}return We.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},We}(),xe=function(){function We(){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 We.prototype.ownsTarget=function(le){return le===this.visual||le===this.visual.childNodes[0]||le===this.visual.childNodes[1]},We}(),ye=function(){function We(){}return We.toITransformMatrix=function(le){return{a:le.a,b:le.b,c:le.c,d:le.d,e:le.e,f:le.f}},We.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},We}(),Ae=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.left=0,pe.top=0,pe.width=0,pe.height=0,pe.defaultSize={x:50,y:20},pe.offsetX=0,pe.offsetY=0,pe.rotationAngle=0,pe.CB_DISTANCE=10,pe._suppressMarkerCreateEvent=!1,pe.container.transform.baseVal.appendItem(re.createTransform()),pe.setupControlBox(),pe}return gt(le,We),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 ze=re.createTransform();this._visual.transform.baseVal.appendItem(ze)},enumerable:!1,configurable:!0}),le.prototype.ownsTarget=function(fe){return!!We.prototype.ownsTarget.call(this,fe)||!!(this.controlGrips.findGripByVisual(fe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(fe))},le.prototype.pointerDown=function(fe,ze){We.prototype.pointerDown.call(this,fe,ze),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(ze),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ze)){this.activeGrip=this.rotatorGrip;var pe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=pe.x-this.width/2,this.top=pe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ie=this.container.transform.baseVal.getItem(0);Ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ie,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},le.prototype.pointerUp=function(fe){var ze=this.state;We.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",ze==="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 ze=this.unrotatePoint(fe);this.state==="creating"?this.resize(fe):this.state==="move"?(this.left=this.manipulationStartLeft+(ze.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ze.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ze):this.state==="rotate"&&this.rotate(fe)},le.prototype.resize=function(fe){var ze=this.manipulationStartLeft,He=this.manipulationStartWidth,pe=this.manipulationStartTop,Ie=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ze=this.manipulationStartLeft+fe.x-this.manipulationStartX,He=this.manipulationStartWidth+this.manipulationStartLeft-ze;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:pe=this.manipulationStartTop+fe.y-this.manipulationStartY,Ie=this.manipulationStartHeight+this.manipulationStartTop-pe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ie=this.manipulationStartHeight+fe.y-this.manipulationStartY}He>=0?(this.left=ze,this.width=He):(this.left=ze+He,this.width=-He),Ie>=0?(this.top=pe,this.height=Ie):(this.top=pe+Ie,this.height=-Ie),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 ze=Math.sign(fe.x-this.centerX);this.rotationAngle=180*Math.atan((fe.y-this.centerY)/(fe.x-this.centerX))/Math.PI+90*ze,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 ze=this.container.getCTM(),He=re.createPoint(fe.x,fe.y);return{x:(He=He.matrixTransform(ze)).x,y:He.y}},le.prototype.unrotatePoint=function(fe){if(this.rotationAngle===0)return fe;var ze=this.container.getCTM();ze=ze.inverse();var He=re.createPoint(fe.x,fe.y);return{x:(He=He.matrixTransform(ze)).x,y:He.y}},le.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},le.prototype.deselect=function(){We.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 xe;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,ze=-fe/2,He=ze,pe=(this.width+this.CB_DISTANCE)/2-fe/2,Ie=(this.height+this.CB_DISTANCE)/2-fe/2,Ke=this.height+this.CB_DISTANCE-fe/2,Ye=this.width+this.CB_DISTANCE-fe/2;this.positionGrip(this.controlGrips.topLeft.visual,ze,He),this.positionGrip(this.controlGrips.topCenter.visual,pe,He),this.positionGrip(this.controlGrips.topRight.visual,Ye,He),this.positionGrip(this.controlGrips.centerLeft.visual,ze,Ie),this.positionGrip(this.controlGrips.centerRight.visual,Ye,Ie),this.positionGrip(this.controlGrips.bottomLeft.visual,ze,Ke),this.positionGrip(this.controlGrips.bottomCenter.visual,pe,Ke),this.positionGrip(this.controlGrips.bottomRight.visual,Ye,Ke),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,pe,He-3*this.CB_DISTANCE)},le.prototype.positionGrip=function(fe,ze,He){var pe=fe.transform.baseVal.getItem(0);pe.setTranslate(ze,He),fe.transform.baseVal.replaceItem(pe,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:ye.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ye.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},We.prototype.getState.call(this))},le.prototype.restoreState=function(fe){We.prototype.restoreState.call(this,fe);var ze=fe;this.left=ze.left,this.top=ze.top,this.width=ze.width,this.height=ze.height,this.rotationAngle=ze.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ye.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ze.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ye.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ze.containerTransformMatrix))},le.prototype.scale=function(fe,ze){We.prototype.scale.call(this,fe,ze);var He=this.rotatePoint({x:this.left,y:this.top}),pe=this.unrotatePoint({x:He.x*fe,y:He.y*ze});this.left=pe.x,this.top=pe.y,this.width=this.width*fe,this.height=this.height*ze,this.adjustControlBox()},le}(we),Le=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.fillColor="transparent",pe.strokeColor="transparent",pe.strokeWidth=0,pe.strokeDasharray="",pe.opacity=1,pe.setStrokeColor=pe.setStrokeColor.bind(pe),pe.setFillColor=pe.setFillColor.bind(pe),pe.setStrokeWidth=pe.setStrokeWidth.bind(pe),pe.setStrokeDasharray=pe.setStrokeDasharray.bind(pe),pe.createVisual=pe.createVisual.bind(pe),pe}return gt(le,We),le.prototype.ownsTarget=function(fe){return!(!We.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,ze){We.prototype.pointerDown.call(this,fe,ze),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},le.prototype.manipulate=function(fe){We.prototype.manipulate.call(this,fe)},le.prototype.resize=function(fe){We.prototype.resize.call(this,fe),this.setSize()},le.prototype.setSize=function(){We.prototype.setSize.call(this),re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},le.prototype.pointerUp=function(fe){We.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},We.prototype.getState.call(this))},le.prototype.restoreState=function(fe){var ze=fe;this.fillColor=ze.fillColor,this.strokeColor=ze.strokeColor,this.strokeWidth=ze.strokeWidth,this.strokeDasharray=ze.strokeDasharray,this.opacity=ze.opacity,this.createVisual(),We.prototype.restoreState.call(this,fe),this.setSize()},le.prototype.scale=function(fe,ze){We.prototype.scale.call(this,fe,ze),this.setSize()},le.title="Rectangle marker",le}(Ae),Ce=function(We){function le(fe,ze,He,pe){var Ie=We.call(this,fe,pe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ie.widths=[],Ie.widthBoxes=[],Ie.widths=ze,Ie.currentWidth=He,Ie.setCurrentWidth=Ie.setCurrentWidth.bind(Ie),Ie}return gt(le,We),le.prototype.getUi=function(){var fe=this,ze=document.createElement("div");return ze.style.display="flex",ze.style.overflow="hidden",ze.style.flexGrow="2",this.widths.forEach(function(He){var pe=document.createElement("div");pe.style.display="flex",pe.style.flexGrow="2",pe.style.alignItems="center",pe.style.justifyContent="space-between",pe.style.padding="5px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.borderColor=He===fe.currentWidth?fe.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){fe.setCurrentWidth(He,pe)}),ze.appendChild(pe);var Ie=document.createElement("div");Ie.innerText=He.toString(),Ie.style.marginRight="5px",pe.appendChild(Ie);var Ke=document.createElement("div");Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.display="flex",Ke.style.alignItems="center";var Ye=document.createElement("hr");Ye.style.minWidth="20px",Ye.style.border="0px",Ye.style.borderTop=He+"px solid "+fe.uiStyleSettings.toolboxColor,Ye.style.flexGrow="2",Ke.appendChild(Ye),pe.appendChild(Ke),fe.widthBoxes.push(pe)}),ze},le.prototype.setCurrentWidth=function(fe,ze){var He=this;this.currentWidth=fe,this.widthBoxes.forEach(function(pe){pe.style.borderColor=pe===ze?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},le}(de),je=function(We){function le(fe,ze,He,pe){var Ie=We.call(this,fe,pe||'<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 Ie.styles=[],Ie.styleBoxes=[],Ie.styles=ze,Ie.currentStyle=He,Ie.setCurrentStyle=Ie.setCurrentStyle.bind(Ie),Ie}return gt(le,We),le.prototype.getUi=function(){var fe=this,ze=document.createElement("div");return ze.style.display="flex",ze.style.overflow="hidden",ze.style.flexGrow="2",this.styles.forEach(function(He){var pe=document.createElement("div");pe.style.display="flex",pe.style.alignItems="center",pe.style.justifyContent="space-between",pe.style.padding="5px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.overflow="hidden",pe.style.maxWidth=100/fe.styles.length-5+"%",pe.style.borderColor=He===fe.currentStyle?fe.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){fe.setCurrentStyle(He,pe)}),ze.appendChild(pe);var Ie=document.createElement("div");Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.overflow="hidden";var Ke=`<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>`;Ie.innerHTML=Ke,pe.appendChild(Ie),fe.styleBoxes.push(pe)}),ze},le.prototype.setCurrentStyle=function(fe,ze){var He=this;this.currentStyle=fe,this.styleBoxes.forEach(function(pe){pe.style.borderColor=pe===ze?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},le}(de),Me=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.strokeColor=He.defaultColor,pe.strokeWidth=He.defaultStrokeWidth,pe.strokeDasharray=He.defaultStrokeDasharray,pe.strokePanel=new he("Line color",He.defaultColorSet,He.defaultColor),pe.strokePanel.onColorChanged=pe.setStrokeColor,pe.strokeWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),pe.strokeWidthPanel.onWidthChanged=pe.setStrokeWidth,pe.strokeStylePanel=new je("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),pe.strokeStylePanel.onStyleChanged=pe.setStrokeDasharray,pe}return gt(le,We),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=We.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),Oe=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(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.x1=0,pe.y1=0,pe.x2=0,pe.y2=0,pe.defaultLength=50,pe.manipulationStartX=0,pe.manipulationStartY=0,pe.manipulationStartX1=0,pe.manipulationStartY1=0,pe.manipulationStartX2=0,pe.manipulationStartY2=0,pe.setupControlBox(),pe}return gt(le,We),le.prototype.ownsTarget=function(fe){return!!We.prototype.ownsTarget.call(this,fe)||!(!this.grip1.ownsTarget(fe)&&!this.grip2.ownsTarget(fe))},le.prototype.pointerDown=function(fe,ze){We.prototype.pointerDown.call(this,fe,ze),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(ze)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ze)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},le.prototype.pointerUp=function(fe){var ze=this.state;We.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",ze==="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(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},le.prototype.deselect=function(){We.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 xe;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,ze,He){var pe=fe.transform.baseVal.getItem(0);pe.setTranslate(ze,He),fe.transform.baseVal.replaceItem(pe,0)},le.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},We.prototype.getState.call(this))},le.prototype.restoreState=function(fe){We.prototype.restoreState.call(this,fe);var ze=fe;this.x1=ze.x1,this.y1=ze.y1,this.x2=ze.x2,this.y2=ze.y2},le.prototype.scale=function(fe,ze){We.prototype.scale.call(this,fe,ze),this.x1=this.x1*fe,this.y1=this.y1*ze,this.x2=this.x2*fe,this.y2=this.y2*ze,this.adjustVisual(),this.adjustControlBox()},le}(we),Ne=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.strokeColor="transparent",pe.strokeWidth=0,pe.strokeDasharray="",pe.setStrokeColor=pe.setStrokeColor.bind(pe),pe.setStrokeWidth=pe.setStrokeWidth.bind(pe),pe.setStrokeDasharray=pe.setStrokeDasharray.bind(pe),pe.strokeColor=He.defaultColor,pe.strokeWidth=He.defaultStrokeWidth,pe.strokeDasharray=He.defaultStrokeDasharray,pe.strokePanel=new he("Line color",He.defaultColorSet,He.defaultColor),pe.strokePanel.onColorChanged=pe.setStrokeColor,pe.strokeWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),pe.strokeWidthPanel.onWidthChanged=pe.setStrokeWidth,pe.strokeStylePanel=new je("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),pe.strokeStylePanel.onStyleChanged=pe.setStrokeDasharray,pe}return gt(le,We),le.prototype.ownsTarget=function(fe){return!(!We.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,ze){We.prototype.pointerDown.call(this,fe,ze),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},We.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){We.prototype.restoreState.call(this,fe);var ze=fe;this.strokeColor=ze.strokeColor,this.strokeWidth=ze.strokeWidth,this.strokeDasharray=ze.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),_e=function(We){function le(fe,ze,He,pe){var Ie=We.call(this,fe,pe||'<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 Ie.fonts=[],Ie.fontBoxes=[],Ie.fonts=ze,Ie.currentFont=He,Ie.setCurrentFont=Ie.setCurrentFont.bind(Ie),Ie}return gt(le,We),le.prototype.getUi=function(){var fe=this,ze=document.createElement("div");return ze.style.overflow="hidden",ze.style.flexGrow="2",this.fonts.forEach(function(He){var pe=document.createElement("div");pe.style.display="inline-block",pe.style.alignItems="center",pe.style.justifyContent="space-between",pe.style.padding="5px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.overflow="hidden",pe.style.maxWidth=100/fe.fonts.length-5+"%",pe.style.borderColor=He===fe.currentFont?fe.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){fe.setCurrentFont(He,pe)}),ze.appendChild(pe);var Ie=document.createElement("div");Ie.style.display="flex",Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.fontFamily=He,Ie.style.overflow="hidden";var Ke=document.createElement("div");Ke.style.whiteSpace="nowrap",Ke.style.overflow="hidden",Ke.style.textOverflow="ellipsis",Ke.innerHTML="The quick brown fox jumps over the lazy dog",Ie.appendChild(Ke),pe.appendChild(Ie),fe.fontBoxes.push(pe)}),ze},le.prototype.setCurrentFont=function(fe,ze){var He=this;this.currentFont=fe,this.fontBoxes.forEach(function(pe){pe.style.borderColor=pe===ze?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},le}(de),Ze=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.color="transparent",pe.padding=5,pe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",pe.text=pe.DEFAULT_TEXT,pe.isMoved=!1,pe.color=He.defaultColor,pe.fontFamily=He.defaultFontFamily,pe.defaultSize={x:100,y:30},pe.setColor=pe.setColor.bind(pe),pe.setFont=pe.setFont.bind(pe),pe.renderText=pe.renderText.bind(pe),pe.sizeText=pe.sizeText.bind(pe),pe.textEditDivClicked=pe.textEditDivClicked.bind(pe),pe.showTextEditor=pe.showTextEditor.bind(pe),pe.setSize=pe.setSize.bind(pe),pe.positionTextEditor=pe.positionTextEditor.bind(pe),pe.colorPanel=new he("Color",He.defaultColorSet,He.defaultColor),pe.colorPanel.onColorChanged=pe.setColor,pe.fontFamilyPanel=new _e("Font",He.defaultFontFamilies,He.defaultFontFamily),pe.fontFamilyPanel.onFontChanged=pe.setFont,pe}return gt(le,We),le.prototype.ownsTarget=function(fe){if(We.prototype.ownsTarget.call(this,fe)||fe===this.visual||fe===this.textElement||fe===this.bgRectangle)return!0;var ze=!1;return this.textElement.childNodes.forEach(function(He){He===fe&&(ze=!0)}),ze},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,ze){We.prototype.pointerDown.call(this,fe,ze),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(ze){fe.textElement.appendChild(re.createTSpan(ze.trim()===""?" ":ze.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},le.prototype.getTextScale=function(){var fe=this.textElement.getBBox(),ze=1;if(fe.width>0&&fe.height>0){var He=(1*this.width-this.width*this.padding*2/100)/fe.width,pe=(1*this.height-this.height*this.padding*2/100)/fe.height;ze=Math.min(He,pe)}return ze},le.prototype.getTextPosition=function(fe){var ze=this.textElement.getBBox(),He=0,pe=0;return ze.width>0&&ze.height>0&&(He=(this.width-ze.width*fe)/2,pe=this.height/2-ze.height*fe/2),{x:He,y:pe}},le.prototype.sizeText=function(){var fe=this.textElement.getBBox(),ze=this.getTextScale(),He=this.getTextPosition(ze);He.y-=fe.y*ze,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+He.x+"px, "+He.y+"px) scale("+ze+", "+ze+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(He.x,He.y),this.textElement.transform.baseVal.getItem(1).setScale(ze,ze))},le.prototype.manipulate=function(fe){We.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){We.prototype.resize.call(this,fe),this.isMoved=!0,this.setSize(),this.sizeText()},le.prototype.setSize=function(){We.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 ze=this.state;ze==="creating"&&(this._suppressMarkerCreateEvent=!0),We.prototype.pointerUp.call(this,fe),this.setSize(),(ze==="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(ze){ze.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ze=Number.parseFloat(fe.textEditor.style.fontSize);fe.textEditor.clientWidth>=Number.parseInt(fe.textEditor.style.maxWidth)&&ze>.9;)ze-=.1,fe.textEditor.style.fontSize=Math.max(ze,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ze){ze.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ze){if(ze.clipboardData){var He=ze.clipboardData.getData("text"),pe=window.getSelection();if(!pe.rangeCount)return!1;pe.deleteFromDocument(),pe.getRangeAt(0).insertNode(document.createTextNode(He)),ze.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(),ze=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),He=this.textElement.getBBox(),pe={x:He.width*fe,y:He.height*fe};ze.x-=pe.x/2,ze.y-=pe.y/2,this.textEditor.style.top=ze.y+"px",this.textEditor.style.left=ze.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ze.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(){We.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},le.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),We.prototype.deselect.call(this)},le.prototype.dblClick=function(fe,ze){We.prototype.dblClick.call(this,fe,ze),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},We.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){var ze=fe;this.color=ze.color,this.fontFamily=ze.fontFamily,this.padding=ze.padding,this.text=ze.text,this.createVisual(),We.prototype.restoreState.call(this,fe),this.setSize()},le.prototype.scale=function(fe,ze){We.prototype.scale.call(this,fe,ze),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}(Ae),Pe=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.color="transparent",pe.lineWidth=3,pe.drawing=!1,pe.pixelRatio=1,pe.color=He.defaultColor,pe.lineWidth=He.defaultStrokeWidth,pe.pixelRatio=He.freehandPixelRatio,pe.setColor=pe.setColor.bind(pe),pe.addCanvas=pe.addCanvas.bind(pe),pe.finishCreation=pe.finishCreation.bind(pe),pe.setLineWidth=pe.setLineWidth.bind(pe),pe.colorPanel=new he("Color",He.defaultColorSet,He.defaultColor),pe.colorPanel.onColorChanged=pe.setColor,pe.lineWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),pe.lineWidthPanel.onWidthChanged=pe.setLineWidth,pe}return gt(le,We),le.prototype.ownsTarget=function(fe){return!(!We.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,ze){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):We.prototype.pointerDown.call(this,fe,ze)},le.prototype.manipulate=function(fe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(fe.x,fe.y),this.canvasContext.stroke()):We.prototype.manipulate.call(this,fe)},le.prototype.resize=function(fe){We.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()):We.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(),We.prototype.select.call(this)},le.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),We.prototype.deselect.call(this)},le.prototype.finishCreation=function(){for(var fe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ze=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],He=ze[0],pe=ze[1],Ie=ze[2],Ke=ze[3],Ye=!1,Je=0;Je<this.canvasElement.height;Je++)for(var dt=0;dt<this.canvasElement.width;dt++)fe.data[Je*this.canvasElement.width*4+4*dt+3]>0&&(Ye=!0,Je<pe&&(pe=Je),dt<He&&(He=dt),Je>Ke&&(Ke=Je),dt>Ie&&(Ie=dt));if(Ye){this.left=He/this.pixelRatio,this.top=pe/this.pixelRatio,this.width=(Ie-He)/this.pixelRatio,this.height=(Ke-pe)/this.pixelRatio;var bt=document.createElement("canvas");bt.width=Ie-He,bt.height=Ke-pe,bt.getContext("2d").putImageData(this.canvasContext.getImageData(He,pe,Ie-He,Ke-pe),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},We.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){this.createVisual(),We.prototype.restoreState.call(this,fe),this.drawingImgUrl=fe.drawingImgUrl,this.setDrawingImage()},le.prototype.scale=function(fe,ze){We.prototype.scale.call(this,fe,ze),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}(Ae),Ue=function(We){function le(fe,ze,He){var pe=We.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 pe.typeBoxes=[],pe.currentType=ze,pe.setCurrentType=pe.setCurrentType.bind(pe),pe}return gt(le,We),le.prototype.getUi=function(){var fe=this,ze=document.createElement("div");ze.style.display="flex",ze.style.overflow="hidden",ze.style.flexGrow="2";for(var He=function(Ke){var Ye="both";switch(Ke){case 0:Ye="both";break;case 1:Ye="start";break;case 2:Ye="end";break;case 3:Ye="none"}var Je=document.createElement("div");if(Je.style.display="flex",Je.style.flexGrow="2",Je.style.alignItems="center",Je.style.justifyContent="space-between",Je.style.padding="5px",Je.style.borderWidth="2px",Je.style.borderStyle="solid",Je.style.borderColor=Ye===pe.currentType?pe.uiStyleSettings.toolboxAccentColor:"transparent",Je.addEventListener("click",function(){fe.setCurrentType(Ye,Je)}),ze.appendChild(Je),Ye==="both"||Ye==="start"){var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.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="`+(pe.uiStyleSettings!==void 0?pe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,dt.style.marginLeft="5px",Je.appendChild(dt)}var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.style.flexGrow="2";var vt=document.createElement("hr");if(vt.style.minWidth="20px",vt.style.border="0px",vt.style.borderTop="3px solid "+(pe.uiStyleSettings!==void 0?pe.uiStyleSettings.toolboxColor:"#eeeeee"),vt.style.flexGrow="2",bt.appendChild(vt),Je.appendChild(bt),Ye==="both"||Ye==="end"){var It=document.createElement("div");It.style.display="flex",It.style.alignItems="center",It.style.minHeight="20px",It.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="`+(pe.uiStyleSettings!==void 0?pe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,It.style.marginRight="5px",Je.appendChild(It)}pe.typeBoxes.push(Je)},pe=this,Ie=0;Ie<4;Ie++)He(Ie);return ze},le.prototype.setCurrentType=function(fe,ze){var He=this;this.currentType=fe,this.typeBoxes.forEach(function(pe){pe.style.borderColor=pe===ze?He.uiStyleSettings!==void 0?He.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},le}(de),Qe=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.arrowType="end",pe.arrowBaseHeight=10,pe.arrowBaseWidth=10,pe.getArrowPoints=pe.getArrowPoints.bind(pe),pe.setArrowType=pe.setArrowType.bind(pe),pe.arrowTypePanel=new Ue("Arrow type","end"),pe.arrowTypePanel.onArrowTypeChanged=pe.setArrowType,pe}return gt(le,We),le.prototype.ownsTarget=function(fe){return!(!We.prototype.ownsTarget.call(this,fe)&&fe!==this.arrow1&&fe!==this.arrow2)},le.prototype.getArrowPoints=function(fe,ze){var He=this.arrowBaseWidth+2*this.strokeWidth,pe=this.arrowBaseHeight+2*this.strokeWidth;return fe-He/2+","+(ze+pe/2)+" "+fe+","+(ze-pe/2)+" "+(fe+He/2)+","+(ze+pe/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,ze){We.prototype.pointerDown.call(this,fe,ze),this.state==="creating"&&this.createTips()},le.prototype.adjustVisual=function(){if(We.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 ze=this.arrow1.transform.baseVal.getItem(0);ze.setRotate(fe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ze,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},We.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){We.prototype.restoreState.call(this,fe);var ze=fe;this.arrowType=ze.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}(Ne),tt=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.fillColor=He.defaultFillColor,pe.strokeWidth=0,pe.fillPanel=new he("Color",He.defaultColorSet,He.defaultFillColor),pe.fillPanel.onColorChanged=pe.setFillColor,pe}return gt(le,We),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=We.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),at=function(We){function le(fe,ze,He,pe){var Ie=We.call(this,fe,pe||'<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 Ie.opacities=[],Ie.opacityBoxes=[],Ie.opacities=ze,Ie.currentOpacity=He,Ie.setCurrentOpacity=Ie.setCurrentOpacity.bind(Ie),Ie}return gt(le,We),le.prototype.getUi=function(){var fe=this,ze=document.createElement("div");return ze.style.display="flex",ze.style.overflow="hidden",ze.style.flexGrow="2",ze.style.justifyContent="space-between",this.opacities.forEach(function(He){var pe=document.createElement("div");pe.style.display="flex",pe.style.alignItems="center",pe.style.justifyContent="center",pe.style.padding="5px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.borderColor=He===fe.currentOpacity?fe.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){fe.setCurrentOpacity(He,pe)}),ze.appendChild(pe);var Ie=document.createElement("div");Ie.innerText=100*He+"%",pe.appendChild(Ie),fe.opacityBoxes.push(pe)}),ze},le.prototype.setCurrentOpacity=function(fe,ze){var He=this;this.currentOpacity=fe,this.opacityBoxes.forEach(function(pe){pe.style.borderColor=pe===ze?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},le}(de),lt=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.setOpacity=pe.setOpacity.bind(pe),pe.fillColor=He.defaultHighlightColor,pe.strokeWidth=0,pe.opacity=He.defaultHighlightOpacity,pe.fillPanel=new he("Color",He.defaultColorSet,pe.fillColor),pe.fillPanel.onColorChanged=pe.setFillColor,pe.opacityPanel=new at("Opacity",He.defaultOpacitySteps,pe.opacity),pe.opacityPanel.onOpacityChanged=pe.setOpacity,pe}return gt(le,We),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=We.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),Ve='<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>',nt=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.bgColor="transparent",pe.tipPosition={x:0,y:0},pe.tipBase1Position={x:0,y:0},pe.tipBase2Position={x:0,y:0},pe.tipMoving=!1,pe.color=He.defaultStrokeColor,pe.bgColor=He.defaultFillColor,pe.fontFamily=He.defaultFontFamily,pe.defaultSize={x:100,y:30},pe.setBgColor=pe.setBgColor.bind(pe),pe.getTipPoints=pe.getTipPoints.bind(pe),pe.positionTip=pe.positionTip.bind(pe),pe.setTipPoints=pe.setTipPoints.bind(pe),pe.colorPanel=new he("Text color",He.defaultColorSet,pe.color,Ve),pe.colorPanel.onColorChanged=pe.setColor,pe.bgColorPanel=new he("Fill color",He.defaultColorSet,pe.bgColor,Xe),pe.bgColorPanel.onColorChanged=pe.setBgColor,pe.fontFamilyPanel=new _e("Font",He.defaultFontFamilies,He.defaultFontFamily),pe.fontFamilyPanel.onFontChanged=pe.setFont,pe.tipGrip=new xe,pe.tipGrip.visual.transform.baseVal.appendItem(re.createTransform()),pe.controlBox.appendChild(pe.tipGrip.visual),pe}return gt(le,We),le.prototype.ownsTarget=function(fe){return We.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,ze){this.state==="new"&&We.prototype.pointerDown.call(this,fe,ze),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ze)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):We.prototype.pointerDown.call(this,fe,ze)},le.prototype.pointerUp=function(fe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,We.prototype.pointerUp.call(this,fe);else{var ze=this.state==="creating";We.prototype.pointerUp.call(this,fe),this.setTipPoints(ze),this.positionTip()}},le.prototype.manipulate=function(fe){if(this.tipMoving){var ze=this.unrotatePoint(fe);this.tipPosition={x:ze.x-this.manipulationStartLeft,y:ze.y-this.manipulationStartTop},this.positionTip()}else We.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 ze=Math.min(this.height/2,15),He=this.height/5;fe&&(this.tipPosition={x:ze+He/2,y:this.height+20});var pe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?pe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(He=this.width/5,ze=Math.min(this.width/2,15),this.tipBase1Position={x:ze,y:0},this.tipBase2Position={x:ze+He,y:0}):(this.tipBase1Position={x:0,y:ze},this.tipBase2Position={x:0,y:ze+He}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?pe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(He=this.width/5,ze=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ze-He,y:0},this.tipBase2Position={x:this.width-ze,y:0}):(this.tipBase1Position={x:this.width,y:ze},this.tipBase2Position={x:this.width,y:ze+He}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?pe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(He=this.width/5,ze=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ze-He,y:this.height},this.tipBase2Position={x:this.width-ze,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ze-He},this.tipBase2Position={x:this.width,y:this.height-ze}):pe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(He=this.width/5,ze=Math.min(this.width/2,15),this.tipBase1Position={x:ze,y:this.height},this.tipBase2Position={x:ze+He,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ze},this.tipBase2Position={x:0,y:this.height-ze-He})},le.prototype.resize=function(fe){We.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(),We.prototype.select.call(this)},le.prototype.getState=function(){var fe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},We.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){var ze=fe;this.bgColor=ze.bgColor,this.tipPosition=ze.tipPosition,We.prototype.restoreState.call(this,fe),this.createTip(),this.setTipPoints()},le.prototype.scale=function(fe,ze){We.prototype.scale.call(this,fe,ze),this.tipPosition={x:this.tipPosition.x*fe,y:this.tipPosition.y*ze},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}(Ze),ct=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.fillColor="transparent",pe.strokeColor="transparent",pe.strokeWidth=0,pe.strokeDasharray="",pe.opacity=1,pe.strokeColor=He.defaultColor,pe.strokeWidth=He.defaultStrokeWidth,pe.strokeDasharray=He.defaultStrokeDasharray,pe.fillColor=He.defaultFillColor,pe.setStrokeColor=pe.setStrokeColor.bind(pe),pe.setFillColor=pe.setFillColor.bind(pe),pe.setStrokeWidth=pe.setStrokeWidth.bind(pe),pe.setStrokeDasharray=pe.setStrokeDasharray.bind(pe),pe.setOpacity=pe.setOpacity.bind(pe),pe.createVisual=pe.createVisual.bind(pe),pe.strokePanel=new he("Line color",ve(He.defaultColorSet,["transparent"]),He.defaultColor),pe.strokePanel.onColorChanged=pe.setStrokeColor,pe.fillPanel=new he("Fill color",ve(He.defaultColorSet,["transparent"]),pe.fillColor,Xe),pe.fillPanel.onColorChanged=pe.setFillColor,pe.strokeWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),pe.strokeWidthPanel.onWidthChanged=pe.setStrokeWidth,pe.strokeStylePanel=new je("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),pe.strokeStylePanel.onStyleChanged=pe.setStrokeDasharray,pe.opacityPanel=new at("Opacity",He.defaultOpacitySteps,pe.opacity),pe.opacityPanel.onOpacityChanged=pe.setOpacity,pe}return gt(le,We),le.prototype.ownsTarget=function(fe){return!(!We.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,ze){We.prototype.pointerDown.call(this,fe,ze),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},le.prototype.manipulate=function(fe){We.prototype.manipulate.call(this,fe)},le.prototype.resize=function(fe){We.prototype.resize.call(this,fe),this.setSize()},le.prototype.setSize=function(){We.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){We.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},We.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){var ze=fe;this.fillColor=ze.fillColor,this.strokeColor=ze.strokeColor,this.strokeWidth=ze.strokeWidth,this.strokeDasharray=ze.strokeDasharray,this.opacity=ze.opacity,this.createVisual(),We.prototype.restoreState.call(this,fe),this.setSize()},le.prototype.scale=function(fe,ze){We.prototype.scale.call(this,fe,ze),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}(Ae),ot=function(We){function le(fe,ze,He){return We.call(this,fe,ze,He)||this}return gt(le,We),Object.defineProperty(le.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),le.prototype.ownsTarget=function(fe){return!(!We.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,ze){We.prototype.pointerDown.call(this,fe,ze),this.state==="creating"&&this.createTips()},le.prototype.adjustVisual=function(){if(We.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),ze=this.tip1.transform.baseVal.getItem(0);ze.setRotate(fe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ze,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=We.prototype.getState.call(this);return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){We.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}(Ne),et=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.strokePanel.colors=He.defaultColorSet,pe.fillColor="transparent",pe}return gt(le,We),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var fe=We.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}(ct),qe=function(){function We(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),We.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))},We.prototype.replaceLastUndoStep=function(le){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=le)},We.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},We.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}},We.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},We}(),it=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.strokeColor="transparent",pe.strokeWidth=0,pe.strokeDasharray="",pe.curveX=0,pe.curveY=0,pe.manipulationStartCurveX=0,pe.manipulationStartCurveY=0,pe.setStrokeColor=pe.setStrokeColor.bind(pe),pe.setStrokeWidth=pe.setStrokeWidth.bind(pe),pe.setStrokeDasharray=pe.setStrokeDasharray.bind(pe),pe.positionGrips=pe.positionGrips.bind(pe),pe.addControlGrips=pe.addControlGrips.bind(pe),pe.adjustVisual=pe.adjustVisual.bind(pe),pe.setupControlBox=pe.setupControlBox.bind(pe),pe.resize=pe.resize.bind(pe),pe.strokeColor=He.defaultColor,pe.strokeWidth=He.defaultStrokeWidth,pe.strokeDasharray=He.defaultStrokeDasharray,pe.strokePanel=new he("Line color",He.defaultColorSet,He.defaultColor),pe.strokePanel.onColorChanged=pe.setStrokeColor,pe.strokeWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),pe.strokeWidthPanel.onWidthChanged=pe.setStrokeWidth,pe.strokeStylePanel=new je("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),pe.strokeStylePanel.onStyleChanged=pe.setStrokeDasharray,pe}return gt(le,We),le.prototype.ownsTarget=function(fe){return!(!We.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,ze){We.prototype.pointerDown.call(this,fe,ze),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(ze)&&(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(){We.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,We.prototype.addControlGrips.call(this)},le.prototype.positionGrips=function(){We.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),We.prototype.manipulate.call(this,fe)},le.prototype.resize=function(fe){this.activeGrip===this.curveGrip&&(this.curveX=fe.x,this.curveY=fe.y),We.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,ze){this.curveX=this.curveX*fe,this.curveY=this.curveY*ze,We.prototype.scale.call(this,fe,ze)},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},We.prototype.getState.call(this));return fe.typeName=le.typeName,fe},le.prototype.restoreState=function(fe){We.prototype.restoreState.call(this,fe);var ze=fe;this.strokeColor=ze.strokeColor,this.strokeWidth=ze.strokeWidth,this.strokeDasharray=ze.strokeDasharray,this.curveX=ze.curveX,this.curveY=ze.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),yt=function(We){function le(fe,ze,He){var pe=We.call(this,fe,ze,He)||this;return pe.fillColor="transparent",pe.strokeColor="transparent",pe.strokeWidth=0,pe.strokeDasharray="",pe.textColor="transparent",pe.fontSize="1rem",pe.isMoved=!1,pe.captionText="Caption",pe.PADDING=5,pe.captionBoxWidth=0,pe.captionBoxHeight=0,pe.strokeColor=He.defaultColor,pe.strokeWidth=He.defaultStrokeWidth,pe.strokeDasharray=He.defaultStrokeDasharray,pe.fillColor=He.defaultFillColor,pe.textColor=He.defaultStrokeColor,pe.fontFamily=He.defaultFontFamily,pe.fontSize=He.defaultCaptionFontSize,pe.captionText=He.defaultCaptionText,pe.setStrokeColor=pe.setStrokeColor.bind(pe),pe.setFillColor=pe.setFillColor.bind(pe),pe.setStrokeWidth=pe.setStrokeWidth.bind(pe),pe.setStrokeDasharray=pe.setStrokeDasharray.bind(pe),pe.createVisual=pe.createVisual.bind(pe),pe.sizeCaption=pe.sizeCaption.bind(pe),pe.setCaptionText=pe.setCaptionText.bind(pe),pe.showTextEditor=pe.showTextEditor.bind(pe),pe.positionTextEditor=pe.positionTextEditor.bind(pe),pe.finishTextEditing=pe.finishTextEditing.bind(pe),pe.setFont=pe.setFont.bind(pe),pe.setTextColor=pe.setTextColor.bind(pe),pe.strokePanel=new he("Line color",ve(He.defaultColorSet,["transparent"]),pe.strokeColor),pe.strokePanel.onColorChanged=pe.setStrokeColor,pe.fillPanel=new he("Fill color",ve(He.defaultColorSet,["transparent"]),pe.fillColor,Xe),pe.fillPanel.onColorChanged=pe.setFillColor,pe.strokeWidthPanel=new Ce("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),pe.strokeWidthPanel.onWidthChanged=pe.setStrokeWidth,pe.strokeStylePanel=new je("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),pe.strokeStylePanel.onStyleChanged=pe.setStrokeDasharray,pe.fontFamilyPanel=new _e("Font",He.defaultFontFamilies,He.defaultFontFamily),pe.fontFamilyPanel.onFontChanged=pe.setFont,pe.textColorPanel=new he("Text color",He.defaultColorSet,pe.textColor,Ve),pe.textColorPanel.onColorChanged=pe.setTextColor,pe}return gt(le,We),le.prototype.ownsTarget=function(fe){return!(!We.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,ze){We.prototype.pointerDown.call(this,fe,ze),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){We.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){We.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(ze){ze.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ze){ze.key==="Enter"&&fe.finishTextEditing(fe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ze){ze.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(){We.prototype.setSize.call(this),re.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},le.prototype.pointerUp=function(fe){We.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,ze){We.prototype.dblClick.call(this,fe,ze),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},We.prototype.getState.call(this));return fe.typeName=this.typeName,fe},le.prototype.restoreState=function(fe){var ze=fe;this.fillColor=ze.fillColor,this.strokeColor=ze.strokeColor,this.strokeWidth=ze.strokeWidth,this.strokeDasharray=ze.strokeDasharray,this.textColor=ze.textColor,this.fontFamily=ze.fontFamily,this.captionText=ze.captionText,this.fontSize=ze.fontSize,this.createVisual(),We.prototype.restoreState.call(this,fe),this.setSize()},le.prototype.scale=function(fe,ze){We.prototype.scale.call(this,fe,ze),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}(Ae),pt=function(){function We(le,fe){fe===void 0&&(fe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=le,this.cancelable=fe}return Object.defineProperty(We.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),We.prototype.preventDefault=function(){this._defaultPrevented=!0},We}(),Dt=function(We){function le(fe,ze,He){var pe=We.call(this,fe,!1)||this;return pe.dataUrl=ze,pe.state=He,pe}return gt(le,We),le}(pt),At=function(We){function le(fe,ze,He){He===void 0&&(He=!1);var pe=We.call(this,fe,He)||this;return pe.marker=ze,pe}return gt(le,We),le}(pt),st=function(){function We(){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 We.prototype.addEventListener=function(le,fe){this[le].push(fe)},We.prototype.removeEventListener=function(le,fe){var ze=this[le].indexOf(fe);ze>-1&&this[le].splice(ze,1)},We}(),Ge=function(){function We(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 Oe,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 st,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=We.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(We.prototype,"ALL_MARKER_TYPES",{get:function(){return[Me,Pe,Qe,Ze,et,ct,lt,nt,ot,tt,Ne,it,yt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Me,Pe,Qe,Ze,ct,lt,nt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Me,Pe,Qe,Ze,lt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(le){var fe=this;this._availableMarkerTypes.splice(0),le.forEach(function(ze){if(typeof ze=="string"){var He=fe.ALL_MARKER_TYPES.find(function(pe){return pe.typeName===ze});He!==void 0&&fe._availableMarkerTypes.push(He)}else fe._availableMarkerTypes.push(ze)})},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.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(We.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),We.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ne.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},We.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 pt(le))})},We.prototype.render=function(){return x(this,void 0,void 0,function(){var le;return De(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()]}})})},We.prototype.close=function(le){var fe=this;if(le===void 0&&(le=!1),this.isOpen){var ze=!1;le||this.eventListeners.beforeclose.forEach(function(He){var pe=new pt(fe,!0);He(pe),pe.defaultPrevented&&(ze=!0)}),ze||(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 pt(fe))}),this.detachEvents(),this._isOpen=!1)}},We.prototype.addMarkersToToolbar=function(){for(var le,fe=[],ze=0;ze<arguments.length;ze++)fe[ze]=arguments[ze];(le=this._availableMarkerTypes).push.apply(le,fe)},We.prototype.addRenderEventListener=function(le){this.addEventListener("render",function(fe){le(fe.dataUrl,fe.state)})},We.prototype.removeRenderEventListener=function(le){},We.prototype.addCloseEventListener=function(le){this.addEventListener("close",function(){le()})},We.prototype.removeCloseEventListener=function(le){},We.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))},We.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,ze=fe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/le;this.resize(fe,ze)},We.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},We.prototype.resize=function(le,fe){this._isResizing=!0;var ze=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(ze,He),this._isResizing=!1},We.prototype.scaleMarkers=function(le,fe){var ze,He=this;this._currentMarker&&this._currentMarker instanceof Ze?this._currentMarker.scale(le,fe):(ze=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(pe){pe!==He._currentMarker&&pe.scale(le,fe)}),ze!==void 0&&this.setCurrentMarker(ze)},We.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"},We.prototype.setTopLeft=function(){var le=this.editingTarget.getBoundingClientRect(),fe=this.editorCanvas.getBoundingClientRect();this.left=le.left-fe.left,this.top=le.top-fe.top},We.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)},We.prototype.addDefs=function(){for(var le,fe=[],ze=0;ze<arguments.length;ze++)fe[ze]=arguments[ze];this.defs=re.createDefs(),this.addDefsToImage(),(le=this.defs).append.apply(le,fe)},We.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},We.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)},We.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},We.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},We.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)},We.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},We.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)},We.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()},We.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")},We.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"},We.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},We.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")},We.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},We.prototype.removeMarker=function(le){this.markerImage.removeChild(le.container),this.markers.indexOf(le)>-1&&this.markers.splice(this.markers.indexOf(le),1),le.dispose()},We.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())},We.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()}},We.prototype.deleteSelectedMarker=function(){var le=this;if(this._currentMarker!==void 0){var fe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(He){var pe=new At(le,le._currentMarker,!0);He(pe),pe.defaultPrevented&&(fe=!0)}),!fe){var ze=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 At(le,ze))})}}},We.prototype.clear=function(){var le=this,fe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ie){var Ke=new At(le,void 0,!0);Ie(Ke),Ke.defaultPrevented&&(fe=!0)}),!fe)){this.setCurrentMarker();for(var ze=function(Ie){var Ke=He.markers[Ie];He.setCurrentMarker(He.markers[Ie]),He._currentMarker.dispose(),He.markerImage.removeChild(He._currentMarker.container),He.markers.splice(He.markers.indexOf(He._currentMarker),1),He.eventListeners.markerdelete.forEach(function(Ye){return Ye(new At(le,Ke))})},He=this,pe=this.markers.length-1;pe>=0;pe--)ze(pe);this.addUndoStep()}},Object.defineProperty(We.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),We.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))},We.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)},We.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},We.prototype.addUndoStep=function(){var le=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var fe=this.getState(),ze=this.undoRedoManager.getLastUndoStep();if(!ze||ze.width===fe.width&&ze.height===fe.height){var He=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(fe),He<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(pe){return pe(new pt(le))})}else this.undoRedoManager.replaceLastUndoStep(fe),this.eventListeners.statechange.forEach(function(pe){return pe(new pt(le))})}},We.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},We.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(ze){return ze(new pt(le))}))},We.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},We.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(ze){return ze(new pt(le))}))},We.prototype.stepZoom=function(){var le=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=le<this.zoomSteps.length-1?this.zoomSteps[le+1]:this.zoomSteps[0]},We.prototype.panTo=function(le){this.contentDiv.scrollBy({left:this.prevPanPoint.x-le.x,top:this.prevPanPoint.y-le.y}),this.prevPanPoint=le},We.prototype.startRenderAndClose=function(){return x(this,void 0,void 0,function(){var le,fe,ze=this;return De(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(pe){return pe(new Dt(ze,le,fe))}),this.close(!0),[2]}})})},We.prototype.getState=function(le){le===!0&&this.setCurrentMarker();var fe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ze){return fe.markers.push(ze.getState())}),fe},We.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(ze){var He=fe._availableMarkerTypes.find(function(Ie){return Ie.typeName===ze.typeName});if(He!==void 0){var pe=fe.addNewMarker(He);pe.restoreState(ze),fe.markers.push(pe)}}),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(ze){return ze(new pt(fe))})},We.prototype.addNewMarker=function(le){var fe=re.createGroup();return this.markerImage.appendChild(fe),new le(fe,this.overlayContainer,this.settings)},We.prototype.createNewMarker=function(le){var fe,ze=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 At(ze,ze._currentMarker))}))},We.prototype.markerCreated=function(le){var fe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(le),this.setCurrentMarker(le),le instanceof Pe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Pe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ze){return ze(new At(fe,fe._currentMarker))})},We.prototype.colorChanged=function(le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=le,this.settings.defaultStrokeColor=le)},We.prototype.fillColorChanged=function(le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=le)},We.prototype.markerStateChanged=function(le){var fe=this;this.eventListeners.markerchange.forEach(function(ze){return ze(new At(fe,le))})},We.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(ze){return ze(new At(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(ze){return ze(new At(fe,fe._currentMarker))}))},We.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(ze){return ze.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))},We.prototype.onDblClick=function(le){if(this._isFocused||this.focus(),this.mode==="select"){var fe=this.markers.find(function(ze){return ze.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()}},We.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}))},We.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()},We.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},We.prototype.onKeyUp=function(le){this._currentMarker===void 0||this.notesArea!==void 0||le.key!=="Delete"&&le.key!=="Backspace"||this.deleteSelectedMarker()},We.prototype.clientToLocalCoordinates=function(le,fe){var ze=this.markerImage.getBoundingClientRect();return{x:(le-ze.left)/this.zoomLevel,y:(fe-ze.top)/this.zoomLevel}},We.prototype.onWindowResize=function(){this.positionUI()},We.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()},We.prototype.addLicenseKey=function(le){ne.addKey(le)},We.prototype.addEventListener=function(le,fe){this.eventListeners.addEventListener(le,fe)},We.prototype.removeEventListener=function(le,fe){this.eventListeners.removeEventListener(le,fe)},We.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(We.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),We.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 pt(le))}))},We.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 pt(le))}))},We.instanceCounter=0,We}()},5630:function(or,Ht,ke){"use strict";var Re=ke(60499),gt=ke(85899),x=ke(18642),De=ke(72190),ve=ke(42244),re=ke(92310),ne=ke.n(re),ie=ke(18929),oe=ke(59301),se=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],me=(0,oe.forwardRef)(function(te,ae){var ue,de=te.prefixCls,he=de===void 0?"rc-checkbox":de,we=te.className,Se=te.style,xe=te.checked,ye=te.disabled,Ae=te.defaultChecked,Le=Ae===void 0?!1:Ae,Ce=te.type,je=Ce===void 0?"checkbox":Ce,Me=te.title,Oe=te.onChange,Ee=(0,ve.Z)(te,se),Ne=(0,oe.useRef)(null),_e=(0,ie.Z)(Le,{value:xe}),Ze=(0,De.Z)(_e,2),Pe=Ze[0],Ue=Ze[1];(0,oe.useImperativeHandle)(ae,function(){return{focus:function(){var lt;(lt=Ne.current)===null||lt===void 0||lt.focus()},blur:function(){var lt;(lt=Ne.current)===null||lt===void 0||lt.blur()},input:Ne.current}});var Qe=ne()(he,we,(ue={},(0,x.Z)(ue,"".concat(he,"-checked"),Pe),(0,x.Z)(ue,"".concat(he,"-disabled"),ye),ue)),tt=function(lt){ye||("checked"in te||Ue(lt.target.checked),Oe==null||Oe({target:(0,gt.Z)((0,gt.Z)({},te),{},{type:je,checked:lt.target.checked}),stopPropagation:function(){lt.stopPropagation()},preventDefault:function(){lt.preventDefault()},nativeEvent:lt.nativeEvent}))};return oe.createElement("span",{className:Qe,title:Me,style:Se},oe.createElement("input",(0,Re.Z)({},Ee,{className:"".concat(he,"-input"),ref:Ne,onChange:tt,disabled:ye,checked:!!Pe,type:je})),oe.createElement("span",{className:"".concat(he,"-inner")}))});Ht.Z=me},31561:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return je}});var Re=ke(60499),gt=ke(18642),x=ke(72190),De=ke(42244),ve=ke(35593),re=ke(92310),ne=ke.n(re),ie=ke(8654),oe=ke(59301),se=ke(10228),me=ke(16089),te=se.Z.ESC,ae=se.Z.TAB;function ue(Me){var Oe=Me.visible,Ee=Me.triggerRef,Ne=Me.onVisibleChange,_e=Me.autoFocus,Ze=Me.overlayRef,Pe=oe.useRef(!1),Ue=function(){if(Oe){var lt,Ve;(lt=Ee.current)===null||lt===void 0||(Ve=lt.focus)===null||Ve===void 0||Ve.call(lt),Ne==null||Ne(!1)}},Qe=function(){var lt;return(lt=Ze.current)!==null&<!==void 0&<.focus?(Ze.current.focus(),Pe.current=!0,!0):!1},tt=function(lt){switch(lt.keyCode){case te:Ue();break;case ae:{var Ve=!1;Pe.current||(Ve=Qe()),Ve?lt.preventDefault():Ue();break}}};oe.useEffect(function(){return Oe?(window.addEventListener("keydown",tt),_e&&(0,me.Z)(Qe,3),function(){window.removeEventListener("keydown",tt),Pe.current=!1}):function(){Pe.current=!1}},[Oe])}var de=(0,oe.forwardRef)(function(Me,Oe){var Ee=Me.overlay,Ne=Me.arrow,_e=Me.prefixCls,Ze=(0,oe.useMemo)(function(){var Ue;return typeof Ee=="function"?Ue=Ee():Ue=Ee,Ue},[Ee]),Pe=(0,ie.sQ)(Oe,Ze==null?void 0:Ze.ref);return oe.createElement(oe.Fragment,null,Ne&&oe.createElement("div",{className:"".concat(_e,"-arrow")}),oe.cloneElement(Ze,{ref:(0,ie.Yr)(Ze)?Pe:void 0}))}),he=de,we={adjustX:1,adjustY:1},Se=[0,0],xe={topLeft:{points:["bl","tl"],overflow:we,offset:[0,-4],targetOffset:Se},top:{points:["bc","tc"],overflow:we,offset:[0,-4],targetOffset:Se},topRight:{points:["br","tr"],overflow:we,offset:[0,-4],targetOffset:Se},bottomLeft:{points:["tl","bl"],overflow:we,offset:[0,4],targetOffset:Se},bottom:{points:["tc","bc"],overflow:we,offset:[0,4],targetOffset:Se},bottomRight:{points:["tr","br"],overflow:we,offset:[0,4],targetOffset:Se}},ye=xe,Ae=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Le(Me,Oe){var Ee,Ne=Me.arrow,_e=Ne===void 0?!1:Ne,Ze=Me.prefixCls,Pe=Ze===void 0?"rc-dropdown":Ze,Ue=Me.transitionName,Qe=Me.animation,tt=Me.align,at=Me.placement,lt=at===void 0?"bottomLeft":at,Ve=Me.placements,Xe=Ve===void 0?ye:Ve,nt=Me.getPopupContainer,ct=Me.showAction,ot=Me.hideAction,et=Me.overlayClassName,qe=Me.overlayStyle,it=Me.visible,yt=Me.trigger,pt=yt===void 0?["hover"]:yt,Dt=Me.autoFocus,At=Me.overlay,st=Me.children,Ge=Me.onVisibleChange,We=(0,De.Z)(Me,Ae),le=oe.useState(),fe=(0,x.Z)(le,2),ze=fe[0],He=fe[1],pe="visible"in Me?it:ze,Ie=oe.useRef(null),Ke=oe.useRef(null),Ye=oe.useRef(null);oe.useImperativeHandle(Oe,function(){return Ie.current});var Je=function(Mt){He(Mt),Ge==null||Ge(Mt)};ue({visible:pe,triggerRef:Ye,onVisibleChange:Je,autoFocus:Dt,overlayRef:Ke});var dt=function(Mt){var ft=Me.onOverlayClick;He(!1),ft&&ft(Mt)},bt=function(){return oe.createElement(he,{ref:Ke,overlay:At,prefixCls:Pe,arrow:_e})},vt=function(){return typeof At=="function"?bt:bt()},It=function(){var Mt=Me.minOverlayWidthMatchTrigger,ft=Me.alignPoint;return"minOverlayWidthMatchTrigger"in Me?Mt:!ft},Vt=function(){var Mt=Me.openClassName;return Mt!==void 0?Mt:"".concat(Pe,"-open")},kt=oe.cloneElement(st,{className:ne()((Ee=st.props)===null||Ee===void 0?void 0:Ee.className,pe&&Vt()),ref:(0,ie.Yr)(st)?(0,ie.sQ)(Ye,st.ref):void 0}),jt=ot;return!jt&&pt.indexOf("contextMenu")!==-1&&(jt=["click"]),oe.createElement(ve.Z,(0,Re.Z)({builtinPlacements:Xe},We,{prefixCls:Pe,ref:Ie,popupClassName:ne()(et,(0,gt.Z)({},"".concat(Pe,"-show-arrow"),_e)),popupStyle:qe,action:pt,showAction:ct,hideAction:jt,popupPlacement:lt,popupAlign:tt,popupTransitionName:Ue,popupAnimation:Qe,popupVisible:pe,stretch:It()?"minWidth":"",popup:vt(),onPopupVisibleChange:Je,onPopupClick:dt,getPopupContainer:nt}),kt)}var Ce=oe.forwardRef(Le),je=Ce},93681:function(or,Ht,ke){"use strict";ke.r(Ht),ke.d(Ht,{BaseInput:function(){return se},default:function(){return xe}});var Re=ke(60499),gt=ke(85899),x=ke(18642),De=ke(43749),ve=ke(92310),re=ke.n(ve),ne=ke(59301),ie=ke(5643),oe=function(Ae){var Le,Ce,je=Ae.inputElement,Me=Ae.prefixCls,Oe=Ae.prefix,Ee=Ae.suffix,Ne=Ae.addonBefore,_e=Ae.addonAfter,Ze=Ae.className,Pe=Ae.style,Ue=Ae.disabled,Qe=Ae.readOnly,tt=Ae.focused,at=Ae.triggerFocus,lt=Ae.allowClear,Ve=Ae.value,Xe=Ae.handleReset,nt=Ae.hidden,ct=Ae.classes,ot=Ae.classNames,et=Ae.dataAttrs,qe=Ae.styles,it=Ae.components,yt=(it==null?void 0:it.affixWrapper)||"span",pt=(it==null?void 0:it.groupWrapper)||"span",Dt=(it==null?void 0:it.wrapper)||"span",At=(it==null?void 0:it.groupAddon)||"span",st=(0,ne.useRef)(null),Ge=function(bt){var vt;(vt=st.current)!==null&&vt!==void 0&&vt.contains(bt.target)&&(at==null||at())},We=function(){var bt;if(!lt)return null;var vt=!Ue&&!Qe&&Ve,It="".concat(Me,"-clear-icon"),Vt=(0,De.Z)(lt)==="object"&<!==null&<!==void 0&<.clearIcon?lt.clearIcon:"\u2716";return ne.createElement("span",{onClick:Xe,onMouseDown:function(jt){return jt.preventDefault()},className:re()(It,(bt={},(0,x.Z)(bt,"".concat(It,"-hidden"),!vt),(0,x.Z)(bt,"".concat(It,"-has-suffix"),!!Ee),bt)),role:"button",tabIndex:-1},Vt)},le=(0,ne.cloneElement)(je,{value:Ve,hidden:nt,className:re()((Le=je.props)===null||Le===void 0?void 0:Le.className,!(0,ie.X3)(Ae)&&!(0,ie.He)(Ae)&&Ze)||null,style:(0,gt.Z)((0,gt.Z)({},(Ce=je.props)===null||Ce===void 0?void 0:Ce.style),!(0,ie.X3)(Ae)&&!(0,ie.He)(Ae)?Pe:{})});if((0,ie.X3)(Ae)){var fe,ze="".concat(Me,"-affix-wrapper"),He=re()(ze,(fe={},(0,x.Z)(fe,"".concat(ze,"-disabled"),Ue),(0,x.Z)(fe,"".concat(ze,"-focused"),tt),(0,x.Z)(fe,"".concat(ze,"-readonly"),Qe),(0,x.Z)(fe,"".concat(ze,"-input-with-clear-btn"),Ee&<&&Ve),fe),!(0,ie.He)(Ae)&&Ze,ct==null?void 0:ct.affixWrapper,ot==null?void 0:ot.affixWrapper),pe=(Ee||lt)&&ne.createElement("span",{className:re()("".concat(Me,"-suffix"),ot==null?void 0:ot.suffix),style:qe==null?void 0:qe.suffix},We(),Ee);le=ne.createElement(yt,(0,Re.Z)({className:He,style:(0,gt.Z)((0,gt.Z)({},(0,ie.He)(Ae)?void 0:Pe),qe==null?void 0:qe.affixWrapper),hidden:!(0,ie.He)(Ae)&&nt,onClick:Ge},et==null?void 0:et.affixWrapper,{ref:st}),Oe&&ne.createElement("span",{className:re()("".concat(Me,"-prefix"),ot==null?void 0:ot.prefix),style:qe==null?void 0:qe.prefix},Oe),(0,ne.cloneElement)(je,{value:Ve,hidden:null}),pe)}if((0,ie.He)(Ae)){var Ie="".concat(Me,"-group"),Ke="".concat(Ie,"-addon"),Ye=re()("".concat(Me,"-wrapper"),Ie,ct==null?void 0:ct.wrapper),Je=re()("".concat(Me,"-group-wrapper"),Ze,ct==null?void 0:ct.group);return ne.createElement(pt,{className:Je,style:Pe,hidden:nt},ne.createElement(Dt,{className:Ye},Ne&&ne.createElement(At,{className:Ke},Ne),(0,ne.cloneElement)(le,{hidden:null}),_e&&ne.createElement(At,{className:Ke},_e)))}return le},se=oe,me=ke(77654),te=ke(72190),ae=ke(42244),ue=ke(18929),de=ke(2738),he=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],we=(0,ne.forwardRef)(function(ye,Ae){var Le=ye.autoComplete,Ce=ye.onChange,je=ye.onFocus,Me=ye.onBlur,Oe=ye.onPressEnter,Ee=ye.onKeyDown,Ne=ye.prefixCls,_e=Ne===void 0?"rc-input":Ne,Ze=ye.disabled,Pe=ye.htmlSize,Ue=ye.className,Qe=ye.maxLength,tt=ye.suffix,at=ye.showCount,lt=ye.type,Ve=lt===void 0?"text":lt,Xe=ye.classes,nt=ye.classNames,ct=ye.styles,ot=(0,ae.Z)(ye,he),et=(0,ue.Z)(ye.defaultValue,{value:ye.value}),qe=(0,te.Z)(et,2),it=qe[0],yt=qe[1],pt=(0,ne.useState)(!1),Dt=(0,te.Z)(pt,2),At=Dt[0],st=Dt[1],Ge=(0,ne.useRef)(null),We=function(Je){Ge.current&&(0,ie.nH)(Ge.current,Je)};(0,ne.useImperativeHandle)(Ae,function(){return{focus:We,blur:function(){var Je;(Je=Ge.current)===null||Je===void 0||Je.blur()},setSelectionRange:function(Je,dt,bt){var vt;(vt=Ge.current)===null||vt===void 0||vt.setSelectionRange(Je,dt,bt)},select:function(){var Je;(Je=Ge.current)===null||Je===void 0||Je.select()},input:Ge.current}}),(0,ne.useEffect)(function(){st(function(Ye){return Ye&&Ze?!1:Ye})},[Ze]);var le=function(Je){ye.value===void 0&&yt(Je.target.value),Ge.current&&(0,ie.rJ)(Ge.current,Je,Ce)},fe=function(Je){Oe&&Je.key==="Enter"&&Oe(Je),Ee==null||Ee(Je)},ze=function(Je){st(!0),je==null||je(Je)},He=function(Je){st(!1),Me==null||Me(Je)},pe=function(Je){yt(""),We(),Ge.current&&(0,ie.rJ)(Ge.current,Je,Ce)},Ie=function(){var Je=(0,de.Z)(ye,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ne.createElement("input",(0,Re.Z)({autoComplete:Le},Je,{onChange:le,onFocus:ze,onBlur:He,onKeyDown:fe,className:re()(_e,(0,x.Z)({},"".concat(_e,"-disabled"),Ze),nt==null?void 0:nt.input),style:ct==null?void 0:ct.input,ref:Ge,size:Pe,type:Ve}))},Ke=function(){var Je=Number(Qe)>0;if(tt||at){var dt=(0,ie.D7)(it),bt=(0,me.Z)(dt).length,vt=(0,De.Z)(at)==="object"?at.formatter({value:dt,count:bt,maxLength:Qe}):"".concat(bt).concat(Je?" / ".concat(Qe):"");return ne.createElement(ne.Fragment,null,!!at&&ne.createElement("span",{className:re()("".concat(_e,"-show-count-suffix"),(0,x.Z)({},"".concat(_e,"-show-count-has-suffix"),!!tt),nt==null?void 0:nt.count),style:(0,gt.Z)({},ct==null?void 0:ct.count)},vt),tt)}return null};return ne.createElement(se,(0,Re.Z)({},ot,{prefixCls:_e,className:Ue,inputElement:Ie(),handleReset:pe,value:(0,ie.D7)(it),focused:At,triggerFocus:We,suffix:Ke(),disabled:Ze,classes:Xe,classNames:nt,styles:ct}))}),Se=we,xe=Se},5643:function(or,Ht,ke){"use strict";ke.d(Ht,{D7:function(){return ve},He:function(){return Re},X3:function(){return gt},nH:function(){return De},rJ:function(){return x}});function Re(re){return!!(re.addonBefore||re.addonAfter)}function gt(re){return!!(re.prefix||re.suffix||re.allowClear)}function x(re,ne,ie,oe){if(ie){var se=ne;if(ne.type==="click"){var me=re.cloneNode(!0);se=Object.create(ne,{target:{value:me},currentTarget:{value:me}}),me.value="",ie(se);return}if(oe!==void 0){se=Object.create(ne,{target:{value:re},currentTarget:{value:re}}),re.value=oe,ie(se);return}ie(se)}}function De(re,ne){if(re){re.focus(ne);var ie=ne||{},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 ve(re){return typeof re=="undefined"||re===null?"":String(re)}},15285:function(or,Ht,ke){"use strict";ke.d(Ht,{iz:function(){return Er},ck:function(){return jn},BW:function(){return Lr},sN:function(){return jn},Wd:function(){return Zt},ZP:function(){return xr},Xl:function(){return Ee}});var Re=ke(60499),gt=ke(18642),x=ke(85899),De=ke(77654),ve=ke(72190),re=ke(42244),ne=ke(92310),ie=ke.n(ne),oe=ke(83836),se=ke(18929),me=ke(13697),te=ke(48736),ae=ke(59301),ue=ke(4676),de=ae.createContext(null);function he(Lt,Yt){return Lt===void 0?null:"".concat(Lt,"-").concat(Yt)}function we(Lt){var Yt=ae.useContext(de);return he(Yt,Lt)}var Se=ke(80547),xe=["children","locked"],ye=ae.createContext(null);function Ae(Lt,Yt){var er=(0,x.Z)({},Lt);return Object.keys(Yt).forEach(function(dr){var lr=Yt[dr];lr!==void 0&&(er[dr]=lr)}),er}function Le(Lt){var Yt=Lt.children,er=Lt.locked,dr=(0,re.Z)(Lt,xe),lr=ae.useContext(ye),fr=(0,Se.Z)(function(){return Ae(lr,dr)},[lr,dr],function(hr,Cr){return!er&&(hr[0]!==Cr[0]||!(0,me.Z)(hr[1],Cr[1],!0))});return ae.createElement(ye.Provider,{value:fr},Yt)}var Ce=[],je=ae.createContext(null);function Me(){return ae.useContext(je)}var Oe=ae.createContext(Ce);function Ee(Lt){var Yt=ae.useContext(Oe);return ae.useMemo(function(){return Lt!==void 0?[].concat((0,De.Z)(Yt),[Lt]):Yt},[Yt,Lt])}var Ne=ae.createContext(null),_e=ae.createContext({}),Ze=_e,Pe=ke(29194);function Ue(Lt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Pe.Z)(Lt)){var er=Lt.nodeName.toLowerCase(),dr=["input","select","textarea","button"].includes(er)||Lt.isContentEditable||er==="a"&&!!Lt.getAttribute("href"),lr=Lt.getAttribute("tabindex"),fr=Number(lr),hr=null;return lr&&!Number.isNaN(fr)?hr=fr:dr&&hr===null&&(hr=0),dr&&Lt.disabled&&(hr=null),hr!==null&&(hr>=0||Yt&&hr<0)}return!1}function Qe(Lt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,er=(0,De.Z)(Lt.querySelectorAll("*")).filter(function(dr){return Ue(dr,Yt)});return Ue(Lt,Yt)&&er.unshift(Lt),er}var tt=null;function at(){tt=document.activeElement}function lt(){tt=null}function Ve(){if(tt)try{tt.focus()}catch(Lt){}}function Xe(Lt,Yt){if(Yt.keyCode===9){var er=Qe(Lt),dr=er[Yt.shiftKey?0:er.length-1],lr=dr===document.activeElement||Lt===document.activeElement;if(lr){var fr=er[Yt.shiftKey?er.length-1:0];fr.focus(),Yt.preventDefault()}}}var nt=ke(10228),ct=ke(16089),ot=nt.Z.LEFT,et=nt.Z.RIGHT,qe=nt.Z.UP,it=nt.Z.DOWN,yt=nt.Z.ENTER,pt=nt.Z.ESC,Dt=nt.Z.HOME,At=nt.Z.END,st=[qe,it,ot,et];function Ge(Lt,Yt,er,dr){var lr,fr,hr,Cr,_r="prev",Zr="next",$r="children",nn="parent";if(Lt==="inline"&&dr===yt)return{inlineTrigger:!0};var cn=(lr={},(0,gt.Z)(lr,qe,_r),(0,gt.Z)(lr,it,Zr),lr),dn=(fr={},(0,gt.Z)(fr,ot,er?Zr:_r),(0,gt.Z)(fr,et,er?_r:Zr),(0,gt.Z)(fr,it,$r),(0,gt.Z)(fr,yt,$r),fr),Jr=(hr={},(0,gt.Z)(hr,qe,_r),(0,gt.Z)(hr,it,Zr),(0,gt.Z)(hr,yt,$r),(0,gt.Z)(hr,pt,nn),(0,gt.Z)(hr,ot,er?$r:nn),(0,gt.Z)(hr,et,er?nn:$r),hr),wn={inline:cn,horizontal:dn,vertical:Jr,inlineSub:cn,horizontalSub:Jr,verticalSub:Jr},fn=(Cr=wn["".concat(Lt).concat(Yt?"":"Sub")])===null||Cr===void 0?void 0:Cr[dr];switch(fn){case _r:return{offset:-1,sibling:!0};case Zr:return{offset:1,sibling:!0};case nn:return{offset:-1,sibling:!1};case $r:return{offset:1,sibling:!1};default:return null}}function We(Lt){for(var Yt=Lt;Yt;){if(Yt.getAttribute("data-menu-list"))return Yt;Yt=Yt.parentElement}return null}function le(Lt,Yt){for(var er=Lt||document.activeElement;er;){if(Yt.has(er))return er;er=er.parentElement}return null}function fe(Lt,Yt){var er=Qe(Lt,!0);return er.filter(function(dr){return Yt.has(dr)})}function ze(Lt,Yt,er){var dr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Lt)return null;var lr=fe(Lt,Yt),fr=lr.length,hr=lr.findIndex(function(Cr){return er===Cr});return dr<0?hr===-1?hr=fr-1:hr-=1:dr>0&&(hr+=1),hr=(hr+fr)%fr,lr[hr]}var He=function(Yt,er){var dr=new Set,lr=new Map,fr=new Map;return Yt.forEach(function(hr){var Cr=document.querySelector("[data-menu-id='".concat(he(er,hr),"']"));Cr&&(dr.add(Cr),fr.set(Cr,hr),lr.set(hr,Cr))}),{elements:dr,key2element:lr,element2key:fr}};function pe(Lt,Yt,er,dr,lr,fr,hr,Cr,_r,Zr){var $r=ae.useRef(),nn=ae.useRef();nn.current=Yt;var cn=function(){ct.Z.cancel($r.current)};return ae.useEffect(function(){return function(){cn()}},[]),function(dn){var Jr=dn.which;if([].concat(st,[yt,pt,Dt,At]).includes(Jr)){var wn=fr(),fn=He(wn,dr),On=fn,un=On.elements,mn=On.key2element,yn=On.element2key,en=mn.get(Yt),Ln=le(en,un),Xn=yn.get(Ln),hn=Ge(Lt,hr(Xn,!0).length===1,er,Jr);if(!hn&&Jr!==Dt&&Jr!==At)return;(st.includes(Jr)||[Dt,At].includes(Jr))&&dn.preventDefault();var Kr=function(zn){if(zn){var di=zn,pn=zn.querySelector("a");pn!=null&&pn.getAttribute("href")&&(di=pn);var An=yn.get(zn);Cr(An),cn(),$r.current=(0,ct.Z)(function(){nn.current===An&&di.focus()})}};if([Dt,At].includes(Jr)||hn.sibling||!Ln){var Ur;!Ln||Lt==="inline"?Ur=lr.current:Ur=We(Ln);var Dn,bn=fe(Ur,un);Jr===Dt?Dn=bn[0]:Jr===At?Dn=bn[bn.length-1]:Dn=ze(Ur,un,Ln,hn.offset),Kr(Dn)}else if(hn.inlineTrigger)_r(Xn);else if(hn.offset>0)_r(Xn,!0),cn(),$r.current=(0,ct.Z)(function(){fn=He(wn,dr);var kn=Ln.getAttribute("aria-controls"),zn=document.getElementById(kn),di=ze(zn,fn.elements);Kr(di)},5);else if(hn.offset<0){var Pn=hr(Xn,!0),Un=Pn[Pn.length-2],Zn=mn.get(Un);_r(Un,!1),Kr(Zn)}}Zr==null||Zr(dn)}}function Ie(Lt){Promise.resolve().then(Lt)}var Ke="__RC_UTIL_PATH_SPLIT__",Ye=function(Yt){return Yt.join(Ke)},Je=function(Yt){return Yt.split(Ke)},dt="rc-menu-more";function bt(){var Lt=ae.useState({}),Yt=(0,ve.Z)(Lt,2),er=Yt[1],dr=(0,ae.useRef)(new Map),lr=(0,ae.useRef)(new Map),fr=ae.useState([]),hr=(0,ve.Z)(fr,2),Cr=hr[0],_r=hr[1],Zr=(0,ae.useRef)(0),$r=(0,ae.useRef)(!1),nn=function(){$r.current||er({})},cn=(0,ae.useCallback)(function(mn,yn){var en=Ye(yn);lr.current.set(en,mn),dr.current.set(mn,en),Zr.current+=1;var Ln=Zr.current;Ie(function(){Ln===Zr.current&&nn()})},[]),dn=(0,ae.useCallback)(function(mn,yn){var en=Ye(yn);lr.current.delete(en),dr.current.delete(mn)},[]),Jr=(0,ae.useCallback)(function(mn){_r(mn)},[]),wn=(0,ae.useCallback)(function(mn,yn){var en=dr.current.get(mn)||"",Ln=Je(en);return yn&&Cr.includes(Ln[0])&&Ln.unshift(dt),Ln},[Cr]),fn=(0,ae.useCallback)(function(mn,yn){return mn.some(function(en){var Ln=wn(en,!0);return Ln.includes(yn)})},[wn]),On=function(){var yn=(0,De.Z)(dr.current.keys());return Cr.length&&yn.push(dt),yn},un=(0,ae.useCallback)(function(mn){var yn="".concat(dr.current.get(mn)).concat(Ke),en=new Set;return(0,De.Z)(lr.current.keys()).forEach(function(Ln){Ln.startsWith(yn)&&en.add(lr.current.get(Ln))}),en},[]);return ae.useEffect(function(){return function(){$r.current=!0}},[]),{registerPath:cn,unregisterPath:dn,refreshOverflowKeys:Jr,isSubPathKey:fn,getKeyPath:wn,getKeys:On,getSubPathKeys:un}}function vt(Lt){var Yt=ae.useRef(Lt);Yt.current=Lt;var er=ae.useCallback(function(){for(var dr,lr=arguments.length,fr=new Array(lr),hr=0;hr<lr;hr++)fr[hr]=arguments[hr];return(dr=Yt.current)===null||dr===void 0?void 0:dr.call.apply(dr,[Yt].concat(fr))},[]);return Lt?er:void 0}var It=Math.random().toFixed(5).toString().slice(2),Vt=0;function kt(Lt){var Yt=(0,se.Z)(Lt,{value:Lt}),er=(0,ve.Z)(Yt,2),dr=er[0],lr=er[1];return ae.useEffect(function(){Vt+=1;var fr="".concat(It,"-").concat(Vt);lr("rc-menu-uuid-".concat(fr))},[]),dr}var jt=ke(38705),_t=ke(17212),Mt=ke(39153),ft=ke(55401),St=ke(2738),Nt=ke(8654);function Ft(Lt,Yt,er,dr){var lr=ae.useContext(ye),fr=lr.activeKey,hr=lr.onActive,Cr=lr.onInactive,_r={active:fr===Lt};return Yt||(_r.onMouseEnter=function(Zr){er==null||er({key:Lt,domEvent:Zr}),hr(Lt)},_r.onMouseLeave=function(Zr){dr==null||dr({key:Lt,domEvent:Zr}),Cr(Lt)}),_r}function Ut(Lt){var Yt=ae.useContext(ye),er=Yt.mode,dr=Yt.rtl,lr=Yt.inlineIndent;if(er!=="inline")return null;var fr=Lt;return dr?{paddingRight:fr*lr}:{paddingLeft:fr*lr}}function sr(Lt){var Yt=Lt.icon,er=Lt.props,dr=Lt.children,lr;return Yt===null||Yt===!1?null:(typeof Yt=="function"?lr=ae.createElement(Yt,(0,x.Z)({},er)):typeof Yt!="boolean"&&(lr=Yt),lr||dr||null)}var gr=["item"];function wr(Lt){var Yt=Lt.item,er=(0,re.Z)(Lt,gr);return Object.defineProperty(er,"item",{get:function(){return(0,te.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Yt}}),er}var zr=["title","attribute","elementRef"],Wr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Br=["active"],Nr=function(Lt){(0,Mt.Z)(er,Lt);var Yt=(0,ft.Z)(er);function er(){return(0,jt.Z)(this,er),Yt.apply(this,arguments)}return(0,_t.Z)(er,[{key:"render",value:function(){var lr=this.props,fr=lr.title,hr=lr.attribute,Cr=lr.elementRef,_r=(0,re.Z)(lr,zr),Zr=(0,St.Z)(_r,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,te.ZP)(!hr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),ae.createElement(oe.Z.Item,(0,Re.Z)({},hr,{title:typeof fr=="string"?fr:void 0},Zr,{ref:Cr}))}}]),er}(ae.Component),on=ae.forwardRef(function(Lt,Yt){var er,dr=Lt.style,lr=Lt.className,fr=Lt.eventKey,hr=Lt.warnKey,Cr=Lt.disabled,_r=Lt.itemIcon,Zr=Lt.children,$r=Lt.role,nn=Lt.onMouseEnter,cn=Lt.onMouseLeave,dn=Lt.onClick,Jr=Lt.onKeyDown,wn=Lt.onFocus,fn=(0,re.Z)(Lt,Wr),On=we(fr),un=ae.useContext(ye),mn=un.prefixCls,yn=un.onItemClick,en=un.disabled,Ln=un.overflowDisabled,Xn=un.itemIcon,hn=un.selectedKeys,Kr=un.onActive,Ur=ae.useContext(Ze),Dn=Ur._internalRenderMenuItem,bn="".concat(mn,"-item"),Pn=ae.useRef(),Un=ae.useRef(),Zn=en||Cr,kn=(0,Nt.x1)(Yt,Un),zn=Ee(fr),di=function(rn){return{key:fr,keyPath:(0,De.Z)(zn).reverse(),item:Pn.current,domEvent:rn}},pn=_r||Xn,An=Ft(fr,Zn,nn,cn),Yn=An.active,ei=(0,re.Z)(An,Br),Si=hn.includes(fr),Ei=Ut(zn.length),bi=function(rn){if(!Zn){var ln=di(rn);dn==null||dn(wr(ln)),yn(ln)}},ci=function(rn){if(Jr==null||Jr(rn),rn.which===nt.Z.ENTER){var ln=di(rn);dn==null||dn(wr(ln)),yn(ln)}},Oi=function(rn){Kr(fr),wn==null||wn(rn)},Di={};Lt.role==="option"&&(Di["aria-selected"]=Si);var Cn=ae.createElement(Nr,(0,Re.Z)({ref:Pn,elementRef:kn,role:$r===null?"none":$r||"menuitem",tabIndex:Cr?null:-1,"data-menu-id":Ln&&On?null:On},fn,ei,Di,{component:"li","aria-disabled":Cr,style:(0,x.Z)((0,x.Z)({},Ei),dr),className:ie()(bn,(er={},(0,gt.Z)(er,"".concat(bn,"-active"),Yn),(0,gt.Z)(er,"".concat(bn,"-selected"),Si),(0,gt.Z)(er,"".concat(bn,"-disabled"),Zn),er),lr),onClick:bi,onKeyDown:ci,onFocus:Oi}),Zr,ae.createElement(sr,{props:(0,x.Z)((0,x.Z)({},Lt),{},{isSelected:Si}),icon:pn}));return Dn&&(Cn=Dn(Cn,Lt,{selected:Si})),Cn});function Mn(Lt,Yt){var er=Lt.eventKey,dr=Me(),lr=Ee(er);return ae.useEffect(function(){if(dr)return dr.registerPath(er,lr),function(){dr.unregisterPath(er,lr)}},[lr]),dr?null:ae.createElement(on,(0,Re.Z)({},Lt,{ref:Yt}))}var jn=ae.forwardRef(Mn),an=["className","children"],Tn=function(Yt,er){var dr=Yt.className,lr=Yt.children,fr=(0,re.Z)(Yt,an),hr=ae.useContext(ye),Cr=hr.prefixCls,_r=hr.mode,Zr=hr.rtl;return ae.createElement("ul",(0,Re.Z)({className:ie()(Cr,Zr&&"".concat(Cr,"-rtl"),"".concat(Cr,"-sub"),"".concat(Cr,"-").concat(_r==="inline"?"inline":"vertical"),dr),role:"menu"},fr,{"data-menu-list":!0,ref:er}),lr)},Vr=ae.forwardRef(Tn);Vr.displayName="SubMenuList";var Gn=Vr,Wn=ke(11592);function Jt(Lt,Yt){return(0,Wn.Z)(Lt).map(function(er,dr){if(ae.isValidElement(er)){var lr,fr,hr=er.key,Cr=(lr=(fr=er.props)===null||fr===void 0?void 0:fr.eventKey)!==null&&lr!==void 0?lr:hr,_r=Cr==null;_r&&(Cr="tmp_key-".concat([].concat((0,De.Z)(Yt),[dr]).join("-")));var Zr={key:Cr,eventKey:Cr};return ae.cloneElement(er,Zr)}return er})}var jr=ke(35593),Rr={adjustX:1,adjustY:1},Tr={topLeft:{points:["bl","tl"],overflow:Rr},topRight:{points:["br","tr"],overflow:Rr},bottomLeft:{points:["tl","bl"],overflow:Rr},bottomRight:{points:["tr","br"],overflow:Rr},leftTop:{points:["tr","tl"],overflow:Rr},leftBottom:{points:["br","bl"],overflow:Rr},rightTop:{points:["tl","tr"],overflow:Rr},rightBottom:{points:["bl","br"],overflow:Rr}},Sr={topLeft:{points:["bl","tl"],overflow:Rr},topRight:{points:["br","tr"],overflow:Rr},bottomLeft:{points:["tl","bl"],overflow:Rr},bottomRight:{points:["tr","br"],overflow:Rr},rightTop:{points:["tr","tl"],overflow:Rr},rightBottom:{points:["br","bl"],overflow:Rr},leftTop:{points:["tl","tr"],overflow:Rr},leftBottom:{points:["bl","br"],overflow:Rr}},Dr=null;function Or(Lt,Yt,er){if(Yt)return Yt;if(er)return er[Lt]||er.other}var Yr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Kt(Lt){var Yt=Lt.prefixCls,er=Lt.visible,dr=Lt.children,lr=Lt.popup,fr=Lt.popupStyle,hr=Lt.popupClassName,Cr=Lt.popupOffset,_r=Lt.disabled,Zr=Lt.mode,$r=Lt.onVisibleChange,nn=ae.useContext(ye),cn=nn.getPopupContainer,dn=nn.rtl,Jr=nn.subMenuOpenDelay,wn=nn.subMenuCloseDelay,fn=nn.builtinPlacements,On=nn.triggerSubMenuAction,un=nn.forceSubMenuRender,mn=nn.rootClassName,yn=nn.motion,en=nn.defaultMotions,Ln=ae.useState(!1),Xn=(0,ve.Z)(Ln,2),hn=Xn[0],Kr=Xn[1],Ur=dn?(0,x.Z)((0,x.Z)({},Sr),fn):(0,x.Z)((0,x.Z)({},Tr),fn),Dn=Yr[Zr],bn=Or(Zr,yn,en),Pn=ae.useRef(bn);Zr!=="inline"&&(Pn.current=bn);var Un=(0,x.Z)((0,x.Z)({},Pn.current),{},{leavedClassName:"".concat(Yt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Zn=ae.useRef();return ae.useEffect(function(){return Zn.current=(0,ct.Z)(function(){Kr(er)}),function(){ct.Z.cancel(Zn.current)}},[er]),ae.createElement(jr.Z,{prefixCls:Yt,popupClassName:ie()("".concat(Yt,"-popup"),(0,gt.Z)({},"".concat(Yt,"-rtl"),dn),hr,mn),stretch:Zr==="horizontal"?"minWidth":null,getPopupContainer:cn,builtinPlacements:Ur,popupPlacement:Dn,popupVisible:hn,popup:lr,popupStyle:fr,popupAlign:Cr&&{offset:Cr},action:_r?[]:[On],mouseEnterDelay:Jr,mouseLeaveDelay:wn,onPopupVisibleChange:$r,forceRender:un,popupMotion:Un,fresh:!0},dr)}var xt=ke(77900);function Bt(Lt){var Yt=Lt.id,er=Lt.open,dr=Lt.keyPath,lr=Lt.children,fr="inline",hr=ae.useContext(ye),Cr=hr.prefixCls,_r=hr.forceSubMenuRender,Zr=hr.motion,$r=hr.defaultMotions,nn=hr.mode,cn=ae.useRef(!1);cn.current=nn===fr;var dn=ae.useState(!cn.current),Jr=(0,ve.Z)(dn,2),wn=Jr[0],fn=Jr[1],On=cn.current?er:!1;ae.useEffect(function(){cn.current&&fn(!1)},[nn]);var un=(0,x.Z)({},Or(fr,Zr,$r));dr.length>1&&(un.motionAppear=!1);var mn=un.onVisibleChanged;return un.onVisibleChanged=function(yn){return!cn.current&&!yn&&fn(!0),mn==null?void 0:mn(yn)},wn?null:ae.createElement(Le,{mode:fr,locked:!cn.current},ae.createElement(xt.default,(0,Re.Z)({visible:On},un,{forceRender:_r,removeOnLeave:!1,leavedClassName:"".concat(Cr,"-hidden")}),function(yn){var en=yn.className,Ln=yn.style;return ae.createElement(Gn,{id:Yt,className:en,style:Ln},lr)}))}var Ot=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Et=["active"],zt=function(Yt){var er,dr=Yt.style,lr=Yt.className,fr=Yt.title,hr=Yt.eventKey,Cr=Yt.warnKey,_r=Yt.disabled,Zr=Yt.internalPopupClose,$r=Yt.children,nn=Yt.itemIcon,cn=Yt.expandIcon,dn=Yt.popupClassName,Jr=Yt.popupOffset,wn=Yt.popupStyle,fn=Yt.onClick,On=Yt.onMouseEnter,un=Yt.onMouseLeave,mn=Yt.onTitleClick,yn=Yt.onTitleMouseEnter,en=Yt.onTitleMouseLeave,Ln=(0,re.Z)(Yt,Ot),Xn=we(hr),hn=ae.useContext(ye),Kr=hn.prefixCls,Ur=hn.mode,Dn=hn.openKeys,bn=hn.disabled,Pn=hn.overflowDisabled,Un=hn.activeKey,Zn=hn.selectedKeys,kn=hn.itemIcon,zn=hn.expandIcon,di=hn.onItemClick,pn=hn.onOpenChange,An=hn.onActive,Yn=ae.useContext(Ze),ei=Yn._internalRenderSubMenuItem,Si=ae.useContext(Ne),Ei=Si.isSubPathKey,bi=Ee(),ci="".concat(Kr,"-submenu"),Oi=bn||_r,Di=ae.useRef(),Cn=ae.useRef(),Sn=nn!=null?nn:kn,rn=cn!=null?cn:zn,ln=Dn.includes(hr),ii=!Pn&&ln,xi=Ei(Zn,hr),Ci=Ft(hr,Oi,yn,en),Ai=Ci.active,gi=(0,re.Z)(Ci,Et),Ii=ae.useState(!1),Ki=(0,ve.Z)(Ii,2),Fi=Ki[0],Yi=Ki[1],li=function(ri){Oi||Yi(ri)},hi=function(ri){li(!0),On==null||On({key:hr,domEvent:ri})},Li=function(ri){li(!1),un==null||un({key:hr,domEvent:ri})},yr=ae.useMemo(function(){return Ai||(Ur!=="inline"?Fi||Ei([Un],hr):!1)},[Ur,Ai,Un,Fi,hr,Ei]),vr=Ut(bi.length),Mr=function(ri){Oi||(mn==null||mn({key:hr,domEvent:ri}),Ur==="inline"&&pn(hr,!ln))},Gr=vt(function(gn){fn==null||fn(wr(gn)),di(gn)}),Xr=function(ri){Ur!=="inline"&&pn(hr,ri)},vn=function(){An(hr)},Ir=Xn&&"".concat(Xn,"-popup"),Qr=ae.createElement("div",(0,Re.Z)({role:"menuitem",style:vr,className:"".concat(ci,"-title"),tabIndex:Oi?null:-1,ref:Di,title:typeof fr=="string"?fr:null,"data-menu-id":Pn&&Xn?null:Xn,"aria-expanded":ii,"aria-haspopup":!0,"aria-controls":Ir,"aria-disabled":Oi,onClick:Mr,onFocus:vn},gi),fr,ae.createElement(sr,{icon:Ur!=="horizontal"?rn:void 0,props:(0,x.Z)((0,x.Z)({},Yt),{},{isOpen:ii,isSubMenu:!0})},ae.createElement("i",{className:"".concat(ci,"-arrow")}))),In=ae.useRef(Ur);if(Ur!=="inline"&&bi.length>1?In.current="vertical":In.current=Ur,!Pn){var Kn=In.current;Qr=ae.createElement(Kt,{mode:Kn,prefixCls:ci,visible:!Zr&&ii&&Ur!=="inline",popupClassName:dn,popupOffset:Jr,popupStyle:wn,popup:ae.createElement(Le,{mode:Kn==="horizontal"?"vertical":Kn},ae.createElement(Gn,{id:Ir,ref:Cn},$r)),disabled:Oi,onVisibleChange:Xr},Qr)}var Jn=ae.createElement(oe.Z.Item,(0,Re.Z)({role:"none"},Ln,{component:"li",style:dr,className:ie()(ci,"".concat(ci,"-").concat(Ur),lr,(er={},(0,gt.Z)(er,"".concat(ci,"-open"),ii),(0,gt.Z)(er,"".concat(ci,"-active"),yr),(0,gt.Z)(er,"".concat(ci,"-selected"),xi),(0,gt.Z)(er,"".concat(ci,"-disabled"),Oi),er)),onMouseEnter:hi,onMouseLeave:Li}),Qr,!Pn&&ae.createElement(Bt,{id:Ir,open:ii,keyPath:bi},$r));return ei&&(Jn=ei(Jn,Yt,{selected:xi,active:yr,open:ii,disabled:Oi})),ae.createElement(Le,{onItemClick:Gr,mode:Ur==="horizontal"?"vertical":Ur,itemIcon:Sn,expandIcon:rn},Jn)};function Zt(Lt){var Yt=Lt.eventKey,er=Lt.children,dr=Ee(Yt),lr=Jt(er,dr),fr=Me();ae.useEffect(function(){if(fr)return fr.registerPath(Yt,dr),function(){fr.unregisterPath(Yt,dr)}},[dr]);var hr;return fr?hr=lr:hr=ae.createElement(zt,Lt,lr),ae.createElement(Oe.Provider,{value:dr},hr)}var nr=ke(43749),$t=["className","title","eventKey","children"],pr=["children"],Ar=function(Yt){var er=Yt.className,dr=Yt.title,lr=Yt.eventKey,fr=Yt.children,hr=(0,re.Z)(Yt,$t),Cr=ae.useContext(ye),_r=Cr.prefixCls,Zr="".concat(_r,"-item-group");return ae.createElement("li",(0,Re.Z)({role:"presentation"},hr,{onClick:function(nn){return nn.stopPropagation()},className:ie()(Zr,er)}),ae.createElement("div",{role:"presentation",className:"".concat(Zr,"-title"),title:typeof dr=="string"?dr:void 0},dr),ae.createElement("ul",{role:"group",className:"".concat(Zr,"-list")},fr))};function Lr(Lt){var Yt=Lt.children,er=(0,re.Z)(Lt,pr),dr=Ee(er.eventKey),lr=Jt(Yt,dr),fr=Me();return fr?lr:ae.createElement(Ar,(0,St.Z)(er,["warnKey"]),lr)}function Er(Lt){var Yt=Lt.className,er=Lt.style,dr=ae.useContext(ye),lr=dr.prefixCls,fr=Me();return fr?null:ae.createElement("li",{role:"separator",className:ie()("".concat(lr,"-item-divider"),Yt),style:er})}var tr=["label","children","key","type"];function br(Lt){return(Lt||[]).map(function(Yt,er){if(Yt&&(0,nr.Z)(Yt)==="object"){var dr=Yt,lr=dr.label,fr=dr.children,hr=dr.key,Cr=dr.type,_r=(0,re.Z)(dr,tr),Zr=hr!=null?hr:"tmp-".concat(er);return fr||Cr==="group"?Cr==="group"?ae.createElement(Lr,(0,Re.Z)({key:Zr},_r,{title:lr}),br(fr)):ae.createElement(Zt,(0,Re.Z)({key:Zr},_r,{title:lr}),br(fr)):Cr==="divider"?ae.createElement(Er,(0,Re.Z)({key:Zr},_r)):ae.createElement(jn,(0,Re.Z)({key:Zr},_r),lr)}return null}).filter(function(Yt){return Yt})}function Wt(Lt,Yt,er){var dr=Lt;return Yt&&(dr=br(Yt)),Jt(dr,er)}var Qt=["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"],Xt=[],qt=ae.forwardRef(function(Lt,Yt){var er,dr,lr=Lt,fr=lr.prefixCls,hr=fr===void 0?"rc-menu":fr,Cr=lr.rootClassName,_r=lr.style,Zr=lr.className,$r=lr.tabIndex,nn=$r===void 0?0:$r,cn=lr.items,dn=lr.children,Jr=lr.direction,wn=lr.id,fn=lr.mode,On=fn===void 0?"vertical":fn,un=lr.inlineCollapsed,mn=lr.disabled,yn=lr.disabledOverflow,en=lr.subMenuOpenDelay,Ln=en===void 0?.1:en,Xn=lr.subMenuCloseDelay,hn=Xn===void 0?.1:Xn,Kr=lr.forceSubMenuRender,Ur=lr.defaultOpenKeys,Dn=lr.openKeys,bn=lr.activeKey,Pn=lr.defaultActiveFirst,Un=lr.selectable,Zn=Un===void 0?!0:Un,kn=lr.multiple,zn=kn===void 0?!1:kn,di=lr.defaultSelectedKeys,pn=lr.selectedKeys,An=lr.onSelect,Yn=lr.onDeselect,ei=lr.inlineIndent,Si=ei===void 0?24:ei,Ei=lr.motion,bi=lr.defaultMotions,ci=lr.triggerSubMenuAction,Oi=ci===void 0?"hover":ci,Di=lr.builtinPlacements,Cn=lr.itemIcon,Sn=lr.expandIcon,rn=lr.overflowedIndicator,ln=rn===void 0?"...":rn,ii=lr.overflowedIndicatorPopupClassName,xi=lr.getPopupContainer,Ci=lr.onClick,Ai=lr.onOpenChange,gi=lr.onKeyDown,Ii=lr.openAnimation,Ki=lr.openTransitionName,Fi=lr._internalRenderMenuItem,Yi=lr._internalRenderSubMenuItem,li=(0,re.Z)(lr,Qt),hi=ae.useMemo(function(){return Wt(dn,cn,Xt)},[dn,cn]),Li=ae.useState(!1),yr=(0,ve.Z)(Li,2),vr=yr[0],Mr=yr[1],Gr=ae.useRef(),Xr=kt(wn),vn=Jr==="rtl",Ir=(0,se.Z)(Ur,{value:Dn,postState:function(Zi){return Zi||Xt}}),Qr=(0,ve.Z)(Ir,2),In=Qr[0],Kn=Qr[1],Jn=function(Zi){var $i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function no(){Kn(Zi),Ai==null||Ai(Zi)}$i?(0,ue.flushSync)(no):no()},gn=ae.useState(In),ri=(0,ve.Z)(gn,2),pi=ri[0],si=ri[1],Nn=ae.useRef(!1),$n=ae.useMemo(function(){return(On==="inline"||On==="vertical")&&un?["vertical",un]:[On,!1]},[On,un]),wi=(0,ve.Z)($n,2),vi=wi[0],Mi=wi[1],pa=vi==="inline",Ma=ae.useState(vi),za=(0,ve.Z)(Ma,2),Ba=za[0],Bo=za[1],Va=ae.useState(Mi),ba=(0,ve.Z)(Va,2),Ji=ba[0],Ka=ba[1];ae.useEffect(function(){Bo(vi),Ka(Mi),Nn.current&&(pa?Kn(pi):Jn(Xt))},[vi,Mi]);var so=ae.useState(0),lo=(0,ve.Z)(so,2),co=lo[0],Ha=lo[1],xa=co>=hi.length-1||Ba!=="horizontal"||yn;ae.useEffect(function(){pa&&si(In)},[In]),ae.useEffect(function(){return Nn.current=!0,function(){Nn.current=!1}},[]);var wa=bt(),Hi=wa.registerPath,uo=wa.unregisterPath,zo=wa.refreshOverflowKeys,Lo=wa.isSubPathKey,Ni=wa.getKeyPath,Bi=wa.getKeys,Qi=wa.getSubPathKeys,La=ae.useMemo(function(){return{registerPath:Hi,unregisterPath:uo}},[Hi,uo]),ta=ae.useMemo(function(){return{isSubPathKey:Lo}},[Lo]);ae.useEffect(function(){zo(xa?Xt:hi.slice(co+1).map(function(Wi){return Wi.key}))},[co,xa]);var Wa=(0,se.Z)(bn||Pn&&((er=hi[0])===null||er===void 0?void 0:er.key),{value:bn}),Ga=(0,ve.Z)(Wa,2),fo=Ga[0],Ua=Ga[1],go=vt(function(Wi){Ua(Wi)}),vo=vt(function(){Ua(void 0)});(0,ae.useImperativeHandle)(Yt,function(){return{list:Gr.current,focus:function(Zi){var $i,no=Bi(),Ra=He(no,Xr),Mo=Ra.elements,wo=Ra.key2element,Xa=Ra.element2key,Po=fe(Gr.current,Mo),Ro=fo!=null?fo:Po[0]?Xa.get(Po[0]):($i=hi.find(function(Ul){return!Ul.props.disabled}))===null||$i===void 0?void 0:$i.key,ko=wo.get(Ro);if(Ro&&ko){var ss;ko==null||(ss=ko.focus)===null||ss===void 0||ss.call(ko,Zi)}}}});var Pa=(0,se.Z)(di||[],{value:pn,postState:function(Zi){return Array.isArray(Zi)?Zi:Zi==null?Xt:[Zi]}}),xl=(0,ve.Z)(Pa,2),Yo=xl[0],Qs=xl[1],Hl=function(Zi){if(Zn){var $i=Zi.key,no=Yo.includes($i),Ra;zn?no?Ra=Yo.filter(function(wo){return wo!==$i}):Ra=[].concat((0,De.Z)(Yo),[$i]):Ra=[$i],Qs(Ra);var Mo=(0,x.Z)((0,x.Z)({},Zi),{},{selectedKeys:Ra});no?Yn==null||Yn(Mo):An==null||An(Mo)}!zn&&In.length&&Ba!=="inline"&&Jn(Xt)},Wl=vt(function(Wi){Ci==null||Ci(wr(Wi)),Hl(Wi)}),Cs=vt(function(Wi,Zi){var $i=In.filter(function(Ra){return Ra!==Wi});if(Zi)$i.push(Wi);else if(Ba!=="inline"){var no=Qi(Wi);$i=$i.filter(function(Ra){return!no.has(Ra)})}(0,me.Z)(In,$i,!0)||Jn($i,!0)}),Mc=function(Zi,$i){var no=$i!=null?$i:!In.includes(Zi);Cs(Zi,no)},as=pe(Ba,fo,vn,Xr,Gr,Bi,Ni,Ua,Mc,gi);ae.useEffect(function(){Mr(!0)},[]);var wl=ae.useMemo(function(){return{_internalRenderMenuItem:Fi,_internalRenderSubMenuItem:Yi}},[Fi,Yi]),Jo=Ba!=="horizontal"||yn?hi:hi.map(function(Wi,Zi){return ae.createElement(Le,{key:Wi.key,overflowDisabled:Zi>co},Wi)}),os=ae.createElement(oe.Z,(0,Re.Z)({id:wn,ref:Gr,prefixCls:"".concat(hr,"-overflow"),component:"ul",itemComponent:jn,className:ie()(hr,"".concat(hr,"-root"),"".concat(hr,"-").concat(Ba),Zr,(dr={},(0,gt.Z)(dr,"".concat(hr,"-inline-collapsed"),Ji),(0,gt.Z)(dr,"".concat(hr,"-rtl"),vn),dr),Cr),dir:Jr,style:_r,role:"menu",tabIndex:nn,data:Jo,renderRawItem:function(Zi){return Zi},renderRawRest:function(Zi){var $i=Zi.length,no=$i?hi.slice(-$i):null;return ae.createElement(Zt,{eventKey:dt,title:ln,disabled:xa,internalPopupClose:$i===0,popupClassName:ii},no)},maxCount:Ba!=="horizontal"||yn?oe.Z.INVALIDATE:oe.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Zi){Ha(Zi)},onKeyDown:as},li));return ae.createElement(Ze.Provider,{value:wl},ae.createElement(de.Provider,{value:Xr},ae.createElement(Le,{prefixCls:hr,rootClassName:Cr,mode:Ba,openKeys:In,rtl:vn,disabled:mn,motion:vr?Ei:null,defaultMotions:vr?bi:null,activeKey:fo,onActive:go,onInactive:vo,selectedKeys:Yo,inlineIndent:Si,subMenuOpenDelay:Ln,subMenuCloseDelay:hn,forceSubMenuRender:Kr,builtinPlacements:Di,triggerSubMenuAction:Oi,getPopupContainer:xi,itemIcon:Cn,expandIcon:Sn,onItemClick:Wl,onOpenChange:Cs},ae.createElement(Ne.Provider,{value:ta},os),ae.createElement("div",{style:{display:"none"},"aria-hidden":!0},ae.createElement(je.Provider,{value:La},hi)))))}),mr=qt,ar=mr;ar.Item=jn,ar.SubMenu=Zt,ar.ItemGroup=Lr,ar.Divider=Er;var xr=ar},83836:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return at}});var Re=ke(60499),gt=ke(85899),x=ke(72190),De=ke(42244),ve=ke(59301),re=ke(92310),ne=ke.n(re),ie=ke(29301),oe=ke(34280),se=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],me=void 0;function te(lt,Ve){var Xe=lt.prefixCls,nt=lt.invalidate,ct=lt.item,ot=lt.renderItem,et=lt.responsive,qe=lt.responsiveDisabled,it=lt.registerSize,yt=lt.itemKey,pt=lt.className,Dt=lt.style,At=lt.children,st=lt.display,Ge=lt.order,We=lt.component,le=We===void 0?"div":We,fe=(0,De.Z)(lt,se),ze=et&&!st;function He(Je){it(yt,Je)}ve.useEffect(function(){return function(){He(null)}},[]);var pe=ot&&ct!==me?ot(ct,{index:Ge}):At,Ie;nt||(Ie={opacity:ze?0:1,height:ze?0:me,overflowY:ze?"hidden":me,order:et?Ge:me,pointerEvents:ze?"none":me,position:ze?"absolute":me});var Ke={};ze&&(Ke["aria-hidden"]=!0);var Ye=ve.createElement(le,(0,Re.Z)({className:ne()(!nt&&Xe,pt),style:(0,gt.Z)((0,gt.Z)({},Ie),Dt)},Ke,fe,{ref:Ve}),pe);return et&&(Ye=ve.createElement(ie.Z,{onResize:function(dt){var bt=dt.offsetWidth;He(bt)},disabled:qe},Ye)),Ye}var ae=ve.forwardRef(te);ae.displayName="Item";var ue=ae,de=ke(6089),he=ke(4676),we=ke(16089);function Se(lt){if(typeof MessageChannel=="undefined")(0,we.Z)(lt);else{var Ve=new MessageChannel;Ve.port1.onmessage=function(){return lt()},Ve.port2.postMessage(void 0)}}function xe(){var lt=ve.useRef(null),Ve=function(nt){lt.current||(lt.current=[],Se(function(){(0,he.unstable_batchedUpdates)(function(){lt.current.forEach(function(ct){ct()}),lt.current=null})})),lt.current.push(nt)};return Ve}function ye(lt,Ve){var Xe=ve.useState(Ve),nt=(0,x.Z)(Xe,2),ct=nt[0],ot=nt[1],et=(0,de.Z)(function(qe){lt(function(){ot(qe)})});return[ct,et]}var Ae=ve.createContext(null),Le=["component"],Ce=["className"],je=["className"],Me=function(Ve,Xe){var nt=ve.useContext(Ae);if(!nt){var ct=Ve.component,ot=ct===void 0?"div":ct,et=(0,De.Z)(Ve,Le);return ve.createElement(ot,(0,Re.Z)({},et,{ref:Xe}))}var qe=nt.className,it=(0,De.Z)(nt,Ce),yt=Ve.className,pt=(0,De.Z)(Ve,je);return ve.createElement(Ae.Provider,{value:null},ve.createElement(ue,(0,Re.Z)({ref:Xe,className:ne()(qe,yt)},it,pt)))},Oe=ve.forwardRef(Me);Oe.displayName="RawItem";var Ee=Oe,Ne=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],_e="responsive",Ze="invalidate";function Pe(lt){return"+ ".concat(lt.length," ...")}function Ue(lt,Ve){var Xe=lt.prefixCls,nt=Xe===void 0?"rc-overflow":Xe,ct=lt.data,ot=ct===void 0?[]:ct,et=lt.renderItem,qe=lt.renderRawItem,it=lt.itemKey,yt=lt.itemWidth,pt=yt===void 0?10:yt,Dt=lt.ssr,At=lt.style,st=lt.className,Ge=lt.maxCount,We=lt.renderRest,le=lt.renderRawRest,fe=lt.prefix,ze=lt.suffix,He=lt.component,pe=He===void 0?"div":He,Ie=lt.itemComponent,Ke=lt.onVisibleChange,Ye=(0,De.Z)(lt,Ne),Je=Dt==="full",dt=xe(),bt=ye(dt,null),vt=(0,x.Z)(bt,2),It=vt[0],Vt=vt[1],kt=It||0,jt=ye(dt,new Map),_t=(0,x.Z)(jt,2),Mt=_t[0],ft=_t[1],St=ye(dt,0),Nt=(0,x.Z)(St,2),Ft=Nt[0],Ut=Nt[1],sr=ye(dt,0),gr=(0,x.Z)(sr,2),wr=gr[0],zr=gr[1],Wr=ye(dt,0),Br=(0,x.Z)(Wr,2),Nr=Br[0],on=Br[1],Mn=ye(dt,0),jn=(0,x.Z)(Mn,2),an=jn[0],Tn=jn[1],Vr=(0,ve.useState)(null),Gn=(0,x.Z)(Vr,2),Wn=Gn[0],Jt=Gn[1],jr=(0,ve.useState)(null),Rr=(0,x.Z)(jr,2),Tr=Rr[0],Sr=Rr[1],Dr=ve.useMemo(function(){return Tr===null&&Je?Number.MAX_SAFE_INTEGER:Tr||0},[Tr,It]),Or=(0,ve.useState)(!1),Yr=(0,x.Z)(Or,2),Kt=Yr[0],xt=Yr[1],Bt="".concat(nt,"-item"),Ot=Math.max(Ft,wr),Et=Ge===_e,zt=ot.length&&Et,Zt=Ge===Ze,nr=zt||typeof Ge=="number"&&ot.length>Ge,$t=(0,ve.useMemo)(function(){var fr=ot;return zt?It===null&&Je?fr=ot:fr=ot.slice(0,Math.min(ot.length,kt/pt)):typeof Ge=="number"&&(fr=ot.slice(0,Ge)),fr},[ot,pt,It,Ge,zt]),pr=(0,ve.useMemo)(function(){return zt?ot.slice(Dr+1):ot.slice($t.length)},[ot,$t,zt,Dr]),Ar=(0,ve.useCallback)(function(fr,hr){var Cr;return typeof it=="function"?it(fr):(Cr=it&&(fr==null?void 0:fr[it]))!==null&&Cr!==void 0?Cr:hr},[it]),Lr=(0,ve.useCallback)(et||function(fr){return fr},[et]);function Er(fr,hr,Cr){Tr===fr&&(hr===void 0||hr===Wn)||(Sr(fr),Cr||(xt(fr<ot.length-1),Ke==null||Ke(fr)),hr!==void 0&&Jt(hr))}function tr(fr,hr){Vt(hr.clientWidth)}function br(fr,hr){ft(function(Cr){var _r=new Map(Cr);return hr===null?_r.delete(fr):_r.set(fr,hr),_r})}function Wt(fr,hr){zr(hr),Ut(wr)}function Qt(fr,hr){on(hr)}function Xt(fr,hr){Tn(hr)}function qt(fr){return Mt.get(Ar($t[fr],fr))}(0,oe.Z)(function(){if(kt&&typeof Ot=="number"&&$t){var fr=Nr+an,hr=$t.length,Cr=hr-1;if(!hr){Er(0,null);return}for(var _r=0;_r<hr;_r+=1){var Zr=qt(_r);if(Je&&(Zr=Zr||0),Zr===void 0){Er(_r-1,void 0,!0);break}if(fr+=Zr,Cr===0&&fr<=kt||_r===Cr-1&&fr+qt(Cr)<=kt){Er(Cr,null);break}else if(fr+Ot>kt){Er(_r-1,fr-Zr-an+wr);break}}ze&&qt(0)+an>kt&&Jt(null)}},[kt,Mt,wr,Nr,an,Ar,$t]);var mr=Kt&&!!pr.length,ar={};Wn!==null&&zt&&(ar={position:"absolute",left:Wn,top:0});var xr={prefixCls:Bt,responsive:zt,component:Ie,invalidate:Zt},Lt=qe?function(fr,hr){var Cr=Ar(fr,hr);return ve.createElement(Ae.Provider,{key:Cr,value:(0,gt.Z)((0,gt.Z)({},xr),{},{order:hr,item:fr,itemKey:Cr,registerSize:br,display:hr<=Dr})},qe(fr,hr))}:function(fr,hr){var Cr=Ar(fr,hr);return ve.createElement(ue,(0,Re.Z)({},xr,{order:hr,key:Cr,item:fr,renderItem:Lr,itemKey:Cr,registerSize:br,display:hr<=Dr}))},Yt={order:mr?Dr:Number.MAX_SAFE_INTEGER,className:"".concat(Bt,"-rest"),registerSize:Wt,display:mr},er=We||Pe,dr=le?ve.createElement(Ae.Provider,{value:(0,gt.Z)((0,gt.Z)({},xr),Yt)},le(pr)):ve.createElement(ue,(0,Re.Z)({},xr,Yt),typeof er=="function"?er(pr):er),lr=ve.createElement(pe,(0,Re.Z)({className:ne()(!Zt&&nt,st),style:At,ref:Ve},Ye),fe&&ve.createElement(ue,(0,Re.Z)({},xr,{responsive:Et,responsiveDisabled:!zt,order:-1,className:"".concat(Bt,"-prefix"),registerSize:Qt,display:!0}),fe),$t.map(Lt),nr?dr:null,ze&&ve.createElement(ue,(0,Re.Z)({},xr,{responsive:Et,responsiveDisabled:!zt,order:Dr,className:"".concat(Bt,"-suffix"),registerSize:Xt,display:!0,style:ar}),ze));return Et?ve.createElement(ie.Z,{onResize:tr,disabled:!zt},lr):lr}var Qe=ve.forwardRef(Ue);Qe.displayName="Overflow",Qe.Item=Ee,Qe.RESPONSIVE=_e,Qe.INVALIDATE=Ze;var tt=Qe,at=tt},17115:function(or,Ht,ke){"use strict";ke.d(Ht,{ZP:function(){return ne}});var Re=ke(72190),gt=ke(59301),x=ke(47273),De=0,ve=(0,x.Z)();function re(){var ie;return ve?(ie=De,De+=1):ie="TEST_OR_SSR",ie}function ne(ie){var oe=gt.useState(),se=(0,Re.Z)(oe,2),me=se[0],te=se[1];return gt.useEffect(function(){te("rc_select_".concat(re()))},[]),ie||me}},77861:function(or,Ht,ke){"use strict";ke.d(Ht,{Ac:function(){return It},Xo:function(){return wr},Wx:function(){return Wr},ZP:function(){return Bt},lk:function(){return Ae}});var Re=ke(60499),gt=ke(77654),x=ke(18642),De=ke(85899),ve=ke(72190),re=ke(42244),ne=ke(43749),ie=ke(18929),oe=ke(48736),se=ke(59301),me=ke(92310),te=ke.n(me),ae=ke(34280),ue=ke(49658),de=ke(10228),he=ke(8654),we=function(Et){var zt=Et.className,Zt=Et.customizeIcon,nr=Et.customizeIconProps,$t=Et.onMouseDown,pr=Et.onClick,Ar=Et.children,Lr;return typeof Zt=="function"?Lr=Zt(nr):Lr=Zt,se.createElement("span",{className:zt,onMouseDown:function(tr){tr.preventDefault(),$t&&$t(tr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:pr,"aria-hidden":!0},Lr!==void 0?Lr:se.createElement("span",{className:te()(zt.split(/\s+/).map(function(Er){return"".concat(Er,"-icon")}))},Ar))},Se=we;function xe(Ot,Et,zt,Zt,nr){var $t=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,pr=arguments.length>6?arguments[6]:void 0,Ar=arguments.length>7?arguments[7]:void 0,Lr=se.useMemo(function(){if((0,ne.Z)(Zt)==="object")return Zt.clearIcon;if(nr)return nr},[Zt,nr]),Er=se.useMemo(function(){return!!(!$t&&Zt&&(zt.length||pr)&&!(Ar==="combobox"&&pr===""))},[Zt,$t,zt.length,pr,Ar]);return{allowClear:Er,clearIcon:se.createElement(Se,{className:"".concat(Ot,"-clear"),onMouseDown:Et,customizeIcon:Lr},"\xD7")}}var ye=se.createContext(null);function Ae(){return se.useContext(ye)}function Le(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Et=se.useState(!1),zt=(0,ve.Z)(Et,2),Zt=zt[0],nr=zt[1],$t=se.useRef(null),pr=function(){window.clearTimeout($t.current)};se.useEffect(function(){return pr},[]);var Ar=function(Er,tr){pr(),$t.current=window.setTimeout(function(){nr(Er),tr&&tr()},Ot)};return[Zt,Ar,pr]}function Ce(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Et=se.useRef(null),zt=se.useRef(null);se.useEffect(function(){return function(){window.clearTimeout(zt.current)}},[]);function Zt(nr){(nr||Et.current===null)&&(Et.current=nr),window.clearTimeout(zt.current),zt.current=window.setTimeout(function(){Et.current=null},Ot)}return[function(){return Et.current},Zt]}function je(Ot,Et,zt,Zt){var nr=se.useRef(null);nr.current={open:Et,triggerOpen:zt,customizedTrigger:Zt},se.useEffect(function(){function $t(pr){var Ar;if(!((Ar=nr.current)!==null&&Ar!==void 0&&Ar.customizedTrigger)){var Lr=pr.target;Lr.shadowRoot&&pr.composed&&(Lr=pr.composedPath()[0]||Lr),nr.current.open&&Ot().filter(function(Er){return Er}).every(function(Er){return!Er.contains(Lr)&&Er!==Lr})&&nr.current.triggerOpen(!1)}}return window.addEventListener("mousedown",$t),function(){return window.removeEventListener("mousedown",$t)}},[])}var Me=ke(26112),Oe=ke(83836),Ee=function(Et,zt){var Zt,nr,$t=Et.prefixCls,pr=Et.id,Ar=Et.inputElement,Lr=Et.disabled,Er=Et.tabIndex,tr=Et.autoFocus,br=Et.autoComplete,Wt=Et.editable,Qt=Et.activeDescendantId,Xt=Et.value,qt=Et.maxLength,mr=Et.onKeyDown,ar=Et.onMouseDown,xr=Et.onChange,Lt=Et.onPaste,Yt=Et.onCompositionStart,er=Et.onCompositionEnd,dr=Et.open,lr=Et.attrs,fr=Ar||se.createElement("input",null),hr=fr,Cr=hr.ref,_r=hr.props,Zr=_r.onKeyDown,$r=_r.onChange,nn=_r.onMouseDown,cn=_r.onCompositionStart,dn=_r.onCompositionEnd,Jr=_r.style;return(0,oe.Kp)(!("maxLength"in fr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),fr=se.cloneElement(fr,(0,De.Z)((0,De.Z)((0,De.Z)({type:"search"},_r),{},{id:pr,ref:(0,he.sQ)(zt,Cr),disabled:Lr,tabIndex:Er,autoComplete:br||"off",autoFocus:tr,className:te()("".concat($t,"-selection-search-input"),(Zt=fr)===null||Zt===void 0||(nr=Zt.props)===null||nr===void 0?void 0:nr.className),role:"combobox","aria-label":"Search","aria-expanded":dr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(pr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(pr,"_list"),"aria-activedescendant":dr?Qt:void 0},lr),{},{value:Wt?Xt:"",maxLength:qt,readOnly:!Wt,unselectable:Wt?null:"on",style:(0,De.Z)((0,De.Z)({},Jr),{},{opacity:Wt?null:0}),onKeyDown:function(fn){mr(fn),Zr&&Zr(fn)},onMouseDown:function(fn){ar(fn),nn&&nn(fn)},onChange:function(fn){xr(fn),$r&&$r(fn)},onCompositionStart:function(fn){Yt(fn),cn&&cn(fn)},onCompositionEnd:function(fn){er(fn),dn&&dn(fn)},onPaste:Lt})),fr},Ne=se.forwardRef(Ee);Ne.displayName="Input";var _e=Ne;function Ze(Ot){return Array.isArray(Ot)?Ot:Ot!==void 0?[Ot]:[]}var Pe=typeof window!="undefined"&&window.document&&window.document.documentElement,Ue=Pe;function Qe(Ot){return Ot!=null}function tt(Ot){return!Ot&&Ot!==0}function at(Ot){return["string","number"].includes((0,ne.Z)(Ot))}function lt(Ot){var Et=void 0;return Ot&&(at(Ot.title)?Et=Ot.title.toString():at(Ot.label)&&(Et=Ot.label.toString())),Et}function Ve(Ot,Et){Ue?se.useLayoutEffect(Ot,Et):se.useEffect(Ot,Et)}function Xe(Ot){var Et;return(Et=Ot.key)!==null&&Et!==void 0?Et:Ot.value}var nt=function(Et){Et.preventDefault(),Et.stopPropagation()},ct=function(Et){var zt=Et.id,Zt=Et.prefixCls,nr=Et.values,$t=Et.open,pr=Et.searchValue,Ar=Et.autoClearSearchValue,Lr=Et.inputRef,Er=Et.placeholder,tr=Et.disabled,br=Et.mode,Wt=Et.showSearch,Qt=Et.autoFocus,Xt=Et.autoComplete,qt=Et.activeDescendantId,mr=Et.tabIndex,ar=Et.removeIcon,xr=Et.maxTagCount,Lt=Et.maxTagTextLength,Yt=Et.maxTagPlaceholder,er=Yt===void 0?function(Un){return"+ ".concat(Un.length," ...")}:Yt,dr=Et.tagRender,lr=Et.onToggleOpen,fr=Et.onRemove,hr=Et.onInputChange,Cr=Et.onInputPaste,_r=Et.onInputKeyDown,Zr=Et.onInputMouseDown,$r=Et.onInputCompositionStart,nn=Et.onInputCompositionEnd,cn=se.useRef(null),dn=(0,se.useState)(0),Jr=(0,ve.Z)(dn,2),wn=Jr[0],fn=Jr[1],On=(0,se.useState)(!1),un=(0,ve.Z)(On,2),mn=un[0],yn=un[1],en="".concat(Zt,"-selection"),Ln=$t||br==="multiple"&&Ar===!1||br==="tags"?pr:"",Xn=br==="tags"||br==="multiple"&&Ar===!1||Wt&&($t||mn);Ve(function(){fn(cn.current.scrollWidth)},[Ln]);function hn(Un,Zn,kn,zn,di){return se.createElement("span",{className:te()("".concat(en,"-item"),(0,x.Z)({},"".concat(en,"-item-disabled"),kn)),title:lt(Un)},se.createElement("span",{className:"".concat(en,"-item-content")},Zn),zn&&se.createElement(Se,{className:"".concat(en,"-item-remove"),onMouseDown:nt,onClick:di,customizeIcon:ar},"\xD7"))}function Kr(Un,Zn,kn,zn,di){var pn=function(Yn){nt(Yn),lr(!$t)};return se.createElement("span",{onMouseDown:pn},dr({label:Zn,value:Un,disabled:kn,closable:zn,onClose:di}))}function Ur(Un){var Zn=Un.disabled,kn=Un.label,zn=Un.value,di=!tr&&!Zn,pn=kn;if(typeof Lt=="number"&&(typeof kn=="string"||typeof kn=="number")){var An=String(pn);An.length>Lt&&(pn="".concat(An.slice(0,Lt),"..."))}var Yn=function(Si){Si&&Si.stopPropagation(),fr(Un)};return typeof dr=="function"?Kr(zn,pn,Zn,di,Yn):hn(Un,pn,Zn,di,Yn)}function Dn(Un){var Zn=typeof er=="function"?er(Un):er;return hn({title:Zn},Zn,!1)}var bn=se.createElement("div",{className:"".concat(en,"-search"),style:{width:wn},onFocus:function(){yn(!0)},onBlur:function(){yn(!1)}},se.createElement(_e,{ref:Lr,open:$t,prefixCls:Zt,id:zt,inputElement:null,disabled:tr,autoFocus:Qt,autoComplete:Xt,editable:Xn,activeDescendantId:qt,value:Ln,onKeyDown:_r,onMouseDown:Zr,onChange:hr,onPaste:Cr,onCompositionStart:$r,onCompositionEnd:nn,tabIndex:mr,attrs:(0,Me.Z)(Et,!0)}),se.createElement("span",{ref:cn,className:"".concat(en,"-search-mirror"),"aria-hidden":!0},Ln,"\xA0")),Pn=se.createElement(Oe.Z,{prefixCls:"".concat(en,"-overflow"),data:nr,renderItem:Ur,renderRest:Dn,suffix:bn,itemKey:Xe,maxCount:xr});return se.createElement(se.Fragment,null,Pn,!nr.length&&!Ln&&se.createElement("span",{className:"".concat(en,"-placeholder")},Er))},ot=ct,et=function(Et){var zt=Et.inputElement,Zt=Et.prefixCls,nr=Et.id,$t=Et.inputRef,pr=Et.disabled,Ar=Et.autoFocus,Lr=Et.autoComplete,Er=Et.activeDescendantId,tr=Et.mode,br=Et.open,Wt=Et.values,Qt=Et.placeholder,Xt=Et.tabIndex,qt=Et.showSearch,mr=Et.searchValue,ar=Et.activeValue,xr=Et.maxLength,Lt=Et.onInputKeyDown,Yt=Et.onInputMouseDown,er=Et.onInputChange,dr=Et.onInputPaste,lr=Et.onInputCompositionStart,fr=Et.onInputCompositionEnd,hr=Et.title,Cr=se.useState(!1),_r=(0,ve.Z)(Cr,2),Zr=_r[0],$r=_r[1],nn=tr==="combobox",cn=nn||qt,dn=Wt[0],Jr=mr||"";nn&&ar&&!Zr&&(Jr=ar),se.useEffect(function(){nn&&$r(!1)},[nn,ar]);var wn=tr!=="combobox"&&!br&&!qt?!1:!!Jr,fn=hr===void 0?lt(dn):hr,On=function(){if(dn)return null;var mn=wn?{visibility:"hidden"}:void 0;return se.createElement("span",{className:"".concat(Zt,"-selection-placeholder"),style:mn},Qt)};return se.createElement(se.Fragment,null,se.createElement("span",{className:"".concat(Zt,"-selection-search")},se.createElement(_e,{ref:$t,prefixCls:Zt,id:nr,open:br,inputElement:zt,disabled:pr,autoFocus:Ar,autoComplete:Lr,editable:cn,activeDescendantId:Er,value:Jr,onKeyDown:Lt,onMouseDown:Yt,onChange:function(mn){$r(!0),er(mn)},onPaste:dr,onCompositionStart:lr,onCompositionEnd:fr,tabIndex:Xt,attrs:(0,Me.Z)(Et,!0),maxLength:nn?xr:void 0})),!nn&&dn?se.createElement("span",{className:"".concat(Zt,"-selection-item"),title:fn,style:wn?{visibility:"hidden"}:void 0},dn.label):null,On())},qe=et;function it(Ot){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(Ot)}var yt=function(Et,zt){var Zt=(0,se.useRef)(null),nr=(0,se.useRef)(!1),$t=Et.prefixCls,pr=Et.open,Ar=Et.mode,Lr=Et.showSearch,Er=Et.tokenWithEnter,tr=Et.autoClearSearchValue,br=Et.onSearch,Wt=Et.onSearchSubmit,Qt=Et.onToggleOpen,Xt=Et.onInputKeyDown,qt=Et.domRef;se.useImperativeHandle(zt,function(){return{focus:function(){Zt.current.focus()},blur:function(){Zt.current.blur()}}});var mr=Ce(0),ar=(0,ve.Z)(mr,2),xr=ar[0],Lt=ar[1],Yt=function(Jr){var wn=Jr.which;(wn===de.Z.UP||wn===de.Z.DOWN)&&Jr.preventDefault(),Xt&&Xt(Jr),wn===de.Z.ENTER&&Ar==="tags"&&!nr.current&&!pr&&(Wt==null||Wt(Jr.target.value)),it(wn)&&Qt(!0)},er=function(){Lt(!0)},dr=(0,se.useRef)(null),lr=function(Jr){br(Jr,!0,nr.current)!==!1&&Qt(!0)},fr=function(){nr.current=!0},hr=function(Jr){nr.current=!1,Ar!=="combobox"&&lr(Jr.target.value)},Cr=function(Jr){var wn=Jr.target.value;if(Er&&dr.current&&/[\r\n]/.test(dr.current)){var fn=dr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");wn=wn.replace(fn,dr.current)}dr.current=null,lr(wn)},_r=function(Jr){var wn=Jr.clipboardData,fn=wn.getData("text");dr.current=fn},Zr=function(Jr){var wn=Jr.target;if(wn!==Zt.current){var fn=document.body.style.msTouchAction!==void 0;fn?setTimeout(function(){Zt.current.focus()}):Zt.current.focus()}},$r=function(Jr){var wn=xr();Jr.target!==Zt.current&&!wn&&Ar!=="combobox"&&Jr.preventDefault(),(Ar!=="combobox"&&(!Lr||!wn)||!pr)&&(pr&&tr!==!1&&br("",!0,!1),Qt())},nn={inputRef:Zt,onInputKeyDown:Yt,onInputMouseDown:er,onInputChange:Cr,onInputPaste:_r,onInputCompositionStart:fr,onInputCompositionEnd:hr},cn=Ar==="multiple"||Ar==="tags"?se.createElement(ot,(0,Re.Z)({},Et,nn)):se.createElement(qe,(0,Re.Z)({},Et,nn));return se.createElement("div",{ref:qt,className:"".concat($t,"-selector"),onClick:Zr,onMouseDown:$r},cn)},pt=se.forwardRef(yt);pt.displayName="Selector";var Dt=pt,At=ke(35593),st=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ge=function(Et){var zt=Et===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:zt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:zt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:zt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:zt,adjustY:1},htmlRegion:"scroll"}}},We=function(Et,zt){var Zt=Et.prefixCls,nr=Et.disabled,$t=Et.visible,pr=Et.children,Ar=Et.popupElement,Lr=Et.animation,Er=Et.transitionName,tr=Et.dropdownStyle,br=Et.dropdownClassName,Wt=Et.direction,Qt=Wt===void 0?"ltr":Wt,Xt=Et.placement,qt=Et.builtinPlacements,mr=Et.dropdownMatchSelectWidth,ar=Et.dropdownRender,xr=Et.dropdownAlign,Lt=Et.getPopupContainer,Yt=Et.empty,er=Et.getTriggerDOMNode,dr=Et.onPopupVisibleChange,lr=Et.onPopupMouseEnter,fr=(0,re.Z)(Et,st),hr="".concat(Zt,"-dropdown"),Cr=Ar;ar&&(Cr=ar(Ar));var _r=se.useMemo(function(){return qt||Ge(mr)},[qt,mr]),Zr=Lr?"".concat(hr,"-").concat(Lr):Er,$r=typeof mr=="number",nn=se.useMemo(function(){return $r?null:mr===!1?"minWidth":"width"},[mr,$r]),cn=tr;$r&&(cn=(0,De.Z)((0,De.Z)({},cn),{},{width:mr}));var dn=se.useRef(null);return se.useImperativeHandle(zt,function(){return{getPopupElement:function(){return dn.current}}}),se.createElement(At.Z,(0,Re.Z)({},fr,{showAction:dr?["click"]:[],hideAction:dr?["click"]:[],popupPlacement:Xt||(Qt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_r,prefixCls:hr,popupTransitionName:Zr,popup:se.createElement("div",{ref:dn,onMouseEnter:lr},Cr),stretch:nn,popupAlign:xr,popupVisible:$t,getPopupContainer:Lt,popupClassName:te()(br,(0,x.Z)({},"".concat(hr,"-empty"),Yt)),popupStyle:cn,getTriggerDOMNode:er,onPopupVisibleChange:dr}),pr)},le=se.forwardRef(We);le.displayName="SelectTrigger";var fe=le,ze=ke(48745);function He(Ot,Et){var zt=Ot.key,Zt;return"value"in Ot&&(Zt=Ot.value),zt!=null?zt:Zt!==void 0?Zt:"rc-index-key-".concat(Et)}function pe(Ot,Et){var zt=Ot||{},Zt=zt.label,nr=zt.value,$t=zt.options,pr=zt.groupLabel,Ar=Zt||(Et?"children":"label");return{label:Ar,value:nr||"value",options:$t||"options",groupLabel:pr||Ar}}function Ie(Ot){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=Et.fieldNames,Zt=Et.childrenAsData,nr=[],$t=pe(zt,!1),pr=$t.label,Ar=$t.value,Lr=$t.options,Er=$t.groupLabel;function tr(br,Wt){br.forEach(function(Qt){if(Wt||!(Lr in Qt)){var Xt=Qt[Ar];nr.push({key:He(Qt,nr.length),groupOption:Wt,data:Qt,label:Qt[pr],value:Xt})}else{var qt=Qt[Er];qt===void 0&&Zt&&(qt=Qt.label),nr.push({key:He(Qt,nr.length),group:!0,data:Qt,label:qt}),tr(Qt[Lr],!0)}})}return tr(Ot,!1),nr}function Ke(Ot){var Et=(0,De.Z)({},Ot);return"props"in Et||Object.defineProperty(Et,"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`."),Et}}),Et}function Ye(Ot,Et){if(!Et||!Et.length)return null;var zt=!1;function Zt($t,pr){var Ar=(0,ze.Z)(pr),Lr=Ar[0],Er=Ar.slice(1);if(!Lr)return[$t];var tr=$t.split(Lr);return zt=zt||tr.length>1,tr.reduce(function(br,Wt){return[].concat((0,gt.Z)(br),(0,gt.Z)(Zt(Wt,Er)))},[]).filter(function(br){return br})}var nr=Zt(Ot,Et);return zt?nr:null}var Je=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],dt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function bt(Ot){return Ot==="tags"||Ot==="multiple"}var vt=se.forwardRef(function(Ot,Et){var zt,Zt,nr=Ot.id,$t=Ot.prefixCls,pr=Ot.className,Ar=Ot.showSearch,Lr=Ot.tagRender,Er=Ot.direction,tr=Ot.omitDomProps,br=Ot.displayValues,Wt=Ot.onDisplayValuesChange,Qt=Ot.emptyOptions,Xt=Ot.notFoundContent,qt=Xt===void 0?"Not Found":Xt,mr=Ot.onClear,ar=Ot.mode,xr=Ot.disabled,Lt=Ot.loading,Yt=Ot.getInputElement,er=Ot.getRawInputElement,dr=Ot.open,lr=Ot.defaultOpen,fr=Ot.onDropdownVisibleChange,hr=Ot.activeValue,Cr=Ot.onActiveValueChange,_r=Ot.activeDescendantId,Zr=Ot.searchValue,$r=Ot.autoClearSearchValue,nn=Ot.onSearch,cn=Ot.onSearchSplit,dn=Ot.tokenSeparators,Jr=Ot.allowClear,wn=Ot.suffixIcon,fn=Ot.clearIcon,On=Ot.OptionList,un=Ot.animation,mn=Ot.transitionName,yn=Ot.dropdownStyle,en=Ot.dropdownClassName,Ln=Ot.dropdownMatchSelectWidth,Xn=Ot.dropdownRender,hn=Ot.dropdownAlign,Kr=Ot.placement,Ur=Ot.builtinPlacements,Dn=Ot.getPopupContainer,bn=Ot.showAction,Pn=bn===void 0?[]:bn,Un=Ot.onFocus,Zn=Ot.onBlur,kn=Ot.onKeyUp,zn=Ot.onKeyDown,di=Ot.onMouseDown,pn=(0,re.Z)(Ot,Je),An=bt(ar),Yn=(Ar!==void 0?Ar:An)||ar==="combobox",ei=(0,De.Z)({},pn);dt.forEach(function(Ni){delete ei[Ni]}),tr==null||tr.forEach(function(Ni){delete ei[Ni]});var Si=se.useState(!1),Ei=(0,ve.Z)(Si,2),bi=Ei[0],ci=Ei[1];se.useEffect(function(){ci((0,ue.Z)())},[]);var Oi=se.useRef(null),Di=se.useRef(null),Cn=se.useRef(null),Sn=se.useRef(null),rn=se.useRef(null),ln=Le(),ii=(0,ve.Z)(ln,3),xi=ii[0],Ci=ii[1],Ai=ii[2];se.useImperativeHandle(Et,function(){var Ni,Bi;return{focus:(Ni=Sn.current)===null||Ni===void 0?void 0:Ni.focus,blur:(Bi=Sn.current)===null||Bi===void 0?void 0:Bi.blur,scrollTo:function(La){var ta;return(ta=rn.current)===null||ta===void 0?void 0:ta.scrollTo(La)}}});var gi=se.useMemo(function(){var Ni;if(ar!=="combobox")return Zr;var Bi=(Ni=br[0])===null||Ni===void 0?void 0:Ni.value;return typeof Bi=="string"||typeof Bi=="number"?String(Bi):""},[Zr,ar,br]),Ii=ar==="combobox"&&typeof Yt=="function"&&Yt()||null,Ki=typeof er=="function"&&er(),Fi=(0,he.x1)(Di,Ki==null||(zt=Ki.props)===null||zt===void 0?void 0:zt.ref),Yi=se.useState(!1),li=(0,ve.Z)(Yi,2),hi=li[0],Li=li[1];(0,ae.Z)(function(){Li(!0)},[]);var yr=(0,ie.Z)(!1,{defaultValue:lr,value:dr}),vr=(0,ve.Z)(yr,2),Mr=vr[0],Gr=vr[1],Xr=hi?Mr:!1,vn=!qt&&Qt;(xr||vn&&Xr&&ar==="combobox")&&(Xr=!1);var Ir=vn?!1:Xr,Qr=se.useCallback(function(Ni){var Bi=Ni!==void 0?Ni:!Xr;xr||(Gr(Bi),Xr!==Bi&&(fr==null||fr(Bi)))},[xr,Xr,Gr,fr]),In=se.useMemo(function(){return(dn||[]).some(function(Ni){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ni)})},[dn]),Kn=function(Bi,Qi,La){var ta=!0,Wa=Bi;Cr==null||Cr(null);var Ga=La?null:Ye(Bi,dn);return ar!=="combobox"&&Ga&&(Wa="",cn==null||cn(Ga),Qr(!1),ta=!1),nn&&gi!==Wa&&nn(Wa,{source:Qi?"typing":"effect"}),ta},Jn=function(Bi){!Bi||!Bi.trim()||nn(Bi,{source:"submit"})};se.useEffect(function(){!Xr&&!An&&ar!=="combobox"&&Kn("",!1,!1)},[Xr]),se.useEffect(function(){Mr&&xr&&Gr(!1),xr&&Ci(!1)},[xr]);var gn=Ce(),ri=(0,ve.Z)(gn,2),pi=ri[0],si=ri[1],Nn=function(Bi){var Qi=pi(),La=Bi.which;if(La===de.Z.ENTER&&(ar!=="combobox"&&Bi.preventDefault(),Xr||Qr(!0)),si(!!gi),La===de.Z.BACKSPACE&&!Qi&&An&&!gi&&br.length){for(var ta=(0,gt.Z)(br),Wa=null,Ga=ta.length-1;Ga>=0;Ga-=1){var fo=ta[Ga];if(!fo.disabled){ta.splice(Ga,1),Wa=fo;break}}Wa&&Wt(ta,{type:"remove",values:[Wa]})}for(var Ua=arguments.length,go=new Array(Ua>1?Ua-1:0),vo=1;vo<Ua;vo++)go[vo-1]=arguments[vo];if(Xr&&rn.current){var Pa;(Pa=rn.current).onKeyDown.apply(Pa,[Bi].concat(go))}zn==null||zn.apply(void 0,[Bi].concat(go))},$n=function(Bi){for(var Qi=arguments.length,La=new Array(Qi>1?Qi-1:0),ta=1;ta<Qi;ta++)La[ta-1]=arguments[ta];if(Xr&&rn.current){var Wa;(Wa=rn.current).onKeyUp.apply(Wa,[Bi].concat(La))}kn==null||kn.apply(void 0,[Bi].concat(La))},wi=function(Bi){var Qi=br.filter(function(La){return La!==Bi});Wt(Qi,{type:"remove",values:[Bi]})},vi=se.useRef(!1),Mi=function(){Ci(!0),xr||(Un&&!vi.current&&Un.apply(void 0,arguments),Pn.includes("focus")&&Qr(!0)),vi.current=!0},pa=function(){Ci(!1,function(){vi.current=!1,Qr(!1)}),!xr&&(gi&&(ar==="tags"?nn(gi,{source:"submit"}):ar==="multiple"&&nn("",{source:"blur"})),Zn&&Zn.apply(void 0,arguments))},Ma=[];se.useEffect(function(){return function(){Ma.forEach(function(Ni){return clearTimeout(Ni)}),Ma.splice(0,Ma.length)}},[]);var za=function(Bi){var Qi,La=Bi.target,ta=(Qi=Cn.current)===null||Qi===void 0?void 0:Qi.getPopupElement();if(ta&&ta.contains(La)){var Wa=setTimeout(function(){var go=Ma.indexOf(Wa);if(go!==-1&&Ma.splice(go,1),Ai(),!bi&&!ta.contains(document.activeElement)){var vo;(vo=Sn.current)===null||vo===void 0||vo.focus()}});Ma.push(Wa)}for(var Ga=arguments.length,fo=new Array(Ga>1?Ga-1:0),Ua=1;Ua<Ga;Ua++)fo[Ua-1]=arguments[Ua];di==null||di.apply(void 0,[Bi].concat(fo))},Ba=se.useState({}),Bo=(0,ve.Z)(Ba,2),Va=Bo[1];function ba(){Va({})}var Ji;Ki&&(Ji=function(Bi){Qr(Bi)}),je(function(){var Ni;return[Oi.current,(Ni=Cn.current)===null||Ni===void 0?void 0:Ni.getPopupElement()]},Ir,Qr,!!Ki);var Ka=se.useMemo(function(){return(0,De.Z)((0,De.Z)({},Ot),{},{notFoundContent:qt,open:Xr,triggerOpen:Ir,id:nr,showSearch:Yn,multiple:An,toggleOpen:Qr})},[Ot,qt,Ir,Xr,nr,Yn,An,Qr]),so=!!wn||Lt,lo;so&&(lo=se.createElement(Se,{className:te()("".concat($t,"-arrow"),(0,x.Z)({},"".concat($t,"-arrow-loading"),Lt)),customizeIcon:wn,customizeIconProps:{loading:Lt,searchValue:gi,open:Xr,focused:xi,showSearch:Yn}}));var co=function(){var Bi;mr==null||mr(),(Bi=Sn.current)===null||Bi===void 0||Bi.focus(),Wt([],{type:"clear",values:br}),Kn("",!1,!1)},Ha=xe($t,co,br,Jr,fn,xr,gi,ar),xa=Ha.allowClear,wa=Ha.clearIcon,Hi=se.createElement(On,{ref:rn}),uo=te()($t,pr,(Zt={},(0,x.Z)(Zt,"".concat($t,"-focused"),xi),(0,x.Z)(Zt,"".concat($t,"-multiple"),An),(0,x.Z)(Zt,"".concat($t,"-single"),!An),(0,x.Z)(Zt,"".concat($t,"-allow-clear"),Jr),(0,x.Z)(Zt,"".concat($t,"-show-arrow"),so),(0,x.Z)(Zt,"".concat($t,"-disabled"),xr),(0,x.Z)(Zt,"".concat($t,"-loading"),Lt),(0,x.Z)(Zt,"".concat($t,"-open"),Xr),(0,x.Z)(Zt,"".concat($t,"-customize-input"),Ii),(0,x.Z)(Zt,"".concat($t,"-show-search"),Yn),Zt)),zo=se.createElement(fe,{ref:Cn,disabled:xr,prefixCls:$t,visible:Ir,popupElement:Hi,animation:un,transitionName:mn,dropdownStyle:yn,dropdownClassName:en,direction:Er,dropdownMatchSelectWidth:Ln,dropdownRender:Xn,dropdownAlign:hn,placement:Kr,builtinPlacements:Ur,getPopupContainer:Dn,empty:Qt,getTriggerDOMNode:function(){return Di.current},onPopupVisibleChange:Ji,onPopupMouseEnter:ba},Ki?se.cloneElement(Ki,{ref:Fi}):se.createElement(Dt,(0,Re.Z)({},Ot,{domRef:Di,prefixCls:$t,inputElement:Ii,ref:Sn,id:nr,showSearch:Yn,autoClearSearchValue:$r,mode:ar,activeDescendantId:_r,tagRender:Lr,values:br,open:Xr,onToggleOpen:Qr,activeValue:hr,searchValue:gi,onSearch:Kn,onSearchSubmit:Jn,onRemove:wi,tokenWithEnter:In}))),Lo;return Ki?Lo=zo:Lo=se.createElement("div",(0,Re.Z)({className:uo},ei,{ref:Oi,onMouseDown:za,onKeyDown:Nn,onKeyUp:$n,onFocus:Mi,onBlur:pa}),xi&&!Xr&&se.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(br.map(function(Ni){var Bi=Ni.label,Qi=Ni.value;return["number","string"].includes((0,ne.Z)(Bi))?Bi:Qi}).join(", "))),zo,lo,xa&&wa),se.createElement(ye.Provider,{value:Ka},Lo)}),It=vt,Vt=function(Ot,Et){var zt=se.useRef({values:new Map,options:new Map}),Zt=se.useMemo(function(){var $t=zt.current,pr=$t.values,Ar=$t.options,Lr=Ot.map(function(br){if(br.label===void 0){var Wt;return(0,De.Z)((0,De.Z)({},br),{},{label:(Wt=pr.get(br.value))===null||Wt===void 0?void 0:Wt.label})}return br}),Er=new Map,tr=new Map;return Lr.forEach(function(br){Er.set(br.value,br),tr.set(br.value,Et.get(br.value)||Ar.get(br.value))}),zt.current.values=Er,zt.current.options=tr,Lr},[Ot,Et]),nr=se.useCallback(function($t){return Et.get($t)||zt.current.options.get($t)},[Et]);return[Zt,nr]};function kt(Ot,Et){return Ze(Ot).join("").toUpperCase().includes(Et)}var jt=function(Ot,Et,zt,Zt,nr){return se.useMemo(function(){if(!zt||Zt===!1)return Ot;var $t=Et.options,pr=Et.label,Ar=Et.value,Lr=[],Er=typeof Zt=="function",tr=zt.toUpperCase(),br=Er?Zt:function(Qt,Xt){return nr?kt(Xt[nr],tr):Xt[$t]?kt(Xt[pr!=="children"?pr:"label"],tr):kt(Xt[Ar],tr)},Wt=Er?function(Qt){return Ke(Qt)}:function(Qt){return Qt};return Ot.forEach(function(Qt){if(Qt[$t]){var Xt=br(zt,Wt(Qt));if(Xt)Lr.push(Qt);else{var qt=Qt[$t].filter(function(mr){return br(zt,Wt(mr))});qt.length&&Lr.push((0,De.Z)((0,De.Z)({},Qt),{},(0,x.Z)({},$t,qt)))}return}br(zt,Wt(Qt))&&Lr.push(Qt)}),Lr},[Ot,Zt,nr,zt,Et])},_t=ke(17115),Mt=ke(11592),ft=["children","value"],St=["children"];function Nt(Ot){var Et=Ot,zt=Et.key,Zt=Et.props,nr=Zt.children,$t=Zt.value,pr=(0,re.Z)(Zt,ft);return(0,De.Z)({key:zt,value:$t!==void 0?$t:zt,children:nr},pr)}function Ft(Ot){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Mt.Z)(Ot).map(function(zt,Zt){if(!se.isValidElement(zt)||!zt.type)return null;var nr=zt,$t=nr.type.isSelectOptGroup,pr=nr.key,Ar=nr.props,Lr=Ar.children,Er=(0,re.Z)(Ar,St);return Et||!$t?Nt(zt):(0,De.Z)((0,De.Z)({key:"__RC_SELECT_GRP__".concat(pr===null?Zt:pr,"__"),label:pr},Er),{},{options:Ft(Lr)})}).filter(function(zt){return zt})}function Ut(Ot,Et,zt,Zt,nr){return se.useMemo(function(){var $t=Ot,pr=!Ot;pr&&($t=Ft(Et));var Ar=new Map,Lr=new Map,Er=function(Wt,Qt,Xt){Xt&&typeof Xt=="string"&&Wt.set(Qt[Xt],Qt)};function tr(br){for(var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qt=0;Qt<br.length;Qt+=1){var Xt=br[Qt];!Xt[zt.options]||Wt?(Ar.set(Xt[zt.value],Xt),Er(Lr,Xt,zt.label),Er(Lr,Xt,Zt),Er(Lr,Xt,nr)):tr(Xt[zt.options],!0)}}return tr($t),{options:$t,valueOptions:Ar,labelOptions:Lr}},[Ot,Et,zt,Zt,nr])}function sr(Ot){var Et=se.useRef();Et.current=Ot;var zt=se.useCallback(function(){return Et.current.apply(Et,arguments)},[]);return zt}var gr=function(){return null};gr.isSelectOptGroup=!0;var wr=gr,zr=function(){return null};zr.isSelectOption=!0;var Wr=zr,Br=ke(80547),Nr=ke(2738),on=ke(48911),Mn=se.createContext(null),jn=Mn;function an(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Tn=["disabled","title","children","style","className"];function Vr(Ot){return typeof Ot=="string"||typeof Ot=="number"}var Gn=function(Et,zt){var Zt=Ae(),nr=Zt.prefixCls,$t=Zt.id,pr=Zt.open,Ar=Zt.multiple,Lr=Zt.mode,Er=Zt.searchValue,tr=Zt.toggleOpen,br=Zt.notFoundContent,Wt=Zt.onPopupScroll,Qt=se.useContext(jn),Xt=Qt.flattenOptions,qt=Qt.onActiveValue,mr=Qt.defaultActiveFirstOption,ar=Qt.onSelect,xr=Qt.menuItemSelectedIcon,Lt=Qt.rawValues,Yt=Qt.fieldNames,er=Qt.virtual,dr=Qt.direction,lr=Qt.listHeight,fr=Qt.listItemHeight,hr="".concat(nr,"-item"),Cr=(0,Br.Z)(function(){return Xt},[pr,Xt],function(hn,Kr){return Kr[0]&&hn[1]!==Kr[1]}),_r=se.useRef(null),Zr=function(Kr){Kr.preventDefault()},$r=function(Kr){_r.current&&_r.current.scrollTo(typeof Kr=="number"?{index:Kr}:Kr)},nn=function(Kr){for(var Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Dn=Cr.length,bn=0;bn<Dn;bn+=1){var Pn=(Kr+bn*Ur+Dn)%Dn,Un=Cr[Pn],Zn=Un.group,kn=Un.data;if(!Zn&&!kn.disabled)return Pn}return-1},cn=se.useState(function(){return nn(0)}),dn=(0,ve.Z)(cn,2),Jr=dn[0],wn=dn[1],fn=function(Kr){var Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;wn(Kr);var Dn={source:Ur?"keyboard":"mouse"},bn=Cr[Kr];if(!bn){qt(null,-1,Dn);return}qt(bn.value,Kr,Dn)};(0,se.useEffect)(function(){fn(mr!==!1?nn(0):-1)},[Cr.length,Er]);var On=se.useCallback(function(hn){return Lt.has(hn)&&Lr!=="combobox"},[Lr,(0,gt.Z)(Lt).toString(),Lt.size]);(0,se.useEffect)(function(){var hn=setTimeout(function(){if(!Ar&&pr&&Lt.size===1){var Ur=Array.from(Lt)[0],Dn=Cr.findIndex(function(bn){var Pn=bn.data;return Pn.value===Ur});Dn!==-1&&(fn(Dn),$r(Dn))}});if(pr){var Kr;(Kr=_r.current)===null||Kr===void 0||Kr.scrollTo(void 0)}return function(){return clearTimeout(hn)}},[pr,Er,Xt.length]);var un=function(Kr){Kr!==void 0&&ar(Kr,{selected:!Lt.has(Kr)}),Ar||tr(!1)};if(se.useImperativeHandle(zt,function(){return{onKeyDown:function(Kr){var Ur=Kr.which,Dn=Kr.ctrlKey;switch(Ur){case de.Z.N:case de.Z.P:case de.Z.UP:case de.Z.DOWN:{var bn=0;if(Ur===de.Z.UP?bn=-1:Ur===de.Z.DOWN?bn=1:an()&&Dn&&(Ur===de.Z.N?bn=1:Ur===de.Z.P&&(bn=-1)),bn!==0){var Pn=nn(Jr+bn,bn);$r(Pn),fn(Pn,!0)}break}case de.Z.ENTER:{var Un=Cr[Jr];Un&&!Un.data.disabled?un(Un.value):un(void 0),pr&&Kr.preventDefault();break}case de.Z.ESC:tr(!1),pr&&Kr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Kr){$r(Kr)}}}),Cr.length===0)return se.createElement("div",{role:"listbox",id:"".concat($t,"_list"),className:"".concat(hr,"-empty"),onMouseDown:Zr},br);var mn=Object.keys(Yt).map(function(hn){return Yt[hn]}),yn=function(Kr){return Kr.label};function en(hn,Kr){var Ur=hn.group;return{role:Ur?"presentation":"option",id:"".concat($t,"_list_").concat(Kr)}}var Ln=function(Kr){var Ur=Cr[Kr];if(!Ur)return null;var Dn=Ur.data||{},bn=Dn.value,Pn=Ur.group,Un=(0,Me.Z)(Dn,!0),Zn=yn(Ur);return Ur?se.createElement("div",(0,Re.Z)({"aria-label":typeof Zn=="string"&&!Pn?Zn:null},Un,{key:Kr},en(Ur,Kr),{"aria-selected":On(bn)}),bn):null},Xn={role:"listbox",id:"".concat($t,"_list")};return se.createElement(se.Fragment,null,er&&se.createElement("div",(0,Re.Z)({},Xn,{style:{height:0,width:0,overflow:"hidden"}}),Ln(Jr-1),Ln(Jr),Ln(Jr+1)),se.createElement(on.Z,{itemKey:"key",ref:_r,data:Cr,height:lr,itemHeight:fr,fullHeight:!1,onMouseDown:Zr,onScroll:Wt,virtual:er,direction:dr,innerProps:er?null:Xn},function(hn,Kr){var Ur,Dn=hn.group,bn=hn.groupOption,Pn=hn.data,Un=hn.label,Zn=hn.value,kn=Pn.key;if(Dn){var zn,di=(zn=Pn.title)!==null&&zn!==void 0?zn:Vr(Un)?Un.toString():void 0;return se.createElement("div",{className:te()(hr,"".concat(hr,"-group")),title:di},Un!==void 0?Un:kn)}var pn=Pn.disabled,An=Pn.title,Yn=Pn.children,ei=Pn.style,Si=Pn.className,Ei=(0,re.Z)(Pn,Tn),bi=(0,Nr.Z)(Ei,mn),ci=On(Zn),Oi="".concat(hr,"-option"),Di=te()(hr,Oi,Si,(Ur={},(0,x.Z)(Ur,"".concat(Oi,"-grouped"),bn),(0,x.Z)(Ur,"".concat(Oi,"-active"),Jr===Kr&&!pn),(0,x.Z)(Ur,"".concat(Oi,"-disabled"),pn),(0,x.Z)(Ur,"".concat(Oi,"-selected"),ci),Ur)),Cn=yn(hn),Sn=!xr||typeof xr=="function"||ci,rn=typeof Cn=="number"?Cn:Cn||Zn,ln=Vr(rn)?rn.toString():void 0;return An!==void 0&&(ln=An),se.createElement("div",(0,Re.Z)({},(0,Me.Z)(bi),er?{}:en(hn,Kr),{"aria-selected":ci,className:Di,title:ln,onMouseMove:function(){Jr===Kr||pn||fn(Kr)},onClick:function(){pn||un(Zn)},style:ei}),se.createElement("div",{className:"".concat(Oi,"-content")},rn),se.isValidElement(xr)||ci,Sn&&se.createElement(Se,{className:"".concat(hr,"-option-state"),customizeIcon:xr,customizeIconProps:{isSelected:ci}},ci?"\u2713":null))}))},Wn=se.forwardRef(Gn);Wn.displayName="OptionList";var Jt=Wn;function jr(Ot){var Et=Ot.mode,zt=Ot.options,Zt=Ot.children,nr=Ot.backfill,$t=Ot.allowClear,pr=Ot.placeholder,Ar=Ot.getInputElement,Lr=Ot.showSearch,Er=Ot.onSearch,tr=Ot.defaultOpen,br=Ot.autoFocus,Wt=Ot.labelInValue,Qt=Ot.value,Xt=Ot.inputValue,qt=Ot.optionLabelProp,mr=isMultiple(Et),ar=Lr!==void 0?Lr:mr||Et==="combobox",xr=zt||convertChildrenToData(Zt);if(warning(Et!=="tags"||xr.every(function(dr){return!dr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Et==="tags"||Et==="combobox"){var Lt=xr.some(function(dr){return dr.options?dr.options.some(function(lr){return typeof("value"in lr?lr.value:lr.key)=="number"}):typeof("value"in dr?dr.value:dr.key)=="number"});warning(!Lt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Et!=="combobox"||!qt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Et==="combobox"||!nr,"`backfill` only works with `combobox` mode."),warning(Et==="combobox"||!Ar,"`getInputElement` only work with `combobox` mode."),noteOnce(Et!=="combobox"||!Ar||!$t||!pr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Er&&!ar&&Et!=="combobox"&&Et!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!tr||br,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Qt!=null){var Yt=toArray(Qt);warning(!Wt||Yt.every(function(dr){return _typeof(dr)==="object"&&("key"in dr||"value"in dr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!mr||Array.isArray(Qt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Zt){var er=null;toNodeArray(Zt).some(function(dr){if(!React.isValidElement(dr)||!dr.type)return!1;var lr=dr,fr=lr.type;if(fr.isSelectOption)return!1;if(fr.isSelectOptGroup){var hr=toNodeArray(dr.props.children).every(function(Cr){return!React.isValidElement(Cr)||!dr.type||Cr.type.isSelectOption?!0:(er=Cr.type,!1)});return!hr}return er=fr,!0}),er&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(er.displayName||er.name||er,"`.")),warning(Xt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Rr(Ot,Et){if(Ot){var zt=function Zt(nr){for(var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pr=0;pr<nr.length;pr++){var Ar=nr[pr];if(Ar[Et==null?void 0:Et.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!$t&&Array.isArray(Ar[Et==null?void 0:Et.options])&&Zt(Ar[Et==null?void 0:Et.options],!0))break}};zt(Ot)}}var Tr=null,Sr=["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"],Dr=["inputValue"];function Or(Ot){return!Ot||(0,ne.Z)(Ot)!=="object"}var Yr=se.forwardRef(function(Ot,Et){var zt=Ot.id,Zt=Ot.mode,nr=Ot.prefixCls,$t=nr===void 0?"rc-select":nr,pr=Ot.backfill,Ar=Ot.fieldNames,Lr=Ot.inputValue,Er=Ot.searchValue,tr=Ot.onSearch,br=Ot.autoClearSearchValue,Wt=br===void 0?!0:br,Qt=Ot.onSelect,Xt=Ot.onDeselect,qt=Ot.dropdownMatchSelectWidth,mr=qt===void 0?!0:qt,ar=Ot.filterOption,xr=Ot.filterSort,Lt=Ot.optionFilterProp,Yt=Ot.optionLabelProp,er=Ot.options,dr=Ot.children,lr=Ot.defaultActiveFirstOption,fr=Ot.menuItemSelectedIcon,hr=Ot.virtual,Cr=Ot.direction,_r=Ot.listHeight,Zr=_r===void 0?200:_r,$r=Ot.listItemHeight,nn=$r===void 0?20:$r,cn=Ot.value,dn=Ot.defaultValue,Jr=Ot.labelInValue,wn=Ot.onChange,fn=(0,re.Z)(Ot,Sr),On=(0,_t.ZP)(zt),un=bt(Zt),mn=!!(!er&&dr),yn=se.useMemo(function(){return ar===void 0&&Zt==="combobox"?!1:ar},[ar,Zt]),en=se.useMemo(function(){return pe(Ar,mn)},[JSON.stringify(Ar),mn]),Ln=(0,ie.Z)("",{value:Er!==void 0?Er:Lr,postState:function(vn){return vn||""}}),Xn=(0,ve.Z)(Ln,2),hn=Xn[0],Kr=Xn[1],Ur=Ut(er,dr,en,Lt,Yt),Dn=Ur.valueOptions,bn=Ur.labelOptions,Pn=Ur.options,Un=se.useCallback(function(Xr){var vn=Ze(Xr);return vn.map(function(Ir){var Qr,In,Kn,Jn,gn;if(Or(Ir))Qr=Ir;else{var ri;Kn=Ir.key,In=Ir.label,Qr=(ri=Ir.value)!==null&&ri!==void 0?ri:Kn}var pi=Dn.get(Qr);if(pi){var si;if(In===void 0&&(In=pi==null?void 0:pi[Yt||en.label]),Kn===void 0&&(Kn=(si=pi==null?void 0:pi.key)!==null&&si!==void 0?si:Qr),Jn=pi==null?void 0:pi.disabled,gn=pi==null?void 0:pi.title,0)var Nn}return{label:In,value:Qr,key:Kn,disabled:Jn,title:gn}})},[en,Yt,Dn]),Zn=(0,ie.Z)(dn,{value:cn}),kn=(0,ve.Z)(Zn,2),zn=kn[0],di=kn[1],pn=se.useMemo(function(){var Xr,vn=Un(zn);return Zt==="combobox"&&tt((Xr=vn[0])===null||Xr===void 0?void 0:Xr.value)?[]:vn},[zn,Un,Zt]),An=Vt(pn,Dn),Yn=(0,ve.Z)(An,2),ei=Yn[0],Si=Yn[1],Ei=se.useMemo(function(){if(!Zt&&ei.length===1){var Xr=ei[0];if(Xr.value===null&&(Xr.label===null||Xr.label===void 0))return[]}return ei.map(function(vn){var Ir;return(0,De.Z)((0,De.Z)({},vn),{},{label:(Ir=vn.label)!==null&&Ir!==void 0?Ir:vn.value})})},[Zt,ei]),bi=se.useMemo(function(){return new Set(ei.map(function(Xr){return Xr.value}))},[ei]);se.useEffect(function(){if(Zt==="combobox"){var Xr,vn=(Xr=ei[0])===null||Xr===void 0?void 0:Xr.value;Kr(Qe(vn)?String(vn):"")}},[ei]);var ci=sr(function(Xr,vn){var Ir,Qr=vn!=null?vn:Xr;return Ir={},(0,x.Z)(Ir,en.value,Xr),(0,x.Z)(Ir,en.label,Qr),Ir}),Oi=se.useMemo(function(){if(Zt!=="tags")return Pn;var Xr=(0,gt.Z)(Pn),vn=function(Qr){return Dn.has(Qr)};return(0,gt.Z)(ei).sort(function(Ir,Qr){return Ir.value<Qr.value?-1:1}).forEach(function(Ir){var Qr=Ir.value;vn(Qr)||Xr.push(ci(Qr,Ir.label))}),Xr},[ci,Pn,Dn,ei,Zt]),Di=jt(Oi,en,hn,yn,Lt),Cn=se.useMemo(function(){return Zt!=="tags"||!hn||Di.some(function(Xr){return Xr[Lt||"value"]===hn})||Di.some(function(Xr){return Xr[en.value]===hn})?Di:[ci(hn)].concat((0,gt.Z)(Di))},[ci,Lt,Zt,Di,hn,en]),Sn=se.useMemo(function(){return xr?(0,gt.Z)(Cn).sort(function(Xr,vn){return xr(Xr,vn)}):Cn},[Cn,xr]),rn=se.useMemo(function(){return Ie(Sn,{fieldNames:en,childrenAsData:mn})},[Sn,en,mn]),ln=function(vn){var Ir=Un(vn);if(di(Ir),wn&&(Ir.length!==ei.length||Ir.some(function(Kn,Jn){var gn;return((gn=ei[Jn])===null||gn===void 0?void 0:gn.value)!==(Kn==null?void 0:Kn.value)}))){var Qr=Jr?Ir:Ir.map(function(Kn){return Kn.value}),In=Ir.map(function(Kn){return Ke(Si(Kn.value))});wn(un?Qr:Qr[0],un?In:In[0])}},ii=se.useState(null),xi=(0,ve.Z)(ii,2),Ci=xi[0],Ai=xi[1],gi=se.useState(0),Ii=(0,ve.Z)(gi,2),Ki=Ii[0],Fi=Ii[1],Yi=lr!==void 0?lr:Zt!=="combobox",li=se.useCallback(function(Xr,vn){var Ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qr=Ir.source,In=Qr===void 0?"keyboard":Qr;Fi(vn),pr&&Zt==="combobox"&&Xr!==null&&In==="keyboard"&&Ai(String(Xr))},[pr,Zt]),hi=function(vn,Ir,Qr){var In=function(){var vi,Mi=Si(vn);return[Jr?{label:Mi==null?void 0:Mi[en.label],value:vn,key:(vi=Mi==null?void 0:Mi.key)!==null&&vi!==void 0?vi:vn}:vn,Ke(Mi)]};if(Ir&&Qt){var Kn=In(),Jn=(0,ve.Z)(Kn,2),gn=Jn[0],ri=Jn[1];Qt(gn,ri)}else if(!Ir&&Xt&&Qr!=="clear"){var pi=In(),si=(0,ve.Z)(pi,2),Nn=si[0],$n=si[1];Xt(Nn,$n)}},Li=sr(function(Xr,vn){var Ir,Qr=un?vn.selected:!0;Qr?Ir=un?[].concat((0,gt.Z)(ei),[Xr]):[Xr]:Ir=ei.filter(function(In){return In.value!==Xr}),ln(Ir),hi(Xr,Qr),Zt==="combobox"?Ai(""):(!bt||Wt)&&(Kr(""),Ai(""))}),yr=function(vn,Ir){ln(vn);var Qr=Ir.type,In=Ir.values;(Qr==="remove"||Qr==="clear")&&In.forEach(function(Kn){hi(Kn.value,!1,Qr)})},vr=function(vn,Ir){if(Kr(vn),Ai(null),Ir.source==="submit"){var Qr=(vn||"").trim();if(Qr){var In=Array.from(new Set([].concat((0,gt.Z)(bi),[Qr])));ln(In),hi(Qr,!0),Kr("")}return}Ir.source!=="blur"&&(Zt==="combobox"&&ln(vn),tr==null||tr(vn))},Mr=function(vn){var Ir=vn;Zt!=="tags"&&(Ir=vn.map(function(In){var Kn=bn.get(In);return Kn==null?void 0:Kn.value}).filter(function(In){return In!==void 0}));var Qr=Array.from(new Set([].concat((0,gt.Z)(bi),(0,gt.Z)(Ir))));ln(Qr),Qr.forEach(function(In){hi(In,!0)})},Gr=se.useMemo(function(){var Xr=hr!==!1&&mr!==!1;return(0,De.Z)((0,De.Z)({},Ur),{},{flattenOptions:rn,onActiveValue:li,defaultActiveFirstOption:Yi,onSelect:Li,menuItemSelectedIcon:fr,rawValues:bi,fieldNames:en,virtual:Xr,direction:Cr,listHeight:Zr,listItemHeight:nn,childrenAsData:mn})},[Ur,rn,li,Yi,Li,fr,bi,en,hr,mr,Zr,nn,mn]);return se.createElement(jn.Provider,{value:Gr},se.createElement(It,(0,Re.Z)({},fn,{id:On,prefixCls:$t,ref:Et,omitDomProps:Dr,mode:Zt,displayValues:Ei,onDisplayValuesChange:yr,direction:Cr,searchValue:hn,onSearch:vr,autoClearSearchValue:Wt,onSearchSplit:Mr,dropdownMatchSelectWidth:mr,OptionList:Jt,emptyOptions:!rn.length,activeValue:Ci,activeDescendantId:"".concat(On,"_list_").concat(Ki)})))}),Kt=Yr;Kt.Option=Wr,Kt.OptGroup=wr;var xt=Kt,Bt=xt},9296:function(or,Ht,ke){"use strict";ke.r(Ht),ke.d(Ht,{ResizableTextArea:function(){return Ne},default:function(){return tt}});var Re=ke(60499),gt=ke(85899),x=ke(18642),De=ke(43749),ve=ke(72190),re=ke(42244),ne=ke(77654),ie=ke(92310),oe=ke.n(ie),se=ke(93681),me=ke(5643),te=ke(18929),ae=ke(59301),ue=ke(29301),de=ke(34280),he=ke(16089),we=`
|
|
|
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"],xe={},ye;function Ae(at){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve=at.getAttribute("id")||at.getAttribute("data-reactid")||at.getAttribute("name");if(lt&&xe[Ve])return xe[Ve];var Xe=window.getComputedStyle(at),nt=Xe.getPropertyValue("box-sizing")||Xe.getPropertyValue("-moz-box-sizing")||Xe.getPropertyValue("-webkit-box-sizing"),ct=parseFloat(Xe.getPropertyValue("padding-bottom"))+parseFloat(Xe.getPropertyValue("padding-top")),ot=parseFloat(Xe.getPropertyValue("border-bottom-width"))+parseFloat(Xe.getPropertyValue("border-top-width")),et=Se.map(function(it){return"".concat(it,":").concat(Xe.getPropertyValue(it))}).join(";"),qe={sizingStyle:et,paddingSize:ct,borderSize:ot,boxSizing:nt};return lt&&Ve&&(xe[Ve]=qe),qe}function Le(at){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ye||(ye=document.createElement("textarea"),ye.setAttribute("tab-index","-1"),ye.setAttribute("aria-hidden","true"),document.body.appendChild(ye)),at.getAttribute("wrap")?ye.setAttribute("wrap",at.getAttribute("wrap")):ye.removeAttribute("wrap");var nt=Ae(at,lt),ct=nt.paddingSize,ot=nt.borderSize,et=nt.boxSizing,qe=nt.sizingStyle;ye.setAttribute("style","".concat(qe,";").concat(we)),ye.value=at.value||at.placeholder||"";var it=void 0,yt=void 0,pt,Dt=ye.scrollHeight;if(et==="border-box"?Dt+=ot:et==="content-box"&&(Dt-=ct),Ve!==null||Xe!==null){ye.value=" ";var At=ye.scrollHeight-ct;Ve!==null&&(it=At*Ve,et==="border-box"&&(it=it+ct+ot),Dt=Math.max(it,Dt)),Xe!==null&&(yt=At*Xe,et==="border-box"&&(yt=yt+ct+ot),pt=Dt>yt?"":"hidden",Dt=Math.min(yt,Dt))}var st={height:Dt,overflowY:pt,resize:"none"};return it&&(st.minHeight=it),yt&&(st.maxHeight=yt),st}var Ce=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],je=0,Me=1,Oe=2,Ee=ae.forwardRef(function(at,lt){var Ve=at,Xe=Ve.prefixCls,nt=Ve.onPressEnter,ct=Ve.defaultValue,ot=Ve.value,et=Ve.autoSize,qe=Ve.onResize,it=Ve.className,yt=Ve.style,pt=Ve.disabled,Dt=Ve.onChange,At=Ve.onInternalAutoSize,st=(0,re.Z)(Ve,Ce),Ge=(0,te.Z)(ct,{value:ot,postState:function(wr){return wr!=null?wr:""}}),We=(0,ve.Z)(Ge,2),le=We[0],fe=We[1],ze=function(wr){fe(wr.target.value),Dt==null||Dt(wr)},He=ae.useRef();ae.useImperativeHandle(lt,function(){return{textArea:He.current}});var pe=ae.useMemo(function(){return et&&(0,De.Z)(et)==="object"?[et.minRows,et.maxRows]:[]},[et]),Ie=(0,ve.Z)(pe,2),Ke=Ie[0],Ye=Ie[1],Je=!!et,dt=function(){try{if(document.activeElement===He.current){var wr=He.current,zr=wr.selectionStart,Wr=wr.selectionEnd,Br=wr.scrollTop;He.current.setSelectionRange(zr,Wr),He.current.scrollTop=Br}}catch(Nr){}},bt=ae.useState(Oe),vt=(0,ve.Z)(bt,2),It=vt[0],Vt=vt[1],kt=ae.useState(),jt=(0,ve.Z)(kt,2),_t=jt[0],Mt=jt[1],ft=function(){Vt(je)};(0,de.Z)(function(){Je&&ft()},[ot,Ke,Ye,Je]),(0,de.Z)(function(){if(It===je)Vt(Me);else if(It===Me){var gr=Le(He.current,!1,Ke,Ye);Vt(Oe),Mt(gr)}else dt()},[It]);var St=ae.useRef(),Nt=function(){he.Z.cancel(St.current)},Ft=function(wr){It===Oe&&(qe==null||qe(wr),et&&(Nt(),St.current=(0,he.Z)(function(){ft()})))};ae.useEffect(function(){return Nt},[]);var Ut=Je?_t:null,sr=(0,gt.Z)((0,gt.Z)({},yt),Ut);return(It===je||It===Me)&&(sr.overflowY="hidden",sr.overflowX="hidden"),ae.createElement(ue.Z,{onResize:Ft,disabled:!(et||qe)},ae.createElement("textarea",(0,Re.Z)({},st,{ref:He,style:sr,className:oe()(Xe,it,(0,x.Z)({},"".concat(Xe,"-disabled"),pt)),disabled:pt,value:le,onChange:ze})))}),Ne=Ee,_e=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ze(at,lt){return(0,ne.Z)(at||"").slice(0,lt).join("")}function Pe(at,lt,Ve,Xe){var nt=Ve;return at?nt=Ze(Ve,Xe):(0,ne.Z)(lt||"").length<Ve.length&&(0,ne.Z)(Ve||"").length>Xe&&(nt=lt),nt}var Ue=ae.forwardRef(function(at,lt){var Ve,Xe=at.defaultValue,nt=at.value,ct=at.onFocus,ot=at.onBlur,et=at.onChange,qe=at.allowClear,it=at.maxLength,yt=at.onCompositionStart,pt=at.onCompositionEnd,Dt=at.suffix,At=at.prefixCls,st=At===void 0?"rc-textarea":At,Ge=at.classes,We=at.showCount,le=at.className,fe=at.style,ze=at.disabled,He=at.hidden,pe=at.classNames,Ie=at.styles,Ke=at.onResize,Ye=(0,re.Z)(at,_e),Je=(0,te.Z)(Xe,{value:nt,defaultValue:Xe}),dt=(0,ve.Z)(Je,2),bt=dt[0],vt=dt[1],It=(0,ae.useRef)(null),Vt=ae.useState(!1),kt=(0,ve.Z)(Vt,2),jt=kt[0],_t=kt[1],Mt=ae.useState(!1),ft=(0,ve.Z)(Mt,2),St=ft[0],Nt=ft[1],Ft=ae.useRef(),Ut=ae.useRef(0),sr=ae.useState(null),gr=(0,ve.Z)(sr,2),wr=gr[0],zr=gr[1],Wr=function(){var Or;(Or=It.current)===null||Or===void 0||Or.textArea.focus()};(0,ae.useImperativeHandle)(lt,function(){return{resizableTextArea:It.current,focus:Wr,blur:function(){var Or;(Or=It.current)===null||Or===void 0||Or.textArea.blur()}}}),(0,ae.useEffect)(function(){_t(function(Dr){return!ze&&Dr})},[ze]);var Br=Number(it)>0,Nr=function(Or){Nt(!0),Ft.current=bt,Ut.current=Or.currentTarget.selectionStart,yt==null||yt(Or)},on=function(Or){Nt(!1);var Yr=Or.currentTarget.value;if(Br){var Kt,xt=Ut.current>=it+1||Ut.current===((Kt=Ft.current)===null||Kt===void 0?void 0:Kt.length);Yr=Pe(xt,Ft.current,Yr,it)}Yr!==bt&&(vt(Yr),(0,me.rJ)(Or.currentTarget,Or,et,Yr)),pt==null||pt(Or)},Mn=function(Or){var Yr=Or.target.value;if(!St&&Br){var Kt=Or.target.selectionStart>=it+1||Or.target.selectionStart===Yr.length||!Or.target.selectionStart;Yr=Pe(Kt,bt,Yr,it)}vt(Yr),(0,me.rJ)(Or.currentTarget,Or,et,Yr)},jn=function(Or){var Yr=Ye.onPressEnter,Kt=Ye.onKeyDown;Or.key==="Enter"&&Yr&&Yr(Or),Kt==null||Kt(Or)},an=function(Or){_t(!0),ct==null||ct(Or)},Tn=function(Or){_t(!1),ot==null||ot(Or)},Vr=function(Or){var Yr;vt(""),Wr(),(0,me.rJ)((Yr=It.current)===null||Yr===void 0?void 0:Yr.textArea,Or,et)},Gn=(0,me.D7)(bt);!St&&Br&&nt==null&&(Gn=Ze(Gn,it));var Wn=Dt,Jt;if(We){var jr=(0,ne.Z)(Gn).length;(0,De.Z)(We)==="object"?Jt=We.formatter({value:Gn,count:jr,maxLength:it}):Jt="".concat(jr).concat(Br?" / ".concat(it):""),Wn=ae.createElement(ae.Fragment,null,Wn,ae.createElement("span",{className:oe()("".concat(st,"-data-count"),pe==null?void 0:pe.count),style:Ie==null?void 0:Ie.count},Jt))}var Rr=function(Or){var Yr;Ke==null||Ke(Or),(Yr=It.current)!==null&&Yr!==void 0&&Yr.textArea.style.height&&zr(!0)},Tr=!Ye.autoSize&&!We&&!qe,Sr=ae.createElement(se.BaseInput,{value:Gn,allowClear:qe,handleReset:Vr,suffix:Wn,prefixCls:st,classes:{affixWrapper:oe()(Ge==null?void 0:Ge.affixWrapper,(Ve={},(0,x.Z)(Ve,"".concat(st,"-show-count"),We),(0,x.Z)(Ve,"".concat(st,"-textarea-allow-clear"),qe),Ve))},disabled:ze,focused:jt,className:le,style:(0,gt.Z)((0,gt.Z)({},fe),wr&&!Tr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Jt=="string"?Jt:void 0}},hidden:He,inputElement:ae.createElement(Ne,(0,Re.Z)({},Ye,{onKeyDown:jn,onChange:Mn,onFocus:an,onBlur:Tn,onCompositionStart:Nr,onCompositionEnd:on,className:pe==null?void 0:pe.textarea,style:(0,gt.Z)((0,gt.Z)({},Ie==null?void 0:Ie.textarea),{},{resize:fe==null?void 0:fe.resize}),disabled:ze,prefixCls:st,onResize:Rr,ref:It}))});return Sr}),Qe=Ue,tt=Qe},39417:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Me}});var Re=ke(60499),gt=ke(18642),x=ke(42244),De=ke(85899),ve=ke(38705),re=ke(17212),ne=ke(15793),ie=ke(39153),oe=ke(55401),se=ke(92310),me=ke.n(se),te=ke(26112),ae=ke(59301),ue=ke(39378),de=function(Ee){for(var Ne=Ee.prefixCls,_e=Ee.level,Ze=Ee.isStart,Pe=Ee.isEnd,Ue="".concat(Ne,"-indent-unit"),Qe=[],tt=0;tt<_e;tt+=1){var at;Qe.push(ae.createElement("span",{key:tt,className:me()(Ue,(at={},(0,gt.Z)(at,"".concat(Ue,"-start"),Ze[tt]),(0,gt.Z)(at,"".concat(Ue,"-end"),Pe[tt]),at))}))}return ae.createElement("span",{"aria-hidden":"true",className:"".concat(Ne,"-indent")},Qe)},he=ae.memo(de),we=ke(67841),Se=ke(71430),xe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ye="open",Ae="close",Le="---",Ce=function(Oe){(0,ie.Z)(Ne,Oe);var Ee=(0,oe.Z)(Ne);function Ne(){var _e;(0,ve.Z)(this,Ne);for(var Ze=arguments.length,Pe=new Array(Ze),Ue=0;Ue<Ze;Ue++)Pe[Ue]=arguments[Ue];return _e=Ee.call.apply(Ee,[this].concat(Pe)),_e.state={dragNodeHighlight:!1},_e.selectHandle=void 0,_e.cacheIndent=void 0,_e.onSelectorClick=function(Qe){var tt=_e.props.context.onNodeClick;tt(Qe,(0,Se.F)(_e.props)),_e.isSelectable()?_e.onSelect(Qe):_e.onCheck(Qe)},_e.onSelectorDoubleClick=function(Qe){var tt=_e.props.context.onNodeDoubleClick;tt(Qe,(0,Se.F)(_e.props))},_e.onSelect=function(Qe){if(!_e.isDisabled()){var tt=_e.props.context.onNodeSelect;tt(Qe,(0,Se.F)(_e.props))}},_e.onCheck=function(Qe){if(!_e.isDisabled()){var tt=_e.props,at=tt.disableCheckbox,lt=tt.checked,Ve=_e.props.context.onNodeCheck;if(!(!_e.isCheckable()||at)){var Xe=!lt;Ve(Qe,(0,Se.F)(_e.props),Xe)}}},_e.onMouseEnter=function(Qe){var tt=_e.props.context.onNodeMouseEnter;tt(Qe,(0,Se.F)(_e.props))},_e.onMouseLeave=function(Qe){var tt=_e.props.context.onNodeMouseLeave;tt(Qe,(0,Se.F)(_e.props))},_e.onContextMenu=function(Qe){var tt=_e.props.context.onNodeContextMenu;tt(Qe,(0,Se.F)(_e.props))},_e.onDragStart=function(Qe){var tt=_e.props.context.onNodeDragStart;Qe.stopPropagation(),_e.setState({dragNodeHighlight:!0}),tt(Qe,(0,ne.Z)(_e));try{Qe.dataTransfer.setData("text/plain","")}catch(at){}},_e.onDragEnter=function(Qe){var tt=_e.props.context.onNodeDragEnter;Qe.preventDefault(),Qe.stopPropagation(),tt(Qe,(0,ne.Z)(_e))},_e.onDragOver=function(Qe){var tt=_e.props.context.onNodeDragOver;Qe.preventDefault(),Qe.stopPropagation(),tt(Qe,(0,ne.Z)(_e))},_e.onDragLeave=function(Qe){var tt=_e.props.context.onNodeDragLeave;Qe.stopPropagation(),tt(Qe,(0,ne.Z)(_e))},_e.onDragEnd=function(Qe){var tt=_e.props.context.onNodeDragEnd;Qe.stopPropagation(),_e.setState({dragNodeHighlight:!1}),tt(Qe,(0,ne.Z)(_e))},_e.onDrop=function(Qe){var tt=_e.props.context.onNodeDrop;Qe.preventDefault(),Qe.stopPropagation(),_e.setState({dragNodeHighlight:!1}),tt(Qe,(0,ne.Z)(_e))},_e.onExpand=function(Qe){var tt=_e.props,at=tt.loading,lt=tt.context.onNodeExpand;at||lt(Qe,(0,Se.F)(_e.props))},_e.setSelectHandle=function(Qe){_e.selectHandle=Qe},_e.getNodeState=function(){var Qe=_e.props.expanded;return _e.isLeaf()?null:Qe?ye:Ae},_e.hasChildren=function(){var Qe=_e.props.eventKey,tt=_e.props.context.keyEntities,at=(0,we.Z)(tt,Qe)||{},lt=at.children;return!!(lt||[]).length},_e.isLeaf=function(){var Qe=_e.props,tt=Qe.isLeaf,at=Qe.loaded,lt=_e.props.context.loadData,Ve=_e.hasChildren();return tt===!1?!1:tt||!lt&&!Ve||lt&&at&&!Ve},_e.isDisabled=function(){var Qe=_e.props.disabled,tt=_e.props.context.disabled;return!!(tt||Qe)},_e.isCheckable=function(){var Qe=_e.props.checkable,tt=_e.props.context.checkable;return!tt||Qe===!1?!1:tt},_e.syncLoadData=function(Qe){var tt=Qe.expanded,at=Qe.loading,lt=Qe.loaded,Ve=_e.props.context,Xe=Ve.loadData,nt=Ve.onNodeLoad;at||Xe&&tt&&!_e.isLeaf()&&!_e.hasChildren()&&!lt&&nt((0,Se.F)(_e.props))},_e.isDraggable=function(){var Qe=_e.props,tt=Qe.data,at=Qe.context.draggable;return!!(at&&(!at.nodeDraggable||at.nodeDraggable(tt)))},_e.renderDragHandler=function(){var Qe=_e.props.context,tt=Qe.draggable,at=Qe.prefixCls;return tt!=null&&tt.icon?ae.createElement("span",{className:"".concat(at,"-draggable-icon")},tt.icon):null},_e.renderSwitcherIconDom=function(Qe){var tt=_e.props.switcherIcon,at=_e.props.context.switcherIcon,lt=tt||at;return typeof lt=="function"?lt((0,De.Z)((0,De.Z)({},_e.props),{},{isLeaf:Qe})):lt},_e.renderSwitcher=function(){var Qe=_e.props.expanded,tt=_e.props.context.prefixCls;if(_e.isLeaf()){var at=_e.renderSwitcherIconDom(!0);return at!==!1?ae.createElement("span",{className:me()("".concat(tt,"-switcher"),"".concat(tt,"-switcher-noop"))},at):null}var lt=me()("".concat(tt,"-switcher"),"".concat(tt,"-switcher_").concat(Qe?ye:Ae)),Ve=_e.renderSwitcherIconDom(!1);return Ve!==!1?ae.createElement("span",{onClick:_e.onExpand,className:lt},Ve):null},_e.renderCheckbox=function(){var Qe=_e.props,tt=Qe.checked,at=Qe.halfChecked,lt=Qe.disableCheckbox,Ve=_e.props.context.prefixCls,Xe=_e.isDisabled(),nt=_e.isCheckable();if(!nt)return null;var ct=typeof nt!="boolean"?nt:null;return ae.createElement("span",{className:me()("".concat(Ve,"-checkbox"),tt&&"".concat(Ve,"-checkbox-checked"),!tt&&at&&"".concat(Ve,"-checkbox-indeterminate"),(Xe||lt)&&"".concat(Ve,"-checkbox-disabled")),onClick:_e.onCheck},ct)},_e.renderIcon=function(){var Qe=_e.props.loading,tt=_e.props.context.prefixCls;return ae.createElement("span",{className:me()("".concat(tt,"-iconEle"),"".concat(tt,"-icon__").concat(_e.getNodeState()||"docu"),Qe&&"".concat(tt,"-icon_loading"))})},_e.renderSelector=function(){var Qe=_e.state.dragNodeHighlight,tt=_e.props,at=tt.title,lt=at===void 0?Le:at,Ve=tt.selected,Xe=tt.icon,nt=tt.loading,ct=tt.data,ot=_e.props.context,et=ot.prefixCls,qe=ot.showIcon,it=ot.icon,yt=ot.loadData,pt=ot.titleRender,Dt=_e.isDisabled(),At="".concat(et,"-node-content-wrapper"),st;if(qe){var Ge=Xe||it;st=Ge?ae.createElement("span",{className:me()("".concat(et,"-iconEle"),"".concat(et,"-icon__customize"))},typeof Ge=="function"?Ge(_e.props):Ge):_e.renderIcon()}else yt&&nt&&(st=_e.renderIcon());var We;typeof lt=="function"?We=lt(ct):pt?We=pt(ct):We=lt;var le=ae.createElement("span",{className:"".concat(et,"-title")},We);return ae.createElement("span",{ref:_e.setSelectHandle,title:typeof lt=="string"?lt:"",className:me()("".concat(At),"".concat(At,"-").concat(_e.getNodeState()||"normal"),!Dt&&(Ve||Qe)&&"".concat(et,"-node-selected")),onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onContextMenu:_e.onContextMenu,onClick:_e.onSelectorClick,onDoubleClick:_e.onSelectorDoubleClick},st,le,_e.renderDropIndicator())},_e.renderDropIndicator=function(){var Qe=_e.props,tt=Qe.disabled,at=Qe.eventKey,lt=_e.props.context,Ve=lt.draggable,Xe=lt.dropLevelOffset,nt=lt.dropPosition,ct=lt.prefixCls,ot=lt.indent,et=lt.dropIndicatorRender,qe=lt.dragOverNodeKey,it=lt.direction,yt=!!Ve,pt=!tt&&yt&&qe===at,Dt=ot!=null?ot:_e.cacheIndent;return _e.cacheIndent=ot,pt?et({dropPosition:nt,dropLevelOffset:Xe,indent:Dt,prefixCls:ct,direction:it}):null},_e}return(0,re.Z)(Ne,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ze=this.props.selectable,Pe=this.props.context.selectable;return typeof Ze=="boolean"?Ze:Pe}},{key:"render",value:function(){var Ze,Pe=this.props,Ue=Pe.eventKey,Qe=Pe.className,tt=Pe.style,at=Pe.dragOver,lt=Pe.dragOverGapTop,Ve=Pe.dragOverGapBottom,Xe=Pe.isLeaf,nt=Pe.isStart,ct=Pe.isEnd,ot=Pe.expanded,et=Pe.selected,qe=Pe.checked,it=Pe.halfChecked,yt=Pe.loading,pt=Pe.domRef,Dt=Pe.active,At=Pe.data,st=Pe.onMouseMove,Ge=Pe.selectable,We=(0,x.Z)(Pe,xe),le=this.props.context,fe=le.prefixCls,ze=le.filterTreeNode,He=le.keyEntities,pe=le.dropContainerKey,Ie=le.dropTargetKey,Ke=le.draggingNodeKey,Ye=this.isDisabled(),Je=(0,te.Z)(We,{aria:!0,data:!0}),dt=(0,we.Z)(He,Ue)||{},bt=dt.level,vt=ct[ct.length-1],It=this.isDraggable(),Vt=!Ye&&It,kt=Ke===Ue,jt=Ge!==void 0?{"aria-selected":!!Ge}:void 0;return ae.createElement("div",(0,Re.Z)({ref:pt,className:me()(Qe,"".concat(fe,"-treenode"),(Ze={},(0,gt.Z)(Ze,"".concat(fe,"-treenode-disabled"),Ye),(0,gt.Z)(Ze,"".concat(fe,"-treenode-switcher-").concat(ot?"open":"close"),!Xe),(0,gt.Z)(Ze,"".concat(fe,"-treenode-checkbox-checked"),qe),(0,gt.Z)(Ze,"".concat(fe,"-treenode-checkbox-indeterminate"),it),(0,gt.Z)(Ze,"".concat(fe,"-treenode-selected"),et),(0,gt.Z)(Ze,"".concat(fe,"-treenode-loading"),yt),(0,gt.Z)(Ze,"".concat(fe,"-treenode-active"),Dt),(0,gt.Z)(Ze,"".concat(fe,"-treenode-leaf-last"),vt),(0,gt.Z)(Ze,"".concat(fe,"-treenode-draggable"),It),(0,gt.Z)(Ze,"dragging",kt),(0,gt.Z)(Ze,"drop-target",Ie===Ue),(0,gt.Z)(Ze,"drop-container",pe===Ue),(0,gt.Z)(Ze,"drag-over",!Ye&&at),(0,gt.Z)(Ze,"drag-over-gap-top",!Ye&<),(0,gt.Z)(Ze,"drag-over-gap-bottom",!Ye&&Ve),(0,gt.Z)(Ze,"filter-node",ze&&ze((0,Se.F)(this.props))),Ze)),style:tt,draggable:Vt,"aria-grabbed":kt,onDragStart:Vt?this.onDragStart:void 0,onDragEnter:It?this.onDragEnter:void 0,onDragOver:It?this.onDragOver:void 0,onDragLeave:It?this.onDragLeave:void 0,onDrop:It?this.onDrop:void 0,onDragEnd:It?this.onDragEnd:void 0,onMouseMove:st},jt,Je),ae.createElement(he,{prefixCls:fe,level:bt,isStart:nt,isEnd:ct}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ne}(ae.Component),je=function(Ee){return ae.createElement(ue.k.Consumer,null,function(Ne){return ae.createElement(Ce,(0,Re.Z)({},Ee,{context:Ne}))})};je.displayName="TreeNode",je.isTreeNode=1;var Me=je},39378:function(or,Ht,ke){"use strict";ke.d(Ht,{k:function(){return gt}});var Re=ke(59301),gt=Re.createContext(null)},38028:function(or,Ht,ke){"use strict";ke.d(Ht,{O:function(){return Me.Z},Z:function(){return le}});var Re=ke(60499),gt=ke(18642),x=ke(43749),De=ke(85899),ve=ke(77654),re=ke(38705),ne=ke(17212),ie=ke(15793),oe=ke(39153),se=ke(55401),me=ke(92310),te=ke.n(me),ae=ke(10228),ue=ke(26112),de=ke(48736),he=ke(59301),we=ke(39378);function Se(fe){var ze=fe.dropPosition,He=fe.dropLevelOffset,pe=fe.indent,Ie={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ze){case-1:Ie.top=0,Ie.left=-He*pe;break;case 1:Ie.bottom=0,Ie.left=-He*pe;break;case 0:Ie.bottom=0,Ie.left=pe;break}return he.createElement("div",{style:Ie})}function xe(fe){if(fe==null)throw new TypeError("Cannot destructure "+fe)}var ye=ke(72190),Ae=ke(42244),Le=ke(34280),Ce=ke(48911),je=ke(77900),Me=ke(39417);function Oe(fe,ze){var He=he.useState(!1),pe=(0,ye.Z)(He,2),Ie=pe[0],Ke=pe[1];he.useLayoutEffect(function(){if(Ie)return fe(),function(){ze()}},[Ie]),he.useLayoutEffect(function(){return Ke(!0),function(){Ke(!1)}},[])}var Ee=ke(71430),Ne=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],_e=function(ze,He){var pe=ze.className,Ie=ze.style,Ke=ze.motion,Ye=ze.motionNodes,Je=ze.motionType,dt=ze.onMotionStart,bt=ze.onMotionEnd,vt=ze.active,It=ze.treeNodeRequiredProps,Vt=(0,Ae.Z)(ze,Ne),kt=he.useState(!0),jt=(0,ye.Z)(kt,2),_t=jt[0],Mt=jt[1],ft=he.useContext(we.k),St=ft.prefixCls,Nt=Ye&&Je!=="hide";(0,Le.Z)(function(){Ye&&Nt!==_t&&Mt(Nt)},[Ye]);var Ft=function(){Ye&&dt()},Ut=he.useRef(!1),sr=function(){Ye&&!Ut.current&&(Ut.current=!0,bt())};Oe(Ft,sr);var gr=function(zr){Nt===zr&&sr()};return Ye?he.createElement(je.default,(0,Re.Z)({ref:He,visible:_t},Ke,{motionAppear:Je==="show",onVisibleChanged:gr}),function(wr,zr){var Wr=wr.className,Br=wr.style;return he.createElement("div",{ref:zr,className:te()("".concat(St,"-treenode-motion"),Wr),style:Br},Ye.map(function(Nr){var on=(0,Re.Z)({},(xe(Nr.data),Nr.data)),Mn=Nr.title,jn=Nr.key,an=Nr.isStart,Tn=Nr.isEnd;delete on.children;var Vr=(0,Ee.H8)(jn,It);return he.createElement(Me.Z,(0,Re.Z)({},on,Vr,{title:Mn,active:vt,data:Nr.data,key:jn,isStart:an,isEnd:Tn}))}))}):he.createElement(Me.Z,(0,Re.Z)({domRef:He,className:pe,style:Ie},Vt,{active:vt}))};_e.displayName="MotionTreeNode";var Ze=he.forwardRef(_e),Pe=Ze;function Ue(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],He=fe.length,pe=ze.length;if(Math.abs(He-pe)!==1)return{add:!1,key:null};function Ie(Ke,Ye){var Je=new Map;Ke.forEach(function(bt){Je.set(bt,!0)});var dt=Ye.filter(function(bt){return!Je.has(bt)});return dt.length===1?dt[0]:null}return He<pe?{add:!0,key:Ie(fe,ze)}:{add:!1,key:Ie(ze,fe)}}function Qe(fe,ze,He){var pe=fe.findIndex(function(Je){return Je.key===He}),Ie=fe[pe+1],Ke=ze.findIndex(function(Je){return Je.key===He});if(Ie){var Ye=ze.findIndex(function(Je){return Je.key===Ie.key});return ze.slice(Ke+1,Ye)}return ze.slice(Ke+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"],at={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},lt=function(){},Ve="RC_TREE_MOTION_".concat(Math.random()),Xe={key:Ve},nt={key:Ve,level:0,index:0,pos:"0",node:Xe,nodes:[Xe]},ct={parent:null,children:[],pos:nt.pos,data:Xe,title:null,key:Ve,isStart:[],isEnd:[]};function ot(fe,ze,He,pe){return ze===!1||!He?fe:fe.slice(0,Math.ceil(He/pe)+1)}function et(fe){var ze=fe.key,He=fe.pos;return(0,Ee.km)(ze,He)}function qe(fe){for(var ze=String(fe.data.key),He=fe;He.parent;)He=He.parent,ze="".concat(He.data.key," > ").concat(ze);return ze}var it=he.forwardRef(function(fe,ze){var He=fe.prefixCls,pe=fe.data,Ie=fe.selectable,Ke=fe.checkable,Ye=fe.expandedKeys,Je=fe.selectedKeys,dt=fe.checkedKeys,bt=fe.loadedKeys,vt=fe.loadingKeys,It=fe.halfCheckedKeys,Vt=fe.keyEntities,kt=fe.disabled,jt=fe.dragging,_t=fe.dragOverNodeKey,Mt=fe.dropPosition,ft=fe.motion,St=fe.height,Nt=fe.itemHeight,Ft=fe.virtual,Ut=fe.focusable,sr=fe.activeItem,gr=fe.focused,wr=fe.tabIndex,zr=fe.onKeyDown,Wr=fe.onFocus,Br=fe.onBlur,Nr=fe.onActiveChange,on=fe.onListChangeStart,Mn=fe.onListChangeEnd,jn=(0,Ae.Z)(fe,tt),an=he.useRef(null),Tn=he.useRef(null);he.useImperativeHandle(ze,function(){return{scrollTo:function(br){an.current.scrollTo(br)},getIndentWidth:function(){return Tn.current.offsetWidth}}});var Vr=he.useState(Ye),Gn=(0,ye.Z)(Vr,2),Wn=Gn[0],Jt=Gn[1],jr=he.useState(pe),Rr=(0,ye.Z)(jr,2),Tr=Rr[0],Sr=Rr[1],Dr=he.useState(pe),Or=(0,ye.Z)(Dr,2),Yr=Or[0],Kt=Or[1],xt=he.useState([]),Bt=(0,ye.Z)(xt,2),Ot=Bt[0],Et=Bt[1],zt=he.useState(null),Zt=(0,ye.Z)(zt,2),nr=Zt[0],$t=Zt[1],pr=he.useRef(pe);pr.current=pe;function Ar(){var tr=pr.current;Sr(tr),Kt(tr),Et([]),$t(null),Mn()}(0,Le.Z)(function(){Jt(Ye);var tr=Ue(Wn,Ye);if(tr.key!==null)if(tr.add){var br=Tr.findIndex(function(ar){var xr=ar.key;return xr===tr.key}),Wt=ot(Qe(Tr,pe,tr.key),Ft,St,Nt),Qt=Tr.slice();Qt.splice(br+1,0,ct),Kt(Qt),Et(Wt),$t("show")}else{var Xt=pe.findIndex(function(ar){var xr=ar.key;return xr===tr.key}),qt=ot(Qe(pe,Tr,tr.key),Ft,St,Nt),mr=pe.slice();mr.splice(Xt+1,0,ct),Kt(mr),Et(qt),$t("hide")}else Tr!==pe&&(Sr(pe),Kt(pe))},[Ye,pe]),he.useEffect(function(){jt||Ar()},[jt]);var Lr=ft?Yr:pe,Er={expandedKeys:Ye,selectedKeys:Je,loadedKeys:bt,loadingKeys:vt,checkedKeys:dt,halfCheckedKeys:It,dragOverNodeKey:_t,dropPosition:Mt,keyEntities:Vt};return he.createElement(he.Fragment,null,gr&&sr&&he.createElement("span",{style:at,"aria-live":"assertive"},qe(sr)),he.createElement("div",null,he.createElement("input",{style:at,disabled:Ut===!1||kt,tabIndex:Ut!==!1?wr:null,onKeyDown:zr,onFocus:Wr,onBlur:Br,value:"",onChange:lt,"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:Tn,className:"".concat(He,"-indent-unit")}))),he.createElement(Ce.Z,(0,Re.Z)({},jn,{data:Lr,itemKey:et,height:St,fullHeight:!1,virtual:Ft,itemHeight:Nt,prefixCls:"".concat(He,"-list"),ref:an,onVisibleChange:function(br,Wt){var Qt=new Set(br),Xt=Wt.filter(function(qt){return!Qt.has(qt)});Xt.some(function(qt){return et(qt)===Ve})&&Ar()}}),function(tr){var br=tr.pos,Wt=(0,Re.Z)({},(xe(tr.data),tr.data)),Qt=tr.title,Xt=tr.key,qt=tr.isStart,mr=tr.isEnd,ar=(0,Ee.km)(Xt,br);delete Wt.key,delete Wt.children;var xr=(0,Ee.H8)(ar,Er);return he.createElement(Pe,(0,Re.Z)({},Wt,xr,{title:Qt,active:!!sr&&Xt===sr.key,pos:br,data:tr.data,isStart:qt,isEnd:mr,motion:ft,motionNodes:Xt===Ve?Ot:null,motionType:nr,onMotionStart:on,onMotionEnd:Ar,treeNodeRequiredProps:Er,onMouseMove:function(){Nr(null)}}))}))});it.displayName="NodeList";var yt=it,pt=ke(35654),Dt=ke(90782),At=ke(67841),st=10,Ge=function(fe){(0,oe.Z)(He,fe);var ze=(0,se.Z)(He);function He(){var pe;(0,re.Z)(this,He);for(var Ie=arguments.length,Ke=new Array(Ie),Ye=0;Ye<Ie;Ye++)Ke[Ye]=arguments[Ye];return pe=ze.call.apply(ze,[this].concat(Ke)),pe.destroyed=!1,pe.delayedDragEnterLogic=void 0,pe.loadingRetryTimes={},pe.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$)()},pe.dragStartMousePosition=null,pe.dragNode=void 0,pe.currentMouseOverDroppableNodeKey=null,pe.listRef=he.createRef(),pe.onNodeDragStart=function(Je,dt){var bt=pe.state,vt=bt.expandedKeys,It=bt.keyEntities,Vt=pe.props.onDragStart,kt=dt.props.eventKey;pe.dragNode=dt,pe.dragStartMousePosition={x:Je.clientX,y:Je.clientY};var jt=(0,pt._5)(vt,kt);pe.setState({draggingNodeKey:kt,dragChildrenKeys:(0,pt.wA)(kt,It),indent:pe.listRef.current.getIndentWidth()}),pe.setExpandedKeys(jt),window.addEventListener("dragend",pe.onWindowDragEnd),Vt==null||Vt({event:Je,node:(0,Ee.F)(dt.props)})},pe.onNodeDragEnter=function(Je,dt){var bt=pe.state,vt=bt.expandedKeys,It=bt.keyEntities,Vt=bt.dragChildrenKeys,kt=bt.flattenNodes,jt=bt.indent,_t=pe.props,Mt=_t.onDragEnter,ft=_t.onExpand,St=_t.allowDrop,Nt=_t.direction,Ft=dt.props,Ut=Ft.pos,sr=Ft.eventKey,gr=(0,ie.Z)(pe),wr=gr.dragNode;if(pe.currentMouseOverDroppableNodeKey!==sr&&(pe.currentMouseOverDroppableNodeKey=sr),!wr){pe.resetDragState();return}var zr=(0,pt.OM)(Je,wr,dt,jt,pe.dragStartMousePosition,St,kt,It,vt,Nt),Wr=zr.dropPosition,Br=zr.dropLevelOffset,Nr=zr.dropTargetKey,on=zr.dropContainerKey,Mn=zr.dropTargetPos,jn=zr.dropAllowed,an=zr.dragOverNodeKey;if(Vt.indexOf(Nr)!==-1||!jn){pe.resetDragState();return}if(pe.delayedDragEnterLogic||(pe.delayedDragEnterLogic={}),Object.keys(pe.delayedDragEnterLogic).forEach(function(Tn){clearTimeout(pe.delayedDragEnterLogic[Tn])}),wr.props.eventKey!==dt.props.eventKey&&(Je.persist(),pe.delayedDragEnterLogic[Ut]=window.setTimeout(function(){if(pe.state.draggingNodeKey!==null){var Tn=(0,ve.Z)(vt),Vr=(0,At.Z)(It,dt.props.eventKey);Vr&&(Vr.children||[]).length&&(Tn=(0,pt.L0)(vt,dt.props.eventKey)),"expandedKeys"in pe.props||pe.setExpandedKeys(Tn),ft==null||ft(Tn,{node:(0,Ee.F)(dt.props),expanded:!0,nativeEvent:Je.nativeEvent})}},800)),wr.props.eventKey===Nr&&Br===0){pe.resetDragState();return}pe.setState({dragOverNodeKey:an,dropPosition:Wr,dropLevelOffset:Br,dropTargetKey:Nr,dropContainerKey:on,dropTargetPos:Mn,dropAllowed:jn}),Mt==null||Mt({event:Je,node:(0,Ee.F)(dt.props),expandedKeys:vt})},pe.onNodeDragOver=function(Je,dt){var bt=pe.state,vt=bt.dragChildrenKeys,It=bt.flattenNodes,Vt=bt.keyEntities,kt=bt.expandedKeys,jt=bt.indent,_t=pe.props,Mt=_t.onDragOver,ft=_t.allowDrop,St=_t.direction,Nt=(0,ie.Z)(pe),Ft=Nt.dragNode;if(Ft){var Ut=(0,pt.OM)(Je,Ft,dt,jt,pe.dragStartMousePosition,ft,It,Vt,kt,St),sr=Ut.dropPosition,gr=Ut.dropLevelOffset,wr=Ut.dropTargetKey,zr=Ut.dropContainerKey,Wr=Ut.dropAllowed,Br=Ut.dropTargetPos,Nr=Ut.dragOverNodeKey;vt.indexOf(wr)!==-1||!Wr||(Ft.props.eventKey===wr&&gr===0?pe.state.dropPosition===null&&pe.state.dropLevelOffset===null&&pe.state.dropTargetKey===null&&pe.state.dropContainerKey===null&&pe.state.dropTargetPos===null&&pe.state.dropAllowed===!1&&pe.state.dragOverNodeKey===null||pe.resetDragState():sr===pe.state.dropPosition&&gr===pe.state.dropLevelOffset&&wr===pe.state.dropTargetKey&&zr===pe.state.dropContainerKey&&Br===pe.state.dropTargetPos&&Wr===pe.state.dropAllowed&&Nr===pe.state.dragOverNodeKey||pe.setState({dropPosition:sr,dropLevelOffset:gr,dropTargetKey:wr,dropContainerKey:zr,dropTargetPos:Br,dropAllowed:Wr,dragOverNodeKey:Nr}),Mt==null||Mt({event:Je,node:(0,Ee.F)(dt.props)}))}},pe.onNodeDragLeave=function(Je,dt){pe.currentMouseOverDroppableNodeKey===dt.props.eventKey&&!Je.currentTarget.contains(Je.relatedTarget)&&(pe.resetDragState(),pe.currentMouseOverDroppableNodeKey=null);var bt=pe.props.onDragLeave;bt==null||bt({event:Je,node:(0,Ee.F)(dt.props)})},pe.onWindowDragEnd=function(Je){pe.onNodeDragEnd(Je,null,!0),window.removeEventListener("dragend",pe.onWindowDragEnd)},pe.onNodeDragEnd=function(Je,dt){var bt=pe.props.onDragEnd;pe.setState({dragOverNodeKey:null}),pe.cleanDragState(),bt==null||bt({event:Je,node:(0,Ee.F)(dt.props)}),pe.dragNode=null,window.removeEventListener("dragend",pe.onWindowDragEnd)},pe.onNodeDrop=function(Je,dt){var bt,vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,It=pe.state,Vt=It.dragChildrenKeys,kt=It.dropPosition,jt=It.dropTargetKey,_t=It.dropTargetPos,Mt=It.dropAllowed;if(Mt){var ft=pe.props.onDrop;if(pe.setState({dragOverNodeKey:null}),pe.cleanDragState(),jt!==null){var St=(0,De.Z)((0,De.Z)({},(0,Ee.H8)(jt,pe.getTreeNodeRequiredProps())),{},{active:((bt=pe.getActiveItem())===null||bt===void 0?void 0:bt.key)===jt,data:(0,At.Z)(pe.state.keyEntities,jt).node}),Nt=Vt.indexOf(jt)!==-1;(0,de.ZP)(!Nt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ft=(0,pt.yx)(_t),Ut={event:Je,node:(0,Ee.F)(St),dragNode:pe.dragNode?(0,Ee.F)(pe.dragNode.props):null,dragNodesKeys:[pe.dragNode.props.eventKey].concat(Vt),dropToGap:kt!==0,dropPosition:kt+Number(Ft[Ft.length-1])};vt||ft==null||ft(Ut),pe.dragNode=null}}},pe.cleanDragState=function(){var Je=pe.state.draggingNodeKey;Je!==null&&pe.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),pe.dragStartMousePosition=null,pe.currentMouseOverDroppableNodeKey=null},pe.triggerExpandActionExpand=function(Je,dt){var bt=pe.state,vt=bt.expandedKeys,It=bt.flattenNodes,Vt=dt.expanded,kt=dt.key,jt=dt.isLeaf;if(!(jt||Je.shiftKey||Je.metaKey||Je.ctrlKey)){var _t=It.filter(function(ft){return ft.key===kt})[0],Mt=(0,Ee.F)((0,De.Z)((0,De.Z)({},(0,Ee.H8)(kt,pe.getTreeNodeRequiredProps())),{},{data:_t.data}));pe.setExpandedKeys(Vt?(0,pt._5)(vt,kt):(0,pt.L0)(vt,kt)),pe.onNodeExpand(Je,Mt)}},pe.onNodeClick=function(Je,dt){var bt=pe.props,vt=bt.onClick,It=bt.expandAction;It==="click"&&pe.triggerExpandActionExpand(Je,dt),vt==null||vt(Je,dt)},pe.onNodeDoubleClick=function(Je,dt){var bt=pe.props,vt=bt.onDoubleClick,It=bt.expandAction;It==="doubleClick"&&pe.triggerExpandActionExpand(Je,dt),vt==null||vt(Je,dt)},pe.onNodeSelect=function(Je,dt){var bt=pe.state.selectedKeys,vt=pe.state,It=vt.keyEntities,Vt=vt.fieldNames,kt=pe.props,jt=kt.onSelect,_t=kt.multiple,Mt=dt.selected,ft=dt[Vt.key],St=!Mt;St?_t?bt=(0,pt.L0)(bt,ft):bt=[ft]:bt=(0,pt._5)(bt,ft);var Nt=bt.map(function(Ft){var Ut=(0,At.Z)(It,Ft);return Ut?Ut.node:null}).filter(function(Ft){return Ft});pe.setUncontrolledState({selectedKeys:bt}),jt==null||jt(bt,{event:"select",selected:St,node:dt,selectedNodes:Nt,nativeEvent:Je.nativeEvent})},pe.onNodeCheck=function(Je,dt,bt){var vt=pe.state,It=vt.keyEntities,Vt=vt.checkedKeys,kt=vt.halfCheckedKeys,jt=pe.props,_t=jt.checkStrictly,Mt=jt.onCheck,ft=dt.key,St,Nt={event:"check",node:dt,checked:bt,nativeEvent:Je.nativeEvent};if(_t){var Ft=bt?(0,pt.L0)(Vt,ft):(0,pt._5)(Vt,ft),Ut=(0,pt._5)(kt,ft);St={checked:Ft,halfChecked:Ut},Nt.checkedNodes=Ft.map(function(Br){return(0,At.Z)(It,Br)}).filter(function(Br){return Br}).map(function(Br){return Br.node}),pe.setUncontrolledState({checkedKeys:Ft})}else{var sr=(0,Dt.S)([].concat((0,ve.Z)(Vt),[ft]),!0,It),gr=sr.checkedKeys,wr=sr.halfCheckedKeys;if(!bt){var zr=new Set(gr);zr.delete(ft);var Wr=(0,Dt.S)(Array.from(zr),{checked:!1,halfCheckedKeys:wr},It);gr=Wr.checkedKeys,wr=Wr.halfCheckedKeys}St=gr,Nt.checkedNodes=[],Nt.checkedNodesPositions=[],Nt.halfCheckedKeys=wr,gr.forEach(function(Br){var Nr=(0,At.Z)(It,Br);if(Nr){var on=Nr.node,Mn=Nr.pos;Nt.checkedNodes.push(on),Nt.checkedNodesPositions.push({node:on,pos:Mn})}}),pe.setUncontrolledState({checkedKeys:gr},!1,{halfCheckedKeys:wr})}Mt==null||Mt(St,Nt)},pe.onNodeLoad=function(Je){var dt=Je.key,bt=new Promise(function(vt,It){pe.setState(function(Vt){var kt=Vt.loadedKeys,jt=kt===void 0?[]:kt,_t=Vt.loadingKeys,Mt=_t===void 0?[]:_t,ft=pe.props,St=ft.loadData,Nt=ft.onLoad;if(!St||jt.indexOf(dt)!==-1||Mt.indexOf(dt)!==-1)return null;var Ft=St(Je);return Ft.then(function(){var Ut=pe.state.loadedKeys,sr=(0,pt.L0)(Ut,dt);Nt==null||Nt(sr,{event:"load",node:Je}),pe.setUncontrolledState({loadedKeys:sr}),pe.setState(function(gr){return{loadingKeys:(0,pt._5)(gr.loadingKeys,dt)}}),vt()}).catch(function(Ut){if(pe.setState(function(gr){return{loadingKeys:(0,pt._5)(gr.loadingKeys,dt)}}),pe.loadingRetryTimes[dt]=(pe.loadingRetryTimes[dt]||0)+1,pe.loadingRetryTimes[dt]>=st){var sr=pe.state.loadedKeys;(0,de.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),pe.setUncontrolledState({loadedKeys:(0,pt.L0)(sr,dt)}),vt()}It(Ut)}),{loadingKeys:(0,pt.L0)(Mt,dt)}})});return bt.catch(function(){}),bt},pe.onNodeMouseEnter=function(Je,dt){var bt=pe.props.onMouseEnter;bt==null||bt({event:Je,node:dt})},pe.onNodeMouseLeave=function(Je,dt){var bt=pe.props.onMouseLeave;bt==null||bt({event:Je,node:dt})},pe.onNodeContextMenu=function(Je,dt){var bt=pe.props.onRightClick;bt&&(Je.preventDefault(),bt({event:Je,node:dt}))},pe.onFocus=function(){var Je=pe.props.onFocus;pe.setState({focused:!0});for(var dt=arguments.length,bt=new Array(dt),vt=0;vt<dt;vt++)bt[vt]=arguments[vt];Je==null||Je.apply(void 0,bt)},pe.onBlur=function(){var Je=pe.props.onBlur;pe.setState({focused:!1}),pe.onActiveChange(null);for(var dt=arguments.length,bt=new Array(dt),vt=0;vt<dt;vt++)bt[vt]=arguments[vt];Je==null||Je.apply(void 0,bt)},pe.getTreeNodeRequiredProps=function(){var Je=pe.state,dt=Je.expandedKeys,bt=Je.selectedKeys,vt=Je.loadedKeys,It=Je.loadingKeys,Vt=Je.checkedKeys,kt=Je.halfCheckedKeys,jt=Je.dragOverNodeKey,_t=Je.dropPosition,Mt=Je.keyEntities;return{expandedKeys:dt||[],selectedKeys:bt||[],loadedKeys:vt||[],loadingKeys:It||[],checkedKeys:Vt||[],halfCheckedKeys:kt||[],dragOverNodeKey:jt,dropPosition:_t,keyEntities:Mt}},pe.setExpandedKeys=function(Je){var dt=pe.state,bt=dt.treeData,vt=dt.fieldNames,It=(0,Ee.oH)(bt,Je,vt);pe.setUncontrolledState({expandedKeys:Je,flattenNodes:It},!0)},pe.onNodeExpand=function(Je,dt){var bt=pe.state.expandedKeys,vt=pe.state,It=vt.listChanging,Vt=vt.fieldNames,kt=pe.props,jt=kt.onExpand,_t=kt.loadData,Mt=dt.expanded,ft=dt[Vt.key];if(!It){var St=bt.indexOf(ft),Nt=!Mt;if((0,de.ZP)(Mt&&St!==-1||!Mt&&St===-1,"Expand state not sync with index check"),Nt?bt=(0,pt.L0)(bt,ft):bt=(0,pt._5)(bt,ft),pe.setExpandedKeys(bt),jt==null||jt(bt,{node:dt,expanded:Nt,nativeEvent:Je.nativeEvent}),Nt&&_t){var Ft=pe.onNodeLoad(dt);Ft&&Ft.then(function(){var Ut=(0,Ee.oH)(pe.state.treeData,bt,Vt);pe.setUncontrolledState({flattenNodes:Ut})}).catch(function(){var Ut=pe.state.expandedKeys,sr=(0,pt._5)(Ut,ft);pe.setExpandedKeys(sr)})}}},pe.onListChangeStart=function(){pe.setUncontrolledState({listChanging:!0})},pe.onListChangeEnd=function(){setTimeout(function(){pe.setUncontrolledState({listChanging:!1})})},pe.onActiveChange=function(Je){var dt=pe.state.activeKey,bt=pe.props.onActiveChange;dt!==Je&&(pe.setState({activeKey:Je}),Je!==null&&pe.scrollTo({key:Je}),bt==null||bt(Je))},pe.getActiveItem=function(){var Je=pe.state,dt=Je.activeKey,bt=Je.flattenNodes;return dt===null?null:bt.find(function(vt){var It=vt.key;return It===dt})||null},pe.offsetActiveKey=function(Je){var dt=pe.state,bt=dt.flattenNodes,vt=dt.activeKey,It=bt.findIndex(function(jt){var _t=jt.key;return _t===vt});It===-1&&Je<0&&(It=bt.length),It=(It+Je+bt.length)%bt.length;var Vt=bt[It];if(Vt){var kt=Vt.key;pe.onActiveChange(kt)}else pe.onActiveChange(null)},pe.onKeyDown=function(Je){var dt=pe.state,bt=dt.activeKey,vt=dt.expandedKeys,It=dt.checkedKeys,Vt=dt.fieldNames,kt=pe.props,jt=kt.onKeyDown,_t=kt.checkable,Mt=kt.selectable;switch(Je.which){case ae.Z.UP:{pe.offsetActiveKey(-1),Je.preventDefault();break}case ae.Z.DOWN:{pe.offsetActiveKey(1),Je.preventDefault();break}}var ft=pe.getActiveItem();if(ft&&ft.data){var St=pe.getTreeNodeRequiredProps(),Nt=ft.data.isLeaf===!1||!!(ft.data[Vt.children]||[]).length,Ft=(0,Ee.F)((0,De.Z)((0,De.Z)({},(0,Ee.H8)(bt,St)),{},{data:ft.data,active:!0}));switch(Je.which){case ae.Z.LEFT:{Nt&&vt.includes(bt)?pe.onNodeExpand({},Ft):ft.parent&&pe.onActiveChange(ft.parent.key),Je.preventDefault();break}case ae.Z.RIGHT:{Nt&&!vt.includes(bt)?pe.onNodeExpand({},Ft):ft.children&&ft.children.length&&pe.onActiveChange(ft.children[0].key),Je.preventDefault();break}case ae.Z.ENTER:case ae.Z.SPACE:{_t&&!Ft.disabled&&Ft.checkable!==!1&&!Ft.disableCheckbox?pe.onNodeCheck({},Ft,!It.includes(bt)):!_t&&Mt&&!Ft.disabled&&Ft.selectable!==!1&&pe.onNodeSelect({},Ft);break}}}jt==null||jt(Je)},pe.setUncontrolledState=function(Je){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!pe.destroyed){var vt=!1,It=!0,Vt={};Object.keys(Je).forEach(function(kt){if(kt in pe.props){It=!1;return}vt=!0,Vt[kt]=Je[kt]}),vt&&(!dt||It)&&pe.setState((0,De.Z)((0,De.Z)({},Vt),bt))}},pe.scrollTo=function(Je){pe.listRef.current.scrollTo(Je)},pe}return(0,ne.Z)(He,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ie=this.props.activeKey;Ie!==void 0&&Ie!==this.state.activeKey&&(this.setState({activeKey:Ie}),Ie!==null&&this.scrollTo({key:Ie}))}},{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 Ie,Ke=this.state,Ye=Ke.focused,Je=Ke.flattenNodes,dt=Ke.keyEntities,bt=Ke.draggingNodeKey,vt=Ke.activeKey,It=Ke.dropLevelOffset,Vt=Ke.dropContainerKey,kt=Ke.dropTargetKey,jt=Ke.dropPosition,_t=Ke.dragOverNodeKey,Mt=Ke.indent,ft=this.props,St=ft.prefixCls,Nt=ft.className,Ft=ft.style,Ut=ft.showLine,sr=ft.focusable,gr=ft.tabIndex,wr=gr===void 0?0:gr,zr=ft.selectable,Wr=ft.showIcon,Br=ft.icon,Nr=ft.switcherIcon,on=ft.draggable,Mn=ft.checkable,jn=ft.checkStrictly,an=ft.disabled,Tn=ft.motion,Vr=ft.loadData,Gn=ft.filterTreeNode,Wn=ft.height,Jt=ft.itemHeight,jr=ft.virtual,Rr=ft.titleRender,Tr=ft.dropIndicatorRender,Sr=ft.onContextMenu,Dr=ft.onScroll,Or=ft.direction,Yr=ft.rootClassName,Kt=ft.rootStyle,xt=(0,ue.Z)(this.props,{aria:!0,data:!0}),Bt;return on&&((0,x.Z)(on)==="object"?Bt=on:typeof on=="function"?Bt={nodeDraggable:on}:Bt={}),he.createElement(we.k.Provider,{value:{prefixCls:St,selectable:zr,showIcon:Wr,icon:Br,switcherIcon:Nr,draggable:Bt,draggingNodeKey:bt,checkable:Mn,checkStrictly:jn,disabled:an,keyEntities:dt,dropLevelOffset:It,dropContainerKey:Vt,dropTargetKey:kt,dropPosition:jt,dragOverNodeKey:_t,indent:Mt,direction:Or,dropIndicatorRender:Tr,loadData:Vr,filterTreeNode:Gn,titleRender:Rr,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:te()(St,Nt,Yr,(Ie={},(0,gt.Z)(Ie,"".concat(St,"-show-line"),Ut),(0,gt.Z)(Ie,"".concat(St,"-focused"),Ye),(0,gt.Z)(Ie,"".concat(St,"-active-focused"),vt!==null),Ie)),style:Kt},he.createElement(yt,(0,Re.Z)({ref:this.listRef,prefixCls:St,style:Ft,data:Je,disabled:an,selectable:zr,checkable:!!Mn,motion:Tn,dragging:bt!==null,height:Wn,itemHeight:Jt,virtual:jr,focusable:sr,focused:Ye,tabIndex:wr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Sr,onScroll:Dr},this.getTreeNodeRequiredProps(),xt))))}}],[{key:"getDerivedStateFromProps",value:function(Ie,Ke){var Ye=Ke.prevProps,Je={prevProps:Ie};function dt(sr){return!Ye&&sr in Ie||Ye&&Ye[sr]!==Ie[sr]}var bt,vt=Ke.fieldNames;if(dt("fieldNames")&&(vt=(0,Ee.w$)(Ie.fieldNames),Je.fieldNames=vt),dt("treeData")?bt=Ie.treeData:dt("children")&&((0,de.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),bt=(0,Ee.zn)(Ie.children)),bt){Je.treeData=bt;var It=(0,Ee.I8)(bt,{fieldNames:vt});Je.keyEntities=(0,De.Z)((0,gt.Z)({},Ve,nt),It.keyEntities)}var Vt=Je.keyEntities||Ke.keyEntities;if(dt("expandedKeys")||Ye&&dt("autoExpandParent"))Je.expandedKeys=Ie.autoExpandParent||!Ye&&Ie.defaultExpandParent?(0,pt.r7)(Ie.expandedKeys,Vt):Ie.expandedKeys;else if(!Ye&&Ie.defaultExpandAll){var kt=(0,De.Z)({},Vt);delete kt[Ve],Je.expandedKeys=Object.keys(kt).map(function(sr){return kt[sr].key})}else!Ye&&Ie.defaultExpandedKeys&&(Je.expandedKeys=Ie.autoExpandParent||Ie.defaultExpandParent?(0,pt.r7)(Ie.defaultExpandedKeys,Vt):Ie.defaultExpandedKeys);if(Je.expandedKeys||delete Je.expandedKeys,bt||Je.expandedKeys){var jt=(0,Ee.oH)(bt||Ke.treeData,Je.expandedKeys||Ke.expandedKeys,vt);Je.flattenNodes=jt}if(Ie.selectable&&(dt("selectedKeys")?Je.selectedKeys=(0,pt.BT)(Ie.selectedKeys,Ie):!Ye&&Ie.defaultSelectedKeys&&(Je.selectedKeys=(0,pt.BT)(Ie.defaultSelectedKeys,Ie))),Ie.checkable){var _t;if(dt("checkedKeys")?_t=(0,pt.E6)(Ie.checkedKeys)||{}:!Ye&&Ie.defaultCheckedKeys?_t=(0,pt.E6)(Ie.defaultCheckedKeys)||{}:bt&&(_t=(0,pt.E6)(Ie.checkedKeys)||{checkedKeys:Ke.checkedKeys,halfCheckedKeys:Ke.halfCheckedKeys}),_t){var Mt=_t,ft=Mt.checkedKeys,St=ft===void 0?[]:ft,Nt=Mt.halfCheckedKeys,Ft=Nt===void 0?[]:Nt;if(!Ie.checkStrictly){var Ut=(0,Dt.S)(St,!0,Vt);St=Ut.checkedKeys,Ft=Ut.halfCheckedKeys}Je.checkedKeys=St,Je.halfCheckedKeys=Ft}}return dt("loadedKeys")&&(Je.loadedKeys=Ie.loadedKeys),Je}}]),He}(he.Component);Ge.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},Ge.TreeNode=Me.Z;var We=Ge,le=We},35654:function(or,Ht,ke){"use strict";ke.d(Ht,{BT:function(){return he},E6:function(){return xe},L0:function(){return se},OM:function(){return de},_5:function(){return oe},r7:function(){return ye},wA:function(){return te},yx:function(){return me}});var Re=ke(77654),gt=ke(43749),x=ke(48736),De=ke(59301),ve=ke(39417),re=ke(67841),ne=ke(71430),ie=null;function oe(Ae,Le){if(!Ae)return[];var Ce=Ae.slice(),je=Ce.indexOf(Le);return je>=0&&Ce.splice(je,1),Ce}function se(Ae,Le){var Ce=(Ae||[]).slice();return Ce.indexOf(Le)===-1&&Ce.push(Le),Ce}function me(Ae){return Ae.split("-")}function te(Ae,Le){var Ce=[],je=(0,re.Z)(Le,Ae);function Me(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Oe.forEach(function(Ee){var Ne=Ee.key,_e=Ee.children;Ce.push(Ne),Me(_e)})}return Me(je.children),Ce}function ae(Ae){if(Ae.parent){var Le=me(Ae.pos);return Number(Le[Le.length-1])===Ae.parent.children.length-1}return!1}function ue(Ae){var Le=me(Ae.pos);return Number(Le[Le.length-1])===0}function de(Ae,Le,Ce,je,Me,Oe,Ee,Ne,_e,Ze){var Pe,Ue=Ae.clientX,Qe=Ae.clientY,tt=Ae.target.getBoundingClientRect(),at=tt.top,lt=tt.height,Ve=(Ze==="rtl"?-1:1)*(((Me==null?void 0:Me.x)||0)-Ue),Xe=(Ve-12)/je,nt=(0,re.Z)(Ne,Ce.props.eventKey);if(Qe<at+lt/2){var ct=Ee.findIndex(function(le){return le.key===nt.key}),ot=ct<=0?0:ct-1,et=Ee[ot].key;nt=(0,re.Z)(Ne,et)}var qe=nt.key,it=nt,yt=nt.key,pt=0,Dt=0;if(!_e.includes(qe))for(var At=0;At<Xe&&ae(nt);At+=1)nt=nt.parent,Dt+=1;var st=Le.props.data,Ge=nt.node,We=!0;return ue(nt)&&nt.level===0&&Qe<at+lt/2&&Oe({dragNode:st,dropNode:Ge,dropPosition:-1})&&nt.key===Ce.props.eventKey?pt=-1:(it.children||[]).length&&_e.includes(yt)?Oe({dragNode:st,dropNode:Ge,dropPosition:0})?pt=0:We=!1:Dt===0?Xe>-1.5?Oe({dragNode:st,dropNode:Ge,dropPosition:1})?pt=1:We=!1:Oe({dragNode:st,dropNode:Ge,dropPosition:0})?pt=0:Oe({dragNode:st,dropNode:Ge,dropPosition:1})?pt=1:We=!1:Oe({dragNode:st,dropNode:Ge,dropPosition:1})?pt=1:We=!1,{dropPosition:pt,dropLevelOffset:Dt,dropTargetKey:nt.key,dropTargetPos:nt.pos,dragOverNodeKey:yt,dropContainerKey:pt===0?null:((Pe=nt.parent)===null||Pe===void 0?void 0:Pe.key)||null,dropAllowed:We}}function he(Ae,Le){if(Ae){var Ce=Le.multiple;return Ce?Ae.slice():Ae.length?[Ae[0]]:Ae}}var we=function(Le){return Le};function Se(Ae,Le){if(!Ae)return[];var Ce=Le||{},je=Ce.processProps,Me=je===void 0?we:je,Oe=Array.isArray(Ae)?Ae:[Ae];return Oe.map(function(Ee){var Ne=Ee.children,_e=_objectWithoutProperties(Ee,ie),Ze=Se(Ne,Le);return React.createElement(TreeNode,_extends({key:_e.key},Me(_e)),Ze)})}function xe(Ae){if(!Ae)return null;var Le;if(Array.isArray(Ae))Le={checkedKeys:Ae,halfCheckedKeys:void 0};else if((0,gt.Z)(Ae)==="object")Le={checkedKeys:Ae.checked||void 0,halfCheckedKeys:Ae.halfChecked||void 0};else return(0,x.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Le}function ye(Ae,Le){var Ce=new Set;function je(Me){if(!Ce.has(Me)){var Oe=(0,re.Z)(Le,Me);if(Oe){Ce.add(Me);var Ee=Oe.parent,Ne=Oe.node;Ne.disabled||Ee&&je(Ee.key)}}}return(Ae||[]).forEach(function(Me){je(Me)}),(0,Re.Z)(Ce)}},90782:function(or,Ht,ke){"use strict";ke.d(Ht,{S:function(){return ne}});var Re=ke(48736),gt=ke(67841);function x(ie,oe){var se=new Set;return ie.forEach(function(me){oe.has(me)||se.add(me)}),se}function De(ie){var oe=ie||{},se=oe.disabled,me=oe.disableCheckbox,te=oe.checkable;return!!(se||me)||te===!1}function ve(ie,oe,se,me){for(var te=new Set(ie),ae=new Set,ue=0;ue<=se;ue+=1){var de=oe.get(ue)||new Set;de.forEach(function(xe){var ye=xe.key,Ae=xe.node,Le=xe.children,Ce=Le===void 0?[]:Le;te.has(ye)&&!me(Ae)&&Ce.filter(function(je){return!me(je.node)}).forEach(function(je){te.add(je.key)})})}for(var he=new Set,we=se;we>=0;we-=1){var Se=oe.get(we)||new Set;Se.forEach(function(xe){var ye=xe.parent,Ae=xe.node;if(!(me(Ae)||!xe.parent||he.has(xe.parent.key))){if(me(xe.parent.node)){he.add(ye.key);return}var Le=!0,Ce=!1;(ye.children||[]).filter(function(je){return!me(je.node)}).forEach(function(je){var Me=je.key,Oe=te.has(Me);Le&&!Oe&&(Le=!1),!Ce&&(Oe||ae.has(Me))&&(Ce=!0)}),Le&&te.add(ye.key),Ce&&ae.add(ye.key),he.add(ye.key)}})}return{checkedKeys:Array.from(te),halfCheckedKeys:Array.from(x(ae,te))}}function re(ie,oe,se,me,te){for(var ae=new Set(ie),ue=new Set(oe),de=0;de<=me;de+=1){var he=se.get(de)||new Set;he.forEach(function(ye){var Ae=ye.key,Le=ye.node,Ce=ye.children,je=Ce===void 0?[]:Ce;!ae.has(Ae)&&!ue.has(Ae)&&!te(Le)&&je.filter(function(Me){return!te(Me.node)}).forEach(function(Me){ae.delete(Me.key)})})}ue=new Set;for(var we=new Set,Se=me;Se>=0;Se-=1){var xe=se.get(Se)||new Set;xe.forEach(function(ye){var Ae=ye.parent,Le=ye.node;if(!(te(Le)||!ye.parent||we.has(ye.parent.key))){if(te(ye.parent.node)){we.add(Ae.key);return}var Ce=!0,je=!1;(Ae.children||[]).filter(function(Me){return!te(Me.node)}).forEach(function(Me){var Oe=Me.key,Ee=ae.has(Oe);Ce&&!Ee&&(Ce=!1),!je&&(Ee||ue.has(Oe))&&(je=!0)}),Ce||ae.delete(Ae.key),je&&ue.add(Ae.key),we.add(Ae.key)}})}return{checkedKeys:Array.from(ae),halfCheckedKeys:Array.from(x(ue,ae))}}function ne(ie,oe,se,me){var te=[],ae;me?ae=me:ae=De;var ue=new Set(ie.filter(function(Se){var xe=!!(0,gt.Z)(se,Se);return xe||te.push(Se),xe})),de=new Map,he=0;Object.keys(se).forEach(function(Se){var xe=se[Se],ye=xe.level,Ae=de.get(ye);Ae||(Ae=new Set,de.set(ye,Ae)),Ae.add(xe),he=Math.max(he,ye)}),(0,Re.ZP)(!te.length,"Tree missing follow keys: ".concat(te.slice(0,100).map(function(Se){return"'".concat(Se,"'")}).join(", ")));var we;return oe===!0?we=ve(ue,de,he,ae):we=re(ue,oe.halfCheckedKeys,de,he,ae),we}},67841:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Re}});function Re(gt,x){return gt[x]}},71430:function(or,Ht,ke){"use strict";ke.d(Ht,{F:function(){return ye},H8:function(){return xe},I8:function(){return Se},km:function(){return te},oH:function(){return he},w$:function(){return ae},zn:function(){return de}});var Re=ke(43749),gt=ke(77654),x=ke(85899),De=ke(42244),ve=ke(11592),re=ke(2738),ne=ke(48736),ie=ke(67841),oe=["children"];function se(Ae,Le){return"".concat(Ae,"-").concat(Le)}function me(Ae){return Ae&&Ae.type&&Ae.type.isTreeNode}function te(Ae,Le){return Ae!=null?Ae:Le}function ae(Ae){var Le=Ae||{},Ce=Le.title,je=Le._title,Me=Le.key,Oe=Le.children,Ee=Ce||"title";return{title:Ee,_title:je||[Ee],key:Me||"key",children:Oe||"children"}}function ue(Ae,Le){var Ce=new Map;function je(Me){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Me||[]).forEach(function(Ee){var Ne=Ee[Le.key],_e=Ee[Le.children];warning(Ne!=null,"Tree node must have a certain key: [".concat(Oe).concat(Ne,"]"));var Ze=String(Ne);warning(!Ce.has(Ze)||Ne===null||Ne===void 0,"Same 'key' exist in the Tree: ".concat(Ze)),Ce.set(Ze,!0),je(_e,"".concat(Oe).concat(Ze," > "))})}je(Ae)}function de(Ae){function Le(Ce){var je=(0,ve.Z)(Ce);return je.map(function(Me){if(!me(Me))return(0,ne.ZP)(!Me,"Tree/TreeNode can only accept TreeNode as children."),null;var Oe=Me.key,Ee=Me.props,Ne=Ee.children,_e=(0,De.Z)(Ee,oe),Ze=(0,x.Z)({key:Oe},_e),Pe=Le(Ne);return Pe.length&&(Ze.children=Pe),Ze}).filter(function(Me){return Me})}return Le(Ae)}function he(Ae,Le,Ce){var je=ae(Ce),Me=je._title,Oe=je.key,Ee=je.children,Ne=new Set(Le===!0?[]:Le),_e=[];function Ze(Pe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Pe.map(function(Qe,tt){for(var at=se(Ue?Ue.pos:"0",tt),lt=te(Qe[Oe],at),Ve,Xe=0;Xe<Me.length;Xe+=1){var nt=Me[Xe];if(Qe[nt]!==void 0){Ve=Qe[nt];break}}var ct=(0,x.Z)((0,x.Z)({},(0,re.Z)(Qe,[].concat((0,gt.Z)(Me),[Oe,Ee]))),{},{title:Ve,key:lt,parent:Ue,pos:at,children:null,data:Qe,isStart:[].concat((0,gt.Z)(Ue?Ue.isStart:[]),[tt===0]),isEnd:[].concat((0,gt.Z)(Ue?Ue.isEnd:[]),[tt===Pe.length-1])});return _e.push(ct),Le===!0||Ne.has(lt)?ct.children=Ze(Qe[Ee]||[],ct):ct.children=[],ct})}return Ze(Ae),_e}function we(Ae,Le,Ce){var je={};(0,Re.Z)(Ce)==="object"?je=Ce:je={externalGetKey:Ce},je=je||{};var Me=je,Oe=Me.childrenPropName,Ee=Me.externalGetKey,Ne=Me.fieldNames,_e=ae(Ne),Ze=_e.key,Pe=_e.children,Ue=Oe||Pe,Qe;Ee?typeof Ee=="string"?Qe=function(lt){return lt[Ee]}:typeof Ee=="function"&&(Qe=function(lt){return Ee(lt)}):Qe=function(lt,Ve){return te(lt[Ze],Ve)};function tt(at,lt,Ve,Xe){var nt=at?at[Ue]:Ae,ct=at?se(Ve.pos,lt):"0",ot=at?[].concat((0,gt.Z)(Xe),[at]):[];if(at){var et=Qe(at,ct),qe={node:at,index:lt,pos:ct,key:et,parentPos:Ve.node?Ve.pos:null,level:Ve.level+1,nodes:ot};Le(qe)}nt&&nt.forEach(function(it,yt){tt(it,yt,{node:at,pos:ct,level:Ve?Ve.level+1:-1},ot)})}tt(null)}function Se(Ae){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=Le.initWrapper,je=Le.processEntity,Me=Le.onProcessFinished,Oe=Le.externalGetKey,Ee=Le.childrenPropName,Ne=Le.fieldNames,_e=arguments.length>2?arguments[2]:void 0,Ze=Oe||_e,Pe={},Ue={},Qe={posEntities:Pe,keyEntities:Ue};return Ce&&(Qe=Ce(Qe)||Qe),we(Ae,function(tt){var at=tt.node,lt=tt.index,Ve=tt.pos,Xe=tt.key,nt=tt.parentPos,ct=tt.level,ot=tt.nodes,et={node:at,nodes:ot,index:lt,key:Xe,pos:Ve,level:ct},qe=te(Xe,Ve);Pe[Ve]=et,Ue[qe]=et,et.parent=Pe[nt],et.parent&&(et.parent.children=et.parent.children||[],et.parent.children.push(et)),je&&je(et,Qe)},{externalGetKey:Ze,childrenPropName:Ee,fieldNames:Ne}),Me&&Me(Qe),Qe}function xe(Ae,Le){var Ce=Le.expandedKeys,je=Le.selectedKeys,Me=Le.loadedKeys,Oe=Le.loadingKeys,Ee=Le.checkedKeys,Ne=Le.halfCheckedKeys,_e=Le.dragOverNodeKey,Ze=Le.dropPosition,Pe=Le.keyEntities,Ue=(0,ie.Z)(Pe,Ae),Qe={eventKey:Ae,expanded:Ce.indexOf(Ae)!==-1,selected:je.indexOf(Ae)!==-1,loaded:Me.indexOf(Ae)!==-1,loading:Oe.indexOf(Ae)!==-1,checked:Ee.indexOf(Ae)!==-1,halfChecked:Ne.indexOf(Ae)!==-1,pos:String(Ue?Ue.pos:""),dragOver:_e===Ae&&Ze===0,dragOverGapTop:_e===Ae&&Ze===-1,dragOverGapBottom:_e===Ae&&Ze===1};return Qe}function ye(Ae){var Le=Ae.data,Ce=Ae.expanded,je=Ae.selected,Me=Ae.checked,Oe=Ae.loaded,Ee=Ae.loading,Ne=Ae.halfChecked,_e=Ae.dragOver,Ze=Ae.dragOverGapTop,Pe=Ae.dragOverGapBottom,Ue=Ae.pos,Qe=Ae.active,tt=Ae.eventKey,at=(0,x.Z)((0,x.Z)({},Le),{},{expanded:Ce,selected:je,checked:Me,loaded:Oe,loading:Ee,halfChecked:Ne,dragOver:_e,dragOverGapTop:Ze,dragOverGapBottom:Pe,pos:Ue,active:Qe,key:tt});return"props"in at||Object.defineProperty(at,"props",{get:function(){return(0,ne.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ae}}),at}},48911:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return Ge}});var Re=ke(60499),gt=ke(43749),x=ke(85899),De=ke(18642),ve=ke(72190),re=ke(42244),ne=ke(92310),ie=ke.n(ne),oe=ke(29301),se=ke(70425),me=ke(34280),te=ke(59301),ae=ke(4676),ue=te.forwardRef(function(We,le){var fe=We.height,ze=We.offsetY,He=We.offsetX,pe=We.children,Ie=We.prefixCls,Ke=We.onInnerResize,Ye=We.innerProps,Je=We.rtl,dt=We.extra,bt={},vt={display:"flex",flexDirection:"column"};return ze!==void 0&&(bt={height:fe,position:"relative",overflow:"hidden"},vt=(0,x.Z)((0,x.Z)({},vt),{},(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({transform:"translateY(".concat(ze,"px)")},Je?"marginRight":"marginLeft",-He),"position","absolute"),"left",0),"right",0),"top",0))),te.createElement("div",{style:bt},te.createElement(oe.Z,{onResize:function(Vt){var kt=Vt.offsetHeight;kt&&Ke&&Ke()}},te.createElement("div",(0,Re.Z)({style:vt,className:ie()((0,De.Z)({},"".concat(Ie,"-holder-inner"),Ie)),ref:le},Ye),pe,dt)))});ue.displayName="Filler";var de=ue;function he(We){var le=We.children,fe=We.setRef,ze=te.useCallback(function(He){fe(He)},[]);return te.cloneElement(le,{ref:ze})}function we(We,le,fe,ze,He,pe,Ie,Ke){var Ye=Ke.getKey;return We.slice(le,fe+1).map(function(Je,dt){var bt=le+dt,vt=Ie(Je,bt,{style:{width:ze},offsetX:He}),It=Ye(Je);return te.createElement(he,{key:It,setRef:function(kt){return pe(Je,kt)}},vt)})}function Se(We,le,fe,ze){var He=fe-We,pe=le-fe,Ie=Math.min(He,pe)*2;if(ze<=Ie){var Ke=Math.floor(ze/2);return ze%2?fe+Ke+1:fe-Ke}return He>pe?fe-(ze-pe):fe+(ze-He)}function xe(We,le,fe){var ze=We.length,He=le.length,pe,Ie;if(ze===0&&He===0)return null;ze<He?(pe=We,Ie=le):(pe=le,Ie=We);var Ke={__EMPTY_ITEM__:!0};function Ye(Vt){return Vt!==void 0?fe(Vt):Ke}for(var Je=null,dt=Math.abs(ze-He)!==1,bt=0;bt<Ie.length;bt+=1){var vt=Ye(pe[bt]),It=Ye(Ie[bt]);if(vt!==It){Je=bt,dt=dt||vt!==Ye(Ie[bt+1]);break}}return Je===null?null:{index:Je,multiple:dt}}function ye(We,le,fe){var ze=te.useState(We),He=(0,ve.Z)(ze,2),pe=He[0],Ie=He[1],Ke=te.useState(null),Ye=(0,ve.Z)(Ke,2),Je=Ye[0],dt=Ye[1];return te.useEffect(function(){var bt=xe(pe||[],We||[],le);(bt==null?void 0:bt.index)!==void 0&&(fe==null||fe(bt.index),dt(We[bt.index])),Ie(We)},[We]),[Je]}var Ae=ke(16089),Le=(typeof navigator=="undefined"?"undefined":(0,gt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ce=Le,je=function(We,le,fe,ze){var He=(0,te.useRef)(!1),pe=(0,te.useRef)(null);function Ie(){clearTimeout(pe.current),He.current=!0,pe.current=setTimeout(function(){He.current=!1},50)}var Ke=(0,te.useRef)({top:We,bottom:le,left:fe,right:ze});return Ke.current.top=We,Ke.current.bottom=le,Ke.current.left=fe,Ke.current.right=ze,function(Ye,Je){var dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,bt=Ye?Je<0&&Ke.current.left||Je>0&&Ke.current.right:Je<0&&Ke.current.top||Je>0&&Ke.current.bottom;return dt&&bt?(clearTimeout(pe.current),He.current=!1):(!bt||He.current)&&Ie(),!He.current&&bt}};function Me(We,le,fe,ze,He,pe,Ie){var Ke=(0,te.useRef)(0),Ye=(0,te.useRef)(null),Je=(0,te.useRef)(null),dt=(0,te.useRef)(!1),bt=je(le,fe,ze,He);function vt(Mt,ft){if(Ae.Z.cancel(Ye.current),!bt(!1,ft)){var St=Mt;if(!St._virtualHandled)St._virtualHandled=!0;else return;Ke.current+=ft,Je.current=ft,Ce||St.preventDefault(),Ye.current=(0,Ae.Z)(function(){var Nt=dt.current?10:1;Ie(Ke.current*Nt,!1),Ke.current=0})}}function It(Mt,ft){Ie(ft,!0),Ce||Mt.preventDefault()}var Vt=(0,te.useRef)(null),kt=(0,te.useRef)(null);function jt(Mt){if(We){Ae.Z.cancel(kt.current),kt.current=(0,Ae.Z)(function(){Vt.current=null},2);var ft=Mt.deltaX,St=Mt.deltaY,Nt=Mt.shiftKey,Ft=ft,Ut=St;(Vt.current==="sx"||!Vt.current&&Nt&&St&&!ft)&&(Ft=St,Ut=0,Vt.current="sx");var sr=Math.abs(Ft),gr=Math.abs(Ut);Vt.current===null&&(Vt.current=pe&&sr>gr?"x":"y"),Vt.current==="y"?vt(Mt,Ut):It(Mt,Ft)}}function _t(Mt){We&&(dt.current=Mt.detail===Je.current)}return[jt,_t]}function Oe(We,le,fe,ze){var He=te.useMemo(function(){return[new Map,[]]},[We,fe.id,ze]),pe=(0,ve.Z)(He,2),Ie=pe[0],Ke=pe[1],Ye=function(dt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt,vt=Ie.get(dt),It=Ie.get(bt);if(vt===void 0||It===void 0)for(var Vt=We.length,kt=Ke.length;kt<Vt;kt+=1){var jt,_t=We[kt],Mt=le(_t);Ie.set(Mt,kt);var ft=(jt=fe.get(Mt))!==null&&jt!==void 0?jt:ze;if(Ke[kt]=(Ke[kt-1]||0)+ft,Mt===dt&&(vt=kt),Mt===bt&&(It=kt),vt!==void 0&&It!==void 0)break}return{top:Ke[vt-1]||0,bottom:Ke[It]}};return Ye}var Ee=ke(38705),Ne=ke(17212),_e=function(){function We(){(0,Ee.Z)(this,We),(0,De.Z)(this,"maps",void 0),(0,De.Z)(this,"id",0),(0,De.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ne.Z)(We,[{key:"set",value:function(fe,ze){this.diffRecords.set(fe,this.maps[fe]),this.maps[fe]=ze,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}}]),We}(),Ze=_e;function Pe(We){var le=parseFloat(We);return isNaN(le)?0:le}function Ue(We,le,fe){var ze=te.useState(0),He=(0,ve.Z)(ze,2),pe=He[0],Ie=He[1],Ke=(0,te.useRef)(new Map),Ye=(0,te.useRef)(new Ze),Je=(0,te.useRef)(0);function dt(){Je.current+=1}function bt(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;dt();var Vt=function(){var _t=!1;Ke.current.forEach(function(Mt,ft){if(Mt&&Mt.offsetParent){var St=Mt.offsetHeight,Nt=getComputedStyle(Mt),Ft=Nt.marginTop,Ut=Nt.marginBottom,sr=Pe(Ft),gr=Pe(Ut),wr=St+sr+gr;Ye.current.get(ft)!==wr&&(Ye.current.set(ft,wr),_t=!0)}}),_t&&Ie(function(Mt){return Mt+1})};if(It)Vt();else{Je.current+=1;var kt=Je.current;Promise.resolve().then(function(){kt===Je.current&&Vt()})}}function vt(It,Vt){var kt=We(It),jt=Ke.current.get(kt);Vt?(Ke.current.set(kt,Vt),bt()):Ke.current.delete(kt),!jt!=!Vt&&(Vt?le==null||le(It):fe==null||fe(It))}return(0,te.useEffect)(function(){return dt},[]),[vt,bt,Ye.current,pe]}var Qe=14/15;function tt(We,le,fe){var ze=(0,te.useRef)(!1),He=(0,te.useRef)(0),pe=(0,te.useRef)(0),Ie=(0,te.useRef)(null),Ke=(0,te.useRef)(null),Ye,Je=function(It){if(ze.current){var Vt=Math.ceil(It.touches[0].pageX),kt=Math.ceil(It.touches[0].pageY),jt=He.current-Vt,_t=pe.current-kt,Mt=Math.abs(jt)>Math.abs(_t);Mt?He.current=Vt:pe.current=kt;var ft=fe(Mt,Mt?jt:_t,!1,It);ft&&It.preventDefault(),clearInterval(Ke.current),ft&&(Ke.current=setInterval(function(){Mt?jt*=Qe:_t*=Qe;var St=Math.floor(Mt?jt:_t);(!fe(Mt,St,!0)||Math.abs(St)<=.1)&&clearInterval(Ke.current)},16))}},dt=function(){ze.current=!1,Ye()},bt=function(It){Ye(),It.touches.length===1&&!ze.current&&(ze.current=!0,He.current=Math.ceil(It.touches[0].pageX),pe.current=Math.ceil(It.touches[0].pageY),Ie.current=It.target,Ie.current.addEventListener("touchmove",Je,{passive:!1}),Ie.current.addEventListener("touchend",dt,{passive:!0}))};Ye=function(){Ie.current&&(Ie.current.removeEventListener("touchmove",Je),Ie.current.removeEventListener("touchend",dt))},(0,me.Z)(function(){return We&&le.current.addEventListener("touchstart",bt,{passive:!0}),function(){var vt;(vt=le.current)===null||vt===void 0||vt.removeEventListener("touchstart",bt),Ye(),clearInterval(Ke.current)}},[We])}function at(We){return Math.floor(Math.pow(We,.5))}function lt(We,le){var fe="touches"in We?We.touches[0]:We;return fe[le?"pageX":"pageY"]-window[le?"scrollX":"scrollY"]}function Ve(We,le,fe){te.useEffect(function(){var ze=le.current;if(We&&ze){var He=!1,pe,Ie,Ke=function(){Ae.Z.cancel(pe)},Ye=function vt(){Ke(),pe=(0,Ae.Z)(function(){fe(Ie),vt()})},Je=function(){He=!1,Ke()},dt=function(It){if(!(It.target.draggable||It.button!==0)){var Vt=It;Vt._virtualHandled||(Vt._virtualHandled=!0,He=!0)}},bt=function(It){if(He){var Vt=lt(It,!1),kt=ze.getBoundingClientRect(),jt=kt.top,_t=kt.bottom;if(Vt<=jt){var Mt=jt-Vt;Ie=-at(Mt),Ye()}else if(Vt>=_t){var ft=Vt-_t;Ie=at(ft),Ye()}else Ke()}};return ze.addEventListener("mousedown",dt),ze.ownerDocument.addEventListener("mouseup",Je),ze.ownerDocument.addEventListener("mousemove",bt),ze.ownerDocument.addEventListener("dragend",Je),function(){ze.removeEventListener("mousedown",dt),ze.ownerDocument.removeEventListener("mouseup",Je),ze.ownerDocument.removeEventListener("mousemove",bt),ze.ownerDocument.removeEventListener("dragend",Je),Ke()}}},[We])}var Xe=10;function nt(We,le,fe,ze,He,pe,Ie,Ke){var Ye=te.useRef(),Je=te.useState(null),dt=(0,ve.Z)(Je,2),bt=dt[0],vt=dt[1];return(0,me.Z)(function(){if(bt&&bt.times<Xe){if(!We.current){vt(function(Tn){return(0,x.Z)({},Tn)});return}pe();var It=bt.targetAlign,Vt=bt.originAlign,kt=bt.index,jt=bt.offset,_t=We.current.clientHeight,Mt=!1,ft=It,St=null;if(_t){for(var Nt=It||Vt,Ft=0,Ut=0,sr=0,gr=Math.min(le.length-1,kt),wr=0;wr<=gr;wr+=1){var zr=He(le[wr]);Ut=Ft;var Wr=fe.get(zr);sr=Ut+(Wr===void 0?ze:Wr),Ft=sr}for(var Br=Nt==="top"?jt:_t-jt,Nr=gr;Nr>=0;Nr-=1){var on=He(le[Nr]),Mn=fe.get(on);if(Mn===void 0){Mt=!0;break}if(Br-=Mn,Br<=0)break}switch(Nt){case"top":St=Ut-jt;break;case"bottom":St=sr-_t+jt;break;default:{var jn=We.current.scrollTop,an=jn+_t;Ut<jn?ft="top":sr>an&&(ft="bottom")}}St!==null&&Ie(St),St!==bt.lastTop&&(Mt=!0)}Mt&&vt((0,x.Z)((0,x.Z)({},bt),{},{times:bt.times+1,targetAlign:ft,lastTop:St}))}},[bt,We.current]),function(It){if(It==null){Ke();return}if(Ae.Z.cancel(Ye.current),typeof It=="number")Ie(It);else if(It&&(0,gt.Z)(It)==="object"){var Vt,kt=It.align;"index"in It?Vt=It.index:Vt=le.findIndex(function(Mt){return He(Mt)===It.key});var jt=It.offset,_t=jt===void 0?0:jt;vt({times:0,index:Vt,offset:_t,originAlign:kt})}}}var ct=te.forwardRef(function(We,le){var fe=We.prefixCls,ze=We.rtl,He=We.scrollOffset,pe=We.scrollRange,Ie=We.onStartMove,Ke=We.onStopMove,Ye=We.onScroll,Je=We.horizontal,dt=We.spinSize,bt=We.containerSize,vt=We.style,It=We.thumbStyle,Vt=We.showScrollBar,kt=te.useState(!1),jt=(0,ve.Z)(kt,2),_t=jt[0],Mt=jt[1],ft=te.useState(null),St=(0,ve.Z)(ft,2),Nt=St[0],Ft=St[1],Ut=te.useState(null),sr=(0,ve.Z)(Ut,2),gr=sr[0],wr=sr[1],zr=!ze,Wr=te.useRef(),Br=te.useRef(),Nr=te.useState(Vt),on=(0,ve.Z)(Nr,2),Mn=on[0],jn=on[1],an=te.useRef(),Tn=function(){Vt===!0||Vt===!1||(clearTimeout(an.current),jn(!0),an.current=setTimeout(function(){jn(!1)},3e3))},Vr=pe-bt||0,Gn=bt-dt||0,Wn=te.useMemo(function(){if(He===0||Vr===0)return 0;var Kt=He/Vr;return Kt*Gn},[He,Vr,Gn]),Jt=function(xt){xt.stopPropagation(),xt.preventDefault()},jr=te.useRef({top:Wn,dragging:_t,pageY:Nt,startTop:gr});jr.current={top:Wn,dragging:_t,pageY:Nt,startTop:gr};var Rr=function(xt){Mt(!0),Ft(lt(xt,Je)),wr(jr.current.top),Ie(),xt.stopPropagation(),xt.preventDefault()};te.useEffect(function(){var Kt=function(Et){Et.preventDefault()},xt=Wr.current,Bt=Br.current;return xt.addEventListener("touchstart",Kt,{passive:!1}),Bt.addEventListener("touchstart",Rr,{passive:!1}),function(){xt.removeEventListener("touchstart",Kt),Bt.removeEventListener("touchstart",Rr)}},[]);var Tr=te.useRef();Tr.current=Vr;var Sr=te.useRef();Sr.current=Gn,te.useEffect(function(){if(_t){var Kt,xt=function(Et){var zt=jr.current,Zt=zt.dragging,nr=zt.pageY,$t=zt.startTop;Ae.Z.cancel(Kt);var pr=Wr.current.getBoundingClientRect(),Ar=bt/(Je?pr.width:pr.height);if(Zt){var Lr=(lt(Et,Je)-nr)*Ar,Er=$t;!zr&&Je?Er-=Lr:Er+=Lr;var tr=Tr.current,br=Sr.current,Wt=br?Er/br:0,Qt=Math.ceil(Wt*tr);Qt=Math.max(Qt,0),Qt=Math.min(Qt,tr),Kt=(0,Ae.Z)(function(){Ye(Qt,Je)})}},Bt=function(){Mt(!1),Ke()};return window.addEventListener("mousemove",xt,{passive:!0}),window.addEventListener("touchmove",xt,{passive:!0}),window.addEventListener("mouseup",Bt,{passive:!0}),window.addEventListener("touchend",Bt,{passive:!0}),function(){window.removeEventListener("mousemove",xt),window.removeEventListener("touchmove",xt),window.removeEventListener("mouseup",Bt),window.removeEventListener("touchend",Bt),Ae.Z.cancel(Kt)}}},[_t]),te.useEffect(function(){return Tn(),function(){clearTimeout(an.current)}},[He]),te.useImperativeHandle(le,function(){return{delayHidden:Tn}});var Dr="".concat(fe,"-scrollbar"),Or={position:"absolute",visibility:Mn?null:"hidden"},Yr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Je?(Object.assign(Or,{height:8,left:0,right:0,bottom:0}),Object.assign(Yr,(0,De.Z)({height:"100%",width:dt},zr?"left":"right",Wn))):(Object.assign(Or,(0,De.Z)({width:8,top:0,bottom:0},zr?"right":"left",0)),Object.assign(Yr,{width:"100%",height:dt,top:Wn})),te.createElement("div",{ref:Wr,className:ie()(Dr,(0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(Dr,"-horizontal"),Je),"".concat(Dr,"-vertical"),!Je),"".concat(Dr,"-visible"),Mn)),style:(0,x.Z)((0,x.Z)({},Or),vt),onMouseDown:Jt,onMouseMove:Tn},te.createElement("div",{ref:Br,className:ie()("".concat(Dr,"-thumb"),(0,De.Z)({},"".concat(Dr,"-thumb-moving"),_t)),style:(0,x.Z)((0,x.Z)({},Yr),It),onMouseDown:Rr}))}),ot=ct,et=20;function qe(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,fe=We/le*We;return isNaN(fe)&&(fe=0),fe=Math.max(fe,et),Math.floor(fe)}var it=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],yt=[],pt={overflowY:"auto",overflowAnchor:"none"};function Dt(We,le){var fe=We.prefixCls,ze=fe===void 0?"rc-virtual-list":fe,He=We.className,pe=We.height,Ie=We.itemHeight,Ke=We.fullHeight,Ye=Ke===void 0?!0:Ke,Je=We.style,dt=We.data,bt=We.children,vt=We.itemKey,It=We.virtual,Vt=We.direction,kt=We.scrollWidth,jt=We.component,_t=jt===void 0?"div":jt,Mt=We.onScroll,ft=We.onVirtualScroll,St=We.onVisibleChange,Nt=We.innerProps,Ft=We.extraRender,Ut=We.styles,sr=We.showScrollBar,gr=sr===void 0?"optional":sr,wr=(0,re.Z)(We,it),zr=te.useCallback(function(pn){return typeof vt=="function"?vt(pn):pn==null?void 0:pn[vt]},[vt]),Wr=Ue(zr,null,null),Br=(0,ve.Z)(Wr,4),Nr=Br[0],on=Br[1],Mn=Br[2],jn=Br[3],an=!!(It!==!1&&pe&&Ie),Tn=te.useMemo(function(){return Object.values(Mn.maps).reduce(function(pn,An){return pn+An},0)},[Mn.id,Mn.maps]),Vr=an&&dt&&(Math.max(Ie*dt.length,Tn)>pe||!!kt),Gn=Vt==="rtl",Wn=ie()(ze,(0,De.Z)({},"".concat(ze,"-rtl"),Gn),He),Jt=dt||yt,jr=(0,te.useRef)(),Rr=(0,te.useRef)(),Tr=(0,te.useRef)(),Sr=(0,te.useState)(0),Dr=(0,ve.Z)(Sr,2),Or=Dr[0],Yr=Dr[1],Kt=(0,te.useState)(0),xt=(0,ve.Z)(Kt,2),Bt=xt[0],Ot=xt[1],Et=(0,te.useState)(!1),zt=(0,ve.Z)(Et,2),Zt=zt[0],nr=zt[1],$t=function(){nr(!0)},pr=function(){nr(!1)},Ar={getKey:zr};function Lr(pn){Yr(function(An){var Yn;typeof pn=="function"?Yn=pn(An):Yn=pn;var ei=nn(Yn);return jr.current.scrollTop=ei,ei})}var Er=(0,te.useRef)({start:0,end:Jt.length}),tr=(0,te.useRef)(),br=ye(Jt,zr),Wt=(0,ve.Z)(br,1),Qt=Wt[0];tr.current=Qt;var Xt=te.useMemo(function(){if(!an)return{scrollHeight:void 0,start:0,end:Jt.length-1,offset:void 0};if(!Vr){var pn;return{scrollHeight:((pn=Rr.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,start:0,end:Jt.length-1,offset:void 0}}for(var An=0,Yn,ei,Si,Ei=Jt.length,bi=0;bi<Ei;bi+=1){var ci=Jt[bi],Oi=zr(ci),Di=Mn.get(Oi),Cn=An+(Di===void 0?Ie:Di);Cn>=Or&&Yn===void 0&&(Yn=bi,ei=An),Cn>Or+pe&&Si===void 0&&(Si=bi),An=Cn}return Yn===void 0&&(Yn=0,ei=0,Si=Math.ceil(pe/Ie)),Si===void 0&&(Si=Jt.length-1),Si=Math.min(Si+1,Jt.length-1),{scrollHeight:An,start:Yn,end:Si,offset:ei}},[Vr,an,Or,Jt,jn,pe]),qt=Xt.scrollHeight,mr=Xt.start,ar=Xt.end,xr=Xt.offset;Er.current.start=mr,Er.current.end=ar,te.useLayoutEffect(function(){var pn=Mn.getRecord();if(pn.size===1){var An=Array.from(pn.keys())[0],Yn=pn.get(An),ei=Jt[mr];if(ei&&Yn===void 0){var Si=zr(ei);if(Si===An){var Ei=Mn.get(An),bi=Ei-Ie;Lr(function(ci){return ci+bi})}}}Mn.resetRecord()},[qt]);var Lt=te.useState({width:0,height:pe}),Yt=(0,ve.Z)(Lt,2),er=Yt[0],dr=Yt[1],lr=function(An){dr({width:An.offsetWidth,height:An.offsetHeight})},fr=(0,te.useRef)(),hr=(0,te.useRef)(),Cr=te.useMemo(function(){return qe(er.width,kt)},[er.width,kt]),_r=te.useMemo(function(){return qe(er.height,qt)},[er.height,qt]),Zr=qt-pe,$r=(0,te.useRef)(Zr);$r.current=Zr;function nn(pn){var An=pn;return Number.isNaN($r.current)||(An=Math.min(An,$r.current)),An=Math.max(An,0),An}var cn=Or<=0,dn=Or>=Zr,Jr=Bt<=0,wn=Bt>=kt,fn=je(cn,dn,Jr,wn),On=function(){return{x:Gn?-Bt:Bt,y:Or}},un=(0,te.useRef)(On()),mn=(0,se.useEvent)(function(pn){if(ft){var An=(0,x.Z)((0,x.Z)({},On()),pn);(un.current.x!==An.x||un.current.y!==An.y)&&(ft(An),un.current=An)}});function yn(pn,An){var Yn=pn;An?((0,ae.flushSync)(function(){Ot(Yn)}),mn()):Lr(Yn)}function en(pn){var An=pn.currentTarget.scrollTop;An!==Or&&Lr(An),Mt==null||Mt(pn),mn()}var Ln=function(An){var Yn=An,ei=kt?kt-er.width:0;return Yn=Math.max(Yn,0),Yn=Math.min(Yn,ei),Yn},Xn=(0,se.useEvent)(function(pn,An){An?((0,ae.flushSync)(function(){Ot(function(Yn){var ei=Yn+(Gn?-pn:pn);return Ln(ei)})}),mn()):Lr(function(Yn){var ei=Yn+pn;return ei})}),hn=Me(an,cn,dn,Jr,wn,!!kt,Xn),Kr=(0,ve.Z)(hn,2),Ur=Kr[0],Dn=Kr[1];tt(an,jr,function(pn,An,Yn,ei){var Si=ei;return fn(pn,An,Yn)?!1:!Si||!Si._virtualHandled?(Si&&(Si._virtualHandled=!0),Ur({preventDefault:function(){},deltaX:pn?An:0,deltaY:pn?0:An}),!0):!1}),Ve(Vr,jr,function(pn){Lr(function(An){return An+pn})}),(0,me.Z)(function(){function pn(Yn){var ei=cn&&Yn.detail<0,Si=dn&&Yn.detail>0;an&&!ei&&!Si&&Yn.preventDefault()}var An=jr.current;return An.addEventListener("wheel",Ur,{passive:!1}),An.addEventListener("DOMMouseScroll",Dn,{passive:!0}),An.addEventListener("MozMousePixelScroll",pn,{passive:!1}),function(){An.removeEventListener("wheel",Ur),An.removeEventListener("DOMMouseScroll",Dn),An.removeEventListener("MozMousePixelScroll",pn)}},[an,cn,dn]),(0,me.Z)(function(){if(kt){var pn=Ln(Bt);Ot(pn),mn({x:pn})}},[er.width,kt]);var bn=function(){var An,Yn;(An=fr.current)===null||An===void 0||An.delayHidden(),(Yn=hr.current)===null||Yn===void 0||Yn.delayHidden()},Pn=nt(jr,Jt,Mn,Ie,zr,function(){return on(!0)},Lr,bn);te.useImperativeHandle(le,function(){return{nativeElement:Tr.current,getScrollInfo:On,scrollTo:function(An){function Yn(ei){return ei&&(0,gt.Z)(ei)==="object"&&("left"in ei||"top"in ei)}Yn(An)?(An.left!==void 0&&Ot(Ln(An.left)),Pn(An.top)):Pn(An)}}}),(0,me.Z)(function(){if(St){var pn=Jt.slice(mr,ar+1);St(pn,Jt)}},[mr,ar,Jt]);var Un=Oe(Jt,zr,Mn,Ie),Zn=Ft==null?void 0:Ft({start:mr,end:ar,virtual:Vr,offsetX:Bt,offsetY:xr,rtl:Gn,getSize:Un}),kn=we(Jt,mr,ar,kt,Bt,Nr,bt,Ar),zn=null;pe&&(zn=(0,x.Z)((0,De.Z)({},Ye?"height":"maxHeight",pe),pt),an&&(zn.overflowY="hidden",kt&&(zn.overflowX="hidden"),Zt&&(zn.pointerEvents="none")));var di={};return Gn&&(di.dir="rtl"),te.createElement("div",(0,Re.Z)({ref:Tr,style:(0,x.Z)((0,x.Z)({},Je),{},{position:"relative"}),className:Wn},di,wr),te.createElement(oe.Z,{onResize:lr},te.createElement(_t,{className:"".concat(ze,"-holder"),style:zn,ref:jr,onScroll:en,onMouseEnter:bn},te.createElement(de,{prefixCls:ze,height:qt,offsetX:Bt,offsetY:xr,scrollWidth:kt,onInnerResize:on,ref:Rr,innerProps:Nt,rtl:Gn,extra:Zn},kn))),Vr&&qt>pe&&te.createElement(ot,{ref:fr,prefixCls:ze,scrollOffset:Or,scrollRange:qt,rtl:Gn,onScroll:yn,onStartMove:$t,onStopMove:pr,spinSize:_r,containerSize:er.height,style:Ut==null?void 0:Ut.verticalScrollBar,thumbStyle:Ut==null?void 0:Ut.verticalScrollBarThumb,showScrollBar:gr}),Vr&&kt>er.width&&te.createElement(ot,{ref:hr,prefixCls:ze,scrollOffset:Bt,scrollRange:kt,rtl:Gn,onScroll:yn,onStartMove:$t,onStopMove:pr,spinSize:Cr,containerSize:er.width,horizontal:!0,style:Ut==null?void 0:Ut.horizontalScrollBar,thumbStyle:Ut==null?void 0:Ut.horizontalScrollBarThumb,showScrollBar:gr}))}var At=te.forwardRef(Dt);At.displayName="List";var st=At,Ge=st},7062:function(or,Ht,ke){var Re=ke(19637),gt=ke(97573),x=[ke(96627)];or.exports=Re.createStore(gt,x)},96627:function(or,Ht,ke){or.exports=Re;function Re(){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(or){return or<10?"0"+or:or}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(or){return rx_escapable.lastIndex=0,rx_escapable.test(or)?'"'+or.replace(rx_escapable,function(Ht){var ke=meta[Ht];return typeof ke=="string"?ke:"\\u"+("0000"+Ht.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+or+'"'}function str(or,Ht){var ke,Re,gt,x,De=gap,ve,re=Ht[or];switch(re&&typeof re=="object"&&typeof re.toJSON=="function"&&(re=re.toJSON(or)),typeof rep=="function"&&(re=rep.call(Ht,or,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,ve=[],Object.prototype.toString.apply(re)==="[object Array]"){for(x=re.length,ke=0;ke<x;ke+=1)ve[ke]=str(ke,re)||"null";return gt=ve.length===0?"[]":gap?`[
|
|
|
`+gap+ve.join(`,
|
|
|
`+gap)+`
|
|
|
`+De+"]":"["+ve.join(",")+"]",gap=De,gt}if(rep&&typeof rep=="object")for(x=rep.length,ke=0;ke<x;ke+=1)typeof rep[ke]=="string"&&(Re=rep[ke],gt=str(Re,re),gt&&ve.push(quote(Re)+(gap?": ":":")+gt));else for(Re in re)Object.prototype.hasOwnProperty.call(re,Re)&&(gt=str(Re,re),gt&&ve.push(quote(Re)+(gap?": ":":")+gt));return gt=ve.length===0?"{}":gap?`{
|
|
|
`+gap+ve.join(`,
|
|
|
`+gap)+`
|
|
|
`+De+"}":"{"+ve.join(",")+"}",gap=De,gt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(or,Ht,ke){var Re;if(gap="",indent="",typeof ke=="number")for(Re=0;Re<ke;Re+=1)indent+=" ";else typeof ke=="string"&&(indent=ke);if(rep=Ht,Ht&&typeof Ht!="function"&&(typeof Ht!="object"||typeof Ht.length!="number"))throw new Error("JSON.stringify");return str("",{"":or})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(or,Ht){var ke,Re,gt=or[Ht];if(gt&&typeof gt=="object")for(ke in gt)Object.prototype.hasOwnProperty.call(gt,ke)&&(Re=walk(gt,ke),Re!==void 0?gt[ke]=Re:delete gt[ke]);return reviver.call(or,Ht,gt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(or){return"\\u"+("0000"+or.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(or,Ht,ke){var Re=ke(67039),gt=Re.slice,x=Re.pluck,De=Re.each,ve=Re.bind,re=Re.create,ne=Re.isList,ie=Re.isFunction,oe=Re.isObject;or.exports={createStore:te};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 te.apply(this,arguments)},addPlugin:function(ae){this._addPlugin(ae)},namespace:function(ae){return te(this.storage,this.plugins,ae)}};function me(){var ae=typeof console=="undefined"?null:console;if(ae){var ue=ae.warn?ae.warn:ae.log;ue.apply(ae,arguments)}}function te(ae,ue,de){de||(de=""),ae&&!ne(ae)&&(ae=[ae]),ue&&!ne(ue)&&(ue=[ue]);var he=de?"__storejs_"+de+"_":"",we=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 xe={_namespacePrefix:he,_namespaceRegexp:we,_testStorage:function(Ae){try{var Le="__storejs__test__";Ae.write(Le,Le);var Ce=Ae.read(Le)===Le;return Ae.remove(Le),Ce}catch(je){return!1}},_assignPluginFnProp:function(Ae,Le){var Ce=this[Le];this[Le]=function(){var Me=gt(arguments,0),Oe=this;function Ee(){if(Ce)return De(arguments,function(_e,Ze){Me[Ze]=_e}),Ce.apply(Oe,Me)}var Ne=[Ee].concat(Me);return Ae.apply(Oe,Ne)}},_serialize:function(Ae){return JSON.stringify(Ae)},_deserialize:function(Ae,Le){if(!Ae)return Le;var Ce="";try{Ce=JSON.parse(Ae)}catch(je){Ce=Ae}return Ce!==void 0?Ce:Le},_addStorage:function(Ae){this.enabled||this._testStorage(Ae)&&(this.storage=Ae,this.enabled=!0)},_addPlugin:function(Ae){var Le=this;if(ne(Ae)){De(Ae,function(Me){Le._addPlugin(Me)});return}var Ce=x(this.plugins,function(Me){return Ae===Me});if(!Ce){if(this.plugins.push(Ae),!ie(Ae))throw new Error("Plugins must be function values that return objects");var je=Ae.call(this);if(!oe(je))throw new Error("Plugins must return an object of function properties");De(je,function(Me,Oe){if(!ie(Me))throw new Error("Bad plugin property: "+Oe+" from plugin "+Ae.name+". Plugins should only return functions.");Le._assignPluginFnProp(Me,Oe)})}},addStorage:function(Ae){me("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(Ae)}},ye=re(xe,se,{plugins:[]});return ye.raw={},De(ye,function(Ae,Le){ie(Ae)&&(ye.raw[Le]=ve(ye,Ae))}),De(ae,function(Ae){ye._addStorage(Ae)}),De(ue,function(Ae){ye._addPlugin(Ae)}),ye}},67039:function(or,Ht,ke){var Re=ve(),gt=re(),x=ne(),De=typeof window!="undefined"?window:ke.g;or.exports={assign:Re,create:gt,trim:x,bind:ie,slice:oe,each:se,map:me,pluck:te,isList:ae,isFunction:ue,isObject:de,Global:De};function ve(){return Object.assign?Object.assign:function(we,Se,xe,ye){for(var Ae=1;Ae<arguments.length;Ae++)se(Object(arguments[Ae]),function(Le,Ce){we[Ce]=Le});return we}}function re(){if(Object.create)return function(Se,xe,ye,Ae){var Le=oe(arguments,1);return Re.apply(this,[Object.create(Se)].concat(Le))};{let we=function(){};var he=we;return function(xe,ye,Ae,Le){var Ce=oe(arguments,1);return we.prototype=xe,Re.apply(this,[new we].concat(Ce))}}}function ne(){return String.prototype.trim?function(we){return String.prototype.trim.call(we)}:function(we){return we.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ie(he,we){return function(){return we.apply(he,Array.prototype.slice.call(arguments,0))}}function oe(he,we){return Array.prototype.slice.call(he,we||0)}function se(he,we){te(he,function(Se,xe){return we(Se,xe),!1})}function me(he,we){var Se=ae(he)?[]:{};return te(he,function(xe,ye){return Se[ye]=we(xe,ye),!1}),Se}function te(he,we){if(ae(he)){for(var Se=0;Se<he.length;Se++)if(we(he[Se],Se))return he[Se]}else for(var xe in he)if(he.hasOwnProperty(xe)&&we(he[xe],xe))return he[xe]}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(or,Ht,ke){or.exports=[ke(52496),ke(16436),ke(76673),ke(35701),ke(65578),ke(65300)]},35701:function(or,Ht,ke){var Re=ke(67039),gt=Re.Global,x=Re.trim;or.exports={name:"cookieStorage",read:ve,write:ne,each:re,remove:ie,clearAll:oe};var De=gt.document;function ve(me){if(!me||!se(me))return null;var te="(?:^|.*;\\s*)"+escape(me).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(De.cookie.replace(new RegExp(te),"$1"))}function re(me){for(var te=De.cookie.split(/; ?/g),ae=te.length-1;ae>=0;ae--)if(x(te[ae])){var ue=te[ae].split("="),de=unescape(ue[0]),he=unescape(ue[1]);me(he,de)}}function ne(me,te){me&&(De.cookie=escape(me)+"="+escape(te)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ie(me){!me||!se(me)||(De.cookie=escape(me)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function oe(){re(function(me,te){ie(te)})}function se(me){return new RegExp("(?:^|;\\s*)"+escape(me).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(De.cookie)}},52496:function(or,Ht,ke){var Re=ke(67039),gt=Re.Global;or.exports={name:"localStorage",read:De,write:ve,each:re,remove:ne,clearAll:ie};function x(){return gt.localStorage}function De(oe){return x().getItem(oe)}function ve(oe,se){return x().setItem(oe,se)}function re(oe){for(var se=x().length-1;se>=0;se--){var me=x().key(se);oe(De(me),me)}}function ne(oe){return x().removeItem(oe)}function ie(){return x().clear()}},65300:function(or){or.exports={name:"memoryStorage",read:ke,write:Re,each:gt,remove:x,clearAll:De};var Ht={};function ke(ve){return Ht[ve]}function Re(ve,re){Ht[ve]=re}function gt(ve){for(var re in Ht)Ht.hasOwnProperty(re)&&ve(Ht[re],re)}function x(ve){delete Ht[ve]}function De(ve){Ht={}}},16436:function(or,Ht,ke){var Re=ke(67039),gt=Re.Global;or.exports={name:"oldFF-globalStorage",read:De,write:ve,each:re,remove:ne,clearAll:ie};var x=gt.globalStorage;function De(oe){return x[oe]}function ve(oe,se){x[oe]=se}function re(oe){for(var se=x.length-1;se>=0;se--){var me=x.key(se);oe(x[me],me)}}function ne(oe){return x.removeItem(oe)}function ie(){re(function(oe,se){delete x[oe]})}},76673:function(or,Ht,ke){var Re=ke(67039),gt=Re.Global;or.exports={name:"oldIE-userDataStorage",write:ne,read:ie,each:oe,remove:se,clearAll:me};var x="storejs",De=gt.document,ve=ue(),re=(gt.navigator?gt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ne(de,he){if(!re){var we=ae(de);ve(function(Se){Se.setAttribute(we,he),Se.save(x)})}}function ie(de){if(!re){var he=ae(de),we=null;return ve(function(Se){we=Se.getAttribute(he)}),we}}function oe(de){ve(function(he){for(var we=he.XMLDocument.documentElement.attributes,Se=we.length-1;Se>=0;Se--){var xe=we[Se];de(he.getAttribute(xe.name),xe.name)}})}function se(de){var he=ae(de);ve(function(we){we.removeAttribute(he),we.save(x)})}function me(){ve(function(de){var he=de.XMLDocument.documentElement.attributes;de.load(x);for(var we=he.length-1;we>=0;we--)de.removeAttribute(he[we].name);de.save(x)})}var te=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ae(de){return de.replace(/^\d/,"___$&").replace(te,"___")}function ue(){if(!De||!De.documentElement||!De.documentElement.addBehavior)return null;var de="script",he,we,Se;try{we=new ActiveXObject("htmlfile"),we.open(),we.write("<"+de+">document.w=window</"+de+'><iframe src="/favicon.ico"></iframe>'),we.close(),he=we.w.frames[0].document,Se=he.createElement("div")}catch(xe){Se=De.createElement("div"),he=De.body}return function(xe){var ye=[].slice.call(arguments,0);ye.unshift(Se),he.appendChild(Se),Se.addBehavior("#default#userData"),Se.load(x),xe.apply(this,ye),he.removeChild(Se)}}},65578:function(or,Ht,ke){var Re=ke(67039),gt=Re.Global;or.exports={name:"sessionStorage",read:De,write:ve,each:re,remove:ne,clearAll:ie};function x(){return gt.sessionStorage}function De(oe){return x().getItem(oe)}function ve(oe,se){return x().setItem(oe,se)}function re(oe){for(var se=x().length-1;se>=0;se--){var me=x().key(se);oe(De(me),me)}}function ne(oe){return x().removeItem(oe)}function ie(){return x().clear()}},25365:function(or){"use strict";or.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAA0VJREFUOE+V03lI01EcAPD3fjucs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LyIXp2R9Y5T8rqO+UrP8Gpjgw8TngMx8AAAAASUVORK5CYII="},19664:function(or){"use strict";or.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAgCAYAAAD+Fz2gAAAAAXNSR0IArs4c6QAAElZJREFUaEPFWwd0VWW2/s5NL4AEBamDSpEhSBGEyFAEpESKgDAIKCgKTx2KyjAMIlVAUIo8Hk2QFXHAR3E9BESQEAJBKUoRlECoShqQAoQkpJwz699/Of8594Sg8+a9u8K69552z9nf/+397YIBAPkpn9UySzDPgNHRMozqBgwYhsF28XeDfacvYrv7nR9nAbAMAz46E7B84hoWnUr7ynv5THYVcT67Iv8DLEu9sy2WRb/Gt9NHfh7bTv/kuWy7ZcKyTNpvsnd2qGmB3bFlymuJY+T54p1d16Cf4efx67PP8ndN/tza8fx+2PX4Pcp97Olpm3av4uns5wPSfTD3GkbAhFqx068YDJySotITBowoGD4bEAkSwwdOkGgLAcf++DnsVjgeBkwvkKTVywHJEAYhY4sHkrByw0swbJDYdm5Euc39mRlUGsxpTEMAxK9bSsaXRtSNzu6LA8T368fIxXN3kPi5dwWJwOSG8sHKNgxfU+PGqbh1sPA8J4oPEiRux/KZRMdLpmnv/zcgSWMKODWQ+OoVK1YyTqx+xz7GJI01gAnLZKyQ7LTBkMdx9jhBUiz3Au93MIlsCnO9cePkmjQA1bmhJTM4Kxwgse8ELR3F2cP9Hnd9LjAd7k5zb8rJ/a8xyWYGLb+7Msl2dzrbyN0p9nEXViaTyAXzle7FJgf4brC0hSJWj+YGpc+w3bkPSDdyT3xiUdwQxubAMKN7gSTcnQdIEiw9dt0dJA7y3V66u6MIwlwZfzKJBbkuf6aIh3TFJXWcBoA0KANJWF1cX4CkALk7kxwuzy8m2WxU8VPcm0nu2QadMZgMw+6RLfqc46stKQQ4GbyYpAkG6cb+H0Cy448QESom8YfixuaMcsYkueI1Q7hZwhWEAom7uH8BJHFvfrFKc3cOseApHEwYuUdXWRTdlVpzKTTFJBskyRLb3dnu8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buMW3PXBoa0UGSkzo6SKpko7GNCwOeyygmCQYxlcUAqtO0rXaMZJ2cCOLvGecYQLPRe9JSajew37+dk4nk/dvR6tlX+PCEECReIDEXcun7RDTqpLUmPGC695k7XThYyMvKxJkDO9A8dggVk88c+IrusX5MN9Fi58f/sGUVajRqiWqPNEFp0R2c2r2RWjABgcHkzlnc9XJrdutcK0mJ6rmRumcuMYiSOg2o3wISuTqqu3F3x2xZVHAbQaFh8AUG8evKyoEEVW+d0xCLyV2F3/QqH2Rh98dYTqvfi0kyApU3vSoq4Jwjv41JqvKstws8Zu54POE1QWcrgQ1GyslU/tt238l5rNxnpMa/ryoJEiRHTJIKT2/gCbVmuzut2sCEg+bu7IqEHIz0mG+Q06uquOo9hOIGSeTXSqjc68ydbFOwx3A3/Mpzd54gadNF7lk5vZfEwWA1d4+Whmydu0A1ruyek2YYRnW5crk74auVA0AZrMfUj804ea6cTFWy3asrqxJWjyEUITY4CbhidA9GejFJ3Z/SceXP3DlB4q0GNVPuN2Kszd7p1QARt5QCo6qAO5a4maSPIcvKNWeSnG0QdSe2Ld1IjZ+zzqLRXzvIywF4u+zjDZIdl/h+fnyAGHoUw/J3aZ2rGKYqDa6Kg2NalZuvLHen5imouyrysXIGI38bk8SwiavhxzHSG4KlZcQZuyvLyzwSSBt8BZJgESysN64kzK2FUusEYEUpqS3Aom6MY9LUw+hq2kefBmJdWf7dqytLIlvMN/iNc+kjxkQh1wiyAIlYK12UGNaXNULiH7OnZL63ruOAa8P6/u6OT3fy3Ml/xNgUPRy9VEMusEwX5gTJ/l8STpCoxGNZ2aEIbUprjIFkmOY8y0JH6e6km7JBcrLIdmu6AW1FJ9vn5YKkpLdkiARatCW0cpIs6PLqrE+MK4s4UgZI6vd/N0g8geIguPMk71nw8kCy/yuLZJJ2XSAdlrk3tDR4QnibV6/8E9rRHPF4PE2FAAAAAElFTkSuQmCC"},47027:function(or){"use strict";or.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAg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L1KFDSYxE1xUvqGu3OYJFe8LnIaBpdAutoOhgT3ZpI5hqwq107/R1UrJKh5DJB2N9KgagDeqc15g+S4PPG9OD5Ijg/LYXkvkHTrXA7sazdnxiTBINdvGDEp0N2p3IqhFa5AJ7d1QuUCSQZ3T5CcEePASSGBkRGrqL9rMMYRAyaTHJDMwii7W2OoBDY+tbLi33T6QYY7owdkh+WaNPUwukDGyG0ESMr9eXVl2fAB8w2uRcJWNufzPMAyGn7qXrllIZnDnVbF/HrIVPf0qgzYPKAhmxjGvAP3/GQPR5dndAOvLhfmBslJZJ0GnaHuCsMQ1tfK3DxfthsMIxhAOSC5WeSOMepcJQSEexJskiu5LiZp92UIBzW8r/+7i1J9zv+qIIckxpVlHJELKhCka2FS/SDJFkYASO6ipmSQ2eupM87IZpxqypkTriKZzoPtTwyrCZkWcefkbCtpxaQVAKbUtcjumrr6at78Ks7++tcNsYB1ZO3ckJKirETAHuh1oesANcS8DT+X2bF/xZS2VahJBey2gZe8DlDDjdyQK2j3lbxq0kB/DRJtG66pvusANcS8DT/XFV/2fvTMFL/fTzFJb9cBariRG3KFWgIgUDRcB6gh5m34ubUAChQN1wFquJEbcgVPCW2KhusANcS8DT+3zhxHiYaBU1bT/5K6vv1EFqg3CSXRcOfklR/+RPd2/Wf/2wL/BGiui/tFFRS/AAAAAElFTkSuQmCC"},79005:function(or){"use strict";or.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAgCAYAAAD+Fz2gAAAAAXNSR0IArs4c6QAAEx5JREFUaEPFWwd4FWW6fueE9NATIEAoKkWKgIKVEkBgl2LB6159EFdRwHVd9a67SC+ryFVBEDGAUq57d0WUK6DuigYSeglFMJQIhBJSIIYUQgohObPP9/1l/pmcE7h9nvCcc+bMzJn53v/9vvcrWABQfuovrf3VeMeClWhbVrwFC5Zl0Vfi1aLP/EHu976K42wAtmXBx2cCtk9ew+ZT+bsbbT4/XUWeT1cUf4Bt61faY9v8a2I/vxXn0X7+p86l/bYft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CCnPaBoFASqVaXE0NBlOiqkpATtwWBUkV7KlmtlzGoOdJZgunaIoFndzaNs4f3olD3/wb76LF1qnfSLTt2dfFvP9869xhk4pdVk7K28wg7U6MCR/2PwaTTJBM8cAxiYZIiH2GuxTHKDflgKQafrVjnLxBP/VsIowYKFhNLOcFasSkQHlSneyVFXAVk7wgOXFKJowGSAH7OgFm7hSoQrGZMUkUWN1TquIY77Eqjlk5W/5VVxIUSK6YpBSe2RsSS9sI9ka1gUo2HlAdIBRIXgFijHMZosE7c+cF6WbmGwIHHtGmoM09ziVVmxYTNwmSMV3knZXj2OcadKQOb3B15y0BWdmb5+ValhWvDM6zWEwcZz5O+ikNSjAmqclULdu9DT89GBl4CIWvy0xUSlFGGGMwMhCT9P2peMS0vUEUNJjETXFS+oa7c5gkV7wuchoGl0C62g6GBA/MJHMMWVWunf6PqlZIUPOsnC3zPrV59NeR2WoA3qkocJmh1miWmxmq0h0ihx7lsHwgkHTrXAAlCGlMq3qnWlUcM2KS192p3IqhFa5AJ7dBoXKBJIN7QJCcEWPvpJDAyIhV1N81GOOIAZNJDkhmYZTdrTFUAhtrrOzUt1ujxj4C2E201JZgcZ/VNWkawOh62secBqLWufgcqCvLDs0z3+CAZIwYe9xdLVepXJScFOKWhWQOd1rVoqqDTMGnV2U85AEN2cQw5h245yd7OLo8oxt4wVyYGyQnkXUadIa6K4xARA9+HALJ8vvfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(or){"use strict";or.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7svWuXJMdxJWgRmVmP7gYIgEOOtLMjUY/R7v//OfthZ85KsyNRIgg0+lFVmRkx59o1czf38HhkVjX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A9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},47621:function(or){"use strict";or.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7tvXlzJzmSJQaSeWcd3TOzvT270mpN0ppM3/+raDWS6TJp/9jpObq6rqw8SZkDcI+HB3ccwR+zsruZZlUkI3A4HH48OByIq/T475EDjxx45MAjBx458MiBRw5ciANXF2rnsZlHDjxy4JEDjxx45MAjBx45kK7+l/96ezfigyCPq6vyX0p3SX4MK0yZev8Wpl18YQVu73z8djFU5zRUpyvlCYv+yUTS+2N2yksu4s09NuE0me7ch6Xv3B81WmSt/JNX/F6ba9rVNpgYaWTAA26bWaVVc5+VOTKdV3exHiD92J7ydqoBNsBa22MwlhmNrw5+2icNPOs9zIFYCW8uXNHCipX/1057Xl2WryHPPLma6H4jJo4wu6qK5Zy5EBnqmvIGUgX6fvbz0AuHzY3e7JhBT+RGup7fBfyXx9d3Kd3e3KWfn3xKN7UhnMuq+VnGblNKz9N1evXpOin/R/o1Gpe09ae3KX26U5/Vqj/qu44vkmtpS8aIY/3965RePUmJvaZnfphF6kvRJBkL71L6539N6c0vh01UWm9vqw0UWuS/2zI+fZ7L1Xe5z0w4/ON5qv7c6KmCdF3tcfb3oq+itPrzKqXbTym9/puUXv+mt8md3ZwBC62gRJRO7z4TuNg1hzuqxB7nEuru9397W2cKXl8EVLSaWhxBVYTIuYkQyjv9ucqxyLbmLkGJ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4z5IofWHy7aRjZpu2w0l4udxI3Ce81LFcD3IscHwjH+85olXtHpGZ+yTA1vBVHZgzEZwf1UWSToAKj1Yi7ziIX8Gh3E8hl2H9/LZeiHUXHytHkniFL+8k/0ISO2WLRCIZuI015KOCAgYCDCAingSgQvU8otu9YEsL1zYFWOjW0SUjFiISapNUjDDKIWTY38AXuCALtYt/52lHR8VOC9WDnZ/XB6vTiA7UEB8QlNpHG30Ew3PIM8viGVa28CiSM16WskpraQnHMzInbKZmpmdlLr05dKxRw9sF71WH1Kx+UJRo6ofnxBe6O1tEjexMCk61P5me3GcFVsIa2cs1yar5EGzvG3FRopivTKxnuWGKOyDIdNe/+YbOM8CCLYRHqqpDMyd0p8Is4oC0STt4cZs628wWBbYnBECByU2ty32e5U9kTU7JoOMIGzAVIDuVTbZOOyETtJIz2r35ytseAijkAqz3KQnAQAvf0Kb2Rm1r4Miz470qd10IuBCQ8WrjeCpvH5AZs2GqjHnj5iOmDaiABrs28DSJNizJpTcp3VYd/cKAhVIZWBTjTqR9M2fIQGDFIbLznvV9tHncq8n3XY4cs9c+P0O6vTFw+4dYHW+ONu9veFb4GIm+J/LaXmBtdsEFdgFAA8Up9wTiocZaDRgbuB3DNjNmjQGvQ74fwJl5+NYwSun8H2aBo8h54oZTxALkTR9Zd/uT1Gsoi0bHIRf3l902VNxoWm3ctqzAaaBjmYGLDsTw9gg6XeY7graRINU7FDwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},48136:function(or,Ht,ke){"use strict";var Re=Object.defineProperty,gt=Object.defineProperties,x=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ne=(a,y,b)=>y in a?Re(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,ie=(a,y)=>{for(var b in y||(y={}))ve.call(y,b)&&ne(a,b,y[b]);if(De)for(var b of De(y))re.call(y,b)&&ne(a,b,y[b]);return a},oe=(a,y)=>gt(a,x(y)),se=a=>typeof a=="symbol"?a:a+"",me=(a,y)=>{var b={};for(var z in a)ve.call(a,z)&&y.indexOf(z)<0&&(b[z]=a[z]);if(a!=null&&De)for(var z of De(a))y.indexOf(z)<0&&re.call(a,z)&&(b[z]=a[z]);return b};function te(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 we(){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 xe(){return HTMLElement.prototype.hasOwnProperty("popover")}var ye={strings:ae,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ye._locale||(ye._locale=ue()?navigator.language.slice(0,5):"en-US"),ye._locale},set locale(a){ye._locale=a,ye._numberFormatter=void 0,ye.dirty=!0},get numberFormatter(){return ye._numberFormatter||(ye._numberFormatter=new Intl.NumberFormat(ye.locale)),ye._numberFormatter},merge(a,y){if(typeof a=="string"&&y)ye.strings[a]=ie(ie({},ye.strings[a]),y),ye.dirty=!0;else for(const b of Object.keys(a))ye.merge(b,a[b])},get dirty(){return ye._dirty},set dirty(a){ye._dirty||ye._dirty===a||(ye._dirty=!0,setTimeout(()=>{ye._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return ye._subscribers.push(a),ye._subscribers.length-1},unsubscribe(a){a<0||a>=ye._subscribers.length||(ye._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const z=b.getAttribute("data-l10n-tooltip");if(z){const ce=Ae(z);ce&&b.setAttribute("data-tooltip",ce)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const z=b.getAttribute("data-l10n-arial-label");if(z){const ce=Ae(z);ce&&b.setAttribute("aria-label",ce)}}}};function Ae(a,...y){if(a===void 0)return;let b="";const z=ye.locale;ye.strings[z]&&(b=ye.strings[z][a]);const ce=z.slice(0,2);if(!b&&ye.strings[ce]&&(b=ye.strings[ce][a]),b||(b=ye.strings.en[a]),!b)return;const Te=/(%@|%([0-9]+)\$@)/g;let Fe=Te.exec(b),rt=0;for(;Fe;){if(y[rt++]){const mt=Fe[2]?parseInt(Fe[2],10)-1:rt-1;let wt=y[mt];typeof wt=="number"&&(wt=ye.numberFormatter.format(wt)),b=b.replace(Fe[1],wt)}Fe=Te.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"},je={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},Me={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"},Oe={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 Ne(a){var y,b,z,ce,Te,Fe;const rt=a.split("!");let ut,mt,wt,Rt=255,Gt=255,ir=255,cr=-1;const Hr=rt.length>0&&rt[0].startsWith("-");Hr&&(rt[0]=rt[0].slice(1));for(let Rn=0;Rn<rt.length;Rn++){ut=Rt,mt=Gt,wt=ir;const Fr=(y=rt[Rn].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],sn=Fr==null?void 0:Fr.toLowerCase(),Fn=Fr&&(Fe=(Te=(ce=(z=(b=Me[sn])!=null?b:Me[Oe[Fr]])!=null?z:Ce[Fr])!=null?ce:Ee[Fr])!=null?Te:Le[Fr])!=null?Fe:rt[Rn].trim();let xn=Fn.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(xn!=null&&xn[1]&&xn[2]&&xn[3])Rt=Math.max(0,Math.min(255,Number.parseInt(xn[1],16))),Gt=Math.max(0,Math.min(255,Number.parseInt(xn[2],16))),ir=Math.max(0,Math.min(255,Number.parseInt(xn[3],16)));else if(xn=Fn.match(/^#([\da-f]{3})$/i),xn!=null&&xn[1]){const oi=Number.parseInt(xn[1][0],16),fi=Number.parseInt(xn[1][1],16),ui=Number.parseInt(xn[1][2],16);Rt=Math.max(0,Math.min(255,oi*16+oi)),Gt=Math.max(0,Math.min(255,fi*16+fi)),ir=Math.max(0,Math.min(255,ui*16+ui))}else if(xn=Fn.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),xn!=null&&xn[1]&&xn[2]&&xn[3])Rt=Math.max(0,Math.min(255,Number.parseInt(xn[1]))),Gt=Math.max(0,Math.min(255,Number.parseInt(xn[2]))),ir=Math.max(0,Math.min(255,Number.parseInt(xn[3])));else return;cr>=0&&(Rt=(1-cr)*Rt+cr*ut,Gt=(1-cr)*Gt+cr*mt,ir=(1-cr)*ir+cr*wt,cr=-1),Rn+1<rt.length&&(cr=Math.max(0,Math.min(100,Number.parseInt(rt[++Rn])))/100)}return cr>=0&&(Rt=cr*Rt+(1-cr)*ut,Gt=cr*Gt+(1-cr)*mt,ir=cr*ir+(1-cr)*wt),Hr&&(Rt=255-Rt,Gt=255-Gt,ir=255-ir),"#"+("00"+Math.round(Rt).toString(16)).slice(-2)+("00"+Math.round(Gt).toString(16)).slice(-2)+("00"+Math.round(ir).toString(16)).slice(-2)}function _e(a){var y,b;return a=a.trim(),(b=(y=je[a.toLowerCase()])!=null?y:je[Oe[a]])!=null?b:Ne(a)}function Ze(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 Pe(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 Ue(a){let[y,b,z]=[a.h,a.s,a.l];y=(y+360)%360/60,z=Math.max(0,Math.min(z,1)),b=Math.max(0,Math.min(b,1));const ce=z<=.5?z*(b+1):z+b-z*b,Te=z*2-ce;return{r:Math.round(255*Pe(Te,ce,y+2)),g:Math.round(255*Pe(Te,ce,y)),b:Math.round(255*Pe(Te,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:z}=a;let ce=((1<<24)+(Qe(y)<<16)+(Qe(b)<<8)+Qe(z)).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 at(a){let{r:y,g:b,b:z}=a;y=y/255,b=b/255,z=z/255;const ce=Math.min(y,b,z),Te=Math.max(y,b,z),Fe=Te-ce;let rt,ut;Te===ce?rt=0:y===Te?rt=(b-z)/Fe:b===Te?rt=2+(z-y)/Fe:z===Te&&(rt=4+(y-b)/Fe),rt=Math.min(rt*60,360),rt<0&&(rt+=360);const mt=(ce+Te)/2;return Te===ce?ut=0:mt<=.5?ut=Fe/(Te+ce):ut=Fe/(2-Te-ce),{h:rt,s:ut,l:mt}}function lt(a){let y=Ze(a);if(!y)return a;let{h:b,s:z,l:ce}=at(y);return z+=.1,ce-=.1,tt(Ue({h:b,s:z,l:ce}))}var Ve={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},nt=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function ct(a,y,b){if(!/[A-Za-z\d]/.test(a)||(b==="up"&&(b=void 0),!y&&!b))return a;const z=a.codePointAt(0);if(z===void 0)return a;for(const ce of nt)if((!y||ce.variant===y)&&(!b||ce.style===b)&&z>=ce.offset&&z<ce.offset+ce.len){const Te=ce.start+z-ce.offset;return String.fromCodePoint(Xe[Te]||Te)}return a}function ot(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 nt)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 et(a){var y;let b="";for(const z of a){if("{}<>[]$&#^_%:'\u02DC".includes(z)){b+=z;continue}const ce=(y=z.codePointAt(0))!=null?y:0;let Te=Ve[ce];if(Te)Te.startsWith("\\")?b+=Te+" ":b+=Te;else{const{char:Fe,variant:rt,style:ut}=ot(ce);switch(Te=Fe,rt){case"double-struck":Te=`\\mathbb{${Te}}`;break;case"fraktur":Te=`\\mathfrak{${Te}}`;break;case"script":Te=`\\mathscr{${Te}}`;break;case"sans-serif":Te=`\\mathsf{${Te}}`;break;case"monospace":Te=`\\mathtt{${Te}}`;break;case"calligraphic":Te=`\\mathcal{${Te}}`;break}switch(ut){case"bold":Te=`\\mathbf{${Te}}`;break;case"italic":Te=`\\mathit{${Te}}`;break;case"bolditalic":Te=`\\mathbfit{${Te}}`;break}b+=Te}}return b}function qe(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var it={},yt=ie({},Ve),pt={},Dt={},At={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}"},st={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}},Ge={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}},We={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:Ge},"amsmath.sty":{package:st,primitive:!0},"texvc.sty":{package:At,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!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,ze,He;Se()?(ze=new RegExp("\\p{Letter}","u"),He=new RegExp("[0-9\\p{Letter}]","u")):(ze=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,He=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function pe(a,y,b="mord",z){y!==void 0&&(it[a]={definitionType:"symbol",type:b,variant:z,codepoint:y},yt[y]||(yt[y]=a))}function Ie(a,y,b){if(typeof a=="string"){for(let z=0;z<a.length;z++){const ce=a.charAt(z);pe(ce,ce.codePointAt(0))}return}for(const[z,ce,Te,Fe]of a)pe(z,ce,Te!=null?Te:y,Fe!=null?Fe:b)}function Ke(a,y){for(let b=a;b<=y;b++)pe(String.fromCodePoint(b),b)}function Ye(a){var y;return(y=Dt[a])!=null?y:null}function Je(a,y){var b,z;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ce=[];for(const Fe in pt)Fe.startsWith(y)&&!pt[Fe].infix&&ce.push({match:Fe,frequency:(b=pt[Fe].frequency)!=null?b:0});for(const Fe in it)Fe.startsWith(y)&&ce.push({match:Fe,frequency:(z=it[Fe].frequency)!=null?z:0});const Te=y.substring(1);for(const Fe of Object.keys(a.options.macros))Fe.startsWith(Te)&&ce.push({match:"\\"+Fe,frequency:0});return ce.sort((Fe,rt)=>{var ut,mt;return Fe.frequency===rt.frequency?Fe.match.length===rt.match.length?Fe.match<rt.match?-1:1:Fe.match.length-rt.match.length:((ut=rt.frequency)!=null?ut:0)-((mt=Fe.frequency)!=null?mt:0)}),ce.map(Fe=>Fe.match)}function dt(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:dt(b[0].slice(1))});for(let z=1;z<=b.length;z++)y.push(...bt(b[z]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:dt(b[0].slice(1))});for(let z=1;z<=b.length;z++)y.push(...bt(b[z]))}return y}function vt(a){if(!a)return"";let y="",b=!0;for(const z of a)typeof z.value=="string"?y+=z.value:b=!1;return b?y:""}function It(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const z of a)Dt[z]=b}function Vt(a,y,b){typeof a=="string"&&(a=[a]);const ce={tabular:!0,params:bt(y),createAtom:b};for(const Te of a)Dt[Te]=ce}function kt(a,y,b){var z,ce;b||(b={});const Te={definitionType:"function",params:bt(y),ifMode:b.ifMode,isFunction:(z=b.isFunction)!=null?z:!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")pt["\\"+a]=Te;else for(const Fe of a)pt["\\"+Fe]=Te}var jt;function _t(a){return jt||(jt=ft(We)),a?ft(ie(ie({},jt),a)):jt}function Mt(a,y){var b,z,ce,Te;if(typeof a=="string"){let Fe=0;const rt=a;return/(^|[^\\])#1/.test(rt)&&(Fe=1),/(^|[^\\])#2/.test(rt)&&(Fe=2),/(^|[^\\])#3/.test(rt)&&(Fe=3),/(^|[^\\])#4/.test(rt)&&(Fe=4),/(^|[^\\])#5/.test(rt)&&(Fe=5),/(^|[^\\])#6/.test(rt)&&(Fe=6),/(^|[^\\])#7/.test(rt)&&(Fe=7),/(^|[^\\])#8/.test(rt)&&(Fe=8),/(^|[^\\])#9/.test(rt)&&(Fe=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(z=y==null?void 0:y.captureSelection)!=null?z:!0,args:Fe,def:rt}}return ie({expand:(ce=y==null?void 0:y.expand)!=null?ce:!0,captureSelection:(Te=y==null?void 0:y.captureSelection)!=null?Te:!0,args:0},a)}function ft(a){if(!a)return{};const y={};for(const b of Object.keys(a)){const z=a[b];if(z==null)delete y[b];else if(typeof z=="object"&&"package"in z)for(const ce of Object.keys(z.package))y[ce]=Mt(z.package[ce],{expand:!z.primitive,captureSelection:z.captureSelection});else y[b]=Mt(z)}return y}function St(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=pt[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=it[a]:le[a]&&(b={definitionType:"symbol",type:"mord",codepoint:le[a]})}else if(y==="math"){if(b=it[a],!b&&a.length===1){const z=Ft("math",a.codePointAt(0));return z.startsWith("\\")?oe(ie({},St(z,"math")),{command:z}):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 Nt(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function Ft(a,y){if(y===void 0)return"";if(a==="math"&&yt[y])return yt[y];if(a==="text"){const b=Object.keys(le).find(z=>le[z]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var Ut=[0,.68889,0,0,.72222],sr=[0,.68889,0,0,.66667],gr=[0,.68889,0,0,.77778],wr=[0,.68889,0,0,.61111],zr=[.16667,.68889,0,0,.77778],Wr=[0,.68889,0,0,.55556],Br=[0,0,0,0,.25],Nr=[0,.825,0,0,2.33334],on=[0,.9,0,0,2.33334],Mn=[0,.68889,0,0,.54028],jn=[-.03598,.46402,0,0,.5],an=[-.13313,.36687,0,0,1],Tn=[.01354,.52239,0,0,1],Vr=[.01354,.52239,0,0,1.11111],Gn=[0,.54986,0,0,1],Wn=[0,.69224,0,0,.5],Jt=[0,.43056,0,0,1],jr=[.08198,.58198,0,0,.77778],Rr=[.19444,.69224,0,0,.41667],Tr=[.1808,.675,0,0,1],Sr=[.19444,.69224,0,0,.83334],Dr=[.13667,.63667,0,0,1],Or=[-.064,.437,0,0,1.334],Yr=[.08167,.58167,0,0,.77778],Kt=[0,.69224,0,0,.72222],xt=[0,.69224,0,0,.66667],Bt=[-.13313,.36687,0,0,.77778],Ot=[.06062,.54986,0,0,.77778],Et=[0,.69224,0,0,.77778],zt=[.25583,.75583,0,0,.77778],Zt=[.25142,.75726,0,0,.77778],nr=[.20576,.70576,0,0,.77778],$t=[.30274,.79383,0,0,.77778],pr=[.22958,.72958,0,0,.77778],Ar=[.1808,.675,0,0,.77778],Lr=[.13667,.63667,0,0,.77778],Er=[.13597,.63597,0,0,.77778],tr=[.03517,.54986,0,0,.77778],br=[0,.675,0,0,.77778],Wt=[.19444,.69224,0,0,.61111],Qt=[0,.54986,0,0,.76042],Xt=[0,.54986,0,0,.66667],qt=[.0391,.5391,0,0,.77778],mr=[.03517,.54986,0,0,1.33334],ar=[.38569,.88569,0,0,.77778],xr=[.23222,.74111,0,0,.77778],Lt=[.19444,.69224,0,0,.77778],Yt=[0,.37788,0,0,.5],er=[0,.54986,0,0,.72222],dr=[0,.69224,0,0,.83334],lr=[.11111,.69224,0,0,.66667],fr=[.26167,.75726,0,0,.77778],hr=[.48256,.98256,0,0,.77778],Cr=[.28481,.79383,0,0,.77778],_r=[.08167,.58167,0,0,.22222],Zr=[.08167,.58167,0,0,.38889],$r=[0,.43056,.04028,0,.66667],nn=[.41951,.91951,0,0,.77778],cn=[.24982,.74947,0,0,.38865],dn=[.08319,.58283,0,0,.75623],Jr=[0,.10803,0,0,.27764],wn=[0,.47534,0,0,.50181],fn=[.18906,.47534,0,0,.50181],On=[0,.69141,0,0,.50181],un=[.24982,.74947,0,0,.27764],mn=[0,.69141,0,0,.21471],yn=[.25,.75,0,0,.44722],en=[0,.64444,0,0,.575],Ln=[.08556,.58556,0,0,.89444],Xn=[0,.69444,0,0,.89444],hn=[0,.68611,0,0,.9],Kr=[0,.68611,0,0,.86944],Ur=[.25,.75,0,0,.575],Dn=[.25,.75,0,0,.31944],bn=[0,.69444,0,0,.63889],Pn=[0,.69444,0,0,.31944],Un=[0,.44444,0,0,.63889],Zn=[0,.44444,0,0,.51111],kn=[0,.69444,0,0,.575],zn=[.13333,.63333,0,0,.89444],di=[0,.44444,0,0,.31944],pn=[0,.69444,0,0,.86944],An=[0,.68611,0,0,.69166],Yn=[0,.68611,0,0,.83055],ei=[0,.68611,0,0,.89444],Si=[0,.69444,0,0,.60278],Ei=[.19444,.69444,0,0,.51111],bi=[0,.69444,0,0,.83055],ci=[-.10889,.39111,0,0,1.14999],Oi=[.19444,.69444,0,0,.575],Di=[.19444,.69444,0,0,1.14999],Cn=[.19444,.69444,0,0,.70277],Sn=[.05556,.75,0,0,.575],rn=[0,.68611,0,0,.95833],ln=[.08556,.58556,0,0,.76666],ii=[-.02639,.47361,0,0,.575],xi=[0,.44444,0,0,.89444],Ci=[0,.55556,0,0,.76666],Ai=[-.10889,.39111,0,0,.89444],gi=[.00222,.50222,0,0,.89444],Ii=[.19667,.69667,0,0,.89444],Ki=[.08556,.58556,0,0,1.14999],Fi=[0,.69444,0,0,.70277],Yi=[-.02778,.47222,0,0,.575],li=[.25,.75,0,0,.51111],hi=[-.13889,.36111,0,0,1.14999],Li=[.19444,.69444,0,0,1.02222],yr=[.12963,.69444,0,0,.89444],vr=[.19444,.69444,0,0,.44722],Mr=[0,.64444,.13167,0,.59111],Gr=[.19444,.64444,.13167,0,.59111],Xr=[0,.68611,.17208,0,.8961],vn=[.19444,.44444,.105,0,.53222],Ir=[0,.44444,.085,0,.82666],Qr=[0,.69444,.06709,0,.59111],In=[0,.69444,.12945,0,.35555],Kn=[0,.69444,0,0,.94888],Jn=[0,.69444,.11472,0,.59111],gn=[0,.68611,.10778,0,.88555],ri=[0,.69444,.07939,0,.62055],pi=[0,.69444,.12417,0,.30667],si=[0,.64444,.13556,0,.51111],Nn=[.19444,.64444,.13556,0,.51111],$n=[0,.68333,.16389,0,.74333],wi=[.19444,.43056,.08847,0,.46],vi=[0,.43056,.07514,0,.71555],Mi=[0,.69444,.06646,0,.51111],pa=[0,.69444,0,0,.83129],Ma=[0,.69444,.1225,0,.51111],za=[0,.68333,.09403,0,.76666],Ba=[0,.68333,.11111,0,.76666],Bo=[0,.69444,.06961,0,.51444],Va=[0,.69444,0,0,.27778],ba=[.25,.75,0,0,.38889],Ji=[0,.64444,0,0,.5],Ka=[0,.69444,0,0,.77778],so=[0,.68333,0,0,.75],lo=[0,.68333,0,0,.77778],co=[0,.68333,0,0,.68056],Ha=[0,.68333,0,0,.72222],xa=[.25,.75,0,0,.5],wa=[.25,.75,0,0,.27778],Hi=[0,.69444,0,0,.5],uo=[0,.69444,0,0,.55556],zo=[0,.43056,0,0,.44445],Lo=[0,.43056,0,0,.5],Ni=[.19444,.43056,0,0,.55556],Bi=[0,.43056,0,0,.55556],Qi=[.08333,.58333,0,0,.77778],La=[0,.43056,0,0,.27778],ta=[0,.66786,0,0,.27778],Wa=[0,.69444,0,0,.75],Ga=[0,.66786,0,0,.5],fo=[0,.68333,0,0,.625],Ua=[.19444,.69444,0,0,.44445],go=[0,.69444,0,0,.72222],vo=[.19444,.69444,0,0,.5],Pa=[.19444,.69444,0,0,1],xl=[.011,.511,0,0,1.126],Yo=[.19444,.69444,0,0,.61111],Qs=[.05556,.75,0,0,.5],Hl=[0,.68333,0,0,.83334],Wl=[.0391,.5391,0,0,.66667],Cs=[-.05555,.44445,0,0,.5],Mc=[0,.43056,0,0,.77778],as=[0,.55556,0,0,.66667],wl=[-.03625,.46375,0,0,.77778],Jo=[-.01688,.48312,0,0,.77778],os=[.0391,.5391,0,0,1],Wi=[0,.69444,0,0,.61111],Zi=[-.03472,.46528,0,0,.5],$i=[.25,.75,0,0,.44445],no=[-.14236,.35764,0,0,1],Ra=[.244,.744,0,0,.412],Mo=[.19444,.69444,0,0,.88889],wo=[.12963,.69444,0,0,.77778],Xa=[.19444,.69444,0,0,.38889],Po=[.011,.511,0,0,1.638],Ro=[.19444,.69444,0,0,0],ko=[0,.44444,0,0,.575],ss=[.19444,.44444,0,0,.575],Ul=[0,.68611,0,0,.75555],Sl=[0,.69444,0,0,.66759],Mu=[0,.68611,0,0,.80555],ku=[0,.68611,.08229,0,.98229],Zl=[0,.68611,0,0,.76666],Nd=[0,.44444,0,0,.58472],kc=[.19444,.44444,0,0,.6118],Cl=[.19444,.43056,0,0,.5],Tu=[0,.68333,.02778,.08334,.76278],Tc=[0,.68333,.08125,.05556,.83125],$s=[0,.43056,0,.05556,.48472],Vl=[.19444,.43056,0,.08334,.51702],Ou=[.25,.75,0,0,.42778],Na=[0,.69444,0,0,.55],ls=[0,.69444,0,0,.73334],Es=[0,.69444,0,0,.79445],_d=[0,.69444,0,0,.51945],Gl=[0,.69444,0,0,.70278],Oc=[0,.69444,0,0,.76389],el=[.25,.75,0,0,.34306],tl=[0,.69444,0,0,.56111],jd=[0,.69444,0,0,.25556],Xl=[.19444,.45833,0,0,.56111],Du=[0,.45833,0,0,.56111],As=[0,.69444,0,0,.30556],Iu=[0,.69444,0,0,.58056],Ms=[0,.69444,0,0,.67223],rl=[0,.69444,0,0,.85556],cs=[0,.69444,0,0,.55834],So=[0,.65556,.11156,0,.5],ks=[0,.69444,.08094,0,.70834],Dc=[.17014,0,0,0,.44445],Bu=[0,.69444,.0799,0,.5],Lu=[0,.69444,0,0,.73752],Fd=[0,.69444,.09205,0,.5],Ts=[0,.69444,.09031,0,.77778],us=[0,.69444,.07816,0,.27778],zd=[0,.69444,.00316,0,.5],Kd=[.19444,.69444,0,0,.83334],Hd=[.05556,.75,0,0,.83334],Wd=[0,.75,0,0,.5],Ud=[.125,.08333,0,0,.27778],Zd=[0,.08333,0,0,.27778],ma=[0,.65556,0,0,.5],ka=[0,.69444,0,0,.47222],da=[0,.69444,0,0,.66667],_a=[0,.69444,0,0,.59722],nl=[0,.69444,0,0,.54167],Pu=[0,.69444,0,0,.70834],Yl=[.25,.75,0,0,.28889],Ru=[0,.69444,0,0,.51667],Vd=[0,.44444,0,0,.44445],Gd=[.19444,.44444,0,0,.51667],Ic=[0,.44444,0,0,.38333],Nu=[0,.44444,0,0,.51667],Bc=[0,.69444,0,0,.83334],Xd=[.35001,.85,0,0,.45834],Lc=[.35001,.85,0,0,.57778],Pc=[.35001,.85,0,0,.41667],_u=[.35001,.85,0,0,.58334],Jl=[0,.72222,0,0,.55556],Rc=[1e-5,.6,0,0,.66667],ju=[1e-5,.6,0,0,.77778],El=[.25001,.75,0,0,.94445],Yd=[.306,.805,.19445,0,.47222],Ql=[.30612,.805,.19445,0,.47222],Ya=[.25001,.75,0,0,.83334],il=[.35001,.85,0,0,.47222],Fu=[.25001,.75,0,0,1.11111],zu=[.65002,1.15,0,0,.59722],Co=[.65002,1.15,0,0,.81111],Xi=[.65002,1.15,0,0,.47222],No=[.65002,1.15,0,0,.66667],Ko=[0,.75,0,0,1],ds=[.55001,1.05,0,0,1.27778],Ku=[.862,1.36,.44445,0,.55556],Nc=[.86225,1.36,.44445,0,.55556],al=[.55001,1.05,0,0,1.11111],_c=[.65002,1.15,0,0,.52778],jc=[.65002,1.15,0,0,.61111],ol=[.55001,1.05,0,0,1.51112],Hu=[.95003,1.45,0,0,.73611],Fc=[.95003,1.45,0,0,1.04445],fs=[.95003,1.45,0,0,.52778],$l=[.95003,1.45,0,0,.75],ql=[0,.75,0,0,1.44445],zc=[.95003,1.45,0,0,.58334],ec=[1.25003,1.75,0,0,.79167],Kc=[1.25003,1.75,0,0,1.27778],Wu=[1.25003,1.75,0,0,.58334],Hc=[1.25003,1.75,0,0,.80556],tc=[0,.825,0,0,1.8889],Wc=[1.25003,1.75,0,0,.63889],Uc=[.64502,1.155,0,0,.875],rc=[1e-5,.6,0,0,.875],Zc=[-99e-5,.601,0,0,.66667],Vc=[.64502,1.155,0,0,.66667],Jd=[1e-5,.9,0,0,.88889],Uu=[.65002,1.15,0,0,.88889],sl=[.90001,0,0,0,.88889],Gc=[-.00499,.605,0,0,1.05556],ll=[0,.12,0,0,.45],ai=[0,.61111,0,0,.525],To=[.08333,.69444,0,0,.525],Zu=[-.08056,.53055,0,0,.525],Qd=[-.05556,.55556,0,0,.525],ho=[0,.43056,0,0,.525],Ta=[.22222,.43056,0,0,.525],nc=[0,0,0,0,.525],$d={"AMS-Regular":{32:Br,65:Ut,66:sr,67:Ut,68:Ut,69:sr,70:wr,71:gr,72:gr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:gr,76:sr,77:[0,.68889,0,0,.94445],78:Ut,79:zr,80:wr,81:zr,82:Ut,83:Wr,84:sr,85:Ut,86:Ut,87:[0,.68889,0,0,1],88:Ut,89:Ut,90:sr,107:Wr,160:Br,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Wr,295:Mn,710:Nr,732:on,770:Nr,771:on,989:Yr,1008:$r,8245:[0,.54986,0,0,.275],8463:Mn,8487:Ut,8498:Wr,8502:sr,8503:[0,.68889,0,0,.44445],8504:sr,8513:[0,.68889,0,0,.63889],8592:jn,8594:jn,8602:an,8603:an,8606:Tn,8608:Tn,8610:Vr,8611:Vr,8619:Gn,8620:Gn,8621:[-.13313,.37788,0,0,1.38889],8622:an,8624:Wn,8625:Wn,8630:Jt,8631:Jt,8634:jr,8635:jr,8638:Rr,8639:Rr,8642:Rr,8643:Rr,8644:Tr,8646:Tr,8647:Tr,8648:Sr,8649:Tr,8650:Sr,8651:Tn,8652:Tn,8653:an,8654:an,8655:an,8666:Dr,8667:Dr,8669:[-.13313,.37788,0,0,1],8672:Or,8674:Or,8705:[0,.825,0,0,.5],8708:Wr,8709:Yr,8717:[0,.43056,0,0,.42917],8722:jn,8724:[.08198,.69224,0,0,.77778],8726:Yr,8733:Et,8736:Kt,8737:Kt,8738:[.03517,.52239,0,0,.72222],8739:_r,8740:[.25142,.74111,0,0,.27778],8741:Zr,8742:[.25142,.74111,0,0,.5],8756:xt,8757:xt,8764:Bt,8765:[-.13313,.37788,0,0,.77778],8769:Bt,8770:wl,8774:$t,8776:Jo,8778:Yr,8782:Ot,8783:Ot,8785:jr,8786:jr,8787:jr,8790:Et,8791:pr,8796:[.08198,.91667,0,0,.77778],8806:zt,8807:zt,8808:Zt,8809:Zt,8812:[.25583,.75583,0,0,.5],8814:nr,8815:nr,8816:$t,8817:$t,8818:pr,8819:pr,8822:Ar,8823:Ar,8828:Lr,8829:Lr,8830:pr,8831:pr,8832:nr,8833:nr,8840:$t,8841:$t,8842:Er,8843:Er,8847:tr,8848:tr,8858:jr,8859:jr,8861:jr,8862:br,8863:br,8864:br,8865:br,8872:[0,.69224,0,0,.61111],8873:Kt,8874:[0,.69224,0,0,.88889],8876:wr,8877:wr,8878:Ut,8879:Ut,8882:tr,8883:tr,8884:Lr,8885:Lr,8888:[0,.54986,0,0,1.11111],8890:Ni,8891:Wt,8892:Wt,8901:[0,.54986,0,0,.27778],8903:Yr,8905:Yr,8906:Yr,8907:Et,8908:Et,8909:[-.03598,.46402,0,0,.77778],8910:Qt,8911:Qt,8912:tr,8913:tr,8914:Xt,8915:Xt,8916:xt,8918:qt,8919:qt,8920:mr,8921:mr,8922:ar,8923:ar,8926:Lr,8927:Lr,8928:$t,8929:$t,8934:xr,8935:xr,8936:xr,8937:xr,8938:nr,8939:nr,8940:$t,8941:$t,8994:Lt,8995:Lt,9416:[.15559,.69224,0,0,.90222],9484:Wn,9488:Wn,9492:Yt,9496:Yt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:br,9633:br,9650:er,9651:er,9654:tr,9660:er,9661:er,9664:tr,9674:lr,9733:[.19444,.69224,0,0,.94445],10003:dr,10016:dr,10731:lr,10846:[.19444,.75583,0,0,.61111],10877:Lr,10878:Lr,10885:zt,10886:zt,10887:Er,10888:Er,10889:fr,10890:fr,10891:hr,10892:hr,10901:Lr,10902:Lr,10933:Zt,10934:Zt,10935:fr,10936:fr,10937:fr,10938:fr,10949:zt,10950:zt,10955:Cr,10956:Cr,57350:_r,57351:Zr,57352:Yr,57353:$r,57356:Zt,57357:Zt,57358:nn,57359:$t,57360:$t,57361:nn,57366:Zt,57367:Zt,57368:Zt,57369:Zt,57370:Er,57371:Er},"Caligraphic-Regular":{32:Br,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:Br},"Fraktur-Regular":{32:Br,33:[0,.69141,0,0,.29574],34:mn,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:cn,41:cn,42:[0,.62119,0,0,.27764],43:dn,44:Jr,45:dn,46:Jr,47:[.24982,.74947,0,0,.50181],48:wn,49:wn,50:wn,51:fn,52:fn,53:fn,54:On,55:fn,56:On,57:fn,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:un,93:un,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:Br,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:Br,33:[0,.69444,0,0,.35],34:Si,35:[.19444,.69444,0,0,.95833],36:Sn,37:[.05556,.75,0,0,.95833],38:Xn,39:Pn,40:yn,41:yn,42:[0,.75,0,0,.575],43:zn,44:[.19444,.15556,0,0,.31944],45:Ic,46:[0,.15556,0,0,.31944],47:Ur,48:en,49:en,50:en,51:en,52:en,53:en,54:en,55:en,56:en,57:en,58:di,59:[.19444,.44444,0,0,.31944],60:Ln,61:Ai,62:Ln,63:[0,.69444,0,0,.54305],64:Xn,65:Kr,66:[0,.68611,0,0,.81805],67:Yn,68:[0,.68611,0,0,.88194],69:Ul,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:hn,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:An,77:[0,.68611,0,0,1.09166],78:hn,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:Kr,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Dn,92:Ur,93:Dn,94:kn,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:bn,99:Zn,100:bn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:bn,105:Pn,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Pn,109:[0,.44444,0,0,.95833],110:Un,111:ko,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:Un,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:Zn,123:Ur,124:Dn,125:Ur,126:[.35,.34444,0,0,.575],160:Br,163:[0,.69444,0,0,.86853],168:kn,172:[0,.44444,0,0,.76666],176:pn,177:zn,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:zn,216:[.04861,.73472,0,0,.89444],223:_a,230:[0,.44444,0,0,.83055],247:zn,248:[.09722,.54167,0,0,.575],305:di,338:[0,.68611,0,0,1.16944],339:xi,567:[.19444,.44444,0,0,.35139],710:kn,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:kn,715:kn,728:kn,729:Pn,730:pn,732:kn,733:kn,915:An,916:rn,920:ei,923:Mu,926:Zl,928:hn,931:Yn,933:ei,934:Yn,936:ei,937:Yn,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Pn,8217:Pn,8220:Si,8221:Si,8224:Ei,8225:Ei,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:Sl,8465:bi,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:bi,8501:Fi,8592:ci,8593:Oi,8594:ci,8595:Oi,8596:ci,8597:Ur,8598:Di,8599:Di,8600:Di,8601:Di,8636:ci,8637:ci,8640:ci,8641:ci,8656:ci,8657:Cn,8658:ci,8659:Cn,8660:ci,8661:[.25,.75,0,0,.70277],8704:bn,8706:[0,.69444,.06389,0,.62847],8707:bn,8709:Sn,8711:rn,8712:ln,8715:ln,8722:zn,8723:zn,8725:Ur,8726:Ur,8727:Yi,8728:ii,8729:ii,8730:[.18,.82,0,0,.95833],8733:xi,8734:[0,.44444,0,0,1.14999],8736:Kt,8739:Dn,8741:Ur,8743:Ci,8744:Ci,8745:Ci,8746:Ci,8747:[.19444,.69444,.12778,0,.56875],8764:Ai,8768:[.19444,.69444,0,0,.31944],8771:gi,8776:[.02444,.52444,0,0,.89444],8781:gi,8801:gi,8804:Ii,8805:Ii,8810:Ki,8811:Ki,8826:Ln,8827:Ln,8834:Ln,8835:Ln,8838:Ii,8839:Ii,8846:Ci,8849:Ii,8850:Ii,8851:Ci,8852:Ci,8853:zn,8854:zn,8855:zn,8856:zn,8857:zn,8866:Fi,8867:Fi,8868:Xn,8869:Xn,8900:ii,8901:[-.02639,.47361,0,0,.31944],8902:Yi,8968:li,8969:li,8970:li,8971:li,8994:hi,8995:hi,9651:Li,9657:Yi,9661:Li,9667:Yi,9711:Di,9824:yr,9825:yr,9826:yr,9827:yr,9837:[0,.75,0,0,.44722],9838:vr,9839:vr,10216:yn,10217:yn,10815:hn,10927:Ii,10928:Ii,57376:Ro},"Main-BoldItalic":{32:Br,33:[0,.69444,.11417,0,.38611],34:ri,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:In,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:Mr,49:Mr,50:Mr,51:Mr,52:Gr,53:Mr,54:Mr,55:Gr,56:Mr,57:Mr,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Jn,64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:Xr,73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:Xr,79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:Qr,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:vn,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:vn,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:Br,168:[0,.69444,.11473,0,.59111],176:Kn,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:Ir,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Ir,567:[.19444,.44444,.04611,0,.385],710:Qr,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:In,730:Kn,732:Jn,733:Jn,915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:Xr,931:[0,.68611,.11431,0,.82666],933:gn,934:[0,.68611,.05632,0,.82666],936:gn,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:In,8217:In,8220:[0,.69444,.16772,0,.62055],8221:ri},"Main-Italic":{32:Br,33:pi,34:Bo,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:pi,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:si,49:si,50:si,51:si,52:Nn,53:si,54:si,55:Nn,56:si,57:si,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:Ma,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:$n,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:$n,79:za,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:$n,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:Mi,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:wi,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:wi,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:Br,168:[0,.66786,.10474,0,.51111],176:pa,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:vi,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:vi,710:Mi,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:pa,732:[0,.66786,.11585,0,.51111],733:Ma,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:za,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:$n,931:[0,.68333,.12028,0,.71555],933:Ba,934:[0,.68333,.05986,0,.71555],936:Ba,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:pi,8217:pi,8220:[0,.69444,.1685,0,.51444],8221:Bo,8463:Mn},"Main-Regular":{32:Br,33:Va,34:Hi,35:Kd,36:Qs,37:Hd,38:Ka,39:Va,40:ba,41:ba,42:Wd,43:Qi,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:xa,48:Ji,49:Ji,50:Ji,51:Ji,52:Ji,53:Ji,54:Ji,55:Ji,56:Ji,57:Ji,58:La,59:[.19444,.43056,0,0,.27778],60:qt,61:Bt,62:qt,63:ka,64:Ka,65:so,66:[0,.68333,0,0,.70834],67:Ha,68:[0,.68333,0,0,.76389],69:co,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:so,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:lo,76:fo,77:[0,.68333,0,0,.91667],78:so,79:lo,80:co,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Ha,85:so,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:so,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:wa,92:xa,93:wa,94:Hi,95:[.31,.12056,.02778,0,.5],97:Lo,98:uo,99:zo,100:uo,101:zo,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:uo,105:ta,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Va,109:[0,.43056,0,0,.83334],110:Bi,111:Lo,112:Ni,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:Bi,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:zo,123:xa,124:wa,125:xa,126:[.35,.31786,0,0,.5],160:Br,163:[0,.69444,0,0,.76909],167:Ua,168:Ga,172:[0,.43056,0,0,.66667],176:Wa,177:Qi,182:Yo,184:Dc,198:[0,.68333,0,0,.90278],215:Qi,216:[.04861,.73194,0,0,.77778],223:Hi,230:[0,.43056,0,0,.72222],247:Qi,248:[.09722,.52778,0,0,.5],305:La,338:[0,.68333,0,0,1.01389],339:Mc,567:[.19444,.43056,0,0,.30556],710:Hi,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Hi,715:Hi,728:Hi,729:ta,730:Wa,732:Ga,733:Hi,915:fo,916:Hl,920:lo,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:so,931:Ha,933:lo,934:Ha,936:lo,937:Ha,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Va,8217:Va,8220:Hi,8221:Hi,8224:Ua,8225:Ua,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Mn,8465:go,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:go,8501:Wi,8592:an,8593:vo,8594:an,8595:vo,8596:an,8597:xa,8598:Pa,8599:Pa,8600:Pa,8601:Pa,8614:[.011,.511,0,0,1],8617:xl,8618:xl,8636:an,8637:an,8640:an,8641:an,8652:[.011,.671,0,0,1],8656:an,8657:Yo,8658:an,8659:Yo,8660:an,8661:[.25,.75,0,0,.61111],8704:uo,8706:[0,.69444,.05556,.08334,.5309],8707:uo,8709:Qs,8711:Hl,8712:Wl,8715:Wl,8722:Qi,8723:Qi,8725:xa,8726:xa,8727:Zi,8728:Cs,8729:Cs,8730:[.2,.8,0,0,.83334],8733:Mc,8734:Jt,8736:Kt,8739:wa,8741:xa,8743:as,8744:as,8745:as,8746:as,8747:[.19444,.69444,.11111,0,.41667],8764:Bt,8768:[.19444,.69444,0,0,.27778],8771:wl,8773:[-.022,.589,0,0,1],8776:Jo,8781:wl,8784:[-.133,.67,0,0,.778],8801:wl,8804:Er,8805:Er,8810:os,8811:os,8826:qt,8827:qt,8834:qt,8835:qt,8838:Er,8839:Er,8846:as,8849:Er,8850:Er,8851:as,8852:as,8853:Qi,8854:Qi,8855:Qi,8856:Qi,8857:Qi,8866:Wi,8867:Wi,8868:Ka,8869:Ka,8872:[.249,.75,0,0,.867],8900:Cs,8901:[-.05555,.44445,0,0,.27778],8902:Zi,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:$i,8969:$i,8970:$i,8971:$i,8994:no,8995:no,9136:Ra,9137:Ra,9651:Mo,9657:Zi,9661:Mo,9667:Zi,9711:Pa,9824:wo,9825:wo,9826:wo,9827:wo,9837:[0,.75,0,0,.38889],9838:Xa,9839:Xa,10216:ba,10217:ba,10222:Ra,10223:Ra,10229:[.011,.511,0,0,1.609],10230:Po,10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:Po,10815:so,10927:Er,10928:Er,57376:Ro},"Math-BoldItalic":{32:Br,48:ko,49:ko,50:ko,51:ss,52:ss,53:ss,54:en,55:ss,56:en,57:ss,65:Kr,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:ku,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Ul,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:Sl,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:Nd,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:Br,915:[0,.68611,.15972,0,.65694],916:rn,920:[0,.68611,.03194,0,.86722],923:Mu,926:[0,.68611,.07458,0,.84125],928:ku,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Zl,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:Nd,960:[0,.44444,.03704,0,.68241],961:kc,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:kc,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:Br,48:Lo,49:Lo,50:Lo,51:Cl,52:Cl,53:Cl,54:Ji,55:Cl,56:Ji,57:Cl,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:Tc,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:Tu,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:$s,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:Br,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Tu,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Tc,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:$s,960:[0,.43056,.03588,0,.57003],961:Vl,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:Vl,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:Br,33:[0,.69444,0,0,.36667],34:cs,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:As,40:Ou,41:Ou,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:Na,49:Na,50:Na,51:Na,52:Na,53:Na,54:Na,55:Na,56:Na,57:Na,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:_d,64:ls,65:ls,66:ls,67:Gl,68:Es,69:[0,.69444,0,0,.64167],70:Wi,71:ls,72:Es,73:[0,.69444,0,0,.33056],74:_d,75:Oc,76:Iu,77:[0,.69444,0,0,.97778],78:Es,79:Es,80:Gl,81:[.10556,.69444,0,0,.79445],82:Gl,83:Wi,84:ls,85:Oc,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:ls,89:[0,.69444,.0275,0,.73334],90:Ms,91:el,93:el,94:Na,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:tl,99:[0,.45833,0,0,.48889],100:tl,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:tl,105:jd,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:jd,109:[0,.45833,0,0,.86667],110:Du,111:[0,.45833,0,0,.55],112:Xl,113:Xl,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Du,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:Br,168:Na,176:ls,180:Na,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Na,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Na,729:As,730:ls,732:Na,733:Na,915:Iu,916:[0,.69444,0,0,.91667],920:rl,923:Ms,926:ls,928:Es,931:Es,933:rl,934:Es,936:rl,937:Es,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:As,8217:As,8220:cs,8221:cs},"SansSerif-Italic":{32:Br,33:[0,.69444,.05733,0,.31945],34:zd,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:us,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:Ud,45:[0,.44444,.01946,0,.33333],46:Zd,47:[.25,.75,.13164,0,.5],48:So,49:So,50:So,51:So,52:So,53:So,54:So,55:So,56:So,57:So,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:da,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:ks,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:nl,77:[0,.69444,.08094,0,.875],78:ks,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:Bu,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:Br,168:[0,.67937,.06385,0,.5],176:Lu,184:Dc,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Bu,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Fd,715:Hi,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Lu,732:[0,.67659,.08826,0,.5],733:Fd,915:[0,.69444,.13372,0,.54167],916:Bc,920:[0,.69444,.07555,0,.77778],923:Wi,926:[0,.69444,.12816,0,.66667],928:ks,931:[0,.69444,.11983,0,.72222],933:Ts,934:[0,.69444,.04603,0,.72222],936:Ts,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:us,8217:us,8220:[0,.69444,.14205,0,.5],8221:zd},"SansSerif-Regular":{32:Br,33:[0,.69444,0,0,.31945],34:Hi,35:Kd,36:Qs,37:Hd,38:[0,.69444,0,0,.75834],39:Va,40:ba,41:ba,42:Wd,43:Qi,44:Ud,45:[0,.44444,0,0,.33333],46:Zd,47:xa,48:ma,49:ma,50:ma,51:ma,52:ma,53:ma,54:ma,55:ma,56:ma,57:ma,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:ka,64:da,65:da,66:da,67:bn,68:[0,.69444,0,0,.72223],69:_a,70:[0,.69444,0,0,.56945],71:da,72:Pu,73:Va,74:ka,75:[0,.69444,0,0,.69445],76:nl,77:[0,.69444,0,0,.875],78:Pu,79:[0,.69444,0,0,.73611],80:bn,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:uo,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:da,89:[0,.69444,.025,0,.66667],90:Wi,91:Yl,93:Yl,94:Hi,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:Ru,99:Vd,100:Ru,101:Vd,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:Ru,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:Nu,111:[0,.44444,0,0,.5],112:Gd,113:Gd,114:[0,.44444,.01389,0,.34167],115:Ic,116:[0,.57143,0,0,.36111],117:Nu,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:Br,168:[0,.67937,0,0,.5],176:da,184:Dc,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Hi,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Hi,715:Hi,728:Hi,729:[0,.67937,0,0,.27778],730:da,732:[0,.67659,0,0,.5],733:Hi,915:nl,916:Bc,920:Ka,923:Wi,926:da,928:Pu,931:go,933:Ka,934:go,936:Ka,937:go,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Va,8217:Va,8220:Hi,8221:Hi},"Script-Regular":{32:Br,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:Br},"Size1-Regular":{32:Br,40:Xd,41:Xd,47:Lc,91:Pc,92:Lc,93:Pc,123:_u,125:_u,160:Br,710:Jl,732:Jl,770:Jl,771:Jl,8214:[-99e-5,.601,0,0,.77778],8593:Rc,8595:Rc,8657:ju,8659:ju,8719:El,8720:El,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:Ql,8748:Yd,8749:Yd,8750:Ql,8896:Ya,8897:Ya,8898:Ya,8899:Ya,8968:il,8969:il,8970:il,8971:il,9168:Zc,10216:il,10217:il,10752:Fu,10753:Fu,10754:Fu,10756:Ya,10758:Ya},"Size2-Regular":{32:Br,40:zu,41:zu,47:Co,91:Xi,92:Co,93:Xi,123:No,125:No,160:Br,710:Ko,732:Ko,770:Ko,771:Ko,8719:ds,8720:ds,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:Nc,8748:Ku,8749:Ku,8750:Nc,8896:al,8897:al,8898:al,8899:al,8968:_c,8969:_c,8970:_c,8971:_c,10216:jc,10217:jc,10752:ol,10753:ol,10754:ol,10756:al,10758:al},"Size3-Regular":{32:Br,40:Hu,41:Hu,47:Fc,91:fs,92:Fc,93:fs,123:$l,125:$l,160:Br,710:ql,732:ql,770:ql,771:ql,8730:[.95003,1.45,0,0,1],8968:zc,8969:zc,8970:zc,8971:zc,10216:$l,10217:$l},"Size4-Regular":{32:Br,40:ec,41:ec,47:Kc,91:Wu,92:Kc,93:Wu,123:Hc,125:Hc,160:Br,710:tc,732:tc,770:tc,771:tc,8730:[1.25003,1.75,0,0,1],8968:Wc,8969:Wc,8970:Wc,8971:Wc,9115:Uc,9116:rc,9117:Uc,9118:Uc,9119:rc,9120:Uc,9121:Vc,9122:Zc,9123:Vc,9124:Vc,9125:Zc,9126:Vc,9127:Jd,9128:Uu,9129:sl,9130:[0,.3,0,0,.88889],9131:Jd,9132:Uu,9133:sl,9143:[.88502,.915,0,0,1.05556],10216:Hc,10217:Hc,57344:Gc,57345:Gc,57680:ll,57681:ll,57682:ll,57683:ll},"Typewriter-Regular":{32:nc,33:ai,34:ai,35:ai,36:To,37:To,38:ai,39:ai,40:To,41:To,42:[0,.52083,0,0,.525],43:Zu,44:[.13889,.125,0,0,.525],45:Zu,46:[0,.125,0,0,.525],47:To,48:ai,49:ai,50:ai,51:ai,52:ai,53:ai,54:ai,55:ai,56:ai,57:ai,58:ho,59:[.13889,.43056,0,0,.525],60:Qd,61:[-.19549,.41562,0,0,.525],62:Qd,63:ai,64:ai,65:ai,66:ai,67:ai,68:ai,69:ai,70:ai,71:ai,72:ai,73:ai,74:ai,75:ai,76:ai,77:ai,78:ai,79:ai,80:ai,81:[.13889,.61111,0,0,.525],82:ai,83:ai,84:ai,85:ai,86:ai,87:ai,88:ai,89:ai,90:ai,91:To,92:To,93:To,94:ai,95:[.09514,0,0,0,.525],96:ai,97:ho,98:ai,99:ho,100:ai,101:ho,102:ai,103:Ta,104:ai,105:ai,106:[.22222,.61111,0,0,.525],107:ai,108:ai,109:ho,110:ho,111:ho,112:Ta,113:Ta,114:ho,115:ho,116:[0,.55358,0,0,.525],117:ho,118:ho,119:ho,120:ho,121:Ta,122:ho,123:To,124:To,125:To,126:ai,127:ai,160:nc,176:ai,184:[.19445,0,0,0,.525],305:ho,567:Ta,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:ai,715:ai,728:ai,730:ai,770:ai,771:ai,776:ai,915:ai,916:ai,920:ai,923:ai,926:ai,928:ai,931:ai,933:ai,934:ai,936:ai,937:ai,8216:ai,8217:ai,8242:ai,9251:[.11111,.21944,0,0,.525]}},qd=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,cl=10,po=.25,Xc=1.2,hs=.431,Vu={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[hs,hs,hs],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:[po,po,po],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]},Yc=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Os=5,Gu={"\xA0":" ","\u200B":" ",\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function ps(a,y){a===void 0&&(a=77);const b=$d[y][a];if(b)return{defaultMetrics:!1,depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]};if(a===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const z=String.fromCodePoint(a);if(z in Gu)a=Gu[z].codePointAt(0);else if(qd.test(z))return a=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var Jc={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]},ul={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]},ef={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 Al(a){if(ul[a]){const[mt,wt,Rt]=ul[a],Gt=`<span class="stretchy" style="height:${Rt}em"><svg width="100%" height="${Rt}em" viewBox="0 0 ${mt} ${wt}" preserveAspectRatio="none" ><path fill="currentcolor" d="${ef[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Rt/2)/100}em;min-width:0">${Gt}</span>`}const[y,b,z,ce]=Jc[a];let Te,Fe;const rt=z/1e3;y.length===3?(Te=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],Fe=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(Te=["slice-1-of-2","slice-2-of-2"],Fe=["xMinYMin","xMaxYMin"]):(Te=["slice-1-of-1"],Fe=[ce]);const ut=y.map((mt,wt)=>`<span class="${Te[wt]}" style=height:${rt}em><svg width=400em height=${rt}em viewBox="0 0 400000 ${z}" preserveAspectRatio="${Fe[wt]} slice"><path fill="currentcolor" d="${ef[mt]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${rt}em;min-width:${b}em;">${ut}</span>`}function tf(a){return Jc[a]?Jc[a][2]/1e3:ul[a][2]}function rf(a){const y=[];for(let b=0;b<a.length;b++){let z=a.charCodeAt(b);if(z===13&&a.charCodeAt(b+1)===10&&(z=10,b++),(z===13||z===12)&&(z=10),z===0&&(z=65533),z>=55296&&z<=56319){const ce=a.charCodeAt(b+1);if(ce>=56320&&ce<=57343){const Te=z-55296,Fe=ce-56320;z=Js(2,16)+Te*Js(2,10)+Fe,b++}}y.push(z)}return y}var ic=8205,ac=[[ic,1],[65038,2],[127995,5],[129456,4],[917536,96]],Ds,Ml=[127462,127487];function kl(a){var y;if(Ds===void 0){Ds={};for(const b of ac)for(let z=b[0];z<=b[0]+b[1]-1;z++)Ds[z]=!0}return(y=Ds[a])!=null?y:!1}function nf(a){return a>=Ml[0]&&a<=Ml[1]}function af(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=rf(a);let z=0;for(;z<b.length;){const ce=b[z++],Te=b[z];if(Te===ic){const Fe=z-1;for(z+=2;b[z]===ic;)z+=2;y.push(String.fromCodePoint(...b.slice(Fe,z-Fe+1)))}else if(kl(Te)){const Fe=z-1;for(;kl(b[z]);)z+=b[z]===ic?2:1;y.push(String.fromCodePoint(...b.slice(Fe,2*z-Fe-1)))}else nf(ce)?(z+=1,y.push(String.fromCodePoint(...b.slice(z-2,2)))):y.push(String.fromCodePoint(ce))}return y}var of=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=af(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 Is(a,y){var b,z,ce,Te;const Fe=[];let rt=a.next();if(rt&&rt!=="\\relax"){if(rt==="\\noexpand")rt=a.next(),rt&&Fe.push(rt);else if(rt==="\\obeyspaces")a.obeyspaces=!0;else if(rt==="\\bgroup")Fe.push("<{>");else if(rt==="\\egroup")Fe.push("<}>");else if(rt==="\\string"){if(rt=a.next(),rt)if(rt.startsWith("\\"))for(const ut of rt)Fe.push(ut==="\\"?"\\backslash":ut);else rt==="<{>"?Fe.push("\\{"):rt==="<space>"?Fe.push("~"):rt==="<}>"&&Fe.push("\\}")}else if(rt==="\\csname"){for(;a.peek()==="<space>";)a.next();let ut="",mt=!1,wt=[];do{if(wt.length===0)if(/^#[\d?@]$/.test(a.peek())){const Rt=a.get().slice(1);wt=ms((z=(b=y==null?void 0:y(Rt))!=null?b:y==null?void 0:y("?"))!=null?z:"\\placeholder{}",y),rt=wt[0]}else rt=a.next(),wt=rt?[rt]:[];mt=wt.length===0,!mt&&rt==="\\endcsname"&&(mt=!0,wt.shift()),mt||(mt=rt==="<$>"||rt==="<$$>"||rt==="<{>"||rt==="<}>"||typeof rt=="string"&&rt.length>1&&rt.startsWith("\\")),mt||(ut+=wt.shift())}while(!mt);ut&&Fe.push("\\"+ut),Fe.push(...wt)}else if(rt!=="\\endcsname")if(rt.length>1&&rt.startsWith("#")){const ut=rt.slice(1);Fe.push(...ms((Te=(ce=y==null?void 0:y(ut))!=null?ce:y==null?void 0:y("?"))!=null?Te:"\\placeholder{}",y))}else Fe.push(rt)}return Fe}function ms(a,y=null){const b=[];let z="";for(const Fe of a.toString().split(/\r?\n/)){z&&b.push(z),z=" ";const rt=Fe.match(/((?:\\%)|[^%])*/);rt!==null&&b.push(rt[0])}const ce=new of(et(b.join(""))),Te=[];do Te.push(...Is(ce,y));while(!ce.end());return Te}function Pi(a){let y="";const b=[];for(const z of a)z&&(y&&/^[a-zA-Z\*]/.test(z)&&b.push(y),b.push(z),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(z)&&b.push(" "),y=/\\[a-zA-Z]+\*?$/.test(z)?" ":"");return b.join("")}function sa(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:Pi([a,...y.map(b=>`{${b}}`)])}function Bs(a){return Pi(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var sf=class Rd{constructor(y){Rd._registry[y]=this}static createAtom(y,b,z){return Rd._registry[y].createAtom(b,St(b,y),z)}static serialize(y,b){var z;if(!y||y.length===0)return"";if((z=b.skipStyles)!=null&&z){const ce=[];for(const Te of lf(y)){const Fe=Rd._registry[Te[0].mode];ce.push(...Fe.serialize(Te,b))}return Pi(ce)}return Pi(rh(y,b))}static getFont(y,b,z){return Rd._registry[y].getFont(b,z)}};sf._registry={};var Oo=sf;function lf(a){const y=[];let b=[],z="NONE";for(const ce of a)ce.type!=="first"&&(ce.mode!==z?(b.length>0&&y.push(b),b=[ce],z=ce.mode):b.push(ce));return b.length>0&&y.push(b),y}function Sa(a,y){const b=[];let z=[],ce;for(const Te of a)if(Te.type!=="first"&&Te.style){let Fe;y==="variant"?(Fe=Te.style.variant,Te.style.variantStyle&&Te.style.variantStyle!=="up"&&(Fe+="-"+Te.style.variantStyle)):Fe=Te.style[y],Fe===ce?z.push(Te):(z.length>0&&b.push(z),z=[Te],ce=Fe)}return z.length>0&&b.push(z),b}function Xu(a,y){var b;const{parent:z}=a[0],ce=z==null?void 0:z.computedStyle.color,Te=[];for(const Fe of lf(a)){const rt=y.defaultMode;for(const ut of Sa(Fe,"color")){const mt=ut[0].computedStyle,wt=Oo._registry[ut[0].mode].serialize(ut,oe(ie({},y),{defaultMode:rt==="text"?"text":"math"}));!y.skipStyles&&mt.color&&mt.color!=="none"&&(!z||ce!==mt.color)?Te.push(sa("\\textcolor",(b=mt.verbatimColor)!=null?b:mt.color,Pi(wt))):Te.push(Pi(wt))}}return Te}function th(a,y){const{parent:b}=a[0],z=b==null?void 0:b.computedStyle.backgroundColor;return Sa(a,"backgroundColor").map(ce=>{var Te;if(ce.length>0||ce[0].type!=="box"){const Fe=ce[0].computedStyle;if(Fe.backgroundColor&&Fe.backgroundColor!=="none"&&(!b||z!==Fe.backgroundColor))return sa("\\colorbox",(Te=Fe.verbatimBackgroundColor)!=null?Te:Fe.backgroundColor,Pi(Xu(ce,oe(ie({},y),{defaultMode:"text"}))))}return Pi(Xu(ce,y))})}function rh(a,y){if(a.length===0)return[];const{parent:b}=a[0],z=b==null?void 0:b.computedStyle.fontSize,ce=[];for(const Te of Sa(a,"fontSize")){const Fe=Te[0].computedStyle.fontSize,rt=th(Te,y);rt&&(Fe&&Fe!=="auto"&&(!b||z!==Fe)?ce.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][Fe],...rt):ce.push(...rt))}return ce}function Yu(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 Tl(a){if(a.length===0)return"ord";const y=Yu(a[0].type),b=Yu(a[a.length-1].type);return y&&y===b?y:"ord"}function Ol(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 _n=class Am{constructor(y,b){var z,ce,Te,Fe,rt;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:te(y)?this.children=y.filter(mt=>mt!==null):y&&y instanceof Am&&(this.children=[y]),this.children)for(const mt of this.children)mt.parent=this;this.type=(z=b==null?void 0:b.type)!=null?z:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ce=b==null?void 0:b.classes)!=null?ce:"",this.isTight=(Te=b==null?void 0:b.isTight)!=null?Te:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let ut=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ut=(rt=Oo.getFont((Fe=b.mode)!=null?Fe:"math",this,oe(ie({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?rt:void 0),ut||(ut="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),oc(this,ut)}set atomID(y){y===void 0||y.length===0||(this.id=y)}selected(y){if(this.isSelected!==y&&(this.isSelected=y,this.children))for(const b of this.children)b.selected(y)}setStyle(y,b,z){if(b===void 0)return;const ce=Ol(b,z);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=Ol(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"]=Ol(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"]=Ol(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"]=Ol(y,"em")))}get width(){return this._width*this.scale}set width(y){this._width=y,this.hasExplicitWidth=!0}set softWidth(y){}get height(){return this._height*this.scale}set height(y){this._height=y}get depth(){return this._depth*this.scale}set depth(y){this._depth=y}wrap(y){const b=y.parent;if(!b)return this;y.isPhantom&&this.setStyle("opacity",0);const z=y.color;z&&z!==b.color&&this.setStyle("color",z);let ce=y.backgroundColor;this.isSelected&&(ce=lt(ce)),ce&&ce!==b.backgroundColor&&(this.setStyle("background-color",ce),this.setStyle("display","inline-block"));const Te=y.scalingFactor;return this.scale=Te,this.skew*=Te,this.italic*=Te,this}toMarkup(){var y,b,z,ce;let Te=(y=this.value)!=null?y:"";if(this.children)for(const ir of this.children)Te+=ir.toMarkup();let Fe="";if(this.svgBody)Fe=Al(this.svgBody);else if(this.svgOverlay){Fe='<span style="',Fe+="display: inline-block;",Fe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,Fe+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,Fe+='">',Fe+=Te,Fe+="</span>",Fe+='<svg style="position:absolute;overflow:visible;',Fe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const ir=(b=this.cssProperties)==null?void 0:b.padding;ir?(Fe+=`top:${ir};`,Fe+=`left:${ir};`,Fe+=`width:calc(100% - 2 * ${ir} );`):Fe+="top:0;left:0;width:100%;",Fe+="z-index:2;",Fe+='"',this.svgStyle&&(Fe+=this.svgStyle),Fe+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,Fe+=`>${this.svgOverlay}</svg>`}let rt="";const ut=this.classes.split(" ");ut.push((z={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?z:""),this.caret==="latex"&&ut.push("ML__latex-caret"),this.isSelected&&ut.push("ML__selected");const mt=ut.length===1?ut[0]:ut.filter((ir,cr,Hr)=>ir.length>0&&Hr.indexOf(ir)===cr).join(" ");if(mt.length>0&&(rt+=` class="${mt}"`),this.id&&(rt+=` data-atom-id=${this.id}`),this.cssId&&(rt+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(rt+=" "+Object.keys(this.attributes).map(ir=>`${ir}="${this.attributes[ir]}"`).join(" ")),this.htmlData){const ir=this.htmlData.split(",");for(const cr of ir){const Hr=cr.match(/([^=]+)=(.+$)/);if(Hr){const Rn=Hr[1].trim().replace(/ /g,"-");Rn&&(rt+=` data-${Rn}="${Hr[2]}" `)}else{const Rn=cr.trim().replace(/ /g,"-");Rn&&(rt+=` data-${Rn} `)}}}const wt=(ce=this.cssProperties)!=null?ce:{};this.hasExplicitWidth&&wt.width===void 0&&(wt.width=`${Math.ceil(this._width*100)/100}em`);const Rt=Object.keys(wt).map(ir=>`${ir}:${wt[ir]}`);if(this.scale!==void 0&&this.scale!==1&&(Te.length>0||Fe.length>0)&&Rt.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const ir=this.htmlStyle.split(";");let cr="";for(const Hr of ir){const Rn=Hr.match(/([^=]+):(.+$)/);if(Rn){const Fr=Rn[1].trim().replace(/ /g,"-");Fr&&(cr+=`${Fr}:${Rn[2]};`)}}cr&&(rt+=` style="${cr}"`)}Rt.length>0&&(rt+=` style="${Rt.join(";")}"`);let Gt="";return rt.length>0||Fe.length>0?Gt=`<span${rt}>${Te}${Fe}</span>`:Gt=Te,this.caret==="text"?Gt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(Gt+='<span class="ML__caret"></span>'),Gt}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,z=y.children&&y.children.length>0;if(b||z)return!1;if(y.cssProperties||this.cssProperties){for(const ut of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ut in y.cssProperties||this.cssProperties&&ut in this.cssProperties)return!1}const ce=this.cssProperties?Object.keys(this.cssProperties).length:0,Te=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ce!==Te)return!1;if(ce>0){for(const ut of Object.keys(this.cssProperties))if(this.cssProperties[ut]!==y.cssProperties[ut])return!1}const Fe=this.classes.trim().replace(/\s+/g," ").split(" "),rt=y.classes.trim().replace(/\s+/g," ").split(" ");if(Fe.length!==rt.length)return!1;Fe.sort(),rt.sort();for(const[ut,mt]of Fe.entries())if(mt==="vertical-separator"||mt!==rt[ut])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 Ju(a){if(!a||a.length===0)return[];a[0].children=Ju(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=Ju(a[b].children),y.push(a[b]));return y}function Qc(a){return a.children&&(a.children=Ju(a.children)),a}function $c(a,y){if(!a)return new _n(null,y);const b=new _n(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const z=[b];if(a.depth!==0){const ce=new _n(null,{classes:"ML__strut--bottom",type:"ignore"});ce.setStyle("height",a.height+a.depth,"em"),ce.setStyle("vertical-align",-a.depth,"em"),z.push(ce)}return z.push(a),new _n(z,oe(ie({},y),{type:"lift"}))}function Ho(a){const y=tf(a)/2,b=new _n(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function oc(a,y){var b;if(a.type==="latex"){a.height=.9,a.depth=.2,a._width=1;return}if(a.value){a.height=-1/0,a.depth=-1/0,a._width=0,a.skew=-1/0,a.italic=-1/0;for(let z=0;z<a.value.length;z++){const ce=ps(a.value.codePointAt(z),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 z=-1/0,ce=-1/0,Te=0;for(const Fe of a.children)Fe.height>z&&(z=Fe.height),Fe.depth>ce&&(ce=Fe.depth),Te=Math.max(Te,(b=Fe.maxFontSize)!=null?b:0);a.height=z,a.depth=ce,a._width=a.children.reduce((Fe,rt)=>Fe+rt.width,0),a.maxFontSize=Te}}function qc(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const z=[b],ce=-b.shift-b.box.depth;let Te=ce;for(let Fe=1;Fe<y.length;Fe++){const rt=y[Fe],ut=-rt.shift-Te-rt.box.depth,mt=ut-(b.box.height+b.box.depth);Te=Te+ut,z.push(mt),z.push(rt),b=rt}return[z,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 sc(a){var y;const[b,z]=qc(a);if(!b)return[[],0,0];const ce=new _n(null,{classes:"pstrut"});let Te=0;for(const cr of b)if(typeof cr!="number"){const Hr=cr.box;Te=Math.max(Te,Hr.maxFontSize,Hr.height)}Te+=2,ce.height=Te,ce.setStyle("height",Te,"em");const Fe=[];let rt=z,ut=z,mt=z,wt=0;for(const cr of b){if(typeof cr=="number")mt+=cr;else{const Hr=cr.box,Rn=(y=cr.classes)!=null?y:[],Fr=new _n([ce,Hr],{classes:Rn.join(" "),style:cr.style});Hr.setStyle("height",Hr.height+Hr.depth,"em"),Hr.setStyle("display","inline-block"),Fr.setStyle("top",-Te-mt-Hr.depth,"em"),cr.marginLeft&&Fr.setStyle("margin-left",cr.marginLeft,"em"),cr.marginRight&&Fr.setStyle("margin-right",cr.marginRight,"em"),Fe.push(Fr),mt+=Hr.height+Hr.depth,wt=Math.max(wt,Fr.width)}rt=Math.min(rt,mt),ut=Math.max(ut,mt)}Fe.forEach(cr=>{cr.softWidth=wt});const Rt=new _n(Fe,{classes:"vlist"});if(Rt.softWidth=wt,Rt.height=ut,Rt.setStyle("height",ut,"em"),rt>=0)return[[new _n(Rt,{classes:"vlist-r"})],ut,-rt];const Gt=new _n(new _n(null),{classes:"vlist"});Gt.height=-rt,Gt.setStyle("height",-rt,"em");const ir=new _n(8203,{classes:"vlist-s",maxFontSize:0});return ir.softWidth=0,ir.height=0,ir.depth=0,[[new _n([Rt,ir],{classes:"vlist-r"}),new _n(Gt,{classes:"vlist-r"})],ut,-rt]}var ra=class extends _n{constructor(a,y){var b;const[z,ce,Te]=sc(a);super(z.length===1?z[0]:z,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(z.length===2?" vlist-t2":"")}),this.height=ce,this.depth=Te,this.softWidth=z.reduce((Fe,rt)=>Math.max(Fe,rt.width),0)}};function nh(a,y){var b,z,ce,Te,Fe;const rt=a.metrics,ut=new _n(y.base),mt=(b=y.baseShift)!=null?b:0,wt=(z=y.slant)!=null?z:0;let Rt=0,Gt=0;y.above&&(Rt=(ce=y.aboveShift)!=null?ce:Math.max(rt.bigOpSpacing1,rt.bigOpSpacing3-y.above.depth)),y.below&&(Gt=(Te=y.belowShift)!=null?Te:Math.max(rt.bigOpSpacing2,rt.bigOpSpacing4-y.below.height));let ir=null;if(y.below&&y.above){const cr=rt.bigOpSpacing5+y.below.height+y.below.depth+Gt+ut.depth+mt;ir=new ra({bottom:cr,children:[rt.bigOpSpacing5,{box:y.below,marginLeft:-wt,classes:["ML__center"]},Gt,{box:ut,classes:["ML__center"]},Rt,{box:y.above,marginLeft:wt,classes:["ML__center"]},rt.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)ir=new ra({top:ut.height-mt,children:[rt.bigOpSpacing5,{box:y.below,marginLeft:-wt,classes:["ML__center"]},Gt,{box:ut,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const cr=ut.depth+mt;ir=new ra({bottom:cr,children:[{box:ut,classes:["ML__center"]},Rt,{box:y.above,marginLeft:wt,classes:["ML__center"]},rt.bigOpSpacing5]}).wrap(a)}else{const cr=ut.depth+mt;ir=new ra({bottom:cr,children:[{box:ut},rt.bigOpSpacing5]}).wrap(a)}return new _n(ir,{type:(Fe=y.type)!=null?Fe:"op"})}var Qu=7,gs=6,lc=5,Ls=4,dl=3,mo=2,_o=1,Ja=0,Qo=class{constructor(a,y,b){this.id=a,this.sizeDelta=y,this.cramped=b;const z={"-4":2,"-3":1,0:0}[y];this.metrics=Object.keys(Vu).reduce((ce,Te)=>oe(ie({},ce),{[Te]:Vu[Te][z]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return $o[[Ja,_o,Ja,_o,mo,dl,mo,dl][this.id]]}get sub(){return $o[[Ja,Ja,Ja,Ja,mo,mo,mo,mo][this.id]]}get fracNum(){return $o[[Ja,_o,Ja,_o,mo,dl,Ls,lc][this.id]]}get fracDen(){return $o[[Ja,Ja,Ja,Ja,mo,mo,Ls,Ls][this.id]]}get cramp(){return $o[[Ja,Ja,mo,mo,Ls,Ls,gs,gs][this.id]]}get isTight(){return this.sizeDelta<0}},fl={7:new Qo(Qu,0,!1),6:new Qo(gs,0,!0),5:new Qo(lc,0,!1),4:new Qo(Ls,0,!0),3:new Qo(dl,-3,!1),2:new Qo(mo,-3,!0),1:new Qo(_o,-4,!1),0:new Qo(Ja,-4,!0)},$o=oe(ie({},fl),{displaystyle:fl[Qu],textstyle:fl[lc],scriptstyle:fl[dl],scriptscriptstyle:fl[_o]});function Dl(a,y){var b;if(!a)return 0;const z={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:cl,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=Js(10,y);return Math.round(a.dimension/cl*z*ce)/ce}return a.dimension*z}function $u(a,y){if(a===null)return 0;const b=Dl(a)/cl;if(Number.isFinite(y)){const z=Js(10,y);return Math.round(b*z)/z}return b}function qu(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function cf(a){let y=qu(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${qu(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${qu(a.shrink)}`),y}function Oa(a){var y,b;if(a==null)return null;let z="";if("dimension"in a&&(z=`${a.dimension}${(y=a.unit)!=null?y:"pt"}`),"glue"in a&&(z=cf(a)),"number"in a)if(!("base"in a)||a.base==="decimal")z=Number(a.number).toString();else if(a.base==="alpha")z=`\`${String.fromCodePoint(a.number)}`;else{const ce=Math.round(a.number)>>>0;a.base==="hexadecimal"?(z=Number(ce).toString(16).toUpperCase(),ce<=255?z=z.padStart(2,"0"):ce<=65535?z=z.padStart(4,"0"):ce<=16777215?z=z.padStart(6,"0"):z=z.padStart(8,"0"),z=`"${z}`):a.base==="octal"&&(z=Number(ce).toString(8),ce<=63?z=z.padStart(2,"0"):ce<=30583?z=z.padStart(4,"0"):z=z.padStart(8,"0"),z=`'${z}`)}return"register"in a&&("factor"in a&&(a.factor===-1?z="-":a.factor!==1&&(z=Number(a.factor).toString())),"global"in a&&a.global&&(z+="\\global"),z+=`\\${a.register}`),"string"in a&&(z=a.string),(b=a.relax)!=null&&b&&(z+="\\relax"),z}function qo(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:qo(a.glue,y),shrink:qo(a.shrink,y),grow:qo(a.grow,y)}:a.shrink?{glue:qo(a.glue,y),shrink:qo(a.shrink,y)}:a.grow?{glue:qo(a.glue,y),grow:qo(a.grow,y)}:{glue:qo(a.glue,y)}:null}var ih={"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 Il(){return ie({},ih)}function eu(){return{registers:Il(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ye.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Ne,backgroundColorMap:_e,getMacro:a=>Nt(a,_t())}}var ji=class Mm{constructor(y,b){var z,ce,Te,Fe,rt,ut,mt,wt,Rt,Gt,ir,cr,Hr,Rn,Fr;let sn;y!=null&&y.parent?(this.parent=y.parent,sn=y.parent,this.registers={}):(sn=ie(ie({},eu()),(z=y==null?void 0:y.from)!=null?z:{}),this.registers=sn.registers),sn.atomIdsSettings&&(this.atomIdsSettings=ie({},sn.atomIdsSettings)),this.renderPlaceholder=sn.renderPlaceholder,this.isPhantom=(Fe=(Te=y==null?void 0:y.isPhantom)!=null?Te:(ce=this.parent)==null?void 0:ce.isPhantom)!=null?Fe:!1,this.letterShapeStyle=sn.letterShapeStyle,this.minFontScale=sn.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ut=(rt=this.parent)==null?void 0:rt.color)!=null?ut:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(wt=(mt=this.parent)==null?void 0:mt.backgroundColor)!=null?wt:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((Rt=this.parent)==null?void 0:Rt.size)?this.size=b.fontSize:this.size=(ir=(Gt=this.parent)==null?void 0:Gt.size)!=null?ir:Os;let Fn=(Hr=(cr=this.parent)==null?void 0:cr.mathstyle)!=null?Hr:$o.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(sn instanceof Mm)switch(y.mathstyle){case"cramp":Fn=Fn.cramp;break;case"superscript":Fn=Fn.sup;break;case"subscript":Fn=Fn.sub;break;case"numerator":Fn=Fn.fracNum;break;case"denominator":Fn=Fn.fracDen;break}switch(y.mathstyle){case"textstyle":Fn=$o.textstyle;break;case"displaystyle":Fn=$o.displaystyle;break;case"scriptstyle":Fn=$o.scriptstyle;break;case"scriptscriptstyle":Fn=$o.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Fn,this.smartFence=sn.smartFence,this.placeholderSymbol=sn.placeholderSymbol,this.colorMap=(Rn=sn.colorMap)!=null?Rn:xn=>xn,this.backgroundColorMap=(Fr=sn.backgroundColorMap)!=null?Fr:xn=>xn,this.getMacro=sn.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===Qu||this.mathstyle.id===gs}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Yc[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(y){var b;if((b=this.registers)!=null&&b[y])return this.registers[y];if(this.parent)return this.parent.getRegister(y)}getRegisterAsNumber(y){const b=this.getRegister(y);if(typeof b=="number")return b;if(typeof b=="string")return Number(b)}getRegisterAsGlue(y){var b;if((b=this.registers)!=null&&b[y]){const z=this.registers[y];return typeof z=="object"&&"glue"in z?z:typeof z=="object"&&"dimension"in z?{glue:{dimension:z.dimension}}:typeof z=="number"?{glue:{dimension:z}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(y)}getRegisterAsEm(y,b){return $u(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const z=this.registers[y];return typeof z=="object"&&"glue"in z?z.glue:typeof z=="object"&&"dimension"in z?z:typeof z=="number"?{dimension:z}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(y)}setRegister(y,b){if(b===void 0){delete this.registers[y];return}this.registers[y]=b}evaluate(y){if(!y||!("register"in y))return y;let b=this;if("global"in y&&y.global)for(;b.parent;)b=b.parent;let z=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(z=y.factor);const 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:z*ce};const Te=b.evaluate(ce);if(Te!==void 0)return"string"in Te?{string:Number(ce).toString()+Te.string}:"number"in Te?{number:z*Te.number}:"dimension"in Te?oe(ie({},Te),{dimension:z*Te.dimension}):"glue"in Te?oe(ie({},Te),{glue:oe(ie({},Te.glue),{dimension:z*Te.glue.dimension}),shrink:Te.shrink?oe(ie({},Te.shrink),{dimension:z*Te.shrink.dimension}):void 0,grow:Te.grow?oe(ie({},Te.grow),{dimension:z*Te.grow.dimension}):void 0}):y}toDimension(y){const b=this.evaluate(y);return b===void 0?null:"dimension"in b?b:"glue"in b?b.glue:"number"in b?{dimension:b.number}:null}toEm(y,b){if(y===null)return 0;const z=this.toDimension(y);return z===null?0:Dl(z,b)/cl}toNumber(y){if(y===null)return null;const b=this.evaluate(y);return b===void 0?null:"number"in b?b.number:"dimension"in b?b.dimension:"glue"in b?b.glue.dimension:"string"in b?Number(b.string):null}toColor(y){var b,z;if(y===null)return null;const ce=this.evaluate(y);return ce===void 0?null:"string"in ce?(z=(b=this.colorMap)==null?void 0:b.call(this,ce.string))!=null?z:ce.string:null}toBackgroundColor(y){var b,z;if(y===null)return null;const ce=this.evaluate(y);return ce===void 0?null:"string"in ce?(z=(b=this.backgroundColorMap)==null?void 0:b.call(this,ce.string))!=null?z:ce.string:null}},Bl=["body","above","below","superscript","subscript"];function vs(a){return typeof a=="string"&&Bl.includes(a)}function cc(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var qr=class yl{constructor(y){var b,z,ce,Te,Fe,rt;this.type=y.type,typeof y.value=="string"&&(this.value=y.value),this.command=(z=(b=y.command)!=null?b:this.value)!=null?z:"",this.mode=(ce=y.mode)!=null?ce:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=ie({},y.style),this.displayContainsHighlight=(Te=y.displayContainsHighlight)!=null?Te:!1,this.captureSelection=(Fe=y.captureSelection)!=null?Fe:!1,this.skipBoundary=(rt=y.skipBoundary)!=null?rt:!1,y.verbatimLatex!==void 0&&y.verbatimLatex!==null&&(this.verbatimLatex=y.verbatimLatex),y.args&&(this.args=y.args),y.body&&(this.body=y.body),this._changeCounter=0}static createBox(y,b,z){var ce;if(!b)return null;const Te=uf(b),Fe=[];for(const ut of Te){const mt=ut[0].style,wt=df(y,ut,{style:{color:mt.color,backgroundColor:mt.backgroundColor,fontSize:mt.fontSize}});wt&&Fe.push(wt)}if(Fe.length===0)return null;const rt=((ce=z==null?void 0:z.classes)!=null?ce:"").trim();return Fe.length===1&&!rt&&!(z!=null&&z.type)?Fe[0].wrap(y):new _n(Fe,{classes:rt,type:z==null?void 0:z.type}).wrap(y)}static serialize(y,b){return Oo.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const z=new WeakSet;let{parent:ce}=y;for(;ce;)z.add(ce),ce=ce.parent;for(ce=b.parent;ce;){if(z.has(ce))return ce;ce=ce.parent}console.assert(!!ce)}static fromJson(y){return typeof y=="string"?new yl({type:"mord",value:y,mode:"math"}):new yl(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=td(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(z=>z.type!=="first").map(z=>z.toJson()));return y.type==="mord"&&Object.keys(y).length===2&&"value"in y?y.value:y}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(y){if(y){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:b}=this;for(;b;)b.parent||b._changeCounter++,"verbatimLatex"in b&&(b.verbatimLatex=void 0),b._children=void 0,b=b.parent}}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=St(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?Pi([sa(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?Pi([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Oo.serialize(this.body,oe(ie({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Oo.serialize(this.above,y)}belowToLatex(y){return Oo.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=oe(ie({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const z=Oo.serialize(this.subscript,y);z.length===0?b+="_{}":z.length===1?/^[0-9]$/.test(z)?b+=`_${z}`:b+=`_{${z}}`:b+=`_{${z}}`}if(this.branch("superscript")!==void 0){const z=Oo.serialize(this.superscript,y);z.length===0?b+="^{}":z.length===1?z==="\u2032"?b+="^\\prime ":z==="\u2033"?b+="^\\doubleprime ":/^[0-9]$/.test(z)?b+=`^${z}`:b+=`^{${z}}`:b+=`^{${z}}`}return b}get treeDepth(){let y=1,b=this.parent;for(;b;)b=b.parent,y+=1;return y}get inCaptureSelection(){let y=this;for(;y;){if(y.captureSelection)return!0;y=y.parent}return!1}get parentPrompt(){let y=this.parent;for(;y;){if(y.type==="prompt"&&!y.captureSelection)return y;y=y.parent}return null}branch(y){if(vs(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of Bl)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(vs(y)),vs(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 cc(this.parentBranch)?this.parentBranch[0]:-1}get col(){return cc(this.parentBranch)?this.parentBranch[1]:-1}get body(){var y;return(y=this._branches)==null?void 0:y.body}set body(y){this.setChildren(y,"body")}get superscript(){var y;return(y=this._branches)==null?void 0:y.superscript}set superscript(y){this.setChildren(y,"superscript")}get subscript(){var y;return(y=this._branches)==null?void 0:y.subscript}set subscript(y){this.setChildren(y,"subscript")}get above(){var y;return(y=this._branches)==null?void 0:y.above}set above(y){this.setChildren(y,"above")}get below(){var y;return(y=this._branches)==null?void 0:y.below}set below(y){this.setChildren(y,"below")}get computedStyle(){var y,b;const z=typeof this.style.verbatimColor=="string",ce=typeof this.style.verbatimBackgroundColor=="string",Te=ie(ie({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete Te.variant,delete Te.variantStyle,ce||delete Te.verbatimBackgroundColor,z||delete Te.verbatimColor,Te}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,z;return this.hasEmptyBranch("body")?this:(console.assert(((y=this.body)==null?void 0:y[0].type)==="first"),(z=(b=this.body[1])==null?void 0:b.getInitialBaseElement())!=null?z:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(y){const b=this.branch(y);return b?(console.assert(b.length>0),console.assert(b[0].type==="first"),b.length===1):!0}setChildren(y,b){var z;if(!y||(console.assert(vs(b)),!vs(b)))return;console.assert(((z=y[0])==null?void 0:z.type)!=="first");const ce=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ce:this._branches={[b]:ce};for(const Te of y)Te.parent=this,Te.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new yl({type:"first",mode:this.mode});return b.parent=this,b.parentBranch=y,b}addChild(y,b){console.assert(y.type!=="first"),this.createBranch(b).push(y),this.isDirty=!0,y.parent=this,y.parentBranch=b}addChildBefore(y,b){console.assert(b.parentBranch!==void 0);const z=this.createBranch(b.parentBranch);z.splice(z.indexOf(b),0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildAfter(y,b){console.assert(b.parentBranch!==void 0);const z=this.createBranch(b.parentBranch);z.splice(z.indexOf(b)+1,0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildren(y,b){const z=this.createBranch(b);for(const ce of y)ce.parent=this,ce.parentBranch=b,z.push(ce);this.isDirty=!0}addChildrenAfter(y,b){console.assert(y.length===0||y[0].type!=="first"),console.assert(b.parentBranch!==void 0);const z=this.createBranch(b.parentBranch);z.splice(z.indexOf(b)+1,0,...y),this.isDirty=!0;for(const ce of y)ce.parent=this,ce.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(vs(y)&&(this._branches[y]=void 0),!b)return[];for(const z of b)z.parent=void 0,z.parentBranch=void 0;return console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}removeChild(y){if(console.assert(y.parent===this),y.type==="first")return;const b=this.branch(y.parentBranch),z=b.indexOf(y);console.assert(z>=0),b.splice(z,1),this.isDirty=!0,y.parent=void 0,y.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:y}=this;return y[y.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:y}=this;return y[y.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const y=[];for(const b of Bl)if(this._branches[b])for(const z of this._branches[b])y.push(...z.children),y.push(z);return this._children=y,y}render(y){if(this.type==="first"&&!y.atomIdsSettings)return null;const b=St(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const z=new ji({parent:y},this.style);let ce=this.createBox(z,{classes:this.parent?"":"ML__base"});return ce?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ce=this.attachSupsub(z,{base:ce})),ce.wrap(z)):null}attachSupsub(y,b){var z;const ce=b.base,Te=this.superscript,Fe=this.subscript;if(!Te&&!Fe)return ce;let rt=null,ut=null;const mt=(z=b.isCharacterBox)!=null?z:this.isCharacterBox();let wt=0;if(Te){const Hr=new ji({parent:y,mathstyle:"superscript"});rt=yl.createBox(Hr,Te),mt||(wt=ce.height-y.metrics.supDrop*Hr.scalingFactor)}let Rt=0;if(Fe){const Hr=new ji({parent:y,mathstyle:"subscript"});ut=yl.createBox(Hr,Fe),mt||(Rt=ce.depth+y.metrics.subDrop*Hr.scalingFactor)}let Gt;y.isDisplayStyle?Gt=y.metrics.sup1:y.isCramped?Gt=y.metrics.sup3:Gt=y.metrics.sup2;const ir=.5/cl/y.scalingFactor;let cr=null;if(ut&&rt){wt=Math.max(wt,Gt,rt.depth+.25*y.metrics.xHeight),Rt=Math.max(Rt,y.metrics.sub2);const Hr=y.metrics.defaultRuleThickness;if(wt-rt.depth-(ut.height-Rt)<4*Hr){Rt=4*Hr-(wt-rt.depth)+ut.height;const Fr=.8*y.metrics.xHeight-(wt-rt.depth);Fr>0&&(wt+=Fr,Rt-=Fr)}const Rn=this.isExtensibleSymbol&&ce.italic?-ce.italic:0;cr=new ra({individualShift:[{box:ut,shift:Rt,marginLeft:Rn},{box:rt,shift:-wt}]}).wrap(y)}else ut&&!rt?(Rt=Math.max(Rt,y.metrics.sub1,ut.height-.8*hs),cr=new ra({shift:Rt,children:[{box:ut,marginRight:ir,marginLeft:this.isCharacterBox()?-ce.italic:0}]})):!ut&&rt&&(wt=Math.max(wt,Gt,rt.depth+.25*hs),cr=new ra({shift:-wt,children:[{box:rt,marginRight:ir}]}));return new _n([ce,new _n(cr,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const z=this.superscript?yl.createBox(new ji({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ce=this.subscript?yl.createBox(new ji({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!z&&!ce?b.base.wrap(y):nh(y,oe(ie({},b),{above:z,below:ce}))}bind(y,b){if(!b||y.isPhantom||this.value==="\u200B")return b;let z=this.parent;for(;z&&!z.captureSelection;)z=z.parent;return z!=null&&z.captureSelection||(this.id||(this.id=y.makeID()),b.atomID=this.id),b}createBox(y,b){var z,ce,Te,Fe;const rt=(z=this.value)!=null?z:this.body,ut=(ce=b==null?void 0:b.boxType)!=null?ce:Yu(this.type);let mt=(Te=b==null?void 0:b.classes)!=null?Te:"";this.mode==="text"&&(mt+=" ML__text");const wt=typeof rt=="string"||rt===void 0?new _n(rt!=null?rt:null,{type:ut,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:mt}):(Fe=yl.createBox(y,rt,{type:ut,classes:mt}))!=null?Fe:new _n(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 uf(a){let y;const b=[];let z=[];for(const ce of a)if(!y&&!ce.style)z.push(ce);else{const Te=ce.computedStyle;y&&Te.color===y.color&&Te.backgroundColor===y.backgroundColor&&Te.fontSize===y.fontSize?z.push(ce):(z.length>0&&b.push(z),z=[ce],y=Te)}return z.length>0&&b.push(z),b}function df(a,y,b){var z,ce,Te,Fe,rt;if(!y||y.length===0)return null;const ut=new ji({parent:a},b.style),mt=!((z=ut.atomIdsSettings)!=null&&z.groupNumbers);let wt=[];if(y.length===1){const Gt=y[0],ir=Gt.render(ut);ir&&(mt&&Gt.isSelected&&ir.selected(!0),wt=[ir])}else{let Gt="",ir=!0;for(const cr of y){(ce=ut.atomIdsSettings)!=null&&ce.groupNumbers&&Gt&&(ir&&cr.isDigit()||!ir&&ed(cr))&&(ut.atomIdsSettings.overrideID=Gt);const Hr=cr.render(ut);ut.atomIdsSettings&&(ut.atomIdsSettings.overrideID=void 0),Hr&&((Te=ut.atomIdsSettings)!=null&&Te.groupNumbers&&((cr.isDigit()||ed(cr))&&(!Gt||ir!==cr.isDigit())&&(ir=cr.isDigit(),Gt=(Fe=cr.id)!=null?Fe:""),Gt&&(!(cr.isDigit()||ed(cr))||!cr.hasEmptyBranch("superscript")||!cr.hasEmptyBranch("subscript"))&&(Gt="")),mt&&cr.isSelected&&Hr.selected(!0),wt.push(Hr))}}if(wt.length===0)return null;const Rt=new _n(wt,oe(ie({isTight:ut.isTight},b),{type:(rt=b.type)!=null?rt:"lift"}));return Rt.isSelected=wt.every(Gt=>Gt.isSelected),Rt.wrap(ut)}function ed(a){return a.mode==="text"}function td(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof qr?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var ys=class km extends qr{constructor(y,b,z){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(z)}static fromJson(y){return new 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:Ft("text",this.value.codePointAt(0))}};function uc(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let z=0;for(;z<b&&ah(a.ranges[z],y.ranges[z])==="equal";)z++;return z===b?"equal":"different"}}return"different"}function ah(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Qa(a){let y=1/0,b=-1/0;for(const z of a.ranges)y=Math.min(y,z[0],z[1]),b=Math.max(b,z[0],z[1]);return[y,b]}function Ps(a){return typeof a=="number"&&!Number.isNaN(a)}function tu(a){return Array.isArray(a)&&a.length===2}function ru(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function oh(a,y){const b=a.at(y);let z;if(b){z=b.mode;let ce=b.parent;for(;!z&&ce;)ce&&(z=ce.mode),ce=ce.parent}return z}function ff(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,z=!1,ce=!1,Te=!1,Fe=!1,rt=!1,ut=!1,mt=!1,wt=!1,Rt=!1,Gt=!1,ir=!1,cr=!1,Hr=!1,Rn=!1,Fr=a[0],sn=0;for(;Fr!=null&&Fr.type&&/^(subsup|placeholder)$/.test(Fr.type);)sn+=1,Fr=a[sn];return b=!Fr||Fr.type==="first",Fr&&(Hr=Fr.mode==="text",z=!Hr&&Fr.type==="mord"&&ze.test(Fr.value),ce=!Hr&&Fr.type==="mord"&&/\d+$/.test(Fr.value),Te=!Hr&&Fr.isFunction,Fe=Fr.type==="genfrac",rt=Fr.type==="surd",ut=Fr.type==="mbin",mt=Fr.type==="mrel",wt=Fr.type==="mop"||Fr.type==="operator"||Fr.type==="extensible-symbol",Rt=Fr.type==="mpunct"||Fr.type==="minner",Gt=Fr.type==="array",ir=Fr.type==="mopen",cr=Fr.type==="mclose"||Fr.type==="leftright",Rn=Fr.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&z||y.after.includes("digit")&&ce||y.after.includes("function")&&Te||y.after.includes("frac")&&Fe||y.after.includes("surd")&&rt||y.after.includes("binop")&&ut||y.after.includes("relop")&&mt||y.after.includes("operator")&&wt||y.after.includes("punct")&&Rt||y.after.includes("array")&&Gt||y.after.includes("openfence")&&ir||y.after.includes("closefence")&&cr||y.after.includes("text")&&Hr||y.after.includes("space")&&Rn?y.value:""}function rd(a,y,b){return b?ff(a,b[y]):""}var hf={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 dc(a,y){var b;let z=(b=y==null?void 0:y.format)!=null?b:"auto";return z==="auto"&&([z,a]=mf(a)),z==="ascii-math"?(a=a.replace(/\u2061/gu,""),a=a.replace(/\u3016/gu,"{"),a=a.replace(/\u3017/gu,"}"),a=a.replace(/([^\\])sinx/g,"$1\\sin x"),a=a.replace(/([^\\])cosx/g,"$1\\cos x "),a=a.replace(/\u2013/g,"-"),["ascii-math",io(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function io(a,y){var b,z,ce;if(!a)return"";let Te=!1,Fe;const rt=(b=y.inlineShortcuts)!=null?b:hf;if(!Te&&(a.startsWith("^")||a.startsWith("_"))&&(Fe=Rs(a.slice(1),{inlineShortcuts:rt,noWrap:!0}),a=a[0]+"{"+Fe.match+"}",a+=io(Fe.rest,y),Te=!0),Te||(Fe=a.match(/^(sqrt|\u221A)(.*)/),Fe&&(Fe=Rs(Fe[2],{inlineShortcuts:rt,noWrap:!0}),a="\\sqrt{"+((z=Fe.match)!=null?z:"\\placeholder{}")+"}",a+=io(Fe.rest,y),Te=!0)),Te||(Fe=a.match(/^(\\cbrt|\u221B)(.*)/),Fe&&(Fe=Rs(Fe[2],{inlineShortcuts:rt,noWrap:!0}),a="\\sqrt[3]{"+((ce=Fe.match)!=null?ce:"\\placeholder{}")+"}",a+=io(Fe.rest,y),Te=!0)),Te||(Fe=a.match(/^abs(.*)/),Fe&&(Fe=Rs(Fe[1],{inlineShortcuts:rt,noWrap:!0}),a="\\left|"+Fe.match+"\\right|",a+=io(Fe.rest,y),Te=!0)),Te||(Fe=a.match(/^["”“](.*?)["”“](.*)/),Fe&&(a="\\text{"+Fe[1]+"}",a+=io(Fe[2],y),Te=!0)),Te||(Fe=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),Fe&&(a=pf(Fe[1],rt),a+=io(Fe[2],y),Te=!0)),!Te&&/^([fgh])[^a-zA-Z]/.test(a)&&(Fe=Rs(a.slice(1),{inlineShortcuts:rt,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+Fe.match+"\\right)":a[0]+Fe.match,a+=io(Fe.rest,y),Te=!0),Te||(Fe=a.match(/^([a-zA-Z]+)(.*)/),Fe&&(a=pf(Fe[1],rt),a+=io(Fe[2],y),Te=!0)),!Te)if(Fe=Rs(a,{inlineShortcuts:rt,noWrap:!0}),Fe.match&&Fe.rest[0]==="/"){const ut=Rs(Fe.rest.slice(1),{inlineShortcuts:rt,noWrap:!0});ut.match&&(a="\\frac{"+Fe.match+"}{"+ut.match+"}"+io(ut.rest,y)),Te=!0}else Fe.match&&(a=a.startsWith("(")?"\\left("+Fe.match+"\\right)"+io(Fe.rest,y):Fe.match+io(Fe.rest,y),Te=!0);return Te||(Fe=a.match(/^(\s+)(.*)$/),Fe&&(a=" "+io(Fe[2],y),Te=!0)),a}function Rs(a,y){let b="";a=a.trim();let z=a,ce=a.charAt(0),Te={"(":")","{":"}","[":"]"}[ce];if(Te){let Fe=1,rt=1;for(;rt<a.length&&Fe>0;)a[rt]===ce&&Fe++,a[rt]===Te&&Fe--,rt++;Fe===0?(y.noWrap&&ce==="("?b=io(a.substring(1,rt-1),y):(ce==="{"&&Te==="}"&&(ce="\\{",Te="\\}"),b="\\left"+ce+io(a.substring(1,rt-1),y)+"\\right"+Te),z=a.slice(Math.max(0,rt))):(b=a.substring(1,rt),z="")}else{let Fe=a.match(/^([a-zA-Z]+)/);if(Fe){let rt=rd(null,a,y.inlineShortcuts);if(rt)return rt=rt.replace("_{#?}",""),rt=rt.replace("^{#?}",""),{match:rt,rest:a.slice(rt.length)}}if(Fe=a.match(/^([a-zA-Z])/),Fe)return{match:Fe[1],rest:a.slice(1)};if(Fe=a.match(/^(-)?\d+(\.\d*)?/),Fe)return{match:Fe[0],rest:a.slice(Fe[0].length)};/^\\(left|right)/.test(a)||(Fe=a.match(/^(\\[a-zA-Z]+)/),Fe&&(z=a.slice(Fe[1].length),b=Fe[1]))}return{match:b,rest:z}}function pf(a,y){let b=rd(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var nd=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Ns(a){const y=a.trim();for(const b of nd)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 mf(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Ns(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 nu="$$",sh="$$",lh=(a,y,b)=>(nd.some(z=>y.startsWith(z[0])&&y.endsWith(z[1]))||(y=`${nu} ${y} ${sh}`),y),gf=class eh{constructor(y){eh._modes[y]=this}static onPaste(y,b,z){var ce;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof z=="string"){const Fe=new DataTransfer;Fe.setData("text/plain",z),z=Fe}const Te=new ClipboardEvent("paste",{clipboardData:z,cancelable:!0});return(ce=b.host)!=null&&ce.dispatchEvent(Te)?eh._modes[y].onPaste(b,z):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const z=y.model,ce=z.selectionIsCollapsed?[0,z.lastOffset]:Qa(z.selection),Te=z.getValue(ce,b);navigator.clipboard.writeText(Te).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var z;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ce=y.model,Te=ce.selectionIsCollapsed?[0,ce.lastOffset]:Qa(ce.selection);let Fe=ce.getAtoms(Te);if(Fe.every(rt=>rt.mode==="text"||!rt.mode))b.clipboardData.setData("text/plain",Fe.filter(rt=>rt instanceof ys).map(rt=>rt.value).join(""));else if(Fe.every(rt=>rt.mode==="latex"))b.clipboardData.setData("text/plain",ce.getAtoms(Te,{includeChildren:!0}).map(rt=>{var ut;return(ut=rt.value)!=null?ut:""}).join(""));else{let rt;Fe.length===1&&Fe[0].verbatimLatex!==void 0?rt=Fe[0].verbatimLatex:rt=ce.getValue(Te,"latex-expanded"),b.clipboardData.setData("application/x-latex",rt);try{b.clipboardData.setData("text/plain",y.options.onExport(y,rt,Te))}catch(ut){}if(Fe.length===1){const ut=Fe[0];(ut.type==="root"||ut.type==="group")&&(Fe=ut.body.filter(mt=>mt.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(Fe.map(ut=>ut.toJson())))}catch(ut){}if((z=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&z.ComputeEngine){const ut=window.MathfieldElement.computeEngine;if(ut)try{const mt=ut.jsonSerializationOptions;ut.jsonSerializationOptions={metadata:["latex"]};const wt=ut.parse(ce.getValue(Te,"latex-unstyled"));ut.jsonSerializationOptions=mt;const Rt=JSON.stringify(wt.json);Rt&&b.clipboardData.setData("application/json",Rt)}catch(mt){}}}b.preventDefault()}static insert(y,b,z={}){var ce;const Te=z.mode==="auto"?y.mode:(ce=z.mode)!=null?ce:y.mode;return eh._modes[Te].insert(y,b,z)}onPaste(y,b){return!1}insert(y,b,z){return!1}};gf._modes={};var ki=gf,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","^"]}],id={"\\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 Wo(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Uo(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 _s(a){const y=Uo(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function ad(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 od(a,y,b){if(!y)return null;const z=a.field.getBoundingClientRect(),ce=y.right-y.left,Te=y.bottom-y.top,Fe=Math.ceil(y.left-z.left+a.field.scrollLeft*b),rt=Math.ceil(y.top-z.top);return{left:Fe,right:Fe+ce,top:rt,bottom:rt+Te}}function sd(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),z={top:y.top-1,bottom:y.bottom,left:y.left,right:y.right-1+b};if(a.children.length===0||a.tagName.toUpperCase()==="SVG")return z;for(const ce of a.children)if(ce.nodeType===1&&"atomId"in ce.dataset&&!ce.classList.contains("pstrut")){const Te=sd(ce);z.left=Math.min(z.left,Te.left),z.right=Math.max(z.right,Te.right),z.top=Math.min(z.top,Te.top),z.bottom=Math.max(z.bottom,Te.bottom)}return z}function Ll(a,y){var b,z;if(!y.id)return null;let ce=(z=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?z:null;if(ce!==null)return ce;const Te=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ce=Te?sd(Te):null,a.atomBoundsCache&&(ce?a.atomBoundsCache.set(y.id,ce):a.atomBoundsCache.delete(y.id)),ce!=null?ce:null}function vf(a,y,b){const z=new Map;for(const ce of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ce.style.backgroundColor)continue;const Te=a.field,Fe=Te.offsetWidth;let ut=Math.floor(Te.getBoundingClientRect().width)/Fe;ut=isNaN(ut)?1:ut;const mt=od(a,Ll(a,ce),ut);if(mt){const wt=ad(ce);if(z.has(wt)){const Rt=z.get(wt);z.set(wt,{left:Math.min(Rt.left,mt.left),right:Math.max(Rt.right,mt.right),top:Math.min(Rt.top,mt.top),bottom:Math.max(Rt.bottom,mt.bottom)})}else z.set(wt,mt)}}return[...z.values()]}function ld(a,y){return a.model.selection.ranges.reduce((b,z)=>b.concat(...vf(a,z,y)),[])}function cd(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function iu(a){let y=0,b=0;const z=a.offsetWidth,ce=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,z,ce)}var yf=`@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;
|
|
|
}
|
|
|
`,qi=`.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);
|
|
|
}
|
|
|
`,bf=`#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;
|
|
|
}
|
|
|
`,Pl=`/* 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));
|
|
|
}
|
|
|
`,au=`: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;
|
|
|
}
|
|
|
`,na;function hl(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=qi;break;case"mathfield":y=yf;break;case"environment-popover":y=bf;break;case"suggestion-popover":y=uh;break;case"keystroke-caption":y=Pl;break;case"virtual-keyboard":y=dh;break;case"ui":y=au;break;case"menu":y=fh;break;default:debugger}return y}function Rl(a){return na||(na={}),na[a]||(na[a]=new CSSStyleSheet,na[a].replaceSync(hl(a))),na[a]}var bs;function jo(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(hl(a))),window.document.head.appendChild(b);return}if(bs||(bs={}),((y=bs[a])!=null?y:0)!==0)bs[a]+=1;else{const b=Rl(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],bs[a]=1}}function E(a){if("adoptedStyleSheets"in document&&bs!=null&&bs[a]&&(bs[a]-=1,bs[a]<=0)){const y=na[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var ee=class Tm extends qr{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 z=new ji({parent:y,mathstyle:"cramp"},this.style),ce=(b=qr.createBox(z,this.body))!=null?b:new _n("\u25A2",{style:this.style});let Te=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(Te=ce.skew);let Fe=Math.min(ce.height,hs),rt;if(this.svgAccent)rt=Ho(this.svgAccent),Fe=z.metrics.bigOpSpacing1-Fe;else if(this.accent){const mt=new _n(this.accent,{fontFamily:"Main-Regular"});mt.italic=0;const wt=this.accent===8407?" ML__accent-vec":"";rt=new _n(new _n(mt),{classes:"ML__accent-body"+wt})}rt=new ra({shift:0,children:[{box:new _n(ce)},-Fe,{box:rt,marginLeft:ce.left+2*Te,classes:["ML__center"]}]});const ut=new _n(rt,{type:"lift"});return this.caret&&(ut.caret=this.caret),this.bind(z,ut.wrap(z)),this.attachSupsub(z,{base:ut})}},be={"(":")","{":"}","[":"]","|":"|","\\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(be).map(([a,y])=>[y,a]));function Be(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 $e(a,y,b,z){var ce;const Fe=new _n(Be(a),{fontFamily:"Main-Regular",isSelected:z.isSelected,classes:"ML__small-delim "+((ce=z.classes)!=null?ce:"")}).wrap(y);return b&&Fe.setTop((1-y.scalingFactor)*po),Fe}function ht(a,y,b,z,ce){var Te,Fe;const rt=new ji({parent:z,mathstyle:"textstyle"},ce==null?void 0:ce.style),ut=new _n(Be(a),{fontFamily:`Size${y}-Regular`,isSelected:ce.isSelected,classes:((Te=ce.classes)!=null?Te:"")+` ML__delim-size${y}`,type:(Fe=ce.type)!=null?Fe:"ignore"}).wrap(rt);return b&&ut.setTop((1-rt.scalingFactor)*po),ut}function Ct(a,y,b,z,ce){var Te;let Fe,rt,ut,mt;Fe=ut=mt=Be(a),rt=null;let wt="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ut=Fe=mt=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ut=Fe=mt=8741:a==="\\uparrow"?ut=mt=9168:a==="\\Uparrow"?ut=mt=8214:a==="\\downarrow"?Fe=ut=9168:a==="\\Downarrow"?Fe=ut=8214:a==="\\updownarrow"?(Fe=8593,ut=9168,mt=8595):a==="\\Updownarrow"?(Fe=8657,ut=8214,mt=8659):a==="["||a==="\\lbrack"?(Fe=9121,ut=9122,mt=9123,wt="Size4-Regular"):a==="]"||a==="\\rbrack"?(Fe=9124,ut=9125,mt=9126,wt="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ut=Fe=9122,mt=9123,wt="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(Fe=9121,ut=mt=9122,wt="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ut=Fe=9125,mt=9126,wt="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(Fe=9124,ut=mt=9125,wt="Size4-Regular"):a==="("||a==="\\lparen"?(Fe=9115,ut=9116,mt=9117,wt="Size4-Regular"):a===")"||a==="\\rparen"?(Fe=9118,ut=9119,mt=9120,wt="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(Fe=9127,rt=9128,mt=9129,ut=9130,wt="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(Fe=9131,rt=9132,mt=9133,ut=9130,wt="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(Fe=9127,mt=9129,ut=9130,wt="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(Fe=9131,mt=9133,ut=9130,wt="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(Fe=9127,mt=9133,ut=9130,wt="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(Fe=9131,mt=9129,ut=9130,wt="Size4-Regular"):a==="\\surd"?(Fe=57345,mt=9143,ut=57344,wt="Size4-Regular"):a==="\\ulcorner"?(Fe=9484,ut=mt=32):a==="\\urcorner"?(Fe=9488,ut=mt=32):a==="\\llcorner"?(mt=9492,ut=Fe=32):a==="\\lrcorner"&&(Fe=9496,ut=Fe=32);const Rt=ps(Fe,wt),Gt=Rt.height+Rt.depth,ir=ps(ut,wt),cr=ir.height+ir.depth,Hr=ps(mt,wt),Rn=Hr.height+Hr.depth;let Fr=0,sn=1;if(rt!==null){const to=ps(rt,wt);Fr=to.height+to.depth,sn=2}const Fn=Gt+Rn+Fr,xn=Math.max(0,Math.ceil((y-Fn)/(sn*cr))),oi=Fn+xn*sn*cr;let fi=po;b&&(fi=fi*z.scalingFactor);const ui=oi/2-fi,zi=.008,ea=[];ea.push({box:new _n(mt,{fontFamily:wt})}),ea.push(-zi);const Vn=new _n(ut,{fontFamily:wt});if(rt===null)for(let to=0;to<xn;to++)ea.push({box:Vn});else{for(let to=0;to<xn;to++)ea.push({box:Vn});ea.push(-zi),ea.push({box:new _n(rt,{fontFamily:wt})}),ea.push(-zi);for(let to=0;to<xn;to++)ea.push({box:Vn})}ea.push(-zi),ea.push({box:new _n(Fe,{fontFamily:wt})});let Go="";wt==="Size1-Regular"?Go=" delim-size1":wt==="Size4-Regular"&&(Go=" delim-size4");const Zs=new ra({bottom:ui,children:ea},{classes:Go});return new _n(Zs,oe(ie({},ce!=null?ce:{}),{classes:((Te=ce==null?void 0:ce.classes)!=null?Te:"")+" ML__delim-mult"}))}var Tt=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),Pt=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),rr=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),ur=[0,1.2,1.8,2.4,3];function Pr(a,y,b,z){return a===void 0||a==="."?ni(b,z.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),Tt.has(a)||rr.has(a)?ht(a,y,!1,b,z):Pt.has(a)?Ct(a,ur[y],!1,b,z):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var kr=[{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}],tn=[{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 Hn(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function qn(a,y,b,z){const ce={"-4":0,"-3":1,0:2}[z.mathstyle.sizeDelta];for(let Te=ce;Te<b.length&&b[Te].type!=="stack";Te++){const Fe=ps(a,Hn(b[Te]));if(Fe.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let rt=Fe.height+Fe.depth;if(b[Te].type==="small"&&(b[Te].mathstyle==="scriptscriptstyle"?rt*=Math.max(Yc[Math.max(1,z.size-2)],z.minFontScale):b[Te].mathstyle==="scriptstyle"&&(rt*=Math.max(Yc[Math.max(1,z.size-1)],z.minFontScale))),rt>y)return b[Te]}return b[b.length-1]}function ti(a,y,b,z,ce,Te){if(!y||y.length===0||y===".")return ni(ce);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let Fe;rr.has(y)?Fe=kr:Tt.has(y)?Fe=En:Fe=tn;const rt=qn(Be(y),b,Fe,ce),ut=new ji({parent:ce,mathstyle:rt.mathstyle},Te==null?void 0:Te.style);return rt.type==="small"?$e(y,ut,z,oe(ie({},Te),{type:a})):rt.type==="large"?ht(y,rt.size,z,ut,oe(ie({},Te),{type:a})):(console.assert(rt.type==="stack"),Ct(y,b,z,ut,oe(ie({},Te),{type:a})))}function Qn(a,y,b,z,ce,Te){if(y===".")return ni(ce,Te==null?void 0:Te.classes);const Fe=po*ce.scalingFactor,rt=901,ut=5/cl,mt=Math.max(b-Fe,z+Fe),wt=Math.max(mt/500*rt,2*mt-ut);return ti(a,y,wt,!0,ce,Te)}function ni(a,y){const b=new _n(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new ji({parent:a,mathstyle:"textstyle"}))}var mi=class Om extends qr{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 Om(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{}"}},yi=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Ri=["cases","dcases","rcases"],ia=["align","align*","aligned","gather","gathered","split"],Za=["array","subequations","eqnarray"];function fa(a){return Za.concat(ia).concat(Ri).concat(yi).includes(a)}function yo(a){return yi.includes(a)}function bo(a){return Ri.includes(a)}function Da(a){return ia.includes(a)}function xo(a,y,b){let z=0;for(const mt of b)"align"in mt&&(z+=1);let ce=0;const Te=[];for(const mt of y){let wt=0;for(ce=Math.max(ce,Math.min(mt.length,z));wt<mt.length;){const Rt=[],Gt=Math.min(mt.length,wt+z);for(;wt<Gt;){const ir=mt[wt];ir.length===0?Rt.push([new qr({type:"first",mode:a.mode})]):ir[0].type!=="first"?Rt.push([new qr({type:"first",mode:a.mode}),...ir]):(console.assert(!ir.slice(1).some(cr=>cr.type==="first")),Rt.push(ir)),wt+=1}Te.push(Rt)}}Te.length>0&&Te[Te.length-1].length===1&&Te[Te.length-1][0].length===1&&Te[Te.length-1][0][0].type==="first"&&Te.pop();const Fe=[];for(const mt of Te){if(mt.length!==ce)for(let wt=mt.length;wt<ce;wt++)mt.push([new qr({type:"first",mode:a.mode}),new mi]);Fe.push(mt)}let rt=0,ut=0;for(const mt of Fe){ut=0;for(const wt of mt){for(const Rt of wt)Rt.parent=a,Rt.parentBranch=[rt,ut];ut+=1}rt+=1}return a.isDirty=!0,Fe}var Ti=class Dm extends qr{constructor(y,b,z,ce={}){var Te;super({type:"array"}),this.environmentName=y,this.rowGaps=z,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=xo(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=(Te=ce.minColumns)!=null?Te:1}static fromJson(y){return new Dm(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=oe(ie({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(z=>z.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(cc(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return cc(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(vs(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(z=>{z.parent=void 0,z.parentBranch=void 0}),console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}get hasChildren(){return this.children.length>0}get children(){const y=[];for(const b of this.array)for(const z of b)if(z)for(const ce of z)y.push(...ce.children),y.push(ce);return[...y,...super.children]}render(y){var b,z,ce,Te,Fe,rt;const ut=new ji({parent:y,mathstyle:this.mathstyleName},this.style),mt=ut.getRegisterAsEm("arrayrulewidth"),wt=ut.getRegisterAsEm("arraycolsep"),Rt=ut.getRegisterAsEm("doublerulesep"),Gt=(z=(b=this.arraystretch)!=null?b:ut.getRegisterAsNumber("arraystretch"))!=null?z:1;let ir=typeof this.arraycolsep=="number"?this.arraycolsep:wt;this.colSeparationType==="small"&&(ir=.2778*(new ji({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const cr=Gt*Xc,Hr=.7*cr,Rn=.3*cr;let Fr=0;const sn=[];let Fn=0;const xn=this.array.length;for(let oa=0;oa<xn;++oa){const Aa=this.array[oa];Fn=Math.max(Fn,Aa.length);const ro=new ji({parent:ut,mathstyle:this.mathstyleName},this.style);let Vs=Hr/ro.scalingFactor,Gs=Rn/ro.scalingFactor;const Xs={cells:[],height:0,depth:0,pos:0};for(const Ss of Aa){const tp=(ce=qr.createBox(ro,Ss,{type:"ignore"}))!=null?ce:new _n(null,{type:"ignore"});Gs=Math.max(Gs,tp.depth),Vs=Math.max(Vs,tp.height),Xs.cells.push(tp)}let Ys=(Te=$u(this.rowGaps[oa]))!=null?Te:0;Ys>0&&(Ys+=Rn,Gs=Math.max(Gs,Ys),Ys=0),oa<xn-1&&!yo(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Gs+=ut.getRegisterAsEm("jot")),Xs.height=Vs,Xs.depth=Gs,Fr+=Vs,Xs.pos=Fr,Fr+=Gs+Ys,sn.push(Xs)}const oi=Fr/2+po,fi=[];for(let oa=0;oa<Fn;oa++){const Aa=[];for(const ro of sn){const Vs=ro.cells[oa];Vs.depth=ro.depth,Vs.height=ro.height,Aa.push({box:Vs,shift:ro.pos-oi})}Aa.length>0&&fi.push(new ra({individualShift:Aa}))}const ui=[];let zi=!1,ea=!1,Vn=0,Go=!this.leftDelim;const{colFormat:Zs}=this;for(const oa of Zs){if("align"in oa&&Vn>=fi.length)break;if("align"in oa)zi?ui.push(ha(2*ir)):(ea||Go)&&ui.push(ha(ir)),ui.push(new _n(fi[Vn],{classes:"col-align-"+oa.align})),Vn++,zi=!0,ea=!1,Go=!1;else if("gap"in oa){if(typeof oa.gap=="number")ui.push(ha(oa.gap));else{const Aa=va(y,sn,oi,oa.gap);Aa&&ui.push(Aa)}zi=!1,ea=!1,Go=!1}else if("separator"in oa){const Aa=new _n(null,{classes:"vertical-separator"});Aa.height=Fr,Aa.setStyle("height",Fr,"em"),Aa.setStyle("border-right",`${mt}em ${oa.separator} currentColor`),Aa.setStyle("vertical-align",-(Fr-oi),"em");let ro=0;ea?ro=Rt-mt:zi&&(ro=ir-mt),Aa.left=ro,ui.push(Aa),zi=!1,ea=!0,Go=!1}}zi&&!this.rightDelim&&ui.push(ha(ir));const ns=new _n(ui,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(ns.caret=this.caret),this.bind(y,ns);const to=ns.height,Xo=ns.depth,Io=this.bind(y,new _n([this.bind(y,Qn("open",(Fe=this.leftDelim)!=null?Fe:".",to,Xo,ut,{isSelected:this.isSelected})),ns,this.bind(y,Qn("close",(rt=this.rightDelim)!=null?rt:".",to,Xo,ut,{isSelected:this.isSelected}))],{type:"ord"}));return Io?(Io.setStyle("display","inline-block"),this.caret&&(Io.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Io}))):null}_serialize(y){var b;const z=[];if(this.environmentName==="lines"?z.push("{\\displaylines"):z.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(z.push("{"),this.colFormat!==void 0)for(const ce of this.colFormat)"align"in ce&&typeof ce.align=="string"?z.push(ce.align):"separator"in ce&&ce.separator==="solid"?z.push("|"):"separator"in ce&&ce.separator==="dashed"&&z.push(":");z.push("}")}for(let ce=0;ce<this.array.length;ce++){for(let Te=0;Te<this.array[ce].length;Te++)Te>0&&z.push(" & "),z.push(qr.serialize(this.array[ce][Te],y));if(ce<this.array.length-1){const Te=this.rowGaps[ce];Te!=null&&Te.dimension?z.push(`\\\\[${Te.dimension} ${(b=Te.unit)!=null?b:"pt"}] `):z.push("\\\\ ")}}return this.environmentName==="lines"?z.push("}"):z.push(`\\end{${this.environmentName}}`),Pi(z)}getCell(y,b){return this.array[y][b]}setCell(y,b,z){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const Te of this.array[y][b])Te.parent=void 0,Te.parentBranch=void 0;let ce=z;(z.length===0||z[0].type!=="first")&&(ce=[new qr({type:"first",mode:this.mode}),...z]),this.array[y][b]=ce;for(const Te of ce)Te.parent=this,Te.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let z=0;z<this.colCount;z++)b.push(ga(this));this.array.splice(y,0,b);for(let z=y;z<this.rowCount;z++)for(let ce=0;ce<this.colCount;ce++){const Te=this.array[z][ce];if(Te)for(const Fe of Te)Fe.parentBranch=[z,ce]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let z=0;z<this.colCount;z++)b.push(ga(this));this.array.splice(y+1,0,b);for(let z=y+1;z<this.rowCount;z++)for(let ce=0;ce<this.colCount;ce++){const Te=this.array[z][ce];if(Te)for(const Fe of Te)Fe.parentBranch=[z,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 z of b)for(const ce of z)if(ce)for(const Te of ce)Te.parent=void 0,Te.parentBranch=void 0;for(let z=y;z<this.rowCount;z++)for(let ce=0;ce<this.colCount;ce++){const Te=this.array[z][ce];if(Te)for(const Fe of Te)Fe.parentBranch=[z,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,ga(this));for(let b=0;b<this.rowCount;b++)for(let z=y;z<this.colCount;z++){const ce=this.array[b][z];if(ce)for(const Te of ce)Te.parentBranch=[b,z]}this.isDirty=!0}addColumnAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y+1,0,ga(this));for(let b=0;b<this.rowCount;b++)for(let z=y+1;z<this.colCount;z++){const ce=this.array[b][z];if(ce)for(const Te of ce)Te.parentBranch=[b,z]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>y);for(const b of this.array){const z=b.splice(y,1);for(const ce of z)if(ce)for(const Te of ce)Te.parent=void 0,Te.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let z=y;z<this.colCount;z++){const ce=this.array[b][z];if(ce)for(const Te of ce)Te.parentBranch=[b,z]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const z of b)z&&y.push(z.filter(ce=>ce.type!=="first"));return y}};function ga(a){const y=new qr({type:"first",mode:a.mode});y.parent=a;const b=new mi;return b.parent=a,[y,b]}function ha(a){const y=new _n(null,{classes:"arraycolsep"});return y.width=a,y}function va(a,y,b,z){if(!z)return null;const ce=[];for(const Te of y){const Fe=qr.createBox(a,z,{type:"ignore"});Fe&&(Fe.depth=Te.depth,Fe.height=Te.height,ce.push({box:Fe,shift:Te.pos-b}))}return new ra({individualShift:ce}).wrap(a)}var Ca=class Im extends qr{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 Im(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,z,ce,Te;const Fe=qr.createBox(y,this.body,{type:"lift"});if(!Fe)return null;const rt=y.toEm((b=this.offset)!=null?b:{dimension:0});Fe.depth+=rt,Fe.setStyle("display","inline-block"),Fe.setStyle("position","relative"),Fe.setStyle("height",Math.floor(100*Fe.height+Fe.depth)/100,"em"),Fe.setStyle("vertical-align",-Math.floor(100*Fe.height)/100,"em");const ut=new ji({parent:y},this.style),mt=ut.toEm((z=this.padding)!=null?z:{register:"fboxsep"}),wt=new _n(null,{classes:"ML__box"});wt.height=Fe.height+mt,wt.depth=Fe.depth+mt,wt.setStyle("box-sizing","border-box"),wt.setStyle("position","absolute"),wt.setStyle("top",-mt+.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=ut.toColor(this.backgroundcolor))!=null?ce:"transparent"),this.framecolor&&wt.setStyle("border",`${ut.getRegisterAsEm("fboxrule",2)}em solid ${(Te=ut.toColor(this.framecolor))!=null?Te:"black"}`),this.border&&wt.setStyle("border",this.border);const Rt=new _n([wt,Fe],{type:"lift"});return Rt.setStyle("display","inline-block"),Rt.setStyle("position","relative"),Rt.setStyle("line-height",0),Rt.height=Fe.height+mt+(rt>0?rt:0),Rt.depth=Fe.depth+mt+(rt<0?-rt:0),Rt.setStyle("padding-left",mt,"em"),Rt.setStyle("padding-right",mt,"em"),Rt.setStyle("height",Math.floor(100*(Fe.height+Fe.depth+2*mt+Math.abs(rt)))/100,"em"),Rt.setStyle("margin-top",-mt,"em"),Rt.setStyle("top",Math.floor(100*(Fe.depth-Fe.height+2*mt-rt))/100,"em"),Rt.setStyle("vertical-align",Math.floor(100*(Fe.depth+2*mt))/100,"em"),this.caret&&(Rt.caret=this.caret),this.attachSupsub(y,{base:Rt})}_serialize(y){return y.skipStyles?Pi([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},pl=class Bm extends qr{constructor(y,b){var z;super({type:"composition",mode:(z=b==null?void 0:b.mode)!=null?z:"math",value:y})}static fromJson(y){return new Bm(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new _n(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},Eo=class Lm extends qr{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Lm(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},$a=class Pm extends qr{constructor(y,b,z){super({type:"group",mode:b,style:z}),this.body=y,this.boxType=y.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,y&&y.length===1&&y[0].command===","&&(this.captureSelection=!0)}static fromJson(y){return new Pm(y.body,y.mode,y.style)}render(y){const b=qr.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=St(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Vi=class Rm extends qr{constructor(y,b,z){super({type:"leftright",style:z.style,displayContainsHighlight:!0}),this.variant=y,this.body=b,this.leftDelim=z.leftDelim,this.rightDelim=z.rightDelim}static fromJson(y){var b;return new Rm((b=y.variant)!=null?b:"",y.body,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}_serialize(y){var b,z;const ce=this.matchingRightDelim();return this.variant==="left...right"?Pi(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ce]):this.variant==="mleft...mright"?Pi(["\\mleft",(z=this.leftDelim)!=null?z:".",this.bodyToLatex(y),"\\mright",ce]):Pi([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ce])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const z=(y=this.leftDelim)!=null?y:".";return(b=be[z])!=null?b:z}render(y){var b,z;const ce=new ji({parent:y},this.style);console.assert(this.body!==void 0);const Te=new ji({parent:y,mathstyle:"textstyle"},this.style),Fe=(b=qr.createBox(ce,this.body,{type:"inner"}))!=null?b:new _n(null,{type:"inner"}),rt=Fe.height/Te.scalingFactor,ut=Fe.depth/Te.scalingFactor,mt=[];if(this.leftDelim&&mt.push(this.bind(Te,Qn("open",this.leftDelim,rt,ut,Te,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),Fe&&(ja(Fe.children,this,ce,rt,ut),mt.push(Fe)),this.rightDelim){let ir=this.containsCaret?" ML__contains-caret":"",cr=this.rightDelim;cr==="?"&&(ce.smartFence?(cr=this.matchingRightDelim(),ir+=" ML__smart-fence__close"):cr="."),mt.push(this.bind(Te,Qn("close",cr,rt,ut,Te,{isSelected:this.isSelected,classes:ir+" ML__close",mode:this.mode,style:this.style})))}let wt=this.variant==="mleft...mright";const Rt=this.leftSibling;Rt&&(!wt&&Rt.isFunction&&(wt=!0),!wt&&Rt.type==="subsup"&&((z=Rt.leftSibling)!=null&&z.isFunction)&&(wt=!0));const Gt=new _n(mt,{type:wt?"close":"inner",classes:"left-right"});return Gt.setStyle("margin-top",`${-Fe.depth}em`),Gt.setStyle("height",`${Fe.height+Fe.depth}em`),this.caret&&(Gt.caret=this.caret),this.bind(ce,Gt.wrap(ce))}};function ja(a,y,b,z,ce){if(a)for(let Te=0;Te<a.length;Te++){const Fe=a[Te];Fe.type==="middle"?(a[Te]=y.bind(b,Qn("inner",Fe.value,z,ce,b,{isSelected:y.isSelected})),a[Te].caret=Fe.caret,a[Te].isSelected=Fe.isSelected,a[Te].cssId=Fe.cssId,a[Te].htmlData=Fe.htmlData,a[Te].htmlStyle=Fe.htmlStyle,a[Te].attributes=Fe.attributes,a[Te].cssProperties=Fe.cssProperties):Fe.children&&ja(Fe.children,y,b,z,ce)}}var ou=class Nm extends qr{constructor(y,b){var z;super({type:"macro",command:y,style:b.style}),this.body=b.body,b.captureSelection===void 0?b.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=b.captureSelection,this.macroArgs=b.args,this.expand=(z=b.expand)!=null?z:!1}static fromJson(y){return new Nm(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=qr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},xs=class _m extends qr{constructor(){super({type:"macro-argument"})}static fromJson(y){return new _m}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},js=class jm extends qr{constructor(y,b,z=!1,ce,Te){var Fe;super({type:"prompt",mode:(Fe=Te==null?void 0:Te.mode)!=null?Fe:"math",style:Te==null?void 0:Te.style,command:"\\placeholder"}),this.body=ce,this.correctness=b,this.placeholderId=y,this.locked=z,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 ji({parent:y}),z=b.getRegisterAsEm("fboxsep"),ce=z,Te=z,Fe=qr.createBox(y,this.body);if(!Fe)return null;Fe.height||(Fe.height=b.metrics.xHeight),Fe.setStyle("vertical-align",-Fe.height,"em"),this.correctness==="correct"?Fe.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&Fe.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const rt=new _n(Fe,{type:"ord"});rt.setStyle("display","inline-block"),rt.setStyle("height",Fe.height+Fe.depth,"em"),rt.setStyle("vertical-align",-Te,"em");let ut="ML__prompt ";this.locked?ut+=" ML__lockedPromptBox ":ut+=" ML__editablePromptBox ",this.correctness==="correct"?ut+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ut+=" ML__incorrectPromptBox "),this.containsCaret&&(ut+=" ML__focusedPromptBox ");const mt=new _n(null,{classes:ut,attributes:{part:"prompt"}});mt.height=rt.height+Te,mt.depth=rt.depth+Te,mt.width=rt.width+2*ce,mt.setStyle("box-sizing","border-box"),mt.setStyle("position","absolute"),mt.setStyle("height",rt.height+rt.depth+2*Te,"em"),ce===0&&mt.setStyle("width","100%"),ce!==0&&(mt.setStyle("width",`calc(100% + ${2*ce}em)`),mt.setStyle("top",z,"em"),mt.setStyle("left",-ce,"em")),(!this.body||this.body.length===1)&&(mt.width=3*ce,mt.setStyle("width",`calc(100% + ${3*ce}em)`),mt.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&&(mt.svgOverlay=wt);const Rt=new _n([mt,rt],{classes:"ML__prompt-atom"});return Rt.setStyle("position","relative"),Rt.setStyle("display","inline-block"),Rt.setStyle("line-height",0),Rt.height=rt.height+Te+.2,Rt.depth=rt.depth+Te,Rt.left=ce,Rt.right=ce,Rt.setStyle("height",rt.height+Te,"em"),Rt.setStyle("top",rt.depth-rt.height,"em"),Rt.setStyle("vertical-align",rt.depth+Te,"em"),Rt.setStyle("margin-left",.5,"em"),Rt.setStyle("margin-right",.5,"em"),this.caret&&(Rt.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:Rt}))}_serialize(y){var b;const z=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return z;let ce="\\placeholder";return this.placeholderId&&(ce+=`[${this.placeholderId}]`),this.correctness==="correct"?ce+="[correct]":this.correctness==="incorrect"&&(ce+="[incorrect]"),this.locked&&(ce+="[locked]"),sa(ce,z)}},es=class Fm extends qr{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 z of Bl)y[z]&&b.setChildren(y[z],z);return b}render(y){var b;const z=new ji({parent:y,isPhantom:!0}),ce=this.leftSibling,Te=(b=ce.render(z))!=null?b:new _n(null),Fe=new _n(null);return Fe.height=Te.height,Fe.depth=Te.depth,this.attachSupsub(y,{base:Fe,isCharacterBox:ce.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function Ia(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var ml=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var z,ce,Te,Fe;b!=null||(b={}),this.tokens=a,this.context=y instanceof ji&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new ji({from:y,mathstyle:b.mathstyle},b.style),this.args=(z=b.args)!=null?z:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(ce=b.style)!=null?ce:{},parseMode:(Te=b.parseMode)!=null?Te:"math",mathstyle:(Fe=b.mathstyle)!=null?Fe:"displaystyle",tabular:!1}}beginContext(a){var y,b,z;const ce=this.parsingContext,Te={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:(z=a==null?void 0:a.tabular)!=null?z:!1};this.parsingContext=Te}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(ie({before:Bs(this.tokens.slice(this.index,this.index+10)),after:Bs(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 es({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=St(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?qa(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new mi({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(a){let y=this.tokens[this.index];for(;y&&y!==a;)y=this.tokens[++this.index];y===a&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(a){const y=this.index;let b=this.end(),z="";for(;!b;){const Te=this.get();Ia(Te)?(z+=Te,b=this.end()||z.length>=a.length):b=!0}const ce=a.toUpperCase()===z.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(Ia(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const z=this.get();z==="<space>"?a+=" ":z==="<{>"?(a+="{",b+=1):z==="<}>"?(b-=1,b>0?a+="}":this.index-=1):z==="<$>"?a+="$":z==="<$$>"?a+="$$":a+=z,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const z=this.get();z==="<}>"?(b-=1,b>0&&(y+="}")):z==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(z)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[z])!=null?a:z)}return y}scanNumber(a=!0){var y,b;let z=!1,ce=this.peek();for(;ce==="<space>"||ce==="+"||ce==="-";)this.get(),ce==="-"&&(z=!z),ce=this.peek();a=!!a;let Te=10,Fe=/\d/;if(this.match("'"))Te=8,Fe=/[0-7]/,a=!0;else if(this.match('"'))Te=16,Fe=/[\dA-F]/,a=!0;else if(this.match("x"))Te=16,Fe=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ce=this.get(),ce?ce.length===2&&ce.startsWith("\\")?{number:(z?-1:1)*((y=ce.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(z?-1:1)*((b=ce.codePointAt(0))!=null?b:0),base:"alpha"}:null;let rt="";for(;this.hasPattern(Fe);)rt+=this.get();if(!a&&(this.match(".")||this.match(",")))for(rt+=".";this.hasPattern(Fe);)rt+=this.get();const ut=a?Number.parseInt(rt,Te):Number.parseFloat(rt);return Number.isNaN(ut)?null:{number:z?-ut:ut,base:Te===16?"hexadecimal":Te===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let z=!1;if(b===null)for(;;){const Te=this.peek();if(Te==="-")z=!z;else if(Te!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const Te=this.get();return Te.startsWith("\\")?b?{register:Te,global:!0,factor:(z?-1:1)*b.number}:z?{register:Te,global:!0,factor:-1}:{register:Te,global:!0}:(this.index=y,null)}let ce=this.get();return ce!=null&&ce.startsWith("\\")?(ce=ce.substring(1),this.context.registers[ce]?!z||b!==null?{register:ce,factor:(z?-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 z=this.scanNumber();if(z)return z;if(this.end()||!Ia(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=Ye(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const rt of y.params)if(rt.isOptional)b.push(this.scanOptionalArgument(rt.type));else{const ut=this.scanArgument(rt.type);ut||this.onError({code:"missing-argument",arg:a}),b.push(ut)}this.beginContext({tabular:y.tabular});const z=[],ce=[];let Te=[],Fe=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),Fe=!0),!Fe&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),Fe=!0),!Fe)if(this.matchColumnSeparator())Te.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){Te.push(this.mathlist),this.mathlist=[];let rt=null;this.skipWhitespace(),this.match("[")&&(rt=this.scanDimen(),this.skipWhitespace(),this.match("]")),ce.push(rt!=null?rt:{dimension:0}),z.push(Te),Te=[]}else this.mathlist.push(...this.scan(rt=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(rt)));while(!Fe);return Te.push(this.mathlist),Te.length>0&&z.push(Te),this.endContext(),y.createAtom(a,z,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=Fe=>Fe==="<}>");let y="",b=null,z=[],ce=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=St(y,"math"),b&&(z=this.scanArguments(b)[1]),ce=this.mathlist,this.mathlist=[]):this.parseExpression();let Te;return y?(console.assert(!!b),z.unshift(this.mathlist),ce&&z.unshift(ce),Te=[b.createAtom({command:y,args:z,style:this.style,mode:this.parseMode})]):Te=this.mathlist,this.endContext(),Te}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(z=>z==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new $a(y,this.parseMode,this.style);return b.verbatimLatex=Bs(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 Vi("",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(!Ia(a)&&!a.startsWith("\\"))return null;this.next();const y=St(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 Eo("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Eo("\\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 Eo(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const z=this.mathlist;this.endContext();const ce=(a=this.scanDelim())!=null?a:".";return new Vi(y==="\\right"?"left...right":"mleft...mright",z,{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 qr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new qr({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 z=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return z===null?!1:(z.explicitSubsupPlacement=!0,a&&(z.subsupPlacement="over-under"),y&&(z.subsupPlacement="adjacent"),b&&(z.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let z=a.infix?2:0;for(;z<a.params.length;){const ce=a.params[z];ce.type==="rest"?b.push(this.scan(Te=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(Te))):ce.isOptional?b.push(this.scanOptionalArgument(ce.type)):ce.type.endsWith("*")?y=ce.type.slice(0,-1):b.push(this.scanArgument(ce.type)),z+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(Ia(a)){const b=Oo.createAtom(this.parseMode,a,ie({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=St(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new Eo(a)];if(b.definitionType==="symbol"){const z=ie({},this.style);b.variant&&(z.variant=b.variant),y=new qr({type:b.type,command:a,style:z,value:String.fromCodePoint(b.codepoint),mode:this.parseMode,verbatimLatex:a})}else{if(b.applyMode||b.applyStyle||b.infix)return this.onError({code:"invalid-command",arg:a}),[new Eo(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 z=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"?z=this.scanString():a==="balanced-string"?z=this.scanBalancedString():a==="colspec"?z=this.scanColspec():a==="value"&&(z=this.scanValue()),this.skipUntilToken("<}>"),z}scanOptionalArgument(a){if(a=a==="auto"?this.parseMode:a,this.skipFiller(),!this.match("["))return null;let y=null;for(;!this.end()&&!this.match("]");)if(a==="string")y=this.scanString();else if(a==="value")y=this.scanValue();else if(a==="colspec")y=this.scanColspec();else if(a==="bbox"){const b={},z=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ce of z){const Te=ce.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(Te)b.padding={dimension:parseInt(Te[1]),unit:Te[2]};else{const Fe=ce.match(/^\s*border\s*:\s*(.*)/);Fe?b.border=Fe[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,z;if(a==="\\placeholder"){const rt=this.scanOptionalArgument("string"),ut=this.scanOptionalArgument("math"),mt=qr.serialize(ut,{defaultMode:"math"});let wt=[],Rt;!Rt&&mt==="correct"?Rt="correct":!Rt&&mt==="incorrect"?Rt="incorrect":mt!==""&&(wt=ut);const Gt=this.scanOptionalArgument("string")==="locked",ir=this.scanArgument("auto");let cr;return ir&&Array.isArray(ir)&&ir.length>0?cr=ir:ir&&typeof ir=="object"&&"group"in ir?cr=ir.group:cr=wt,rt?[new js(rt,Rt,Gt,cr!=null?cr:wt,{mode:this.parseMode,style:this.style})]:[new mi({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const rt=this.index,ut=this.scanLiteralGroup()||this.next();if(!ut)return null;if(this.context.registers[ut.substring(1)]){const mt=this.scanArgument("string");mt!==null&&(this.context.registers[ut.substring(1)]=mt);const wt=Pi([a,Bs(this.tokens.slice(rt,this.index))]);return[new qr({type:"text",value:"",verbatimLatex:wt})]}}let ce=this.scanMacro(a);if(ce)return[ce];const Te=St(a,this.parseMode);if(!Te)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(rt=>new qr({type:"text",value:rt,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new Eo(a)]);const Fe=this.index;if(Te.definitionType==="symbol"){const rt=ie({},this.style);Te.variant&&(rt.variant=Te.variant),ce=new qr({type:Te.type,command:a,style:rt,value:String.fromCodePoint(Te.codepoint),mode:this.parseMode})}else{if(Te.ifMode&&!Te.ifMode.includes(this.parseMode))return[];const rt=this.parseMode;Te.applyMode&&(this.parseMode=Te.applyMode);let ut,mt=[];if(Te.parse?mt=Te.parse(this):[ut,mt]=this.scanArguments(Te),this.parseMode=rt,Te.applyMode&&!Te.applyStyle&&!Te.createAtom)return qe(mt[0]);if(Te.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof Te.createAtom=="function")ce=Te.createAtom({command:a,args:mt,style:this.style,mode:this.parseMode}),ut&&(ce.body=qe(this.scanArgument(ut)));else if(typeof Te.applyStyle=="function"){const wt=ie(ie({},this.style),Te.applyStyle(a,mt,this.context)),Rt=this.parseMode;if(Te.applyMode&&(this.parseMode=Te.applyMode),ut){const Gt=this.style;this.style=wt;const ir=this.scanArgument(ut);return this.style=Gt,this.parseMode=Rt,qe(ir)}this.style=wt}else ce=new qr({type:"mord",command:(b=Te.command)!=null?b:a,style:ie({},this.style),value:a,mode:(z=Te.applyMode)!=null?z:this.parseMode})}if(!ce)return null;if(ce instanceof qr&&ce.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const rt=Pi([a,Bs(this.tokens.slice(Fe,this.index))]);rt&&(ce.verbatimLatex=rt)}if(ce.verbatimLatex===null&&(ce.verbatimLatex=void 0),ce.isFunction&&this.smartFence){const rt=this.scanSmartFence();if(rt)return[ce,rt]}return[ce]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(Ia(a)){const y=Oo.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 ys(" "," ",this.style)]:null:(a==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:a}),null)}scanMacro(a){var y;const b=this.context.getMacro(a);if(!b)return null;const z=this.index,ce=b.args,Te={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let Fe=1;Fe<=ce;Fe++){let rt=this.scanLiteralGroup();if(!rt){const ut=this.index;this.scanExpression(),rt=Bs(this.tokens.slice(ut,this.index))}Te[Fe]=rt}return new ou(a,{expand:b.expand,captureSelection:b.captureSelection,args:z===this.index?null:Bs(this.tokens.slice(z,this.index)),style:this.parsingContext.style,body:qa(b.def,{context:this.context,parseMode:this.parseMode,args:Fe=>Te[Fe],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,z;let ce=(z=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?z: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 qa(a,y){var b,z,ce,Te;const Fe=(b=y==null?void 0:y.args)!=null?b:void 0,rt=new ml(ms(a,Fe),y==null?void 0:y.context,{args:Fe,mathstyle:(z=y==null?void 0:y.mathstyle)!=null?z:"displaystyle",parseMode:(ce=y==null?void 0:y.parseMode)!=null?ce:"math",style:(Te=y==null?void 0:y.style)!=null?Te:{}}),ut=[];for(;!rt.end();)ut.push(...rt.scan(()=>!1));return ut}function rp(a,y){var b;const z=new ml(ms(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!z.end();)z.scan();return z.errors}var np=class zm extends qr{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const z=ua.go(Bn.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=qa(z),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new zm(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=qr.createBox(y,this.body,{type:"inner"});return this.caret&&(b.caret=this.caret),this.bind(y,b)}_serialize(y){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};kt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new np(a.command,(y=a.args[0])!=null?y:"")}});var Bn={go:function(a,y){if(!a)return[];y===void 0&&(y="ce");var b="0",z={};z.parenthesisLevel=0,a=a.replace(/\n/g," "),a=a.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),a=a.replace(/[\u2026]/g,"...");for(var ce,Te=10,Fe=[];;){ce!==a?(Te=10,ce=a):Te--;var rt=Bn.stateMachines[y],ut=rt.transitions[b]||rt.transitions["*"];e:for(var mt=0;mt<ut.length;mt++){var wt=Bn.patterns.match_(ut[mt].pattern,a);if(wt){for(var Rt=ut[mt].task,Gt=0;Gt<Rt.action_.length;Gt++){var ir;if(rt.actions[Rt.action_[Gt].type_])ir=rt.actions[Rt.action_[Gt].type_](z,wt.match_,Rt.action_[Gt].option);else if(Bn.actions[Rt.action_[Gt].type_])ir=Bn.actions[Rt.action_[Gt].type_](z,wt.match_,Rt.action_[Gt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Rt.action_[Gt].type_+")"];Bn.concatArray(Fe,ir)}if(b=Rt.nextState||b,a.length>0){if(Rt.revisit||(a=wt.remainder),!Rt.toContinue)break e}else return Fe}}if(Te<=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=Bn.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 Bn.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return Bn.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return Bn.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return Bn.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return Bn.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return Bn.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return Bn.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return Bn.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return Bn.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return Bn.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return Bn.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return Bn.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return Bn.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 Bn.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return Bn.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return Bn.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return Bn.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 Bn.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return Bn.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return Bn.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return Bn.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return Bn.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return Bn.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return Bn.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return Bn.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=Bn.patterns.findObserveGroups(a,"","$","$","");return b&&(y=b.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),y)?{match_:y[0],remainder:a.substr(y[0].length)}:null},amount2:function(a){return this.amount(a)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(a){if(a.match(/^\([a-z]+\)$/))return null;var y=a.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return y?{match_:y[0],remainder:a.substr(y[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(a,y,b,z,ce,Te,Fe,rt,ut,mt){var wt=function(Fr,sn){if(typeof sn=="string")return Fr.indexOf(sn)!==0?null:sn;var Fn=Fr.match(sn);return Fn?Fn[0]:null},Rt=function(Fr,sn,Fn){for(var xn=0;sn<Fr.length;){var oi=Fr.charAt(sn),fi=wt(Fr.substr(sn),Fn);if(fi!==null&&xn===0)return{endMatchBegin:sn,endMatchEnd:sn+fi.length};if(oi==="{")xn++;else if(oi==="}"){if(xn===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];xn--}sn++}return xn>0,null},Gt=wt(a,y);if(Gt===null||(a=a.substr(Gt.length),Gt=wt(a,b),Gt===null))return null;var ir=Rt(a,Gt.length,z||ce);if(ir===null)return null;var cr=a.substring(0,z?ir.endMatchEnd:ir.endMatchBegin);if(Te||Fe){var Hr=this.findObserveGroups(a.substr(ir.endMatchEnd),Te,Fe,rt,ut);if(Hr===null)return null;var Rn=[cr,Hr.match_];return{match_:mt?Rn.join(""):Rn,remainder:Hr.remainder}}else return{match_:cr,remainder:a.substr(ir.endMatchEnd)}},match_:function(a,y){var b=Bn.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return Bn.patterns.patterns[a](y);var z=y.match(b);if(z){var ce;return z[2]?ce=[z[1],z[2]]:z[1]?ce=z[1]:ce=z[0],{match_:ce,remainder:y.substr(z[0].length)}}return null}},actions:{"a=":function(a,y){a.a=(a.a||"")+y},"b=":function(a,y){a.b=(a.b||"")+y},"p=":function(a,y){a.p=(a.p||"")+y},"o=":function(a,y){a.o=(a.o||"")+y},"q=":function(a,y){a.q=(a.q||"")+y},"d=":function(a,y){a.d=(a.d||"")+y},"rm=":function(a,y){a.rm=(a.rm||"")+y},"text=":function(a,y){a.text_=(a.text_||"")+y},insert:function(a,y,b){return{type_:b}},"insert+p1":function(a,y,b){return{type_:b,p1:y}},"insert+p1+p2":function(a,y,b){return{type_:b,p1:y[0],p2:y[1]}},copy:function(a,y){return y},rm:function(a,y){return{type_:"rm",p1:y||""}},text:function(a,y){return Bn.go(y,"text")},"{text}":function(a,y){var b=["{"];return Bn.concatArray(b,Bn.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return Bn.go(y,"tex-math")},"tex-math tight":function(a,y){return Bn.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 Bn.go(y)},"1/2":function(a,y){var b=[];y.match(/^[+\-]/)&&(b.push(y.substr(0,1)),y=y.substr(1));var z=y.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return z[1]=z[1].replace(/\$/g,""),b.push({type_:"frac",p1:z[1],p2:z[2]}),z[3]&&(z[3]=z[3].replace(/\$/g,""),b.push({type_:"tex-math",p1:z[3]})),b},"9,9":function(a,y){return Bn.go(y,"9,9")}},createTransitions:function(a){var y,b,z,ce,Te={};for(y in a)for(b in a[y])for(z=b.split("|"),a[y][b].stateArray=z,ce=0;ce<z.length;ce++)Te[z[ce]]=[];for(y in a)for(b in a[y])for(z=a[y][b].stateArray||[],ce=0;ce<z.length;ce++){var Fe=a[y][b];if(Fe.action_){Fe.action_=[].concat(Fe.action_);for(var rt=0;rt<Fe.action_.length;rt++)typeof Fe.action_[rt]=="string"&&(Fe.action_[rt]={type_:Fe.action_[rt]})}else Fe.action_=[];for(var ut=y.split("|"),mt=0;mt<ut.length;mt++)if(z[ce]==="*")for(var wt in Te)Te[wt].push({pattern:ut[mt],task:Fe});else Te[z[ce]].push({pattern:ut[mt],task:Fe})}return Te},stateMachines:{}};Bn.stateMachines={ce:{transitions:Bn.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(a,y){var b;if((a.d||"").match(/^[0-9]+$/)){var z=a.d;a.d=void 0,b=this.output(a),a.b=z}else b=this.output(a);return Bn.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 Bn.concatArray(b,this.output(a)),Bn.concatArray(b,Bn.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var z=Bn.patterns.match_("orbital",a.o||""),ce=Bn.patterns.match_("one lowercase greek letter $",a.o||""),Te=Bn.patterns.match_("one lowercase latin letter $",a.o||""),Fe=Bn.patterns.match_("$one lowercase latin letter$ $",a.o||""),rt=y==="-"&&(z&&z.remainder===""||ce||Te||Fe);rt&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!z&&Te&&(a.o="$"+a.o+"$");var ut=[];return rt?(Bn.concatArray(ut,this.output(a)),ut.push({type_:"hyphen"})):(z=Bn.patterns.match_("digits",a.d||""),b&&z&&z.remainder===""?(Bn.concatArray(ut,Bn.actions["d="](a,y)),Bn.concatArray(ut,this.output(a))):(Bn.concatArray(ut,this.output(a)),Bn.concatArray(ut,Bn.actions.bond(a,y,"-")))),ut},"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:Bn.go(y,"o")}},comma:function(a,y){var b=y.replace(/\s*$/,""),z=b!==y;return z&&a.parenthesisLevel===0?{type_:"comma enumeration L",p1:b}:{type_:"comma enumeration M",p1:b}},output:function(a,y,b){var z;if(!a.r)z=[],!a.a&&!a.b&&!a.p&&!a.o&&!a.q&&!a.d&&!b||(a.sb&&z.push({type_:"entitySkip"}),!a.o&&!a.q&&!a.d&&!a.b&&!a.p&&b!==2?(a.o=a.a,a.a=void 0):!a.o&&!a.q&&!a.d&&(a.b||a.p)?(a.o=a.a,a.d=a.b,a.q=a.p,a.a=a.b=a.p=void 0):a.o&&a.dType==="kv"&&Bn.patterns.match_("d-oxidation$",a.d||"")?a.dType="oxidation":a.o&&a.dType==="kv"&&!a.q&&(a.dType=void 0),z.push({type_:"chemfive",a:Bn.go(a.a,"a"),b:Bn.go(a.b,"bd"),p:Bn.go(a.p,"pq"),o:Bn.go(a.o,"o"),q:Bn.go(a.q,"pq"),d:Bn.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ce;a.rdt==="M"?ce=Bn.go(a.rd,"tex-math"):a.rdt==="T"?ce=[{type_:"text",p1:a.rd||""}]:ce=Bn.go(a.rd);var Te;a.rqt==="M"?Te=Bn.go(a.rq,"tex-math"):a.rqt==="T"?Te=[{type_:"text",p1:a.rq||""}]:Te=Bn.go(a.rq),z={type_:"arrow",r:a.r,rd:ce,rq:Te}}for(var Fe in a)Fe!=="parenthesisLevel"&&Fe!=="beginsWithBond"&&delete a[Fe];return z},"oxidation-output":function(a,y){var b=["{"];return Bn.concatArray(b,Bn.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:Bn.go(y[0]),p2:Bn.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:Bn.go(y[0]),p2:Bn.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:Bn.go(y[0]),p2:Bn.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:Bn.go(y[0]),p2:Bn.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Bn.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:Bn.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:Bn.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:Bn.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:Bn.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:Bn.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Bn.go(y[1],"pq")}}}},bd:{transitions:Bn.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:Bn.go(y[1],"bd")}}}},oxidation:{transitions:Bn.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:Bn.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:Bn.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:Bn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Bn.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]&&(Bn.concatArray(b,Bn.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?Bn.concatArray(b,Bn.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]),Bn.concatArray(b,Bn.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=Bn.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var z=Bn.patterns.match_("{(...)}",a.q||"");if(z&&z.remainder===""&&(a.q=z.match_),a.d&&(a.d=a.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.d=a.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),a.q){a.q=a.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.q=a.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var ce={d:Bn.go(a.d,"pu"),q:Bn.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_:"/"}),Bn.concatArray(y,ce.q))}else y=Bn.go(a.d,"pu-2");for(var Te in a)delete a[Te];return y}}},"pu-2":{transitions:Bn.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=Bn.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=Bn.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var z in a)delete a[z];return y}}},"pu-9,9":{transitions:Bn.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){var b=a.text_.length%3;b===0&&(b=3);for(var z=a.text_.length-3;z>0;z-=3)y.push(a.text_.substr(z,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(0,b)),y.reverse()}else y.push(a.text_);for(var 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,z=0;z<b;z+=3)y.push(a.text_.substr(z,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(z))}else y.push(a.text_);for(var ce in a)delete a[ce];return y}}}};var ua={go:function(a,y){if(!a)return"";for(var b="",z=!1,ce=0;ce<a.length;ce++){var Te=a[ce];typeof Te=="string"?b+=Te:(b+=ua._go2(Te),Te.type_==="1st-level escape"&&(z=!0))}return!y&&!z&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&ua.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:ua._goInner(a.a),b:ua._goInner(a.b),p:ua._goInner(a.p),o:ua._goInner(a.o),q:ua._goInner(a.q),d:ua._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 "+ua._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+ua._goInner(a.p1);break;case"bond":if(y=ua._getBond(a.kind_),!y)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+a.kind_+")"];break;case"frac":var z="\\frac{"+a.p1+"}{"+a.p2+"}";y="\\mathchoice{\\textstyle"+z+"}{"+z+"}{"+z+"}{"+z+"}";break;case"pu-frac":var ce="\\frac{"+ua._goInner(a.p1)+"}{"+ua._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ce+"}{"+ce+"}{"+ce+"}{"+ce+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+ua._goInner(a.p1)+"}{"+ua._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+ua._goInner(a.p1)+"}{"+ua._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+ua._goInner(a.p1)+"}{"+ua._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+ua._goInner(a.p1)+"}_{"+ua._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+ua._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var Te={rd:ua._goInner(a.rd),rq:ua._goInner(a.rq)},Fe=ua._getArrow(a.r);Te.rd||Te.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(Fe="\\long"+Fe,Te.rd&&(Fe="\\overset{"+Te.rd+"}{"+Fe+"}"),Te.rq&&(a.r==="<-->"?Fe="\\underset{\\lower2mu{"+Te.rq+"}}{"+Fe+"}":Fe="\\underset{\\lower6mu{"+Te.rq+"}}{"+Fe+"}"),Fe=" {}\\mathrel{"+Fe+"}{} "):(Te.rq&&(Fe+="[{"+Te.rq+"}]"),Fe+="{"+Te.rd+"}",Fe=" {}\\mathrel{\\x"+Fe+"}{} "):Fe=" {}\\mathrel{\\long"+Fe+"}{} ",y=Fe;break;case"operator":y=ua._getOperator(a.kind_);break;case"1st-level escape":y=a.p1+" ";break;case"space":y=" ";break;case"entitySkip":y="~";break;case"pu-space-1":y="~";break;case"pu-space-2":y="\\mkern3mu ";break;case"1000 separator":y="\\mkern2mu ";break;case"commaDecimal":y="{,}";break;case"comma enumeration L":y="{"+a.p1+"}\\mkern6mu ";break;case"comma enumeration M":y="{"+a.p1+"}\\mkern3mu ";break;case"comma enumeration S":y="{"+a.p1+"}\\mkern1mu ";break;case"hyphen":y="\\text{-}";break;case"addition compound":y="\\,{\\cdot}\\,";break;case"electron dot":y="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":y="{\\times}";break;case"prime":y="\\prime ";break;case"cdot":y="\\cdot ";break;case"tight cdot":y="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":y="\\times ";break;case"circa":y="{\\sim}";break;case"^":y="uparrow";break;case"v":y="downarrow";break;case"ellipsis":y="\\ldots ";break;case"/":y="/";break;case" / ":y="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return y},_getArrow:function(a){switch(a){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(a){switch(a){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(a){switch(a){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function My(a){}function ky(a){}var ip=class Km extends qr{constructor(y){super(oe(ie({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Km(y)}toJson(){return oe(ie({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new _n(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=St(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):sa(this.command,this.value)}},ap=class Hm extends qr{constructor(y){super(oe(ie({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Hm(y)}toJson(){return oe(ie({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=Pr(this.value,this.size,y,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return b?(b=this.bind(y,b),this.caret&&(b.caret=this.caret),b):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=St(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):sa(this.command,this.value)}},ud=class Wm extends qr{constructor(y,b,z,ce){var Te,Fe;super({type:"enclose",command:y,style:ce.style}),this.body=b,this.backgroundcolor=ce.backgroundcolor,z.updiagonalarrow&&(z.updiagonalstrike=!1),z.box&&(z.left=!1,z.right=!1,z.bottom=!1,z.top=!1),this.notation=z,this.shadow=(Te=ce.shadow)!=null?Te:"none",this.strokeWidth=(Fe=ce.strokeWidth)!=null?Fe:"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 Wm(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 z=St(this.command,this.mode);if(z!=null&&z.serialize)return z.serialize(this,y);let ce=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ce+="{"+Object.keys(this.notation).join(" ")+"}";let Te="",Fe="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(Te+=Fe+'mathbackground="'+this.backgroundcolor+'"',Fe=","),this.shadow&&this.shadow!=="auto"&&(Te+=Fe+'shadow="'+this.shadow+'"',Fe=","),this.strokeWidth||this.strokeStyle!=="solid"?(Te+=Fe+this.borderStyle,Fe=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(Te+=Fe+'mathcolor="'+this.strokeColor+'"',Fe=","),Te&&(ce+=`[${Te}]`)}return sa(ce,this.bodyToLatex(y))}render(y){const b=new ji({parent:y},this.style),z=qr.createBox(b,this.body);if(!z)return null;const ce=a0(this.borderStyle),Te=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});z.setStyle("position","relative"),z.setStyle("display","inline-block"),z.setStyle("top",Te,"em"),z.setStyle("height",z.height+z.depth,"em"),z.setStyle("width",z.width,"em");const Fe=new _n(null,{classes:"ML__notation"});let rt=z.height+z.depth+2*Te;const ut=z.width+2*Te;let mt="";if(this.notation.horizontalstrike&&(mt+=this.line(3,50,97,50)),this.notation.verticalstrike&&(mt+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(mt+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(mt+=this.line(3,3,97,97)),this.notation.updiagonalarrow){mt+=this.line(Te.toString(),(Te+z.depth+z.height).toString(),(Te+z.width).toString(),Te.toString());const cr=.03*Math.sqrt(ut*ut+rt*rt)*1,Hr=z.width*cr,Rn=(z.depth+z.height)*cr,Fr=Te+z.width;let sn=Te;sn+Rn-.4*Hr<0&&(sn=.4*Hr-Rn),mt+='<polygon points="',mt+=`${Fr},${sn} ${Fr-Hr-.4*Rn},${sn+Rn-.4*Hr} `,mt+=`${Fr-.7*Hr},${sn+.7*Rn} ${Fr-Hr+.4*Rn},${sn+Rn+.4*Hr} `,mt+=`${Fr},${sn}`,mt+=`" stroke='none' fill="${this.strokeColor}"`,mt+="/>"}let wt=0;if(this.notation.phasorangle){const Gt=op(b),ir=(z.height+z.depth+2*Gt+Te).toString(),cr=(z.height+z.depth)/2;mt+=this.line(Te.toString(),ir,(Te+cr+z.width).toString(),ir),mt+=this.line(Te.toString(),ir,(Te+cr).toString(),(Te-Gt).toString()),rt+=Gt,wt=cr,z.left+=rt/2-Te}if(this.notation.longdiv){const Gt=op(b);rt+=Gt,mt+=this.line(Te.toString(),Te.toString(),(Te+z.width).toString(),Te.toString());const ir=.3;wt=ir+Gt,z.left+=ir+Gt,z.setTop(Te+Gt),mt+='<path d="',mt+=`M ${Te} ${Te} a${ir} ${(z.depth+z.height+2*Gt)/2}, 0, 1, 1, 0 ${z.depth+z.height+2*Gt} "`,mt+=` stroke-width="${o0(b)}" stroke="${this.strokeColor}" fill="none"`,mt+="/>"}if(Fe.width=z.width+2*Te+wt,Fe.height=z.height+Te,Fe.depth=z.depth+Te,Fe.setStyle("box-sizing","border-box"),Fe.setStyle("left",`calc(-${ce} / 2 )`),Fe.setStyle("height",`${Math.floor(100*rt)/100}em`),Fe.setStyle("top",`calc(${ce} / 2 )`),this.backgroundcolor&&Fe.setStyle("background-color",this.backgroundcolor),this.notation.box&&Fe.setStyle("border","1px solid red"),this.notation.actuarial&&(Fe.setStyle("border-top",this.borderStyle),Fe.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(Fe.setStyle("border-bottom",this.borderStyle),Fe.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(Fe.setStyle("border-radius","8px"),Fe.setStyle("border",this.borderStyle)),this.notation.circle&&(Fe.setStyle("border-radius","50%"),Fe.setStyle("border",this.borderStyle)),this.notation.top&&Fe.setStyle("border-top",this.borderStyle),this.notation.left&&Fe.setStyle("border-left",this.borderStyle),this.notation.right&&Fe.setStyle("border-right",this.borderStyle),this.notation.bottom&&Fe.setStyle("border-bottom",this.borderStyle),mt){let Gt="";this.shadow==="auto"&&(Gt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(Gt+=`filter: drop-shadow(${this.shadow})`),Gt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,Gt+=' stroke-linecap="round"',this.svgStrokeStyle&&(Gt+=` stroke-dasharray="${this.svgStrokeStyle}"`),Fe.svgStyle=Gt,Fe.svgOverlay=mt}const Rt=new _n([Fe,z]);return Rt.setStyle("position","relative"),Rt.setStyle("vertical-align",Te,"em"),Rt.setStyle("height",`${Math.floor(100*(z.height+z.depth+2*Te))/100}em`),Rt.setStyle("display","inline-block"),Rt.height=Fe.height,Rt.depth=Fe.depth,Rt.width=Fe.width-2*Te,Rt.left=Te,Rt.right=Te,this.caret&&(Rt.caret=this.caret),Rt.wrap(b)}line(y,b,z,ce){return`<line x1="${xf(y)}" y1="${xf(b)}" x2="${xf(z)}" y2="${xf(ce)}" vector-effect="non-scaling-stroke"></line>`}};function xf(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?hs:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var su=class Um extends qr{constructor(y,b,z){var ce,Te;super(oe(ie({},z),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ce=z==null?void 0:z.hasBarLine)!=null?ce:!0,this.continuousFraction=(Te=z==null?void 0:z.continuousFraction)!=null?Te:!1,this.numerPrefix=z==null?void 0:z.numerPrefix,this.denomPrefix=z==null?void 0:z.denomPrefix,this.mathstyleName=z==null?void 0:z.mathstyleName,this.leftDelim=z==null?void 0:z.leftDelim,this.rightDelim=z==null?void 0:z.rightDelim,this.fractionNavigationOrder=z==null?void 0:z.fractionNavigationOrder}static fromJson(y){return new Um(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,z;const ce=new ji({parent:y,mathstyle:this.mathstyleName},this.style),Te=ce.metrics,Fe=new ji({parent:ce,mathstyle:this.continuousFraction?"":"numerator"},this.style),rt=this.numerPrefix?new _n([new _n(this.numerPrefix),qr.createBox(Fe,this.above)],{isTight:Fe.isTight,type:"ignore"}):(b=qr.createBox(Fe,this.above,{type:"ignore"}))!=null?b:new _n(null,{type:"ignore"}),ut=new ji({parent:ce,mathstyle:this.continuousFraction?"":"denominator"},this.style),mt=this.denomPrefix?new _n([new _n(this.denomPrefix),qr.createBox(ut,this.below,{type:"ignore"})]):(z=qr.createBox(ut,this.below,{type:"ignore"}))!=null?z:new _n(null,{type:"ignore"}),wt=this.hasBarLine?Te.defaultRuleThickness:0;let Rt,Gt=0,ir;ce.isDisplayStyle?(Rt=Fe.metrics.num1,Gt=wt>0?3*wt:7*wt,ir=ut.metrics.denom1):(wt>0?(Rt=Fe.metrics.num2,Gt=wt):(Rt=Fe.metrics.num3,Gt=3*Te.defaultRuleThickness),ir=ut.metrics.denom2);const cr=[];this.isSelected&&cr.push("ML__selected");const Hr=rt.depth,Rn=mt.height;let Fr;if(wt<=0){const ui=Rt-Hr-(Rn-ir);ui<Gt&&(Rt+=(Gt-ui)/2,ir+=(Gt-ui)/2),Fr=new ra({individualShift:[{box:rt,shift:-Rt,classes:[...cr,"ML__center"]},{box:mt,shift:ir,classes:[...cr,"ML__center"]}]}).wrap(ce)}else{const ui=new _n(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});ui.softWidth=Math.max(rt.width,mt.width),ui.height=wt/2,ui.depth=wt/2;const zi=po+wt/2;Rt<Gt+Hr+zi&&(Rt=Gt+Hr+zi);const ea=po-wt/2;ir<Gt+Rn-ea&&(ir=Gt+Rn-ea),Fr=new ra({individualShift:[{box:mt,shift:ir,classes:[...cr,"ML__center"]},{box:ui,shift:-ea,classes:cr},{box:rt,shift:-Rt,classes:[...cr,"ML__center"]}]}).wrap(ce)}const sn=ce.isDisplayStyle?Te.delim1:Te.delim2,Fn=this.leftDelim?this.bind(y,ti("open",this.leftDelim,sn,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):ni(ce,"open");let xn=null;this.continuousFraction?xn=new _n(null,{type:"close"}):this.rightDelim?xn=this.bind(y,ti("close",this.rightDelim,sn,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):xn=ni(ce,"close");const oi=new _n([Fn,Fr,xn],{isTight:ce.isTight,type:"inner",classes:"mfrac"}),fi=this.bind(y,oi);return this.caret&&(fi.caret=this.caret),this.attachSupsub(y,{base:fi})}},ao=class Zm extends qr{constructor(y,b){var z;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(z=b==null?void 0:b.isSuggestion)!=null?z:!1,this.isError=!1}static fromJson(y){const b=new 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 _n(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}},dd=class Vm extends qr{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new ao(b)),this.skipBoundary=!1}static fromJson(y){return new Vm("")}toJson(){return super.toJson()}render(y){const b=qr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,z;return(z=(b=this.body)==null?void 0:b.map(ce=>ce.value).join(""))!=null?z:""}},hh=class Gm extends qr{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 Gm(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.value&&(y.symbol=this.value),y}render(y){var b;const z=y.isDisplayStyle&&this.value!=="\\smallint",ce=new _n(this.value,{fontFamily:z?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(z?"large-op":"small-op"),type:"op",maxFontSize:y.scalingFactor,isSelected:this.isSelected});if(!ce)return null;ce.right=ce.italic;const Te=(ce.height-ce.depth)/2-po*y.scalingFactor,Fe=ce.italic;ce.setTop(Te);let rt=ce;if(this.superscript||this.subscript){const ut=(b=this.subsupPlacement)!=null?b:"auto";rt=ut==="over-under"||ut==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ce,baseShift:Te,slant:Fe}):this.attachSupsub(y,{base:ce})}return new _n(this.bind(y,rt),{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=St(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const z=[];return z.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&z.push("\\limits"),this.subsupPlacement==="adjacent"&&z.push("\\nolimits"),this.subsupPlacement==="auto"&&z.push("\\displaylimits")),z.push(this.supsubToLatex(y)),Pi(z)}},fc=class Xm extends qr{constructor(y){const b=y.body;super(oe(ie({},y),{type:"overlap",body:typeof b=="string"?[new qr({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 Xm(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=qr.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new _n([b,new _n(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},ts=class Ym extends qr{constructor(y){var b,z,ce,Te;super({type:"overunder",command:y.command,style:y.style,mode:y.mode,body:y.body,skipBoundary:(b=y.skipBoundary)!=null?b:!0}),this.subsupPlacement=y.supsubPlacement,this.svgAbove=y.svgAbove,this.svgBelow=y.svgBelow,this.svgBody=y.svgBody,this.above=y.above,this.below=y.below,this.boxType=(z=y.boxType)!=null?z:"ord",this.paddedBody=(ce=y.paddedBody)!=null?ce:!1,this.paddedLabels=(Te=y.paddedLabels)!=null?Te:!1}static fromJson(y){return new Ym(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?Ho(this.svgBody):qr.createBox(y,this.body,{type:"ignore"});const z=new ji({parent:y,mathstyle:"scriptstyle"},this.style);let ce=null;this.svgAbove?ce=Ho(this.svgAbove):this.above&&(ce=qr.createBox(z,this.above,{type:"ignore"}));let Te=null;this.svgBelow?Te=Ho(this.svgBelow):this.below&&(Te=qr.createBox(z,this.below,{type:"ignore"})),this.paddedBody&&(b=new _n([ni(y,"open"),b,ni(y,"close")],{type:"ignore"}));let Fe=s0(y,{base:b,above:ce,below:Te,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return Fe?(this.subsupPlacement==="over-under"?Fe=this.attachLimits(y,{base:Fe,type:Fe.type}):Fe=this.attachSupsub(y,{base:Fe}),this.caret&&(Fe.caret=this.caret),this.bind(y,Fe)):null}};function s0(a,y){if(!y.base)return null;if(!y.above&&!y.below){const rt=new _n(y.base,{type:y.type});return rt.setStyle("position","relative"),rt}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let z=null;const ce=y.base,Te=0,Fe=["ML__center"];if(y.paddedAboveBelow&&Fe.push("ML__label_padding"),y.below&&y.above){const rt=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ce.depth+Te;z=new ra({bottom:rt,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:Fe},{box:ce,classes:["ML__center"]},b,{box:y.above,classes:Fe},a.metrics.bigOpSpacing5]})}else y.below?z=new ra({top:ce.height-Te,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:Fe},{box:ce,classes:["ML__center"]}]}):y.above&&(z=new ra({bottom:ce.depth+Te,children:[{box:ce,classes:["ML__center"]},b,{box:y.above,classes:Fe},a.metrics.bigOpSpacing5]}));return new _n(z,{type:y.type})}var fd=class Jm extends qr{constructor(y){var b,z,ce,Te;super(oe(ie({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(z=y.smashDepth)!=null?z:!1,this.smashHeight=(ce=y.smashHeight)!=null?ce:!1,this.smashWidth=(Te=y.smashWidth)!=null?Te:!1}static fromJson(y){return new Jm(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 ji({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),qr.createBox(b,this.body,{classes:"inner"});const z=qr.createBox(this.isInvisible?b:y,this.body);if(!z)return null;if(this.smashWidth){const ce=new _n(null,{classes:"fix"});return new _n([z,ce],{classes:"rlap"}).wrap(y)}if(!this.smashHeight&&!this.smashDepth)return z;if(this.smashHeight&&(z.height=0),this.smashDepth&&(z.depth=0),z.children)for(const ce of z.children)this.smashHeight&&(ce.height=0),this.smashDepth&&(ce.depth=0);return new ra({firstBaseline:[{box:z}]},{type:z.type}).wrap(y)}},hd=class Qm extends qr{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 Qm(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 _n(this.mode==="math"?null:" ");let z;if(this.width!==void 0)z=new _n(null,{classes:"mspace"}),z.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";z=new _n(null,{classes:ce})}return z=this.bind(y,z),this.caret&&(z.caret=this.caret),z}_serialize(y){var b;if(!y.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const z=St(this.command,this.mode);if(z!=null&&z.serialize)return z.serialize(this,y);const ce=(b=this.command)!=null?b:"";return this.width===void 0?ce:this._braced&&!("register"in this.width)?`${ce}{${Oa(this.width)}}`:`${ce}${Oa(this.width)}`}},sp=class $m extends qr{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 $m(oe(ie({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=St(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const z=this.command,ce=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?sa(`${z}[${this.aboveToLatex(y)}]`,ce):/^[0-9]$/.test(ce)?`${z}${ce}`:sa(z,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 z=new ji({parent:y,mathstyle:"cramp"},this.style),ce=(b=qr.createBox(z,this.body,{type:"inner"}))!=null?b:new _n(null),Te=z.scalingFactor,Fe=z.metrics.defaultRuleThickness/Te,rt=y.isDisplayStyle?hs:Fe,ut=new _n(null,{classes:"ML__sqrt-line",style:this.style});ut.height=Fe,ut.softWidth=ce.width;let mt=Te*(Fe+rt/4);const Rt=Math.max(Te*2*rt,ce.height+ce.depth)+mt+Fe,Gt=new ji({parent:y},this.style),ir=this.bind(Gt,new _n(ti("inner","\\surd",Rt,!1,Gt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!ir)return null;const cr=ir.height+ir.depth-Fe;cr>ce.height+ce.depth+mt&&(mt=(mt+cr-(ce.height+ce.depth))/2),ir.setTop(ir.height-ce.height-mt);const Hr=this.bind(y,new ra({firstBaseline:[{box:new _n(ce)},mt-2*Fe,{box:ut},Fe]})),Rn=qr.createBox(new ji({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Rn){const Fn=new _n([ir,Hr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Fn.setStyle("display","inline-block"),Fn.setStyle("height",Fn.height+Fn.depth,"em"),this.caret&&(Fn.caret=this.caret),this.bind(y,Fn)}const Fr=new ra({shift:-.6*(Math.max(ir.height,Hr.height)-Math.max(ir.depth,Hr.depth)),children:[{box:Rn}]}),sn=new _n([new _n(Fr,{classes:"ML__sqrt-index",type:"ignore"}),ir,Hr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return sn.height=ir.height,sn.depth=ir.depth,this.caret&&(sn.caret=this.caret),this.bind(y,sn)}},l0=class extends _n{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 wf(a,y){if(!a.parent)return;const b=a.parent.children,z=b.indexOf(a);let ce=z-1;for(;ce>=0&&b[ce].type==="ignore";)ce-=1;if(ce<0&&a.parent.parent&&a.parent.type==="lift"){wf(a.parent,y);return}z>0&&b[z-1].type==="skip"?b[z-1].width+=y:b.splice(z,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){md(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 pd(a,y){if(!a.children)return a;const b=a.children;d0(b);const z=y.getRegisterAsEm("thinmuskip"),ce=y.getRegisterAsEm("medmuskip"),Te=y.getRegisterAsEm("thickmuskip");return md(b,(Fe,rt)=>{var ut,mt,wt;if(!Fe)return;const Rt=Fe.type,Gt=rt.isTight?(ut=u0[Rt])!=null?ut:null:(mt=c0[Rt])!=null?mt:null,ir=(wt=Gt==null?void 0:Gt[rt.type])!=null?wt:null;ir===3&&wf(rt,z),ir===4&&wf(rt,ce),ir===5&&wf(rt,Te)}),a}function md(a,y,b=void 0){if(!a)return b;a=[...a];for(const z of a)z.type==="lift"?b=md(z.children,y,b):z.type==="ignore"?md(z.children,y):(y(b,z),md(z.children,y),b=z);return b}var ph=class qm extends qr{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new qr({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:Nl(y.tooltip)}))}toJson(){var y;const b=(y=this.tooltip.body)==null?void 0:y.filter(z=>z.type!=="first").map(z=>z.toJson());return oe(ie({},super.toJson()),{tooltip:b})}render(y){const b=qr.createBox(new ji,this.body);if(!b)return null;const z=new ji({parent:y,mathstyle:"displaystyle"},{fontSize:Os}),ce=Qc(pd(new _n(this.tooltip.render(z),{classes:"ML__tooltip-content"}),z)),Te=new _n([ce,b],{classes:"ML__tooltip-container"});return this.caret&&(Te.caret=this.caret),this.bind(y,Te)}},hc=class e0 extends qr{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 z=new _n(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ce=z;if(this.superscript||this.subscript){const Te=(b=this.subsupPlacement)!=null?b:"auto";ce=Te==="over-under"||Te==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:z}):this.attachSupsub(y,{base:z})}return new _n(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=St(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const z=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&z.push("\\limits"),this.subsupPlacement==="adjacent"&&z.push("\\nolimits"),this.subsupPlacement==="auto"&&z.push("\\displaylimits")),z.push(this.supsubToLatex(y)),Pi(z)}};function Nl(a){if(te(a))return a.map(z=>Nl(z));if(typeof a=="string")return qr.fromJson(a);a=ie({},a);for(const z of Bl)a[z]&&(a[z]=Nl(a[z]));a.args&&(a.args=f0(a.args)),a.array&&(a.array=Nl(a.array));const y=a.type;let b;y==="accent"&&(b=ee.fromJson(a)),y==="array"&&(b=Ti.fromJson(a)),y==="box"&&(b=Ca.fromJson(a)),y==="chem"&&(b=np.fromJson(a)),y==="composition"&&(b=pl.fromJson(a)),y==="delim"&&(b=ip.fromJson(a)),y==="enclose"&&(b=ud.fromJson(a)),y==="error"&&(b=Eo.fromJson(a)),y==="extensible-symbol"&&(b=hh.fromJson(a)),y==="genfrac"&&(b=su.fromJson(a)),y==="group"&&(b=$a.fromJson(a)),y==="latex"&&(b=ao.fromJson(a)),y==="latexgroup"&&(b=dd.fromJson(a)),y==="leftright"&&(b=Vi.fromJson(a)),y==="macro"&&(b=ou.fromJson(a)),y==="macro-argument"&&(b=xs.fromJson(a)),y==="operator"&&(b=hc.fromJson(a)),y==="overlap"&&(b=fc.fromJson(a)),y==="overunder"&&(b=ts.fromJson(a)),y==="placeholder"&&(b=mi.fromJson(a)),y==="prompt"&&(b=js.fromJson(a)),y==="phantom"&&(b=fd.fromJson(a)),y==="sizeddelim"&&(b=ap.fromJson(a)),y==="spacing"&&(b=hd.fromJson(a)),y==="subsup"&&(b=es.fromJson(a)),y==="surd"&&(b=sp.fromJson(a)),y==="text"&&(b=ys.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=qr.fromJson(a));for(const z of Bl)a[z]&&b.setChildren(a[z],z);return a.verbatimLatex!==void 0&&(b.verbatimLatex=a.verbatimLatex),a.subsupPlacement&&(b.subsupPlacement=a.subsupPlacement),a.explicitSubsupPlacement&&(b.explicitSubsupPlacement=!0),a.isFunction&&(b.isFunction=!0),a.isExtensibleSymbol&&(b.isExtensibleSymbol=!0),a.skipBoundary&&(b.skipBoundary=!0),a.captureSelection&&(b.captureSelection=!0),b}function 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=>Nl(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>Nl(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 Oo{constructor(){super("math")}createAtom(a,y,b){var z,ce,Te,Fe;if(y===null)return new qr({type:"mord",mode:"math",command:a,value:a,style:b});const rt=window.MathfieldElement.isFunction((z=y.command)!=null?z:a);if(y.definitionType==="symbol"){const mt=new qr({type:(ce=y.type)!=null?ce:"mord",mode:"math",command:(Te=y.command)!=null?Te:a,value:String.fromCodePoint(y.codepoint),style:b});return rt&&(mt.isFunction=!0),a.startsWith("\\")&&(mt.verbatimLatex=a),mt}const ut=new qr({type:"mord",mode:"math",command:(Fe=y.command)!=null?Fe:a,value:a,style:b});return rt&&(ut.isFunction=!0),a.startsWith("\\")&&(ut.verbatimLatex=a),ut}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:z}=y;b==="normal"&&!z&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",z="italic"),b==="normal"&&!z&&a.value.length===1&&p0.forEach((rt,ut)=>{var mt;rt.test(a.value)&&m0[(mt=y.letterShapeStyle)!=null?mt:"tex"][ut]==="it"&&(z="italic")}),z==="up"&&(z=void 0);const ce=z?b+"-"+z:b;console.assert(lp[ce]!==void 0);const[Te,Fe]=lp[ce];return mh[b]&&!mh[b].test(a.value)?(a.value=ct(a.value,b,z),null):(cp.test(a.value)&&(a.classes+=" lcGreek"),Fe&&(a.classes+=" "+Fe),Te)}};function v0(a,y){const{parent:b}=a[0],z=up(b);return Sa(a,"variant").map(ce=>{const Te=up(ce[0]);let Fe="";Te&&Te!==z&&(Fe={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"}[Te],console.assert(Fe!==void 0));const rt=Pi(ce.map(ut=>ut._serialize(y)));return Fe?sa(Fe,rt):rt})}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 Sa(a,"fontShape").map(b=>{const z=y0(b,y),{fontShape:ce}=b[0].style;let Te="";return ce==="it"&&(Te="\\textit"),ce==="sl"&&(Te="\\textsl"),ce==="sc"&&(Te="\\textsc"),ce==="n"&&(Te="\\textup"),!Te&&ce?`{${sa("\\fontshape",ce)}${Pi(z)}}`:Te?sa(Te,Pi(z)):Pi(z)})}function x0(a,y){return Sa(a,"fontSeries").map(b=>{const z=b0(b,y),{fontSeries:ce}=b[0].style;let Te="";return ce==="b"&&(Te="\\textbf"),ce==="l"&&(Te="\\textlf"),ce==="m"&&(Te="\\textmd"),ce&&!Te?`{${sa("\\fontseries",ce)}${Pi(z)}}`:Te?sa(Te,Pi(z)):Pi(z)})}function w0(a,y){return Sa(a,"fontSize").map(b=>{var z,ce;const Te=x0(b,y),Fe=(ce=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(z=b[0].style.fontSize)!=null?z:""])!=null?ce:"";return Fe?`${Fe} ${Pi(Te)}`:Pi(Te)})}function S0(a,y,b){return Sa(a,"fontFamily").map(z=>{var ce,Te;const Fe=w0(z,y),rt=(Te={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ce=z[0].style.fontFamily)!=null?ce:""])!=null?Te:"";return rt?`\\${rt}{${Pi(Fe)}}`:z[0].style.fontFamily?`{\\fontfamily{${z[0].style.fontFamily}} ${Pi(Fe)}}`:b?`\\text{${Pi(Fe)}}`:Pi(Fe)})}var dp={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},C0=class extends Oo{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new ys(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,z,ce,Te,Fe;const{fontFamily:rt}=y;if(dp[rt]?a.classes+=" "+dp[rt]:rt&&a.setStyle("font-family",rt),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 ut=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ut&&(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"}[(z=ut[1])!=null?z:""])!=null?ce:"",a.classes+=" ",a.classes+=(Fe={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"}[(Te=ut[2])!=null?Te:""])!=null?Fe:"")}return"Main-Regular"}};new C0;var E0=class extends Oo{constructor(){super("latex")}createAtom(a){return new ao(a)}serialize(a,y){return a.filter(b=>b instanceof ao&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new E0;var A0={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:[")",")",")",")"]}},M0={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"]}},O0={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:["=","=","=","="]}},D0={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:["<",">","|",""]}},I0={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:[".",".",".","."]}},B0={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"]}},L0={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:["<",">","",""]}},P0={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 lu(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]"},gd=[],vd;function vh(){switch(we()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Zo(a){(!a.platform||a.platform===vh())&&gd.push(a)}function N0(a,y){var b;const z={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return z;for(const[ce,Te]of Object.entries(y.mapping)){if(Te[0]===a)return z.key=`[${ce}]`,z;if(Te[1]===a)return z.shift=!0,z.key=`[${ce}]`,z;if(Te[2]===a)return z.alt=!0,z.key=`[${ce}]`,z;if(Te[3]===a)return z.shift=!0,z.alt=!0,z.key=`[${ce}]`,z}return z.key=(b=R0[a])!=null?b:"",z}function _0(a){if(a.code)return a;const y=Object.entries(yd().mapping);let b=!1,z=!1,ce="";for(let Te=0;Te<4;Te++){for(const[Fe,rt]of y)if(rt[Te]===a.key){ce=Fe,Te===3?(b=!0,z=!0):Te===2?b=!0:Te===1&&(z=!0);break}if(ce)break}return new KeyboardEvent(a.type,oe(ie({},a),{altKey:b,shiftKey:z,code:ce}))}function j0(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const z=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const ce of gd)((y=ce.mapping[a.code])==null?void 0:y[z])===a.key?ce.score+=1:(b=ce.mapping[a.code])!=null&&b[z]&&(ce.score=0);gd.sort((ce,Te)=>Te.score-ce.score)}function F0(a){vd=gd.find(y=>a.startsWith(y.locale))}function yd(){return vd!=null?vd:gd[0]}function z0(){switch(vh()){case"apple":return gh;case"windows":return fp;case"linux":return hp}return gh}switch(vh()){case"apple":Zo(gh),Zo(M0),Zo(B0),Zo(O0);break;case"windows":Zo(fp),Zo(k0),Zo(L0),Zo(D0);break;case"linux":Zo(hp),Zo(T0),Zo(P0),Zo(I0);break}Zo(A0);function yh(a){var y;const b=/macos|ios/.test(we()),z=a.split("+");let ce="";for(const Te of z)ce&&(ce+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),Te.startsWith("[Key")?ce+=Te.slice(4,5):Te.startsWith("Key")?ce+=Te.slice(3,4):Te.startsWith("[Digit")?ce+=Te.slice(6,7):Te.startsWith("Digit")?ce+=Te.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"}[Te.toLowerCase()])!=null?y:Te.toUpperCase();return ce}function Sf(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((z,ce)=>({x:z.x+ce.clientX,y:z.y+ce.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function pc(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 K0(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 H0=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 Cf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:H0.has(a.code)}function Ef(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Fs=class bl{static get scrim(){return bl._scrim||(bl._scrim=new bl),bl._scrim}static open(y){bl.scrim.open(y)}static close(){bl.scrim.close()}static get state(){return bl.scrim.state}static get element(){return bl.scrim.element}constructor(y){var b,z;this.lightDismiss=(b=y==null?void 0:y.lightDismiss)!=null?b:!0,this.translucent=(z=y==null?void 0:y.translucent)!=null?z:!1,this.state="closed"}get element(){if(this._element)return this._element;const y=document.createElement("div");return y.setAttribute("role","presentation"),y.style.position="fixed",y.style.contain="content",y.style.top="0",y.style.left="0",y.style.right="0",y.style.bottom="0",y.style.zIndex="var(--scrim-zindex, 10099)",y.style.outline="none",this.translucent?(y.style.background="rgba(255, 255, 255, .2)",y.style.backdropFilter="contrast(40%)"):y.style.background="transparent",this._element=y,y}open(y){var b;if(this.state!=="closed")return;this.state="opening",this.onDismiss=y==null?void 0:y.onDismiss,this.savedActiveElement=Ef();const{element:z}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(z),z.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ce=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const Te=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${Te+ce}px`,y!=null&&y.child&&z.append(y.child),this.state="open"}close(){var y,b,z,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:Te}=this;Te.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),Te.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Ef()!==this.savedActiveElement&&((ce=(z=this.savedActiveElement)==null?void 0:z.focus)==null||ce.call(z)),Te.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 W0(a,y,b){let z=null,ce=null,Te=!1,Fe=!1,rt=!1;const ut=new AbortController,mt=ut.signal;return a.addEventListener("keydown",wt=>{if(Te||wt.key==="Process"||wt.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(wt.code)){z=null;return}z=wt,ce=null,b.onKeystroke(wt)?a.textContent="":z=null},{capture:!0,signal:mt}),a.addEventListener("keypress",wt=>{Te||(z&&ce&&b.onKeystroke(z),ce=wt)},{capture:!0,signal:mt}),a.addEventListener("compositionstart",wt=>{a.textContent="",Te=!0,b.onCompositionStart(wt.data)},{capture:!0,signal:mt}),a.addEventListener("compositionupdate",wt=>{Te&&b.onCompositionUpdate(wt.data)},{capture:!0,signal:mt}),a.addEventListener("compositionend",wt=>{a.textContent="",Te&&(Te=!1,b.onCompositionEnd(wt.data))},{capture:!0,signal:mt}),a.addEventListener("beforeinput",wt=>wt.stopImmediatePropagation(),{signal:mt}),a.addEventListener("input",wt=>{var Rt;if(!Te&&(a.textContent="",wt.inputType!=="insertCompositionText")){if(wt.inputType==="insertFromPaste"){wt.preventDefault(),wt.stopPropagation();return}b.onInput((Rt=wt.data)!=null?Rt:""),wt.preventDefault(),wt.stopPropagation()}},{signal:mt}),a.addEventListener("paste",wt=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(wt)||wt.preventDefault(),wt.stopImmediatePropagation()},{signal:mt}),a.addEventListener("cut",wt=>b.onCut(wt),{capture:!0,signal:mt}),a.addEventListener("copy",wt=>b.onCopy(wt),{capture:!0,signal:mt}),a.addEventListener("blur",wt=>{var Rt,Gt;if(((Gt=(Rt=wt.relatedTarget)==null?void 0:Rt._mathfield)==null?void 0:Gt.element)===y){a.focus({preventScroll:!0}),wt.preventDefault(),wt.stopPropagation();return}const ir=Fs.state;if(ir==="open"||ir==="opening"){wt.preventDefault(),wt.stopPropagation();return}if(wt.relatedTarget===wt.target.getRootNode().host){wt.preventDefault(),wt.stopPropagation();return}rt||Fe||(rt=!0,z=null,ce=null,b.onBlur(),rt=!1)},{capture:!0,signal:mt}),a.addEventListener("focus",wt=>{rt||Fe||(Fe=!0,b.onFocus(),Fe=!1)},{capture:!0,signal:mt}),{dispose:()=>ut.abort(),cancelComposition:()=>{Te&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!Fe&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Ef()===a,setAriaLabel:wt=>a.setAttribute("aria-label",wt),setValue:wt=>{var Rt;a.textContent=wt,a.style.left="-1000px",(Rt=window.getSelection())==null||Rt.selectAllChildren(a)},moveTo:(wt,Rt)=>{a.style.top=`${Rt}px`,a.style.left=`${wt}px`}}}function cu(a){var y;if(!a||!Cf(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=_0(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 U0(a){if(ue()){const y=we(),b=a.startsWith("!"),z=a.endsWith(y);if(b&&!z||!b&&z)return!0}return a==="!other"?!1:a==="other"}function Z0(a,y,b){if(a.length===0)return"";const z=lu(pp(mp(b))),ce=lu({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(we()),cmd:!1,win:!1});for(let Te=a.length-1;Te>=0;Te--)if((a[Te].key===z||a[Te].key===ce)&&(!a[Te].ifMode||a[Te].ifMode===y))return a[Te].command;return""}function gp(a){let y=a;return te(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function V0(a,y){let b=[];if(typeof y=="string"){const Te=id[y];te(Te)?b=Te.slice():Te&&b.push(Te)}const z=gp(y),ce=new RegExp("^"+z.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const Te of a)ce.test(gp(Te.command))&&b.push(Te.key);return b.map(yh)}function G0(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 z=a.ifPlatform;if(b.cmd){if(z&&z!=="macos"&&z!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+z+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);z||(z=we()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(z&&z!=="windows")throw new Error('Unexpected "win" modifier with platform "'+z+`"
|
|
|
"win" modifier can only be used with Windows platform.`);z="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(z&&!U0(z))return;if(/^\[.+\]$/.test(b.key))return oe(ie({},a),{key:lu(b)});const ce=N0(b.key,y);if(!ce)return oe(ie({},a),{key:lu(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 ${lu(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:lu(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 X0(a,y){const b=[],z=[];for(const ce of a)try{const Te=G0(ce,y);if(!Te)continue;const Fe=z.find(rt=>rt.key===Te.key&&rt.ifMode===Te.ifMode);if(Fe)throw new Error(`Ambiguous key binding ${ce.key} (${bh(ce.command)}) matches ${Fe.key} (${bh(Fe.command)}) with the ${y.displayName} keyboard layout`);z.push(Te)}catch(Te){Te instanceof Error&&b.push(Te.message)}return[z,b]}var Y0=class extends ki{constructor(){super("latex")}createAtom(a){return new ao(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"}),ya(a)),a.startRecording(),!0):!1}insert(a,y,b){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b||(b={}),b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder");const{silenceNotifications:z}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ce=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Qa(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 Te=[];for(const ut of y)fe.test(ut)&&Te.push(new ao(ut));let Fe=a.at(a.position);if(Fe instanceof dd&&(Fe=Fe.lastChild),!(Fe.parent instanceof dd)){const ut=new dd("");Fe.parent.addChildAfter(ut,Fe),Fe=ut.firstChild}const rt=Fe.parent.addChildrenAfter(Te,Fe);return a.silenceNotifications=ce,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(rt)):rt&&(a.position=a.offsetOf(rt))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=z,!0}};function J0(a){return a.atoms.find(y=>y.type==="latexgroup")}function bd(a){var y,b;const z=a.atoms.find(ce=>ce.type==="latexgroup");return z?(b=(y=z.body)==null?void 0:y.filter(ce=>ce.type==="latex"))!=null?b:[]:[]}function vp(a,y){var b;let z=0,ce=!1;const Te=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;z<=Te&&!ce;){const ut=a.at(z);ce=ut instanceof ao&&ut.isSuggestion,ce||z++}if(!ce)return[void 0,void 0];let Fe=z,rt=!1;for(;Fe<=Te&&!rt;){const ut=a.at(Fe);rt=!(ut instanceof ao&&ut.isSuggestion),rt||Fe++}return[z-1,Fe-1]}new Y0;function Af(a){const y=bd(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 xd(a,y){var b;const{model:z}=a;Af(a);for(const wt of bd(z))wt.isError=!1;if(!z.selectionIsCollapsed||a.options.popoverPolicy==="off"){du(a);return}const ce=[];let Te=z.at(z.position);for(;Te&&Te instanceof ao&&/^[a-zA-Z\*]$/.test(Te.value);)Te=Te.leftSibling;if(Te&&Te instanceof ao&&Te.value==="\\")for(ce.push(Te),Te=Te.rightSibling;Te&&Te instanceof ao&&/^[a-zA-Z\*]$/.test(Te.value);)ce.push(Te),Te=Te.rightSibling;const Fe=ce.map(wt=>wt.value).join(""),rt=Je(a,Fe);if(rt.length===0){if(/^\\[a-zA-Z\*]+$/.test(Fe))for(const wt of ce)wt.isError=!0;du(a);return}const ut=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ut<0?rt.length-1:ut%rt.length;const mt=rt[a.suggestionIndex];if(mt!==Fe){const wt=ce[ce.length-1];wt.parent.addChildrenAfter([...mt.slice(Fe.length-mt.length)].map(Rt=>new ao(Rt,{isSuggestion:!0})),wt),mc(a,{interactive:!0})}$0(a,rt)}function yp(a){const[y,b]=vp(a,{before:a.position});if(y===void 0||b===void 0)return!1;let z=!1;return a.getAtoms([y,b]).forEach(ce=>{ce.isSuggestion&&(ce.isSuggestion=!1,z=!0)}),z}function uu(a,y="accept",b){var z,ce;du(a);const Te=J0(a.model);if(!Te)return!1;if(y==="accept-suggestion"||y==="accept-all"){const mt=bd(a.model).filter(wt=>wt.isSuggestion);if(mt.length!==0){for(const wt of mt)wt.isSuggestion=!1;a.model.position=a.model.offsetOf(mt[mt.length-1])}if(y==="accept-suggestion")return mt.length!==0}const rt=bd(a.model).filter(mt=>!mt.isSuggestion).map(mt=>mt.value).join(""),ut=Te.leftSibling;return Te.parent.removeChild(Te),a.model.position=a.model.offsetOf(ut),a.switchMode((z=b==null?void 0:b.mode)!=null?z:"math"),y==="reject"||(ki.insert(a.model,rt,{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 Mf(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 z=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");z<=1?b.remove():b.dataset.refcount=Number(z-1).toString()}function Q0(a,y){const b=new ji({from:a.context}),z=new qr({mode:"math",type:"root",body:qa(y,{context:b})}),ce=Qc(pd(new _n(z.render(b),{classes:"ML__base"}),b));return $c(ce,{classes:"ML__latex"}).toMarkup()}function $0(a,y){var b;if(y.length===0){du(a);return}let z="";for(const[Te,Fe]of y.entries()){const rt=Fe,ut=Q0(a,Fe),mt=V0(a.keybindings,rt).join("<br>");z+=`<li role="button" data-command="${rt}" ${Te===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${rt}</span><span class="ML__popover__command">${ut}</span>`,mt&&(z+=`<span class="ML__popover__keybinding">${mt}</span>`),z+="</li>"}const ce=q0(a,`<ul>${z}</ul>`);wh()&&((b=ce.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var Te;ce&&!wh()&&(ce.classList.add("is-visible"),kf(a),(Te=ce.querySelector(".ML__popover__current"))==null||Te.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function wh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function kf(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"){du(a);return}if(y!=null&&y.deferred){setTimeout(()=>kf(a),32);return}const z=_s(a.field);if(!z)return;const ce=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,Te=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Fe=window.innerWidth-document.documentElement.clientWidth,rt=window.innerHeight-document.documentElement.clientHeight,ut=window.mathVirtualKeyboard.boundingRect.height,mt=document.getElementById("mathlive-suggestion-popover");z.x+mt.offsetWidth/2>Te-Fe?mt.style.left=`${Te-mt.offsetWidth-Fe}px`:z.x-mt.offsetWidth/2<0?mt.style.left="0":mt.style.left=`${z.x-mt.offsetWidth/2}px`;const wt=z.y-z.height;ce-rt-ut-z.y<wt?(mt.classList.add("ML__popover--reverse-direction"),mt.classList.remove("top-tip"),mt.classList.add("bottom-tip"),mt.style.top=`${z.y-z.height-mt.offsetHeight-15}px`):(mt.classList.remove("ML__popover--reverse-direction"),mt.classList.add("top-tip"),mt.classList.remove("bottom-tip"),mt.style.top=`${z.y+15}px`)}function du(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=Mf("mathlive-suggestion-popover"),jo("suggestion-popover"),jo("core"),b.addEventListener("pointerdown",z=>z.preventDefault()),b.addEventListener("click",z=>{let ce=z.target;for(;ce&&!ce.dataset.command;)ce=ce.parentElement;ce&&(uu(a,"reject"),ki.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 Tf=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 Kl(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(Tf===null)try{const y=yield fetch(Sh,{method:"HEAD"});y.status===200&&(Tf=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${Sh}")`)}return new URL(a,Tf!=null?Tf:Sh).href})}function rg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var Vo="not-loaded";function ng(){return Kl(this,null,function*(){return Vo="not-loaded",Of()})}function Of(){return Kl(this,null,function*(){var a;if(Vo!=="not-loaded")return;if(Vo="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){Vo="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const b=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],z=Array.from(document.fonts).map(Fe=>Fe.family);if(b.every(Fe=>z.includes(Fe))){Vo="ready";return}if(!window.MathfieldElement.fontsDirectory){Vo="not-loaded";return}const ce=yield wp(window.MathfieldElement.fontsDirectory);if(!ce){document.body.classList.add("ML__fonts-did-not-load"),Vo="error";return}const Te=[["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(Fe=>rg(Fe[0].replace(/-[a-zA-Z]+$/,""),`${ce}/${Fe[0]}`,Fe[1]));try{(yield Promise.all(Te.map(rt=>{try{return rt.load()}catch(ut){}}))).forEach(rt=>document.fonts.add(rt)),Vo="ready";return}catch(Fe){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ce}"`,{cause:Fe}),document.body.classList.add("ML__fonts-did-not-load")}Vo="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 ya(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Wo(a)&&a.dirty&&(a.atomBoundsCache=new Map,mc(a,y),a.atomBoundsCache=void 0)})))}function ag(a,y){var b;y=y!=null?y:{};const z=new ji({from:oe(ie({},a.context),{atomIdsSettings:{seed:y.forHighlighting?ig(qr.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(z);return $c(pd(ce,z),{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 Te=ce.parent;for(;Te;)Te.containsCaret=!0,Te=Te.parent}else{const ce=b.getAtoms(b.selection,{includeChildren:!0});for(const Te of ce)Te.isSelected=!0}return ag(a,y).toMarkup()}function mc(a,y){if(!Wo(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const z=a.field;if(!z)return;const ce=a.isSelectionEditable&&a.hasFocus(),Te=z.classList.contains("ML__focused");Te&&!ce?z.classList.remove("ML__focused"):!Te&&ce&&z.classList.add("ML__focused");let Fe=Sp(a,y);const rt=a.element.querySelector("[part=menu-toggle]");if(rt&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?rt.style.display="none":rt.style.display=""),a.model.atoms.length<=1){const ut=a.options.contentPlaceholder;ut&&(Fe+=`<span part=placeholder class="ML__content-placeholder">${eo(ut)}</span>`)}z.innerHTML=window.MathfieldElement.createHTML(Fe),Df(a,y.interactive),a.dirty=!1}function Df(a,y){const b=a.field;if(!b)return;for(const rt of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))rt.remove();!(y!=null&&y)&&Vo!=="error"&&Vo!=="ready"&&setTimeout(()=>{Vo==="ready"?Df(a):setTimeout(()=>Df(a),128)},32);const z=a.model,ce=b.offsetWidth,Te=b.getBoundingClientRect().width;let Fe=Math.floor(Te)/ce;if(Fe=isNaN(Fe)?1:Fe,z.selectionIsCollapsed){kf(a,{deferred:!0});let rt=z.at(z.position);for(;rt&&rt.type!=="prompt"&&!(rt.containsCaret&&rt.displayContainsHighlight);)rt=rt.parent;if(rt!=null&&rt.containsCaret&&rt.displayContainsHighlight){const ut=od(a,Ll(a,rt),Fe);if(ut){ut.left/=Fe,ut.right/=Fe,ut.top/=Fe,ut.bottom/=Fe;const mt=document.createElement("div");mt.classList.add("ML__contains-highlight"),mt.style.position="absolute",mt.style.left=`${ut.left+1}px`,mt.style.top=`${Math.ceil(ut.top)}px`,mt.style.width=`${Math.ceil(ut.right-ut.left)}px`,mt.style.height=`${Math.ceil(ut.bottom-ut.top)}px`,b.insertBefore(mt,b.childNodes[0])}}return}for(const rt of og(ld(a,{excludeAtomsWithBackground:!0}))){rt.left/=Fe,rt.right/=Fe,rt.top/=Fe,rt.bottom/=Fe;const ut=document.createElement("div");ut.classList.add("ML__selection"),ut.style.position="absolute",ut.style.left=`${rt.left}px`,ut.style.top=`${rt.top}px`,ut.style.width=`${Math.ceil(rt.right-rt.left)}px`,ut.style.height=`${Math.ceil(rt.bottom-rt.top-1)}px`,b.insertBefore(ut,b.childNodes[0])}}function og(a){let y=[];for(const b of a){let z=!1;for(const ce of y)if(b.left===ce.left&&b.right===ce.right&&b.top===ce.top&&b.bottom===ce.bottom){z=!0;break}z||y.push(b)}a=y,y=[];for(const b of a){let z=0;for(const ce of a)if(b.left>=ce.left&&b.right<=ce.right&&b.top>=ce.top&&b.bottom<=ce.bottom&&(z+=1,z>1))break;z===1&&y.push(b)}return y}var Cp=3,zs;function Fo(a,y){y=ie({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),zs||(zs={});for(const b of Object.keys(a))console.assert(!zs[b],"Selector already defined: ",b),zs[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()),zs[y]}function fu(a){var y;return(y=Ch(a))==null?void 0:y.target}function sg(a,y){var b;if(!y)return!1;let z,ce=[],Te=!1,Fe=!1;te(y)?(z=y[0],ce=y.slice(1)):z=y,z=z.replace(/-\w/g,mt=>mt[1].toUpperCase());const rt=zs[z],ut=rt==null?void 0:rt.target;if(ut==="model"){if(!a.isSelectionEditable&&(rt!=null&&rt.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(z)&&(z!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(z)),/^complete/.test(z)||Af(a),zs[z].fn(a.model,...ce),xd(a),Fe=!0,Te=!0}else if(ut==="virtual-keyboard")Fe=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,Te=!0;else if(zs[z]){if(!a.isSelectionEditable&&(rt!=null&&rt.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(z)&&a.flushInlineShortcutBuffer(),Fe=zs[z].fn(a,...ce),Te=!0}else throw new Error(`Unknown command "${z}"`);return ut!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||rt!=null&&rt.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),rt!=null&&rt.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),Fe&&ya(a),Te}function lg(a,y){var b;if(!a)return!1;a.focus(),ym.keypressVibration&&he()&&navigator.vibrate(Cp);const z=Ch(y);window.MathfieldElement.playSound((b=z==null?void 0:z.audioFeedback)!=null?b:"keypress");const ce=a.executeCommand(y);return a.scrollIntoView(),ce}Fo({performWithFeedback:(a,y)=>lg(a,y)});function cg(a){return xd(a,{atIndex:a.suggestionIndex+1}),!1}function ug(a){return xd(a,{atIndex:a.suggestionIndex-1}),!1}Fo({complete:uu},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),Fo({nextSuggestion:cg,previousSuggestion:ug},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var If="mathlive#virtual-keyboard-message";function Eh(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===If}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,z){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,z){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Eh(y)){if(!cd(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");this.handleMessage(y.data)}}handleMessage(y){const{action:b}=y;if(b==="execute-command"){const{command:z}=y;fu(z)==="virtual-keyboard"&&this.executeCommand(z);return}if(b==="synchronize-proxy"){this._boundingRect=y.boundingRect,this._isShifted=y.isShifted;return}if(b==="geometry-changed"){this._boundingRect=y.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(y,b={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(ie({type:If,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"}]},wd;function Ap(a,y){var b,z,ce;const Te=_l.singleton;if(!Te)return;const Fe=hu(a),rt=(z=(b=Te.getKeycap(Fe==null?void 0:Fe.id))==null?void 0:b.variants)!=null?z:"";if(typeof rt=="string"&&!Mp(rt)||Array.isArray(rt)&&rt.length===0){y==null||y();return}const ut={};let mt="";for(const Hr of hg(rt)){const Rn=Tp(Hr),Fr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ut[Fr]=Rn;const[sn,Fn]=Lf(Rn);mt+=`<div id=${Fr} class="item ${Fn}">${sn}</div>`}const wt=document.createElement("div");wt.setAttribute("aria-hidden","true"),wt.className="MLK__variant-panel",wt.style.height="auto";const Rt=Object.keys(ut).length;let Gt=5;Rt===1?Gt=1:Rt===2||Rt===4?Gt=2:Rt===3||Rt===5||Rt===6?Gt=3:Rt>=7&&Rt<14&&(Gt=4),wt.style.width=`calc(var(--variant-keycap-length) * ${Gt} + 12px)`,wt.innerHTML=ym.createHTML(mt),Fs.open({root:(ce=Te==null?void 0:Te.container)==null?void 0:ce.querySelector(".ML__keyboard"),child:wt}),wd=new AbortController;const{signal:ir}=wd,cr=a==null?void 0:a.getBoundingClientRect();if(cr){cr.top-wt.clientHeight<0&&(wt.style.width="auto",Rt<=6?wt.style.height="56px":Rt<=12?wt.style.height="108px":Rt<=18?wt.style.height="205px":wt.classList.add("compact"));const Hr=Math.max(0,Math.min(window.innerWidth-wt.offsetWidth,(cr.left+cr.right-wt.offsetWidth)/2)),Rn=cr.top-wt.clientHeight+5;wt.style.transform=`translate(${Hr}px, ${Rn}px)`,wt.classList.add("is-visible"),requestAnimationFrame(()=>{wt.addEventListener("pointerup",Fr=>{const sn=hu(Fr.target);!(sn!=null&&sn.id)||!ut[sn.id]||(Ah(ut[sn.id]),Sd(),y==null||y(),Fr.preventDefault())},{capture:!0,passive:!1,signal:ir}),wt.addEventListener("pointerenter",Fr=>{const sn=hu(Fr.target);!(sn!=null&&sn.id)||!ut[sn.id]||sn.classList.add("is-active")},{capture:!0,signal:ir}),wt.addEventListener("pointerleave",Fr=>{const sn=hu(Fr.target);!(sn!=null&&sn.id)||!ut[sn.id]||sn.classList.remove("is-active")},{capture:!0,signal:ir}),window.addEventListener("pointercancel",()=>{Sd(),y==null||y()},{signal:ir}),window.addEventListener("pointerup",()=>{Sd(),y==null||y()},{signal:ir})})}}function Sd(){wd==null||wd.abort(),wd=null,Fs.state==="open"&&Fs.close()}function fg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Me))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Me[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(je))y.push({class:"swatch-button",label:'<span style="background:'+je[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function Mp(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 Cd(a){if(!a)return"";const y=new ji,b=new qr({mode:"math",type:"root",body:qa(a,{context:y,args:ce=>ce==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),z=Qc(pd(new _n(b.render(y),{classes:"ML__base"}),y));return $c(z,{classes:"ML__latex"}).toMarkup()}function Ed(a){var y;if(Array.isArray(a))return a.map(z=>Ed(z)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(z=>z.map(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 z=window.mathVirtualKeyboard.alphabeticLayout;if(z==="auto"){const rt=yd();rt&&(z=rt.virtualLayout),(!z||z==="auto")&&(z=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[ye.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~"]},Te=(y=ce[z])!=null?y:ce.qwerty,Fe=z==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const rt of Te){const ut=[];for(const mt of rt)/[a-z]/.test(mt)?ut.push({label:mt,class:"hide-shift",shift:{label:mt.toUpperCase()},variants:Mp(mt)?mt:void 0}):mt==="~"?z!=="dvorak"?ut.push("[backspace]"):ut.push({label:"[backspace]",width:1}):mt==="^"?ut.push("[shift]"):mt===" "&&ut.push("[separator-5]");Fe.push(ut)}return Fe.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:Ed({rows:Fe})}}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:Te}=ce,Fe=me(ce,["rows"]);y=oe(ie({},Fe),{layers:Ed({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ce=a,{markup:Te}=ce,Fe=me(ce,["markup"]);y=oe(ie({},Fe),{layers:Ed(a.markup)})}else y=ie({},a),"layers"in a?y.layers=Ed(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,z=!1;for(const ce of y.layers)if(ce.rows)for(const Te of ce.rows.flat()){pu(Te)&&(b=!0);const Fe=Te.command;typeof Fe=="string"&&["undo","redo","cut","copy","paste"].includes(Fe)&&(z=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!z),y}function vg(a,y){var b,z;let ce='<div class="left">';if(a.normalizedLayouts.length>1)for(const[Te,Fe]of a.normalizedLayouts.entries()){const rt=Fe,ut=[Te===y?"selected":"layer-switch"];rt.tooltip&&ut.push("MLK__tooltip"),rt.labelClass&&ut.push(...rt.labelClass.split(" ")),ce+=`<div class="${ut.join(" ")}"`,rt.tooltip&&(ce+=" data-tooltip='"+((b=Ae(rt.tooltip))!=null?b:rt.tooltip)+"' "),Te!==y&&(ce+=`data-layer="${rt.layers[0].id}"`),ce+=`>${(z=rt.label)!=null?z:"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 Te={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${Ae("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${Ae("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${Ae("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${Ae("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${Ae("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ce.map(Fe=>Te[Fe]).join(""),b}function bg(a){for(const y of a)xg(y)}function xg(a){const y=_l.singleton;if(!y)return;const b={};if(!a.id){if(a.hasAttribute("data-label")&&(b.label=a.dataset.label),a.hasAttribute("data-latex")&&(b.latex=a.dataset.latex),a.hasAttribute("data-key")&&(b.key=a.dataset.key),a.hasAttribute("data-insert")&&(b.insert=a.dataset.insert),a.hasAttribute("data-variants")&&(b.variants=a.dataset.variants),a.hasAttribute("data-aside")&&(b.aside=a.dataset.aside),a.className&&(b.class=a.className),!b.label&&!b.latex&&!b.key&&!b.insert&&(b.latex=a.innerText,b.label=a.innerHTML),a.hasAttribute("data-command"))try{b.command=JSON.parse(a.dataset.command)}catch(z){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[z,ce]=Lf(b);a.innerHTML=window.MathfieldElement.createHTML(z)}}function wg(){jo("virtual-keyboard"),jo("core"),Of()}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((Fe,rt)=>Ag(a,Fe,rt)).join(""));const z=document.createElement("div");z.className="MLK__backdrop",z.appendChild(b),y.appendChild(z),y.addEventListener("pointerdown",kg,{passive:!1});const ce=y.querySelectorAll(".ML__edit-toolbar");if(ce)for(const Fe of ce)Fe.addEventListener("click",rt=>{var ut,mt;let wt=rt.target,Rt="";for(;wt&&!Rt;)Rt=(ut=wt==null?void 0:wt.getAttribute("data-command"))!=null?ut:"",wt=(mt=wt==null?void 0:wt.parentElement)!=null?mt:null;Rt&&a.executeCommand(JSON.parse(Rt))});bg(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const Te=y.querySelectorAll(".MLK__layer");console.assert(Te.length>0,"No virtual keyboards available");for(const Fe of Te)Fe.addEventListener("pointerdown",rt=>rt.preventDefault());return a.currentLayer=a.latentLayer,y}function Ag(a,y,b){const z=[];if(!("layers"in y))return"";for(const ce of y.layers)z.push(`<div tabindex="-1" class="MLK__layer" id="${ce.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(z.push("<div class='MLK__toolbar' role='toolbar'>"),z.push(vg(a,b)),y.displayEditToolbar&&z.push('<div class="ML__edit-toolbar right"></div>'),z.push("</div>")),z.push(Mg(a,ce)),z.push("</div>");return z.join("")}function Mg(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=`<style>${y.style}</style>`:typeof y.style=="object"&&(b+=`<style>${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 z of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ce of z)if(ce){const Te=a.registerKeycap(ce),[Fe,rt]=Lf(ce);/(^|\s)separator/.test(rt)?b+=`<div class="${rt}"`:b+=`<div tabindex="-1" id="${Te}" class="${rt}"`,ce.tooltip&&(b+=` data-tooltip="${ce.tooltip}"`),b+=`>${Fe}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Lf(a,y={shifted:!1}){var b,z,ce,Te,Fe,rt,ut;let mt="",wt=(b=a.class)!=null?b:"";if(y.shifted&&pu(a)&&(wt+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?mt=Cd(a.shift):typeof a.shift=="object"&&(mt=a.shift.label?a.shift.label:(z=Cd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?z:""),typeof a.shift=="object"&&(wt=(Te=(ce=a.shift.class)!=null?ce:a.class)!=null?Te:"");else{if(mt=a.label?a.label:(Fe=Cd(a.latex||a.insert||"")||a.key)!=null?Fe:"",a.shift){let Rt;typeof a.shift=="string"?Rt=Cd(a.shift):a.shift.label?Rt=a.shift.label:Rt=(rt=Cd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?rt:"",mt+=`<span class="MLK__shift">${Rt}</span>`}a.aside&&(mt+=`<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+=(ut={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ut:""),[mt,wt||"MLK__keycap"]}var gc={"[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="[,]"),!gc[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&gc[a.label]&&(b=oe(ie(ie({},gc[a.label]),a),{label:gc[a.label].label})),"key"in a&&a.key&&gc[a.key]&&(b=oe(ie(ie({},gc[a.key]),a),{key:gc[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 Ad;function kg(a){var y;if(a.button!==0)return;const b=_l.singleton;if(!b)return;let z=a.target;for(;z&&!z.getAttribute("data-layer");)z=z.parentElement;if(z){b.currentLayer=(y=z.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const ce=hu(a.target);if(!(ce!=null&&ce.id))return;const Te=b.getKeycap(ce.id);if(!Te)return;console.assert(a.type==="pointerdown");const Fe=new AbortController,rt=Fe.signal;ce.classList.add("is-pressed"),ce.addEventListener("pointerenter",Pf(Fe),{capture:!0,signal:rt}),ce.addEventListener("pointerleave",Pf(Fe),{capture:!0,signal:rt}),ce.addEventListener("pointercancel",Pf(Fe),{signal:rt}),ce.addEventListener("pointerup",Pf(Fe),{signal:rt}),pu(Te)&&(ce.classList.add("is-active"),b.shiftPressCount++),Te.variants&&(Ad&&clearTimeout(Ad),Ad=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),Ap(ce,()=>{Fe.abort(),ce==null||ce.classList.remove("is-active")}))},300)),a.preventDefault()}function Pf(a){return y=>{const b=hu(y.target);if(!(b!=null&&b.id))return;const z=_l.singleton;if(!z)return;const ce=z.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"),pu(ce)&&(z.shiftPressCount--,b.classList.toggle("is-active",z.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),pu(ce)&&(z.shiftPressCount--,b.classList.toggle("is-active",z.isShifted));return}if(y.type==="pointerup"){Ad&&clearTimeout(Ad),pu(ce)?b.classList.toggle("is-active",z.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),z.isShifted&&ce.shift?typeof ce.shift=="string"?z.executeCommand(["insert",ce.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Ah(ce.shift):Ah(ce),z.shiftPressCount===1&&!y.shiftKey&&(z.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Ah(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=_l.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 hu(a){if(!a)return;let y=a;for(;y&&!Tg(y);)y=y.parentElement;return y!=null?y:void 0}function pu(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var _l=class r0{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,z;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(b=(y=window.document)==null?void 0:y.body)!=null?b:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(ce=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(z=window.top)==null||z.addEventListener("message",this)}catch(ce){window.addEventListener("message",this)}document.body.addEventListener("focusin",ce=>{const Te=ce.target;Te!=null&&Te.isConnected&&setTimeout(()=>{const Fe=Op();Fe&&!Fe.readOnly&&Fe.mathVirtualKeyboardPolicy==="auto"&&de()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ce=>{ce.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{Op()||this.hide()},300)})}get currentLayer(){var y,b,z;return(z=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?z:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let z=y?this._element.querySelector(`#${y}.MLK__layer`):null;z||(z=this._element.querySelector(".MLK__layer")),z&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),z.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(y){var b;this._shiftPressCount=y>2||y<0?0:y,(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(y){const b="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[b]=y,b}getKeycap(y){return y?this.keycapRegistry[y]:void 0}getLayer(y){const b=this.normalizedLayouts;for(const z of b)for(const ce of z.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],z=b.findIndex(ce=>ce==="default");z>=0&&b.splice(z,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,z){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,z){this.listeners[y]&&this.listeners[y].delete(b)}get element(){return this._element}set element(y){var b;this._element!==y&&((b=this._element)==null||b.remove(),this._element=y)}get visible(){return this._visible}set visible(y){y?this.show():this.hide()}get boundingRect(){var y;if(!this._visible)return new DOMRect;const b=(y=this._element)==null?void 0:y.getElementsByClassName("MLK__plate")[0];return b?b.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var y,b;const z=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${z}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ce=z-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ce}px)`:`${ce}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${z}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const y=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=y,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const y=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(y&&(y.backdrop||y.container)));const b=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(b)for(const z of b){const ce=this.getKeycap(z.id);if(ce){const[Te,Fe]=Lf(ce,{shifted:this.isShifted});z.innerHTML=window.MathfieldElement.createHTML(Te),z.className=Fe}}}show(y){var b;if(this._visible)return;const z=this.container;if(z&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ce=this._element.getElementsByClassName("MLK__plate")[0];if(ce&&this.observer.observe(ce),z===window.document.body){const Te=z.style.paddingBottom;this.originalContainerBottomPadding=Te;const Fe=ce.offsetHeight-1;z.style.paddingBottom=Te?`calc(${Te} + ${Fe}px)`:`${Fe}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 z=this.container;if(z&&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}),Sd(),Sg(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(z.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var y,b;return(b=(y=this.element)==null?void 0:y.offsetHeight)!=null?b:0}buildAndAttachElement(){var y;console.assert(!this.element),this.element=Eg(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&Ap(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Eh(y)){if(!cd(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");y.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:y.data.action!=="update-setting"&&y.data.action!=="proxy-created"&&y.data.action!=="execute-command"&&(console.assert(y.source!==void 0),this.connectedMathfieldWindow=y.source),this.handleMessage(y.data,y.source)}if(this._element)switch(y.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":y.button!==2&&y.preventDefault();break;case"keydown":{y.key==="Shift"&&!y.repeat&&(this.shiftPressCount=1);break}case"keyup":{(y.key==="Shift"||!y.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(y,b){const{action:z}=y;if(z==="execute-command"){const{command:ce}=y,Te=fu(ce);if(window.top!==void 0&&Te!=="virtual-keyboard")return;this.executeCommand(ce);return}if((z==="connect"||z==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b),z!=="disconnect"&&window===window.top){if(z==="show"){typeof y.animate!="undefined"?this.show({animate:y.animate}):this.show();return}if(z==="hide"){typeof y.animate!="undefined"?this.hide({animate:y.animate}):this.hide();return}if(z==="update-setting"){y.alphabeticLayout&&(this.alphabeticLayout=y.alphabeticLayout),y.layouts&&(this.layouts=y.layouts),y.editToolbar&&(this.editToolbar=y.editToolbar);return}if(z==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b);return}}}sendMessage(y,b,z){if(z||(z=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||z===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:ie({type:If,action:y},b)}));return}if(z)z.postMessage(ie({type:If,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 Te of ce)this.dispatchEvent(new KeyboardEvent("keydown",{key:Te,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:Te,bubbles:!0}))}}stateWillChange(y){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:y},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(y){const b=this._element;if(!b)return;b.classList.toggle("is-math-mode",y.mode==="math"),b.classList.toggle("is-text-mode",y.mode==="text"),b.classList.toggle("can-undo",y.canUndo),b.classList.toggle("can-redo",y.canRedo),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-paste",!0);const z=b.querySelectorAll(".ML__edit-toolbar");if(z)for(const ce of z)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,z=[],ce=fu(y);return te(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ce=fu(y)),z=y.slice(1)):b=y,b=b.replace(/-\w/g,Te=>Te[1].toUpperCase()),ce==="virtual-keyboard"?zs[b].fn(void 0,...z):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function Op(){var a,y;let b=Ef(),z=null;for(;b;){if("host"in b&&((y=(a=b.host)==null?void 0:a.tagName)==null?void 0:y.toLowerCase())==="math-field"){z=b.host;break}b=b.parentNode}return z}if(ue()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=_l.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>dg.singleton,configurable:!0});function Rf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const z=a.scriptDepth;if(te(z))y.scriptDepth=[z[0],z[1]];else if(typeof z=="number")y.scriptDepth=[z,z];else if(typeof z=="string"){const[Te,Fe]=z.split(",").map(rt=>parseInt(rt.trim()));y.scriptDepth=[Te,Fe]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ce=a.mathVirtualKeyboardPolicy.toLowerCase();if(ce==="sandboxed"){if(window!==window.top){const Te=_l.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>Te})}ce="manual"}y.mathVirtualKeyboardPolicy=ce;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?ye.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:te(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 vc(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const z={};for(const ce of b)a[ce]===null?z[ce]=null:te(a[ce])?z[ce]=[...a[ce]]:typeof a[ce]=="object"&&!(a[ce]instanceof Element)&&ce!=="computeEngine"?z[ce]=ie({},a[ce]):z[ce]=a[ce];return typeof y=="string"?z[y]:z}function Nf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Ne,backgroundColorMap:_e,letterShapeStyle:ye.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:hf,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:lh,value:""}}function Dp(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function jl(a,y){!a||!y||(te(a)?a.forEach(b=>jl(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),jl(a.body,y),jl(a.above,y),jl(a.below,y),jl(a.subscript,y),jl(a.superscript,y)))}function Mh(a,y,b,z){function ce(Fe,rt){for(const ut of Te)if(ut.style[Fe]!==rt)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const Te=a.getAtoms(y,{includeChildren:!0});z.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=Os),b.variant&&ce("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ce("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const Fe of Te)Fe.applyStyle(b);return!0}function Og(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:z}=b;b.caret=void 0;const ce=new pl(y,{mode:b.mode});ce.caret=z,b.parent.addChildAfter(ce,b),a.position+=1}}function Dg(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}It(["math","displaymath"],rs),It("center",rs),kt("displaylines","",{parse:a=>{const y=[];let b=[];a.beginContext({tabular:!0});do{if(a.end()||a.match("<}>"))break;a.matchColumnSeparator()||a.matchRowSeparator()?(y.push([b]),b=[]):b.push(...a.scan(z=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(z)))}while(!0);return a.endContext(),y.push([b]),y},createAtom:a=>new Ti("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Vt("array","{columns:colspec}",(a,y,b,z)=>new Ti(a,kh(y),b,{columns:z[0],mathstyleName:"textstyle"})),Vt(["equation","equation*","subequations"],"",(a,y,b)=>new Ti(a,kh(y),b,{columns:[{align:"c"}]})),Vt(["multline","multline*"],"",rs),Vt(["align","align*","aligned","eqnarray"],"",rs),Vt("split","",rs),Vt(["gather","gathered"],"",rs),Vt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",rs),Vt(["smallmatrix","smallmatrix*"],"[columns:colspec]",rs),Vt(["cases","dcases","rcases"],"",rs);function Ig(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 Ig(a)?Array(y).fill([[new qr({type:"first"}),new mi]]):a.map(b=>b.length===0?[[new qr({type:"first"})]]:b.map(z=>z.length===0?[new qr({type:"first"})]:(z[0].type!=="first"&&z.unshift(new qr({type:"first"})),z)))}function rs(a,y=[[[]]],b=[],z=[]){switch(y=kh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new Ti(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new Ti(a,y,b,{mathstyleName:"textstyle"});case"center":return new Ti(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new Ti(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Ti(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Ti(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Ti(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:yc(z[0])});case"bmatrix":case"bmatrix*":return new Ti(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:yc(z[0])});case"Bmatrix":case"Bmatrix*":return new Ti(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:yc(z[0])});case"vmatrix":case"vmatrix*":return new Ti(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:yc(z[0])});case"Vmatrix":case"Vmatrix*":return new Ti(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:yc(z[0])});case"matrix":case"matrix*":return new Ti(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:yc(z==null?void 0:z[0])});case"smallmatrix":case"smallmatrix*":return new Ti(a,y,b,{mathstyleName:"scriptstyle",columns:yc(z==null?void 0:z[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Ti(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 Ti(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Ti(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ce=0;for(const rt of y)ce=Math.max(ce,rt.length);const Te=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let Fe=2;for(;Fe<ce;)Te.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),Fe+=2;return Te.push({gap:0}),new Ti(a,y,b,{arraycolsep:0,columns:Te,minColumns:2})}}return new Ti(a,y,b,{mathstyleName:"textstyle"})}function yc(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 Bg(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof Ti);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof Ti)){const z=a.at(a.position);if(b=z,!b.parent.parent){let ce=a.extractAtoms([a.position,a.lastOffset]),Te=a.extractAtoms([0,a.position]);Te.length===0&&(Te=Ff()),ce.length===0&&(ce=Ff());let Fe;return y.endsWith("column")?(Fe=rs("split",[[Te,ce]]),a.root=Fe,bc(Fe,0,0)?xc(a,Fe,0,0):bc(Fe,0,1)?xc(a,Fe,0,1):a.position=a.offsetOf(z)):(Fe=rs("lines",[[Te],[ce]]),a.root=Fe,bc(Fe,0,0)?xc(a,Fe,0,0):bc(Fe,1,0)?xc(a,Fe,1,0):a.position=a.offsetOf(z)),[void 0,[0,0]]}if(b.parent instanceof Vi){const ce=b.parent;let Te=a.extractAtoms([a.position,a.offsetOf(ce.lastChild)]),Fe=a.extractAtoms([a.offsetOf(ce.firstChild),a.position]);Fe.length===0&&(Fe=Ff()),Te.length===0&&(Te=Ff());let rt="pmatrix";const ut=ce.leftDelim,mt=ce.rightDelim;ut==="("&&(mt===")"||mt==="?")?rt="pmatrix":(ut==="["||ut==="\\lbrack")&&(mt==="]"||mt==="\\rbrack"||mt==="?")?rt="bmatrix":ut==="\\vert"&&mt==="\\vert"?rt="vmatrix":ut==="\\Vert"&&mt==="\\Vert"?rt="Vmatrix":(ut==="{"||ut==="\\lbrace")&&(mt==="."||mt==="?")&&(rt="cases");const wt=rs(rt,y.endsWith("column")?[[Fe,Te]]:[[Fe],[Te]]);return ce.parent.addChildBefore(wt,ce),ce.parent.removeChild(ce),bc(wt,0,0)?xc(a,wt,0,0):y.endsWith("column")?bc(wt,0,1)?xc(a,wt,0,1):a.position=a.offsetOf(b):bc(wt,1,0)?xc(a,wt,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof Ti?[b.parent,b.parentBranch]:[void 0,[0,0]]}function bc(a,y,b){const z=a.getCell(y,b);return!z||z.length!==2?!1:z[1].type==="placeholder"}function Lg(a,y,b,z){const ce=y.getCell(b,z);return ce?[a.offsetOf(ce[0]),a.offsetOf(ce[ce.length-1])]:-1}function xc(a,y,b,z){const ce=Lg(a,y,b,z);typeof ce!="number"&&a.setSelection(ce)}function _f(a,y,b,z,ce){const Te=y.getCell(b,z);Te&&a.setPositionHandlingPlaceholder(a.offsetOf(Te[ce==="start"?0:Te.length-1]))}function jf(a,y){const[b,[z,ce]]=Bg(a,y);if(b)switch(y){case"after row":b.addRowAfter(z),_f(a,b,z+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ce),_f(a,b,z,ce+1,"end");break;case"before row":b.addRowBefore(z),_f(a,b,z,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ce),_f(a,b,z,ce,"start");break}}function Ip(a){return a.contentWillChange({inputType:"insertText"})?(jf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Pg(a){return a.contentWillChange({inputType:"insertText"})?(jf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Bp(a){return a.contentWillChange({inputType:"insertText"})?(jf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Rg(a){return a.contentWillChange({inputType:"insertText"})?(jf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Lp(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",z=".";switch(y){case"pmatrix":case"pmatrix*":b="(",z=")";break;case"bmatrix":case"bmatrix*":b="[",z="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",z="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",z="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",z="\\Vert";break;case"matrix":case"matrix*":b=".",z=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":z="\\rbrace";break}const ce=a.at(a.position),Te=ce.type==="array"?ce:a.parentEnvironment;return Te.environmentName=y,Te.leftDelim=b,Te.rightDelim=z,a.contentDidChange({}),!0}function Pp(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof Ti);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof Ti){const z=b.parent,ce=b.parentBranch;let Te;switch(y){case"row":if(z.rowCount>1){z.removeRow(ce[0]);const Fe=z.getCell(Math.max(0,ce[0]-1),ce[1]);Te=a.offsetOf(Fe[Fe.length-1])}break;case"column":if(z.colCount>z.minColumns){z.removeColumn(ce[1]);const Fe=z.getCell(ce[0],Math.max(0,ce[1]-1));Te=a.offsetOf(Fe[Fe.length-1])}break}Te&&a.setPositionHandlingPlaceholder(Te)}}function Ng(a){return a.contentWillChange({inputType:"deleteContent"})?(Pp(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function _g(a){return a.contentWillChange({inputType:"deleteContent"})?(Pp(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}Fo({addRowAfter:Ip,addColumnAfter:Bp,addRowBefore:Pg,addColumnBefore:Rg,removeRow:Ng,removeColumn:_g,setEnvironment:Lp},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Ff(){return[new mi]}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 z=b==="backward"?-1:1;let ce;if(He.test(a.at(y).value)){let Te=y,Fe;do Fe=a.at(Te).mode==="text"&&He.test(a.at(Te).value),Te+=z;while(a.at(Te)&&Fe);ce=a.at(Te)?Te-2*z:Te-z}else if(/\s/.test(a.at(y).value)){let Te=y;for(;a.at(Te)&&a.at(Te).mode==="text"&&/\s/.test(a.at(Te).value);)Te+=z;if(!a.at(Te))ce=Te-z;else{let Fe=!0;do Fe=a.at(Te).mode==="text"&&!/\s/.test(a.at(Te).value),Te+=z;while(a.at(Te)&&Fe);ce=a.at(Te)?Te-2*z:Te-z}}else{let Te=y;for(;a.at(Te)&&a.at(Te).mode==="text"&&!/\s/.test(a.at(Te).value);)Te+=z;ce=a.at(Te)?Te:Te-z;let Fe=!0;for(;a.at(Te)&&Fe;)Fe=a.at(Te).mode==="text"&&/\s/.test(a.at(Te).value),Fe&&(ce=Te),Te+=z;ce=a.at(Te)?Te-2*z:Te-z}return ce-(z>0?0:1)}function mu(a,y,b){var z,ce,Te,Fe,rt,ut,mt;const wt=a.position;(z=b==null?void 0:b.extend)!=null&&z||a.collapseSelection(y);let Rt=a.at(a.position);if(y==="forward"&&(Rt.type==="subsup"?(Rt=Rt.rightSibling,Rt||(Rt=a.at(a.position+1))):Rt=a.at(a.position+1)),!Rt)return a.announce("plonk"),!1;let Gt=a.offsetOf(Rt);if(Rt instanceof ys)Gt=Th(a,Gt,y);else if(Rt instanceof ao)if(Rt.isSuggestion)for(console.assert(y==="forward");Rt&&Rt instanceof ao;)Rt.isSuggestion=!1,Gt=a.offsetOf(Rt),Rt=Rt.rightSibling;else if(y==="forward"){if(Rt=Rt.rightSibling,!Rt||!(Rt instanceof ao))return a.announce("plonk"),!1;for(;Rt&&Rt instanceof ao&&/[a-zA-Z\*]/.test(Rt.value);)Gt=a.offsetOf(Rt),Rt=Rt.rightSibling}else{if(Rt=Rt.leftSibling,!Rt||!(Rt instanceof ao))return a.announce("plonk"),!1;for(;Rt&&Rt instanceof ao&&/[a-zA-Z\*]/.test(Rt.value);)Gt=a.offsetOf(Rt),Rt=Rt.leftSibling}else if(y==="forward"&&Rt.type==="mopen"){let ir=0;do Rt.type==="mopen"?ir+=1:Rt.type==="mclose"&&(ir-=1),Rt=Rt.rightSibling;while(!Rt.isLastSibling&&ir!==0);Gt=a.offsetOf(Rt.leftSibling)}else if(y==="backward"&&Rt.type==="mclose"){let ir=0;do Rt.type==="mopen"?ir+=1:Rt.type==="mclose"&&(ir-=1),Rt=Rt.leftSibling;while(!Rt.isFirstSibling&&ir!==0);Gt=a.offsetOf(Rt)}else if(y==="backward")if(Rt.type==="first")for(;Gt>0&&Rt.type==="first";)Gt-=1,Rt=a.at(Gt);else{const ir=Rt.type;Rt.type==="subsup"&&(Gt=a.offsetOf(a.at(Gt).leftSibling)),Gt-=1;let cr=(ce=a.at(Gt))==null?void 0:ce.type;for(;Gt>=0&&cr===ir;)((Te=a.at(Gt))==null?void 0:Te.type)==="subsup"?Gt=a.offsetOf(a.at(Gt).leftSibling):Gt-=1,cr=a.at(Gt).type}else{const{type:ir}=Rt;let cr=(Fe=a.at(Gt))==null?void 0:Fe.type;const{lastOffset:Hr}=a;for(;Gt<=Hr&&(cr===ir||cr==="subsup");){for(;((rt=a.at(Gt).rightSibling)==null?void 0:rt.type)==="subsup";)Gt=a.offsetOf(a.at(Gt).rightSibling);Gt+=1,cr=(ut=a.at(Gt))==null?void 0:ut.type}Gt-=1}if((mt=b==null?void 0:b.extend)!=null&&mt){if(!a.setSelection(a.anchor,Gt))return a.announce("plonk"),!1}else{if(Gt===a.position)return a.announce("plonk"),!1;a.position=Gt}return a.announce("move",wt),a.mathfield.stopCoalescingUndo(),!0}function Ks(a,y,b){var z,ce;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[rt,ut]=vp(a);rt!==void 0&&ut!==void 0&&a.deleteAtoms([rt,ut])}if(y==="upward")return zg(a,b);if(y==="downward")return Kg(a,b);if(b.extend){let rt=zf(a,a.position,y);rt<0&&(rt=0),rt>a.lastOffset&&(rt=a.lastOffset);const ut=a.setSelection(a.anchor,rt);return a.mathfield.stopCoalescingUndo(),ut}if(a.selectionIsPlaceholder){a.collapseSelection(y);const rt=Ks(a,y);return a.mathfield.stopCoalescingUndo(),rt}let Te=a.position;const Fe=Te;if(a.collapseSelection(y)?(Te=a.position,Np(a,Te)||(Te=zf(a,Te,y))):Te=zf(a,Te,y),Te<0||Te>a.lastOffset){let rt=!0;return a.silenceNotifications||(rt=(ce=(z=a.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?ce:!0),rt&&a.announce("plonk"),rt}return a.setPositionHandlingPlaceholder(Te),a.mathfield.stopCoalescingUndo(),a.announce("move",Fe),!0}function zf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||Np(a,y)?y:zf(a,y,b)}function Np(a,y){var b;const z=a.at(y);let ce=z.parent;for(;ce&&!ce.inCaptureSelection;)ce=ce.parent;return!(ce!=null&&ce.inCaptureSelection||(b=z.parent)!=null&&b.skipBoundary&&(!z.isFirstSibling&&z.isLastSibling||z.type==="first")||a.mathfield.hasEditablePrompts&&!z.parentPrompt)}function Fg(a,y,b){let z=1/0,ce=0;for(;ce<y.length;ce++){const Te=iu(a.getHTMLElement(y[ce])).right,Fe=Math.abs(b-Te);if(Fe<=z)z=Fe;else break}return y[ce-1]}function Kf(a,y,b,z,ce){const Te=a.mathfield.hasEditablePrompts,Fe=Te?b.filter(mt=>mt.type==="prompt"&&!mt.captureSelection):b,rt=iu(a.mathfield.getHTMLElement(y)).right,ut=a.offsetOf(Fg(a.mathfield,Fe,rt))-(Te?1:0);if(z){const[mt,wt]=a.selection.ranges[0];let Rt;ut<(ce==="up"?mt:wt)?Rt={ranges:[[ut,wt]],direction:"backward"}:Rt={ranges:[[mt,ut]],direction:"forward"},a.setSelection(Rt)}else a.setPositionHandlingPlaceholder(ut);a.announce(`move ${ce}`)}function zg(a,y){var b,z;const ce=(b=y==null?void 0:y.extend)!=null?b:!1;ce||a.collapseSelection("backward");const Te=()=>{var ut,mt;let wt=!0;return a.silenceNotifications||(wt=(mt=(ut=a.mathfield.host)==null?void 0:ut.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?mt:!0),a.announce(wt?"plonk":"line"),wt},Fe=a.at(a.position);let rt=Fe;for(;rt&&rt.parentBranch!=="below"&&!(Array.isArray(rt.parentBranch)&&rt.parent instanceof Ti);)rt=rt.parent;if(Array.isArray(rt==null?void 0:rt.parentBranch)&&rt.parent instanceof Ti){const ut=rt.parent;if(rt.parentBranch[0]<1)return Te();const mt=rt.parentBranch[0]-1,wt=ut.array[mt][rt.parentBranch[1]];if(!wt.some(Gt=>Gt.type==="prompt"&&!Gt.captureSelection)&&a.mathfield.hasEditablePrompts)return Te();Kf(a,Fe,wt,ce,"up")}else if(rt){const ut=(z=rt.parent.branch("above"))!=null?z:rt.parent.createBranch("above");if(!ut.some(wt=>wt.type==="prompt"&&wt.placeholderId)&&a.mathfield.hasEditablePrompts)return Te();Kf(a,Fe,ut,ce,"up")}else return Te();return a.mathfield.stopCoalescingUndo(),!0}function Kg(a,y){var b,z;const ce=(b=y==null?void 0:y.extend)!=null?b:!1;ce||a.collapseSelection("forward");const Te=()=>{var ut,mt;let wt=!0;return a.silenceNotifications||(wt=(mt=(ut=a.mathfield.host)==null?void 0:ut.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?mt:!0),a.announce(wt?"plonk":"line"),wt},Fe=a.at(a.position);let rt=Fe;for(;rt&&rt.parentBranch!=="above"&&!(Array.isArray(rt.parentBranch)&&rt.parent instanceof Ti);)rt=rt.parent;if(Array.isArray(rt==null?void 0:rt.parentBranch)&&rt.parent instanceof Ti){const ut=rt.parent;if(rt.parentBranch[0]+1>ut.array.length-1)return Te();const mt=rt.parentBranch[0]+1,wt=ut.array[mt][rt.parentBranch[1]];if(!wt.some(Gt=>Gt.type==="prompt"&&!Gt.captureSelection)&&a.mathfield.hasEditablePrompts)return Te();Kf(a,Fe,wt,ce,"down")}else if(rt){const ut=(z=rt.parent.branch("below"))!=null?z:rt.parent.createBranch("below");if(!ut.some(wt=>wt.type==="prompt")&&a.mathfield.hasEditablePrompts)return Te();Kf(a,Fe,ut,ce,"down")}else return Te();return!0}function _p(a){const y=a.position,b=a.at(y).parent;return b!=null&&b.parent?(a.position=a.offsetOf(b),a.mathfield.stopCoalescingUndo(),a.announce("move",y),!0):(a.announce("plonk"),!1)}function Hg(a){let y=0,b=a.at(a.position),z=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(z=!1):z=!0,b=b.parent;return z?y:0}function Wg(a){let y=0,b=a.at(a.position),z=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(z=!0):z=!1,b=b.parent;return z?y:0}function jp(a){var y;if(a.collapseSelection(),Hg(a)>=a.mathfield.options.scriptDepth[1])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=b.rightSibling)==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new es({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(),Wg(a)>=a.mathfield.options.scriptDepth[0])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=a.at(a.position+1))==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new es({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 Ug(){function a(ut){const mt=[],wt=[];return[...ut.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((Gt,ir)=>{const cr=z(Gt);cr===0?mt.push(Gt):wt.push({documentOrder:ir,tabIndex:cr,node:Gt})}),wt.sort((Gt,ir)=>Gt.tabIndex===ir.tabIndex?Gt.documentOrder-ir.documentOrder:Gt.tabIndex-ir.tabIndex).map(Gt=>Gt.node).concat(mt)}function y(ut){return!(!b(ut)||ce(ut)||z(ut)<0)}function b(ut){return!(ut.disabled||ut.type==="hidden"&&ut.tagName.toUpperCase()==="INPUT"||rt(ut))}function z(ut){var mt;const wt=Number.parseInt((mt=ut.getAttribute("tabindex"))!=null?mt:"NaN",10);return Number.isNaN(wt)?ut.contentEditable==="true"||(ut.nodeName==="AUDIO"||ut.nodeName==="VIDEO")&&ut.getAttribute("tabindex")===null?0:ut.tabIndex:wt}function ce(ut){return ut.tagName.toUpperCase()==="INPUT"&&ut.type==="radio"&&!Fe(ut)}function Te(ut,mt){for(const wt of ut)if(wt.checked&&wt.form===mt)return wt;return null}function Fe(ut){var mt;if(!ut.name)return!0;const Rt=((mt=ut.form)!=null?mt:ut.ownerDocument).querySelectorAll('input[type="radio"][name="'+ut.name+'"]'),Gt=Te(Rt,ut.form);return!Gt||Gt===ut}function rt(ut){if(!ue()||ut===document.activeElement||ut.contains(document.activeElement))return!1;if(getComputedStyle(ut).visibility==="hidden")return!0;const mt=ut.getBoundingClientRect();if(mt.width===0||mt.height===0)return!0;for(;ut;){if(getComputedStyle(ut).display==="none")return!0;ut=ut.parentElement}return!1}return ue()?a(document.body):[]}function Ao(a,y,b="forward"){const z=a.position;if(Array.isArray(y)){const ce=a.offsetOf(y[0]),Te=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ce,Te):a.setSelection(Te,ce),a.announce("move",z),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?Ao(a,[y.leftSibling,y]):Ao(a,[y,y.leftSibling])}function ws(a,y){const b=a.position;if(typeof y=="number"&&(y=a.at(y)),y.type==="prompt")a.setSelection(a.offsetOf(y.firstChild),a.offsetOf(y.lastChild));else{const z=a.offsetOf(y);y.type==="placeholder"?a.setSelection(z-1,z):a.position=z}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function Hf(a,y,b=!0){var z,ce;const Te=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Ks(a,y);let Fe;const rt=a.at(a.anchor).parentPrompt;rt?y==="forward"?Fe=a.offsetOf(rt)+1:Fe=a.offsetOf(rt.leftSibling):Fe=Math.max(a.position+Te,0);const ut=Oh(a,Fe,y);if(!ut||y==="forward"&&a.offsetOf(ut)<Fe||y==="backward"&&a.offsetOf(ut)>Fe){if(!b||!((ce=(z=a.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ce))return a.announce("plonk"),!1;const wt=Ug();if(!document.activeElement||wt.length<=1)return a.announce("plonk"),!1;let Rt=wt.indexOf(document.activeElement)+Te;return Rt<0&&(Rt=wt.length-1),Rt>=wt.length&&(Rt=0),wt[Rt].focus(),a.mathfield.stopCoalescingUndo(),!0}return ws(a,ut),!0}function Oh(a,y=0,b="forward"){return a.findAtom(z=>z.type==="placeholder"||z.type==="prompt"||!a.mathfield.readOnly&&z.treeDepth>2&&z.isFirstSibling&&z.isLastSibling,y,b)}Fo({moveToOpposite:a=>{const y={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},b=a.at(a.position),{parent:z}=b;if(!z)return a.announce("plonk"),!1;const ce=b.parentBranch;let Te;if(typeof ce=="string"&&(Te=y[ce]),!Te){const rt=b.subsupPlacement?Fp(a):jp(a);return a.mathfield.stopCoalescingUndo(),rt}z.branch(Te)||z.createBranch(Te);const Fe=a.setSelection(a.getBranchRange(a.offsetOf(z),Te));return a.mathfield.stopCoalescingUndo(),Fe},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=>_p(a),moveToNextChar:a=>Ks(a,"forward"),moveToPreviousChar:a=>Ks(a,"backward"),moveUp:a=>Ks(a,"upward"),moveDown:a=>Ks(a,"downward"),moveToNextWord:a=>mu(a,"forward"),moveToPreviousWord:a=>mu(a,"backward"),moveToGroupStart:a=>{const y=a.offsetOf(a.at(a.position).firstSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:a=>{const y=a.offsetOf(a.at(a.position).lastSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:a=>{var y,b,z,ce;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return Hf(a,"forward");const Te=a.at(a.position);if(Te.mode==="text"){if(a.selectionIsCollapsed){let Gt=Te;for(;Gt&&Gt.mode==="text";)Gt=Gt.leftSibling;let ir=Te;for(;((y=ir.rightSibling)==null?void 0:y.mode)==="text";)ir=ir.rightSibling;if(Gt&&ir)return Ao(a,[Gt,ir])}if(Te.rightSibling.mode==="text"){let Gt=Te;for(;Gt&&Gt.mode==="text";)Gt=Gt.rightSibling;return Gt?(ws(a,(b=Gt.leftSibling)!=null?b:Gt),a.mathfield.switchMode("math"),!0):ws(a,a.lastOffset)}}const rt=a.at(a.anchor).parentPrompt,ut=rt?a.offsetOf(rt)+1:Math.max(a.position+1,0),mt=Oh(a,ut,"forward");if(mt)return ws(a,mt);const wt=zp(a,Te,Gt=>Gt.type==="leftright"||Gt.type==="text","forward");if(wt){if(wt.mode==="text"){let Gt=wt;for(;Gt&&Gt.mode==="text";)Gt=Gt.rightSibling;return Ao(a,[(z=wt.leftSibling)!=null?z:wt,(ce=Gt.leftSibling)!=null?ce:Gt])}return Ao(a,wt)}const Rt=Te.parent;if(Rt){if(Rt.type==="leftright"||Rt.type==="surd")return Ao(a,Rt);if(Te.parentBranch==="superscript"&&Rt.subscript)return Ao(a,Rt.subscript);if(Te.parentBranch==="above"&&Rt.below)return Ao(a,Rt.below);if(Te.parentBranch==="superscript"||Te.parentBranch==="subscript")return ws(a,Rt);if(Te.parentBranch==="above"||Te.parentBranch==="below")return Ao(a,Rt)}return ws(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Hf(a,"backward");let b=a.at(a.position);const z=b.mode;if(z==="text"){if(a.selectionIsCollapsed){let rt=b;for(;rt&&rt.mode==="text";)rt=rt.leftSibling;let ut=b;for(;((y=ut.rightSibling)==null?void 0:y.mode)==="text";)ut=ut.rightSibling;if(rt&&ut)return Ao(a,[rt,ut])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?ws(a,b):ws(a,0)}const ce=a.at(a.anchor).parentPrompt,Te=ce?a.offsetOf(ce.leftSibling):Math.max(a.position-1,0),Fe=Oh(a,Te,"backward");if(Fe)return ws(a,Fe);if(z==="math"){const rt=zp(a,b,mt=>mt.type==="leftright"||mt.type==="text","backward");if(rt){if(rt.mode==="text"){let mt=rt;for(;mt&&mt.mode==="text";)mt=mt.leftSibling;return Ao(a,[rt,mt])}return Ao(a,rt)}const ut=b.parent;if(ut){if(ut.type==="leftright"||ut.type==="surd")return Ao(a,ut);if(b.parentBranch==="subscript"&&ut.superscript)return Ao(a,ut.superscript);if(b.parentBranch==="below"&&ut.above)return Ao(a,ut.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return ws(a,ut);if(b.parentBranch==="above"||b.parentBranch==="below")return Ao(a,ut)}return ws(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}),Fo({moveToNextPlaceholder:a=>Hf(a,"forward"),moveToPreviousPlaceholder:a=>Hf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function zp(a,y,b,z){if(z==="forward"){let Te=y.rightSibling;for(;Te&&!b(Te);)Te=Te.rightSibling;return Te}let ce=y.leftSibling;for(;ce&&!b(ce);)ce=ce.leftSibling;return ce}function Wf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let z=a.position,ce=!1,Te="";for(;!ce;){const Fe=a.at(z);ce=y===0||Fe===void 0||Fe.type==="first"||Fe.mode!=="math"||!(Fe.type&&/mord|mpunct|operator/.test(Fe.type)||Fe.type==="mop"&&/[a-zA-Z ]+/.test(Fe.value))||!Fe.hasEmptyBranch("superscript")||!Fe.hasEmptyBranch("subscript")||typeof b=="function"&&!b(Fe),ce||(Fe.mode="text",Fe.command=Fe.value,Fe.verbatimLatex=void 0,Te+=Fe.value),z-=1,y-=1}a.contentDidChange({data:Te,inputType:"insertText"})}function wc(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let z=a.position,ce=!1;const Te=[];for(;!ce;){const Fe=a.at(z);ce=y===0||!Fe||Fe.type==="first"||Fe.isFirstSibling||Fe.mode!=="text"||Fe.value===" "||typeof b=="function"&&!b(Fe),ce||(Te.push(qr.serialize([Fe],{defaultMode:"math"})),Fe.mode="math"),z-=1,y-=1}Dh(a),a.contentDidChange({data:Pi(Te),inputType:"insertText"})}function Dh(a){var y;let b=a.position-1;for(;b>=0&&((y=a.at(b))==null?void 0:y.mode)==="math";)b-=1;if(!(b<0)&&a.at(b).mode==="text"&&a.at(b).value===" "&&a.at(b-1).mode==="math"){a.at(b-1).parent.removeChild(a.at(b-1));const z=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=z,a.contentDidChange({inputType:"deleteContent"})}}function Zg(a){let y="",b=a.position,z=!1;for(;!z;){const ce=a.at(b);z=!(ce&&(ce.mode==="text"||ce.mode==="math"&&ce.type&&/mord|mpunct/.test(ce.type))),z||(y=ce.value+y),b-=1}return y}function Vg(a,y,b){const{model:z}=a;if(z.mode==="latex"||!z.at(z.position).isLastSibling||!b||!Cf(b))return!1;const ce=cu(b);if(!z.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ce));const Te=Zg(z)+ce;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ce))return!0;if(/[\^_]/.test(ce))return/(^|\s)[a-zA-Z][^_]$/.test(Te)&&wc(z,1),!0;const Fe={")":"(","}":"{","]":"["}[ce],{parent:rt}=z.at(z.position);if(Fe&&rt instanceof Vi&&rt.leftDelim===Fe)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(Te))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ce))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(Te))return wc(z,1),!1;if(/\D\.[^\d\s]$/.test(Te)){wc(z,1);const ut=z.at(z.position);return ut.value="\u22C5",ut.style.variant="normal",ut.command="\\cdot",ut.verbatimLatex=void 0,z.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(Te)||/\.\d$/.test(Te)||/\([\d+\-.]$/.test(Te))return wc(z,1),!0;if(/\([a-z][,;]$/.test(Te))return wc(z,2),!0;if(/[\d+\-=><*|]$/.test(ce))return Dh(z),!0}else{if(y==="[Space]")return Wf(z,void 0,Fe=>/[a-z][:,;.]$/.test(Fe.value)),!0;if(/[a-zA-Z]{3,}$/.test(Te)&&!/(dxd|abc|xyz|uvw)$/.test(Te))return Wf(z,void 0,Fe=>/[a-zA-Z]/.test(Fe.value)),!0;if(/(^|\W)(if)$/i.test(Te))return Wf(z,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(Te)&&!/(αβγ)$/.test(Te))return Wf(z,void 0,Fe=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(Fe.value)),!0;if(ce==="?"||ce==="."&&!/[\d-+]\.$/.test(Te))return!0}return!1}function Gg(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=Kp(),z=a.element.getBoundingClientRect();b.style.left=`${z.left}px`,b.style.top=`${z.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 Xg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=Kp();y.innerHTML=""}else{const y=Mf("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function Kp(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(jo("keystroke-caption"),jo("core"),Mf("mathlive-keystroke-caption-panel"))}function Yg(){document.getElementById("mathlive-keystroke-caption-panel")&&(xh("mathlive-keystroke-caption-panel"),E("core"),E("keystroke-caption"))}function Hp(a,y){var b,z,ce;const{model:Te}=a,Fe=mp(y);if(y.isTrusted){j0(y);const ir=yd();a.keyboardLayout!==ir.id&&(a.keyboardLayout=ir.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Gg(a,Fe),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let rt,ut="",mt;const wt=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(Te.mode==="math")if(Fe==="[Backspace]")wt.pop();else if(!Cf(y))a.flushInlineShortcutBuffer();else{const ir=cu(y),cr=[...(z=(b=wt[wt.length-1])==null?void 0:b.keystrokes)!=null?z:[],ir];wt.push({state:Te.getState(),keystrokes:cr,leftSiblings:Jg(a)});let Hr=0,Rn="";for(;!rt&&Hr<cr.length;)mt=wt.length-(cr.length-Hr),Rn=cr.slice(Hr).join(""),rt=rd(wt[mt].leftSiblings,Rn,a.options.inlineShortcuts),!rt&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Rn)&&(rt=a.options.onInlineShortcut(a,Rn)),Hr+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(rt?a.switchMode("math"):Vg(a,Fe,y)&&(a.switchMode({math:"text",text:"math"}[Te.mode]),ut=""))}if(!rt){if(ut||(ut=Z0(a.keybindings,Te.mode,y)),!ut&&(Fe==="[Enter]"||Fe==="[Return]")){let ir=!1;return Te.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(ir=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),ir||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),Te.contentDidChange({inputType:"insertLineBreak"})),ir}if((!ut||Fe==="[Space]")&&Te.mode==="math"){if(Fe==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return ki.insert(Te,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ut="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const ir=Te.at(Te.position+1),cr=Te.at(Te.position-1);if((ir==null?void 0:ir.mode)==="text"||(cr==null?void 0:cr.mode)==="text")return ki.insert(Te," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ce=Te.at(Te.position))!=null&&ce.isDigit()&&window.MathfieldElement.decimalSeparator===","&&cu(y)===","&&(ut="insertDecimalSeparator")}}if(!rt&&!ut){if(Te.mathfield.smartFence){if(Bh(Te,cu(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:ir}=Te.at(Te.position);if(ir instanceof Vi&&ir.rightDelim==="?"&&Te.at(Te.position).isLastSibling&&/^[)}\]|]$/.test(Fe))return a.snapshot(),ir.isDirty=!0,ir.rightDelim=Fe,Te.position+=1,Te.selectionDidChange(),Te.contentDidChange({data:cu(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!Te.selectionIsCollapsed){const cr=cu(y);if(cr==="("||cr==="{"||cr==="["){const Hr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[cr],Rn={"(":")","{":"\\rbrace","[":"\\rbrack"}[cr],[Fr,sn]=Qa(Te.selection);return a.snapshot(),Te.position=sn,ki.insert(Te,Rn,{format:"latex"}),Te.position=Fr,ki.insert(Te,Hr,{format:"latex"}),Te.setSelection(Fr+1,sn+1),Te.contentDidChange({data:cr,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const Rt=Te.at(Math.max(Te.position,Te.anchor)),{parent:Gt}=Rt;if(ut==="moveAfterParent"&&(Gt==null?void 0:Gt.type)==="leftright"&&Rt.isLastSibling&&a.options.smartFence&&Bh(Te,".",a.defaultStyle)&&(ut="",ya(a)),a.keyboardDelegate.cancelComposition(),ut)a.executeCommand(ut);else if(rt){const ir=a.effectiveStyle;Te.setState(wt[mt].state);const cr=wt[wt.length-1].keystrokes;for(const Hr of cr)ki.insert(Te,Hr,{silenceNotifications:!0,style:ir});a.snapshot("insert-shortcut"),Te.setState(wt[mt].state),Te.deferNotifications({content:!0,selection:!0,data:rt,type:"insertText"},()=>(ki.insert(Te,rt,{format:"latex",style:ir}),Dh(a.model),rt.endsWith(" ")&&(a.switchMode("text"),ki.insert(Te," ",{style:ir,mode:"text"})),a.snapshot(),Te.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,Te.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Ih(a,y,b){const{model:z}=a;if(!a.isSelectionEditable){z.announce("plonk");return}b!=null||(b={}),b.focus&&a.focus(),b.feedback&&window.MathfieldElement.playSound("keypress"),typeof b.mode=="string"&&(a.switchMode(b.mode),a.snapshot());let ce=af(y);const Te=window.mathVirtualKeyboard;if(Te!=null&&Te.isShifted&&(ce=typeof ce=="string"?ce.toUpperCase():ce.map(ut=>ut.toUpperCase())),b.simulateKeystroke){let ut=!0;for(const mt of ce)Hp(a,new KeyboardEvent("keypress",{key:mt}))&&(ut=!1);if(ut)return}const Fe=z.at(z.position),rt=ie(ie({},Fe.computedStyle),a.defaultStyle);if(z.selectionIsCollapsed||(z.deleteAtoms(Qa(z.selection)),a.snapshot("delete")),z.mode==="latex")z.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Af(a);for(const ut of ce)ki.insert(z,ut);a.snapshot("insert-latex"),xd(a)});else if(z.mode==="text"){for(const ut of ce)ki.insert(z,ut,{style:rt});a.snapshot("insert-text")}else if(z.mode==="math")for(const ut of ce)Qg(a,ut,rt,Fe);a.dirty=!0,a.scrollIntoView()}function Jg(a){const y=a.model,b=[];let z=y.at(Math.min(y.position,y.anchor));for(;z.type!=="first";)b.push(z),z=z.leftSibling;return b}function Qg(a,y,b,z){const ce=a.model;let Te={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(Te=["insert",a.options.mathModeSpace]),Te){a.executeCommand(Te);return}if(/\d/.test(y)&&a.options.smartSuperscript&&z.parentBranch==="superscript"&&z.parent.type!=="mop"&&z.parent.type!=="operator"&&z.parent.type!=="extensible-symbol"&&z.hasNoSiblings){$g(ce),ki.insert(ce,y,{style:b}),a.snapshot(),_p(ce),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const Fe=a.adoptStyle==="left"?z:z.parent?z.rightSibling:null;(Fe==null?void 0:Fe.type)==="mord"&&/[a-zA-Z0-9]/.test(Fe.value)&&(b=ie({},b),Fe.style.variant&&(b.variant=Fe.style.variant),Fe.style.variantStyle&&(b.variantStyle=Fe.style.variantStyle))}ki.insert(ce,y,{style:b}),a.snapshot(`insert-${ce.at(ce.position).type}`)}function $g(a){a.selectionIsCollapsed||(a.deleteAtoms(Qa(a.selection)),a.mathfield.snapshot("delete"))}function Bh(a,y,b){if(!y||a.mode!=="math")return!1;const z=a.at(a.position),{parent:ce}=z,Te={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!Te)return!1;const Fe=ge[Te],rt=be[Te];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[ut,mt]=Qa(a.selection),wt=a.extractAtoms([ut,mt]),Rt=ce.addChildrenAfter([new Vi("left...right",wt,{leftDelim:Te,rightDelim:rt})],a.at(ut));return a.setSelection(a.offsetOf(Rt.firstChild),a.offsetOf(Rt.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:Te,inputType:"insertText"}),!0}if(Te==="|"){const ut=ce instanceof Vi?ce.leftDelim+ce.rightDelim:"";if(ut==="\\lbrace\\rbrace"||ut==="\\{\\}"||ut==="\\lbrace?")return a.mathfield.snapshot(),ki.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:Te,inputType:"insertText"}),!0}if(rt){if(ce instanceof Vi&&ce.firstChild===z&&(ce.leftDelim==="?"||ce.leftDelim==="."))return ce.leftDelim=Te,ce.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ce instanceof Vi)){let Rt=z;for(;Rt&&!(Rt.type==="mclose"&&Rt.value===rt);)Rt=Rt.rightSibling;if(Rt){a.mathfield.snapshot();const Gt=a.extractAtoms([a.offsetOf(z),a.offsetOf(Rt)]);return Gt.pop(),ce.addChildrenAfter([new Vi("left...right",Gt,{leftDelim:Te,rightDelim:rt})],z),a.position=a.offsetOf(ce.firstChild)+1,a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const ut=a.offsetOf(z.lastSibling);let mt;for(mt=a.position;mt<=ut;mt++){const Rt=a.at(mt);if(Rt instanceof Vi&&(Rt.leftDelim==="?"||Rt.leftDelim===".")&&Wp(Te,Rt.rightDelim))break}const wt=a.at(mt);if(mt<=ut&&wt instanceof Vi){wt.leftDelim=Te,a.mathfield.snapshot();let Rt=a.extractAtoms([a.position,mt-1]);return Rt=Rt.filter(Gt=>Gt.type!=="first"),wt.addChildren(Rt,wt.parentBranch),a.position+=1,a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ce instanceof Vi&&(ce.leftDelim==="?"||ce.leftDelim===".")&&Wp(Te,ce.rightDelim)){ce.isDirty=!0,ce.leftDelim=Te,a.mathfield.snapshot();const Rt=a.extractAtoms([a.offsetOf(z.firstSibling),a.position]);for(const Gt of Rt)ce.parent.addChildBefore(Gt,ce);return a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ce instanceof Vi&&ce.leftDelim==="|")){if(a.mathfield.snapshot(),ki.insert(a,`\\left${Te}\\right?`,{format:"latex",style:b}),z.lastSibling.type!=="first"){const Rt=a.offsetOf(z.lastSibling),Gt=a.extractAtoms([a.position,Rt]);a.at(a.position).body=Gt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(Fe){let ut=z;for(;ut;){if(ut.type==="mopen"&&ut.value===Fe){a.mathfield.snapshot();const ir=ut.leftSibling,cr=a.extractAtoms([a.offsetOf(ut.leftSibling),a.offsetOf(z)]);cr.shift();const Hr=new Vi("left...right",cr,{leftDelim:Fe,rightDelim:Te});return ce.addChildrenAfter([Hr],ir),a.position=a.offsetOf(Hr),a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ut=ut.leftSibling}if(ce instanceof Vi&&z.isLastSibling&&Lh(ce.leftDelim,Te))return a.mathfield.snapshot(),ce.isDirty=!0,ce.rightDelim=Te,a.position+=1,a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const mt=a.offsetOf(z.firstSibling);let wt;for(wt=a.position;wt>=mt;wt--){const ir=a.at(wt);if(ir instanceof Vi&&(ir.rightDelim==="?"||ir.rightDelim===".")&&Lh(ir.leftDelim,Te))break}const Rt=a.at(wt);if(wt>=mt&&Rt instanceof Vi)return a.mathfield.snapshot(),Rt.rightDelim=Te,Rt.addChildren(a.extractAtoms([wt,a.position]),Rt.parentBranch),a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ce instanceof Vi&&(ce.rightDelim==="?"||ce.rightDelim===".")&&Lh(ce.leftDelim,Te))return a.mathfield.snapshot(),ce.isDirty=!0,ce.rightDelim=Te,ce.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(z.lastSibling)]),ce.parentBranch),a.position=a.offsetOf(ce),a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Gt=ce.parent;return Gt instanceof Vi&&(Gt.rightDelim==="?"||Gt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(Gt),Bh(a,Te,b)):!1}return!1}function Lh(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):be[a]===y:!0}function Wp(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):ge[y]===a:!0}Fo({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:Xg,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,z)=>(a.switchMode(y,b,z),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Ih(a,y,b),!0),insertDecimalSeparator:a=>{const y=a.model;return y.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&y.at(Math.max(y.position,y.anchor)).isDigit()?(a.insert("{,}",{format:"latex"}),a.snapshot("insert-mord"),!0):(a.insert("."),!0)},commit:a=>{var y;return a.model.contentWillChange({inputType:"insertLineBreak"})&&((y=a.host)==null||y.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(a,y,b)=>{const z=a.getPrompts();let ce="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),Te=0;for(;z.includes(ce)&&Te<100;){if(Te===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),Te++}return a.insert(`\\placeholder[${y!=null?y:ce}]{}`,b),!0}}),Fo({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"}),Fo({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})&&(xd(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),ya(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=Ph(a,y),{model:z}=a;return z.selectionIsCollapsed?(a.defaultStyle.fontSeries&&b.fontSeries===a.defaultStyle.fontSeries&&(b.fontSeries="auto"),b.fontShape&&b.fontShape===a.defaultStyle.fontShape&&(b.fontShape="auto"),b.color&&b.color===a.defaultStyle.color&&(b.color="none"),b.backgroundColor&&b.backgroundColor===a.defaultStyle.backgroundColor&&(b.backgroundColor="none"),b.fontSize&&b.fontSize===a.defaultStyle.fontSize&&(b.fontSize="auto"),a.defaultStyle=ie(ie({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{z.selection.ranges.forEach(ce=>Mh(z,ce,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}Fo({applyStyle:qg},{target:"mathfield",canUndo:!0,changeContent:!0});function Ph(a,y){var b,z,ce,Te,Fe,rt,ut,mt,wt,Rt;const Gt={};if(typeof y.color=="string"){const cr=(z=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?z:"none";cr!==y.color&&(Gt.verbatimColor=(ce=y.verbatimColor)!=null?ce:y.color),Gt.color=cr}if(typeof y.backgroundColor=="string"){const cr=(Fe=a.backgroundColorMap((Te=y.backgroundColor)!=null?Te:y.verbatimBackgroundColor))!=null?Fe:"none";cr!==y.backgroundColor&&(Gt.verbatimBackgroundColor=(rt=y.verbatimBackgroundColor)!=null?rt:y.backgroundColor),Gt.backgroundColor=cr}typeof y.fontFamily=="string"&&(Gt.fontFamily=y.fontFamily),typeof y.series=="string"&&(Gt.fontSeries=y.series),typeof y.fontSeries=="string"&&(Gt.fontSeries=y.fontSeries.toLowerCase()),Gt.fontSeries&&(Gt.fontSeries=(ut={bold:"b",medium:"m",normal:"m"}[Gt.fontSeries])!=null?ut:Gt.fontSeries),typeof y.shape=="string"&&(Gt.fontShape=y.shape),typeof y.fontShape=="string"&&(Gt.fontShape=y.fontShape.toLowerCase()),Gt.fontShape&&(Gt.fontShape=(mt={italic:"it",up:"n",upright:"n",normal:"n"}[Gt.fontShape])!=null?mt:Gt.fontShape),y.variant&&(Gt.variant=y.variant.toLowerCase()),y.variantStyle&&(Gt.variantStyle=y.variantStyle.toLowerCase());const ir=(wt=y.size)!=null?wt:y.fontSize;return typeof ir=="number"?Gt.fontSize=Math.max(1,Math.min(10,ir)):typeof ir=="string"&&(Gt.fontSize=(Rt={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[ir.toLowerCase()])!=null?Rt:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[ir]),Gt}function Rh(a){let[y,b]=Qa(a.selection);if(y=Up(a,y,"backward"),b=Up(a,b,"forward"),y===b){const z=a.at(y);if(z.type==="leftright")return a.setSelection(a.offsetOf(z.firstChild)-1,b);if(z.type==="first"&&(z.parent.type==="leftright"||z.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(z.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function Up(a,y,b){var z,ce,Te;let Fe=a.at(y);if(!Fe)return y;const rt=b==="forward"?1:-1;if(Fe.mode==="text"){for(;Fe&&!(Fe.mode!=="text"||!He.test(Fe.value));)y+=rt,Fe=a.at(y);return b==="backward"?y-1:y}if(Fe.mode==="latex"){if(/[a-zA-Z\*]/.test(Fe.value))if(b==="backward")for(;Fe&&Fe.mode==="latex"&&Fe.value!=="\\"&&/[a-zA-Z]/.test(Fe.value);)y+=rt,Fe=a.at(y);else for(;Fe&&Fe.mode==="latex"&&/[a-zA-Z\*]/.test(Fe.value);)y+=rt,Fe=a.at(y);else if(Fe.value==="{"){if(b==="forward"){for(;Fe&&Fe.mode==="latex"&&Fe.value!=="}";)y+=rt,Fe=a.at(y);return y}return y-1}else if(Fe.value==="}"){if(b==="backward"){for(;Fe&&Fe.mode==="latex"&&Fe.value!=="{";)y+=rt,Fe=a.at(y);return y-1}return y}return y-1}if(Fe.mode==="math"){if(Fe.isDigit()){for(;(z=a.at(y+rt))!=null&&z.isDigit();)y+=rt;return b==="backward"?y-1:y}if(Fe.style.variant||Fe.style.variantStyle){let ut=(ce=a.at(y))==null?void 0:ce.style;for(;ut&&ut.variant===Fe.style.variant&&ut.variantStyle===Fe.style.variantStyle;)ut=(Te=a.at(y+rt))==null?void 0:Te.style,y+=rt;return b==="backward"?y-1:y}return y}return y}Fo({selectGroup:a=>{const y=Rh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Ks(a,"forward",{extend:!0}),extendSelectionBackward:a=>Ks(a,"backward",{extend:!0}),extendToNextWord:a=>mu(a,"forward",{extend:!0}),extendToPreviousWord:a=>mu(a,"backward",{extend:!0}),extendSelectionUpward:a=>Ks(a,"upward",{extend:!0}),extendSelectionDownward:a=>Ks(a,"downward",{extend:!0}),extendToNextBoundary:a=>mu(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>mu(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 Sc=null,Md=0,Uf=class is{static start(y,b,z,ce){var Te;is.element=y,(Te=is.controller)==null||Te.abort(),is.controller=new AbortController;const Fe={signal:is.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",z,Fe),y.addEventListener("pointerup",ce,Fe),y.addEventListener("pointercancel",ce,Fe),Nh(b)&&(is.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",z,Fe),window.addEventListener("blur",ce,Fe),window.addEventListener("mouseup",ce,Fe))}static stop(){var y;(y=is.controller)==null||y.abort(),is.controller=void 0,typeof is.pointerId=="number"&&(is.element.releasePointerCapture(is.pointerId),is.pointerId=void 0)}};function Nh(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 z=a;let ce,Te=!1,Fe=!1,rt="none",ut=!1,mt=!1;const wt=y.clientX,Rt=y.clientY,Gt=Date.now(),ir=z.field,cr=setInterval(()=>{ut?ir.scroll({top:0,left:ir.scrollLeft-16}):mt&&ir.scroll({top:0,left:ir.scrollLeft+16})},32);function Hr(){Uf.stop(),Te=!1,clearInterval(cr),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Rn(sn){if(!z.hasFocus()){Hr();return}const Fn=sn.clientX,xn=sn.clientY,oi=Nh(sn)&&sn.pointerType==="touch"?20:5;if(Date.now()<Gt+500&&Math.abs(wt-Fn)<oi&&Math.abs(Rt-xn)<oi){sn.preventDefault(),sn.stopPropagation();return}const fi=ir.getBoundingClientRect();mt=Fn>fi.right,ut=Fn<fi.left;let ui=ce;Nh(sn)&&(sn.isPrimary||(ui=kd(z,sn.clientX,sn.clientY,{bias:0})));const zi=kd(z,Fn,xn,{bias:Fn<=wt?Fn===wt?0:-1:1});ui>=0&&zi>=0&&(z.model.extendSelectionTo(ui,zi),ya(a)),Fe&&Rh(z.model)}Sc&&Math.abs(Sc.x-wt)<5&&Math.abs(Sc.y-Rt)<5&&Date.now()<Sc.time+500?(Md+=1,Sc.time=Gt):(Sc={x:wt,y:Rt,time:Gt},Md=1);const Fr=ir.getBoundingClientRect();if(wt>=Fr.left&&wt<=Fr.right&&Rt>=Fr.top&&Rt<=Fr.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ce=kd(a,wt,Rt,{bias:0}),ce>=0){if(a.element.classList.add("tracking"),y.shiftKey){const sn=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ce),yp(a.model)||sn?rt="all":rt="selection"}else a.model.at(ce).type==="placeholder"?(a.model.setSelection(ce-1,ce),rt="selection"):((b=a.model.at(ce).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ce,ce+1),rt="selection"):(a.model.position=ce,yp(a.model)?rt="all":rt="selection");a.defaultStyle={},y.detail===3||Md>2?(Hr(),(y.detail===3||Md===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},rt="all")):Te||(Te=!0,Uf.start(ir,y,Rn,Hr),(y.detail===2||Md===2)&&(Fe=!0,Rh(a.model),rt="all"))}a.hasFocus()||(rt="none",a.focus({preventScroll:!0}))}else Sc=null;a.stopCoalescingUndo(),rt!=="none"&&(a.model.selectionIsCollapsed&&(rt="all"),ya(a)),y.preventDefault()}function ev(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const z=a-(b.left+b.right)/2,ce=y-(b.top+b.bottom)/2;return z*z+ce*ce}function Vp(a,y,b,z,ce){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const Te=Ll(a,b);if(!Te)return[1/0,null];let Fe=[1/0,null];if(b.hasChildren&&!b.captureSelection&&z>=Te.left&&z<=Te.right)for(const rt of b.children){const ut=Vp(a,y,rt,z,ce);ut[0]<=Fe[0]&&(Fe=ut)}return Fe[1]||(Fe=[ev(z,ce,Te),b]),y.set(b.id,Fe),Fe}function tv(a,y,b){const[,z]=Vp(a,new Map,a.model.root,y,b);return z}function kd(a,y,b,z){var ce;const Te=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!Te)return 0;if(y>Te.right||b>Te.bottom+8)return a.model.lastOffset;if(y<Te.left||b<Te.top-8)return 0;z=z!=null?z:{},z.bias=(ce=z.bias)!=null?ce:0;let Fe=tv(a,y,b);const rt=[];let ut=Fe;for(;ut;)rt.unshift(ut),ut=ut.parent;for(const wt of rt)if(wt.captureSelection){Fe=wt;break}let mt=a.model.offsetOf(Fe);if(mt<0)return-1;if(Fe.leftSibling)if(z.bias===0&&Fe.type!=="placeholder"){const wt=Ll(a,Fe);wt&&y<(wt.left+wt.right)/2&&(mt=a.model.offsetOf(Fe.leftSibling))}else z.bias<0&&(mt=a.model.offsetOf(Fe.leftSibling));return mt}var rv=class extends ki{constructor(){super("math")}onPaste(a,y){if(!y||!a.model.contentWillChange({data:typeof y=="string"?y:null,dataTransfer:typeof y=="string"?null:y,inputType:"insertFromPaste"}))return!1;let b="",z="auto",ce=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ce)try{const Te=JSON.parse(ce);if(Te&&Array.isArray(Te)){a.snapshot();const Fe=Nl(Te),{model:rt}=a;rt.selectionIsCollapsed||rt.deleteAtoms(Qa(rt.selection));const ut=rt.at(rt.position);if(ut.parent instanceof Ti){console.assert(ut.parentBranch!==void 0);const mt=[];let wt=[];Fe[0].type==="first"&&Fe.shift(),Fe[Fe.length-1].type==="first"&&Fe.pop();for(const cr of Fe)cr.type==="first"&&wt.length>0?(mt.push(wt),wt=[cr]):wt.push(cr);wt.length>0&&mt.push(wt);let Rt=Number(ut.parentBranch[0]),Gt=Number(ut.parentBranch[1]);const ir=ut.parent.maxColumns;for(;ut.parent.colCount-Gt<mt.length&&ut.parent.colCount<ir;)ut.parent.addColumn();ut.parent.addChildrenAfter(mt[0],ut);for(let cr=1;cr<mt.length;cr++)Gt++,Gt>=ir&&(Gt=0,ut.parent.addRowAfter(Rt),Rt++),ut.parent.setCell(Rt,Gt,mt[cr])}else ut.parent.addChildrenAfter(Fe.filter(mt=>mt.type!=="first"),ut);return rt.position=rt.offsetOf(Fe[Fe.length-1]),rt.contentDidChange({inputType:"insertFromPaste"}),ya(a),!0}}catch(Te){}if(ce=typeof y!="string"?y.getData("application/json"):"",ce&&window.MathfieldElement.computeEngine)try{const Te=JSON.parse(ce);if(typeof Te=="object"&&"latex"in Te&&Te.latex&&(b=Te.latex),!b){const Fe=window.MathfieldElement.computeEngine.box(Te);Fe&&!Fe.has("Error")&&(b=Fe.latex)}b||(z="latex")}catch(Te){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(z="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let Te;return[Te,b]=Ns(b),z==="auto"&&Te&&(z="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:z})&&(a.startRecording(),a.snapshot("paste"),ya(a)),a.startRecording(),!0}return!1}insert(a,y,b){var z,ce;const Te=typeof y=="string"?y:(ce=(z=window.MathfieldElement.computeEngine)==null?void 0:z.box(y).latex)!=null?ce:"";if(!b.silenceNotifications&&!a.contentWillChange({data:Te,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:Fe}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const rt=a.silenceNotifications;a.silenceNotifications=!0;const ut={"?":"\\placeholder{}","@":"\\placeholder{}"};ut[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Qa(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 mt=-1;ut[0]?ut["@"]=ut[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(mt=iv(a),mt>=0&&(ut["@"]=a.getValue(mt,a.position,"latex"))),ut[0]||(ut[0]=ut["?"]);let wt=!1;const Rt=Fn=>(wt=!0,ut[Fn]);let[Gt,ir]=Gp(a,y,Rt,b);if(!ir)return!1;const cr=ir.length===1&&ir[0].type==="genfrac";cr&&mt>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ut["@"]=ut["?"],wt=!1,[Gt,ir]=Gp(a,y,Rt,b)):mt>=0&&a.deleteAtoms([mt,a.position]);const{parent:Hr}=a.at(a.position),Rn=Hr.hasEmptyBranch("body");if(cr&&Gt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Hr instanceof Vi&&Hr.leftDelim==="("&&Rn){const Fn=Hr.parent,xn=Hr.parentBranch;Fn.removeChild(Hr),Fn.setChildren(ir,xn)}const Fr=a.at(a.position);Fr.parent.addChildrenAfter(ir,Fr),Gt==="latex"&&typeof y=="string"&&(Hr==null?void 0:Hr.type)==="root"&&Rn&&!wt&&(Hr.verbatimLatex=y),a.silenceNotifications=rt;const sn=ir[ir.length-1];if(b.selectionMode==="placeholder"){const Fn=ir.flatMap(xn=>[xn,...xn.children]).find(xn=>xn.type==="placeholder");if(Fn){const xn=a.offsetOf(Fn);a.setSelection(xn-1,xn),a.announce("move")}else sn&&(a.position=a.offsetOf(sn))}else b.selectionMode==="before"||(b.selectionMode==="after"?sn&&(a.position=a.offsetOf(sn)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(sn)));return a.contentDidChange({data:Te,inputType:"insertText"}),a.silenceNotifications=Fe,!0}};function Gp(a,y,b,z){var ce;let Te,Fe=[];if(typeof y!="string"||z.format==="math-json"){const rt=window.MathfieldElement.computeEngine;if(!rt)return["math-json",[]];[Te,y]=["latex",rt.box(y).latex],Fe=qa(y,{context:a.mathfield.context})}else typeof y=="string"&&z.format==="ascii-math"?([Te,y]=dc(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),Fe=qa(y,{context:a.mathfield.context}),Te!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Zf(Fe)):(z.format==="auto"||(ce=z.format)!=null&&ce.startsWith("latex"))&&(z.format==="auto"&&([Te,y]=dc(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),z.format==="latex"&&([,y]=Ns(y)),Fe=qa(y,{context:a.mathfield.context,args:b}),z.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Zf(Fe));return jl(Fe,z.style),[Te!=null?Te:"latex",Fe]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Vi&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Zf(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Vi&&b.leftDelim==="("){let z=0,ce=0,Te=0;for(let Fe=0;b.body[Fe];Fe++)b.body[Fe].type==="genfrac"&&(z++,ce=Fe),Te++;Te===0&&z===1&&(a[y]=b.body[ce])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){Zf(y.branch(b));const z=nv(y.branch(b));z&&y.setChildren(z,b)}if(y instanceof Ti)for(const b of y.cells)Zf(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 z=!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),z=!0}else y.type==="leftright"&&(y=y.leftSibling,z=!0);if(z)for(;!y.isFirstSibling&&(y.isFunction||Xp(y));)y=y.leftSibling;else{const ce=[];for(;!y.isFirstSibling&&(Xp(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 Xp(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 ki{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"),ya(a)),a.startRecording(),!0):!1}insert(a,y,b={}){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:z}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ce=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Qa(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 Te=ov(y,a.mathfield.context);if(jl(Te,b.style),!Te)return!1;const Fe=a.at(a.position),rt=Fe.parent.addChildrenAfter(Te,Fe);return a.silenceNotifications=ce,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(rt)):rt&&(a.position=a.offsetOf(rt))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=z,!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 "),qa(a,{context:y,parseMode:"text"})}new av;function Hs(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var la=4,Do=20,Fa=2*(Do+la),Vf=(a,y)=>`
|
|
|
<line x1="${a+Do}" y1="${y+Do}"
|
|
|
x2="${a>y?a+Do:7*Do+10*la}"
|
|
|
y2="${a<y?y+Do:7*Do+10*la}"/>
|
|
|
<svg id="plus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
|
|
|
</svg>`,Yp=(a,y)=>`
|
|
|
<line x1="${a+Do}" y1="${y+Do}"
|
|
|
x2="${a>y?a+Do:7*Do+10*la}"
|
|
|
y2="${a<y?y+Do:7*Do+10*la}"/>
|
|
|
<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>`,Gf=(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*Do+10*la+5} ${8*Do+10*la+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${Fa+la}"
|
|
|
height="${3*Fa}"
|
|
|
width="${Fa}"
|
|
|
rx="${Fa/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${Fa+la}"
|
|
|
y="0"
|
|
|
height="${Fa}"
|
|
|
width="${3*Fa}"
|
|
|
rx="${Fa/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${Gf(2*(la+Fa),2*la+3*Fa,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${Gf(2*(la+Fa),2*la+Fa,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${Gf(2*la+3*Fa,2*(la+Fa),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${Gf(2*la+Fa,2*(la+Fa),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Vf(2*la+Fa,la)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${Yp(2*la+2*Fa,la)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Vf(2*la+3*Fa,la)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Vf(la,2*la+Fa)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${Yp(la,2*la+2*Fa)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Vf(la,2*la+3*Fa)}
|
|
|
</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>`,Jp=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>`,_h={matrix:lv,pmatrix:cv,bmatrix:uv,Bmatrix:Jp,vmatrix:dv,Vmatrix:fv},jh={cases:hv,rcases:pv,Bmatrix:Jp};function mv(a){var y,b;const z=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!z)return;let ce=0;z.forEach(cr=>{(!ce||cr.length>ce)&&(ce=cr.length)});let Te=document.getElementById("mathlive-environment-popover");Te||(Te=Mf("mathlive-environment-popover"),jo("environment-popover"),jo("core"),Te.setAttribute("aria-hidden","true"));let Fe;const rt=Te.querySelector(".MLEP__environment-controls");rt?Fe=rt:(Fe=document.createElement("div"),Te.innerHTML="",Te.appendChild(Fe)),Fe.className="MLEP__environment-controls",Fe.style.display="flex",Fe.style.width="100%",Fe.style.height="100%",Fe.style.boxSizing="border-box",Fe.innerHTML=sv;let ut=[],mt="";const wt=a.model.parentEnvironment.environmentName;if(yo(wt)){const cr=vv(wt);mt=_h[cr]("active");const Hr=_h,{[cr]:Rn}=Hr,Fr=me(Hr,[se(cr)]);ut=Object.values(Fr).map(sn=>sn("inactive"))}else if(bo(wt)){const cr=yv(wt);mt=jh[cr]("active");const Hr=jh,{[cr]:Rn}=Hr,Fr=me(Hr,[se(cr)]);ut=Object.values(Fr).map(sn=>sn("inactive"))}else Da(wt)&&(mt=_h.matrix("active"),ut=Object.values(jh).map(cr=>cr("inactive")));const Rt=document.createElement("div");Rt.className="MLEP__environment-delimiter-controls",Rt.style.display="flex",Rt.style.flexDirection="column",Rt.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${mt}
|
|
|
${ut.join("")}
|
|
|
</div>`,mt&&Fe.appendChild(Rt),Fe.querySelectorAll("[data-command]").forEach(cr=>{const Hr=cr.dataset.command;let Rn=Hr;try{Rn=JSON.parse(Hr)}catch(Fr){}cr.addEventListener("mousedown",Fr=>Fr.preventDefault()),Rn&&cr.addEventListener("click",()=>a.executeCommand(Rn))});const ir=(b=a.field)==null?void 0:b.getBoundingClientRect();ir&&(Te.style.top=`${window.scrollY+(ir.top-Te.clientHeight-15)}px`,Te.style.left=`${ir.left+20}px`,Te.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 Xf(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&fa(b.environmentName)){const z=a.options.environmentPopoverPolicy;y=z==="auto"||z==="on"}}y?mv(a):Fh()}function vv(a){return a.replace("*","")}function yv(a){return a==="dcases"?"cases":a}function Qp(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function $p(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function zh(a,y,b,z){return b==="middle"?a-y/2:b==="start"&&z==="rtl"||b==="end"&&z==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function bv(a,y,b,z){return b==="middle"?a-y/2:b==="start"&&z==="ltr"||b==="end"&&z==="rtl"||b==="top"||b==="right"?a:a-y}function xv(a,y){var b,z,ce;const Te=(b=Qp(a))!=null?b:"ltr";a.style.position="fixed",a.style.left="",a.style.top="",a.style.right="",a.style.bottom="",a.style.height="",a.style.width="";const Fe=a.getBoundingClientRect(),rt=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let ut=Math.min(rt,(z=y.height)!=null?z:Fe.height),mt=zh(y.location.y,ut,y.verticalPos,Te);mt+ut>window.innerHeight-8&&(y.alternateLocation?(mt=zh(y.alternateLocation.y,ut,y.verticalPos,Te),mt+ut>window.innerHeight-8&&(mt=void 0)):mt=void 0),Number.isFinite(mt)||(mt=Math.max(8,window.innerHeight-8-ut),8+ut>window.innerHeight-8&&(a.style.bottom="8px")),ut=Math.min(mt+ut,window.innerHeight-8)-mt;const wt=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let Rt=Math.min(wt,(ce=y.width)!=null?ce:Fe.width),Gt=zh(y.location.x,Rt,y.horizontalPos,Te);Gt+Rt>window.innerWidth-8&&(y.alternateLocation?(Gt=bv(y.alternateLocation.x,Rt,y.verticalPos,Te),Gt+Rt>window.innerWidth-8&&(Gt=void 0)):Gt=void 0),Number.isFinite(Gt)||(Gt=Math.max(8,window.innerWidth-8-Rt),8+Rt>window.innerWidth-8&&(a.style.right="8px")),Rt=Math.min(Gt+Rt,window.innerWidth-8)-Gt,Te==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-Gt-Rt).toString()}px`:a.style.left=`${Math.ceil(Gt).toString()}px`,a.style.top=`${Math.ceil(mt).toString()}px`,ut!==Fe.height&&(a.style.height=`${Math.ceil(ut).toString()}px`),Rt!==Fe.width&&(a.style.width=`${Math.ceil(Rt).toString()}px`)}function wv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function gu(a){return"submenu"in a}function Ws(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function Kh(a){return"type"in a&&a.type==="divider"}function Hh(a){return"type"in a&&a.type==="heading"}var qp={};function Wh(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 z=document.createElement("template");z.innerHTML=b,qp[a]=z,y=z}}if(y){if("content"in y)return y.content.cloneNode(!0);const b=document.createElement("svg");return b.innerHTML=y.innerHTML,b}}var em=80,tm=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,gu(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=Ws(a)&&a.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var a,y;(a=this._abortController)==null||a.abort(),this._abortController=void 0,(y=this._element)==null||y.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var a;return(a=this._label)!=null?a:""}set label(a){a===void 0&&(a=""),a!==this._label&&(this._label=a,this.dirty=!0)}get visible(){return this._visible}set visible(a){a!==this._visible&&(this._visible=a,this.dirty=!0)}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this.element&&(a?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(a){this._checked=a,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(a){a!==this._tooltip&&(this._tooltip=a,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(a){a!==this._ariaLabel&&(this._ariaLabel=a,this.dirty=!0)}get active(){var a,y;return(y=(a=this.element)==null?void 0:a.classList.contains("active"))!=null?y:!1}set active(a){this.element&&this.element.classList.toggle("active",a)}updateState(a){var y,b,z;const ce=this._declaration;if(Kh(ce)){this.enabled=!1,this.checked=!1;return}Hh(ce)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Ws(ce)&&(this.checked=Ws(ce)&&((y=vu(ce.checked,a))!=null?y:!1)),(Ws(ce)||gu(ce))&&(this.enabled=(b=vu(ce.enabled,a))!=null?b:!0,this.visible=(z=vu(ce.visible,a))!=null?z:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Ws(ce)||Hh(ce)||gu(ce))&&(this.label=vu(ce.label,a),this.tooltip=vu(ce.tooltip,a),this.ariaLabel=vu(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(Wh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Wh("mixedmark"))):a.removeAttribute("aria-checked"),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel);const y=document.createElement("span");if(y.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&y.classList.add("heading"),y.innerHTML=this.label,a.append(y),this._tooltip&&a.setAttribute("data-tooltip",this._tooltip),Ws(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=yh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Wh("trailing-chevron"))}get element(){if(this._element)return this._element;if(Kh(this._declaration)){const b=document.createElement("li");return b.setAttribute("part","menu-divider"),b.setAttribute("role","divider"),this._element=b,b}const a=document.createElement("li");this._element=a,(Ws(this._declaration)||Hh(this._declaration)||gu(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(!Ws(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(),z=Qp(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:$p(b,"trailing",z),y:b.top-4},alternateLocation:{x:$p(b,"leading",z),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const z=a.clientX-y.clientX;if(Sv(z,y.clientY-a.clientY,b)<=.2)return!1;let Te="right";if(this.submenu.element){const Fe=this.submenu.element.getBoundingClientRect(),rt=this.element.getBoundingClientRect();Fe.left<rt.left+rt.width/2&&(Te="left")}return Te==="right"?z>0:z<0}};function Sv(a,y,b){return Math.hypot(a,y)/b}function vu(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 Au{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var z,ce;this.parentMenu=(z=b==null?void 0:b.parentMenu)!=null?z: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(z=>z.onCreate?z.onCreate(z,this):new tm(z,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var y;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(y=this._menuItems)==null||y.forEach(b=>b.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(y){if(y.type==="wheel"&&this._element){const b=y;this._element.scrollBy(0,b.deltaY),y.stopPropagation()}}dispatchEvent(y){return this.rootMenu.dispatchEvent(y)}get rootMenu(){return this.parentMenu.rootMenu}updateState(y){var b,z,ce;this._menuItems.forEach(mt=>mt.updateState(y));const Te=this.hasCheck;this.hasCheck=this._menuItems.some(mt=>mt.visible&&mt.hasCheck),this.hasCheck!==Te&&this._menuItems.forEach(mt=>mt.updateState(y));let Fe,rt=0;for(const mt of this._menuItems)mt.type==="heading"?(Fe&&rt===0&&(Fe.visible=!1),Fe=mt,rt=0):mt.type==="divider"&&Fe?(Fe.visible=rt>0,Fe=void 0,rt=0):Fe&&mt.visible&&(rt+=1);Fe&&(Fe.visible=rt>0);let ut=!0;for(const mt of this._menuItems)mt.type==="divider"?(mt.visible=!ut,ut=!0):mt.visible&&(ut=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((z=this.activeMenuItem)!=null&&z.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:z}of this._menuItems)b&&z&&this._element.append(b);(y=this._element.querySelector("li:first-of-type"))==null||y.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const y=document.createElement("menu");y.setAttribute("role","menu"),y.setAttribute("tabindex","-1"),y.setAttribute("aria-orientation","vertical"),y.setAttribute("part","ui-menu-container"),this._submenuClass&&y.classList.add(this._submenuClass),y.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const b=this._abortController.signal;return y.addEventListener("focus",this,{signal:b}),y.addEventListener("wheel",this,{passive:!0,signal:b}),this._element=y,this.updateElement(),y}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(y){var b,z,ce,Te;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const Fe=this.activeMenuItem;Fe.active=!1,(b=Fe.submenu)==null||b.hide()}if(!((z=y==null?void 0:y.visible)==null||z)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ce=y.element)==null||ce.focus({preventScroll:!0}):(Te=this._element)==null||Te.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const z=this._menuItems;for(;!b&&y<=z.length-1;){const ce=z[y];b=ce.type!=="divider"&&ce.visible&&ce.enabled,y+=1}return b?z[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,z=!1;for(;!z&&b>=0;){const ce=y[b];z=ce.type!=="divider"&&ce.visible&&ce.enabled,b-=1}return z?y[b+1]:null}nextMenuItem(y){if(y===0)return this._activeMenuItem;if(!this._activeMenuItem)return y>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const b=this._menuItems.indexOf(this.firstMenuItem),z=this._menuItems.indexOf(this.lastMenuItem);let ce=this._menuItems.indexOf(this._activeMenuItem),Te=1;for(;ce>=b&&ce<=z;){ce+=y>0?1:-1;const Fe=this._menuItems[ce];if(!Fe)break;if(Fe.visible&&Fe.enabled){if(Te===Math.abs(y))return this._menuItems[ce];Te+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const z=this._menuItems.filter(ce=>ce.visible&&ce.enabled).indexOf(y);return z<0?-1:z%this.columnCount}static get collator(){return Au._collator||(Au._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Au._collator}findMenuItem(y){var b;this.updateIfDirty();const z=this._menuItems.filter(rt=>rt.type!=="divider"&&rt.visible&&rt.enabled);if(z.length===0)return null;const ce=Math.max(...z.map(rt=>rt.label.length))-y.length;if(ce<0)return null;let Te=null,Fe=0;for(;Fe<ce&&!Te;)Te=(b=z.find(rt=>Au.collator.compare(y,rt.label.substring(Fe,y.length))===0))!=null?b:null,Fe++;return Te}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),xe()&&(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,z,ce,Te;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),xe()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(z=(b=this.parentMenu)==null?void 0:b.element)==null||z.focus(),(Te=(ce=this._element)==null?void 0:ce.parentNode)==null||Te.removeChild(this._element)}set openSubmenu(y){var b,z,ce,Te;const Fe=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((z=this.activeMenuItem.element)==null||z.setAttribute("aria-expanded",Fe.toString())),(Te=(ce=this.activeMenuItem)==null?void 0:ce.element)==null||Te.classList.toggle("is-submenu-open",Fe),this.isSubmenuOpen=Fe}},nm=class i0 extends rm{constructor(y,b){var z;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(z=b==null?void 0:b.host)!=null?z:null,this.isDynamic=y.some(im),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){K0(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=pc(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,z,ce;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=pc(y));let Te=!0;const Fe=this.activeSubmenu,rt=Fe.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":rt==null||rt.select(pc(y));break;case"ArrowRight":if((rt==null?void 0:rt.type)==="submenu")rt.select(pc(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!rt)Fe.activeMenuItem=Fe.firstMenuItem;else{const ut=(b=Fe.getMenuItemColumn(rt))!=null?b:-1;if(ut>=0&&ut<((z=Fe.columnCount)!=null?z:1)-1){const mt=Fe.nextMenuItem(1);mt&&(Fe.activeMenuItem=mt)}}break;case"ArrowLeft":if(Fe===this.rootMenu)rt||(Fe.activeMenuItem=Fe.firstMenuItem);else if((rt&&(ce=Fe.getMenuItemColumn(rt))!=null?ce:-1)<=0||!rt){Fe.hide();const mt=Fe.parentMenu.activeMenuItem;if(mt){const{element:wt}=mt;wt==null||wt.focus(),wt==null||wt.classList.remove("is-submenu-open")}}else{const mt=Fe.nextMenuItem(-1);mt&&(Fe.activeMenuItem=mt)}break;case"ArrowDown":Fe.activeMenuItem=Fe.nextMenuItem(Fe.columnCount);break;case"ArrowUp":Fe.activeMenuItem=Fe.nextMenuItem(-Fe.columnCount);break;case"Home":case"PageUp":Fe.activeMenuItem=Fe.firstMenuItem;break;case"End":case"PageDown":Fe.activeMenuItem=Fe.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ut=Fe.findMenuItem(this.typingBuffer);ut&&(Fe.activeMenuItem=ut),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Cf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ut=Fe.findMenuItem(this.typingBuffer);ut&&(Fe.activeMenuItem=ut),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else Te=!1}Te&&(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 Fs.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),Fs.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),Fs.state==="open"&&Fs.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,Fs.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 Kh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Ws(a)||gu(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Ws(a)&&typeof a.checked=="function"?!0:gu(a)?a.submenu.some(im):!1}var Yf=class{};Yf.DELAY=300,Yf.MAX_DISTANCE=10;function Ev(a){return new Promise((y,b)=>{const z=Sf(a);z||y(!1);let ce=z;const Te=setTimeout(()=>{Fe.abort(),y(wv(ce,z)<Yf.MAX_DISTANCE)},Yf.DELAY),Fe=new AbortController,rt=Fe.signal;for(const ut of["pointermove","pointerup","pointercancel"])window.addEventListener(ut,mt=>{if(mt.type==="pointerup"||mt.type==="pointercancel")clearTimeout(Te),Fe.abort(),y(!1);else if(mt.type==="pointermove"){const wt=Sf(mt);wt&&(ce=wt)}},{passive:!0,signal:rt})})}function am(a,y,b){return Kl(this,null,function*(){if(a.type==="contextmenu"){const z=a;if(b.show({target:y,location:Sf(z),modifiers:pc(z)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const z=a;if(z.code==="ContextMenu"||z.code==="F10"&&z.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:pc(z)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let z=a.target;for(;z&&y!==z;)z=z.parentNode;if(!z||!b.visible)return!1;const ce=Sf(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};kt(Object.keys(om),"{body:auto}",{createAtom:a=>new ee(oe(ie({},a),{body:qe(a.args[0]),accentChar:om[a.command.slice(1)]}))}),kt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=vt(qe(a.args[0]));return new ee(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])}))}}),kt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new ee(oe(ie({},a),{body:qe(a.args[0]),svgAccent:"overarc"}))}),kt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new ts(oe(ie({},a),{body:qe(a.args[0]),svgBelow:"underarc"}))}),kt("utilde","{body:auto}",{createAtom:a=>{const y=qe(a.args[0]),b=vt(y),z="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new ts(oe(ie({},a),{body:y,svgBelow:z,boxType:Tl(y)}))}}),kt("^","{:string}",{createAtom:a=>{var y;return new qr(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:"^"}))}}),kt("`","{:string}",{createAtom:a=>{var y;return new qr(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:"`"}))}}),kt("'","{:string}",{createAtom:a=>{var y;return new qr(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:"'"}))}}),kt('"',"{:string}",{createAtom:a=>{var y,b;return new qr(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]:'"'}))}}),kt(".","{:string}",{createAtom:a=>{var y,b;return new qr(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]:"."}))}}),kt("=","{:string}",{createAtom:a=>{var y,b;return new qr(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]:"="}))}}),kt("~","{:string}",{createAtom:a=>{var y;return new qr(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"}))}}),kt("c","{:string}",{createAtom:a=>{var y;return new qr(oe(ie({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),kt("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const z=a.args,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(z[1]){const Fe=z[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const rt of Fe){const ut=rt.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ut)ce.strokeWidth=ut[1],ce.strokeStyle=ut[2],ce.strokeColor=ut[3];else{const mt=rt.match(/\s*([a-z]*)\s*=\s*"(.*)"/);mt&&(mt[1]==="mathbackground"?ce.backgroundcolor=mt[2]:mt[1]==="mathcolor"?ce.strokeColor=mt[2]:mt[1]==="padding"?ce.padding=mt[2]:mt[1]==="shadow"&&(ce.shadow=mt[2]))}}ce.strokeStyle==="dashed"?ce.svgStrokeStyle="5,5":ce.strokeStyle==="dotted"&&(ce.svgStrokeStyle="1,5")}ce.borderStyle=`${ce.strokeWidth} ${ce.strokeStyle} ${ce.strokeColor}`;const Te={};return((b=z[0])!=null?b:"").split(/[, ]/).filter(Fe=>Fe.length>0).forEach(Fe=>{Te[Fe.toLowerCase()]=!0}),new ud(a.command,qe(z[2]),Te,ce)}}),kt("cancel","{body:auto}",{createAtom:a=>{var y;return new ud(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:{}})}}),kt("bcancel","{body:auto}",{createAtom:a=>{var y;return new ud(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:{}})}}),kt("xcancel","{body:auto}",{createAtom:a=>{var y;return new ud(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:{}})}}),kt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new ts(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)}))}}),kt("overbrace","{:auto}",{createAtom:a=>new ts(oe(ie({},a),{body:qe(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),kt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new ts(oe(ie({},a),{body:qe(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),kt(["underbrace"],"{:auto}",{createAtom:a=>new ts(oe(ie({},a),{body:qe(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),kt(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:a=>{var y,b,z,ce,Te;return new ts(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((z=a.args)==null?void 0:z[1]),below:(Te=qe((ce=a.args)==null?void 0:ce[0]))!=null?Te:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(a,y)=>a.command+(a.hasEmptyBranch("below")?"":`[${a.belowToLatex(y)}]`)+`{${a.aboveToLatex(y)}}${a.supsubToLatex(y)}`}),kt(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:a=>new hc(a.command.slice(1),oe(ie({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),kt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new hc({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],oe(ie({},a),{limits:"over-under",variant:"main"}))}),kt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new hc(a.command.slice(1),oe(ie({},a),{limits:"over-under",variant:"main"}))}),kt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new hc(a.command.slice(1),oe(ie({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),kt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new qr(oe(ie({},a),{body:qe(a.args[0])})),serialize:(a,y)=>`\\ang{${a.bodyToLatex(y)}}`,render:(a,y)=>{const b=a.createBox(y),z=b.caret;b.caret=void 0;const ce=new _n("\xB0",{style:oe(ie({},a.style),{variant:"normal",variantStyle:"up"})});return new _n([b,ce],{type:"inner",isSelected:a.isSelected,caret:z})}}),kt("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}))}),kt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=ie({},a),b=a.command,z=a.args;switch(b){case"\\dfrac":case"\\frac":case"\\tfrac":y.hasBarLine=!0;break;case"\\atopfrac":y.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":y.hasBarLine=!1,y.leftDelim="(",y.rightDelim=")";break;case"\\cfrac":y.hasBarLine=!0,y.continuousFraction=!0;break;default:}switch(b){case"\\dfrac":case"\\dbinom":y.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":y.mathstyleName="textstyle";break;default:}return new su(z[0]?qe(z[0]):[new mi],z[1]?qe(z[1]):[new mi],y)},serialize:(a,y)=>{const b=a.aboveToLatex(y),z=a.belowToLatex(y);return/^[0-9]$/.test(b)&&/^[0-9]$/.test(z)?`${a.command}${b}${z}`:sa(a.command,b,z)}}),kt(["brace","brack"],"",{infix:!0,createAtom:a=>new su(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)=>Pi([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),kt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const z=a.args;return a.command==="\\choose"&&(y="(",b=")"),new su(qe(z[0]),qe(z[1]),oe(ie({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>Pi([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),kt(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:a=>{var y,b;const z=a.args;return new su(qe(z[0]),qe(z[1]),oe(ie({},a),{leftDelim:(y=z[2])!=null?y:".",rightDelim:(b=z[3])!=null?b:".",hasBarLine:!1}))},serialize:(a,y)=>`${a.aboveToLatex(y)} ${a.command}${a.leftDelim}${a.rightDelim}${a.belowToLatex(y)}`}),kt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new su(qe(a.args[0]),qe(a.args[1]),oe(ie({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),kt(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new 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"}))}),kt("smallint","",{ifMode:"math",createAtom:a=>new hc("\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"};kt(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]}))}}),kt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new hc({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],oe(ie({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),kt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new ip(oe(ie({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),kt("the","{:value}",{createAtom:a=>new qr(oe(ie({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const z=new ji({parent:y},a.style);let ce="";a.isSelected&&(ce+=" ML__selected");const Te=z.evaluate(a.args[0]);return new _n(((b=Oa(Te))!=null?b:"").split("").map(Fe=>new _n(Fe,{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(z)},serialize:a=>{var y;return`\\the${(y=Oa(a.args[0]))!=null?y:"\\relax"}`}}),kt("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)}}{${qr.serialize([a.tooltip],oe(ie({},y),{defaultMode:"math"}))}}`}),kt("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)}}{${qr.serialize([a.tooltip],oe(ie({},y),{defaultMode:"text"}))}}`}),kt("error","{:math}",{createAtom:a=>new qr(oe(ie({},a),{body:qe(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),kt("ensuremath","{:math}",{createAtom:a=>new qr(oe(ie({},a),{body:qe(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(oe(ie({},y),{defaultMode:"math"}))}}`}),kt("color","{:value}",{applyStyle:(a,y,b)=>{var z,ce;return{verbatimColor:(z=Oa(y[0]))!=null?z:void 0,color:b.toColor((ce=y[0])!=null?ce:{string:"red"})}}}),kt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var z,ce;return{verbatimColor:(z=Oa(y[0]))!=null?z:void 0,color:b.toColor((ce=y[0])!=null?ce:{string:"red"})}}}),kt("boxed","{content:math}",{createAtom:a=>new Ca(oe(ie({},a),{body:qe(a.args[0]),framecolor:{string:"black"}}))}),kt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var z,ce;return{verbatimBackgroundColor:(z=Oa(y[0]))!=null?z:void 0,backgroundColor:b.toBackgroundColor((ce=y[0])!=null?ce:{string:"yellow"})}}}),kt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new Ca(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,z;return y.skipStyles?a.bodyToLatex(oe(ie({},y),{defaultMode:"text"})):sa(a.command,(b=Oa(a.framecolor))!=null?b:"",(z=Oa(a.backgroundcolor))!=null?z:"",a.bodyToLatex(oe(ie({},y),{defaultMode:"text"})))}}),kt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],z=qe(a.args[1]);return b?new Ca(oe(ie({},a),{body:z,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new Ca(oe(ie({},a),{body:z}))},serialize:(a,y)=>{var b,z;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 Te=[];a.padding&&Te.push((b=Oa(a.padding))!=null?b:""),a.border&&Te.push(`border: ${a.border}`),a.backgroundcolor&&Te.push((z=Oa(a.backgroundcolor))!=null?z:""),ce+=`[${Te.join(",")}]`}return sa(ce,a.bodyToLatex(y))}}),kt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new qr(oe(ie({},a),{body:qe(a.args[0])})),render:(a,y)=>{const b=new ji({parent:y,mathstyle:a.command.slice(1)},a.style),z=qr.createBox(b,a.body,{type:"lift"});return a.caret&&(z.caret=a.caret),a.bind(y,z)},serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{${Pi([a.command,a.bodyToLatex(y)])}}`}),kt(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:a=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[a]})}),kt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),kt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),kt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),kt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),kt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),kt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new qr(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"})}),kt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),kt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),kt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),kt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),kt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),kt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),kt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),kt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),kt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),kt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),kt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),kt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),kt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),kt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),kt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),kt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),kt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),kt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),kt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),kt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),kt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),kt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),kt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),kt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),kt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),kt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),kt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),kt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),kt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),kt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),kt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),kt("mbox","{:text}",{ifMode:"math",createAtom:a=>new qr(oe(ie({},a),{type:"mord",body:qe(a.args[0]),mode:"math"})),serialize:(a,y)=>sa("\\mbox",a.bodyToLatex(oe(ie({},y),{defaultMode:"text"})))}),kt("text","{:text}",{ifMode:"math",applyMode:"text"}),kt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new qr(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:""})}}),kt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new qr(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 z=a.createBox(y);return z.cssId=(b=a.args[0])!=null?b:"",z}}),kt("htmlData","{data:string}{content:auto}",{createAtom:a=>new qr(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 z=a.createBox(y);return z.htmlData=(b=a.args[0])!=null?b:"",z}}),kt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new qr(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 z=a.createBox(y);return z.htmlStyle=(b=a.args[0])!=null?b:"",z}}),kt("em","{:rest}",{createAtom:a=>new qr(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"})}),kt("emph","{:auto}",{createAtom:a=>new qr(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}};kt(["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}))}}),kt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new hd(oe(ie({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),kt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new hd(oe(ie({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),kt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new qr(a),render:(a,y)=>{let b=0;const z=y.mathstyle.id;(z===lc||z===Ls)&&(b=1),(z===dl||z===mo)&&(b=2),(z===_o||z===Ja)&&(b=3);const ce=qe(a.args[b]);return qr.createBox(y,ce)},serialize:(a,y)=>`\\mathchoice{${qr.serialize(a.args[0],y)}}{${qr.serialize(a.args[1],y)}}{${qr.serialize(a.args[2],y)}}{${qr.serialize(a.args[3],y)}}`}),kt("mathop","{:auto}",{createAtom:a=>new qr(oe(ie({},a),{type:"mop",body:qe(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let z=qr.createBox(y,a.body);if(a.superscript||a.subscript){const ce=(b=a.subsupPlacement)!=null?b:"auto";z=ce==="over-under"||ce==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:z}):a.attachSupsub(y,{base:z})}return new _n(a.bind(y,z),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[sa(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)),Pi(b)}}),kt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new qr(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])}))}),kt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=qe(a.args[0]).map(b=>{var z;return b.type!=="first"&&(b.type="mord",b.value=(z={"\u2217":"*","\u2212":"-"}[b.value])!=null?z:b.value,b.isFunction=!1,!b.style.variant&&!b.style.variantStyle&&(b.style.variant="main",b.style.variantStyle="up")),b});return new qr(oe(ie({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let z=qr.createBox(y,a.body);if(a.superscript||a.subscript){const ce=(b=a.subsupPlacement)!=null?b:"auto";z=ce==="over-under"||ce==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:z}):a.attachSupsub(y,{base:z})}return a.caret&&(z.caret=a.caret),new _n(a.bind(y,z),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[sa(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)),Pi(b)}}),kt(["char","unicode"],"{charcode:value}",{createAtom:a=>new qr(oe(ie({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Oa((y=a.args[0])!=null?y:{number:10067,base:"hexadecimal"})}`},render:(a,y)=>{let b=y.evaluate(a.args[0]);return(!b||!("number"in b))&&(b={number:10067,base:"hexadecimal"}),a.value=String.fromCodePoint(b.number),a.createBox(y)}}),kt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new qr(a),render:(a,y)=>{var b,z,ce;const Te=new ji({parent:y,mathstyle:"textstyle"},a.style),Fe=Te.toEm((b=a.args[0])!=null?b:{dimension:0}),rt=Te.toEm((z=a.args[1])!=null?z:{dimension:10}),ut=Te.toEm((ce=a.args[2])!=null?ce:{dimension:10}),mt=new _n(null,{classes:"rule",type:"ord"});return mt.width=rt,mt.height=ut+Fe,mt.depth=-Fe,mt.setStyle("border-right-width",rt,"em"),mt.setStyle("border-top-width",ut,"em"),mt.setStyle("border-color",a.style.color),mt.setStyle("vertical-align",Fe,"em"),a.isSelected&&mt.setStyle("opacity","50%"),a.bind(Te,mt),a.caret&&(mt.caret=a.caret),mt.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Oa(a.args[0])}]`:""}{${Oa(a.args[1])}}{${Oa(a.args[2])}}`}),kt(["overline","underline"],"{:auto}",{createAtom:a=>new qr(oe(ie({},a),{body:qe(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),z=new ji({parent:y,mathstyle:"cramp"},a.style),ce=qr.createBox(z,a.body);if(!ce)return null;const Te=z.metrics.defaultRuleThickness/z.scalingFactor,Fe=new _n(null,{classes:b+"-line"});Fe.height=Te,Fe.maxFontSize=Te*1.125*z.scalingFactor;let rt;return b==="overline"?rt=new ra({shift:0,children:[{box:ce},3*Te,{box:Fe},Te]}):rt=new ra({top:ce.height,children:[Te,{box:Fe},3*Te,{box:ce}]}),a.caret&&(rt.caret=a.caret),new _n(rt,{classes:b,type:"ignore"})}}),kt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=qe(a.args[1]);return new ts(oe(ie({},a),{above:qe(a.args[0]),body:y,skipBoundary:!1,boxType:Tl(y)}))},serialize:(a,y)=>sa(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),kt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=qe(a.args[1]);return new ts(oe(ie({},a),{below:qe(a.args[0]),body:y,skipBoundary:!1,boxType:Tl(y)}))},serialize:(a,y)=>sa(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),kt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=qe(a.args[2]);return new ts(oe(ie({},a),{above:qe(a.args[0]),below:qe(a.args[1]),body:y,skipBoundary:!1,boxType:Tl(y)}))},serialize:(a,y)=>sa(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),kt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new ts(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)=>sa(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),kt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,z,ce;return new fd(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=(z=a.args[0])==null?void 0:z.includes("b"))!=null?ce:!0}))}}),kt(["vphantom"],"{:auto}",{createAtom:a=>new fd(oe(ie({},a),{body:qe(a.args[0]),isInvisible:!0,smashWidth:!0}))}),kt(["hphantom"],"{:auto}",{createAtom:a=>new fd(oe(ie({},a),{body:qe(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),kt(["phantom"],"{:auto}",{createAtom:a=>new fd(oe(ie({},a),{body:qe(a.args[0]),isInvisible:!0}))}),kt("not","{:math}",{createAtom:a=>{const y=qe(a.args[0]);return y.length===0?new qr(oe(ie({},a),{type:"mrel",value:"\uE020"})):new qr(oe(ie({},a),{body:[new fc(oe(ie({},a),{body:"\uE020",align:"right"})),...y],captureSelection:!0}))},serialize:(a,y)=>{const b=a.args[0],z=b&&typeof b=="object"&&"group"in b;return a.value!=="\uE020"?z?`\\not{${qr.serialize(b.group,y)}}`:`\\not${qr.serialize(b,y)}`:z?"\\not{}":"\\not"},render:(a,y)=>{if(a.value)return a.createBox(y);const z=a.args[0]&&typeof a.args[0]=="object"&&"group"in a.args[0]?"ord":Tl(qe(a.args[0])),ce=qr.createBox(y,a.body,{type:z});return a.caret&&(ce.caret=a.caret),a.bind(y,ce)}}),kt(["ne","neq"],"",{createAtom:a=>new qr(oe(ie({},a),{type:"mrel",body:[new fc(oe(ie({},a),{body:"\uE020",align:"right",boxType:"rel"})),new qr(oe(ie({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),kt("rlap","{:auto}",{createAtom:a=>new fc(oe(ie({},a),{body:qe(a.args[0]),align:"right"}))}),kt("llap","{:auto}",{createAtom:a=>new fc(oe(ie({},a),{body:qe(a.args[0]),align:"left"}))}),kt("mathrlap","{:math}",{createAtom:a=>new fc(oe(ie({},a),{body:qe(a.args[0]),align:"left"}))}),kt("mathllap","{:math}",{createAtom:a=>new fc(oe(ie({},a),{body:qe(a.args[0]),align:"left"}))}),kt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new Ca(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 sa("\\raisebox",(b=Oa(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),kt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new Ca(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 sa("\\raise",(b=Oa(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),kt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new Ca(oe(ie({},a),{body:qe(a.args[1]),padding:{dimension:0},offset:(y=qo(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,z;return sa("\\lower",(z=Oa(qo((b=a.offset)!=null?b:{dimension:0},-1)))!=null?z:"0pt",a.bodyToLatex(y))}}),Ie("0123456789/@.?!"),Ke(65,90),Ke(97,122),Ie([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Ie([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Ie([["\\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]]),Ie([["\\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"),Ie([["\\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"]]),Ie([["\\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"]]),Ie([["\\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"),Ie([["+",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"),Ie([["\\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"),Ie([["\\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]]),Ie([["=",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"),Ie([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Ie([["\\wp",8472],["\\aleph",8501]]),Ie([["\\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"),Ie([["\\ ",160],["~",160]],"space"),kt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new hd(a)}),kt("space","",{createAtom:a=>new hd(a)}),Ie([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Ie([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Ie([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var cm="<mo>⁡</mo>",Jf="<mo>⁢</mo>";function Qf(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function aa(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Av(a,y,b){var z,ce,Te,Fe,rt,ut,mt,wt,Rt,Gt,ir;let cr=!1;y=y!=null?y:a.atoms.length;let Hr="",Rn="",Fr=a.atoms[a.index];const sn=(ce=(z=Fr.style)==null?void 0:z.variant)!=null?ce:"",Fn=(Fe=(Te=Fr.style)==null?void 0:Te.variantStyle)!=null?Fe:"";let xn="";if(sn||Fn){const fi=ct(Fr.value,(rt=Fr.style)==null?void 0:rt.variant,(ut=Fr.style)==null?void 0:ut.variantStyle);if(fi!==Fr.value)return a.index+=1,Hr=`<mi${aa(Fr.id,b)}>${fi}</mi>`,gl(Hr,a,b)||(a.mathML+=Hr,a.lastType="mi"),!0;xn=(mt={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"}[Fn+sn])!=null?mt:"",xn=` mathvariant="${xn}"`}const oi={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Fr.command==="!")return a.index+=1,Hr="<mo>!</mo>",gl(Hr,a,b)||(a.mathML+=Hr,a.lastType="mo"),!0;if(oi[Fr.command]){a.index+=1;let fi=`<mi${aa(Fr.id,b)}${xn}>${oi[Fr.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(fi=Jf+fi),gl(fi,a,b)||(a.mathML+=fi,a.lastType="mi"),!0}if(Fr.command==="\\operatorname")Rn=yu(Fr.body),a.index+=1;else if(sn||Fn)for(;a.index<y&&(Fr.type==="mord"||Fr.type==="macro")&&!Fr.isDigit()&&sn===((Rt=(wt=Fr.style)==null?void 0:wt.variant)!=null?Rt:"")&&Fn===((ir=(Gt=Fr.style)==null?void 0:Gt.variantStyle)!=null?ir:"");)Rn+=yu([Fr]),a.index+=1,Fr=a.atoms[a.index];else(Fr.type==="mord"||Fr.type==="macro")&&!Fr.isDigit()&&(Rn+=yu([Fr]),a.index+=1);if(Rn.length>0){cr=!0,Hr=`<mi${xn}>${Rn}</mi>`;const fi=a.lastType;Hr.endsWith(">f</mi>")||Hr.endsWith(">g</mi>")?(Hr+=cm,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Hr)?"mo":"mi",gl(Hr,a,b)||((fi==="mi"||fi==="mn"||fi==="mtext"||fi==="fence")&&(Hr=Jf+Hr),a.mathML+=Hr)}return cr}function Mv(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function kv(a){let y=-1,b=a.index,z=!1,ce=!1;for(;b<a.atoms.length&&!z&&!ce;){const Te=a.atoms[b];z=!Te.isDigit(),ce=!z&&Te.superscript!==void 0,b++}return ce&&(y=b-1),y}function gl(a,y,b){var z;let ce=y.atoms[y.index-1];if(!ce)return!1;if(!ce.superscript&&!ce.subscript)if(((z=y.atoms[y.index])==null?void 0:z.type)==="subsup")ce=y.atoms[y.index],y.index+=1;else return!1;const Te=y.lastType;y.lastType="";const Fe=Gi(ce.superscript,b);y.lastType="";const rt=Gi(ce.subscript,b);if(y.lastType=Te,!Fe&&!rt)return!1;let ut="";return Fe&&rt?ut=`<msubsup>${a}${rt}${Fe}</msubsup>`:Fe?ut=`<msup>${a}${Fe}</msup>`:rt&&(ut=`<msub>${a}${rt}</msub>`),y.mathML+=ut,y.lastType="",!0}function Tv(a,y,b){y=y!=null?y:a.atoms.length;const z=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 ${aa(a.atoms[z].id,b)}>${ce}</mtext>`,a.lastType="mtext",!0):!1}function Ov(a,y,b){y=y!=null?y:a.atoms.length;const z=a.index;let ce="",Te=kv(a);for(Te>=0&&Te<y&&(y=Te);a.index<y&&a.atoms[a.index].isDigit();)ce+=a.atoms[a.index].asDigit(),a.index+=1;return ce.length<=0?!1:(ce="<mn"+aa(a.atoms[z].id,b)+">"+ce+"</mn>",Te<0&&Mv(a)&&(Te=a.index,a.index+=1),gl(ce,a,b)||(a.mathML+=ce,a.lastType="mn"),!0)}function Dv(a,y,b){let z=!1;y=y!=null?y:a.atoms.length;let ce="",Te="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let Fe=!1,rt=0;const ut=a.index;let mt=-1,wt=ut+1;for(;wt<y&&!Fe;)a.atoms[wt].type==="mopen"?rt+=1:a.atoms[wt].type==="mclose"&&(rt-=1),rt===-1&&(Fe=!0,mt=wt),wt+=1;Fe&&(ce="<mrow>",ce+=Cc(a.atoms[ut],b),ce+=Gi(a.atoms,b,ut+1,mt),ce+=Cc(a.atoms[mt],b),ce+="</mrow>",a.index=mt+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=Jf),gl(ce,a,b)&&(z=!0,a.lastType="",ce=""),Te="fence")}return ce.length>0&&(z=!0,a.mathML+=ce,a.lastType=Te),z}function Iv(a,y,b){let z=!1;y=y!=null?y:a.atoms.length;let ce="",Te="";const Fe=a.atoms[a.index];if(!Fe)return!1;const rt={"\\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(rt[Fe.command]){a.index+=1;const ut=`<mo${aa(Fe.id,b)}>${rt[Fe.command]}</mo>`;return gl(ut,a,b)||(a.mathML+=ut,a.lastType="mo"),!0}if(a.index<y&&(Fe.type==="mbin"||Fe.type==="mrel"))ce+=Uh(a.atoms[a.index],b),a.index+=1,Te="mo";else if(a.index<y&&(Fe.type==="mop"||Fe.type==="operator"||Fe.type==="extensible-symbol")){if(Fe.subsupPlacement==="over-under"&&(Fe.superscript||Fe.subscript)){const ut=Cc(Fe,b);return Fe.superscript&&Fe.subscript?(ce+="<munderover>"+ut,ce+=Gi(Fe.subscript,b),ce+=Gi(Fe.superscript,b),ce+="</munderover>"):Fe.superscript?(ce+="<mover>"+ut,ce+=Gi(Fe.superscript,b),ce+="</mover>"):Fe.subscript&&(ce+="<munder>"+ut,ce+=Gi(Fe.subscript,b),ce+="</munder>"),a.mathML+=ce,a.lastType="mo",a.index+=1,!0}{const ut=a.atoms[a.index],mt=ut.value==="\\operatorname",wt=mt?'<mi class="MathML-Unit"'+aa(ut.id,b)+">"+yu(ut.value)+"</mi>":Cc(ut,b);ce+=wt,!mt&&!/^<mo>(.*)<\/mo>$/.test(wt)?(ce+=cm,Te="applyfunction"):Te=mt?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ce)&&(ce=Jf+ce),a.index+=1}return ce.length>0&&(z=!0,gl(ce,a,b)||(a.mathML+=ce,a.lastType=Te)),z}function Gi(a,y,b,z){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 qr)ce.mathML=Uh(a,y);else if(Array.isArray(a)){ce.atoms=a;let Te=0;for(z=z||(a?a.length:0);ce.index<z;)if(Tv(ce,z,y)||Ov(ce,z,y)||Av(ce,z,y)||Iv(ce,z,y)||Dv(ce,z,y))Te+=1;else if(ce.index<z){let Fe=Uh(ce.atoms[ce.index],y);ce.lastType==="mn"&&Fe.length>0&&ce.atoms[ce.index].type==="genfrac"&&(Fe="<mo>⁤</mo>"+Fe),ce.atoms[ce.index].type==="genfrac"?ce.lastType="mfrac":ce.lastType="",ce.index+=1,gl(Fe,ce,y)?Te+=1:Fe.length>0&&(ce.mathML+=Fe,Te+=1)}Te>1&&(ce.mathML="<mrow>"+ce.mathML+"</mrow>")}return ce.mathML}function Cc(a,y){let b="";const z=yu(a.value);return z&&(b="<mo"+aa(a.id,y)+">"+z+"</mo>"),b}function yu(a){if(!a)return"";if(typeof a=="string")return Qf(a);if(!Array.isArray(a)&&typeof a.body=="string")return Qf(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return Qf(y)}function Uh(a,y){var b,z,ce,Te,Fe,rt,ut,mt,wt,Rt,Gt,ir,cr,Hr,Rn,Fr,sn,Fn,xn,oi,fi,ui;if(a.mode==="text")return`<mi${aa(a.id,y)}>${a.value}</mi>`;const zi={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"},ea={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Vn="",Go="",Zs,ns,to,Xo,Io,oa;const{command:Aa}=a;if(a.command==="\\error")return`<merror${aa(a.id,y)}>${Gi(a.body,y)}</merror>`;const ro={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Vs={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":Vn=Gi(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(Vn+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(Vn+="<mo>"+(ro[a.leftDelim]||a.leftDelim)+"</mo>")),Vn+="<mtable",a.colFormat){for(Vn+=' columnalign="',to=0;to<a.colFormat.length;to++)a.colFormat[to].align&&(Vn+={l:"left",c:"center",r:"right"}[a.colFormat[to].align]+" ");Vn+='"'}for(Vn+=">",ns=0;ns<a.array.length;ns++){for(Vn+="<mtr>",Zs=0;Zs<a.array[ns].length;Zs++)Vn+="<mtd>"+Gi(a.array[ns][Zs],y)+"</mtd>";Vn+="</mtr>"}Vn+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(Vn+="<mo>"+(ro[a.leftDelim]||a.rightDelim)+"</mo>"),Vn+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(Vn+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(Vn+="<mo"+aa(a.id,y)+">"+(ro[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(Vn+="<mfrac>",Vn+=Gi(a.above,y)||"<mi> </mi>",Vn+=Gi(a.below,y)||"<mi> </mi>",Vn+="</mfrac>"):(Vn+="<mtable"+aa(a.id,y)+">",Vn+="<mtr>"+Gi(a.above,y)+"</mtr>",Vn+="<mtr>"+Gi(a.below,y)+"</mtr>",Vn+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(Vn+="<mo"+aa(a.id,y)+">"+(ro[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(Vn+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(Vn+="<msqrt"+aa(a.id,y)+">",Vn+=Gi(a.body,y),Vn+="</msqrt>"):(Vn+="<mroot"+aa(a.id,y)+">",Vn+=Gi(a.body,y),Vn+=Gi(a.above,y),Vn+="</mroot>");break;case"leftright":const Gs=a,Xs=Gs.leftDelim;Vn="<mrow>",Xs&&Xs!=="."&&(Vn+=`<mo${aa(a.id,y)}>${(b=ro[Xs])!=null?b:Xs}</mo>`),a.body&&(Vn+=Gi(a.body,y));const Ys=Gs.matchingRightDelim();Ys&&Ys!=="."&&(Vn+=`<mo${aa(a.id,y)}>${(z=ro[Ys])!=null?z:Ys}</mo>`),Vn+="</mrow>";break;case"sizeddelim":case"delim":Vn+=`<mo${aa(a.id,y)}>${ro[a.value]||a.value}</mo>`;break;case"accent":Vn+='<mover accent="true"'+aa(a.id,y)+">",Vn+=Gi(a.body,y),Vn+="<mo>"+(Vs[Aa]||a.accent)+"</mo>",Vn+="</mover>";break;case"line":case"overlap":break;case"overunder":Io=a.above,Xo=a.below,(a.svgAbove||Io)&&(a.svgBelow||Xo)?oa=a.body:Io&&Io.length>0?(oa=a.body,(Te=(ce=a.body)==null?void 0:ce[0])!=null&&Te.below?(Xo=a.body[0].below,oa=a.body[0].body):((rt=(Fe=a.body)==null?void 0:Fe[0])==null?void 0:rt.type)==="first"&&((mt=(ut=a.body)==null?void 0:ut[1])!=null&&mt.below)&&(Xo=a.body[1].below,oa=a.body[1].body)):Xo&&Xo.length>0&&(oa=a.body,(Rt=(wt=a.body)==null?void 0:wt[0])!=null&&Rt.above?(Io=a.body[0].above,oa=a.body[0].body):((ir=(Gt=a.body)==null?void 0:Gt[0])==null?void 0:ir.type)==="first"&&((Hr=(cr=a.body)==null?void 0:cr[1])!=null&&Hr.above)&&(Io=a.body[1].overscript,oa=a.body[1].body)),(a.svgAbove||Io)&&(a.svgBelow||Xo)?(Vn+=`<munderover ${aa(a.id,y)}>`,Vn+=(Rn=zi[a.svgBody])!=null?Rn:Gi(oa,y),Vn+=(Fr=zi[a.svgBelow])!=null?Fr:Gi(Xo,y),Vn+=(sn=zi[a.svgAbove])!=null?sn:Gi(Io,y),Vn+="</munderover>"):a.svgAbove||Io?(Vn+=`<mover ${aa(a.id,y)}>`+((Fn=zi[a.svgBody])!=null?Fn:Gi(oa,y)),Vn+=(xn=zi[a.svgAbove])!=null?xn:Gi(Io,y),Vn+="</mover>"):(a.svgBelow||Xo)&&(Vn+=`<munder ${aa(a.id,y)}>`+((oi=zi[a.svgBody])!=null?oi:Gi(oa,y)),Vn+=(fi=zi[a.svgBelow])!=null?fi:Gi(Xo,y),Vn+="</munder>");break;case"placeholder":Vn+="?";break;case"mord":{Vn=typeof a.value=="string"?a.value:Aa,Aa==="\\char"?Vn="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":Vn.length>0&&Vn.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?Vn="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?Vn=a.value.charAt(0):(console.error("Did not expect this"),Vn=""));const Ss=/\d/.test(Vn)?"mn":"mi";Vn=`<${Ss}${aa(a.id,y)}>${Qf(Vn)}</${Ss}>`;break}case"mbin":case"mrel":case"minner":Vn=Cc(a,y);break;case"mpunct":Vn='<mo separator="true"'+aa(a.id,y)+">"+Aa+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(Vn="<mo"+aa(a.id,y)+">",Vn+=Aa==="\\operatorname"?a.body:Aa||a.body,Vn+="</mo>");break;case"box":Vn='<menclose notation="box"',a.backgroundcolor&&(Vn+=' mathbackground="'+a.backgroundcolor+'"'),Vn+=aa(a.id,y)+">"+Gi(a.body,y)+"</menclose>";break;case"spacing":Vn+='<mspace width="'+((ui=ea[Aa])!=null?ui:0)+'em"/>';break;case"enclose":Vn='<menclose notation="';for(const Ss in a.notation)Object.prototype.hasOwnProperty.call(a.notation,Ss)&&a.notation[Ss]&&(Vn+=Go+Ss,Go=" ");Vn+=aa(a.id,y)+'">'+Gi(a.body,y)+"</menclose>";break;case"prompt":Vn='<menclose notation="roundexbox""">'+Gi(a.body,y)+"</menclose>";break;case"space":Vn+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Vn+=Cc(a,y);break;case"mclose":Vn+=Cc(a,y);break;case"macro":{const Ss=a.command+yu(a.macroArgs);Ss&&(Vn+=`<mo ${aa(a.id,y)}>${Ss}</mo>`)}break;case"latexgroup":Vn+=Gi(a.body,y);break;case"latex":Vn+="<mtext"+aa(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":Vn+=Gi(a.body,y);break;case"text":Vn+=`<mtext ${aa(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${aa(a.id,y)} displaystyle="true">${Gi(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${aa(a.id,y)} displaystyle="false">${Gi(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return Vn}var bu={"\\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 Bv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function Td(a){let y=0;if(te(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Lv(a){if(te(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function um(a){let y="";if(te(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Pv(a){return a?a.map(y=>y.value).join(""):""}function _i(a,y){var b,z,ce,Te,Fe;function rt(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 ut(wt){return"<emphasis>"+wt+"</emphasis>"}if(!y)return"";let mt="";if(te(y)){let wt=!1,Rt=!1;for(let Gt=0;Gt<y.length;Gt++)y[Gt].type!=="first"&&(y[Gt].mode!=="text"&&(Rt=!1),Gt<y.length-2&&y[Gt].type==="mopen"&&y[Gt+2].type==="mclose"&&y[Gt+1].type==="mord"?(mt+=" of ",mt+=ut(_i(a,y[Gt+1])),Gt+=2):y[Gt].mode==="text"?Rt?mt+=(b=y[Gt].value)!=null?b:" ":(Rt=!0,mt+=_i("text",y[Gt])):y[Gt].isDigit()?wt?mt+=y[Gt].asDigit():(wt=!0,mt+=_i(a,y[Gt])):(wt=!1,mt+=_i(a,y[Gt])))}else if(y.mode==="text")y.id&&a==="math"&&(mt+='<mark name="'+y.id.toString()+'"/>'),mt+=y.value;else{y.id&&a==="math"&&(mt+='<mark name="'+y.id.toString()+'"/>');let wt="",Rt="",Gt="",ir=!1;const{command:cr}=y;switch(cr){case"\\vec":return"vector "+_i(a,y.body);case"\\acute":return _i(a,y.body)+" acute";case"\\grave":return _i(a,y.body)+" grave";case"\\dot":return"dot over"+_i(a,y.body);case"\\ddot":return"double dot over"+_i(a,y.body);case"\\mathring":return"ring over"+_i(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+_i(a,y.body);case"\\bar":return _i(a,y.body)+" bar";case"\\breve":return _i(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+_i(a,y.body);case"\\hat":case"\\widehat":return"hat over"+_i(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+_i(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+_i(a,y.body)}switch(y.type){case"prompt":const Hr=y.body.length>1?'start input . <break time="500ms"/> '+_i(a,y.body)+'. <break time="500ms"/> end input':"blank";mt+=' <break time="300ms"/> '+Hr+'. <break time="700ms"/>'+((z=y.correctness)!=null?z:"")+' . <break time="700ms"/> ';break;case"array":const Rn=y.array,Fr=y.environmentName;if(Object.keys(Zh).includes(Fr)){mt+=` begin ${Zh[Fr]} `;for(let xn=0;xn<Rn.length;xn++){xn>0&&(mt+=","),mt+=` row ${xn+1} `;for(let oi=0;oi<Rn[xn].length;oi++)oi>0&&(mt+=","),mt+=` column ${oi+1}: `,mt+=_i("math",Rn[xn][oi])}mt+=` end ${Zh[Fr]} `}break;case"group":cr==="\\ne"?mt+=" not equal ":(cr==="\\not"&&(mt+=" not "),mt+=_i("math",y.body));break;case"root":mt+=_i("math",y.body);break;case"genfrac":if(wt=_i("math",y.above),Rt=_i("math",y.below),Td(y.above)&&Td(y.below)){const oi={"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)];oi?mt=oi:mt+=wt+" over "+Rt}else mt+=' the fraction <break time="150ms"/>'+wt+' over <break time="150ms"/>'+Rt+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(Gt=_i("math",y.body),y.hasEmptyBranch("above"))mt+=Td(y.body)?" the square root of "+Gt+" , ":' the square root of <break time="200ms"/>'+Gt+'. <break time="200ms"/> End square root';else{let xn=_i("math",y.above);xn=xn.trim();const oi=xn.replace(/<mark([^/]*)\/>/g,"");oi==="3"?mt+=' the cube root of <break time="200ms"/>'+Gt+'. <break time="200ms"/> End cube root':oi==="n"?mt+=' the nth root of <break time="200ms"/>'+Gt+'. <break time="200ms"/> End root':mt+=' the root with index: <break time="200ms"/>'+xn+', of <break time="200ms"/>'+Gt+'. <break time="200ms"/> End root'}break;case"leftright":{const xn=y;mt+=(ce=xn.leftDelim?bu[xn.leftDelim]:void 0)!=null?ce:xn.leftDelim,mt+=_i("math",y.body),mt+=(Te=xn.rightDelim?bu[xn.rightDelim]:void 0)!=null?Te:xn.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const sn=cr.replace(/^\\/g,""),Fn=_t()[sn];Fn&&(Fn!=null&&Fn.expand?mt+=_i("math",y.body):mt+=`${sn} `);break;case"placeholder":mt+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(cr==="\\mathbin"||cr==="\\mathrel"||cr==="\\mathopen"||cr==="\\mathclose"||cr==="\\mathpunct"||cr==="\\mathord"||cr==="\\mathinner"){mt=_i(a,y.body);break}let xn=y.isDigit()?y.asDigit():y.value,oi=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(oi=y.value,xn=oi),a==="text")mt+=xn;else{if(y.type==="mbin"&&(mt+='<break time="150ms"/>'),xn){const fi=bu[xn]||(oi?bu[oi.trim()]:"");if(fi)mt+=" "+fi;else{const ui=oi?Bv(oi.trim()):"";mt+=ui||rt(xn)}}else mt+=_i("math",y.body);y.type==="mbin"&&(mt+='<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 oi=_i("math",y.superscript);oi=oi.trim();let fi=_i("math",y.subscript);fi=fi.trim(),mt+=' the summation from <break time="200ms"/>'+fi+'<break time="200ms"/> to <break time="200ms"/>'+oi+'<break time="200ms"/> of <break time="150ms"/>',ir=!0}else if(y.hasEmptyBranch("subscript"))mt+=" the summation of";else{let oi=_i("math",y.subscript);oi=oi.trim(),mt+=' the summation from <break time="200ms"/>'+oi+'<break time="200ms"/> of <break time="150ms"/>',ir=!0}else if(xn==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let oi=_i("math",y.superscript);oi=oi.trim();let fi=_i("math",y.subscript);fi=fi.trim(),mt+=' the product from <break time="200ms"/>'+fi+'<break time="200ms"/> to <break time="200ms"/>'+oi+'<break time="200ms"/> of <break time="150ms"/>',ir=!0}else if(y.hasEmptyBranch("subscript"))mt+=" the product of ";else{let oi=_i("math",y.subscript);oi=oi.trim(),mt+=' the product from <break time="200ms"/>'+oi+'<break time="200ms"/> of <break time="150ms"/>',ir=!0}else if(xn==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let oi=_i("math",y.superscript);oi=oi.trim();let fi=_i("math",y.subscript);fi=fi.trim(),mt+=' the integral from <break time="200ms"/>'+ut(fi)+'<break time="200ms"/> to <break time="200ms"/>'+ut(oi)+' <break time="200ms"/> of ',ir=!0}else mt+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const oi=(Fe=bu[y.value])!=null?Fe:y.command?bu[y.command]:void 0;mt+=oi||" "+y.value}else y.command&&(y.command==="\\mathop"?mt+=_i("math",y.body):y.command==="\\operatorname"?mt+=Pv(y.body):mt+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":Gt=_i("math",y.body),mt+=" crossed out "+Gt+". End crossed out.";break;case"space":case"spacing":break}if(!ir&&!y.hasEmptyBranch("superscript")){let Hr=_i(a,y.superscript);Hr=Hr.trim();const Rn=Hr.replace(/<[^>]*>/g,"");if(Td(y.superscript)){if(a==="math"){const Fr=Lv(y.superscript);Fr&&(mt+='<mark name="'+Fr+'"/>')}Rn==="\u2032"?mt+=" prime ":Rn==="2"?mt+=" squared ":Rn==="3"?mt+=" cubed ":Number.isNaN(Number.parseInt(Rn))?mt+=" to the "+Hr+"; ":mt+=' to the <say-as interpret-as="ordinal">'+Rn+"</say-as> power; "}else Number.isNaN(Number.parseInt(Rn))?mt+=" raised to the "+Hr+"; ":mt+=' raised to the <say-as interpret-as="ordinal">'+Rn+"</say-as> power; "}if(!ir&&!y.hasEmptyBranch("subscript")){let Hr=_i("math",y.subscript);Hr=Hr.trim(),mt+=Td(y.subscript)?" sub "+Hr:" subscript "+Hr+". End subscript. "}}return mt}function xu(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ce=Gi(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 Te=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&Te.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let Fe="";try{Fe=Te.toSpeech(ce)}catch(rt){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",rt)}return Fe}return""}let z=_i("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ce="";window.MathfieldElement.speechEngineRate&&(ce='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),z='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+ce+"<p><s>"+z+"</s></p>"+(ce?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&we()==="macos"?z=z.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):z=z.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return z}var Od={"\\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"},Dd={"\\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 z=y[y.length-1];z!==void 0&&/\d/.test(z)&&/^\d/.test(b)&&(y+=" "),y+=b}return y}function Ea(a){var y,b,z,ce,Te,Fe,rt,ut,mt,wt,Rt,Gt,ir;if(!a)return"";if(te(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(Ea).join("");if(a[0].mode==="text"){let Fn=0,xn="";for(;((y=a[Fn])==null?void 0:y.mode)==="text";)xn+=a[Fn].body?Ea(a[Fn].body):a[Fn].value,Fn++;return`"${xn}" ${Ea(a.slice(Fn))}`}let Fr=0;const sn=[];for(;a[Fr]&&a[Fr].mode==="math";){let Fn="";for(;a[Fr]&&a[Fr].type==="mord"&&/\d/.test(a[Fr].value);)Fn+=a[Fr++].value;Fn?sn.push(Fn):sn.push(Ea(a[Fr++]))}return sn.push(Ea(a.slice(Fr))),Rv(sn)}if(a.mode==="text")return`"${a.value}"`;let cr="";const{command:Hr}=a;let Rn;if(Hr==="\\placeholder")return`(${Ea(a.body)})`;switch(a.type){case"accent":const Fr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Hr];cr=`${Fr!=null?Fr:""} ${Ea(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(ui=>ui.value).join("");case"group":case"root":cr=(b=Od[Hr])!=null?b:Ea(a.body);break;case"genfrac":{const ui=a;(ui.leftDelim||ui.rightDelim)&&(cr=ui.leftDelim==="."||!ui.leftDelim?"{:":ui.leftDelim),ui.hasBarLine?(cr+="(",cr+=Ea(ui.above),cr+=")/(",cr+=Ea(ui.below),cr+=")"):(cr+="("+Ea(ui.above)+"),",cr+="("+Ea(ui.below)+")"),(ui.leftDelim||ui.rightDelim)&&(cr+=ui.rightDelim==="."||!ui.rightDelim?"{:":ui.rightDelim)}break;case"surd":cr+=a.hasEmptyBranch("above")?"sqrt("+Ea(a.body)+")":"root("+Ea(a.above)+")("+Ea(a.body)+")";break;case"latex":cr=a.value;break;case"leftright":{const ui=a,zi=ui.leftDelim;cr+=zi==="."||!zi?"{:":zi,cr+=Ea(ui.body);const ea=ui.matchingRightDelim();cr+=ea==="."||!ea?":}":ea}break;case"sizeddelim":case"delim":cr=a.value;break;case"overlap":break;case"overunder":break;case"mord":cr=(ce=(z=Od[Hr])!=null?z:Hr)!=null?ce:typeof a.value=="string"?a.value:"",cr.startsWith("\\")&&(cr+=" "),Rn=Hr?Hr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Rn?cr=String.fromCodePoint(Number.parseInt("0x"+Rn[1])):cr.length>0&&cr.startsWith("\\")&&(cr=typeof a.value=="string"?a.value.charAt(0):a.command),cr=Nv(cr,a.style);break;case"mbin":case"mrel":case"minner":cr=(Fe=(Te=Od[Hr])!=null?Te:Dd[Hr])!=null?Fe:a.value;break;case"mopen":case"mclose":cr=a.value;break;case"mpunct":cr=(rt=Dd[Hr])!=null?rt:Hr;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(Dd[Hr]?cr=Dd[Hr]:cr=Hr==="\\operatorname"?Ea(a.body):(ut=a.value)!=null?ut:Hr,cr+=" ");break;case"array":const sn=a.array,Fn=a.environmentName,xn=(mt={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Fn])!=null?mt:["(",")"],oi=[];for(const ui of sn){const zi=[];for(const ea of ui)zi.push(xn[0]+Ea(ea)+xn[1]);oi.push(zi.join(","))}const fi=(wt={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Fn])!=null?wt:["(",")"];cr=fi[0]+oi.join(",")+fi[1];break;case"box":break;case"spacing":cr=(Rt=Od[Hr])!=null?Rt:" ";break;case"enclose":cr="("+Ea(a.body)+")";break;case"space":cr=" ";break;case"subsup":cr="";break;case"macro":cr=(ir=(Gt=Od[Hr])!=null?Gt:Dd[Hr])!=null?ir:Ea(a.body);break}if(!a.hasEmptyBranch("subscript")){cr+="_";const Fr=Ea(a.subscript);cr+=Fr.length!==1?`(${Fr})`:Fr}if(!a.hasEmptyBranch("superscript")){cr+="^";const Fr=Ea(a.superscript);cr+=Fr.length!==1?`(${Fr})`:Fr}return cr}function Nv(a,y){if(!y)return a;let b=a;return y.variant==="double-struck"&&(b=`bbb "${b}"`),y.variant==="script"&&(b=`cc "${b}"`),y.variant==="fraktur"&&(b=`fr "${b}"`),y.variant==="sans-serif"&&(b=`sf "${b}"`),y.variant==="monospace"&&(b=`tt "${b}"`),y.variantStyle==="bold"&&(b=`bb "${b}"`),y.color?`color({${y.color}})(${b})`:b}function eo(a,y){var b,z;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ce=new ji({from:oe(ie({},eu()),{renderPlaceholder:()=>new _n(160,{maxFontSize:1}),letterShapeStyle:(z=y==null?void 0:y.letterShapeStyle)!=null?z:"tex"}),mathstyle:y.mathstyle}),Fe=new qr({mode:"math",type:"root",body:qa(a,{context:ce,parseMode:"math",mathstyle:y.mathstyle})}).render(ce);return Fe?(Qc(pd(Fe,ce)),$c(Fe,{classes:"ML__latex"}).toMarkup()):""}function Ty(a){return rp(a,{context:eu()})}function _v(a,y={}){return Gi(qa(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function jv(a){const y=qa(a,{parseMode:"math",mathstyle:"displaystyle"});return xu(y)}var $f;function Fv(a){var y,b;if(!$f){const z=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;z?$f=new z:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(b=$f==null?void 0:$f.box(a).latex)!=null?b:""}function Oy(a,y="math"){return Ea(new qr({type:"root",body:qa(a,{parseMode:y})}))}function Dy(a){return dc(a,{format:"ascii-math"})[1]}function Vh(a){if(typeof a=="string"){const y=zv(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Hv(a):"a"in a?dm(a):a}function wu(a){return a<0?0:a>255?255:Math.round(a)}function zv(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&typeof y.a=="undefined"&&(y.a=1),y}function Gh(a){const[y,b,z]=[a.L,a.C,a.H],ce=z*Math.PI/180,Te={L:y,a:b*Math.cos(ce),b:b*Math.sin(ce)};return a.alpha!==void 0&&(Te.alpha=a.alpha),Te}function Kv(a){const[y,b,z]=[a.L,a.a,a.b],ce=Math.sqrt(b*b+z*z),Fe=Math.atan2(z,b)*180/Math.PI,rt={L:y,C:ce,H:Fe};return a.alpha!==void 0&&(rt.alpha=a.alpha),rt}function Xh(a){const[y,b,z]=[a.L,a.a,a.b],ce=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*z,3),Te=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*z,3),Fe=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*z,3),rt=4.076741661347994*ce-3.307711590408193*Te+.230969928729428*Fe,ut=-1.2684380040921763*ce+2.6097574006633715*Te-.3413193963102197*Fe,mt=-.004196086541837188*ce-.7034186144594493*Te+1.7076147009309444*Fe,wt=Rt=>{const Gt=Math.abs(Rt);return Gt<=.0031308?Rt*12.92:(Math.sign(Rt)||1)*(1.055*Math.pow(Gt,1/2.4)-.055)};return[wt(rt),wt(ut),wt(mt)]}function Yh(a){const[y,b,z]=a;return y>=0&&y<=1&&b>=0&&b<=1&&z>=0&&z<=1}function Jh(a,y){let[b,z,ce]=a;return b=wu(b*255),z=wu(z*255),ce=wu(ce*255),y!==void 0?{r:b,g:z,b:ce,alpha:y}:{r:b,g:z,b:ce}}function dm(a){let[y,b,z]=Xh(a);if(Yh([y,b,z]))return Jh([y,b,z],a.alpha);const ce=Kv(a);if(ce.C=0,[y,b,z]=Xh(Gh(ce)),!Yh([y,b,z]))return Jh([y,b,z],a.alpha);let Te=0,Fe=a.L,rt=(Te+Fe)/2;ce.C=rt;const ut=.36/Math.pow(2,12);for(;Fe-Te>ut;)rt=(Te+Fe)/2,ce.C=rt,[y,b,z]=Xh(Gh(ce)),Yh([y,b,z])?Te=rt:Fe=rt;return Jh([y,b,z],a.alpha)}function Hv(a){return dm(Gh(a))}function fm(a,y){const b=Vh(a),z=Vh(y),ce=.56,Te=.57,Fe=.62,rt=.65,ut=.022,mt=1.414,wt=.1,Rt=5e-4,Gt=1.14,ir=.027,cr=1.14,Hr=.027;function Rn(ui){return ui>=ut?ui:ui+Js(ut-ui,mt)}function Fr(ui){return(ui<0?-1:1)*Math.pow(Math.abs(ui),2.4)}const sn=Rn(Fr(z.r/255)*.2126729+Fr(z.g/255)*.7151522+Fr(z.b/255)*.072175),Fn=Rn(Fr(b.r/255)*.2126729+Fr(b.g/255)*.7151522+Fr(b.b/255)*.072175);let xn,oi,fi;return Math.abs(Fn-sn)<Rt?oi=0:Fn>sn?(xn=Js(Fn,ce)-Js(sn,Te),oi=xn*Gt):(xn=Js(Fn,rt)-Js(sn,Fe),oi=xn*cr),Math.abs(oi)<wt?fi=0:oi>0?fi=oi-Hr:fi=oi+ir,fi*100}function hm(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const z=fm(a,b),ce=fm(a,y);return Math.abs(z)>Math.abs(ce)?b:y}function Wv(a){const y=Vh(a);let b=((1<<24)+(wu(y.r)<<16)+(wu(y.g)<<8)+wu(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 ca(a){const y=pm(a);let b="";for(const z of y){if(typeof z.value!="string")return"";b+=z.value}return b}function pm(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Uv(a,y){const b=pm(a);if(b.length!==1)return!1;const z=mh[y];return z?!!z.test(b[0].value):!1}function Zv(a,y){return ca(a).length>0}function Vv(a){return[Qh(a,"double-struck","mathbb","tooltip.blackboard"),Qh(a,"fraktur","mathfrak","tooltip.fraktur"),Qh(a,"calligraphic","mathcal","tooltip.caligraphic"),$h(a,"up","mathrm","tooltip.roman-upright"),$h(a,"bold","mathbf","tooltip.bold"),$h(a,"italic","mathit","tooltip.italic")]}function Gv(a){return[{label:()=>eo(`\\vec{${ca(a)}}`),visible:()=>ca(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>eo(`\\overrightarrow{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>eo(`\\overleftarrow{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>eo(`\\dot{${ca(a)}}`),visible:()=>ca(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>eo(`\\ddot{${ca(a)}}`),visible:()=>ca(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>eo(`\\bar{${ca(a)}}`),visible:()=>ca(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>eo(`\\overline{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>eo(`\\overgroup{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>eo(`\\overbrace{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>eo(`\\underline{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>eo(`\\undergroup{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>eo(`\\underbrace{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Xv(a){return[{label:()=>eo(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>eo(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>eo(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Yv(a){const y=[];for(const b of Object.keys(je))y.push({class:(Wv(hm(je[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${je[b]} "></span>`,ariaLabel:()=>{var z;return(z=Ae(b))!=null?z:b},checked:()=>{var z;return{some:"mixed",all:!0}[(z=a.queryStyle({backgroundColor:b}))!=null?z:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Jv(a){const y=[];for(const b of Object.keys(Me))y.push({class:(hm(Me[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Me[b]} "></span>`,ariaLabel:()=>{var z;return(z=Ae(b))!=null?z:b},checked:()=>{var z;return{some:"mixed",all:!0}[(z=a.queryStyle({color:b}))!=null?z:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Qv=class extends tm{constructor(a,y,b,z){super(a,y),this.row=b,this.col=z}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function $v(a){const y=[];for(let b=1;b<=5;b++)for(let z=1;z<=5;z++)y.push({onCreate:(ce,Te)=>new Qv(ce,Te,b,z),label:"\u2610",tooltip:()=>Ae("tooltip.row-by-col",b,z),data:{row:b,col:z},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(z).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function qv(a){return[{label:()=>Ae("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Ec(a)},{label:()=>Ae("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Ec(a)},{label:()=>Ae("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Ec(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,z]=ty(a);return b<y.maxColumns}},{label:()=>Ae("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Ec(a)},{type:"divider"},{label:()=>Ae("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Ec(a)},{label:()=>Ae("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Ec(a)},{type:"divider"},{label:()=>Ae("menu.borders"),visible:()=>(ey(a)||Ec(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Id(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Id(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Id(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Id(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Id(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>Ae("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:$v(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>Ae("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>Ae("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{uu(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>Ae("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{uu(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>Ae("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>Ae("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Vv(a),submenuClass:"variant-submenu"},{label:()=>Ae("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Jv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Ae("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Ae("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Gv(a),submenuClass:"variant-submenu"},{label:()=>Ae("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&ca(a).length>0,submenu:Xv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>Ae("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:()=>Ae("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const z=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!z){a.model.announce("plonk");return}a.insert(`=${z.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const z=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!z){a.model.announce("plonk");return}a.insert(z.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var y;if(window.MathfieldElement.computeEngine===null)return"";const b=(y=a.expression)==null?void 0:y.unknowns[0];return b?Ae("menu.solve-for",eo(b)):Ae("menu.solve")},id:"ce-solve",visible:()=>{var y;return a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((y=a.expression)==null?void 0:y.unknowns.length)===1&&a.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var y;const b=a.expression,z=b==null?void 0:b.unknowns[0],ce=(y=b.solve(z))==null?void 0:y.map(Te=>{var Fe;return(Fe=Te.simplify().latex)!=null?Fe:""});if(!ce){a.model.announce("plonk");return}a.insert(`${z}=${ce.length===1?ce[0]:"\\left\\lbrace"+(ce==null?void 0:ce.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>Ae("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>Ae("menu.copy"),id:"copy",submenu:[{label:()=>Ae("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>ki.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>Ae("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>ki.copyToClipboard(a,"ascii-math")},{label:()=>Ae("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>ki.copyToClipboard(a,"math-ml")}]},{label:()=>Ae("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>Ae("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Ec(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((z,ce)=>Math.max(z,ce.length),0)]:[0,0]}function Id(a,y){Af(a),a.flushInlineShortcutBuffer(),Lp(a.model,y),ya(a)}function ry(a){var y,b;let z;if(a.model.selectionIsCollapsed?z=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):z=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!z)return"";let ce=z.evaluate();return ce.isSame(z)&&(ce=z.N()),ce.latex}function Qh(a,y,b,z){return{label:()=>eo(`\\${b}{${ca(a)}}`),tooltip:()=>{var ce;return(ce=Ae(z))!=null?ce:z},visible:()=>Uv(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 $h(a,y,b,z){return{label:()=>eo(`\\${b}{${ca(a)}}`),tooltip:()=>{var ce;return(ce=Ae(z))!=null?ce:z},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 Su(a,y){return a+xu(y)}Fo({speak:(a,y,b)=>ny(a,y,b)},{target:"mathfield"});function ny(a,y,b){var z,ce;b=b!=null?b:{withHighlighting:!1};const{model:Te}=a;function Fe(wt){let Rt=null;switch(wt){case"all":Rt=Te.root;break;case"selection":Rt=Te.getAtoms(Te.selection);break;case"left":{Rt=Te.getAtoms(Te.offsetOf(Te.at(Te.position).leftSibling),Te.position);break}case"right":{Rt=Te.getAtoms(Te.position,Te.offsetOf(Te.at(Te.position).rightSibling));break}case"group":Rt=Te.getAtoms(Te.getSiblingsRange(Te.position));break;case"parent":{const{parent:Gt}=Te.at(Te.position);Gt!=null&&Gt.parent?Rt=Gt:Rt=Te.root;break}default:Rt=Te.root}return Rt}function rt(wt){let Rt="";switch(wt){case"all":console.log("Internal failure: speak all failed");break;case"selection":Rt="no selection";break;case"left":Rt="at start";break;case"right":Rt="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Rt="no parent";break;default:console.log('unknown speak_ param value: "'+wt+'"');break}return Rt}const ut=Fe(y);if(ut===null)return(ce=(z=window.MathfieldElement).speakHook)==null||ce.call(z,rt(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const mt=xu(ut);return ue()&&b.withHighlighting?(zl().readAloudMathfield=a,mc(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,mt)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(mt),!1}function iy(a){var y,b;if(!ue()){console.log("Speak:",a);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const z=new SpeechSynthesisUtterance(a);window.speechSynthesis.speak(z)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const z=new window.AWS.Polly({apiVersion:"2016-06-10"}),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"};z.synthesizeSpeech(ce,(Te,Fe)=>{if(Te)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${Te}`);else if(Fe!=null&&Fe.AudioStream){const rt=new Uint8Array(Fe.AudioStream),ut=new Blob([rt.buffer],{type:"audio/mpeg"}),mt=URL.createObjectURL(ut);new Audio(mt).play().catch(Rt=>console.log(Rt))}else console.log("polly.synthesizeSpeech():",Fe)})}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,z){let ce="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ce=Su("deleted: ",z);else if(y==="focus"||y.includes("move"))ce=oy(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+sy(a.model);else if(y==="replacement")ce=Su("",a.model.at(a.model.position));else if(y==="line"){const Te=Su("",a.model.root);a.keyboardDelegate.setAriaLabel(Te)}else ce=z?Su(y+" ",z):y;if(ce){const Te=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ce+Te}}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 z="",ce=b.parent;const Te=a.at(a.position).parent;for(;ce!==a.root&&ce!==Te;)z+=`out of ${mm(ce)};`,ce=ce.parent;return z}function sy(a){if(!a.selectionIsCollapsed)return Su("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),z=mm(b);return b.isFirstSibling&&(y=(z?"start of "+z:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=z?"end of "+z:"unknown"):y+=Su("",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 z=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 Te=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=Nl(a.content),this.selection=a.selection,this.silenceNotifications=Te,this.contentDidChange(ce)}this.silenceNotifications=z}get atoms(){return this.root.children}get selection(){return this._selection}set selection(a){this.setSelection(a)}setSelection(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var b,z,ce;const Te=this.normalizeSelection(a,y);if(Te===void 0)throw new TypeError("Invalid selection");if(Te.ranges.length===1&&Te.ranges[0][0]===Te.ranges[0][1]){const wt=Te.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(wt))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((z=this.at(wt-1))!=null&&z.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=Te;return}const Fe=Qa(Te);Te.direction==="backward"?[this._position,this._anchor]=Fe:[this._anchor,this._position]=Fe;const rt=this.at(Fe[0]+1),ut=this.at(Fe[1]),mt=qr.commonAncestor(rt,ut);(mt==null?void 0:mt.type)==="array"&&rt.parent===mt&&ut.parent===mt?this._selection={ranges:[Fe],direction:Te.direction}:this._selection={ranges:[Fe],direction:Te.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 ao&&b.isSuggestion&&(b.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(a){this.setSelection(a,a)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(a="forward"){return this._anchor===this._position?!1:(a==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(a){return this.atoms[a]}offsetOf(a){return this.atoms.indexOf(a)}getSiblingsRange(a){const y=this.at(a),{parent:b}=y;if(!b)return[0,this.lastOffset];const z=y.parent.branch(y.parentBranch);return[this.offsetOf(z[0]),this.offsetOf(z[z.length-1])]}getBranchRange(a,y){const b=this.at(a).branch(y);return[this.offsetOf(b[0]),this.offsetOf(b[b.length-1])]}getAtoms(a,y,b){let z=b!=null?b:{};if(ru(a)){if(z=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((mt,wt)=>[...mt,...this.getAtoms(wt,z)],[]);a=a.ranges[0]}let ce,Te;if(Ps(a)){if(ce=a,!Ps(y))return[];Te=y}else[ce,Te]=a,z=y!=null?y:{};if(!Number.isFinite(ce))return[];z.includeChildren===void 0&&(z.includeChildren=!1),ce<0&&(ce=this.lastOffset-ce+1),Te<0&&(Te=this.lastOffset-Te+1);const Fe=Math.min(ce,Te)+1,rt=Math.max(ce,Te);if(!z.includeChildren&&Fe===1&&rt===this.lastOffset)return[this.root];let ut=[];for(let mt=Fe;mt<=rt;mt++){const wt=this.atoms[mt];gm(this,wt,Fe,rt)&&ut.push(wt)}return z.includeChildren||(ut=ut.filter(mt=>{let wt=!1,{parent:Rt}=mt;for(;Rt&&!wt;)wt=gm(this,Rt,Fe,rt),Rt=Rt.parent;return!wt})),ut}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let z=a;z<=b;z++)y.push(this.atoms[z]);for(let z=0;z<a;z++)y.push(this.atoms[z]);return y}findAtom(a,y=0,b="forward"){let z;const ce=this.lastOffset;if(b==="forward"){for(let Te=y;Te<=ce;Te++)if(z=this.atoms[Te],a(z))return z;for(let Te=0;Te<y;Te++)if(z=this.atoms[Te],a(z))return z;return}for(let Te=y;Te>=0;Te--)if(z=this.atoms[Te],a(z))return z;for(let Te=ce;Te>y;Te--)if(z=this.atoms[Te],a(z))return z}extractAtoms(a){let y=this.getAtoms(a);if(y.length===1&&!y[0].parent)if(y[0].type==="root")y=[...y[0].body],y.shift();else return y=this.root.cells.flat(),this.root=new qr({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 qr.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 Gi(a);if(b==="spoken")return xu(a);if(b==="spoken-text"){const z=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ce=xu(a);return window.MathfieldElement.textToSpeechMarkup=z,ce}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const z=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ce=xu(a);return window.MathfieldElement.textToSpeechMarkup=z,ce}return b==="ascii-math"?Ea(a):(console.error(`MathLive 0.98.5: Unexpected format "${b}`),"")}getValue(a,y,b){if(a===void 0)return this.atomToString(this.root,"latex");if(typeof a=="string"&&a!=="math-json")return this.atomToString(this.root,a);let z,ce;if(Ps(a)&&Ps(y)?(z=[this.normalizeRange([a,y])],ce=b):tu(a)?(z=[this.normalizeRange(a)],ce=y):ru(a)?(z=a.ranges,ce=y):(z=[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 Te=this.getValue({ranges:z},"latex-unstyled");try{const Fe=window.MathfieldElement.computeEngine.parse(Te);return JSON.stringify(Fe.json)}catch(Fe){return JSON.stringify(["Error",`'${Fe.toString()}'`])}}if(ce.startsWith("latex")){const Te={expandMacro:ce==="latex-expanded",skipStyles:ce==="latex-unstyled",skipPlaceholders:ce==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Pi(z.map(Fe=>qr.serialize(this.getAtoms(Fe),Te)))}return z.map(Te=>this.getAtoms(Te).map(Fe=>this.atomToString(Fe,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[z,ce]=b,{parent:Te}=this.at(ce);if(Te&&(Te.type==="genfrac"||Te.type==="subsup"))for(;Te!==this.root&&qh(this,Te,[z,ce]);)ce=this.offsetOf(Te),Te=Te.parent;for(Te=this.at(z).parent;Te!==this.root&&qh(this,Te,[z,ce]);)z=this.offsetOf(Te.leftSibling),Te=Te.parent;if(Te=this.at(ce).parent,(Te==null?void 0:Te.type)==="genfrac")for(;Te!==this.root&&qh(this,Te,[z,ce]);)ce=this.offsetOf(Te),console.assert(ce>=0),Te=Te.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[z,ce]],direction:"none"}})}announce(a,y,b=[]){var z,ce;((ce=(z=this.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ce:!0)&&ay(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,z=this._anchor,ce=this._position,Te=this.silenceNotifications;this.silenceNotifications=!0;const Fe=this.root.changeCounter;y();const rt=this.root.changeCounter!==Fe,ut=z!==this._anchor||ce!==this._position||uc(this._selection,b)==="different";return this.silenceNotifications=Te,a.content&&rt&&this.contentDidChange({inputType:a.type}),a.selection&&ut&&this.selectionDidChange(),rt||ut}normalizeOffset(a){return a>0?a=Math.min(a,this.lastOffset):a<0&&(a=this.lastOffset+a+1),a}normalizeRange(a){let[y,b]=a;return y=this.normalizeOffset(y),b=this.normalizeOffset(b),y<b?[y,b]:[b,y]}normalizeSelection(a,y){var b;let z;if(Ps(a)){const ce=this.normalizeOffset(a);if(Ps(y)){const Te=this.normalizeOffset(y);z=ce<=Te?{ranges:[[ce,Te]],direction:"none"}:{ranges:[[Te,ce]],direction:"backward"}}else z={ranges:[[ce,ce]],direction:"none"}}else if(tu(a)){const ce=this.normalizeOffset(a[0]),Te=this.normalizeOffset(a[1]);z=ce<=Te?{ranges:[[ce,Te]],direction:"none"}:{ranges:[[Te,ce]],direction:"backward"}}else ru(a)&&(z={ranges:a.ranges.map(ce=>this.normalizeRange(ce)),direction:(b=a.direction)!=null?b:"none"});return console.assert(z!==void 0),z}get parentEnvironment(){let a=this.at(this.position).parent;if(a){for(;a.parent&&a.type!=="array";)a=a.parent;if(a.type==="array")return a}}get cell(){var a;let y=this.at(this.position);if(y){for(;y&&((a=y.parent)==null?void 0:a.type)!=="array";)y=y.parent;if(!(!(y!=null&&y.parent)||y.parent.type!=="array"))return y.parentBranch}}contentWillChange(a={}){if(this.silenceNotifications||!this.mathfield)return!0;const y=this.silenceNotifications;this.silenceNotifications=!0;const b=this.mathfield.onContentWillChange(a);return this.silenceNotifications=y,b}contentDidChange(a){var y;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Hs(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(Hs(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function gm(a,y,b,z){const ce=a.offsetOf(y);if(ce<b||ce>z)return!1;if(!y.hasChildren)return!0;const Te=a.offsetOf(y.firstChild);if(Te>=b&&Te<=z){const Fe=a.offsetOf(y.lastChild);if(Fe>=b&&Fe<=z)return!0}return!1}function qh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[z,ce]=b,Te=a.offsetOf(y.firstChild),Fe=a.offsetOf(y.lastChild);return Te>=z&&Te<=ce&&Fe>=Te&&Fe<=ce}function Bd(a,y,b,z){var ce,Te,Fe,rt,ut,mt;const wt=b.parent;if(wt&&b instanceof Vi){const Rt=!z&&y==="forward"||z==="body"&&y==="backward";let Gt=Rt?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return Rt?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),Gt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),Gt--),a.position=Gt,!0}if(wt&&b.type==="surd"){if(y==="forward"&&!z||y==="backward"&&z==="body"){const Rt=b.leftSibling;b.hasChildren&&wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),a.position=a.offsetOf(Rt)}else y==="forward"&&z==="body"?a.position=a.offsetOf(b):!z&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),wt.removeChild(b)):z==="above"&&(b.hasEmptyBranch("above")&&b.removeBranch("above"),y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b.body[0]));return!0}if(wt&&(b.type==="box"||b.type==="enclose")){const Rt=z&&y==="backward"||!z&&y==="forward"?b.leftSibling:b.lastChild;return wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),a.position=a.offsetOf(Rt),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!z)return b.type==="overunder"&&b.hasEmptyBranch("body")||b.type==="genfrac"&&b.hasEmptyBranch("below")&&b.hasEmptyBranch("above")?!1:(a.position=a.offsetOf(y==="forward"?b.firstChild:b.lastChild),!0);const Rt=Ld.fractionNavigationOrder==="numerator-denominator"?"above":"below",Gt=Rt==="above"?"below":"above";if(wt&&(y==="forward"&&z===Rt||y==="backward"&&z===Gt)){const ir=b.removeBranch(Rt),cr=b.removeBranch(Gt);return wt.addChildrenAfter([...ir,...cr],b),wt.removeChild(b),a.position=a.offsetOf(ir.length>0?ir[ir.length-1]:cr[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!z&&y==="forward")return!1;if(!z){if(b.subscript||b.superscript){const Rt=y==="forward"?(Fe=(ce=b.superscript)==null?void 0:ce[0])!=null?Fe:(Te=b.subscript)==null?void 0:Te[0]:(mt=(rt=b.subscript)==null?void 0:rt[0].lastSibling)!=null?mt:(ut=b.superscript)==null?void 0:ut[0].lastSibling;return Rt&&(a.position=a.offsetOf(Rt)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const Rt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=Rt,!0}if(z==="superscript")if(y==="backward"){const Rt=a.offsetOf(b.firstChild)-1;console.assert(Rt>=0),a.position=Rt}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else z==="subscript"&&(y==="backward"&&b.superscript?a.position=a.offsetOf(b.superscript[0].lastSibling):y==="backward"?a.position=a.offsetOf(b.firstChild)-1:a.position=a.offsetOf(b));if(z&&b.hasEmptyBranch(z)&&(b.removeBranch(z),b.type==="subsup"&&!b.subscript&&!b.superscript)){const Rt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=Rt}return!0}if((wt==null?void 0:wt.type)==="genfrac"&&!z&&b.type!=="first"){let Rt=a.offsetOf(b.leftSibling);return wt.removeChild(b),wt.hasEmptyBranch("above")&&wt.hasEmptyBranch("below")?(Rt=a.offsetOf(wt.leftSibling),wt.parent.removeChild(wt),a.announce("delete",void 0,[wt]),a.position=Rt,!0):(a.announce("delete",void 0,[b]),a.position=Rt,!0)}if(y==="backward"&&((wt==null?void 0:wt.command)==="\\ln"||(wt==null?void 0:wt.command)==="\\log")&&b.parentBranch!=="body"){const Rt=a.offsetOf(wt.leftSibling);return wt.parent.removeChild(wt),a.announce("delete",void 0,[wt]),a.position=Rt,!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&&Bd(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(Bd(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])}}):Us(a,Qa(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 z=a.at(a.position).rightSibling;if(z&&Bd(a,"forward",z))return;if(z){if(a.at(a.position).isLastSibling&&Bd(a,"forward",z.parent,z.parentBranch))return}else{if(z=a.at(a.position),z.isLastSibling&&Bd(a,"forward",z.parent,z.parentBranch))return;z=void 0}if(a.position===a.lastOffset||!z){a.announce("plonk");return}z.parent.removeChild(z);let 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,[z])}):Us(a,Qa(a.selection),"deleteContentForward")}function Us(a,y,b){const z=a.getAtoms(y);if(z.length>0&&z[0].parent){let ce=z[0].parent.firstChild;ce.type==="first"&&(ce=ce.rightSibling);const Te=z[z.length-1].parent.lastChild;let Fe=z[0];Fe.type==="first"&&(Fe=Fe.rightSibling);const rt=z[z.length-1];if(Fe===ce&&rt===Te){const ut=z[0].parent;ut.parent&&ut.type!=="prompt"&&(y=[a.offsetOf(ut.leftSibling),a.offsetOf(ut)])}if(z.length===1&&z[0].type==="placeholder"&&z[0].parent.type==="genfrac"){const ut=z[0].parent,mt=z[0].parentBranch==="below"?"above":"below",wt=a.offsetOf(ut.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var Rt,Gt;const ir=ut.removeBranch(mt);if(ir.length===1&&ir[0].type==="placeholder")(Gt=ut.parent)==null||Gt.removeChild(ut),a.position=Math.max(0,wt);else{const cr=ut.parent.addChildrenAfter(ir,ut);(Rt=ut.parent)==null||Rt.removeChild(ut),a.position=a.offsetOf(cr)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}Fo({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Us(a,[0,-1],"deleteContent"),deleteForward:a=>uy(a),deleteBackward:a=>cy(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Us(a,[a.anchor,Th(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Us(a,[a.anchor,Th(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Us(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Us(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Us(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Us(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="${Ae("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="${Ae("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,z,ce;this.options=ie(oe(ie({},Nf()),{macros:_t(),registers:Il()}),Rf(y)),this.eventController=new AbortController;const Te=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 Fe=(z=(b=y.value)!=null?b:this.element.textContent)!=null?z:"";Fe=Fe.trim();const rt=Dp(this.options),ut=new qr({type:"root",mode:rt,body:qa(Fe,{context:this.context})});this.model=new ly(this,rt,ut),this.undoManager=new jg(this.model);const mt=[];if(mt.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>"),mt.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),mt.push("<span part=content class=ML__content>"),mt.push(Sp(this)),mt.push("</span>"),window.mathVirtualKeyboard&&(mt.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">`),mt.push(dy),mt.push("</div>")),mt.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),mt.push(fy),mt.push("</div>"),mt.push("</span>"),mt.push("<span class=ML__sr-only>"),mt.push("<span role=status aria-live=assertive aria-atomic=true></span>"),mt.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(mt.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=ye.subscribe(()=>ye.update(this.element)),ye.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Rt=>Rt.stopImmediatePropagation(),{capture:!1,signal:Te}),this.field.addEventListener("wheel",this,{passive:!1,signal:Te}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:Te}):this.field.addEventListener("mousedown",this,{signal:Te}),(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(Hs(this)))},{signal:Te}),this._menu=new Cv(qv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:Te});const wt=this.element.querySelector("[part=menu-toggle]");wt==null||wt.addEventListener("pointerdown",Rt=>{if(Rt.currentTarget!==wt||this._menu.state!=="closed")return;this.element.classList.add("tracking");const Gt=wt.getBoundingClientRect();this._menu.modifiers=pc(Rt),this._menu.show({target:wt,location:{x:Gt.left,y:Gt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Rt.preventDefault(),Rt.stopPropagation()},{signal:Te}),(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=W0(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:Te}),document.addEventListener("scroll",this,{signal:Te}),this.resizeObserver=new ResizeObserver(()=>ya(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:Te}),vd&&!ye.locale.startsWith(vd.locale)&&F0(ye.locale),Vo!=="ready"&&document.fonts.ready.then(()=>Df(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(Hs(this)),Xf(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,Fh())}showMenu(a){var y,b;const z=(b=(y=a==null?void 0:a.location)!=null?y:_s(this.field))!=null?b:void 0,ce=a==null?void 0:a.modifiers,Te=this.element.querySelector("[part=container]");return this._menu.show({target:Te,location:z,modifiers:ce})}get colorMap(){return a=>{var y,b,z;return(z=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?z:Ne(a)}}get backgroundColorMap(){return a=>{var y,b,z,ce,Te,Fe;return(Fe=(Te=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?Te:(ce=(z=this.options).colorMap)==null?void 0:ce.call(z,a))!=null?Fe:_e(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=qr.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[z,ce]of Object.entries(b.style))y[z]!==ce&&delete y[z];return y}queryStyle(a){const y=Ph(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 ut of Object.keys(y)){const mt=this.queryStyle({[ut]:y[ut]});if(mt==="none")return"none";if(mt==="some")return"some"}return"all"}const z=Object.keys(y)[0],ce=y[z];if(this.model.selectionIsCollapsed)return this.effectiveStyle[z]===ce?"all":"none";const Te=this.model.getAtoms(this.model.selection,{includeChildren:!0});let Fe=Te.length;if(Fe===0)return"none";let rt=0;for(const ut of Te){if(ut.type==="first"){Fe-=1;continue}ut.style[z]===ce&&(rt+=1)}return rt===0?"none":rt===Fe?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,z]=X0(this.options.keybindings,(a=yd())!=null?a:z0());return((y=yd())==null?void 0:y.score)>0&&(this._keybindings=b,z.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",z)),b}get menu(){return this._menu}setOptions(a){var y;this.options=ie(ie({},this.options),Rf(a)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let b=this.options.defaultMode;b==="inline-math"&&(b="math"),((y=this.model.root.firstChild)==null?void 0:y.mode)!==b&&(this.model.root.firstChild.mode=b),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const z=qr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==z)&&ki.insert(this.model,z,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in a||"macros"in a||"registers"in a||"colorMap"in a||"backgroundColorMap"in a||"letterShapeStyle"in a||"minFontScale"in a||"readOnly"in a||"placeholderSymbol"in a)&&ya(this)}getOptions(a){return vc(this.options,a)}getOption(a){return vc(this.options,a)}handleEvent(a){return Kl(this,null,function*(){var y;if(Wo(this)){if(Eh(a)){if(!cd(a.origin,(y=this.options.originValidator)!=null?y:"none"))throw new DOMException(`Message from unknown origin (${a.origin}) cannot be handled`,"SecurityError");const{action:b}=a.data;if(b==="execute-command"){const z=a.data.command;if(fu(z)==="virtual-keyboard")return;this.executeCommand(z)}else b==="update-state"||(b==="focus"?this.focus({preventScroll:!0}):b==="blur"&&this.blur());return}switch(a.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&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))&&Uf.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield am(a,this.element.querySelector("[part=container]"),this._menu))&&Uf.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Xf(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Wo(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Wo(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Wo(this))return;ye.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const a=this.element;delete a.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,Yg(),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 fu(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Hs(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 z=this.undoManager.canUndo();ki.insert(this.model,a,y)&&(ya(this),z||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const a=window.MathfieldElement.computeEngine;return a?a.box(a.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var a;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const z=window.mathVirtualKeyboard.boundingRect,ce=this.host.getBoundingClientRect();ce.bottom>z.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ce.bottom-z.top+8))}}this.dirty&&mc(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=_s(this.field);else{const z=ld(this);if(z.length>0){let ce=-1/0,Te=-1/0;for(const Fe of z)Fe.right>ce&&(ce=Fe.right),Fe.top<Te&&(Te=Fe.top);b={x:ce+y.left-this.field.scrollLeft,y:Te+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const z=this.host.getBoundingClientRect(),ce=b.y;let Te=this.host.scrollTop;ce<z.top?Te=ce-z.top+this.host.scrollTop:ce>z.bottom&&(Te=ce-z.bottom+this.host.scrollTop+b.height),this.host.scroll({top:Te,left:0})}if(b){const z=b.x-window.scrollX;let ce=this.field.scrollLeft;z<y.left?ce=z-y.left+this.field.scrollLeft-20:z>y.right&&(ce=z-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==="\\\\"?Ip(this.model):a==="&"?Bp(this.model):this.model.selectionIsCollapsed?ki.insert(this.model,a,ie({style:this.model.at(this.model.position).computedStyle},y)):ki.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),ya(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var z;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ce=this.model.mode;if(this.model.mode=a,!((z=this.host)!=null&&z.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ce;return}const Te=this.model.mode,{model:Fe}=this;Fe.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let rt=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const ut=qa(y,{context:this.context,parseMode:a});Fe.collapseSelection("forward");const mt=Fe.at(Fe.position);Fe.position=Fe.offsetOf(mt.parent.addChildrenAfter(ut,mt)),rt=!0}if(this.model.mode=a,a==="latex"){let ut=Fe.selectionIsCollapsed;uu(this,"accept");let mt,wt=Fe.at(Fe.position);if(ut)mt="\\";else{const Gt=Qa(Fe.selection);mt=this.model.getValue(Gt,"latex");const ir=this.model.extractAtoms(Gt);ir.length===1&&ir[0].type==="placeholder"&&(mt=y,ut=!0),wt=Fe.at(Gt[0])}const Rt=new dd(mt);wt.parent.addChildAfter(Rt,wt),ut?Fe.position=Fe.offsetOf(Rt.lastChild):Fe.setSelection(Fe.offsetOf(Rt.firstChild),Fe.offsetOf(Rt.lastChild))}else bd(Fe).forEach(ut=>{ut.isError=!1});if(b){const ut=qa(b,{context:this.context,parseMode:Te});Fe.collapseSelection("forward");const mt=Fe.at(Fe.position);Fe.position=Fe.offsetOf(mt.parent.addChildrenAfter(ut,mt)),rt=!0}return ya(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),rt}),this.model.mode=a,window.mathVirtualKeyboard.update(Hs(this))}hasFocus(){return!this.blurred}focus(a){var y;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(y=a==null?void 0:a.preventScroll)!=null&&y||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(a,y={}){var b,z;const ce={operation:"set",silenceNotifications:!1};tu(y)?ce.range=y:(y.operation==="toggle"&&(ce.operation="toggle"),ce.range=y.range,ce.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const Te=Ph(this,a),Fe=(z=ce.operation)!=null?z:"set";if(ce.range===void 0&&this.model.selectionIsCollapsed){if(Fe==="set"){this.defaultStyle=ie(ie({},this.defaultStyle),Te);return}const rt=ie({},this.defaultStyle);for(const ut of Object.keys(Te))rt[ut]===Te[ut]?(ut==="color"&&delete rt.verbatimColor,ut==="backgroundColor"&&delete rt.verbatimBackgroundColor,delete rt[ut]):rt[ut]=Te[ut];this.defaultStyle=rt;return}this.model.deferNotifications({content:!ce.silenceNotifications,type:"insertText"},()=>{if(ce.range===void 0)for(const rt of this.model.selection.ranges)Mh(this.model,rt,Te,{operation:Fe});else Mh(this.model,ce.range,Te,{operation:Fe})}),ya(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=_s(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=kd(this,a,y,{bias:0});if(b<0)return!1;const z=this.model.position;return this.model.position=b,this.model.announce("move",z),ya(this),!0}getPrompt(a){const y=this.model.findAtom(b=>b.type==="prompt"&&b.placeholderId===a);return console.assert(y!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),y}getPromptValue(a,y){const b=this.getPrompt(a);if(!b)return"";const z=this.model.offsetOf(b.firstChild),ce=this.model.offsetOf(b.lastChild);return this.model.getValue(z,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 z=this.getPrompt(a);if(!z){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const ce=this.model.getBranchRange(this.model.offsetOf(z),"body");this.model.setSelection(ce),this.insert(y,oe(ie({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),ya(this)}setPromptState(a,y,b){const z=this.getPrompt(a);if(!z){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}y==="undefined"?z.correctness=void 0:typeof y=="string"&&(z.correctness=y),typeof b=="boolean"&&(z.locked=b,z.captureSelection=b),ya(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(Hs(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(Hs(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(Hs(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var a;(a=this.undoManager)==null||a.reset()}onSelectionDidChange(){var a,y;const b=this.model;this.keyboardDelegate.setValue(b.getValue(this.model.selection,"latex-expanded"));{const z=b.at(b.position),ce=(a=z.mode)!=null?a:Dp(this.options);this.model.mode!==ce&&(this.model.mode==="latex"?(uu(this,"accept",{mode:ce}),b.position=b.offsetOf(z)):this.switchMode(ce))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Hs(this)),Xf(this)}onContentWillChange(a){var y,b,z;return(z=(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?z:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),mc(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="",du(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})),ya(this),this.focusBlurInProgress=!1,Fh();const z=new AbortController,ce=z.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Wo(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ce})},{once:!0,signal:ce}),setTimeout(()=>z.abort(),100)}onInput(a){Ih(this,a)}onKeystroke(a){return Hp(this,a)}onCompositionStart(a){this.model.deleteAtoms(Qa(this.model.selection));const y=_s(this.field);y&&requestAnimationFrame(()=>{mc(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Og(this.model,a),ya(this)}onCompositionEnd(a){Dg(this.model),Ih(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),ki.onCopy(this,a),Us(this.model,Qa(this.model.selection),"deleteByCut"),this.snapshot("cut"),ya(this))}onCopy(a){ki.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=ki.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(),kf(this),Xf(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=>Nt(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(z=>{z instanceof HTMLElement&&ep(z)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(z=>{z instanceof HTMLElement&&ep(z,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 z=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"]};zl().readAloudElement=a,z.synthesizeSpeech(ce,(Te,Fe)=>{if(Te){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${Te}`);return}if(!(Fe!=null&&Fe.AudioStream)){console.log("polly.synthesizeSpeech():",Fe);return}const rt=new TextDecoder("utf-8").decode(new Uint8Array(Fe.AudioStream));zl().readAloudMarks=rt.split(`
|
|
|
`).map(ut=>ut?JSON.parse(ut):{}),zl().readAloudTokens=[];for(const ut of zl().readAloudMarks)ut.value&&zl().readAloudTokens.push(ut.value);zl().readAloudCurrentMark="",ce.OutputFormat="mp3",ce.SpeechMarkTypes=[],z.synthesizeSpeech(ce,(ut,mt)=>{if(ut){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ut}`);return}if(!(mt!=null&&mt.AudioStream))return;const wt=new Uint8Array(mt.AudioStream),Rt=new Blob([wt.buffer],{type:"audio/mpeg"}),Gt=URL.createObjectURL(Rt),ir=zl();ir.readAloudAudio?ir.readAloudAudio.pause():(ir.readAloudAudio=new Audio,ir.readAloudAudio.addEventListener("ended",()=>{const cr=ir.readAloudMathfield;ir.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),cr?(mc(cr),ir.readAloudElement=null,ir.readAloudMathfield=null,ir.readAloudTokens=[],ir.readAloudMarks=[],ir.readAloudCurrentMark=""):vm(ir.readAloudElement)}),ir.readAloudAudio.addEventListener("timeupdate",()=>{let cr="";const Hr=ir.readAloudAudio.currentTime*1e3+100;for(const Rn of ir.readAloudMarks)Rn.time<Hr&&(cr=Rn.value);ir.readAloudCurrentMark!==cr&&(ir.readAloudCurrentToken=cr,cr&&cr===ir.readAloudFinalToken?ir.readAloudAudio.pause():(ir.readAloudCurrentMark=cr,ep(ir.readAloudElement,ir.readAloudCurrentMark)))})),ir.readAloudAudio.src=Gt,ir.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),ir.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 Ui=new WeakMap,my=.5,Fl={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 = ..."},oo=class Ac extends HTMLElement{static get formAssociated(){return Cu()}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,z,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:(z=y.return)!=null?z: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 ye.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),ye.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 ye.strings}static set strings(y){ye.merge(y)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(y){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(y){this._decimalSeparator=y,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(y){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var y,b;if(this._computeEngine===void 0){const z=(y=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;if(!z)return null;this._computeEngine=new z,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(b=this._computeEngine)!=null?b:null}static set computeEngine(y){this._computeEngine=y}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(y){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(y){this._isFunction=y}static loadSound(y){return Kl(this,null,function*(){delete this.audioBuffers[y];let b="";switch(y){case"keypress":b=this._keypressSound.default;break;case"return":b=this._keypressSound.return;break;case"spacebar":b=this._keypressSound.spacebar;break;case"delete":b=this._keypressSound.delete;break;case"plonk":b=this.plonkSound;break}if(typeof b!="string")return;b=b.trim();const z=this.soundsDirectory;if(!(z==null||z==="null"||b==="none"||b==="null"))try{const Te=yield(yield fetch(yield wp(`${z}/${b}`))).arrayBuffer(),Fe=yield this.audioContext.decodeAudioData(Te);this.audioBuffers[y]=Fe}catch(ce){}})}static playSound(y){return Kl(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[y]||(yield this.loadSound(y)),!this.audioBuffers[y])return;const b=this.audioContext.createBufferSource();b.buffer=this.audioBuffers[y];const z=this.audioContext.createGain();z.gain.value=my,b.connect(z).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const z of Object.keys(y))if(Fl[z])if(Fl[z].startsWith("mf."))if(Fl[z].startsWith(`mf.${z}`))b.push(`Option \`${z}\` cannot be used as a constructor option. Use ${Fl[z]}`);else{const ce=Fl[z].match(/([a-zA-Z]+) =/);b.push(`Option \`${z}\` has been renamed \`${ce[1]}\``)}else b.push(`Option \`${z}\` cannot be used as a constructor option. Use ${Fl[z]}`);if(b.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const z of b)console.warn(z);console.groupEnd()}}if(Cu()&&(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=[Rl("core"),Rl("mathfield"),Rl("mathfield-element"),Rl("ui"),Rl("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>"+hl("core")+hl("mathfield")+hl("mathfield-element")+hl("ui")+hl("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const z=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=z==null?void 0:z.assignedNodes().map(ce=>ce.nodeType===3?ce.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?z:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",y=>{var b;y.target===this&&!((b=this._mathfield)!=null&&b.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:y.altKey,button:y.button,buttons:y.buttons,clientX:y.clientX,clientY:y.clientY,ctrlKey:y.ctrlKey,metaKey:y.metaKey,movementX:y.movementX,movementY:y.movementY,relatedTarget:y.relatedTarget,screenX:y.screenX,screenY:y.screenY,shiftKey:y.shiftKey}))},{once:!0})}getPromptValue(y,b){var z,ce;return(ce=(z=this._mathfield)==null?void 0:z.getPromptValue(y,b))!=null?ce:""}setPromptValue(y,b,z){var ce;(ce=this._mathfield)==null||ce.setPromptValue(y,b,z)}getPromptRange(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?z:null}getPrompts(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?z:[]}get form(){var y;return(y=this._internals)==null?void 0:y.form}get name(){var y;return(y=this.getAttribute("name"))!=null?y:""}get type(){return this.localName}get mode(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.mode)!=null?b:this.defaultMode==="text"?"text":"math"}set mode(y){var b;(b=this._mathfield)==null||b.switchMode(y)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(y){var b,z;if(!this._mathfield)return;const ce=(z=(b=Ac.computeEngine)==null?void 0:b.box(y).latex)!=null?z: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?vc(this._mathfield.options,y):Ui.has(this)?ie({},vc(ie(ie({},Nf()),Rf(Ui.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?vc(this._mathfield.options,y):Ui.has(this)?vc(ie(ie({},Nf()),Rf(Ui.get(this).options)),y):null}reflectAttributes(){const y=Nf(),b=this._getOptions();Object.keys(Ac.optionsAttributes).forEach(z=>{const ce=vl(z);Ac.optionsAttributes[z]==="on/off"?y[ce]!==b[ce]?this.setAttribute(z,b[ce]?"on":"off"):this.removeAttribute(z):y[ce]!==b[ce]&&(Ac.optionsAttributes[z]==="boolean"?b[ce]?this.setAttribute(z,""):this.removeAttribute(z):(typeof b[ce]=="string"||typeof b[ce]=="number")&&this.setAttribute(z,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(Ui.has(this)){const b=ie(ie({},Ui.get(this).options),y);Ui.set(this,oe(ie({},Ui.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Ui.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))Fl[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${Fl[b]}`);console.groupEnd(),this._setOptions(y)}executeCommand(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.executeCommand(y))!=null?z:!1}getValue(y,b,z){var ce,Te;if(this._mathfield)return this._mathfield.model.getValue(y,b,z);if(Ui.has(this)){let Fe,rt,ut;if(ru(y)?([Fe,rt]=y.ranges[0],ut=b):tu(y)?([Fe,rt]=y,ut=b):Ps(y)&&Ps(b)?(Fe=y,rt=b,ut=z):(Fe=0,rt=-1,ut=y),(ut===void 0||ut==="latex")&&Fe===0&&rt===-1)return(Te=(ce=Ui.get(this).value)!=null?ce:this.textContent)!=null?Te:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(Ui.has(this)){const ce=Ui.get(this).options;Ui.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ce,menuItems:void 0});return}const z=Pd(this);Ui.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:z,menuItems:void 0})}hasFocus(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.hasFocus())!=null?b:!1}focus(){var y;(y=this._mathfield)==null||y.focus()}blur(){var y;(y=this._mathfield)==null||y.blur()}select(){var y;(y=this._mathfield)==null||y.select()}insert(y,b){var z,ce;return(ce=(z=this._mathfield)==null?void 0:z.insert(y,b))!=null?ce:!1}applyStyle(y,b){var z;return(z=this._mathfield)==null?void 0:z.applyStyle(y,b)}queryStyle(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?z:"none"}get caretPoint(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.getCaretPoint())!=null?b:null}set caretPoint(y){var b;y&&((b=this._mathfield)==null||b.setCaretPoint(y.x,y.y))}setCaretPoint(y,b){var z,ce;return(ce=(z=this._mathfield)==null?void 0:z.setCaretPoint(y,b))!=null?ce:!1}offsetFromPoint(y,b,z){return this._mathfield?kd(this._mathfield,y,b,z):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const z=Ll(this._mathfield,b);return z?new DOMRect(z.left,z.top,z.right-z.left,z.bottom-z.top):null}resetUndo(){var y;(y=this._mathfield)==null||y.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(y){var b,z,ce,Te;Fs.state==="closed"&&((z=(b=this._mathfield)==null?void 0:b.menu)==null?void 0:z.state)==="closed"&&(y.type==="pointerdown"&&this.onPointerDown(),y.type==="focus"&&((ce=this._mathfield)==null||ce.focus()),y.type==="blur"&&((Te=this._mathfield)==null||Te.blur()))}connectedCallback(){var y,b,z,ce;const Te=window.getComputedStyle(this),Fe=this.shadowRoot,rt=Te.userSelect!=="none";if(rt)Fe.host.addEventListener("pointerdown",this,!0);else{const wt=Fe.querySelector("span");wt.style.pointerEvents="none"}Fe.host.addEventListener("focus",this,!0),Fe.host.addEventListener("blur",this,!0),Cu()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),rt&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const ut=Fe.querySelector("slot:not([name])");if(ut)try{this._style=ut.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,Fe.appendChild(wt)}let mt="";if(this.hasAttribute("value")?mt=this.getAttribute("value"):mt=(y=ut==null?void 0:ut.assignedNodes().map(wt=>wt.nodeType===3?wt.textContent:"").join("").trim())!=null?y:"",this._mathfield=new hy(Fe.querySelector(":host > span"),oe(ie({},(z=(b=Ui.get(this))==null?void 0:b.options)!=null?z:Pd(this)),{eventSink:this,value:mt})),!Ui.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const wt of Object.keys(Ac.optionsAttributes))this.upgradeProperty(vl(wt))}if(!((ce=this._mathfield)!=null&&ce.model)){this._mathfield=null;return}if(Ui.has(this)){const wt=this._mathfield,Rt=Ui.get(this),Gt=Rt.menuItems;wt.model.deferNotifications({content:!1,selection:!1},()=>{const ir=Rt.value;ir!==void 0&&wt.setValue(ir),wt.model.selection=Rt.selection,Ui.delete(this)}),Gt&&(this.menuItems=Gt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Of()}disconnectedCallback(){var y,b;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const z=vc(this._mathfield.options,Object.keys(Ac.optionsAttributes).map(ce=>vl(ce)));Ui.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(b=(y=this._mathfield.menu)==null?void 0:y.menuItems)!=null?b:void 0,options:z}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(y){if(this.hasOwnProperty(y)){const b=this[y];delete this[y],(y==="readonly"||y==="read-only")&&(y="readOnly"),this[y]=b}}attributeChangedCallback(y,b,z){if(b===z)return;const ce=z!==null;switch(y){case"contenteditable":ya(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",""),Cu()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Cu()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:b})}get disabled(){return this.hasAttribute("disabled")}set disabled(y){var b;const z=!!y;z?this.setAttribute("disabled",""):this.removeAttribute("disabled"),Cu()?this._internals.ariaDisabled=z?"true":"false":this.setAttribute("aria-disabled",z?"true":"false"),z&&((b=this._mathfield)!=null&&b.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(y){this.setValue(y)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(y){this._setOptions({defaultMode:y})}get macros(){return this._getOption("macros")}set macros(y){this._setOptions({macros:y})}get registers(){const y=this;return new Proxy({},{get:(b,z)=>{if(typeof z=="string")return y._getOption("registers")[z]},set(b,z,ce){return typeof z!="string"?!1:(y._setOptions({registers:oe(ie({},y._getOption("registers")),{[z]: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,z;return this._mathfield?(y=this._mathfield.menu._menuItems.map(ce=>ce.menuItem))!=null?y:[]:(z=(b=Ui.get(this))==null?void 0:b.menuItems)!=null?z:[]}set menuItems(y){var b;if(this._mathfield){const z=(b=this._mathfield.element)==null?void 0:b.querySelector("[part=menu-toggle]");z&&(z.style.display=y.length===0?"none":""),this._mathfield.menu.menuItems=y}Ui.has(this)?Ui.set(this,oe(ie({},Ui.get(this)),{menuItems:y})):Ui.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Pd(this),menuItems:y})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(y){this._setOptions({mathVirtualKeyboardPolicy:y})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(y){this._setOptions({inlineShortcuts:y})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(y){this._setOptions({inlineShortcutTimeout:y})}get keybindings(){return this._getOption("keybindings")}set keybindings(y){this._setOptions({keybindings:y})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(y){this._setOptions({onInlineShortcut:y})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(y){this._setOptions({onScrollIntoView:y})}get onExport(){return this._getOption("onExport")}set onExport(y){this._setOptions({onExport:y})}get readOnly(){return this._getOption("readOnly")}set readOnly(y){this._setOptions({readOnly:y})}get isSelectionEditable(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.isSelectionEditable)!=null?b:!1}setPromptState(y,b,z){var ce;(ce=this._mathfield)==null||ce.setPromptState(y,b,z)}getPromptState(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?z:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(y){this._setOptions({virtualKeyboardTargetOrigin:y})}get selection(){return this._mathfield?this._mathfield.model.selection:Ui.has(this)?Ui.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,ya(this._mathfield);return}if(Ui.has(this)){Ui.set(this,oe(ie({},Ui.get(this)),{selection:y}));return}Ui.set(this,{value:void 0,selection:y,options:Pd(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:Ui.has(this)?Ui.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,ya(this._mathfield)),Ui.has(this)){Ui.set(this,oe(ie({},Ui.get(this)),{selection:{ranges:[[y,y]]}}));return}Ui.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:Pd(this),menuItems:void 0})}getOffsetDepth(y){var b,z;return this._mathfield?((z=(b=this._mathfield.model.at(y))==null?void 0:b.treeDepth)!=null?z:2)-2:0}get lastOffset(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.lastOffset)!=null?b:-1}};oo.version="0.98.5",oo._fontsDirectory="./fonts",oo._soundsDirectory="./sounds",oo.keypressVibration=!0,oo._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},oo._plonkSound="plonk.wav",oo.audioBuffers={},oo.createHTML=a=>a,oo._speechEngineRate="100%",oo._speechEngineVoice="Joanna",oo._textToSpeechMarkup="",oo._textToSpeechRules="mathlive",oo._textToSpeechRulesOptions={},oo.speakHook=iy,oo.readAloudHook=py,oo._decimalSeparator=".",oo.fractionNavigationOrder="numerator-denominator",oo._isFunction=a=>{var y,b;const z=window.MathfieldElement.computeEngine;return(b=(y=z==null?void 0:z.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var Ld=oo;function vl(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function Pd(a){const y={readOnly:!1},b=Ld.optionsAttributes;return Object.keys(b).forEach(z=>{if(a.hasAttribute(z)){const ce=a.getAttribute(z);z==="placeholder"?y.contentPlaceholder=ce!=null?ce:"":b[z]==="boolean"?y[vl(z)]=!0:b[z]==="on/off"?ce==="on"?y[vl(z)]=!0:ce==="off"?y[vl(z)]=!1:y[vl(z)]=void 0:b[z]==="number"?y[vl(z)]=Number.parseFloat(ce!=null?ce:"0"):y[vl(z)]=ce}}),y}function Cu(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var ym=Ld,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=Ld,(Sm=window.customElements)==null||Sm.define("math-field",Ld)}function gy(a,y,b){let z=b,ce=0;const Te=a.length;for(;z<y.length;){const Fe=y[z];if(ce<=0&&y.slice(z,z+Te)===a)return z;Fe==="\\"?z++:Fe==="{"?ce++:Fe==="}"&&ce--,z++}return-1}function qf(a,y,b,z,ce="latex"){const Te=[];for(const Fe of a)if(Fe.type==="text"){const rt=Fe.data;let ut=!0,mt=0,wt;wt=rt.indexOf(y),wt!==-1&&(mt=wt,mt>0&&Te.push({type:"text",data:rt.slice(0,mt)}),ut=!1);let Rt=!1;for(;!Rt;){if(ut){if(wt=rt.indexOf(y,mt),wt===-1){Rt=!0;break}mt!==wt&&Te.push({type:"text",data:rt.slice(mt,wt)}),mt=wt}else{if(wt=gy(b,rt,mt+y.length),wt===-1){Rt=!0;break}let Gt=rt.slice(mt+y.length,wt);ce==="ascii-math"&&([,Gt]=dc(Gt,{format:"ascii-math"})),Te.push({type:"math",data:Gt,rawData:rt.slice(mt,wt+b.length),mathstyle:z}),mt=wt+b.length}ut=!ut}mt<rt.length&&Te.push({type:"text",data:rt.slice(mt)})}else Te.push(Fe);return Te}function Cm(a,y,b){let z=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ce,Te])=>{z=qf(z,ce,Te,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ce,Te])=>{z=qf(z,ce,Te,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ce,Te])=>{z=qf(z,ce,Te,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ce,Te])=>{z=qf(z,ce,Te,"displaystyle","ascii-math")}),z}function vy(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const z="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(z)}catch(z){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${z}`),b.textContent=a}return b.className="ML__sr-only",b}function yy(a,y,b,z){try{const ce=y.renderToMarkup(a,{mathstyle:b,format:"html"}),Te=document.createElement("span");return Te.dataset.latex=a,Te.style.display=b==="displaystyle"?"flex":"inline-flex",Te.setAttribute("aria-hidden","true"),Te.setAttribute("translate","no"),Te.innerHTML=window.MathfieldElement.createHTML(ce),Te}catch(ce){if(console.error("Could not parse'"+a+"' with ",ce),z)return document.createTextNode(a)}return null}function Eu(a,y,b,z){var ce;const Te=yy(a,b,y||"textstyle",z),Fe=(ce=b.renderAccessibleContent)!=null?ce:"";if(Te&&/\b(mathml|speakable-text)\b/i.test(Fe)){const rt=document.createElement("span");if(/\bmathml\b/i.test(Fe)&&b.renderToMathML&&rt.append(vy(a,b)),/\bspeakable-text\b/i.test(Fe)&&b.renderToSpeakableText){const ut=document.createElement("span");ut.setAttribute("translate","no");const mt=b.renderToSpeakableText(a);ut.innerHTML=window.MathfieldElement.createHTML(mt),ut.className="ML__sr-only",rt.append(ut)}return rt.append(Te),rt}return Te}function by(a,y){var b,z,ce;let Te=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){Te=document.createDocumentFragment();const Fe=Eu(a,"",y,!0);Fe&&Te.appendChild(Fe)}else{if(!a.trim())return null;const Fe=Cm(a,(z=y.TeX)==null?void 0:z.delimiters,(ce=y.asciiMath)==null?void 0:ce.delimiters);if(Fe.length===1&&Fe[0].type==="text")return null;Te=document.createDocumentFragment();for(const rt of Fe)if(rt.type==="text")Te.appendChild(document.createTextNode(rt.data));else{const ut=Eu(rt.data,rt.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ut&&Te.appendChild(ut)}}return Te}function Em(a,y){var b,z,ce,Te,Fe,rt,ut,mt,wt,Rt,Gt,ir,cr,Hr,Rn,Fr;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const sn=(b=a.childNodes[0].textContent)!=null?b:"";if((z=y.TeX)!=null&&z.processEnvironments&&/^\s*\\begin/.test(sn)){a.textContent="";const xn=Eu(sn,"",y,!0);xn&&a.append(xn);return}const Fn=Cm(sn,(ce=y.TeX)==null?void 0:ce.delimiters,(Te=y.asciiMath)==null?void 0:Te.delimiters);if(Fn.length===1&&Fn[0].type==="math"){a.textContent="";const xn=Eu(Fn[0].data,Fn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);xn&&a.append(xn);return}if(Fn.length===1&&Fn[0].type==="text")return}for(let sn=a.childNodes.length-1;sn>=0;sn--){const Fn=a.childNodes[sn];if(Fn.nodeType===3){const xn=by((Fe=Fn.textContent)!=null?Fe:"",y);xn&&(sn+=xn.childNodes.length-1,Fn.replaceWith(xn))}else if(Fn.nodeType===1){const xn=Fn,oi=Fn.nodeName.toLowerCase();if(oi==="script"){const fi=Fn;let ui;if((rt=y.processScriptTypePattern)!=null&&rt.test(fi.type))ui=(ut=fi.textContent)!=null?ut:"";else if((mt=y.processMathJSONScriptTypePattern)!=null&&mt.test(fi.type))try{ui=(Rt=y.serializeToLatex)==null?void 0:Rt.call(y,JSON.parse((wt=fi.textContent)!=null?wt:""))}catch(zi){console.error(zi)}if(ui){let zi="textstyle";for(const Vn of fi.type.split(";")){const[Go,Zs]=Vn.toLowerCase().split("=");Go.trim()==="mode"&&(zi=Zs.trim()==="display"?"displaystyle":"textstyle")}const ea=Eu(ui,zi,y,!0);ea&&fi.parentNode.replaceChild(ea,fi)}}else if(((ir=(Gt=y.processClassPattern)==null?void 0:Gt.test(xn.className))!=null?ir:!1)||!((Hr=(cr=y.skipTags)==null?void 0:cr.includes(oi))!=null&&Hr||(Fr=(Rn=y.ignoreClassPattern)==null?void 0:Rn.test(xn.className))!=null&&Fr))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const ui=a.textContent;a.textContent="";const zi=Eu(ui!=null?ui:"","displaystyle",y,!0);zi&&a.append(zi)}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,z,ce,Te;try{const Fe=ie(ie({},xy),y);Fe.ignoreClassPattern=new RegExp((b=Fe.ignoreClass)!=null?b:""),Fe.processClassPattern=new RegExp((z=Fe.processClass)!=null?z:""),Fe.processScriptTypePattern=new RegExp((ce=Fe.processScriptType)!=null?ce:""),Fe.processMathJSONScriptTypePattern=new RegExp((Te=Fe.processMathJSONScriptType)!=null?Te:""),Of(),jo("core"),Em(a,Fe)}catch(Fe){Fe instanceof Error?console.error("renderMathInElement(): "+Fe.message):console.error("renderMathInElement(): Could not render math for element",a)}}function Sy(a,y){const b=_l.singleton;return b?(b.show(),Sd(),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}Fo({switchKeyboardLayer:Sy,toggleVirtualKeyboard:Cy,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function zl(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function Iy(){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 By(a){Ay(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 Ay(a,y){var b,z,ce,Te;const Fe=Ey(a);if(!Fe)return;const rt=y!=null?y:{};(b=rt.renderToMarkup)!=null||(rt.renderToMarkup=eo),(z=rt.renderToMathML)!=null||(rt.renderToMathML=_v),(ce=rt.renderToSpeakableText)!=null||(rt.renderToSpeakableText=jv),(Te=rt.serializeToLatex)!=null||(rt.serializeToLatex=Fv),wy(Fe,rt)}var Ly={mathlive:"0.98.5"}},16722:function(or,Ht,ke){"use strict";ke.d(Ht,{Z:function(){return ie}});const Re=oe=>typeof oe=="object"&&oe!=null&&oe.nodeType===1,gt=(oe,se)=>(!se||oe!=="hidden")&&oe!=="visible"&&oe!=="clip",x=(oe,se)=>{if(oe.clientHeight<oe.scrollHeight||oe.clientWidth<oe.scrollWidth){const me=getComputedStyle(oe,null);return gt(me.overflowY,se)||gt(me.overflowX,se)||(te=>{const ae=(ue=>{if(!ue.ownerDocument||!ue.ownerDocument.defaultView)return null;try{return ue.ownerDocument.defaultView.frameElement}catch(de){return null}})(te);return!!ae&&(ae.clientHeight<te.scrollHeight||ae.clientWidth<te.scrollWidth)})(oe)}return!1},De=(oe,se,me,te,ae,ue,de,he)=>ue<oe&&de>se||ue>oe&&de<se?0:ue<=oe&&he<=me||de>=se&&he>=me?ue-oe-te:de>se&&he<me||ue<oe&&he>me?de-se+ae:0,ve=oe=>{const se=oe.parentElement;return se==null?oe.getRootNode().host||null:se},re=(oe,se)=>{var me,te,ae,ue;if(typeof document=="undefined")return[];const{scrollMode:de,block:he,inline:we,boundary:Se,skipOverflowHiddenElements:xe}=se,ye=typeof Se=="function"?Se:ot=>ot!==Se;if(!Re(oe))throw new TypeError("Invalid target");const Ae=document.scrollingElement||document.documentElement,Le=[];let Ce=oe;for(;Re(Ce)&&ye(Ce);){if(Ce=ve(Ce),Ce===Ae){Le.push(Ce);break}Ce!=null&&Ce===document.body&&x(Ce)&&!x(document.documentElement)||Ce!=null&&x(Ce,xe)&&Le.push(Ce)}const je=(te=(me=window.visualViewport)==null?void 0:me.width)!=null?te:innerWidth,Me=(ue=(ae=window.visualViewport)==null?void 0:ae.height)!=null?ue:innerHeight,{scrollX:Oe,scrollY:Ee}=window,{height:Ne,width:_e,top:Ze,right:Pe,bottom:Ue,left:Qe}=oe.getBoundingClientRect(),{top:tt,right:at,bottom:lt,left:Ve}=(ot=>{const et=window.getComputedStyle(ot);return{top:parseFloat(et.scrollMarginTop)||0,right:parseFloat(et.scrollMarginRight)||0,bottom:parseFloat(et.scrollMarginBottom)||0,left:parseFloat(et.scrollMarginLeft)||0}})(oe);let Xe=he==="start"||he==="nearest"?Ze-tt:he==="end"?Ue+lt:Ze+Ne/2-tt+lt,nt=we==="center"?Qe+_e/2-Ve+at:we==="end"?Pe+at:Qe-Ve;const ct=[];for(let ot=0;ot<Le.length;ot++){const et=Le[ot],{height:qe,width:it,top:yt,right:pt,bottom:Dt,left:At}=et.getBoundingClientRect();if(de==="if-needed"&&Ze>=0&&Qe>=0&&Ue<=Me&&Pe<=je&&(et===Ae&&!x(et)||Ze>=yt&&Ue<=Dt&&Qe>=At&&Pe<=pt))return ct;const st=getComputedStyle(et),Ge=parseInt(st.borderLeftWidth,10),We=parseInt(st.borderTopWidth,10),le=parseInt(st.borderRightWidth,10),fe=parseInt(st.borderBottomWidth,10);let ze=0,He=0;const pe="offsetWidth"in et?et.offsetWidth-et.clientWidth-Ge-le:0,Ie="offsetHeight"in et?et.offsetHeight-et.clientHeight-We-fe:0,Ke="offsetWidth"in et?et.offsetWidth===0?0:it/et.offsetWidth:0,Ye="offsetHeight"in et?et.offsetHeight===0?0:qe/et.offsetHeight:0;if(Ae===et)ze=he==="start"?Xe:he==="end"?Xe-Me:he==="nearest"?De(Ee,Ee+Me,Me,We,fe,Ee+Xe,Ee+Xe+Ne,Ne):Xe-Me/2,He=we==="start"?nt:we==="center"?nt-je/2:we==="end"?nt-je:De(Oe,Oe+je,je,Ge,le,Oe+nt,Oe+nt+_e,_e),ze=Math.max(0,ze+Ee),He=Math.max(0,He+Oe);else{ze=he==="start"?Xe-yt-We:he==="end"?Xe-Dt+fe+Ie:he==="nearest"?De(yt,Dt,qe,We,fe+Ie,Xe,Xe+Ne,Ne):Xe-(yt+qe/2)+Ie/2,He=we==="start"?nt-At-Ge:we==="center"?nt-(At+it/2)+pe/2:we==="end"?nt-pt+le+pe:De(At,pt,it,Ge,le+pe,nt,nt+_e,_e);const{scrollLeft:Je,scrollTop:dt}=et;ze=Ye===0?0:Math.max(0,Math.min(dt+ze/Ye,et.scrollHeight-qe/Ye+Ie)),He=Ke===0?0:Math.max(0,Math.min(Je+He/Ke,et.scrollWidth-it/Ke+pe)),Xe+=dt-ze,nt+=Je-He}ct.push({el:et,top:ze,left:He})}return ct},ne=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 me=(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 te=typeof se=="boolean"||se==null?void 0:se.behavior;for(const{el:ae,top:ue,left:de}of re(oe,ne(se))){const he=ue-me.top+me.bottom,we=de-me.left+me.right;ae.scroll({top:he,left:we,behavior:te})}}}}]);
|
|
|
}()); |