You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/3263.9090ca1a.async.js

3509 lines
2.0 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!(function(){var Tl=Math.pow;var gc=(dn,en,se)=>new Promise((ae,Pe)=>{var Re=ke=>{try{ve(se.next(ke))}catch(Le){Pe(Le)}},qe=ke=>{try{ve(se.throw(ke))}catch(Le){Pe(Le)}},ve=ke=>ke.done?ae(ke.value):Promise.resolve(ke.value).then(Re,qe);ve((se=se.apply(dn,en)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3263],{18299:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},84249:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},81893:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},42922:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},90674:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},25877:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},63237:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},99569:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},22751:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},38308:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},17663:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},91034:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},72395:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},53978:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(dn,en){"use strict";en.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52654:function(dn,en){"use strict";en.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"}},94785:function(dn,en){"use strict";en.Z={flex_box_center:"flex_box_center___QbjXY",flex_space_between:"flex_space_between___CGgf9",flex_box_vertical_center:"flex_box_vertical_center___TZqsW",flex_box_center_end:"flex_box_center_end___G6yjl",flex_box_column:"flex_box_column___X3SPm",Onerow:"Onerow___te_Su",MultiLine:"MultiLine___FQNWA",DiscussionList:"DiscussionList___AO3Id",DiscussionListItem:"DiscussionListItem___dGzLI",DiscussionListItemImg:"DiscussionListItemImg___XeC4p",imgUpLoad:"imgUpLoad___gjBfb"}},61016: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 dn={},en="5.0",se={},ae=null,Pe=!1,Re=!1,qe=null,ve=!1,ke=null,Le=null,xe=0;xe<arguments.length;xe++){var me=arguments[xe];if(me!==null)switch(typeof me){case"number":en=me.toFixed(1);break;case"string":me.match(new RegExp("^[0-9]\\.[0-9]+$"))?en=me:qe=me;break;case"object":typeof me.is3D!="undefined"?ae=me:se=me;break;case"boolean":Pe=me,Re=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},se.material_id!==void 0&&!Re&&(Pe=!0)),qe!==null&&se.id===void 0&&(se.id=qe);var Ie="",st="",Ne=!1,xt=null,pt=null,ct=null,rt=!1,Ee=null,at=null,Yt=null,Xe=null,lt=null;se.height!==void 0&&(se.height=Math.round(se.height)),se.width!==void 0&&(se.width=Math.round(se.width));var Se=function($e){return parseFloat($e)>4?parseFloat($e):5};dn.setHTML5Codebase=function($e,dt){Le=$e,At($e,dt)},dn.setJavaCodebase=dn.setJavaCodebaseVersion=dn.isCompiledInstalled=dn.setPreCompiledScriptPath=dn.setPreCompiledResourcePath=function(){},dn.setHTML5CodebaseVersion=function($e,dt){var qt=parseFloat($e);if(qt!==NaN&&qt<5){console.log("The GeoGebra HTML5 codebase version "+qt+" is deprecated. Using version latest instead.");return}ke=$e,we($e,dt)},dn.getHTML5CodebaseVersion=function(){return pt},dn.getParameters=function(){return se},dn.setFontsCSSURL=function($e){Xe=$e},dn.setGiacJSURL=function($e){},dn.setJNLPFile=function($e){Ie=$e},dn.setJNLPBaseDir=function($e){},dn.inject=function(){function $e(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var dt="auto",qt=se.id,Xn,bn=!1,un=0;un<arguments.length;un++){var nn=arguments[un];typeof nn=="string"?(nn=nn.toLowerCase(),nn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?dt=nn:qt=arguments[un]):typeof nn=="boolean"?bn=nn:nn instanceof HTMLElement&&(Xn=nn)}xn();function xn(){if(!ve){setTimeout(xn,200);return}dt=tr(dt);var Pn=Xn||document.getElementById(qt);if(!Pn){console.log("possibly bug on ajax loading? ");return}if(dn.removeExistingApplet(Pn,!1),se.width===void 0&&Pn.clientWidth&&(se.width=Pn.clientWidth),se.height===void 0&&Pn.clientHeight&&(se.height=Pn.clientHeight),!(se.width&&se.height)&&dt==="html5"&&(delete se.width,delete se.height),xt=dt,dt==="screenshot")Rt(Pn,se);else{var De=!1;se.hasOwnProperty("playButton")&&se.playButton||se.hasOwnProperty("clickToLoad")&&se.clickToLoad?De=!0:se.hasOwnProperty("playButtonAutoDecide")&&se.playButtonAutoDecide&&(De=(!Ce()||$e())&&je()),De?(xt="screenshot",tn(Pn,se,bn,dt)):Jt(Pn,se,bn)}}};function Ce(){try{return window.self!==window.top}catch($e){return!0}}function je(){return se.hasOwnProperty("screenshotGenerator")&&se.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}dn.getViews=function(){return ae},dn.isJavaInstalled=function(){return!1};var Ue=function($e){var dt=function(un){var nn=JSON.parse(un),xn=function(ue){return ue.type=="G"||ue.type=="E"},Pn=nn.elements?nn.elements.filter(xn)[0]:nn;if(!Pn||!Pn.url){qt();return}se.fileName=Pn.url,Mt(Pn.settings||{}),ae.is3D=!0;var De="https://www.geogebra.org/images/";dn.setPreviewImage(Ee||Pn.previewUrl,De+"GeoGebra_loading.png",De+"applet_play.png"),$e()},qt=function(){se.onError&&se.onError(),Mn("Error: Fetching material (id "+se.material_id+") failed.",se)},Xn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",bn="/materials/"+se.material_id+"?scope=basic";ht("https://"+Xn+"/api/proxy.php?path="+encodeURIComponent(bn),dt,qt)};function Mt($e){var dt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(qt){$e[qt]=!!$e[qt]}),dt.forEach(function(qt){se[qt]===void 0&&$e[qt]!==void 0&&(se[qt]=$e[qt])}),se.showToolBarHelp===void 0&&(se.showToolBarHelp=se.showToolBar)}function ht($e,dt,qt){var Xn=new XMLHttpRequest;Xn.open("GET",$e),Xn.onload=function(){dt(Xn.responseText)},Xn.onerror=qt,Xn.send()}dn.isHTML5Installed=function(){return!0},dn.getLoadedAppletType=function(){return xt},dn.setPreviewImage=function($e,dt,qt){Ee=$e,at=dt,Yt=qt},dn.removeExistingApplet=function($e,dt){var qt;typeof $e=="string"&&($e=document.getElementById($e)),xt=null;var Xn=null;for(qt=0;qt<$e.childNodes.length;qt++){var bn=$e.childNodes[qt],un=bn.className;un==="applet_screenshot"?dt?(bn.style.display="block",xt="screenshot"):bn.style.display="none":un!=="applet_scaler prerender"&&($e.removeChild(bn),Xn=un&&un.indexOf("appletParameters")!=-1?bn.id:null,qt--)}var nn=se.id!==void 0?se.id:Xn,xn=window[nn];xn&&typeof xn.getBase64=="function"&&(xn.remove(),window[nn]=null)},dn.refreshHitPoints=function(){if(Se(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var $e=dn.getAppletObject();return $e&&typeof $e.recalculateEnvironments=="function"?($e.recalculateEnvironments(),!0):!1},dn.startAnimation=function(){var $e=dn.getAppletObject();return $e&&typeof $e.startAnimation=="function"?($e.startAnimation(),!0):!1},dn.stopAnimation=function(){var $e=dn.getAppletObject();return $e&&typeof $e.stopAnimation=="function"?($e.stopAnimation(),!0):!1},dn.getAppletObject=function(){var $e=se.id!==void 0?se.id:"ggbApplet";return window[$e]},dn.resize=function(){};var Ft=function($e,dt,qt){var Xn=document.createElement("param");Xn.setAttribute("name",dt),Xn.setAttribute("value",qt),$e.appendChild(Xn)},tt=function($e){return $e&&$e!=="false"},Jt=function($e,dt,qt){Se(pt)<=4.2&&(qt=!0);var Xn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==pt||ggbHTML5LoadedCodebaseIsWebSimple&&!rt)&&(Xn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var bn=document.createElement("div");bn.classList.add("appletParameters","notranslate");var un=dt.width,nn=dt.height;if(dt.disableAutoScale=dt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():dt.disableAutoScale,dt.width!==void 0)if(Se(pt)<=4.4)tt(dt.showToolBar)&&(dt.height-=7),tt(dt.showAlgebraInput)&&(dt.height-=37),dt.width<605&&tt(dt.showToolBar)&&(dt.width=605,un=605);else{var xn=100;(tt(dt.showToolBar)||tt(dt.showMenuBar))&&(dt.hasOwnProperty("customToolBar")&&(dt.customToolbar=dt.customToolBar),xn=tt(dt.showMenuBar)?245:155),un<xn&&(dt.width=xn,un=xn)}bn.style.border="none",bn.style.display="inline-block";for(var Pn in dt)dt.hasOwnProperty(Pn)&&Pn!=="appletOnLoad"&&bn.setAttribute("data-param-"+Pn,dt[Pn]);Xe&&bn.setAttribute("data-param-fontscssurl",Xe),dn.resize=function(){GGBAppletUtils.responsiveResize($e,dt)},window.addEventListener("resize",function($t){dn.resize()});var De=typeof dt.appletOnLoad=="function"?dt.appletOnLoad:function(){};if(!qt&&dt.width!==void 0){dt.hasOwnProperty("showSplash")||bn.setAttribute("data-param-showSplash","false");var ue=$e.querySelector(".applet_scaler.prerender"),ce=ue!==null;if(ce)var he=ue.querySelector(".ggb_preview");else{var he=Yn(un,nn,dt.borderColor,!1);ue=document.createElement("div"),ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.style.width=un+"px",ue.style.height=nn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ue,"66%"),Se(pt)>=5?(dt.appletOnLoad=function($t){var Je=$e.querySelector(".ggb_preview");Je&&Je.parentNode.removeChild(Je),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ue),window.GGBT_wsf_view&&$(window).trigger("resize"),De($t)},ce||ue.appendChild(he)):bn.appendChild(he),ue.appendChild(bn),ce||$e.appendChild(ue),setTimeout(function(){dn.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(bn),$e.appendChild(fe),dt.appletOnLoad=function($t){dn.resize(),De($t)}}function le($t,Je){Je&&typeof Je.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement($t,Je.appletOnLoad):renderGGBElement($t),Mn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Je)}function Me($t,Je){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:$t,params:Je}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Et){le(Et.article,Et.params)}),html5AppletsToProcess=null)},Se(pt)<5&&($t.className+=" geogebraweb")):le($t,Je)}if(Xn){scriptLoadStarted=!0;for(var Ve=0;Ve<bn.childNodes.length;Ve++){var ft=bn.childNodes[Ve].tagName;ft==="TABLE"&&(bn.removeChild(bn.childNodes[Ve]),Ve--)}if(ggbHTML5LoadedScript!==null){var Ht=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ht!=null&&Ht.parentNode.removeChild(Ht)}var Zt=document.createElement("script"),jt=function(){Me(bn,dt)};Zt.src=st+ct,ggbHTML5LoadedCodebaseIsWebSimple=rt,ggbHTML5LoadedCodebaseVersion=pt,ggbHTML5LoadedScript=Zt.src,Mn("GeoGebra HTML5 codebase loaded: '"+st+"'.",dt),!Le&&(!ke||ke=="5.0")?(rt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),jt()):st.requirejs?__webpack_require__.e(12).then(function(){var $t=[__webpack_require__(12)];jt.apply(null,$t)}.bind(this)).catch(__webpack_require__.oe):(Zt.onload=jt,$e.appendChild(Zt))}else Me(bn,dt);dt.height=nn,dt.width=un},Rt=function($e,dt,qt){var Xn=Yn(dt.width,dt.height,dt.borderColor,qt),bn=document.createElement("div");bn.style.position="relative",bn.style.display="block",bn.style.width=dt.width+"px",bn.style.height=dt.height+"px",bn.className="applet_screenshot applet_scaler"+(qt?" applet_screenshot_play":""),bn.appendChild(Xn);var un=GGBAppletUtils.getScale(dt,$e,qt);qt?($e.appendChild(Hn()),window.GGBT_wsf_view||($e.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(bn,"66%"),$e.appendChild(bn),un!==1&&!isNaN(un)&&(GGBAppletUtils.scaleElement(bn,un),bn.style.width=dt.width+"px",bn.style.height=dt.height+"px",bn.parentNode.style.width=dt.width*un+"px",bn.parentNode.style.height=dt.height*un+"px"),dn.resize=function(){yn($e,Xn,bn,qt)},window.addEventListener("resize",function(nn){dn.resize()}),dn.resize()};function yn($e,dt,qt,Xn){if($e.contains(dt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if($e.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition($e)}var bn=GGBAppletUtils.getScale(se,$e,Xn);qt.parentNode!==null&&(!isNaN(bn)&&bn!==1?(GGBAppletUtils.scaleElement(qt,bn),qt.parentNode.style.width=se.width*bn+"px",qt.parentNode.style.height=se.height*bn+"px"):(GGBAppletUtils.scaleElement(qt,1),qt.parentNode.style.width=se.width+"px",qt.parentNode.style.height=se.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter($e),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}dn.onExitFullscreen=function($e,dt){dt.appendChild($e)};var tn=function($e,dt,qt,Xn){Rt($e,dt,!0);for(var bn=function(){var xn=[];for(nn=0;nn<$e.childNodes.length;nn++)xn.push($e.childNodes[nn]);if(window.GGBT_wsf_view){var Pn=window.GGBT_wsf_view.renderFullScreen($e,dt.id),De=document.getElementById("fullscreencontainer"),ue=jQuery($e).find(".fullscreencontent");ue.length>0?(Pn.remove(),ue.attr("id","fullscreencontent").show(),jQuery(De).append(ue),window.dispatchEvent(new Event("resize"))):Jt(Pn,dt,!1),window.GGBT_wsf_view.launchFullScreen(De)}else xt=Xn,Jt($e,dt,!1);if(!window.GGBT_wsf_view)for(nn=0;nn<xn.length;nn++)$e.removeChild(xn[nn])},un=$e.getElementsByClassName("ggb_preview_play"),nn=0;nn<un.length;nn++)un[nn].addEventListener("click",bn,!1),un[nn].addEventListener("ontouchstart",bn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload($e),je()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Hn=function(){var $e=document.createElement("div");if($e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var dt='.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");}',qt=document.createElement("style");qt.styleSheet?qt.styleSheet.cssText=dt:qt.appendChild(document.createTextNode(dt)),document.getElementsByTagName("head")[0].appendChild(qt)}return $e},Yn=function($e,dt,qt,Xn){var bn=document.createElement("div");bn.className="ggb_preview",bn.style.position="absolute",bn.style.zIndex="90",bn.style.width=$e-2+"px",bn.style.height=dt-2+"px",bn.style.top="0px",bn.style.left="0px",bn.style.overflow="hidden",bn.style.backgroundColor="white";var un="lightgrey";qt!==void 0&&(qt==="none"?un="transparent":un=qt),bn.style.border="1px solid "+un;var nn=document.createElement("img");if(nn.style.position="relative",nn.style.zIndex="1000",nn.style.top="-1px",nn.style.left="-1px",Ee!==null&&nn.setAttribute("src",Ee),nn.style.opacity=.7,at!==null){var xn,Pn,De;if(!Xn){xn=document.createElement("img"),xn.style.position="absolute",xn.style.zIndex="1001",xn.style.opacity=1,nn.style.opacity=.3,Pn=360,Pn>$e/4*3&&(Pn=$e/4*3),De=Pn/5.8,xn.setAttribute("src",at),xn.setAttribute("width",Pn),xn.setAttribute("height",De);var ue=($e-Pn)/2,ce=(dt-De)/2;xn.style.left=ue+"px",xn.style.top=ce+"px",bn.appendChild(xn)}}return bn.appendChild(nn),bn},tr=function($e){return $e=$e.toLowerCase(),$e==="html5"||$e==="screenshot"?$e:"html5"},Qe=["web","webSimple","web3d","tablet","tablet3d","phone"],we=function($e,dt){if(pt=$e,dt){At(pt,!0);return}var qt=!Pe;if(qt){var Xn=Se(pt);!isNaN(Xn)&&Xn<4.4&&(qt=!1)}var bn,un;window.location.protocol.substr(0,4)==="http"?bn=window.location.protocol:bn="http:";var nn=pt.indexOf("//");nn>0?un=pt:nn===0?un=bn+pt:un="https://www.geogebra.org/apps/5.2.814.0/";for(var xn in Qe)if(pt.slice(Qe[xn].length*-1)===Qe[xn]||pt.slice((Qe[xn].length+1)*-1)===Qe[xn]+"/"){At(un,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qt&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!tt(se.showToolBar)&&!tt(se.showMenuBar)&&!tt(se.showAlgebraInput)&&!tt(se.enableRightClick)&&(!se.appName||se.appName=="classic")?un+="webSimple/":un+="web3d/",At(un,!1)},At=function($e,dt){if($e.requirejs){st=$e;return}$e.slice(-1)!=="/"&&($e+="/"),st=$e,dt===null&&(dt=$e.indexOf("http")===-1),Ne=dt,ct="web.nocache.js",rt=!1;var qt=st.split("/");qt.length>1&&(!dt&&qt[qt.length-2]==="webSimple"?(ct="webSimple.nocache.js",rt=!0):Qe.indexOf(qt[qt.length-2])>=0&&(ct=qt[qt.length-2]+".nocache.js")),qt=$e.split("/"),pt=qt[qt.length-3],pt.substr(0,4)==="test"?pt=pt.substr(4,1)+"."+pt.substr(5,1):(pt.substr(0,3)==="war"||pt.substr(0,4)==="beta")&&(pt="5.0");var Xn=parseFloat(pt);Xn!==NaN&&Xn<5&&$e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Xn+" is deprecated. Using version latest instead."),we("5.0",dt))},Mn=function($e,dt){window.console&&window.console.log&&(!dt||typeof dt.showLogging=="undefined"||dt.showLogging&&dt.showLogging!=="false")&&console.log($e)};se.material_id!==void 0?Ue(_t):_t();function _t(){var $e=en;ke!==null?$e=ke:parseFloat($e)<5&&($e="5.0"),we($e,!1),Le!==null&&At(Le,Ne),ve=!0}return dn},GGBAppletUtils=function(){"use strict";function dn(){return window.GGBT_wsf_edit!==void 0}function en(ve,ke){ke!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+ke+","+ke+")",ve.style.webkitTransform="scale("+ke+","+ke+")",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 se(ve,ke,Le,xe,me,Ie){var st=null;if(Ie!=null&&Ie!="")for(var Ne=ve.parentNode;Ne!=null;)if((" "+Ne.className+" ").indexOf(" "+Ie+" ")>-1){st=Ne;break}else Ne=Ne.parentNode;var xt=0,pt=0,ct=0,rt=0,Ee=0,at=0,Yt=0;if(st)xt=st.offsetWidth,pt=Math.max(xe?st.offsetWidth:0,st.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xt=Math.min(window.innerWidth,document.documentElement.clientWidth),pt=Math.min(window.innerHeight,document.documentElement.clientHeight),ct=xt):(xt=window.innerWidth,pt=window.innerHeight,ct=window.innerWidth),ve){var Xe=ve.getBoundingClientRect();Xe.left>0&&Xe.left<=xt&&(me===void 0||!me)&&(document.dir==="rtl"?(Ee=xt-Xe.width-Xe.left,at=ct<=480?10:30):(at=Xe.left,Ee=ct<=480?10:30),rt=at+Ee)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var lt=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(rt=40,Yt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(rt=0,Yt=40)}}return ve&&((Le===void 0||!Le)&&ke>0&&ke+rt<xt?xt=ke:xt-=rt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Le===void 0||!Le)&&(pt-=Yt)),{width:xt,height:pt}}function ae(ve,ke,Le,xe,me){if(ve.isScreenshoGenerator)return 1;var Ie=xe!==void 0&&xe,st=ve.noScaleMargin!=null&&ve.noScaleMargin,Ne=function(lt){return lt&&lt!=="false"},xt=Ne(ve.autoHeight),pt=se(ke,ve.width,Le,xt,Ie&&window.GGBT_wsf_view||st,me),ct=parseInt(pt.width),rt=ve.width,Ee=ve.height;if(rt===void 0){var at=ke.querySelector(".appletParameters");at&&(rt=at.offsetWidth,Ee=at.offsetHeight)}var Yt=ct/rt,Xe=Ie?1:pt.height/Ee;return Le!==void 0&&!Le&&(Yt=Math.min(1,Yt),Xe=Math.min(1,Xe)),Math.min(Yt,Xe)}function Pe(ve,ke,Le){var xe=1,me,Ie=!1;if(ve.hasOwnProperty("allowUpscale")&&(Ie=ve.allowUpscale),ve.hasOwnProperty("scale")&&(xe=parseFloat(ve.scale),(isNaN(xe)||xe===null||xe===0)&&(xe=1),xe>1&&(Ie=!0)),ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))me=ae(ve,ke,Ie,Le,ve.scaleContainerClass);else return xe;return Ie&&(!ve.hasOwnProperty("scale")||xe===1)?me:Math.min(xe,me)}function Re(ve){var ke=Math.min(window.innerWidth,document.documentElement.clientWidth),Le=Math.min(window.innerHeight,document.documentElement.clientHeight),xe=ve.getBoundingClientRect(),me=(ke-xe.width)/2,Ie=(Le-xe.height)/2;Ie<0&&(Ie=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(me<40?ve.style.left="40px":ve.style.left=me+"px",ve.style.top=Ie+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie<40?ve.style.top="40px":ve.style.top=Ie+"px",ve.style.left=me+"px")}function qe(ve,ke){var Le=ve.querySelector(".appletParameters");if(Le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!==Le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(Le.parentElement&&/fullscreen/.test(Le.parentElement.className))return;var xe=Pe(ke,ve);dn()&&Le.setAttribute("data-param-scale",xe);for(var me=null,Ie=0;Ie<ve.childNodes.length;Ie++)if(ve.childNodes[Ie].className!==void 0&&ve.childNodes[Ie].className.match(/^applet_scaler/)){me=ve.childNodes[Ie];break}if(me!==null&&me.querySelector(".noscale")!==null)return;var st=ke.id!==void 0?ke.id:"ggbApplet",Ne=window[st];(Ne==null||!Ne.recalculateEnvironments)&&me!==null&&!me.className.match(/fullscreen/)&&(me.parentNode.style.transform="",!isNaN(xe)&&xe!==1?(me.parentNode.style.width=ke.width*xe+"px",me.parentNode.style.height=ke.height*xe+"px",en(me,xe)):(en(me,1),me.parentNode.style.width=ke.width+"px",me.parentNode.style.height=ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Re(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Le).parents(".content-added-content"))}}return{responsiveResize:qe,isFlexibleWorksheetEditor:dn,positionCenter:Re,getScale:Pe,scaleElement:en}}();__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 dn=n.location.search;return dn.indexOf(J)!=-1||dn.indexOf(K)!=-1}function q(dn,en){}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(dn){var en=s[L].bindings;s[L].bindings=function(){for(var se=en?en():{},ae=dn[webModule.__softPermutationId],Pe=O;Pe<ae.length;Pe++){var Re=ae[Pe];se[Re[O]]=Re[P]}return se}};var t;function u(){return v(),t}function v(){if(!t){var dn=o.createElement(Q);if(dn.id=L,dn.style.cssText=R+S,dn.tabIndex=-1,o.body.appendChild(dn),t=dn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var en=document.compatMode==U?V:W;t.write(en+X),t.close()}}}function w(dn){function en(ae){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Re=Pe();if(Re){ae();return}function qe(){if(!Re){if(!Pe())return;Re=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,qe,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,qe,!1);var ve=setInterval(function(){qe()},$)}function se(ae){var Pe=u(),Re=Pe.body,qe=Pe.createElement(_);qe.language=ab,qe.crossOrigin=W,qe.src=ae,webModule.__errFn&&(qe.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Re.appendChild(qe)}en(function(){se(dn)})}webModule.__startLoadingFragment=function(dn){return C(dn)},webModule.__installRunAsyncCode=function(dn){var en=u(),se=en.body,ae=en.createElement(_);ae.language=ab,ae.text=dn,se.appendChild(ae),se.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(dn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(dn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(dn){var en=c[dn];return en==null?null:en},r=d,webModule.__errFn=e}function B(){function dn(ve){var ke=ve.lastIndexOf(rb);ke==-1&&(ke=ve.length);var Le=ve.indexOf(sb);Le==-1&&(Le=ve.length);var xe=ve.lastIndexOf(tb,Math.min(Le,ke));return xe>=O?ve.substring(O,xe+P):W}function en(ve){if(!ve.match(/^\w+:\/\//)){var ke=o.createElement(ub);ke.src=ve+vb,ve=dn(ke.src)}return ve}function se(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function ae(){for(var ve=o.getElementsByTagName(_),ke=O;ke<ve.length;++ke)if(ve[ke].src.indexOf(xb)!=-1)return dn(ve[ke].src);return W}function Pe(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function Re(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var qe=se();return qe==W&&(qe=ae()),qe==W&&(qe=Pe()),qe==W&&Re()&&(qe=dn(o.location.href)),qe=en(qe),qe}function C(dn){return dn.match(/^\//)||dn.match(/^[a-zA-Z]+:\/\//)?dn:webModule.__moduleBase+dn}function D(){var dn=[],en=O,se=[],ae=[];function Pe(ve){var ke=ae[ve](),Le=se[ve];if(ke in Le)return ke;var xe=[];for(var me in Le)xe[Le[me]]=me;throw r&&r(ve,xe,ke),null}if(__gwt_isKnownPropertyValue=function(ve,ke){return ke in se[ve]},webModule.__getPropMap=function(){var ve={};for(var ke in se)se.hasOwnProperty(ke)&&(ve[ke]=Pe(ke));return ve},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Re;try{Re=Cb;var qe=Re.indexOf(Db);qe!=-1&&(en=parseInt(Re.substring(qe+P),$),Re=Re.substring(O,qe))}catch(ve){}return webModule.__softPermutationId=en,C(Re+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})()},15476:function(dn,en,se){"use strict";se.d(en,{Ax:function(){return qe},Ds:function(){return ve},KI:function(){return Le},SI:function(){return Re},f1:function(){return Pe}});var ae=se(11320);function Pe(xe){let me=!0;if(xe.length>0){for(let Ie=0;Ie<xe.length;Ie++)if(xe[Ie].compile_success==0||!xe[Ie].compile_success){me=!1;break}}else me=!1;return me}function Re(xe,me=""){let Ie=[];for(let st=0;st<xe.length;st++){let Ne=xe[st],xt=me?`${me}/${Ne.name}`:`${Ne.name}`;Ie.push({title:Ne.name,type:Ne.type,isLeaf:Ne.type!=="tree",key:xt})}return Ie}function qe(xe,me,Ie){for(let st=0;st<xe.length;st++){let Ne=xe[st];if(Ne.key===me){Ne.children=Ie;break}Ne.children&&qe(Ne.children,me,Ie)}return xe}function ve(xe,me,Ie){let st;return function(){let Ne=this,xt=arguments,pt=function(){st=null,Ie||xe.apply(Ne,xt)},ct=Ie&&!st;clearTimeout(st),st=setTimeout(pt,me),ct&&xe.apply(Ne,xt)}}const ke=!0,Le=ae.Z.API_SERVER},63205:function(dn,en,se){"use strict";se.d(en,{Z:function(){return st}});var ae=se(67294),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Re=se(94184),qe=se.n(Re),ve=se(57953),ke=se(15979),Le=se(33170),xe=se(28706),me=(Ne,xt,pt)=>new Promise((ct,rt)=>{var Ee=Xe=>{try{Yt(pt.next(Xe))}catch(lt){rt(lt)}},at=Xe=>{try{Yt(pt.throw(Xe))}catch(lt){rt(lt)}},Yt=Xe=>Xe.done?ct(Xe.value):Promise.resolve(Xe.value).then(Ee,at);Yt((pt=pt.apply(Ne,xt)).next())}),st=({data:Ne,className:xt,fullWidth:pt,style:ct={},onClose:rt,onOk:Ee,showFullTools:at,noAssociationId:Yt})=>{const Xe=(0,ae.useRef)(null),lt=(0,ae.useRef)(null),Se=(0,ae.useRef)(null),Ce=(0,ae.useRef)(null),[je,Ue]=(0,ae.useState)(!1),[Mt,ht]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{Se.current||(Se.current=document.createElement("style"),document.head.appendChild(Se.current)),Ne!=null&&Ne.visible?(document.body.setAttribute("data-custom","y-hidden"),Se.current.innerHTML=" html { overflow-y: hidden; }",Ne!=null&&Ne.src&&Ft()):(document.body.removeAttribute("data-custom"),Se.current&&(document.head.removeChild(Se.current),Se.current=null))},[Ne==null?void 0:Ne.visible]);const Ft=()=>me(void 0,null,function*(){Ue(!0),ht("\u6B63\u5728\u52A0\u8F7D\u4E2D");const tn=yield(0,xe.ZJ)(Ne==null?void 0:Ne.src);Xe.current.src="",Xe.current.src=tn,Xe.current.onload=function(){yn()},Ue(!1),ht("")}),tt=()=>{document.body.removeAttribute("data-custom"),Se.current.innerHTML=" ",rt()},Jt=tn=>me(void 0,null,function*(){Ue(!0),ht("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Hn=yield(0,Le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ne.title,file:tn.dataUrl}});Hn!=null&&Hn.id&&!Yt?(yield(0,Le.ZP)(`/api/attachments/${Ne.id}/add_subitem.json`,{method:"post",body:{subitem_id:Hn==null?void 0:Hn.id,settings:JSON.stringify(tn.state)}})).status===0&&Ee():Hn!=null&&Hn.id&&Ee(Hn),document.body.removeAttribute("data-custom"),Se.current.innerHTML=" ",Ue(!1),ht("")}),Rt=()=>{const tn=document.querySelector('a[href="https://markerjs.com/"]');tn&&tn.parentNode&&(tn.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(Yn=>{const tr=document.querySelector(Yn.name);tr&&tr.setAttribute("title",Yn.title)})},yn=()=>{lt.current=new ke.hP(Xe.current),lt.current.targetRoot=Ce.current,lt.current.addEventListener("render",Jt),lt.current.addEventListener("beforeclose",tt),at&&(lt.current.availableMarkerTypes=lt.current.ALL_MARKER_TYPES,lt.current.uiStyleSettings.redoButtonVisible=!0,lt.current.uiStyleSettings.notesButtonVisible=!0,lt.current.uiStyleSettings.zoomButtonVisible=!0,lt.current.uiStyleSettings.zoomOutButtonVisible=!0,lt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=lt.current.uiStyleSettings,lt.current.show(),Ne!=null&&Ne.snapshotData&&lt.current.restoreState(Ne.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Rt()},300)};return ae.createElement(ae.Fragment,null,(Ne==null?void 0:Ne.visible)&&ae.createElement(ve.Z,{spinning:je,tip:Mt,style:{position:"absolute"}},ae.createElement("div",{ref:Ce,className:qe()(Pe.imageDimensions,xt,pt?Pe.fullWidth:""),style:ct},ae.createElement("img",{className:Pe.img,ref:Xe}))))}},36527:function(dn,en,se){"use strict";var ae=se(67294),Pe=se(71230),Re=se(15746),qe=se(66368),ve=se(71577),ke=se(35598),Le=se(71736),xe=se(84279),me=se(67294);const Ie=(0,ae.forwardRef)(({callback:st,showSaveButton:Ne,value:xt=""},pt)=>{const ct=(0,ae.useRef)(),rt=[{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 "}]}]}],Ee=[{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}`}]}]}],at=lt=>{ct.current.setValue(ct.current.getValue()+" "+lt.value+" ")},Yt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:me.createElement(Pe.Z,{className:Le.Z.lists,gutter:[10,10]},rt.map((lt,Se)=>me.createElement(Re.Z,{flex:"110px",className:Le.Z.item},me.createElement("div",null,me.createElement(ke.Z,{value:`$$${lt.value}$$`}),lt.name),me.createElement("div",{className:Le.Z.children},lt.children.map((Ce,je)=>me.createElement("div",{key:je},me.createElement("h1",null,Ce.name),me.createElement(Pe.Z,{gutter:[10,10]},Ce.data.map((Ue,Mt)=>me.createElement(Re.Z,{key:Mt,onClick:()=>at(Ue),className:Le.Z.diamond},me.createElement(ke.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:me.createElement(Pe.Z,{className:Le.Z.lists,gutter:[10,10]},Ee.map((lt,Se)=>me.createElement(Re.Z,{flex:"110px",className:Le.Z.item},me.createElement("div",null,me.createElement(ke.Z,{value:"`$$"+lt.value+"$$`"}),lt.name),me.createElement("div",{className:Le.Z.children},lt.children.map((Ce,je)=>me.createElement("div",{key:je},Ce.name&&me.createElement("h1",null,Ce.name),me.createElement(Pe.Z,{gutter:[10,10]},Ce.data.map((Ue,Mt)=>me.createElement(Re.Z,{key:Mt,onClick:()=>at(Ue),className:Le.Z.diamond},me.createElement(ke.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))}],Xe=()=>{var lt=document.createElement("div");lt.innerHTML=ct.current.getValue();var Se=lt.innerText;return st&&st(Se),Se};return(0,ae.useImperativeHandle)(pt,()=>({getData:Xe})),me.createElement("div",{className:Le.Z.mathWrap},me.createElement(qe.default,{defaultActiveKey:"1",items:Yt}),me.createElement("math-field",{locale:"zh_cn",className:Le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ct,style:{width:800,marginTop:30,fontSize:18}},xt||""),Ne&&me.createElement("div",{className:Le.Z.button},me.createElement(ve.ZP,{size:"large",onClick:Xe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});en.Z=Ie},41307:function(dn,en,se){"use strict";se.d(en,{h:function(){return ct},x:function(){return rt}});var ae=se(91304),Pe=se(52654),Re=se(35598),qe=se(67294),ve=Object.defineProperty,ke=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,st=(Ee,at,Yt)=>at in Ee?ve(Ee,at,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):Ee[at]=Yt,Ne=(Ee,at)=>{for(var Yt in at||(at={}))me.call(at,Yt)&&st(Ee,Yt,at[Yt]);if(xe)for(var Yt of xe(at))Ie.call(at,Yt)&&st(Ee,Yt,at[Yt]);return Ee},xt=(Ee,at)=>ke(Ee,Le(at)),pt=(Ee,at)=>{var Yt={};for(var Xe in Ee)me.call(Ee,Xe)&&at.indexOf(Xe)<0&&(Yt[Xe]=Ee[Xe]);if(Ee!=null&&xe)for(var Xe of xe(Ee))at.indexOf(Xe)<0&&Ie.call(Ee,Xe)&&(Yt[Xe]=Ee[Xe]);return Yt};const ct=Ee=>{var at=Ee,{value:Yt,onChange:Xe,scrollId:lt}=at,Se=pt(at,["value","onChange","scrollId"]);return qe.createElement("div",{id:lt||""},qe.createElement(ae.Z,xt(Ne({},Se),{defaultValue:Yt,onChange:(Ce,je)=>{je!=null&&je.length?Xe(Ce,je):Xe(Ce)}})))},rt=({value:Ee,onChange:at,placeholder:Yt,height:Xe=140,isEdit:lt,miniToolbar:Se,watch:Ce=!0})=>lt?qe.createElement(ae.Z,{watch:Ce,isFocus:!0,height:Xe||void 0,placeholder:Yt,defaultValue:Ee,onChange:at,miniToolbar:Se}):qe.createElement("div",{style:{cursor:"pointer"}},Ee?qe.createElement(Re.Z,{className:Pe.Z.inputBorder,value:Ee}):qe.createElement("div",{className:`${Pe.Z.inputBorder} ${Pe.Z.placeholder} inputBorderError`},Yt))},57444:function(dn,en,se){"use strict";se.d(en,{h:function(){return lt}});var ae=se(67294),Pe=se(11713),Re=se(22150),qe=se(71577),ve=se(4631),ke=se.n(ve),Le=se(71749),xe=se(30483),me=Object.defineProperty,Ie=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,ct=(Se,Ce,je)=>Ce in Se?me(Se,Ce,{enumerable:!0,configurable:!0,writable:!0,value:je}):Se[Ce]=je,rt=(Se,Ce)=>{for(var je in Ce||(Ce={}))xt.call(Ce,je)&&ct(Se,je,Ce[je]);if(Ne)for(var je of Ne(Ce))pt.call(Ce,je)&&ct(Se,je,Ce[je]);return Se},Ee=(Se,Ce)=>Ie(Se,st(Ce));const at=Pe.default.Option,Yt={labelCol:{span:4},wrapperCol:{span:20}},Xe={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"]};en.Z=({callback:Se,onCancel:Ce})=>{const[je,Ue]=(0,ae.useState)("python");function Mt(Ft){Ue(Xe[Ft][1])}function ht(Ft){Se(Ft)}return ae.createElement(Re.default,Ee(rt({},Yt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ht,style:{width:500}}),ae.createElement(Re.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Pe.default,{getPopupContainer:Ft=>Ft.parentNode,onChange:Mt},Object.keys(Xe).map(Ft=>ae.createElement(at,{key:Ft,value:Ft},Xe[Ft][0])))),ae.createElement(Re.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(lt,{mode:je})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(qe.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function lt({value:Se,onChange:Ce,mode:je,options:Ue={}}){const Mt=(0,ae.useRef)(),[ht,Ft]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(ht){let tt=function(Jt){const Rt=Jt.getValue();Ce&&Ce(Rt)};return ht.on("change",tt),()=>{ht.off("change",tt)}}},[ht,Ce]),(0,ae.useEffect)(()=>{ht&&ht.setOption("mode",je)},[ht,je]),(0,ae.useEffect)(()=>{ht&&(Se!==ht.getValue()||Se==="")&&setTimeout(()=>{ht.setValue(Se||"")},300)},[ht,Se]),(0,ae.useEffect)(()=>{if(Mt.current&&!ht){const tt=ke().fromTextArea(Mt.current,rt({mode:je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ue));Ft(tt)}},[Mt.current,ht]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:Mt}))}},91304:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Gn}});var ae=se(67294),Pe=se(4631),Re=se.n(Pe),qe=se(91033),ve=se(71749),ke=se(57341),Le=se(82801),xe=se(88386),me=se(49047),Ie=se(80785),st=se(35598),Ne=({value:jn="",className:nt,showTextOnly:mt,showLines:Bt,style:rn={}})=>{const Ze=(0,ae.useMemo)(()=>"",[jn]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Ze}}))},xt=se(67294),pt=Object.defineProperty,ct=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,Xe=(jn,nt,mt)=>nt in jn?pt(jn,nt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):jn[nt]=mt,lt=(jn,nt)=>{for(var mt in nt||(nt={}))at.call(nt,mt)&&Xe(jn,mt,nt[mt]);if(Ee)for(var mt of Ee(nt))Yt.call(nt,mt)&&Xe(jn,mt,nt[mt]);return jn},Se=(jn,nt)=>ct(jn,rt(nt));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:jn,title:nt,icon:mt,actionName:Bt,className:rn="",children:Ze}){function St(){jn(Bt)}return xt.createElement("a",{title:nt,className:rn,onClick:St},xt.createElement("i",{className:`${mt}`}),Ze)}var Ue=({watch:jn,showNullButton:nt,showNullProgramButton:mt,onActionCallback:Bt,fullScreen:rn,insertTemp:Ze,hidetoolBar:St,extraUse:Vt})=>{const Nt=[...Ce,{title:`${jn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${jn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xt.createElement("ul",{className:"markdown-toolbar-container"},!St&&Nt.map((cn,on)=>xt.createElement("li",{key:on},cn.actionName?xt.createElement(je,Se(lt({},cn),{onActionCallback:Bt})):xt.createElement("span",{className:"v-line"}))),nt?xt.createElement("li",null,xt.createElement(je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Bt},xt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,mt?xt.createElement(xt.Fragment,null,xt.createElement("li",null,xt.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Bt},xt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xt.createElement("li",null,xt.createElement(je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Bt},xt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ze&&xt.createElement("li",null,xt.createElement(je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ze}`,onActionCallback:Bt},xt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Vt&&xt.createElement("li",null,Vt),xt.createElement("li",{className:"btn-full-screen"},xt.createElement(je,{icon:`${rn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:rn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Bt})))},Mt=se(76621),ht=se(22150),Ft=se(69677),tt=se(71577),Jt=Object.defineProperty,Rt=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,Yn=Object.prototype.propertyIsEnumerable,tr=(jn,nt,mt)=>nt in jn?Jt(jn,nt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):jn[nt]=mt,Qe=(jn,nt)=>{for(var mt in nt||(nt={}))Hn.call(nt,mt)&&tr(jn,mt,nt[mt]);if(tn)for(var mt of tn(nt))Yn.call(nt,mt)&&tr(jn,mt,nt[mt]);return jn},we=(jn,nt)=>Rt(jn,yn(nt));const At={labelCol:{span:4},wrapperCol:{span:20}};var Mn=({callback:jn,onCancel:nt})=>{function mt(Bt){jn(Bt)}return ae.createElement(ht.default,we(Qe({},At),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:mt,style:{width:500}}),ae.createElement(ht.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Ft.default,null)),ae.createElement(ht.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Ft.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(tt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(tt.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))},_t=se(57444),$e=se(70859),dt=se(14446),qt=se(71230),Xn=se(63205),bn=se(67294),un=({callback:jn,onCancel:nt})=>{const mt=document.createElement("canvas"),Bt=mt.getContext("2d");mt.width=1e3,mt.height=800,Bt.fillStyle="#ffffff",Bt.fillRect(0,0,mt.width,mt.height);const rn=mt.toDataURL("image/png");return bn.createElement(dt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},bn.createElement(qt.Z,{style:{height:"100vh"}},bn.createElement(Xn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:rn,visible:!0,title:String(Date.now())},onOk:Ze=>{jn({src:Ze.url})},onClose:nt})))},nn=se(72565),xn=se(15746),Pn=se(2453),De={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ue=se(67294),he=(0,ae.forwardRef)(({onCancel:jn,editImgId:nt,callback:mt},Bt)=>{let rn=(0,ae.useRef)(),Ze=(0,ae.useRef)(),St=(0,ae.useRef)(),Vt=(0,ae.useRef)(!1);const Nt=(0,ae.useRef)(!1);console.log("ref:",Bt);const[cn,on]=(0,ae.useState)(0),[Kn,Hr]=(0,ae.useState)("100vh");return(0,ae.useEffect)(()=>{on(1);try{indexedDB.databases().then(hr=>{hr.forEach(or=>indexedDB.deleteDatabase(or.name))})}catch(hr){}},[]),(0,ae.useImperativeHandle)(Bt,()=>({setHeight:Hr})),ue.createElement("div",{ref:Nt,className:"body-overflow-initial"},ue.createElement(nn.Z,{width:"100vw",height:Kn,footer:null,closable:!0,placement:"bottom",open:!!cn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${De.drawerWrap}`,onClose:()=>{window.saveDrawData(hr=>{mt({src:`/api/attachments/${hr}`,id:hr})})},title:ue.createElement(qt.Z,{align:"middle"},ue.createElement(xn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ue.createElement(xn.Z,{onClick:()=>{Hr(Kn==="60px"?"100vh":"60px")}},ue.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ue.createElement(xn.Z,{onClick:()=>{window.saveDrawData(hr=>{if(hr===null){Pn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Pn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),mt({src:`/api/attachments/${hr}`,id:hr,disabledClose:!0})})}},ue.createElement(tt.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ue.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${nt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Ze})))}),fe=se(11320),le=se(78045),Me=se(31795);const Ve=le.ZP.Group,ft={margin:"0 8px"};var Ht=({callback:jn,onCancel:nt})=>{function mt(Bt){jn(Bt)}return ae.createElement(ht.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:mt},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:ft},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:ft},"\u884C\u6570"),ae.createElement(ht.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Me.Z,null)),ae.createElement("span",{style:ft},"\u5217\u6570"),ae.createElement(ht.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Me.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(ht.default.Item,{name:"align"},ae.createElement(Ve,null,ae.createElement(le.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(le.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(le.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(le.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(tt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(tt.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))},Zt=se(47897),jt=se(61016),$t=se.n(jt),Et=(0,ae.forwardRef)(({use3d:jn,width:nt,height:mt,callback:Bt,showSaveButton:rn},Ze)=>{const St=(0,ae.useRef)(),Vt=(0,ae.useRef)(),[Nt,cn]=(0,ae.useState)(!1),on=(0,ae.useRef)({id:St,appName:"graphing",width:nt||1e3,height:mt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Vt.current=new($t())(on.current,!0),window.onload=function(){Vt.current.inject("applet_container")}},[]);const Kn=()=>{var Hr=window.ggbApplet.getPNGBase64(1,!0,72);return Bt&&Bt(Hr),Hr};return(0,ae.useEffect)(()=>{on.current.appName=Nt?"3D":"graphing",Vt.current.inject("applet_container")},[Nt]),(0,ae.useEffect)(()=>{cn(jn)},[jn]),(0,ae.useImperativeHandle)(Ze,()=>({getImgData:Kn})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:St}),ae.createElement(qt.Z,{align:"middle"},ae.createElement(xn.Z,{flex:1},ae.createElement(Zt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Nt,onChange:Hr=>cn(Hr)})),ae.createElement(xn.Z,null,ae.createElement(tt.ZP,{size:"large",onClick:Kn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Lt=se(36527),Xt=se(25934);const wt="link",Nn="upload-image",et="add-flowchart",It="draw-image",gn="add-flowchart",hn="code-block",An="add-table",Vn="------------",mr={default:Vn,left:`:${Vn}`,center:`:${Vn}:`,right:`${Vn}:`};var ur=se(99914),dr=(jn,nt,mt)=>new Promise((Bt,rn)=>{var Ze=Nt=>{try{Vt(mt.next(Nt))}catch(cn){rn(cn)}},St=Nt=>{try{Vt(mt.throw(Nt))}catch(cn){rn(cn)}},Vt=Nt=>Nt.done?Bt(Nt.value):Promise.resolve(Nt.value).then(Ze,St);Vt((mt=mt.apply(jn,nt)).next())});function Fr(){}let nr=0;const _r=1e4,oi="\u2581",Wr="@\u2581\u2581@",xi="@\u2581@",ti=`
**\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`,Ct=["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 wn(jn){return/^\d+$/.test(jn)?`${jn}px`:jn}const an=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",vr={[an+"-B"]:"bold",[an+"-I"]:"italic"},lr={[wt]:"\u6DFB\u52A0\u94FE\u63A5",[hn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Nn]:"\u6DFB\u52A0\u56FE\u7247",[It]:"\u6DFB\u52A0\u753B\u56FE",[et]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[An]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Gn=({defaultValue:jn="",onChange:nt,width:mt="100%",height:Bt=400,miniToolbar:rn=!1,isFocus:Ze=!1,watch:St,insertTemp:Vt,mode:Nt="markdown",id:cn="markdown-editor-id",showResizeBar:on=!1,noStorage:Kn=!1,showNullButton:Hr=!1,showNullProgramButton:hr=!1,hidetoolBar:or=!1,fullScreen:Ar=!1,onBlur:Lr,onCMBeforeChange:kt,onFullScreen:gt,className:Dt="",disablePaste:En=!1,disabled:qn=!1,disabledFill:Cn=!1,placeholder:Dn="",values:In="",extraUse:Un,onAddBlank:kr})=>{const[pn,di]=(0,ae.useState)(null),[Qr,Fi]=(0,ae.useState)(jn),[Ni,Ci]=(0,ae.useState)(St),[Qi,Ei]=(0,ae.useState)(Ar),[pi,Hi]=(0,ae.useState)(""),[$i,ci]=(0,ae.useState)(0),[Mi,Ji]=(0,ae.useState)(Bt),[ca,na]=(0,ae.useState)(!1),hi=(0,ae.useRef)((0,Xt.Z)()),zt=(0,ae.useRef)(!1),Tt=(0,ae.useRef)(),[fn,Bn]=(0,ae.useState)(0),[Qn,Or]=(0,ae.useState)(0),Zr=(0,ae.useRef)(),Jr=(0,ae.useRef)(),ri=(0,ae.useRef)(),qr=(0,ae.useRef)(),fi=(0,ae.useRef)(),Ai=(0,ae.useRef)(),jr=()=>dr(void 0,null,function*(){var Wn;const Fn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:hi.current}});(Wn=Fn==null?void 0:Fn.attachments)!=null&&Wn.length&&(console.log("cm:",pn,Zr),Fn.attachments.map($n=>{$n.content_type.indexOf("image")>-1?pn.replaceSelection(`![,](/api/attachments/${$n.id}?type=${$n.content_type})`):$n.content_type.indexOf("video")>-1?pn.replaceSelection(`<video width="100%" controls src="${fe.Z.API_SERVER}/api/attachments/${data.id}"></video>`):$n.content_type.indexOf("pdf")>-1?pn.replaceSelection(`<a href="${fe.Z.API_SERVER}/api/attachments/${$n.id}?type=${$n.content_type}&disposition=inline" target="_blank">${$n.name}</a>`):pn.replaceSelection(`[${$n.name}](${fe.Z.API_SERVER}/api/attachments/${$n.id}?type=${$n.content_type})`)}))});(0,ae.useEffect)(()=>{const Wn=window.scrollY||window.pageYOffset;Fi(In),pn==null||pn.setValue(In),window.scrollTo(0,Wn)},[In]),(0,ae.useEffect)(()=>{gt==null||gt(Qi)},[Qi]),(0,ae.useEffect)(()=>{if(Zr.current){let Wn=function($n,rr){var Ir;if(En){rr.preventDefault();return}const gr=rr.clipboardData;if(gr){const fr=gr.types.toString(),wr=gr.items;if(fr==="Files"||gr.types.indexOf("Files")>-1){if(rr.preventDefault(),Nt=="stex")return;try{let Sr=wr[1];((Ir=wr[0])==null?void 0:Ir.kind)==="file"&&(Sr=wr[0]);const Nr=Sr.getAsFile(),Fe=Nr.name.split(".").pop();(0,$e.I)(Nr,We=>{var Wt,bt,sn;We.id?((Wt=Nr==null?void 0:Nr.type)==null?void 0:Wt.indexOf("image"))>-1?Fn.replaceSelection(`<img width="100%" src="/api/attachments/${We.id}?type=${We.content_type})" alt="" />`):((bt=Nr==null?void 0:Nr.type)==null?void 0:bt.indexOf("video"))>-1?Fn.replaceSelection(`<video width="100%" controls src="/api/attachments/${We.id}"></video>`):((sn=Nr==null?void 0:Nr.type)==null?void 0:sn.indexOf("pdf"))>-1?Fn.replaceSelection(`<a href="/api/attachments/${We.id}?type=${Nr.type}&disposition=inline" target="_blank">${Nr.name}</a>`):Ct.includes(Fe)?Fn.replaceSelection(`<a href="/api/attachments/${We.id}?type=office&disposition=inline" target="_blank">${Nr.name}</a>`):Fn.replaceSelection(`[${Nr.name}](/api/attachments/${We.id}?type=${We.content_type})`):(We==null?void 0:We.status)===401&&(Pn.ZP.warning((We==null?void 0:We.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Sr){Pn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Fn=Re().fromTextArea(Zr.current,{mode:Nt,lineNumbers:!rn,lineWrapping:!0,value:jn,autoCloseTags:!hr,autoCloseBrackets:!0});return Fn.on("keyup",function($n,rr){rr.keyCode===8&&($n.getValue()==""?Fn.setOption("placeholder",Dn):Fn.setOption("placeholder",null))}),Fn.on("keydown",function($n,rr){if(rr.keyCode===8){var Ir=Di($n);Ir&&rr.preventDefault()}}),Ze&&Fn.focus(),Fn.on("paste",Wn),Fn.on("dragleave",function($n,rr){Jr.current.classList.remove("mouse-hover-md")}),qn&&Fn.on("beforeChange",function($n,rr){(rr.origin==="paste"||rr.origin==="+input")&&rr.cancel()}),di(Fn),()=>{Fn.off("paste",Wn)}}},[]);const wi=(0,ae.useCallback)(()=>{if(Jr.current)try{}catch(Wn){console.log(Wn,"---- to set md editor body height")}},[Mi,Jr,Qi]);(0,ae.useEffect)(()=>{function Wn(){let Fn=new qe.Z($n=>{for(let rr of $n)(rr.target.offsetHeight>0||rr.target.offsetWidth>0)&&(wi(),pn.setSize("100%","100%"),pn.refresh())});return Fn.observe(Zr.current.parentElement),Fn}if(pn){const Fn=Wn();return()=>{var $n,rr;($n=Zr.current)!=null&&$n.parentElement&&Fn.unobserve((rr=Zr.current)==null?void 0:rr.parentElement)}}},[pn,wi]),(0,ae.useEffect)(()=>{if(pn){let Wn=[];for(const[Fn,$n]of Object.entries(vr)){let rr={[Fn]:()=>{Li($n)}};Wn.push(rr),pn.addKeyMap(rr)}return Tt.current=setInterval(()=>{zt.current&&jr()},4e3),()=>{clearInterval(Tt.current);for(let Fn of Wn)pn.removeKeyMap(Fn)}}},[pn]),(0,ae.useEffect)(()=>{Ar!==Qi&&Ei(Ar)},[Ar]),(0,ur.Z)(()=>{if(!Kn&&$i>0){let Wn=new Date().getTime(),Fn=window.sessionStorage.getItem(cn);Wn>=$i+_r&&(!Fn||Fn!==Qr)&&(window.sessionStorage.setItem(cn,Qr),na(!0))}},_r),(0,ae.useEffect)(()=>{Ci(St)},[pn,St]),(0,ae.useEffect)(()=>{pn&&Ze&&pn.focus()},[pn,Ze]),(0,ae.useEffect)(()=>{if(Ni&&pn){let Wn=function($n){let rr=$n.target;if(qr.current){let Ir=rr.scrollTop/rr.scrollHeight;qr.current.scrollTop=qr.current.scrollHeight*Ir}};const Fn=pn.getScrollerElement();return Fn.addEventListener("scroll",Wn),()=>{Fn.removeEventListener("scroll",Wn)}}},[pn,Ni]),(0,ae.useEffect)(()=>{if(pn&&kt){let Wn=function(Fn,$n){kt(Fn,$n)};return pn.on("beforeChange",Wn),()=>{pn.off("beforeChange",Wn)}}},[pn,kt]),(0,ae.useEffect)(()=>{if(pn&&Lr){let Wn=function(){Lr(pn.getValue())};return pn.on("blur",Wn),()=>{pn.off("blur",Wn)}}},[pn,Lr]);function Di(Wn,Fn){var $n=Wn.getDoc(),rr=$n.getCursor(),Ir=$n.getLine(rr.line),gr=Ir.charAt(rr.ch-1),fr=Ir.lastIndexOf("@\u2581@",rr.ch),wr=Ir.lastIndexOf("@\u2581\u2581@",rr.ch),Sr=fr>wr?fr:wr,Nr=fr>wr?3:4;if(Wr.indexOf(gr)===-1)return null;if(console.log("change1:",Fn,Wn,Ir,rr,Sr,fr,wr,gr),Sr>=0&&rr.ch-Sr<5){var Fe=Sr+Nr;return $n.replaceRange("",{line:rr.line,ch:Sr},{line:rr.line,ch:Fe}),{line:rr.line,ch:Fe}}return null}(0,ae.useEffect)(()=>{if(pn){let Wn=function(Fn,$n){const rr=Fn.getValue();Fi(rr),ci(new Date().getTime()),Fn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),nt&&(hr?nt(rr,vn(rr)):nt(rr))};return pn.on("change",Wn),()=>{pn.off("change",Wn)}}},[pn,nt]),(0,ae.useEffect)(()=>{if(pn)if(jn==null)pn.setValue(""),Fi("");else{const Wn=window.scrollY||window.pageYOffset;jn!==pn.getValue()&&(pn.setValue(jn),Fi(jn),pn.setCursor(qn?1:pn.lineCount(),0),window.scrollTo(0,Wn))}},[pn,jn]);const Li=(0,ae.useCallback)(Wn=>{const Fn=pn.getCursor(),$n=pn.getSelection();let rr=$n.split(`
`);switch(Wn){case"bold":return pn.replaceSelection("**"+$n+"**"),$n===""&&pn.setCursor(Fn.line,Fn.ch+2),pn.focus();case"italic":return pn.replaceSelection("*"+$n+"*"),$n===""&&pn.setCursor(Fn.line,Fn.ch+1),pn.focus();case"code":return pn.replaceSelection("`"+$n+"`"),$n===""&&pn.setCursor(Fn.line,Fn.ch+1),pn.focus();case"inline-latex":return Hi("inline-latex"),pn.focus();case"latex":return pn.replaceSelection("```latex\n"+$n+"\n```"),pn.setCursor(Fn.line+1,$n.length+1),pn.focus();case"line-break":return pn.replaceSelection(`<br/>
`),pn.focus();case"list-ul":return $n===""?pn.replaceSelection("- "+$n):pn.replaceSelection(rr.map(Ir=>Ir===""?"":`- ${Ir}`).join(`
`)),pn.focus();case"list-ol":return $n===""?pn.replaceSelection("1. "+$n):pn.replaceSelection(rr.map((Ir,gr)=>Ir===""?"":`${gr+1}. ${Ir}`).join(`
`)),pn.focus();case"add-null-ch":kr==null||kr();return;case"add-signal":return $n===""&&pn.setCursor(Fn.line,Fn.ch),pn.replaceSelection(xi),pn.focus();case"add-multiple":return $n===""&&pn.setCursor(Fn.line,Fn.ch),pn.replaceSelection(Wr),pn.focus();case"inster-template-1":return $n===""&&pn.setCursor(Fn.line,Fn.ch),pn.replaceSelection(ti),pn.focus();case"eraser":return pn.setValue(""),pn.focus();case"trigger-watch":return Ci(!Ni),pn.focus();case"trigger-full-screen":return Ei(!Qi),pn.focus();case wt:Hi(wt);return;case hn:Hi(hn);return;case Nn:Hi(Nn);return;case It:Hi(It);return;case"maths-latex":Hi("maths-latex");return;case et:fi.current="",sessionStorage.removeItem("file_id"),Hi(et);return;case An:Hi(An);return;default:throw new Error}},[pn,Ni,Qi]),Te=(0,ae.useCallback)((Wn,Fn)=>{var $n,rr,Ir,gr,fr,wr;Hi("");const{src:Sr,alt:Nr,id:Fe}=Wn||{};switch(pi){case wt:const{title:Ln,link:zn}=Wn;return pn.replaceSelection(`[${Ln}](${zn})`),pn.focus();case hn:const{language:ar,content:ot}=Wn;return pn.replaceSelection(["```"+ar,ot,"```"].join(`
`)),pn.focus();case"maths-latex":for(var We=atob(Wn),Wt=new Uint8Array(We.length),bt=0;bt<We.length;bt++)Wt[bt]=We.charCodeAt(bt);var sn=new Blob([Wt],{type:"image/png"});(0,$e.I)(sn,sr=>{sr.id?pn.replaceSelection(`![,](/api/attachments/${sr.id}?type=${sr.content_type})`):(sr==null?void 0:sr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":pn.replaceSelection("`$$"+Wn+"$$`");break;case gn:if(!Fe)return;pn.focus(),pn.getValue().indexOf(Sr)===-1?pn.replaceSelection(`<center><img id="${Fe}" width="80%" src="${Sr}" class="draw-flowchart" alt="${Nr||""}" /></center>`):document.getElementById(Fe).src=fe.Z.API_SERVER+Sr+"?t="+Date.now();try{setTimeout(()=>{Lr(pn.getValue())},100)}catch(sr){}break;case Nn:case It:const Ye=Fn,yt=(Ir=(rr=($n=Ye==null?void 0:Ye.name)==null?void 0:$n.split("."))==null?void 0:rr.pop)==null?void 0:Ir.call(rr);return((gr=Ye==null?void 0:Ye.type)==null?void 0:gr.indexOf("image"))>-1||!(Ye!=null&&Ye.type)?Ye!=null&&Ye.align||Ye!=null&&Ye.width?pn.replaceSelection(`<p style="text-align:${Ye.align||"initial"}"><img width="${Ye.width?Ye.width+"%":"initial"}" src="${Sr}" alt="${Nr||""}" /></p>`):pn.replaceSelection(`<img width="100%" src="${Sr}" alt="${Nr||""}" />`):((fr=Ye==null?void 0:Ye.type)==null?void 0:fr.indexOf("video"))>-1?pn.replaceSelection(`<video width="100%" controls src="${Sr}"></video>`):((wr=Ye==null?void 0:Ye.type)==null?void 0:wr.indexOf("pdf"))>-1?pn.replaceSelection(`<a href="${Sr}?type=${Ye.type}&disposition=inline" target="_blank">${Ye.name}</a>`):Ct.includes(yt)?pn.replaceSelection(`<a href="${Sr}?type=office&disposition=inline" target="_blank">${Ye.name}</a>`):pn.replaceSelection(`[${Ye.name}](${Sr})`),pn.focus();case An:const{row:Qt,col:_n,align:mn}=Wn;let ln=`
`;for(let sr=0;sr<Qt;sr++){let ir=[],xr=[];for(let er=0;er<_n;er++)sr===1&&xr.push(mr[mn]),ir.push(" ");sr===1&&(ln+=`| ${xr.join(" | ")} |
`),ln+=`| ${ir.join(_n===1?"":" | ")} |
`}return pn.replaceSelection(ln+`
`),pn.focus();default:throw new Error}},[pn,pi]),He=(0,ae.useMemo)(()=>{switch(pi){case wt:return ae.createElement(Mn,{callback:Te,onCancel:Ke});case hn:return ae.createElement(_t.Z,{callback:Te,onCancel:Ke});case Nn:return ae.createElement($e.Z,{callback:Te,onCancel:Ke});case et:return ae.createElement(he,{editImgId:fi.current,callback:Te,onCancel:Ke});case An:return ae.createElement(Ht,{callback:Te,onCancel:Ke});case"maths-latex":return ae.createElement(Et,{showSaveButton:!0,callback:Te});case"inline-latex":return ae.createElement(Lt.Z,{showSaveButton:!0,callback:Te});default:return null}},[pi]);function Ke(){Hi("")}(0,ae.useEffect)(()=>{if(ri.current){let Wn=function(fr){Ir=!0,gr=fr.pageY},Fn=function(){Ir=!1},$n=function(fr){if(Ir){let wr=fr.pageY-gr;wr<0&&(wr=0),wr>300&&(wr=300);let Sr=Bt+wr+"px";Ji(Sr)}},rr=ri.current,Ir=!1,gr=0;return rr.addEventListener("mousedown",Wn),document.addEventListener("mousemove",$n),document.addEventListener("mouseup",Fn),()=>{rr.removeEventListener("mousedown",Wn),document.removeEventListener("mousemove",$n),document.removeEventListener("mouseup",Fn)}}},[pn,ri]),(0,ae.useEffect)(()=>{Ji(Bt)},[Bt]);const Ge=wn(mt),ut=wn(Mi),vt={width:Ge,height:ut},Kt=(0,ae.useMemo)(()=>{if($i){let Wn=new Date($i),Fn=Wn.getHours(),$n=Wn.getMinutes(),rr=Wn.getSeconds();return Fn=Fn<10?"0"+Fn:Fn,$n=$n<10?"0"+$n:$n,rr=rr<10?"0"+rr:rr,`${Fn}:${$n}:${rr}`}return 0},[$i]),vn=Wn=>{const Fn=[];if(hr){let $n=-1;Wn=Wn.replace(/(@▁▁@|@▁@)/g,function(rr,Ir,gr){Fn.push({multiLine:rr!==xi})})}return Fn};function kn(){window.sessionStorage.removeItem(cn),na(!1),ci(0)}function yr(){na(!1),ci(0),pn.setValue(window.sessionStorage.getItem(cn))}(0,ae.useEffect)(()=>{lr[pi]&&pi!==It&&pi!==et&&setTimeout(()=>{const Wn=document.getElementsByClassName("markdown-popup-form")[0],Fn=window.innerWidth/2-Wn.offsetWidth/2,$n=window.innerHeight/2-Wn.offsetHeight/2;Bn(Fn),Or($n)},0)},[pi]);const Pr=Wn=>{Wn.preventDefault();const Fn=Wn.clientX-fn,$n=Wn.clientY-Qn;document.body.onmousemove=rr=>{let Ir=rr.clientX-Fn,gr=rr.clientY-$n;const fr=document.getElementsByClassName("markdown-popup-form")[0],wr=window.innerWidth-fr.offsetWidth,Sr=window.innerHeight-fr.offsetHeight;Ir=Math.max(0,Math.min(Ir,wr)),gr=Math.max(0,Math.min(gr,Sr)),cr(rr.clientX,rr.clientY,Fn,$n)&&(Bn(Ir),Or(gr))},document.body.onmouseup=function(){document.body.onmousemove=null}},cr=(Wn,Fn,$n,rr)=>{const Ir=document.body.clientHeight,gr=document.body.clientWidth;return Wn<20&&$n>Wn||Wn>gr-20&&$n<Wn||Fn<20&&rr>Fn||Fn>Ir-20&&rr<Fn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:Jr},ae.createElement("div",{className:`markdown-editor-container ${Dt} ${Ni?"on-preview":""} ${rn?"mini":""} ${Qi?"full-screen":""}`,style:vt},ae.createElement(Ue,{insertTemp:Vt,watch:Ni,fullScreen:Qi,showNullButton:Hr,showNullProgramButton:hr,onActionCallback:Li,hidetoolBar:or,extraUse:Un}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Zr,placeholder:Dn})),Ni?ae.createElement("div",{ref:qr,className:"preview-container"},Nt==="stex"&&ae.createElement(Ne,{value:Qr}),Nt!=="stex"&&ae.createElement(st.Z,{edit:!0,disabledFill:Cn,showProgramFill:hr,value:Qr,openEditor:Wn=>{var Fn;fi.current=Wn,(Fn=Ai.current)==null||Fn.setHeight("100vh"),setTimeout(()=>{Hi("add-flowchart")},150)}})):null))),on?ae.createElement("a",{ref:ri,className:"editor-resize"}):null,pi===It&&ae.createElement(un,{callback:Te,onCancel:Ke}),pi===et&&ae.createElement(he,{ref:Ai,editImgId:fi.current,callback:Te,onCancel:Ke}),ae.createElement(Mt.Z,null,lr[pi]&&pi!==It&&pi!==et?ae.createElement(dt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:fn,top:Qn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:Pr},lr[pi]),open:!0,onCancel:Ke,footer:null,destroyOnClose:!0,width:pi===et?"1200px":null,height:pi===et?"80vh":null,className:"markdown-popup-form"},He):null))}},70859:function(dn,en,se){"use strict";se.d(en,{Z:function(){return je},I:function(){return Mt}});var ae=se(22150),Pe=se(2453),Re=se(69677),qe=se(93421),ve=se(31795),ke=se(78045),Le=se(71577),xe=se(15476),me=se(67294),Ie=se(52262),st=se(67294),Ne=Object.defineProperty,xt=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,at=(ht,Ft,tt)=>Ft in ht?Ne(ht,Ft,{enumerable:!0,configurable:!0,writable:!0,value:tt}):ht[Ft]=tt,Yt=(ht,Ft)=>{for(var tt in Ft||(Ft={}))rt.call(Ft,tt)&&at(ht,tt,Ft[tt]);if(ct)for(var tt of ct(Ft))Ee.call(Ft,tt)&&at(ht,tt,Ft[tt]);return ht},Xe=(ht,Ft)=>xt(ht,pt(Ft));const{useForm:lt}=ae.default,Se={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var je=({callback:ht,onCancel:Ft})=>{const[tt]=lt();let Jt=(0,me.useRef)();function Rt(Hn){Jt.current.width=tt.getFieldValue("width"),Jt.current.align=tt.getFieldValue("align"),ht(Hn,Jt.current)}function yn(Hn,Yn){if(Hn.status===-1){Pe.ZP.error(Hn.message);return}tt.setFieldsValue({src:`/api/attachments/${Hn.id}`,type:Yn.type})}function tn(Hn){let Yn=Hn.target.files[0];Jt.current=Yn,Mt(Yn,yn)}return st.createElement(ae.default,Xe(Yt({form:tt},Ce),{className:"upload-image-panel",onFinish:Rt,style:{width:470,overflow:"hidden"}}),st.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},st.createElement("div",{className:"flex-container"},st.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},st.createElement(Re.default,{style:Se})),st.createElement(Ue,{onFileChange:tn}))),st.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},st.createElement(Re.default,{style:{width:264}})),st.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},st.createElement(qe.Z,null,st.createElement(ae.default.Item,{name:"width",style:{margin:0}},st.createElement(ve.Z,{style:{width:264}})),st.createElement("span",{className:"ml8"},"%"))),st.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},st.createElement(ke.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"}]})),st.createElement("aside",null,st.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},st.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),st.createElement(Le.ZP,{type:"default",onClick:Ft},"\u53D6\u6D88"))))};function Ue({onFileChange:ht}){return st.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",st.createElement("input",{type:"file",onChange:ht}))}function Mt(ht,Ft){if(!ht)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ie.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let tt=new FormData;tt.append("editormd-image-file",ht),tt.append("file_param_name","editormd-image-file"),tt.append("byxhr","true");var Jt=new window.XMLHttpRequest;Jt.withCredentials=!0,Jt.addEventListener("load",function(Rt){Ft(JSON.parse(Rt.target.responseText),ht)},!1),Jt.addEventListener("error",function(Rt){console.error(Rt)},!1),Jt.open("POST",`${xe.KI}/api/attachments.json`),Jt.send(tt)}},76621:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Re}});var ae=se(67294),Pe=se(73935);class Re extends ae.Component{constructor(ve){super(ve);const ke=window.document;this.node=ke.createElement("div"),ke.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,Pe.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(dn,en,se){"use strict";se.d(en,{i:function(){return Ce},Z:function(){return Ue}});var ae={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},Pe=se(57953),Re=se(83062),qe=se(38703),ve=se(94184),ke=se.n(ve),Le=se(28706),xe=se(26194),me=se(52262),Ie=se(79005),st=se(20345),Ne=se(77882),xt=se(31081),pt=se(75309),ct=se(71979),rt=se(47558),Ee=se(60345),at=se(66832),Yt=se(96593),Xe=se(19664),lt=se(91833),Se=se(67294);const Ce=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ie,swimg:st},{name:"101\u8BA1\u5212",ptimg:Ne,swimg:xt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:pt,swimg:ct},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:rt,swimg:Ee},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:at,swimg:Yt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Xe,swimg:lt}];var Ue=({className:Mt,dataSource:ht=[],col:Ft=4,right:tt,bottom:Jt=23,precision:Rt=0,wrapWidth:yn=1200,trackEventItems:tn,loading:Hn,onRemove:Yn=()=>{},isCurrent:tr=!0,showAlias:Qe=!1,showProgress:we=!1})=>{const At=Math.floor((yn-(Ft-1)*tt)/Ft),Mn=[{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(_t=>(window.ENV==="build"&&(_t.ptimg=`/react/build${_t.ptimg}`,_t.swimg=`/react/build${_t.swimg}`),_t));return Se.createElement(Pe.Z,{spinning:Hn},Se.createElement("div",{className:ke()(ae.list,Mt)},!!(ht!=null&&ht.length)&&(ht==null?void 0:ht.map((_t,$e)=>{var dt,qt,Xn,bn,un,nn;const{name:xn,id:Pn,identifier:De,featured:ue,school_name:ce,image_url:he,excellent:fe,is_plan:le}=_t;return Se.createElement("div",{key:Pn,className:tr&&we?ae.wrapisCurrent:ae.wrap,style:{width:At,marginRight:(1+$e)%Ft===0?0:tt+Rt,marginBottom:Jt}},Se.createElement("a",{className:ae.li,onClick:Me=>{Me.preventDefault(),Me.stopPropagation(),tn&&(0,Le.L9)([tn]),(0,Le.xg)(`/paths/${De}`)}},Se.createElement("div",{className:ae.img},Se.createElement("img",{className:ae.cover,src:`${he}`}),tr&&(0,me.bg)()&&(_t==null?void 0:_t.studying)&&Se.createElement("div",{className:`${ae.movebq} user-path-items`,onClick:Me=>{Me.stopPropagation(),Yn(_t)}},Se.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Se.createElement("span",{className:"c-red"},"\u79FB\u9664")),(dt=_t==null?void 0:_t.subject_tags)==null?void 0:dt.map((Me,Ve)=>{var ft,Ht;if(Ve===0){const jt=(ft=Mn.find($t=>$t.name==Me))==null?void 0:ft.swimg;return Se.createElement("img",{className:ae.sign,src:jt,style:{left:"-4px"}})}const Zt=(Ht=Mn.find(jt=>jt.name==Me))==null?void 0:Ht.ptimg;return Se.createElement("img",{className:ae.sign,src:Zt,style:{left:`${48+52*(Ve-1)+2*Ve}px`}})}),Se.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(_t==null?void 0:_t.excellent)&&Se.createElement("div",{className:ae.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Se.createElement("div",{className:ae.name},Se.createElement(Re.Z,{title:Qe&&(_t!=null&&_t.excellent_alias_name)?Se.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${xn}`,Se.createElement("br",null),Se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${_t==null?void 0:_t.excellent_alias_name}`)):xn},Se.createElement("span",{className:ae.e},Qe&&(_t==null?void 0:_t.excellent_alias_name)||xn))),tr&&we&&((qt=_t==null?void 0:_t.progress)==null?void 0:qt.all_score)!=0&&Se.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Se.createElement(qe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Xn=_t==null?void 0:_t.progress)==null?void 0:Xn.my_score)/((bn=_t==null?void 0:_t.progress)==null?void 0:bn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(un=_t==null?void 0:_t.progress)==null?void 0:un.my_score,"/",(nn=_t==null?void 0:_t.progress)==null?void 0:nn.all_score),(!tr||!we)&&Se.createElement("div",{className:ae.tags},Se.createElement("div",null,Se.createElement(Re.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Se.createElement("span",null,_t.stages_count))),Se.createElement(Re.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Se.createElement("span",null,_t.members_count)))))))})),!ht.length&&Se.createElement(xe.Z,null)))}},80150:function(dn,en,se){"use strict";se.d(en,{jL:function(){return ve},w9:function(){return lr},vv:function(){return St},dN:function(){return mt},QD:function(){return Bn},cQ:function(){return Ve.Z},vg:function(){return Ct},Oz:function(){return nr},op:function(){return ca},O5:function(){return vn},_b:function(){return qr},t7:function(){return Jt},tT:function(){return tn},Gi:function(){return gt},YG:function(){return on},Ed:function(){return Lr},kT:function(){return hr},qp:function(){return Ee},Um:function(){return Ce},K3:function(){return Xe},vr:function(){return Zr},qE:function(){return zt},Je:function(){return tr},wb:function(){return nn},rC:function(){return Me},lB:function(){return De},cq:function(){return In},kO:function(){return di},tp:function(){return Mt},Si:function(){return Pr},k8:function(){return ar},Du:function(){return fr}});var ae=se(67294),Pe={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"},Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3B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eCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ve=({dataSource:ot=[],img:Ye,imgWidth:yt=346,title:Qt,sunTitle:_n,bannerExtraContent:mn})=>ae.createElement("div",{className:Pe.banner},ae.createElement("div",{className:Pe.content},ae.createElement("aside",null,ae.createElement("p",null,ae.createElement("b",null,Qt),ae.createElement("span",null,_n)),ot.length>0&&ae.createElement("div",{className:Pe.btns},ot.map((ln,sr)=>ae.createElement("div",{key:sr,onClick:ln.click},ln.name,ln.sign?ae.createElement("img",{src:Re,width:39}):null))),mn),Ye&&ae.createElement("img",{style:{marginTop:33,marginRight:38},src:Ye,width:yt}))),ke={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"},Le=se(94184),xe=se.n(Le),me=se(96486),Ie=Object.defineProperty,st=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,pt=(ot,Ye,yt)=>Ye in ot?Ie(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,ct=(ot,Ye)=>{for(var yt in Ye||(Ye={}))Ne.call(Ye,yt)&&pt(ot,yt,Ye[yt]);if(st)for(var yt of st(Ye))xt.call(Ye,yt)&&pt(ot,yt,Ye[yt]);return ot},Ee=({dataSource:ot=[],value:Ye,onChange:yt,onTitleChange:Qt,className:_n,title:mn,titleWidth:ln=41,style:sr={},fontColor:ir="#6A7283",showCount:xr,classNameActive:er,styleItem:Tn={}})=>{const[Er,zr]=(0,ae.useState)(0),[Br,Cr]=(0,ae.useState)(!1),Dr=(0,ae.useRef)(null),ui=(0,ae.useRef)(null);return(0,ae.useEffect)(()=>{var ei;ot.length!==0&&(((ei=Dr==null?void 0:Dr.current)==null?void 0:ei.clientHeight)>97?zr(1):zr(0)),ot.length===0&&zr(0),Cr(!1)},[ot]),ae.createElement("div",{className:xe()(ke.row,_n),style:sr},ae.createElement("div",{onClick:(0,me.throttle)(()=>Qt==null?void 0:Qt(),2e3),style:{width:ln,marginTop:Br?12:4},className:`${ke.title} ${Qt?"current":""}`},mn),ae.createElement("div",{className:Br?`${ke.tagsWrap} ${ke.tagsBorderWrap}`:ke.tagsWrap},ae.createElement("div",{className:ke.bar,ref:ui,style:Er>0?{height:Er===1?97:"auto",overflow:Er===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ae.createElement("div",{className:ke.tag,ref:Dr},ot==null?void 0:ot.map(ei=>ae.createElement("span",{onClick:()=>yt(ei.id),key:ei.id,style:ct(ct({color:ir},Tn),(ei==null?void 0:ei.style)||{}),className:Ye===ei.id?xe()(er||ke.active,ei.classNameActive):""},ae.createElement("span",{title:ei.name,className:ke.name},ei.name),!!xr&&ae.createElement("span",{className:ke.num},ei.count))))),!!Er&&ae.createElement(ae.Fragment,null,Er===1?ae.createElement("div",{onClick:()=>{var ei;zr(2),((ei=Dr==null?void 0:Dr.current)==null?void 0:ei.clientHeight)>245?Cr(!0):Cr(!1)},className:ke.action},"\u5C55\u5F00",ae.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ae.createElement("div",{onClick:()=>{ui.current.scrollTop=0,zr(1),Cr(!1)},className:ke.action},"\u6536\u8D77",ae.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},at={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"},Xe=({dataSource:ot=[],value:Ye,onChange:yt,onTitleChange:Qt,className:_n,title:mn,titleWidth:ln=41,style:sr={},fontColor:ir="#6A7283",showCount:xr,expand:er=!0})=>{const[Tn,Er]=(0,ae.useState)(0),[zr,Br]=(0,ae.useState)(!1),Cr=(0,ae.useRef)(null),Dr=(0,ae.useRef)(null),[ui,ei]=(0,ae.useState)(er);return ae.createElement("div",{className:xe()(at.row,_n),style:sr},ae.createElement("div",{className:"flex item-center justify-between"},ae.createElement("div",{onClick:(0,me.throttle)(()=>Qt==null?void 0:Qt(),2e3),style:{width:ln,marginTop:zr?12:4},className:`${at.title} ${Qt?"current":""}`},mn),ae.createElement("i",{className:`iconfont ${ui?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:ui?8:10},onClick:()=>ei(!ui)})),ui&&ae.createElement("div",{className:zr?`${at.tagsWrap} ${at.tagsBorderWrap}`:at.tagsWrap},ae.createElement("div",{className:at.fenge}),ae.createElement("div",{className:at.bar,ref:Dr},ae.createElement("div",{className:at.tag,ref:Cr},ot==null?void 0:ot.map(ii=>ae.createElement("span",{onClick:()=>yt(ii.id),key:ii.id,style:{color:ir},className:Ye===ii.id?at.active:""},ae.createElement("span",{title:ii.name,className:at.name},ii.name),!!xr&&ae.createElement("span",{className:at.num},ii.count)))))))},lt={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:ot=[],value:Ye,onChange:yt,onTitleChange:Qt,className:_n,title:mn,titleWidth:ln=41,style:sr={},fontColor:ir="#fff",showCount:xr,expand:er=!0})=>{const[Tn,Er]=(0,ae.useState)(0),[zr,Br]=(0,ae.useState)(!1),Cr=(0,ae.useRef)(null),Dr=(0,ae.useRef)(null),[ui,ei]=(0,ae.useState)(er);return ae.createElement("div",{className:xe()(lt.row,_n),style:sr},ae.createElement("div",{className:"flex item-center justify-between"},ae.createElement("div",{onClick:(0,me.throttle)(()=>Qt==null?void 0:Qt(),2e3),style:{width:ln},className:`${lt.title} ${Qt?"current":""}`},mn),ae.createElement("i",{className:`iconfont ${ui?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:ui?"#00DDC7":"#037F74",fontSize:ui?10:12},onClick:()=>ei(!ui)})),ui&&ae.createElement("div",{className:zr?`${lt.tagsWrap} ${lt.tagsBorderWrap}`:lt.tagsWrap},ae.createElement("div",{className:lt.bar,ref:Dr},ae.createElement("div",{className:lt.tag,ref:Cr},ot==null?void 0:ot.map(ii=>ae.createElement("span",{onClick:()=>yt(ii.id),key:ii.id,style:{color:ir},className:Ye===ii.id?lt.active:""},ae.createElement("span",{title:ii.name,className:lt.name},ii.name),!!xr&&ae.createElement("span",{className:lt.num},ii.count)))))))},je={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Mt=({dataSource:ot=[],value:Ye,onChange:yt,className:Qt,style:_n={}})=>ae.createElement("div",{style:_n,className:xe()(je.tabs,Qt)},ot.map(mn=>ae.createElement("span",{onClick:()=>yt(mn.id),className:Ye===mn.id?je.active:"",key:mn.id},mn.name))),ht={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"},Ft=se(69677),Jt=({dataSource:ot=[],value:Ye="",onChange:yt,onInputChange:Qt=()=>{},className:_n,style:mn={},placeholder:ln,allowClear:sr=!1})=>{var ir;const[xr,er]=(0,ae.useState)(""),[Tn,Er]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var Cr;let Dr=Ye;(Cr=JSON.stringify(Ye))!=null&&Cr.includes("{")&&(er(Ye.id),Dr=Ye.value||"");try{Er(decodeURIComponent(Dr||""))}catch(ui){Er(decodeURIComponent(Dr||""))}},[Ye]);const zr=()=>{yt(encodeURIComponent(Tn),xr||null)},Br=Cr=>{Cr!==xr&&(er(Cr),yt(encodeURIComponent(Tn),Cr))};return ae.createElement("div",{className:xe()(ht.input,_n),style:mn},!!ot.length&&ae.createElement("div",{className:ht.dropdown},ae.createElement("div",{className:ht.text},(ir=ot.find(Cr=>Cr.id===xr))==null?void 0:ir.name,ae.createElement("i",{className:"iconfont icon-zhankai4"}),ae.createElement("b",{className:ht.b1}),ae.createElement("b",{className:ht.b2})),ae.createElement("div",{className:ht.menu},ot.map((Cr,Dr)=>ae.createElement("div",{key:Dr,onClick:()=>Br(Cr.id)},Cr.name)))),ae.createElement(Ft.default,{onPressEnter:zr,value:Tn,onChange:Cr=>{Er(Cr.target.value),Qt(encodeURIComponent(Cr.target.value),xr||null)},bordered:!1,placeholder:ln}),ae.createElement("i",{onClick:zr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Rt={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"},tn=({dataSource:ot=[],value:Ye="",onChange:yt,onInputChange:Qt=()=>{},className:_n,style:mn={},placeholder:ln,allowClear:sr=!1})=>{var ir;const[xr,er]=(0,ae.useState)(""),[Tn,Er]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var Cr;let Dr=Ye;(Cr=JSON.stringify(Ye))!=null&&Cr.includes("{")&&(er(Ye.id),Dr=Ye.value||"");try{Er(decodeURIComponent(Dr||""))}catch(ui){Er(decodeURIComponent(Dr||""))}},[Ye]);const zr=()=>{yt(encodeURIComponent(Tn),xr||null)},Br=Cr=>{Cr!==xr&&(er(Cr),yt(encodeURIComponent(Tn),Cr))};return ae.createElement("div",{className:xe()(Rt.input,_n),style:mn},!!ot.length&&ae.createElement("div",{className:Rt.dropdown},ae.createElement("div",{className:Rt.text},(ir=ot.find(Cr=>Cr.id===xr))==null?void 0:ir.name,ae.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),ae.createElement("div",{className:Rt.menu},ot.map((Cr,Dr)=>ae.createElement("div",{key:Dr,onClick:()=>Br(Cr.id)},Cr.name)))),ae.createElement(Ft.default,{onPressEnter:zr,value:Tn,onChange:Cr=>{Er(Cr.target.value),Qt(encodeURIComponent(Cr.target.value),xr||null)},bordered:!1,placeholder:ln}),ae.createElement("i",{onClick:zr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Hn={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"},tr=({value:ot,onChange:Ye,className:yt,total:Qt,pageSize:_n,style:mn={}})=>{const ln=ot<2,sr=ot>=Math.ceil(Qt/_n);return Qt<=_n?ae.createElement(ae.Fragment,null):ae.createElement("div",{className:xe()(Hn.quickPager,yt),style:mn},ae.createElement("div",{onClick:()=>{ln||Ye(ot-1,"prev")},className:ln?Hn.disabled:""},"\u4E0A\u4E00\u9875"),ae.createElement("div",{onClick:()=>{sr||Ye(ot+1,"next")},className:sr?Hn.disabled:""},"\u4E0B\u4E00\u9875"))},Qe={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"},we=se(57953),At=se(83062),Mn=se(12604),_t=se(11320),$e=se(28706),dt=se(96908),qt=se(57177),Xn=se(81378),bn=se(26194),nn=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,trackEventItems:sr,loading:ir})=>{const xr=Math.floor((ln-(yt-1)*Qt)/yt);return ae.createElement(we.Z,{spinning:ir},ae.createElement("div",{className:xe()(Qe.list,ot)},!!Ye.length&&Ye.map((er,Tn)=>{const{name:Er,id:zr,identifier:Br,power:Cr,cover_image_id:Dr,pic:ui}=er;return ae.createElement("div",{className:Qe.wrap,key:zr,style:{width:xr,marginRight:(1+Tn)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{target:"_blank",href:`/shixuns/${Br}/challenges`,className:Qe.li,onClick:ei=>{ei.preventDefault(),sr&&(0,$e.L9)([sr]),Cr&&(0,$e.xg)(`/shixuns/${Br}/challenges`)}},ae.createElement("div",{className:Qe.img},ae.createElement("img",{className:Qe.cover,src:`${ui}`}),er.is_jupyter&&ae.createElement("img",{className:Qe.sign,src:dt}),er.is_jupyter_lab&&ae.createElement("img",{className:Qe.sign,src:qt}),er.is_unity_3d&&ae.createElement("img",{className:Qe.sign,src:Xn})),ae.createElement("div",{className:Qe.name},ae.createElement(At.Z,{title:Er||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:Qe.e},Er||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:Qe.tags},ae.createElement(At.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,er.challenges_count))),!!er.myshixuns_count&&ae.createElement(At.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,er.myshixuns_count))),ae.createElement(At.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,er.level))),ae.createElement("div",{className:Qe.rate},ae.createElement(Mn.Z,{allowHalf:!0,disabled:!0,defaultValue:er.score_info}),ae.createElement("span",null,"\xA0",er.score_info?`${er.score_info}\u5206`:"5\u5206")))),!Cr&&ae.createElement("div",{className:Qe.lockWrap},ae.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ye.length&&ae.createElement(bn.Z,null)))},xn={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"},De=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,wrapClassName:sr,trackEventItems:ir,loading:xr})=>{const er=Math.floor((ln-(yt-1)*Qt)/yt);return ae.createElement(we.Z,{spinning:xr},ae.createElement("div",{className:xe()(xn.list,ot)},!!Ye.length&&Ye.map((Tn,Er)=>{const{name:zr,id:Br,identifier:Cr,power:Dr,cover_image_id:ui,pic:ei}=Tn;return ae.createElement("div",{className:xe()(xn.wrap,sr),key:Br,style:{width:er,marginRight:(1+Er)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{target:"_blank",href:`/shixuns/${Cr}/challenges`,className:xn.li,onClick:ii=>{ii.preventDefault(),ir&&(0,$e.L9)([ir]),Dr&&(0,$e.xg)(`/shixuns/${Cr}/challenges`)}},ae.createElement("img",{src:se(79633),className:xn.titleBg}),ae.createElement("div",{className:xn.name},ae.createElement(At.Z,{title:zr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:xn.e},zr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{style:{padding:"14px",paddingBottom:0}},ae.createElement("div",{className:xn.img},ae.createElement("img",{className:xn.cover,src:ui?`${_t.Z.API_SERVER}/api/attachments/${ui}`:`${_t.Z.IMG_SERVER+ei}`}),Tn.is_jupyter&&ae.createElement("div",{className:xn.bq},"Jupyter"),Tn.is_jupyter_lab&&ae.createElement("div",{className:xn.bq},"JupyterLab"),Tn.is_unity_3d&&ae.createElement("div",{className:xn.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),ae.createElement("div",{className:"mt20 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:xn.text},"\u5B66\u4E60\u4EBA\u6570"),ae.createElement("span",{className:xn.value},Tn.myshixuns_count)),ae.createElement("div",null,ae.createElement("span",{className:xn.text},"\u56F0\u96BE\u7B49\u7EA7"),ae.createElement("span",{className:xn.value},Tn.level))),ae.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:xn.text},"\u5173\u5361\u6570"),ae.createElement("span",{className:xn.value},Tn.challenges_count)),ae.createElement("div",{className:xn.rate},ae.createElement(Mn.Z,{allowHalf:!0,disabled:!0,defaultValue:Tn.score_info}),ae.createElement("span",{className:xn.value,style:{color:"#FF9C00"}},"\xA0",Tn.score_info?`${Tn.score_info}\u5206`:"5\u5206"))))),!Dr&&ae.createElement("div",{className:xn.lockWrap},ae.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ye.length&&ae.createElement(bn.Z,null)))},ue={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29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Z6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",Me=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,trackEventItems:sr,loading:ir,wrapClassName:xr,imgClassName:er})=>{const Tn=Math.floor((ln-(yt-1)*Qt)/yt);return ae.createElement(we.Z,{spinning:ir},ae.createElement("div",{className:xe()(ue.list,ot)},!!Ye.length&&Ye.map((Er,zr)=>{const{name:Br,id:Cr,identifier:Dr,power:ui,cover_image_id:ei,pic:ii}=Er;return ae.createElement("div",{className:xe()(ue.wrap,xr),key:Cr,style:{width:Tn,marginRight:(1+zr)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{target:"_blank",href:`/shixuns/${Dr}/challenges`,className:ue.li,onClick:Ti=>{Ti.preventDefault(),sr&&(0,$e.L9)([sr]),ui&&(0,$e.xg)(`/shixuns/${Dr}/challenges`)}},ae.createElement("div",{className:xe()(ue.img,er)},ae.createElement("img",{className:ue.cover,src:ei?`${_t.Z.API_SERVER}/api/attachments/${ei}`:`${_t.Z.IMG_SERVER+ii}`}),Er.is_jupyter&&ae.createElement("img",{className:ue.sign,src:ce}),Er.is_jupyter_lab&&ae.createElement("img",{className:ue.sign,src:he}),Er.is_unity_3d&&ae.createElement("img",{className:ue.sign,src:fe})),ae.createElement("div",{className:ue.name},ae.createElement(At.Z,{title:Br||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:ue.e},Br||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:ue.tags},ae.createElement(At.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,Er.challenges_count))),!!Er.myshixuns_count&&ae.createElement(At.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,Er.myshixuns_count))),ae.createElement(At.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,Er.level))),ae.createElement("div",{className:ue.rate},ae.createElement(Mn.Z,{allowHalf:!0,disabled:!0,defaultValue:Er.score_info}),ae.createElement("span",null,"\xA0",Er.score_info?`${Er.score_info}\u5206`:"5\u5206")))),!ui&&ae.createElement("div",{className:ue.lockWrap},ae.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ye.length&&ae.createElement(bn.Z,null)))},Ve=se(5476),ft={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"},Ht=se(79005),Zt=se(20345),jt=se(77882),$t=se(31081),Je=se(75309),Et=se(71979),Lt=se(47558),Xt=se(60345),wt=se(66832),Nn=se(96593),et=se(19664),It=se(91833),gn=Object.defineProperty,hn=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,mr=(ot,Ye,yt)=>Ye in ot?gn(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,ur=(ot,Ye)=>{for(var yt in Ye||(Ye={}))An.call(Ye,yt)&&mr(ot,yt,Ye[yt]);if(hn)for(var yt of hn(Ye))Vn.call(Ye,yt)&&mr(ot,yt,Ye[yt]);return ot};const dr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ht,swimg:Zt},{name:"101\u8BA1\u5212",ptimg:jt,swimg:$t},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Je,swimg:Et},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Lt,swimg:Xt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:wt,swimg:Nn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:et,swimg:It}];var nr=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,trackEventItems:sr,loading:ir,wrapClassName:xr,imgClassName:er,isArrow:Tn=!1,imgStyle:Er={}})=>{const zr=Math.floor((ln-(yt-1)*Qt)/yt),[Br,Cr]=(0,ae.useState)(),[Dr,ui]=(0,ae.useState)(),ei=Ti=>Cr(Ti),ii=()=>Cr(-1);return ae.createElement(we.Z,{spinning:ir},ae.createElement("div",{className:xe()(ft.list,ot)},!!(Ye!=null&&Ye.length)&&(Ye==null?void 0:Ye.map((Ti,ea)=>{var Si;const{name:zi,id:ai,identifier:vi,featured:_i,school_name:Ki,image_url:Ea,excellent:Ta,is_plan:va}=Ti;return ae.createElement("div",{key:ai,className:xe()(ft.wrap,xr),style:{width:zr,marginRight:(1+ea)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{target:"_blank",href:`/paths/${vi}`,className:ft.li,onClick:ra=>{ra.preventDefault(),sr&&(0,$e.L9)([sr]),(0,$e.xg)(`/paths/${vi}`)}},ae.createElement("img",{src:se(39057),className:ft.titleBg}),ae.createElement("div",{className:ft.name},ae.createElement(At.Z,{title:zi},ae.createElement("span",{className:ft.e,style:{color:Tn&&Br===ea?"#145DFF":"#000000"},onMouseEnter:()=>{ei(ea)},onMouseLeave:ii},zi))),ae.createElement("div",{style:{padding:"14px",paddingBottom:0}},ae.createElement("div",{className:xe()(ft.img,er)},ae.createElement("img",{className:ft.cover,style:ur({},Er),src:`${_t.Z.IMG_SERVER+Ea}`}),(Si=Ti==null?void 0:Ti.subject_tags)==null?void 0:Si.map((ra,Yi)=>{var ki,Ma;if(Yi===0){const si=(ki=dr.find(Ui=>Ui.name==ra))==null?void 0:ki.swimg;return ae.createElement("img",{className:ft.sign,src:si,style:{left:"-4px"}})}const Ri=(Ma=dr.find(si=>si.name==ra))==null?void 0:Ma.ptimg;return ae.createElement("img",{className:ft.sign,src:Ri,style:{left:`${48+52*(Yi-1)+2*Yi}px`}})}),ae.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Ti==null?void 0:Ti.excellent)&&ae.createElement("div",{className:ft.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ae.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:ft.text},"\u7AE0\u8282\u6570"),ae.createElement("span",{className:ft.value},Ti.stages_count)),ae.createElement("div",null,ae.createElement("span",{className:ft.text},"\u5B66\u4E60\u4EBA\u6570"),ae.createElement("span",{className:ft.value},Ti.members_count))))))})),!Ye.length&&ae.createElement(bn.Z,null)))},_r={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"},oi=se(52262),Wr=se(67294);const xi=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ht,swimg:Zt},{name:"101\u8BA1\u5212",ptimg:jt,swimg:$t},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Je,swimg:Et},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Lt,swimg:Xt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:wt,swimg:Nn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:et,swimg:It}];var Ct=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,trackEventItems:sr,loading:ir,onRemove:xr=()=>{},isCurrent:er=!0,showAlias:Tn=!1,wrapClassName:Er,imgClassName:zr})=>{const Br=Math.floor((ln-(yt-1)*Qt)/yt),Cr=[{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(Dr=>(window.ENV==="build"&&(Dr.ptimg=`/react/build${Dr.ptimg}`,Dr.swimg=`/react/build${Dr.swimg}`),Dr));return Wr.createElement(we.Z,{spinning:ir},Wr.createElement("div",{className:xe()(_r.list,ot)},!!(Ye!=null&&Ye.length)&&(Ye==null?void 0:Ye.map((Dr,ui)=>{var ei;const{name:ii,id:Ti,identifier:ea,featured:Si,school_name:zi,image_url:ai,excellent:vi,is_plan:_i}=Dr;return Wr.createElement("div",{key:Ti,className:xe()(_r.wrap,Er),style:{width:Br,marginRight:(1+ui)%yt===0?0:Qt+mn,marginBottom:_n}},Wr.createElement("a",{className:_r.li,onClick:Ki=>{Ki.preventDefault(),Ki.stopPropagation(),sr&&(0,$e.L9)([sr]),(0,$e.xg)(`/paths/${ea}`)}},Wr.createElement("div",{className:xe()(_r.img,zr)},Wr.createElement("img",{className:_r.cover,src:`${_t.Z.IMG_SERVER+ai}`}),er&&(0,oi.bg)()&&(Dr==null?void 0:Dr.studying)&&Wr.createElement("div",{className:`${_r.movebq} user-path-items`,onClick:Ki=>{Ki.stopPropagation(),xr(Dr)}},Wr.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Wr.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ei=Dr==null?void 0:Dr.subject_tags)==null?void 0:ei.map((Ki,Ea)=>{var Ta,va;if(Ea===0){const Yi=(Ta=Cr.find(ki=>ki.name==Ki))==null?void 0:Ta.swimg;return Wr.createElement("img",{className:_r.sign,src:Yi,style:{left:"-4px"}})}const ra=(va=Cr.find(Yi=>Yi.name==Ki))==null?void 0:va.ptimg;return Wr.createElement("img",{className:_r.sign,src:ra,style:{left:`${48+52*(Ea-1)+2*Ea}px`}})}),Wr.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(Dr==null?void 0:Dr.excellent)&&Wr.createElement("div",{className:_r.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Wr.createElement("div",{className:_r.name},Wr.createElement(At.Z,{title:Tn&&(Dr!=null&&Dr.excellent_alias_name)?Wr.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ii}`,Wr.createElement("br",null),Wr.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Dr==null?void 0:Dr.excellent_alias_name}`)):ii},Wr.createElement("span",{className:_r.e},Tn&&(Dr==null?void 0:Dr.excellent_alias_name)||ii))),Wr.createElement("div",{className:_r.tags},Wr.createElement("div",null,Wr.createElement(At.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Wr.createElement("span",null,Wr.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Wr.createElement("span",null,Dr.stages_count))),Wr.createElement(At.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Wr.createElement("span",null,Wr.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Wr.createElement("span",null,Dr.members_count)))))))})),!Ye.length&&Wr.createElement(bn.Z,null)))},wn={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"},Rn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012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HQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",an=se(67294),lr=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,trackEventItems:sr,loading:ir})=>{const xr=Math.floor((ln-(yt-1)*Qt)/yt);return an.createElement(we.Z,{spinning:ir},an.createElement("div",{className:xe()(wn.list,ot)},!!Ye.length&&Ye.map((er,Tn)=>{const{subject_identifier:Er,id:zr,identifier:Br,power:Cr}=er,Dr=er.is_public!=0&&er.is_public;return an.createElement("div",{className:wn.wrap,key:zr,style:{width:xr,marginRight:(1+Tn)%yt===0?0:Qt+mn,marginBottom:_n}},an.createElement("a",{className:wn.li,onClick:ui=>{ui.preventDefault(),sr&&(0,$e.L9)([sr]),(0,$e.xg)(er.first_category_url)}},an.createElement("div",{className:wn.top},an.createElement(At.Z,{title:er.name},an.createElement("div",{className:wn.name},er.name)),an.createElement("img",{className:wn.img,src:_t.Z.IMG_SERVER+"/images/"+er.avatar_url}),an.createElement("div",{className:wn.text,title:er.creator},er.creator),Er&&an.createElement("div",{className:wn.btns},an.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),an.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Dr&&an.createElement("div",{className:wn.sign},"\u516C\u5F00")),an.createElement("div",{className:wn.bottom},er.visits>0&&an.createElement(At.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-liulanyan"}),an.createElement("span",null,er.visits))),er.course_members_count>0&&an.createElement(At.Z,{title:"\u6210\u5458",placement:"bottom"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-chengyuan"}),er.course_members_count)),er.tasks_count>0&&an.createElement(At.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-zuoye"}),er.tasks_count)),er.is_end?an.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):an.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!er.is_accessible&&an.createElement("div",{className:wn.lockWrap},an.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),an.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ye.length&&an.createElement(bn.Z,null)))},Gn={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"},jn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQ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hVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",mt=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,wrapClassName:sr,trackEventItems:ir,loading:xr})=>{const er=Math.floor((ln-(yt-1)*Qt)/yt);return ae.createElement(we.Z,{spinning:xr},ae.createElement("div",{className:xe()(Gn.list,ot)},!!Ye.length&&Ye.map((Tn,Er)=>{const{subject_identifier:zr,id:Br,identifier:Cr,power:Dr}=Tn,ui=Tn.is_public!=0&&Tn.is_public;return ae.createElement("div",{className:xe()(`${Gn.wrap} ${Tn.is_accessible?"":Gn.warpStyle}`,sr),key:Br,style:{width:er,marginRight:(1+Er)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{className:Gn.li,onClick:ei=>{ei.preventDefault(),ir&&(0,$e.L9)([ir]),(0,$e.xg)(Tn.first_category_url)}},ae.createElement("div",{className:Gn.creator},ae.createElement("img",{className:Gn.img,src:_t.Z.IMG_SERVER+"/images/"+Tn.avatar_url}),ae.createElement("div",{className:Gn.text,title:Tn.creator},Tn.creator)),ae.createElement("div",{className:Gn.top},ae.createElement(At.Z,{title:Tn.name},ae.createElement("div",{className:Gn.name},Tn.name)),ui&&ae.createElement("div",{className:Gn.sign},"\u516C\u5F00")),ae.createElement("div",{className:Gn.middle},ae.createElement("div",{className:Gn.row,style:{marginBottom:6}},ae.createElement("div",null,ae.createElement("span",{className:Gn.text},"\u8BBF\u95EE\u91CF"),ae.createElement("span",{className:Gn.value},(Tn==null?void 0:Tn.visits)||0)),ae.createElement("div",null,ae.createElement("span",{className:Gn.text},"\u6210\u5458"),ae.createElement("span",{className:Gn.value},(Tn==null?void 0:Tn.course_members_count)||0))),ae.createElement("div",{className:Gn.row},ae.createElement("div",null,ae.createElement("span",{className:Gn.text,style:{width:42}},"\u4F5C",ae.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ae.createElement("span",{className:Gn.value},(Tn==null?void 0:Tn.tasks_count)||0)),ae.createElement("div",null,ae.createElement("span",{className:Gn.text},"\u72B6\u6001"),Tn.is_end?ae.createElement("span",{className:Gn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ae.createElement("span",{className:Gn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),zr&&ae.createElement("div",{className:Gn.btns},ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Tn.is_accessible&&ae.createElement("div",{className:Gn.lockWrap},ae.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ye.length&&ae.createElement(bn.Z,null)))},Bt={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"},rn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXo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m84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",St=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,wrapClassName:sr,trackEventItems:ir,loading:xr})=>{const er=Math.floor((ln-(yt-1)*Qt)/yt);return ae.createElement(we.Z,{spinning:xr},ae.createElement("div",{className:xe()(Bt.list,ot)},!!Ye.length&&Ye.map((Tn,Er)=>{const{subject_identifier:zr,id:Br,identifier:Cr,power:Dr}=Tn,ui=Tn.is_public!=0&&Tn.is_public;return ae.createElement("div",{className:xe()(`${Bt.wrap} ${Tn.is_accessible?"":Bt.warpStyle}`,sr),key:Br,style:{width:er,marginRight:(1+Er)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{className:Bt.li,onClick:ei=>{ei.preventDefault(),ir&&(0,$e.L9)([ir]),(0,$e.xg)(Tn.first_category_url)}},ae.createElement("div",{className:Bt.creator},ae.createElement("img",{className:Bt.img,src:_t.Z.IMG_SERVER+"/images/"+Tn.avatar_url}),ae.createElement("div",{className:Bt.text,title:Tn.creator},Tn.creator)),ae.createElement("div",{className:Bt.top},ae.createElement(At.Z,{title:Tn.name},ae.createElement("div",{className:Bt.name},Tn.name)),ui&&ae.createElement("div",{className:Bt.sign})),ae.createElement("div",{className:Bt.middle},ae.createElement("div",{className:Bt.row,style:{marginBottom:6}},ae.createElement("div",null,ae.createElement("span",{className:Bt.text},"\u8BBF\u95EE\u91CF"),ae.createElement("span",{className:Bt.value},(Tn==null?void 0:Tn.visits)||0)),ae.createElement("div",null,ae.createElement("span",{className:Bt.text},"\u6210\u5458"),ae.createElement("span",{className:Bt.value},(Tn==null?void 0:Tn.course_members_count)||0))),ae.createElement("div",{className:Bt.row},ae.createElement("div",null,ae.createElement("span",{className:Bt.text,style:{width:42}},"\u4F5C",ae.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ae.createElement("span",{className:Bt.value},(Tn==null?void 0:Tn.tasks_count)||0)),ae.createElement("div",null,ae.createElement("span",{className:Bt.text},"\u72B6\u6001"),Tn.is_end?ae.createElement("span",{className:Bt.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ae.createElement("span",{className:Bt.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),zr&&ae.createElement("div",{className:Bt.btns},ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Tn.is_accessible&&ae.createElement("div",{className:Bt.lockWrap},ae.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ye.length&&ae.createElement(bn.Z,null)))},Vt={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"},Nt=se(35973),on=({dataSource:ot=[],value:Ye,onChange:yt,className:Qt,style:_n={},tabBarExtraContent:mn})=>ae.createElement("div",{className:xe()(Vt.tabs,Qt),style:_n},ae.createElement("div",{className:Vt.tabsWrap},ot.map((ln,sr)=>ae.createElement("aside",{className:Vt.tab,onClick:()=>{yt(ln.id),ln.link&&Nt.history.push(ln.link)},key:sr},ae.createElement("div",{className:Ye===ln.id?Vt.active:""},ln.name),(ln==null?void 0:ln.resetCount)==null&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement("span",null,"\uFF08",ln==null?void 0:ln.total,"\uFF09"),(ln==null?void 0:ln.resetCount)!==void 0&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement(At.Z,{title:(ln==null?void 0:ln.tip)!=null?ln==null?void 0:ln.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},ln==null?void 0:ln.resetCount),"/",ae.createElement("span",null,ln==null?void 0:ln.total),"\uFF09"))))),ae.createElement("div",{className:Vt.tabBar},mn)),Kn={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"},hr=({dataSource:ot=[],value:Ye,onChange:yt,className:Qt,style:_n={},tabBarExtraContent:mn})=>ae.createElement("div",{className:xe()(Kn.tabs,Qt),style:_n},ae.createElement("div",{className:Kn.tabsWrap},ot.map((ln,sr)=>ae.createElement("aside",{className:Kn.tab,onClick:()=>{yt(ln.id),ln.link&&Nt.history.push(ln.link)},key:sr},ae.createElement("div",{className:Ye===ln.id?Kn.active:""},ln.name),(ln==null?void 0:ln.resetCount)==null&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement("span",null,"\uFF08",ln==null?void 0:ln.total,"\uFF09"),(ln==null?void 0:ln.resetCount)!==void 0&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement(At.Z,{title:(ln==null?void 0:ln.tip)!=null?ln==null?void 0:ln.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},ln==null?void 0:ln.resetCount),"/",ae.createElement("span",null,ln==null?void 0:ln.total),"\uFF09"))))),ae.createElement("div",{className:Kn.tabBar},mn)),or={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"},Lr=({dataSource:ot=[],value:Ye,onChange:yt,className:Qt,style:_n={},tabBarExtraContent:mn})=>ae.createElement("div",{className:xe()(or.tabs,Qt),style:_n},ae.createElement("div",{className:or.tabsWrap},ot.map((ln,sr)=>ae.createElement("aside",{className:`${or.tab} ${Ye===ln.id?or.active:""}`,onClick:()=>{yt(ln.id),ln.link&&Nt.history.push(ln.link)},key:sr},ae.createElement("div",null,ln.name),(ln==null?void 0:ln.resetCount)==null&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement("span",null,"\uFF08",ln==null?void 0:ln.total,"\uFF09"),(ln==null?void 0:ln.resetCount)!==void 0&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement(At.Z,{title:(ln==null?void 0:ln.tip)!=null?ln==null?void 0:ln.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},ln==null?void 0:ln.resetCount),"/",ae.createElement("span",null,ln==null?void 0:ln.total),"\uFF09"))))),ae.createElement("div",{className:or.tabBar},mn)),gt=({className:ot,style:Ye={},children:yt})=>ae.createElement("div",{className:xe()(ot),style:Ye},yt),Dt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},En=se(85418),qn=se(68508);const Cn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var In=({sortValue:ot,dropValue:Ye,className:yt,onSort:Qt,onDrop:_n,dataSource:mn=Cn})=>{var ln;return ae.createElement("div",{className:xe()(Dt.orderWrap,yt)},ae.createElement(En.Z,{dropdownRender:()=>ae.createElement(qn.default,null,mn.map((sr,ir)=>ae.createElement(qn.default.Item,{key:ir,onClick:()=>_n(sr.id)},sr.name)))},ae.createElement("span",{className:Dt.orderTextWrap},(ln=mn.find(sr=>Ye===sr.id))==null?void 0:ln.name)),ae.createElement("span",{className:Dt.orderIconWrap},ae.createElement("span",{className:Dt.orderAsc},ae.createElement("i",{className:ot==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer}`,onClick:()=>Qt(ot==="asc"?"desc":"asc")})),ae.createElement("span",{className:Dt.orderDesc},ae.createElement("i",{className:ot==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer}`,onClick:()=>Qt(ot==="asc"?"desc":"asc")}))))},Un={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 kr=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var di=({sortValue:ot,dropValue:Ye,className:yt,onSort:Qt,onDrop:_n,dataSource:mn=kr})=>{var ln;return ae.createElement("div",{className:xe()(Un.orderWrap,yt)},ae.createElement(En.Z,{dropdownRender:()=>ae.createElement(qn.default,null,mn.map((sr,ir)=>ae.createElement(qn.default.Item,{key:ir,onClick:()=>_n(sr.id)},sr.name)))},ae.createElement("span",{className:Un.orderTextWrap},(ln=mn.find(sr=>Ye===sr.id))==null?void 0:ln.name)),ae.createElement("span",{className:Un.orderIconWrap},ae.createElement("span",{className:Un.orderAsc},ae.createElement("i",{className:ot==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Un.cursorPointer} ${Un.active}`:`iconfont icon-sanjiaoxing-up font12 ${Un.cursorPointer}`,onClick:()=>Qt(ot==="asc"?"desc":"asc")})),ae.createElement("span",{className:Un.orderDesc},ae.createElement("i",{className:ot==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Un.cursorPointer} ${Un.active}`:`iconfont icon-sanjiaoxing-down font12 ${Un.cursorPointer}`,onClick:()=>Qt(ot==="asc"?"desc":"asc")}))))},Qr={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"},Fi=se(71577),Ni=se(52810),Ci=Object.defineProperty,Qi=Object.getOwnPropertySymbols,Ei=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,Hi=(ot,Ye,yt)=>Ye in ot?Ci(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,$i=(ot,Ye)=>{for(var yt in Ye||(Ye={}))Ei.call(Ye,yt)&&Hi(ot,yt,Ye[yt]);if(Qi)for(var yt of Qi(Ye))pi.call(Ye,yt)&&Hi(ot,yt,Ye[yt]);return ot},ci=(ot,Ye)=>{var yt={};for(var Qt in ot)Ei.call(ot,Qt)&&Ye.indexOf(Qt)<0&&(yt[Qt]=ot[Qt]);if(ot!=null&&Qi)for(var Qt of Qi(ot))Ye.indexOf(Qt)<0&&pi.call(ot,Qt)&&(yt[Qt]=ot[Qt]);return yt},Mi=(ot,Ye,yt)=>new Promise((Qt,_n)=>{var mn=ir=>{try{sr(yt.next(ir))}catch(xr){_n(xr)}},ln=ir=>{try{sr(yt.throw(ir))}catch(xr){_n(xr)}},sr=ir=>ir.done?Qt(ir.value):Promise.resolve(ir.value).then(mn,ln);sr((yt=yt.apply(ot,Ye)).next())}),ca=ot=>{var Ye=ot,{className:yt,style:Qt,children:_n,loading:mn=!1,openLoading:ln,onClick:sr=()=>{},size:ir="middle",shape:xr="round",theme:er}=Ye,Tn=ci(Ye,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Er,zr]=(0,ae.useState)(!1),Br=(0,ae.useMemo)(()=>{switch(er){case Ni.Fy.THEMEONE:return Qr.ThemeOne;case Ni.Fy.DEFAULT:default:return Qr.btn}},[er]);return ae.createElement(Fi.ZP,$i({onClick:(0,me.throttle)(Cr=>Mi(void 0,null,function*(){ln&&zr(!0);try{yield sr(Cr)}catch(Dr){console.log("error",Dr)}ln&&zr(!1)}),2e3,{leading:!0,trailing:!1}),className:xe()(Br,Qr[`${ir}-${xr}`],yt),style:Qt,size:ir,shape:xr,loading:Er||mn},Tn),_n)},na={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"},zt=({className:ot,style:Ye,children:yt=null,onClick:Qt,title:_n})=>ae.createElement("div",{className:xe()(na.head,ot),style:Ye},ae.createElement("span",{className:"primary-hover",onClick:Qt},ae.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ae.createElement("b",{title:_n},_n),ae.createElement("div",{className:na.node},yt)),Tt={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"},Bn=({confirmShow:ot=!0,confirmTitle:Ye,confirmClick:yt,cancelShow:Qt=!0,cancelTitle:_n,cancelClick:mn,className:ln,style:sr,confirmLoading:ir=!1})=>ae.createElement("div",{className:xe()(Tt.btns,ln),style:sr},ot&&ae.createElement(Fi.ZP,{loading:ir,onClick:yt,type:"primary",className:Tt.confirm},Ye),Qt&&ae.createElement(Fi.ZP,{onClick:mn,className:Tt.cancel},_n)),Qn={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"},Zr=({className:ot,style:Ye={},LeftContent:yt,children:Qt,RightContent:_n})=>ae.createElement("div",{className:xe()(Qn.fixedBottom,ot),style:Ye},ae.createElement("div",{className:Qn.wrap},ae.createElement("div",{className:Qn.left},yt),ae.createElement("div",{className:Qn.center},Qt),ae.createElement("div",{className:Qn.right},_n))),Jr={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"},qr=({className:ot,style:Ye={},dataSource:yt=[]})=>ae.createElement("div",{className:xe()(Jr.crumbs,ot),style:Ye},yt.map((Qt,_n)=>_n<yt.length-1?ae.createElement(ae.Fragment,{key:_n},Qt.path||Qt.onClick?ae.createElement("span",{className:Jr.hover,onClick:Qt!=null&&Qt.onClick?Qt.onClick:()=>Nt.history.push(Qt.path)},Qt.name):ae.createElement("span",null,Qt.name),ae.createElement("span",null,"\xA0",">","\xA0")):ae.createElement("span",{key:_n,style:{color:"#5F6368"}},Qt.name))),fi=se(55054),Ai=Object.defineProperty,jr=Object.defineProperties,wi=Object.getOwnPropertyDescriptors,Di=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,He=(ot,Ye,yt)=>Ye in ot?Ai(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,Ke=(ot,Ye)=>{for(var yt in Ye||(Ye={}))Li.call(Ye,yt)&&He(ot,yt,Ye[yt]);if(Di)for(var yt of Di(Ye))Te.call(Ye,yt)&&He(ot,yt,Ye[yt]);return ot},Ge=(ot,Ye)=>jr(ot,wi(Ye)),ut=(ot,Ye)=>{var yt={};for(var Qt in ot)Li.call(ot,Qt)&&Ye.indexOf(Qt)<0&&(yt[Qt]=ot[Qt]);if(ot!=null&&Di)for(var Qt of Di(ot))Ye.indexOf(Qt)<0&&Te.call(ot,Qt)&&(yt[Qt]=ot[Qt]);return yt};const{Countdown:vt}=fi.default;var vn=ot=>{var Ye=ot,{onChange:yt}=Ye,Qt=ut(Ye,["onChange"]);const[_n,mn]=(0,ae.useState)(null);(0,ae.useEffect)(()=>{typeof _n=="number"&&_n>=0&&yt(_n)},[_n]);const ln=sr=>{const ir=Math.floor(sr/1e3);mn(ir)};return ae.createElement(vt,Ge(Ke({},Qt),{onChange:ln}))},kn={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Pr=({DataProps:ot,className:Ye,style:yt={}})=>{var Qt;return ae.createElement("div",{className:xe()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",kn.ClassRoomItem,Ye),style:yt,onClick:()=>{(0,$e.xg)(ot==null?void 0:ot.first_category_url)}},ae.createElement("div",{className:"flex flex-col item-center"},ae.createElement("img",{src:`${(Qt=_t.Z)==null?void 0:Qt.IMG_SERVER}/images/${ot==null?void 0:ot.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(ot==null?void 0:ot.subject_identifier)&&ae.createElement("div",{className:"mt-40px"},ae.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),ae.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},ae.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(ot!=null&&ot.is_public)&&ae.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),ae.createElement("span",{className:xe()("text-16px font-medium",kn.TitleDom)},ot==null?void 0:ot.name)),ae.createElement("div",{className:"c-grey-333 font-medium"},ot==null?void 0:ot.creator),ae.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",ot==null?void 0:ot.course_members_count),ae.createElement("div",{className:"c-grey-333 flex item-center justify-between"},ae.createElement("div",null,"\u4F5C\u4E1A\uFF1A",ot==null?void 0:ot.tasks_count),ot!=null&&ot.is_end?ae.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):ae.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},cr=Object.defineProperty,Wn=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,rr=(ot,Ye,yt)=>Ye in ot?cr(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,Ir=(ot,Ye)=>{for(var yt in Ye||(Ye={}))Fn.call(Ye,yt)&&rr(ot,yt,Ye[yt]);if(Wn)for(var yt of Wn(Ye))$n.call(Ye,yt)&&rr(ot,yt,Ye[yt]);return ot},fr=({DataProps:ot=[],selectValue:Ye,onChange:yt,className:Qt,style:_n={},extra:mn,classNameItem:ln,styleItem:sr={},barHidden:ir})=>{const[xr,er]=(0,ae.useState)();return(0,ae.useEffect)(()=>{er(Array.isArray(Ye)?Ye:[Ye])},[Ye]),ae.createElement("div",{className:xe()("flex px-20px py-10px gap-40px",Qt),style:Ir({borderBottom:"1px solid #D3F0FF"},_n)},ot==null?void 0:ot.map(Tn=>ae.createElement("div",{key:Tn==null?void 0:Tn.id,className:xe()("flex item-center justify-center current c-grey-333 text-16 relative",ln,Tn==null?void 0:Tn.className),style:Ir(Ir({color:xr!=null&&xr.includes(Tn==null?void 0:Tn.id)?"#1890FF":"",minWidth:88},sr),(Tn==null?void 0:Tn.style)||{}),onClick:Er=>{yt==null||yt({domEvent:Er,item:Tn}),Tn!=null&&Tn.link&&Nt.history.push(Tn==null?void 0:Tn.link)}},Tn==null?void 0:Tn.name,!ir&&(xr==null?void 0:xr.includes(Tn==null?void 0:Tn.id))&&ae.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),ae.createElement("div",{className:"ml-auto"},mn))},wr=Object.defineProperty,Sr=Object.defineProperties,Nr=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,bt=(ot,Ye,yt)=>Ye in ot?wr(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,sn=(ot,Ye)=>{for(var yt in Ye||(Ye={}))We.call(Ye,yt)&&bt(ot,yt,Ye[yt]);if(Fe)for(var yt of Fe(Ye))Wt.call(Ye,yt)&&bt(ot,yt,Ye[yt]);return ot},Ln=(ot,Ye)=>Sr(ot,Nr(Ye)),ar=({value:ot,onChange:Ye,onInputChange:yt,className:Qt,style:_n={},InputProps:mn})=>{const[ln,sr]=(0,ae.useState)(ot);return ae.createElement("div",{className:xe()("flex item-center rounded-full px-10px py-2px",Qt),style:sn({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},_n)},ae.createElement(Ft.default,Ln(sn({bordered:!1},mn),{onChange:ir=>{sr(ir.target.value),yt==null||yt(encodeURIComponent(ir.target.value))},onPressEnter:ir=>{Ye==null||Ye({domEvent:ir,item:{value:ln}})}})),ae.createElement("img",{className:"h-22px current",src:se(25365),height:22,onClick:ir=>{Ye==null||Ye({domEvent:ir,item:{value:ln}})}}))}},99914:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Pe}});var ae=se(67294);function Pe(Re,qe){const ve=(0,ae.useRef)();(0,ae.useEffect)(()=>{ve.current=Re}),(0,ae.useEffect)(()=>{function ke(){ve.current()}if(qe!==null){let Le=setInterval(ke,qe);return()=>clearInterval(Le)}},[qe])}},35994:function(dn,en,se){"use strict";var ae=se(67294),Pe=se(2453),Re=se(59810),qe=se(14446),ve=se(22150),ke=se(69677),Le=se(71230),xe=se(15746),me=se(94785),Ie=se(11320),st=se(16646),Ne=se(41307),xt=se(80150),pt=Object.defineProperty,ct=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,at=(Se,Ce,je)=>Ce in Se?pt(Se,Ce,{enumerable:!0,configurable:!0,writable:!0,value:je}):Se[Ce]=je,Yt=(Se,Ce)=>{for(var je in Ce||(Ce={}))rt.call(Ce,je)&&at(Se,je,Ce[je]);if(ct)for(var je of ct(Ce))Ee.call(Ce,je)&&at(Se,je,Ce[je]);return Se},Xe=(Se,Ce)=>{var je={};for(var Ue in Se)rt.call(Se,Ue)&&Ce.indexOf(Ue)<0&&(je[Ue]=Se[Ue]);if(Se!=null&&ct)for(var Ue of ct(Se))Ce.indexOf(Ue)<0&&Ee.call(Se,Ue)&&(je[Ue]=Se[Ue]);return je};const lt=Se=>{var Ce=Se,{handleFinish:je,form:Ue,dispatch:Mt}=Ce,ht=Xe(Ce,["handleFinish","form","dispatch"]),Ft,tt;const[Jt,Rt]=(0,ae.useState)([]),yn={fileList:Jt,maxCount:1,accept:"image/*",withCredentials:!0,beforeUpload:Yn=>{const tr=Yn.size/1024/1024;return tr>2||tr==0?(Pe.ZP.error(`${Yn.name} \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002${tr==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u56FE\u7247\u5927\u5C0F\u9650\u5236(2MB)"}`),Re.default.LIST_IGNORE):!0},onRemove:Yn=>{Rt([])},onChange:Yn=>{var tr,Qe,we;Ue.setFieldsValue({cover_id:""}),["uploading","done","removed"].includes(Yn.file.status)&&(Rt(Yn.fileList),Ue.setFieldsValue({cover_id:(we=(Qe=(tr=Yn.fileList)==null?void 0:tr[0])==null?void 0:Qe.response)==null?void 0:we.id}))},action:`${Ie.Z.API_SERVER}/api/attachments.json`},tn={multiple:!0,maxCount:10,withCredentials:!0,beforeUpload:Yn=>{const tr=Yn.size/1024/1024;return tr>500||tr==0?(Pe.ZP.error(`${Yn.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${tr==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(500MB)"}`),Re.default.LIST_IGNORE):!0},action:`${Ie.Z.API_SERVER}/api/attachments.json`},Hn=()=>{var Yn,tr;return ae.createElement("div",{className:me.Z.imgUpLoad},ae.createElement("img",{src:Ie.Z.API_SERVER+"/api/attachments/"+((tr=(Yn=Jt==null?void 0:Jt[0])==null?void 0:Yn.response)==null?void 0:tr.id),alt:"avatar",style:{width:"100%"}}),ae.createElement("div",null,ae.createElement(st.Z,{onClick:()=>{Rt([]),Ue.setFieldsValue({cover_id:""})},style:{fontSize:"16px",color:"red"}})))};return(0,ae.useEffect)(()=>{ht.open&&Ue.getFieldValue("cover_id")&&Ue.getFieldValue("cover")&&Rt([{response:Ue.getFieldValue("cover")}])},[ht.open]),ae.createElement(qe.default,Yt({},ht),ae.createElement(ve.default,{form:Ue,initialValues:{},layout:"vertical",onFinish:Yn=>{je(Yn),Rt([])}},ae.createElement(ve.default.Item,{htmlFor:null,name:"name",label:"\u6807\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(ke.default,{placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",maxLength:60,showCount:!0})),ae.createElement(ve.default.Item,{htmlFor:null,name:"desc",label:"\u5185\u5BB9",rules:[{required:!0,message:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9"}]},ae.createElement(Ne.h,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9",scrollId:"",watch:!0,height:192})),ae.createElement(ve.default.Item,{htmlFor:null,label:"\u9644\u4EF6",name:"attachment_ids",valuePropName:"fileList",getValueFromEvent:Yn=>Array.isArray(Yn)?Yn:Yn==null?void 0:Yn.fileList},ae.createElement(Re.default,Yt({},tn),ae.createElement(Le.Z,{wrap:!1,align:"middle"},ae.createElement(xt.op,{style:{borderRadius:"2px"},icon:ae.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u6587\u4EF6\u4E0A\u4F20"),ae.createElement(xe.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:Yn=>{Yn.preventDefault(),Yn.stopPropagation()}},"1\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B2\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002")))),ae.createElement(ve.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE\u7247"}]},ae.createElement("div",{className:me.Z.upload},(tt=(Ft=Jt==null?void 0:Jt[0])==null?void 0:Ft.response)!=null&&tt.id?Hn():ae.createElement(Re.default,Yt({},yn),ae.createElement(Le.Z,{wrap:!1,align:"middle"},ae.createElement(xt.op,{style:{borderRadius:"2px"},icon:ae.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u56FE\u7247\u4E0A\u4F20"),ae.createElement(xe.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:Yn=>{Yn.preventDefault(),Yn.stopPropagation()}},"\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8282*212\u50CF\u7D20")))))))};en.Z=lt},57838:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Pe}});var ae=se(67294);function Pe(){const[,Re]=ae.useReducer(qe=>qe+1,0);return Re}},9708:function(dn,en,se){"use strict";se.d(en,{F:function(){return ve},Z:function(){return qe}});var ae=se(94184),Pe=se.n(ae);const Re=null;function qe(ke,Le,xe){return Pe()({[`${ke}-status-success`]:Le==="success",[`${ke}-status-warning`]:Le==="warning",[`${ke}-status-error`]:Le==="error",[`${ke}-status-validating`]:Le==="validating",[`${ke}-has-feedback`]:xe})}const ve=(ke,Le)=>Le||ke},88258:function(dn,en,se){"use strict";var ae=se(67294),Pe=se(53124),Re=se(32983);const qe=ve=>{const{componentName:ke}=ve,{getPrefixCls:Le}=(0,ae.useContext)(Pe.E_),xe=Le("empty");switch(ke){case"Table":case"List":return ae.createElement(Re.Z,{image:Re.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(Re.Z,{image:Re.Z.PRESENTED_IMAGE_SIMPLE,className:`${xe}-small`});default:return ae.createElement(Re.Z,null)}};en.Z=qe},72565:function(dn,en,se){"use strict";se.d(en,{Z:function(){return hi}});var ae=se(94184),Pe=se.n(ae),Re=se(1413),qe=se(97685),ve=se(67294),ke=se(73935);function Le(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var xe={};function me(zt,Tt){}function Ie(zt,Tt){}function st(){xe={}}function Ne(zt,Tt,fn){!Tt&&!xe[fn]&&(zt(!1,fn),xe[fn]=!0)}function xt(zt,Tt){Ne(me,zt,Tt)}function pt(zt,Tt){Ne(Ie,zt,Tt)}var ct=null,rt=se(71002),Ee=se(18459);function at(zt,Tt,fn){var Bn=ve.useRef({});return(!("value"in Bn.current)||fn(Bn.current.condition,Tt))&&(Bn.current.value=zt(),Bn.current.condition=Tt),Bn.current.value}function Yt(zt,Tt){typeof zt=="function"?zt(Tt):(0,rt.Z)(zt)==="object"&&zt&&"current"in zt&&(zt.current=Tt)}function Xe(){for(var zt=arguments.length,Tt=new Array(zt),fn=0;fn<zt;fn++)Tt[fn]=arguments[fn];var Bn=Tt.filter(function(Qn){return Qn});return Bn.length<=1?Bn[0]:function(Qn){Tt.forEach(function(Or){Yt(Or,Qn)})}}function lt(){for(var zt=arguments.length,Tt=new Array(zt),fn=0;fn<zt;fn++)Tt[fn]=arguments[fn];return at(function(){return Xe.apply(void 0,Tt)},Tt,function(Bn,Qn){return Bn.length===Qn.length&&Bn.every(function(Or,Zr){return Or===Qn[Zr]})})}function Se(zt){var Tt,fn,Bn=(0,Ee.isMemo)(zt)?zt.type.type:zt.type;return!(typeof Bn=="function"&&!((Tt=Bn.prototype)!==null&&Tt!==void 0&&Tt.render)||typeof zt=="function"&&!((fn=zt.prototype)!==null&&fn!==void 0&&fn.render))}var Ce=ve.createContext(null),je=Ce,Ue=se(74902),Mt=Le()?ve.useLayoutEffect:ve.useEffect,ht=Mt,Ft=function(Tt,fn){var Bn=React.useRef(!0);Mt(function(){if(!Bn.current)return Tt()},fn),Mt(function(){return Bn.current=!1,function(){Bn.current=!0}},[])},tt=[];function Jt(zt,Tt){var fn=ve.useState(function(){if(!Le())return null;var Di=document.createElement("div");return Di}),Bn=(0,qe.Z)(fn,1),Qn=Bn[0],Or=ve.useRef(!1),Zr=ve.useContext(je),Jr=ve.useState(tt),ri=(0,qe.Z)(Jr,2),qr=ri[0],fi=ri[1],Ai=Zr||(Or.current?void 0:function(Di){fi(function(Li){var Te=[Di].concat((0,Ue.Z)(Li));return Te})});function jr(){Qn.parentElement||document.body.appendChild(Qn),Or.current=!0}function wi(){var Di;(Di=Qn.parentElement)===null||Di===void 0||Di.removeChild(Qn),Or.current=!1}return ht(function(){return zt?Zr?Zr(jr):jr():wi(),wi},[zt]),ht(function(){qr.length&&(qr.forEach(function(Di){return Di()}),fi(tt))},[qr]),[Qn,Ai]}function Rt(zt,Tt){if(!zt)return!1;if(zt.contains)return zt.contains(Tt);for(var fn=Tt;fn;){if(fn===zt)return!0;fn=fn.parentNode}return!1}var yn="data-rc-order",tn="rc-util-key",Hn=new Map;function Yn(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Tt=zt.mark;return Tt?Tt.startsWith("data-")?Tt:"data-".concat(Tt):tn}function tr(zt){if(zt.attachTo)return zt.attachTo;var Tt=document.querySelector("head");return Tt||document.body}function Qe(zt){return zt==="queue"?"prependQueue":zt?"prepend":"append"}function we(zt){return Array.from((Hn.get(zt)||zt).children).filter(function(Tt){return Tt.tagName==="STYLE"})}function At(zt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Le())return null;var fn=Tt.csp,Bn=Tt.prepend,Qn=document.createElement("style");Qn.setAttribute(yn,Qe(Bn)),fn!=null&&fn.nonce&&(Qn.nonce=fn==null?void 0:fn.nonce),Qn.innerHTML=zt;var Or=tr(Tt),Zr=Or.firstChild;if(Bn){if(Bn==="queue"){var Jr=we(Or).filter(function(ri){return["prepend","prependQueue"].includes(ri.getAttribute(yn))});if(Jr.length)return Or.insertBefore(Qn,Jr[Jr.length-1].nextSibling),Qn}Or.insertBefore(Qn,Zr)}else Or.appendChild(Qn);return Qn}function Mn(zt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=tr(Tt);return we(fn).find(function(Bn){return Bn.getAttribute(Yn(Tt))===zt})}function _t(zt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=Mn(zt,Tt);if(fn){var Bn=tr(Tt);Bn.removeChild(fn)}}function $e(zt,Tt){var fn=Hn.get(zt);if(!fn||!Rt(document,fn)){var Bn=At("",Tt),Qn=Bn.parentNode;Hn.set(zt,Qn),zt.removeChild(Bn)}}function dt(){Hn.clear()}function qt(zt,Tt){var fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Bn=tr(fn);$e(Bn,fn);var Qn=Mn(Tt,fn);if(Qn){var Or,Zr;if((Or=fn.csp)!==null&&Or!==void 0&&Or.nonce&&Qn.nonce!==((Zr=fn.csp)===null||Zr===void 0?void 0:Zr.nonce)){var Jr;Qn.nonce=(Jr=fn.csp)===null||Jr===void 0?void 0:Jr.nonce}return Qn.innerHTML!==zt&&(Qn.innerHTML=zt),Qn}var ri=At(zt,fn);return ri.setAttribute(Yn(fn),Tt),ri}var Xn;function bn(zt){if(typeof document=="undefined")return 0;if(zt||Xn===void 0){var Tt=document.createElement("div");Tt.style.width="100%",Tt.style.height="200px";var fn=document.createElement("div"),Bn=fn.style;Bn.position="absolute",Bn.top="0",Bn.left="0",Bn.pointerEvents="none",Bn.visibility="hidden",Bn.width="200px",Bn.height="150px",Bn.overflow="hidden",fn.appendChild(Tt),document.body.appendChild(fn);var Qn=Tt.offsetWidth;fn.style.overflow="scroll";var Or=Tt.offsetWidth;Qn===Or&&(Or=fn.clientWidth),document.body.removeChild(fn),Xn=Qn-Or}return Xn}function un(zt){var Tt=zt.match(/^(.*)px$/),fn=Number(Tt==null?void 0:Tt[1]);return Number.isNaN(fn)?bn():fn}function nn(zt){if(typeof document=="undefined"||!zt||!(zt instanceof Element))return{width:0,height:0};var Tt=getComputedStyle(zt,"::-webkit-scrollbar"),fn=Tt.width,Bn=Tt.height;return{width:un(fn),height:un(Bn)}}function xn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Pn="rc-util-locker-".concat(Date.now()),De=0;function ue(zt){var Tt=!!zt,fn=ve.useState(function(){return De+=1,"".concat(Pn,"_").concat(De)}),Bn=(0,qe.Z)(fn,1),Qn=Bn[0];ht(function(){if(Tt){var Or=nn(document.body).width,Zr=xn();qt(`
html body {
overflow-y: hidden;
`.concat(Zr?"width: calc(100% - ".concat(Or,"px);"):"",`
}`),Qn)}else _t(Qn);return function(){_t(Qn)}},[Tt,Qn])}var ce=!1;function he(zt){return typeof zt=="boolean"&&(ce=zt),ce}var fe=function(Tt){return Tt===!1?!1:!Le()||!Tt?null:typeof Tt=="string"?document.querySelector(Tt):typeof Tt=="function"?Tt():Tt},le=ve.forwardRef(function(zt,Tt){var fn=zt.open,Bn=zt.autoLock,Qn=zt.getContainer,Or=zt.debug,Zr=zt.autoDestroy,Jr=Zr===void 0?!0:Zr,ri=zt.children,qr=ve.useState(fn),fi=(0,qe.Z)(qr,2),Ai=fi[0],jr=fi[1],wi=Ai||fn;ve.useEffect(function(){(Jr||fn)&&jr(fn)},[fn,Jr]);var Di=ve.useState(function(){return fe(Qn)}),Li=(0,qe.Z)(Di,2),Te=Li[0],He=Li[1];ve.useEffect(function(){var Wn=fe(Qn);He(Wn!=null?Wn:null)});var Ke=Jt(wi&&!Te,Or),Ge=(0,qe.Z)(Ke,2),ut=Ge[0],vt=Ge[1],Kt=Te!=null?Te:ut;ue(Bn&&fn&&Le()&&(Kt===ut||Kt===document.body));var vn=null;if(ri&&Se(ri)&&Tt){var kn=ri;vn=kn.ref}var yr=lt(vn,Tt);if(!wi||!Le()||Te===void 0)return null;var Pr=Kt===!1||he(),cr=ri;return Tt&&(cr=ve.cloneElement(ri,{ref:yr})),ve.createElement(je.Provider,{value:vt},Pr?cr:(0,ke.createPortal)(cr,Kt))}),Me=le,Ve=Me;function ft(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ht=ft()?ve.useLayoutEffect:ve.useEffect,Zt=function(Tt,fn){var Bn=ve.useRef(!0);Ht(function(){return Tt(Bn.current)},fn),Ht(function(){return Bn.current=!1,function(){Bn.current=!0}},[])},jt=function(Tt,fn){Zt(function(Bn){if(!Bn)return Tt()},fn)},$t=Zt,Je=ve.createContext(null),Et=ve.createContext({}),Lt=Je,Xt=se(4942),wt=se(87462),Nn=se(62874),et={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Tt){var fn=Tt.keyCode;if(Tt.altKey&&!Tt.ctrlKey||Tt.metaKey||fn>=et.F1&&fn<=et.F12)return!1;switch(fn){case et.ALT:case et.CAPS_LOCK:case et.CONTEXT_MENU:case et.CTRL:case et.DOWN:case et.END:case et.ESC:case et.HOME:case et.INSERT:case et.LEFT:case et.MAC_FF_META:case et.META:case et.NUMLOCK:case et.NUM_CENTER:case et.PAGE_DOWN:case et.PAGE_UP:case et.PAUSE:case et.PRINT_SCREEN:case et.RIGHT:case et.SHIFT:case et.UP:case et.WIN_KEY:case et.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Tt){if(Tt>=et.ZERO&&Tt<=et.NINE||Tt>=et.NUM_ZERO&&Tt<=et.NUM_MULTIPLY||Tt>=et.A&&Tt<=et.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Tt===0)return!0;switch(Tt){case et.SPACE:case et.QUESTION_MARK:case et.NUM_PLUS:case et.NUM_MINUS:case et.NUM_PERIOD:case et.NUM_DIVISION:case et.SEMICOLON:case et.DASH:case et.EQUALS:case et.COMMA:case et.PERIOD:case et.SLASH:case et.APOSTROPHE:case et.SINGLE_QUOTE:case et.OPEN_SQUARE_BRACKET:case et.BACKSLASH:case et.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},It=et,gn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,hn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,An="".concat(gn," ").concat(hn).split(/[\s\n]+/),Vn="aria-",mr="data-";function ur(zt,Tt){return zt.indexOf(Tt)===0}function dr(zt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fn;Tt===!1?fn={aria:!0,data:!0,attr:!0}:Tt===!0?fn={aria:!0}:fn=(0,Re.Z)({},Tt);var Bn={};return Object.keys(zt).forEach(function(Qn){(fn.aria&&(Qn==="role"||ur(Qn,Vn))||fn.data&&ur(Qn,mr)||fn.attr&&An.includes(Qn))&&(Bn[Qn]=zt[Qn])}),Bn}function Fr(zt){var Tt=React.useRef();Tt.current=zt;var fn=React.useCallback(function(){for(var Bn,Qn=arguments.length,Or=new Array(Qn),Zr=0;Zr<Qn;Zr++)Or[Zr]=arguments[Zr];return(Bn=Tt.current)===null||Bn===void 0?void 0:Bn.call.apply(Bn,[Tt].concat(Or))},[]);return fn}function nr(zt){var Tt=React.useRef(!1),fn=React.useState(zt),Bn=_slicedToArray(fn,2),Qn=Bn[0],Or=Bn[1];React.useEffect(function(){return Tt.current=!1,function(){Tt.current=!0}},[]);function Zr(Jr,ri){ri&&Tt.current||Or(Jr)}return[Qn,Zr]}function _r(zt){return zt!==void 0}function oi(zt,Tt){var fn=Tt||{},Bn=fn.defaultValue,Qn=fn.value,Or=fn.onChange,Zr=fn.postState,Jr=useState(function(){return _r(Qn)?Qn:_r(Bn)?typeof Bn=="function"?Bn():Bn:typeof zt=="function"?zt():zt}),ri=_slicedToArray(Jr,2),qr=ri[0],fi=ri[1],Ai=Qn!==void 0?Qn:qr,jr=Zr?Zr(Ai):Ai,wi=useEvent(Or),Di=useState([Ai]),Li=_slicedToArray(Di,2),Te=Li[0],He=Li[1];useLayoutUpdateEffect(function(){var Ge=Te[0];qr!==Ge&&wi(qr,Ge)},[Te]),useLayoutUpdateEffect(function(){_r(Qn)||fi(Qn)},[Qn]);var Ke=useEvent(function(Ge,ut){fi(Ge,ut),He([Ai],ut)});return[jr,Ke]}var Wr=se(33993);function xi(zt,Tt,fn){var Bn=ve.useRef({});return(!("value"in Bn.current)||fn(Bn.current.condition,Tt))&&(Bn.current.value=zt(),Bn.current.condition=Tt),Bn.current.value}function ti(zt,Tt){typeof zt=="function"?zt(Tt):(0,rt.Z)(zt)==="object"&&zt&&"current"in zt&&(zt.current=Tt)}function Ct(){for(var zt=arguments.length,Tt=new Array(zt),fn=0;fn<zt;fn++)Tt[fn]=arguments[fn];var Bn=Tt.filter(function(Qn){return Qn});return Bn.length<=1?Bn[0]:function(Qn){Tt.forEach(function(Or){ti(Or,Qn)})}}function wn(){for(var zt=arguments.length,Tt=new Array(zt),fn=0;fn<zt;fn++)Tt[fn]=arguments[fn];return xi(function(){return Ct.apply(void 0,Tt)},Tt,function(Bn,Qn){return Bn.length!==Qn.length||Bn.every(function(Or,Zr){return Or!==Qn[Zr]})})}function Rn(zt){var Tt,fn,Bn=isMemo(zt)?zt.type.type:zt.type;return!(typeof Bn=="function"&&!((Tt=Bn.prototype)!==null&&Tt!==void 0&&Tt.render)||typeof zt=="function"&&!((fn=zt.prototype)!==null&&fn!==void 0&&fn.render))}function an(zt){return!isValidElement(zt)||isFragment(zt)?!1:Rn(zt)}function vr(zt,Tt,fn,Bn){if(!Tt.length)return fn;var Qn=_toArray(Tt),Or=Qn[0],Zr=Qn.slice(1),Jr;return!zt&&typeof Or=="number"?Jr=[]:Array.isArray(zt)?Jr=_toConsumableArray(zt):Jr=_objectSpread({},zt),Bn&&fn===void 0&&Zr.length===1?delete Jr[Or][Zr[0]]:Jr[Or]=vr(Jr[Or],Zr,fn,Bn),Jr}function lr(zt,Tt,fn){var Bn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Tt.length&&Bn&&fn===void 0&&!get(zt,Tt.slice(0,-1))?zt:vr(zt,Tt,fn,Bn)}function Gn(zt){return _typeof(zt)==="object"&&zt!==null&&Object.getPrototypeOf(zt)===Object.prototype}function jn(zt){return Array.isArray(zt)?[]:{}}var nt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function mt(){for(var zt=arguments.length,Tt=new Array(zt),fn=0;fn<zt;fn++)Tt[fn]=arguments[fn];var Bn=jn(Tt[0]);return Tt.forEach(function(Qn){function Or(Zr,Jr){var ri=new Set(Jr),qr=get(Qn,Zr),fi=Array.isArray(qr);if(fi||Gn(qr)){if(!ri.has(qr)){ri.add(qr);var Ai=get(Bn,Zr);fi?Bn=lr(Bn,Zr,[]):(!Ai||_typeof(Ai)!=="object")&&(Bn=lr(Bn,Zr,jn(qr))),nt(qr).forEach(function(jr){Or([].concat(_toConsumableArray(Zr),[jr]),ri)})}}else Bn=lr(Bn,Zr,qr)}Or([])}),Bn}var Bt={},rn=[],Ze=function(Tt){rn.push(Tt)};function St(zt,Tt){if(0)var fn}function Vt(zt,Tt){if(0)var fn}function Nt(){Bt={}}function cn(zt,Tt,fn){!Tt&&!Bt[fn]&&(zt(!1,fn),Bt[fn]=!0)}function on(zt,Tt){cn(St,zt,Tt)}function Kn(zt,Tt){cn(Vt,zt,Tt)}on.preMessage=Ze,on.resetWarned=Nt,on.noteOnce=Kn;var Hr=on,hr=function(Tt){var fn=Tt.prefixCls,Bn=Tt.className,Qn=Tt.style,Or=Tt.children,Zr=Tt.containerRef,Jr=Tt.id,ri=Tt.onMouseEnter,qr=Tt.onMouseOver,fi=Tt.onMouseLeave,Ai=Tt.onClick,jr=Tt.onKeyDown,wi=Tt.onKeyUp,Di={onMouseEnter:ri,onMouseOver:qr,onMouseLeave:fi,onClick:Ai,onKeyDown:jr,onKeyUp:wi},Li=ve.useContext(Et),Te=Li.panel,He=wn(Te,Zr);return ve.createElement(ve.Fragment,null,ve.createElement("div",(0,wt.Z)({id:Jr,className:Pe()("".concat(fn,"-content"),Bn),style:(0,Re.Z)({},Qn),"aria-modal":"true",role:"dialog",ref:He},Di),Or))},or=hr;function Ar(zt){return typeof zt=="string"&&String(Number(zt))===zt?(Hr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(zt)):zt}function Lr(zt){warning(!("wrapperClassName"in zt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!zt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var kt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function gt(zt,Tt){var fn,Bn,Qn,Or,Zr=zt.prefixCls,Jr=zt.open,ri=zt.placement,qr=zt.inline,fi=zt.push,Ai=zt.forceRender,jr=zt.autoFocus,wi=zt.keyboard,Di=zt.rootClassName,Li=zt.rootStyle,Te=zt.zIndex,He=zt.className,Ke=zt.id,Ge=zt.style,ut=zt.motion,vt=zt.width,Kt=zt.height,vn=zt.children,kn=zt.contentWrapperStyle,yr=zt.mask,Pr=zt.maskClosable,cr=zt.maskMotion,Wn=zt.maskClassName,Fn=zt.maskStyle,$n=zt.afterOpenChange,rr=zt.onClose,Ir=zt.onMouseEnter,gr=zt.onMouseOver,fr=zt.onMouseLeave,wr=zt.onClick,Sr=zt.onKeyDown,Nr=zt.onKeyUp,Fe=ve.useRef(),We=ve.useRef(),Wt=ve.useRef();ve.useImperativeHandle(Tt,function(){return Fe.current});var bt=function(Tn){var Er=Tn.keyCode,zr=Tn.shiftKey;switch(Er){case It.TAB:{if(Er===It.TAB){if(!zr&&document.activeElement===Wt.current){var Br;(Br=We.current)===null||Br===void 0||Br.focus({preventScroll:!0})}else if(zr&&document.activeElement===We.current){var Cr;(Cr=Wt.current)===null||Cr===void 0||Cr.focus({preventScroll:!0})}}break}case It.ESC:{rr&&wi&&(Tn.stopPropagation(),rr(Tn));break}}};ve.useEffect(function(){if(Jr&&jr){var er;(er=Fe.current)===null||er===void 0||er.focus({preventScroll:!0})}},[Jr]);var sn=ve.useState(!1),Ln=(0,qe.Z)(sn,2),zn=Ln[0],ar=Ln[1],ot=ve.useContext(Lt),Ye;fi===!1?Ye={distance:0}:fi===!0?Ye={}:Ye=fi||{};var yt=(fn=(Bn=(Qn=Ye)===null||Qn===void 0?void 0:Qn.distance)!==null&&Bn!==void 0?Bn:ot==null?void 0:ot.pushDistance)!==null&&fn!==void 0?fn:180,Qt=ve.useMemo(function(){return{pushDistance:yt,push:function(){ar(!0)},pull:function(){ar(!1)}}},[yt]);ve.useEffect(function(){if(Jr){var er;ot==null||(er=ot.push)===null||er===void 0||er.call(ot)}else{var Tn;ot==null||(Tn=ot.pull)===null||Tn===void 0||Tn.call(ot)}},[Jr]),ve.useEffect(function(){return function(){var er;ot==null||(er=ot.pull)===null||er===void 0||er.call(ot)}},[]);var _n=yr&&ve.createElement(Nn.Z,(0,wt.Z)({key:"mask"},cr,{visible:Jr}),function(er,Tn){var Er=er.className,zr=er.style;return ve.createElement("div",{className:Pe()("".concat(Zr,"-mask"),Er,Wn),style:(0,Re.Z)((0,Re.Z)({},zr),Fn),onClick:Pr&&Jr?rr:void 0,ref:Tn})}),mn=typeof ut=="function"?ut(ri):ut,ln={};if(zn&&yt)switch(ri){case"top":ln.transform="translateY(".concat(yt,"px)");break;case"bottom":ln.transform="translateY(".concat(-yt,"px)");break;case"left":ln.transform="translateX(".concat(yt,"px)");break;default:ln.transform="translateX(".concat(-yt,"px)");break}ri==="left"||ri==="right"?ln.width=Ar(vt):ln.height=Ar(Kt);var sr={onMouseEnter:Ir,onMouseOver:gr,onMouseLeave:fr,onClick:wr,onKeyDown:Sr,onKeyUp:Nr},ir=ve.createElement(Nn.Z,(0,wt.Z)({key:"panel"},mn,{visible:Jr,forceRender:Ai,onVisibleChanged:function(Tn){$n==null||$n(Tn)},removeOnLeave:!1,leavedClassName:"".concat(Zr,"-content-wrapper-hidden")}),function(er,Tn){var Er=er.className,zr=er.style;return ve.createElement("div",(0,wt.Z)({className:Pe()("".concat(Zr,"-content-wrapper"),Er),style:(0,Re.Z)((0,Re.Z)((0,Re.Z)({},ln),zr),kn)},dr(zt,{data:!0})),ve.createElement(or,(0,wt.Z)({id:Ke,containerRef:Tn,prefixCls:Zr,className:He,style:Ge},sr),vn))}),xr=(0,Re.Z)({},Li);return Te&&(xr.zIndex=Te),ve.createElement(Lt.Provider,{value:Qt},ve.createElement("div",{className:Pe()(Zr,"".concat(Zr,"-").concat(ri),Di,(Or={},(0,Xt.Z)(Or,"".concat(Zr,"-open"),Jr),(0,Xt.Z)(Or,"".concat(Zr,"-inline"),qr),Or)),style:xr,tabIndex:-1,ref:Fe,onKeyDown:bt},_n,ve.createElement("div",{tabIndex:0,ref:We,style:kt,"aria-hidden":"true","data-sentinel":"start"}),ir,ve.createElement("div",{tabIndex:0,ref:Wt,style:kt,"aria-hidden":"true","data-sentinel":"end"})))}var Dt=ve.forwardRef(gt),En=Dt,qn=function(Tt){var fn=Tt.open,Bn=fn===void 0?!1:fn,Qn=Tt.prefixCls,Or=Qn===void 0?"rc-drawer":Qn,Zr=Tt.placement,Jr=Zr===void 0?"right":Zr,ri=Tt.autoFocus,qr=ri===void 0?!0:ri,fi=Tt.keyboard,Ai=fi===void 0?!0:fi,jr=Tt.width,wi=jr===void 0?378:jr,Di=Tt.mask,Li=Di===void 0?!0:Di,Te=Tt.maskClosable,He=Te===void 0?!0:Te,Ke=Tt.getContainer,Ge=Tt.forceRender,ut=Tt.afterOpenChange,vt=Tt.destroyOnClose,Kt=Tt.onMouseEnter,vn=Tt.onMouseOver,kn=Tt.onMouseLeave,yr=Tt.onClick,Pr=Tt.onKeyDown,cr=Tt.onKeyUp,Wn=Tt.panelRef,Fn=ve.useState(!1),$n=(0,qe.Z)(Fn,2),rr=$n[0],Ir=$n[1],gr=ve.useState(!1),fr=(0,qe.Z)(gr,2),wr=fr[0],Sr=fr[1];$t(function(){Sr(!0)},[]);var Nr=wr?Bn:!1,Fe=ve.useRef(),We=ve.useRef();$t(function(){Nr&&(We.current=document.activeElement)},[Nr]);var Wt=function(ar){var ot;if(Ir(ar),ut==null||ut(ar),!ar&&We.current&&!((ot=Fe.current)!==null&&ot!==void 0&&ot.contains(We.current))){var Ye;(Ye=We.current)===null||Ye===void 0||Ye.focus({preventScroll:!0})}},bt=ve.useMemo(function(){return{panel:Wn}},[Wn]);if(!Ge&&!rr&&!Nr&&vt)return null;var sn={onMouseEnter:Kt,onMouseOver:vn,onMouseLeave:kn,onClick:yr,onKeyDown:Pr,onKeyUp:cr},Ln=(0,Re.Z)((0,Re.Z)({},Tt),{},{open:Nr,prefixCls:Or,placement:Jr,autoFocus:qr,keyboard:Ai,width:wi,mask:Li,maskClosable:He,inline:Ke===!1,afterOpenChange:Wt,ref:Fe},sn);return ve.createElement(Et.Provider,{value:bt},ve.createElement(Ve,{open:Nr||Ge||rr,autoDestroy:!1,getContainer:Ke,autoLock:Li&&(Nr||rr)},ve.createElement(En,Ln)))},Cn=qn,Dn=Cn,In=se(33603),Un=se(53124),kr=se(65223),pn=se(69760),Qr=zt=>{const{prefixCls:Tt,title:fn,footer:Bn,extra:Qn,closeIcon:Or,closable:Zr,onClose:Jr,headerStyle:ri,drawerStyle:qr,bodyStyle:fi,footerStyle:Ai,children:jr}=zt,wi=ve.useCallback(Ke=>ve.createElement("button",{type:"button",onClick:Jr,"aria-label":"Close",className:`${Tt}-close`},Ke),[Jr]),[Di,Li]=(0,pn.Z)(Zr,Or,wi,void 0,!0),Te=ve.useMemo(()=>!fn&&!Di?null:ve.createElement("div",{style:ri,className:Pe()(`${Tt}-header`,{[`${Tt}-header-close-only`]:Di&&!fn&&!Qn})},ve.createElement("div",{className:`${Tt}-header-title`},Li,fn&&ve.createElement("div",{className:`${Tt}-title`},fn)),Qn&&ve.createElement("div",{className:`${Tt}-extra`},Qn)),[Di,Li,Qn,ri,Tt,fn]),He=ve.useMemo(()=>{if(!Bn)return null;const Ke=`${Tt}-footer`;return ve.createElement("div",{className:Ke,style:Ai},Bn)},[Bn,Ai,Tt]);return ve.createElement("div",{className:`${Tt}-wrapper-body`,style:qr},Te,ve.createElement("div",{className:`${Tt}-body`,style:fi},jr),He)},Fi=se(4173),Ni=se(67968),Ci=se(45503),Ei=zt=>{const{componentCls:Tt,motionDurationSlow:fn}=zt,Bn={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${fn}`}}};return{[Tt]:{[`${Tt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${fn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Tt}-panel-motion`]:{"&-left":[Bn,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Bn,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Bn,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Bn,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const pi=zt=>{const{componentCls:Tt,zIndexPopup:fn,colorBgMask:Bn,colorBgElevated:Qn,motionDurationSlow:Or,motionDurationMid:Zr,padding:Jr,paddingLG:ri,fontSizeLG:qr,lineHeightLG:fi,lineWidth:Ai,lineType:jr,colorSplit:wi,marginSM:Di,colorIcon:Li,colorIconHover:Te,colorText:He,fontWeightStrong:Ke,footerPaddingBlock:Ge,footerPaddingInline:ut}=zt,vt=`${Tt}-content-wrapper`;return{[Tt]:{position:"fixed",inset:0,zIndex:fn,pointerEvents:"none","&-pure":{position:"relative",background:Qn,[`&${Tt}-left`]:{boxShadow:zt.boxShadowDrawerLeft},[`&${Tt}-right`]:{boxShadow:zt.boxShadowDrawerRight},[`&${Tt}-top`]:{boxShadow:zt.boxShadowDrawerUp},[`&${Tt}-bottom`]:{boxShadow:zt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Tt}-mask`]:{position:"absolute",inset:0,zIndex:fn,background:Bn,pointerEvents:"auto"},[vt]:{position:"absolute",zIndex:fn,maxWidth:"100vw",transition:`all ${Or}`,"&-hidden":{display:"none"}},[`&-left > ${vt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:zt.boxShadowDrawerLeft},[`&-right > ${vt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:zt.boxShadowDrawerRight},[`&-top > ${vt}`]:{top:0,insetInline:0,boxShadow:zt.boxShadowDrawerUp},[`&-bottom > ${vt}`]:{bottom:0,insetInline:0,boxShadow:zt.boxShadowDrawerDown},[`${Tt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Qn,pointerEvents:"auto"},[`${Tt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Tt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Jr}px ${ri}px`,fontSize:qr,lineHeight:fi,borderBottom:`${Ai}px ${jr} ${wi}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Tt}-extra`]:{flex:"none"},[`${Tt}-close`]:{display:"inline-block",marginInlineEnd:Di,color:Li,fontWeight:Ke,fontSize:qr,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Zr}`,textRendering:"auto","&:focus, &:hover":{color:Te,textDecoration:"none"}},[`${Tt}-title`]:{flex:1,margin:0,color:He,fontWeight:zt.fontWeightStrong,fontSize:qr,lineHeight:fi},[`${Tt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ri,overflow:"auto"},[`${Tt}-footer`]:{flexShrink:0,padding:`${Ge}px ${ut}px`,borderTop:`${Ai}px ${jr} ${wi}`},"&-rtl":{direction:"rtl"}}}};var Hi=(0,Ni.Z)("Drawer",zt=>{const Tt=(0,Ci.TS)(zt,{});return[pi(Tt),Ei(Tt)]},zt=>({zIndexPopup:zt.zIndexPopupBase,footerPaddingBlock:zt.paddingXS,footerPaddingInline:zt.padding})),$i=se(16569),ci=function(zt,Tt){var fn={};for(var Bn in zt)Object.prototype.hasOwnProperty.call(zt,Bn)&&Tt.indexOf(Bn)<0&&(fn[Bn]=zt[Bn]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,Bn=Object.getOwnPropertySymbols(zt);Qn<Bn.length;Qn++)Tt.indexOf(Bn[Qn])<0&&Object.prototype.propertyIsEnumerable.call(zt,Bn[Qn])&&(fn[Bn[Qn]]=zt[Bn[Qn]]);return fn};const Mi=null,Ji={distance:180},ca=zt=>{var Tt;const{rootClassName:fn,width:Bn,height:Qn,size:Or="default",mask:Zr=!0,push:Jr=Ji,open:ri,afterOpenChange:qr,onClose:fi,prefixCls:Ai,getContainer:jr,style:wi,className:Di,visible:Li,afterVisibleChange:Te}=zt,He=ci(zt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ke,getPrefixCls:Ge,direction:ut,drawer:vt}=ve.useContext(Un.E_),Kt=Ge("drawer",Ai),[vn,kn]=Hi(Kt),yr=jr===void 0&&Ke?()=>Ke(document.body):jr,Pr=Pe()({"no-mask":!Zr,[`${Kt}-rtl`]:ut==="rtl"},fn,kn),cr=ve.useMemo(()=>Bn!=null?Bn:Or==="large"?736:378,[Bn,Or]),Wn=ve.useMemo(()=>Qn!=null?Qn:Or==="large"?736:378,[Qn,Or]),Fn={motionName:(0,In.m)(Kt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},$n=Ir=>({motionName:(0,In.m)(Kt,`panel-motion-${Ir}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),rr=(0,$i.H)();return vn(ve.createElement(Fi.BR,null,ve.createElement(kr.Ux,{status:!0,override:!0},ve.createElement(Dn,Object.assign({prefixCls:Kt,onClose:fi,maskMotion:Fn,motion:$n},He,{open:ri!=null?ri:Li,mask:Zr,push:Jr,width:cr,height:Wn,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),wi),className:Pe()(vt==null?void 0:vt.className,Di),rootClassName:Pr,getContainer:yr,afterOpenChange:qr!=null?qr:Te,panelRef:rr}),ve.createElement(Qr,Object.assign({prefixCls:Kt},He,{onClose:fi}))))))},na=zt=>{const{prefixCls:Tt,style:fn,className:Bn,placement:Qn="right"}=zt,Or=ci(zt,["prefixCls","style","className","placement"]),{getPrefixCls:Zr}=ve.useContext(Un.E_),Jr=Zr("drawer",Tt),[ri,qr]=Hi(Jr),fi=Pe()(Jr,`${Jr}-pure`,`${Jr}-${Qn}`,qr,Bn);return ri(ve.createElement("div",{className:fi,style:fn},ve.createElement(Qr,Object.assign({prefixCls:Jr},Or))))};ca._InternalPanelDoNotUseOrYouWillBeFired=na;var hi=ca},35874:function(dn,en,se){"use strict";se.d(en,{Z:function(){return fe}});var ae=se(67294),Pe=se(91034),Re=se(94184),qe=se.n(Re),ve=se(87462),ke=se(4942),Le=se(97685),xe=se(45987),me=se(62709),Ie=se(71002),st=se(12060);function Ne(le,Me,Ve){var ft=React.useRef({});return(!("value"in ft.current)||Ve(ft.current.condition,Me))&&(ft.current.value=le(),ft.current.condition=Me),ft.current.value}function xt(le,Me){typeof le=="function"?le(Me):(0,Ie.Z)(le)==="object"&&le&&"current"in le&&(le.current=Me)}function pt(){for(var le=arguments.length,Me=new Array(le),Ve=0;Ve<le;Ve++)Me[Ve]=arguments[Ve];var ft=Me.filter(function(Ht){return Ht});return ft.length<=1?ft[0]:function(Ht){Me.forEach(function(Zt){xt(Zt,Ht)})}}function ct(){for(var le=arguments.length,Me=new Array(le),Ve=0;Ve<le;Ve++)Me[Ve]=arguments[Ve];return useMemo(function(){return pt.apply(void 0,Me)},Me,function(ft,Ht){return ft.length===Ht.length&&ft.every(function(Zt,jt){return Zt===Ht[jt]})})}function rt(le){var Me,Ve,ft=(0,st.isMemo)(le)?le.type.type:le.type;return!(typeof ft=="function"&&!((Me=ft.prototype)!==null&&Me!==void 0&&Me.render)||typeof le=="function"&&!((Ve=le.prototype)!==null&&Ve!==void 0&&Ve.render))}var Ee={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Me){var Ve=Me.keyCode;if(Me.altKey&&!Me.ctrlKey||Me.metaKey||Ve>=Ee.F1&&Ve<=Ee.F12)return!1;switch(Ve){case Ee.ALT:case Ee.CAPS_LOCK:case Ee.CONTEXT_MENU:case Ee.CTRL:case Ee.DOWN:case Ee.END:case Ee.ESC:case Ee.HOME:case Ee.INSERT:case Ee.LEFT:case Ee.MAC_FF_META:case Ee.META:case Ee.NUMLOCK:case Ee.NUM_CENTER:case Ee.PAGE_DOWN:case Ee.PAGE_UP:case Ee.PAUSE:case Ee.PRINT_SCREEN:case Ee.RIGHT:case Ee.SHIFT:case Ee.UP:case Ee.WIN_KEY:case Ee.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Me){if(Me>=Ee.ZERO&&Me<=Ee.NINE||Me>=Ee.NUM_ZERO&&Me<=Ee.NUM_MULTIPLY||Me>=Ee.A&&Me<=Ee.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Me===0)return!0;switch(Me){case Ee.SPACE:case Ee.QUESTION_MARK:case Ee.NUM_PLUS:case Ee.NUM_MINUS:case Ee.NUM_PERIOD:case Ee.NUM_DIVISION:case Ee.SEMICOLON:case Ee.DASH:case Ee.EQUALS:case Ee.COMMA:case Ee.PERIOD:case Ee.SLASH:case Ee.APOSTROPHE:case Ee.SINGLE_QUOTE:case Ee.OPEN_SQUARE_BRACKET:case Ee.BACKSLASH:case Ee.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},at=Ee,Yt=function(Me){return+setTimeout(Me,16)},Xe=function(Me){return clearTimeout(Me)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Yt=function(Me){return window.requestAnimationFrame(Me)},Xe=function(Me){return window.cancelAnimationFrame(Me)});var lt=0,Se=new Map;function Ce(le){Se.delete(le)}var je=function(Me){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;lt+=1;var ft=lt;function Ht(Zt){if(Zt===0)Ce(ft),Me();else{var jt=Yt(function(){Ht(Zt-1)});Se.set(ft,jt)}}return Ht(Ve),ft};je.cancel=function(le){var Me=Se.get(le);return Ce(Me),Xe(Me)};var Ue=je,Mt=at.ESC,ht=at.TAB;function Ft(le){var Me=le.visible,Ve=le.triggerRef,ft=le.onVisibleChange,Ht=le.autoFocus,Zt=le.overlayRef,jt=ae.useRef(!1),$t=function(){if(Me){var Xt,wt;(Xt=Ve.current)===null||Xt===void 0||(wt=Xt.focus)===null||wt===void 0||wt.call(Xt),ft==null||ft(!1)}},Je=function(){var Xt;return(Xt=Zt.current)!==null&&Xt!==void 0&&Xt.focus?(Zt.current.focus(),jt.current=!0,!0):!1},Et=function(Xt){switch(Xt.keyCode){case Mt:$t();break;case ht:{var wt=!1;jt.current||(wt=Je()),wt?Xt.preventDefault():$t();break}}};ae.useEffect(function(){return Me?(window.addEventListener("keydown",Et),Ht&&Ue(Je,3),function(){window.removeEventListener("keydown",Et),jt.current=!1}):function(){jt.current=!1}},[Me])}var tt=(0,ae.forwardRef)(function(le,Me){var Ve=le.overlay,ft=le.arrow,Ht=le.prefixCls,Zt=(0,ae.useMemo)(function(){var $t;return typeof Ve=="function"?$t=Ve():$t=Ve,$t},[Ve]),jt=pt(Me,Zt==null?void 0:Zt.ref);return ae.createElement(ae.Fragment,null,ft&&ae.createElement("div",{className:"".concat(Ht,"-arrow")}),ae.cloneElement(Zt,{ref:rt(Zt)?jt:void 0}))}),Jt=tt,Rt={adjustX:1,adjustY:1},yn=[0,0],tn={topLeft:{points:["bl","tl"],overflow:Rt,offset:[0,-4],targetOffset:yn},top:{points:["bc","tc"],overflow:Rt,offset:[0,-4],targetOffset:yn},topRight:{points:["br","tr"],overflow:Rt,offset:[0,-4],targetOffset:yn},bottomLeft:{points:["tl","bl"],overflow:Rt,offset:[0,4],targetOffset:yn},bottom:{points:["tc","bc"],overflow:Rt,offset:[0,4],targetOffset:yn},bottomRight:{points:["tr","br"],overflow:Rt,offset:[0,4],targetOffset:yn}},Hn=tn,Yn=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function tr(le,Me){var Ve,ft=le.arrow,Ht=ft===void 0?!1:ft,Zt=le.prefixCls,jt=Zt===void 0?"rc-dropdown":Zt,$t=le.transitionName,Je=le.animation,Et=le.align,Lt=le.placement,Xt=Lt===void 0?"bottomLeft":Lt,wt=le.placements,Nn=wt===void 0?Hn:wt,et=le.getPopupContainer,It=le.showAction,gn=le.hideAction,hn=le.overlayClassName,An=le.overlayStyle,Vn=le.visible,mr=le.trigger,ur=mr===void 0?["hover"]:mr,dr=le.autoFocus,Fr=le.overlay,nr=le.children,_r=le.onVisibleChange,oi=(0,xe.Z)(le,Yn),Wr=ae.useState(),xi=(0,Le.Z)(Wr,2),ti=xi[0],Ct=xi[1],wn="visible"in le?Vn:ti,Rn=ae.useRef(null),an=ae.useRef(null),vr=ae.useRef(null);ae.useImperativeHandle(Me,function(){return Rn.current});var lr=function(Vt){Ct(Vt),_r==null||_r(Vt)};Ft({visible:wn,triggerRef:vr,onVisibleChange:lr,autoFocus:dr,overlayRef:an});var Gn=function(Vt){var Nt=le.onOverlayClick;Ct(!1),Nt&&Nt(Vt)},jn=function(){return ae.createElement(Jt,{ref:an,overlay:Fr,prefixCls:jt,arrow:Ht})},nt=function(){return typeof Fr=="function"?jn:jn()},mt=function(){var Vt=le.minOverlayWidthMatchTrigger,Nt=le.alignPoint;return"minOverlayWidthMatchTrigger"in le?Vt:!Nt},Bt=function(){var Vt=le.openClassName;return Vt!==void 0?Vt:"".concat(jt,"-open")},rn=ae.cloneElement(nr,{className:qe()((Ve=nr.props)===null||Ve===void 0?void 0:Ve.className,wn&&Bt()),ref:rt(nr)?pt(vr,nr.ref):void 0}),Ze=gn;return!Ze&&ur.indexOf("contextMenu")!==-1&&(Ze=["click"]),ae.createElement(me.Z,(0,ve.Z)({builtinPlacements:Nn},oi,{prefixCls:jt,ref:Rn,popupClassName:qe()(hn,(0,ke.Z)({},"".concat(jt,"-show-arrow"),Ht)),popupStyle:An,action:ur,showAction:It,hideAction:Ze,popupPlacement:Xt,popupAlign:Et,popupTransitionName:$t,popupAnimation:Je,popupVisible:wn,stretch:mt()?"minWidth":"",popup:nt(),onPopupVisibleChange:lr,onPopupClick:Gn,getPopupContainer:et}),rn)}var Qe=ae.forwardRef(tr),we=Qe,At=se(60276),Mn=se(5663),_t=se(10366),$e=se(80636),dt=se(8745),qt=se(96159),Xn=se(53124),bn=se(68508),un=se(76529),nn=se(46605),xn=se(66748);const Pn=null,De=le=>{const{menu:Me,arrow:Ve,prefixCls:ft,children:Ht,trigger:Zt,disabled:jt,dropdownRender:$t,getPopupContainer:Je,overlayClassName:Et,rootClassName:Lt,open:Xt,onOpenChange:wt,visible:Nn,onVisibleChange:et,mouseEnterDelay:It=.15,mouseLeaveDelay:gn=.1,autoAdjustOverflow:hn=!0,placement:An="",overlay:Vn,transitionName:mr}=le,{getPopupContainer:ur,getPrefixCls:dr,direction:Fr}=ae.useContext(Xn.E_),nr=ae.useMemo(()=>{const rn=dr();return mr!==void 0?mr:An.includes("top")?`${rn}-slide-down`:`${rn}-slide-up`},[dr,An,mr]),_r=ae.useMemo(()=>An?An.includes("Center")?An.slice(0,An.indexOf("Center")):An:Fr==="rtl"?"bottomRight":"bottomLeft",[An,Fr]),oi=dr("dropdown",ft),[Wr,xi]=(0,xn.Z)(oi),[,ti]=(0,nn.Z)(),Ct=ae.Children.only(Ht),wn=(0,qt.Tm)(Ct,{className:qe()(`${oi}-trigger`,{[`${oi}-rtl`]:Fr==="rtl"},Ct.props.className),disabled:jt}),Rn=jt?[]:Zt;let an;Rn&&Rn.includes("contextMenu")&&(an=!0);const[vr,lr]=(0,Mn.Z)(!1,{value:Xt!=null?Xt:Nn}),Gn=(0,At.useEvent)(rn=>{wt==null||wt(rn),et==null||et(rn),lr(rn)}),jn=qe()(Et,Lt,xi,{[`${oi}-rtl`]:Fr==="rtl"}),nt=(0,$e.Z)({arrowPointAtCenter:typeof Ve=="object"&&Ve.pointAtCenter,autoAdjustOverflow:hn,offset:ti.marginXXS,arrowWidth:Ve?ti.sizePopupArrow:0,borderRadius:ti.borderRadius}),mt=ae.useCallback(()=>{lr(!1)},[]),Bt=()=>{let rn;return Me!=null&&Me.items?rn=ae.createElement(bn.default,Object.assign({},Me)):typeof Vn=="function"?rn=Vn():rn=Vn,$t&&(rn=$t(rn)),rn=ae.Children.only(typeof rn=="string"?ae.createElement("span",null,rn):rn),ae.createElement(un.J,{prefixCls:`${oi}-menu`,expandIcon:ae.createElement("span",{className:`${oi}-menu-submenu-arrow`},ae.createElement(Pe.Z,{className:`${oi}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:mt,validator:Ze=>{let{mode:St}=Ze}},rn)};return Wr(ae.createElement(we,Object.assign({alignPoint:an},(0,_t.Z)(le,["rootClassName"]),{mouseEnterDelay:It,mouseLeaveDelay:gn,visible:vr,builtinPlacements:nt,arrow:!!Ve,overlayClassName:jn,prefixCls:oi,getPopupContainer:Je||ur,transitionName:nr,trigger:Rn,overlay:Bt,placement:_r,onVisibleChange:Gn}),wn))};function ue(le){return Object.assign(Object.assign({},le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ce=(0,dt.Z)(De,"dropdown",le=>le,ue),he=le=>ae.createElement(ce,Object.assign({},le),ae.createElement("span",null));De._InternalPanelDoNotUseOrYouWillBeFired=he;var fe=De},85418:function(dn,en,se){"use strict";se.d(en,{Z:function(){return ct}});var ae=se(35874),Pe=se(94184),Re=se.n(Pe),qe=se(67294),ve=se(25877),ke=se(71577),Le=se(53124),xe=se(93421),me=se(4173),Ie=se(66748),st=function(rt,Ee){var at={};for(var Yt in rt)Object.prototype.hasOwnProperty.call(rt,Yt)&&Ee.indexOf(Yt)<0&&(at[Yt]=rt[Yt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Yt=Object.getOwnPropertySymbols(rt);Xe<Yt.length;Xe++)Ee.indexOf(Yt[Xe])<0&&Object.prototype.propertyIsEnumerable.call(rt,Yt[Xe])&&(at[Yt[Xe]]=rt[Yt[Xe]]);return at};const Ne=rt=>{const{getPopupContainer:Ee,getPrefixCls:at,direction:Yt}=qe.useContext(Le.E_),{prefixCls:Xe,type:lt="default",danger:Se,disabled:Ce,loading:je,onClick:Ue,htmlType:Mt,children:ht,className:Ft,menu:tt,arrow:Jt,autoFocus:Rt,overlay:yn,trigger:tn,align:Hn,open:Yn,onOpenChange:tr,placement:Qe,getPopupContainer:we,href:At,icon:Mn=qe.createElement(ve.Z,null),title:_t,buttonsRender:$e=jt=>jt,mouseEnterDelay:dt,mouseLeaveDelay:qt,overlayClassName:Xn,overlayStyle:bn,destroyPopupOnHide:un,dropdownRender:nn}=rt,xn=st(rt,["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"]),Pn=at("dropdown",Xe),De=`${Pn}-button`,[ue,ce]=(0,Ie.Z)(Pn),he={menu:tt,arrow:Jt,autoFocus:Rt,align:Hn,disabled:Ce,trigger:Ce?[]:tn,onOpenChange:tr,getPopupContainer:we||Ee,mouseEnterDelay:dt,mouseLeaveDelay:qt,overlayClassName:Xn,overlayStyle:bn,destroyPopupOnHide:un,dropdownRender:nn},{compactSize:fe,compactItemClassnames:le}=(0,me.ri)(Pn,Yt),Me=Re()(De,le,Ft,ce);"overlay"in rt&&(he.overlay=yn),"open"in rt&&(he.open=Yn),"placement"in rt?he.placement=Qe:he.placement=Yt==="rtl"?"bottomLeft":"bottomRight";const Ve=qe.createElement(ke.ZP,{type:lt,danger:Se,disabled:Ce,loading:je,onClick:Ue,htmlType:Mt,href:At,title:_t},ht),ft=qe.createElement(ke.ZP,{type:lt,danger:Se,icon:Mn}),[Ht,Zt]=$e([Ve,ft]);return ue(qe.createElement(xe.Z.Compact,Object.assign({className:Me,size:fe,block:!0},xn),Ht,qe.createElement(ae.Z,Object.assign({},he),Zt)))};Ne.__ANT_BUTTON=!0;var xt=Ne;const pt=ae.Z;pt.Button=xt;var ct=pt},66748:function(dn,en,se){"use strict";se.d(en,{Z:function(){return st}});var ae=se(14747),Pe=se(67771),Re=se(33297),qe=se(50438),ve=se(97414),ke=se(67968),Le=se(45503),me=Ne=>{const{componentCls:xt,menuCls:pt,colorError:ct,colorTextLightSolid:rt}=Ne,Ee=`${pt}-item`;return{[`${xt}, ${xt}-menu-submenu`]:{[`${pt} ${Ee}`]:{[`&${Ee}-danger:not(${Ee}-disabled)`]:{color:ct,"&:hover":{color:rt,backgroundColor:ct}}}}}};const Ie=Ne=>{const{componentCls:xt,menuCls:pt,zIndexPopup:ct,dropdownArrowDistance:rt,sizePopupArrow:Ee,antCls:at,iconCls:Yt,motionDurationMid:Xe,dropdownPaddingVertical:lt,fontSize:Se,dropdownEdgeChildPadding:Ce,colorTextDisabled:je,fontSizeIcon:Ue,controlPaddingHorizontal:Mt,colorBgElevated:ht}=Ne;return[{[xt]:Object.assign(Object.assign({},(0,ae.Wf)(Ne)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ct,display:"block","&::before":{position:"absolute",insetBlock:-rt+Ee/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${at}-btn`]:{[`& > ${Yt}-down, & > ${at}-btn-icon > ${Yt}-down`]:{fontSize:Ue}},[`${xt}-wrap`]:{position:"relative",[`${at}-btn > ${Yt}-down`]:{fontSize:Ue},[`${Yt}-down::before`]:{transition:`transform ${Xe}`}},[`${xt}-wrap-open`]:{[`${Yt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${at}-slide-down-enter${at}-slide-down-enter-active${xt}-placement-bottomLeft,
&${at}-slide-down-appear${at}-slide-down-appear-active${xt}-placement-bottomLeft,
&${at}-slide-down-enter${at}-slide-down-enter-active${xt}-placement-bottom,
&${at}-slide-down-appear${at}-slide-down-appear-active${xt}-placement-bottom,
&${at}-slide-down-enter${at}-slide-down-enter-active${xt}-placement-bottomRight,
&${at}-slide-down-appear${at}-slide-down-appear-active${xt}-placement-bottomRight`]:{animationName:Pe.fJ},[`&${at}-slide-up-enter${at}-slide-up-enter-active${xt}-placement-topLeft,
&${at}-slide-up-appear${at}-slide-up-appear-active${xt}-placement-topLeft,
&${at}-slide-up-enter${at}-slide-up-enter-active${xt}-placement-top,
&${at}-slide-up-appear${at}-slide-up-appear-active${xt}-placement-top,
&${at}-slide-up-enter${at}-slide-up-enter-active${xt}-placement-topRight,
&${at}-slide-up-appear${at}-slide-up-appear-active${xt}-placement-topRight`]:{animationName:Pe.Qt},[`&${at}-slide-down-leave${at}-slide-down-leave-active${xt}-placement-bottomLeft,
&${at}-slide-down-leave${at}-slide-down-leave-active${xt}-placement-bottom,
&${at}-slide-down-leave${at}-slide-down-leave-active${xt}-placement-bottomRight`]:{animationName:Pe.Uw},[`&${at}-slide-up-leave${at}-slide-up-leave-active${xt}-placement-topLeft,
&${at}-slide-up-leave${at}-slide-up-leave-active${xt}-placement-top,
&${at}-slide-up-leave${at}-slide-up-leave-active${xt}-placement-topRight`]:{animationName:Pe.ly}})},(0,ve.ZP)(Ne,{colorBg:ht,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${xt} ${pt}`]:{position:"relative",margin:0},[`${pt}-submenu-popup`]:{position:"absolute",zIndex:ct,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${xt}, ${xt}-menu-submenu`]:{[pt]:Object.assign(Object.assign({padding:Ce,listStyleType:"none",backgroundColor:ht,backgroundClip:"padding-box",borderRadius:Ne.borderRadiusLG,outline:"none",boxShadow:Ne.boxShadowSecondary},(0,ae.Qy)(Ne)),{[`${pt}-item-group-title`]:{padding:`${lt}px ${Mt}px`,color:Ne.colorTextDescription,transition:`all ${Xe}`},[`${pt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${pt}-item-icon`]:{minWidth:Se,marginInlineEnd:Ne.marginXS,fontSize:Ne.fontSizeSM},[`${pt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${Xe}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${pt}-item, ${pt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${lt}px ${Mt}px`,color:Ne.colorText,fontWeight:"normal",fontSize:Se,lineHeight:Ne.lineHeight,cursor:"pointer",transition:`all ${Xe}`,borderRadius:Ne.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ne.controlItemBgHover}},(0,ae.Qy)(Ne)),{"&-selected":{color:Ne.colorPrimary,backgroundColor:Ne.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ne.controlItemBgActiveHover}},"&-disabled":{color:je,cursor:"not-allowed","&:hover":{color:je,backgroundColor:ht,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ne.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ne.colorSplit},[`${xt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ne.paddingXS,[`${xt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ne.colorTextDescription,fontSize:Ue,fontStyle:"normal"}}}),[`${pt}-item-group-list`]:{margin:`0 ${Ne.marginXS}px`,padding:0,listStyle:"none"},[`${pt}-submenu-title`]:{paddingInlineEnd:Mt+Ne.fontSizeSM},[`${pt}-submenu-vertical`]:{position:"relative"},[`${pt}-submenu${pt}-submenu-disabled ${xt}-menu-submenu-title`]:{[`&, ${xt}-menu-submenu-arrow-icon`]:{color:je,backgroundColor:ht,cursor:"not-allowed"}},[`${pt}-submenu-selected ${xt}-menu-submenu-title`]:{color:Ne.colorPrimary}})}},[(0,Pe.oN)(Ne,"slide-up"),(0,Pe.oN)(Ne,"slide-down"),(0,Re.Fm)(Ne,"move-up"),(0,Re.Fm)(Ne,"move-down"),(0,qe._y)(Ne,"zoom-big")]]};var st=(0,ke.Z)("Dropdown",(Ne,xt)=>{let{rootPrefixCls:pt}=xt;const{marginXXS:ct,sizePopupArrow:rt,controlHeight:Ee,fontSize:at,lineHeight:Yt,paddingXXS:Xe,componentCls:lt,borderRadiusLG:Se}=Ne,Ce=(Ee-at*Yt)/2,{dropdownArrowOffset:je}=(0,ve.fS)({contentRadius:Se}),Ue=(0,Le.TS)(Ne,{menuCls:`${lt}-menu`,rootPrefixCls:pt,dropdownArrowDistance:rt/2+ct,dropdownArrowOffset:je,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:Xe});return[Ie(Ue),me(Ue)]},Ne=>({zIndexPopup:Ne.zIndexPopupBase+50}))},32983:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Xe}});var ae=se(94184),Pe=se.n(ae),Re=se(67294),qe=se(53124),ve=se(10110),ke=se(84780),Le=se(46605),me=()=>{const[,lt]=(0,Le.Z)(),Ce=new ke.C(lt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Re.createElement("svg",{style:Ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Re.createElement("g",{fill:"none",fillRule:"evenodd"},Re.createElement("g",{transform:"translate(24 31.67)"},Re.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Re.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"}),Re.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)"}),Re.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"}),Re.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"})),Re.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"}),Re.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Re.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Re.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},st=()=>{const[,lt]=(0,Le.Z)(),{colorFill:Se,colorFillTertiary:Ce,colorFillQuaternary:je,colorBgContainer:Ue}=lt,{borderColor:Mt,shadowColor:ht,contentColor:Ft}=(0,Re.useMemo)(()=>({borderColor:new ke.C(Se).onBackground(Ue).toHexShortString(),shadowColor:new ke.C(Ce).onBackground(Ue).toHexShortString(),contentColor:new ke.C(je).onBackground(Ue).toHexShortString()}),[Se,Ce,je,Ue]);return Re.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Re.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Re.createElement("ellipse",{fill:ht,cx:"32",cy:"33",rx:"32",ry:"7"}),Re.createElement("g",{fillRule:"nonzero",stroke:Mt},Re.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"}),Re.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:Ft}))))},Ne=se(67968),xt=se(45503);const pt=lt=>{const{componentCls:Se,margin:Ce,marginXS:je,marginXL:Ue,fontSize:Mt,lineHeight:ht}=lt;return{[Se]:{marginInline:je,fontSize:Mt,lineHeight:ht,textAlign:"center",[`${Se}-image`]:{height:lt.emptyImgHeight,marginBottom:je,opacity:lt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Se}-description`]:{color:lt.colorText},[`${Se}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:Ue,color:lt.colorTextDisabled,[`${Se}-description`]:{color:lt.colorTextDisabled},[`${Se}-image`]:{height:lt.emptyImgHeightMD}},"&-small":{marginBlock:je,color:lt.colorTextDisabled,[`${Se}-image`]:{height:lt.emptyImgHeightSM}}}}};var ct=(0,Ne.Z)("Empty",lt=>{const{componentCls:Se,controlHeightLG:Ce}=lt,je=(0,xt.TS)(lt,{emptyImgCls:`${Se}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[pt(je)]}),rt=function(lt,Se){var Ce={};for(var je in lt)Object.prototype.hasOwnProperty.call(lt,je)&&Se.indexOf(je)<0&&(Ce[je]=lt[je]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,je=Object.getOwnPropertySymbols(lt);Ue<je.length;Ue++)Se.indexOf(je[Ue])<0&&Object.prototype.propertyIsEnumerable.call(lt,je[Ue])&&(Ce[je[Ue]]=lt[je[Ue]]);return Ce};const Ee=Re.createElement(me,null),at=Re.createElement(st,null),Yt=lt=>{var{className:Se,rootClassName:Ce,prefixCls:je,image:Ue=Ee,description:Mt,children:ht,imageStyle:Ft,style:tt}=lt,Jt=rt(lt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Rt,direction:yn,empty:tn}=Re.useContext(qe.E_),Hn=Rt("empty",je),[Yn,tr]=ct(Hn),[Qe]=(0,ve.Z)("Empty"),we=typeof Mt!="undefined"?Mt:Qe==null?void 0:Qe.description,At=typeof we=="string"?we:"empty";let Mn=null;return typeof Ue=="string"?Mn=Re.createElement("img",{alt:At,src:Ue}):Mn=Ue,Yn(Re.createElement("div",Object.assign({className:Pe()(tr,Hn,tn==null?void 0:tn.className,{[`${Hn}-normal`]:Ue===at,[`${Hn}-rtl`]:yn==="rtl"},Se,Ce),style:Object.assign(Object.assign({},tn==null?void 0:tn.style),tt)},Jt),Re.createElement("div",{className:`${Hn}-image`,style:Ft},Mn),we&&Re.createElement("div",{className:`${Hn}-description`},we),ht&&Re.createElement("div",{className:`${Hn}-footer`},ht)))};Yt.PRESENTED_IMAGE_DEFAULT=Ee,Yt.PRESENTED_IMAGE_SIMPLE=at;var Xe=Yt},22150:function(dn,en,se){"use strict";se.d(en,{default:function(){return rn}});var ae=se(74902),Pe=se(94184),Re=se.n(Pe),qe=se(38379),ve=se(67294),ke=se(33603),Le=se(65223);function xe(Ze){const[St,Vt]=ve.useState(Ze);return ve.useEffect(()=>{const Nt=setTimeout(()=>{Vt(Ze)},Ze.length?0:10);return()=>{clearTimeout(Nt)}},[Ze]),St}var me=se(14747),Ie=se(50438),st=se(33507),Ne=se(45503),xt=se(67968),ct=Ze=>{const{componentCls:St}=Ze,Vt=`${St}-show-help`,Nt=`${St}-show-help-item`;return{[Vt]:{transition:`opacity ${Ze.motionDurationSlow} ${Ze.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Nt]:{overflow:"hidden",transition:`height ${Ze.motionDurationSlow} ${Ze.motionEaseInOut},
opacity ${Ze.motionDurationSlow} ${Ze.motionEaseInOut},
transform ${Ze.motionDurationSlow} ${Ze.motionEaseInOut} !important`,[`&${Nt}-appear, &${Nt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Nt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const rt=Ze=>({legend:{display:"block",width:"100%",marginBottom:Ze.marginLG,padding:0,color:Ze.colorTextDescription,fontSize:Ze.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ze.lineWidth}px ${Ze.lineType} ${Ze.colorBorder}`},label:{fontSize:Ze.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 ${Ze.controlOutlineWidth}px ${Ze.controlOutline}`},output:{display:"block",paddingTop:15,color:Ze.colorText,fontSize:Ze.fontSize,lineHeight:Ze.lineHeight}}),Ee=(Ze,St)=>{const{formItemCls:Vt}=Ze;return{[Vt]:{[`${Vt}-label > label`]:{height:St},[`${Vt}-control-input`]:{minHeight:St}}}},at=Ze=>{const{componentCls:St}=Ze;return{[Ze.componentCls]:Object.assign(Object.assign(Object.assign({},(0,me.Wf)(Ze)),rt(Ze)),{[`${St}-text`]:{display:"inline-block",paddingInlineEnd:Ze.paddingSM},"&-small":Object.assign({},Ee(Ze,Ze.controlHeightSM)),"&-large":Object.assign({},Ee(Ze,Ze.controlHeightLG))})}},Yt=Ze=>{const{formItemCls:St,iconCls:Vt,componentCls:Nt,rootPrefixCls:cn,labelRequiredMarkColor:on,labelColor:Kn,labelFontSize:Hr,labelHeight:hr,labelColonMarginInlineStart:or,labelColonMarginInlineEnd:Ar,itemMarginBottom:Lr}=Ze;return{[St]:Object.assign(Object.assign({},(0,me.Wf)(Ze)),{marginBottom:Lr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${cn}-row`]:{display:"none"},"&-has-warning":{[`${St}-split`]:{color:Ze.colorError}},"&-has-error":{[`${St}-split`]:{color:Ze.colorWarning}},[`${St}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ze.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:hr,color:Kn,fontSize:Hr,[`> ${Vt}`]:{fontSize:Ze.fontSize,verticalAlign:"top"},[`&${St}-required:not(${St}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ze.marginXXS,color:on,fontSize:Ze.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Nt}-hide-required-mark &`]:{display:"none"}},[`${St}-optional`]:{display:"inline-block",marginInlineStart:Ze.marginXXS,color:Ze.colorTextDescription,[`${Nt}-hide-required-mark &`]:{display:"none"}},[`${St}-tooltip`]:{color:Ze.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ze.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:or,marginInlineEnd:Ar},[`&${St}-no-colon::after`]:{content:'"\\a0"'}}},[`${St}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${cn}-col-'"]):not([class*="' ${cn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ze.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[St]:{"&-explain, &-extra":{clear:"both",color:Ze.colorTextDescription,fontSize:Ze.fontSize,lineHeight:Ze.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ze.controlHeightSM,transition:`color ${Ze.motionDurationMid} ${Ze.motionEaseOut}`},"&-explain":{"&-error":{color:Ze.colorError},"&-warning":{color:Ze.colorWarning}}},[`&-with-help ${St}-explain`]:{height:"auto",opacity:1},[`${St}-feedback-icon`]:{fontSize:Ze.fontSize,textAlign:"center",visibility:"visible",animationName:Ie.kr,animationDuration:Ze.motionDurationMid,animationTimingFunction:Ze.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ze.colorSuccess},"&-error":{color:Ze.colorError},"&-warning":{color:Ze.colorWarning},"&-validating":{color:Ze.colorPrimary}}})}},Xe=Ze=>{const{componentCls:St,formItemCls:Vt}=Ze;return{[`${St}-horizontal`]:{[`${Vt}-label`]:{flexGrow:0},[`${Vt}-control`]:{flex:"1 1 0",minWidth:0},[`${Vt}-label[class$='-24'], ${Vt}-label[class*='-24 ']`]:{[`& + ${Vt}-control`]:{minWidth:"unset"}}}}},lt=Ze=>{const{componentCls:St,formItemCls:Vt}=Ze;return{[`${St}-inline`]:{display:"flex",flexWrap:"wrap",[Vt]:{flex:"none",marginInlineEnd:Ze.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Vt}-label,
> ${Vt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Vt}-label`]:{flex:"none"},[`${St}-text`]:{display:"inline-block"},[`${Vt}-has-feedback`]:{display:"inline-block"}}}}},Se=Ze=>({padding:Ze.verticalLabelPadding,margin:Ze.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=Ze=>{const{componentCls:St,formItemCls:Vt,rootPrefixCls:Nt}=Ze;return{[`${Vt} ${Vt}-label`]:Se(Ze),[St]:{[Vt]:{flexWrap:"wrap",[`${Vt}-label, ${Vt}-control`]:{[`&:not([class*=" ${Nt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},je=Ze=>{const{componentCls:St,formItemCls:Vt,rootPrefixCls:Nt}=Ze;return{[`${St}-vertical`]:{[Vt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${St}-item-control`]:{width:"100%"}}},[`${St}-vertical ${Vt}-label,
.${Nt}-col-24${Vt}-label,
.${Nt}-col-xl-24${Vt}-label`]:Se(Ze),[`@media (max-width: ${Ze.screenXSMax}px)`]:[Ce(Ze),{[St]:{[`.${Nt}-col-xs-24${Vt}-label`]:Se(Ze)}}],[`@media (max-width: ${Ze.screenSMMax}px)`]:{[St]:{[`.${Nt}-col-sm-24${Vt}-label`]:Se(Ze)}},[`@media (max-width: ${Ze.screenMDMax}px)`]:{[St]:{[`.${Nt}-col-md-24${Vt}-label`]:Se(Ze)}},[`@media (max-width: ${Ze.screenLGMax}px)`]:{[St]:{[`.${Nt}-col-lg-24${Vt}-label`]:Se(Ze)}}}},Ue=(Ze,St)=>(0,Ne.TS)(Ze,{formItemCls:`${Ze.componentCls}-item`,rootPrefixCls:St});var Mt=(0,xt.Z)("Form",(Ze,St)=>{let{rootPrefixCls:Vt}=St;const Nt=Ue(Ze,Vt);return[at(Nt),Yt(Nt),ct(Nt),Xe(Nt),lt(Nt),je(Nt),(0,st.Z)(Nt),Ie.kr]},Ze=>({labelRequiredMarkColor:Ze.colorError,labelColor:Ze.colorTextHeading,labelFontSize:Ze.fontSize,labelHeight:Ze.controlHeight,labelColonMarginInlineStart:Ze.marginXXS/2,labelColonMarginInlineEnd:Ze.marginXS,itemMarginBottom:Ze.marginLG,verticalLabelPadding:`0 0 ${Ze.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const ht=[];function Ft(Ze,St,Vt){let Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ze=="string"?Ze:`${St}-${Nt}`,error:Ze,errorStatus:Vt}}var Jt=Ze=>{let{help:St,helpStatus:Vt,errors:Nt=ht,warnings:cn=ht,className:on,fieldId:Kn,onVisibleChanged:Hr}=Ze;const{prefixCls:hr}=ve.useContext(Le.Rk),or=`${hr}-item-explain`,[,Ar]=Mt(hr),Lr=(0,ve.useMemo)(()=>(0,ke.Z)(hr),[hr]),kt=xe(Nt),gt=xe(cn),Dt=ve.useMemo(()=>St!=null?[Ft(St,"help",Vt)]:[].concat((0,ae.Z)(kt.map((qn,Cn)=>Ft(qn,"error","error",Cn))),(0,ae.Z)(gt.map((qn,Cn)=>Ft(qn,"warning","warning",Cn)))),[St,Vt,kt,gt]),En={};return Kn&&(En.id=`${Kn}_help`),ve.createElement(qe.default,{motionDeadline:Lr.motionDeadline,motionName:`${hr}-show-help`,visible:!!Dt.length,onVisibleChanged:Hr},qn=>{const{className:Cn,style:Dn}=qn;return ve.createElement("div",Object.assign({},En,{className:Re()(or,Cn,on,Ar),style:Dn,role:"alert"}),ve.createElement(qe.CSSMotionList,Object.assign({keys:Dt},(0,ke.Z)(hr),{motionName:`${hr}-show-help-item`,component:!1}),In=>{const{key:Un,error:kr,errorStatus:pn,className:di,style:Qr}=In;return ve.createElement("div",{key:Un,className:Re()(di,{[`${or}-${pn}`]:pn}),style:Qr},kr)}))})},Rt=se(58083),yn=se(53124),tn=se(98866),Hn=se(97647),Yn=se(98675),tr=se(17423);const Qe=["parentNode"],we="form_item";function At(Ze){return Ze===void 0||Ze===!1?[]:Array.isArray(Ze)?Ze:[Ze]}function Mn(Ze,St){if(!Ze.length)return;const Vt=Ze.join("_");return St?`${St}_${Vt}`:Qe.includes(Vt)?`${we}_${Vt}`:Vt}function _t(Ze,St,Vt,Nt,cn,on){let Kn=Nt;return on!==void 0?Kn=on:Vt.validating?Kn="validating":Ze.length?Kn="error":St.length?Kn="warning":(Vt.touched||cn&&Vt.validated)&&(Kn="success"),Kn}function $e(Ze){return At(Ze).join("_")}function dt(Ze){const[St]=(0,Rt.useForm)(),Vt=ve.useRef({}),Nt=ve.useMemo(()=>Ze!=null?Ze:Object.assign(Object.assign({},St),{__INTERNAL__:{itemRef:cn=>on=>{const Kn=$e(cn);on?Vt.current[Kn]=on:delete Vt.current[Kn]}},scrollToField:function(cn){let on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Kn=At(cn),Hr=Mn(Kn,Nt.__INTERNAL__.name),hr=Hr?document.getElementById(Hr):null;hr&&(0,tr.Z)(hr,Object.assign({scrollMode:"if-needed",block:"nearest"},on))},getFieldInstance:cn=>{const on=$e(cn);return Vt.current[on]}}),[Ze,St]);return[Nt]}var qt=se(37920),Xn=function(Ze,St){var Vt={};for(var Nt in Ze)Object.prototype.hasOwnProperty.call(Ze,Nt)&&St.indexOf(Nt)<0&&(Vt[Nt]=Ze[Nt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Nt=Object.getOwnPropertySymbols(Ze);cn<Nt.length;cn++)St.indexOf(Nt[cn])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Nt[cn])&&(Vt[Nt[cn]]=Ze[Nt[cn]]);return Vt};const bn=(Ze,St)=>{const Vt=ve.useContext(tn.Z),{getPrefixCls:Nt,direction:cn,form:on}=ve.useContext(yn.E_),{prefixCls:Kn,className:Hr,rootClassName:hr,size:or,disabled:Ar=Vt,form:Lr,colon:kt,labelAlign:gt,labelWrap:Dt,labelCol:En,wrapperCol:qn,hideRequiredMark:Cn,layout:Dn="horizontal",scrollToFirstError:In,requiredMark:Un,onFinishFailed:kr,name:pn,style:di,feedbackIcons:Qr}=Ze,Fi=Xn(Ze,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Ni=(0,Yn.Z)(or),Ci=ve.useContext(qt.Z),Qi=(0,ve.useMemo)(()=>Un!==void 0?Un:on&&on.requiredMark!==void 0?on.requiredMark:!Cn,[Cn,Un,on]),Ei=kt!=null?kt:on==null?void 0:on.colon,pi=Nt("form",Kn),[Hi,$i]=Mt(pi),ci=Re()(pi,`${pi}-${Dn}`,{[`${pi}-hide-required-mark`]:Qi===!1,[`${pi}-rtl`]:cn==="rtl",[`${pi}-${Ni}`]:Ni},$i,on==null?void 0:on.className,Hr,hr),[Mi]=dt(Lr),{__INTERNAL__:Ji}=Mi;Ji.name=pn;const ca=(0,ve.useMemo)(()=>({name:pn,labelAlign:gt,labelCol:En,labelWrap:Dt,wrapperCol:qn,vertical:Dn==="vertical",colon:Ei,requiredMark:Qi,itemRef:Ji.itemRef,form:Mi,feedbackIcons:Qr}),[pn,gt,En,qn,Dn,Ei,Qi,Mi,Qr]);ve.useImperativeHandle(St,()=>Mi);const na=(zt,Tt)=>{if(zt){let fn={block:"nearest"};typeof zt=="object"&&(fn=zt),Mi.scrollToField(Tt,fn)}},hi=zt=>{if(kr==null||kr(zt),zt.errorFields.length){const Tt=zt.errorFields[0].name;if(In!==void 0){na(In,Tt);return}on&&on.scrollToFirstError!==void 0&&na(on.scrollToFirstError,Tt)}};return Hi(ve.createElement(tn.n,{disabled:Ar},ve.createElement(Hn.q,{size:Ni},ve.createElement(Le.RV,Object.assign({},{validateMessages:Ci}),ve.createElement(Le.q3.Provider,{value:ca},ve.createElement(Rt.default,Object.assign({id:pn},Fi,{name:pn,onFinishFailed:hi,form:Mi,style:Object.assign(Object.assign({},on==null?void 0:on.style),di),className:ci})))))))};var nn=ve.forwardRef(bn),xn=se(9475),Pn=se(17799),De=se(96159),ue=se(37419);function ce(Ze){if(typeof Ze=="function")return Ze;const St=(0,ue.Z)(Ze);return St.length<=1?St[0]:St}const he=()=>{const{status:Ze,errors:St=[],warnings:Vt=[]}=(0,ve.useContext)(Le.aM);return{status:Ze,errors:St,warnings:Vt}};he.Context=Le.aM;var fe=he,le=se(96523);function Me(Ze){const[St,Vt]=ve.useState(Ze),Nt=(0,ve.useRef)(null),cn=(0,ve.useRef)([]),on=(0,ve.useRef)(!1);ve.useEffect(()=>(on.current=!1,()=>{on.current=!0,le.Z.cancel(Nt.current),Nt.current=null}),[]);function Kn(Hr){on.current||(Nt.current===null&&(cn.current=[],Nt.current=(0,le.Z)(()=>{Nt.current=null,Vt(hr=>{let or=hr;return cn.current.forEach(Ar=>{or=Ar(or)}),or})})),cn.current.push(Hr))}return[St,Kn]}function Ve(){const{itemRef:Ze}=ve.useContext(Le.q3),St=ve.useRef({});function Vt(Nt,cn){const on=cn&&typeof cn=="object"&&cn.ref,Kn=Nt.join("_");return(St.current.name!==Kn||St.current.originRef!==on)&&(St.current.name=Kn,St.current.originRef=on,St.current.ref=(0,Pn.sQ)(Ze(Nt),on)),St.current.ref}return Vt}var ft=se(48130),Ht=se(14075),Zt=se(10366),jt=se(92820),$t=se(21584);const Je=Ze=>{const{formItemCls:St}=Ze;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${St}-control`]:{display:"flex"}}}};var Et=(0,xt.b)(["Form","item-item"],(Ze,St)=>{let{rootPrefixCls:Vt}=St;const Nt=Ue(Ze,Vt);return[Je(Nt)]}),Xt=Ze=>{const{prefixCls:St,status:Vt,wrapperCol:Nt,children:cn,errors:on,warnings:Kn,_internalItemRender:Hr,extra:hr,help:or,fieldId:Ar,marginBottom:Lr,onErrorVisibleChanged:kt}=Ze,gt=`${St}-item`,Dt=ve.useContext(Le.q3),En=Nt||Dt.wrapperCol||{},qn=Re()(`${gt}-control`,En.className),Cn=ve.useMemo(()=>Object.assign({},Dt),[Dt]);delete Cn.labelCol,delete Cn.wrapperCol;const Dn=ve.createElement("div",{className:`${gt}-control-input`},ve.createElement("div",{className:`${gt}-control-input-content`},cn)),In=ve.useMemo(()=>({prefixCls:St,status:Vt}),[St,Vt]),Un=Lr!==null||on.length||Kn.length?ve.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ve.createElement(Le.Rk.Provider,{value:In},ve.createElement(Jt,{fieldId:Ar,errors:on,warnings:Kn,help:or,helpStatus:Vt,className:`${gt}-explain-connected`,onVisibleChanged:kt})),!!Lr&&ve.createElement("div",{style:{width:0,height:Lr}})):null,kr={};Ar&&(kr.id=`${Ar}_extra`);const pn=hr?ve.createElement("div",Object.assign({},kr,{className:`${gt}-extra`}),hr):null,di=Hr&&Hr.mark==="pro_table_render"&&Hr.render?Hr.render(Ze,{input:Dn,errorList:Un,extra:pn}):ve.createElement(ve.Fragment,null,Dn,Un,pn);return ve.createElement(Le.q3.Provider,{value:Cn},ve.createElement($t.Z,Object.assign({},En,{className:qn}),di),ve.createElement(Et,{prefixCls:St}))},wt=se(17663),Nn=se(24457),et=se(10110),It=se(83062),gn=function(Ze,St){var Vt={};for(var Nt in Ze)Object.prototype.hasOwnProperty.call(Ze,Nt)&&St.indexOf(Nt)<0&&(Vt[Nt]=Ze[Nt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Nt=Object.getOwnPropertySymbols(Ze);cn<Nt.length;cn++)St.indexOf(Nt[cn])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Nt[cn])&&(Vt[Nt[cn]]=Ze[Nt[cn]]);return Vt};function hn(Ze){return Ze?typeof Ze=="object"&&!ve.isValidElement(Ze)?Ze:{title:Ze}:null}var Vn=Ze=>{let{prefixCls:St,label:Vt,htmlFor:Nt,labelCol:cn,labelAlign:on,colon:Kn,required:Hr,requiredMark:hr,tooltip:or}=Ze;var Ar;const[Lr]=(0,et.Z)("Form"),{vertical:kt,labelAlign:gt,labelCol:Dt,labelWrap:En,colon:qn}=ve.useContext(Le.q3);if(!Vt)return null;const Cn=cn||Dt||{},Dn=on||gt,In=`${St}-item-label`,Un=Re()(In,Dn==="left"&&`${In}-left`,Cn.className,{[`${In}-wrap`]:!!En});let kr=Vt;const pn=Kn===!0||qn!==!1&&Kn!==!1;pn&&!kt&&typeof Vt=="string"&&Vt.trim()!==""&&(kr=Vt.replace(/[:|]\s*$/,""));const Qr=hn(or);if(Qr){const{icon:Qi=ve.createElement(wt.Z,null)}=Qr,Ei=gn(Qr,["icon"]),pi=ve.createElement(It.Z,Object.assign({},Ei),ve.cloneElement(Qi,{className:`${St}-item-tooltip`,title:""}));kr=ve.createElement(ve.Fragment,null,kr,pi)}const Fi=hr==="optional",Ni=typeof hr=="function";Ni?kr=hr(kr,{required:!!Hr}):Fi&&!Hr&&(kr=ve.createElement(ve.Fragment,null,kr,ve.createElement("span",{className:`${St}-item-optional`,title:""},(Lr==null?void 0:Lr.optional)||((Ar=Nn.Z.Form)===null||Ar===void 0?void 0:Ar.optional))));const Ci=Re()({[`${St}-item-required`]:Hr,[`${St}-item-required-mark-optional`]:Fi||Ni,[`${St}-item-no-colon`]:!pn});return ve.createElement($t.Z,Object.assign({},Cn,{className:Un}),ve.createElement("label",{htmlFor:Nt,className:Ci,title:typeof Vt=="string"?Vt:""},kr))},mr=se(87725),ur=se(16646),dr=se(87995),Fr=se(3407);const nr={success:mr.Z,warning:dr.Z,error:ur.Z,validating:Fr.Z};function _r(Ze){let{children:St,errors:Vt,warnings:Nt,hasFeedback:cn,validateStatus:on,prefixCls:Kn,meta:Hr,noStyle:hr}=Ze;const or=`${Kn}-item`,{feedbackIcons:Ar}=ve.useContext(Le.q3),Lr=_t(Vt,Nt,Hr,null,!!cn,on),{isFormItemInput:kt,status:gt}=ve.useContext(Le.aM),Dt=ve.useMemo(()=>{var En;let qn;if(cn){const In=cn!==!0&&cn.icons||Ar,Un=Lr&&((En=In==null?void 0:In({status:Lr,errors:Vt,warnings:Nt}))===null||En===void 0?void 0:En[Lr]),kr=Lr&&nr[Lr];qn=Un!==!1&&kr?ve.createElement("span",{className:Re()(`${or}-feedback-icon`,`${or}-feedback-icon-${Lr}`)},Un||ve.createElement(kr,null)):null}let Cn=!0,Dn=Lr||"";return hr&&(Cn=kt,Dn=(Lr!=null?Lr:gt)||""),{status:Dn,errors:Vt,warnings:Nt,hasFeedback:!!cn,feedbackIcon:qn,isFormItemInput:Cn}},[Lr,cn,hr,kt,gt]);return ve.createElement(Le.aM.Provider,{value:Dt},St)}var oi=function(Ze,St){var Vt={};for(var Nt in Ze)Object.prototype.hasOwnProperty.call(Ze,Nt)&&St.indexOf(Nt)<0&&(Vt[Nt]=Ze[Nt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Nt=Object.getOwnPropertySymbols(Ze);cn<Nt.length;cn++)St.indexOf(Nt[cn])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Nt[cn])&&(Vt[Nt[cn]]=Ze[Nt[cn]]);return Vt};function Wr(Ze){const{prefixCls:St,className:Vt,rootClassName:Nt,style:cn,help:on,errors:Kn,warnings:Hr,validateStatus:hr,meta:or,hasFeedback:Ar,hidden:Lr,children:kt,fieldId:gt,required:Dt,isRequired:En,onSubItemMetaChange:qn}=Ze,Cn=oi(Ze,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Dn=`${St}-item`,{requiredMark:In}=ve.useContext(Le.q3),Un=ve.useRef(null),kr=xe(Kn),pn=xe(Hr),di=on!=null,Qr=!!(di||Kn.length||Hr.length),Fi=!!Un.current&&(0,ft.Z)(Un.current),[Ni,Ci]=ve.useState(null);(0,Ht.Z)(()=>{if(Qr&&Un.current){const $i=getComputedStyle(Un.current);Ci(parseInt($i.marginBottom,10))}},[Qr,Fi]);const Qi=$i=>{$i||Ci(null)},pi=function(){let $i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ci=$i?kr:or.errors,Mi=$i?pn:or.warnings;return _t(ci,Mi,or,"",!!Ar,hr)}(),Hi=Re()(Dn,Vt,Nt,{[`${Dn}-with-help`]:di||kr.length||pn.length,[`${Dn}-has-feedback`]:pi&&Ar,[`${Dn}-has-success`]:pi==="success",[`${Dn}-has-warning`]:pi==="warning",[`${Dn}-has-error`]:pi==="error",[`${Dn}-is-validating`]:pi==="validating",[`${Dn}-hidden`]:Lr});return ve.createElement("div",{className:Hi,style:cn,ref:Un},ve.createElement(jt.Z,Object.assign({className:`${Dn}-row`},(0,Zt.Z)(Cn,["_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(Vn,Object.assign({htmlFor:gt},Ze,{requiredMark:In,required:Dt!=null?Dt:En,prefixCls:St})),ve.createElement(Xt,Object.assign({},Ze,or,{errors:kr,warnings:pn,prefixCls:St,status:pi,help:on,marginBottom:Ni,onErrorVisibleChanged:Qi}),ve.createElement(Le.qI.Provider,{value:qn},ve.createElement(_r,{prefixCls:St,meta:or,errors:or.errors,warnings:or.warnings,hasFeedback:Ar,validateStatus:pi},kt)))),!!Ni&&ve.createElement("div",{className:`${Dn}-margin-offset`,style:{marginBottom:-Ni}}))}const xi="__SPLIT__",ti=null,Ct=ve.memo(Ze=>{let{children:St}=Ze;return St},(Ze,St)=>Ze.value===St.value&&Ze.update===St.update&&Ze.childProps.length===St.childProps.length&&Ze.childProps.every((Vt,Nt)=>Vt===St.childProps[Nt]));function wn(Ze){return Ze!=null}function Rn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function an(Ze){const{name:St,noStyle:Vt,className:Nt,dependencies:cn,prefixCls:on,shouldUpdate:Kn,rules:Hr,children:hr,required:or,label:Ar,messageVariables:Lr,trigger:kt="onChange",validateTrigger:gt,hidden:Dt,help:En}=Ze,{getPrefixCls:qn}=ve.useContext(yn.E_),{name:Cn}=ve.useContext(Le.q3),Dn=ce(hr),In=typeof Dn=="function",Un=ve.useContext(Le.qI),{validateTrigger:kr}=ve.useContext(Rt.FieldContext),pn=gt!==void 0?gt:kr,di=wn(St),Qr=qn("form",on),[Fi,Ni]=Mt(Qr),Ci=ve.useContext(Rt.ListContext),Qi=ve.useRef(),[Ei,pi]=Me({}),[Hi,$i]=(0,xn.Z)(()=>Rn()),ci=Tt=>{const fn=Ci==null?void 0:Ci.getKey(Tt.name);if($i(Tt.destroy?Rn():Tt,!0),Vt&&En!==!1&&Un){let Bn=Tt.name;if(Tt.destroy)Bn=Qi.current||Bn;else if(fn!==void 0){const[Qn,Or]=fn;Bn=[Qn].concat((0,ae.Z)(Or)),Qi.current=Bn}Un(Tt,Bn)}},Mi=(Tt,fn)=>{pi(Bn=>{const Qn=Object.assign({},Bn),Zr=[].concat((0,ae.Z)(Tt.name.slice(0,-1)),(0,ae.Z)(fn)).join(xi);return Tt.destroy?delete Qn[Zr]:Qn[Zr]=Tt,Qn})},[Ji,ca]=ve.useMemo(()=>{const Tt=(0,ae.Z)(Hi.errors),fn=(0,ae.Z)(Hi.warnings);return Object.values(Ei).forEach(Bn=>{Tt.push.apply(Tt,(0,ae.Z)(Bn.errors||[])),fn.push.apply(fn,(0,ae.Z)(Bn.warnings||[]))}),[Tt,fn]},[Ei,Hi.errors,Hi.warnings]),na=Ve();function hi(Tt,fn,Bn){return Vt&&!Dt?ve.createElement(_r,{prefixCls:Qr,hasFeedback:Ze.hasFeedback,validateStatus:Ze.validateStatus,meta:Hi,errors:Ji,warnings:ca,noStyle:!0},Tt):ve.createElement(Wr,Object.assign({key:"row"},Ze,{className:Re()(Nt,Ni),prefixCls:Qr,fieldId:fn,isRequired:Bn,errors:Ji,warnings:ca,meta:Hi,onSubItemMetaChange:Mi}),Tt)}if(!di&&!In&&!cn)return Fi(hi(Dn));let zt={};return typeof Ar=="string"?zt.label=Ar:St&&(zt.label=String(St)),Lr&&(zt=Object.assign(Object.assign({},zt),Lr)),Fi(ve.createElement(Rt.Field,Object.assign({},Ze,{messageVariables:zt,trigger:kt,validateTrigger:pn,onMetaChange:ci}),(Tt,fn,Bn)=>{const Qn=At(St).length&&fn?fn.name:[],Or=Mn(Qn,Cn),Zr=or!==void 0?or:!!(Hr&&Hr.some(qr=>{if(qr&&typeof qr=="object"&&qr.required&&!qr.warningOnly)return!0;if(typeof qr=="function"){const fi=qr(Bn);return fi&&fi.required&&!fi.warningOnly}return!1})),Jr=Object.assign({},Tt);let ri=null;if(Array.isArray(Dn)&&di)ri=Dn;else if(!(In&&(!(Kn||cn)||di))){if(!(cn&&!In&&!di))if((0,De.l$)(Dn)){const qr=Object.assign(Object.assign({},Dn.props),Jr);if(qr.id||(qr.id=Or),En||Ji.length>0||ca.length>0||Ze.extra){const jr=[];(En||Ji.length>0)&&jr.push(`${Or}_help`),Ze.extra&&jr.push(`${Or}_extra`),qr["aria-describedby"]=jr.join(" ")}Ji.length>0&&(qr["aria-invalid"]="true"),Zr&&(qr["aria-required"]="true"),(0,Pn.Yr)(Dn)&&(qr.ref=na(Qn,Dn)),new Set([].concat((0,ae.Z)(At(kt)),(0,ae.Z)(At(pn)))).forEach(jr=>{qr[jr]=function(){for(var wi,Di,Li,Te,He,Ke=arguments.length,Ge=new Array(Ke),ut=0;ut<Ke;ut++)Ge[ut]=arguments[ut];(Li=Jr[jr])===null||Li===void 0||(wi=Li).call.apply(wi,[Jr].concat(Ge)),(He=(Te=Dn.props)[jr])===null||He===void 0||(Di=He).call.apply(Di,[Te].concat(Ge))}});const Ai=[qr["aria-required"],qr["aria-invalid"],qr["aria-describedby"]];ri=ve.createElement(Ct,{value:Jr[Ze.valuePropName||"value"],update:Dn,childProps:Ai},(0,De.Tm)(Dn,qr))}else In&&(Kn||cn)&&!di?ri=Dn(Bn):ri=Dn}return hi(ri,Or,Zr)}))}const vr=an;vr.useStatus=fe;var lr=vr,Gn=function(Ze,St){var Vt={};for(var Nt in Ze)Object.prototype.hasOwnProperty.call(Ze,Nt)&&St.indexOf(Nt)<0&&(Vt[Nt]=Ze[Nt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Nt=Object.getOwnPropertySymbols(Ze);cn<Nt.length;cn++)St.indexOf(Nt[cn])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Nt[cn])&&(Vt[Nt[cn]]=Ze[Nt[cn]]);return Vt},nt=Ze=>{var{prefixCls:St,children:Vt}=Ze,Nt=Gn(Ze,["prefixCls","children"]);const{getPrefixCls:cn}=ve.useContext(yn.E_),on=cn("form",St),Kn=ve.useMemo(()=>({prefixCls:on,status:"error"}),[on]);return ve.createElement(Rt.List,Object.assign({},Nt),(Hr,hr,or)=>ve.createElement(Le.Rk.Provider,{value:Kn},Vt(Hr.map(Ar=>Object.assign(Object.assign({},Ar),{fieldKey:Ar.key})),hr,{errors:or.errors,warnings:or.warnings})))};function mt(){const{form:Ze}=(0,ve.useContext)(Le.q3);return Ze}const Bt=nn;Bt.Item=lr,Bt.List=nt,Bt.ErrorList=Jt,Bt.useForm=dt,Bt.useFormInstance=mt,Bt.useWatch=Rt.useWatch,Bt.Provider=Le.RV,Bt.create=()=>{};var rn=Bt},25378:function(dn,en,se){"use strict";var ae=se(67294),Pe=se(14075),Re=se(57838),qe=se(74443);function ve(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Le=(0,ae.useRef)({}),xe=(0,Re.Z)(),me=(0,qe.ZP)();return(0,Pe.Z)(()=>{const Ie=me.subscribe(st=>{Le.current=st,ke&&xe()});return()=>me.unsubscribe(Ie)},[]),Le.current}en.Z=ve},31795:function(dn,en,se){"use strict";se.d(en,{Z:function(){return jn}});var ae=se(42922),Pe=se(53978),Re=se(94184),qe=se.n(Re),ve=se(87462),ke=se(4942),Le=se(71002),xe=se(97685),me=se(45987),Ie=se(15671),st=se(43144);function Ne(){return typeof BigInt=="function"}function xt(nt){return!nt&&nt!==0&&!Number.isNaN(nt)||!String(nt).trim()}function pt(nt){var mt=nt.trim(),Bt=mt.startsWith("-");Bt&&(mt=mt.slice(1)),mt=mt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),mt.startsWith(".")&&(mt="0".concat(mt));var rn=mt||"0",Ze=rn.split("."),St=Ze[0]||"0",Vt=Ze[1]||"0";St==="0"&&Vt==="0"&&(Bt=!1);var Nt=Bt?"-":"";return{negative:Bt,negativeStr:Nt,trimStr:rn,integerStr:St,decimalStr:Vt,fullStr:"".concat(Nt).concat(rn)}}function ct(nt){var mt=String(nt);return!Number.isNaN(Number(mt))&&mt.includes("e")}function rt(nt){var mt=String(nt);if(ct(nt)){var Bt=Number(mt.slice(mt.indexOf("e-")+2)),rn=mt.match(/\.(\d+)/);return rn!=null&&rn[1]&&(Bt+=rn[1].length),Bt}return mt.includes(".")&&at(mt)?mt.length-mt.indexOf(".")-1:0}function Ee(nt){var mt=String(nt);if(ct(nt)){if(nt>Number.MAX_SAFE_INTEGER)return String(Ne()?BigInt(nt).toString():Number.MAX_SAFE_INTEGER);if(nt<Number.MIN_SAFE_INTEGER)return String(Ne()?BigInt(nt).toString():Number.MIN_SAFE_INTEGER);mt=nt.toFixed(rt(mt))}return pt(mt).fullStr}function at(nt){return typeof nt=="number"?!Number.isNaN(nt):nt?/^\s*-?\d+(\.\d+)?\s*$/.test(nt)||/^\s*-?\d+\.\s*$/.test(nt)||/^\s*-?\.\d+\s*$/.test(nt):!1}var Yt=function(){function nt(mt){if((0,Ie.Z)(this,nt),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"negative",void 0),(0,ke.Z)(this,"integer",void 0),(0,ke.Z)(this,"decimal",void 0),(0,ke.Z)(this,"decimalLen",void 0),(0,ke.Z)(this,"empty",void 0),(0,ke.Z)(this,"nan",void 0),xt(mt)){this.empty=!0;return}if(this.origin=String(mt),mt==="-"||Number.isNaN(mt)){this.nan=!0;return}var Bt=mt;if(ct(Bt)&&(Bt=Number(Bt)),Bt=typeof Bt=="string"?Bt:Ee(Bt),at(Bt)){var rn=pt(Bt);this.negative=rn.negative;var Ze=rn.trimStr.split(".");this.integer=BigInt(Ze[0]);var St=Ze[1]||"0";this.decimal=BigInt(St),this.decimalLen=St.length}else this.nan=!0}return(0,st.Z)(nt,[{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(Bt){var rn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Bt,"0"));return BigInt(rn)}},{key:"negate",value:function(){var Bt=new nt(this.toString());return Bt.negative=!Bt.negative,Bt}},{key:"cal",value:function(Bt,rn,Ze){var St=Math.max(this.getDecimalStr().length,Bt.getDecimalStr().length),Vt=this.alignDecimal(St),Nt=Bt.alignDecimal(St),cn=rn(Vt,Nt).toString(),on=Ze(St),Kn=pt(cn),Hr=Kn.negativeStr,hr=Kn.trimStr,or="".concat(Hr).concat(hr.padStart(on+1,"0"));return new nt("".concat(or.slice(0,-on),".").concat(or.slice(-on)))}},{key:"add",value:function(Bt){if(this.isInvalidate())return new nt(Bt);var rn=new nt(Bt);return rn.isInvalidate()?this:this.cal(rn,function(Ze,St){return Ze+St},function(Ze){return Ze})}},{key:"multi",value:function(Bt){var rn=new nt(Bt);return this.isInvalidate()||rn.isInvalidate()?new nt(NaN):this.cal(rn,function(Ze,St){return Ze*St},function(Ze){return Ze*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(Bt){return this.toString()===(Bt==null?void 0:Bt.toString())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":pt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),nt}(),Xe=function(){function nt(mt){if((0,Ie.Z)(this,nt),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"number",void 0),(0,ke.Z)(this,"empty",void 0),xt(mt)){this.empty=!0;return}this.origin=String(mt),this.number=Number(mt)}return(0,st.Z)(nt,[{key:"negate",value:function(){return new nt(-this.toNumber())}},{key:"add",value:function(Bt){if(this.isInvalidate())return new nt(Bt);var rn=Number(Bt);if(Number.isNaN(rn))return this;var Ze=this.number+rn;if(Ze>Number.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(Ze<Number.MIN_SAFE_INTEGER)return new nt(Number.MIN_SAFE_INTEGER);var St=Math.max(rt(this.number),rt(rn));return new nt(Ze.toFixed(St))}},{key:"multi",value:function(Bt){var rn=Number(Bt);if(this.isInvalidate()||Number.isNaN(rn))return new nt(NaN);var Ze=this.number*rn;if(Ze>Number.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(Ze<Number.MIN_SAFE_INTEGER)return new nt(Number.MIN_SAFE_INTEGER);var St=Math.max(rt(this.number),rt(rn));return new nt(Ze.toFixed(St))}},{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(Bt){return this.toNumber()===(Bt==null?void 0:Bt.toNumber())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":Ee(this.number):this.origin}}]),nt}();function lt(nt){return Ne()?new Yt(nt):new Xe(nt)}function Se(nt,mt,Bt){var rn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(nt==="")return"";var Ze=pt(nt),St=Ze.negativeStr,Vt=Ze.integerStr,Nt=Ze.decimalStr,cn="".concat(mt).concat(Nt),on="".concat(St).concat(Vt);if(Bt>=0){var Kn=Number(Nt[Bt]);if(Kn>=5&&!rn){var Hr=lt(nt).add("".concat(St,"0.").concat("0".repeat(Bt)).concat(10-Kn));return Se(Hr.toString(),mt,Bt,rn)}return Bt===0?on:"".concat(on).concat(mt).concat(Nt.padEnd(Bt,"0").slice(0,Bt))}return cn===".0"?on:"".concat(on).concat(cn)}var Ce=lt,je=se(67656),Ue=se(67294);function Mt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ht=Mt()?Ue.useLayoutEffect:Ue.useEffect,Ft=function(mt,Bt){var rn=Ue.useRef(!0);ht(function(){return mt(rn.current)},Bt),ht(function(){return rn.current=!1,function(){rn.current=!0}},[])},tt=function(mt,Bt){Ft(function(rn){if(!rn)return mt()},Bt)},Jt=Ft,Rt=se(27183);function yn(nt,mt,Bt){var rn=React.useRef({});return(!("value"in rn.current)||Bt(rn.current.condition,mt))&&(rn.current.value=nt(),rn.current.condition=mt),rn.current.value}function tn(nt,mt){typeof nt=="function"?nt(mt):(0,Le.Z)(nt)==="object"&&nt&&"current"in nt&&(nt.current=mt)}function Hn(){for(var nt=arguments.length,mt=new Array(nt),Bt=0;Bt<nt;Bt++)mt[Bt]=arguments[Bt];var rn=mt.filter(function(Ze){return Ze});return rn.length<=1?rn[0]:function(Ze){mt.forEach(function(St){tn(St,Ze)})}}function Yn(){for(var nt=arguments.length,mt=new Array(nt),Bt=0;Bt<nt;Bt++)mt[Bt]=arguments[Bt];return useMemo(function(){return Hn.apply(void 0,mt)},mt,function(rn,Ze){return rn.length!==Ze.length||rn.every(function(St,Vt){return St!==Ze[Vt]})})}function tr(nt){var mt,Bt,rn=isMemo(nt)?nt.type.type:nt.type;return!(typeof rn=="function"&&!((mt=rn.prototype)!==null&&mt!==void 0&&mt.render)||typeof nt=="function"&&!((Bt=nt.prototype)!==null&&Bt!==void 0&&Bt.render))}function Qe(nt){return!isValidElement(nt)||isFragment(nt)?!1:tr(nt)}var we={},At=[],Mn=function(mt){At.push(mt)};function _t(nt,mt){if(0)var Bt}function $e(nt,mt){if(0)var Bt}function dt(){we={}}function qt(nt,mt,Bt){!mt&&!we[Bt]&&(nt(!1,Bt),we[Bt]=!0)}function Xn(nt,mt){qt(_t,nt,mt)}function bn(nt,mt){qt($e,nt,mt)}Xn.preMessage=Mn,Xn.resetWarned=dt,Xn.noteOnce=bn;var un=Xn;function nn(nt,mt){var Bt=(0,Ue.useRef)(null);function rn(){try{var St=nt.selectionStart,Vt=nt.selectionEnd,Nt=nt.value,cn=Nt.substring(0,St),on=Nt.substring(Vt);Bt.current={start:St,end:Vt,value:Nt,beforeTxt:cn,afterTxt:on}}catch(Kn){}}function Ze(){if(nt&&Bt.current&&mt)try{var St=nt.value,Vt=Bt.current,Nt=Vt.beforeTxt,cn=Vt.afterTxt,on=Vt.start,Kn=St.length;if(St.endsWith(cn))Kn=St.length-Bt.current.afterTxt.length;else if(St.startsWith(Nt))Kn=Nt.length;else{var Hr=Nt[on-1],hr=St.indexOf(Hr,on-1);hr!==-1&&(Kn=hr+1)}nt.setSelectionRange(Kn,Kn)}catch(or){un(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(or.message))}}return[rn,Ze]}var xn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var nt=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(nt)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(nt==null?void 0:nt.substr(0,4))},Pn=function(){var mt=(0,Ue.useState)(!1),Bt=(0,xe.Z)(mt,2),rn=Bt[0],Ze=Bt[1];return Jt(function(){Ze(xn())},[]),rn},De=Pn,ue=function(mt){return+setTimeout(mt,16)},ce=function(mt){return clearTimeout(mt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ue=function(mt){return window.requestAnimationFrame(mt)},ce=function(mt){return window.cancelAnimationFrame(mt)});var he=0,fe=new Map;function le(nt){fe.delete(nt)}var Me=function(mt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;he+=1;var rn=he;function Ze(St){if(St===0)le(rn),mt();else{var Vt=ue(function(){Ze(St-1)});fe.set(rn,Vt)}}return Ze(Bt),rn};Me.cancel=function(nt){var mt=fe.get(nt);return le(mt),ce(mt)};var Ve=Me,ft=200,Ht=600;function Zt(nt){var mt=nt.prefixCls,Bt=nt.upNode,rn=nt.downNode,Ze=nt.upDisabled,St=nt.downDisabled,Vt=nt.onStep,Nt=Ue.useRef(),cn=Ue.useRef([]),on=Ue.useRef();on.current=Vt;var Kn=function(){clearTimeout(Nt.current)},Hr=function(En,qn){En.preventDefault(),Kn(),on.current(qn);function Cn(){on.current(qn),Nt.current=setTimeout(Cn,ft)}Nt.current=setTimeout(Cn,Ht)};Ue.useEffect(function(){return function(){Kn(),cn.current.forEach(function(Dt){return Ve.cancel(Dt)})}},[]);var hr=De();if(hr)return null;var or="".concat(mt,"-handler"),Ar=qe()(or,"".concat(or,"-up"),(0,ke.Z)({},"".concat(or,"-up-disabled"),Ze)),Lr=qe()(or,"".concat(or,"-down"),(0,ke.Z)({},"".concat(or,"-down-disabled"),St)),kt=function(){return cn.current.push(Ve(Kn))},gt={unselectable:"on",role:"button",onMouseUp:kt,onMouseLeave:kt};return Ue.createElement("div",{className:"".concat(or,"-wrap")},Ue.createElement("span",(0,ve.Z)({},gt,{onMouseDown:function(En){Hr(En,!0)},"aria-label":"Increase Value","aria-disabled":Ze,className:Ar}),Bt||Ue.createElement("span",{unselectable:"on",className:"".concat(mt,"-handler-up-inner")})),Ue.createElement("span",(0,ve.Z)({},gt,{onMouseDown:function(En){Hr(En,!1)},"aria-label":"Decrease Value","aria-disabled":St,className:Lr}),rn||Ue.createElement("span",{unselectable:"on",className:"".concat(mt,"-handler-down-inner")})))}function jt(nt){var mt=typeof nt=="number"?Ee(nt):pt(nt).fullStr,Bt=mt.includes(".");return Bt?pt(mt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:nt+"0"}var $t=se(87887),Je=function(){var nt=(0,Ue.useRef)(0),mt=function(){Ve.cancel(nt.current)};return(0,Ue.useEffect)(function(){return mt},[]),function(Bt){mt(),nt.current=Ve(function(){Bt()})}},Et=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Lt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Xt=function(mt,Bt){return mt||Bt.isEmpty()?Bt.toString():Bt.toNumber()},wt=function(mt){var Bt=Ce(mt);return Bt.isInvalidate()?null:Bt},Nn=Ue.forwardRef(function(nt,mt){var Bt,rn=nt.prefixCls,Ze=rn===void 0?"rc-input-number":rn,St=nt.className,Vt=nt.style,Nt=nt.min,cn=nt.max,on=nt.step,Kn=on===void 0?1:on,Hr=nt.defaultValue,hr=nt.value,or=nt.disabled,Ar=nt.readOnly,Lr=nt.upHandler,kt=nt.downHandler,gt=nt.keyboard,Dt=nt.controls,En=Dt===void 0?!0:Dt,qn=nt.classNames,Cn=nt.stringMode,Dn=nt.parser,In=nt.formatter,Un=nt.precision,kr=nt.decimalSeparator,pn=nt.onChange,di=nt.onInput,Qr=nt.onPressEnter,Fi=nt.onStep,Ni=(0,me.Z)(nt,Et),Ci="".concat(Ze,"-input"),Qi=Ue.useRef(null),Ei=Ue.useState(!1),pi=(0,xe.Z)(Ei,2),Hi=pi[0],$i=pi[1],ci=Ue.useRef(!1),Mi=Ue.useRef(!1),Ji=Ue.useRef(!1),ca=Ue.useState(function(){return Ce(hr!=null?hr:Hr)}),na=(0,xe.Z)(ca,2),hi=na[0],zt=na[1];function Tt(gr){hr===void 0&&zt(gr)}var fn=Ue.useCallback(function(gr,fr){if(!fr)return Un>=0?Un:Math.max(rt(gr),rt(Kn))},[Un,Kn]),Bn=Ue.useCallback(function(gr){var fr=String(gr);if(Dn)return Dn(fr);var wr=fr;return kr&&(wr=wr.replace(kr,".")),wr.replace(/[^\w.-]+/g,"")},[Dn,kr]),Qn=Ue.useRef(""),Or=Ue.useCallback(function(gr,fr){if(In)return In(gr,{userTyping:fr,input:String(Qn.current)});var wr=typeof gr=="number"?Ee(gr):gr;if(!fr){var Sr=fn(wr,fr);if(at(wr)&&(kr||Sr>=0)){var Nr=kr||".";wr=Se(wr,Nr,Sr)}}return wr},[In,fn,kr]),Zr=Ue.useState(function(){var gr=Hr!=null?Hr:hr;return hi.isInvalidate()&&["string","number"].includes((0,Le.Z)(gr))?Number.isNaN(gr)?"":gr:Or(hi.toString(),!1)}),Jr=(0,xe.Z)(Zr,2),ri=Jr[0],qr=Jr[1];Qn.current=ri;function fi(gr,fr){qr(Or(gr.isInvalidate()?gr.toString(!1):gr.toString(!fr),fr))}var Ai=Ue.useMemo(function(){return wt(cn)},[cn,Un]),jr=Ue.useMemo(function(){return wt(Nt)},[Nt,Un]),wi=Ue.useMemo(function(){return!Ai||!hi||hi.isInvalidate()?!1:Ai.lessEquals(hi)},[Ai,hi]),Di=Ue.useMemo(function(){return!jr||!hi||hi.isInvalidate()?!1:hi.lessEquals(jr)},[jr,hi]),Li=nn(Qi.current,Hi),Te=(0,xe.Z)(Li,2),He=Te[0],Ke=Te[1],Ge=function(fr){return Ai&&!fr.lessEquals(Ai)?Ai:jr&&!jr.lessEquals(fr)?jr:null},ut=function(fr){return!Ge(fr)},vt=function(fr,wr){var Sr=fr,Nr=ut(Sr)||Sr.isEmpty();if(!Sr.isEmpty()&&!wr&&(Sr=Ge(Sr)||Sr,Nr=!0),!Ar&&!or&&Nr){var Fe=Sr.toString(),We=fn(Fe,wr);return We>=0&&(Sr=Ce(Se(Fe,".",We)),ut(Sr)||(Sr=Ce(Se(Fe,".",We,!0)))),Sr.equals(hi)||(Tt(Sr),pn==null||pn(Sr.isEmpty()?null:Xt(Cn,Sr)),hr===void 0&&fi(Sr,wr)),Sr}return hi},Kt=Je(),vn=function gr(fr){if(He(),Qn.current=fr,qr(fr),!Mi.current){var wr=Bn(fr),Sr=Ce(wr);Sr.isNaN()||vt(Sr,!0)}di==null||di(fr),Kt(function(){var Nr=fr;Dn||(Nr=fr.replace(/。/g,".")),Nr!==fr&&gr(Nr)})},kn=function(){Mi.current=!0},yr=function(){Mi.current=!1,vn(Qi.current.value)},Pr=function(fr){vn(fr.target.value)},cr=function(fr){var wr;if(!(fr&&wi||!fr&&Di)){ci.current=!1;var Sr=Ce(Ji.current?jt(Kn):Kn);fr||(Sr=Sr.negate());var Nr=(hi||Ce(0)).add(Sr.toString()),Fe=vt(Nr,!1);Fi==null||Fi(Xt(Cn,Fe),{offset:Ji.current?jt(Kn):Kn,type:fr?"up":"down"}),(wr=Qi.current)===null||wr===void 0||wr.focus()}},Wn=function(fr){var wr=Ce(Bn(ri)),Sr=wr;wr.isNaN()?Sr=vt(hi,fr):Sr=vt(wr,fr),hr!==void 0?fi(hi,!1):Sr.isNaN()||fi(Sr,!1)},Fn=function(){ci.current=!0},$n=function(fr){var wr=fr.key,Sr=fr.shiftKey;ci.current=!0,Ji.current=Sr,wr==="Enter"&&(Mi.current||(ci.current=!1),Wn(!1),Qr==null||Qr(fr)),gt!==!1&&!Mi.current&&["Up","ArrowUp","Down","ArrowDown"].includes(wr)&&(cr(wr==="Up"||wr==="ArrowUp"),fr.preventDefault())},rr=function(){ci.current=!1,Ji.current=!1},Ir=function(){Wn(!1),$i(!1),ci.current=!1};return tt(function(){hi.isInvalidate()||fi(hi,!1)},[Un]),tt(function(){var gr=Ce(hr);zt(gr);var fr=Ce(Bn(ri));(!gr.equals(fr)||!ci.current||In)&&fi(gr,ci.current)},[hr]),tt(function(){In&&Ke()},[ri]),Ue.createElement("div",{className:qe()(Ze,qn==null?void 0:qn.input,St,(Bt={},(0,ke.Z)(Bt,"".concat(Ze,"-focused"),Hi),(0,ke.Z)(Bt,"".concat(Ze,"-disabled"),or),(0,ke.Z)(Bt,"".concat(Ze,"-readonly"),Ar),(0,ke.Z)(Bt,"".concat(Ze,"-not-a-number"),hi.isNaN()),(0,ke.Z)(Bt,"".concat(Ze,"-out-of-range"),!hi.isInvalidate()&&!ut(hi)),Bt)),style:Vt,onFocus:function(){$i(!0)},onBlur:Ir,onKeyDown:$n,onKeyUp:rr,onCompositionStart:kn,onCompositionEnd:yr,onBeforeInput:Fn},En&&Ue.createElement(Zt,{prefixCls:Ze,upNode:Lr,downNode:kt,upDisabled:wi,downDisabled:Di,onStep:cr}),Ue.createElement("div",{className:"".concat(Ci,"-wrap")},Ue.createElement("input",(0,ve.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Nt,"aria-valuemax":cn,"aria-valuenow":hi.isInvalidate()?null:hi.toString(),step:Kn},Ni,{ref:Hn(Qi,mt),className:Ci,value:ri,onChange:Pr,disabled:or,readOnly:Ar}))))}),et=Ue.forwardRef(function(nt,mt){var Bt=nt.disabled,rn=nt.style,Ze=nt.prefixCls,St=nt.value,Vt=nt.prefix,Nt=nt.suffix,cn=nt.addonBefore,on=nt.addonAfter,Kn=nt.classes,Hr=nt.className,hr=nt.classNames,or=(0,me.Z)(nt,Lt),Ar=Ue.useRef(null),Lr=function(gt){Ar.current&&(0,$t.nH)(Ar.current,gt)};return Ue.createElement(je.BaseInput,{inputElement:Ue.createElement(Nn,(0,ve.Z)({prefixCls:Ze,disabled:Bt,classNames:hr,ref:Hn(Ar,mt)},or)),className:Hr,triggerFocus:Lr,prefixCls:Ze,value:St,disabled:Bt,style:rn,prefix:Vt,suffix:Nt,addonAfter:on,addonBefore:cn,classes:Kn,classNames:hr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});et.displayName="InputNumber";var It=et,gn=It,hn=se(9708),An=se(53124),Vn=se(46735),mr=se(98866),ur=se(98675),dr=se(65223),Fr=se(4173),nr=se(47673),_r=se(14747),oi=se(80110),Wr=se(67968),xi=se(45503);const ti=(nt,mt)=>{let{componentCls:Bt,borderRadiusSM:rn,borderRadiusLG:Ze}=nt;const St=mt==="lg"?Ze:rn;return{[`&-${mt}`]:{[`${Bt}-handler-wrap`]:{borderStartEndRadius:St,borderEndEndRadius:St},[`${Bt}-handler-up`]:{borderStartEndRadius:St},[`${Bt}-handler-down`]:{borderEndEndRadius:St}}}},Ct=nt=>{const{componentCls:mt,lineWidth:Bt,lineType:rn,colorBorder:Ze,borderRadius:St,fontSizeLG:Vt,controlHeightLG:Nt,controlHeightSM:cn,colorError:on,paddingInlineSM:Kn,colorTextDescription:Hr,motionDurationMid:hr,handleHoverColor:or,paddingInline:Ar,paddingBlock:Lr,handleBg:kt,handleActiveBg:gt,colorTextDisabled:Dt,borderRadiusSM:En,borderRadiusLG:qn,controlWidth:Cn,handleVisible:Dn,handleBorderColor:In}=nt;return[{[mt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_r.Wf)(nt)),(0,nr.ik)(nt)),(0,nr.bi)(nt,mt)),{display:"inline-block",width:Cn,margin:0,padding:0,border:`${Bt}px ${rn} ${Ze}`,borderRadius:St,"&-rtl":{direction:"rtl",[`${mt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Vt,borderRadius:qn,[`input${mt}-input`]:{height:Nt-2*Bt}},"&-sm":{padding:0,borderRadius:En,[`input${mt}-input`]:{height:cn-2*Bt,padding:`0 ${Kn}px`}},"&:hover":Object.assign({},(0,nr.pU)(nt)),"&-focused":Object.assign({},(0,nr.M1)(nt)),"&-out-of-range":{[`${mt}-input-wrap`]:{input:{color:on}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,_r.Wf)(nt)),(0,nr.s7)(nt)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${mt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${mt}-group-addon`]:{borderRadius:qn,fontSize:nt.fontSizeLG}},"&-sm":{[`${mt}-group-addon`]:{borderRadius:En}},[`${mt}-wrapper-disabled > ${mt}-group-addon`]:Object.assign({},(0,nr.Xy)(nt))}}),[`&-disabled ${mt}-input`]:{cursor:"not-allowed"},[mt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,_r.Wf)(nt)),{width:"100%",padding:`${Lr}px ${Ar}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:St,outline:0,transition:`all ${hr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,nr.nz)(nt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[mt]:Object.assign(Object.assign(Object.assign({[`&:hover ${mt}-handler-wrap, &-focused ${mt}-handler-wrap`]:{opacity:1},[`${mt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:nt.handleWidth,height:"100%",background:kt,borderStartStartRadius:0,borderStartEndRadius:St,borderEndEndRadius:St,borderEndStartRadius:0,opacity:Dn===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${hr} linear ${hr}`,[`${mt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${mt}-handler-up-inner,
${mt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:nt.handleFontSize}}},[`${mt}-handler`]:{height:"50%",overflow:"hidden",color:Hr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Bt}px ${rn} ${In}`,transition:`all ${hr} linear`,"&:active":{background:gt},"&:hover":{height:"60%",[`
${mt}-handler-up-inner,
${mt}-handler-down-inner
`]:{color:or}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,_r.Ro)()),{color:Hr,transition:`all ${hr} linear`,userSelect:"none"})},[`${mt}-handler-up`]:{borderStartEndRadius:St},[`${mt}-handler-down`]:{borderBlockStart:`${Bt}px ${rn} ${In}`,borderEndEndRadius:St}},ti(nt,"lg")),ti(nt,"sm")),{"&-disabled, &-readonly":{[`${mt}-handler-wrap`]:{display:"none"},[`${mt}-input`]:{color:"inherit"}},[`
${mt}-handler-up-disabled,
${mt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${mt}-handler-up-disabled:hover &-handler-up-inner,
${mt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Dt}})},{[`${mt}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${mt}-handler-down`]:{borderBlockStartWidth:0}}}]},wn=nt=>{const{componentCls:mt,paddingBlock:Bt,paddingInline:rn,inputAffixPadding:Ze,controlWidth:St,borderRadiusLG:Vt,borderRadiusSM:Nt}=nt;return{[`${mt}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,nr.ik)(nt)),(0,nr.bi)(nt,`${mt}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:St,padding:0,paddingInlineStart:rn,"&-lg":{borderRadius:Vt},"&-sm":{borderRadius:Nt},[`&:not(${mt}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,nr.pU)(nt)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${mt}-disabled`]:{background:"transparent"},[`> div${mt}`]:{width:"100%",border:"none",outline:"none",[`&${mt}-focused`]:{boxShadow:"none !important"}},[`input${mt}-input`]:{padding:`${Bt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${mt}-handler-wrap`]:{zIndex:2},[mt]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ze},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:rn,marginInlineStart:Ze}}})}};var Rn=(0,Wr.Z)("InputNumber",nt=>{const mt=(0,xi.TS)(nt,(0,nr.e5)(nt));return[Ct(mt),wn(mt),(0,oi.c)(mt)]},nt=>Object.assign(Object.assign({},(0,nr.TM)(nt)),{controlWidth:90,handleWidth:nt.controlHeightSM-nt.lineWidth*2,handleFontSize:nt.fontSize/2,handleVisible:"auto",handleActiveBg:nt.colorFillAlter,handleBg:nt.colorBgContainer,handleHoverColor:nt.colorPrimary,handleBorderColor:nt.colorBorder})),an=function(nt,mt){var Bt={};for(var rn in nt)Object.prototype.hasOwnProperty.call(nt,rn)&&mt.indexOf(rn)<0&&(Bt[rn]=nt[rn]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,rn=Object.getOwnPropertySymbols(nt);Ze<rn.length;Ze++)mt.indexOf(rn[Ze])<0&&Object.prototype.propertyIsEnumerable.call(nt,rn[Ze])&&(Bt[rn[Ze]]=nt[rn[Ze]]);return Bt};const vr=Ue.forwardRef((nt,mt)=>{const{getPrefixCls:Bt,direction:rn}=Ue.useContext(An.E_),Ze=Ue.useRef(null);Ue.useImperativeHandle(mt,()=>Ze.current);const{className:St,rootClassName:Vt,size:Nt,disabled:cn,prefixCls:on,addonBefore:Kn,addonAfter:Hr,prefix:hr,bordered:or=!0,readOnly:Ar,status:Lr,controls:kt}=nt,gt=an(nt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Dt=Bt("input-number",on),[En,qn]=Rn(Dt),{compactSize:Cn,compactItemClassnames:Dn}=(0,Fr.ri)(Dt,rn);let In=Ue.createElement(Pe.Z,{className:`${Dt}-handler-up-inner`}),Un=Ue.createElement(ae.Z,{className:`${Dt}-handler-down-inner`});const kr=typeof kt=="boolean"?kt:void 0;typeof kt=="object"&&(In=typeof kt.upIcon=="undefined"?In:Ue.createElement("span",{className:`${Dt}-handler-up-inner`},kt.upIcon),Un=typeof kt.downIcon=="undefined"?Un:Ue.createElement("span",{className:`${Dt}-handler-down-inner`},kt.downIcon));const{hasFeedback:pn,status:di,isFormItemInput:Qr,feedbackIcon:Fi}=Ue.useContext(dr.aM),Ni=(0,hn.F)(di,Lr),Ci=(0,ur.Z)(ci=>{var Mi;return(Mi=Nt!=null?Nt:Cn)!==null&&Mi!==void 0?Mi:ci}),Qi=Ue.useContext(mr.Z),Ei=cn!=null?cn:Qi,pi=qe()({[`${Dt}-lg`]:Ci==="large",[`${Dt}-sm`]:Ci==="small",[`${Dt}-rtl`]:rn==="rtl",[`${Dt}-borderless`]:!or,[`${Dt}-in-form-item`]:Qr},(0,hn.Z)(Dt,Ni),Dn,qn),Hi=`${Dt}-group`,$i=Ue.createElement(gn,Object.assign({ref:Ze,disabled:Ei,className:qe()(St,Vt),upHandler:In,downHandler:Un,prefixCls:Dt,readOnly:Ar,controls:kr,prefix:hr,suffix:pn&&Fi,addonAfter:Hr&&Ue.createElement(Fr.BR,null,Ue.createElement(dr.Ux,{override:!0,status:!0},Hr)),addonBefore:Kn&&Ue.createElement(Fr.BR,null,Ue.createElement(dr.Ux,{override:!0,status:!0},Kn)),classNames:{input:pi},classes:{affixWrapper:qe()((0,hn.Z)(`${Dt}-affix-wrapper`,Ni,pn),{[`${Dt}-affix-wrapper-sm`]:Ci==="small",[`${Dt}-affix-wrapper-lg`]:Ci==="large",[`${Dt}-affix-wrapper-rtl`]:rn==="rtl",[`${Dt}-affix-wrapper-borderless`]:!or},qn),wrapper:qe()({[`${Hi}-rtl`]:rn==="rtl",[`${Dt}-wrapper-disabled`]:Ei},qn),group:qe()({[`${Dt}-group-wrapper-sm`]:Ci==="small",[`${Dt}-group-wrapper-lg`]:Ci==="large",[`${Dt}-group-wrapper-rtl`]:rn==="rtl"},(0,hn.Z)(`${Dt}-group-wrapper`,Ni,pn),qn)}},gt));return En($i)}),lr=vr,Gn=nt=>Ue.createElement(Vn.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ue.createElement(vr,Object.assign({},nt)));lr._InternalPanelDoNotUseOrYouWillBeFired=Gn;var jn=lr},82586:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Yt},n:function(){return Ee}});var ae=se(16646),Pe=se(94184),Re=se.n(Pe),qe=se(67656),ve=se(17799),ke=se(67294),Le=se(9708),xe=se(53124),me=se(98866),Ie=se(98675),st=se(65223),Ne=se(4173),xt=se(72922),pt=se(47673);function ct(Xe){return!!(Xe.prefix||Xe.suffix||Xe.allowClear)}var rt=function(Xe,lt){var Se={};for(var Ce in Xe)Object.prototype.hasOwnProperty.call(Xe,Ce)&&lt.indexOf(Ce)<0&&(Se[Ce]=Xe[Ce]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ce=Object.getOwnPropertySymbols(Xe);je<Ce.length;je++)lt.indexOf(Ce[je])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Ce[je])&&(Se[Ce[je]]=Xe[Ce[je]]);return Se};function Ee(Xe,lt){if(!Xe)return;Xe.focus(lt);const{cursor:Se}=lt||{};if(Se){const Ce=Xe.value.length;switch(Se){case"start":Xe.setSelectionRange(0,0);break;case"end":Xe.setSelectionRange(Ce,Ce);break;default:Xe.setSelectionRange(0,Ce);break}}}var Yt=(0,ke.forwardRef)((Xe,lt)=>{var Se;const{prefixCls:Ce,bordered:je=!0,status:Ue,size:Mt,disabled:ht,onBlur:Ft,onFocus:tt,suffix:Jt,allowClear:Rt,addonAfter:yn,addonBefore:tn,className:Hn,style:Yn,styles:tr,rootClassName:Qe,onChange:we,classNames:At}=Xe,Mn=rt(Xe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:_t,direction:$e,input:dt}=ke.useContext(xe.E_),qt=_t("input",Ce),Xn=(0,ke.useRef)(null),[bn,un]=(0,pt.ZP)(qt),{compactSize:nn,compactItemClassnames:xn}=(0,Ne.ri)(qt,$e),Pn=(0,Ie.Z)(Et=>{var Lt;return(Lt=Mt!=null?Mt:nn)!==null&&Lt!==void 0?Lt:Et}),De=ke.useContext(me.Z),ue=ht!=null?ht:De,{status:ce,hasFeedback:he,feedbackIcon:fe}=(0,ke.useContext)(st.aM),le=(0,Le.F)(ce,Ue),Me=ct(Xe)||!!he,Ve=(0,ke.useRef)(Me);(0,ke.useEffect)(()=>{var Et;Me&&Ve.current,Ve.current=Me},[Me]);const ft=(0,xt.Z)(Xn,!0),Ht=Et=>{ft(),Ft==null||Ft(Et)},Zt=Et=>{ft(),tt==null||tt(Et)},jt=Et=>{ft(),we==null||we(Et)},$t=(he||Jt)&&ke.createElement(ke.Fragment,null,Jt,he&&fe);let Je;return typeof Rt=="object"&&(Rt!=null&&Rt.clearIcon)?Je=Rt:Rt&&(Je={clearIcon:ke.createElement(ae.Z,null)}),bn(ke.createElement(qe.default,Object.assign({ref:(0,ve.sQ)(lt,Xn),prefixCls:qt,autoComplete:dt==null?void 0:dt.autoComplete},Mn,{disabled:ue,onBlur:Ht,onFocus:Zt,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Yn),styles:Object.assign(Object.assign({},dt==null?void 0:dt.styles),tr),suffix:$t,allowClear:Je,className:Re()(Hn,Qe,xn,dt==null?void 0:dt.className),onChange:jt,addonAfter:yn&&ke.createElement(Ne.BR,null,ke.createElement(st.Ux,{override:!0,status:!0},yn)),addonBefore:tn&&ke.createElement(Ne.BR,null,ke.createElement(st.Ux,{override:!0,status:!0},tn)),classNames:Object.assign(Object.assign(Object.assign({},At),dt==null?void 0:dt.classNames),{input:Re()({[`${qt}-sm`]:Pn==="small",[`${qt}-lg`]:Pn==="large",[`${qt}-rtl`]:$e==="rtl",[`${qt}-borderless`]:!je},!Me&&(0,Le.Z)(qt,le),At==null?void 0:At.input,(Se=dt==null?void 0:dt.classNames)===null||Se===void 0?void 0:Se.input,un)}),classes:{affixWrapper:Re()({[`${qt}-affix-wrapper-sm`]:Pn==="small",[`${qt}-affix-wrapper-lg`]:Pn==="large",[`${qt}-affix-wrapper-rtl`]:$e==="rtl",[`${qt}-affix-wrapper-borderless`]:!je},(0,Le.Z)(`${qt}-affix-wrapper`,le,he),un),wrapper:Re()({[`${qt}-group-rtl`]:$e==="rtl"},un),group:Re()({[`${qt}-group-wrapper-sm`]:Pn==="small",[`${qt}-group-wrapper-lg`]:Pn==="large",[`${qt}-group-wrapper-rtl`]:$e==="rtl",[`${qt}-group-wrapper-disabled`]:ue},(0,Le.Z)(`${qt}-group-wrapper`,le,he),un)}})))})},96330:function(dn,en,se){"use strict";var ae=se(16646),Pe=se(94184),Re=se.n(Pe),qe=se(64701),ve=se(67294),ke=se(9708),Le=se(53124),xe=se(98866),me=se(98675),Ie=se(65223),st=se(82586),Ne=se(47673),xt=function(ct,rt){var Ee={};for(var at in ct)Object.prototype.hasOwnProperty.call(ct,at)&&rt.indexOf(at)<0&&(Ee[at]=ct[at]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,at=Object.getOwnPropertySymbols(ct);Yt<at.length;Yt++)rt.indexOf(at[Yt])<0&&Object.prototype.propertyIsEnumerable.call(ct,at[Yt])&&(Ee[at[Yt]]=ct[at[Yt]]);return Ee};const pt=(0,ve.forwardRef)((ct,rt)=>{const{prefixCls:Ee,bordered:at=!0,size:Yt,disabled:Xe,status:lt,allowClear:Se,showCount:Ce,classNames:je,rootClassName:Ue,className:Mt}=ct,ht=xt(ct,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ft,direction:tt}=ve.useContext(Le.E_),Jt=(0,me.Z)(Yt),Rt=ve.useContext(xe.Z),yn=Xe!=null?Xe:Rt,{status:tn,hasFeedback:Hn,feedbackIcon:Yn}=ve.useContext(Ie.aM),tr=(0,ke.F)(tn,lt),Qe=ve.useRef(null);ve.useImperativeHandle(rt,()=>{var $e;return{resizableTextArea:($e=Qe.current)===null||$e===void 0?void 0:$e.resizableTextArea,focus:dt=>{var qt,Xn;(0,st.n)((Xn=(qt=Qe.current)===null||qt===void 0?void 0:qt.resizableTextArea)===null||Xn===void 0?void 0:Xn.textArea,dt)},blur:()=>{var dt;return(dt=Qe.current)===null||dt===void 0?void 0:dt.blur()}}});const we=Ft("input",Ee);let At;typeof Se=="object"&&(Se!=null&&Se.clearIcon)?At=Se:Se&&(At={clearIcon:ve.createElement(ae.Z,null)});const[Mn,_t]=(0,Ne.ZP)(we);return Mn(ve.createElement(qe.default,Object.assign({},ht,{disabled:yn,allowClear:At,className:Re()(Mt,Ue),classes:{affixWrapper:Re()(`${we}-textarea-affix-wrapper`,{[`${we}-affix-wrapper-rtl`]:tt==="rtl",[`${we}-affix-wrapper-borderless`]:!at,[`${we}-affix-wrapper-sm`]:Jt==="small",[`${we}-affix-wrapper-lg`]:Jt==="large",[`${we}-textarea-show-count`]:Ce},(0,ke.Z)(`${we}-affix-wrapper`,tr),_t)},classNames:Object.assign(Object.assign({},je),{textarea:Re()({[`${we}-borderless`]:!at,[`${we}-sm`]:Jt==="small",[`${we}-lg`]:Jt==="large"},(0,ke.Z)(we,tr),_t,je==null?void 0:je.textarea)}),prefixCls:we,suffix:Hn&&ve.createElement("span",{className:`${we}-textarea-suffix`},Yn),showCount:Ce,ref:Qe})))});en.Z=pt},72922:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Pe}});var ae=se(67294);function Pe(Re,qe){const ve=(0,ae.useRef)([]),ke=()=>{ve.current.push(setTimeout(()=>{var Le,xe,me,Ie;!((Le=Re.current)===null||Le===void 0)&&Le.input&&((xe=Re.current)===null||xe===void 0?void 0:xe.input.getAttribute("type"))==="password"&&(!((me=Re.current)===null||me===void 0)&&me.input.hasAttribute("value"))&&((Ie=Re.current)===null||Ie===void 0||Ie.input.removeAttribute("value"))}))};return(0,ae.useEffect)(()=>(qe&&ke(),()=>ve.current.forEach(Le=>{Le&&clearTimeout(Le)})),[]),ke}},69677:function(dn,en,se){"use strict";se.d(en,{default:function(){return Jt}});var ae=se(94184),Pe=se.n(ae),Re=se(67294),qe=se(53124),ve=se(65223),ke=se(47673),xe=Rt=>{const{getPrefixCls:yn,direction:tn}=(0,Re.useContext)(qe.E_),{prefixCls:Hn,className:Yn}=Rt,tr=yn("input-group",Hn),Qe=yn("input"),[we,At]=(0,ke.ZP)(Qe),Mn=Pe()(tr,{[`${tr}-lg`]:Rt.size==="large",[`${tr}-sm`]:Rt.size==="small",[`${tr}-compact`]:Rt.compact,[`${tr}-rtl`]:tn==="rtl"},At,Yn),_t=(0,Re.useContext)(ve.aM),$e=(0,Re.useMemo)(()=>Object.assign(Object.assign({},_t),{isFormItemInput:!1}),[_t]);return we(Re.createElement("span",{className:Mn,style:Rt.style,onMouseEnter:Rt.onMouseEnter,onMouseLeave:Rt.onMouseLeave,onFocus:Rt.onFocus,onBlur:Rt.onBlur},Re.createElement(ve.aM.Provider,{value:$e},Rt.children)))},me=se(82586),Ie=se(63237),st=se(99569),Ne=se(10366),xt=se(17799),pt=se(72922),ct=function(Rt,yn){var tn={};for(var Hn in Rt)Object.prototype.hasOwnProperty.call(Rt,Hn)&&yn.indexOf(Hn)<0&&(tn[Hn]=Rt[Hn]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,Hn=Object.getOwnPropertySymbols(Rt);Yn<Hn.length;Yn++)yn.indexOf(Hn[Yn])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Hn[Yn])&&(tn[Hn[Yn]]=Rt[Hn[Yn]]);return tn};const rt=Rt=>Rt?Re.createElement(st.Z,null):Re.createElement(Ie.Z,null),Ee={click:"onClick",hover:"onMouseOver"};var Yt=Re.forwardRef((Rt,yn)=>{const{visibilityToggle:tn=!0}=Rt,Hn=typeof tn=="object"&&tn.visible!==void 0,[Yn,tr]=(0,Re.useState)(()=>Hn?tn.visible:!1),Qe=(0,Re.useRef)(null);Re.useEffect(()=>{Hn&&tr(tn.visible)},[Hn,tn]);const we=(0,pt.Z)(Qe),At=()=>{const{disabled:ue}=Rt;ue||(Yn&&we(),tr(ce=>{var he;const fe=!ce;return typeof tn=="object"&&((he=tn.onVisibleChange)===null||he===void 0||he.call(tn,fe)),fe}))},Mn=ue=>{const{action:ce="click",iconRender:he=rt}=Rt,fe=Ee[ce]||"",le=he(Yn),Me={[fe]:At,className:`${ue}-icon`,key:"passwordIcon",onMouseDown:Ve=>{Ve.preventDefault()},onMouseUp:Ve=>{Ve.preventDefault()}};return Re.cloneElement(Re.isValidElement(le)?le:Re.createElement("span",null,le),Me)},{className:_t,prefixCls:$e,inputPrefixCls:dt,size:qt}=Rt,Xn=ct(Rt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:bn}=Re.useContext(qe.E_),un=bn("input",dt),nn=bn("input-password",$e),xn=tn&&Mn(nn),Pn=Pe()(nn,_t,{[`${nn}-${qt}`]:!!qt}),De=Object.assign(Object.assign({},(0,Ne.Z)(Xn,["suffix","iconRender","visibilityToggle"])),{type:Yn?"text":"password",className:Pn,prefixCls:un,suffix:xn});return qt&&(De.size=qt),Re.createElement(me.Z,Object.assign({ref:(0,xt.sQ)(yn,Qe)},De))}),Xe=se(72395),lt=se(96159),Se=se(71577),Ce=se(98675),je=se(4173),Ue=function(Rt,yn){var tn={};for(var Hn in Rt)Object.prototype.hasOwnProperty.call(Rt,Hn)&&yn.indexOf(Hn)<0&&(tn[Hn]=Rt[Hn]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,Hn=Object.getOwnPropertySymbols(Rt);Yn<Hn.length;Yn++)yn.indexOf(Hn[Yn])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Hn[Yn])&&(tn[Hn[Yn]]=Rt[Hn[Yn]]);return tn},ht=Re.forwardRef((Rt,yn)=>{const{prefixCls:tn,inputPrefixCls:Hn,className:Yn,size:tr,suffix:Qe,enterButton:we=!1,addonAfter:At,loading:Mn,disabled:_t,onSearch:$e,onChange:dt,onCompositionStart:qt,onCompositionEnd:Xn}=Rt,bn=Ue(Rt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:un,direction:nn}=Re.useContext(qe.E_),xn=Re.useRef(!1),Pn=un("input-search",tn),De=un("input",Hn),{compactSize:ue}=(0,je.ri)(Pn,nn),ce=(0,Ce.Z)(Xt=>{var wt;return(wt=tr!=null?tr:ue)!==null&&wt!==void 0?wt:Xt}),he=Re.useRef(null),fe=Xt=>{Xt&&Xt.target&&Xt.type==="click"&&$e&&$e(Xt.target.value,Xt,{source:"clear"}),dt&&dt(Xt)},le=Xt=>{var wt;document.activeElement===((wt=he.current)===null||wt===void 0?void 0:wt.input)&&Xt.preventDefault()},Me=Xt=>{var wt,Nn;$e&&$e((Nn=(wt=he.current)===null||wt===void 0?void 0:wt.input)===null||Nn===void 0?void 0:Nn.value,Xt,{source:"input"})},Ve=Xt=>{xn.current||Mn||Me(Xt)},ft=typeof we=="boolean"?Re.createElement(Xe.Z,null):null,Ht=`${Pn}-button`;let Zt;const jt=we||{},$t=jt.type&&jt.type.__ANT_BUTTON===!0;$t||jt.type==="button"?Zt=(0,lt.Tm)(jt,Object.assign({onMouseDown:le,onClick:Xt=>{var wt,Nn;(Nn=(wt=jt==null?void 0:jt.props)===null||wt===void 0?void 0:wt.onClick)===null||Nn===void 0||Nn.call(wt,Xt),Me(Xt)},key:"enterButton"},$t?{className:Ht,size:ce}:{})):Zt=Re.createElement(Se.ZP,{className:Ht,type:we?"primary":void 0,size:ce,disabled:_t,key:"enterButton",onMouseDown:le,onClick:Me,loading:Mn,icon:ft},we),At&&(Zt=[Zt,(0,lt.Tm)(At,{key:"addonAfter"})]);const Je=Pe()(Pn,{[`${Pn}-rtl`]:nn==="rtl",[`${Pn}-${ce}`]:!!ce,[`${Pn}-with-button`]:!!we},Yn),Et=Xt=>{xn.current=!0,qt==null||qt(Xt)},Lt=Xt=>{xn.current=!1,Xn==null||Xn(Xt)};return Re.createElement(me.Z,Object.assign({ref:(0,xt.sQ)(he,yn),onPressEnter:Ve},bn,{size:ce,onCompositionStart:Et,onCompositionEnd:Lt,prefixCls:De,addonAfter:Zt,suffix:Qe,onChange:fe,className:Je,disabled:_t}))}),Ft=se(96330);const tt=me.Z;tt.Group=xe,tt.Search=ht,tt.TextArea=Ft.Z,tt.Password=Yt;var Jt=tt},47673:function(dn,en,se){"use strict";se.d(en,{M1:function(){return Le},TM:function(){return lt},Xy:function(){return xe},bi:function(){return st},e5:function(){return Xe},ik:function(){return Ne},nz:function(){return ve},pU:function(){return ke},s7:function(){return xt},x0:function(){return Ie}});var ae=se(14747),Pe=se(80110),Re=se(45503),qe=se(67968);const ve=Se=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Se,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ke=Se=>({borderColor:Se.hoverBorderColor}),Le=Se=>({borderColor:Se.activeBorderColor,boxShadow:Se.activeShadow,outline:0}),xe=Se=>({color:Se.colorTextDisabled,backgroundColor:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ke((0,Re.TS)(Se,{hoverBorderColor:Se.colorBorder})))}),me=Se=>{const{paddingBlockLG:Ce,fontSizeLG:je,lineHeightLG:Ue,borderRadiusLG:Mt,paddingInlineLG:ht}=Se;return{padding:`${Ce}px ${ht}px`,fontSize:je,lineHeight:Ue,borderRadius:Mt}},Ie=Se=>({padding:`${Se.paddingBlockSM}px ${Se.paddingInlineSM}px`,borderRadius:Se.borderRadiusSM}),st=(Se,Ce)=>{const{componentCls:je,colorError:Ue,colorWarning:Mt,errorActiveShadow:ht,warningActiveShadow:Ft,colorErrorBorderHover:tt,colorWarningBorderHover:Jt}=Se;return{[`&-status-error:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:Ue,"&:hover":{borderColor:tt},"&:focus, &-focused":Object.assign({},Le((0,Re.TS)(Se,{activeBorderColor:Ue,activeShadow:ht}))),[`${je}-prefix, ${je}-suffix`]:{color:Ue}},[`&-status-warning:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:Mt,"&:hover":{borderColor:Jt},"&:focus, &-focused":Object.assign({},Le((0,Re.TS)(Se,{activeBorderColor:Mt,activeShadow:Ft}))),[`${je}-prefix, ${je}-suffix`]:{color:Mt}}}},Ne=Se=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Se.paddingBlock}px ${Se.paddingInline}px`,color:Se.colorText,fontSize:Se.fontSize,lineHeight:Se.lineHeight,backgroundColor:Se.colorBgContainer,backgroundImage:"none",borderWidth:Se.lineWidth,borderStyle:Se.lineType,borderColor:Se.colorBorder,borderRadius:Se.borderRadius,transition:`all ${Se.motionDurationMid}`},ve(Se.colorTextPlaceholder)),{"&:hover":Object.assign({},ke(Se)),"&:focus, &-focused":Object.assign({},Le(Se)),"&-disabled, &[disabled]":Object.assign({},xe(Se)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Se.controlHeight,lineHeight:Se.lineHeight,verticalAlign:"bottom",transition:`all ${Se.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},me(Se)),"&-sm":Object.assign({},Ie(Se)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),xt=Se=>{const{componentCls:Ce,antCls:je}=Se;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Se.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Ce}, &-lg > ${Ce}-group-addon`]:Object.assign({},me(Se)),[`&-sm ${Ce}, &-sm > ${Ce}-group-addon`]:Object.assign({},Ie(Se)),[`&-lg ${je}-select-single ${je}-select-selector`]:{height:Se.controlHeightLG},[`&-sm ${je}-select-single ${je}-select-selector`]:{height:Se.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 ${Se.paddingInline}px`,color:Se.colorText,fontWeight:"normal",fontSize:Se.fontSize,textAlign:"center",backgroundColor:Se.colorFillAlter,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadius,transition:`all ${Se.motionDurationSlow}`,lineHeight:1,[`${je}-select`]:{margin:`-${Se.paddingBlock+1}px -${Se.paddingInline}px`,[`&${je}-select-single:not(${je}-select-customize-input)`]:{[`${je}-select-selector`]:{backgroundColor:"inherit",border:`${Se.lineWidth}px ${Se.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${je}-select-selector`]:{color:Se.colorPrimary}}},[`${je}-cascader-picker`]:{margin:`-9px -${Se.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:Se.borderRadius,borderEndStartRadius:Se.borderRadius}},[`&:not(:first-child), ${Ce}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Ce}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ae.dF)()),{[`${Ce}-group-addon, ${Ce}-group-wrap, > ${Ce}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Se.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:-Se.lineWidth,borderInlineEndWidth:Se.lineWidth},[`${Ce}`]:{float:"none"},[`& > ${je}-select > ${je}-select-selector,
& > ${je}-select-auto-complete ${Ce},
& > ${je}-cascader-picker ${Ce},
& > ${Ce}-group-wrapper ${Ce}`]:{borderInlineEndWidth:Se.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:Se.borderRadius,borderEndStartRadius:Se.borderRadius},[`& > *:last-child,
& > ${je}-select:last-child > ${je}-select-selector,
& > ${je}-cascader-picker:last-child ${Ce},
& > ${je}-cascader-picker-focused:last-child ${Ce}`]:{borderInlineEndWidth:Se.lineWidth,borderStartEndRadius:Se.borderRadius,borderEndEndRadius:Se.borderRadius},[`& > ${je}-select-auto-complete ${Ce}`]:{verticalAlign:"top"},[`${Ce}-group-wrapper + ${Ce}-group-wrapper`]:{marginInlineStart:-Se.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:Se.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Se.borderRadius}}}})}},pt=Se=>{const{componentCls:Ce,controlHeightSM:je,lineWidth:Ue}=Se,ht=(je-Ue*2-16)/2;return{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Se)),Ne(Se)),st(Se,Ce)),{'&[type="color"]':{height:Se.controlHeight,[`&${Ce}-lg`]:{height:Se.controlHeightLG},[`&${Ce}-sm`]:{height:je,paddingTop:ht,paddingBottom:ht}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ct=Se=>{const{componentCls:Ce}=Se;return{[`${Ce}-clear-icon`]:{margin:0,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Se.motionDurationSlow}`,"&:hover":{color:Se.colorTextTertiary},"&:active":{color:Se.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Se.inputAffixPadding}px`}}}},rt=Se=>{const{componentCls:Ce,inputAffixPadding:je,colorTextDescription:Ue,motionDurationSlow:Mt,colorIcon:ht,colorIconHover:Ft,iconCls:tt}=Se;return{[`${Ce}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ne(Se)),{display:"inline-flex",[`&:not(${Ce}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ke(Se)),{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:Se.paddingXS}},"&-show-count-suffix":{color:Ue},"&-show-count-has-suffix":{marginInlineEnd:Se.paddingXXS},"&-prefix":{marginInlineEnd:je},"&-suffix":{marginInlineStart:je}}}),ct(Se)),{[`${tt}${Ce}-password-icon`]:{color:ht,cursor:"pointer",transition:`all ${Mt}`,"&:hover":{color:Ft}}}),st(Se,`${Ce}-affix-wrapper`))}},Ee=Se=>{const{componentCls:Ce,colorError:je,colorWarning:Ue,borderRadiusLG:Mt,borderRadiusSM:ht}=Se;return{[`${Ce}-group`]:Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Se)),xt(Se)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Ce}-group-addon`]:{borderRadius:Mt,fontSize:Se.fontSizeLG}},"&-sm":{[`${Ce}-group-addon`]:{borderRadius:ht}},"&-status-error":{[`${Ce}-group-addon`]:{color:je,borderColor:je}},"&-status-warning":{[`${Ce}-group-addon`]:{color:Ue,borderColor:Ue}},"&-disabled":{[`${Ce}-group-addon`]:Object.assign({},xe(Se))},[`&: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}}}})}},at=Se=>{const{componentCls:Ce,antCls:je}=Se,Ue=`${Ce}-search`;return{[Ue]:{[`${Ce}`]:{"&:hover, &:focus":{borderColor:Se.colorPrimaryHover,[`+ ${Ce}-group-addon ${Ue}-button:not(${je}-btn-primary)`]:{borderInlineStartColor:Se.colorPrimaryHover}}},[`${Ce}-affix-wrapper`]:{borderRadius:0},[`${Ce}-lg`]:{lineHeight:Se.lineHeightLG-2e-4},[`> ${Ce}-group`]:{[`> ${Ce}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ue}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Se.borderRadius,borderEndEndRadius:Se.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ue}-button:not(${je}-btn-primary)`]:{color:Se.colorTextDescription,"&:hover":{color:Se.colorPrimaryHover},"&:active":{color:Se.colorPrimaryActive},[`&${je}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ue}-button`]:{height:Se.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ue}-button`]:{height:Se.controlHeightLG},[`&-small ${Ue}-button`]:{height:Se.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Ce}-compact-item`]:{[`&:not(${Ce}-compact-last-item)`]:{[`${Ce}-group-addon`]:{[`${Ce}-search-button`]:{marginInlineEnd:-Se.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}}}}},Yt=Se=>{const{componentCls:Ce,paddingLG:je}=Se,Ue=`${Ce}-textarea`;return{[Ue]:{position:"relative","&-show-count":{[`> ${Ce}`]:{height:"100%"},[`${Ce}-data-count`]:{position:"absolute",bottom:-Se.fontSize*Se.lineHeight,insetInlineEnd:0,color:Se.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Ce}`]:{paddingInlineEnd:je}},[`&-affix-wrapper${Ue}-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:Se.paddingXS,insetBlockStart:Se.paddingXS},[`${Ue}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Se.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function Xe(Se){return(0,Re.TS)(Se,{inputAffixPadding:Se.paddingXXS})}const lt=Se=>{const{controlHeight:Ce,fontSize:je,lineHeight:Ue,lineWidth:Mt,controlHeightSM:ht,controlHeightLG:Ft,fontSizeLG:tt,lineHeightLG:Jt,paddingSM:Rt,controlPaddingHorizontalSM:yn,controlPaddingHorizontal:tn,colorFillAlter:Hn,colorPrimaryHover:Yn,controlOutlineWidth:tr,controlOutline:Qe,colorErrorOutline:we,colorWarningOutline:At}=Se;return{paddingBlock:Math.max(Math.round((Ce-je*Ue)/2*10)/10-Mt,3),paddingBlockSM:Math.max(Math.round((ht-je*Ue)/2*10)/10-Mt,0),paddingBlockLG:Math.ceil((Ft-tt*Jt)/2*10)/10-Mt,paddingInline:Rt-Mt,paddingInlineSM:yn-Mt,paddingInlineLG:tn-Mt,addonBg:Hn,activeBorderColor:Yn,hoverBorderColor:Yn,activeShadow:`0 0 0 ${tr}px ${Qe}`,errorActiveShadow:`0 0 0 ${tr}px ${we}`,warningActiveShadow:`0 0 0 ${tr}px ${At}`}};en.ZP=(0,qe.Z)("Input",Se=>{const Ce=(0,Re.TS)(Se,Xe(Se));return[pt(Ce),Yt(Ce),rt(Ce),Ee(Ce),at(Ce),(0,Pe.c)(Ce)]},lt)},71322:function(dn,en,se){"use strict";se.d(en,{D:function(){return Yt},Z:function(){return Se}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(je,Ue){return Pe.createElement(ve.Z,(0,ae.Z)({},je,{ref:Ue,icon:qe}))},Le=Pe.forwardRef(ke),xe=se(22751),me=se(91034),Ie=se(94184),st=se.n(Ie),Ne=se(10366),pt=Ce=>!isNaN(parseFloat(Ce))&&isFinite(Ce),ct=se(53124),rt=se(84321),Ee=function(Ce,je){var Ue={};for(var Mt in Ce)Object.prototype.hasOwnProperty.call(Ce,Mt)&&je.indexOf(Mt)<0&&(Ue[Mt]=Ce[Mt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Mt=Object.getOwnPropertySymbols(Ce);ht<Mt.length;ht++)je.indexOf(Mt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Mt[ht])&&(Ue[Mt[ht]]=Ce[Mt[ht]]);return Ue};const at={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Yt=Pe.createContext({}),Xe=(()=>{let Ce=0;return function(){let je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ce+=1,`${je}${Ce}`}})();var Se=Pe.forwardRef((Ce,je)=>{const{prefixCls:Ue,className:Mt,trigger:ht,children:Ft,defaultCollapsed:tt=!1,theme:Jt="dark",style:Rt={},collapsible:yn=!1,reverseArrow:tn=!1,width:Hn=200,collapsedWidth:Yn=80,zeroWidthTriggerStyle:tr,breakpoint:Qe,onCollapse:we,onBreakpoint:At}=Ce,Mn=Ee(Ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:_t}=(0,Pe.useContext)(rt.Gs),[$e,dt]=(0,Pe.useState)("collapsed"in Ce?Ce.collapsed:tt),[qt,Xn]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in Ce&&dt(Ce.collapsed)},[Ce.collapsed]);const bn=(ue,ce)=>{"collapsed"in Ce||dt(ue),we==null||we(ue,ce)},un=(0,Pe.useRef)();un.current=ue=>{Xn(ue.matches),At==null||At(ue.matches),$e!==ue.matches&&bn(ue.matches,"responsive")},(0,Pe.useEffect)(()=>{function ue(he){return un.current(he)}let ce;if(typeof window!="undefined"){const{matchMedia:he}=window;if(he&&Qe&&Qe in at){ce=he(`(max-width: ${at[Qe]})`);try{ce.addEventListener("change",ue)}catch(fe){ce.addListener(ue)}ue(ce)}}return()=>{try{ce==null||ce.removeEventListener("change",ue)}catch(he){ce==null||ce.removeListener(ue)}}},[Qe]),(0,Pe.useEffect)(()=>{const ue=Xe("ant-sider-");return _t.addSider(ue),()=>_t.removeSider(ue)},[]);const nn=()=>{bn(!$e,"clickTrigger")},{getPrefixCls:xn}=(0,Pe.useContext)(ct.E_),Pn=()=>{const ue=xn("layout-sider",Ue),ce=(0,Ne.Z)(Mn,["collapsed"]),he=$e?Yn:Hn,fe=pt(he)?`${he}px`:String(he),le=parseFloat(String(Yn||0))===0?Pe.createElement("span",{onClick:nn,className:st()(`${ue}-zero-width-trigger`,`${ue}-zero-width-trigger-${tn?"right":"left"}`),style:tr},ht||Pe.createElement(Le,null)):null,ft={expanded:tn?Pe.createElement(me.Z,null):Pe.createElement(xe.Z,null),collapsed:tn?Pe.createElement(xe.Z,null):Pe.createElement(me.Z,null)}[$e?"collapsed":"expanded"],Ht=ht!==null?le||Pe.createElement("div",{className:`${ue}-trigger`,onClick:nn,style:{width:fe}},ht||ft):null,Zt=Object.assign(Object.assign({},Rt),{flex:`0 0 ${fe}`,maxWidth:fe,minWidth:fe,width:fe}),jt=st()(ue,`${ue}-${Jt}`,{[`${ue}-collapsed`]:!!$e,[`${ue}-has-trigger`]:yn&&ht!==null&&!le,[`${ue}-below`]:!!qt,[`${ue}-zero-width`]:parseFloat(fe)===0},Mt);return Pe.createElement("aside",Object.assign({className:jt},ce,{style:Zt,ref:je}),Pe.createElement("div",{className:`${ue}-children`},Ft),yn||qt&&le?Ht:null)},De=Pe.useMemo(()=>({siderCollapsed:$e}),[$e]);return Pe.createElement(Yt.Provider,{value:De},Pn())})},84321:function(dn,en,se){"use strict";se.d(en,{VY:function(){return Xe},$_:function(){return Yt},h4:function(){return at},Gs:function(){return xt},ZP:function(){return lt}});var ae=se(74902),Pe=se(94184),Re=se.n(Pe),qe=se(10366),ve=se(67294),ke=se(53124),Le=se(67968),me=Se=>{const{componentCls:Ce,bodyBg:je,lightSiderBg:Ue,lightTriggerBg:Mt,lightTriggerColor:ht}=Se;return{[`${Ce}-sider-light`]:{background:Ue,[`${Ce}-sider-trigger`]:{color:ht,background:Mt},[`${Ce}-sider-zero-width-trigger`]:{color:ht,background:Mt,border:`1px solid ${je}`,borderInlineStart:0}}}};const Ie=Se=>{const{antCls:Ce,componentCls:je,colorText:Ue,triggerColor:Mt,footerBg:ht,triggerBg:Ft,headerHeight:tt,headerPadding:Jt,headerColor:Rt,footerPadding:yn,triggerHeight:tn,zeroTriggerHeight:Hn,zeroTriggerWidth:Yn,motionDurationMid:tr,motionDurationSlow:Qe,fontSize:we,borderRadius:At,bodyBg:Mn,headerBg:_t,siderBg:$e}=Se;return{[je]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Mn,"&, *":{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:$e,transition:`all ${tr}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ce}-menu${Ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:tn},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:tn,color:Mt,lineHeight:`${tn}px`,textAlign:"center",background:Ft,cursor:"pointer",transition:`all ${tr}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:tt,insetInlineEnd:-Yn,zIndex:1,width:Yn,height:Hn,color:Mt,fontSize:Se.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:$e,borderStartStartRadius:0,borderStartEndRadius:At,borderEndEndRadius:At,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Qe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Qe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Yn,borderStartStartRadius:At,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:At}}}}},me(Se)),{"&-rtl":{direction:"rtl"}}),[`${je}-header`]:{height:tt,padding:Jt,color:Rt,lineHeight:`${tt}px`,background:_t,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${je}-footer`]:{padding:yn,color:Ue,fontSize:we,background:ht},[`${je}-content`]:{flex:"auto",minHeight:0}}};var st=(0,Le.Z)("Layout",Se=>[Ie(Se)],Se=>{const{colorBgLayout:Ce,controlHeight:je,controlHeightLG:Ue,colorText:Mt,controlHeightSM:ht,marginXXS:Ft,colorTextLightSolid:tt,colorBgContainer:Jt}=Se,Rt=Ue*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:je*2,headerPadding:`0 ${Rt}px`,headerColor:Mt,footerPadding:`${ht}px ${Rt}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:Ue+Ft*2,triggerBg:"#002140",triggerColor:tt,zeroTriggerWidth:Ue,zeroTriggerHeight:Ue,lightSiderBg:Jt,lightTriggerBg:Jt,lightTriggerColor:Mt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ne=function(Se,Ce){var je={};for(var Ue in Se)Object.prototype.hasOwnProperty.call(Se,Ue)&&Ce.indexOf(Ue)<0&&(je[Ue]=Se[Ue]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ue=Object.getOwnPropertySymbols(Se);Mt<Ue.length;Mt++)Ce.indexOf(Ue[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ue[Mt])&&(je[Ue[Mt]]=Se[Ue[Mt]]);return je};const xt=ve.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function pt(Se){let{suffixCls:Ce,tagName:je,displayName:Ue}=Se;return Mt=>ve.forwardRef((Ft,tt)=>ve.createElement(Mt,Object.assign({ref:tt,suffixCls:Ce,tagName:je},Ft)))}const ct=ve.forwardRef((Se,Ce)=>{const{prefixCls:je,suffixCls:Ue,className:Mt,tagName:ht}=Se,Ft=Ne(Se,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:tt}=ve.useContext(ke.E_),Jt=tt("layout",je),[Rt,yn]=st(Jt),tn=Ue?`${Jt}-${Ue}`:Jt;return Rt(ve.createElement(ht,Object.assign({className:Re()(je||tn,Mt,yn),ref:Ce},Ft)))}),rt=ve.forwardRef((Se,Ce)=>{const{direction:je}=ve.useContext(ke.E_),[Ue,Mt]=ve.useState([]),{prefixCls:ht,className:Ft,rootClassName:tt,children:Jt,hasSider:Rt,tagName:yn,style:tn}=Se,Hn=Ne(Se,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Yn=(0,qe.Z)(Hn,["suffixCls"]),{getPrefixCls:tr,layout:Qe}=ve.useContext(ke.E_),we=tr("layout",ht),[At,Mn]=st(we),_t=Re()(we,{[`${we}-has-sider`]:typeof Rt=="boolean"?Rt:Ue.length>0,[`${we}-rtl`]:je==="rtl"},Qe==null?void 0:Qe.className,Ft,tt,Mn),$e=ve.useMemo(()=>({siderHook:{addSider:dt=>{Mt(qt=>[].concat((0,ae.Z)(qt),[dt]))},removeSider:dt=>{Mt(qt=>qt.filter(Xn=>Xn!==dt))}}}),[]);return At(ve.createElement(xt.Provider,{value:$e},ve.createElement(yn,Object.assign({ref:Ce,className:_t,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),tn)},Yn),Jt)))}),Ee=pt({tagName:"div",displayName:"Layout"})(rt),at=pt({suffixCls:"header",tagName:"header",displayName:"Header"})(ct),Yt=pt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ct),Xe=pt({suffixCls:"content",tagName:"main",displayName:"Content"})(ct);var lt=Ee},76529:function(dn,en,se){"use strict";se.d(en,{J:function(){return ke}});var ae=se(67294),Pe=se(4173),Re=se(60276),qe=function(Le,xe){var me={};for(var Ie in Le)Object.prototype.hasOwnProperty.call(Le,Ie)&&xe.indexOf(Ie)<0&&(me[Ie]=Le[Ie]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ie=Object.getOwnPropertySymbols(Le);st<Ie.length;st++)xe.indexOf(Ie[st])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ie[st])&&(me[Ie[st]]=Le[Ie[st]]);return me};const ve=ae.createContext(null),ke=ae.forwardRef((Le,xe)=>{const{children:me}=Le,Ie=qe(Le,["children"]),st=ae.useContext(ve),Ne=ae.useMemo(()=>Object.assign(Object.assign({},st),Ie),[st,Ie.prefixCls,Ie.mode,Ie.selectable]);return ae.createElement(ve.Provider,{value:Ne},ae.createElement(Pe.BR,null,(0,Re.supportNodeRef)(me)?ae.cloneElement(me,{ref:xe}):me))});en.Z=ve},68508:function(dn,en,se){"use strict";se.d(en,{default:function(){return ue}});var ae=se(78595),Pe=se(67294),Re=se(71322),qe=se(94184),ve=se.n(qe),ke=se(53124),Le=function(ce,he){var fe={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(fe[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,le=Object.getOwnPropertySymbols(ce);Me<le.length;Me++)he.indexOf(le[Me])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Me])&&(fe[le[Me]]=ce[le[Me]]);return fe},me=ce=>{const{prefixCls:he,className:fe,dashed:le}=ce,Me=Le(ce,["prefixCls","className","dashed"]),{getPrefixCls:Ve}=Pe.useContext(ke.E_),ft=Ve("menu",he),Ht=ve()({[`${ft}-item-divider-dashed`]:!!le},fe);return Pe.createElement(ae.iz,Object.assign({className:Ht},Me))},Ie=se(37419),st=se(10366),Ne=se(83062),xt=se(96159),ct=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ee=ce=>{var he;const{className:fe,children:le,icon:Me,title:Ve,danger:ft}=ce,{prefixCls:Ht,firstLevel:Zt,direction:jt,disableMenuItemTitleTooltip:$t,inlineCollapsed:Je}=Pe.useContext(ct),Et=It=>{const gn=Pe.createElement("span",{className:`${Ht}-title-content`},le);return(!Me||(0,xt.l$)(le)&&le.type==="span")&&le&&It&&Zt&&typeof le=="string"?Pe.createElement("div",{className:`${Ht}-inline-collapsed-noicon`},le.charAt(0)):gn},{siderCollapsed:Lt}=Pe.useContext(Re.D);let Xt=Ve;typeof Ve=="undefined"?Xt=Zt?le:"":Ve===!1&&(Xt="");const wt={title:Xt};!Lt&&!Je&&(wt.title=null,wt.open=!1);const Nn=(0,Ie.Z)(le).length;let et=Pe.createElement(ae.ck,Object.assign({},(0,st.Z)(ce,["title","icon","danger"]),{className:ve()({[`${Ht}-item-danger`]:ft,[`${Ht}-item-only-child`]:(Me?Nn+1:Nn)===1},fe),title:typeof Ve=="string"?Ve:void 0}),(0,xt.Tm)(Me,{className:ve()((0,xt.l$)(Me)?(he=Me.props)===null||he===void 0?void 0:he.className:"",`${Ht}-item-icon`)}),Et(Je));return $t||(et=Pe.createElement(Ne.Z,Object.assign({},wt,{placement:jt==="rtl"?"left":"right",overlayClassName:`${Ht}-inline-collapsed-tooltip`}),et)),et},Yt=ce=>{var he;const{popupClassName:fe,icon:le,title:Me,theme:Ve}=ce,ft=Pe.useContext(ct),{prefixCls:Ht,inlineCollapsed:Zt,theme:jt}=ft,$t=(0,ae.Xl)();let Je;if(!le)Je=Zt&&!$t.length&&Me&&typeof Me=="string"?Pe.createElement("div",{className:`${Ht}-inline-collapsed-noicon`},Me.charAt(0)):Pe.createElement("span",{className:`${Ht}-title-content`},Me);else{const Lt=(0,xt.l$)(Me)&&Me.type==="span";Je=Pe.createElement(Pe.Fragment,null,(0,xt.Tm)(le,{className:ve()((0,xt.l$)(le)?(he=le.props)===null||he===void 0?void 0:he.className:"",`${Ht}-item-icon`)}),Lt?Me:Pe.createElement("span",{className:`${Ht}-title-content`},Me))}const Et=Pe.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]);return Pe.createElement(ct.Provider,{value:Et},Pe.createElement(ae.Wd,Object.assign({},(0,st.Z)(ce,["icon"]),{title:Je,popupClassName:ve()(Ht,fe,`${Ht}-${Ve||jt}`)})))},Xe=se(25877),lt=se(60276),Se=se(33603),Ce=se(76529),je=function(ce,he){var fe={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(fe[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,le=Object.getOwnPropertySymbols(ce);Me<le.length;Me++)he.indexOf(le[Me])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Me])&&(fe[le[Me]]=ce[le[Me]]);return fe};function Ue(ce){return(ce||[]).map((he,fe)=>{if(he&&typeof he=="object"){const le=he,{label:Me,children:Ve,key:ft,type:Ht}=le,Zt=je(le,["label","children","key","type"]),jt=ft!=null?ft:`tmp-${fe}`;return Ve||Ht==="group"?Ht==="group"?Pe.createElement(ae.BW,Object.assign({key:jt},Zt,{title:Me}),Ue(Ve)):Pe.createElement(Yt,Object.assign({key:jt},Zt,{title:Me}),Ue(Ve)):Ht==="divider"?Pe.createElement(me,Object.assign({key:jt},Zt)):Pe.createElement(Ee,Object.assign({key:jt},Zt),Me)}return null}).filter(he=>he)}function Mt(ce){return Pe.useMemo(()=>ce&&Ue(ce),[ce])}var ht=se(84780),Ft=se(14747),tt=se(33507),Jt=se(67771),Rt=se(50438),yn=se(67968),tn=se(45503),Yn=ce=>{const{componentCls:he,motionDurationSlow:fe,horizontalLineHeight:le,colorSplit:Me,lineWidth:Ve,lineType:ft,itemPaddingInline:Ht}=ce;return{[`${he}-horizontal`]:{lineHeight:le,border:0,borderBottom:`${Ve}px ${ft} ${Me}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ht},[`> ${he}-item:hover,
> ${he}-item-active,
> ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${fe}`,`background ${fe}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},Qe=ce=>{let{componentCls:he,menuArrowOffset:fe}=ce;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical,
${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${fe})`},"&::after":{transform:`rotate(45deg) translateY(${fe})`}}}}};const we=ce=>Object.assign({},(0,Ft.oN)(ce));var Mn=(ce,he)=>{const{componentCls:fe,itemColor:le,itemSelectedColor:Me,groupTitleColor:Ve,itemBg:ft,subMenuItemBg:Ht,itemSelectedBg:Zt,activeBarHeight:jt,activeBarWidth:$t,activeBarBorderWidth:Je,motionDurationSlow:Et,motionEaseInOut:Lt,motionEaseOut:Xt,itemPaddingInline:wt,motionDurationMid:Nn,itemHoverColor:et,lineType:It,colorSplit:gn,itemDisabledColor:hn,dangerItemColor:An,dangerItemHoverColor:Vn,dangerItemSelectedColor:mr,dangerItemActiveBg:ur,dangerItemSelectedBg:dr,itemHoverBg:Fr,itemActiveBg:nr,menuSubMenuBg:_r,horizontalItemSelectedColor:oi,horizontalItemSelectedBg:Wr,horizontalItemBorderRadius:xi,horizontalItemHoverBg:ti,popupBg:Ct}=ce;return{[`${fe}-${he}, ${fe}-${he} > ${fe}`]:{color:le,background:ft,[`&${fe}-root:focus-visible`]:Object.assign({},we(ce)),[`${fe}-item-group-title`]:{color:Ve},[`${fe}-submenu-selected`]:{[`> ${fe}-submenu-title`]:{color:Me}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{color:`${hn} !important`},[`${fe}-item:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{[`&:hover, > ${fe}-submenu-title:hover`]:{color:et}},[`&:not(${fe}-horizontal)`]:{[`${fe}-item:not(${fe}-item-selected)`]:{"&:hover":{backgroundColor:Fr},"&:active":{backgroundColor:nr}},[`${fe}-submenu-title`]:{"&:hover":{backgroundColor:Fr},"&:active":{backgroundColor:nr}}},[`${fe}-item-danger`]:{color:An,[`&${fe}-item:hover`]:{[`&:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{color:Vn}},[`&${fe}-item:active`]:{background:ur}},[`${fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${fe}-item-selected`]:{color:Me,[`&${fe}-item-danger`]:{color:mr},"a, a:hover":{color:"inherit"}},[`& ${fe}-item-selected`]:{backgroundColor:Zt,[`&${fe}-item-danger`]:{backgroundColor:dr}},[`${fe}-item, ${fe}-submenu-title`]:{[`&:not(${fe}-item-disabled):focus-visible`]:Object.assign({},we(ce))},[`&${fe}-submenu > ${fe}`]:{backgroundColor:_r},[`&${fe}-popup > ${fe}`]:{backgroundColor:Ct},[`&${fe}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${fe}-item, > ${fe}-submenu`]:{top:Je,marginTop:-Je,marginBottom:0,borderRadius:xi,"&::after":{position:"absolute",insetInline:wt,bottom:0,borderBottom:`${jt}px solid transparent`,transition:`border-color ${Et} ${Lt}`,content:'""'},"&:hover, &-active, &-open":{background:ti,"&::after":{borderBottomWidth:jt,borderBottomColor:oi}},"&-selected":{color:oi,backgroundColor:Wr,"&:hover":{backgroundColor:Wr},"&::after":{borderBottomWidth:jt,borderBottomColor:oi}}}}),[`&${fe}-root`]:{[`&${fe}-inline, &${fe}-vertical`]:{borderInlineEnd:`${Je}px ${It} ${gn}`}},[`&${fe}-inline`]:{[`${fe}-sub${fe}-inline`]:{background:Ht},[`${fe}-item, ${fe}-submenu-title`]:Je&&$t?{width:`calc(100% + ${Je}px)`}:{},[`${fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${$t}px solid ${Me}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Nn} ${Xt}`,`opacity ${Nn} ${Xt}`].join(","),content:'""'},[`&${fe}-item-danger`]:{"&::after":{borderInlineEndColor:mr}}},[`${fe}-selected, ${fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Nn} ${Lt}`,`opacity ${Nn} ${Lt}`].join(",")}}}}}};const _t=ce=>{const{componentCls:he,itemHeight:fe,itemMarginInline:le,padding:Me,menuArrowSize:Ve,marginXS:ft,itemMarginBlock:Ht}=ce,Zt=Me+Ve+ft;return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:fe,lineHeight:`${fe}px`,paddingInline:Me,overflow:"hidden",textOverflow:"ellipsis",marginInline:le,marginBlock:Ht,width:`calc(100% - ${le*2}px)`},[`> ${he}-item,
> ${he}-submenu > ${he}-submenu-title`]:{height:fe,lineHeight:`${fe}px`},[`${he}-item-group-list ${he}-submenu-title,
${he}-submenu-title`]:{paddingInlineEnd:Zt}}};var dt=ce=>{const{componentCls:he,iconCls:fe,itemHeight:le,colorTextLightSolid:Me,dropdownWidth:Ve,controlHeightLG:ft,motionDurationMid:Ht,motionEaseOut:Zt,paddingXL:jt,itemMarginInline:$t,fontSizeLG:Je,motionDurationSlow:Et,paddingXS:Lt,boxShadowSecondary:Xt,collapsedWidth:wt,collapsedIconSize:Nn}=ce,et={height:le,lineHeight:`${le}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},_t(ce))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},_t(ce)),{boxShadow:Xt})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:Ve,maxHeight:`calc(100vh - ${ft*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Et}`,`background ${Et}`,`padding ${Ht} ${Zt}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:et,[`& ${he}-item-group-title`]:{paddingInlineStart:jt}},[`${he}-item`]:et}},{[`${he}-inline-collapsed`]:{width:wt,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:Je,textAlign:"center"}}},[`> ${he}-item,
> ${he}-item-group > ${he}-item-group-list > ${he}-item,
> ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title,
> ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Je/2}px - ${$t}px)`,textOverflow:"clip",[`
${he}-submenu-arrow,
${he}-submenu-expand-icon
`]:{opacity:0},[`${he}-item-icon, ${fe}`]:{margin:0,fontSize:Nn,lineHeight:`${le}px`,"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${fe}`]:{display:"none"},"a, a:hover":{color:Me}},[`${he}-item-group-title`]:Object.assign(Object.assign({},Ft.vS),{paddingInline:Lt})}}]};const qt=ce=>{const{componentCls:he,motionDurationSlow:fe,motionDurationMid:le,motionEaseInOut:Me,motionEaseOut:Ve,iconCls:ft,iconSize:Ht,iconMarginInlineEnd:Zt}=ce;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${fe} ${Me}`].join(","),[`${he}-item-icon, ${ft}`]:{minWidth:Ht,fontSize:Ht,transition:[`font-size ${le} ${Ve}`,`margin ${fe} ${Me}`,`color ${fe}`].join(","),"+ span":{marginInlineStart:Zt,opacity:1,transition:[`opacity ${fe} ${Me}`,`margin ${fe}`,`color ${fe}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,Ft.Ro)()),[`&${he}-item-only-child`]:{[`> ${ft}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Xn=ce=>{const{componentCls:he,motionDurationSlow:fe,motionEaseInOut:le,borderRadius:Me,menuArrowSize:Ve,menuArrowOffset:ft}=ce;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ce.margin,width:Ve,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${fe} ${le}, opacity ${fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ve*.6,height:Ve*.15,backgroundColor:"currentcolor",borderRadius:Me,transition:[`background ${fe} ${le}`,`transform ${fe} ${le}`,`top ${fe} ${le}`,`color ${fe} ${le}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ft})`},"&::after":{transform:`rotate(-45deg) translateY(${ft})`}}}}},bn=ce=>{const{antCls:he,componentCls:fe,fontSize:le,motionDurationSlow:Me,motionDurationMid:Ve,motionEaseInOut:ft,paddingXS:Ht,padding:Zt,colorSplit:jt,lineWidth:$t,zIndexPopup:Je,borderRadiusLG:Et,subMenuItemBorderRadius:Lt,menuArrowSize:Xt,menuArrowOffset:wt,lineType:Nn,menuPanelMaskInset:et,groupTitleLineHeight:It,groupTitleFontSize:gn}=ce;return[{"":{[`${fe}`]:Object.assign(Object.assign({},(0,Ft.dF)()),{"&-hidden":{display:"none"}})},[`${fe}-submenu-hidden`]:{display:"none"}},{[fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(ce)),(0,Ft.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:le,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Me} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${fe}-item`]:{flex:"none"}},[`${fe}-item, ${fe}-submenu, ${fe}-submenu-title`]:{borderRadius:ce.itemBorderRadius},[`${fe}-item-group-title`]:{padding:`${Ht}px ${Zt}px`,fontSize:gn,lineHeight:It,transition:`all ${Me}`},[`&-horizontal ${fe}-submenu`]:{transition:[`border-color ${Me} ${ft}`,`background ${Me} ${ft}`].join(",")},[`${fe}-submenu, ${fe}-submenu-inline`]:{transition:[`border-color ${Me} ${ft}`,`background ${Me} ${ft}`,`padding ${Ve} ${ft}`].join(",")},[`${fe}-submenu ${fe}-sub`]:{cursor:"initial",transition:[`background ${Me} ${ft}`,`padding ${Me} ${ft}`].join(",")},[`${fe}-title-content`]:{transition:`color ${Me}`},[`${fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:jt,borderStyle:Nn,borderWidth:0,borderTopWidth:$t,marginBlock:$t,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qt(ce)),{[`${fe}-item-group`]:{[`${fe}-item-group-list`]:{margin:0,padding:0,[`${fe}-item, ${fe}-submenu-title`]:{paddingInline:`${le*2}px ${Zt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Je,borderRadius:Et,boxShadow:"none",transformOrigin:"0 0",[`&${fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${et}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:et},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ce.paddingXS},[`> ${fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Et},qt(ce)),Xn(ce)),{[`${fe}-item, ${fe}-submenu > ${fe}-submenu-title`]:{borderRadius:Lt},[`${fe}-submenu-title::after`]:{transition:`transform ${Me} ${ft}`}})}}),Xn(ce)),{[`&-inline-collapsed ${fe}-submenu-arrow,
&-inline ${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${wt})`},"&::after":{transform:`rotate(45deg) translateX(-${wt})`}},[`${fe}-submenu-open${fe}-submenu-inline > ${fe}-submenu-title > ${fe}-submenu-arrow`]:{transform:`translateY(-${Xt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${wt})`},"&::before":{transform:`rotate(45deg) translateX(${wt})`}}})},{[`${he}-layout-header`]:{[fe]:{lineHeight:"inherit"}}}]};var un=(ce,he)=>(0,yn.Z)("Menu",le=>{if(he===!1)return[];const{colorBgElevated:Me,colorPrimary:Ve,colorTextLightSolid:ft,controlHeightLG:Ht,fontSize:Zt,darkItemColor:jt,darkDangerItemColor:$t,darkItemBg:Je,darkSubMenuItemBg:Et,darkItemSelectedColor:Lt,darkItemSelectedBg:Xt,darkDangerItemSelectedBg:wt,darkItemHoverBg:Nn,darkGroupTitleColor:et,darkItemHoverColor:It,darkItemDisabledColor:gn,darkDangerItemHoverColor:hn,darkDangerItemSelectedColor:An,darkDangerItemActiveBg:Vn}=le,mr=Zt/7*5,ur=(0,tn.TS)(le,{menuArrowSize:mr,menuHorizontalHeight:Ht*1.15,menuArrowOffset:`${mr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Me}),dr=(0,tn.TS)(ur,{itemColor:jt,itemHoverColor:It,groupTitleColor:et,itemSelectedColor:Lt,itemBg:Je,popupBg:Je,subMenuItemBg:Et,itemActiveBg:"transparent",itemSelectedBg:Xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Nn,itemDisabledColor:gn,dangerItemColor:$t,dangerItemHoverColor:hn,dangerItemSelectedColor:An,dangerItemActiveBg:Vn,dangerItemSelectedBg:wt,menuSubMenuBg:Et,horizontalItemSelectedColor:ft,horizontalItemSelectedBg:Ve});return[bn(ur),Yn(ur),dt(ur),Mn(ur,"light"),Mn(dr,"dark"),Qe(ur),(0,tt.Z)(ur),(0,Jt.oN)(ur,"slide-up"),(0,Jt.oN)(ur,"slide-down"),(0,Rt._y)(ur,"zoom-big")]},le=>{const{colorPrimary:Me,colorError:Ve,colorTextDisabled:ft,colorErrorBg:Ht,colorText:Zt,colorTextDescription:jt,colorBgContainer:$t,colorFillAlter:Je,colorFillContent:Et,lineWidth:Lt,lineWidthBold:Xt,controlItemBgActive:wt,colorBgTextHover:Nn,controlHeightLG:et,lineHeight:It,colorBgElevated:gn,marginXXS:hn,padding:An,fontSize:Vn,controlHeightSM:mr,fontSizeLG:ur,colorTextLightSolid:dr,colorErrorHover:Fr}=le,nr=new ht.C(dr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:le.zIndexPopupBase+50,radiusItem:le.borderRadiusLG,itemBorderRadius:le.borderRadiusLG,radiusSubMenuItem:le.borderRadiusSM,subMenuItemBorderRadius:le.borderRadiusSM,colorItemText:Zt,itemColor:Zt,colorItemTextHover:Zt,itemHoverColor:Zt,colorItemTextHoverHorizontal:Me,horizontalItemHoverColor:Me,colorGroupTitle:jt,groupTitleColor:jt,colorItemTextSelected:Me,itemSelectedColor:Me,colorItemTextSelectedHorizontal:Me,horizontalItemSelectedColor:Me,colorItemBg:$t,itemBg:$t,colorItemBgHover:Nn,itemHoverBg:Nn,colorItemBgActive:Et,itemActiveBg:wt,colorSubItemBg:Je,subMenuItemBg:Je,colorItemBgSelected:wt,itemSelectedBg:wt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Xt,activeBarHeight:Xt,colorActiveBarBorderSize:Lt,activeBarBorderWidth:Lt,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:Ve,dangerItemColor:Ve,colorDangerItemTextHover:Ve,dangerItemHoverColor:Ve,colorDangerItemTextSelected:Ve,dangerItemSelectedColor:Ve,colorDangerItemBgActive:Ht,dangerItemActiveBg:Ht,colorDangerItemBgSelected:Ht,dangerItemSelectedBg:Ht,itemMarginInline:le.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:et,groupTitleLineHeight:It,collapsedWidth:et*2,popupBg:gn,itemMarginBlock:hn,itemPaddingInline:An,horizontalLineHeight:`${et*1.15}px`,iconSize:Vn,iconMarginInlineEnd:mr-Vn,collapsedIconSize:ur,groupTitleFontSize:Vn,darkItemDisabledColor:new ht.C(dr).setAlpha(.25).toRgbString(),darkItemColor:nr,darkDangerItemColor:Ve,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:dr,darkItemSelectedBg:Me,darkDangerItemSelectedBg:Ve,darkItemHoverBg:"transparent",darkGroupTitleColor:nr,darkItemHoverColor:dr,darkDangerItemHoverColor:Fr,darkDangerItemSelectedColor:dr,darkDangerItemActiveBg:Ve}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(ce),nn=function(ce,he){var fe={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(fe[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,le=Object.getOwnPropertySymbols(ce);Me<le.length;Me++)he.indexOf(le[Me])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Me])&&(fe[le[Me]]=ce[le[Me]]);return fe},Pn=(0,Pe.forwardRef)((ce,he)=>{var fe,le;const Me=Pe.useContext(Ce.Z),Ve=Me||{},{getPrefixCls:ft,getPopupContainer:Ht,direction:Zt,menu:jt}=Pe.useContext(ke.E_),$t=ft(),{prefixCls:Je,className:Et,style:Lt,theme:Xt="light",expandIcon:wt,_internalDisableMenuItemTitleTooltip:Nn,inlineCollapsed:et,siderCollapsed:It,items:gn,children:hn,rootClassName:An,mode:Vn,selectable:mr,onClick:ur,overflowedIndicatorPopupClassName:dr}=ce,Fr=nn(ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),nr=(0,st.Z)(Fr,["collapsedWidth"]),_r=Mt(gn)||hn;(fe=Ve.validator)===null||fe===void 0||fe.call(Ve,{mode:Vn});const oi=(0,lt.useEvent)(function(){var jn;ur==null||ur.apply(void 0,arguments),(jn=Ve.onClick)===null||jn===void 0||jn.call(Ve)}),Wr=Ve.mode||Vn,xi=mr!=null?mr:Ve.selectable,ti=Pe.useMemo(()=>It!==void 0?It:et,[et,It]),Ct={horizontal:{motionName:`${$t}-slide-up`},inline:(0,Se.Z)($t),other:{motionName:`${$t}-zoom-big`}},wn=ft("menu",Je||Ve.prefixCls),[Rn,an]=un(wn,!Me),vr=ve()(`${wn}-${Xt}`,jt==null?void 0:jt.className,Et);let lr;if(typeof wt=="function")lr=wt;else if(wt===null||wt===!1)lr=null;else if(Ve.expandIcon===null||Ve.expandIcon===!1)lr=null;else{const jn=wt!=null?wt:Ve.expandIcon;lr=(0,xt.Tm)(jn,{className:ve()(`${wn}-submenu-expand-icon`,(0,xt.l$)(jn)?(le=jn.props)===null||le===void 0?void 0:le.className:"")})}const Gn=Pe.useMemo(()=>({prefixCls:wn,inlineCollapsed:ti||!1,direction:Zt,firstLevel:!0,theme:Xt,mode:Wr,disableMenuItemTitleTooltip:Nn}),[wn,ti,Zt,Nn,Xt]);return Rn(Pe.createElement(Ce.Z.Provider,{value:null},Pe.createElement(ct.Provider,{value:Gn},Pe.createElement(ae.ZP,Object.assign({getPopupContainer:Ht,overflowedIndicator:Pe.createElement(Xe.Z,null),overflowedIndicatorPopupClassName:ve()(wn,`${wn}-${Xt}`,dr),mode:Wr,selectable:xi,onClick:oi},nr,{inlineCollapsed:ti,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Lt),className:vr,prefixCls:wn,direction:Zt,defaultMotions:Ct,expandIcon:lr,ref:he,rootClassName:ve()(An,an)}),_r))))});const De=(0,Pe.forwardRef)((ce,he)=>{const fe=(0,Pe.useRef)(null),le=Pe.useContext(Re.D);return(0,Pe.useImperativeHandle)(he,()=>({menu:fe.current,focus:Me=>{var Ve;(Ve=fe.current)===null||Ve===void 0||Ve.focus(Me)}})),Pe.createElement(Pn,Object.assign({ref:fe},ce,le))});De.Item=Ee,De.SubMenu=Yt,De.Divider=me,De.ItemGroup=ae.BW;var ue=De},28452:function(dn,en,se){"use strict";se.d(en,{Z:function(){return $t}});var ae=se(87462),Pe=se(67294),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},qe=Re,ve=se(74643),ke=function(Et,Lt){return Pe.createElement(ve.Z,(0,ae.Z)({},Et,{ref:Lt,icon:qe}))},Le=Pe.forwardRef(ke),xe=se(81893),me=se(22751),Ie=se(91034),st=se(94184),Ne=se.n(st),xt=se(4942),pt=se(1413),ct=se(15671),rt=se(43144),Ee=se(60136),at=se(51630),Yt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Xe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,lt="".concat(Yt," ").concat(Xe).split(/[\s\n]+/),Se="aria-",Ce="data-";function je(Je,Et){return Je.indexOf(Et)===0}function Ue(Je){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Lt;Et===!1?Lt={aria:!0,data:!0,attr:!0}:Et===!0?Lt={aria:!0}:Lt=(0,pt.Z)({},Et);var Xt={};return Object.keys(Je).forEach(function(wt){(Lt.aria&&(wt==="role"||je(wt,Se))||Lt.data&&je(wt,Ce)||Lt.attr&&lt.includes(wt))&&(Xt[wt]=Je[wt])}),Xt}var Mt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ht=Mt,Ft=se(81626),tt=function(Je){(0,Ee.Z)(Lt,Je);var Et=(0,at.Z)(Lt);function Lt(){var Xt;(0,ct.Z)(this,Lt);for(var wt=arguments.length,Nn=new Array(wt),et=0;et<wt;et++)Nn[et]=arguments[et];return Xt=Et.call.apply(Et,[this].concat(Nn)),Xt.state={goInputText:""},Xt.getValidValue=function(){var It=Xt.state.goInputText;return!It||Number.isNaN(It)?void 0:Number(It)},Xt.buildOptionText=function(It){return"".concat(It," ").concat(Xt.props.locale.items_per_page)},Xt.changeSize=function(It){Xt.props.changeSize(Number(It))},Xt.handleChange=function(It){Xt.setState({goInputText:It.target.value})},Xt.handleBlur=function(It){var gn=Xt.props,hn=gn.goButton,An=gn.quickGo,Vn=gn.rootPrefixCls,mr=Xt.state.goInputText;hn||mr===""||(Xt.setState({goInputText:""}),!(It.relatedTarget&&(It.relatedTarget.className.indexOf("".concat(Vn,"-item-link"))>=0||It.relatedTarget.className.indexOf("".concat(Vn,"-item"))>=0))&&An(Xt.getValidValue()))},Xt.go=function(It){var gn=Xt.state.goInputText;gn!==""&&(It.keyCode===ht.ENTER||It.type==="click")&&(Xt.setState({goInputText:""}),Xt.props.quickGo(Xt.getValidValue()))},Xt}return(0,rt.Z)(Lt,[{key:"getPageSizeOptions",value:function(){var wt=this.props,Nn=wt.pageSize,et=wt.pageSizeOptions;return et.some(function(It){return It.toString()===Nn.toString()})?et:et.concat([Nn.toString()]).sort(function(It,gn){var hn=Number.isNaN(Number(It))?0:Number(It),An=Number.isNaN(Number(gn))?0:Number(gn);return hn-An})}},{key:"render",value:function(){var wt=this,Nn=this.props,et=Nn.pageSize,It=Nn.locale,gn=Nn.rootPrefixCls,hn=Nn.changeSize,An=Nn.quickGo,Vn=Nn.goButton,mr=Nn.selectComponentClass,ur=Nn.buildOptionText,dr=Nn.selectPrefixCls,Fr=Nn.disabled,nr=this.state.goInputText,_r="".concat(gn,"-options"),oi=mr,Wr=null,xi=null,ti=null;if(!hn&&!An)return null;var Ct=this.getPageSizeOptions();if(hn&&oi){var wn=Ct.map(function(Rn,an){return Pe.createElement(oi.Option,{key:an,value:Rn.toString()},(ur||wt.buildOptionText)(Rn))});Wr=Pe.createElement(oi,{disabled:Fr,prefixCls:dr,showSearch:!1,className:"".concat(_r,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(et||Ct[0]).toString(),onChange:this.changeSize,getPopupContainer:function(an){return an.parentNode},"aria-label":It.page_size,defaultOpen:!1},wn)}return An&&(Vn&&(ti=typeof Vn=="boolean"?Pe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Fr,className:"".concat(_r,"-quick-jumper-button")},It.jump_to_confirm):Pe.createElement("span",{onClick:this.go,onKeyUp:this.go},Vn)),xi=Pe.createElement("div",{className:"".concat(_r,"-quick-jumper")},It.jump_to,Pe.createElement("input",{disabled:Fr,type:"text",value:nr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":It.page}),It.page,ti)),Pe.createElement("li",{className:"".concat(_r)},Wr,xi)}}]),Lt}(Pe.Component);tt.defaultProps={pageSizeOptions:["10","20","50","100"]};var Jt=tt,Rt=function(Et){var Lt,Xt=Et.rootPrefixCls,wt=Et.page,Nn=Et.active,et=Et.className,It=Et.showTitle,gn=Et.onClick,hn=Et.onKeyPress,An=Et.itemRender,Vn="".concat(Xt,"-item"),mr=Ne()(Vn,"".concat(Vn,"-").concat(wt),(Lt={},(0,xt.Z)(Lt,"".concat(Vn,"-active"),Nn),(0,xt.Z)(Lt,"".concat(Vn,"-disabled"),!wt),(0,xt.Z)(Lt,Et.className,et),Lt)),ur=function(){gn(wt)},dr=function(_r){hn(_r,gn,wt)},Fr=An(wt,"page",Pe.createElement("a",{rel:"nofollow"},wt));return Fr?Pe.createElement("li",{title:It?wt.toString():null,className:mr,onClick:ur,onKeyPress:dr,tabIndex:0},Fr):null},yn=Rt;function tn(){}function Hn(Je){var Et=Number(Je);return typeof Et=="number"&&!Number.isNaN(Et)&&isFinite(Et)&&Math.floor(Et)===Et}var Yn=function(Et,Lt,Xt){return Xt};function tr(Je,Et,Lt){var Xt=typeof Je=="undefined"?Et.pageSize:Je;return Math.floor((Lt.total-1)/Xt)+1}var Qe=function(Je){(0,Ee.Z)(Lt,Je);var Et=(0,at.Z)(Lt);function Lt(Xt){var wt;(0,ct.Z)(this,Lt),wt=Et.call(this,Xt),wt.paginationNode=Pe.createRef(),wt.getJumpPrevPage=function(){return Math.max(1,wt.state.current-(wt.props.showLessItems?3:5))},wt.getJumpNextPage=function(){return Math.min(tr(void 0,wt.state,wt.props),wt.state.current+(wt.props.showLessItems?3:5))},wt.getItemIcon=function(hn,An){var Vn=wt.props.prefixCls,mr=hn||Pe.createElement("button",{type:"button","aria-label":An,className:"".concat(Vn,"-item-link")});return typeof hn=="function"&&(mr=Pe.createElement(hn,(0,pt.Z)({},wt.props))),mr},wt.isValid=function(hn){var An=wt.props.total;return Hn(hn)&&hn!==wt.state.current&&Hn(An)&&An>0},wt.shouldDisplayQuickJumper=function(){var hn=wt.props,An=hn.showQuickJumper,Vn=hn.total,mr=wt.state.pageSize;return Vn<=mr?!1:An},wt.handleKeyDown=function(hn){(hn.keyCode===ht.ARROW_UP||hn.keyCode===ht.ARROW_DOWN)&&hn.preventDefault()},wt.handleKeyUp=function(hn){var An=wt.getValidValue(hn),Vn=wt.state.currentInputValue;An!==Vn&&wt.setState({currentInputValue:An}),hn.keyCode===ht.ENTER?wt.handleChange(An):hn.keyCode===ht.ARROW_UP?wt.handleChange(An-1):hn.keyCode===ht.ARROW_DOWN&&wt.handleChange(An+1)},wt.handleBlur=function(hn){var An=wt.getValidValue(hn);wt.handleChange(An)},wt.changePageSize=function(hn){var An=wt.state.current,Vn=tr(hn,wt.state,wt.props);An=An>Vn?Vn:An,Vn===0&&(An=wt.state.current),typeof hn=="number"&&("pageSize"in wt.props||wt.setState({pageSize:hn}),"current"in wt.props||wt.setState({current:An,currentInputValue:An})),wt.props.onShowSizeChange(An,hn),"onChange"in wt.props&&wt.props.onChange&&wt.props.onChange(An,hn)},wt.handleChange=function(hn){var An=wt.props,Vn=An.disabled,mr=An.onChange,ur=wt.state,dr=ur.pageSize,Fr=ur.current,nr=ur.currentInputValue;if(wt.isValid(hn)&&!Vn){var _r=tr(void 0,wt.state,wt.props),oi=hn;return hn>_r?oi=_r:hn<1&&(oi=1),"current"in wt.props||wt.setState({current:oi}),oi!==nr&&wt.setState({currentInputValue:oi}),mr(oi,dr),oi}return Fr},wt.prev=function(){wt.hasPrev()&&wt.handleChange(wt.state.current-1)},wt.next=function(){wt.hasNext()&&wt.handleChange(wt.state.current+1)},wt.jumpPrev=function(){wt.handleChange(wt.getJumpPrevPage())},wt.jumpNext=function(){wt.handleChange(wt.getJumpNextPage())},wt.hasPrev=function(){return wt.state.current>1},wt.hasNext=function(){return wt.state.current<tr(void 0,wt.state,wt.props)},wt.runIfEnter=function(hn,An){if(hn.key==="Enter"||hn.charCode===13){for(var Vn=arguments.length,mr=new Array(Vn>2?Vn-2:0),ur=2;ur<Vn;ur++)mr[ur-2]=arguments[ur];An.apply(void 0,mr)}},wt.runIfEnterPrev=function(hn){wt.runIfEnter(hn,wt.prev)},wt.runIfEnterNext=function(hn){wt.runIfEnter(hn,wt.next)},wt.runIfEnterJumpPrev=function(hn){wt.runIfEnter(hn,wt.jumpPrev)},wt.runIfEnterJumpNext=function(hn){wt.runIfEnter(hn,wt.jumpNext)},wt.handleGoTO=function(hn){(hn.keyCode===ht.ENTER||hn.type==="click")&&wt.handleChange(wt.state.currentInputValue)},wt.renderPrev=function(hn){var An=wt.props,Vn=An.prevIcon,mr=An.itemRender,ur=mr(hn,"prev",wt.getItemIcon(Vn,"prev page")),dr=!wt.hasPrev();return(0,Pe.isValidElement)(ur)?(0,Pe.cloneElement)(ur,{disabled:dr}):ur},wt.renderNext=function(hn){var An=wt.props,Vn=An.nextIcon,mr=An.itemRender,ur=mr(hn,"next",wt.getItemIcon(Vn,"next page")),dr=!wt.hasNext();return(0,Pe.isValidElement)(ur)?(0,Pe.cloneElement)(ur,{disabled:dr}):ur};var Nn=Xt.onChange!==tn,et="current"in Xt;et&&!Nn&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var It=Xt.defaultCurrent;"current"in Xt&&(It=Xt.current);var gn=Xt.defaultPageSize;return"pageSize"in Xt&&(gn=Xt.pageSize),It=Math.min(It,tr(gn,void 0,Xt)),wt.state={current:It,currentInputValue:It,pageSize:gn},wt}return(0,rt.Z)(Lt,[{key:"componentDidUpdate",value:function(wt,Nn){var et=this.props.prefixCls;if(Nn.current!==this.state.current&&this.paginationNode.current){var It=this.paginationNode.current.querySelector(".".concat(et,"-item-").concat(Nn.current));if(It&&document.activeElement===It){var gn;It==null||(gn=It.blur)===null||gn===void 0||gn.call(It)}}}},{key:"getValidValue",value:function(wt){var Nn=wt.target.value,et=tr(void 0,this.state,this.props),It=this.state.currentInputValue,gn;return Nn===""?gn=Nn:Number.isNaN(Number(Nn))?gn=It:Nn>=et?gn=et:gn=Number(Nn),gn}},{key:"getShowSizeChanger",value:function(){var wt=this.props,Nn=wt.showSizeChanger,et=wt.total,It=wt.totalBoundaryShowSizeChanger;return typeof Nn!="undefined"?Nn:et>It}},{key:"render",value:function(){var wt=this.props,Nn=wt.prefixCls,et=wt.className,It=wt.style,gn=wt.disabled,hn=wt.hideOnSinglePage,An=wt.total,Vn=wt.locale,mr=wt.showQuickJumper,ur=wt.showLessItems,dr=wt.showTitle,Fr=wt.showTotal,nr=wt.simple,_r=wt.itemRender,oi=wt.showPrevNextJumpers,Wr=wt.jumpPrevIcon,xi=wt.jumpNextIcon,ti=wt.selectComponentClass,Ct=wt.selectPrefixCls,wn=wt.pageSizeOptions,Rn=this.state,an=Rn.current,vr=Rn.pageSize,lr=Rn.currentInputValue;if(hn===!0&&An<=vr)return null;var Gn=tr(void 0,this.state,this.props),jn=[],nt=null,mt=null,Bt=null,rn=null,Ze=null,St=mr&&mr.goButton,Vt=ur?1:2,Nt=an-1>0?an-1:0,cn=an+1<Gn?an+1:Gn,on=Ue(this.props,{aria:!0,data:!0}),Kn=Fr&&Pe.createElement("li",{className:"".concat(Nn,"-total-text")},Fr(An,[An===0?0:(an-1)*vr+1,an*vr>An?An:an*vr]));if(nr){St&&(typeof St=="boolean"?Ze=Pe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Vn.jump_to_confirm):Ze=Pe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},St),Ze=Pe.createElement("li",{title:dr?"".concat(Vn.jump_to).concat(an,"/").concat(Gn):null,className:"".concat(Nn,"-simple-pager")},Ze));var Hr=this.renderPrev(Nt);return Pe.createElement("ul",(0,ae.Z)({className:Ne()(Nn,"".concat(Nn,"-simple"),(0,xt.Z)({},"".concat(Nn,"-disabled"),gn),et),style:It,ref:this.paginationNode},on),Kn,Hr?Pe.createElement("li",{title:dr?Vn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ne()("".concat(Nn,"-prev"),(0,xt.Z)({},"".concat(Nn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Hr):null,Pe.createElement("li",{title:dr?"".concat(an,"/").concat(Gn):null,className:"".concat(Nn,"-simple-pager")},Pe.createElement("input",{type:"text",value:lr,disabled:gn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Pe.createElement("span",{className:"".concat(Nn,"-slash")},"/"),Gn),Pe.createElement("li",{title:dr?Vn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ne()("".concat(Nn,"-next"),(0,xt.Z)({},"".concat(Nn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(cn)),Ze)}if(Gn<=3+Vt*2){var hr={locale:Vn,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:dr,itemRender:_r};Gn||jn.push(Pe.createElement(yn,(0,ae.Z)({},hr,{key:"noPager",page:1,className:"".concat(Nn,"-item-disabled")})));for(var or=1;or<=Gn;or+=1){var Ar=an===or;jn.push(Pe.createElement(yn,(0,ae.Z)({},hr,{key:or,page:or,active:Ar})))}}else{var Lr=ur?Vn.prev_3:Vn.prev_5,kt=ur?Vn.next_3:Vn.next_5,gt=_r(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Wr,"prev page")),Dt=_r(this.getJumpNextPage(),"jump-next",this.getItemIcon(xi,"next page"));oi&&(nt=gt?Pe.createElement("li",{title:dr?Lr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ne()("".concat(Nn,"-jump-prev"),(0,xt.Z)({},"".concat(Nn,"-jump-prev-custom-icon"),!!Wr))},gt):null,mt=Dt?Pe.createElement("li",{title:dr?kt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ne()("".concat(Nn,"-jump-next"),(0,xt.Z)({},"".concat(Nn,"-jump-next-custom-icon"),!!xi))},Dt):null),rn=Pe.createElement(yn,{locale:Vn,last:!0,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Gn,page:Gn,active:!1,showTitle:dr,itemRender:_r}),Bt=Pe.createElement(yn,{locale:Vn,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:dr,itemRender:_r});var En=Math.max(1,an-Vt),qn=Math.min(an+Vt,Gn);an-1<=Vt&&(qn=1+Vt*2),Gn-an<=Vt&&(En=Gn-Vt*2);for(var Cn=En;Cn<=qn;Cn+=1){var Dn=an===Cn;jn.push(Pe.createElement(yn,{locale:Vn,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Cn,page:Cn,active:Dn,showTitle:dr,itemRender:_r}))}an-1>=Vt*2&&an!==3&&(jn[0]=(0,Pe.cloneElement)(jn[0],{className:"".concat(Nn,"-item-after-jump-prev")}),jn.unshift(nt)),Gn-an>=Vt*2&&an!==Gn-2&&(jn[jn.length-1]=(0,Pe.cloneElement)(jn[jn.length-1],{className:"".concat(Nn,"-item-before-jump-next")}),jn.push(mt)),En!==1&&jn.unshift(Bt),qn!==Gn&&jn.push(rn)}var In=!this.hasPrev()||!Gn,Un=!this.hasNext()||!Gn,kr=this.renderPrev(Nt),pn=this.renderNext(cn);return Pe.createElement("ul",(0,ae.Z)({className:Ne()(Nn,et,(0,xt.Z)({},"".concat(Nn,"-disabled"),gn)),style:It,ref:this.paginationNode},on),Kn,kr?Pe.createElement("li",{title:dr?Vn.prev_page:null,onClick:this.prev,tabIndex:In?null:0,onKeyPress:this.runIfEnterPrev,className:Ne()("".concat(Nn,"-prev"),(0,xt.Z)({},"".concat(Nn,"-disabled"),In)),"aria-disabled":In},kr):null,jn,pn?Pe.createElement("li",{title:dr?Vn.next_page:null,onClick:this.next,tabIndex:Un?null:0,onKeyPress:this.runIfEnterNext,className:Ne()("".concat(Nn,"-next"),(0,xt.Z)({},"".concat(Nn,"-disabled"),Un)),"aria-disabled":Un},pn):null,Pe.createElement(Jt,{disabled:gn,locale:Vn,rootPrefixCls:Nn,selectComponentClass:ti,selectPrefixCls:Ct,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:an,pageSize:vr,pageSizeOptions:wn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:St}))}}],[{key:"getDerivedStateFromProps",value:function(wt,Nn){var et={};if("current"in wt&&(et.current=wt.current,wt.current!==Nn.current&&(et.currentInputValue=et.current)),"pageSize"in wt&&wt.pageSize!==Nn.pageSize){var It=Nn.current,gn=tr(wt.pageSize,Nn,wt);It=It>gn?gn:It,"current"in wt||(et.current=It,et.currentInputValue=It),et.pageSize=wt.pageSize}return et}}]),Lt}(Pe.Component);Qe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:tn,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:tn,locale:Ft.Z,style:{},itemRender:Yn,totalBoundaryShowSizeChanger:50};var we=Qe,At=se(62906),Mn=se(53124),_t=se(98675),$e=se(25378),dt=se(10110),qt=se(11713);const Xn=Je=>Pe.createElement(qt.default,Object.assign({},Je,{showSearch:!0,size:"small"})),bn=Je=>Pe.createElement(qt.default,Object.assign({},Je,{showSearch:!0,size:"middle"}));Xn.Option=qt.default.Option,bn.Option=qt.default.Option;var un=se(47673),nn=se(14747),xn=se(67968),Pn=se(45503);const De=Je=>{const{componentCls:Et}=Je;return{[`${Et}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Et}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Et}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed"}}},[`&${Et}-disabled`]:{cursor:"not-allowed",[`${Et}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Je.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Je.colorBorder,backgroundColor:Je.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Je.itemActiveBgDisabled},a:{color:Je.itemActiveColorDisabled}}},[`${Et}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Et}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Et}-simple-pager`]:{color:Je.colorTextDisabled},[`${Et}-jump-prev, ${Et}-jump-next`]:{[`${Et}-item-link-icon`]:{opacity:0},[`${Et}-item-ellipsis`]:{opacity:1}}},[`&${Et}-simple`]:{[`${Et}-prev, ${Et}-next`]:{[`&${Et}-disabled ${Et}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ue=Je=>{const{componentCls:Et}=Je;return{[`&${Et}-mini ${Et}-total-text, &${Et}-mini ${Et}-simple-pager`]:{height:Je.itemSizeSM,lineHeight:`${Je.itemSizeSM}px`},[`&${Et}-mini ${Et}-item`]:{minWidth:Je.itemSizeSM,height:Je.itemSizeSM,margin:0,lineHeight:`${Je.itemSizeSM-2}px`},[`&${Et}-mini:not(${Et}-disabled) ${Et}-item:not(${Et}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Je.colorBgTextHover},"&:active":{backgroundColor:Je.colorBgTextActive}},[`&${Et}-mini ${Et}-prev, &${Et}-mini ${Et}-next`]:{minWidth:Je.itemSizeSM,height:Je.itemSizeSM,margin:0,lineHeight:`${Je.itemSizeSM}px`},[`&${Et}-mini:not(${Et}-disabled)`]:{[`${Et}-prev, ${Et}-next`]:{[`&:hover ${Et}-item-link`]:{backgroundColor:Je.colorBgTextHover},[`&:active ${Et}-item-link`]:{backgroundColor:Je.colorBgTextActive},[`&${Et}-disabled:hover ${Et}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Et}-mini ${Et}-prev ${Et}-item-link,
&${Et}-mini ${Et}-next ${Et}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Je.itemSizeSM,lineHeight:`${Je.itemSizeSM}px`}},[`&${Et}-mini ${Et}-jump-prev, &${Et}-mini ${Et}-jump-next`]:{height:Je.itemSizeSM,marginInlineEnd:0,lineHeight:`${Je.itemSizeSM}px`},[`&${Et}-mini ${Et}-options`]:{marginInlineStart:Je.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Je.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Je.itemSizeSM,lineHeight:`${Je.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,un.x0)(Je)),{width:Je.paginationMiniQuickJumperInputWidth,height:Je.controlHeightSM})}}}},ce=Je=>{const{componentCls:Et}=Je;return{[`
&${Et}-simple ${Et}-prev,
&${Et}-simple ${Et}-next
`]:{height:Je.itemSizeSM,lineHeight:`${Je.itemSizeSM}px`,verticalAlign:"top",[`${Et}-item-link`]:{height:Je.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Je.colorBgTextHover},"&:active":{backgroundColor:Je.colorBgTextActive},"&::after":{height:Je.itemSizeSM,lineHeight:`${Je.itemSizeSM}px`}}},[`&${Et}-simple ${Et}-simple-pager`]:{display:"inline-block",height:Je.itemSizeSM,marginInlineEnd:Je.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Je.marginXS,padding:`0 ${Je.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Je.itemInputBg,border:`${Je.lineWidth}px ${Je.lineType} ${Je.colorBorder}`,borderRadius:Je.borderRadius,outline:"none",transition:`border-color ${Je.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Je.colorPrimary},"&:focus":{borderColor:Je.colorPrimaryHover,boxShadow:`${Je.inputOutlineOffset}px 0 ${Je.controlOutlineWidth}px ${Je.controlOutline}`},"&[disabled]":{color:Je.colorTextDisabled,backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,cursor:"not-allowed"}}}}},he=Je=>{const{componentCls:Et}=Je;return{[`${Et}-jump-prev, ${Et}-jump-next`]:{outline:0,[`${Et}-item-container`]:{position:"relative",[`${Et}-item-link-icon`]:{color:Je.colorPrimary,fontSize:Je.fontSizeSM,opacity:0,transition:`all ${Je.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Et}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Je.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Je.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Je.paginationEllipsisTextIndent,opacity:1,transition:`all ${Je.motionDurationMid}`}},"&:hover":{[`${Et}-item-link-icon`]:{opacity:1},[`${Et}-item-ellipsis`]:{opacity:0}}},[`
${Et}-prev,
${Et}-jump-prev,
${Et}-jump-next
`]:{marginInlineEnd:Je.marginXS},[`
${Et}-prev,
${Et}-next,
${Et}-jump-prev,
${Et}-jump-next
`]:{display:"inline-block",minWidth:Je.itemSize,height:Je.itemSize,color:Je.colorText,fontFamily:Je.fontFamily,lineHeight:`${Je.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Je.borderRadius,cursor:"pointer",transition:`all ${Je.motionDurationMid}`},[`${Et}-prev, ${Et}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Je.colorText,cursor:"pointer",userSelect:"none"},[`${Et}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Je.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Je.lineWidth}px ${Je.lineType} transparent`,borderRadius:Je.borderRadius,outline:"none",transition:`all ${Je.motionDurationMid}`},[`&:hover ${Et}-item-link`]:{backgroundColor:Je.colorBgTextHover},[`&:active ${Et}-item-link`]:{backgroundColor:Je.colorBgTextActive},[`&${Et}-disabled:hover`]:{[`${Et}-item-link`]:{backgroundColor:"transparent"}}},[`${Et}-slash`]:{marginInlineEnd:Je.paginationSlashMarginInlineEnd,marginInlineStart:Je.paginationSlashMarginInlineStart},[`${Et}-options`]:{display:"inline-block",marginInlineStart:Je.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Je.controlHeight,marginInlineStart:Je.marginXS,lineHeight:`${Je.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,un.ik)(Je)),{width:Je.controlHeightLG*1.25,height:Je.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Je.marginXS,marginInlineEnd:Je.marginXS})}}}},fe=Je=>{const{componentCls:Et}=Je;return{[`${Et}-item`]:{display:"inline-block",minWidth:Je.itemSize,height:Je.itemSize,marginInlineEnd:Je.marginXS,fontFamily:Je.fontFamily,lineHeight:`${Je.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Je.lineWidth}px ${Je.lineType} transparent`,borderRadius:Je.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Je.paginationItemPaddingInline}px`,color:Je.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Et}-item-active)`]:{"&:hover":{transition:`all ${Je.motionDurationMid}`,backgroundColor:Je.colorBgTextHover},"&:active":{backgroundColor:Je.colorBgTextActive}},"&-active":{fontWeight:Je.fontWeightStrong,backgroundColor:Je.itemActiveBg,borderColor:Je.colorPrimary,a:{color:Je.colorPrimary},"&:hover":{borderColor:Je.colorPrimaryHover},"&:hover a":{color:Je.colorPrimaryHover}}}}},le=Je=>{const{componentCls:Et}=Je;return{[Et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,nn.Wf)(Je)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Et}-total-text`]:{display:"inline-block",height:Je.itemSize,marginInlineEnd:Je.marginXS,lineHeight:`${Je.itemSize-2}px`,verticalAlign:"middle"}}),fe(Je)),he(Je)),ce(Je)),ue(Je)),De(Je)),{[`@media only screen and (max-width: ${Je.screenLG}px)`]:{[`${Et}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Je.screenSM}px)`]:{[`${Et}-options`]:{display:"none"}}}),[`&${Je.componentCls}-rtl`]:{direction:"rtl"}}},Me=Je=>{const{componentCls:Et}=Je;return{[`${Et}${Et}-disabled:not(${Et}-mini)`]:{"&, &:hover":{[`${Et}-item-link`]:{borderColor:Je.colorBorder}},"&:focus-visible":{[`${Et}-item-link`]:{borderColor:Je.colorBorder}},[`${Et}-item, ${Et}-item-link`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,[`&:hover:not(${Et}-item-active)`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,a:{color:Je.colorTextDisabled}},[`&${Et}-item-active`]:{backgroundColor:Je.itemActiveBgDisabled}},[`${Et}-prev, ${Et}-next`]:{"&:hover button":{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,color:Je.colorTextDisabled},[`${Et}-item-link`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder}}},[`${Et}:not(${Et}-mini)`]:{[`${Et}-prev, ${Et}-next`]:{"&:hover button":{borderColor:Je.colorPrimaryHover,backgroundColor:Je.itemBg},[`${Et}-item-link`]:{backgroundColor:Je.itemLinkBg,borderColor:Je.colorBorder},[`&:hover ${Et}-item-link`]:{borderColor:Je.colorPrimary,backgroundColor:Je.itemBg,color:Je.colorPrimary},[`&${Et}-disabled`]:{[`${Et}-item-link`]:{borderColor:Je.colorBorder,color:Je.colorTextDisabled}}},[`${Et}-item`]:{backgroundColor:Je.itemBg,border:`${Je.lineWidth}px ${Je.lineType} ${Je.colorBorder}`,[`&:hover:not(${Et}-item-active)`]:{borderColor:Je.colorPrimary,backgroundColor:Je.itemBg,a:{color:Je.colorPrimary}},"&-active":{borderColor:Je.colorPrimary}}}}},Ve=Je=>{const{componentCls:Et}=Je;return{[`${Et}:not(${Et}-disabled)`]:{[`${Et}-item`]:Object.assign({},(0,nn.Qy)(Je)),[`${Et}-jump-prev, ${Et}-jump-next`]:{"&:focus-visible":Object.assign({[`${Et}-item-link-icon`]:{opacity:1},[`${Et}-item-ellipsis`]:{opacity:0}},(0,nn.oN)(Je))},[`${Et}-prev, ${Et}-next`]:{[`&:focus-visible ${Et}-item-link`]:Object.assign({},(0,nn.oN)(Je))}}}};var ft=(0,xn.Z)("Pagination",Je=>{const Et=(0,Pn.TS)(Je,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Je.marginXXS/2,paginationMiniQuickJumperInputWidth:Je.controlHeightLG*1.1,paginationItemPaddingInline:Je.marginXXS*1.5,paginationEllipsisLetterSpacing:Je.marginXXS/2,paginationSlashMarginInlineStart:Je.marginXXS,paginationSlashMarginInlineEnd:Je.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,un.e5)(Je),(0,un.TM)(Je));return[le(Et),Ve(Et),Je.wireframe&&Me(Et)]},Je=>({itemBg:Je.colorBgContainer,itemSize:Je.controlHeight,itemSizeSM:Je.controlHeightSM,itemActiveBg:Je.colorBgContainer,itemLinkBg:Je.colorBgContainer,itemActiveColorDisabled:Je.colorTextDisabled,itemActiveBgDisabled:Je.controlItemBgActiveDisabled,itemInputBg:Je.colorBgContainer,miniOptionsSizeChangerTop:0})),Ht=function(Je,Et){var Lt={};for(var Xt in Je)Object.prototype.hasOwnProperty.call(Je,Xt)&&Et.indexOf(Xt)<0&&(Lt[Xt]=Je[Xt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,Xt=Object.getOwnPropertySymbols(Je);wt<Xt.length;wt++)Et.indexOf(Xt[wt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Xt[wt])&&(Lt[Xt[wt]]=Je[Xt[wt]]);return Lt},jt=Je=>{const{prefixCls:Et,selectPrefixCls:Lt,className:Xt,rootClassName:wt,style:Nn,size:et,locale:It,selectComponentClass:gn,responsive:hn,showSizeChanger:An}=Je,Vn=Ht(Je,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:mr}=(0,$e.Z)(hn),{getPrefixCls:ur,direction:dr,pagination:Fr={}}=Pe.useContext(Mn.E_),nr=ur("pagination",Et),[_r,oi]=ft(nr),Wr=An!=null?An:Fr.showSizeChanger,xi=Pe.useMemo(()=>{const Gn=Pe.createElement("span",{className:`${nr}-item-ellipsis`},"\u2022\u2022\u2022"),jn=Pe.createElement("button",{className:`${nr}-item-link`,type:"button",tabIndex:-1},dr==="rtl"?Pe.createElement(Ie.Z,null):Pe.createElement(me.Z,null)),nt=Pe.createElement("button",{className:`${nr}-item-link`,type:"button",tabIndex:-1},dr==="rtl"?Pe.createElement(me.Z,null):Pe.createElement(Ie.Z,null)),mt=Pe.createElement("a",{className:`${nr}-item-link`},Pe.createElement("div",{className:`${nr}-item-container`},dr==="rtl"?Pe.createElement(xe.Z,{className:`${nr}-item-link-icon`}):Pe.createElement(Le,{className:`${nr}-item-link-icon`}),Gn)),Bt=Pe.createElement("a",{className:`${nr}-item-link`},Pe.createElement("div",{className:`${nr}-item-container`},dr==="rtl"?Pe.createElement(Le,{className:`${nr}-item-link-icon`}):Pe.createElement(xe.Z,{className:`${nr}-item-link-icon`}),Gn));return{prevIcon:jn,nextIcon:nt,jumpPrevIcon:mt,jumpNextIcon:Bt}},[dr,nr]),[ti]=(0,dt.Z)("Pagination",At.Z),Ct=Object.assign(Object.assign({},ti),It),wn=(0,_t.Z)(et),Rn=wn==="small"||!!(mr&&!wn&&hn),an=ur("select",Lt),vr=Ne()({[`${nr}-mini`]:Rn,[`${nr}-rtl`]:dr==="rtl"},Fr==null?void 0:Fr.className,Xt,wt,oi),lr=Object.assign(Object.assign({},Fr==null?void 0:Fr.style),Nn);return _r(Pe.createElement(we,Object.assign({},xi,Vn,{style:lr,prefixCls:nr,selectPrefixCls:an,className:vr,selectComponentClass:gn||(Rn?Xn:bn),locale:Ct,showSizeChanger:Wr})))},$t=jt},38703:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Nn}});var ae=se(67294),Pe=se(87725),Re=se(18299),qe=se(16646),ve=se(73475),ke=se(94184),Le=se.n(ke),xe=se(10366),me=se(53124),Ie=se(87462),st=se(1413),Ne=se(45987),xt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},pt=function(){var It=(0,ae.useRef)([]),gn=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var hn=Date.now(),An=!1;It.current.forEach(function(Vn){if(Vn){An=!0;var mr=Vn.style;mr.transitionDuration=".3s, .3s, .3s, .06s",gn.current&&hn-gn.current<100&&(mr.transitionDuration="0s, 0s")}}),An&&(gn.current=Date.now())}),It.current},ct=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],rt=function(It){var gn=(0,st.Z)((0,st.Z)({},xt),It),hn=gn.className,An=gn.percent,Vn=gn.prefixCls,mr=gn.strokeColor,ur=gn.strokeLinecap,dr=gn.strokeWidth,Fr=gn.style,nr=gn.trailColor,_r=gn.trailWidth,oi=gn.transition,Wr=(0,Ne.Z)(gn,ct);delete Wr.gapPosition;var xi=Array.isArray(An)?An:[An],ti=Array.isArray(mr)?mr:[mr],Ct=pt(),wn=dr/2,Rn=100-dr/2,an="M ".concat(ur==="round"?wn:0,",").concat(wn,`
L `).concat(ur==="round"?Rn:100,",").concat(wn),vr="0 0 100 ".concat(dr),lr=0;return ae.createElement("svg",(0,Ie.Z)({className:Le()("".concat(Vn,"-line"),hn),viewBox:vr,preserveAspectRatio:"none",style:Fr},Wr),ae.createElement("path",{className:"".concat(Vn,"-line-trail"),d:an,strokeLinecap:ur,stroke:nr,strokeWidth:_r||dr,fillOpacity:"0"}),xi.map(function(Gn,jn){var nt=1;switch(ur){case"round":nt=1-dr/100;break;case"square":nt=1-dr/2/100;break;default:nt=1;break}var mt={strokeDasharray:"".concat(Gn*nt,"px, 100px"),strokeDashoffset:"-".concat(lr,"px"),transition:oi||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Bt=ti[jn]||ti[ti.length-1];return lr+=Gn,ae.createElement("path",{key:jn,className:"".concat(Vn,"-line-path"),d:an,strokeLinecap:ur,stroke:Bt,strokeWidth:dr,fillOpacity:"0",ref:function(Ze){Ct[jn]=Ze},style:mt})}))},Ee=rt,at=se(71002),Yt=se(97685),Xe=se(98924),lt=0,Se=(0,Xe.Z)();function Ce(){var et;return Se?(et=lt,lt+=1):et="TEST_OR_SSR",et}var je=function(et){var It=ae.useState(),gn=(0,Yt.Z)(It,2),hn=gn[0],An=gn[1];return ae.useEffect(function(){An("rc_progress_".concat(Ce()))},[]),et||hn},Ue=function(It){var gn=It.bg,hn=It.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:gn}},hn)};function Mt(et,It){return Object.keys(et).map(function(gn){var hn=parseFloat(gn),An="".concat(Math.floor(hn*It),"%");return"".concat(et[gn]," ").concat(An)})}var ht=ae.forwardRef(function(et,It){var gn=et.prefixCls,hn=et.color,An=et.gradientId,Vn=et.radius,mr=et.style,ur=et.ptg,dr=et.strokeLinecap,Fr=et.strokeWidth,nr=et.size,_r=et.gapDegree,oi=hn&&(0,at.Z)(hn)==="object",Wr=oi?"#FFF":void 0,xi=nr/2,ti=ae.createElement("circle",{className:"".concat(gn,"-circle-path"),r:Vn,cx:xi,cy:xi,stroke:Wr,strokeLinecap:dr,strokeWidth:Fr,opacity:ur===0?0:1,style:mr,ref:It});if(!oi)return ti;var Ct="".concat(An,"-conic"),wn=_r?"".concat(180+_r/2,"deg"):"0deg",Rn=Mt(hn,(360-_r)/360),an=Mt(hn,1),vr="conic-gradient(from ".concat(wn,", ").concat(Rn.join(", "),")"),lr="linear-gradient(to ".concat(_r?"bottom":"top",", ").concat(an.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ct},ti),ae.createElement("foreignObject",{x:0,y:0,width:nr,height:nr,mask:"url(#".concat(Ct,")")},ae.createElement(Ue,{bg:lr},ae.createElement(Ue,{bg:vr}))))}),Ft=ht,tt=100,Jt=function(It,gn,hn,An,Vn,mr,ur,dr,Fr,nr){var _r=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,oi=hn/100*360*((360-mr)/360),Wr=mr===0?0:{bottom:0,top:180,left:90,right:-90}[ur],xi=(100-An)/100*gn;Fr==="round"&&An!==100&&(xi+=nr/2,xi>=gn&&(xi=gn-.01));var ti=tt/2;return{stroke:typeof dr=="string"?dr:void 0,strokeDasharray:"".concat(gn,"px ").concat(It),strokeDashoffset:xi+_r,transform:"rotate(".concat(Vn+oi+Wr,"deg)"),transformOrigin:"".concat(ti,"px ").concat(ti,"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}},Rt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function yn(et){var It=et!=null?et:[];return Array.isArray(It)?It:[It]}var tn=function(It){var gn=(0,st.Z)((0,st.Z)({},xt),It),hn=gn.id,An=gn.prefixCls,Vn=gn.steps,mr=gn.strokeWidth,ur=gn.trailWidth,dr=gn.gapDegree,Fr=dr===void 0?0:dr,nr=gn.gapPosition,_r=gn.trailColor,oi=gn.strokeLinecap,Wr=gn.style,xi=gn.className,ti=gn.strokeColor,Ct=gn.percent,wn=(0,Ne.Z)(gn,Rt),Rn=tt/2,an=je(hn),vr="".concat(an,"-gradient"),lr=Rn-mr/2,Gn=Math.PI*2*lr,jn=Fr>0?90+Fr/2:-90,nt=Gn*((360-Fr)/360),mt=(0,at.Z)(Vn)==="object"?Vn:{count:Vn,space:2},Bt=mt.count,rn=mt.space,Ze=yn(Ct),St=yn(ti),Vt=St.find(function(or){return or&&(0,at.Z)(or)==="object"}),Nt=Vt&&(0,at.Z)(Vt)==="object",cn=Nt?"butt":oi,on=Jt(Gn,nt,0,100,jn,Fr,nr,_r,cn,mr),Kn=pt(),Hr=function(){var Ar=0;return Ze.map(function(Lr,kt){var gt=St[kt]||St[St.length-1],Dt=Jt(Gn,nt,Ar,Lr,jn,Fr,nr,gt,cn,mr);return Ar+=Lr,ae.createElement(Ft,{key:kt,color:gt,ptg:Lr,radius:lr,prefixCls:An,gradientId:vr,style:Dt,strokeLinecap:cn,strokeWidth:mr,gapDegree:Fr,ref:function(qn){Kn[kt]=qn},size:tt})}).reverse()},hr=function(){var Ar=Math.round(Bt*(Ze[0]/100)),Lr=100/Bt,kt=0;return new Array(Bt).fill(null).map(function(gt,Dt){var En=Dt<=Ar-1?St[0]:_r,qn=En&&(0,at.Z)(En)==="object"?"url(#".concat(vr,")"):void 0,Cn=Jt(Gn,nt,kt,Lr,jn,Fr,nr,En,"butt",mr,rn);return kt+=(nt-Cn.strokeDashoffset+rn)*100/nt,ae.createElement("circle",{key:Dt,className:"".concat(An,"-circle-path"),r:lr,cx:Rn,cy:Rn,stroke:qn,strokeWidth:mr,opacity:1,style:Cn,ref:function(In){Kn[Dt]=In}})})};return ae.createElement("svg",(0,Ie.Z)({className:Le()("".concat(An,"-circle"),xi),viewBox:"0 0 ".concat(tt," ").concat(tt),style:Wr,id:hn,role:"presentation"},wn),!Bt&&ae.createElement("circle",{className:"".concat(An,"-circle-trail"),r:lr,cx:Rn,cy:Rn,stroke:_r,strokeLinecap:cn,strokeWidth:ur||mr,style:on}),Bt?hr():Hr())},Hn=tn,Yn={Line:Ee,Circle:Hn},tr=se(83062),Qe=se(47448);function we(et){return!et||et<0?0:et>100?100:et}function At(et){let{success:It,successPercent:gn}=et,hn=gn;return It&&"progress"in It&&(hn=It.progress),It&&"percent"in It&&(hn=It.percent),hn}const Mn=et=>{let{percent:It,success:gn,successPercent:hn}=et;const An=we(At({success:gn,successPercent:hn}));return[An,we(we(It)-An)]},_t=et=>{let{success:It={},strokeColor:gn}=et;const{strokeColor:hn}=It;return[hn||Qe.presetPrimaryColors.green,gn||null]},$e=(et,It,gn)=>{var hn,An,Vn,mr;let ur=-1,dr=-1;if(It==="step"){const Fr=gn.steps,nr=gn.strokeWidth;typeof et=="string"||typeof et=="undefined"?(ur=et==="small"?2:14,dr=nr!=null?nr:8):typeof et=="number"?[ur,dr]=[et,et]:[ur=14,dr=8]=et,ur*=Fr}else if(It==="line"){const Fr=gn==null?void 0:gn.strokeWidth;typeof et=="string"||typeof et=="undefined"?dr=Fr||(et==="small"?6:8):typeof et=="number"?[ur,dr]=[et,et]:[ur=-1,dr=8]=et}else(It==="circle"||It==="dashboard")&&(typeof et=="string"||typeof et=="undefined"?[ur,dr]=et==="small"?[60,60]:[120,120]:typeof et=="number"?[ur,dr]=[et,et]:(ur=(An=(hn=et[0])!==null&&hn!==void 0?hn:et[1])!==null&&An!==void 0?An:120,dr=(mr=(Vn=et[0])!==null&&Vn!==void 0?Vn:et[1])!==null&&mr!==void 0?mr:120));return[ur,dr]},dt=3,qt=et=>dt/et*100;var bn=et=>{const{prefixCls:It,trailColor:gn=null,strokeLinecap:hn="round",gapPosition:An,gapDegree:Vn,width:mr=120,type:ur,children:dr,success:Fr,size:nr=mr}=et,[_r,oi]=$e(nr,"circle");let{strokeWidth:Wr}=et;Wr===void 0&&(Wr=Math.max(qt(_r),6));const xi={width:_r,height:oi,fontSize:_r*.15+6},ti=ae.useMemo(()=>{if(Vn||Vn===0)return Vn;if(ur==="dashboard")return 75},[Vn,ur]),Ct=An||ur==="dashboard"&&"bottom"||void 0,wn=Object.prototype.toString.call(et.strokeColor)==="[object Object]",Rn=_t({success:Fr,strokeColor:et.strokeColor}),an=Le()(`${It}-inner`,{[`${It}-circle-gradient`]:wn}),vr=ae.createElement(Hn,{percent:Mn(et),strokeWidth:Wr,trailWidth:Wr,strokeColor:Rn,strokeLinecap:hn,trailColor:gn,prefixCls:It,gapDegree:ti,gapPosition:Ct});return ae.createElement("div",{className:an,style:xi},_r<=20?ae.createElement(tr.Z,{title:dr},ae.createElement("span",null,vr)):ae.createElement(ae.Fragment,null,vr,dr))},un=function(et,It){var gn={};for(var hn in et)Object.prototype.hasOwnProperty.call(et,hn)&&It.indexOf(hn)<0&&(gn[hn]=et[hn]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,hn=Object.getOwnPropertySymbols(et);An<hn.length;An++)It.indexOf(hn[An])<0&&Object.prototype.propertyIsEnumerable.call(et,hn[An])&&(gn[hn[An]]=et[hn[An]]);return gn};const nn=et=>{let It=[];return Object.keys(et).forEach(gn=>{const hn=parseFloat(gn.replace(/%/g,""));isNaN(hn)||It.push({key:hn,value:et[gn]})}),It=It.sort((gn,hn)=>gn.key-hn.key),It.map(gn=>{let{key:hn,value:An}=gn;return`${An} ${hn}%`}).join(", ")},xn=(et,It)=>{const{from:gn=Qe.presetPrimaryColors.blue,to:hn=Qe.presetPrimaryColors.blue,direction:An=It==="rtl"?"to left":"to right"}=et,Vn=un(et,["from","to","direction"]);if(Object.keys(Vn).length!==0){const mr=nn(Vn);return{backgroundImage:`linear-gradient(${An}, ${mr})`}}return{backgroundImage:`linear-gradient(${An}, ${gn}, ${hn})`}};var De=et=>{const{prefixCls:It,direction:gn,percent:hn,size:An,strokeWidth:Vn,strokeColor:mr,strokeLinecap:ur="round",children:dr,trailColor:Fr=null,success:nr}=et,_r=mr&&typeof mr!="string"?xn(mr,gn):{backgroundColor:mr},oi=ur==="square"||ur==="butt"?0:void 0,Wr={backgroundColor:Fr||void 0,borderRadius:oi},xi=An!=null?An:[-1,Vn||(An==="small"?6:8)],[ti,Ct]=$e(xi,"line",{strokeWidth:Vn}),wn=Object.assign({width:`${we(hn)}%`,height:Ct,borderRadius:oi},_r),Rn=At(et),an={width:`${we(Rn)}%`,height:Ct,borderRadius:oi,backgroundColor:nr==null?void 0:nr.strokeColor},vr={width:ti<0?"100%":ti,height:Ct};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${It}-outer`,style:vr},ae.createElement("div",{className:`${It}-inner`,style:Wr},ae.createElement("div",{className:`${It}-bg`,style:wn}),Rn!==void 0?ae.createElement("div",{className:`${It}-success-bg`,style:an}):null)),dr)},ce=et=>{const{size:It,steps:gn,percent:hn=0,strokeWidth:An=8,strokeColor:Vn,trailColor:mr=null,prefixCls:ur,children:dr}=et,Fr=Math.round(gn*(hn/100)),nr=It==="small"?2:14,_r=It!=null?It:[nr,An],[oi,Wr]=$e(_r,"step",{steps:gn,strokeWidth:An}),xi=oi/gn,ti=new Array(gn);for(let Ct=0;Ct<gn;Ct++){const wn=Array.isArray(Vn)?Vn[Ct]:Vn;ti[Ct]=ae.createElement("div",{key:Ct,className:Le()(`${ur}-steps-item`,{[`${ur}-steps-item-active`]:Ct<=Fr-1}),style:{backgroundColor:Ct<=Fr-1?wn:mr,width:xi,height:Wr}})}return ae.createElement("div",{className:`${ur}-steps-outer`},ti,dr)},he=se(45930),fe=se(14747),le=se(67968),Me=se(45503);const Ve=et=>{const It=et?"100%":"-100%";return new he.Keyframes(`antProgress${et?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${It}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${It}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ft=et=>{const{componentCls:It,iconCls:gn}=et;return{[It]:Object.assign(Object.assign({},(0,fe.Wf)(et)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:et.fontSize,marginInlineEnd:et.marginXS,marginBottom:et.marginXS},[`${It}-outer`]:{display:"inline-block",width:"100%"},[`&${It}-show-info`]:{[`${It}-outer`]:{marginInlineEnd:`calc(-2em - ${et.marginXS}px)`,paddingInlineEnd:`calc(2em + ${et.paddingXS}px)`}},[`${It}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:et.remainingColor,borderRadius:et.lineBorderRadius},[`${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:et.defaultColor}},[`${It}-success-bg, ${It}-bg`]:{position:"relative",backgroundColor:et.defaultColor,borderRadius:et.lineBorderRadius,transition:`all ${et.motionDurationSlow} ${et.motionEaseInOutCirc}`},[`${It}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:et.colorSuccess},[`${It}-text`]:{display:"inline-block",width:"2em",marginInlineStart:et.marginXS,color:et.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[gn]:{fontSize:et.fontSize}},[`&${It}-status-active`]:{[`${It}-bg::before`]:{position:"absolute",inset:0,backgroundColor:et.colorBgContainer,borderRadius:et.lineBorderRadius,opacity:0,animationName:Ve(),animationDuration:et.progressActiveMotionDuration,animationTimingFunction:et.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${It}-rtl${It}-status-active`]:{[`${It}-bg::before`]:{animationName:Ve(!0)}},[`&${It}-status-exception`]:{[`${It}-bg`]:{backgroundColor:et.colorError},[`${It}-text`]:{color:et.colorError}},[`&${It}-status-exception ${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:et.colorError}},[`&${It}-status-success`]:{[`${It}-bg`]:{backgroundColor:et.colorSuccess},[`${It}-text`]:{color:et.colorSuccess}},[`&${It}-status-success ${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:et.colorSuccess}}})}},Ht=et=>{const{componentCls:It,iconCls:gn}=et;return{[It]:{[`${It}-circle-trail`]:{stroke:et.remainingColor},[`&${It}-circle ${It}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${It}-circle ${It}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:et.circleTextColor,fontSize:et.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[gn]:{fontSize:`${et.fontSize/et.fontSizeSM}em`}},[`${It}-circle&-status-exception`]:{[`${It}-text`]:{color:et.colorError}},[`${It}-circle&-status-success`]:{[`${It}-text`]:{color:et.colorSuccess}}},[`${It}-inline-circle`]:{lineHeight:1,[`${It}-inner`]:{verticalAlign:"bottom"}}}},Zt=et=>{const{componentCls:It}=et;return{[It]:{[`${It}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:et.progressStepMinWidth,marginInlineEnd:et.progressStepMarginInlineEnd,backgroundColor:et.remainingColor,transition:`all ${et.motionDurationSlow}`,"&-active":{backgroundColor:et.defaultColor}}}}}},jt=et=>{const{componentCls:It,iconCls:gn}=et;return{[It]:{[`${It}-small&-line, ${It}-small&-line ${It}-text ${gn}`]:{fontSize:et.fontSizeSM}}}};var $t=(0,le.Z)("Progress",et=>{const It=et.marginXXS/2,gn=(0,Me.TS)(et,{progressStepMarginInlineEnd:It,progressStepMinWidth:It,progressActiveMotionDuration:"2.4s"});return[ft(gn),Ht(gn),Zt(gn),jt(gn)]},et=>({circleTextColor:et.colorText,defaultColor:et.colorInfo,remainingColor:et.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Je=function(et,It){var gn={};for(var hn in et)Object.prototype.hasOwnProperty.call(et,hn)&&It.indexOf(hn)<0&&(gn[hn]=et[hn]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,hn=Object.getOwnPropertySymbols(et);An<hn.length;An++)It.indexOf(hn[An])<0&&Object.prototype.propertyIsEnumerable.call(et,hn[An])&&(gn[hn[An]]=et[hn[An]]);return gn};const Et=null,Lt=["normal","exception","active","success"];var wt=ae.forwardRef((et,It)=>{const{prefixCls:gn,className:hn,rootClassName:An,steps:Vn,strokeColor:mr,percent:ur=0,size:dr="default",showInfo:Fr=!0,type:nr="line",status:_r,format:oi,style:Wr}=et,xi=Je(et,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),ti=ae.useMemo(()=>{var Ze,St;const Vt=At(et);return parseInt(Vt!==void 0?(Ze=Vt!=null?Vt:0)===null||Ze===void 0?void 0:Ze.toString():(St=ur!=null?ur:0)===null||St===void 0?void 0:St.toString(),10)},[ur,et.success,et.successPercent]),Ct=ae.useMemo(()=>!Lt.includes(_r)&&ti>=100?"success":_r||"normal",[_r,ti]),{getPrefixCls:wn,direction:Rn,progress:an}=ae.useContext(me.E_),vr=wn("progress",gn),[lr,Gn]=$t(vr),jn=ae.useMemo(()=>{if(!Fr)return null;const Ze=At(et);let St;const Vt=oi||(cn=>`${cn}%`),Nt=nr==="line";return oi||Ct!=="exception"&&Ct!=="success"?St=Vt(we(ur),we(Ze)):Ct==="exception"?St=Nt?ae.createElement(qe.Z,null):ae.createElement(ve.Z,null):Ct==="success"&&(St=Nt?ae.createElement(Pe.Z,null):ae.createElement(Re.Z,null)),ae.createElement("span",{className:`${vr}-text`,title:typeof St=="string"?St:void 0},St)},[Fr,ur,ti,Ct,nr,vr,oi]),nt=Array.isArray(mr)?mr[0]:mr,mt=typeof mr=="string"||Array.isArray(mr)?mr:void 0;let Bt;nr==="line"?Bt=Vn?ae.createElement(ce,Object.assign({},et,{strokeColor:mt,prefixCls:vr,steps:Vn}),jn):ae.createElement(De,Object.assign({},et,{strokeColor:nt,prefixCls:vr,direction:Rn}),jn):(nr==="circle"||nr==="dashboard")&&(Bt=ae.createElement(bn,Object.assign({},et,{strokeColor:nt,prefixCls:vr,progressStatus:Ct}),jn));const rn=Le()(vr,`${vr}-status-${Ct}`,`${vr}-${nr==="dashboard"&&"circle"||Vn&&"steps"||nr}`,{[`${vr}-inline-circle`]:nr==="circle"&&$e(dr,"circle")[0]<=20,[`${vr}-show-info`]:Fr,[`${vr}-${dr}`]:typeof dr=="string",[`${vr}-rtl`]:Rn==="rtl"},an==null?void 0:an.className,hn,An,Gn);return lr(ae.createElement("div",Object.assign({ref:It,style:Object.assign(Object.assign({},an==null?void 0:an.style),Wr),className:rn,role:"progressbar","aria-valuenow":ti},(0,xe.Z)(xi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Bt))}),Nn=wt},78045:function(dn,en,se){"use strict";se.d(en,{ZP:function(){return Qe}});var ae=se(94184),Pe=se.n(ae),Re=se(5663),qe=se(1337),ve=se(67294),ke=se(53124),Le=se(98675);const xe=ve.createContext(null),me=xe.Provider;var Ie=xe;const st=ve.createContext(null),Ne=st.Provider;var xt=se(95860),pt=se(17799),ct=se(98866),rt=se(65223),Ee=se(14747),at=se(67968),Yt=se(45503);const Xe=we=>{const{componentCls:At,antCls:Mn}=we,_t=`${At}-group`;return{[_t]:Object.assign(Object.assign({},(0,Ee.Wf)(we)),{display:"inline-block",fontSize:0,[`&${_t}-rtl`]:{direction:"rtl"},[`${Mn}-badge ${Mn}-badge-count`]:{zIndex:1},[`> ${Mn}-badge:not(:first-child) > ${Mn}-button-wrapper`]:{borderInlineStart:"none"}})}},lt=we=>{const{componentCls:At,wrapperMarginInlineEnd:Mn,colorPrimary:_t,radioSize:$e,motionDurationSlow:dt,motionDurationMid:qt,motionEaseInOutCirc:Xn,colorBgContainer:bn,colorBorder:un,lineWidth:nn,dotSize:xn,colorBgContainerDisabled:Pn,colorTextDisabled:De,paddingXS:ue,dotColorDisabled:ce,lineType:he,radioDotDisabledSize:fe,wireframe:le,colorWhite:Me}=we,Ve=`${At}-inner`;return{[`${At}-wrapper`]:Object.assign(Object.assign({},(0,Ee.Wf)(we)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Mn,cursor:"pointer",[`&${At}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:we.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${At}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${nn}px ${he} ${_t}`,borderRadius:"50%",visibility:"hidden",content:'""'},[At]:Object.assign(Object.assign({},(0,Ee.Wf)(we)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${At}-wrapper:hover &,
&:hover ${Ve}`]:{borderColor:_t},[`${At}-input:focus-visible + ${Ve}`]:Object.assign({},(0,Ee.oN)(we)),[`${At}:hover::after, ${At}-wrapper:hover &::after`]:{visibility:"visible"},[`${At}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:$e,height:$e,marginBlockStart:$e/-2,marginInlineStart:$e/-2,backgroundColor:le?_t:Me,borderBlockStart:0,borderInlineStart:0,borderRadius:$e,transform:"scale(0)",opacity:0,transition:`all ${dt} ${Xn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$e,height:$e,backgroundColor:bn,borderColor:un,borderStyle:"solid",borderWidth:nn,borderRadius:"50%",transition:`all ${qt}`},[`${At}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${At}-checked`]:{[Ve]:{borderColor:_t,backgroundColor:le?bn:_t,"&::after":{transform:`scale(${xn/$e})`,opacity:1,transition:`all ${dt} ${Xn}`}}},[`${At}-disabled`]:{cursor:"not-allowed",[Ve]:{backgroundColor:Pn,borderColor:un,cursor:"not-allowed","&::after":{backgroundColor:ce}},[`${At}-input`]:{cursor:"not-allowed"},[`${At}-disabled + span`]:{color:De,cursor:"not-allowed"},[`&${At}-checked`]:{[Ve]:{"&::after":{transform:`scale(${fe/$e})`}}}},[`span${At} + *`]:{paddingInlineStart:ue,paddingInlineEnd:ue}})}},Se=we=>{const{buttonColor:At,controlHeight:Mn,componentCls:_t,lineWidth:$e,lineType:dt,colorBorder:qt,motionDurationSlow:Xn,motionDurationMid:bn,buttonPaddingInline:un,fontSize:nn,buttonBg:xn,fontSizeLG:Pn,controlHeightLG:De,controlHeightSM:ue,paddingXS:ce,borderRadius:he,borderRadiusSM:fe,borderRadiusLG:le,buttonCheckedBg:Me,buttonSolidCheckedColor:Ve,colorTextDisabled:ft,colorBgContainerDisabled:Ht,buttonCheckedBgDisabled:Zt,buttonCheckedColorDisabled:jt,colorPrimary:$t,colorPrimaryHover:Je,colorPrimaryActive:Et,buttonSolidCheckedBg:Lt,buttonSolidCheckedHoverBg:Xt,buttonSolidCheckedActiveBg:wt}=we;return{[`${_t}-button-wrapper`]:{position:"relative",display:"inline-block",height:Mn,margin:0,paddingInline:un,paddingBlock:0,color:At,fontSize:nn,lineHeight:`${Mn-$e*2}px`,background:xn,border:`${$e}px ${dt} ${qt}`,borderBlockStartWidth:$e+.02,borderInlineStartWidth:0,borderInlineEndWidth:$e,cursor:"pointer",transition:[`color ${bn}`,`background ${bn}`,`box-shadow ${bn}`].join(","),a:{color:At},[`> ${_t}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-$e,insetInlineStart:-$e,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:$e,paddingInline:0,backgroundColor:qt,transition:`background-color ${Xn}`,content:'""'}},"&:first-child":{borderInlineStart:`${$e}px ${dt} ${qt}`,borderStartStartRadius:he,borderEndStartRadius:he},"&:last-child":{borderStartEndRadius:he,borderEndEndRadius:he},"&:first-child:last-child":{borderRadius:he},[`${_t}-group-large &`]:{height:De,fontSize:Pn,lineHeight:`${De-$e*2}px`,"&:first-child":{borderStartStartRadius:le,borderEndStartRadius:le},"&:last-child":{borderStartEndRadius:le,borderEndEndRadius:le}},[`${_t}-group-small &`]:{height:ue,paddingInline:ce-$e,paddingBlock:0,lineHeight:`${ue-$e*2}px`,"&:first-child":{borderStartStartRadius:fe,borderEndStartRadius:fe},"&:last-child":{borderStartEndRadius:fe,borderEndEndRadius:fe}},"&:hover":{position:"relative",color:$t},"&:has(:focus-visible)":Object.assign({},(0,Ee.oN)(we)),[`${_t}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${_t}-button-wrapper-disabled)`]:{zIndex:1,color:$t,background:Me,borderColor:$t,"&::before":{backgroundColor:$t},"&:first-child":{borderColor:$t},"&:hover":{color:Je,borderColor:Je,"&::before":{backgroundColor:Je}},"&:active":{color:Et,borderColor:Et,"&::before":{backgroundColor:Et}}},[`${_t}-group-solid &-checked:not(${_t}-button-wrapper-disabled)`]:{color:Ve,background:Lt,borderColor:Lt,"&:hover":{color:Ve,background:Xt,borderColor:Xt},"&:active":{color:Ve,background:wt,borderColor:wt}},"&-disabled":{color:ft,backgroundColor:Ht,borderColor:qt,cursor:"not-allowed","&:first-child, &:hover":{color:ft,backgroundColor:Ht,borderColor:qt}},[`&-disabled${_t}-button-wrapper-checked`]:{color:jt,backgroundColor:Zt,borderColor:qt,boxShadow:"none"}}}},Ce=we=>we-4*2;var je=(0,at.Z)("Radio",we=>{const{controlOutline:At,controlOutlineWidth:Mn,radioSize:_t}=we,$e=`0 0 0 ${Mn}px ${At}`,dt=$e,qt=Ce(_t),Xn=(0,Yt.TS)(we,{radioDotDisabledSize:qt,radioFocusShadow:$e,radioButtonFocusShadow:dt});return[Xe(Xn),lt(Xn),Se(Xn)]},we=>{const{wireframe:At,padding:Mn,marginXS:_t,lineWidth:$e,fontSizeLG:dt,colorText:qt,colorBgContainer:Xn,colorTextDisabled:bn,controlItemBgActiveDisabled:un,colorTextLightSolid:nn,colorPrimary:xn,colorPrimaryHover:Pn,colorPrimaryActive:De}=we,ue=4,ce=dt,he=At?Ce(ce):ce-(ue+$e)*2;return{radioSize:ce,dotSize:he,dotColorDisabled:bn,buttonSolidCheckedColor:nn,buttonSolidCheckedBg:xn,buttonSolidCheckedHoverBg:Pn,buttonSolidCheckedActiveBg:De,buttonBg:Xn,buttonCheckedBg:Xn,buttonColor:qt,buttonCheckedBgDisabled:un,buttonCheckedColorDisabled:bn,buttonPaddingInline:Mn-$e,wrapperMarginInlineEnd:_t}}),Ue=se(45353),Mt=se(92429),ht=function(we,At){var Mn={};for(var _t in we)Object.prototype.hasOwnProperty.call(we,_t)&&At.indexOf(_t)<0&&(Mn[_t]=we[_t]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,_t=Object.getOwnPropertySymbols(we);$e<_t.length;$e++)At.indexOf(_t[$e])<0&&Object.prototype.propertyIsEnumerable.call(we,_t[$e])&&(Mn[_t[$e]]=we[_t[$e]]);return Mn};const Ft=(we,At)=>{var Mn,_t;const $e=ve.useContext(Ie),dt=ve.useContext(st),{getPrefixCls:qt,direction:Xn,radio:bn}=ve.useContext(ke.E_),un=ve.useRef(null),nn=(0,pt.sQ)(At,un),{isFormItemInput:xn}=ve.useContext(rt.aM),Pn=Et=>{var Lt,Xt;(Lt=we.onChange)===null||Lt===void 0||Lt.call(we,Et),(Xt=$e==null?void 0:$e.onChange)===null||Xt===void 0||Xt.call($e,Et)},{prefixCls:De,className:ue,rootClassName:ce,children:he,style:fe}=we,le=ht(we,["prefixCls","className","rootClassName","children","style"]),Me=qt("radio",De),Ve=(($e==null?void 0:$e.optionType)||dt)==="button",ft=Ve?`${Me}-button`:Me,[Ht,Zt]=je(Me),jt=Object.assign({},le),$t=ve.useContext(ct.Z);$e&&(jt.name=$e.name,jt.onChange=Pn,jt.checked=we.value===$e.value,jt.disabled=(Mn=jt.disabled)!==null&&Mn!==void 0?Mn:$e.disabled),jt.disabled=(_t=jt.disabled)!==null&&_t!==void 0?_t:$t;const Je=Pe()(`${ft}-wrapper`,{[`${ft}-wrapper-checked`]:jt.checked,[`${ft}-wrapper-disabled`]:jt.disabled,[`${ft}-wrapper-rtl`]:Xn==="rtl",[`${ft}-wrapper-in-form-item`]:xn},bn==null?void 0:bn.className,ue,ce,Zt);return Ht(ve.createElement(Ue.Z,{component:"Radio",disabled:jt.disabled},ve.createElement("label",{className:Je,style:Object.assign(Object.assign({},bn==null?void 0:bn.style),fe),onMouseEnter:we.onMouseEnter,onMouseLeave:we.onMouseLeave},ve.createElement(xt.Z,Object.assign({},jt,{className:Pe()(jt.className,!Ve&&Mt.A),type:"radio",prefixCls:ft,ref:nn})),he!==void 0?ve.createElement("span",null,he):null)))};var Jt=ve.forwardRef(Ft);const Rt=ve.forwardRef((we,At)=>{const{getPrefixCls:Mn,direction:_t}=ve.useContext(ke.E_),[$e,dt]=(0,Re.Z)(we.defaultValue,{value:we.value}),qt=Lt=>{const Xt=$e,wt=Lt.target.value;"value"in we||dt(wt);const{onChange:Nn}=we;Nn&&wt!==Xt&&Nn(Lt)},{prefixCls:Xn,className:bn,rootClassName:un,options:nn,buttonStyle:xn="outline",disabled:Pn,children:De,size:ue,style:ce,id:he,onMouseEnter:fe,onMouseLeave:le,onFocus:Me,onBlur:Ve}=we,ft=Mn("radio",Xn),Ht=`${ft}-group`,[Zt,jt]=je(ft);let $t=De;nn&&nn.length>0&&($t=nn.map(Lt=>typeof Lt=="string"||typeof Lt=="number"?ve.createElement(Jt,{key:Lt.toString(),prefixCls:ft,disabled:Pn,value:Lt,checked:$e===Lt},Lt):ve.createElement(Jt,{key:`radio-group-value-options-${Lt.value}`,prefixCls:ft,disabled:Lt.disabled||Pn,value:Lt.value,checked:$e===Lt.value,title:Lt.title,style:Lt.style},Lt.label)));const Je=(0,Le.Z)(ue),Et=Pe()(Ht,`${Ht}-${xn}`,{[`${Ht}-${Je}`]:Je,[`${Ht}-rtl`]:_t==="rtl"},bn,un,jt);return Zt(ve.createElement("div",Object.assign({},(0,qe.Z)(we,{aria:!0,data:!0}),{className:Et,style:ce,onMouseEnter:fe,onMouseLeave:le,onFocus:Me,onBlur:Ve,id:he,ref:At}),ve.createElement(me,{value:{onChange:qt,value:$e,disabled:we.disabled,name:we.name,optionType:we.optionType}},$t)))});var yn=ve.memo(Rt),tn=function(we,At){var Mn={};for(var _t in we)Object.prototype.hasOwnProperty.call(we,_t)&&At.indexOf(_t)<0&&(Mn[_t]=we[_t]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,_t=Object.getOwnPropertySymbols(we);$e<_t.length;$e++)At.indexOf(_t[$e])<0&&Object.prototype.propertyIsEnumerable.call(we,_t[$e])&&(Mn[_t[$e]]=we[_t[$e]]);return Mn};const Hn=(we,At)=>{const{getPrefixCls:Mn}=ve.useContext(ke.E_),{prefixCls:_t}=we,$e=tn(we,["prefixCls"]),dt=Mn("radio",_t);return ve.createElement(Ne,{value:"button"},ve.createElement(Jt,Object.assign({prefixCls:dt},$e,{type:"radio",ref:At})))};var Yn=ve.forwardRef(Hn);const tr=Jt;tr.Button=Yn,tr.Group=yn,tr.__ANT_RADIO=!0;var Qe=tr},12604:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Qe}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(At,Mn){return Pe.createElement(ve.Z,(0,ae.Z)({},At,{ref:Mn,icon:qe}))},Le=Pe.forwardRef(ke),xe=se(94184),me=se.n(xe),Ie=se(4942),st=se(97685),Ne=se(45987),xt=se(21770),pt=se(15105),ct=se(64217);function rt(we,At){var Mn=we.disabled,_t=we.prefixCls,$e=we.character,dt=we.characterRender,qt=we.index,Xn=we.count,bn=we.value,un=we.allowHalf,nn=we.focused,xn=we.onHover,Pn=we.onClick,De=function(ft){xn(ft,qt)},ue=function(ft){Pn(ft,qt)},ce=function(ft){ft.keyCode===pt.Z.ENTER&&Pn(ft,qt)},he=qt+1,fe=new Set([_t]);bn===0&&qt===0&&nn?fe.add("".concat(_t,"-focused")):un&&bn+.5>=he&&bn<he?(fe.add("".concat(_t,"-half")),fe.add("".concat(_t,"-active")),nn&&fe.add("".concat(_t,"-focused"))):(he<=bn?fe.add("".concat(_t,"-full")):fe.add("".concat(_t,"-zero")),he===bn&&nn&&fe.add("".concat(_t,"-focused")));var le=typeof $e=="function"?$e(we):$e,Me=Pe.createElement("li",{className:me()(Array.from(fe)),ref:At},Pe.createElement("div",{onClick:Mn?null:ue,onKeyDown:Mn?null:ce,onMouseMove:Mn?null:De,role:"radio","aria-checked":bn>qt?"true":"false","aria-posinset":qt+1,"aria-setsize":Xn,tabIndex:Mn?-1:0},Pe.createElement("div",{className:"".concat(_t,"-first")},le),Pe.createElement("div",{className:"".concat(_t,"-second")},le)));return dt&&(Me=dt(Me,we)),Me}var Ee=Pe.forwardRef(rt);function at(){var we=Pe.useRef({});function At(_t){return we.current[_t]}function Mn(_t){return function($e){we.current[_t]=$e}}return[At,Mn]}function Yt(we){var At=we.pageXOffset,Mn="scrollLeft";if(typeof At!="number"){var _t=we.document;At=_t.documentElement[Mn],typeof At!="number"&&(At=_t.body[Mn])}return At}function Xe(we){var At,Mn,_t=we.ownerDocument,$e=_t.body,dt=_t&&_t.documentElement,qt=we.getBoundingClientRect();return At=qt.left,Mn=qt.top,At-=dt.clientLeft||$e.clientLeft||0,Mn-=dt.clientTop||$e.clientTop||0,{left:At,top:Mn}}function lt(we){var At=Xe(we),Mn=we.ownerDocument,_t=Mn.defaultView||Mn.parentWindow;return At.left+=Yt(_t),At.left}var Se=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ce(we,At){var Mn,_t=we.prefixCls,$e=_t===void 0?"rc-rate":_t,dt=we.className,qt=we.defaultValue,Xn=we.value,bn=we.count,un=bn===void 0?5:bn,nn=we.allowHalf,xn=nn===void 0?!1:nn,Pn=we.allowClear,De=Pn===void 0?!0:Pn,ue=we.character,ce=ue===void 0?"\u2605":ue,he=we.characterRender,fe=we.disabled,le=we.direction,Me=le===void 0?"ltr":le,Ve=we.tabIndex,ft=Ve===void 0?0:Ve,Ht=we.autoFocus,Zt=we.onHoverChange,jt=we.onChange,$t=we.onFocus,Je=we.onBlur,Et=we.onKeyDown,Lt=we.onMouseLeave,Xt=(0,Ne.Z)(we,Se),wt=at(),Nn=(0,st.Z)(wt,2),et=Nn[0],It=Nn[1],gn=Pe.useRef(null),hn=function(){if(!fe){var Nt;(Nt=gn.current)===null||Nt===void 0||Nt.focus()}};Pe.useImperativeHandle(At,function(){return{focus:hn,blur:function(){if(!fe){var Nt;(Nt=gn.current)===null||Nt===void 0||Nt.blur()}}}});var An=(0,xt.Z)(qt||0,{value:Xn}),Vn=(0,st.Z)(An,2),mr=Vn[0],ur=Vn[1],dr=(0,xt.Z)(null),Fr=(0,st.Z)(dr,2),nr=Fr[0],_r=Fr[1],oi=function(Nt,cn){var on=Me==="rtl",Kn=Nt+1;if(xn){var Hr=et(Nt),hr=lt(Hr),or=Hr.clientWidth;(on&&cn-hr>or/2||!on&&cn-hr<or/2)&&(Kn-=.5)}return Kn},Wr=function(Nt){ur(Nt),jt==null||jt(Nt)},xi=Pe.useState(!1),ti=(0,st.Z)(xi,2),Ct=ti[0],wn=ti[1],Rn=function(){wn(!0),$t==null||$t()},an=function(){wn(!1),Je==null||Je()},vr=Pe.useState(null),lr=(0,st.Z)(vr,2),Gn=lr[0],jn=lr[1],nt=function(Nt,cn){var on=oi(cn,Nt.pageX);on!==nr&&(jn(on),_r(null)),Zt==null||Zt(on)},mt=function(Nt){fe||(jn(null),_r(null),Zt==null||Zt(void 0)),Nt&&(Lt==null||Lt(Nt))},Bt=function(Nt,cn){var on=oi(cn,Nt.pageX),Kn=!1;De&&(Kn=on===mr),mt(),Wr(Kn?0:on),_r(Kn?on:null)},rn=function(Nt){var cn=Nt.keyCode,on=Me==="rtl",Kn=mr;cn===pt.Z.RIGHT&&Kn<un&&!on?(xn?Kn+=.5:Kn+=1,Wr(Kn),Nt.preventDefault()):cn===pt.Z.LEFT&&Kn>0&&!on||cn===pt.Z.RIGHT&&Kn>0&&on?(xn?Kn-=.5:Kn-=1,Wr(Kn),Nt.preventDefault()):cn===pt.Z.LEFT&&Kn<un&&on&&(xn?Kn+=.5:Kn+=1,Wr(Kn),Nt.preventDefault()),Et==null||Et(Nt)};Pe.useEffect(function(){Ht&&!fe&&hn()},[]);var Ze=new Array(un).fill(0).map(function(Vt,Nt){return Pe.createElement(Ee,{ref:It(Nt),index:Nt,count:un,disabled:fe,prefixCls:"".concat($e,"-star"),allowHalf:xn,value:Gn===null?mr:Gn,onClick:Bt,onHover:nt,key:Vt||Nt,character:ce,characterRender:he,focused:Ct})}),St=me()($e,dt,(Mn={},(0,Ie.Z)(Mn,"".concat($e,"-disabled"),fe),(0,Ie.Z)(Mn,"".concat($e,"-rtl"),Me==="rtl"),Mn));return Pe.createElement("ul",(0,ae.Z)({className:St,onMouseLeave:mt,tabIndex:fe?-1:ft,onFocus:fe?null:Rn,onBlur:fe?null:an,onKeyDown:fe?null:rn,ref:gn,role:"radiogroup"},(0,ct.Z)(Xt,{aria:!0,data:!0,attr:!0})),Ze)}var je=Pe.forwardRef(Ce),Ue=je,Mt=se(53124),ht=se(83062),Ft=se(14747),tt=se(67968),Jt=se(45503);const Rt=we=>{const{componentCls:At}=we;return{[`${At}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:we.marginXS},"> div":{transition:`all ${we.motionDurationMid}, outline 0s`,"&:hover":{transform:we.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${we.lineWidth}px dashed ${we.starColor}`,transform:we.starHoverScale}},"&-first, &-second":{color:we.starBg,transition:`all ${we.motionDurationMid}`,userSelect:"none",[we.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${At}-star-first, &-half ${At}-star-second`]:{opacity:1},[`&-half ${At}-star-first, &-full ${At}-star-second`]:{color:"inherit"}}}},yn=we=>({[`&-rtl${we.componentCls}`]:{direction:"rtl"}}),tn=we=>{const{componentCls:At}=we;return{[At]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(we)),{display:"inline-block",margin:0,padding:0,color:we.starColor,fontSize:we.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${At} ${At}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Rt(we)),{[`+ ${At}-text`]:{display:"inline-block",marginInlineStart:we.marginXS,fontSize:we.fontSize}}),yn(we))}};var Hn=(0,tt.Z)("Rate",we=>{const At=(0,Jt.TS)(we,{});return[tn(At)]},we=>({starColor:we.yellow6,starSize:we.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:we.colorFillContent})),Yn=function(we,At){var Mn={};for(var _t in we)Object.prototype.hasOwnProperty.call(we,_t)&&At.indexOf(_t)<0&&(Mn[_t]=we[_t]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,_t=Object.getOwnPropertySymbols(we);$e<_t.length;$e++)At.indexOf(_t[$e])<0&&Object.prototype.propertyIsEnumerable.call(we,_t[$e])&&(Mn[_t[$e]]=we[_t[$e]]);return Mn},Qe=Pe.forwardRef((we,At)=>{const{prefixCls:Mn,className:_t,rootClassName:$e,style:dt,tooltips:qt,character:Xn=Pe.createElement(Le,null)}=we,bn=Yn(we,["prefixCls","className","rootClassName","style","tooltips","character"]),un=(fe,le)=>{let{index:Me}=le;return qt?Pe.createElement(ht.Z,{title:qt[Me]},fe):fe},{getPrefixCls:nn,direction:xn,rate:Pn}=Pe.useContext(Mt.E_),De=nn("rate",Mn),[ue,ce]=Hn(De),he=Object.assign(Object.assign({},Pn==null?void 0:Pn.style),dt);return ue(Pe.createElement(Ue,Object.assign({ref:At,character:Xn,characterRender:un},bn,{className:me()(_t,$e,ce,Pn==null?void 0:Pn.className),style:he,prefixCls:De,direction:xn})))})},11713:function(dn,en,se){"use strict";se.d(en,{default:function(){return Nr}});var ae=se(94184),Pe=se.n(ae),Re=se(87462),qe=se(74902),ve=se(4942),ke=se(1413),Le=se(97685),xe=se(45987),me=se(71002),Ie=se(67294);function st(Fe){var We=Ie.useRef();We.current=Fe;var Wt=Ie.useCallback(function(){for(var bt,sn=arguments.length,Ln=new Array(sn),zn=0;zn<sn;zn++)Ln[zn]=arguments[zn];return(bt=We.current)===null||bt===void 0?void 0:bt.call.apply(bt,[We].concat(Ln))},[]);return Wt}function Ne(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var xt=Ne()?Ie.useLayoutEffect:Ie.useEffect,pt=xt,ct=function(We,Wt){var bt=Ie.useRef(!0);xt(function(){if(!bt.current)return We()},Wt),xt(function(){return bt.current=!1,function(){bt.current=!0}},[])};function rt(Fe){var We=Ie.useRef(!1),Wt=Ie.useState(Fe),bt=(0,Le.Z)(Wt,2),sn=bt[0],Ln=bt[1];Ie.useEffect(function(){return We.current=!1,function(){We.current=!0}},[]);function zn(ar,ot){ot&&We.current||Ln(ar)}return[sn,zn]}function Ee(Fe){return Fe!==void 0}function at(Fe,We){var Wt=We||{},bt=Wt.defaultValue,sn=Wt.value,Ln=Wt.onChange,zn=Wt.postState,ar=rt(function(){return Ee(sn)?sn:Ee(bt)?typeof bt=="function"?bt():bt:typeof Fe=="function"?Fe():Fe}),ot=(0,Le.Z)(ar,2),Ye=ot[0],yt=ot[1],Qt=sn!==void 0?sn:Ye,_n=zn?zn(Qt):Qt,mn=st(Ln),ln=rt([Qt]),sr=(0,Le.Z)(ln,2),ir=sr[0],xr=sr[1];ct(function(){var Tn=ir[0];Ye!==Tn&&mn(Ye,Tn)},[ir]),ct(function(){Ee(sn)||yt(sn)},[sn]);var er=st(function(Tn,Er){yt(Tn,Er),xr([Qt],Er)});return[_n,er]}var Yt={};function Xe(Fe,We){}function lt(Fe,We){}function Se(){Yt={}}function Ce(Fe,We,Wt){!We&&!Yt[Wt]&&(Fe(!1,Wt),Yt[Wt]=!0)}function je(Fe,We){Ce(Xe,Fe,We)}function Ue(Fe,We){Ce(lt,Fe,We)}var Mt=je,ht=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Fe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Fe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Fe==null?void 0:Fe.substr(0,4))},Ft={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(We){var Wt=We.keyCode;if(We.altKey&&!We.ctrlKey||We.metaKey||Wt>=Ft.F1&&Wt<=Ft.F12)return!1;switch(Wt){case Ft.ALT:case Ft.CAPS_LOCK:case Ft.CONTEXT_MENU:case Ft.CTRL:case Ft.DOWN:case Ft.END:case Ft.ESC:case Ft.HOME:case Ft.INSERT:case Ft.LEFT:case Ft.MAC_FF_META:case Ft.META:case Ft.NUMLOCK:case Ft.NUM_CENTER:case Ft.PAGE_DOWN:case Ft.PAGE_UP:case Ft.PAUSE:case Ft.PRINT_SCREEN:case Ft.RIGHT:case Ft.SHIFT:case Ft.UP:case Ft.WIN_KEY:case Ft.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(We){if(We>=Ft.ZERO&&We<=Ft.NINE||We>=Ft.NUM_ZERO&&We<=Ft.NUM_MULTIPLY||We>=Ft.A&&We<=Ft.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&We===0)return!0;switch(We){case Ft.SPACE:case Ft.QUESTION_MARK:case Ft.NUM_PLUS:case Ft.NUM_MINUS:case Ft.NUM_PERIOD:case Ft.NUM_DIVISION:case Ft.SEMICOLON:case Ft.DASH:case Ft.EQUALS:case Ft.COMMA:case Ft.PERIOD:case Ft.SLASH:case Ft.APOSTROPHE:case Ft.SINGLE_QUOTE:case Ft.OPEN_SQUARE_BRACKET:case Ft.BACKSLASH:case Ft.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},tt=Ft,Jt=se(47655);function Rt(Fe,We,Wt){var bt=Ie.useRef({});return(!("value"in bt.current)||Wt(bt.current.condition,We))&&(bt.current.value=Fe(),bt.current.condition=We),bt.current.value}function yn(Fe,We){typeof Fe=="function"?Fe(We):(0,me.Z)(Fe)==="object"&&Fe&&"current"in Fe&&(Fe.current=We)}function tn(){for(var Fe=arguments.length,We=new Array(Fe),Wt=0;Wt<Fe;Wt++)We[Wt]=arguments[Wt];var bt=We.filter(function(sn){return sn});return bt.length<=1?bt[0]:function(sn){We.forEach(function(Ln){yn(Ln,sn)})}}function Hn(){for(var Fe=arguments.length,We=new Array(Fe),Wt=0;Wt<Fe;Wt++)We[Wt]=arguments[Wt];return Rt(function(){return tn.apply(void 0,We)},We,function(bt,sn){return bt.length===sn.length&&bt.every(function(Ln,zn){return Ln===sn[zn]})})}function Yn(Fe){var We,Wt,bt=isMemo(Fe)?Fe.type.type:Fe.type;return!(typeof bt=="function"&&!((We=bt.prototype)!==null&&We!==void 0&&We.render)||typeof Fe=="function"&&!((Wt=Fe.prototype)!==null&&Wt!==void 0&&Wt.render))}var tr=function(We){var Wt=We.className,bt=We.customizeIcon,sn=We.customizeIconProps,Ln=We.onMouseDown,zn=We.onClick,ar=We.children,ot;return typeof bt=="function"?ot=bt(sn):ot=bt,Ie.createElement("span",{className:Wt,onMouseDown:function(yt){yt.preventDefault(),Ln&&Ln(yt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:zn,"aria-hidden":!0},ot!==void 0?ot:Ie.createElement("span",{className:Pe()(Wt.split(/\s+/).map(function(Ye){return"".concat(Ye,"-icon")}))},ar))},Qe=tr;function we(Fe,We,Wt,bt,sn){var Ln=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,zn=arguments.length>6?arguments[6]:void 0,ar=arguments.length>7?arguments[7]:void 0,ot=Ie.useMemo(function(){if((0,me.Z)(bt)==="object")return bt.clearIcon;if(sn)return sn},[bt,sn]),Ye=Ie.useMemo(function(){return!!(!Ln&&bt&&(Wt.length||zn)&&!(ar==="combobox"&&zn===""))},[bt,Ln,Wt.length,zn,ar]);return{allowClear:Ye,clearIcon:Ie.createElement(Qe,{className:"".concat(Fe,"-clear"),onMouseDown:We,customizeIcon:ot},"\xD7")}}var At=Ie.createContext(null);function Mn(){return Ie.useContext(At)}function _t(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,We=Ie.useState(!1),Wt=(0,Le.Z)(We,2),bt=Wt[0],sn=Wt[1],Ln=Ie.useRef(null),zn=function(){window.clearTimeout(Ln.current)};Ie.useEffect(function(){return zn},[]);var ar=function(Ye,yt){zn(),Ln.current=window.setTimeout(function(){sn(Ye),yt&&yt()},Fe)};return[bt,ar,zn]}function $e(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,We=Ie.useRef(null),Wt=Ie.useRef(null);Ie.useEffect(function(){return function(){window.clearTimeout(Wt.current)}},[]);function bt(sn){(sn||We.current===null)&&(We.current=sn),window.clearTimeout(Wt.current),Wt.current=window.setTimeout(function(){We.current=null},Fe)}return[function(){return We.current},bt]}function dt(Fe,We,Wt,bt){var sn=Ie.useRef(null);sn.current={open:We,triggerOpen:Wt,customizedTrigger:bt},Ie.useEffect(function(){function Ln(zn){var ar;if(!((ar=sn.current)!==null&&ar!==void 0&&ar.customizedTrigger)){var ot=zn.target;ot.shadowRoot&&zn.composed&&(ot=zn.composedPath()[0]||ot),sn.current.open&&Fe().filter(function(Ye){return Ye}).every(function(Ye){return!Ye.contains(ot)&&Ye!==ot})&&sn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ln),function(){return window.removeEventListener("mousedown",Ln)}},[])}var qt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Xn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,bn="".concat(qt," ").concat(Xn).split(/[\s\n]+/),un="aria-",nn="data-";function xn(Fe,We){return Fe.indexOf(We)===0}function Pn(Fe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt;We===!1?Wt={aria:!0,data:!0,attr:!0}:We===!0?Wt={aria:!0}:Wt=(0,ke.Z)({},We);var bt={};return Object.keys(Fe).forEach(function(sn){(Wt.aria&&(sn==="role"||xn(sn,un))||Wt.data&&xn(sn,nn)||Wt.attr&&bn.includes(sn))&&(bt[sn]=Fe[sn])}),bt}var De=se(48555),ue=se(14075),ce=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],he=void 0;function fe(Fe,We){var Wt=Fe.prefixCls,bt=Fe.invalidate,sn=Fe.item,Ln=Fe.renderItem,zn=Fe.responsive,ar=Fe.responsiveDisabled,ot=Fe.registerSize,Ye=Fe.itemKey,yt=Fe.className,Qt=Fe.style,_n=Fe.children,mn=Fe.display,ln=Fe.order,sr=Fe.component,ir=sr===void 0?"div":sr,xr=(0,xe.Z)(Fe,ce),er=zn&&!mn;function Tn(Dr){ot(Ye,Dr)}Ie.useEffect(function(){return function(){Tn(null)}},[]);var Er=Ln&&sn!==he?Ln(sn):_n,zr;bt||(zr={opacity:er?0:1,height:er?0:he,overflowY:er?"hidden":he,order:zn?ln:he,pointerEvents:er?"none":he,position:er?"absolute":he});var Br={};er&&(Br["aria-hidden"]=!0);var Cr=Ie.createElement(ir,(0,Re.Z)({className:Pe()(!bt&&Wt,yt),style:(0,ke.Z)((0,ke.Z)({},zr),Qt)},Br,xr,{ref:We}),Er);return zn&&(Cr=Ie.createElement(De.Z,{onResize:function(ui){var ei=ui.offsetWidth;Tn(ei)},disabled:ar},Cr)),Cr}var le=Ie.forwardRef(fe);le.displayName="Item";var Me=le,Ve=se(77527),ft=se(73935),Ht=se(96523);function Zt(Fe){if(typeof MessageChannel=="undefined")(0,Ht.Z)(Fe);else{var We=new MessageChannel;We.port1.onmessage=function(){return Fe()},We.port2.postMessage(void 0)}}function jt(){var Fe=Ie.useRef(null),We=function(bt){Fe.current||(Fe.current=[],Zt(function(){(0,ft.unstable_batchedUpdates)(function(){Fe.current.forEach(function(sn){sn()}),Fe.current=null})})),Fe.current.push(bt)};return We}function $t(Fe,We){var Wt=Ie.useState(We),bt=(0,Le.Z)(Wt,2),sn=bt[0],Ln=bt[1],zn=(0,Ve.Z)(function(ar){Fe(function(){Ln(ar)})});return[sn,zn]}var Je=Ie.createContext(null),Et=["component"],Lt=["className"],Xt=["className"],wt=function(We,Wt){var bt=Ie.useContext(Je);if(!bt){var sn=We.component,Ln=sn===void 0?"div":sn,zn=(0,xe.Z)(We,Et);return Ie.createElement(Ln,(0,Re.Z)({},zn,{ref:Wt}))}var ar=bt.className,ot=(0,xe.Z)(bt,Lt),Ye=We.className,yt=(0,xe.Z)(We,Xt);return Ie.createElement(Je.Provider,{value:null},Ie.createElement(Me,(0,Re.Z)({ref:Wt,className:Pe()(ar,Ye)},ot,yt)))},Nn=Ie.forwardRef(wt);Nn.displayName="RawItem";var et=Nn,It=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],gn="responsive",hn="invalidate";function An(Fe){return"+ ".concat(Fe.length," ...")}function Vn(Fe,We){var Wt=Fe.prefixCls,bt=Wt===void 0?"rc-overflow":Wt,sn=Fe.data,Ln=sn===void 0?[]:sn,zn=Fe.renderItem,ar=Fe.renderRawItem,ot=Fe.itemKey,Ye=Fe.itemWidth,yt=Ye===void 0?10:Ye,Qt=Fe.ssr,_n=Fe.style,mn=Fe.className,ln=Fe.maxCount,sr=Fe.renderRest,ir=Fe.renderRawRest,xr=Fe.suffix,er=Fe.component,Tn=er===void 0?"div":er,Er=Fe.itemComponent,zr=Fe.onVisibleChange,Br=(0,xe.Z)(Fe,It),Cr=Qt==="full",Dr=jt(),ui=$t(Dr,null),ei=(0,Le.Z)(ui,2),ii=ei[0],Ti=ei[1],ea=ii||0,Si=$t(Dr,new Map),zi=(0,Le.Z)(Si,2),ai=zi[0],vi=zi[1],_i=$t(Dr,0),Ki=(0,Le.Z)(_i,2),Ea=Ki[0],Ta=Ki[1],va=$t(Dr,0),ra=(0,Le.Z)(va,2),Yi=ra[0],ki=ra[1],Ma=$t(Dr,0),Ri=(0,Le.Z)(Ma,2),si=Ri[0],Ui=Ri[1],ua=(0,Ie.useState)(null),ta=(0,Le.Z)(ua,2),oa=ta[0],Bi=ta[1],pa=(0,Ie.useState)(null),wa=(0,Le.Z)(pa,2),fa=wa[0],Sa=wa[1],La=Ie.useMemo(function(){return fa===null&&Cr?Number.MAX_SAFE_INTEGER:fa||0},[fa,ii]),Va=(0,Ie.useState)(!1),ha=(0,Le.Z)(Va,2),Ba=ha[0],qa=ha[1],Ya="".concat(bt,"-item"),so=Math.max(Ea,Yi),_a=ln===gn,Aa=Ln.length&&_a,Wi=ln===hn,Xi=Aa||typeof ln=="number"&&Ln.length>ln,da=(0,Ie.useMemo)(function(){var sa=Ln;return Aa?ii===null&&Cr?sa=Ln:sa=Ln.slice(0,Math.min(Ln.length,ea/yt)):typeof ln=="number"&&(sa=Ln.slice(0,ln)),sa},[Ln,yt,ii,ln,Aa]),Ca=(0,Ie.useMemo)(function(){return Aa?Ln.slice(La+1):Ln.slice(da.length)},[Ln,da,Aa,La]),Ka=(0,Ie.useCallback)(function(sa,Yr){var Oi;return typeof ot=="function"?ot(sa):(Oi=ot&&(sa==null?void 0:sa[ot]))!==null&&Oi!==void 0?Oi:Yr},[ot]),io=(0,Ie.useCallback)(zn||function(sa){return sa},[zn]);function ho(sa,Yr,Oi){fa===sa&&(Yr===void 0||Yr===oa)||(Sa(sa),Oi||(qa(sa<Ln.length-1),zr==null||zr(sa)),Yr!==void 0&&Bi(Yr))}function Po(sa,Yr){Ti(Yr.clientWidth)}function No(sa,Yr){vi(function(Oi){var Pi=new Map(Oi);return Yr===null?Pi.delete(sa):Pi.set(sa,Yr),Pi})}function lo(sa,Yr){ki(Yr),Ta(Yi)}function Bo(sa,Yr){Ui(Yr)}function ia(sa){return ai.get(Ka(da[sa],sa))}(0,ue.Z)(function(){if(ea&&typeof so=="number"&&da){var sa=si,Yr=da.length,Oi=Yr-1;if(!Yr){ho(0,null);return}for(var Pi=0;Pi<Yr;Pi+=1){var ji=ia(Pi);if(Cr&&(ji=ji||0),ji===void 0){ho(Pi-1,void 0,!0);break}if(sa+=ji,Oi===0&&sa<=ea||Pi===Oi-1&&sa+ia(Oi)<=ea){ho(Oi,null);break}else if(sa+so>ea){ho(Pi-1,sa-ji-si+Yi);break}}xr&&ia(0)+si>ea&&Bi(null)}},[ea,ai,Yi,si,Ka,da]);var Vi=Ba&&!!Ca.length,Oa={};oa!==null&&Aa&&(Oa={position:"absolute",left:oa,top:0});var Da={prefixCls:Ya,responsive:Aa,component:Er,invalidate:Wi},co=ar?function(sa,Yr){var Oi=Ka(sa,Yr);return Ie.createElement(Je.Provider,{key:Oi,value:(0,ke.Z)((0,ke.Z)({},Da),{},{order:Yr,item:sa,itemKey:Oi,registerSize:No,display:Yr<=La})},ar(sa,Yr))}:function(sa,Yr){var Oi=Ka(sa,Yr);return Ie.createElement(Me,(0,Re.Z)({},Da,{order:Yr,key:Oi,item:sa,renderItem:io,itemKey:Oi,registerSize:No,display:Yr<=La}))},ao,hs={order:Vi?La:Number.MAX_SAFE_INTEGER,className:"".concat(Ya,"-rest"),registerSize:lo,display:Vi};if(ir)ir&&(ao=Ie.createElement(Je.Provider,{value:(0,ke.Z)((0,ke.Z)({},Da),hs)},ir(Ca)));else{var $o=sr||An;ao=Ie.createElement(Me,(0,Re.Z)({},Da,hs),typeof $o=="function"?$o(Ca):$o)}var ps=Ie.createElement(Tn,(0,Re.Z)({className:Pe()(!Wi&&bt,mn),style:_n,ref:We},Br),da.map(co),Xi?ao:null,xr&&Ie.createElement(Me,(0,Re.Z)({},Da,{responsive:_a,responsiveDisabled:!Aa,order:La,className:"".concat(Ya,"-suffix"),registerSize:Bo,display:!0,style:Oa}),xr));return _a&&(ps=Ie.createElement(De.Z,{onResize:Po,disabled:!Aa},ps)),ps}var mr=Ie.forwardRef(Vn);mr.displayName="Overflow",mr.Item=et,mr.RESPONSIVE=gn,mr.INVALIDATE=hn;var ur=mr,dr=ur,Fr=function(We,Wt){var bt,sn,Ln=We.prefixCls,zn=We.id,ar=We.inputElement,ot=We.disabled,Ye=We.tabIndex,yt=We.autoFocus,Qt=We.autoComplete,_n=We.editable,mn=We.activeDescendantId,ln=We.value,sr=We.maxLength,ir=We.onKeyDown,xr=We.onMouseDown,er=We.onChange,Tn=We.onPaste,Er=We.onCompositionStart,zr=We.onCompositionEnd,Br=We.open,Cr=We.attrs,Dr=ar||Ie.createElement("input",null),ui=Dr,ei=ui.ref,ii=ui.props,Ti=ii.onKeyDown,ea=ii.onChange,Si=ii.onMouseDown,zi=ii.onCompositionStart,ai=ii.onCompositionEnd,vi=ii.style;return"maxLength"in Dr.props,Dr=Ie.cloneElement(Dr,(0,ke.Z)((0,ke.Z)((0,ke.Z)({type:"search"},ii),{},{id:zn,ref:tn(Wt,ei),disabled:ot,tabIndex:Ye,autoComplete:Qt||"off",autoFocus:yt,className:Pe()("".concat(Ln,"-selection-search-input"),(bt=Dr)===null||bt===void 0||(sn=bt.props)===null||sn===void 0?void 0:sn.className),role:"combobox","aria-label":"Search","aria-expanded":Br||!1,"aria-haspopup":"listbox","aria-owns":"".concat(zn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(zn,"_list"),"aria-activedescendant":Br?mn:void 0},Cr),{},{value:_n?ln:"",maxLength:sr,readOnly:!_n,unselectable:_n?null:"on",style:(0,ke.Z)((0,ke.Z)({},vi),{},{opacity:_n?null:0}),onKeyDown:function(Ki){ir(Ki),Ti&&Ti(Ki)},onMouseDown:function(Ki){xr(Ki),Si&&Si(Ki)},onChange:function(Ki){er(Ki),ea&&ea(Ki)},onCompositionStart:function(Ki){Er(Ki),zi&&zi(Ki)},onCompositionEnd:function(Ki){zr(Ki),ai&&ai(Ki)},onPaste:Tn})),Dr},nr=Ie.forwardRef(Fr);nr.displayName="Input";var _r=nr;function oi(Fe){return Array.isArray(Fe)?Fe:Fe!==void 0?[Fe]:[]}var Wr=typeof window!="undefined"&&window.document&&window.document.documentElement,xi=Wr;function ti(Fe){return Fe!=null}function Ct(Fe){return!Fe&&Fe!==0}function wn(Fe){return["string","number"].includes((0,me.Z)(Fe))}function Rn(Fe){var We=void 0;return Fe&&(wn(Fe.title)?We=Fe.title.toString():wn(Fe.label)&&(We=Fe.label.toString())),We}function an(Fe,We){xi?Ie.useLayoutEffect(Fe,We):Ie.useEffect(Fe,We)}function vr(Fe){var We;return(We=Fe.key)!==null&&We!==void 0?We:Fe.value}var lr=function(We){We.preventDefault(),We.stopPropagation()},Gn=function(We){var Wt=We.id,bt=We.prefixCls,sn=We.values,Ln=We.open,zn=We.searchValue,ar=We.autoClearSearchValue,ot=We.inputRef,Ye=We.placeholder,yt=We.disabled,Qt=We.mode,_n=We.showSearch,mn=We.autoFocus,ln=We.autoComplete,sr=We.activeDescendantId,ir=We.tabIndex,xr=We.removeIcon,er=We.maxTagCount,Tn=We.maxTagTextLength,Er=We.maxTagPlaceholder,zr=Er===void 0?function(Bi){return"+ ".concat(Bi.length," ...")}:Er,Br=We.tagRender,Cr=We.onToggleOpen,Dr=We.onRemove,ui=We.onInputChange,ei=We.onInputPaste,ii=We.onInputKeyDown,Ti=We.onInputMouseDown,ea=We.onInputCompositionStart,Si=We.onInputCompositionEnd,zi=Ie.useRef(null),ai=(0,Ie.useState)(0),vi=(0,Le.Z)(ai,2),_i=vi[0],Ki=vi[1],Ea=(0,Ie.useState)(!1),Ta=(0,Le.Z)(Ea,2),va=Ta[0],ra=Ta[1],Yi="".concat(bt,"-selection"),ki=Ln||Qt==="multiple"&&ar===!1||Qt==="tags"?zn:"",Ma=Qt==="tags"||Qt==="multiple"&&ar===!1||_n&&(Ln||va);an(function(){Ki(zi.current.scrollWidth)},[ki]);function Ri(Bi,pa,wa,fa,Sa){return Ie.createElement("span",{className:Pe()("".concat(Yi,"-item"),(0,ve.Z)({},"".concat(Yi,"-item-disabled"),wa)),title:Rn(Bi)},Ie.createElement("span",{className:"".concat(Yi,"-item-content")},pa),fa&&Ie.createElement(Qe,{className:"".concat(Yi,"-item-remove"),onMouseDown:lr,onClick:Sa,customizeIcon:xr},"\xD7"))}function si(Bi,pa,wa,fa,Sa){var La=function(ha){lr(ha),Cr(!Ln)};return Ie.createElement("span",{onMouseDown:La},Br({label:pa,value:Bi,disabled:wa,closable:fa,onClose:Sa}))}function Ui(Bi){var pa=Bi.disabled,wa=Bi.label,fa=Bi.value,Sa=!yt&&!pa,La=wa;if(typeof Tn=="number"&&(typeof wa=="string"||typeof wa=="number")){var Va=String(La);Va.length>Tn&&(La="".concat(Va.slice(0,Tn),"..."))}var ha=function(qa){qa&&qa.stopPropagation(),Dr(Bi)};return typeof Br=="function"?si(fa,La,pa,Sa,ha):Ri(Bi,La,pa,Sa,ha)}function ua(Bi){var pa=typeof zr=="function"?zr(Bi):zr;return Ri({title:pa},pa,!1)}var ta=Ie.createElement("div",{className:"".concat(Yi,"-search"),style:{width:_i},onFocus:function(){ra(!0)},onBlur:function(){ra(!1)}},Ie.createElement(_r,{ref:ot,open:Ln,prefixCls:bt,id:Wt,inputElement:null,disabled:yt,autoFocus:mn,autoComplete:ln,editable:Ma,activeDescendantId:sr,value:ki,onKeyDown:ii,onMouseDown:Ti,onChange:ui,onPaste:ei,onCompositionStart:ea,onCompositionEnd:Si,tabIndex:ir,attrs:Pn(We,!0)}),Ie.createElement("span",{ref:zi,className:"".concat(Yi,"-search-mirror"),"aria-hidden":!0},ki,"\xA0")),oa=Ie.createElement(dr,{prefixCls:"".concat(Yi,"-overflow"),data:sn,renderItem:Ui,renderRest:ua,suffix:ta,itemKey:vr,maxCount:er});return Ie.createElement(Ie.Fragment,null,oa,!sn.length&&!ki&&Ie.createElement("span",{className:"".concat(Yi,"-placeholder")},Ye))},jn=Gn,nt=function(We){var Wt=We.inputElement,bt=We.prefixCls,sn=We.id,Ln=We.inputRef,zn=We.disabled,ar=We.autoFocus,ot=We.autoComplete,Ye=We.activeDescendantId,yt=We.mode,Qt=We.open,_n=We.values,mn=We.placeholder,ln=We.tabIndex,sr=We.showSearch,ir=We.searchValue,xr=We.activeValue,er=We.maxLength,Tn=We.onInputKeyDown,Er=We.onInputMouseDown,zr=We.onInputChange,Br=We.onInputPaste,Cr=We.onInputCompositionStart,Dr=We.onInputCompositionEnd,ui=We.title,ei=Ie.useState(!1),ii=(0,Le.Z)(ei,2),Ti=ii[0],ea=ii[1],Si=yt==="combobox",zi=Si||sr,ai=_n[0],vi=ir||"";Si&&xr&&!Ti&&(vi=xr),Ie.useEffect(function(){Si&&ea(!1)},[Si,xr]);var _i=yt!=="combobox"&&!Qt&&!sr?!1:!!vi,Ki=ui===void 0?Rn(ai):ui,Ea=function(){if(ai)return null;var va=_i?{visibility:"hidden"}:void 0;return Ie.createElement("span",{className:"".concat(bt,"-selection-placeholder"),style:va},mn)};return Ie.createElement(Ie.Fragment,null,Ie.createElement("span",{className:"".concat(bt,"-selection-search")},Ie.createElement(_r,{ref:Ln,prefixCls:bt,id:sn,open:Qt,inputElement:Wt,disabled:zn,autoFocus:ar,autoComplete:ot,editable:zi,activeDescendantId:Ye,value:vi,onKeyDown:Tn,onMouseDown:Er,onChange:function(va){ea(!0),zr(va)},onPaste:Br,onCompositionStart:Cr,onCompositionEnd:Dr,tabIndex:ln,attrs:Pn(We,!0),maxLength:Si?er:void 0})),!Si&&ai?Ie.createElement("span",{className:"".concat(bt,"-selection-item"),title:Ki,style:_i?{visibility:"hidden"}:void 0},ai.label):null,Ea())},mt=nt;function Bt(Fe){return![tt.ESC,tt.SHIFT,tt.BACKSPACE,tt.TAB,tt.WIN_KEY,tt.ALT,tt.META,tt.WIN_KEY_RIGHT,tt.CTRL,tt.SEMICOLON,tt.EQUALS,tt.CAPS_LOCK,tt.CONTEXT_MENU,tt.F1,tt.F2,tt.F3,tt.F4,tt.F5,tt.F6,tt.F7,tt.F8,tt.F9,tt.F10,tt.F11,tt.F12].includes(Fe)}var rn=function(We,Wt){var bt=(0,Ie.useRef)(null),sn=(0,Ie.useRef)(!1),Ln=We.prefixCls,zn=We.open,ar=We.mode,ot=We.showSearch,Ye=We.tokenWithEnter,yt=We.autoClearSearchValue,Qt=We.onSearch,_n=We.onSearchSubmit,mn=We.onToggleOpen,ln=We.onInputKeyDown,sr=We.domRef;Ie.useImperativeHandle(Wt,function(){return{focus:function(){bt.current.focus()},blur:function(){bt.current.blur()}}});var ir=$e(0),xr=(0,Le.Z)(ir,2),er=xr[0],Tn=xr[1],Er=function(vi){var _i=vi.which;(_i===tt.UP||_i===tt.DOWN)&&vi.preventDefault(),ln&&ln(vi),_i===tt.ENTER&&ar==="tags"&&!sn.current&&!zn&&(_n==null||_n(vi.target.value)),Bt(_i)&&mn(!0)},zr=function(){Tn(!0)},Br=(0,Ie.useRef)(null),Cr=function(vi){Qt(vi,!0,sn.current)!==!1&&mn(!0)},Dr=function(){sn.current=!0},ui=function(vi){sn.current=!1,ar!=="combobox"&&Cr(vi.target.value)},ei=function(vi){var _i=vi.target.value;if(Ye&&Br.current&&/[\r\n]/.test(Br.current)){var Ki=Br.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_i=_i.replace(Ki,Br.current)}Br.current=null,Cr(_i)},ii=function(vi){var _i=vi.clipboardData,Ki=_i.getData("text");Br.current=Ki},Ti=function(vi){var _i=vi.target;if(_i!==bt.current){var Ki=document.body.style.msTouchAction!==void 0;Ki?setTimeout(function(){bt.current.focus()}):bt.current.focus()}},ea=function(vi){var _i=er();vi.target!==bt.current&&!_i&&ar!=="combobox"&&vi.preventDefault(),(ar!=="combobox"&&(!ot||!_i)||!zn)&&(zn&&yt!==!1&&Qt("",!0,!1),mn())},Si={inputRef:bt,onInputKeyDown:Er,onInputMouseDown:zr,onInputChange:ei,onInputPaste:ii,onInputCompositionStart:Dr,onInputCompositionEnd:ui},zi=ar==="multiple"||ar==="tags"?Ie.createElement(jn,(0,Re.Z)({},We,Si)):Ie.createElement(mt,(0,Re.Z)({},We,Si));return Ie.createElement("div",{ref:sr,className:"".concat(Ln,"-selector"),onClick:Ti,onMouseDown:ea},zi)},Ze=Ie.forwardRef(rn);Ze.displayName="Selector";var St=Ze,Vt=se(62709),Nt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],cn=function(We){var Wt=We===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"}}},on=function(We,Wt){var bt=We.prefixCls,sn=We.disabled,Ln=We.visible,zn=We.children,ar=We.popupElement,ot=We.animation,Ye=We.transitionName,yt=We.dropdownStyle,Qt=We.dropdownClassName,_n=We.direction,mn=_n===void 0?"ltr":_n,ln=We.placement,sr=We.builtinPlacements,ir=We.dropdownMatchSelectWidth,xr=We.dropdownRender,er=We.dropdownAlign,Tn=We.getPopupContainer,Er=We.empty,zr=We.getTriggerDOMNode,Br=We.onPopupVisibleChange,Cr=We.onPopupMouseEnter,Dr=(0,xe.Z)(We,Nt),ui="".concat(bt,"-dropdown"),ei=ar;xr&&(ei=xr(ar));var ii=Ie.useMemo(function(){return sr||cn(ir)},[sr,ir]),Ti=ot?"".concat(ui,"-").concat(ot):Ye,ea=typeof ir=="number",Si=Ie.useMemo(function(){return ea?null:ir===!1?"minWidth":"width"},[ir,ea]),zi=yt;ea&&(zi=(0,ke.Z)((0,ke.Z)({},zi),{},{width:ir}));var ai=Ie.useRef(null);return Ie.useImperativeHandle(Wt,function(){return{getPopupElement:function(){return ai.current}}}),Ie.createElement(Vt.Z,(0,Re.Z)({},Dr,{showAction:Br?["click"]:[],hideAction:Br?["click"]:[],popupPlacement:ln||(mn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ii,prefixCls:ui,popupTransitionName:Ti,popup:Ie.createElement("div",{ref:ai,onMouseEnter:Cr},ei),stretch:Si,popupAlign:er,popupVisible:Ln,getPopupContainer:Tn,popupClassName:Pe()(Qt,(0,ve.Z)({},"".concat(ui,"-empty"),Er)),popupStyle:zi,getTriggerDOMNode:zr,onPopupVisibleChange:Br}),zn)},Kn=Ie.forwardRef(on);Kn.displayName="SelectTrigger";var Hr=Kn,hr=se(84506);function or(Fe,We){var Wt=Fe.key,bt;return"value"in Fe&&(bt=Fe.value),Wt!=null?Wt:bt!==void 0?bt:"rc-index-key-".concat(We)}function Ar(Fe,We){var Wt=Fe||{},bt=Wt.label,sn=Wt.value,Ln=Wt.options,zn=Wt.groupLabel,ar=bt||(We?"children":"label");return{label:ar,value:sn||"value",options:Ln||"options",groupLabel:zn||ar}}function Lr(Fe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wt=We.fieldNames,bt=We.childrenAsData,sn=[],Ln=Ar(Wt,!1),zn=Ln.label,ar=Ln.value,ot=Ln.options,Ye=Ln.groupLabel;function yt(Qt,_n){Qt.forEach(function(mn){if(_n||!(ot in mn)){var ln=mn[ar];sn.push({key:or(mn,sn.length),groupOption:_n,data:mn,label:mn[zn],value:ln})}else{var sr=mn[Ye];sr===void 0&&bt&&(sr=mn.label),sn.push({key:or(mn,sn.length),group:!0,data:mn,label:sr}),yt(mn[ot],!0)}})}return yt(Fe,!1),sn}function kt(Fe){var We=(0,ke.Z)({},Fe);return"props"in We||Object.defineProperty(We,"props",{get:function(){return Mt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),We}}),We}function gt(Fe,We){if(!We||!We.length)return null;var Wt=!1;function bt(Ln,zn){var ar=(0,hr.Z)(zn),ot=ar[0],Ye=ar.slice(1);if(!ot)return[Ln];var yt=Ln.split(ot);return Wt=Wt||yt.length>1,yt.reduce(function(Qt,_n){return[].concat((0,qe.Z)(Qt),(0,qe.Z)(bt(_n,Ye)))},[]).filter(function(Qt){return Qt})}var sn=bt(Fe,We);return Wt?sn:null}var Dt=["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"],En=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function qn(Fe){return Fe==="tags"||Fe==="multiple"}var Cn=Ie.forwardRef(function(Fe,We){var Wt,bt,sn=Fe.id,Ln=Fe.prefixCls,zn=Fe.className,ar=Fe.showSearch,ot=Fe.tagRender,Ye=Fe.direction,yt=Fe.omitDomProps,Qt=Fe.displayValues,_n=Fe.onDisplayValuesChange,mn=Fe.emptyOptions,ln=Fe.notFoundContent,sr=ln===void 0?"Not Found":ln,ir=Fe.onClear,xr=Fe.mode,er=Fe.disabled,Tn=Fe.loading,Er=Fe.getInputElement,zr=Fe.getRawInputElement,Br=Fe.open,Cr=Fe.defaultOpen,Dr=Fe.onDropdownVisibleChange,ui=Fe.activeValue,ei=Fe.onActiveValueChange,ii=Fe.activeDescendantId,Ti=Fe.searchValue,ea=Fe.autoClearSearchValue,Si=Fe.onSearch,zi=Fe.onSearchSplit,ai=Fe.tokenSeparators,vi=Fe.allowClear,_i=Fe.suffixIcon,Ki=Fe.clearIcon,Ea=Fe.OptionList,Ta=Fe.animation,va=Fe.transitionName,ra=Fe.dropdownStyle,Yi=Fe.dropdownClassName,ki=Fe.dropdownMatchSelectWidth,Ma=Fe.dropdownRender,Ri=Fe.dropdownAlign,si=Fe.placement,Ui=Fe.builtinPlacements,ua=Fe.getPopupContainer,ta=Fe.showAction,oa=ta===void 0?[]:ta,Bi=Fe.onFocus,pa=Fe.onBlur,wa=Fe.onKeyUp,fa=Fe.onKeyDown,Sa=Fe.onMouseDown,La=(0,xe.Z)(Fe,Dt),Va=qn(xr),ha=(ar!==void 0?ar:Va)||xr==="combobox",Ba=(0,ke.Z)({},La);En.forEach(function(Na){delete Ba[Na]}),yt==null||yt.forEach(function(Na){delete Ba[Na]});var qa=Ie.useState(!1),Ya=(0,Le.Z)(qa,2),so=Ya[0],_a=Ya[1];Ie.useEffect(function(){_a(ht())},[]);var Aa=Ie.useRef(null),Wi=Ie.useRef(null),Xi=Ie.useRef(null),da=Ie.useRef(null),Ca=Ie.useRef(null),Ka=_t(),io=(0,Le.Z)(Ka,3),ho=io[0],Po=io[1],No=io[2];Ie.useImperativeHandle(We,function(){var Na,ma;return{focus:(Na=da.current)===null||Na===void 0?void 0:Na.focus,blur:(ma=da.current)===null||ma===void 0?void 0:ma.blur,scrollTo:function(es){var ga;return(ga=Ca.current)===null||ga===void 0?void 0:ga.scrollTo(es)}}});var lo=Ie.useMemo(function(){var Na;if(xr!=="combobox")return Ti;var ma=(Na=Qt[0])===null||Na===void 0?void 0:Na.value;return typeof ma=="string"||typeof ma=="number"?String(ma):""},[Ti,xr,Qt]),Bo=xr==="combobox"&&typeof Er=="function"&&Er()||null,ia=typeof zr=="function"&&zr(),Vi=Hn(Wi,ia==null||(Wt=ia.props)===null||Wt===void 0?void 0:Wt.ref),Oa=Ie.useState(!1),Da=(0,Le.Z)(Oa,2),co=Da[0],ao=Da[1];pt(function(){ao(!0)},[]);var hs=at(!1,{defaultValue:Cr,value:Br}),$o=(0,Le.Z)(hs,2),ps=$o[0],sa=$o[1],Yr=co?ps:!1,Oi=!sr&&mn;(er||Oi&&Yr&&xr==="combobox")&&(Yr=!1);var Pi=Oi?!1:Yr,ji=Ie.useCallback(function(Na){var ma=Na!==void 0?Na:!Yr;er||(sa(ma),Yr!==ma&&(Dr==null||Dr(ma)))},[er,Yr,sa,Dr]),Wa=Ie.useMemo(function(){return(ai||[]).some(function(Na){return[`
`,`\r
`].includes(Na)})},[ai]),Ga=function(ma,Wo,es){var ga=!0,Ha=ma;ei==null||ei(null);var Fa=es?null:gt(ma,ai);return xr!=="combobox"&&Fa&&(Ha="",zi==null||zi(Fa),ji(!1),ga=!1),Si&&lo!==Ha&&Si(Ha,{source:Wo?"typing":"effect"}),ga},_o=function(ma){!ma||!ma.trim()||Si(ma,{source:"submit"})};Ie.useEffect(function(){!Yr&&!Va&&xr!=="combobox"&&Ga("",!1,!1)},[Yr]),Ie.useEffect(function(){ps&&er&&sa(!1),er&&Po(!1)},[er]);var Zo=$e(),ls=(0,Le.Z)(Zo,2),ya=ls[0],Ro=ls[1],cs=function(ma){var Wo=ya(),es=ma.which;if(es===tt.ENTER&&(xr!=="combobox"&&ma.preventDefault(),Yr||ji(!0)),Ro(!!lo),es===tt.BACKSPACE&&!Wo&&Va&&!lo&&Qt.length){for(var ga=(0,qe.Z)(Qt),Ha=null,Fa=ga.length-1;Fa>=0;Fa-=1){var po=ga[Fa];if(!po.disabled){ga.splice(Fa,1),Ha=po;break}}Ha&&_n(ga,{type:"remove",values:[Ha]})}for(var is=arguments.length,Ws=new Array(is>1?is-1:0),gs=1;gs<is;gs++)Ws[gs-1]=arguments[gs];if(Yr&&Ca.current){var ql;(ql=Ca.current).onKeyDown.apply(ql,[ma].concat(Ws))}fa==null||fa.apply(void 0,[ma].concat(Ws))},ul=function(ma){for(var Wo=arguments.length,es=new Array(Wo>1?Wo-1:0),ga=1;ga<Wo;ga++)es[ga-1]=arguments[ga];if(Yr&&Ca.current){var Ha;(Ha=Ca.current).onKeyUp.apply(Ha,[ma].concat(es))}wa==null||wa.apply(void 0,[ma].concat(es))},Bs=function(ma){var Wo=Qt.filter(function(es){return es!==ma});_n(Wo,{type:"remove",values:[ma]})},ms=Ie.useRef(!1),Ho=function(){Po(!0),er||(Bi&&!ms.current&&Bi.apply(void 0,arguments),oa.includes("focus")&&ji(!0)),ms.current=!0},Ds=function(){Po(!1,function(){ms.current=!1,ji(!1)}),!er&&(lo&&(xr==="tags"?Si(lo,{source:"submit"}):xr==="multiple"&&Si("",{source:"blur"})),pa&&pa.apply(void 0,arguments))},Is=[];Ie.useEffect(function(){return function(){Is.forEach(function(Na){return clearTimeout(Na)}),Is.splice(0,Is.length)}},[]);var Js=function(ma){var Wo,es=ma.target,ga=(Wo=Xi.current)===null||Wo===void 0?void 0:Wo.getPopupElement();if(ga&&ga.contains(es)){var Ha=setTimeout(function(){var Ws=Is.indexOf(Ha);if(Ws!==-1&&Is.splice(Ws,1),No(),!so&&!ga.contains(document.activeElement)){var gs;(gs=da.current)===null||gs===void 0||gs.focus()}});Is.push(Ha)}for(var Fa=arguments.length,po=new Array(Fa>1?Fa-1:0),is=1;is<Fa;is++)po[is-1]=arguments[is];Sa==null||Sa.apply(void 0,[ma].concat(po))},oo=Ie.useState({}),Pa=(0,Le.Z)(oo,2),Xa=Pa[1];function go(){Xa({})}var yo;ia&&(yo=function(ma){ji(ma)}),dt(function(){var Na;return[Aa.current,(Na=Xi.current)===null||Na===void 0?void 0:Na.getPopupElement()]},Pi,ji,!!ia);var Ko=Ie.useMemo(function(){return(0,ke.Z)((0,ke.Z)({},Fe),{},{notFoundContent:sr,open:Yr,triggerOpen:Pi,id:sn,showSearch:ha,multiple:Va,toggleOpen:ji})},[Fe,sr,Pi,Yr,sn,ha,Va,ji]),wo=!!_i||Tn,xs;wo&&(xs=Ie.createElement(Qe,{className:Pe()("".concat(Ln,"-arrow"),(0,ve.Z)({},"".concat(Ln,"-arrow-loading"),Tn)),customizeIcon:_i,customizeIconProps:{loading:Tn,searchValue:lo,open:Yr,focused:ho,showSearch:ha}}));var Xl=function(){var ma;ir==null||ir(),(ma=da.current)===null||ma===void 0||ma.focus(),_n([],{type:"clear",values:Qt}),Ga("",!1,!1)},Ql=we(Ln,Xl,Qt,vi,Ki,er,lo,xr),vc=Ql.allowClear,Xc=Ql.clearIcon,Ks=Ie.createElement(Ea,{ref:Ca}),Ts=Pe()(Ln,zn,(bt={},(0,ve.Z)(bt,"".concat(Ln,"-focused"),ho),(0,ve.Z)(bt,"".concat(Ln,"-multiple"),Va),(0,ve.Z)(bt,"".concat(Ln,"-single"),!Va),(0,ve.Z)(bt,"".concat(Ln,"-allow-clear"),vi),(0,ve.Z)(bt,"".concat(Ln,"-show-arrow"),wo),(0,ve.Z)(bt,"".concat(Ln,"-disabled"),er),(0,ve.Z)(bt,"".concat(Ln,"-loading"),Tn),(0,ve.Z)(bt,"".concat(Ln,"-open"),Yr),(0,ve.Z)(bt,"".concat(Ln,"-customize-input"),Bo),(0,ve.Z)(bt,"".concat(Ln,"-show-search"),ha),bt)),yc=Ie.createElement(Hr,{ref:Xi,disabled:er,prefixCls:Ln,visible:Pi,popupElement:Ks,animation:Ta,transitionName:va,dropdownStyle:ra,dropdownClassName:Yi,direction:Ye,dropdownMatchSelectWidth:ki,dropdownRender:Ma,dropdownAlign:Ri,placement:si,builtinPlacements:Ui,getPopupContainer:ua,empty:mn,getTriggerDOMNode:function(){return Wi.current},onPopupVisibleChange:yo,onPopupMouseEnter:go},ia?Ie.cloneElement(ia,{ref:Vi}):Ie.createElement(St,(0,Re.Z)({},Fe,{domRef:Wi,prefixCls:Ln,inputElement:Bo,ref:da,id:sn,showSearch:ha,autoClearSearchValue:ea,mode:xr,activeDescendantId:ii,tagRender:ot,values:Qt,open:Yr,onToggleOpen:ji,activeValue:ui,searchValue:lo,onSearch:Ga,onSearchSubmit:_o,onRemove:Bs,tokenWithEnter:Wa}))),Jl;return ia?Jl=yc:Jl=Ie.createElement("div",(0,Re.Z)({className:Ts},Ba,{ref:Aa,onMouseDown:Js,onKeyDown:cs,onKeyUp:ul,onFocus:Ho,onBlur:Ds}),ho&&!Yr&&Ie.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Qt.map(function(Na){var ma=Na.label,Wo=Na.value;return["number","string"].includes((0,me.Z)(ma))?ma:Wo}).join(", "))),yc,xs,vc&&Xc),Ie.createElement(At.Provider,{value:Ko},Jl)}),Dn=Cn,In=function(Fe,We){var Wt=Ie.useRef({values:new Map,options:new Map}),bt=Ie.useMemo(function(){var Ln=Wt.current,zn=Ln.values,ar=Ln.options,ot=Fe.map(function(Qt){if(Qt.label===void 0){var _n;return(0,ke.Z)((0,ke.Z)({},Qt),{},{label:(_n=zn.get(Qt.value))===null||_n===void 0?void 0:_n.label})}return Qt}),Ye=new Map,yt=new Map;return ot.forEach(function(Qt){Ye.set(Qt.value,Qt),yt.set(Qt.value,We.get(Qt.value)||ar.get(Qt.value))}),Wt.current.values=Ye,Wt.current.options=yt,ot},[Fe,We]),sn=Ie.useCallback(function(Ln){return We.get(Ln)||Wt.current.options.get(Ln)},[We]);return[bt,sn]};function Un(Fe,We){return oi(Fe).join("").toUpperCase().includes(We)}var kr=function(Fe,We,Wt,bt,sn){return Ie.useMemo(function(){if(!Wt||bt===!1)return Fe;var Ln=We.options,zn=We.label,ar=We.value,ot=[],Ye=typeof bt=="function",yt=Wt.toUpperCase(),Qt=Ye?bt:function(mn,ln){return sn?Un(ln[sn],yt):ln[Ln]?Un(ln[zn!=="children"?zn:"label"],yt):Un(ln[ar],yt)},_n=Ye?function(mn){return kt(mn)}:function(mn){return mn};return Fe.forEach(function(mn){if(mn[Ln]){var ln=Qt(Wt,_n(mn));if(ln)ot.push(mn);else{var sr=mn[Ln].filter(function(ir){return Qt(Wt,_n(ir))});sr.length&&ot.push((0,ke.Z)((0,ke.Z)({},mn),{},(0,ve.Z)({},Ln,sr)))}return}Qt(Wt,_n(mn))&&ot.push(mn)}),ot},[Fe,bt,sn,Wt,We])},pn=0,di=Ne();function Qr(){var Fe;return di?(Fe=pn,pn+=1):Fe="TEST_OR_SSR",Fe}function Fi(Fe){var We=Ie.useState(),Wt=(0,Le.Z)(We,2),bt=Wt[0],sn=Wt[1];return Ie.useEffect(function(){sn("rc_select_".concat(Qr()))},[]),Fe||bt}function Ni(Fe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wt=[];return Ie.Children.forEach(Fe,function(bt){bt==null&&!We.keepEmpty||(Array.isArray(bt)?Wt=Wt.concat(Ni(bt)):(0,Jt.isFragment)(bt)&&bt.props?Wt=Wt.concat(Ni(bt.props.children,We)):Wt.push(bt))}),Wt}var Ci=["children","value"],Qi=["children"];function Ei(Fe){var We=Fe,Wt=We.key,bt=We.props,sn=bt.children,Ln=bt.value,zn=(0,xe.Z)(bt,Ci);return(0,ke.Z)({key:Wt,value:Ln!==void 0?Ln:Wt,children:sn},zn)}function pi(Fe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ni(Fe).map(function(Wt,bt){if(!Ie.isValidElement(Wt)||!Wt.type)return null;var sn=Wt,Ln=sn.type.isSelectOptGroup,zn=sn.key,ar=sn.props,ot=ar.children,Ye=(0,xe.Z)(ar,Qi);return We||!Ln?Ei(Wt):(0,ke.Z)((0,ke.Z)({key:"__RC_SELECT_GRP__".concat(zn===null?bt:zn,"__"),label:zn},Ye),{},{options:pi(ot)})}).filter(function(Wt){return Wt})}function Hi(Fe,We,Wt,bt,sn){return Ie.useMemo(function(){var Ln=Fe,zn=!Fe;zn&&(Ln=pi(We));var ar=new Map,ot=new Map,Ye=function(_n,mn,ln){ln&&typeof ln=="string"&&_n.set(mn[ln],mn)};function yt(Qt){for(var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn=0;mn<Qt.length;mn+=1){var ln=Qt[mn];!ln[Wt.options]||_n?(ar.set(ln[Wt.value],ln),Ye(ot,ln,Wt.label),Ye(ot,ln,bt),Ye(ot,ln,sn)):yt(ln[Wt.options],!0)}}return yt(Ln),{options:Ln,valueOptions:ar,labelOptions:ot}},[Fe,We,Wt,bt,sn])}function $i(Fe){var We=Ie.useRef();We.current=Fe;var Wt=Ie.useCallback(function(){return We.current.apply(We,arguments)},[]);return Wt}var ci=function(){return null};ci.isSelectOptGroup=!0;var Mi=ci,Ji=function(){return null};Ji.isSelectOption=!0;var ca=Ji;function na(Fe,We){var Wt=(0,ke.Z)({},Fe);return Array.isArray(We)&&We.forEach(function(bt){delete Wt[bt]}),Wt}var hi=se(73299),zt=Ie.createContext(null),Tt=zt;function fn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Bn=["disabled","title","children","style","className"];function Qn(Fe){return typeof Fe=="string"||typeof Fe=="number"}var Or=function(We,Wt){var bt=Mn(),sn=bt.prefixCls,Ln=bt.id,zn=bt.open,ar=bt.multiple,ot=bt.mode,Ye=bt.searchValue,yt=bt.toggleOpen,Qt=bt.notFoundContent,_n=bt.onPopupScroll,mn=Ie.useContext(Tt),ln=mn.flattenOptions,sr=mn.onActiveValue,ir=mn.defaultActiveFirstOption,xr=mn.onSelect,er=mn.menuItemSelectedIcon,Tn=mn.rawValues,Er=mn.fieldNames,zr=mn.virtual,Br=mn.direction,Cr=mn.listHeight,Dr=mn.listItemHeight,ui="".concat(sn,"-item"),ei=Rt(function(){return ln},[zn,ln],function(Ri,si){return si[0]&&Ri[1]!==si[1]}),ii=Ie.useRef(null),Ti=function(si){si.preventDefault()},ea=function(si){ii.current&&ii.current.scrollTo(typeof si=="number"?{index:si}:si)},Si=function(si){for(var Ui=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ua=ei.length,ta=0;ta<ua;ta+=1){var oa=(si+ta*Ui+ua)%ua,Bi=ei[oa],pa=Bi.group,wa=Bi.data;if(!pa&&!wa.disabled)return oa}return-1},zi=Ie.useState(function(){return Si(0)}),ai=(0,Le.Z)(zi,2),vi=ai[0],_i=ai[1],Ki=function(si){var Ui=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_i(si);var ua={source:Ui?"keyboard":"mouse"},ta=ei[si];if(!ta){sr(null,-1,ua);return}sr(ta.value,si,ua)};(0,Ie.useEffect)(function(){Ki(ir!==!1?Si(0):-1)},[ei.length,Ye]);var Ea=Ie.useCallback(function(Ri){return Tn.has(Ri)&&ot!=="combobox"},[ot,(0,qe.Z)(Tn).toString(),Tn.size]);(0,Ie.useEffect)(function(){var Ri=setTimeout(function(){if(!ar&&zn&&Tn.size===1){var Ui=Array.from(Tn)[0],ua=ei.findIndex(function(ta){var oa=ta.data;return oa.value===Ui});ua!==-1&&(Ki(ua),ea(ua))}});if(zn){var si;(si=ii.current)===null||si===void 0||si.scrollTo(void 0)}return function(){return clearTimeout(Ri)}},[zn,Ye,ln.length]);var Ta=function(si){si!==void 0&&xr(si,{selected:!Tn.has(si)}),ar||yt(!1)};if(Ie.useImperativeHandle(Wt,function(){return{onKeyDown:function(si){var Ui=si.which,ua=si.ctrlKey;switch(Ui){case tt.N:case tt.P:case tt.UP:case tt.DOWN:{var ta=0;if(Ui===tt.UP?ta=-1:Ui===tt.DOWN?ta=1:fn()&&ua&&(Ui===tt.N?ta=1:Ui===tt.P&&(ta=-1)),ta!==0){var oa=Si(vi+ta,ta);ea(oa),Ki(oa,!0)}break}case tt.ENTER:{var Bi=ei[vi];Bi&&!Bi.data.disabled?Ta(Bi.value):Ta(void 0),zn&&si.preventDefault();break}case tt.ESC:yt(!1),zn&&si.stopPropagation()}},onKeyUp:function(){},scrollTo:function(si){ea(si)}}}),ei.length===0)return Ie.createElement("div",{role:"listbox",id:"".concat(Ln,"_list"),className:"".concat(ui,"-empty"),onMouseDown:Ti},Qt);var va=Object.keys(Er).map(function(Ri){return Er[Ri]}),ra=function(si){return si.label};function Yi(Ri,si){var Ui=Ri.group;return{role:Ui?"presentation":"option",id:"".concat(Ln,"_list_").concat(si)}}var ki=function(si){var Ui=ei[si];if(!Ui)return null;var ua=Ui.data||{},ta=ua.value,oa=Ui.group,Bi=Pn(ua,!0),pa=ra(Ui);return Ui?Ie.createElement("div",(0,Re.Z)({"aria-label":typeof pa=="string"&&!oa?pa:null},Bi,{key:si},Yi(Ui,si),{"aria-selected":Ea(ta)}),ta):null},Ma={role:"listbox",id:"".concat(Ln,"_list")};return Ie.createElement(Ie.Fragment,null,zr&&Ie.createElement("div",(0,Re.Z)({},Ma,{style:{height:0,width:0,overflow:"hidden"}}),ki(vi-1),ki(vi),ki(vi+1)),Ie.createElement(hi.Z,{itemKey:"key",ref:ii,data:ei,height:Cr,itemHeight:Dr,fullHeight:!1,onMouseDown:Ti,onScroll:_n,virtual:zr,direction:Br,innerProps:zr?null:Ma},function(Ri,si){var Ui,ua=Ri.group,ta=Ri.groupOption,oa=Ri.data,Bi=Ri.label,pa=Ri.value,wa=oa.key;if(ua){var fa,Sa=(fa=oa.title)!==null&&fa!==void 0?fa:Qn(Bi)?Bi.toString():void 0;return Ie.createElement("div",{className:Pe()(ui,"".concat(ui,"-group")),title:Sa},Bi!==void 0?Bi:wa)}var La=oa.disabled,Va=oa.title,ha=oa.children,Ba=oa.style,qa=oa.className,Ya=(0,xe.Z)(oa,Bn),so=na(Ya,va),_a=Ea(pa),Aa="".concat(ui,"-option"),Wi=Pe()(ui,Aa,qa,(Ui={},(0,ve.Z)(Ui,"".concat(Aa,"-grouped"),ta),(0,ve.Z)(Ui,"".concat(Aa,"-active"),vi===si&&!La),(0,ve.Z)(Ui,"".concat(Aa,"-disabled"),La),(0,ve.Z)(Ui,"".concat(Aa,"-selected"),_a),Ui)),Xi=ra(Ri),da=!er||typeof er=="function"||_a,Ca=typeof Xi=="number"?Xi:Xi||pa,Ka=Qn(Ca)?Ca.toString():void 0;return Va!==void 0&&(Ka=Va),Ie.createElement("div",(0,Re.Z)({},Pn(so),zr?{}:Yi(Ri,si),{"aria-selected":_a,className:Wi,title:Ka,onMouseMove:function(){vi===si||La||Ki(si)},onClick:function(){La||Ta(pa)},style:Ba}),Ie.createElement("div",{className:"".concat(Aa,"-content")},Ca),Ie.isValidElement(er)||_a,da&&Ie.createElement(Qe,{className:"".concat(ui,"-option-state"),customizeIcon:er,customizeIconProps:{isSelected:_a}},_a?"\u2713":null))}))},Zr=Ie.forwardRef(Or);Zr.displayName="OptionList";var Jr=Zr;function ri(Fe){var We=Fe.mode,Wt=Fe.options,bt=Fe.children,sn=Fe.backfill,Ln=Fe.allowClear,zn=Fe.placeholder,ar=Fe.getInputElement,ot=Fe.showSearch,Ye=Fe.onSearch,yt=Fe.defaultOpen,Qt=Fe.autoFocus,_n=Fe.labelInValue,mn=Fe.value,ln=Fe.inputValue,sr=Fe.optionLabelProp,ir=isMultiple(We),xr=ot!==void 0?ot:ir||We==="combobox",er=Wt||convertChildrenToData(bt);if(warning(We!=="tags"||er.every(function(Br){return!Br.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),We==="tags"||We==="combobox"){var Tn=er.some(function(Br){return Br.options?Br.options.some(function(Cr){return typeof("value"in Cr?Cr.value:Cr.key)=="number"}):typeof("value"in Br?Br.value:Br.key)=="number"});warning(!Tn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(We!=="combobox"||!sr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(We==="combobox"||!sn,"`backfill` only works with `combobox` mode."),warning(We==="combobox"||!ar,"`getInputElement` only work with `combobox` mode."),noteOnce(We!=="combobox"||!ar||!Ln||!zn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ye&&!xr&&We!=="combobox"&&We!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!yt||Qt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),mn!=null){var Er=toArray(mn);warning(!_n||Er.every(function(Br){return _typeof(Br)==="object"&&("key"in Br||"value"in Br)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ir||Array.isArray(mn),"`value` should be array when `mode` is `multiple` or `tags`")}if(bt){var zr=null;toNodeArray(bt).some(function(Br){if(!React.isValidElement(Br)||!Br.type)return!1;var Cr=Br,Dr=Cr.type;if(Dr.isSelectOption)return!1;if(Dr.isSelectOptGroup){var ui=toNodeArray(Br.props.children).every(function(ei){return!React.isValidElement(ei)||!Br.type||ei.type.isSelectOption?!0:(zr=ei.type,!1)});return!ui}return zr=Dr,!0}),zr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(zr.displayName||zr.name||zr,"`.")),warning(ln===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function qr(Fe,We){if(Fe){var Wt=function bt(sn){for(var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zn=0;zn<sn.length;zn++){var ar=sn[zn];if(ar[We==null?void 0:We.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ln&&Array.isArray(ar[We==null?void 0:We.options])&&bt(ar[We==null?void 0:We.options],!0))break}};Wt(Fe)}}var fi=null,Ai=["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"],jr=["inputValue"];function wi(Fe){return!Fe||(0,me.Z)(Fe)!=="object"}var Di=Ie.forwardRef(function(Fe,We){var Wt=Fe.id,bt=Fe.mode,sn=Fe.prefixCls,Ln=sn===void 0?"rc-select":sn,zn=Fe.backfill,ar=Fe.fieldNames,ot=Fe.inputValue,Ye=Fe.searchValue,yt=Fe.onSearch,Qt=Fe.autoClearSearchValue,_n=Qt===void 0?!0:Qt,mn=Fe.onSelect,ln=Fe.onDeselect,sr=Fe.dropdownMatchSelectWidth,ir=sr===void 0?!0:sr,xr=Fe.filterOption,er=Fe.filterSort,Tn=Fe.optionFilterProp,Er=Fe.optionLabelProp,zr=Fe.options,Br=Fe.children,Cr=Fe.defaultActiveFirstOption,Dr=Fe.menuItemSelectedIcon,ui=Fe.virtual,ei=Fe.direction,ii=Fe.listHeight,Ti=ii===void 0?200:ii,ea=Fe.listItemHeight,Si=ea===void 0?20:ea,zi=Fe.value,ai=Fe.defaultValue,vi=Fe.labelInValue,_i=Fe.onChange,Ki=(0,xe.Z)(Fe,Ai),Ea=Fi(Wt),Ta=qn(bt),va=!!(!zr&&Br),ra=Ie.useMemo(function(){return xr===void 0&&bt==="combobox"?!1:xr},[xr,bt]),Yi=Ie.useMemo(function(){return Ar(ar,va)},[JSON.stringify(ar),va]),ki=at("",{value:Ye!==void 0?Ye:ot,postState:function(Oi){return Oi||""}}),Ma=(0,Le.Z)(ki,2),Ri=Ma[0],si=Ma[1],Ui=Hi(zr,Br,Yi,Tn,Er),ua=Ui.valueOptions,ta=Ui.labelOptions,oa=Ui.options,Bi=Ie.useCallback(function(Yr){var Oi=oi(Yr);return Oi.map(function(Pi){var ji,Wa,Ga,_o,Zo;if(wi(Pi))ji=Pi;else{var ls;Ga=Pi.key,Wa=Pi.label,ji=(ls=Pi.value)!==null&&ls!==void 0?ls:Ga}var ya=ua.get(ji);if(ya){var Ro;if(Wa===void 0&&(Wa=ya==null?void 0:ya[Er||Yi.label]),Ga===void 0&&(Ga=(Ro=ya==null?void 0:ya.key)!==null&&Ro!==void 0?Ro:ji),_o=ya==null?void 0:ya.disabled,Zo=ya==null?void 0:ya.title,0)var cs}return{label:Wa,value:ji,key:Ga,disabled:_o,title:Zo}})},[Yi,Er,ua]),pa=at(ai,{value:zi}),wa=(0,Le.Z)(pa,2),fa=wa[0],Sa=wa[1],La=Ie.useMemo(function(){var Yr,Oi=Bi(fa);return bt==="combobox"&&Ct((Yr=Oi[0])===null||Yr===void 0?void 0:Yr.value)?[]:Oi},[fa,Bi,bt]),Va=In(La,ua),ha=(0,Le.Z)(Va,2),Ba=ha[0],qa=ha[1],Ya=Ie.useMemo(function(){if(!bt&&Ba.length===1){var Yr=Ba[0];if(Yr.value===null&&(Yr.label===null||Yr.label===void 0))return[]}return Ba.map(function(Oi){var Pi;return(0,ke.Z)((0,ke.Z)({},Oi),{},{label:(Pi=Oi.label)!==null&&Pi!==void 0?Pi:Oi.value})})},[bt,Ba]),so=Ie.useMemo(function(){return new Set(Ba.map(function(Yr){return Yr.value}))},[Ba]);Ie.useEffect(function(){if(bt==="combobox"){var Yr,Oi=(Yr=Ba[0])===null||Yr===void 0?void 0:Yr.value;si(ti(Oi)?String(Oi):"")}},[Ba]);var _a=$i(function(Yr,Oi){var Pi,ji=Oi!=null?Oi:Yr;return Pi={},(0,ve.Z)(Pi,Yi.value,Yr),(0,ve.Z)(Pi,Yi.label,ji),Pi}),Aa=Ie.useMemo(function(){if(bt!=="tags")return oa;var Yr=(0,qe.Z)(oa),Oi=function(ji){return ua.has(ji)};return(0,qe.Z)(Ba).sort(function(Pi,ji){return Pi.value<ji.value?-1:1}).forEach(function(Pi){var ji=Pi.value;Oi(ji)||Yr.push(_a(ji,Pi.label))}),Yr},[_a,oa,ua,Ba,bt]),Wi=kr(Aa,Yi,Ri,ra,Tn),Xi=Ie.useMemo(function(){return bt!=="tags"||!Ri||Wi.some(function(Yr){return Yr[Tn||"value"]===Ri})||Wi.some(function(Yr){return Yr[Yi.value]===Ri})?Wi:[_a(Ri)].concat((0,qe.Z)(Wi))},[_a,Tn,bt,Wi,Ri,Yi]),da=Ie.useMemo(function(){return er?(0,qe.Z)(Xi).sort(function(Yr,Oi){return er(Yr,Oi)}):Xi},[Xi,er]),Ca=Ie.useMemo(function(){return Lr(da,{fieldNames:Yi,childrenAsData:va})},[da,Yi,va]),Ka=function(Oi){var Pi=Bi(Oi);if(Sa(Pi),_i&&(Pi.length!==Ba.length||Pi.some(function(Ga,_o){var Zo;return((Zo=Ba[_o])===null||Zo===void 0?void 0:Zo.value)!==(Ga==null?void 0:Ga.value)}))){var ji=vi?Pi:Pi.map(function(Ga){return Ga.value}),Wa=Pi.map(function(Ga){return kt(qa(Ga.value))});_i(Ta?ji:ji[0],Ta?Wa:Wa[0])}},io=Ie.useState(null),ho=(0,Le.Z)(io,2),Po=ho[0],No=ho[1],lo=Ie.useState(0),Bo=(0,Le.Z)(lo,2),ia=Bo[0],Vi=Bo[1],Oa=Cr!==void 0?Cr:bt!=="combobox",Da=Ie.useCallback(function(Yr,Oi){var Pi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ji=Pi.source,Wa=ji===void 0?"keyboard":ji;Vi(Oi),zn&&bt==="combobox"&&Yr!==null&&Wa==="keyboard"&&No(String(Yr))},[zn,bt]),co=function(Oi,Pi,ji){var Wa=function(){var ms,Ho=qa(Oi);return[vi?{label:Ho==null?void 0:Ho[Yi.label],value:Oi,key:(ms=Ho==null?void 0:Ho.key)!==null&&ms!==void 0?ms:Oi}:Oi,kt(Ho)]};if(Pi&&mn){var Ga=Wa(),_o=(0,Le.Z)(Ga,2),Zo=_o[0],ls=_o[1];mn(Zo,ls)}else if(!Pi&&ln&&ji!=="clear"){var ya=Wa(),Ro=(0,Le.Z)(ya,2),cs=Ro[0],ul=Ro[1];ln(cs,ul)}},ao=$i(function(Yr,Oi){var Pi,ji=Ta?Oi.selected:!0;ji?Pi=Ta?[].concat((0,qe.Z)(Ba),[Yr]):[Yr]:Pi=Ba.filter(function(Wa){return Wa.value!==Yr}),Ka(Pi),co(Yr,ji),bt==="combobox"?No(""):(!qn||_n)&&(si(""),No(""))}),hs=function(Oi,Pi){Ka(Oi);var ji=Pi.type,Wa=Pi.values;(ji==="remove"||ji==="clear")&&Wa.forEach(function(Ga){co(Ga.value,!1,ji)})},$o=function(Oi,Pi){if(si(Oi),No(null),Pi.source==="submit"){var ji=(Oi||"").trim();if(ji){var Wa=Array.from(new Set([].concat((0,qe.Z)(so),[ji])));Ka(Wa),co(ji,!0),si("")}return}Pi.source!=="blur"&&(bt==="combobox"&&Ka(Oi),yt==null||yt(Oi))},ps=function(Oi){var Pi=Oi;bt!=="tags"&&(Pi=Oi.map(function(Wa){var Ga=ta.get(Wa);return Ga==null?void 0:Ga.value}).filter(function(Wa){return Wa!==void 0}));var ji=Array.from(new Set([].concat((0,qe.Z)(so),(0,qe.Z)(Pi))));Ka(ji),ji.forEach(function(Wa){co(Wa,!0)})},sa=Ie.useMemo(function(){var Yr=ui!==!1&&ir!==!1;return(0,ke.Z)((0,ke.Z)({},Ui),{},{flattenOptions:Ca,onActiveValue:Da,defaultActiveFirstOption:Oa,onSelect:ao,menuItemSelectedIcon:Dr,rawValues:so,fieldNames:Yi,virtual:Yr,direction:ei,listHeight:Ti,listItemHeight:Si,childrenAsData:va})},[Ui,Ca,Da,Oa,ao,Dr,so,Yi,ui,ir,Ti,Si,va]);return Ie.createElement(Tt.Provider,{value:sa},Ie.createElement(Dn,(0,Re.Z)({},Ki,{id:Ea,prefixCls:Ln,ref:We,omitDomProps:jr,mode:bt,displayValues:Ya,onDisplayValuesChange:hs,direction:ei,searchValue:Ri,onSearch:$o,autoClearSearchValue:_n,onSearchSplit:ps,dropdownMatchSelectWidth:ir,OptionList:Jr,emptyOptions:!Ca.length,activeValue:Po,activeDescendantId:"".concat(Ea,"_list_").concat(ia)})))}),Li=Di;Li.Option=ca,Li.OptGroup=Mi;var Te=Li,He=Te,Ke=se(10366),Ge=se(8745),ut=se(33603),vt=se(9708),Kt=se(53124),vn=se(98866),kn=se(88258),yr=se(98675),Pr=se(65223),cr=se(4173),Wn=se(87244),Fn=se(13458),$n=se(78642),rr=se(46163),Ir=function(Fe,We){var Wt={};for(var bt in Fe)Object.prototype.hasOwnProperty.call(Fe,bt)&&We.indexOf(bt)<0&&(Wt[bt]=Fe[bt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,bt=Object.getOwnPropertySymbols(Fe);sn<bt.length;sn++)We.indexOf(bt[sn])<0&&Object.prototype.propertyIsEnumerable.call(Fe,bt[sn])&&(Wt[bt[sn]]=Fe[bt[sn]]);return Wt};const gr="SECRET_COMBOBOX_MODE_DO_NOT_USE",fr=(Fe,We)=>{var Wt,{prefixCls:bt,bordered:sn=!0,className:Ln,rootClassName:zn,getPopupContainer:ar,popupClassName:ot,dropdownClassName:Ye,listHeight:yt=256,placement:Qt,listItemHeight:_n=24,size:mn,disabled:ln,notFoundContent:sr,status:ir,builtinPlacements:xr,dropdownMatchSelectWidth:er,popupMatchSelectWidth:Tn,direction:Er,style:zr,allowClear:Br}=Fe,Cr=Ir(Fe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Dr,getPrefixCls:ui,renderEmpty:ei,direction:ii,virtual:Ti,popupMatchSelectWidth:ea,popupOverflow:Si,select:zi}=Ie.useContext(Kt.E_),ai=ui("select",bt),vi=ui(),_i=Er!=null?Er:ii,{compactSize:Ki,compactItemClassnames:Ea}=(0,cr.ri)(ai,_i),[Ta,va]=(0,Wn.Z)(ai),ra=Ie.useMemo(()=>{const{mode:Aa}=Cr;if(Aa!=="combobox")return Aa===gr?"combobox":Aa},[Cr.mode]),Yi=ra==="multiple"||ra==="tags",ki=(0,$n.Z)(Cr.suffixIcon,Cr.showArrow),Ma=(Wt=Tn!=null?Tn:er)!==null&&Wt!==void 0?Wt:ea,{status:Ri,hasFeedback:si,isFormItemInput:Ui,feedbackIcon:ua}=Ie.useContext(Pr.aM),ta=(0,vt.F)(Ri,ir);let oa;sr!==void 0?oa=sr:ra==="combobox"?oa=null:oa=(ei==null?void 0:ei("Select"))||Ie.createElement(kn.Z,{componentName:"Select"});const{suffixIcon:Bi,itemIcon:pa,removeIcon:wa,clearIcon:fa}=(0,rr.Z)(Object.assign(Object.assign({},Cr),{multiple:Yi,hasFeedback:si,feedbackIcon:ua,showSuffixIcon:ki,prefixCls:ai,showArrow:Cr.showArrow,componentName:"Select"})),Sa=Br===!0?{clearIcon:fa}:Br,La=(0,Ke.Z)(Cr,["suffixIcon","itemIcon"]),Va=Pe()(ot||Ye,{[`${ai}-dropdown-${_i}`]:_i==="rtl"},zn,va),ha=(0,yr.Z)(Aa=>{var Wi;return(Wi=mn!=null?mn:Ki)!==null&&Wi!==void 0?Wi:Aa}),Ba=Ie.useContext(vn.Z),qa=ln!=null?ln:Ba,Ya=Pe()({[`${ai}-lg`]:ha==="large",[`${ai}-sm`]:ha==="small",[`${ai}-rtl`]:_i==="rtl",[`${ai}-borderless`]:!sn,[`${ai}-in-form-item`]:Ui},(0,vt.Z)(ai,ta,si),Ea,zi==null?void 0:zi.className,Ln,zn,va),so=Ie.useMemo(()=>Qt!==void 0?Qt:_i==="rtl"?"bottomRight":"bottomLeft",[Qt,_i]),_a=(0,Fn.Z)(xr,Si);return Ta(Ie.createElement(He,Object.assign({ref:We,virtual:Ti,showSearch:zi==null?void 0:zi.showSearch},La,{style:Object.assign(Object.assign({},zi==null?void 0:zi.style),zr),dropdownMatchSelectWidth:Ma,builtinPlacements:_a,transitionName:(0,ut.m)(vi,"slide-up",Cr.transitionName),listHeight:yt,listItemHeight:_n,mode:ra,prefixCls:ai,placement:so,direction:_i,suffixIcon:Bi,menuItemSelectedIcon:pa,removeIcon:wa,allowClear:Sa,notFoundContent:oa,className:Ya,getPopupContainer:ar||Dr,dropdownClassName:Va,disabled:qa})))},wr=Ie.forwardRef(fr),Sr=(0,Ge.Z)(wr);wr.SECRET_COMBOBOX_MODE_DO_NOT_USE=gr,wr.Option=ca,wr.OptGroup=Mi,wr._InternalPanelDoNotUseOrYouWillBeFired=Sr;var Nr=wr},87244:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Se}});var ae=se(14747),Pe=se(80110),Re=se(45503),qe=se(67968),ve=se(67771),ke=se(33297);const Le=Ce=>{const{optionHeight:je,optionFontSize:Ue,optionLineHeight:Mt,optionPadding:ht}=Ce;return{position:"relative",display:"block",minHeight:je,padding:ht,color:Ce.colorText,fontWeight:"normal",fontSize:Ue,lineHeight:Mt,boxSizing:"border-box"}};var me=Ce=>{const{antCls:je,componentCls:Ue}=Ce,Mt=`${Ue}-item`,ht=`&${je}-slide-up-enter${je}-slide-up-enter-active`,Ft=`&${je}-slide-up-appear${je}-slide-up-appear-active`,tt=`&${je}-slide-up-leave${je}-slide-up-leave-active`,Jt=`${Ue}-dropdown-placement-`;return[{[`${Ue}-dropdown`]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{position:"absolute",top:-9999,zIndex:Ce.zIndexPopup,boxSizing:"border-box",padding:Ce.paddingXXS,overflow:"hidden",fontSize:Ce.fontSize,fontVariant:"initial",backgroundColor:Ce.colorBgElevated,borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary,[`
${ht}${Jt}bottomLeft,
${Ft}${Jt}bottomLeft
`]:{animationName:ve.fJ},[`
${ht}${Jt}topLeft,
${Ft}${Jt}topLeft,
${ht}${Jt}topRight,
${Ft}${Jt}topRight
`]:{animationName:ve.Qt},[`${tt}${Jt}bottomLeft`]:{animationName:ve.Uw},[`
${tt}${Jt}topLeft,
${tt}${Jt}topRight
`]:{animationName:ve.ly},"&-hidden":{display:"none"},[`${Mt}`]:Object.assign(Object.assign({},Le(Ce)),{cursor:"pointer",transition:`background ${Ce.motionDurationSlow} ease`,borderRadius:Ce.borderRadiusSM,"&-group":{color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ae.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Mt}-option-disabled)`]:{backgroundColor:Ce.optionActiveBg},[`&-selected:not(${Mt}-option-disabled)`]:{color:Ce.optionSelectedColor,fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg,[`${Mt}-option-state`]:{color:Ce.colorPrimary}},"&-disabled":{[`&${Mt}-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,ke.Fm)(Ce,"move-up"),(0,ke.Fm)(Ce,"move-down")]};const Ie=2,st=Ce=>{let{controlHeightSM:je,controlHeight:Ue,lineWidth:Mt}=Ce;const ht=(Ue-je)/2-Mt,Ft=Math.ceil(ht/2);return[ht,Ft]};function Ne(Ce,je){const{componentCls:Ue,iconCls:Mt}=Ce,ht=`${Ue}-selection-overflow`,Ft=Ce.multipleSelectItemHeight,[tt]=st(Ce),Jt=je?`${Ue}-${je}`:"";return{[`${Ue}-multiple${Jt}`]:{fontSize:Ce.fontSize,[ht]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ue}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${tt-Ie}px ${Ie*2}px`,borderRadius:Ce.borderRadius,[`${Ue}-show-search&`]:{cursor:"text"},[`${Ue}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ie}px 0`,lineHeight:`${Ft}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${Ue}-show-arrow ${Ue}-selector,
&${Ue}-allow-clear ${Ue}-selector
`]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${Ue}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ft,marginTop:Ie,marginBottom:Ie,lineHeight:`${Ft-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:Ie*2,paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS/2,[`${Ue}-disabled&`]:{color:Ce.multipleItemColorDisabled,borderColor:Ce.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ce.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ae.Ro)()),{display:"inline-flex",alignItems:"center",color:Ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Mt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ce.colorIconHover}})},[`${ht}-item + ${ht}-item`]:{[`${Ue}-selection-search`]:{marginInlineStart:0}},[`${Ue}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-tt,"\n &-input,\n &-mirror\n ":{height:Ft,fontFamily:Ce.fontFamily,lineHeight:`${Ft}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"}},[`${Ue}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var pt=Ce=>{const{componentCls:je}=Ce,Ue=(0,Re.TS)(Ce,{controlHeight:Ce.controlHeightSM,multipleSelectItemHeight:Ce.controlHeightXS,borderRadius:Ce.borderRadiusSM,borderRadiusSM:Ce.borderRadiusXS}),Mt=(0,Re.TS)(Ce,{fontSize:Ce.fontSizeLG,controlHeight:Ce.controlHeightLG,multipleSelectItemHeight:Ce.multipleItemHeightLG,borderRadius:Ce.borderRadiusLG,borderRadiusSM:Ce.borderRadius}),[,ht]=st(Ce);return[Ne(Ce),Ne(Ue,"sm"),{[`${je}-multiple${je}-sm`]:{[`${je}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${je}-selection-search`]:{marginInlineStart:ht}}},Ne(Mt,"lg")]};function ct(Ce,je){const{componentCls:Ue,inputPaddingHorizontalBase:Mt,borderRadius:ht}=Ce,Ft=Ce.controlHeight-Ce.lineWidth*2,tt=Math.ceil(Ce.fontSize*1.25),Jt=je?`${Ue}-${je}`:"";return{[`${Ue}-single${Jt}`]:{fontSize:Ce.fontSize,[`${Ue}-selector`]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{display:"flex",borderRadius:ht,[`${Ue}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Mt,insetInlineEnd:Mt,bottom:0,"&-input":{width:"100%"}},[`
${Ue}-selection-item,
${Ue}-selection-placeholder
`]:{padding:0,lineHeight:`${Ft}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ft}px`}},[`${Ue}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ue}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ue}-selection-item:after`,`${Ue}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Ue}-show-arrow ${Ue}-selection-item,
&${Ue}-show-arrow ${Ue}-selection-placeholder
`]:{paddingInlineEnd:tt},[`&${Ue}-open ${Ue}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${Mt}px`,[`${Ue}-selection-search-input`]:{height:Ft},"&:after":{lineHeight:`${Ft}px`}}},[`&${Ue}-customize-input`]:{[`${Ue}-selector`]:{"&:after":{display:"none"},[`${Ue}-selection-search`]:{position:"static",width:"100%"},[`${Ue}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Mt}px`,"&:after":{display:"none"}}}}}}}function rt(Ce){const{componentCls:je}=Ce,Ue=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[ct(Ce),ct((0,Re.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${je}-single${je}-sm`]:{[`&:not(${je}-customize-input)`]:{[`${je}-selection-search`]:{insetInlineStart:Ue,insetInlineEnd:Ue},[`${je}-selector`]:{padding:`0 ${Ue}px`},[`&${je}-show-arrow ${je}-selection-search`]:{insetInlineEnd:Ue+Ce.fontSize*1.5},[`
&${je}-show-arrow ${je}-selection-item,
&${je}-show-arrow ${je}-selection-placeholder
`]:{paddingInlineEnd:Ce.fontSize*1.5}}}},ct((0,Re.TS)(Ce,{controlHeight:Ce.singleItemHeightLG,fontSize:Ce.fontSizeLG,borderRadius:Ce.borderRadiusLG}),"lg")]}const Ee=Ce=>{const{componentCls:je,selectorBg:Ue}=Ce;return{position:"relative",backgroundColor:Ue,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"}}}},at=function(Ce,je){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Mt,borderHoverColor:ht,outlineColor:Ft,antCls:tt}=je,Jt=Ue?{[`${Mt}-selector`]:{borderColor:ht}}:{};return{[Ce]:{[`&:not(${Mt}-disabled):not(${Mt}-customize-input):not(${tt}-pagination-size-changer)`]:Object.assign(Object.assign({},Jt),{[`${Mt}-focused& ${Mt}-selector`]:{borderColor:ht,boxShadow:`0 0 0 ${je.controlOutlineWidth}px ${Ft}`,outline:0},[`&:hover ${Mt}-selector`]:{borderColor:ht}})}}},Yt=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"}}}},Xe=Ce=>{const{componentCls:je,inputPaddingHorizontalBase:Ue,iconCls:Mt}=Ce;return{[je]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${je}-customize-input) ${je}-selector`]:Object.assign(Object.assign({},Ee(Ce)),Yt(Ce)),[`${je}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ae.vS),[`${je}-selection-placeholder`]:Object.assign(Object.assign({},ae.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${je}-arrow`]:Object.assign(Object.assign({},(0,ae.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Mt]:{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:Ue,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:Ue+Ce.fontSize+Ce.paddingXS}}}},lt=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%"}}},Xe(Ce),rt(Ce),pt(Ce),me(Ce),{[`${je}-rtl`]:{direction:"rtl"}},at(je,(0,Re.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),at(`${je}-status-error`,(0,Re.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),at(`${je}-status-warning`,(0,Re.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,Pe.c)(Ce,{borderElCls:`${je}-selector`,focusElCls:`${je}-focused`})]};var Se=(0,qe.Z)("Select",(Ce,je)=>{let{rootPrefixCls:Ue}=je;const Mt=(0,Re.TS)(Ce,{rootPrefixCls:Ue,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[lt(Mt)]},Ce=>{const{fontSize:je,lineHeight:Ue,controlHeight:Mt,controlPaddingHorizontal:ht,zIndexPopupBase:Ft,colorText:tt,fontWeightStrong:Jt,controlItemBgActive:Rt,controlItemBgHover:yn,colorBgContainer:tn,colorFillSecondary:Hn,controlHeightLG:Yn,controlHeightSM:tr,colorBgContainerDisabled:Qe,colorTextDisabled:we}=Ce;return{zIndexPopup:Ft+50,optionSelectedColor:tt,optionSelectedFontWeight:Jt,optionSelectedBg:Rt,optionActiveBg:yn,optionPadding:`${(Mt-je*Ue)/2}px ${ht}px`,optionFontSize:je,optionLineHeight:Ue,optionHeight:Mt,selectorBg:tn,clearBg:tn,singleItemHeightLG:Yn,multipleItemBg:Hn,multipleItemBorderColor:"transparent",multipleItemHeight:tr,multipleItemHeightLG:Mt,multipleSelectorBgDisabled:Qe,multipleItemColorDisabled:we,multipleItemBorderColorDisabled:"transparent"}})},13458:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Pe}});const ae=Re=>{const ve={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Re==="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 Pe(Re,qe){return Re||ae(qe)}},78642:function(dn,en,se){"use strict";se.d(en,{Z:function(){return ae}});function ae(Pe,Re){return Re!==void 0?Re:Pe!==null}},46163:function(dn,en,se){"use strict";se.d(en,{Z:function(){return xe}});var ae=se(18299),Pe=se(16646),Re=se(73475),qe=se(42922),ve=se(3407),ke=se(72395),Le=se(67294);function xe(me){let{suffixIcon:Ie,clearIcon:st,menuItemSelectedIcon:Ne,removeIcon:xt,loading:pt,multiple:ct,hasFeedback:rt,prefixCls:Ee,showSuffixIcon:at,feedbackIcon:Yt,showArrow:Xe,componentName:lt}=me;const Se=st!=null?st:Le.createElement(Pe.Z,null),Ce=ht=>Ie===null&&!rt&&!Xe?null:Le.createElement(Le.Fragment,null,at!==!1&&ht,rt&&Yt);let je=null;if(Ie!==void 0)je=Ce(Ie);else if(pt)je=Ce(Le.createElement(ve.Z,{spin:!0}));else{const ht=`${Ee}-suffix`;je=Ft=>{let{open:tt,showSearch:Jt}=Ft;return Ce(tt&&Jt?Le.createElement(ke.Z,{className:ht}):Le.createElement(qe.Z,{className:ht}))}}let Ue=null;Ne!==void 0?Ue=Ne:ct?Ue=Le.createElement(ae.Z,null):Ue=null;let Mt=null;return xt!==void 0?Mt=xt:Mt=Le.createElement(Re.Z,null),{clearIcon:Se,suffixIcon:je,itemIcon:Ue,removeIcon:Mt}}},46303:function(dn,en,se){"use strict";se.d(en,{Z:function(){return ce}});var ae=se(94184),Pe=se.n(ae),Re=se(67294),qe=se(53124),ve=se(10366),Le=he=>{const{prefixCls:fe,className:le,style:Me,size:Ve,shape:ft}=he,Ht=Pe()({[`${fe}-lg`]:Ve==="large",[`${fe}-sm`]:Ve==="small"}),Zt=Pe()({[`${fe}-circle`]:ft==="circle",[`${fe}-square`]:ft==="square",[`${fe}-round`]:ft==="round"}),jt=Re.useMemo(()=>typeof Ve=="number"?{width:Ve,height:Ve,lineHeight:`${Ve}px`}:{},[Ve]);return Re.createElement("span",{className:Pe()(fe,Ht,Zt,le),style:Object.assign(Object.assign({},jt),Me)})},xe=se(45930),me=se(67968),Ie=se(45503);const st=new xe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ne=he=>({height:he,lineHeight:`${he}px`}),xt=he=>Object.assign({width:he},Ne(he)),pt=he=>({background:he.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:st,animationDuration:he.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ct=he=>Object.assign({width:he*5,minWidth:he*5},Ne(he)),rt=he=>{const{skeletonAvatarCls:fe,gradientFromColor:le,controlHeight:Me,controlHeightLG:Ve,controlHeightSM:ft}=he;return{[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:le},xt(Me)),[`${fe}${fe}-circle`]:{borderRadius:"50%"},[`${fe}${fe}-lg`]:Object.assign({},xt(Ve)),[`${fe}${fe}-sm`]:Object.assign({},xt(ft))}},Ee=he=>{const{controlHeight:fe,borderRadiusSM:le,skeletonInputCls:Me,controlHeightLG:Ve,controlHeightSM:ft,gradientFromColor:Ht}=he;return{[`${Me}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ht,borderRadius:le},ct(fe)),[`${Me}-lg`]:Object.assign({},ct(Ve)),[`${Me}-sm`]:Object.assign({},ct(ft))}},at=he=>Object.assign({width:he},Ne(he)),Yt=he=>{const{skeletonImageCls:fe,imageSizeBase:le,gradientFromColor:Me,borderRadiusSM:Ve}=he;return{[`${fe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Me,borderRadius:Ve},at(le*2)),{[`${fe}-path`]:{fill:"#bfbfbf"},[`${fe}-svg`]:Object.assign(Object.assign({},at(le)),{maxWidth:le*4,maxHeight:le*4}),[`${fe}-svg${fe}-svg-circle`]:{borderRadius:"50%"}}),[`${fe}${fe}-circle`]:{borderRadius:"50%"}}},Xe=(he,fe,le)=>{const{skeletonButtonCls:Me}=he;return{[`${le}${Me}-circle`]:{width:fe,minWidth:fe,borderRadius:"50%"},[`${le}${Me}-round`]:{borderRadius:fe}}},lt=he=>Object.assign({width:he*2,minWidth:he*2},Ne(he)),Se=he=>{const{borderRadiusSM:fe,skeletonButtonCls:le,controlHeight:Me,controlHeightLG:Ve,controlHeightSM:ft,gradientFromColor:Ht}=he;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ht,borderRadius:fe,width:Me*2,minWidth:Me*2},lt(Me))},Xe(he,Me,le)),{[`${le}-lg`]:Object.assign({},lt(Ve))}),Xe(he,Ve,`${le}-lg`)),{[`${le}-sm`]:Object.assign({},lt(ft))}),Xe(he,ft,`${le}-sm`))},Ce=he=>{const{componentCls:fe,skeletonAvatarCls:le,skeletonTitleCls:Me,skeletonParagraphCls:Ve,skeletonButtonCls:ft,skeletonInputCls:Ht,skeletonImageCls:Zt,controlHeight:jt,controlHeightLG:$t,controlHeightSM:Je,gradientFromColor:Et,padding:Lt,marginSM:Xt,borderRadius:wt,titleHeight:Nn,blockRadius:et,paragraphLiHeight:It,controlHeightXS:gn,paragraphMarginTop:hn}=he;return{[`${fe}`]:{display:"table",width:"100%",[`${fe}-header`]:{display:"table-cell",paddingInlineEnd:Lt,verticalAlign:"top",[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Et},xt(jt)),[`${le}-circle`]:{borderRadius:"50%"},[`${le}-lg`]:Object.assign({},xt($t)),[`${le}-sm`]:Object.assign({},xt(Je))},[`${fe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Me}`]:{width:"100%",height:Nn,background:Et,borderRadius:et,[`+ ${Ve}`]:{marginBlockStart:Je}},[`${Ve}`]:{padding:0,"> li":{width:"100%",height:It,listStyle:"none",background:Et,borderRadius:et,"+ li":{marginBlockStart:gn}}},[`${Ve}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${fe}-content`]:{[`${Me}, ${Ve} > li`]:{borderRadius:wt}}},[`${fe}-with-avatar ${fe}-content`]:{[`${Me}`]:{marginBlockStart:Xt,[`+ ${Ve}`]:{marginBlockStart:hn}}},[`${fe}${fe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Se(he)),rt(he)),Ee(he)),Yt(he)),[`${fe}${fe}-block`]:{width:"100%",[`${ft}`]:{width:"100%"},[`${Ht}`]:{width:"100%"}},[`${fe}${fe}-active`]:{[`
${Me},
${Ve} > li,
${le},
${ft},
${Ht},
${Zt}
`]:Object.assign({},pt(he))}}};var je=(0,me.Z)("Skeleton",he=>{const{componentCls:fe}=he,le=(0,Ie.TS)(he,{skeletonAvatarCls:`${fe}-avatar`,skeletonTitleCls:`${fe}-title`,skeletonParagraphCls:`${fe}-paragraph`,skeletonButtonCls:`${fe}-button`,skeletonInputCls:`${fe}-input`,skeletonImageCls:`${fe}-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(le)]},he=>{const{colorFillContent:fe,colorFill:le}=he,Me=fe,Ve=le;return{color:Me,colorGradientEnd:Ve,gradientFromColor:Me,gradientToColor:Ve,titleHeight:he.controlHeight/2,blockRadius:he.borderRadiusSM,paragraphMarginTop:he.marginLG+he.marginXXS,paragraphLiHeight:he.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Mt=he=>{const{prefixCls:fe,className:le,rootClassName:Me,active:Ve,shape:ft="circle",size:Ht="default"}=he,{getPrefixCls:Zt}=Re.useContext(qe.E_),jt=Zt("skeleton",fe),[$t,Je]=je(jt),Et=(0,ve.Z)(he,["prefixCls","className"]),Lt=Pe()(jt,`${jt}-element`,{[`${jt}-active`]:Ve},le,Me,Je);return $t(Re.createElement("div",{className:Lt},Re.createElement(Le,Object.assign({prefixCls:`${jt}-avatar`,shape:ft,size:Ht},Et))))},Ft=he=>{const{prefixCls:fe,className:le,rootClassName:Me,active:Ve,block:ft=!1,size:Ht="default"}=he,{getPrefixCls:Zt}=Re.useContext(qe.E_),jt=Zt("skeleton",fe),[$t,Je]=je(jt),Et=(0,ve.Z)(he,["prefixCls"]),Lt=Pe()(jt,`${jt}-element`,{[`${jt}-active`]:Ve,[`${jt}-block`]:ft},le,Me,Je);return $t(Re.createElement("div",{className:Lt},Re.createElement(Le,Object.assign({prefixCls:`${jt}-button`,size:Ht},Et))))};const tt="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 Rt=he=>{const{prefixCls:fe,className:le,rootClassName:Me,style:Ve,active:ft}=he,{getPrefixCls:Ht}=Re.useContext(qe.E_),Zt=Ht("skeleton",fe),[jt,$t]=je(Zt),Je=Pe()(Zt,`${Zt}-element`,{[`${Zt}-active`]:ft},le,Me,$t);return jt(Re.createElement("div",{className:Je},Re.createElement("div",{className:Pe()(`${Zt}-image`,le),style:Ve},Re.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Zt}-image-svg`},Re.createElement("path",{d:tt,className:`${Zt}-image-path`})))))},tn=he=>{const{prefixCls:fe,className:le,rootClassName:Me,active:Ve,block:ft,size:Ht="default"}=he,{getPrefixCls:Zt}=Re.useContext(qe.E_),jt=Zt("skeleton",fe),[$t,Je]=je(jt),Et=(0,ve.Z)(he,["prefixCls"]),Lt=Pe()(jt,`${jt}-element`,{[`${jt}-active`]:Ve,[`${jt}-block`]:ft},le,Me,Je);return $t(Re.createElement("div",{className:Lt},Re.createElement(Le,Object.assign({prefixCls:`${jt}-input`,size:Ht},Et))))},Hn=se(87462),Yn={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"},tr=Yn,Qe=se(74643),we=function(fe,le){return Re.createElement(Qe.Z,(0,Hn.Z)({},fe,{ref:le,icon:tr}))},At=Re.forwardRef(we),_t=he=>{const{prefixCls:fe,className:le,rootClassName:Me,style:Ve,active:ft,children:Ht}=he,{getPrefixCls:Zt}=Re.useContext(qe.E_),jt=Zt("skeleton",fe),[$t,Je]=je(jt),Et=Pe()(jt,`${jt}-element`,{[`${jt}-active`]:ft},Je,le,Me),Lt=Ht!=null?Ht:Re.createElement(At,null);return $t(Re.createElement("div",{className:Et},Re.createElement("div",{className:Pe()(`${jt}-image`,le),style:Ve},Lt)))},$e=se(74902),qt=he=>{const fe=Zt=>{const{width:jt,rows:$t=2}=he;if(Array.isArray(jt))return jt[Zt];if($t-1===Zt)return jt},{prefixCls:le,className:Me,style:Ve,rows:ft}=he,Ht=(0,$e.Z)(Array(ft)).map((Zt,jt)=>Re.createElement("li",{key:jt,style:{width:fe(jt)}}));return Re.createElement("ul",{className:Pe()(le,Me),style:Ve},Ht)},bn=he=>{let{prefixCls:fe,className:le,width:Me,style:Ve}=he;return Re.createElement("h3",{className:Pe()(fe,le),style:Object.assign({width:Me},Ve)})};function un(he){return he&&typeof he=="object"?he:{}}function nn(he,fe){return he&&!fe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function xn(he,fe){return!he&&fe?{width:"38%"}:he&&fe?{width:"50%"}:{}}function Pn(he,fe){const le={};return(!he||!fe)&&(le.width="61%"),!he&&fe?le.rows=3:le.rows=2,le}const De=he=>{const{prefixCls:fe,loading:le,className:Me,rootClassName:Ve,style:ft,children:Ht,avatar:Zt=!1,title:jt=!0,paragraph:$t=!0,active:Je,round:Et}=he,{getPrefixCls:Lt,direction:Xt,skeleton:wt}=Re.useContext(qe.E_),Nn=Lt("skeleton",fe),[et,It]=je(Nn);if(le||!("loading"in he)){const gn=!!Zt,hn=!!jt,An=!!$t;let Vn;if(gn){const dr=Object.assign(Object.assign({prefixCls:`${Nn}-avatar`},nn(hn,An)),un(Zt));Vn=Re.createElement("div",{className:`${Nn}-header`},Re.createElement(Le,Object.assign({},dr)))}let mr;if(hn||An){let dr;if(hn){const nr=Object.assign(Object.assign({prefixCls:`${Nn}-title`},xn(gn,An)),un(jt));dr=Re.createElement(bn,Object.assign({},nr))}let Fr;if(An){const nr=Object.assign(Object.assign({prefixCls:`${Nn}-paragraph`},Pn(gn,hn)),un($t));Fr=Re.createElement(qt,Object.assign({},nr))}mr=Re.createElement("div",{className:`${Nn}-content`},dr,Fr)}const ur=Pe()(Nn,{[`${Nn}-with-avatar`]:gn,[`${Nn}-active`]:Je,[`${Nn}-rtl`]:Xt==="rtl",[`${Nn}-round`]:Et},wt==null?void 0:wt.className,Me,Ve,It);return et(Re.createElement("div",{className:ur,style:Object.assign(Object.assign({},wt==null?void 0:wt.style),ft)},Vn,mr))}return typeof Ht!="undefined"?Ht:null};De.Button=Ft,De.Avatar=Mt,De.Input=tn,De.Image=Rt,De.Node=_t;var ue=De,ce=ue},55054:function(dn,en,se){"use strict";se.d(en,{default:function(){return je}});var ae=se(67294),Pe=se(57838),Re=se(96159),qe=se(94184),ve=se.n(qe),ke=se(53124),Le=se(46303),me=Ue=>{const{value:Mt,formatter:ht,precision:Ft,decimalSeparator:tt,groupSeparator:Jt="",prefixCls:Rt}=Ue;let yn;if(typeof ht=="function")yn=ht(Mt);else{const tn=String(Mt),Hn=tn.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Hn||tn==="-")yn=tn;else{const Yn=Hn[1];let tr=Hn[2]||"0",Qe=Hn[4]||"";tr=tr.replace(/\B(?=(\d{3})+(?!\d))/g,Jt),typeof Ft=="number"&&(Qe=Qe.padEnd(Ft,"0").slice(0,Ft>0?Ft:0)),Qe&&(Qe=`${tt}${Qe}`),yn=[ae.createElement("span",{key:"int",className:`${Rt}-content-value-int`},Yn,tr),Qe&&ae.createElement("span",{key:"decimal",className:`${Rt}-content-value-decimal`},Qe)]}}return ae.createElement("span",{className:`${Rt}-content-value`},yn)},Ie=se(14747),st=se(67968),Ne=se(45503);const xt=Ue=>{const{componentCls:Mt,marginXXS:ht,padding:Ft,colorTextDescription:tt,titleFontSize:Jt,colorTextHeading:Rt,contentFontSize:yn,fontFamily:tn}=Ue;return{[`${Mt}`]:Object.assign(Object.assign({},(0,Ie.Wf)(Ue)),{[`${Mt}-title`]:{marginBottom:ht,color:tt,fontSize:Jt},[`${Mt}-skeleton`]:{paddingTop:Ft},[`${Mt}-content`]:{color:Rt,fontSize:yn,fontFamily:tn,[`${Mt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Mt}-content-prefix, ${Mt}-content-suffix`]:{display:"inline-block"},[`${Mt}-content-prefix`]:{marginInlineEnd:ht},[`${Mt}-content-suffix`]:{marginInlineStart:ht}}})}};var pt=(0,st.Z)("Statistic",Ue=>{const Mt=(0,Ne.TS)(Ue,{});return[xt(Mt)]},Ue=>{const{fontSizeHeading3:Mt,fontSize:ht}=Ue;return{titleFontSize:ht,contentFontSize:Mt}}),rt=Ue=>{const{prefixCls:Mt,className:ht,rootClassName:Ft,style:tt,valueStyle:Jt,value:Rt=0,title:yn,valueRender:tn,prefix:Hn,suffix:Yn,loading:tr=!1,onMouseEnter:Qe,onMouseLeave:we,decimalSeparator:At=".",groupSeparator:Mn=","}=Ue,{getPrefixCls:_t,direction:$e,statistic:dt}=ae.useContext(ke.E_),qt=_t("statistic",Mt),[Xn,bn]=pt(qt),un=ae.createElement(me,Object.assign({decimalSeparator:At,groupSeparator:Mn,prefixCls:qt},Ue,{value:Rt})),nn=ve()(qt,{[`${qt}-rtl`]:$e==="rtl"},dt==null?void 0:dt.className,ht,Ft,bn);return Xn(ae.createElement("div",{className:nn,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),tt),onMouseEnter:Qe,onMouseLeave:we},yn&&ae.createElement("div",{className:`${qt}-title`},yn),ae.createElement(Le.Z,{paragraph:!1,loading:tr,className:`${qt}-skeleton`},ae.createElement("div",{style:Jt,className:`${qt}-content`},Hn&&ae.createElement("span",{className:`${qt}-content-prefix`},Hn),tn?tn(un):un,Yn&&ae.createElement("span",{className:`${qt}-content-suffix`},Yn)))))};const Ee=[["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 at(Ue,Mt){let ht=Ue;const Ft=/\[[^\]]*]/g,tt=(Mt.match(Ft)||[]).map(tn=>tn.slice(1,-1)),Jt=Mt.replace(Ft,"[]"),Rt=Ee.reduce((tn,Hn)=>{let[Yn,tr]=Hn;if(tn.includes(Yn)){const Qe=Math.floor(ht/tr);return ht-=Qe*tr,tn.replace(new RegExp(`${Yn}+`,"g"),we=>{const At=we.length;return Qe.toString().padStart(At,"0")})}return tn},Jt);let yn=0;return Rt.replace(Ft,()=>{const tn=tt[yn];return yn+=1,tn})}function Yt(Ue,Mt){const{format:ht=""}=Mt,Ft=new Date(Ue).getTime(),tt=Date.now(),Jt=Math.max(Ft-tt,0);return at(Jt,ht)}const Xe=1e3/30;function lt(Ue){return new Date(Ue).getTime()}const Se=Ue=>{const{value:Mt,format:ht="HH:mm:ss",onChange:Ft,onFinish:tt}=Ue,Jt=(0,Pe.Z)(),Rt=ae.useRef(null),yn=()=>{tt==null||tt(),Rt.current&&(clearInterval(Rt.current),Rt.current=null)},tn=()=>{const tr=lt(Mt);tr>=Date.now()&&(Rt.current=setInterval(()=>{Jt(),Ft==null||Ft(tr-Date.now()),tr<Date.now()&&yn()},Xe))};ae.useEffect(()=>(tn(),()=>{Rt.current&&(clearInterval(Rt.current),Rt.current=null)}),[Mt]);const Hn=(tr,Qe)=>Yt(tr,Object.assign(Object.assign({},Qe),{format:ht})),Yn=tr=>(0,Re.Tm)(tr,{title:void 0});return ae.createElement(rt,Object.assign({},Ue,{valueRender:Yn,formatter:Hn}))};var Ce=ae.memo(Se);rt.Countdown=Ce;var je=rt},33507:function(dn,en){"use strict";const se=ae=>({[ae.componentCls]:{[`${ae.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ae.motionDurationMid} ${ae.motionEaseInOut},
opacity ${ae.motionDurationMid} ${ae.motionEaseInOut} !important`}},[`${ae.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ae.motionDurationMid} ${ae.motionEaseInOut},
opacity ${ae.motionDurationMid} ${ae.motionEaseInOut} !important`}}});en.Z=se},33297:function(dn,en,se){"use strict";se.d(en,{Fm:function(){return Ne}});var ae=se(45930),Pe=se(93590);const Re=new ae.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qe=new ae.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ve=new ae.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ke=new ae.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Le=new ae.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xe=new ae.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),me=new ae.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ie=new ae.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),st={"move-up":{inKeyframes:me,outKeyframes:Ie},"move-down":{inKeyframes:Re,outKeyframes:qe},"move-left":{inKeyframes:ve,outKeyframes:ke},"move-right":{inKeyframes:Le,outKeyframes:xe}},Ne=(xt,pt)=>{const{antCls:ct}=xt,rt=`${ct}-${pt}`,{inKeyframes:Ee,outKeyframes:at}=st[pt];return[(0,Pe.R)(rt,Ee,at,xt.motionDurationMid),{[`
${rt}-enter,
${rt}-appear
`]:{opacity:0,animationTimingFunction:xt.motionEaseOutCirc},[`${rt}-leave`]:{animationTimingFunction:xt.motionEaseInOutCirc}}]}},67771:function(dn,en,se){"use strict";se.d(en,{Qt:function(){return ve},Uw:function(){return qe},fJ:function(){return Re},ly:function(){return ke},oN:function(){return Ne}});var ae=se(45930),Pe=se(93590);const Re=new ae.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),qe=new ae.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ve=new ae.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ke=new ae.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Le=new ae.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xe=new ae.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),me=new ae.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ie=new ae.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),st={"slide-up":{inKeyframes:Re,outKeyframes:qe},"slide-down":{inKeyframes:ve,outKeyframes:ke},"slide-left":{inKeyframes:Le,outKeyframes:xe},"slide-right":{inKeyframes:me,outKeyframes:Ie}},Ne=(xt,pt)=>{const{antCls:ct}=xt,rt=`${ct}-${pt}`,{inKeyframes:Ee,outKeyframes:at}=st[pt];return[(0,Pe.R)(rt,Ee,at,xt.motionDurationMid),{[`
${rt}-enter,
${rt}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:xt.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${rt}-leave`]:{animationTimingFunction:xt.motionEaseInQuint}}]}},47897:function(dn,en,se){"use strict";se.d(en,{Z:function(){return he}});var ae=se(3407),Pe=se(94184),Re=se.n(Pe);function qe(){return qe=Object.assign?Object.assign.bind():function(fe){for(var le=1;le<arguments.length;le++){var Me=arguments[le];for(var Ve in Me)Object.prototype.hasOwnProperty.call(Me,Ve)&&(fe[Ve]=Me[Ve])}return fe},qe.apply(this,arguments)}function ve(fe){"@babel/helpers - typeof";return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(le){return typeof le}:function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},ve(fe)}function ke(fe,le){if(ve(fe)!=="object"||fe===null)return fe;var Me=fe[Symbol.toPrimitive];if(Me!==void 0){var Ve=Me.call(fe,le||"default");if(ve(Ve)!=="object")return Ve;throw new TypeError("@@toPrimitive must return a primitive value.")}return(le==="string"?String:Number)(fe)}function Le(fe){var le=ke(fe,"string");return ve(le)==="symbol"?le:String(le)}function xe(fe,le,Me){return le=Le(le),le in fe?Object.defineProperty(fe,le,{value:Me,enumerable:!0,configurable:!0,writable:!0}):fe[le]=Me,fe}function me(fe){if(Array.isArray(fe))return fe}function Ie(fe,le){var Me=fe==null?null:typeof Symbol!="undefined"&&fe[Symbol.iterator]||fe["@@iterator"];if(Me!=null){var Ve,ft,Ht,Zt,jt=[],$t=!0,Je=!1;try{if(Ht=(Me=Me.call(fe)).next,le===0){if(Object(Me)!==Me)return;$t=!1}else for(;!($t=(Ve=Ht.call(Me)).done)&&(jt.push(Ve.value),jt.length!==le);$t=!0);}catch(Et){Je=!0,ft=Et}finally{try{if(!$t&&Me.return!=null&&(Zt=Me.return(),Object(Zt)!==Zt))return}finally{if(Je)throw ft}}return jt}}function st(fe,le){(le==null||le>fe.length)&&(le=fe.length);for(var Me=0,Ve=new Array(le);Me<le;Me++)Ve[Me]=fe[Me];return Ve}function Ne(fe,le){if(fe){if(typeof fe=="string")return st(fe,le);var Me=Object.prototype.toString.call(fe).slice(8,-1);if(Me==="Object"&&fe.constructor&&(Me=fe.constructor.name),Me==="Map"||Me==="Set")return Array.from(fe);if(Me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Me))return st(fe,le)}}function xt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pt(fe,le){return me(fe)||Ie(fe,le)||Ne(fe,le)||xt()}function ct(fe,le){if(fe==null)return{};var Me={},Ve=Object.keys(fe),ft,Ht;for(Ht=0;Ht<Ve.length;Ht++)ft=Ve[Ht],!(le.indexOf(ft)>=0)&&(Me[ft]=fe[ft]);return Me}function rt(fe,le){if(fe==null)return{};var Me=ct(fe,le),Ve,ft;if(Object.getOwnPropertySymbols){var Ht=Object.getOwnPropertySymbols(fe);for(ft=0;ft<Ht.length;ft++)Ve=Ht[ft],!(le.indexOf(Ve)>=0)&&Object.prototype.propertyIsEnumerable.call(fe,Ve)&&(Me[Ve]=fe[Ve])}return Me}var Ee=se(67294);function at(fe){if(Array.isArray(fe))return fe}function Yt(fe,le){var Me=fe==null?null:typeof Symbol!="undefined"&&fe[Symbol.iterator]||fe["@@iterator"];if(Me!=null){var Ve,ft,Ht,Zt,jt=[],$t=!0,Je=!1;try{if(Ht=(Me=Me.call(fe)).next,le===0){if(Object(Me)!==Me)return;$t=!1}else for(;!($t=(Ve=Ht.call(Me)).done)&&(jt.push(Ve.value),jt.length!==le);$t=!0);}catch(Et){Je=!0,ft=Et}finally{try{if(!$t&&Me.return!=null&&(Zt=Me.return(),Object(Zt)!==Zt))return}finally{if(Je)throw ft}}return jt}}function Xe(fe,le){(le==null||le>fe.length)&&(le=fe.length);for(var Me=0,Ve=new Array(le);Me<le;Me++)Ve[Me]=fe[Me];return Ve}function lt(fe,le){if(fe){if(typeof fe=="string")return Xe(fe,le);var Me=Object.prototype.toString.call(fe).slice(8,-1);if(Me==="Object"&&fe.constructor&&(Me=fe.constructor.name),Me==="Map"||Me==="Set")return Array.from(fe);if(Me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Me))return Xe(fe,le)}}function Se(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ce(fe,le){return at(fe)||Yt(fe,le)||lt(fe,le)||Se()}function je(fe){var le=Ee.useRef();le.current=fe;var Me=Ee.useCallback(function(){for(var Ve,ft=arguments.length,Ht=new Array(ft),Zt=0;Zt<ft;Zt++)Ht[Zt]=arguments[Zt];return(Ve=le.current)===null||Ve===void 0?void 0:Ve.call.apply(Ve,[le].concat(Ht))},[]);return Me}function Ue(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Mt=Ue()?Ee.useLayoutEffect:Ee.useEffect,ht=function(le,Me){var Ve=Ee.useRef(!0);Mt(function(){return le(Ve.current)},Me),Mt(function(){return Ve.current=!1,function(){Ve.current=!0}},[])},Ft=function(le,Me){ht(function(Ve){if(!Ve)return le()},Me)},tt=null;function Jt(fe){var le=Ee.useRef(!1),Me=Ee.useState(fe),Ve=Ce(Me,2),ft=Ve[0],Ht=Ve[1];Ee.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Zt(jt,$t){$t&&le.current||Ht(jt)}return[ft,Zt]}function Rt(fe){return fe!==void 0}function yn(fe,le){var Me=le||{},Ve=Me.defaultValue,ft=Me.value,Ht=Me.onChange,Zt=Me.postState,jt=Jt(function(){return Rt(ft)?ft:Rt(Ve)?typeof Ve=="function"?Ve():Ve:typeof fe=="function"?fe():fe}),$t=Ce(jt,2),Je=$t[0],Et=$t[1],Lt=ft!==void 0?ft:Je,Xt=Zt?Zt(Lt):Lt,wt=je(Ht),Nn=Jt([Lt]),et=Ce(Nn,2),It=et[0],gn=et[1];Ft(function(){var An=It[0];Je!==An&&wt(Je,An)},[It]),Ft(function(){Rt(ft)||Et(ft)},[ft]);var hn=je(function(An,Vn){Et(An,Vn),gn([Lt],Vn)});return[Xt,hn]}var tn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(le){var Me=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||Me>=tn.F1&&Me<=tn.F12)return!1;switch(Me){case tn.ALT:case tn.CAPS_LOCK:case tn.CONTEXT_MENU:case tn.CTRL:case tn.DOWN:case tn.END:case tn.ESC:case tn.HOME:case tn.INSERT:case tn.LEFT:case tn.MAC_FF_META:case tn.META:case tn.NUMLOCK:case tn.NUM_CENTER:case tn.PAGE_DOWN:case tn.PAGE_UP:case tn.PAUSE:case tn.PRINT_SCREEN:case tn.RIGHT:case tn.SHIFT:case tn.UP:case tn.WIN_KEY:case tn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=tn.ZERO&&le<=tn.NINE||le>=tn.NUM_ZERO&&le<=tn.NUM_MULTIPLY||le>=tn.A&&le<=tn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case tn.SPACE:case tn.QUESTION_MARK:case tn.NUM_PLUS:case tn.NUM_MINUS:case tn.NUM_PERIOD:case tn.NUM_DIVISION:case tn.SEMICOLON:case tn.DASH:case tn.EQUALS:case tn.COMMA:case tn.PERIOD:case tn.SLASH:case tn.APOSTROPHE:case tn.SINGLE_QUOTE:case tn.OPEN_SQUARE_BRACKET:case tn.BACKSLASH:case tn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Hn=tn,Yn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],tr=Ee.forwardRef(function(fe,le){var Me,Ve=fe.prefixCls,ft=Ve===void 0?"rc-switch":Ve,Ht=fe.className,Zt=fe.checked,jt=fe.defaultChecked,$t=fe.disabled,Je=fe.loadingIcon,Et=fe.checkedChildren,Lt=fe.unCheckedChildren,Xt=fe.onClick,wt=fe.onChange,Nn=fe.onKeyDown,et=rt(fe,Yn),It=yn(!1,{value:Zt,defaultValue:jt}),gn=pt(It,2),hn=gn[0],An=gn[1];function Vn(Fr,nr){var _r=hn;return $t||(_r=Fr,An(_r),wt==null||wt(_r,nr)),_r}function mr(Fr){Fr.which===Hn.LEFT?Vn(!1,Fr):Fr.which===Hn.RIGHT&&Vn(!0,Fr),Nn==null||Nn(Fr)}function ur(Fr){var nr=Vn(!hn,Fr);Xt==null||Xt(nr,Fr)}var dr=Re()(ft,Ht,(Me={},xe(Me,"".concat(ft,"-checked"),hn),xe(Me,"".concat(ft,"-disabled"),$t),Me));return Ee.createElement("button",qe({},et,{type:"button",role:"switch","aria-checked":hn,disabled:$t,className:dr,ref:le,onKeyDown:mr,onClick:ur}),Je,Ee.createElement("span",{className:"".concat(ft,"-inner")},Ee.createElement("span",{className:"".concat(ft,"-inner-checked")},Et),Ee.createElement("span",{className:"".concat(ft,"-inner-unchecked")},Lt)))});tr.displayName="Switch";var Qe=tr,we=se(45353),At=se(53124),Mn=se(98866),_t=se(98675),$e=se(84780),dt=se(14747),qt=se(67968),Xn=se(45503);const bn=fe=>{const{componentCls:le,trackHeightSM:Me,trackPadding:Ve,trackMinWidthSM:ft,innerMinMarginSM:Ht,innerMaxMarginSM:Zt,handleSizeSM:jt}=fe,$t=`${le}-inner`;return{[le]:{[`&${le}-small`]:{minWidth:ft,height:Me,lineHeight:`${Me}px`,[`${le}-inner`]:{paddingInlineStart:Zt,paddingInlineEnd:Ht,[`${$t}-checked`]:{marginInlineStart:`calc(-100% + ${jt+Ve*2}px - ${Zt*2}px)`,marginInlineEnd:`calc(100% - ${jt+Ve*2}px + ${Zt*2}px)`},[`${$t}-unchecked`]:{marginTop:-Me,marginInlineStart:0,marginInlineEnd:0}},[`${le}-handle`]:{width:jt,height:jt},[`${le}-loading-icon`]:{top:(jt-fe.switchLoadingIconSize)/2,fontSize:fe.switchLoadingIconSize},[`&${le}-checked`]:{[`${le}-inner`]:{paddingInlineStart:Ht,paddingInlineEnd:Zt,[`${$t}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${$t}-unchecked`]:{marginInlineStart:`calc(100% - ${jt+Ve*2}px + ${Zt*2}px)`,marginInlineEnd:`calc(-100% + ${jt+Ve*2}px - ${Zt*2}px)`}},[`${le}-handle`]:{insetInlineStart:`calc(100% - ${jt+Ve}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${$t}`]:{[`${$t}-unchecked`]:{marginInlineStart:fe.marginXXS/2,marginInlineEnd:-fe.marginXXS/2}},[`&${le}-checked ${$t}`]:{[`${$t}-checked`]:{marginInlineStart:-fe.marginXXS/2,marginInlineEnd:fe.marginXXS/2}}}}}}},un=fe=>{const{componentCls:le,handleSize:Me}=fe;return{[le]:{[`${le}-loading-icon${fe.iconCls}`]:{position:"relative",top:(Me-fe.fontSize)/2,color:fe.switchLoadingIconColor,verticalAlign:"top"},[`&${le}-checked ${le}-loading-icon`]:{color:fe.switchColor}}}},nn=fe=>{const{componentCls:le,motion:Me,trackPadding:Ve,handleBg:ft,handleShadow:Ht,handleSize:Zt}=fe,jt=`${le}-handle`;return{[le]:{[jt]:{position:"absolute",top:Ve,insetInlineStart:Ve,width:Zt,height:Zt,transition:`all ${fe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ft,borderRadius:Zt/2,boxShadow:Ht,transition:`all ${fe.switchDuration} ease-in-out`,content:'""'}},[`&${le}-checked ${jt}`]:{insetInlineStart:`calc(100% - ${Zt+Ve}px)`},[`&:not(${le}-disabled):active`]:Me?{[`${jt}::before`]:{insetInlineEnd:fe.switchHandleActiveInset,insetInlineStart:0},[`&${le}-checked ${jt}::before`]:{insetInlineEnd:0,insetInlineStart:fe.switchHandleActiveInset}}:{}}}},xn=fe=>{const{componentCls:le,trackHeight:Me,trackPadding:Ve,innerMinMargin:ft,innerMaxMargin:Ht,handleSize:Zt}=fe,jt=`${le}-inner`;return{[le]:{[jt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ht,paddingInlineEnd:ft,transition:`padding-inline-start ${fe.switchDuration} ease-in-out, padding-inline-end ${fe.switchDuration} ease-in-out`,[`${jt}-checked, ${jt}-unchecked`]:{display:"block",color:fe.colorTextLightSolid,fontSize:fe.fontSizeSM,transition:`margin-inline-start ${fe.switchDuration} ease-in-out, margin-inline-end ${fe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${jt}-checked`]:{marginInlineStart:`calc(-100% + ${Zt+Ve*2}px - ${Ht*2}px)`,marginInlineEnd:`calc(100% - ${Zt+Ve*2}px + ${Ht*2}px)`},[`${jt}-unchecked`]:{marginTop:-Me,marginInlineStart:0,marginInlineEnd:0}},[`&${le}-checked ${jt}`]:{paddingInlineStart:ft,paddingInlineEnd:Ht,[`${jt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${jt}-unchecked`]:{marginInlineStart:`calc(100% - ${Zt+Ve*2}px + ${Ht*2}px)`,marginInlineEnd:`calc(-100% + ${Zt+Ve*2}px - ${Ht*2}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${jt}`]:{[`${jt}-unchecked`]:{marginInlineStart:Ve*2,marginInlineEnd:-Ve*2}},[`&${le}-checked ${jt}`]:{[`${jt}-checked`]:{marginInlineStart:-Ve*2,marginInlineEnd:Ve*2}}}}}},Pn=fe=>{const{componentCls:le,trackHeight:Me,trackMinWidth:Ve}=fe;return{[le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,dt.Wf)(fe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ve,height:Me,lineHeight:`${Me}px`,verticalAlign:"middle",background:fe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${fe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${le}-disabled)`]:{background:fe.colorTextTertiary}}),(0,dt.Qy)(fe)),{[`&${le}-checked`]:{background:fe.switchColor,[`&:hover:not(${le}-disabled)`]:{background:fe.colorPrimaryHover}},[`&${le}-loading, &${le}-disabled`]:{cursor:"not-allowed",opacity:fe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${le}-rtl`]:{direction:"rtl"}})}};var De=(0,qt.Z)("Switch",fe=>{const le=(0,Xn.TS)(fe,{switchDuration:fe.motionDurationMid,switchColor:fe.colorPrimary,switchDisabledOpacity:fe.opacityLoading,switchLoadingIconSize:fe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${fe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Pn(le),xn(le),nn(le),un(le),bn(le)]},fe=>{const{fontSize:le,lineHeight:Me,controlHeight:Ve,colorWhite:ft}=fe,Ht=le*Me,Zt=Ve/2,jt=2,$t=Ht-jt*2,Je=Zt-jt*2;return{trackHeight:Ht,trackHeightSM:Zt,trackMinWidth:$t*2+jt*4,trackMinWidthSM:Je*2+jt*2,trackPadding:jt,handleBg:ft,handleSize:$t,handleSizeSM:Je,handleShadow:`0 2px 4px 0 ${new $e.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:$t/2,innerMaxMargin:$t+jt+jt*2,innerMinMarginSM:Je/2,innerMaxMarginSM:Je+jt+jt*2}}),ue=function(fe,le){var Me={};for(var Ve in fe)Object.prototype.hasOwnProperty.call(fe,Ve)&&le.indexOf(Ve)<0&&(Me[Ve]=fe[Ve]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Ve=Object.getOwnPropertySymbols(fe);ft<Ve.length;ft++)le.indexOf(Ve[ft])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ve[ft])&&(Me[Ve[ft]]=fe[Ve[ft]]);return Me};const ce=Ee.forwardRef((fe,le)=>{const{prefixCls:Me,size:Ve,disabled:ft,loading:Ht,className:Zt,rootClassName:jt,style:$t}=fe,Je=ue(fe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Et,direction:Lt,switch:Xt}=Ee.useContext(At.E_),wt=Ee.useContext(Mn.Z),Nn=(ft!=null?ft:wt)||Ht,et=Et("switch",Me),It=Ee.createElement("div",{className:`${et}-handle`},Ht&&Ee.createElement(ae.Z,{className:`${et}-loading-icon`})),[gn,hn]=De(et),An=(0,_t.Z)(Ve),Vn=Re()(Xt==null?void 0:Xt.className,{[`${et}-small`]:An==="small",[`${et}-loading`]:Ht,[`${et}-rtl`]:Lt==="rtl"},Zt,jt,hn),mr=Object.assign(Object.assign({},Xt==null?void 0:Xt.style),$t);return gn(Ee.createElement(we.Z,{component:"Switch"},Ee.createElement(Qe,Object.assign({},Je,{prefixCls:et,className:Vn,style:mr,disabled:Nn,ref:le,loadingIcon:It}))))});ce.__ANT_SWITCH=!0;var he=ce},66368:function(dn,en,se){"use strict";se.d(en,{default:function(){return Li}});var ae=se(73475),Pe=se(25877),Re=se(38308),qe=se(94184),ve=se.n(qe),ke=se(87462),Le=se(4942),xe=se(1413),me=se(97685),Ie=se(71002),st=se(45987),Ne=se(67294),xt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Te=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Te)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Te==null?void 0:Te.substr(0,4))};function pt(Te){var He=Ne.useRef();He.current=Te;var Ke=Ne.useCallback(function(){for(var Ge,ut=arguments.length,vt=new Array(ut),Kt=0;Kt<ut;Kt++)vt[Kt]=arguments[Kt];return(Ge=He.current)===null||Ge===void 0?void 0:Ge.call.apply(Ge,[He].concat(vt))},[]);return Ke}function ct(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var rt=ct()?Ne.useLayoutEffect:Ne.useEffect,Ee=function(He,Ke){var Ge=Ne.useRef(!0);rt(function(){return He(Ge.current)},Ke),rt(function(){return Ge.current=!1,function(){Ge.current=!0}},[])},at=function(He,Ke){Ee(function(Ge){if(!Ge)return He()},Ke)},Yt=null;function Xe(Te){var He=Ne.useRef(!1),Ke=Ne.useState(Te),Ge=(0,me.Z)(Ke,2),ut=Ge[0],vt=Ge[1];Ne.useEffect(function(){return He.current=!1,function(){He.current=!0}},[]);function Kt(vn,kn){kn&&He.current||vt(vn)}return[ut,Kt]}function lt(Te){return Te!==void 0}function Se(Te,He){var Ke=He||{},Ge=Ke.defaultValue,ut=Ke.value,vt=Ke.onChange,Kt=Ke.postState,vn=Xe(function(){return lt(ut)?ut:lt(Ge)?typeof Ge=="function"?Ge():Ge:typeof Te=="function"?Te():Te}),kn=(0,me.Z)(vn,2),yr=kn[0],Pr=kn[1],cr=ut!==void 0?ut:yr,Wn=Kt?Kt(cr):cr,Fn=pt(vt),$n=Xe([cr]),rr=(0,me.Z)($n,2),Ir=rr[0],gr=rr[1];at(function(){var wr=Ir[0];yr!==wr&&Fn(yr,wr)},[Ir]),at(function(){lt(ut)||Pr(ut)},[ut]);var fr=pt(function(wr,Sr){Pr(wr,Sr),gr([cr],Sr)});return[Wn,fr]}var Ce=se(62874),je=(0,Ne.createContext)(null),Ue=Ne.forwardRef(function(Te,He){var Ke=Te.prefixCls,Ge=Te.className,ut=Te.style,vt=Te.id,Kt=Te.active,vn=Te.tabKey,kn=Te.children;return Ne.createElement("div",{id:vt&&"".concat(vt,"-panel-").concat(vn),role:"tabpanel",tabIndex:Kt?0:-1,"aria-labelledby":vt&&"".concat(vt,"-tab-").concat(vn),"aria-hidden":!Kt,style:ut,className:ve()(Ke,Kt&&"".concat(Ke,"-active"),Ge),ref:He},kn)}),Mt=Ue,ht=["key","forceRender","style","className"];function Ft(Te){var He=Te.id,Ke=Te.activeKey,Ge=Te.animated,ut=Te.tabPosition,vt=Te.destroyInactiveTabPane,Kt=Ne.useContext(je),vn=Kt.prefixCls,kn=Kt.tabs,yr=Ge.tabPane,Pr="".concat(vn,"-tabpane");return Ne.createElement("div",{className:ve()("".concat(vn,"-content-holder"))},Ne.createElement("div",{className:ve()("".concat(vn,"-content"),"".concat(vn,"-content-").concat(ut),(0,Le.Z)({},"".concat(vn,"-content-animated"),yr))},kn.map(function(cr){var Wn=cr.key,Fn=cr.forceRender,$n=cr.style,rr=cr.className,Ir=(0,st.Z)(cr,ht),gr=Wn===Ke;return Ne.createElement(Ce.Z,(0,ke.Z)({key:Wn,visible:gr,forceRender:Fn,removeOnLeave:!!vt,leavedClassName:"".concat(Pr,"-hidden")},Ge.tabPaneMotion),function(fr,wr){var Sr=fr.style,Nr=fr.className;return Ne.createElement(Mt,(0,ke.Z)({},Ir,{prefixCls:Pr,id:He,tabKey:Wn,animated:yr,active:gr,style:(0,xe.Z)((0,xe.Z)({},$n),Sr),className:ve()(rr,Nr),ref:wr}))})})))}var tt=se(74902),Jt=se(48555),Rt=se(59864);function yn(Te,He,Ke){var Ge=Ne.useRef({});return(!("value"in Ge.current)||Ke(Ge.current.condition,He))&&(Ge.current.value=Te(),Ge.current.condition=He),Ge.current.value}function tn(Te,He){typeof Te=="function"?Te(He):(0,Ie.Z)(Te)==="object"&&Te&&"current"in Te&&(Te.current=He)}function Hn(){for(var Te=arguments.length,He=new Array(Te),Ke=0;Ke<Te;Ke++)He[Ke]=arguments[Ke];var Ge=He.filter(function(ut){return ut});return Ge.length<=1?Ge[0]:function(ut){He.forEach(function(vt){tn(vt,ut)})}}function Yn(){for(var Te=arguments.length,He=new Array(Te),Ke=0;Ke<Te;Ke++)He[Ke]=arguments[Ke];return yn(function(){return Hn.apply(void 0,He)},He,function(Ge,ut){return Ge.length===ut.length&&Ge.every(function(vt,Kt){return vt===ut[Kt]})})}function tr(Te){var He,Ke,Ge=isMemo(Te)?Te.type.type:Te.type;return!(typeof Ge=="function"&&!((He=Ge.prototype)!==null&&He!==void 0&&He.render)||typeof Te=="function"&&!((Ke=Te.prototype)!==null&&Ke!==void 0&&Ke.render))}var Qe={width:0,height:0,left:0,top:0};function we(Te,He,Ke){return(0,Ne.useMemo)(function(){for(var Ge,ut=new Map,vt=He.get((Ge=Te[0])===null||Ge===void 0?void 0:Ge.key)||Qe,Kt=vt.left+vt.width,vn=0;vn<Te.length;vn+=1){var kn=Te[vn].key,yr=He.get(kn);if(!yr){var Pr;yr=He.get((Pr=Te[vn-1])===null||Pr===void 0?void 0:Pr.key)||Qe}var cr=ut.get(kn)||(0,xe.Z)({},yr);cr.right=Kt-cr.left-cr.width,ut.set(kn,cr)}return ut},[Te.map(function(Ge){return Ge.key}).join("_"),He,Ke])}function At(Te,He){var Ke=Ne.useRef(Te),Ge=Ne.useState({}),ut=(0,me.Z)(Ge,2),vt=ut[1];function Kt(vn){var kn=typeof vn=="function"?vn(Ke.current):vn;kn!==Ke.current&&He(kn,Ke.current),Ke.current=kn,vt({})}return[Ke.current,Kt]}var Mn=.1,_t=.01,$e=20,dt=Math.pow(.995,$e);function qt(Te,He){var Ke=(0,Ne.useState)(),Ge=(0,me.Z)(Ke,2),ut=Ge[0],vt=Ge[1],Kt=(0,Ne.useState)(0),vn=(0,me.Z)(Kt,2),kn=vn[0],yr=vn[1],Pr=(0,Ne.useState)(0),cr=(0,me.Z)(Pr,2),Wn=cr[0],Fn=cr[1],$n=(0,Ne.useState)(),rr=(0,me.Z)($n,2),Ir=rr[0],gr=rr[1],fr=(0,Ne.useRef)();function wr(bt){var sn=bt.touches[0],Ln=sn.screenX,zn=sn.screenY;vt({x:Ln,y:zn}),window.clearInterval(fr.current)}function Sr(bt){if(ut){bt.preventDefault();var sn=bt.touches[0],Ln=sn.screenX,zn=sn.screenY;vt({x:Ln,y:zn});var ar=Ln-ut.x,ot=zn-ut.y;He(ar,ot);var Ye=Date.now();yr(Ye),Fn(Ye-kn),gr({x:ar,y:ot})}}function Nr(){if(ut&&(vt(null),gr(null),Ir)){var bt=Ir.x/Wn,sn=Ir.y/Wn,Ln=Math.abs(bt),zn=Math.abs(sn);if(Math.max(Ln,zn)<Mn)return;var ar=bt,ot=sn;fr.current=window.setInterval(function(){if(Math.abs(ar)<_t&&Math.abs(ot)<_t){window.clearInterval(fr.current);return}ar*=dt,ot*=dt,He(ar*$e,ot*$e)},$e)}}var Fe=(0,Ne.useRef)();function We(bt){var sn=bt.deltaX,Ln=bt.deltaY,zn=0,ar=Math.abs(sn),ot=Math.abs(Ln);ar===ot?zn=Fe.current==="x"?sn:Ln:ar>ot?(zn=sn,Fe.current="x"):(zn=Ln,Fe.current="y"),He(-zn,-zn)&&bt.preventDefault()}var Wt=(0,Ne.useRef)(null);Wt.current={onTouchStart:wr,onTouchMove:Sr,onTouchEnd:Nr,onWheel:We},Ne.useEffect(function(){function bt(ar){Wt.current.onTouchStart(ar)}function sn(ar){Wt.current.onTouchMove(ar)}function Ln(ar){Wt.current.onTouchEnd(ar)}function zn(ar){Wt.current.onWheel(ar)}return document.addEventListener("touchmove",sn,{passive:!1}),document.addEventListener("touchend",Ln,{passive:!1}),Te.current.addEventListener("touchstart",bt,{passive:!1}),Te.current.addEventListener("wheel",zn),function(){document.removeEventListener("touchmove",sn),document.removeEventListener("touchend",Ln)}},[])}function Xn(Te){var He=(0,Ne.useState)(0),Ke=(0,me.Z)(He,2),Ge=Ke[0],ut=Ke[1],vt=(0,Ne.useRef)(0),Kt=(0,Ne.useRef)();return Kt.current=Te,at(function(){var vn;(vn=Kt.current)===null||vn===void 0||vn.call(Kt)},[Ge]),function(){vt.current===Ge&&(vt.current+=1,ut(vt.current))}}function bn(Te){var He=(0,Ne.useRef)([]),Ke=(0,Ne.useState)({}),Ge=(0,me.Z)(Ke,2),ut=Ge[1],vt=(0,Ne.useRef)(typeof Te=="function"?Te():Te),Kt=Xn(function(){var kn=vt.current;He.current.forEach(function(yr){kn=yr(kn)}),He.current=[],vt.current=kn,ut({})});function vn(kn){He.current.push(kn),Kt()}return[vt.current,vn]}var un={width:0,height:0,left:0,top:0,right:0};function nn(Te,He,Ke,Ge,ut,vt,Kt){var vn=Kt.tabs,kn=Kt.tabPosition,yr=Kt.rtl,Pr,cr,Wn;return["top","bottom"].includes(kn)?(Pr="width",cr=yr?"right":"left",Wn=Math.abs(Ke)):(Pr="height",cr="top",Wn=-Ke),(0,Ne.useMemo)(function(){if(!vn.length)return[0,0];for(var Fn=vn.length,$n=Fn,rr=0;rr<Fn;rr+=1){var Ir=Te.get(vn[rr].key)||un;if(Ir[cr]+Ir[Pr]>Wn+He){$n=rr-1;break}}for(var gr=0,fr=Fn-1;fr>=0;fr-=1){var wr=Te.get(vn[fr].key)||un;if(wr[cr]<Wn){gr=fr+1;break}}return gr>=$n?[0,0]:[gr,$n]},[Te,He,Ge,ut,vt,Wn,kn,vn.map(function(Fn){return Fn.key}).join("_"),yr])}function xn(Te){var He;return Te instanceof Map?(He={},Te.forEach(function(Ke,Ge){He[Ge]=Ke})):He=Te,JSON.stringify(He)}var Pn="TABS_DQ";function De(Te){return String(Te).replace(/"/g,Pn)}function ue(Te,He,Ke,Ge){return!(!Ke||Ge||Te===!1||Te===void 0&&(He===!1||He===null))}function ce(Te,He){var Ke=Te.prefixCls,Ge=Te.editable,ut=Te.locale,vt=Te.style;return!Ge||Ge.showAdd===!1?null:Ne.createElement("button",{ref:He,type:"button",className:"".concat(Ke,"-nav-add"),style:vt,"aria-label":(ut==null?void 0:ut.addAriaLabel)||"Add tab",onClick:function(vn){Ge.onEdit("add",{event:vn})}},Ge.addIcon||"+")}var he=Ne.forwardRef(ce),fe=Ne.forwardRef(function(Te,He){var Ke=Te.position,Ge=Te.prefixCls,ut=Te.extra;if(!ut)return null;var vt,Kt={};return(0,Ie.Z)(ut)==="object"&&!Ne.isValidElement(ut)?Kt=ut:Kt.right=ut,Ke==="right"&&(vt=Kt.right),Ke==="left"&&(vt=Kt.left),vt?Ne.createElement("div",{className:"".concat(Ge,"-extra-content"),ref:He},vt):null}),le=fe,Me=se(62709);function Ve(Te,He,Ke){var Ge=React.useRef({});return(!("value"in Ge.current)||Ke(Ge.current.condition,He))&&(Ge.current.value=Te(),Ge.current.condition=He),Ge.current.value}function ft(Te,He){typeof Te=="function"?Te(He):(0,Ie.Z)(Te)==="object"&&Te&&"current"in Te&&(Te.current=He)}function Ht(){for(var Te=arguments.length,He=new Array(Te),Ke=0;Ke<Te;Ke++)He[Ke]=arguments[Ke];var Ge=He.filter(function(ut){return ut});return Ge.length<=1?Ge[0]:function(ut){He.forEach(function(vt){ft(vt,ut)})}}function Zt(){for(var Te=arguments.length,He=new Array(Te),Ke=0;Ke<Te;Ke++)He[Ke]=arguments[Ke];return useMemo(function(){return Ht.apply(void 0,He)},He,function(Ge,ut){return Ge.length===ut.length&&Ge.every(function(vt,Kt){return vt===ut[Kt]})})}function jt(Te){var He,Ke,Ge=(0,Rt.isMemo)(Te)?Te.type.type:Te.type;return!(typeof Ge=="function"&&!((He=Ge.prototype)!==null&&He!==void 0&&He.render)||typeof Te=="function"&&!((Ke=Te.prototype)!==null&&Ke!==void 0&&Ke.render))}var $t={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(He){var Ke=He.keyCode;if(He.altKey&&!He.ctrlKey||He.metaKey||Ke>=$t.F1&&Ke<=$t.F12)return!1;switch(Ke){case $t.ALT:case $t.CAPS_LOCK:case $t.CONTEXT_MENU:case $t.CTRL:case $t.DOWN:case $t.END:case $t.ESC:case $t.HOME:case $t.INSERT:case $t.LEFT:case $t.MAC_FF_META:case $t.META:case $t.NUMLOCK:case $t.NUM_CENTER:case $t.PAGE_DOWN:case $t.PAGE_UP:case $t.PAUSE:case $t.PRINT_SCREEN:case $t.RIGHT:case $t.SHIFT:case $t.UP:case $t.WIN_KEY:case $t.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(He){if(He>=$t.ZERO&&He<=$t.NINE||He>=$t.NUM_ZERO&&He<=$t.NUM_MULTIPLY||He>=$t.A&&He<=$t.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&He===0)return!0;switch(He){case $t.SPACE:case $t.QUESTION_MARK:case $t.NUM_PLUS:case $t.NUM_MINUS:case $t.NUM_PERIOD:case $t.NUM_DIVISION:case $t.SEMICOLON:case $t.DASH:case $t.EQUALS:case $t.COMMA:case $t.PERIOD:case $t.SLASH:case $t.APOSTROPHE:case $t.SINGLE_QUOTE:case $t.OPEN_SQUARE_BRACKET:case $t.BACKSLASH:case $t.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Je=$t,Et=function(He){return+setTimeout(He,16)},Lt=function(He){return clearTimeout(He)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Et=function(He){return window.requestAnimationFrame(He)},Lt=function(He){return window.cancelAnimationFrame(He)});var Xt=0,wt=new Map;function Nn(Te){wt.delete(Te)}var et=function(He){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xt+=1;var Ge=Xt;function ut(vt){if(vt===0)Nn(Ge),He();else{var Kt=Et(function(){ut(vt-1)});wt.set(Ge,Kt)}}return ut(Ke),Ge};et.cancel=function(Te){var He=wt.get(Te);return Nn(He),Lt(He)};var It=et,gn=Je.ESC,hn=Je.TAB;function An(Te){var He=Te.visible,Ke=Te.triggerRef,Ge=Te.onVisibleChange,ut=Te.autoFocus,vt=Te.overlayRef,Kt=Ne.useRef(!1),vn=function(){if(He){var cr,Wn;(cr=Ke.current)===null||cr===void 0||(Wn=cr.focus)===null||Wn===void 0||Wn.call(cr),Ge==null||Ge(!1)}},kn=function(){var cr;return(cr=vt.current)!==null&&cr!==void 0&&cr.focus?(vt.current.focus(),Kt.current=!0,!0):!1},yr=function(cr){switch(cr.keyCode){case gn:vn();break;case hn:{var Wn=!1;Kt.current||(Wn=kn()),Wn?cr.preventDefault():vn();break}}};Ne.useEffect(function(){return He?(window.addEventListener("keydown",yr),ut&&It(kn,3),function(){window.removeEventListener("keydown",yr),Kt.current=!1}):function(){Kt.current=!1}},[He])}var Vn=(0,Ne.forwardRef)(function(Te,He){var Ke=Te.overlay,Ge=Te.arrow,ut=Te.prefixCls,vt=(0,Ne.useMemo)(function(){var vn;return typeof Ke=="function"?vn=Ke():vn=Ke,vn},[Ke]),Kt=Ht(He,vt==null?void 0:vt.ref);return Ne.createElement(Ne.Fragment,null,Ge&&Ne.createElement("div",{className:"".concat(ut,"-arrow")}),Ne.cloneElement(vt,{ref:jt(vt)?Kt:void 0}))}),mr=Vn,ur={adjustX:1,adjustY:1},dr=[0,0],Fr={topLeft:{points:["bl","tl"],overflow:ur,offset:[0,-4],targetOffset:dr},top:{points:["bc","tc"],overflow:ur,offset:[0,-4],targetOffset:dr},topRight:{points:["br","tr"],overflow:ur,offset:[0,-4],targetOffset:dr},bottomLeft:{points:["tl","bl"],overflow:ur,offset:[0,4],targetOffset:dr},bottom:{points:["tc","bc"],overflow:ur,offset:[0,4],targetOffset:dr},bottomRight:{points:["tr","br"],overflow:ur,offset:[0,4],targetOffset:dr}},nr=Fr,_r=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function oi(Te,He){var Ke,Ge=Te.arrow,ut=Ge===void 0?!1:Ge,vt=Te.prefixCls,Kt=vt===void 0?"rc-dropdown":vt,vn=Te.transitionName,kn=Te.animation,yr=Te.align,Pr=Te.placement,cr=Pr===void 0?"bottomLeft":Pr,Wn=Te.placements,Fn=Wn===void 0?nr:Wn,$n=Te.getPopupContainer,rr=Te.showAction,Ir=Te.hideAction,gr=Te.overlayClassName,fr=Te.overlayStyle,wr=Te.visible,Sr=Te.trigger,Nr=Sr===void 0?["hover"]:Sr,Fe=Te.autoFocus,We=Te.overlay,Wt=Te.children,bt=Te.onVisibleChange,sn=(0,st.Z)(Te,_r),Ln=Ne.useState(),zn=(0,me.Z)(Ln,2),ar=zn[0],ot=zn[1],Ye="visible"in Te?wr:ar,yt=Ne.useRef(null),Qt=Ne.useRef(null),_n=Ne.useRef(null);Ne.useImperativeHandle(He,function(){return yt.current});var mn=function(Br){ot(Br),bt==null||bt(Br)};An({visible:Ye,triggerRef:_n,onVisibleChange:mn,autoFocus:Fe,overlayRef:Qt});var ln=function(Br){var Cr=Te.onOverlayClick;ot(!1),Cr&&Cr(Br)},sr=function(){return Ne.createElement(mr,{ref:Qt,overlay:We,prefixCls:Kt,arrow:ut})},ir=function(){return typeof We=="function"?sr:sr()},xr=function(){var Br=Te.minOverlayWidthMatchTrigger,Cr=Te.alignPoint;return"minOverlayWidthMatchTrigger"in Te?Br:!Cr},er=function(){var Br=Te.openClassName;return Br!==void 0?Br:"".concat(Kt,"-open")},Tn=Ne.cloneElement(Wt,{className:ve()((Ke=Wt.props)===null||Ke===void 0?void 0:Ke.className,Ye&&er()),ref:jt(Wt)?Ht(_n,Wt.ref):void 0}),Er=Ir;return!Er&&Nr.indexOf("contextMenu")!==-1&&(Er=["click"]),Ne.createElement(Me.Z,(0,ke.Z)({builtinPlacements:Fn},sn,{prefixCls:Kt,ref:yt,popupClassName:ve()(gr,(0,Le.Z)({},"".concat(Kt,"-show-arrow"),ut)),popupStyle:fr,action:Nr,showAction:rr,hideAction:Er,popupPlacement:cr,popupAlign:yr,popupTransitionName:vn,popupAnimation:kn,popupVisible:Ye,stretch:xr()?"minWidth":"",popup:ir(),onPopupVisibleChange:mn,onPopupClick:ln,getPopupContainer:$n}),Tn)}var Wr=Ne.forwardRef(oi),xi=Wr,ti=se(78595),Ct={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(He){var Ke=He.keyCode;if(He.altKey&&!He.ctrlKey||He.metaKey||Ke>=Ct.F1&&Ke<=Ct.F12)return!1;switch(Ke){case Ct.ALT:case Ct.CAPS_LOCK:case Ct.CONTEXT_MENU:case Ct.CTRL:case Ct.DOWN:case Ct.END:case Ct.ESC:case Ct.HOME:case Ct.INSERT:case Ct.LEFT:case Ct.MAC_FF_META:case Ct.META:case Ct.NUMLOCK:case Ct.NUM_CENTER:case Ct.PAGE_DOWN:case Ct.PAGE_UP:case Ct.PAUSE:case Ct.PRINT_SCREEN:case Ct.RIGHT:case Ct.SHIFT:case Ct.UP:case Ct.WIN_KEY:case Ct.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(He){if(He>=Ct.ZERO&&He<=Ct.NINE||He>=Ct.NUM_ZERO&&He<=Ct.NUM_MULTIPLY||He>=Ct.A&&He<=Ct.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&He===0)return!0;switch(He){case Ct.SPACE:case Ct.QUESTION_MARK:case Ct.NUM_PLUS:case Ct.NUM_MINUS:case Ct.NUM_PERIOD:case Ct.NUM_DIVISION:case Ct.SEMICOLON:case Ct.DASH:case Ct.EQUALS:case Ct.COMMA:case Ct.PERIOD:case Ct.SLASH:case Ct.APOSTROPHE:case Ct.SINGLE_QUOTE:case Ct.OPEN_SQUARE_BRACKET:case Ct.BACKSLASH:case Ct.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},wn=Ct;function Rn(Te,He){var Ke=Te.prefixCls,Ge=Te.id,ut=Te.tabs,vt=Te.locale,Kt=Te.mobile,vn=Te.moreIcon,kn=vn===void 0?"More":vn,yr=Te.moreTransitionName,Pr=Te.style,cr=Te.className,Wn=Te.editable,Fn=Te.tabBarGutter,$n=Te.rtl,rr=Te.removeAriaLabel,Ir=Te.onTabClick,gr=Te.getPopupContainer,fr=Te.popupClassName,wr=(0,Ne.useState)(!1),Sr=(0,me.Z)(wr,2),Nr=Sr[0],Fe=Sr[1],We=(0,Ne.useState)(null),Wt=(0,me.Z)(We,2),bt=Wt[0],sn=Wt[1],Ln="".concat(Ge,"-more-popup"),zn="".concat(Ke,"-dropdown"),ar=bt!==null?"".concat(Ln,"-").concat(bt):null,ot=vt==null?void 0:vt.dropdownAriaLabel;function Ye(ir,xr){ir.preventDefault(),ir.stopPropagation(),Wn.onEdit("remove",{key:xr,event:ir})}var yt=Ne.createElement(ti.ZP,{onClick:function(xr){var er=xr.key,Tn=xr.domEvent;Ir(er,Tn),Fe(!1)},prefixCls:"".concat(zn,"-menu"),id:Ln,tabIndex:-1,role:"listbox","aria-activedescendant":ar,selectedKeys:[bt],"aria-label":ot!==void 0?ot:"expanded dropdown"},ut.map(function(ir){var xr=ir.closable,er=ir.disabled,Tn=ir.closeIcon,Er=ir.key,zr=ir.label,Br=ue(xr,Tn,Wn,er);return Ne.createElement(ti.sN,{key:Er,id:"".concat(Ln,"-").concat(Er),role:"option","aria-controls":Ge&&"".concat(Ge,"-panel-").concat(Er),disabled:er},Ne.createElement("span",null,zr),Br&&Ne.createElement("button",{type:"button","aria-label":rr||"remove",tabIndex:0,className:"".concat(zn,"-menu-item-remove"),onClick:function(Dr){Dr.stopPropagation(),Ye(Dr,Er)}},Tn||Wn.removeIcon||"\xD7"))}));function Qt(ir){for(var xr=ut.filter(function(Br){return!Br.disabled}),er=xr.findIndex(function(Br){return Br.key===bt})||0,Tn=xr.length,Er=0;Er<Tn;Er+=1){er=(er+ir+Tn)%Tn;var zr=xr[er];if(!zr.disabled){sn(zr.key);return}}}function _n(ir){var xr=ir.which;if(!Nr){[wn.DOWN,wn.SPACE,wn.ENTER].includes(xr)&&(Fe(!0),ir.preventDefault());return}switch(xr){case wn.UP:Qt(-1),ir.preventDefault();break;case wn.DOWN:Qt(1),ir.preventDefault();break;case wn.ESC:Fe(!1);break;case wn.SPACE:case wn.ENTER:bt!==null&&Ir(bt,ir);break}}(0,Ne.useEffect)(function(){var ir=document.getElementById(ar);ir&&ir.scrollIntoView&&ir.scrollIntoView(!1)},[bt]),(0,Ne.useEffect)(function(){Nr||sn(null)},[Nr]);var mn=(0,Le.Z)({},$n?"marginRight":"marginLeft",Fn);ut.length||(mn.visibility="hidden",mn.order=1);var ln=ve()((0,Le.Z)({},"".concat(zn,"-rtl"),$n)),sr=Kt?null:Ne.createElement(xi,{prefixCls:zn,overlay:yt,trigger:["hover"],visible:ut.length?Nr:!1,transitionName:yr,onVisibleChange:Fe,overlayClassName:ve()(ln,fr),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:gr},Ne.createElement("button",{type:"button",className:"".concat(Ke,"-nav-more"),style:mn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Ln,id:"".concat(Ge,"-more"),"aria-expanded":Nr,onKeyDown:_n},kn));return Ne.createElement("div",{className:ve()("".concat(Ke,"-nav-operations"),cr),style:Pr,ref:He},sr,Ne.createElement(he,{prefixCls:Ke,locale:vt,editable:Wn}))}var an=Ne.memo(Ne.forwardRef(Rn),function(Te,He){return He.tabMoving});function vr(Te){var He,Ke=Te.prefixCls,Ge=Te.id,ut=Te.active,vt=Te.tab,Kt=vt.key,vn=vt.label,kn=vt.disabled,yr=vt.closeIcon,Pr=Te.closable,cr=Te.renderWrapper,Wn=Te.removeAriaLabel,Fn=Te.editable,$n=Te.onClick,rr=Te.onFocus,Ir=Te.style,gr="".concat(Ke,"-tab"),fr=ue(Pr,yr,Fn,kn);function wr(Fe){kn||$n(Fe)}function Sr(Fe){Fe.preventDefault(),Fe.stopPropagation(),Fn.onEdit("remove",{key:Kt,event:Fe})}var Nr=Ne.createElement("div",{key:Kt,"data-node-key":De(Kt),className:ve()(gr,(He={},(0,Le.Z)(He,"".concat(gr,"-with-remove"),fr),(0,Le.Z)(He,"".concat(gr,"-active"),ut),(0,Le.Z)(He,"".concat(gr,"-disabled"),kn),He)),style:Ir,onClick:wr},Ne.createElement("div",{role:"tab","aria-selected":ut,id:Ge&&"".concat(Ge,"-tab-").concat(Kt),className:"".concat(gr,"-btn"),"aria-controls":Ge&&"".concat(Ge,"-panel-").concat(Kt),"aria-disabled":kn,tabIndex:kn?null:0,onClick:function(We){We.stopPropagation(),wr(We)},onKeyDown:function(We){[wn.SPACE,wn.ENTER].includes(We.which)&&(We.preventDefault(),wr(We))},onFocus:rr},vn),fr&&Ne.createElement("button",{type:"button","aria-label":Wn||"remove",tabIndex:0,className:"".concat(gr,"-remove"),onClick:function(We){We.stopPropagation(),Sr(We)}},yr||Fn.removeIcon||"\xD7"));return cr?cr(Nr):Nr}var lr=vr,Gn=function(He){return+setTimeout(He,16)},jn=function(He){return clearTimeout(He)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Gn=function(He){return window.requestAnimationFrame(He)},jn=function(He){return window.cancelAnimationFrame(He)});var nt=0,mt=new Map;function Bt(Te){mt.delete(Te)}var rn=function(He){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;nt+=1;var Ge=nt;function ut(vt){if(vt===0)Bt(Ge),He();else{var Kt=Gn(function(){ut(vt-1)});mt.set(Ge,Kt)}}return ut(Ke),Ge};rn.cancel=function(Te){var He=mt.get(Te);return Bt(He),jn(He)};var Ze=rn,St=function(He){var Ke=He.activeTabOffset,Ge=He.horizontal,ut=He.rtl,vt=He.indicatorSize,Kt=(0,Ne.useState)(),vn=(0,me.Z)(Kt,2),kn=vn[0],yr=vn[1],Pr=(0,Ne.useRef)(),cr=function($n){return typeof vt=="function"?vt($n):typeof vt=="number"?vt:$n};function Wn(){Ze.cancel(Pr.current)}return(0,Ne.useEffect)(function(){var Fn={};return Ke&&(Ge?(ut?(Fn.right=Ke.right+Ke.width/2,Fn.transform="translateX(50%)"):(Fn.left=Ke.left+Ke.width/2,Fn.transform="translateX(-50%)"),Fn.width=cr(Ke.width)):(Fn.top=Ke.top+Ke.height/2,Fn.transform="translateY(-50%)",Fn.height=cr(Ke.height))),Wn(),Pr.current=Ze(function(){yr(Fn)}),Wn},[Ke,Ge,ut,vt]),{style:kn}},Vt=St,Nt=function(He){var Ke=He.current||{},Ge=Ke.offsetWidth,ut=Ge===void 0?0:Ge,vt=Ke.offsetHeight,Kt=vt===void 0?0:vt;return[ut,Kt]},cn=function(He,Ke){return He[Ke?0:1]};function on(Te,He){var Ke,Ge=Ne.useContext(je),ut=Ge.prefixCls,vt=Ge.tabs,Kt=Te.className,vn=Te.style,kn=Te.id,yr=Te.animated,Pr=Te.activeKey,cr=Te.rtl,Wn=Te.extra,Fn=Te.editable,$n=Te.locale,rr=Te.tabPosition,Ir=Te.tabBarGutter,gr=Te.children,fr=Te.onTabClick,wr=Te.onTabScroll,Sr=Te.indicatorSize,Nr=(0,Ne.useRef)(),Fe=(0,Ne.useRef)(),We=(0,Ne.useRef)(),Wt=(0,Ne.useRef)(),bt=(0,Ne.useRef)(),sn=(0,Ne.useRef)(),Ln=(0,Ne.useRef)(),zn=rr==="top"||rr==="bottom",ar=At(0,function(ia,Vi){zn&&wr&&wr({direction:ia>Vi?"left":"right"})}),ot=(0,me.Z)(ar,2),Ye=ot[0],yt=ot[1],Qt=At(0,function(ia,Vi){!zn&&wr&&wr({direction:ia>Vi?"top":"bottom"})}),_n=(0,me.Z)(Qt,2),mn=_n[0],ln=_n[1],sr=(0,Ne.useState)([0,0]),ir=(0,me.Z)(sr,2),xr=ir[0],er=ir[1],Tn=(0,Ne.useState)([0,0]),Er=(0,me.Z)(Tn,2),zr=Er[0],Br=Er[1],Cr=(0,Ne.useState)([0,0]),Dr=(0,me.Z)(Cr,2),ui=Dr[0],ei=Dr[1],ii=(0,Ne.useState)([0,0]),Ti=(0,me.Z)(ii,2),ea=Ti[0],Si=Ti[1],zi=bn(new Map),ai=(0,me.Z)(zi,2),vi=ai[0],_i=ai[1],Ki=we(vt,vi,zr[0]),Ea=cn(xr,zn),Ta=cn(zr,zn),va=cn(ui,zn),ra=cn(ea,zn),Yi=Ea<Ta+va,ki=Yi?Ea-ra:Ea-va,Ma="".concat(ut,"-nav-operations-hidden"),Ri=0,si=0;zn&&cr?(Ri=0,si=Math.max(0,Ta-ki)):(Ri=Math.min(0,ki-Ta),si=0);function Ui(ia){return ia<Ri?Ri:ia>si?si:ia}var ua=(0,Ne.useRef)(),ta=(0,Ne.useState)(),oa=(0,me.Z)(ta,2),Bi=oa[0],pa=oa[1];function wa(){pa(Date.now())}function fa(){window.clearTimeout(ua.current)}qt(Wt,function(ia,Vi){function Oa(Da,co){Da(function(ao){var hs=Ui(ao+co);return hs})}return Yi?(zn?Oa(yt,ia):Oa(ln,Vi),fa(),wa(),!0):!1}),(0,Ne.useEffect)(function(){return fa(),Bi&&(ua.current=window.setTimeout(function(){pa(0)},100)),fa},[Bi]);var Sa=nn(Ki,ki,zn?Ye:mn,Ta,va,ra,(0,xe.Z)((0,xe.Z)({},Te),{},{tabs:vt})),La=(0,me.Z)(Sa,2),Va=La[0],ha=La[1],Ba=pt(function(){var ia=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pr,Vi=Ki.get(ia)||{width:0,height:0,left:0,right:0,top:0};if(zn){var Oa=Ye;cr?Vi.right<Ye?Oa=Vi.right:Vi.right+Vi.width>Ye+ki&&(Oa=Vi.right+Vi.width-ki):Vi.left<-Ye?Oa=-Vi.left:Vi.left+Vi.width>-Ye+ki&&(Oa=-(Vi.left+Vi.width-ki)),ln(0),yt(Ui(Oa))}else{var Da=mn;Vi.top<-mn?Da=-Vi.top:Vi.top+Vi.height>-mn+ki&&(Da=-(Vi.top+Vi.height-ki)),yt(0),ln(Ui(Da))}}),qa={};rr==="top"||rr==="bottom"?qa[cr?"marginRight":"marginLeft"]=Ir:qa.marginTop=Ir;var Ya=vt.map(function(ia,Vi){var Oa=ia.key;return Ne.createElement(lr,{id:kn,prefixCls:ut,key:Oa,tab:ia,style:Vi===0?void 0:qa,closable:ia.closable,editable:Fn,active:Oa===Pr,renderWrapper:gr,removeAriaLabel:$n==null?void 0:$n.removeAriaLabel,onClick:function(co){fr(Oa,co)},onFocus:function(){Ba(Oa),wa(),Wt.current&&(cr||(Wt.current.scrollLeft=0),Wt.current.scrollTop=0)}})}),so=function(){return _i(function(){var Vi=new Map;return vt.forEach(function(Oa){var Da,co=Oa.key,ao=(Da=bt.current)===null||Da===void 0?void 0:Da.querySelector('[data-node-key="'.concat(De(co),'"]'));ao&&Vi.set(co,{width:ao.offsetWidth,height:ao.offsetHeight,left:ao.offsetLeft,top:ao.offsetTop})}),Vi})};(0,Ne.useEffect)(function(){so()},[vt.map(function(ia){return ia.key}).join("_")]);var _a=Xn(function(){var ia=Nt(Nr),Vi=Nt(Fe),Oa=Nt(We);er([ia[0]-Vi[0]-Oa[0],ia[1]-Vi[1]-Oa[1]]);var Da=Nt(Ln);ei(Da);var co=Nt(sn);Si(co);var ao=Nt(bt);Br([ao[0]-Da[0],ao[1]-Da[1]]),so()}),Aa=vt.slice(0,Va),Wi=vt.slice(ha+1),Xi=[].concat((0,tt.Z)(Aa),(0,tt.Z)(Wi)),da=Ki.get(Pr),Ca=Vt({activeTabOffset:da,horizontal:zn,rtl:cr,indicatorSize:Sr}),Ka=Ca.style;(0,Ne.useEffect)(function(){Ba()},[Pr,Ri,si,xn(da),xn(Ki),zn]),(0,Ne.useEffect)(function(){_a()},[cr]);var io=!!Xi.length,ho="".concat(ut,"-nav-wrap"),Po,No,lo,Bo;return zn?cr?(No=Ye>0,Po=Ye!==si):(Po=Ye<0,No=Ye!==Ri):(lo=mn<0,Bo=mn!==Ri),Ne.createElement(Jt.Z,{onResize:_a},Ne.createElement("div",{ref:Yn(He,Nr),role:"tablist",className:ve()("".concat(ut,"-nav"),Kt),style:vn,onKeyDown:function(){wa()}},Ne.createElement(le,{ref:Fe,position:"left",extra:Wn,prefixCls:ut}),Ne.createElement(Jt.Z,{onResize:_a},Ne.createElement("div",{className:ve()(ho,(Ke={},(0,Le.Z)(Ke,"".concat(ho,"-ping-left"),Po),(0,Le.Z)(Ke,"".concat(ho,"-ping-right"),No),(0,Le.Z)(Ke,"".concat(ho,"-ping-top"),lo),(0,Le.Z)(Ke,"".concat(ho,"-ping-bottom"),Bo),Ke)),ref:Wt},Ne.createElement(Jt.Z,{onResize:_a},Ne.createElement("div",{ref:bt,className:"".concat(ut,"-nav-list"),style:{transform:"translate(".concat(Ye,"px, ").concat(mn,"px)"),transition:Bi?"none":void 0}},Ya,Ne.createElement(he,{ref:Ln,prefixCls:ut,locale:$n,editable:Fn,style:(0,xe.Z)((0,xe.Z)({},Ya.length===0?void 0:qa),{},{visibility:io?"hidden":null})}),Ne.createElement("div",{className:ve()("".concat(ut,"-ink-bar"),(0,Le.Z)({},"".concat(ut,"-ink-bar-animated"),yr.inkBar)),style:Ka}))))),Ne.createElement(an,(0,ke.Z)({},Te,{removeAriaLabel:$n==null?void 0:$n.removeAriaLabel,ref:sn,prefixCls:ut,tabs:Xi,className:!io&&Ma,tabMoving:!!Bi})),Ne.createElement(le,{ref:We,position:"right",extra:Wn,prefixCls:ut})))}var Kn=Ne.forwardRef(on),Hr=["renderTabBar"],hr=["label","key"];function or(Te){var He=Te.renderTabBar,Ke=(0,st.Z)(Te,Hr),Ge=Ne.useContext(je),ut=Ge.tabs;if(He){var vt=(0,xe.Z)((0,xe.Z)({},Ke),{},{panes:ut.map(function(Kt){var vn=Kt.label,kn=Kt.key,yr=(0,st.Z)(Kt,hr);return Ne.createElement(Mt,(0,ke.Z)({tab:vn,key:kn,tabKey:kn},yr))})});return He(vt,Kn)}return Ne.createElement(Kn,Ke)}var Ar={},Lr=[],kt=function(He){Lr.push(He)};function gt(Te,He){if(0)var Ke}function Dt(Te,He){if(0)var Ke}function En(){Ar={}}function qn(Te,He,Ke){!He&&!Ar[Ke]&&(Te(!1,Ke),Ar[Ke]=!0)}function Cn(Te,He){qn(gt,Te,He)}function Dn(Te,He){qn(Dt,Te,He)}Cn.preMessage=kt,Cn.resetWarned=En,Cn.noteOnce=Dn;var In=null;function Un(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},He;return Te===!1?He={inkBar:!1,tabPane:!1}:Te===!0?He={inkBar:!0,tabPane:!1}:He=(0,xe.Z)({inkBar:!0},(0,Ie.Z)(Te)==="object"?Te:{}),He.tabPaneMotion&&He.tabPane===void 0&&(He.tabPane=!0),!He.tabPaneMotion&&He.tabPane&&(He.tabPane=!1),He}var kr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],pn=0;function di(Te,He){var Ke,Ge=Te.id,ut=Te.prefixCls,vt=ut===void 0?"rc-tabs":ut,Kt=Te.className,vn=Te.items,kn=Te.direction,yr=Te.activeKey,Pr=Te.defaultActiveKey,cr=Te.editable,Wn=Te.animated,Fn=Te.tabPosition,$n=Fn===void 0?"top":Fn,rr=Te.tabBarGutter,Ir=Te.tabBarStyle,gr=Te.tabBarExtraContent,fr=Te.locale,wr=Te.moreIcon,Sr=Te.moreTransitionName,Nr=Te.destroyInactiveTabPane,Fe=Te.renderTabBar,We=Te.onChange,Wt=Te.onTabClick,bt=Te.onTabScroll,sn=Te.getPopupContainer,Ln=Te.popupClassName,zn=Te.indicatorSize,ar=(0,st.Z)(Te,kr),ot=Ne.useMemo(function(){return(vn||[]).filter(function(Si){return Si&&(0,Ie.Z)(Si)==="object"&&"key"in Si})},[vn]),Ye=kn==="rtl",yt=Un(Wn),Qt=(0,Ne.useState)(!1),_n=(0,me.Z)(Qt,2),mn=_n[0],ln=_n[1];(0,Ne.useEffect)(function(){ln(xt())},[]);var sr=Se(function(){var Si;return(Si=ot[0])===null||Si===void 0?void 0:Si.key},{value:yr,defaultValue:Pr}),ir=(0,me.Z)(sr,2),xr=ir[0],er=ir[1],Tn=(0,Ne.useState)(function(){return ot.findIndex(function(Si){return Si.key===xr})}),Er=(0,me.Z)(Tn,2),zr=Er[0],Br=Er[1];(0,Ne.useEffect)(function(){var Si=ot.findIndex(function(ai){return ai.key===xr});if(Si===-1){var zi;Si=Math.max(0,Math.min(zr,ot.length-1)),er((zi=ot[Si])===null||zi===void 0?void 0:zi.key)}Br(Si)},[ot.map(function(Si){return Si.key}).join("_"),xr,zr]);var Cr=Se(null,{value:Ge}),Dr=(0,me.Z)(Cr,2),ui=Dr[0],ei=Dr[1];(0,Ne.useEffect)(function(){Ge||(ei("rc-tabs-".concat(pn)),pn+=1)},[]);function ii(Si,zi){Wt==null||Wt(Si,zi);var ai=Si!==xr;er(Si),ai&&(We==null||We(Si))}var Ti={id:ui,activeKey:xr,animated:yt,tabPosition:$n,rtl:Ye,mobile:mn},ea=(0,xe.Z)((0,xe.Z)({},Ti),{},{editable:cr,locale:fr,moreIcon:wr,moreTransitionName:Sr,tabBarGutter:rr,onTabClick:ii,onTabScroll:bt,extra:gr,style:Ir,panes:null,getPopupContainer:sn,popupClassName:Ln,indicatorSize:zn});return Ne.createElement(je.Provider,{value:{tabs:ot,prefixCls:vt}},Ne.createElement("div",(0,ke.Z)({ref:He,id:Ge,className:ve()(vt,"".concat(vt,"-").concat($n),(Ke={},(0,Le.Z)(Ke,"".concat(vt,"-mobile"),mn),(0,Le.Z)(Ke,"".concat(vt,"-editable"),cr),(0,Le.Z)(Ke,"".concat(vt,"-rtl"),Ye),Ke),Kt)},ar),Ne.createElement(or,(0,ke.Z)({},ea,{renderTabBar:Fe})),Ne.createElement(Ft,(0,ke.Z)({destroyInactiveTabPane:Nr},Ti,{animated:yt}))))}var Qr=Ne.forwardRef(di),Fi=Qr,Ni=Fi,Ci=se(53124),Qi=se(98675),pi=()=>null,Hi=se(33603);const $i={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ci(Te){let He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ke;return He===!1?Ke={inkBar:!1,tabPane:!1}:He===!0?Ke={inkBar:!0,tabPane:!0}:Ke=Object.assign({inkBar:!0},typeof He=="object"?He:{}),Ke.tabPane&&(Ke.tabPaneMotion=Object.assign(Object.assign({},$i),{motionName:(0,Hi.m)(Te,"switch")})),Ke}var Mi=se(37419),Ji=function(Te,He){var Ke={};for(var Ge in Te)Object.prototype.hasOwnProperty.call(Te,Ge)&&He.indexOf(Ge)<0&&(Ke[Ge]=Te[Ge]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ge=Object.getOwnPropertySymbols(Te);ut<Ge.length;ut++)He.indexOf(Ge[ut])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ge[ut])&&(Ke[Ge[ut]]=Te[Ge[ut]]);return Ke};function ca(Te){return Te.filter(He=>He)}function na(Te,He){if(Te)return Te;const Ke=(0,Mi.Z)(He).map(Ge=>{if(Ne.isValidElement(Ge)){const{key:ut,props:vt}=Ge,Kt=vt||{},{tab:vn}=Kt,kn=Ji(Kt,["tab"]);return Object.assign(Object.assign({key:String(ut)},kn),{label:vn})}return null});return ca(Ke)}var hi=se(14747),zt=se(67968),Tt=se(45503),fn=se(67771),Qn=Te=>{const{componentCls:He,motionDurationSlow:Ke}=Te;return[{[He]:{[`${He}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ke}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ke}`}}}}},[(0,fn.oN)(Te,"slide-up"),(0,fn.oN)(Te,"slide-down")]]};const Or=Te=>{const{componentCls:He,tabsCardPadding:Ke,cardBg:Ge,cardGutter:ut,colorBorderSecondary:vt,itemSelectedColor:Kt}=Te;return{[`${He}-card`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{margin:0,padding:Ke,background:Ge,border:`${Te.lineWidth}px ${Te.lineType} ${vt}`,transition:`all ${Te.motionDurationSlow} ${Te.motionEaseInOut}`},[`${He}-tab-active`]:{color:Kt,background:Te.colorBgContainer},[`${He}-ink-bar`]:{visibility:"hidden"}},[`&${He}-top, &${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab + ${He}-tab`]:{marginLeft:{_skip_check_:!0,value:`${ut}px`}}}},[`&${He}-top`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:`${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0 0`},[`${He}-tab-active`]:{borderBottomColor:Te.colorBgContainer}}},[`&${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:`0 0 ${Te.borderRadiusLG}px ${Te.borderRadiusLG}px`},[`${He}-tab-active`]:{borderTopColor:Te.colorBgContainer}}},[`&${He}-left, &${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab + ${He}-tab`]:{marginTop:`${ut}px`}}},[`&${He}-left`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Te.borderRadiusLG}px 0 0 ${Te.borderRadiusLG}px`}},[`${He}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Te.colorBgContainer}}}},[`&${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0`}},[`${He}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Te.colorBgContainer}}}}}}},Zr=Te=>{const{componentCls:He,itemHoverColor:Ke,dropdownEdgeChildVerticalPadding:Ge}=Te;return{[`${He}-dropdown`]:Object.assign(Object.assign({},(0,hi.Wf)(Te)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Te.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${He}-dropdown-menu`]:{maxHeight:Te.tabsDropdownHeight,margin:0,padding:`${Ge}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Te.colorBgContainer,backgroundClip:"padding-box",borderRadius:Te.borderRadiusLG,outline:"none",boxShadow:Te.boxShadowSecondary,"&-item":Object.assign(Object.assign({},hi.vS),{display:"flex",alignItems:"center",minWidth:Te.tabsDropdownWidth,margin:0,padding:`${Te.paddingXXS}px ${Te.paddingSM}px`,color:Te.colorText,fontWeight:"normal",fontSize:Te.fontSize,lineHeight:Te.lineHeight,cursor:"pointer",transition:`all ${Te.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Te.marginSM},color:Te.colorTextDescription,fontSize:Te.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ke}},"&:hover":{background:Te.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Te.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Jr=Te=>{const{componentCls:He,margin:Ke,colorBorderSecondary:Ge,horizontalMargin:ut,verticalItemPadding:vt,verticalItemMargin:Kt}=Te;return{[`${He}-top, ${He}-bottom`]:{flexDirection:"column",[`> ${He}-nav, > div > ${He}-nav`]:{margin:ut,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Te.lineWidth}px ${Te.lineType} ${Ge}`,content:"''"},[`${He}-ink-bar`]:{height:Te.lineWidthBold,"&-animated":{transition:`width ${Te.motionDurationSlow}, left ${Te.motionDurationSlow},
right ${Te.motionDurationSlow}`}},[`${He}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Te.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Te.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Te.boxShadowTabsOverflowRight},[`&${He}-nav-wrap-ping-left::before`]:{opacity:1},[`&${He}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${He}-top`]:{[`> ${He}-nav,
> div > ${He}-nav`]:{"&::before":{bottom:0},[`${He}-ink-bar`]:{bottom:0}}},[`${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{order:1,marginTop:`${Ke}px`,marginBottom:0,"&::before":{top:0},[`${He}-ink-bar`]:{top:0}},[`> ${He}-content-holder, > div > ${He}-content-holder`]:{order:0}},[`${He}-left, ${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{flexDirection:"column",minWidth:Te.controlHeight*1.25,[`${He}-tab`]:{padding:vt,textAlign:"center"},[`${He}-tab + ${He}-tab`]:{margin:Kt},[`${He}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Te.controlHeight},"&::before":{top:0,boxShadow:Te.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Te.boxShadowTabsOverflowBottom},[`&${He}-nav-wrap-ping-top::before`]:{opacity:1},[`&${He}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${He}-ink-bar`]:{width:Te.lineWidthBold,"&-animated":{transition:`height ${Te.motionDurationSlow}, top ${Te.motionDurationSlow}`}},[`${He}-nav-list, ${He}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${He}-left`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${He}-content-holder, > div > ${He}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Te.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Te.lineWidth}px ${Te.lineType} ${Te.colorBorder}`},[`> ${He}-content > ${He}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Te.paddingLG}}}},[`${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{order:1,[`${He}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${He}-content-holder, > div > ${He}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Te.lineWidth},borderRight:{_skip_check_:!0,value:`${Te.lineWidth}px ${Te.lineType} ${Te.colorBorder}`},[`> ${He}-content > ${He}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Te.paddingLG}}}}}},ri=Te=>{const{componentCls:He,cardPaddingSM:Ke,cardPaddingLG:Ge,horizontalItemPaddingSM:ut,horizontalItemPaddingLG:vt}=Te;return{[He]:{"&-small":{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:ut,fontSize:Te.titleFontSizeSM}}},"&-large":{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:vt,fontSize:Te.titleFontSizeLG}}}},[`${He}-card`]:{[`&${He}-small`]:{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:Ke}},[`&${He}-bottom`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:`0 0 ${Te.borderRadius}px ${Te.borderRadius}px`}},[`&${He}-top`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:`${Te.borderRadius}px ${Te.borderRadius}px 0 0`}},[`&${He}-right`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Te.borderRadius}px ${Te.borderRadius}px 0`}}},[`&${He}-left`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Te.borderRadius}px 0 0 ${Te.borderRadius}px`}}}},[`&${He}-large`]:{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:Ge}}}}}},qr=Te=>{const{componentCls:He,itemActiveColor:Ke,itemHoverColor:Ge,iconCls:ut,tabsHorizontalItemMargin:vt,horizontalItemPadding:Kt,itemSelectedColor:vn,itemColor:kn}=Te,yr=`${He}-tab`;return{[yr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Kt,fontSize:Te.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:kn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ke}},(0,hi.Qy)(Te)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Te.marginXXS},marginLeft:{_skip_check_:!0,value:Te.marginXS},color:Te.colorTextDescription,fontSize:Te.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Te.motionDurationSlow}`,"&:hover":{color:Te.colorTextHeading}},"&:hover":{color:Ge},[`&${yr}-active ${yr}-btn`]:{color:vn,textShadow:Te.tabsActiveTextShadow},[`&${yr}-disabled`]:{color:Te.colorTextDisabled,cursor:"not-allowed"},[`&${yr}-disabled ${yr}-btn, &${yr}-disabled ${He}-remove`]:{"&:focus, &:active":{color:Te.colorTextDisabled}},[`& ${yr}-remove ${ut}`]:{margin:0},[ut]:{marginRight:{_skip_check_:!0,value:Te.marginSM}}},[`${yr} + ${yr}`]:{margin:{_skip_check_:!0,value:vt}}}},fi=Te=>{const{componentCls:He,tabsHorizontalItemMarginRTL:Ke,iconCls:Ge,cardGutter:ut}=Te;return{[`${He}-rtl`]:{direction:"rtl",[`${He}-nav`]:{[`${He}-tab`]:{margin:{_skip_check_:!0,value:Ke},[`${He}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ge]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Te.marginSM}px`}},[`${He}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Te.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Te.marginXXS}px`},[Ge]:{margin:0}}}},[`&${He}-left`]:{[`> ${He}-nav`]:{order:1},[`> ${He}-content-holder`]:{order:0}},[`&${He}-right`]:{[`> ${He}-nav`]:{order:0},[`> ${He}-content-holder`]:{order:1}},[`&${He}-card${He}-top, &${He}-card${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab + ${He}-tab`]:{marginRight:{_skip_check_:!0,value:ut},marginLeft:{_skip_check_:!0,value:0}}}}},[`${He}-dropdown-rtl`]:{direction:"rtl"},[`${He}-menu-item`]:{[`${He}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ai=Te=>{const{componentCls:He,tabsCardPadding:Ke,cardHeight:Ge,cardGutter:ut,itemHoverColor:vt,itemActiveColor:Kt,colorBorderSecondary:vn}=Te;return{[He]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,hi.Wf)(Te)),{display:"flex",[`> ${He}-nav, > div > ${He}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${He}-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 ${Te.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${He}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Te.motionDurationSlow}`},[`${He}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${He}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${He}-nav-more`]:{position:"relative",padding:Ke,background:"transparent",border:0,color:Te.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Te.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${He}-nav-add`]:Object.assign({minWidth:Ge,marginLeft:{_skip_check_:!0,value:ut},padding:`0 ${Te.paddingXS}px`,background:"transparent",border:`${Te.lineWidth}px ${Te.lineType} ${vn}`,borderRadius:`${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Te.colorText,transition:`all ${Te.motionDurationSlow} ${Te.motionEaseInOut}`,"&:hover":{color:vt},"&:active, &:focus:not(:focus-visible)":{color:Kt}},(0,hi.Qy)(Te))},[`${He}-extra-content`]:{flex:"none"},[`${He}-ink-bar`]:{position:"absolute",background:Te.inkBarColor,pointerEvents:"none"}}),qr(Te)),{[`${He}-content`]:{position:"relative",width:"100%"},[`${He}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${He}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${He}-centered`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-nav-wrap`]:{[`&:not([class*='${He}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var jr=(0,zt.Z)("Tabs",Te=>{const He=(0,Tt.TS)(Te,{tabsCardPadding:Te.cardPadding||`${(Te.cardHeight-Math.round(Te.fontSize*Te.lineHeight))/2-Te.lineWidth}px ${Te.padding}px`,dropdownEdgeChildVerticalPadding:Te.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Te.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Te.horizontalItemGutter}px`});return[ri(He),fi(He),Jr(He),Zr(He),Or(He),Ai(He),Qn(He)]},Te=>{const He=Te.controlHeightLG;return{zIndexPopup:Te.zIndexPopupBase+50,cardBg:Te.colorFillAlter,cardHeight:He,cardPadding:"",cardPaddingSM:`${Te.paddingXXS*1.5}px ${Te.padding}px`,cardPaddingLG:`${Te.paddingXS}px ${Te.padding}px ${Te.paddingXXS*1.5}px`,titleFontSize:Te.fontSize,titleFontSizeLG:Te.fontSizeLG,titleFontSizeSM:Te.fontSize,inkBarColor:Te.colorPrimary,horizontalMargin:`0 0 ${Te.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Te.paddingSM}px 0`,horizontalItemPaddingSM:`${Te.paddingXS}px 0`,horizontalItemPaddingLG:`${Te.padding}px 0`,verticalItemPadding:`${Te.paddingXS}px ${Te.paddingLG}px`,verticalItemMargin:`${Te.margin}px 0 0 0`,itemColor:Te.colorText,itemSelectedColor:Te.colorPrimary,itemHoverColor:Te.colorPrimaryHover,itemActiveColor:Te.colorPrimaryActive,cardGutter:Te.marginXXS/2}}),wi=function(Te,He){var Ke={};for(var Ge in Te)Object.prototype.hasOwnProperty.call(Te,Ge)&&He.indexOf(Ge)<0&&(Ke[Ge]=Te[Ge]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ge=Object.getOwnPropertySymbols(Te);ut<Ge.length;ut++)He.indexOf(Ge[ut])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ge[ut])&&(Ke[Ge[ut]]=Te[Ge[ut]]);return Ke};const Di=Te=>{const{type:He,className:Ke,rootClassName:Ge,size:ut,onEdit:vt,hideAdd:Kt,centered:vn,addIcon:kn,popupClassName:yr,children:Pr,items:cr,animated:Wn,style:Fn,indicatorSize:$n}=Te,rr=wi(Te,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Ir,moreIcon:gr=Ne.createElement(Pe.Z,null)}=rr,{direction:fr,tabs:wr,getPrefixCls:Sr,getPopupContainer:Nr}=Ne.useContext(Ci.E_),Fe=Sr("tabs",Ir),[We,Wt]=jr(Fe);let bt;He==="editable-card"&&(bt={onEdit:(Ye,yt)=>{let{key:Qt,event:_n}=yt;vt==null||vt(Ye==="add"?_n:Qt,Ye)},removeIcon:Ne.createElement(ae.Z,null),addIcon:kn||Ne.createElement(Re.Z,null),showAdd:Kt!==!0});const sn=Sr(),Ln=na(cr,Pr),zn=ci(Fe,Wn),ar=(0,Qi.Z)(ut),ot=Object.assign(Object.assign({},wr==null?void 0:wr.style),Fn);return We(Ne.createElement(Ni,Object.assign({direction:fr,getPopupContainer:Nr,moreTransitionName:`${sn}-slide-up`},rr,{items:Ln,className:ve()({[`${Fe}-${ar}`]:ar,[`${Fe}-card`]:["card","editable-card"].includes(He),[`${Fe}-editable-card`]:He==="editable-card",[`${Fe}-centered`]:vn},wr==null?void 0:wr.className,Ke,Ge,Wt),popupClassName:ve()(yr,Wt),style:ot,editable:bt,moreIcon:gr,prefixCls:Fe,animated:zn,indicatorSize:$n!=null?$n:wr==null?void 0:wr.indicatorSize})))};Di.TabPane=pi;var Li=Di},59810:function(dn,en,se){"use strict";se.d(en,{default:function(){return Lr}});var ae=se(67294),Pe=se(74902),Re=se(94184),qe=se.n(Re),ve=se(87462),ke=se(15671),Le=se(43144),xe=se(60136),me=se(51630),Ie=se(4942),st=se(45987),Ne=se(74165),xt=se(71002),pt=se(15861),ct=se(64217);function rt(kt,gt){var Dt="cannot ".concat(kt.method," ").concat(kt.action," ").concat(gt.status,"'"),En=new Error(Dt);return En.status=gt.status,En.method=kt.method,En.url=kt.action,En}function Ee(kt){var gt=kt.responseText||kt.response;if(!gt)return gt;try{return JSON.parse(gt)}catch(Dt){return gt}}function at(kt){var gt=new XMLHttpRequest;kt.onProgress&&gt.upload&&(gt.upload.onprogress=function(Cn){Cn.total>0&&(Cn.percent=Cn.loaded/Cn.total*100),kt.onProgress(Cn)});var Dt=new FormData;kt.data&&Object.keys(kt.data).forEach(function(qn){var Cn=kt.data[qn];if(Array.isArray(Cn)){Cn.forEach(function(Dn){Dt.append("".concat(qn,"[]"),Dn)});return}Dt.append(qn,Cn)}),kt.file instanceof Blob?Dt.append(kt.filename,kt.file,kt.file.name):Dt.append(kt.filename,kt.file),gt.onerror=function(Cn){kt.onError(Cn)},gt.onload=function(){return gt.status<200||gt.status>=300?kt.onError(rt(kt,gt),Ee(gt)):kt.onSuccess(Ee(gt),gt)},gt.open(kt.method,kt.action,!0),kt.withCredentials&&"withCredentials"in gt&&(gt.withCredentials=!0);var En=kt.headers||{};return En["X-Requested-With"]!==null&&gt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(En).forEach(function(qn){En[qn]!==null&&gt.setRequestHeader(qn,En[qn])}),gt.send(Dt),{abort:function(){gt.abort()}}}var Yt=+new Date,Xe=0;function lt(){return"rc-upload-".concat(Yt,"-").concat(++Xe)}var Se=se(80334),Ce=function(kt,gt){if(kt&&gt){var Dt=Array.isArray(gt)?gt:gt.split(","),En=kt.name||"",qn=kt.type||"",Cn=qn.replace(/\/.*$/,"");return Dt.some(function(Dn){var In=Dn.trim();if(/^\*(\/\*)?$/.test(Dn))return!0;if(In.charAt(0)==="."){var Un=En.toLowerCase(),kr=In.toLowerCase(),pn=[kr];return(kr===".jpg"||kr===".jpeg")&&(pn=[".jpg",".jpeg"]),pn.some(function(di){return Un.endsWith(di)})}return/\/\*$/.test(In)?Cn===In.replace(/\/.*$/,""):qn===In?!0:/^\w+$/.test(In)?((0,Se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(In,"'.Skip for check.")),!0):!1})}return!0};function je(kt,gt){var Dt=kt.createReader(),En=[];function qn(){Dt.readEntries(function(Cn){var Dn=Array.prototype.slice.apply(Cn);En=En.concat(Dn);var In=!Dn.length;In?gt(En):qn()})}qn()}var Ue=function(gt,Dt,En){var qn=function Cn(Dn,In){Dn&&(Dn.path=In||"",Dn.isFile?Dn.file(function(Un){En(Un)&&(Dn.fullPath&&!Un.webkitRelativePath&&(Object.defineProperties(Un,{webkitRelativePath:{writable:!0}}),Un.webkitRelativePath=Dn.fullPath.replace(/^\//,""),Object.defineProperties(Un,{webkitRelativePath:{writable:!1}})),Dt([Un]))}):Dn.isDirectory&&je(Dn,function(Un){Un.forEach(function(kr){Cn(kr,"".concat(In).concat(Dn.name,"/"))})}))};gt.forEach(function(Cn){qn(Cn.webkitGetAsEntry())})},Mt=Ue,ht=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ft=function(kt){(0,xe.Z)(Dt,kt);var gt=(0,me.Z)(Dt);function Dt(){var En;(0,ke.Z)(this,Dt);for(var qn=arguments.length,Cn=new Array(qn),Dn=0;Dn<qn;Dn++)Cn[Dn]=arguments[Dn];return En=gt.call.apply(gt,[this].concat(Cn)),En.state={uid:lt()},En.reqs={},En.fileInput=void 0,En._isMounted=void 0,En.onChange=function(In){var Un=En.props,kr=Un.accept,pn=Un.directory,di=In.target.files,Qr=(0,Pe.Z)(di).filter(function(Fi){return!pn||Ce(Fi,kr)});En.uploadFiles(Qr),En.reset()},En.onClick=function(In){var Un=En.fileInput;if(Un){var kr=En.props,pn=kr.children,di=kr.onClick;if(pn&&pn.type==="button"){var Qr=Un.parentNode;Qr.focus(),Qr.querySelector("button").blur()}Un.click(),di&&di(In)}},En.onKeyDown=function(In){In.key==="Enter"&&En.onClick(In)},En.onFileDrop=function(In){var Un=En.props.multiple;if(In.preventDefault(),In.type!=="dragover")if(En.props.directory)Mt(Array.prototype.slice.call(In.dataTransfer.items),En.uploadFiles,function(pn){return Ce(pn,En.props.accept)});else{var kr=(0,Pe.Z)(In.dataTransfer.files).filter(function(pn){return Ce(pn,En.props.accept)});Un===!1&&(kr=kr.slice(0,1)),En.uploadFiles(kr)}},En.uploadFiles=function(In){var Un=(0,Pe.Z)(In),kr=Un.map(function(pn){return pn.uid=lt(),En.processFile(pn,Un)});Promise.all(kr).then(function(pn){var di=En.props.onBatchStart;di==null||di(pn.map(function(Qr){var Fi=Qr.origin,Ni=Qr.parsedFile;return{file:Fi,parsedFile:Ni}})),pn.filter(function(Qr){return Qr.parsedFile!==null}).forEach(function(Qr){En.post(Qr)})})},En.processFile=function(){var In=(0,pt.Z)((0,Ne.Z)().mark(function Un(kr,pn){var di,Qr,Fi,Ni,Ci,Qi,Ei,pi,Hi;return(0,Ne.Z)().wrap(function(ci){for(;;)switch(ci.prev=ci.next){case 0:if(di=En.props.beforeUpload,Qr=kr,!di){ci.next=14;break}return ci.prev=3,ci.next=6,di(kr,pn);case 6:Qr=ci.sent,ci.next=12;break;case 9:ci.prev=9,ci.t0=ci.catch(3),Qr=!1;case 12:if(Qr!==!1){ci.next=14;break}return ci.abrupt("return",{origin:kr,parsedFile:null,action:null,data:null});case 14:if(Fi=En.props.action,typeof Fi!="function"){ci.next=21;break}return ci.next=18,Fi(kr);case 18:Ni=ci.sent,ci.next=22;break;case 21:Ni=Fi;case 22:if(Ci=En.props.data,typeof Ci!="function"){ci.next=29;break}return ci.next=26,Ci(kr);case 26:Qi=ci.sent,ci.next=30;break;case 29:Qi=Ci;case 30:return Ei=((0,xt.Z)(Qr)==="object"||typeof Qr=="string")&&Qr?Qr:kr,Ei instanceof File?pi=Ei:pi=new File([Ei],kr.name,{type:kr.type}),Hi=pi,Hi.uid=kr.uid,ci.abrupt("return",{origin:kr,data:Qi,parsedFile:Hi,action:Ni});case 35:case"end":return ci.stop()}},Un,null,[[3,9]])}));return function(Un,kr){return In.apply(this,arguments)}}(),En.saveFileInput=function(In){En.fileInput=In},En}return(0,Le.Z)(Dt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(qn){var Cn=this,Dn=qn.data,In=qn.origin,Un=qn.action,kr=qn.parsedFile;if(this._isMounted){var pn=this.props,di=pn.onStart,Qr=pn.customRequest,Fi=pn.name,Ni=pn.headers,Ci=pn.withCredentials,Qi=pn.method,Ei=In.uid,pi=Qr||at,Hi={action:Un,filename:Fi,data:Dn,file:kr,headers:Ni,withCredentials:Ci,method:Qi||"post",onProgress:function(ci){var Mi=Cn.props.onProgress;Mi==null||Mi(ci,kr)},onSuccess:function(ci,Mi){var Ji=Cn.props.onSuccess;Ji==null||Ji(ci,kr,Mi),delete Cn.reqs[Ei]},onError:function(ci,Mi){var Ji=Cn.props.onError;Ji==null||Ji(ci,Mi,kr),delete Cn.reqs[Ei]}};di(In),this.reqs[Ei]=pi(Hi)}}},{key:"reset",value:function(){this.setState({uid:lt()})}},{key:"abort",value:function(qn){var Cn=this.reqs;if(qn){var Dn=qn.uid?qn.uid:qn;Cn[Dn]&&Cn[Dn].abort&&Cn[Dn].abort(),delete Cn[Dn]}else Object.keys(Cn).forEach(function(In){Cn[In]&&Cn[In].abort&&Cn[In].abort(),delete Cn[In]})}},{key:"render",value:function(){var qn,Cn=this.props,Dn=Cn.component,In=Cn.prefixCls,Un=Cn.className,kr=Cn.disabled,pn=Cn.id,di=Cn.style,Qr=Cn.multiple,Fi=Cn.accept,Ni=Cn.capture,Ci=Cn.children,Qi=Cn.directory,Ei=Cn.openFileDialogOnClick,pi=Cn.onMouseEnter,Hi=Cn.onMouseLeave,$i=(0,st.Z)(Cn,ht),ci=qe()((qn={},(0,Ie.Z)(qn,In,!0),(0,Ie.Z)(qn,"".concat(In,"-disabled"),kr),(0,Ie.Z)(qn,Un,Un),qn)),Mi=Qi?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ji=kr?{}:{onClick:Ei?this.onClick:function(){},onKeyDown:Ei?this.onKeyDown:function(){},onMouseEnter:pi,onMouseLeave:Hi,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Dn,(0,ve.Z)({},Ji,{className:ci,role:"button",style:di}),ae.createElement("input",(0,ve.Z)({},(0,ct.Z)($i,{aria:!0,data:!0}),{id:pn,disabled:kr,type:"file",ref:this.saveFileInput,onClick:function(na){return na.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Fi},Mi,{multiple:Qr,onChange:this.onChange},Ni!=null?{capture:Ni}:{})),Ci)}}]),Dt}(ae.Component),tt=Ft;function Jt(){}var Rt=function(kt){(0,xe.Z)(Dt,kt);var gt=(0,me.Z)(Dt);function Dt(){var En;(0,ke.Z)(this,Dt);for(var qn=arguments.length,Cn=new Array(qn),Dn=0;Dn<qn;Dn++)Cn[Dn]=arguments[Dn];return En=gt.call.apply(gt,[this].concat(Cn)),En.uploader=void 0,En.saveUploader=function(In){En.uploader=In},En}return(0,Le.Z)(Dt,[{key:"abort",value:function(qn){this.uploader.abort(qn)}},{key:"render",value:function(){return ae.createElement(tt,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),Dt}(ae.Component);Rt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Jt,onError:Jt,onSuccess:Jt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var yn=Rt,tn=yn,Hn=se(5663),Yn=se(73935),tr=se(53124),Qe=se(98866),we=se(10110),At=se(24457),Mn={icon:function(gt,Dt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Dt}},{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:gt}}]}},name:"file",theme:"twotone"},_t=Mn,$e=se(74643),dt=function(gt,Dt){return ae.createElement($e.Z,(0,ve.Z)({},gt,{ref:Dt,icon:_t}))},qt=ae.forwardRef(dt),Xn=se(3407),bn={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"},un=bn,nn=function(gt,Dt){return ae.createElement($e.Z,(0,ve.Z)({},gt,{ref:Dt,icon:un}))},xn=ae.forwardRef(nn),Pn={icon:function(gt,Dt){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:gt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Dt}},{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:Dt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Dt}},{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:gt}}]}},name:"picture",theme:"twotone"},De=Pn,ue=function(gt,Dt){return ae.createElement($e.Z,(0,ve.Z)({},gt,{ref:Dt,icon:De}))},ce=ae.forwardRef(ue),he=se(38379),fe=se(57838),le=se(33603),Me=se(96159),Ve=se(71577);function ft(kt){return Object.assign(Object.assign({},kt),{lastModified:kt.lastModified,lastModifiedDate:kt.lastModifiedDate,name:kt.name,size:kt.size,type:kt.type,uid:kt.uid,percent:0,originFileObj:kt})}function Ht(kt,gt){const Dt=(0,Pe.Z)(gt),En=Dt.findIndex(qn=>{let{uid:Cn}=qn;return Cn===kt.uid});return En===-1?Dt.push(kt):Dt[En]=kt,Dt}function Zt(kt,gt){const Dt=kt.uid!==void 0?"uid":"name";return gt.filter(En=>En[Dt]===kt[Dt])[0]}function jt(kt,gt){const Dt=kt.uid!==void 0?"uid":"name",En=gt.filter(qn=>qn[Dt]!==kt[Dt]);return En.length===gt.length?null:En}const $t=function(){const gt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),En=gt[gt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(En)||[""])[0]},Je=kt=>kt.indexOf("image/")===0,Et=kt=>{if(kt.type&&!kt.thumbUrl)return Je(kt.type);const gt=kt.thumbUrl||kt.url||"",Dt=$t(gt);return/^data:image\//.test(gt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Dt)?!0:!(/^data:/.test(gt)||Dt)},Lt=200;function Xt(kt){return new Promise(gt=>{if(!kt.type||!Je(kt.type)){gt("");return}const Dt=document.createElement("canvas");Dt.width=Lt,Dt.height=Lt,Dt.style.cssText=`position: fixed; left: 0; top: 0; width: ${Lt}px; height: ${Lt}px; z-index: 9999; display: none;`,document.body.appendChild(Dt);const En=Dt.getContext("2d"),qn=new Image;if(qn.onload=()=>{const{width:Cn,height:Dn}=qn;let In=Lt,Un=Lt,kr=0,pn=0;Cn>Dn?(Un=Dn*(Lt/Cn),pn=-(Un-In)/2):(In=Cn*(Lt/Dn),kr=-(In-Un)/2),En.drawImage(qn,kr,pn,In,Un);const di=Dt.toDataURL();document.body.removeChild(Dt),window.URL.revokeObjectURL(qn.src),gt(di)},qn.crossOrigin="anonymous",kt.type.startsWith("image/svg+xml")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&&(qn.src=Cn.result)},Cn.readAsDataURL(kt)}else if(kt.type.startsWith("image/gif")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&&gt(Cn.result)},Cn.readAsDataURL(kt)}else qn.src=window.URL.createObjectURL(kt)})}var wt=se(84249),Nn=se(90674),et=se(99569),It=se(38703),gn=se(83062),An=ae.forwardRef((kt,gt)=>{let{prefixCls:Dt,className:En,style:qn,locale:Cn,listType:Dn,file:In,items:Un,progress:kr,iconRender:pn,actionIconRender:di,itemRender:Qr,isImgUrl:Fi,showPreviewIcon:Ni,showRemoveIcon:Ci,showDownloadIcon:Qi,previewIcon:Ei,removeIcon:pi,downloadIcon:Hi,onPreview:$i,onDownload:ci,onClose:Mi}=kt;var Ji,ca;const{status:na}=In,[hi,zt]=ae.useState(na);ae.useEffect(()=>{na!=="removed"&&zt(na)},[na]);const[Tt,fn]=ae.useState(!1);ae.useEffect(()=>{const ut=setTimeout(()=>{fn(!0)},300);return()=>{clearTimeout(ut)}},[]);const Bn=pn(In);let Qn=ae.createElement("div",{className:`${Dt}-icon`},Bn);if(Dn==="picture"||Dn==="picture-card"||Dn==="picture-circle")if(hi==="uploading"||!In.thumbUrl&&!In.url){const ut=qe()(`${Dt}-list-item-thumbnail`,{[`${Dt}-list-item-file`]:hi!=="uploading"});Qn=ae.createElement("div",{className:ut},Bn)}else{const ut=Fi!=null&&Fi(In)?ae.createElement("img",{src:In.thumbUrl||In.url,alt:In.name,className:`${Dt}-list-item-image`,crossOrigin:In.crossOrigin}):Bn,vt=qe()(`${Dt}-list-item-thumbnail`,{[`${Dt}-list-item-file`]:Fi&&!Fi(In)});Qn=ae.createElement("a",{className:vt,onClick:Kt=>$i(In,Kt),href:In.url||In.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ut)}const Or=qe()(`${Dt}-list-item`,`${Dt}-list-item-${hi}`),Zr=typeof In.linkProps=="string"?JSON.parse(In.linkProps):In.linkProps,Jr=Ci?di((typeof pi=="function"?pi(In):pi)||ae.createElement(wt.Z,null),()=>Mi(In),Dt,Cn.removeFile):null,ri=Qi&&hi==="done"?di((typeof Hi=="function"?Hi(In):Hi)||ae.createElement(Nn.Z,null),()=>ci(In),Dt,Cn.downloadFile):null,qr=Dn!=="picture-card"&&Dn!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:qe()(`${Dt}-list-item-actions`,{picture:Dn==="picture"})},ri,Jr),fi=qe()(`${Dt}-list-item-name`),Ai=In.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:fi,title:In.name},Zr,{href:In.url,onClick:ut=>$i(In,ut)}),In.name),qr]:[ae.createElement("span",{key:"view",className:fi,onClick:ut=>$i(In,ut),title:In.name},In.name),qr],jr={pointerEvents:"none",opacity:.5},wi=Ni?ae.createElement("a",{href:In.url||In.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:In.url||In.thumbUrl?void 0:jr,onClick:ut=>$i(In,ut),title:Cn.previewFile},typeof Ei=="function"?Ei(In):Ei||ae.createElement(et.Z,null)):null,Di=(Dn==="picture-card"||Dn==="picture-circle")&&hi!=="uploading"&&ae.createElement("span",{className:`${Dt}-list-item-actions`},wi,hi==="done"&&ri,Jr),{getPrefixCls:Li}=ae.useContext(tr.E_),Te=Li(),He=ae.createElement("div",{className:Or},Qn,Ai,Di,Tt&&ae.createElement(he.default,{motionName:`${Te}-fade`,visible:hi==="uploading",motionDeadline:2e3},ut=>{let{className:vt}=ut;const Kt="percent"in In?ae.createElement(It.Z,Object.assign({},kr,{type:"line",percent:In.percent,"aria-label":In["aria-label"],"aria-labelledby":In["aria-labelledby"]})):null;return ae.createElement("div",{className:qe()(`${Dt}-list-item-progress`,vt)},Kt)})),Ke=In.response&&typeof In.response=="string"?In.response:((Ji=In.error)===null||Ji===void 0?void 0:Ji.statusText)||((ca=In.error)===null||ca===void 0?void 0:ca.message)||Cn.uploadError,Ge=hi==="error"?ae.createElement(gn.Z,{title:Ke,getPopupContainer:ut=>ut.parentNode},He):He;return ae.createElement("div",{className:qe()(`${Dt}-list-item-container`,En),style:qn,ref:gt},Qr?Qr(Ge,In,Un,{download:ci.bind(null,In),preview:$i.bind(null,In),remove:Mi.bind(null,In)}):Ge)});const Vn=(kt,gt)=>{const{listType:Dt="text",previewFile:En=Xt,onPreview:qn,onDownload:Cn,onRemove:Dn,locale:In,iconRender:Un,isImageUrl:kr=Et,prefixCls:pn,items:di=[],showPreviewIcon:Qr=!0,showRemoveIcon:Fi=!0,showDownloadIcon:Ni=!1,removeIcon:Ci,previewIcon:Qi,downloadIcon:Ei,progress:pi={size:[-1,2],showInfo:!1},appendAction:Hi,appendActionVisible:$i=!0,itemRender:ci,disabled:Mi}=kt,Ji=(0,fe.Z)(),[ca,na]=ae.useState(!1);ae.useEffect(()=>{Dt!=="picture"&&Dt!=="picture-card"&&Dt!=="picture-circle"||(di||[]).forEach(jr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(jr.originFileObj instanceof File||jr.originFileObj instanceof Blob)||jr.thumbUrl!==void 0||(jr.thumbUrl="",En&&En(jr.originFileObj).then(wi=>{jr.thumbUrl=wi||"",Ji()}))})},[Dt,di,En]),ae.useEffect(()=>{na(!0)},[]);const hi=(jr,wi)=>{if(qn)return wi==null||wi.preventDefault(),qn(jr)},zt=jr=>{typeof Cn=="function"?Cn(jr):jr.url&&window.open(jr.url)},Tt=jr=>{Dn==null||Dn(jr)},fn=jr=>{if(Un)return Un(jr,Dt);const wi=jr.status==="uploading",Di=kr&&kr(jr)?ae.createElement(ce,null):ae.createElement(qt,null);let Li=wi?ae.createElement(Xn.Z,null):ae.createElement(xn,null);return Dt==="picture"?Li=wi?ae.createElement(Xn.Z,null):Di:(Dt==="picture-card"||Dt==="picture-circle")&&(Li=wi?In.uploading:Di),Li},Bn=(jr,wi,Di,Li)=>{const Te={type:"text",size:"small",title:Li,onClick:He=>{wi(),(0,Me.l$)(jr)&&jr.props.onClick&&jr.props.onClick(He)},className:`${Di}-list-item-action`,disabled:Mi};if((0,Me.l$)(jr)){const He=(0,Me.Tm)(jr,Object.assign(Object.assign({},jr.props),{onClick:()=>{}}));return ae.createElement(Ve.ZP,Object.assign({},Te,{icon:He}))}return ae.createElement(Ve.ZP,Object.assign({},Te),ae.createElement("span",null,jr))};ae.useImperativeHandle(gt,()=>({handlePreview:hi,handleDownload:zt}));const{getPrefixCls:Qn}=ae.useContext(tr.E_),Or=Qn("upload",pn),Zr=Qn(),Jr=qe()(`${Or}-list`,`${Or}-list-${Dt}`),ri=(0,Pe.Z)(di.map(jr=>({key:jr.uid,file:jr})));let fi={motionDeadline:2e3,motionName:`${Or}-${Dt==="picture-card"||Dt==="picture-circle"?"animate-inline":"animate"}`,keys:ri,motionAppear:ca};const Ai=ae.useMemo(()=>{const jr=Object.assign({},(0,le.Z)(Zr));return delete jr.onAppearEnd,delete jr.onEnterEnd,delete jr.onLeaveEnd,jr},[Zr]);return Dt!=="picture-card"&&Dt!=="picture-circle"&&(fi=Object.assign(Object.assign({},Ai),fi)),ae.createElement("div",{className:Jr},ae.createElement(he.CSSMotionList,Object.assign({},fi,{component:!1}),jr=>{let{key:wi,file:Di,className:Li,style:Te}=jr;return ae.createElement(An,{key:wi,locale:In,prefixCls:Or,className:Li,style:Te,file:Di,items:di,progress:pi,listType:Dt,isImgUrl:kr,showPreviewIcon:Qr,showRemoveIcon:Fi,showDownloadIcon:Ni,removeIcon:Ci,previewIcon:Qi,downloadIcon:Ei,iconRender:fn,actionIconRender:Bn,itemRender:ci,onPreview:hi,onDownload:zt,onClose:Tt})}),Hi&&ae.createElement(he.default,Object.assign({},fi,{visible:$i,forceRender:!0}),jr=>{let{className:wi,style:Di}=jr;return(0,Me.Tm)(Hi,Li=>({className:qe()(Li.className,wi),style:Object.assign(Object.assign(Object.assign({},Di),{pointerEvents:wi?"none":void 0}),Li.style)}))}))};var ur=ae.forwardRef(Vn),dr=se(14747),Fr=se(33507),nr=se(67968),_r=se(45503),Wr=kt=>{const{componentCls:gt,iconCls:Dt}=kt;return{[`${gt}-wrapper`]:{[`${gt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:kt.colorFillAlter,border:`${kt.lineWidth}px dashed ${kt.colorBorder}`,borderRadius:kt.borderRadiusLG,cursor:"pointer",transition:`border-color ${kt.motionDurationSlow}`,[gt]:{padding:`${kt.padding}px 0`},[`${gt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${gt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${gt}-disabled):hover`]:{borderColor:kt.colorPrimaryHover},[`p${gt}-drag-icon`]:{marginBottom:kt.margin,[Dt]:{color:kt.colorPrimary,fontSize:kt.uploadThumbnailSize}},[`p${gt}-text`]:{margin:`0 0 ${kt.marginXXS}px`,color:kt.colorTextHeading,fontSize:kt.fontSizeLG},[`p${gt}-hint`]:{color:kt.colorTextDescription,fontSize:kt.fontSize},[`&${gt}-disabled`]:{cursor:"not-allowed",[`p${gt}-drag-icon ${Dt},
p${gt}-text,
p${gt}-hint
`]:{color:kt.colorTextDisabled}}}}}},ti=kt=>{const{componentCls:gt,antCls:Dt,iconCls:En,fontSize:qn,lineHeight:Cn}=kt,Dn=`${gt}-list-item`,In=`${Dn}-actions`,Un=`${Dn}-action`,kr=Math.round(qn*Cn);return{[`${gt}-wrapper`]:{[`${gt}-list`]:Object.assign(Object.assign({},(0,dr.dF)()),{lineHeight:kt.lineHeight,[Dn]:{position:"relative",height:kt.lineHeight*qn,marginTop:kt.marginXS,fontSize:qn,display:"flex",alignItems:"center",transition:`background-color ${kt.motionDurationSlow}`,"&:hover":{backgroundColor:kt.controlItemBgHover},[`${Dn}-name`]:Object.assign(Object.assign({},dr.vS),{padding:`0 ${kt.paddingXS}px`,lineHeight:Cn,flex:"auto",transition:`all ${kt.motionDurationSlow}`}),[In]:{[Un]:{opacity:0},[`${Un}${Dt}-btn-sm`]:{height:kr,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Un}:focus-visible,
&.picture ${Un}
`]:{opacity:1},[En]:{color:kt.actionsColor,transition:`all ${kt.motionDurationSlow}`},[`&:hover ${En}`]:{color:kt.colorText}},[`${gt}-icon ${En}`]:{color:kt.colorTextDescription,fontSize:qn},[`${Dn}-progress`]:{position:"absolute",bottom:-kt.uploadProgressOffset,width:"100%",paddingInlineStart:qn+kt.paddingXS,fontSize:qn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Dn}:hover ${Un}`]:{opacity:1,color:kt.colorText},[`${Dn}-error`]:{color:kt.colorError,[`${Dn}-name, ${gt}-icon ${En}`]:{color:kt.colorError},[In]:{[`${En}, ${En}:hover`]:{color:kt.colorError},[Un]:{opacity:1}}},[`${gt}-list-item-container`]:{transition:`opacity ${kt.motionDurationSlow}, height ${kt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ct=se(45930),wn=se(16932);const Rn=new Ct.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),an=new Ct.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var lr=kt=>{const{componentCls:gt}=kt,Dt=`${gt}-animate-inline`;return[{[`${gt}-wrapper`]:{[`${Dt}-appear, ${Dt}-enter, ${Dt}-leave`]:{animationDuration:kt.motionDurationSlow,animationTimingFunction:kt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Dt}-appear, ${Dt}-enter`]:{animationName:Rn},[`${Dt}-leave`]:{animationName:an}}},{[`${gt}-wrapper`]:(0,wn.J$)(kt)},Rn,an]},Gn=se(47448),jn=se(84780);const nt=kt=>{const{componentCls:gt,iconCls:Dt,uploadThumbnailSize:En,uploadProgressOffset:qn}=kt,Cn=`${gt}-list`,Dn=`${Cn}-item`;return{[`${gt}-wrapper`]:{[`
${Cn}${Cn}-picture,
${Cn}${Cn}-picture-card,
${Cn}${Cn}-picture-circle
`]:{[Dn]:{position:"relative",height:En+kt.lineWidth*2+kt.paddingXS*2,padding:kt.paddingXS,border:`${kt.lineWidth}px ${kt.lineType} ${kt.colorBorder}`,borderRadius:kt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Dn}-thumbnail`]:Object.assign(Object.assign({},dr.vS),{width:En,height:En,lineHeight:`${En+kt.paddingSM}px`,textAlign:"center",flex:"none",[Dt]:{fontSize:kt.fontSizeHeading2,color:kt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Dn}-progress`]:{bottom:qn,width:`calc(100% - ${kt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:En+kt.paddingXS}},[`${Dn}-error`]:{borderColor:kt.colorError,[`${Dn}-thumbnail ${Dt}`]:{[`svg path[fill='${Gn.blue[0]}']`]:{fill:kt.colorErrorBg},[`svg path[fill='${Gn.blue.primary}']`]:{fill:kt.colorError}}},[`${Dn}-uploading`]:{borderStyle:"dashed",[`${Dn}-name`]:{marginBottom:qn}}},[`${Cn}${Cn}-picture-circle ${Dn}`]:{[`&, &::before, ${Dn}-thumbnail`]:{borderRadius:"50%"}}}}},mt=kt=>{const{componentCls:gt,iconCls:Dt,fontSizeLG:En,colorTextLightSolid:qn}=kt,Cn=`${gt}-list`,Dn=`${Cn}-item`,In=kt.uploadPicCardSize;return{[`
${gt}-wrapper${gt}-picture-card-wrapper,
${gt}-wrapper${gt}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,dr.dF)()),{display:"inline-block",width:"100%",[`${gt}${gt}-select`]:{width:In,height:In,marginInlineEnd:kt.marginXS,marginBottom:kt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:kt.colorFillAlter,border:`${kt.lineWidth}px dashed ${kt.colorBorder}`,borderRadius:kt.borderRadiusLG,cursor:"pointer",transition:`border-color ${kt.motionDurationSlow}`,[`> ${gt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${gt}-disabled):hover`]:{borderColor:kt.colorPrimary}},[`${Cn}${Cn}-picture-card, ${Cn}${Cn}-picture-circle`]:{[`${Cn}-item-container`]:{display:"inline-block",width:In,height:In,marginBlock:`0 ${kt.marginXS}px`,marginInline:`0 ${kt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Dn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${kt.paddingXS*2}px)`,height:`calc(100% - ${kt.paddingXS*2}px)`,backgroundColor:kt.colorBgMask,opacity:0,transition:`all ${kt.motionDurationSlow}`,content:'" "'}},[`${Dn}:hover`]:{[`&::before, ${Dn}-actions`]:{opacity:1}},[`${Dn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${kt.motionDurationSlow}`,[`${Dt}-eye, ${Dt}-download, ${Dt}-delete`]:{zIndex:10,width:En,margin:`0 ${kt.marginXXS}px`,fontSize:En,cursor:"pointer",transition:`all ${kt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Dn}-actions, ${Dn}-actions:hover`]:{[`${Dt}-eye, ${Dt}-download, ${Dt}-delete`]:{color:new jn.C(qn).setAlpha(.65).toRgbString(),"&:hover":{color:qn}}},[`${Dn}-thumbnail, ${Dn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Dn}-name`]:{display:"none",textAlign:"center"},[`${Dn}-file + ${Dn}-name`]:{position:"absolute",bottom:kt.margin,display:"block",width:`calc(100% - ${kt.paddingXS*2}px)`},[`${Dn}-uploading`]:{[`&${Dn}`]:{backgroundColor:kt.colorFillAlter},[`&::before, ${Dt}-eye, ${Dt}-download, ${Dt}-delete`]:{display:"none"}},[`${Dn}-progress`]:{bottom:kt.marginXL,width:`calc(100% - ${kt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${gt}-wrapper${gt}-picture-circle-wrapper`]:{[`${gt}${gt}-select`]:{borderRadius:"50%"}}}};var rn=kt=>{const{componentCls:gt}=kt;return{[`${gt}-rtl`]:{direction:"rtl"}}};const Ze=kt=>{const{componentCls:gt,colorTextDisabled:Dt}=kt;return{[`${gt}-wrapper`]:Object.assign(Object.assign({},(0,dr.Wf)(kt)),{[gt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${gt}-select`]:{display:"inline-block"},[`${gt}-disabled`]:{color:Dt,cursor:"not-allowed"}})}};var St=(0,nr.Z)("Upload",kt=>{const{fontSizeHeading3:gt,fontSize:Dt,lineHeight:En,lineWidth:qn,controlHeightLG:Cn}=kt,Dn=Math.round(Dt*En),In=(0,_r.TS)(kt,{uploadThumbnailSize:gt*2,uploadProgressOffset:Dn/2+qn,uploadPicCardSize:Cn*2.55});return[Ze(In),Wr(In),nt(In),mt(In),ti(In),lr(In),rn(In),(0,Fr.Z)(In)]},kt=>({actionsColor:kt.colorTextDescription})),Vt=function(kt,gt,Dt,En){function qn(Cn){return Cn instanceof Dt?Cn:new Dt(function(Dn){Dn(Cn)})}return new(Dt||(Dt=Promise))(function(Cn,Dn){function In(pn){try{kr(En.next(pn))}catch(di){Dn(di)}}function Un(pn){try{kr(En.throw(pn))}catch(di){Dn(di)}}function kr(pn){pn.done?Cn(pn.value):qn(pn.value).then(In,Un)}kr((En=En.apply(kt,gt||[])).next())})};const Nt=`__LIST_IGNORE_${Date.now()}__`,cn=(kt,gt)=>{const{fileList:Dt,defaultFileList:En,onRemove:qn,showUploadList:Cn=!0,listType:Dn="text",onPreview:In,onDownload:Un,onChange:kr,onDrop:pn,previewFile:di,disabled:Qr,locale:Fi,iconRender:Ni,isImageUrl:Ci,progress:Qi,prefixCls:Ei,className:pi,type:Hi="select",children:$i,style:ci,itemRender:Mi,maxCount:Ji,data:ca={},multiple:na=!1,action:hi="",accept:zt="",supportServerRender:Tt=!0,rootClassName:fn}=kt,Bn=ae.useContext(Qe.Z),Qn=Qr!=null?Qr:Bn,[Or,Zr]=(0,Hn.Z)(En||[],{value:Dt,postState:Fe=>Fe!=null?Fe:[]}),[Jr,ri]=ae.useState("drop"),qr=ae.useRef(null);ae.useMemo(()=>{const Fe=Date.now();(Dt||[]).forEach((We,Wt)=>{!We.uid&&!Object.isFrozen(We)&&(We.uid=`__AUTO__${Fe}_${Wt}__`)})},[Dt]);const fi=(Fe,We,Wt)=>{let bt=(0,Pe.Z)(We),sn=!1;Ji===1?bt=bt.slice(-1):Ji&&(sn=bt.length>Ji,bt=bt.slice(0,Ji)),(0,Yn.flushSync)(()=>{Zr(bt)});const Ln={file:Fe,fileList:bt};Wt&&(Ln.event=Wt),(!sn||bt.some(zn=>zn.uid===Fe.uid))&&(0,Yn.flushSync)(()=>{kr==null||kr(Ln)})},Ai=(Fe,We)=>Vt(void 0,void 0,void 0,function*(){const{beforeUpload:Wt,transformFile:bt}=kt;let sn=Fe;if(Wt){const Ln=yield Wt(Fe,We);if(Ln===!1)return!1;if(delete Fe[Nt],Ln===Nt)return Object.defineProperty(Fe,Nt,{value:!0,configurable:!0}),!1;typeof Ln=="object"&&Ln&&(sn=Ln)}return bt&&(sn=yield bt(sn)),sn}),jr=Fe=>{const We=Fe.filter(sn=>!sn.file[Nt]);if(!We.length)return;const Wt=We.map(sn=>ft(sn.file));let bt=(0,Pe.Z)(Or);Wt.forEach(sn=>{bt=Ht(sn,bt)}),Wt.forEach((sn,Ln)=>{let zn=sn;if(We[Ln].parsedFile)sn.status="uploading";else{const{originFileObj:ar}=sn;let ot;try{ot=new File([ar],ar.name,{type:ar.type})}catch(Ye){ot=new Blob([ar],{type:ar.type}),ot.name=ar.name,ot.lastModifiedDate=new Date,ot.lastModified=new Date().getTime()}ot.uid=sn.uid,zn=ot}fi(zn,bt)})},wi=(Fe,We,Wt)=>{try{typeof Fe=="string"&&(Fe=JSON.parse(Fe))}catch(Ln){}if(!Zt(We,Or))return;const bt=ft(We);bt.status="done",bt.percent=100,bt.response=Fe,bt.xhr=Wt;const sn=Ht(bt,Or);fi(bt,sn)},Di=(Fe,We)=>{if(!Zt(We,Or))return;const Wt=ft(We);Wt.status="uploading",Wt.percent=Fe.percent;const bt=Ht(Wt,Or);fi(Wt,bt,Fe)},Li=(Fe,We,Wt)=>{if(!Zt(Wt,Or))return;const bt=ft(Wt);bt.error=Fe,bt.response=We,bt.status="error";const sn=Ht(bt,Or);fi(bt,sn)},Te=Fe=>{let We;Promise.resolve(typeof qn=="function"?qn(Fe):qn).then(Wt=>{var bt;if(Wt===!1)return;const sn=jt(Fe,Or);sn&&(We=Object.assign(Object.assign({},Fe),{status:"removed"}),Or==null||Or.forEach(Ln=>{const zn=We.uid!==void 0?"uid":"name";Ln[zn]===We[zn]&&!Object.isFrozen(Ln)&&(Ln.status="removed")}),(bt=qr.current)===null||bt===void 0||bt.abort(We),fi(We,sn))})},He=Fe=>{ri(Fe.type),Fe.type==="drop"&&(pn==null||pn(Fe))};ae.useImperativeHandle(gt,()=>({onBatchStart:jr,onSuccess:wi,onProgress:Di,onError:Li,fileList:Or,upload:qr.current}));const{getPrefixCls:Ke,direction:Ge,upload:ut}=ae.useContext(tr.E_),vt=Ke("upload",Ei),Kt=Object.assign(Object.assign({onBatchStart:jr,onError:Li,onProgress:Di,onSuccess:wi},kt),{data:ca,multiple:na,action:hi,accept:zt,supportServerRender:Tt,prefixCls:vt,disabled:Qn,beforeUpload:Ai,onChange:void 0});delete Kt.className,delete Kt.style,(!$i||Qn)&&delete Kt.id;const[vn,kn]=St(vt),[yr]=(0,we.Z)("Upload",At.Z.Upload),{showRemoveIcon:Pr,showPreviewIcon:cr,showDownloadIcon:Wn,removeIcon:Fn,previewIcon:$n,downloadIcon:rr}=typeof Cn=="boolean"?{}:Cn,Ir=(Fe,We)=>Cn?ae.createElement(ur,{prefixCls:vt,listType:Dn,items:Or,previewFile:di,onPreview:In,onDownload:Un,onRemove:Te,showRemoveIcon:!Qn&&Pr,showPreviewIcon:cr,showDownloadIcon:Wn,removeIcon:Fn,previewIcon:$n,downloadIcon:rr,iconRender:Ni,locale:Object.assign(Object.assign({},yr),Fi),isImageUrl:Ci,progress:Qi,appendAction:Fe,appendActionVisible:We,itemRender:Mi,disabled:Qn}):Fe,gr=qe()(`${vt}-wrapper`,pi,fn,kn,ut==null?void 0:ut.className,{[`${vt}-rtl`]:Ge==="rtl",[`${vt}-picture-card-wrapper`]:Dn==="picture-card",[`${vt}-picture-circle-wrapper`]:Dn==="picture-circle"}),fr=Object.assign(Object.assign({},ut==null?void 0:ut.style),ci);if(Hi==="drag"){const Fe=qe()(kn,vt,`${vt}-drag`,{[`${vt}-drag-uploading`]:Or.some(We=>We.status==="uploading"),[`${vt}-drag-hover`]:Jr==="dragover",[`${vt}-disabled`]:Qn,[`${vt}-rtl`]:Ge==="rtl"});return vn(ae.createElement("span",{className:gr},ae.createElement("div",{className:Fe,style:fr,onDrop:He,onDragOver:He,onDragLeave:He},ae.createElement(tn,Object.assign({},Kt,{ref:qr,className:`${vt}-btn`}),ae.createElement("div",{className:`${vt}-drag-container`},$i))),Ir()))}const wr=qe()(vt,`${vt}-select`,{[`${vt}-disabled`]:Qn}),Nr=(Fe=>ae.createElement("div",{className:wr,style:Fe},ae.createElement(tn,Object.assign({},Kt,{ref:qr}))))($i?void 0:{display:"none"});return vn(Dn==="picture-card"||Dn==="picture-circle"?ae.createElement("span",{className:gr},Ir(Nr,!!$i)):ae.createElement("span",{className:gr},Nr,Ir()))};var Kn=ae.forwardRef(cn),Hr=function(kt,gt){var Dt={};for(var En in kt)Object.prototype.hasOwnProperty.call(kt,En)&&gt.indexOf(En)<0&&(Dt[En]=kt[En]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qn=0,En=Object.getOwnPropertySymbols(kt);qn<En.length;qn++)gt.indexOf(En[qn])<0&&Object.prototype.propertyIsEnumerable.call(kt,En[qn])&&(Dt[En[qn]]=kt[En[qn]]);return Dt},or=ae.forwardRef((kt,gt)=>{var{style:Dt,height:En}=kt,qn=Hr(kt,["style","height"]);return ae.createElement(Kn,Object.assign({ref:gt},qn,{type:"drag",style:Object.assign(Object.assign({},Dt),{height:En})}))});const Ar=Kn;Ar.Dragger=or,Ar.LIST_IGNORE=Nt;var Lr=Ar},72665:function(dn,en){"use strict";var se;var ae=typeof Symbol=="function"&&Symbol.for,Pe=ae?Symbol.for("react.element"):60103,Re=ae?Symbol.for("react.portal"):60106,qe=ae?Symbol.for("react.fragment"):60107,ve=ae?Symbol.for("react.strict_mode"):60108,ke=ae?Symbol.for("react.profiler"):60114,Le=ae?Symbol.for("react.provider"):60109,xe=ae?Symbol.for("react.context"):60110,me=ae?Symbol.for("react.async_mode"):60111,Ie=ae?Symbol.for("react.concurrent_mode"):60111,st=ae?Symbol.for("react.forward_ref"):60112,Ne=ae?Symbol.for("react.suspense"):60113,xt=ae?Symbol.for("react.suspense_list"):60120,pt=ae?Symbol.for("react.memo"):60115,ct=ae?Symbol.for("react.lazy"):60116,rt=ae?Symbol.for("react.block"):60121,Ee=ae?Symbol.for("react.fundamental"):60117,at=ae?Symbol.for("react.responder"):60118,Yt=ae?Symbol.for("react.scope"):60119;function Xe(Se){if(typeof Se=="object"&&Se!==null){var Ce=Se.$$typeof;switch(Ce){case Pe:switch(Se=Se.type,Se){case me:case Ie:case qe:case ke:case ve:case Ne:return Se;default:switch(Se=Se&&Se.$$typeof,Se){case xe:case st:case ct:case pt:case Le:return Se;default:return Ce}}case Re:return Ce}}}function lt(Se){return Xe(Se)===Ie}se=me,se=Ie,se=xe,se=Le,se=Pe,se=st,se=qe,se=ct,se=pt,se=Re,se=ke,se=ve,se=Ne,se=function(Se){return lt(Se)||Xe(Se)===me},se=lt,se=function(Se){return Xe(Se)===xe},se=function(Se){return Xe(Se)===Le},se=function(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===Pe},se=function(Se){return Xe(Se)===st},se=function(Se){return Xe(Se)===qe},se=function(Se){return Xe(Se)===ct},en.isMemo=function(Se){return Xe(Se)===pt},se=function(Se){return Xe(Se)===Re},se=function(Se){return Xe(Se)===ke},se=function(Se){return Xe(Se)===ve},se=function(Se){return Xe(Se)===Ne},se=function(Se){return typeof Se=="string"||typeof Se=="function"||Se===qe||Se===Ie||Se===ke||Se===ve||Se===Ne||Se===xt||typeof Se=="object"&&Se!==null&&(Se.$$typeof===ct||Se.$$typeof===pt||Se.$$typeof===Le||Se.$$typeof===xe||Se.$$typeof===st||Se.$$typeof===Ee||Se.$$typeof===at||Se.$$typeof===Yt||Se.$$typeof===rt)},se=Xe},12060:function(dn,en,se){"use strict";dn.exports=se(72665)},41771:function(dn,en){"use strict";var se;var ae=typeof Symbol=="function"&&Symbol.for,Pe=ae?Symbol.for("react.element"):60103,Re=ae?Symbol.for("react.portal"):60106,qe=ae?Symbol.for("react.fragment"):60107,ve=ae?Symbol.for("react.strict_mode"):60108,ke=ae?Symbol.for("react.profiler"):60114,Le=ae?Symbol.for("react.provider"):60109,xe=ae?Symbol.for("react.context"):60110,me=ae?Symbol.for("react.async_mode"):60111,Ie=ae?Symbol.for("react.concurrent_mode"):60111,st=ae?Symbol.for("react.forward_ref"):60112,Ne=ae?Symbol.for("react.suspense"):60113,xt=ae?Symbol.for("react.suspense_list"):60120,pt=ae?Symbol.for("react.memo"):60115,ct=ae?Symbol.for("react.lazy"):60116,rt=ae?Symbol.for("react.block"):60121,Ee=ae?Symbol.for("react.fundamental"):60117,at=ae?Symbol.for("react.responder"):60118,Yt=ae?Symbol.for("react.scope"):60119;function Xe(Se){if(typeof Se=="object"&&Se!==null){var Ce=Se.$$typeof;switch(Ce){case Pe:switch(Se=Se.type,Se){case me:case Ie:case qe:case ke:case ve:case Ne:return Se;default:switch(Se=Se&&Se.$$typeof,Se){case xe:case st:case ct:case pt:case Le:return Se;default:return Ce}}case Re:return Ce}}}function lt(Se){return Xe(Se)===Ie}se=me,se=Ie,se=xe,se=Le,se=Pe,se=st,se=qe,se=ct,se=pt,se=Re,se=ke,se=ve,se=Ne,se=function(Se){return lt(Se)||Xe(Se)===me},se=lt,se=function(Se){return Xe(Se)===xe},se=function(Se){return Xe(Se)===Le},se=function(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===Pe},se=function(Se){return Xe(Se)===st},en.isFragment=function(Se){return Xe(Se)===qe},se=function(Se){return Xe(Se)===ct},se=function(Se){return Xe(Se)===pt},se=function(Se){return Xe(Se)===Re},se=function(Se){return Xe(Se)===ke},se=function(Se){return Xe(Se)===ve},se=function(Se){return Xe(Se)===Ne},se=function(Se){return typeof Se=="string"||typeof Se=="function"||Se===qe||Se===Ie||Se===ke||Se===ve||Se===Ne||Se===xt||typeof Se=="object"&&Se!==null&&(Se.$$typeof===ct||Se.$$typeof===pt||Se.$$typeof===Le||Se.$$typeof===xe||Se.$$typeof===st||Se.$$typeof===Ee||Se.$$typeof===at||Se.$$typeof===Yt||Se.$$typeof===rt)},se=Xe},47655:function(dn,en,se){"use strict";dn.exports=se(41771)},64701:function(dn,en,se){"use strict";se.r(en),se.d(en,{ResizableTextArea:function(){return Mn},default:function(){return bn}});var ae=se(87462),Pe=se(1413),Re=se(4942),qe=se(71002),ve=se(97685),ke=se(45987),Le=se(74902),xe=se(94184),me=se.n(xe),Ie=se(67656),st=se(87887),Ne=se(67294);function xt(un){var nn=Ne.useRef();nn.current=un;var xn=Ne.useCallback(function(){for(var Pn,De=arguments.length,ue=new Array(De),ce=0;ce<De;ce++)ue[ce]=arguments[ce];return(Pn=nn.current)===null||Pn===void 0?void 0:Pn.call.apply(Pn,[nn].concat(ue))},[]);return xn}function pt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ct=pt()?Ne.useLayoutEffect:Ne.useEffect,rt=ct,Ee=function(nn,xn){var Pn=Ne.useRef(!0);ct(function(){if(!Pn.current)return nn()},xn),ct(function(){return Pn.current=!1,function(){Pn.current=!0}},[])};function at(un){var nn=Ne.useRef(!1),xn=Ne.useState(un),Pn=(0,ve.Z)(xn,2),De=Pn[0],ue=Pn[1];Ne.useEffect(function(){return nn.current=!1,function(){nn.current=!0}},[]);function ce(he,fe){fe&&nn.current||ue(he)}return[De,ce]}function Yt(un){return un!==void 0}function Xe(un,nn){var xn=nn||{},Pn=xn.defaultValue,De=xn.value,ue=xn.onChange,ce=xn.postState,he=at(function(){return Yt(De)?De:Yt(Pn)?typeof Pn=="function"?Pn():Pn:typeof un=="function"?un():un}),fe=(0,ve.Z)(he,2),le=fe[0],Me=fe[1],Ve=De!==void 0?De:le,ft=ce?ce(Ve):Ve,Ht=xt(ue),Zt=at([Ve]),jt=(0,ve.Z)(Zt,2),$t=jt[0],Je=jt[1];Ee(function(){var Lt=$t[0];le!==Lt&&Ht(le,Lt)},[$t]),Ee(function(){Yt(De)||Me(De)},[De]);var Et=xt(function(Lt,Xt){Me(Lt,Xt),Je([Ve],Xt)});return[ft,Et]}var lt=se(48555),Se=function(nn){return+setTimeout(nn,16)},Ce=function(nn){return clearTimeout(nn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Se=function(nn){return window.requestAnimationFrame(nn)},Ce=function(nn){return window.cancelAnimationFrame(nn)});var je=0,Ue=new Map;function Mt(un){Ue.delete(un)}var ht=function(nn){var xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;je+=1;var Pn=je;function De(ue){if(ue===0)Mt(Pn),nn();else{var ce=Se(function(){De(ue-1)});Ue.set(Pn,ce)}}return De(xn),Pn};ht.cancel=function(un){var nn=Ue.get(un);return Mt(nn),Ce(nn)};var Ft=ht,tt=`
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;
`,Jt=["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"],Rt={},yn;function tn(un){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xn=un.getAttribute("id")||un.getAttribute("data-reactid")||un.getAttribute("name");if(nn&&Rt[xn])return Rt[xn];var Pn=window.getComputedStyle(un),De=Pn.getPropertyValue("box-sizing")||Pn.getPropertyValue("-moz-box-sizing")||Pn.getPropertyValue("-webkit-box-sizing"),ue=parseFloat(Pn.getPropertyValue("padding-bottom"))+parseFloat(Pn.getPropertyValue("padding-top")),ce=parseFloat(Pn.getPropertyValue("border-bottom-width"))+parseFloat(Pn.getPropertyValue("border-top-width")),he=Jt.map(function(le){return"".concat(le,":").concat(Pn.getPropertyValue(le))}).join(";"),fe={sizingStyle:he,paddingSize:ue,borderSize:ce,boxSizing:De};return nn&&xn&&(Rt[xn]=fe),fe}function Hn(un){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Pn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;yn||(yn=document.createElement("textarea"),yn.setAttribute("tab-index","-1"),yn.setAttribute("aria-hidden","true"),document.body.appendChild(yn)),un.getAttribute("wrap")?yn.setAttribute("wrap",un.getAttribute("wrap")):yn.removeAttribute("wrap");var De=tn(un,nn),ue=De.paddingSize,ce=De.borderSize,he=De.boxSizing,fe=De.sizingStyle;yn.setAttribute("style","".concat(fe,";").concat(tt)),yn.value=un.value||un.placeholder||"";var le=void 0,Me=void 0,Ve,ft=yn.scrollHeight;if(he==="border-box"?ft+=ce:he==="content-box"&&(ft-=ue),xn!==null||Pn!==null){yn.value=" ";var Ht=yn.scrollHeight-ue;xn!==null&&(le=Ht*xn,he==="border-box"&&(le=le+ue+ce),ft=Math.max(le,ft)),Pn!==null&&(Me=Ht*Pn,he==="border-box"&&(Me=Me+ue+ce),Ve=ft>Me?"":"hidden",ft=Math.min(Me,ft))}var Zt={height:ft,overflowY:Ve,resize:"none"};return le&&(Zt.minHeight=le),Me&&(Zt.maxHeight=Me),Zt}var Yn=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],tr=0,Qe=1,we=2,At=Ne.forwardRef(function(un,nn){var xn=un,Pn=xn.prefixCls,De=xn.onPressEnter,ue=xn.defaultValue,ce=xn.value,he=xn.autoSize,fe=xn.onResize,le=xn.className,Me=xn.style,Ve=xn.disabled,ft=xn.onChange,Ht=xn.onInternalAutoSize,Zt=(0,ke.Z)(xn,Yn),jt=Xe(ue,{value:ce,postState:function(an){return an!=null?an:""}}),$t=(0,ve.Z)(jt,2),Je=$t[0],Et=$t[1],Lt=function(an){Et(an.target.value),ft==null||ft(an)},Xt=Ne.useRef();Ne.useImperativeHandle(nn,function(){return{textArea:Xt.current}});var wt=Ne.useMemo(function(){return he&&(0,qe.Z)(he)==="object"?[he.minRows,he.maxRows]:[]},[he]),Nn=(0,ve.Z)(wt,2),et=Nn[0],It=Nn[1],gn=!!he,hn=function(){try{if(document.activeElement===Xt.current){var an=Xt.current,vr=an.selectionStart,lr=an.selectionEnd,Gn=an.scrollTop;Xt.current.setSelectionRange(vr,lr),Xt.current.scrollTop=Gn}}catch(jn){}},An=Ne.useState(we),Vn=(0,ve.Z)(An,2),mr=Vn[0],ur=Vn[1],dr=Ne.useState(),Fr=(0,ve.Z)(dr,2),nr=Fr[0],_r=Fr[1],oi=function(){ur(tr)};rt(function(){gn&&oi()},[ce,et,It,gn]),rt(function(){if(mr===tr)ur(Qe);else if(mr===Qe){var Rn=Hn(Xt.current,!1,et,It);ur(we),_r(Rn)}else hn()},[mr]);var Wr=Ne.useRef(),xi=function(){Ft.cancel(Wr.current)},ti=function(an){mr===we&&(fe==null||fe(an),he&&(xi(),Wr.current=Ft(function(){oi()})))};Ne.useEffect(function(){return xi},[]);var Ct=gn?nr:null,wn=(0,Pe.Z)((0,Pe.Z)({},Me),Ct);return(mr===tr||mr===Qe)&&(wn.overflowY="hidden",wn.overflowX="hidden"),Ne.createElement(lt.Z,{onResize:ti,disabled:!(he||fe)},Ne.createElement("textarea",(0,ae.Z)({},Zt,{ref:Xt,style:wn,className:me()(Pn,le,(0,Re.Z)({},"".concat(Pn,"-disabled"),Ve)),disabled:Ve,value:Je,onChange:Lt})))}),Mn=At,_t=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function $e(un,nn){return(0,Le.Z)(un||"").slice(0,nn).join("")}function dt(un,nn,xn,Pn){var De=xn;return un?De=$e(xn,Pn):(0,Le.Z)(nn||"").length<xn.length&&(0,Le.Z)(xn||"").length>Pn&&(De=nn),De}var qt=Ne.forwardRef(function(un,nn){var xn,Pn=un.defaultValue,De=un.value,ue=un.onFocus,ce=un.onBlur,he=un.onChange,fe=un.allowClear,le=un.maxLength,Me=un.onCompositionStart,Ve=un.onCompositionEnd,ft=un.suffix,Ht=un.prefixCls,Zt=Ht===void 0?"rc-textarea":Ht,jt=un.classes,$t=un.showCount,Je=un.className,Et=un.style,Lt=un.disabled,Xt=un.hidden,wt=un.classNames,Nn=un.styles,et=un.onResize,It=(0,ke.Z)(un,_t),gn=Xe(Pn,{value:De,defaultValue:Pn}),hn=(0,ve.Z)(gn,2),An=hn[0],Vn=hn[1],mr=(0,Ne.useRef)(null),ur=Ne.useState(!1),dr=(0,ve.Z)(ur,2),Fr=dr[0],nr=dr[1],_r=Ne.useState(!1),oi=(0,ve.Z)(_r,2),Wr=oi[0],xi=oi[1],ti=Ne.useRef(),Ct=Ne.useRef(0),wn=Ne.useState(null),Rn=(0,ve.Z)(wn,2),an=Rn[0],vr=Rn[1],lr=function(){var Ar;(Ar=mr.current)===null||Ar===void 0||Ar.textArea.focus()};(0,Ne.useImperativeHandle)(nn,function(){return{resizableTextArea:mr.current,focus:lr,blur:function(){var Ar;(Ar=mr.current)===null||Ar===void 0||Ar.textArea.blur()}}}),(0,Ne.useEffect)(function(){nr(function(or){return!Lt&&or})},[Lt]);var Gn=Number(le)>0,jn=function(Ar){xi(!0),ti.current=An,Ct.current=Ar.currentTarget.selectionStart,Me==null||Me(Ar)},nt=function(Ar){xi(!1);var Lr=Ar.currentTarget.value;if(Gn){var kt,gt=Ct.current>=le+1||Ct.current===((kt=ti.current)===null||kt===void 0?void 0:kt.length);Lr=dt(gt,ti.current,Lr,le)}Lr!==An&&(Vn(Lr),(0,st.rJ)(Ar.currentTarget,Ar,he,Lr)),Ve==null||Ve(Ar)},mt=function(Ar){var Lr=Ar.target.value;if(!Wr&&Gn){var kt=Ar.target.selectionStart>=le+1||Ar.target.selectionStart===Lr.length||!Ar.target.selectionStart;Lr=dt(kt,An,Lr,le)}Vn(Lr),(0,st.rJ)(Ar.currentTarget,Ar,he,Lr)},Bt=function(Ar){var Lr=It.onPressEnter,kt=It.onKeyDown;Ar.key==="Enter"&&Lr&&Lr(Ar),kt==null||kt(Ar)},rn=function(Ar){nr(!0),ue==null||ue(Ar)},Ze=function(Ar){nr(!1),ce==null||ce(Ar)},St=function(Ar){var Lr;Vn(""),lr(),(0,st.rJ)((Lr=mr.current)===null||Lr===void 0?void 0:Lr.textArea,Ar,he)},Vt=(0,st.D7)(An);!Wr&&Gn&&De==null&&(Vt=$e(Vt,le));var Nt=ft,cn;if($t){var on=(0,Le.Z)(Vt).length;(0,qe.Z)($t)==="object"?cn=$t.formatter({value:Vt,count:on,maxLength:le}):cn="".concat(on).concat(Gn?" / ".concat(le):""),Nt=Ne.createElement(Ne.Fragment,null,Nt,Ne.createElement("span",{className:me()("".concat(Zt,"-data-count"),wt==null?void 0:wt.count),style:Nn==null?void 0:Nn.count},cn))}var Kn=function(Ar){var Lr;et==null||et(Ar),(Lr=mr.current)!==null&&Lr!==void 0&&Lr.textArea.style.height&&vr(!0)},Hr=!It.autoSize&&!$t&&!fe,hr=Ne.createElement(Ie.BaseInput,{value:Vt,allowClear:fe,handleReset:St,suffix:Nt,prefixCls:Zt,classes:{affixWrapper:me()(jt==null?void 0:jt.affixWrapper,(xn={},(0,Re.Z)(xn,"".concat(Zt,"-show-count"),$t),(0,Re.Z)(xn,"".concat(Zt,"-textarea-allow-clear"),fe),xn))},disabled:Lt,focused:Fr,className:Je,style:(0,Pe.Z)((0,Pe.Z)({},Et),an&&!Hr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof cn=="string"?cn:void 0}},hidden:Xt,inputElement:Ne.createElement(Mn,(0,ae.Z)({},It,{onKeyDown:Bt,onChange:mt,onFocus:rn,onBlur:Ze,onCompositionStart:jn,onCompositionEnd:nt,className:wt==null?void 0:wt.textarea,style:(0,Pe.Z)((0,Pe.Z)({},Nn==null?void 0:Nn.textarea),{},{resize:Et==null?void 0:Et.resize}),disabled:Lt,prefixCls:Zt,onResize:Kn,ref:mr}))});return hr}),Xn=qt,bn=Xn},1337:function(dn,en,se){"use strict";se.d(en,{Z:function(){return xe}});var ae=se(1413),Pe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Re=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,qe="".concat(Pe," ").concat(Re).split(/[\s\n]+/),ve="aria-",ke="data-";function Le(me,Ie){return me.indexOf(Ie)===0}function xe(me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st;Ie===!1?st={aria:!0,data:!0,attr:!0}:Ie===!0?st={aria:!0}:st=(0,ae.Z)({},Ie);var Ne={};return Object.keys(me).forEach(function(xt){(st.aria&&(xt==="role"||Le(xt,ve))||st.data&&Le(xt,ke)||st.attr&&qe.includes(xt))&&(Ne[xt]=me[xt])}),Ne}},88386:function(dn,en,se){(function(ae){ae(se(4631))})(function(ae){ae.defineOption("placeholder","",function(xe,me,Ie){var st=Ie&&Ie!=ae.Init;if(me&&!st)xe.on("blur",ve),xe.on("change",ke),xe.on("swapDoc",ke),ae.on(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose=function(){qe(xe)}),ke(xe);else if(!me&&st){xe.off("blur",ve),xe.off("change",ke),xe.off("swapDoc",ke),ae.off(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose),Pe(xe);var Ne=xe.getWrapperElement();Ne.className=Ne.className.replace(" CodeMirror-empty","")}me&&!xe.hasFocus()&&ve(xe)});function Pe(xe){xe.state.placeholder&&(xe.state.placeholder.parentNode.removeChild(xe.state.placeholder),xe.state.placeholder=null)}function Re(xe){Pe(xe);var me=xe.state.placeholder=document.createElement("pre");me.style.cssText="height: 0; overflow: visible",me.style.direction=xe.getOption("direction"),me.className="CodeMirror-placeholder CodeMirror-line-like";var Ie=xe.getOption("placeholder");typeof Ie=="string"&&(Ie=document.createTextNode(Ie)),me.appendChild(Ie),xe.display.lineSpace.insertBefore(me,xe.display.lineSpace.firstChild)}function qe(xe){setTimeout(function(){var me=!1,Ie=xe.getInputField();Ie.nodeName=="TEXTAREA"?me=!Ie.value:xe.lineCount()==1&&(me=!/[^\u200b]/.test(Ie.querySelector(".CodeMirror-line").textContent)),me?Re(xe):Pe(xe)},20)}function ve(xe){Le(xe)&&Re(xe)}function ke(xe){var me=xe.getWrapperElement(),Ie=Le(xe);me.className=me.className.replace(" CodeMirror-empty","")+(Ie?" CodeMirror-empty":""),Ie?Re(xe):Pe(xe)}function Le(xe){return xe.lineCount()===1&&xe.getLine(0)===""}})},82801:function(dn,en,se){(function(ae){ae(se(4631))})(function(ae){var Pe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Re=ae.Pos;ae.defineOption("autoCloseBrackets",!1,function(ct,rt,Ee){Ee&&Ee!=ae.Init&&(ct.removeKeyMap(ve),ct.state.closeBrackets=null),rt&&(ke(qe(rt,"pairs")),ct.state.closeBrackets=rt,ct.addKeyMap(ve))});function qe(ct,rt){return rt=="pairs"&&typeof ct=="string"?ct:typeof ct=="object"&&ct[rt]!=null?ct[rt]:Pe[rt]}var ve={Backspace:me,Enter:Ie};function ke(ct){for(var rt=0;rt<ct.length;rt++){var Ee=ct.charAt(rt),at="'"+Ee+"'";ve[at]||(ve[at]=Le(Ee))}}ke(Pe.pairs+"`");function Le(ct){return function(rt){return Ne(rt,ct)}}function xe(ct){var rt=ct.state.closeBrackets;if(!rt||rt.override)return rt;var Ee=ct.getModeAt(ct.getCursor());return Ee.closeBrackets||rt}function me(ct){var rt=xe(ct);if(!rt||ct.getOption("disableInput"))return ae.Pass;for(var Ee=qe(rt,"pairs"),at=ct.listSelections(),Yt=0;Yt<at.length;Yt++){if(!at[Yt].empty())return ae.Pass;var Xe=xt(ct,at[Yt].head);if(!Xe||Ee.indexOf(Xe)%2!=0)return ae.Pass}for(var Yt=at.length-1;Yt>=0;Yt--){var lt=at[Yt].head;ct.replaceRange("",Re(lt.line,lt.ch-1),Re(lt.line,lt.ch+1),"+delete")}}function Ie(ct){var rt=xe(ct),Ee=rt&&qe(rt,"explode");if(!Ee||ct.getOption("disableInput"))return ae.Pass;for(var at=ct.listSelections(),Yt=0;Yt<at.length;Yt++){if(!at[Yt].empty())return ae.Pass;var Xe=xt(ct,at[Yt].head);if(!Xe||Ee.indexOf(Xe)%2!=0)return ae.Pass}ct.operation(function(){var lt=ct.lineSeparator()||`
`;ct.replaceSelection(lt+lt,null),ct.execCommand("goCharLeft"),at=ct.listSelections();for(var Se=0;Se<at.length;Se++){var Ce=at[Se].head.line;ct.indentLine(Ce,null,!0),ct.indentLine(Ce+1,null,!0)}})}function st(ct){var rt=ae.cmpPos(ct.anchor,ct.head)>0;return{anchor:new Re(ct.anchor.line,ct.anchor.ch+(rt?-1:1)),head:new Re(ct.head.line,ct.head.ch+(rt?1:-1))}}function Ne(ct,rt){var Ee=xe(ct);if(!Ee||ct.getOption("disableInput"))return ae.Pass;var at=qe(Ee,"pairs"),Yt=at.indexOf(rt);if(Yt==-1)return ae.Pass;for(var Xe=qe(Ee,"closeBefore"),lt=qe(Ee,"triples"),Se=at.charAt(Yt+1)==rt,Ce=ct.listSelections(),je=Yt%2==0,Ue,Mt=0;Mt<Ce.length;Mt++){var ht=Ce[Mt],Ft=ht.head,tt,Jt=ct.getRange(Ft,Re(Ft.line,Ft.ch+1));if(je&&!ht.empty())tt="surround";else if((Se||!je)&&Jt==rt)Se&&pt(ct,Ft)?tt="both":lt.indexOf(rt)>=0&&ct.getRange(Ft,Re(Ft.line,Ft.ch+3))==rt+rt+rt?tt="skipThree":tt="skip";else if(Se&&Ft.ch>1&&lt.indexOf(rt)>=0&&ct.getRange(Re(Ft.line,Ft.ch-2),Ft)==rt+rt){if(Ft.ch>2&&/\bstring/.test(ct.getTokenTypeAt(Re(Ft.line,Ft.ch-2))))return ae.Pass;tt="addFour"}else if(Se){var Rt=Ft.ch==0?" ":ct.getRange(Re(Ft.line,Ft.ch-1),Ft);if(!ae.isWordChar(Jt)&&Rt!=rt&&!ae.isWordChar(Rt))tt="both";else return ae.Pass}else if(je&&(Jt.length===0||/\s/.test(Jt)||Xe.indexOf(Jt)>-1))tt="both";else return ae.Pass;if(!Ue)Ue=tt;else if(Ue!=tt)return ae.Pass}var yn=Yt%2?at.charAt(Yt-1):rt,tn=Yt%2?rt:at.charAt(Yt+1);ct.operation(function(){if(Ue=="skip")ct.execCommand("goCharRight");else if(Ue=="skipThree")for(var Hn=0;Hn<3;Hn++)ct.execCommand("goCharRight");else if(Ue=="surround"){for(var Yn=ct.getSelections(),Hn=0;Hn<Yn.length;Hn++)Yn[Hn]=yn+Yn[Hn]+tn;ct.replaceSelections(Yn,"around"),Yn=ct.listSelections().slice();for(var Hn=0;Hn<Yn.length;Hn++)Yn[Hn]=st(Yn[Hn]);ct.setSelections(Yn)}else Ue=="both"?(ct.replaceSelection(yn+tn,null),ct.triggerElectric(yn+tn),ct.execCommand("goCharLeft")):Ue=="addFour"&&(ct.replaceSelection(yn+yn+yn+yn,"before"),ct.execCommand("goCharRight"))})}function xt(ct,rt){var Ee=ct.getRange(Re(rt.line,rt.ch-1),Re(rt.line,rt.ch+1));return Ee.length==2?Ee:null}function pt(ct,rt){var Ee=ct.getTokenAt(Re(rt.line,rt.ch+1));return/\bstring/.test(Ee.type)&&Ee.start==rt.ch&&(rt.ch==0||!/\bstring/.test(ct.getTokenTypeAt(rt)))}})},57341:function(dn,en,se){(function(ae){ae(se(4631),se(4786))})(function(ae){ae.defineOption("autoCloseTags",!1,function(me,Ie,st){if(st!=ae.Init&&st&&me.removeKeyMap("autoCloseTags"),!!Ie){var Ne={name:"autoCloseTags"};(typeof Ie!="object"||Ie.whenClosing!==!1)&&(Ne["'/'"]=function(xt){return ke(xt)}),(typeof Ie!="object"||Ie.whenOpening!==!1)&&(Ne["'>'"]=function(xt){return qe(xt)}),me.addKeyMap(Ne)}});var Pe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Re=["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 qe(me){if(me.getOption("disableInput"))return ae.Pass;for(var Ie=me.listSelections(),st=[],Ne=me.getOption("autoCloseTags"),xt=0;xt<Ie.length;xt++){if(!Ie[xt].empty())return ae.Pass;var pt=Ie[xt].head,ct=me.getTokenAt(pt),rt=ae.innerMode(me.getMode(),ct.state),Ee=rt.state,at=rt.mode.xmlCurrentTag&&rt.mode.xmlCurrentTag(Ee),Yt=at&&at.name;if(!Yt)return ae.Pass;var Xe=rt.mode.configuration=="html",lt=typeof Ne=="object"&&Ne.dontCloseTags||Xe&&Pe,Se=typeof Ne=="object"&&Ne.indentTags||Xe&&Re;ct.end>pt.ch&&(Yt=Yt.slice(0,Yt.length-ct.end+pt.ch));var Ce=Yt.toLowerCase();if(!Yt||ct.type=="string"&&(ct.end!=pt.ch||!/[\"\']/.test(ct.string.charAt(ct.string.length-1))||ct.string.length==1)||ct.type=="tag"&&at.close||ct.string.indexOf("/")==pt.ch-ct.start-1||lt&&Le(lt,Ce)>-1||xe(me,rt.mode.xmlCurrentContext&&rt.mode.xmlCurrentContext(Ee)||[],Yt,pt,!0))return ae.Pass;var je=typeof Ne=="object"&&Ne.emptyTags;if(je&&Le(je,Yt)>-1){st[xt]={text:"/>",newPos:ae.Pos(pt.line,pt.ch+2)};continue}var Ue=Se&&Le(Se,Ce)>-1;st[xt]={indent:Ue,text:">"+(Ue?`
`:"")+"</"+Yt+">",newPos:Ue?ae.Pos(pt.line+1,0):ae.Pos(pt.line,pt.ch+1)}}for(var Mt=typeof Ne=="object"&&Ne.dontIndentOnAutoClose,xt=Ie.length-1;xt>=0;xt--){var ht=st[xt];me.replaceRange(ht.text,Ie[xt].head,Ie[xt].anchor,"+insert");var Ft=me.listSelections().slice(0);Ft[xt]={head:ht.newPos,anchor:ht.newPos},me.setSelections(Ft),!Mt&&ht.indent&&(me.indentLine(ht.newPos.line,null,!0),me.indentLine(ht.newPos.line+1,null,!0))}}function ve(me,Ie){for(var st=me.listSelections(),Ne=[],xt=Ie?"/":"</",pt=me.getOption("autoCloseTags"),ct=typeof pt=="object"&&pt.dontIndentOnSlash,rt=0;rt<st.length;rt++){if(!st[rt].empty())return ae.Pass;var Ee=st[rt].head,at=me.getTokenAt(Ee),Yt=ae.innerMode(me.getMode(),at.state),Xe=Yt.state;if(Ie&&(at.type=="string"||at.string.charAt(0)!="<"||at.start!=Ee.ch-1))return ae.Pass;var lt,Se=Yt.mode.name!="xml"&&me.getMode().name=="htmlmixed";if(Se&&Yt.mode.name=="javascript")lt=xt+"script";else if(Se&&Yt.mode.name=="css")lt=xt+"style";else{var Ce=Yt.mode.xmlCurrentContext&&Yt.mode.xmlCurrentContext(Xe);if(!Ce||Ce.length&&xe(me,Ce,Ce[Ce.length-1],Ee))return ae.Pass;lt=xt+Ce[Ce.length-1]}me.getLine(Ee.line).charAt(at.end)!=">"&&(lt+=">"),Ne[rt]=lt}if(me.replaceSelections(Ne),st=me.listSelections(),!ct)for(var rt=0;rt<st.length;rt++)(rt==st.length-1||st[rt].head.line<st[rt+1].head.line)&&me.indentLine(st[rt].head.line)}function ke(me){return me.getOption("disableInput")?ae.Pass:ve(me,!0)}ae.commands.closeTag=function(me){return ve(me)};function Le(me,Ie){if(me.indexOf)return me.indexOf(Ie);for(var st=0,Ne=me.length;st<Ne;++st)if(me[st]==Ie)return st;return-1}function xe(me,Ie,st,Ne,xt){if(!ae.scanForClosingTag)return!1;var pt=Math.min(me.lastLine()+1,Ne.line+500),ct=ae.scanForClosingTag(me,Ne,null,pt);if(!ct||ct.tag!=st)return!1;for(var rt=xt?1:0,Ee=Ie.length-1;Ee>=0&&Ie[Ee]==st;Ee--)++rt;Ne=ct.to;for(var Ee=1;Ee<rt;Ee++){var at=ae.scanForClosingTag(me,Ne,null,pt);if(!at||at.tag!=st)return!1;Ne=at.to}return!0}})},4786:function(dn,en,se){(function(ae){ae(se(4631))})(function(ae){"use strict";var Pe=ae.Pos;function Re(Ee,at){return Ee.line-at.line||Ee.ch-at.ch}var qe="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=qe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ke=new RegExp("<(/?)(["+qe+"]["+ve+"]*)","g");function Le(Ee,at,Yt,Xe){this.line=at,this.ch=Yt,this.cm=Ee,this.text=Ee.getLine(at),this.min=Xe?Math.max(Xe.from,Ee.firstLine()):Ee.firstLine(),this.max=Xe?Math.min(Xe.to-1,Ee.lastLine()):Ee.lastLine()}function xe(Ee,at){var Yt=Ee.cm.getTokenTypeAt(Pe(Ee.line,at));return Yt&&/\btag\b/.test(Yt)}function me(Ee){if(!(Ee.line>=Ee.max))return Ee.ch=0,Ee.text=Ee.cm.getLine(++Ee.line),!0}function Ie(Ee){if(!(Ee.line<=Ee.min))return Ee.text=Ee.cm.getLine(--Ee.line),Ee.ch=Ee.text.length,!0}function st(Ee){for(;;){var at=Ee.text.indexOf(">",Ee.ch);if(at==-1){if(me(Ee))continue;return}if(!xe(Ee,at+1)){Ee.ch=at+1;continue}var Yt=Ee.text.lastIndexOf("/",at),Xe=Yt>-1&&!/\S/.test(Ee.text.slice(Yt+1,at));return Ee.ch=at+1,Xe?"selfClose":"regular"}}function Ne(Ee){for(;;){var at=Ee.ch?Ee.text.lastIndexOf("<",Ee.ch-1):-1;if(at==-1){if(Ie(Ee))continue;return}if(!xe(Ee,at+1)){Ee.ch=at;continue}ke.lastIndex=at,Ee.ch=at;var Yt=ke.exec(Ee.text);if(Yt&&Yt.index==at)return Yt}}function xt(Ee){for(;;){ke.lastIndex=Ee.ch;var at=ke.exec(Ee.text);if(!at){if(me(Ee))continue;return}if(!xe(Ee,at.index+1)){Ee.ch=at.index+1;continue}return Ee.ch=at.index+at[0].length,at}}function pt(Ee){for(;;){var at=Ee.ch?Ee.text.lastIndexOf(">",Ee.ch-1):-1;if(at==-1){if(Ie(Ee))continue;return}if(!xe(Ee,at+1)){Ee.ch=at;continue}var Yt=Ee.text.lastIndexOf("/",at),Xe=Yt>-1&&!/\S/.test(Ee.text.slice(Yt+1,at));return Ee.ch=at+1,Xe?"selfClose":"regular"}}function ct(Ee,at){for(var Yt=[];;){var Xe=xt(Ee),lt,Se=Ee.line,Ce=Ee.ch-(Xe?Xe[0].length:0);if(!Xe||!(lt=st(Ee)))return;if(lt!="selfClose")if(Xe[1]){for(var je=Yt.length-1;je>=0;--je)if(Yt[je]==Xe[2]){Yt.length=je;break}if(je<0&&(!at||at==Xe[2]))return{tag:Xe[2],from:Pe(Se,Ce),to:Pe(Ee.line,Ee.ch)}}else Yt.push(Xe[2])}}function rt(Ee,at){for(var Yt=[];;){var Xe=pt(Ee);if(!Xe)return;if(Xe=="selfClose"){Ne(Ee);continue}var lt=Ee.line,Se=Ee.ch,Ce=Ne(Ee);if(!Ce)return;if(Ce[1])Yt.push(Ce[2]);else{for(var je=Yt.length-1;je>=0;--je)if(Yt[je]==Ce[2]){Yt.length=je;break}if(je<0&&(!at||at==Ce[2]))return{tag:Ce[2],from:Pe(Ee.line,Ee.ch),to:Pe(lt,Se)}}}}ae.registerHelper("fold","xml",function(Ee,at){for(var Yt=new Le(Ee,at.line,0);;){var Xe=xt(Yt);if(!Xe||Yt.line!=at.line)return;var lt=st(Yt);if(!lt)return;if(!Xe[1]&&lt!="selfClose"){var Se=Pe(Yt.line,Yt.ch),Ce=ct(Yt,Xe[2]);return Ce&&Re(Ce.from,Se)>0?{from:Se,to:Ce.from}:null}}}),ae.findMatchingTag=function(Ee,at,Yt){var Xe=new Le(Ee,at.line,at.ch,Yt);if(!(Xe.text.indexOf(">")==-1&&Xe.text.indexOf("<")==-1)){var lt=st(Xe),Se=lt&&Pe(Xe.line,Xe.ch),Ce=lt&&Ne(Xe);if(!(!lt||!Ce||Re(Xe,at)>0)){var je={from:Pe(Xe.line,Xe.ch),to:Se,tag:Ce[2]};return lt=="selfClose"?{open:je,close:null,at:"open"}:Ce[1]?{open:rt(Xe,Ce[2]),close:je,at:"close"}:(Xe=new Le(Ee,Se.line,Se.ch,Yt),{open:je,close:ct(Xe,Ce[2]),at:"open"})}}},ae.findEnclosingTag=function(Ee,at,Yt,Xe){for(var lt=new Le(Ee,at.line,at.ch,Yt);;){var Se=rt(lt,Xe);if(!Se)break;var Ce=new Le(Ee,at.line,at.ch,Yt),je=ct(Ce,Se.tag);if(je)return{open:Se,close:je}}},ae.scanForClosingTag=function(Ee,at,Yt,Xe){var lt=new Le(Ee,at.line,at.ch,Xe?{from:0,to:Xe}:null);return ct(lt,Yt)}})},4631:function(dn){(function(en,se){dn.exports=se()})(this,function(){"use strict";var en=navigator.userAgent,se=navigator.platform,ae=/gecko\/\d/i.test(en),Pe=/MSIE \d/.test(en),Re=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(en),qe=/Edge\/(\d+)/.exec(en),ve=Pe||Re||qe,ke=ve&&(Pe?document.documentMode||6:+(qe||Re)[1]),Le=!qe&&/WebKit\//.test(en),xe=Le&&/Qt\/\d+\.\d+/.test(en),me=!qe&&/Chrome\//.test(en),Ie=/Opera\//.test(en),st=/Apple Computer/.test(navigator.vendor),Ne=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(en),xt=/PhantomJS/.test(en),pt=!qe&&/AppleWebKit/.test(en)&&/Mobile\/\w+/.test(en),ct=/Android/.test(en),rt=pt||ct||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(en),Ee=pt||/Mac/.test(se),at=/\bCrOS\b/.test(en),Yt=/win/i.test(se),Xe=Ie&&en.match(/Version\/(\d*\.\d*)/);Xe&&(Xe=Number(Xe[1])),Xe&&Xe>=15&&(Ie=!1,Le=!0);var lt=Ee&&(xe||Ie&&(Xe==null||Xe<12.11)),Se=ae||ve&&ke>=9;function Ce(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var je=function(x,z){var ne=x.className,te=Ce(z).exec(ne);if(te){var ie=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ie?te[1]+ie:"")}};function Ue(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function Mt(x,z){return Ue(x).appendChild(z)}function ht(x,z,ne,te){var ie=document.createElement(x);if(ne&&(ie.className=ne),te&&(ie.style.cssText=te),typeof z=="string")ie.appendChild(document.createTextNode(z));else if(z)for(var de=0;de<z.length;++de)ie.appendChild(z[de]);return ie}function Ft(x,z,ne,te){var ie=ht(x,z,ne,te);return ie.setAttribute("role","presentation"),ie}var tt;document.createRange?tt=function(x,z,ne,te){var ie=document.createRange();return ie.setEnd(te||x,ne),ie.setStart(x,z),ie}:tt=function(x,z,ne){var te=document.body.createTextRange();try{te.moveToElementText(x.parentNode)}catch(ie){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",z),te};function Jt(x,z){if(z.nodeType==3&&(z=z.parentNode),x.contains)return x.contains(z);do if(z.nodeType==11&&(z=z.host),z==x)return!0;while(z=z.parentNode)}function Rt(){var x;try{x=document.activeElement}catch(z){x=document.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function yn(x,z){var ne=x.className;Ce(z).test(ne)||(x.className+=(ne?" ":"")+z)}function tn(x,z){for(var ne=x.split(" "),te=0;te<ne.length;te++)ne[te]&&!Ce(ne[te]).test(z)&&(z+=" "+ne[te]);return z}var Hn=function(x){x.select()};pt?Hn=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:ve&&(Hn=function(x){try{x.select()}catch(z){}});function Yn(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function tr(x,z,ne){z||(z={});for(var te in x)x.hasOwnProperty(te)&&(ne!==!1||!z.hasOwnProperty(te))&&(z[te]=x[te]);return z}function Qe(x,z,ne,te,ie){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var de=te||0,ye=ie||0;;){var Be=x.indexOf(" ",de);if(Be<0||Be>=z)return ye+(z-de);ye+=Be-de,ye+=ne-ye%ne,de=Be+1}}var we=function(){this.id=null,this.f=null,this.time=0,this.handler=Yn(this.onTimeout,this)};we.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},we.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ne)};function At(x,z){for(var ne=0;ne<x.length;++ne)if(x[ne]==z)return ne;return-1}var Mn=50,_t={toString:function(){return"CodeMirror.Pass"}},$e={scroll:!1},dt={origin:"*mouse"},qt={origin:"+move"};function Xn(x,z,ne){for(var te=0,ie=0;;){var de=x.indexOf(" ",te);de==-1&&(de=x.length);var ye=de-te;if(de==x.length||ie+ye>=z)return te+Math.min(ye,z-ie);if(ie+=de-te,ie+=ne-ie%ne,te=de+1,ie>=z)return te}}var bn=[""];function un(x){for(;bn.length<=x;)bn.push(nn(bn)+" ");return bn[x]}function nn(x){return x[x.length-1]}function xn(x,z){for(var ne=[],te=0;te<x.length;te++)ne[te]=z(x[te],te);return ne}function Pn(x,z,ne){for(var te=0,ie=ne(z);te<x.length&&ne(x[te])<=ie;)te++;x.splice(te,0,z)}function De(){}function ue(x,z){var ne;return Object.create?ne=Object.create(x):(De.prototype=x,ne=new De),z&&tr(z,ne),ne}var ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function he(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||ce.test(x))}function fe(x,z){return z?z.source.indexOf("\\w")>-1&&he(x)?!0:z.test(x):he(x)}function le(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Me=/[\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 Ve(x){return x.charCodeAt(0)>=768&&Me.test(x)}function ft(x,z,ne){for(;(ne<0?z>0:z<x.length)&&Ve(x.charAt(z));)z+=ne;return z}function Ht(x,z,ne){for(var te=z>ne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,de=te<0?Math.ceil(ie):Math.floor(ie);if(de==z)return x(de)?z:ne;x(de)?ne=de:z=de+te}}function Zt(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,de=0;de<x.length;++de){var ye=x[de];(ye.from<ne&&ye.to>z||z==ne&&ye.to==z)&&(te(Math.max(ye.from,z),Math.min(ye.to,ne),ye.level==1?"rtl":"ltr",de),ie=!0)}ie||te(z,ne,"ltr")}var jt=null;function $t(x,z,ne){var te;jt=null;for(var ie=0;ie<x.length;++ie){var de=x[ie];if(de.from<z&&de.to>z)return ie;de.to==z&&(de.from!=de.to&&ne=="before"?te=ie:jt=ie),de.from==z&&(de.from!=de.to&&ne!="before"?te=ie:jt=ie)}return te!=null?te:jt}var Je=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(ze){return ze<=247?x.charAt(ze):1424<=ze&&ze<=1524?"R":1536<=ze&&ze<=1785?z.charAt(ze-1536):1774<=ze&&ze<=2220?"r":8192<=ze&&ze<=8203?"w":ze==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,de=/[LRr]/,ye=/[Lb1n]/,Be=/[1n]/;function Oe(ze,Ot,Gt){this.level=ze,this.from=Ot,this.to=Gt}return function(ze,Ot){var Gt=Ot=="ltr"?"L":"R";if(ze.length==0||Ot=="ltr"&&!te.test(ze))return!1;for(var On=ze.length,Sn=[],br=0;br<On;++br)Sn.push(ne(ze.charCodeAt(br)));for(var Rr=0,Xr=Gt;Rr<On;++Rr){var li=Sn[Rr];li=="m"?Sn[Rr]=Xr:Xr=li}for(var mi=0,ni=Gt;mi<On;++mi){var gi=Sn[mi];gi=="1"&&ni=="r"?Sn[mi]="n":de.test(gi)&&(ni=gi,gi=="r"&&(Sn[mi]="R"))}for(var Gi=1,qi=Sn[0];Gi<On-1;++Gi){var xa=Sn[Gi];xa=="+"&&qi=="1"&&Sn[Gi+1]=="1"?Sn[Gi]="1":xa==","&&qi==Sn[Gi+1]&&(qi=="1"||qi=="n")&&(Sn[Gi]=qi),qi=xa}for(var to=0;to<On;++to){var jo=Sn[to];if(jo==",")Sn[to]="N";else if(jo=="%"){var bo=void 0;for(bo=to+1;bo<On&&Sn[bo]=="%";++bo);for(var us=to&&Sn[to-1]=="!"||bo<On&&Sn[bo]=="1"?"1":"N",ds=to;ds<bo;++ds)Sn[ds]=us;to=bo-1}}for(var To=0,fs=Gt;To<On;++To){var la=Sn[To];fs=="L"&&la=="1"?Sn[To]="L":de.test(la)&&(fs=la)}for(var So=0;So<On;++So)if(ie.test(Sn[So])){var xo=void 0;for(xo=So+1;xo<On&&ie.test(Sn[xo]);++xo);for(var Co=(So?Sn[So-1]:Gt)=="L",Ao=(xo<On?Sn[xo]:Gt)=="L",jl=Co==Ao?Co?"L":"R":Gt,ys=So;ys<xo;++ys)Sn[ys]=jl;So=xo-1}for(var Yo=[],ja,Fo=0;Fo<On;)if(ye.test(Sn[Fo])){var Mu=Fo;for(++Fo;Fo<On&&ye.test(Sn[Fo]);++Fo);Yo.push(new Oe(0,Mu,Fo))}else{var sl=Fo,xl=Yo.length,Vs=Ot=="rtl"?1:0;for(++Fo;Fo<On&&Sn[Fo]!="L";++Fo);for(var Oo=sl;Oo<Fo;)if(Be.test(Sn[Oo])){sl<Oo&&(Yo.splice(xl,0,new Oe(1,sl,Oo)),xl+=Vs);var Zl=Oo;for(++Oo;Oo<Fo&&Be.test(Sn[Oo]);++Oo);Yo.splice(xl,0,new Oe(2,Zl,Oo)),xl+=Vs,sl=Oo}else++Oo;sl<Fo&&Yo.splice(xl,0,new Oe(1,sl,Fo))}return Ot=="ltr"&&(Yo[0].level==1&&(ja=ze.match(/^\s+/))&&(Yo[0].from=ja[0].length,Yo.unshift(new Oe(0,0,ja[0].length))),nn(Yo).level==1&&(ja=ze.match(/\s+$/))&&(nn(Yo).to-=ja[0].length,Yo.push(new Oe(0,On-ja[0].length,On)))),Ot=="rtl"?Yo.reverse():Yo}}();function Et(x,z){var ne=x.order;return ne==null&&(ne=x.order=Je(x.text,z)),ne}var Lt=[],Xt=function(x,z,ne){if(x.addEventListener)x.addEventListener(z,ne,!1);else if(x.attachEvent)x.attachEvent("on"+z,ne);else{var te=x._handlers||(x._handlers={});te[z]=(te[z]||Lt).concat(ne)}};function wt(x,z){return x._handlers&&x._handlers[z]||Lt}function Nn(x,z,ne){if(x.removeEventListener)x.removeEventListener(z,ne,!1);else if(x.detachEvent)x.detachEvent("on"+z,ne);else{var te=x._handlers,ie=te&&te[z];if(ie){var de=At(ie,ne);de>-1&&(te[z]=ie.slice(0,de).concat(ie.slice(de+1)))}}}function et(x,z){var ne=wt(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie<ne.length;++ie)ne[ie].apply(null,te)}function It(x,z,ne){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),et(x,ne||z.type,x,z),ur(z)||z.codemirrorIgnore}function gn(x){var z=x._handlers&&x._handlers.cursorActivity;if(z)for(var ne=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),te=0;te<z.length;++te)At(ne,z[te])==-1&&ne.push(z[te])}function hn(x,z){return wt(x,z).length>0}function An(x){x.prototype.on=function(z,ne){Xt(this,z,ne)},x.prototype.off=function(z,ne){Nn(this,z,ne)}}function Vn(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function mr(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function ur(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function dr(x){Vn(x),mr(x)}function Fr(x){return x.target||x.srcElement}function nr(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),Ee&&x.ctrlKey&&z==1&&(z=3),z}var _r=function(){if(ve&&ke<9)return!1;var x=ht("div");return"draggable"in x||"dragDrop"in x}(),oi;function Wr(x){if(oi==null){var z=ht("span","\u200B");Mt(x,ht("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(oi=z.offsetWidth<=1&&z.offsetHeight>2&&!(ve&&ke<8))}var ne=oi?ht("span","\u200B"):ht("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var xi;function ti(x){if(xi!=null)return xi;var z=Mt(x,document.createTextNode("A\u062EA")),ne=tt(z,0,1).getBoundingClientRect(),te=tt(z,1,2).getBoundingClientRect();return Ue(x),!ne||ne.left==ne.right?!1:xi=te.right-ne.right<3}var Ct=`
b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ie=x.indexOf(`
`,z);ie==-1&&(ie=x.length);var de=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),ye=de.indexOf("\r");ye!=-1?(ne.push(de.slice(0,ye)),z+=ye+1):(ne.push(de),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},wn=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},Rn=function(){var x=ht("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),an=null;function vr(x){if(an!=null)return an;var z=Mt(x,ht("span","x")),ne=z.getBoundingClientRect(),te=tt(z,0,1).getBoundingClientRect();return an=Math.abs(ne.left-te.left)>1}var lr={},Gn={};function jn(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),lr[x]=z}function nt(x,z){Gn[x]=z}function mt(x){if(typeof x=="string"&&Gn.hasOwnProperty(x))x=Gn[x];else if(x&&typeof x.name=="string"&&Gn.hasOwnProperty(x.name)){var z=Gn[x.name];typeof z=="string"&&(z={name:z}),x=ue(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return mt("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return mt("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Bt(x,z){z=mt(z);var ne=lr[z.name];if(!ne)return Bt(x,"text/plain");var te=ne(x,z);if(rn.hasOwnProperty(z.name)){var ie=rn[z.name];for(var de in ie)ie.hasOwnProperty(de)&&(te.hasOwnProperty(de)&&(te["_"+de]=te[de]),te[de]=ie[de])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var ye in z.modeProps)te[ye]=z.modeProps[ye];return te}var rn={};function Ze(x,z){var ne=rn.hasOwnProperty(x)?rn[x]:rn[x]={};tr(z,ne)}function St(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ie=z[te];ie instanceof Array&&(ie=ie.concat([])),ne[te]=ie}return ne}function Vt(x,z){for(var ne;x.innerMode&&(ne=x.innerMode(z),!(!ne||ne.mode==x));)z=ne.state,x=ne.mode;return ne||{mode:x,state:z}}function Nt(x,z,ne){return x.startState?x.startState(z,ne):!0}var cn=function(x,z,ne){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};cn.prototype.eol=function(){return this.pos>=this.string.length},cn.prototype.sol=function(){return this.pos==this.lineStart},cn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},cn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},cn.prototype.eat=function(x){var z=this.string.charAt(this.pos),ne;if(typeof x=="string"?ne=z==x:ne=z&&(x.test?x.test(z):x(z)),ne)return++this.pos,z},cn.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},cn.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},cn.prototype.skipToEnd=function(){this.pos=this.string.length},cn.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},cn.prototype.backUp=function(x){this.pos-=x},cn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Qe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Qe(this.string,this.lineStart,this.tabSize):0)},cn.prototype.indentation=function(){return Qe(this.string,null,this.tabSize)-(this.lineStart?Qe(this.string,this.lineStart,this.tabSize):0)},cn.prototype.match=function(x,z,ne){if(typeof x=="string"){var te=function(ye){return ne?ye.toLowerCase():ye},ie=this.string.substr(this.pos,x.length);if(te(ie)==te(x))return z!==!1&&(this.pos+=x.length),!0}else{var de=this.string.slice(this.pos).match(x);return de&&de.index>0?null:(de&&z!==!1&&(this.pos+=de[0].length),de)}},cn.prototype.current=function(){return this.string.slice(this.start,this.pos)},cn.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},cn.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},cn.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function on(x,z){if(z-=x.first,z<0||z>=x.size)throw new Error("There is no line "+(z+x.first)+" in the document.");for(var ne=x;!ne.lines;)for(var te=0;;++te){var ie=ne.children[te],de=ie.chunkSize();if(z<de){ne=ie;break}z-=de}return ne.lines[z]}function Kn(x,z,ne){var te=[],ie=z.line;return x.iter(z.line,ne.line+1,function(de){var ye=de.text;ie==ne.line&&(ye=ye.slice(0,ne.ch)),ie==z.line&&(ye=ye.slice(z.ch)),te.push(ye),++ie}),te}function Hr(x,z,ne){var te=[];return x.iter(z,ne,function(ie){te.push(ie.text)}),te}function hr(x,z){var ne=z-x.height;if(ne)for(var te=x;te;te=te.parent)te.height+=ne}function or(x){if(x.parent==null)return null;for(var z=x.parent,ne=At(z.lines,x),te=z.parent;te;z=te,te=te.parent)for(var ie=0;te.children[ie]!=z;++ie)ne+=te.children[ie].chunkSize();return ne+z.first}function Ar(x,z){var ne=x.first;e:do{for(var te=0;te<x.children.length;++te){var ie=x.children[te],de=ie.height;if(z<de){x=ie;continue e}z-=de,ne+=ie.chunkSize()}return ne}while(!x.lines);for(var ye=0;ye<x.lines.length;++ye){var Be=x.lines[ye],Oe=Be.height;if(z<Oe)break;z-=Oe}return ne+ye}function Lr(x,z){return z>=x.first&&z<x.first+x.size}function kt(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function gt(x,z,ne){if(ne===void 0&&(ne=null),!(this instanceof gt))return new gt(x,z,ne);this.line=x,this.ch=z,this.sticky=ne}function Dt(x,z){return x.line-z.line||x.ch-z.ch}function En(x,z){return x.sticky==z.sticky&&Dt(x,z)==0}function qn(x){return gt(x.line,x.ch)}function Cn(x,z){return Dt(x,z)<0?z:x}function Dn(x,z){return Dt(x,z)<0?x:z}function In(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function Un(x,z){if(z.line<x.first)return gt(x.first,0);var ne=x.first+x.size-1;return z.line>ne?gt(ne,on(x,ne).text.length):kr(z,on(x,z.line).text.length)}function kr(x,z){var ne=x.ch;return ne==null||ne>z?gt(x.line,z):ne<0?gt(x.line,0):x}function pn(x,z){for(var ne=[],te=0;te<z.length;te++)ne[te]=Un(x,z[te]);return ne}var di=function(x,z){this.state=x,this.lookAhead=z},Qr=function(x,z,ne,te){this.state=z,this.doc=x,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};Qr.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},Qr.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var z=this.baseTokens[this.baseTokenPos+1];return{type:z&&z.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}},Qr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Qr.fromSaved=function(x,z,ne){return z instanceof di?new Qr(x,St(x.mode,z.state),ne,z.lookAhead):new Qr(x,St(x.mode,z),ne)},Qr.prototype.save=function(x){var z=x!==!1?St(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new di(z,this.maxLookAhead):z};function Fi(x,z,ne,te){var ie=[x.state.modeGen],de={};Mi(x,z.text,x.doc.mode,ne,function(ze,Ot){return ie.push(ze,Ot)},de,te);for(var ye=ne.state,Be=function(ze){ne.baseTokens=ie;var Ot=x.state.overlays[ze],Gt=1,On=0;ne.state=!0,Mi(x,z.text,Ot.mode,ne,function(Sn,br){for(var Rr=Gt;On<Sn;){var Xr=ie[Gt];Xr>Sn&&ie.splice(Gt,1,Sn,ie[Gt+1],Xr),Gt+=2,On=Math.min(Sn,Xr)}if(br)if(Ot.opaque)ie.splice(Rr,Gt-Rr,Sn,"overlay "+br),Gt=Rr+2;else for(;Rr<Gt;Rr+=2){var li=ie[Rr+1];ie[Rr+1]=(li?li+" ":"")+"overlay "+br}},de),ne.state=ye,ne.baseTokens=null,ne.baseTokenPos=1},Oe=0;Oe<x.state.overlays.length;++Oe)Be(Oe);return{styles:ie,classes:de.bgClass||de.textClass?de:null}}function Ni(x,z,ne){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=Ci(x,or(z)),ie=z.text.length>x.options.maxHighlightLength&&St(x.doc.mode,te.state),de=Fi(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=de.styles,de.classes?z.styleClasses=de.classes:z.styleClasses&&(z.styleClasses=null),ne===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function Ci(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new Qr(te,!0,z);var de=Ji(x,z,ne),ye=de>te.first&&on(te,de-1).stateAfter,Be=ye?Qr.fromSaved(te,ye,de):new Qr(te,Nt(te.mode),de);return te.iter(de,z,function(Oe){Qi(x,Oe.text,Be);var ze=Be.line;Oe.stateAfter=ze==z-1||ze%5==0||ze>=ie.viewFrom&&ze<ie.viewTo?Be.save():null,Be.nextLine()}),ne&&(te.modeFrontier=Be.line),Be}function Qi(x,z,ne,te){var ie=x.doc.mode,de=new cn(z,x.options.tabSize,ne);for(de.start=de.pos=te||0,z==""&&Ei(ie,ne.state);!de.eol();)pi(ie,de,ne.state),de.start=de.pos}function Ei(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ne=Vt(x,z);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function pi(x,z,ne,te){for(var ie=0;ie<10;ie++){te&&(te[0]=Vt(x,ne).mode);var de=x.token(z,ne);if(z.pos>z.start)return de}throw new Error("Mode "+x.name+" failed to advance stream.")}var Hi=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function $i(x,z,ne,te){var ie=x.doc,de=ie.mode,ye;z=Un(ie,z);var Be=on(ie,z.line),Oe=Ci(x,z.line,ne),ze=new cn(Be.text,x.options.tabSize,Oe),Ot;for(te&&(Ot=[]);(te||ze.pos<z.ch)&&!ze.eol();)ze.start=ze.pos,ye=pi(de,ze,Oe.state),te&&Ot.push(new Hi(ze,ye,St(ie.mode,Oe.state)));return te?Ot:new Hi(ze,ye,Oe.state)}function ci(x,z){if(x)for(;;){var ne=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;x=x.slice(0,ne.index)+x.slice(ne.index+ne[0].length);var te=ne[1]?"bgClass":"textClass";z[te]==null?z[te]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(z[te])||(z[te]+=" "+ne[2])}return x}function Mi(x,z,ne,te,ie,de,ye){var Be=ne.flattenSpans;Be==null&&(Be=x.options.flattenSpans);var Oe=0,ze=null,Ot=new cn(z,x.options.tabSize,te),Gt,On=x.options.addModeClass&&[null];for(z==""&&ci(Ei(ne,te.state),de);!Ot.eol();){if(Ot.pos>x.options.maxHighlightLength?(Be=!1,ye&&Qi(x,z,te,Ot.pos),Ot.pos=z.length,Gt=null):Gt=ci(pi(ne,Ot,te.state,On),de),On){var Sn=On[0].name;Sn&&(Gt="m-"+(Gt?Sn+" "+Gt:Sn))}if(!Be||ze!=Gt){for(;Oe<Ot.start;)Oe=Math.min(Ot.start,Oe+5e3),ie(Oe,ze);ze=Gt}Ot.start=Ot.pos}for(;Oe<Ot.pos;){var br=Math.min(Ot.pos,Oe+5e3);ie(br,ze),Oe=br}}function Ji(x,z,ne){for(var te,ie,de=x.doc,ye=ne?-1:z-(x.doc.mode.innerMode?1e3:100),Be=z;Be>ye;--Be){if(Be<=de.first)return de.first;var Oe=on(de,Be-1),ze=Oe.stateAfter;if(ze&&(!ne||Be+(ze instanceof di?ze.lookAhead:0)<=de.modeFrontier))return Be;var Ot=Qe(Oe.text,null,x.options.tabSize);(ie==null||te>Ot)&&(ie=Be-1,te=Ot)}return ie}function ca(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var ne=x.first,te=z-1;te>ne;te--){var ie=on(x,te).stateAfter;if(ie&&(!(ie instanceof di)||te+ie.lookAhead<z)){ne=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ne)}}var na=!1,hi=!1;function zt(){na=!0}function Tt(){hi=!0}function fn(x,z,ne){this.marker=x,this.from=z,this.to=ne}function Bn(x,z){if(x)for(var ne=0;ne<x.length;++ne){var te=x[ne];if(te.marker==z)return te}}function Qn(x,z){for(var ne,te=0;te<x.length;++te)x[te]!=z&&(ne||(ne=[])).push(x[te]);return ne}function Or(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function Zr(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var de=x[ie],ye=de.marker,Be=de.from==null||(ye.inclusiveLeft?de.from<=z:de.from<z);if(Be||de.from==z&&ye.type=="bookmark"&&(!ne||!de.marker.insertLeft)){var Oe=de.to==null||(ye.inclusiveRight?de.to>=z:de.to>z);(te||(te=[])).push(new fn(ye,de.from,Oe?null:de.to))}}return te}function Jr(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var de=x[ie],ye=de.marker,Be=de.to==null||(ye.inclusiveRight?de.to>=z:de.to>z);if(Be||de.from==z&&ye.type=="bookmark"&&(!ne||de.marker.insertLeft)){var Oe=de.from==null||(ye.inclusiveLeft?de.from<=z:de.from<z);(te||(te=[])).push(new fn(ye,Oe?null:de.from-z,de.to==null?null:de.to-z))}}return te}function ri(x,z){if(z.full)return null;var ne=Lr(x,z.from.line)&&on(x,z.from.line).markedSpans,te=Lr(x,z.to.line)&&on(x,z.to.line).markedSpans;if(!ne&&!te)return null;var ie=z.from.ch,de=z.to.ch,ye=Dt(z.from,z.to)==0,Be=Zr(ne,ie,ye),Oe=Jr(te,de,ye),ze=z.text.length==1,Ot=nn(z.text).length+(ze?ie:0);if(Be)for(var Gt=0;Gt<Be.length;++Gt){var On=Be[Gt];if(On.to==null){var Sn=Bn(Oe,On.marker);Sn?ze&&(On.to=Sn.to==null?null:Sn.to+Ot):On.to=ie}}if(Oe)for(var br=0;br<Oe.length;++br){var Rr=Oe[br];if(Rr.to!=null&&(Rr.to+=Ot),Rr.from==null){var Xr=Bn(Be,Rr.marker);Xr||(Rr.from=Ot,ze&&(Be||(Be=[])).push(Rr))}else Rr.from+=Ot,ze&&(Be||(Be=[])).push(Rr)}Be&&(Be=qr(Be)),Oe&&Oe!=Be&&(Oe=qr(Oe));var li=[Be];if(!ze){var mi=z.text.length-2,ni;if(mi>0&&Be)for(var gi=0;gi<Be.length;++gi)Be[gi].to==null&&(ni||(ni=[])).push(new fn(Be[gi].marker,null,null));for(var Gi=0;Gi<mi;++Gi)li.push(ni);li.push(Oe)}return li}function qr(x){for(var z=0;z<x.length;++z){var ne=x[z];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&x.splice(z--,1)}return x.length?x:null}function fi(x,z,ne){var te=null;if(x.iter(z.line,ne.line+1,function(Sn){if(Sn.markedSpans)for(var br=0;br<Sn.markedSpans.length;++br){var Rr=Sn.markedSpans[br].marker;Rr.readOnly&&(!te||At(te,Rr)==-1)&&(te||(te=[])).push(Rr)}}),!te)return null;for(var ie=[{from:z,to:ne}],de=0;de<te.length;++de)for(var ye=te[de],Be=ye.find(0),Oe=0;Oe<ie.length;++Oe){var ze=ie[Oe];if(!(Dt(ze.to,Be.from)<0||Dt(ze.from,Be.to)>0)){var Ot=[Oe,1],Gt=Dt(ze.from,Be.from),On=Dt(ze.to,Be.to);(Gt<0||!ye.inclusiveLeft&&!Gt)&&Ot.push({from:ze.from,to:Be.from}),(On>0||!ye.inclusiveRight&&!On)&&Ot.push({from:Be.to,to:ze.to}),ie.splice.apply(ie,Ot),Oe+=Ot.length-3}}return ie}function Ai(x){var z=x.markedSpans;if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.detachLine(x);x.markedSpans=null}}function jr(x,z){if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.attachLine(x);x.markedSpans=z}}function wi(x){return x.inclusiveLeft?-1:0}function Di(x){return x.inclusiveRight?1:0}function Li(x,z){var ne=x.lines.length-z.lines.length;if(ne!=0)return ne;var te=x.find(),ie=z.find(),de=Dt(te.from,ie.from)||wi(x)-wi(z);if(de)return-de;var ye=Dt(te.to,ie.to)||Di(x)-Di(z);return ye||z.id-x.id}function Te(x,z){var ne=hi&&x.markedSpans,te;if(ne)for(var ie=void 0,de=0;de<ne.length;++de)ie=ne[de],ie.marker.collapsed&&(z?ie.from:ie.to)==null&&(!te||Li(te,ie.marker)<0)&&(te=ie.marker);return te}function He(x){return Te(x,!0)}function Ke(x){return Te(x,!1)}function Ge(x,z){var ne=hi&&x.markedSpans,te;if(ne)for(var ie=0;ie<ne.length;++ie){var de=ne[ie];de.marker.collapsed&&(de.from==null||de.from<z)&&(de.to==null||de.to>z)&&(!te||Li(te,de.marker)<0)&&(te=de.marker)}return te}function ut(x,z,ne,te,ie){var de=on(x,z),ye=hi&&de.markedSpans;if(ye)for(var Be=0;Be<ye.length;++Be){var Oe=ye[Be];if(Oe.marker.collapsed){var ze=Oe.marker.find(0),Ot=Dt(ze.from,ne)||wi(Oe.marker)-wi(ie),Gt=Dt(ze.to,te)||Di(Oe.marker)-Di(ie);if(!(Ot>=0&&Gt<=0||Ot<=0&&Gt>=0)&&(Ot<=0&&(Oe.marker.inclusiveRight&&ie.inclusiveLeft?Dt(ze.to,ne)>=0:Dt(ze.to,ne)>0)||Ot>=0&&(Oe.marker.inclusiveRight&&ie.inclusiveLeft?Dt(ze.from,te)<=0:Dt(ze.from,te)<0)))return!0}}}function vt(x){for(var z;z=He(x);)x=z.find(-1,!0).line;return x}function Kt(x){for(var z;z=Ke(x);)x=z.find(1,!0).line;return x}function vn(x){for(var z,ne;z=Ke(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function kn(x,z){var ne=on(x,z),te=vt(ne);return ne==te?z:or(te)}function yr(x,z){if(z>x.lastLine())return z;var ne=on(x,z),te;if(!Pr(x,ne))return z;for(;te=Ke(ne);)ne=te.find(1,!0).line;return or(ne)+1}function Pr(x,z){var ne=hi&&z.markedSpans;if(ne){for(var te=void 0,ie=0;ie<ne.length;++ie)if(te=ne[ie],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&cr(x,z,te))return!0}}}function cr(x,z,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return cr(x,te.line,Bn(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==z.text.length)return!0;for(var ie=void 0,de=0;de<z.markedSpans.length;++de)if(ie=z.markedSpans[de],ie.marker.collapsed&&!ie.marker.widgetNode&&ie.from==ne.to&&(ie.to==null||ie.to!=ne.from)&&(ie.marker.inclusiveLeft||ne.marker.inclusiveRight)&&cr(x,z,ie))return!0}function Wn(x){x=vt(x);for(var z=0,ne=x.parent,te=0;te<ne.lines.length;++te){var ie=ne.lines[te];if(ie==x)break;z+=ie.height}for(var de=ne.parent;de;ne=de,de=ne.parent)for(var ye=0;ye<de.children.length;++ye){var Be=de.children[ye];if(Be==ne)break;z+=Be.height}return z}function Fn(x){if(x.height==0)return 0;for(var z=x.text.length,ne,te=x;ne=He(te);){var ie=ne.find(0,!0);te=ie.from.line,z+=ie.from.ch-ie.to.ch}for(te=x;ne=Ke(te);){var de=ne.find(0,!0);z-=te.text.length-de.from.ch,te=de.to.line,z+=te.text.length-de.to.ch}return z}function $n(x){var z=x.display,ne=x.doc;z.maxLine=on(ne,ne.first),z.maxLineLength=Fn(z.maxLine),z.maxLineChanged=!0,ne.iter(function(te){var ie=Fn(te);ie>z.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var rr=function(x,z,ne){this.text=x,jr(this,z),this.height=ne?ne(this):1};rr.prototype.lineNo=function(){return or(this)},An(rr);function Ir(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),Ai(x),jr(x,ne);var ie=te?te(x):1;ie!=x.height&&hr(x,ie)}function gr(x){x.parent=null,Ai(x)}var fr={},wr={};function Sr(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?wr:fr;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function Nr(x,z){var ne=Ft("span",null,null,Le?"padding-right: .1px":null),te={pre:Ft("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ie=0;ie<=(z.rest?z.rest.length:0);ie++){var de=ie?z.rest[ie-1]:z.line,ye=void 0;te.pos=0,te.addToken=We,ti(x.display.measure)&&(ye=Et(de,x.doc.direction))&&(te.addToken=bt(te.addToken,ye)),te.map=[];var Be=z!=x.display.externalMeasured&&or(de);Ln(de,te,Ni(x,de,Be)),de.styleClasses&&(de.styleClasses.bgClass&&(te.bgClass=tn(de.styleClasses.bgClass,te.bgClass||"")),de.styleClasses.textClass&&(te.textClass=tn(de.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(Wr(x.display.measure))),ie==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(Le){var Oe=te.content.lastChild;(/\bcm-tab\b/.test(Oe.className)||Oe.querySelector&&Oe.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return et(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=tn(te.pre.className,te.textClass||"")),te}function Fe(x){var z=ht("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function We(x,z,ne,te,ie,de,ye){if(z){var Be=x.splitSpaces?Wt(z,x.trailingSpace):z,Oe=x.cm.state.specialChars,ze=!1,Ot;if(!Oe.test(z))x.col+=z.length,Ot=document.createTextNode(Be),x.map.push(x.pos,x.pos+z.length,Ot),ve&&ke<9&&(ze=!0),x.pos+=z.length;else{Ot=document.createDocumentFragment();for(var Gt=0;;){Oe.lastIndex=Gt;var On=Oe.exec(z),Sn=On?On.index-Gt:z.length-Gt;if(Sn){var br=document.createTextNode(Be.slice(Gt,Gt+Sn));ve&&ke<9?Ot.appendChild(ht("span",[br])):Ot.appendChild(br),x.map.push(x.pos,x.pos+Sn,br),x.col+=Sn,x.pos+=Sn}if(!On)break;Gt+=Sn+1;var Rr=void 0;if(On[0]==" "){var Xr=x.cm.options.tabSize,li=Xr-x.col%Xr;Rr=Ot.appendChild(ht("span",un(li),"cm-tab")),Rr.setAttribute("role","presentation"),Rr.setAttribute("cm-text"," "),x.col+=li}else On[0]=="\r"||On[0]==`
`?(Rr=Ot.appendChild(ht("span",On[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Rr.setAttribute("cm-text",On[0]),x.col+=1):(Rr=x.cm.options.specialCharPlaceholder(On[0]),Rr.setAttribute("cm-text",On[0]),ve&&ke<9?Ot.appendChild(ht("span",[Rr])):Ot.appendChild(Rr),x.col+=1);x.map.push(x.pos,x.pos+1,Rr),x.pos++}}if(x.trailingSpace=Be.charCodeAt(z.length-1)==32,ne||te||ie||ze||de||ye){var mi=ne||"";te&&(mi+=te),ie&&(mi+=ie);var ni=ht("span",[Ot],mi,de);if(ye)for(var gi in ye)ye.hasOwnProperty(gi)&&gi!="style"&&gi!="class"&&ni.setAttribute(gi,ye[gi]);return x.content.appendChild(ni)}x.content.appendChild(Ot)}}function Wt(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ie<x.length;ie++){var de=x.charAt(ie);de==" "&&ne&&(ie==x.length-1||x.charCodeAt(ie+1)==32)&&(de="\xA0"),te+=de,ne=de==" "}return te}function bt(x,z){return function(ne,te,ie,de,ye,Be,Oe){ie=ie?ie+" cm-force-border":"cm-force-border";for(var ze=ne.pos,Ot=ze+te.length;;){for(var Gt=void 0,On=0;On<z.length&&(Gt=z[On],!(Gt.to>ze&&Gt.from<=ze));On++);if(Gt.to>=Ot)return x(ne,te,ie,de,ye,Be,Oe);x(ne,te.slice(0,Gt.to-ze),ie,de,null,Be,Oe),de=null,te=te.slice(Gt.to-ze),ze=Gt.to}}}function sn(x,z,ne,te){var ie=!te&&ne.widgetNode;ie&&x.map.push(x.pos,x.pos+z,ie),!te&&x.cm.display.input.needsContentAttribute&&(ie||(ie=x.content.appendChild(document.createElement("span"))),ie.setAttribute("cm-marker",ne.id)),ie&&(x.cm.display.input.setUneditable(ie),x.content.appendChild(ie)),x.pos+=z,x.trailingSpace=!1}function Ln(x,z,ne){var te=x.markedSpans,ie=x.text,de=0;if(!te){for(var ye=1;ye<ne.length;ye+=2)z.addToken(z,ie.slice(de,de=ne[ye]),Sr(ne[ye+1],z.cm.options));return}for(var Be=ie.length,Oe=0,ze=1,Ot="",Gt,On,Sn=0,br,Rr,Xr,li,mi;;){if(Sn==Oe){br=Rr=Xr=On="",mi=null,li=null,Sn=1/0;for(var ni=[],gi=void 0,Gi=0;Gi<te.length;++Gi){var qi=te[Gi],xa=qi.marker;if(xa.type=="bookmark"&&qi.from==Oe&&xa.widgetNode)ni.push(xa);else if(qi.from<=Oe&&(qi.to==null||qi.to>Oe||xa.collapsed&&qi.to==Oe&&qi.from==Oe)){if(qi.to!=null&&qi.to!=Oe&&Sn>qi.to&&(Sn=qi.to,Rr=""),xa.className&&(br+=" "+xa.className),xa.css&&(On=(On?On+";":"")+xa.css),xa.startStyle&&qi.from==Oe&&(Xr+=" "+xa.startStyle),xa.endStyle&&qi.to==Sn&&(gi||(gi=[])).push(xa.endStyle,qi.to),xa.title&&((mi||(mi={})).title=xa.title),xa.attributes)for(var to in xa.attributes)(mi||(mi={}))[to]=xa.attributes[to];xa.collapsed&&(!li||Li(li.marker,xa)<0)&&(li=qi)}else qi.from>Oe&&Sn>qi.from&&(Sn=qi.from)}if(gi)for(var jo=0;jo<gi.length;jo+=2)gi[jo+1]==Sn&&(Rr+=" "+gi[jo]);if(!li||li.from==Oe)for(var bo=0;bo<ni.length;++bo)sn(z,0,ni[bo]);if(li&&(li.from||0)==Oe){if(sn(z,(li.to==null?Be+1:li.to)-Oe,li.marker,li.from==null),li.to==null)return;li.to==Oe&&(li=!1)}}if(Oe>=Be)break;for(var us=Math.min(Be,Sn);;){if(Ot){var ds=Oe+Ot.length;if(!li){var To=ds>us?Ot.slice(0,us-Oe):Ot;z.addToken(z,To,Gt?Gt+br:br,Xr,Oe+To.length==Sn?Rr:"",On,mi)}if(ds>=us){Ot=Ot.slice(us-Oe),Oe=us;break}Oe=ds,Xr=""}Ot=ie.slice(de,de=ne[ze++]),Gt=Sr(ne[ze++],z.cm.options)}}}function zn(x,z,ne){this.line=z,this.rest=vn(z),this.size=this.rest?or(nn(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=Pr(x,z)}function ar(x,z,ne){for(var te=[],ie,de=z;de<ne;de=ie){var ye=new zn(x.doc,on(x.doc,de),de);ie=de+ye.size,te.push(ye)}return te}var ot=null;function Ye(x){ot?ot.ops.push(x):x.ownsGroup=ot={ops:[x],delayedCallbacks:[]}}function yt(x){var z=x.delayedCallbacks,ne=0;do{for(;ne<z.length;ne++)z[ne].call(null);for(var te=0;te<x.ops.length;te++){var ie=x.ops[te];if(ie.cursorActivityHandlers)for(;ie.cursorActivityCalled<ie.cursorActivityHandlers.length;)ie.cursorActivityHandlers[ie.cursorActivityCalled++].call(null,ie.cm)}}while(ne<z.length)}function Qt(x,z){var ne=x.ownsGroup;if(ne)try{yt(ne)}finally{ot=null,z(ne)}}var _n=null;function mn(x,z){var ne=wt(x,z);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ie;ot?ie=ot.delayedCallbacks:_n?ie=_n:(ie=_n=[],setTimeout(ln,0));for(var de=function(Be){ie.push(function(){return ne[Be].apply(null,te)})},ye=0;ye<ne.length;++ye)de(ye)}}function ln(){var x=_n;_n=null;for(var z=0;z<x.length;++z)x[z]()}function sr(x,z,ne,te){for(var ie=0;ie<z.changes.length;ie++){var de=z.changes[ie];de=="text"?Tn(x,z):de=="gutter"?zr(x,z,ne,te):de=="class"?Er(x,z):de=="widget"&&Br(x,z,te)}z.changes=null}function ir(x){return x.node==x.text&&(x.node=ht("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),ve&&ke<8&&(x.node.style.zIndex=2)),x.node}function xr(x,z){var ne=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),z.background)ne?z.background.className=ne:(z.background.parentNode.removeChild(z.background),z.background=null);else if(ne){var te=ir(z);z.background=te.insertBefore(ht("div",null,ne),te.firstChild),x.display.input.setUneditable(z.background)}}function er(x,z){var ne=x.display.externalMeasured;return ne&&ne.line==z.line?(x.display.externalMeasured=null,z.measure=ne.measure,ne.built):Nr(x,z)}function Tn(x,z){var ne=z.text.className,te=er(x,z);z.text==z.node&&(z.node=te.pre),z.text.parentNode.replaceChild(te.pre,z.text),z.text=te.pre,te.bgClass!=z.bgClass||te.textClass!=z.textClass?(z.bgClass=te.bgClass,z.textClass=te.textClass,Er(x,z)):ne&&(z.text.className=ne)}function Er(x,z){xr(x,z),z.line.wrapClass?ir(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var ne=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=ne||""}function zr(x,z,ne,te){if(z.gutter&&(z.node.removeChild(z.gutter),z.gutter=null),z.gutterBackground&&(z.node.removeChild(z.gutterBackground),z.gutterBackground=null),z.line.gutterClass){var ie=ir(z);z.gutterBackground=ht("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),ie.insertBefore(z.gutterBackground,z.text)}var de=z.line.gutterMarkers;if(x.options.lineNumbers||de){var ye=ir(z),Be=z.gutter=ht("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(Be),ye.insertBefore(Be,z.text),z.line.gutterClass&&(Be.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!de||!de["CodeMirror-linenumbers"])&&(z.lineNumber=Be.appendChild(ht("div",kt(x.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),de)for(var Oe=0;Oe<x.display.gutterSpecs.length;++Oe){var ze=x.display.gutterSpecs[Oe].className,Ot=de.hasOwnProperty(ze)&&de[ze];Ot&&Be.appendChild(ht("div",[Ot],"CodeMirror-gutter-elt","left: "+te.gutterLeft[ze]+"px; width: "+te.gutterWidth[ze]+"px"))}}}function Br(x,z,ne){z.alignable&&(z.alignable=null);for(var te=Ce("CodeMirror-linewidget"),ie=z.node.firstChild,de=void 0;ie;ie=de)de=ie.nextSibling,te.test(ie.className)&&z.node.removeChild(ie);Dr(x,z,ne)}function Cr(x,z,ne,te){var ie=er(x,z);return z.text=z.node=ie.pre,ie.bgClass&&(z.bgClass=ie.bgClass),ie.textClass&&(z.textClass=ie.textClass),Er(x,z),zr(x,z,ne,te),Dr(x,z,te),z.node}function Dr(x,z,ne){if(ui(x,z.line,z,ne,!0),z.rest)for(var te=0;te<z.rest.length;te++)ui(x,z.rest[te],z,ne,!1)}function ui(x,z,ne,te,ie){if(z.widgets)for(var de=ir(ne),ye=0,Be=z.widgets;ye<Be.length;++ye){var Oe=Be[ye],ze=ht("div",[Oe.node],"CodeMirror-linewidget"+(Oe.className?" "+Oe.className:""));Oe.handleMouseEvents||ze.setAttribute("cm-ignore-events","true"),ei(Oe,ze,ne,te),x.display.input.setUneditable(ze),ie&&Oe.above?de.insertBefore(ze,ne.gutter||ne.text):de.appendChild(ze),mn(Oe,"redraw")}}function ei(x,z,ne,te){if(x.noHScroll){(ne.alignable||(ne.alignable=[])).push(z);var ie=te.wrapperWidth;z.style.left=te.fixedPos+"px",x.coverGutter||(ie-=te.gutterTotalWidth,z.style.paddingLeft=te.gutterTotalWidth+"px"),z.style.width=ie+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-te.gutterTotalWidth+"px"))}function ii(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!Jt(document.body,x.node)){var ne="position: relative;";x.coverGutter&&(ne+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),x.noHScroll&&(ne+="width: "+z.display.wrapper.clientWidth+"px;"),Mt(z.display.measure,ht("div",[x.node],null,ne))}return x.height=x.node.parentNode.offsetHeight}function Ti(x,z){for(var ne=Fr(z);ne!=x.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==x.sizer&&ne!=x.mover)return!0}function ea(x){return x.lineSpace.offsetTop}function Si(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function zi(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=Mt(x.measure,ht("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,te={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(x.cachedPaddingH=te),te}function ai(x){return Mn-x.display.nativeBarWidth}function vi(x){return x.display.scroller.clientWidth-ai(x)-x.display.barWidth}function _i(x){return x.display.scroller.clientHeight-ai(x)-x.display.barHeight}function Ki(x,z,ne){var te=x.options.lineWrapping,ie=te&&vi(x);if(!z.measure.heights||te&&z.measure.width!=ie){var de=z.measure.heights=[];if(te){z.measure.width=ie;for(var ye=z.text.firstChild.getClientRects(),Be=0;Be<ye.length-1;Be++){var Oe=ye[Be],ze=ye[Be+1];Math.abs(Oe.bottom-ze.bottom)>2&&de.push((Oe.bottom+ze.top)/2-ne.top)}}de.push(ne.bottom-ne.top)}}function Ea(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;te<x.rest.length;te++)if(x.rest[te]==z)return{map:x.measure.maps[te],cache:x.measure.caches[te]};for(var ie=0;ie<x.rest.length;ie++)if(or(x.rest[ie])>ne)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function Ta(x,z){z=vt(z);var ne=or(z),te=x.display.externalMeasured=new zn(x.doc,z,ne);te.lineN=ne;var ie=te.built=Nr(x,te);return te.text=ie.pre,Mt(x.display.lineMeasure,ie.pre),te}function va(x,z,ne,te){return ki(x,Yi(x,z),ne,te)}function ra(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[ia(x,z)];var ne=x.display.externalMeasured;if(ne&&z>=ne.lineN&&z<ne.lineN+ne.size)return ne}function Yi(x,z){var ne=or(z),te=ra(x,ne);te&&!te.text?te=null:te&&te.changes&&(sr(x,te,ne,ho(x)),x.curOp.forceUpdate=!0),te||(te=Ta(x,z));var ie=Ea(te,z,ne);return{line:z,view:te,rect:null,map:ie.map,cache:ie.cache,before:ie.before,hasHeights:!1}}function ki(x,z,ne,te,ie){z.before&&(ne=-1);var de=ne+(te||""),ye;return z.cache.hasOwnProperty(de)?ye=z.cache[de]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(Ki(x,z.view,z.rect),z.hasHeights=!0),ye=Ui(x,z,ne,te),ye.bogus||(z.cache[de]=ye)),{left:ye.left,right:ye.right,top:ie?ye.rtop:ye.top,bottom:ie?ye.rbottom:ye.bottom}}var Ma={left:0,right:0,top:0,bottom:0};function Ri(x,z,ne){for(var te,ie,de,ye,Be,Oe,ze=0;ze<x.length;ze+=3)if(Be=x[ze],Oe=x[ze+1],z<Be?(ie=0,de=1,ye="left"):z<Oe?(ie=z-Be,de=ie+1):(ze==x.length-3||z==Oe&&x[ze+3]>z)&&(de=Oe-Be,ie=de-1,z>=Oe&&(ye="right")),ie!=null){if(te=x[ze+2],Be==Oe&&ne==(te.insertLeft?"left":"right")&&(ye=ne),ne=="left"&&ie==0)for(;ze&&x[ze-2]==x[ze-3]&&x[ze-1].insertLeft;)te=x[(ze-=3)+2],ye="left";if(ne=="right"&&ie==Oe-Be)for(;ze<x.length-3&&x[ze+3]==x[ze+4]&&!x[ze+5].insertLeft;)te=x[(ze+=3)+2],ye="right";break}return{node:te,start:ie,end:de,collapse:ye,coverStart:Be,coverEnd:Oe}}function si(x,z){var ne=Ma;if(z=="left")for(var te=0;te<x.length&&(ne=x[te]).left==ne.right;te++);else for(var ie=x.length-1;ie>=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function Ui(x,z,ne,te){var ie=Ri(z.map,ne,te),de=ie.node,ye=ie.start,Be=ie.end,Oe=ie.collapse,ze;if(de.nodeType==3){for(var Ot=0;Ot<4;Ot++){for(;ye&&Ve(z.line.text.charAt(ie.coverStart+ye));)--ye;for(;ie.coverStart+Be<ie.coverEnd&&Ve(z.line.text.charAt(ie.coverStart+Be));)++Be;if(ve&&ke<9&&ye==0&&Be==ie.coverEnd-ie.coverStart?ze=de.parentNode.getBoundingClientRect():ze=si(tt(de,ye,Be).getClientRects(),te),ze.left||ze.right||ye==0)break;Be=ye,ye=ye-1,Oe="right"}ve&&ke<11&&(ze=ua(x.display.measure,ze))}else{ye>0&&(Oe=te="right");var Gt;x.options.lineWrapping&&(Gt=de.getClientRects()).length>1?ze=Gt[te=="right"?Gt.length-1:0]:ze=de.getBoundingClientRect()}if(ve&&ke<9&&!ye&&(!ze||!ze.left&&!ze.right)){var On=de.parentNode.getClientRects()[0];On?ze={left:On.left,right:On.left+io(x.display),top:On.top,bottom:On.bottom}:ze=Ma}for(var Sn=ze.top-z.rect.top,br=ze.bottom-z.rect.top,Rr=(Sn+br)/2,Xr=z.view.measure.heights,li=0;li<Xr.length-1&&!(Rr<Xr[li]);li++);var mi=li?Xr[li-1]:0,ni=Xr[li],gi={left:(Oe=="right"?ze.right:ze.left)-z.rect.left,right:(Oe=="left"?ze.left:ze.right)-z.rect.left,top:mi,bottom:ni};return!ze.left&&!ze.right&&(gi.bogus=!0),x.options.singleCursorHeightPerLine||(gi.rtop=Sn,gi.rbottom=br),gi}function ua(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!vr(x))return z;var ne=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*ne,right:z.right*ne,top:z.top*te,bottom:z.bottom*te}}function ta(x){if(x.measure&&(x.measure.cache={},x.measure.heights=null,x.rest))for(var z=0;z<x.rest.length;z++)x.measure.caches[z]={}}function oa(x){x.display.externalMeasure=null,Ue(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)ta(x.display.view[z])}function Bi(x){oa(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function pa(){return me&&ct?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function wa(){return me&&ct?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function fa(x){var z=0;if(x.widgets)for(var ne=0;ne<x.widgets.length;++ne)x.widgets[ne].above&&(z+=ii(x.widgets[ne]));return z}function Sa(x,z,ne,te,ie){if(!ie){var de=fa(z);ne.top+=de,ne.bottom+=de}if(te=="line")return ne;te||(te="local");var ye=Wn(z);if(te=="local"?ye+=ea(x.display):ye-=x.display.viewOffset,te=="page"||te=="window"){var Be=x.display.lineSpace.getBoundingClientRect();ye+=Be.top+(te=="window"?0:wa());var Oe=Be.left+(te=="window"?0:pa());ne.left+=Oe,ne.right+=Oe}return ne.top+=ye,ne.bottom+=ye,ne}function La(x,z,ne){if(ne=="div")return z;var te=z.left,ie=z.top;if(ne=="page")te-=pa(),ie-=wa();else if(ne=="local"||!ne){var de=x.display.sizer.getBoundingClientRect();te+=de.left,ie+=de.top}var ye=x.display.lineSpace.getBoundingClientRect();return{left:te-ye.left,top:ie-ye.top}}function Va(x,z,ne,te,ie){return te||(te=on(x.doc,z.line)),Sa(x,te,va(x,te,z.ch,ie),ne)}function ha(x,z,ne,te,ie,de){te=te||on(x.doc,z.line),ie||(ie=Yi(x,te));function ye(br,Rr){var Xr=ki(x,ie,br,Rr?"right":"left",de);return Rr?Xr.left=Xr.right:Xr.right=Xr.left,Sa(x,te,Xr,ne)}var Be=Et(te,x.doc.direction),Oe=z.ch,ze=z.sticky;if(Oe>=te.text.length?(Oe=te.text.length,ze="before"):Oe<=0&&(Oe=0,ze="after"),!Be)return ye(ze=="before"?Oe-1:Oe,ze=="before");function Ot(br,Rr,Xr){var li=Be[Rr],mi=li.level==1;return ye(Xr?br-1:br,mi!=Xr)}var Gt=$t(Be,Oe,ze),On=jt,Sn=Ot(Oe,Gt,ze=="before");return On!=null&&(Sn.other=Ot(Oe,On,ze!="before")),Sn}function Ba(x,z){var ne=0;z=Un(x.doc,z),x.options.lineWrapping||(ne=io(x.display)*z.ch);var te=on(x.doc,z.line),ie=Wn(te)+ea(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function qa(x,z,ne,te,ie){var de=gt(x,z,ne);return de.xRel=ie,te&&(de.outside=te),de}function Ya(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return qa(te.first,0,null,-1,-1);var ie=Ar(te,ne),de=te.first+te.size-1;if(ie>de)return qa(te.first+te.size-1,on(te,de).text.length,null,1,1);z<0&&(z=0);for(var ye=on(te,ie);;){var Be=Wi(x,ye,ie,z,ne),Oe=Ge(ye,Be.ch+(Be.xRel>0||Be.outside>0?1:0));if(!Oe)return Be;var ze=Oe.find(1);if(ze.line==ie)return ze;ye=on(te,ie=ze.line)}}function so(x,z,ne,te){te-=fa(z);var ie=z.text.length,de=Ht(function(ye){return ki(x,ne,ye-1).bottom<=te},ie,0);return ie=Ht(function(ye){return ki(x,ne,ye).top>te},de,ie),{begin:de,end:ie}}function _a(x,z,ne,te){ne||(ne=Yi(x,z));var ie=Sa(x,z,ki(x,ne,te),"line").top;return so(x,z,ne,ie)}function Aa(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function Wi(x,z,ne,te,ie){ie-=Wn(z);var de=Yi(x,z),ye=fa(z),Be=0,Oe=z.text.length,ze=!0,Ot=Et(z,x.doc.direction);if(Ot){var Gt=(x.options.lineWrapping?da:Xi)(x,z,ne,de,Ot,te,ie);ze=Gt.level!=1,Be=ze?Gt.from:Gt.to-1,Oe=ze?Gt.to:Gt.from-1}var On=null,Sn=null,br=Ht(function(Gi){var qi=ki(x,de,Gi);return qi.top+=ye,qi.bottom+=ye,Aa(qi,te,ie,!1)?(qi.top<=ie&&qi.left<=te&&(On=Gi,Sn=qi),!0):!1},Be,Oe),Rr,Xr,li=!1;if(Sn){var mi=te-Sn.left<Sn.right-te,ni=mi==ze;br=On+(ni?0:1),Xr=ni?"after":"before",Rr=mi?Sn.left:Sn.right}else{!ze&&(br==Oe||br==Be)&&br++,Xr=br==0?"after":br==z.text.length?"before":ki(x,de,br-(ze?1:0)).bottom+ye<=ie==ze?"after":"before";var gi=ha(x,gt(ne,br,Xr),"line",z,de);Rr=gi.left,li=ie<gi.top?-1:ie>=gi.bottom?1:0}return br=ft(z.text,br,1),qa(ne,br,Xr,li,te-Rr)}function Xi(x,z,ne,te,ie,de,ye){var Be=Ht(function(Gt){var On=ie[Gt],Sn=On.level!=1;return Aa(ha(x,gt(ne,Sn?On.to:On.from,Sn?"before":"after"),"line",z,te),de,ye,!0)},0,ie.length-1),Oe=ie[Be];if(Be>0){var ze=Oe.level!=1,Ot=ha(x,gt(ne,ze?Oe.from:Oe.to,ze?"after":"before"),"line",z,te);Aa(Ot,de,ye,!0)&&Ot.top>ye&&(Oe=ie[Be-1])}return Oe}function da(x,z,ne,te,ie,de,ye){var Be=so(x,z,te,ye),Oe=Be.begin,ze=Be.end;/\s/.test(z.text.charAt(ze-1))&&ze--;for(var Ot=null,Gt=null,On=0;On<ie.length;On++){var Sn=ie[On];if(!(Sn.from>=ze||Sn.to<=Oe)){var br=Sn.level!=1,Rr=ki(x,te,br?Math.min(ze,Sn.to)-1:Math.max(Oe,Sn.from)).right,Xr=Rr<de?de-Rr+1e9:Rr-de;(!Ot||Gt>Xr)&&(Ot=Sn,Gt=Xr)}}return Ot||(Ot=ie[ie.length-1]),Ot.from<Oe&&(Ot={from:Oe,to:Ot.to,level:Ot.level}),Ot.to>ze&&(Ot={from:Ot.from,to:ze,level:Ot.level}),Ot}var Ca;function Ka(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(Ca==null){Ca=ht("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Ca.appendChild(document.createTextNode("x")),Ca.appendChild(ht("br"));Ca.appendChild(document.createTextNode("x"))}Mt(x.measure,Ca);var ne=Ca.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Ue(x.measure),ne||1}function io(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=ht("span","xxxxxxxxxx"),ne=ht("pre",[z],"CodeMirror-line-like");Mt(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function ho(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,de=z.gutters.firstChild,ye=0;de;de=de.nextSibling,++ye){var Be=x.display.gutterSpecs[ye].className;ne[Be]=de.offsetLeft+de.clientLeft+ie,te[Be]=de.clientWidth}return{fixedPos:Po(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Po(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function No(x){var z=Ka(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/io(x.display)-3);return function(ie){if(Pr(x.doc,ie))return 0;var de=0;if(ie.widgets)for(var ye=0;ye<ie.widgets.length;ye++)ie.widgets[ye].height&&(de+=ie.widgets[ye].height);return ne?de+(Math.ceil(ie.text.length/te)||1)*z:de+z}}function lo(x){var z=x.doc,ne=No(x);z.iter(function(te){var ie=ne(te);ie!=te.height&&hr(te,ie)})}function Bo(x,z,ne,te){var ie=x.display;if(!ne&&Fr(z).getAttribute("cm-not-content")=="true")return null;var de,ye,Be=ie.lineSpace.getBoundingClientRect();try{de=z.clientX-Be.left,ye=z.clientY-Be.top}catch(Gt){return null}var Oe=Ya(x,de,ye),ze;if(te&&Oe.xRel>0&&(ze=on(x.doc,Oe.line).text).length==Oe.ch){var Ot=Qe(ze,ze.length,x.options.tabSize)-ze.length;Oe=gt(Oe.line,Math.max(0,Math.round((de-zi(x.display).left)/io(x.display))-Ot))}return Oe}function ia(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;te<ne.length;te++)if(z-=ne[te].size,z<0)return te}function Vi(x,z,ne,te){z==null&&(z=x.doc.first),ne==null&&(ne=x.doc.first+x.doc.size),te||(te=0);var ie=x.display;if(te&&ne<ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>z)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)hi&&kn(x.doc,z)<ie.viewTo&&Da(x);else if(ne<=ie.viewFrom)hi&&yr(x.doc,ne+te)>ie.viewFrom?Da(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)Da(x);else if(z<=ie.viewFrom){var de=co(x,ne,ne+te,1);de?(ie.view=ie.view.slice(de.index),ie.viewFrom=de.lineN,ie.viewTo+=te):Da(x)}else if(ne>=ie.viewTo){var ye=co(x,z,z,-1);ye?(ie.view=ie.view.slice(0,ye.index),ie.viewTo=ye.lineN):Da(x)}else{var Be=co(x,z,z,-1),Oe=co(x,ne,ne+te,1);Be&&Oe?(ie.view=ie.view.slice(0,Be.index).concat(ar(x,Be.lineN,Oe.lineN)).concat(ie.view.slice(Oe.index)),ie.viewTo+=te):Da(x)}var ze=ie.externalMeasured;ze&&(ne<ze.lineN?ze.lineN+=te:z<ze.lineN+ze.size&&(ie.externalMeasured=null))}function Oa(x,z,ne){x.curOp.viewChanged=!0;var te=x.display,ie=x.display.externalMeasured;if(ie&&z>=ie.lineN&&z<ie.lineN+ie.size&&(te.externalMeasured=null),!(z<te.viewFrom||z>=te.viewTo)){var de=te.view[ia(x,z)];if(de.node!=null){var ye=de.changes||(de.changes=[]);At(ye,ne)==-1&&ye.push(ne)}}}function Da(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function co(x,z,ne,te){var ie=ia(x,z),de,ye=x.display.view;if(!hi||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var Be=x.display.viewFrom,Oe=0;Oe<ie;Oe++)Be+=ye[Oe].size;if(Be!=z){if(te>0){if(ie==ye.length-1)return null;de=Be+ye[ie].size-z,ie++}else de=Be-z;z+=de,ne+=de}for(;kn(x.doc,ne)!=ne;){if(ie==(te<0?0:ye.length-1))return null;ne+=te*ye[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function ao(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=ar(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=ar(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(ia(x,z))),te.viewFrom=z,te.viewTo<ne?te.view=te.view.concat(ar(x,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,ia(x,ne)))),te.viewTo=ne}function hs(x){for(var z=x.display.view,ne=0,te=0;te<z.length;te++){var ie=z[te];!ie.hidden&&(!ie.node||ie.changes)&&++ne}return ne}function $o(x){x.display.input.showSelection(x.display.input.prepareSelection())}function ps(x,z){z===void 0&&(z=!0);for(var ne=x.doc,te={},ie=te.cursors=document.createDocumentFragment(),de=te.selection=document.createDocumentFragment(),ye=0;ye<ne.sel.ranges.length;ye++)if(!(!z&&ye==ne.sel.primIndex)){var Be=ne.sel.ranges[ye];if(!(Be.from().line>=x.display.viewTo||Be.to().line<x.display.viewFrom)){var Oe=Be.empty();(Oe||x.options.showCursorWhenSelecting)&&sa(x,Be.head,ie),Oe||Oi(x,Be,de)}}return te}function sa(x,z,ne){var te=ha(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ie=ne.appendChild(ht("div","\xA0","CodeMirror-cursor"));if(ie.style.left=te.left+"px",ie.style.top=te.top+"px",ie.style.height=Math.max(0,te.bottom-te.top)*x.options.cursorHeight+"px",te.other){var de=ne.appendChild(ht("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));de.style.display="",de.style.left=te.other.left+"px",de.style.top=te.other.top+"px",de.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function Yr(x,z){return x.top-z.top||x.left-z.left}function Oi(x,z,ne){var te=x.display,ie=x.doc,de=document.createDocumentFragment(),ye=zi(x.display),Be=ye.left,Oe=Math.max(te.sizerWidth,vi(x)-te.sizer.offsetLeft)-ye.right,ze=ie.direction=="ltr";function Ot(ni,gi,Gi,qi){gi<0&&(gi=0),gi=Math.round(gi),qi=Math.round(qi),de.appendChild(ht("div",null,"CodeMirror-selected","position: absolute; left: "+ni+`px;
top: `+gi+"px; width: "+(Gi==null?Oe-ni:Gi)+`px;
height: `+(qi-gi)+"px"))}function Gt(ni,gi,Gi){var qi=on(ie,ni),xa=qi.text.length,to,jo;function bo(To,fs){return Va(x,gt(ni,To),"div",qi,fs)}function us(To,fs,la){var So=_a(x,qi,null,To),xo=fs=="ltr"==(la=="after")?"left":"right",Co=la=="after"?So.begin:So.end-(/\s/.test(qi.text.charAt(So.end-1))?2:1);return bo(Co,xo)[xo]}var ds=Et(qi,ie.direction);return Zt(ds,gi||0,Gi==null?xa:Gi,function(To,fs,la,So){var xo=la=="ltr",Co=bo(To,xo?"left":"right"),Ao=bo(fs-1,xo?"right":"left"),jl=gi==null&&To==0,ys=Gi==null&&fs==xa,Yo=So==0,ja=!ds||So==ds.length-1;if(Ao.top-Co.top<=3){var Fo=(ze?jl:ys)&&Yo,Mu=(ze?ys:jl)&&ja,sl=Fo?Be:(xo?Co:Ao).left,xl=Mu?Oe:(xo?Ao:Co).right;Ot(sl,Co.top,xl-sl,Co.bottom)}else{var Vs,Oo,Zl,Xo;xo?(Vs=ze&&jl&&Yo?Be:Co.left,Oo=ze?Oe:us(To,la,"before"),Zl=ze?Be:us(fs,la,"after"),Xo=ze&&ys&&ja?Oe:Ao.right):(Vs=ze?us(To,la,"before"):Be,Oo=!ze&&jl&&Yo?Oe:Co.right,Zl=!ze&&ys&&ja?Be:Ao.left,Xo=ze?us(fs,la,"after"):Oe),Ot(Vs,Co.top,Oo-Vs,Co.bottom),Co.bottom<Ao.top&&Ot(Be,Co.bottom,null,Ao.top),Ot(Zl,Ao.top,Xo-Zl,Ao.bottom)}(!to||Yr(Co,to)<0)&&(to=Co),Yr(Ao,to)<0&&(to=Ao),(!jo||Yr(Co,jo)<0)&&(jo=Co),Yr(Ao,jo)<0&&(jo=Ao)}),{start:to,end:jo}}var On=z.from(),Sn=z.to();if(On.line==Sn.line)Gt(On.line,On.ch,Sn.ch);else{var br=on(ie,On.line),Rr=on(ie,Sn.line),Xr=vt(br)==vt(Rr),li=Gt(On.line,On.ch,Xr?br.text.length+1:null).end,mi=Gt(Sn.line,Xr?0:null,Sn.ch).start;Xr&&(li.top<mi.top-2?(Ot(li.right,li.top,null,li.bottom),Ot(Be,mi.top,mi.left,mi.bottom)):Ot(li.right,li.top,mi.left-li.right,li.bottom)),li.bottom<mi.top&&Ot(Be,li.bottom,null,mi.top)}ne.appendChild(de)}function Pi(x){if(x.state.focused){var z=x.display;clearInterval(z.blinker);var ne=!0;z.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?z.blinker=setInterval(function(){x.hasFocus()||_o(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function ji(x){x.state.focused||(x.display.input.focus(),Ga(x))}function Wa(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,_o(x))},100)}function Ga(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(et(x,"focus",x,z),x.state.focused=!0,yn(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),Le&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Pi(x))}function _o(x,z){x.state.delayingBlurEvent||(x.state.focused&&(et(x,"blur",x,z),x.state.focused=!1,je(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Zo(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te<z.view.length;te++){var ie=z.view[te],de=x.options.lineWrapping,ye=void 0,Be=0;if(!ie.hidden){if(ve&&ke<8){var Oe=ie.node.offsetTop+ie.node.offsetHeight;ye=Oe-ne,ne=Oe}else{var ze=ie.node.getBoundingClientRect();ye=ze.bottom-ze.top,!de&&ie.text.firstChild&&(Be=ie.text.firstChild.getBoundingClientRect().right-ze.left-1)}var Ot=ie.line.height-ye;if((Ot>.005||Ot<-.005)&&(hr(ie.line,ye),ls(ie.line),ie.rest))for(var Gt=0;Gt<ie.rest.length;Gt++)ls(ie.rest[Gt]);if(Be>x.display.sizerWidth){var On=Math.ceil(Be/io(x.display));On>x.display.maxLineLength&&(x.display.maxLineLength=On,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function ls(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var ne=x.widgets[z],te=ne.node.parentNode;te&&(ne.height=te.offsetHeight)}}function ya(x,z,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):x.scroller.scrollTop;te=Math.floor(te-ea(x));var ie=ne&&ne.bottom!=null?ne.bottom:te+x.wrapper.clientHeight,de=Ar(z,te),ye=Ar(z,ie);if(ne&&ne.ensure){var Be=ne.ensure.from.line,Oe=ne.ensure.to.line;Be<de?(de=Be,ye=Ar(z,Wn(on(z,Be))+x.wrapper.clientHeight)):Math.min(Oe,z.lastLine())>=ye&&(de=Ar(z,Wn(on(z,Oe))-x.wrapper.clientHeight),ye=Oe)}return{from:de,to:Math.max(ye,de+1)}}function Ro(x,z){if(!It(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ie=null;if(z.top+te.top<0?ie=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ie=!1),ie!=null&&!xt){var de=ht("div","\u200B",null,`position: absolute;
top: `+(z.top-ne.viewOffset-ea(x.display))+`px;
height: `+(z.bottom-z.top+ai(x)+ne.barHeight)+`px;
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(de),de.scrollIntoView(ie),x.display.lineSpace.removeChild(de)}}}function cs(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?gt(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?gt(z.line,z.ch+1,"before"):z);for(var de=0;de<5;de++){var ye=!1,Be=ha(x,z),Oe=!ne||ne==z?Be:ha(x,ne);ie={left:Math.min(Be.left,Oe.left),top:Math.min(Be.top,Oe.top)-te,right:Math.max(Be.left,Oe.left),bottom:Math.max(Be.bottom,Oe.bottom)+te};var ze=Bs(x,ie),Ot=x.doc.scrollTop,Gt=x.doc.scrollLeft;if(ze.scrollTop!=null&&(Pa(x,ze.scrollTop),Math.abs(x.doc.scrollTop-Ot)>1&&(ye=!0)),ze.scrollLeft!=null&&(go(x,ze.scrollLeft),Math.abs(x.doc.scrollLeft-Gt)>1&&(ye=!0)),!ye)break}return ie}function ul(x,z){var ne=Bs(x,z);ne.scrollTop!=null&&Pa(x,ne.scrollTop),ne.scrollLeft!=null&&go(x,ne.scrollLeft)}function Bs(x,z){var ne=x.display,te=Ka(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,de=_i(x),ye={};z.bottom-z.top>de&&(z.bottom=z.top+de);var Be=x.doc.height+Si(ne),Oe=z.top<te,ze=z.bottom>Be-te;if(z.top<ie)ye.scrollTop=Oe?0:z.top;else if(z.bottom>ie+de){var Ot=Math.min(z.top,(ze?Be:z.bottom)-de);Ot!=ie&&(ye.scrollTop=Ot)}var Gt=x.options.fixedGutter?0:ne.gutters.offsetWidth,On=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-Gt,Sn=vi(x)-ne.gutters.offsetWidth,br=z.right-z.left>Sn;return br&&(z.right=z.left+Sn),z.left<10?ye.scrollLeft=0:z.left<On?ye.scrollLeft=Math.max(0,z.left+Gt-(br?0:10)):z.right>Sn+On-3&&(ye.scrollLeft=z.right+(br?0:10)-Sn),ye}function ms(x,z){z!=null&&(Js(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function Ho(x){Js(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function Ds(x,z,ne){(z!=null||ne!=null)&&Js(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Is(x,z){Js(x),x.curOp.scrollToPos=z}function Js(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=Ba(x,z.from),te=Ba(x,z.to);oo(x,ne,te,z.margin)}}function oo(x,z,ne,te){var ie=Bs(x,{left:Math.min(z.left,ne.left),top:Math.min(z.top,ne.top)-te,right:Math.max(z.right,ne.right),bottom:Math.max(z.bottom,ne.bottom)+te});Ds(x,ie.scrollLeft,ie.scrollTop)}function Pa(x,z){Math.abs(x.doc.scrollTop-z)<2||(ae||Jc(x,{top:z}),Xa(x,z,!0),ae&&Jc(x),is(x,100))}function Xa(x,z,ne){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!ne)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function go(x,z,ne,te){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ne?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!te)&&(x.doc.scrollLeft=z,Vu(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function yo(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+Si(x.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:x.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+ai(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Ko=function(x,z,ne){this.cm=ne;var te=this.vert=ht("div",[ht("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=ht("div",[ht("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),Xt(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),Xt(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ve&&ke<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ko.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ne=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ie=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var de=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+de)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:z?te:0}},Ko.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ko.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ko.prototype.zeroWidthHack=function(){var x=Ee&&!Ne?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new we,this.disableVert=new we},Ko.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),de=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);de!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},Ko.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var wo=function(){};wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};function xs(x,z){z||(z=yo(x));var ne=x.display.barWidth,te=x.display.barHeight;Xl(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&Zo(x),Xl(x,yo(x)),ne=x.display.barWidth,te=x.display.barHeight}function Xl(x,z){var ne=x.display,te=ne.scrollbars.update(z);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=z.gutterWidth+"px"):ne.gutterFiller.style.display=""}var Ql={native:Ko,null:wo};function vc(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&je(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Ql[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),Xt(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ne){ne=="horizontal"?go(x,z):Pa(x,z)},x),x.display.scrollbars.addClass&&yn(x.display.wrapper,x.display.scrollbars.addClass)}var Xc=0;function Ks(x){x.curOp={cm:x,viewChanged:!1,startHeight:x.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Xc},Ye(x.curOp)}function Ts(x){var z=x.curOp;z&&Qt(z,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;yc(ne)})}function yc(x){for(var z=x.ops,ne=0;ne<z.length;ne++)Jl(z[ne]);for(var te=0;te<z.length;te++)Na(z[te]);for(var ie=0;ie<z.length;ie++)ma(z[ie]);for(var de=0;de<z.length;de++)Wo(z[de]);for(var ye=0;ye<z.length;ye++)es(z[ye])}function Jl(x){var z=x.cm,ne=z.display;ql(z),x.updateMaxLine&&$n(z),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<ne.viewFrom||x.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new gs(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Na(x){x.updatedDisplay=x.mustUpdate&&Qc(x.cm,x.update)}function ma(x){var z=x.cm,ne=z.display;x.updatedDisplay&&Zo(z),x.barMeasure=yo(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=va(z,ne.maxLine,ne.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+x.adjustWidthTo+ai(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-vi(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Wo(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&go(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ne=x.focus&&x.focus==Rt();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ne),(x.updatedDisplay||x.startHeight!=z.doc.height)&&xs(z,x.barMeasure),x.updatedDisplay&&$c(z,x.barMeasure),x.selectionChanged&&Pi(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ne&&ji(x.cm)}function es(x){var z=x.cm,ne=z.display,te=z.doc;if(x.updatedDisplay&&Uu(z,x.update),ne.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),x.scrollTop!=null&&Xa(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&go(z,x.scrollLeft,!0,!0),x.scrollToPos){var ie=cs(z,Un(te,x.scrollToPos.from),Un(te,x.scrollToPos.to),x.scrollToPos.margin);Ro(z,ie)}var de=x.maybeHiddenMarkers,ye=x.maybeUnhiddenMarkers;if(de)for(var Be=0;Be<de.length;++Be)de[Be].lines.length||et(de[Be],"hide");if(ye)for(var Oe=0;Oe<ye.length;++Oe)ye[Oe].lines.length&&et(ye[Oe],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&et(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function ga(x,z){if(x.curOp)return z();Ks(x);try{return z()}finally{Ts(x)}}function Ha(x,z){return function(){if(x.curOp)return z.apply(x,arguments);Ks(x);try{return z.apply(x,arguments)}finally{Ts(x)}}}function Fa(x){return function(){if(this.curOp)return x.apply(this,arguments);Ks(this);try{return x.apply(this,arguments)}finally{Ts(this)}}}function po(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);Ks(z);try{return x.apply(this,arguments)}finally{Ts(z)}}}function is(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,Yn(Ws,x))}function Ws(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=Ci(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(de){if(te.line>=x.display.viewFrom){var ye=de.styles,Be=de.text.length>x.options.maxHighlightLength?St(z.mode,te.state):null,Oe=Fi(x,de,te,!0);Be&&(te.state=Be),de.styles=Oe.styles;var ze=de.styleClasses,Ot=Oe.classes;Ot?de.styleClasses=Ot:ze&&(de.styleClasses=null);for(var Gt=!ye||ye.length!=de.styles.length||ze!=Ot&&(!ze||!Ot||ze.bgClass!=Ot.bgClass||ze.textClass!=Ot.textClass),On=0;!Gt&&On<ye.length;++On)Gt=ye[On]!=de.styles[On];Gt&&ie.push(te.line),de.stateAfter=te.save(),te.nextLine()}else de.text.length<=x.options.maxHighlightLength&&Qi(x,de.text,te),de.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return is(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&ga(x,function(){for(var de=0;de<ie.length;de++)Oa(x,ie[de],"text")})}}var gs=function(x,z,ne){var te=x.display;this.viewport=z,this.visible=ya(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=vi(x),this.force=ne,this.dims=ho(x),this.events=[]};gs.prototype.signal=function(x,z){hn(x,z)&&this.events.push(arguments)},gs.prototype.finish=function(){for(var x=0;x<this.events.length;x++)et.apply(null,this.events[x])};function ql(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=ai(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=ai(x)+"px",z.scrollbarsClipped=!0)}function Ud(x){if(x.hasFocus())return null;var z=Rt();if(!z||!Jt(x.display.lineDiv,z))return null;var ne={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&Jt(x.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function Vd(x){if(!(!x||!x.activeElt||x.activeElt==Rt())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&Jt(document.body,x.anchorNode)&&Jt(document.body,x.focusNode))){var z=window.getSelection(),ne=document.createRange();ne.setEnd(x.anchorNode,x.anchorOffset),ne.collapse(!1),z.removeAllRanges(),z.addRange(ne),z.extend(x.focusNode,x.focusOffset)}}function Qc(x,z){var ne=x.display,te=x.doc;if(z.editorIsHidden)return Da(x),!1;if(!z.force&&z.visible.from>=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&hs(x)==0)return!1;bc(x)&&(Da(x),z.dims=ho(x));var ie=te.first+te.size,de=Math.max(z.visible.from-x.options.viewportMargin,te.first),ye=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFrom<de&&de-ne.viewFrom<20&&(de=Math.max(te.first,ne.viewFrom)),ne.viewTo>ye&&ne.viewTo-ye<20&&(ye=Math.min(ie,ne.viewTo)),hi&&(de=kn(x.doc,de),ye=yr(x.doc,ye));var Be=de!=ne.viewFrom||ye!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;ao(x,de,ye),ne.viewOffset=Wn(on(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var Oe=hs(x);if(!Be&&Oe==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var ze=Ud(x);return Oe>4&&(ne.lineDiv.style.display="none"),Gd(x,ne.updateLineNumbers,z.dims),Oe>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Vd(ze),Ue(ne.cursorDiv),Ue(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Be&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,is(x,400)),ne.updateLineNumbers=null,!0}function Uu(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==vi(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+Si(x.display)-_i(x),ne.top)}),z.visible=ya(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=ya(x.display,x.doc,ne));if(!Qc(x,z))break;Zo(x);var ie=yo(x);$o(x),xs(x,ie),$c(x,ie),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function Jc(x,z){var ne=new gs(x,z);if(Qc(x,ne)){Zo(x),Uu(x,ne);var te=yo(x);$o(x),xs(x,te),$c(x,te),ne.finish()}}function Gd(x,z,ne){var te=x.display,ie=x.options.lineNumbers,de=te.lineDiv,ye=de.firstChild;function Be(br){var Rr=br.nextSibling;return Le&&Ee&&x.display.currentWheelTarget==br?br.style.display="none":br.parentNode.removeChild(br),Rr}for(var Oe=te.view,ze=te.viewFrom,Ot=0;Ot<Oe.length;Ot++){var Gt=Oe[Ot];if(!Gt.hidden)if(!Gt.node||Gt.node.parentNode!=de){var On=Cr(x,Gt,ze,ne);de.insertBefore(On,ye)}else{for(;ye!=Gt.node;)ye=Be(ye);var Sn=ie&&z!=null&&z<=ze&&Gt.lineNumber;Gt.changes&&(At(Gt.changes,"gutter")>-1&&(Sn=!1),sr(x,Gt,ze,ne)),Sn&&(Ue(Gt.lineNumber),Gt.lineNumber.appendChild(document.createTextNode(kt(x.options,ze)))),ye=Gt.node.nextSibling}ze+=Gt.size}for(;ye;)ye=Be(ye)}function qc(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function $c(x,z){x.display.sizer.style.minHeight=z.docHeight+"px",x.display.heightForcer.style.top=z.docHeight+"px",x.display.gutters.style.height=z.docHeight+x.display.barHeight+ai(x)+"px"}function Vu(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Po(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,de=te+"px",ye=0;ye<ne.length;ye++)if(!ne[ye].hidden){x.options.fixedGutter&&(ne[ye].gutter&&(ne[ye].gutter.style.left=de),ne[ye].gutterBackground&&(ne[ye].gutterBackground.style.left=de));var Be=ne[ye].alignable;if(Be)for(var Oe=0;Oe<Be.length;Oe++)Be[Oe].style.left=de}x.options.fixedGutter&&(z.gutters.style.left=te+ie+"px")}}function bc(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ne=kt(x.options,z.first+z.size-1),te=x.display;if(ne.length!=te.lineNumChars){var ie=te.measure.appendChild(ht("div",[ht("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),de=ie.firstChild.offsetWidth,ye=ie.offsetWidth-de;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(de,te.lineGutter.offsetWidth-ye)+1,te.lineNumWidth=te.lineNumInnerWidth+ye,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",qc(x.display),!0}return!1}function eu(x,z){for(var ne=[],te=!1,ie=0;ie<x.length;ie++){var de=x[ie],ye=null;if(typeof de!="string"&&(ye=de.style,de=de.className),de=="CodeMirror-linenumbers")if(z)te=!0;else continue;ne.push({className:de,style:ye})}return z&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function Gu(x){var z=x.gutters,ne=x.gutterSpecs;Ue(z),x.lineGutter=null;for(var te=0;te<ne.length;++te){var ie=ne[te],de=ie.className,ye=ie.style,Be=z.appendChild(ht("div",null,"CodeMirror-gutter "+de));ye&&(Be.style.cssText=ye),de=="CodeMirror-linenumbers"&&(x.lineGutter=Be,Be.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ne.length?"":"none",qc(x)}function $l(x){Gu(x.display),Vi(x),Vu(x)}function Yd(x,z,ne,te){var ie=this;this.input=ne,ie.scrollbarFiller=ht("div",null,"CodeMirror-scrollbar-filler"),ie.scrollbarFiller.setAttribute("cm-not-content","true"),ie.gutterFiller=ht("div",null,"CodeMirror-gutter-filler"),ie.gutterFiller.setAttribute("cm-not-content","true"),ie.lineDiv=Ft("div",null,"CodeMirror-code"),ie.selectionDiv=ht("div",null,null,"position: relative; z-index: 1"),ie.cursorDiv=ht("div",null,"CodeMirror-cursors"),ie.measure=ht("div",null,"CodeMirror-measure"),ie.lineMeasure=ht("div",null,"CodeMirror-measure"),ie.lineSpace=Ft("div",[ie.measure,ie.lineMeasure,ie.selectionDiv,ie.cursorDiv,ie.lineDiv],null,"position: relative; outline: none");var de=Ft("div",[ie.lineSpace],"CodeMirror-lines");ie.mover=ht("div",[de],null,"position: relative"),ie.sizer=ht("div",[ie.mover],"CodeMirror-sizer"),ie.sizerWidth=null,ie.heightForcer=ht("div",null,null,"position: absolute; height: "+Mn+"px; width: 1px;"),ie.gutters=ht("div",null,"CodeMirror-gutters"),ie.lineGutter=null,ie.scroller=ht("div",[ie.sizer,ie.heightForcer,ie.gutters],"CodeMirror-scroll"),ie.scroller.setAttribute("tabIndex","-1"),ie.wrapper=ht("div",[ie.scrollbarFiller,ie.gutterFiller,ie.scroller],"CodeMirror"),ve&&ke<8&&(ie.gutters.style.zIndex=-1,ie.scroller.style.paddingRight=0),!Le&&!(ae&&rt)&&(ie.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(ie.wrapper):x(ie.wrapper)),ie.viewFrom=ie.viewTo=z.first,ie.reportedViewFrom=ie.reportedViewTo=z.first,ie.view=[],ie.renderedView=null,ie.externalMeasured=null,ie.viewOffset=0,ie.lastWrapHeight=ie.lastWrapWidth=0,ie.updateLineNumbers=null,ie.nativeBarWidth=ie.barHeight=ie.barWidth=0,ie.scrollbarsClipped=!1,ie.lineNumWidth=ie.lineNumInnerWidth=ie.lineNumChars=null,ie.alignWidgets=!1,ie.cachedCharWidth=ie.cachedTextHeight=ie.cachedPaddingH=null,ie.maxLine=null,ie.maxLineLength=0,ie.maxLineChanged=!1,ie.wheelDX=ie.wheelDY=ie.wheelStartX=ie.wheelStartY=null,ie.shift=!1,ie.selForContextMenu=null,ie.activeTouch=null,ie.gutterSpecs=eu(te.gutters,te.lineNumbers),Gu(ie),ne.init(ie)}var xc=0,Uo=null;ve?Uo=-.53:ae?Uo=15:me?Uo=-.7:st&&(Uo=-1/3);function Ol(x){var z=x.wheelDeltaX,ne=x.wheelDeltaY;return z==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(z=x.detail),ne==null&&x.detail&&x.axis==x.VERTICAL_AXIS?ne=x.detail:ne==null&&(ne=x.wheelDelta),{x:z,y:ne}}function Yu(x){var z=Ol(x);return z.x*=Uo,z.y*=Uo,z}function Xu(x,z){var ne=Ol(z),te=ne.x,ie=ne.y,de=x.display,ye=de.scroller,Be=ye.scrollWidth>ye.clientWidth,Oe=ye.scrollHeight>ye.clientHeight;if(te&&Be||ie&&Oe){if(ie&&Ee&&Le){e:for(var ze=z.target,Ot=de.view;ze!=ye;ze=ze.parentNode)for(var Gt=0;Gt<Ot.length;Gt++)if(Ot[Gt].node==ze){x.display.currentWheelTarget=ze;break e}}if(te&&!ae&&!Ie&&Uo!=null){ie&&Oe&&Pa(x,Math.max(0,ye.scrollTop+ie*Uo)),go(x,Math.max(0,ye.scrollLeft+te*Uo)),(!ie||ie&&Oe)&&Vn(z),de.wheelStartX=null;return}if(ie&&Uo!=null){var On=ie*Uo,Sn=x.doc.scrollTop,br=Sn+de.wrapper.clientHeight;On<0?Sn=Math.max(0,Sn+On-50):br=Math.min(x.doc.height,br+On+50),Jc(x,{top:Sn,bottom:br})}xc<20&&(de.wheelStartX==null?(de.wheelStartX=ye.scrollLeft,de.wheelStartY=ye.scrollTop,de.wheelDX=te,de.wheelDY=ie,setTimeout(function(){if(de.wheelStartX!=null){var Rr=ye.scrollLeft-de.wheelStartX,Xr=ye.scrollTop-de.wheelStartY,li=Xr&&de.wheelDY&&Xr/de.wheelDY||Rr&&de.wheelDX&&Rr/de.wheelDX;de.wheelStartX=de.wheelStartY=null,li&&(Uo=(Uo*xc+li)/(xc+1),++xc)}},200)):(de.wheelDX+=te,de.wheelDY+=ie))}}var vs=function(x,z){this.ranges=x,this.primIndex=z};vs.prototype.primary=function(){return this.ranges[this.primIndex]},vs.prototype.equals=function(x){if(x==this)return!0;if(x.primIndex!=this.primIndex||x.ranges.length!=this.ranges.length)return!1;for(var z=0;z<this.ranges.length;z++){var ne=this.ranges[z],te=x.ranges[z];if(!En(ne.anchor,te.anchor)||!En(ne.head,te.head))return!1}return!0},vs.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Ua(qn(this.ranges[z].anchor),qn(this.ranges[z].head));return new vs(x,this.primIndex)},vs.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},vs.prototype.contains=function(x,z){z||(z=x);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(Dt(z,te.from())>=0&&Dt(x,te.to())<=0)return ne}return-1};var Ua=function(x,z){this.anchor=x,this.head=z};Ua.prototype.from=function(){return Dn(this.anchor,this.head)},Ua.prototype.to=function(){return Cn(this.anchor,this.head)},Ua.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ms(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(On,Sn){return Dt(On.from(),Sn.from())}),ne=At(z,ie);for(var de=1;de<z.length;de++){var ye=z[de],Be=z[de-1],Oe=Dt(Be.to(),ye.from());if(te&&!ye.empty()?Oe>0:Oe>=0){var ze=Dn(Be.from(),ye.from()),Ot=Cn(Be.to(),ye.to()),Gt=Be.empty()?ye.from()==ye.head:Be.from()==Be.head;de<=ne&&--ne,z.splice(--de,2,new Ua(Gt?Ot:ze,Gt?ze:Ot))}}return new vs(z,ne)}function Os(x,z){return new vs([new Ua(x,z||x)],0)}function qs(x){return x.text?gt(x.from.line+x.text.length-1,nn(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Qu(x,z){if(Dt(x,z.from)<0)return x;if(Dt(x,z.to)<=0)return qs(z);var ne=x.line+z.text.length-(z.to.line-z.from.line)-1,te=x.ch;return x.line==z.to.line&&(te+=qs(z).ch-z.to.ch),gt(ne,te)}function tu(x,z){for(var ne=[],te=0;te<x.sel.ranges.length;te++){var ie=x.sel.ranges[te];ne.push(new Ua(Qu(ie.anchor,z),Qu(ie.head,z)))}return Ms(x.cm,ne,x.sel.primIndex)}function Pl(x,z,ne){return x.line==z.line?gt(ne.line,x.ch-z.ch+ne.ch):gt(ne.line+(x.line-z.line),x.ch)}function nu(x,z,ne){for(var te=[],ie=gt(x.first,0),de=ie,ye=0;ye<z.length;ye++){var Be=z[ye],Oe=Pl(Be.from,ie,de),ze=Pl(qs(Be),ie,de);if(ie=Be.to,de=ze,ne=="around"){var Ot=x.sel.ranges[ye],Gt=Dt(Ot.head,Ot.anchor)<0;te[ye]=new Ua(Gt?ze:Oe,Gt?Oe:ze)}else te[ye]=new Ua(Oe,Oe)}return new vs(te,x.sel.primIndex)}function ru(x){x.doc.mode=Bt(x.options,x.doc.modeOption),Nl(x)}function Nl(x){x.doc.iter(function(z){z.stateAfter&&(z.stateAfter=null),z.styles&&(z.styles=null)}),x.doc.modeFrontier=x.doc.highlightFrontier=x.doc.first,is(x,100),x.state.modeGen++,x.curOp&&Vi(x)}function Ju(x,z){return z.from.ch==0&&z.to.ch==0&&nn(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function iu(x,z,ne,te){function ie(mi){return ne?ne[mi]:null}function de(mi,ni,gi){Ir(mi,ni,gi,te),mn(mi,"change",mi,z)}function ye(mi,ni){for(var gi=[],Gi=mi;Gi<ni;++Gi)gi.push(new rr(ze[Gi],ie(Gi),te));return gi}var Be=z.from,Oe=z.to,ze=z.text,Ot=on(x,Be.line),Gt=on(x,Oe.line),On=nn(ze),Sn=ie(ze.length-1),br=Oe.line-Be.line;if(z.full)x.insert(0,ye(0,ze.length)),x.remove(ze.length,x.size-ze.length);else if(Ju(x,z)){var Rr=ye(0,ze.length-1);de(Gt,Gt.text,Sn),br&&x.remove(Be.line,br),Rr.length&&x.insert(Be.line,Rr)}else if(Ot==Gt)if(ze.length==1)de(Ot,Ot.text.slice(0,Be.ch)+On+Ot.text.slice(Oe.ch),Sn);else{var Xr=ye(1,ze.length-1);Xr.push(new rr(On+Ot.text.slice(Oe.ch),Sn,te)),de(Ot,Ot.text.slice(0,Be.ch)+ze[0],ie(0)),x.insert(Be.line+1,Xr)}else if(ze.length==1)de(Ot,Ot.text.slice(0,Be.ch)+ze[0]+Gt.text.slice(Oe.ch),ie(0)),x.remove(Be.line+1,br);else{de(Ot,Ot.text.slice(0,Be.ch)+ze[0],ie(0)),de(Gt,On+Gt.text.slice(Oe.ch),Sn);var li=ye(1,ze.length-1);br>1&&x.remove(Be.line+1,br-1),x.insert(Be.line+1,li)}mn(x,"change",x,z)}function $s(x,z,ne){function te(ie,de,ye){if(ie.linked)for(var Be=0;Be<ie.linked.length;++Be){var Oe=ie.linked[Be];if(Oe.doc!=de){var ze=ye&&Oe.sharedHist;ne&&!ze||(z(Oe.doc,ze),te(Oe.doc,ie,ze))}}}te(x,null,!0)}function wc(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,lo(x),ru(x),Sc(x),x.options.lineWrapping||$n(x),x.options.mode=z.modeOption,Vi(x)}function Sc(x){(x.doc.direction=="rtl"?yn:je)(x.display.lineDiv,"CodeMirror-rtl")}function au(x){ga(x,function(){Sc(x),Vi(x)})}function Cc(x){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=x||1}function ou(x,z){var ne={from:qn(z.from),to:qs(z),text:Kn(x,z.from,z.to)};return uu(x,ne,z.from.line,z.to.line+1),$s(x,function(te){return uu(te,ne,z.from.line,z.to.line+1)},!0),ne}function qu(x){for(;x.length;){var z=nn(x);if(z.ranges)x.pop();else break}}function su(x,z){if(z)return qu(x.done),nn(x.done);if(x.done.length&&!nn(x.done).ranges)return nn(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),nn(x.done)}function Ec(x,z,ne,te){var ie=x.history;ie.undone.length=0;var de=+new Date,ye,Be;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>de-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(ye=su(ie,ie.lastOp==te)))Be=nn(ye.changes),Dt(z.from,z.to)==0&&Dt(z.from,Be.to)==0?Be.to=qs(z):ye.changes.push(ou(x,z));else{var Oe=nn(ie.done);for((!Oe||!Oe.ranges)&&Mc(x.sel,ie.done),ye={changes:[ou(x,z)],generation:ie.generation},ie.done.push(ye);ie.done.length>ie.undoDepth;)ie.done.shift(),ie.done[0].ranges||ie.done.shift()}ie.done.push(ne),ie.generation=++ie.maxGeneration,ie.lastModTime=ie.lastSelTime=de,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,Be||et(x,"historyAdded")}function lu(x,z,ne,te){var ie=z.charAt(0);return ie=="*"||ie=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function cu(x,z,ne,te){var ie=x.history,de=te&&te.origin;ne==ie.lastSelOp||de&&ie.lastSelOrigin==de&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==de||lu(x,de,nn(ie.done),z))?ie.done[ie.done.length-1]=z:Mc(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=de,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&qu(ie.undone)}function Mc(x,z){var ne=nn(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function uu(x,z,ne,te){var ie=z["spans_"+x.id],de=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(ye){ye.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[de]=ye.markedSpans),++de})}function du(x){if(!x)return null;for(var z,ne=0;ne<x.length;++ne)x[ne].marker.explicitlyCleared?z||(z=x.slice(0,ne)):z&&z.push(x[ne]);return z?z.length?z:null:x}function Xd(x,z){var ne=z["spans_"+x.id];if(!ne)return null;for(var te=[],ie=0;ie<z.text.length;++ie)te.push(du(ne[ie]));return te}function $u(x,z){var ne=Xd(x,z),te=ri(x,z);if(!ne)return te;if(!te)return ne;for(var ie=0;ie<ne.length;++ie){var de=ne[ie],ye=te[ie];if(de&&ye)e:for(var Be=0;Be<ye.length;++Be){for(var Oe=ye[Be],ze=0;ze<de.length;++ze)if(de[ze].marker==Oe.marker)continue e;de.push(Oe)}else ye&&(ne[ie]=ye)}return ne}function Rl(x,z,ne){for(var te=[],ie=0;ie<x.length;++ie){var de=x[ie];if(de.ranges){te.push(ne?vs.prototype.deepCopy.call(de):de);continue}var ye=de.changes,Be=[];te.push({changes:Be});for(var Oe=0;Oe<ye.length;++Oe){var ze=ye[Oe],Ot=void 0;if(Be.push({from:ze.from,to:ze.to,text:ze.text}),z)for(var Gt in ze)(Ot=Gt.match(/^spans_(\d+)$/))&&At(z,Number(Ot[1]))>-1&&(nn(Be)[Gt]=ze[Gt],delete ze[Gt])}}return te}function fu(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var de=Dt(z,ie)<0;de!=Dt(ne,ie)<0?(ie=z,z=ne):de!=Dt(z,ne)<0&&(z=ne)}return new Ua(ie,z)}else return new Ua(ne||z,z)}function Fl(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),Do(x,new vs([fu(x.sel.primary(),z,ne,ie)],0),te)}function yi(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),de=0;de<x.sel.ranges.length;de++)te[de]=fu(x.sel.ranges[de],z[de],null,ie);var ye=Ms(x.cm,te,x.sel.primIndex);Do(x,ye,ne)}function ws(x,z,ne,te){var ie=x.sel.ranges.slice(0);ie[z]=ne,Do(x,Ms(x.cm,ie,x.sel.primIndex),te)}function ed(x,z,ne,te){Do(x,Os(z,ne),te)}function Qd(x,z,ne){var te={ranges:z.ranges,update:function(ie){this.ranges=[];for(var de=0;de<ie.length;de++)this.ranges[de]=new Ua(Un(x,ie[de].anchor),Un(x,ie[de].head))},origin:ne&&ne.origin};return et(x,"beforeSelectionChange",x,te),x.cm&&et(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?Ms(x.cm,te.ranges,te.ranges.length-1):z}function as(x,z,ne){var te=x.history.done,ie=nn(te);ie&&ie.ranges?(te[te.length-1]=z,Ac(x,z,ne)):Do(x,z,ne)}function Do(x,z,ne){Ac(x,z,ne),cu(x,x.sel,x.cm?x.cm.curOp.id:NaN,ne)}function Ac(x,z,ne){(hn(x,"beforeSelectionChange")||x.cm&&hn(x.cm,"beforeSelectionChange"))&&(z=Qd(x,z,ne));var te=ne&&ne.bias||(Dt(z.primary().head,x.sel.primary().head)<0?-1:1);Jd(x,zl(x,z,te,!0)),!(ne&&ne.scroll===!1)&&x.cm&&Ho(x.cm)}function Jd(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,gn(x.cm)),mn(x,"cursorActivity",x))}function qd(x){Jd(x,zl(x,x.sel,null,!1))}function zl(x,z,ne,te){for(var ie,de=0;de<z.ranges.length;de++){var ye=z.ranges[de],Be=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[de],Oe=hu(x,ye.anchor,Be&&Be.anchor,ne,te),ze=hu(x,ye.head,Be&&Be.head,ne,te);(ie||Oe!=ye.anchor||ze!=ye.head)&&(ie||(ie=z.ranges.slice(0,de)),ie[de]=new Ua(Oe,ze))}return ie?Ms(x.cm,ie,z.primIndex):z}function os(x,z,ne,te,ie){var de=on(x,z.line);if(de.markedSpans)for(var ye=0;ye<de.markedSpans.length;++ye){var Be=de.markedSpans[ye],Oe=Be.marker,ze="selectLeft"in Oe?!Oe.selectLeft:Oe.inclusiveLeft,Ot="selectRight"in Oe?!Oe.selectRight:Oe.inclusiveRight;if((Be.from==null||(ze?Be.from<=z.ch:Be.from<z.ch))&&(Be.to==null||(Ot?Be.to>=z.ch:Be.to>z.ch))){if(ie&&(et(Oe,"beforeCursorEnter"),Oe.explicitlyCleared))if(de.markedSpans){--ye;continue}else break;if(!Oe.atomic)continue;if(ne){var Gt=Oe.find(te<0?1:-1),On=void 0;if((te<0?Ot:ze)&&(Gt=el(x,Gt,-te,Gt&&Gt.line==z.line?de:null)),Gt&&Gt.line==z.line&&(On=Dt(Gt,ne))&&(te<0?On<0:On>0))return os(x,Gt,z,te,ie)}var Sn=Oe.find(te<0?-1:1);return(te<0?ze:Ot)&&(Sn=el(x,Sn,te,Sn.line==z.line?de:null)),Sn?os(x,Sn,z,te,ie):null}}return z}function hu(x,z,ne,te,ie){var de=te||1,ye=os(x,z,ne,de,ie)||!ie&&os(x,z,ne,de,!0)||os(x,z,ne,-de,ie)||!ie&&os(x,z,ne,-de,!0);return ye||(x.cantEdit=!0,gt(x.first,0))}function el(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?Un(x,gt(z.line-1)):null:ne>0&&z.ch==(te||on(x,z.line)).text.length?z.line<x.first+x.size-1?gt(z.line+1,0):null:new gt(z.line,z.ch+ne)}function td(x){x.setSelection(gt(x.firstLine(),0),gt(x.lastLine()),$e)}function pu(x,z,ne){var te={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return te.canceled=!0}};return ne&&(te.update=function(ie,de,ye,Be){ie&&(te.from=Un(x,ie)),de&&(te.to=Un(x,de)),ye&&(te.text=ye),Be!==void 0&&(te.origin=Be)}),et(x,"beforeChange",x,te),x.cm&&et(x.cm,"beforeChange",x.cm,te),te.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:te.from,to:te.to,text:te.text,origin:te.origin}}function dl(x,z,ne){if(x.cm){if(!x.cm.curOp)return Ha(x.cm,dl)(x,z,ne);if(x.cm.state.suppressEdits)return}if(!((hn(x,"beforeChange")||x.cm&&hn(x.cm,"beforeChange"))&&(z=pu(x,z,!0),!z))){var te=na&&!ne&&fi(x,z.from,z.to);if(te)for(var ie=te.length-1;ie>=0;--ie)nd(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else nd(x,z)}}function nd(x,z){if(!(z.text.length==1&&z.text[0]==""&&Dt(z.from,z.to)==0)){var ne=tu(x,z);Ec(x,z,ne,x.cm?x.cm.curOp.id:NaN),_l(x,z,ne,ri(x,z));var te=[];$s(x,function(ie,de){!de&&At(te,ie.history)==-1&&(kc(ie.history,z),te.push(ie.history)),_l(ie,z,null,ri(ie,z))})}}function tl(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,de,ye=x.sel,Be=z=="undo"?ie.done:ie.undone,Oe=z=="undo"?ie.undone:ie.done,ze=0;ze<Be.length&&(de=Be[ze],!(ne?de.ranges&&!de.equals(x.sel):!de.ranges));ze++);if(ze!=Be.length){for(ie.lastOrigin=ie.lastSelOrigin=null;;)if(de=Be.pop(),de.ranges){if(Mc(de,Oe),ne&&!de.equals(x.sel)){Do(x,de,{clearRedo:!1});return}ye=de}else if(te){Be.push(de);return}else break;var Ot=[];Mc(ye,Oe),Oe.push({changes:Ot,generation:ie.generation}),ie.generation=de.generation||++ie.maxGeneration;for(var Gt=hn(x,"beforeChange")||x.cm&&hn(x.cm,"beforeChange"),On=function(Rr){var Xr=de.changes[Rr];if(Xr.origin=z,Gt&&!pu(x,Xr,!1))return Be.length=0,{};Ot.push(ou(x,Xr));var li=Rr?tu(x,Xr):nn(Be);_l(x,Xr,li,$u(x,Xr)),!Rr&&x.cm&&x.cm.scrollIntoView({from:Xr.from,to:qs(Xr)});var mi=[];$s(x,function(ni,gi){!gi&&At(mi,ni.history)==-1&&(kc(ni.history,Xr),mi.push(ni.history)),_l(ni,Xr,null,$u(ni,Xr))})},Sn=de.changes.length-1;Sn>=0;--Sn){var br=On(Sn);if(br)return br.v}}}}function mu(x,z){if(z!=0&&(x.first+=z,x.sel=new vs(xn(x.sel.ranges,function(ie){return new Ua(gt(ie.anchor.line+z,ie.anchor.ch),gt(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){Vi(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)Oa(x.cm,te,"gutter")}}function _l(x,z,ne,te){if(x.cm&&!x.cm.curOp)return Ha(x.cm,_l)(x,z,ne,te);if(z.to.line<x.first){mu(x,z.text.length-1-(z.to.line-z.from.line));return}if(!(z.from.line>x.lastLine())){if(z.from.line<x.first){var ie=z.text.length-1-(x.first-z.from.line);mu(x,ie),z={from:gt(x.first,0),to:gt(z.to.line+ie,z.to.ch),text:[nn(z.text)],origin:z.origin}}var de=x.lastLine();z.to.line>de&&(z={from:z.from,to:gt(de,on(x,de).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Kn(x,z.from,z.to),ne||(ne=tu(x,z)),x.cm?$d(x.cm,z,te):iu(x,z,te),Ac(x,ne,$e),x.cantEdit&&hu(x,gt(x.firstLine(),0))&&(x.cantEdit=!1)}}function $d(x,z,ne){var te=x.doc,ie=x.display,de=z.from,ye=z.to,Be=!1,Oe=de.line;x.options.lineWrapping||(Oe=or(vt(on(te,de.line))),te.iter(Oe,ye.line+1,function(Sn){if(Sn==ie.maxLine)return Be=!0,!0})),te.sel.contains(z.from,z.to)>-1&&gn(x),iu(te,z,ne,No(x)),x.options.lineWrapping||(te.iter(Oe,de.line+z.text.length,function(Sn){var br=Fn(Sn);br>ie.maxLineLength&&(ie.maxLine=Sn,ie.maxLineLength=br,ie.maxLineChanged=!0,Be=!1)}),Be&&(x.curOp.updateMaxLine=!0)),ca(te,de.line),is(x,400);var ze=z.text.length-(ye.line-de.line)-1;z.full?Vi(x):de.line==ye.line&&z.text.length==1&&!Ju(x.doc,z)?Oa(x,de.line,"text"):Vi(x,de.line,ye.line+1,ze);var Ot=hn(x,"changes"),Gt=hn(x,"change");if(Gt||Ot){var On={from:de,to:ye,text:z.text,removed:z.removed,origin:z.origin};Gt&&mn(x,"change",x,On),Ot&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(On)}x.display.selForContextMenu=null}function ec(x,z,ne,te,ie){var de;te||(te=ne),Dt(te,ne)<0&&(de=[te,ne],ne=de[0],te=de[1]),typeof z=="string"&&(z=x.splitLines(z)),dl(x,{from:ne,to:te,text:z,origin:ie})}function ef(x,z,ne,te){ne<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function tf(x,z,ne,te){for(var ie=0;ie<x.length;++ie){var de=x[ie],ye=!0;if(de.ranges){de.copied||(de=x[ie]=de.deepCopy(),de.copied=!0);for(var Be=0;Be<de.ranges.length;Be++)ef(de.ranges[Be].anchor,z,ne,te),ef(de.ranges[Be].head,z,ne,te);continue}for(var Oe=0;Oe<de.changes.length;++Oe){var ze=de.changes[Oe];if(ne<ze.from.line)ze.from=gt(ze.from.line+te,ze.from.ch),ze.to=gt(ze.to.line+te,ze.to.ch);else if(z<=ze.to.line){ye=!1;break}}ye||(x.splice(0,ie+1),ie=0)}}function kc(x,z){var ne=z.from.line,te=z.to.line,ie=z.text.length-(te-ne)-1;tf(x.done,ne,te,ie),tf(x.undone,ne,te,ie)}function Lc(x,z,ne,te){var ie=z,de=z;return typeof z=="number"?de=on(x,In(x,z)):ie=or(z),ie==null?null:(te(de,ie)&&x.cm&&Oa(x.cm,ie,ne),de)}function fl(x){this.lines=x,this.parent=null;for(var z=0,ne=0;ne<x.length;++ne)x[ne].parent=this,z+=x[ne].height;this.height=z}fl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var ne=x,te=x+z;ne<te;++ne){var ie=this.lines[ne];this.height-=ie.height,gr(ie),mn(ie,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,ne){this.height+=ne,this.lines=this.lines.slice(0,x).concat(z).concat(this.lines.slice(x));for(var te=0;te<z.length;++te)z[te].parent=this},iterN:function(x,z,ne){for(var te=x+z;x<te;++x)if(ne(this.lines[x]))return!0}};function tc(x){this.children=x;for(var z=0,ne=0,te=0;te<x.length;++te){var ie=x[te];z+=ie.chunkSize(),ne+=ie.height,ie.parent=this}this.size=z,this.height=ne,this.parent=null}tc.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var ne=0;ne<this.children.length;++ne){var te=this.children[ne],ie=te.chunkSize();if(x<ie){var de=Math.min(z,ie-x),ye=te.height;if(te.removeInner(x,de),this.height-=ye-te.height,ie==de&&(this.children.splice(ne--,1),te.parent=null),(z-=de)==0)break;x=0}else x-=ie}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof fl))){var Be=[];this.collapse(Be),this.children=[new fl(Be)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z<this.children.length;++z)this.children[z].collapse(x)},insertInner:function(x,z,ne){this.size+=z.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ie=this.children[te],de=ie.chunkSize();if(x<=de){if(ie.insertInner(x,z,ne),ie.lines&&ie.lines.length>50){for(var ye=ie.lines.length%25+25,Be=ye;Be<ie.lines.length;){var Oe=new fl(ie.lines.slice(Be,Be+=25));ie.height-=Oe.height,this.children.splice(++te,0,Oe),Oe.parent=this}ie.lines=ie.lines.slice(0,ye),this.maybeSpill()}break}x-=de}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),ne=new tc(z);if(x.parent){x.size-=ne.size,x.height-=ne.height;var ie=At(x.parent.children,x);x.parent.children.splice(ie+1,0,ne)}else{var te=new tc(x.children);te.parent=x,x.children=[te,ne],x=te}ne.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;te<this.children.length;++te){var ie=this.children[te],de=ie.chunkSize();if(x<de){var ye=Math.min(z,de-x);if(ie.iterN(x,ye,ne))return!0;if((z-=ye)==0)break;x=0}else x-=de}}};var nc=function(x,z,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=x,this.node=z};nc.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ne=this.line,te=or(ne);if(!(te==null||!z)){for(var ie=0;ie<z.length;++ie)z[ie]==this&&z.splice(ie--,1);z.length||(ne.widgets=null);var de=ii(this);hr(ne,Math.max(0,ne.height-de)),x&&(ga(x,function(){nf(x,ne,-de),Oa(x,te,"widget")}),mn(x,"lineWidgetCleared",x,this,te))}},nc.prototype.changed=function(){var x=this,z=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ie=ii(this)-z;ie&&(Pr(this.doc,te)||hr(te,te.height+ie),ne&&ga(ne,function(){ne.curOp.forceUpdate=!0,nf(ne,te,ie),mn(ne,"lineWidgetChanged",ne,x,or(te))}))},An(nc);function nf(x,z,ne){Wn(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&ms(x,ne)}function rf(x,z,ne,te){var ie=new nc(x,ne,te),de=x.cm;return de&&ie.noHScroll&&(de.display.alignWidgets=!0),Lc(x,z,"widget",function(ye){var Be=ye.widgets||(ye.widgets=[]);if(ie.insertAt==null?Be.push(ie):Be.splice(Math.min(Be.length-1,Math.max(0,ie.insertAt)),0,ie),ie.line=ye,de&&!Pr(x,ye)){var Oe=Wn(ye)<x.scrollTop;hr(ye,ye.height+ii(ie)),Oe&&ms(de,ie.height),de.curOp.forceUpdate=!0}return!0}),de&&mn(de,"lineWidgetAdded",de,ie,typeof z=="number"?z:or(z)),ie}var af=0,hl=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++af};hl.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&Ks(x),hn(this,"clear")){var ne=this.find();ne&&mn(this,"clear",ne.from,ne.to)}for(var te=null,ie=null,de=0;de<this.lines.length;++de){var ye=this.lines[de],Be=Bn(ye.markedSpans,this);x&&!this.collapsed?Oa(x,or(ye),"text"):x&&(Be.to!=null&&(ie=or(ye)),Be.from!=null&&(te=or(ye))),ye.markedSpans=Qn(ye.markedSpans,Be),Be.from==null&&this.collapsed&&!Pr(this.doc,ye)&&x&&hr(ye,Ka(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var Oe=0;Oe<this.lines.length;++Oe){var ze=vt(this.lines[Oe]),Ot=Fn(ze);Ot>x.display.maxLineLength&&(x.display.maxLine=ze,x.display.maxLineLength=Ot,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&Vi(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&qd(x.doc)),x&&mn(x,"markerCleared",x,this,te,ie),z&&Ts(x),this.parent&&this.parent.clear()}},hl.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie<this.lines.length;++ie){var de=this.lines[ie],ye=Bn(de.markedSpans,this);if(ye.from!=null&&(ne=gt(z?de:or(de),ye.from),x==-1))return ne;if(ye.to!=null&&(te=gt(z?de:or(de),ye.to),x==1))return te}return ne&&{from:ne,to:te}},hl.prototype.changed=function(){var x=this,z=this.find(-1,!0),ne=this,te=this.doc.cm;!z||!te||ga(te,function(){var ie=z.line,de=or(z.line),ye=ra(te,de);if(ye&&(ta(ye),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!Pr(ne.doc,ie)&&ne.height!=null){var Be=ne.height;ne.height=null;var Oe=ii(ne)-Be;Oe&&hr(ie,ie.height+Oe)}mn(te,"markerChanged",te,x)})},hl.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||At(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},hl.prototype.detachLine=function(x){if(this.lines.splice(At(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},An(hl);function nl(x,z,ne,te,ie){if(te&&te.shared)return uo(x,z,ne,te,ie);if(x.cm&&!x.cm.curOp)return Ha(x.cm,nl)(x,z,ne,te,ie);var de=new hl(x,ie),ye=Dt(z,ne);if(te&&tr(te,de,!1),ye>0||ye==0&&de.clearWhenEmpty!==!1)return de;if(de.replacedWith&&(de.collapsed=!0,de.widgetNode=Ft("span",[de.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||de.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(de.widgetNode.insertLeft=!0)),de.collapsed){if(ut(x,z.line,z,ne,de)||z.line!=ne.line&&ut(x,ne.line,z,ne,de))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tt()}de.addToHistory&&Ec(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Be=z.line,Oe=x.cm,ze;if(x.iter(Be,ne.line+1,function(Gt){Oe&&de.collapsed&&!Oe.options.lineWrapping&&vt(Gt)==Oe.display.maxLine&&(ze=!0),de.collapsed&&Be!=z.line&&hr(Gt,0),Or(Gt,new fn(de,Be==z.line?z.ch:null,Be==ne.line?ne.ch:null)),++Be}),de.collapsed&&x.iter(z.line,ne.line+1,function(Gt){Pr(x,Gt)&&hr(Gt,0)}),de.clearOnEnter&&Xt(de,"beforeCursorEnter",function(){return de.clear()}),de.readOnly&&(zt(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),de.collapsed&&(de.id=++af,de.atomic=!0),Oe){if(ze&&(Oe.curOp.updateMaxLine=!0),de.collapsed)Vi(Oe,z.line,ne.line+1);else if(de.className||de.startStyle||de.endStyle||de.css||de.attributes||de.title)for(var Ot=z.line;Ot<=ne.line;Ot++)Oa(Oe,Ot,"text");de.atomic&&qd(Oe.doc),mn(Oe,"markerAdded",Oe,de)}return de}var ba=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne<x.length;++ne)x[ne].parent=this};ba.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();mn(this,"clear")}},ba.prototype.find=function(x,z){return this.primary.find(x,z)},An(ba);function uo(x,z,ne,te,ie){te=tr(te),te.shared=!1;var de=[nl(x,z,ne,te,ie)],ye=de[0],Be=te.widgetNode;return $s(x,function(Oe){Be&&(te.widgetNode=Be.cloneNode(!0)),de.push(nl(Oe,Un(Oe,z),Un(Oe,ne),te,ie));for(var ze=0;ze<Oe.linked.length;++ze)if(Oe.linked[ze].isParent)return;ye=nn(de)}),new ba(de,ye)}function pl(x){return x.findMarks(gt(x.first,0),x.clipPos(gt(x.lastLine())),function(z){return z.parent})}function of(x,z){for(var ne=0;ne<z.length;ne++){var te=z[ne],ie=te.find(),de=x.clipPos(ie.from),ye=x.clipPos(ie.to);if(Dt(de,ye)){var Be=nl(x,de,ye,te.primary,te.primary.type);te.markers.push(Be),Be.parent=te}}}function Ss(x){for(var z=function(te){var ie=x[te],de=[ie.primary.doc];$s(ie.primary.doc,function(Oe){return de.push(Oe)});for(var ye=0;ye<ie.markers.length;ye++){var Be=ie.markers[ye];At(de,Be.doc)==-1&&(Be.parent=null,ie.markers.splice(ye--,1))}},ne=0;ne<x.length;ne++)z(ne)}var sf=0,Mo=function(x,z,ne,te,ie){if(!(this instanceof Mo))return new Mo(x,z,ne,te,ie);ne==null&&(ne=0),tc.call(this,[new fl([new rr("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var de=gt(ne,0);this.sel=Os(de),this.history=new Cc(null),this.id=++sf,this.modeOption=z,this.lineSep=te,this.direction=ie=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),iu(this,{from:de,to:de,text:x}),Do(this,Os(de),$e)};Mo.prototype=ue(tc.prototype,{constructor:Mo,iter:function(x,z,ne){ne?this.iterN(x-this.first,z-x,ne):this.iterN(this.first,this.first+this.size,x)},insert:function(x,z){for(var ne=0,te=0;te<z.length;++te)ne+=z[te].height;this.insertInner(x-this.first,z,ne)},remove:function(x,z){this.removeInner(x-this.first,z)},getValue:function(x){var z=Hr(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:po(function(x){var z=gt(this.first,0),ne=this.first+this.size-1;dl(this,{from:z,to:gt(ne,on(this,ne).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&Ds(this.cm,0,0),Do(this,Os(z),$e)}),replaceRange:function(x,z,ne,te){z=Un(this,z),ne=ne?Un(this,ne):z,ec(this,x,z,ne,te)},getRange:function(x,z,ne){var te=Kn(this,Un(this,x),Un(this,z));return ne===!1?te:te.join(ne||this.lineSeparator())},getLine:function(x){var z=this.getLineHandle(x);return z&&z.text},getLineHandle:function(x){if(Lr(this,x))return on(this,x)},getLineNumber:function(x){return or(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=on(this,x)),vt(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return Un(this,x)},getCursor:function(x){var z=this.sel.primary(),ne;return x==null||x=="head"?ne=z.head:x=="anchor"?ne=z.anchor:x=="end"||x=="to"||x===!1?ne=z.to():ne=z.from(),ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:po(function(x,z,ne){ed(this,Un(this,typeof x=="number"?gt(x,z||0):x),null,ne)}),setSelection:po(function(x,z,ne){ed(this,Un(this,x),Un(this,z||x),ne)}),extendSelection:po(function(x,z,ne){Fl(this,Un(this,x),z&&Un(this,z),ne)}),extendSelections:po(function(x,z){yi(this,pn(this,x),z)}),extendSelectionsBy:po(function(x,z){var ne=xn(this.sel.ranges,x);yi(this,pn(this,ne),z)}),setSelections:po(function(x,z,ne){if(x.length){for(var te=[],ie=0;ie<x.length;ie++)te[ie]=new Ua(Un(this,x[ie].anchor),Un(this,x[ie].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),Do(this,Ms(this.cm,te,z),ne)}}),addSelection:po(function(x,z,ne){var te=this.sel.ranges.slice(0);te.push(new Ua(Un(this,x),Un(this,z||x))),Do(this,Ms(this.cm,te,te.length-1),ne)}),getSelection:function(x){for(var z=this.sel.ranges,ne,te=0;te<z.length;te++){var ie=Kn(this,z[te].from(),z[te].to());ne=ne?ne.concat(ie):ie}return x===!1?ne:ne.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],ne=this.sel.ranges,te=0;te<ne.length;te++){var ie=Kn(this,ne[te].from(),ne[te].to());x!==!1&&(ie=ie.join(x||this.lineSeparator())),z[te]=ie}return z},replaceSelection:function(x,z,ne){for(var te=[],ie=0;ie<this.sel.ranges.length;ie++)te[ie]=x;this.replaceSelections(te,z,ne||"+input")},replaceSelections:po(function(x,z,ne){for(var te=[],ie=this.sel,de=0;de<ie.ranges.length;de++){var ye=ie.ranges[de];te[de]={from:ye.from(),to:ye.to(),text:this.splitLines(x[de]),origin:ne}}for(var Be=z&&z!="end"&&nu(this,te,z),Oe=te.length-1;Oe>=0;Oe--)dl(this,te[Oe]);Be?as(this,Be):this.cm&&Ho(this.cm)}),undo:po(function(){tl(this,"undo")}),redo:po(function(){tl(this,"redo")}),undoSelection:po(function(){tl(this,"undo",!0)}),redoSelection:po(function(){tl(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te<x.done.length;te++)x.done[te].ranges||++z;for(var ie=0;ie<x.undone.length;ie++)x.undone[ie].ranges||++ne;return{undo:z,redo:ne}},clearHistory:function(){var x=this;this.history=new Cc(this.history.maxGeneration),$s(this,function(z){return z.history=x.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(x){return x&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(x){return this.history.generation==(x||this.cleanGeneration)},getHistory:function(){return{done:Rl(this.history.done),undone:Rl(this.history.undone)}},setHistory:function(x){var z=this.history=new Cc(this.history.maxGeneration);z.done=Rl(x.done.slice(0),null,!0),z.undone=Rl(x.undone.slice(0),null,!0)},setGutterMarker:po(function(x,z,ne){return Lc(this,x,"gutter",function(te){var ie=te.gutterMarkers||(te.gutterMarkers={});return ie[z]=ne,!ne&&le(ie)&&(te.gutterMarkers=null),!0})}),clearGutter:po(function(x){var z=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[x]&&Lc(z,ne,"gutter",function(){return ne.gutterMarkers[x]=null,le(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!Lr(this,x)||(z=x,x=on(this,x),!x))return null}else if(z=or(x),z==null)return null;return{line:z,handle:x,text:x.text,gutterMarkers:x.gutterMarkers,textClass:x.textClass,bgClass:x.bgClass,wrapClass:x.wrapClass,widgets:x.widgets}},addLineClass:po(function(x,z,ne){return Lc(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!te[ie])te[ie]=ne;else{if(Ce(ne).test(te[ie]))return!1;te[ie]+=" "+ne}return!0})}),removeLineClass:po(function(x,z,ne){return Lc(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",de=te[ie];if(de)if(ne==null)te[ie]=null;else{var ye=de.match(Ce(ne));if(!ye)return!1;var Be=ye.index+ye[0].length;te[ie]=de.slice(0,ye.index)+(!ye.index||Be==de.length?"":" ")+de.slice(Be)||null}else return!1;return!0})}),addLineWidget:po(function(x,z,ne){return rf(this,x,z,ne)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ne){return nl(this,Un(this,x),Un(this,z),ne,ne&&ne.type||"range")},setBookmark:function(x,z){var ne={replacedWith:z&&(z.nodeType==null?z.widget:z),insertLeft:z&&z.insertLeft,clearWhenEmpty:!1,shared:z&&z.shared,handleMouseEvents:z&&z.handleMouseEvents};return x=Un(this,x),nl(this,x,x,ne,"bookmark")},findMarksAt:function(x){x=Un(this,x);var z=[],ne=on(this,x.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ie=ne[te];(ie.from==null||ie.from<=x.ch)&&(ie.to==null||ie.to>=x.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=Un(this,x),z=Un(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(de){var ye=de.markedSpans;if(ye)for(var Be=0;Be<ye.length;Be++){var Oe=ye[Be];!(Oe.to!=null&&ie==x.line&&x.ch>=Oe.to||Oe.from==null&&ie!=x.line||Oe.from!=null&&ie==z.line&&Oe.from>=z.ch)&&(!ne||ne(Oe.marker))&&te.push(Oe.marker.parent||Oe.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;te<ne.length;++te)ne[te].from!=null&&x.push(ne[te].marker)}),x},posFromIndex:function(x){var z,ne=this.first,te=this.lineSeparator().length;return this.iter(function(ie){var de=ie.text.length+te;if(de>x)return z=x,!0;x-=de,++ne}),Un(this,gt(ne,z))},indexFromPos:function(x){x=Un(this,x);var z=x.ch;if(x.line<this.first||x.ch<0)return 0;var ne=this.lineSeparator().length;return this.iter(this.first,x.line,function(te){z+=te.text.length+ne}),z},copy:function(x){var z=new Mo(Hr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return z.scrollTop=this.scrollTop,z.scrollLeft=this.scrollLeft,z.sel=this.sel,z.extend=!1,x&&(z.history.undoDepth=this.history.undoDepth,z.setHistory(this.getHistory())),z},linkedDoc:function(x){x||(x={});var z=this.first,ne=this.first+this.size;x.from!=null&&x.from>z&&(z=x.from),x.to!=null&&x.to<ne&&(ne=x.to);var te=new Mo(Hr(this,z,ne),x.mode||this.modeOption,z,this.lineSep,this.direction);return x.sharedHist&&(te.history=this.history),(this.linked||(this.linked=[])).push({doc:te,sharedHist:x.sharedHist}),te.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],of(te,pl(this)),te},unlinkDoc:function(x){if(x instanceof aa&&(x=x.doc),this.linked)for(var z=0;z<this.linked.length;++z){var ne=this.linked[z];if(ne.doc==x){this.linked.splice(z,1),x.unlinkDoc(this),Ss(pl(this));break}}if(x.history==this.history){var te=[x.id];$s(x,function(ie){return te.push(ie.id)},!0),x.history=new Cc(null),x.history.done=Rl(this.history.done,te),x.history.undone=Rl(this.history.undone,te)}},iterLinkedDocs:function(x){$s(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):Ct(x)},lineSeparator:function(){return this.lineSep||`
`},setDirection:po(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&au(this.cm))})}),Mo.prototype.eachLine=Mo.prototype.iter;var rd=0;function eh(x){var z=this;if(rc(z),!(It(z,x)||Ti(z.display,x))){Vn(x),ve&&(rd=+new Date);var ne=Bo(z,x,!0),te=x.dataTransfer.files;if(!(!ne||z.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ie=te.length,de=Array(ie),ye=0,Be=function(){++ye==ie&&Ha(z,function(){ne=Un(z.doc,ne);var Sn={from:ne,to:ne,text:z.doc.splitLines(de.filter(function(br){return br!=null}).join(z.doc.lineSeparator())),origin:"paste"};dl(z.doc,Sn),as(z.doc,Os(Un(z.doc,ne),Un(z.doc,qs(Sn))))})()},Oe=function(Sn,br){if(z.options.allowDropFileTypes&&At(z.options.allowDropFileTypes,Sn.type)==-1){Be();return}var Rr=new FileReader;Rr.onerror=function(){return Be()},Rr.onload=function(){var Xr=Rr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Xr)){Be();return}de[br]=Xr,Be()},Rr.readAsText(Sn)},ze=0;ze<te.length;ze++)Oe(te[ze],ze);else{if(z.state.draggingText&&z.doc.sel.contains(ne)>-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var Ot=x.dataTransfer.getData("Text");if(Ot){var Gt;if(z.state.draggingText&&!z.state.draggingText.copy&&(Gt=z.listSelections()),Ac(z.doc,Os(ne,ne)),Gt)for(var On=0;On<Gt.length;++On)ec(z.doc,"",Gt[On].anchor,Gt[On].head,"drag");z.replaceSelection(Ot,"around","paste"),z.display.input.focus()}}catch(Sn){}}}}function th(x,z){if(ve&&(!x.state.draggingText||+new Date-rd<100)){dr(z);return}if(!(It(x,z)||Ti(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!st)){var ne=ht("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ie&&(ne.width=ne.height=1,x.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),z.dataTransfer.setDragImage(ne,0,0),Ie&&ne.parentNode.removeChild(ne)}}function id(x,z){var ne=Bo(x,z);if(ne){var te=document.createDocumentFragment();sa(x,ne,te),x.display.dragCursor||(x.display.dragCursor=ht("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),Mt(x.display.dragCursor,te)}}function rc(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function ic(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<z.length;te++){var ie=z[te].CodeMirror;ie&&ne.push(ie)}ne.length&&ne[0].operation(function(){for(var de=0;de<ne.length;de++)x(ne[de])})}}var Vr=!1;function ad(){Vr||(gu(),Vr=!0)}function gu(){var x;Xt(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,ic(vu)},100))}),Xt(window,"blur",function(){return ic(_o)})}function vu(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var Ps={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"},Bc=0;Bc<10;Bc++)Ps[Bc+48]=Ps[Bc+96]=String(Bc);for(var yu=65;yu<=90;yu++)Ps[yu]=String.fromCharCode(yu);for(var Dc=1;Dc<=12;Dc++)Ps[Dc+111]=Ps[Dc+63235]="F"+Dc;var $a={};$a.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"},$a.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"},$a.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"},$a.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"]},$a.default=Ee?$a.macDefault:$a.pcDefault;function nh(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ne,te,ie,de,ye=0;ye<z.length-1;ye++){var Be=z[ye];if(/^(cmd|meta|m)$/i.test(Be))de=!0;else if(/^a(lt)?$/i.test(Be))ne=!0;else if(/^(c|ctrl|control)$/i.test(Be))te=!0;else if(/^s(hift)?$/i.test(Be))ie=!0;else throw new Error("Unrecognized modifier name: "+Be)}return ne&&(x="Alt-"+x),te&&(x="Ctrl-"+x),de&&(x="Cmd-"+x),ie&&(x="Shift-"+x),x}function od(x){var z={};for(var ne in x)if(x.hasOwnProperty(ne)){var te=x[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(te=="..."){delete x[ne];continue}for(var ie=xn(ne.split(" "),nh),de=0;de<ie.length;de++){var ye=void 0,Be=void 0;de==ie.length-1?(Be=ie.join(" "),ye=te):(Be=ie.slice(0,de+1).join(" "),ye="...");var Oe=z[Be];if(!Oe)z[Be]=ye;else if(Oe!=ye)throw new Error("Inconsistent bindings for "+Be)}delete x[ne]}for(var ze in z)x[ze]=z[ze];return x}function rl(x,z,ne,te){z=ss(z);var ie=z.call?z.call(x,te):z[x];if(ie===!1)return"nothing";if(ie==="...")return"multi";if(ie!=null&&ne(ie))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return rl(x,z.fallthrough,ne,te);for(var de=0;de<z.fallthrough.length;de++){var ye=rl(x,z.fallthrough[de],ne,te);if(ye)return ye}}}function Ic(x){var z=typeof x=="string"?x:Ps[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function ml(x,z,ne){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(lt?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(lt?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!ne&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function Hl(x,z){if(Ie&&x.keyCode==34&&x.char)return!1;var ne=Ps[x.keyCode];return ne==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ne=x.code),ml(ne,x,z))}function ss(x){return typeof x=="string"?$a[x]:x}function As(x,z){for(var ne=x.doc.sel.ranges,te=[],ie=0;ie<ne.length;ie++){for(var de=z(ne[ie]);te.length&&Dt(de.from,nn(te).to)<=0;){var ye=te.pop();if(Dt(ye.from,de.from)<0){de.from=ye.from;break}}te.push(de)}ga(x,function(){for(var Be=te.length-1;Be>=0;Be--)ec(x.doc,"",te[Be].from,te[Be].to,"+delete");Ho(x)})}function Vo(x,z,ne){var te=ft(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function js(x,z,ne){var te=Vo(x,z.ch,ne);return te==null?null:new gt(z.line,te,ne<0?"after":"before")}function Kl(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var de=Et(ne,z.doc.direction);if(de){var ye=ie<0?nn(de):de[0],Be=ie<0==(ye.level==1),Oe=Be?"after":"before",ze;if(ye.level>0||z.doc.direction=="rtl"){var Ot=Yi(z,ne);ze=ie<0?ne.text.length-1:0;var Gt=ki(z,Ot,ze).top;ze=Ht(function(On){return ki(z,Ot,On).top==Gt},ie<0==(ye.level==1)?ye.from:ye.to-1,ze),Oe=="before"&&(ze=Vo(ne,ze,1))}else ze=ie<0?ye.to:ye.from;return new gt(te,ze,Oe)}}return new gt(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Zs(x,z,ne,te){var ie=Et(z,x.doc.direction);if(!ie)return js(z,ne,te);ne.ch>=z.text.length?(ne.ch=z.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var de=$t(ie,ne.ch,ne.sticky),ye=ie[de];if(x.doc.direction=="ltr"&&ye.level%2==0&&(te>0?ye.to>ne.ch:ye.from<ne.ch))return js(z,ne,te);var Be=function(li,mi){return Vo(z,li instanceof gt?li.ch:li,mi)},Oe,ze=function(li){return x.options.lineWrapping?(Oe=Oe||Yi(x,z),_a(x,z,Oe,li)):{begin:0,end:z.text.length}},Ot=ze(ne.sticky=="before"?Be(ne,-1):ne.ch);if(x.doc.direction=="rtl"||ye.level==1){var Gt=ye.level==1==te<0,On=Be(ne,Gt?1:-1);if(On!=null&&(Gt?On<=ye.to&&On<=Ot.end:On>=ye.from&&On>=Ot.begin)){var Sn=Gt?"before":"after";return new gt(ne.line,On,Sn)}}var br=function(li,mi,ni){for(var gi=function(to,jo){return jo?new gt(ne.line,Be(to,1),"before"):new gt(ne.line,to,"after")};li>=0&&li<ie.length;li+=mi){var Gi=ie[li],qi=mi>0==(Gi.level!=1),xa=qi?ni.begin:Be(ni.end,-1);if(Gi.from<=xa&&xa<Gi.to||(xa=qi?Gi.from:Be(Gi.to,-1),ni.begin<=xa&&xa<ni.end))return gi(xa,qi)}},Rr=br(de+te,te,Ot);if(Rr)return Rr;var Xr=te>0?Ot.end:Be(Ot.begin,-1);return Xr!=null&&!(te>0&&Xr==z.text.length)&&(Rr=br(te>0?0:ie.length-1,te,ze(Xr)),Rr)?Rr:null}var ac={selectAll:td,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),$e)},killLine:function(x){return As(x,function(z){if(z.empty()){var ne=on(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line<x.lastLine()?{from:z.head,to:gt(z.head.line+1,0)}:{from:z.head,to:gt(z.head.line,ne)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return As(x,function(z){return{from:gt(z.from().line,0),to:Un(x.doc,gt(z.to().line+1,0))}})},delLineLeft:function(x){return As(x,function(z){return{from:gt(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return As(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return{from:te,to:z.from()}})},delWrappedLineRight:function(x){return As(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div");return{from:z.from(),to:te}})},undo:function(x){return x.undo()},redo:function(x){return x.redo()},undoSelection:function(x){return x.undoSelection()},redoSelection:function(x){return x.redoSelection()},goDocStart:function(x){return x.extendSelection(gt(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(gt(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return sd(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return lf(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return ld(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div")},qt)},goLineLeft:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:0,top:ne},"div")},qt)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return te.ch<x.getLine(te.line).search(/\S/)?lf(x,z.head):te},qt)},goLineUp:function(x){return x.moveV(-1,"line")},goLineDown:function(x){return x.moveV(1,"line")},goPageUp:function(x){return x.moveV(-1,"page")},goPageDown:function(x){return x.moveV(1,"page")},goCharLeft:function(x){return x.moveH(-1,"char")},goCharRight:function(x){return x.moveH(1,"char")},goColumnLeft:function(x){return x.moveH(-1,"column")},goColumnRight:function(x){return x.moveH(1,"column")},goWordLeft:function(x){return x.moveH(-1,"word")},goGroupRight:function(x){return x.moveH(1,"group")},goGroupLeft:function(x){return x.moveH(-1,"group")},goWordRight:function(x){return x.moveH(1,"word")},delCharBefore:function(x){return x.deleteH(-1,"codepoint")},delCharAfter:function(x){return x.deleteH(1,"char")},delWordBefore:function(x){return x.deleteH(-1,"word")},delWordAfter:function(x){return x.deleteH(1,"word")},delGroupBefore:function(x){return x.deleteH(-1,"group")},delGroupAfter:function(x){return x.deleteH(1,"group")},indentAuto:function(x){return x.indentSelection("smart")},indentMore:function(x){return x.indentSelection("add")},indentLess:function(x){return x.indentSelection("subtract")},insertTab:function(x){return x.replaceSelection(" ")},insertSoftTab:function(x){for(var z=[],ne=x.listSelections(),te=x.options.tabSize,ie=0;ie<ne.length;ie++){var de=ne[ie].from(),ye=Qe(x.getLine(de.line),de.ch,te);z.push(un(te-ye%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return ga(x,function(){for(var z=x.listSelections(),ne=[],te=0;te<z.length;te++)if(z[te].empty()){var ie=z[te].head,de=on(x.doc,ie.line).text;if(de){if(ie.ch==de.length&&(ie=new gt(ie.line,ie.ch-1)),ie.ch>0)ie=new gt(ie.line,ie.ch+1),x.replaceRange(de.charAt(ie.ch-1)+de.charAt(ie.ch-2),gt(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var ye=on(x.doc,ie.line-1).text;ye&&(ie=new gt(ie.line,1),x.replaceRange(de.charAt(0)+x.doc.lineSeparator()+ye.charAt(ye.length-1),gt(ie.line-1,ye.length-1),ie,"+transpose"))}}ne.push(new Ua(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return ga(x,function(){for(var z=x.listSelections(),ne=z.length-1;ne>=0;ne--)x.replaceRange(x.doc.lineSeparator(),z[ne].anchor,z[ne].head,"+input");z=x.listSelections();for(var te=0;te<z.length;te++)x.indentLine(z[te].from().line,null,!0);Ho(x)})},openLine:function(x){return x.replaceSelection(`
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function sd(x,z){var ne=on(x.doc,z),te=vt(ne);return te!=ne&&(z=or(te)),Kl(!0,x,te,z,1)}function ld(x,z){var ne=on(x.doc,z),te=Kt(ne);return te!=ne&&(z=or(te)),Kl(!0,x,ne,z,-1)}function lf(x,z){var ne=sd(x,z.line),te=on(x.doc,ne.line),ie=Et(te,x.doc.direction);if(!ie||ie[0].level==0){var de=Math.max(ne.ch,te.text.search(/\S/)),ye=z.line==ne.line&&z.ch<=de&&z.ch;return gt(ne.line,ye?0:de,ne.sticky)}return ne}function Io(x,z,ne){if(typeof z=="string"&&(z=ac[z],!z))return!1;x.display.input.ensurePolled();var te=x.display.shift,ie=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ne&&(x.display.shift=!1),ie=z(x)!=_t}finally{x.display.shift=te,x.state.suppressEdits=!1}return ie}function Us(x,z,ne){for(var te=0;te<x.state.keyMaps.length;te++){var ie=rl(z,x.state.keyMaps[te],ne,x);if(ie)return ie}return x.options.extraKeys&&rl(z,x.options.extraKeys,ne,x)||rl(z,x.options.keyMap,ne,x)}var rh=new we;function oc(x,z,ne,te){var ie=x.state.keySeq;if(ie){if(Ic(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:rh.set(50,function(){x.state.keySeq==ie&&(x.state.keySeq=null,x.display.input.reset())}),bu(x,ie+" "+z,ne,te))return!0}return bu(x,z,ne,te)}function bu(x,z,ne,te){var ie=Us(x,z,te);return ie=="multi"&&(x.state.keySeq=z),ie=="handled"&&mn(x,"keyHandled",x,z,ne),(ie=="handled"||ie=="multi")&&(Vn(ne),Pi(x)),!!ie}function Ia(x,z){var ne=Hl(z,!0);return ne?z.shiftKey&&!x.state.keySeq?oc(x,"Shift-"+ne,z,function(te){return Io(x,te,!0)})||oc(x,ne,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return Io(x,te)}):oc(x,ne,z,function(te){return Io(x,te)}):!1}function sc(x,z,ne){return oc(x,"'"+ne+"'",z,function(te){return Io(x,te,!0)})}var il=null;function Tc(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=Rt(),!It(z,x))){ve&&ke<11&&x.keyCode==27&&(x.returnValue=!1);var ne=x.keyCode;z.display.shift=ne==16||x.shiftKey;var te=Ia(z,x);Ie&&(il=te?ne:null,!te&&ne==88&&!Rn&&(Ee?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),ae&&!Ee&&!te&&ne==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&pr(z)}}function pr(x){var z=x.display.lineDiv;yn(z,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(je(z,"CodeMirror-crosshair"),Nn(document,"keyup",ne),Nn(document,"mouseover",ne))}Xt(document,"keyup",ne),Xt(document,"mouseover",ne)}function cf(x){x.keyCode==16&&(this.doc.sel.shift=!1),It(this,x)}function uf(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(Ti(z.display,x)||It(z,x)||x.ctrlKey&&!x.altKey||Ee&&x.metaKey)){var ne=x.keyCode,te=x.charCode;if(Ie&&ne==il){il=null,Vn(x);return}if(!(Ie&&(!x.which||x.which<10)&&Ia(z,x))){var ie=String.fromCharCode(te==null?ne:te);ie!="\b"&&(sc(z,x,ie)||z.display.input.onKeyPress(x))}}}var cd=400,ud=function(x,z,ne){this.time=x,this.pos=z,this.button=ne};ud.prototype.compare=function(x,z,ne){return this.time+cd>x&&Dt(z,this.pos)==0&&ne==this.button};var al,Oc;function ih(x,z){var ne=+new Date;return Oc&&Oc.compare(ne,x,z)?(al=Oc=null,"triple"):al&&al.compare(ne,x,z)?(Oc=new ud(ne,x,z),al=null,"double"):(al=new ud(ne,x,z),Oc=null,"single")}function Go(x){var z=this,ne=z.display;if(!(It(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,Ti(ne,x)){Le||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!ts(z,x)){var te=Bo(z,x),ie=nr(x),de=te?ih(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&gl(z,ie,te,de,x))&&(ie==1?te?wu(z,te,de,x):Fr(x)==ne.scroller&&Vn(x):ie==2?(te&&Fl(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(Se?z.display.input.onContextMenu(x):Wa(z)))}}}function gl(x,z,ne,te,ie){var de="Click";return te=="double"?de="Double"+de:te=="triple"&&(de="Triple"+de),de=(z==1?"Left":z==2?"Middle":"Right")+de,oc(x,ml(de,ie),ie,function(ye){if(typeof ye=="string"&&(ye=ac[ye]),!ye)return!1;var Be=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Be=ye(x,ne)!=_t}finally{x.state.suppressEdits=!1}return Be})}function xu(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var de=at?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=de?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ie.extend==null||x.doc.extend)&&(ie.extend=x.doc.extend||ne.shiftKey),ie.addNew==null&&(ie.addNew=Ee?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(Ee?ne.altKey:ne.ctrlKey)),ie}function wu(x,z,ne,te){ve?setTimeout(Yn(ji,x),0):x.curOp.focus=Rt();var ie=xu(x,ne,te),de=x.doc.sel,ye;x.options.dragDrop&&_r&&!x.isReadOnly()&&ne=="single"&&(ye=de.contains(z))>-1&&(Dt((ye=de.ranges[ye]).from(),z)<0||z.xRel>0)&&(Dt(ye.to(),z)>0||z.xRel<0)?ah(x,te,z,ie):dd(x,te,z,ie)}function ah(x,z,ne,te){var ie=x.display,de=!1,ye=Ha(x,function(ze){Le&&(ie.scroller.draggable=!1),x.state.draggingText=!1,Nn(ie.wrapper.ownerDocument,"mouseup",ye),Nn(ie.wrapper.ownerDocument,"mousemove",Be),Nn(ie.scroller,"dragstart",Oe),Nn(ie.scroller,"drop",ye),de||(Vn(ze),te.addNew||Fl(x.doc,ne,null,null,te.extend),Le&&!st||ve&&ke==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Be=function(ze){de=de||Math.abs(z.clientX-ze.clientX)+Math.abs(z.clientY-ze.clientY)>=10},Oe=function(){return de=!0};Le&&(ie.scroller.draggable=!0),x.state.draggingText=ye,ye.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),Xt(ie.wrapper.ownerDocument,"mouseup",ye),Xt(ie.wrapper.ownerDocument,"mousemove",Be),Xt(ie.scroller,"dragstart",Oe),Xt(ie.scroller,"drop",ye),Wa(x),setTimeout(function(){return ie.input.focus()},20)}function df(x,z,ne){if(ne=="char")return new Ua(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Ua(gt(z.line,0),Un(x.doc,gt(z.line+1,0)));var te=ne(x,z);return new Ua(te.from,te.to)}function dd(x,z,ne,te){var ie=x.display,de=x.doc;Vn(z);var ye,Be,Oe=de.sel,ze=Oe.ranges;if(te.addNew&&!te.extend?(Be=de.sel.contains(ne),Be>-1?ye=ze[Be]:ye=new Ua(ne,ne)):(ye=de.sel.primary(),Be=de.sel.primIndex),te.unit=="rectangle")te.addNew||(ye=new Ua(ne,ne)),ne=Bo(x,z,!0,!0),Be=-1;else{var Ot=df(x,ne,te.unit);te.extend?ye=fu(ye,Ot.anchor,Ot.head,te.extend):ye=Ot}te.addNew?Be==-1?(Be=ze.length,Do(de,Ms(x,ze.concat([ye]),Be),{scroll:!1,origin:"*mouse"})):ze.length>1&&ze[Be].empty()&&te.unit=="char"&&!te.extend?(Do(de,Ms(x,ze.slice(0,Be).concat(ze.slice(Be+1)),0),{scroll:!1,origin:"*mouse"}),Oe=de.sel):ws(de,Be,ye,dt):(Be=0,Do(de,new vs([ye],0),dt),Oe=de.sel);var Gt=ne;function On(ni){if(Dt(Gt,ni)!=0)if(Gt=ni,te.unit=="rectangle"){for(var gi=[],Gi=x.options.tabSize,qi=Qe(on(de,ne.line).text,ne.ch,Gi),xa=Qe(on(de,ni.line).text,ni.ch,Gi),to=Math.min(qi,xa),jo=Math.max(qi,xa),bo=Math.min(ne.line,ni.line),us=Math.min(x.lastLine(),Math.max(ne.line,ni.line));bo<=us;bo++){var ds=on(de,bo).text,To=Xn(ds,to,Gi);to==jo?gi.push(new Ua(gt(bo,To),gt(bo,To))):ds.length>To&&gi.push(new Ua(gt(bo,To),gt(bo,Xn(ds,jo,Gi))))}gi.length||gi.push(new Ua(ne,ne)),Do(de,Ms(x,Oe.ranges.slice(0,Be).concat(gi),Be),{origin:"*mouse",scroll:!1}),x.scrollIntoView(ni)}else{var fs=ye,la=df(x,ni,te.unit),So=fs.anchor,xo;Dt(la.anchor,So)>0?(xo=la.head,So=Dn(fs.from(),la.anchor)):(xo=la.anchor,So=Cn(fs.to(),la.head));var Co=Oe.ranges.slice(0);Co[Be]=ff(x,new Ua(Un(de,So),xo)),Do(de,Ms(x,Co,Be),dt)}}var Sn=ie.wrapper.getBoundingClientRect(),br=0;function Rr(ni){var gi=++br,Gi=Bo(x,ni,!0,te.unit=="rectangle");if(Gi)if(Dt(Gi,Gt)!=0){x.curOp.focus=Rt(),On(Gi);var qi=ya(ie,de);(Gi.line>=qi.to||Gi.line<qi.from)&&setTimeout(Ha(x,function(){br==gi&&Rr(ni)}),150)}else{var xa=ni.clientY<Sn.top?-20:ni.clientY>Sn.bottom?20:0;xa&&setTimeout(Ha(x,function(){br==gi&&(ie.scroller.scrollTop+=xa,Rr(ni))}),50)}}function Xr(ni){x.state.selectingText=!1,br=1/0,ni&&(Vn(ni),ie.input.focus()),Nn(ie.wrapper.ownerDocument,"mousemove",li),Nn(ie.wrapper.ownerDocument,"mouseup",mi),de.history.lastSelOrigin=null}var li=Ha(x,function(ni){ni.buttons===0||!nr(ni)?Xr(ni):Rr(ni)}),mi=Ha(x,Xr);x.state.selectingText=mi,Xt(ie.wrapper.ownerDocument,"mousemove",li),Xt(ie.wrapper.ownerDocument,"mouseup",mi)}function ff(x,z){var ne=z.anchor,te=z.head,ie=on(x.doc,ne.line);if(Dt(ne,te)==0&&ne.sticky==te.sticky)return z;var de=Et(ie);if(!de)return z;var ye=$t(de,ne.ch,ne.sticky),Be=de[ye];if(Be.from!=ne.ch&&Be.to!=ne.ch)return z;var Oe=ye+(Be.from==ne.ch==(Be.level!=1)?0:1);if(Oe==0||Oe==de.length)return z;var ze;if(te.line!=ne.line)ze=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var Ot=$t(de,te.ch,te.sticky),Gt=Ot-ye||(te.ch-ne.ch)*(Be.level==1?-1:1);Ot==Oe-1||Ot==Oe?ze=Gt<0:ze=Gt>0}var On=de[Oe+(ze?-1:0)],Sn=ze==(On.level==1),br=Sn?On.from:On.to,Rr=Sn?"after":"before";return ne.ch==br&&ne.sticky==Rr?z:new Ua(new gt(ne.line,br,Rr),te)}function Pc(x,z,ne,te){var ie,de;if(z.touches)ie=z.touches[0].clientX,de=z.touches[0].clientY;else try{ie=z.clientX,de=z.clientY}catch(On){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Vn(z);var ye=x.display,Be=ye.lineDiv.getBoundingClientRect();if(de>Be.bottom||!hn(x,ne))return ur(z);de-=Be.top-ye.viewOffset;for(var Oe=0;Oe<x.display.gutterSpecs.length;++Oe){var ze=ye.gutters.childNodes[Oe];if(ze&&ze.getBoundingClientRect().right>=ie){var Ot=Ar(x.doc,de),Gt=x.display.gutterSpecs[Oe];return et(x,ne,x,Ot,Gt.className,z),ur(z)}}}function ts(x,z){return Pc(x,z,"gutterClick",!0)}function vl(x,z){Ti(x.display,z)||hf(x,z)||It(x,z,"contextmenu")||Se||x.display.input.onContextMenu(z)}function hf(x,z){return hn(x,"gutterContextMenu")?Pc(x,z,"gutterContextMenu",!1):!1}function fd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bi(x)}var yl={toString:function(){return"CodeMirror.Init"}},pf={},Su={};function oh(x){var z=x.optionHandlers;function ne(te,ie,de,ye){x.defaults[te]=ie,de&&(z[te]=ye?function(Be,Oe,ze){ze!=yl&&de(Be,Oe,ze)}:de)}x.defineOption=ne,x.Init=yl,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,ru(te)},!0),ne("indentUnit",2,ru,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Nl(te),Bi(te),Vi(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var de=[],ye=te.doc.first;te.doc.iter(function(Oe){for(var ze=0;;){var Ot=Oe.text.indexOf(ie,ze);if(Ot==-1)break;ze=Ot+ie.length,de.push(gt(ye,Ot))}ye++});for(var Be=de.length-1;Be>=0;Be--)ec(te.doc,ie,de[Be],gt(de[Be].line,de[Be].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,de){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),de!=yl&&te.refresh()}),ne("specialCharPlaceholder",Fe,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",rt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ie){return te.getInputField().spellcheck=ie},!0),ne("autocorrect",!1,function(te,ie){return te.getInputField().autocorrect=ie},!0),ne("autocapitalize",!1,function(te,ie){return te.getInputField().autocapitalize=ie},!0),ne("rtlMoveVisually",!Yt),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){fd(te),$l(te)},!0),ne("keyMap","default",function(te,ie,de){var ye=ss(ie),Be=de!=yl&&ss(de);Be&&Be.detach&&Be.detach(te,ye),ye.attach&&ye.attach(te,Be||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,mf,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=eu(ie,te.options.lineNumbers),$l(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Po(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return xs(te)},!0),ne("scrollbarStyle","native",function(te){vc(te),xs(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ie){te.display.gutterSpecs=eu(te.options.gutters,ie),$l(te)},!0),ne("firstLineNumber",1,$l,!0),ne("lineNumberFormatter",function(te){return te},$l,!0),ne("showCursorWhenSelecting",!1,$o,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(_o(te),te.display.input.blur()),te.display.input.readOnlyChanged(ie)}),ne("screenReaderLabel",null,function(te,ie){ie=ie===""?null:ie,te.display.input.screenReaderLabelChanged(ie)}),ne("disableInput",!1,function(te,ie){ie||te.display.input.reset()},!0),ne("dragDrop",!0,sh),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,$o,!0),ne("singleCursorHeightPerLine",!0,$o,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Nl,!0),ne("addModeClass",!1,Nl,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ie){return te.doc.history.undoDepth=ie}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Nl,!0),ne("moveInputWithCursor",!0,function(te,ie){ie||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ie){return te.display.input.getField().tabIndex=ie||""}),ne("autofocus",null),ne("direction","ltr",function(te,ie){return te.doc.setDirection(ie)},!0),ne("phrases",null)}function sh(x,z,ne){var te=ne&&ne!=yl;if(!z!=!te){var ie=x.display.dragFunctions,de=z?Xt:Nn;de(x.display.scroller,"dragstart",ie.start),de(x.display.scroller,"dragenter",ie.enter),de(x.display.scroller,"dragover",ie.over),de(x.display.scroller,"dragleave",ie.leave),de(x.display.scroller,"drop",ie.drop)}}function mf(x){x.options.lineWrapping?(yn(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(je(x.display.wrapper,"CodeMirror-wrap"),$n(x)),lo(x),Vi(x),Bi(x),setTimeout(function(){return xs(x)},100)}function aa(x,z){var ne=this;if(!(this instanceof aa))return new aa(x,z);this.options=z=z?tr(z):{},tr(pf,z,!1);var te=z.value;typeof te=="string"?te=new Mo(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new aa.inputStyles[z.inputStyle](this),de=this.display=new Yd(x,te,ie,z);de.wrapper.CodeMirror=this,fd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vc(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new we,keySeq:null,specialChars:null},z.autofocus&&!rt&&de.input.focus(),ve&&ke<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),ad(),Ks(this),this.curOp.forceUpdate=!0,wc(this,te),z.autofocus&&!rt||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Ga(ne)},20):_o(this);for(var ye in Su)Su.hasOwnProperty(ye)&&Su[ye](this,z[ye],yl);bc(this),z.finishInit&&z.finishInit(this);for(var Be=0;Be<hd.length;++Be)hd[Be](this);Ts(this),Le&&z.lineWrapping&&getComputedStyle(de.lineDiv).textRendering=="optimizelegibility"&&(de.lineDiv.style.textRendering="auto")}aa.defaults=pf,aa.optionHandlers=Su;function lh(x){var z=x.display;Xt(z.scroller,"mousedown",Ha(x,Go)),ve&&ke<11?Xt(z.scroller,"dblclick",Ha(x,function(Oe){if(!It(x,Oe)){var ze=Bo(x,Oe);if(!(!ze||ts(x,Oe)||Ti(x.display,Oe))){Vn(Oe);var Ot=x.findWordAt(ze);Fl(x.doc,Ot.anchor,Ot.head)}}})):Xt(z.scroller,"dblclick",function(Oe){return It(x,Oe)||Vn(Oe)}),Xt(z.scroller,"contextmenu",function(Oe){return vl(x,Oe)}),Xt(z.input.getField(),"contextmenu",function(Oe){z.scroller.contains(Oe.target)||vl(x,Oe)});var ne,te={end:0};function ie(){z.activeTouch&&(ne=setTimeout(function(){return z.activeTouch=null},1e3),te=z.activeTouch,te.end=+new Date)}function de(Oe){if(Oe.touches.length!=1)return!1;var ze=Oe.touches[0];return ze.radiusX<=1&&ze.radiusY<=1}function ye(Oe,ze){if(ze.left==null)return!0;var Ot=ze.left-Oe.left,Gt=ze.top-Oe.top;return Ot*Ot+Gt*Gt>20*20}Xt(z.scroller,"touchstart",function(Oe){if(!It(x,Oe)&&!de(Oe)&&!ts(x,Oe)){z.input.ensurePolled(),clearTimeout(ne);var ze=+new Date;z.activeTouch={start:ze,moved:!1,prev:ze-te.end<=300?te:null},Oe.touches.length==1&&(z.activeTouch.left=Oe.touches[0].pageX,z.activeTouch.top=Oe.touches[0].pageY)}}),Xt(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),Xt(z.scroller,"touchend",function(Oe){var ze=z.activeTouch;if(ze&&!Ti(z,Oe)&&ze.left!=null&&!ze.moved&&new Date-ze.start<300){var Ot=x.coordsChar(z.activeTouch,"page"),Gt;!ze.prev||ye(ze,ze.prev)?Gt=new Ua(Ot,Ot):!ze.prev.prev||ye(ze,ze.prev.prev)?Gt=x.findWordAt(Ot):Gt=new Ua(gt(Ot.line,0),Un(x.doc,gt(Ot.line+1,0))),x.setSelection(Gt.anchor,Gt.head),x.focus(),Vn(Oe)}ie()}),Xt(z.scroller,"touchcancel",ie),Xt(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Pa(x,z.scroller.scrollTop),go(x,z.scroller.scrollLeft,!0),et(x,"scroll",x))}),Xt(z.scroller,"mousewheel",function(Oe){return Xu(x,Oe)}),Xt(z.scroller,"DOMMouseScroll",function(Oe){return Xu(x,Oe)}),Xt(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(Oe){It(x,Oe)||dr(Oe)},over:function(Oe){It(x,Oe)||(id(x,Oe),dr(Oe))},start:function(Oe){return th(x,Oe)},drop:Ha(x,eh),leave:function(Oe){It(x,Oe)||rc(x)}};var Be=z.input.getField();Xt(Be,"keyup",function(Oe){return cf.call(x,Oe)}),Xt(Be,"keydown",Ha(x,Tc)),Xt(Be,"keypress",Ha(x,uf)),Xt(Be,"focus",function(Oe){return Ga(x,Oe)}),Xt(Be,"blur",function(Oe){return _o(x,Oe)})}var hd=[];aa.defineInitHook=function(x){return hd.push(x)};function Ns(x,z,ne,te){var ie=x.doc,de;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?de=Ci(x,z).state:ne="prev");var ye=x.options.tabSize,Be=on(ie,z),Oe=Qe(Be.text,null,ye);Be.stateAfter&&(Be.stateAfter=null);var ze=Be.text.match(/^\s*/)[0],Ot;if(!te&&!/\S/.test(Be.text))Ot=0,ne="not";else if(ne=="smart"&&(Ot=ie.mode.indent(de,Be.text.slice(ze.length),Be.text),Ot==_t||Ot>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?Ot=Qe(on(ie,z-1).text,null,ye):Ot=0:ne=="add"?Ot=Oe+x.options.indentUnit:ne=="subtract"?Ot=Oe-x.options.indentUnit:typeof ne=="number"&&(Ot=Oe+ne),Ot=Math.max(0,Ot);var Gt="",On=0;if(x.options.indentWithTabs)for(var Sn=Math.floor(Ot/ye);Sn;--Sn)On+=ye,Gt+=" ";if(On<Ot&&(Gt+=un(Ot-On)),Gt!=ze)return ec(ie,Gt,gt(z,0),gt(z,ze.length),"+input"),Be.stateAfter=null,!0;for(var br=0;br<ie.sel.ranges.length;br++){var Rr=ie.sel.ranges[br];if(Rr.head.line==z&&Rr.head.ch<ze.length){var Xr=gt(z,ze.length);ws(ie,br,new Ua(Xr,Xr));break}}}var Rs=null;function bl(x){Rs=x}function pd(x,z,ne,te,ie){var de=x.doc;x.display.shift=!1,te||(te=de.sel);var ye=+new Date-200,Be=ie=="paste"||x.state.pasteIncoming>ye,Oe=Ct(z),ze=null;if(Be&&te.ranges.length>1)if(Rs&&Rs.text.join(`
`)==z){if(te.ranges.length%Rs.text.length==0){ze=[];for(var Ot=0;Ot<Rs.text.length;Ot++)ze.push(de.splitLines(Rs.text[Ot]))}}else Oe.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(ze=xn(Oe,function(li){return[li]}));for(var Gt=x.curOp.updateInput,On=te.ranges.length-1;On>=0;On--){var Sn=te.ranges[On],br=Sn.from(),Rr=Sn.to();Sn.empty()&&(ne&&ne>0?br=gt(br.line,br.ch-ne):x.state.overwrite&&!Be?Rr=gt(Rr.line,Math.min(on(de,Rr.line).text.length,Rr.ch+nn(Oe).length)):Be&&Rs&&Rs.lineWise&&Rs.text.join(`
`)==Oe.join(`
`)&&(br=Rr=gt(br.line,0)));var Xr={from:br,to:Rr,text:ze?ze[On%ze.length]:Oe,origin:ie||(Be?"paste":x.state.cutIncoming>ye?"cut":"+input")};dl(x.doc,Xr),mn(x,"inputRead",x,Xr)}z&&!Be&&gd(x,z),Ho(x),x.curOp.updateInput<2&&(x.curOp.updateInput=Gt),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function md(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&ga(z,function(){return pd(z,ne,0,null,"paste")}),!0}function gd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ie=ne.ranges[te];if(!(ie.head.ch>100||te&&ne.ranges[te-1].head.line==ie.head.line)){var de=x.getModeAt(ie.head),ye=!1;if(de.electricChars){for(var Be=0;Be<de.electricChars.length;Be++)if(z.indexOf(de.electricChars.charAt(Be))>-1){ye=Ns(x,ie.head.line,"smart");break}}else de.electricInput&&de.electricInput.test(on(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(ye=Ns(x,ie.head.line,"smart"));ye&&mn(x,"electricInput",x,ie.head.line)}}}function lc(x){for(var z=[],ne=[],te=0;te<x.doc.sel.ranges.length;te++){var ie=x.doc.sel.ranges[te].head.line,de={anchor:gt(ie,0),head:gt(ie+1,0)};ne.push(de),z.push(x.getRange(de.anchor,de.head))}return{text:z,ranges:ne}}function gf(x,z,ne,te){x.setAttribute("autocorrect",ne?"":"off"),x.setAttribute("autocapitalize",te?"":"off"),x.setAttribute("spellcheck",!!z)}function vd(){var x=ht("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=ht("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Le?x.style.width="1000px":x.setAttribute("wrap","off"),pt&&(x.style.border="1px solid black"),gf(x),z}function yd(x){var z=x.optionHandlers,ne=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ie){var de=this.options,ye=de[te];de[te]==ie&&te!="mode"||(de[te]=ie,z.hasOwnProperty(te)&&Ha(this,z[te])(this,ie,ye),et(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ie){this.state.keyMaps[ie?"push":"unshift"](ss(te))},removeKeyMap:function(te){for(var ie=this.state.keyMaps,de=0;de<ie.length;++de)if(ie[de]==te||ie[de].name==te)return ie.splice(de,1),!0},addOverlay:Fa(function(te,ie){var de=te.token?te:x.getMode(this.options,te);if(de.startState)throw new Error("Overlays may not be stateful.");Pn(this.state.overlays,{mode:de,modeSpec:te,opaque:ie&&ie.opaque,priority:ie&&ie.priority||0},function(ye){return ye.priority}),this.state.modeGen++,Vi(this)}),removeOverlay:Fa(function(te){for(var ie=this.state.overlays,de=0;de<ie.length;++de){var ye=ie[de].modeSpec;if(ye==te||typeof te=="string"&&ye.name==te){ie.splice(de,1),this.state.modeGen++,Vi(this);return}}}),indentLine:Fa(function(te,ie,de){typeof ie!="string"&&typeof ie!="number"&&(ie==null?ie=this.options.smartIndent?"smart":"prev":ie=ie?"add":"subtract"),Lr(this.doc,te)&&Ns(this,te,ie,de)}),indentSelection:Fa(function(te){for(var ie=this.doc.sel.ranges,de=-1,ye=0;ye<ie.length;ye++){var Be=ie[ye];if(Be.empty())Be.head.line>de&&(Ns(this,Be.head.line,te,!0),de=Be.head.line,ye==this.doc.sel.primIndex&&Ho(this));else{var Oe=Be.from(),ze=Be.to(),Ot=Math.max(de,Oe.line);de=Math.min(this.lastLine(),ze.line-(ze.ch?0:1))+1;for(var Gt=Ot;Gt<de;++Gt)Ns(this,Gt,te);var On=this.doc.sel.ranges;Oe.ch==0&&ie.length==On.length&&On[ye].from().ch>0&&ws(this.doc,ye,new Ua(Oe,On[ye].to()),$e)}}}),getTokenAt:function(te,ie){return $i(this,te,ie)},getLineTokens:function(te,ie){return $i(this,gt(te),ie,!0)},getTokenTypeAt:function(te){te=Un(this.doc,te);var ie=Ni(this,on(this.doc,te.line)),de=0,ye=(ie.length-1)/2,Be=te.ch,Oe;if(Be==0)Oe=ie[2];else for(;;){var ze=de+ye>>1;if((ze?ie[ze*2-1]:0)>=Be)ye=ze;else if(ie[ze*2+1]<Be)de=ze+1;else{Oe=ie[ze*2+2];break}}var Ot=Oe?Oe.indexOf("overlay "):-1;return Ot<0?Oe:Ot==0?null:Oe.slice(0,Ot-1)},getModeAt:function(te){var ie=this.doc.mode;return ie.innerMode?x.innerMode(ie,this.getTokenAt(te).state).mode:ie},getHelper:function(te,ie){return this.getHelpers(te,ie)[0]},getHelpers:function(te,ie){var de=[];if(!ne.hasOwnProperty(ie))return de;var ye=ne[ie],Be=this.getModeAt(te);if(typeof Be[ie]=="string")ye[Be[ie]]&&de.push(ye[Be[ie]]);else if(Be[ie])for(var Oe=0;Oe<Be[ie].length;Oe++){var ze=ye[Be[ie][Oe]];ze&&de.push(ze)}else Be.helperType&&ye[Be.helperType]?de.push(ye[Be.helperType]):ye[Be.name]&&de.push(ye[Be.name]);for(var Ot=0;Ot<ye._global.length;Ot++){var Gt=ye._global[Ot];Gt.pred(Be,this)&&At(de,Gt.val)==-1&&de.push(Gt.val)}return de},getStateAfter:function(te,ie){var de=this.doc;return te=In(de,te==null?de.first+de.size-1:te),Ci(this,te+1,ie).state},cursorCoords:function(te,ie){var de,ye=this.doc.sel.primary();return te==null?de=ye.head:typeof te=="object"?de=Un(this.doc,te):de=te?ye.from():ye.to(),ha(this,de,ie||"page")},charCoords:function(te,ie){return Va(this,Un(this.doc,te),ie||"page")},coordsChar:function(te,ie){return te=La(this,te,ie||"page"),Ya(this,te.left,te.top)},lineAtHeight:function(te,ie){return te=La(this,{top:te,left:0},ie||"page").top,Ar(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ie,de){var ye=!1,Be;if(typeof te=="number"){var Oe=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>Oe&&(te=Oe,ye=!0),Be=on(this.doc,te)}else Be=te;return Sa(this,Be,{top:0,left:0},ie||"page",de||ye).top+(ye?this.doc.height-Wn(Be):0)},defaultTextHeight:function(){return Ka(this.display)},defaultCharWidth:function(){return io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,de,ye,Be){var Oe=this.display;te=ha(this,Un(this.doc,te));var ze=te.bottom,Ot=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),Oe.sizer.appendChild(ie),ye=="over")ze=te.top;else if(ye=="above"||ye=="near"){var Gt=Math.max(Oe.wrapper.clientHeight,this.doc.height),On=Math.max(Oe.sizer.clientWidth,Oe.lineSpace.clientWidth);(ye=="above"||te.bottom+ie.offsetHeight>Gt)&&te.top>ie.offsetHeight?ze=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=Gt&&(ze=te.bottom),Ot+ie.offsetWidth>On&&(Ot=On-ie.offsetWidth)}ie.style.top=ze+"px",ie.style.left=ie.style.right="",Be=="right"?(Ot=Oe.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(Be=="left"?Ot=0:Be=="middle"&&(Ot=(Oe.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=Ot+"px"),de&&ul(this,{left:Ot,top:ze,right:Ot+ie.offsetWidth,bottom:ze+ie.offsetHeight})},triggerOnKeyDown:Fa(Tc),triggerOnKeyPress:Fa(uf),triggerOnKeyUp:cf,triggerOnMouseDown:Fa(Go),execCommand:function(te){if(ac.hasOwnProperty(te))return ac[te].call(null,this)},triggerElectric:Fa(function(te){gd(this,te)}),findPosH:function(te,ie,de,ye){var Be=1;ie<0&&(Be=-1,ie=-ie);for(var Oe=Un(this.doc,te),ze=0;ze<ie&&(Oe=Cu(this.doc,Oe,Be,de,ye),!Oe.hitSide);++ze);return Oe},moveH:Fa(function(te,ie){var de=this;this.extendSelectionsBy(function(ye){return de.display.shift||de.doc.extend||ye.empty()?Cu(de.doc,ye.head,te,ie,de.options.rtlMoveVisually):te<0?ye.from():ye.to()},qt)}),deleteH:Fa(function(te,ie){var de=this.doc.sel,ye=this.doc;de.somethingSelected()?ye.replaceSelection("",null,"+delete"):As(this,function(Be){var Oe=Cu(ye,Be.head,te,ie,!1);return te<0?{from:Oe,to:Be.head}:{from:Be.head,to:Oe}})}),findPosV:function(te,ie,de,ye){var Be=1,Oe=ye;ie<0&&(Be=-1,ie=-ie);for(var ze=Un(this.doc,te),Ot=0;Ot<ie;++Ot){var Gt=ha(this,ze,"div");if(Oe==null?Oe=Gt.left:Gt.left=Oe,ze=vf(this,Gt,Be,de),ze.hitSide)break}return ze},moveV:Fa(function(te,ie){var de=this,ye=this.doc,Be=[],Oe=!this.display.shift&&!ye.extend&&ye.sel.somethingSelected();if(ye.extendSelectionsBy(function(Ot){if(Oe)return te<0?Ot.from():Ot.to();var Gt=ha(de,Ot.head,"div");Ot.goalColumn!=null&&(Gt.left=Ot.goalColumn),Be.push(Gt.left);var On=vf(de,Gt,te,ie);return ie=="page"&&Ot==ye.sel.primary()&&ms(de,Va(de,On,"div").top-Gt.top),On},qt),Be.length)for(var ze=0;ze<ye.sel.ranges.length;ze++)ye.sel.ranges[ze].goalColumn=Be[ze]}),findWordAt:function(te){var ie=this.doc,de=on(ie,te.line).text,ye=te.ch,Be=te.ch;if(de){var Oe=this.getHelper(te,"wordChars");(te.sticky=="before"||Be==de.length)&&ye?--ye:++Be;for(var ze=de.charAt(ye),Ot=fe(ze,Oe)?function(Gt){return fe(Gt,Oe)}:/\s/.test(ze)?function(Gt){return/\s/.test(Gt)}:function(Gt){return!/\s/.test(Gt)&&!fe(Gt)};ye>0&&Ot(de.charAt(ye-1));)--ye;for(;Be<de.length&&Ot(de.charAt(Be));)++Be}return new Ua(gt(te.line,ye),gt(te.line,Be))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?yn(this.display.cursorDiv,"CodeMirror-overwrite"):je(this.display.cursorDiv,"CodeMirror-overwrite"),et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Rt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Fa(function(te,ie){Ds(this,te,ie)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-ai(this)-this.display.barHeight,width:te.scrollWidth-ai(this)-this.display.barWidth,clientHeight:_i(this),clientWidth:vi(this)}},scrollIntoView:Fa(function(te,ie){te==null?(te={from:this.doc.sel.primary().head,to:null},ie==null&&(ie=this.options.cursorScrollMargin)):typeof te=="number"?te={from:gt(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ie||0,te.from.line!=null?Is(this,te):oo(this,te.from,te.to,te.margin)}),setSize:Fa(function(te,ie){var de=this,ye=function(Oe){return typeof Oe=="number"||/^\d+$/.test(String(Oe))?Oe+"px":Oe};te!=null&&(this.display.wrapper.style.width=ye(te)),ie!=null&&(this.display.wrapper.style.height=ye(ie)),this.options.lineWrapping&&oa(this);var Be=this.display.viewFrom;this.doc.iter(Be,this.display.viewTo,function(Oe){if(Oe.widgets){for(var ze=0;ze<Oe.widgets.length;ze++)if(Oe.widgets[ze].noHScroll){Oa(de,Be,"widget");break}}++Be}),this.curOp.forceUpdate=!0,et(this,"refresh",this)}),operation:function(te){return ga(this,te)},startOperation:function(){return Ks(this)},endOperation:function(){return Ts(this)},refresh:Fa(function(){var te=this.display.cachedTextHeight;Vi(this),this.curOp.forceUpdate=!0,Bi(this),Ds(this,this.doc.scrollLeft,this.doc.scrollTop),qc(this.display),(te==null||Math.abs(te-Ka(this.display))>.5||this.options.lineWrapping)&&lo(this),et(this,"refresh",this)}),swapDoc:Fa(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),wc(this,te),Bi(this),this.display.input.reset(),Ds(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,mn(this,"swapDoc",this,ie),ie}),phrase:function(te){var ie=this.options.phrases;return ie&&Object.prototype.hasOwnProperty.call(ie,te)?ie[te]:te},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},An(x),x.registerHelper=function(te,ie,de){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=de},x.registerGlobalHelper=function(te,ie,de,ye){x.registerHelper(te,ie,ye),ne[te]._global.push({pred:de,val:ye})}}function Cu(x,z,ne,te,ie){var de=z,ye=ne,Be=on(x,z.line),Oe=ie&&x.direction=="rtl"?-ne:ne;function ze(){var mi=z.line+Oe;return mi<x.first||mi>=x.first+x.size?!1:(z=new gt(mi,z.ch,z.sticky),Be=on(x,mi))}function Ot(mi){var ni;if(te=="codepoint"){var gi=Be.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(gi)?ni=null:ni=new gt(z.line,Math.max(0,Math.min(Be.text.length,z.ch+ne*(gi>=55296&&gi<56320?2:1))),-ne)}else ie?ni=Zs(x.cm,Be,z,ne):ni=js(Be,z,ne);if(ni==null)if(!mi&&ze())z=Kl(ie,x.cm,Be,z.line,Oe);else return!1;else z=ni;return!0}if(te=="char"||te=="codepoint")Ot();else if(te=="column")Ot(!0);else if(te=="word"||te=="group")for(var Gt=null,On=te=="group",Sn=x.cm&&x.cm.getHelper(z,"wordChars"),br=!0;!(ne<0&&!Ot(!br));br=!1){var Rr=Be.text.charAt(z.ch)||`
`,Xr=fe(Rr,Sn)?"w":On&&Rr==`
`?"n":!On||/\s/.test(Rr)?null:"p";if(On&&!br&&!Xr&&(Xr="s"),Gt&&Gt!=Xr){ne<0&&(ne=1,Ot(),z.sticky="after");break}if(Xr&&(Gt=Xr),ne>0&&!Ot(!br))break}var li=hu(x,z,de,ye,!0);return En(de,li)&&(li.hitSide=!0),li}function vf(x,z,ne,te){var ie=x.doc,de=z.left,ye;if(te=="page"){var Be=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Oe=Math.max(Be-.5*Ka(x.display),3);ye=(ne>0?z.bottom:z.top)+ne*Oe}else te=="line"&&(ye=ne>0?z.bottom+3:z.top-3);for(var ze;ze=Ya(x,de,ye),!!ze.outside;){if(ne<0?ye<=0:ye>=ie.height){ze.hitSide=!0;break}ye+=ne*5}return ze}var Qa=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new we,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Qa.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;gf(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function de(Be){for(var Oe=Be.target;Oe;Oe=Oe.parentNode){if(Oe==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Oe.className))break}return!1}Xt(ie,"paste",function(Be){!de(Be)||It(te,Be)||md(Be,te)||ke<=11&&setTimeout(Ha(te,function(){return z.updateFromDOM()}),20)}),Xt(ie,"compositionstart",function(Be){z.composing={data:Be.data,done:!1}}),Xt(ie,"compositionupdate",function(Be){z.composing||(z.composing={data:Be.data,done:!1})}),Xt(ie,"compositionend",function(Be){z.composing&&(Be.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),Xt(ie,"touchstart",function(){return ne.forceCompositionEnd()}),Xt(ie,"input",function(){z.composing||z.readFromDOMSoon()});function ye(Be){if(!(!de(Be)||It(te,Be))){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()}),Be.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var Oe=lc(te);bl({lineWise:!0,text:Oe.text}),Be.type=="cut"&&te.operation(function(){te.setSelections(Oe.ranges,0,$e),te.replaceSelection("",null,"cut")})}else return;if(Be.clipboardData){Be.clipboardData.clearData();var ze=Rs.text.join(`
`);if(Be.clipboardData.setData("Text",ze),Be.clipboardData.getData("Text")==ze){Be.preventDefault();return}}var Ot=vd(),Gt=Ot.firstChild;te.display.lineSpace.insertBefore(Ot,te.display.lineSpace.firstChild),Gt.value=Rs.text.join(`
`);var On=document.activeElement;Hn(Gt),setTimeout(function(){te.display.lineSpace.removeChild(Ot),On.focus(),On==ie&&ne.showPrimarySelection()},50)}}Xt(ie,"copy",ye),Xt(ie,"cut",ye)},Qa.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Qa.prototype.prepareSelection=function(){var x=ps(this.cm,!1);return x.focus=document.activeElement==this.div,x},Qa.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Qa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qa.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ie=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ie.line<z.display.viewFrom){x.removeAllRanges();return}var de=Eu(z,x.anchorNode,x.anchorOffset),ye=Eu(z,x.focusNode,x.focusOffset);if(!(de&&!de.bad&&ye&&!ye.bad&&Dt(Dn(de,ye),te)==0&&Dt(Cn(de,ye),ie)==0)){var Be=z.display.view,Oe=te.line>=z.display.viewFrom&&yf(z,te)||{node:Be[0].measure.map[2],offset:0},ze=ie.line<z.display.viewTo&&yf(z,ie);if(!ze){var Ot=Be[Be.length-1].measure,Gt=Ot.maps?Ot.maps[Ot.maps.length-1]:Ot.map;ze={node:Gt[Gt.length-1],offset:Gt[Gt.length-2]-Gt[Gt.length-3]}}if(!Oe||!ze){x.removeAllRanges();return}var On=x.rangeCount&&x.getRangeAt(0),Sn;try{Sn=tt(Oe.node,Oe.offset,ze.offset,ze.node)}catch(br){}Sn&&(!ae&&z.state.focused?(x.collapse(Oe.node,Oe.offset),Sn.collapsed||(x.removeAllRanges(),x.addRange(Sn))):(x.removeAllRanges(),x.addRange(Sn)),On&&x.anchorNode==null?x.addRange(On):ae&&this.startGracePeriod()),this.rememberSelection()}},Qa.prototype.startGracePeriod=function(){var x=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){x.gracePeriod=!1,x.selectionChanged()&&x.cm.operation(function(){return x.cm.curOp.selectionChanged=!0})},20)},Qa.prototype.showMultipleSelections=function(x){Mt(this.cm.display.cursorDiv,x.cursors),Mt(this.cm.display.selectionDiv,x.selection)},Qa.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},Qa.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return Jt(this.div,z)},Qa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Qa.prototype.blur=function(){this.div.blur()},Qa.prototype.getField=function(){return this.div},Qa.prototype.supportsTouch=function(){return!0},Qa.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():ga(this.cm,function(){return x.cm.curOp.selectionChanged=!0});function z(){x.cm.state.focused&&(x.pollSelection(),x.polling.set(x.cm.options.pollInterval,z))}this.polling.set(this.cm.options.pollInterval,z)},Qa.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},Qa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(ct&&me&&this.cm.display.gutterSpecs.length&&ch(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=Eu(z,x.anchorNode,x.anchorOffset),te=Eu(z,x.focusNode,x.focusOffset);ne&&te&&ga(z,function(){Do(z.doc,Os(ne,te),$e),(ne.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},Qa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,ne=x.doc.sel.primary(),te=ne.from(),ie=ne.to();if(te.ch==0&&te.line>x.firstLine()&&(te=gt(te.line-1,on(x.doc,te.line-1).length)),ie.ch==on(x.doc,ie.line).text.length&&ie.line<x.lastLine()&&(ie=gt(ie.line+1,0)),te.line<z.viewFrom||ie.line>z.viewTo-1)return!1;var de,ye,Be;te.line==z.viewFrom||(de=ia(x,te.line))==0?(ye=or(z.view[0].line),Be=z.view[0].node):(ye=or(z.view[de].line),Be=z.view[de-1].node.nextSibling);var Oe=ia(x,ie.line),ze,Ot;if(Oe==z.view.length-1?(ze=z.viewTo-1,Ot=z.lineDiv.lastChild):(ze=or(z.view[Oe+1].line)-1,Ot=z.view[Oe+1].node.previousSibling),!Be)return!1;for(var Gt=x.doc.splitLines(uh(x,Be,Ot,ye,ze)),On=Kn(x.doc,gt(ye,0),gt(ze,on(x.doc,ze).text.length));Gt.length>1&&On.length>1;)if(nn(Gt)==nn(On))Gt.pop(),On.pop(),ze--;else if(Gt[0]==On[0])Gt.shift(),On.shift(),ye++;else break;for(var Sn=0,br=0,Rr=Gt[0],Xr=On[0],li=Math.min(Rr.length,Xr.length);Sn<li&&Rr.charCodeAt(Sn)==Xr.charCodeAt(Sn);)++Sn;for(var mi=nn(Gt),ni=nn(On),gi=Math.min(mi.length-(Gt.length==1?Sn:0),ni.length-(On.length==1?Sn:0));br<gi&&mi.charCodeAt(mi.length-br-1)==ni.charCodeAt(ni.length-br-1);)++br;if(Gt.length==1&&On.length==1&&ye==te.line)for(;Sn&&Sn>te.ch&&mi.charCodeAt(mi.length-br-1)==ni.charCodeAt(ni.length-br-1);)Sn--,br++;Gt[Gt.length-1]=mi.slice(0,mi.length-br).replace(/^\u200b+/,""),Gt[0]=Gt[0].slice(Sn).replace(/\u200b+$/,"");var Gi=gt(ye,Sn),qi=gt(ze,On.length?nn(On).length-br:0);if(Gt.length>1||Gt[0]||Dt(Gi,qi))return ec(x.doc,Gt,Gi,qi,"+input"),!0},Qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qa.prototype.reset=function(){this.forceCompositionEnd()},Qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qa.prototype.readFromDOMSoon=function(){var x=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(x.readDOMTimeout=null,x.composing)if(x.composing.done)x.composing=null;else return;x.updateFromDOM()},80))},Qa.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&ga(this.cm,function(){return Vi(x.cm)})},Qa.prototype.setUneditable=function(x){x.contentEditable="false"},Qa.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||Ha(this.cm,pd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Qa.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Qa.prototype.onContextMenu=function(){},Qa.prototype.resetPosition=function(){},Qa.prototype.needsContentAttribute=!0;function yf(x,z){var ne=ra(x,z.line);if(!ne||ne.hidden)return null;var te=on(x.doc,z.line),ie=Ea(ne,te,z.line),de=Et(te,x.doc.direction),ye="left";if(de){var Be=$t(de,z.ch);ye=Be%2?"right":"left"}var Oe=Ri(ie.map,z.ch,ye);return Oe.offset=Oe.collapse=="right"?Oe.end:Oe.start,Oe}function ch(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function cc(x,z){return z&&(x.bad=!0),x}function uh(x,z,ne,te,ie){var de="",ye=!1,Be=x.doc.lineSeparator(),Oe=!1;function ze(Sn){return function(br){return br.id==Sn}}function Ot(){ye&&(de+=Be,Oe&&(de+=Be),ye=Oe=!1)}function Gt(Sn){Sn&&(Ot(),de+=Sn)}function On(Sn){if(Sn.nodeType==1){var br=Sn.getAttribute("cm-text");if(br){Gt(br);return}var Rr=Sn.getAttribute("cm-marker"),Xr;if(Rr){var li=x.findMarks(gt(te,0),gt(ie+1,0),ze(+Rr));li.length&&(Xr=li[0].find(0))&&Gt(Kn(x.doc,Xr.from,Xr.to).join(Be));return}if(Sn.getAttribute("contenteditable")=="false")return;var mi=/^(pre|div|p|li|table|br)$/i.test(Sn.nodeName);if(!/^br$/i.test(Sn.nodeName)&&Sn.textContent.length==0)return;mi&&Ot();for(var ni=0;ni<Sn.childNodes.length;ni++)On(Sn.childNodes[ni]);/^(pre|p)$/i.test(Sn.nodeName)&&(Oe=!0),mi&&(ye=!0)}else Sn.nodeType==3&&Gt(Sn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;On(z),z!=ne;)z=z.nextSibling,Oe=!1;return de}function Eu(x,z,ne){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[ne],!te)return cc(x.clipPos(gt(x.display.viewTo-1)),!0);z=null,ne=0}else for(te=z;;te=te.parentNode){if(!te||te==x.display.lineDiv)return null;if(te.parentNode&&te.parentNode==x.display.lineDiv)break}for(var ie=0;ie<x.display.view.length;ie++){var de=x.display.view[ie];if(de.node==te)return dh(de,z,ne)}}function dh(x,z,ne){var te=x.text.firstChild,ie=!1;if(!z||!Jt(te,z))return cc(gt(or(x.line),0),!0);if(z==te&&(ie=!0,z=te.childNodes[ne],ne=0,!z)){var de=x.rest?nn(x.rest):x.line;return cc(gt(or(de),de.text.length),ie)}var ye=z.nodeType==3?z:null,Be=z;for(!ye&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(ye=z.firstChild,ne&&(ne=ye.nodeValue.length));Be.parentNode!=te;)Be=Be.parentNode;var Oe=x.measure,ze=Oe.maps;function Ot(Xr,li,mi){for(var ni=-1;ni<(ze?ze.length:0);ni++)for(var gi=ni<0?Oe.map:ze[ni],Gi=0;Gi<gi.length;Gi+=3){var qi=gi[Gi+2];if(qi==Xr||qi==li){var xa=or(ni<0?x.line:x.rest[ni]),to=gi[Gi]+mi;return(mi<0||qi!=Xr)&&(to=gi[Gi+(mi?1:0)]),gt(xa,to)}}}var Gt=Ot(ye,Be,ne);if(Gt)return cc(Gt,ie);for(var On=Be.nextSibling,Sn=ye?ye.nodeValue.length-ne:0;On;On=On.nextSibling){if(Gt=Ot(On,On.firstChild,0),Gt)return cc(gt(Gt.line,Gt.ch-Sn),ie);Sn+=On.textContent.length}for(var br=Be.previousSibling,Rr=ne;br;br=br.previousSibling){if(Gt=Ot(br,br.firstChild,-1),Gt)return cc(gt(Gt.line,Gt.ch+Rr),ie);Rr+=br.textContent.length}}var eo=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new we,this.hasSelection=!1,this.composing=null};eo.prototype.init=function(x){var z=this,ne=this,te=this.cm;this.createField(x);var ie=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),pt&&(ie.style.width="0px"),Xt(ie,"input",function(){ve&&ke>=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),Xt(ie,"paste",function(ye){It(te,ye)||md(ye,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function de(ye){if(!It(te,ye)){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Be=lc(te);bl({lineWise:!0,text:Be.text}),ye.type=="cut"?te.setSelections(Be.ranges,null,$e):(ne.prevInput="",ie.value=Be.text.join(`
`),Hn(ie))}else return;ye.type=="cut"&&(te.state.cutIncoming=+new Date)}}Xt(ie,"cut",de),Xt(ie,"copy",de),Xt(x.scroller,"paste",function(ye){if(!(Ti(x,ye)||It(te,ye))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Be=new Event("paste");Be.clipboardData=ye.clipboardData,ie.dispatchEvent(Be)}}),Xt(x.lineSpace,"selectstart",function(ye){Ti(x,ye)||Vn(ye)}),Xt(ie,"compositionstart",function(){var ye=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:ye,range:te.markText(ye,te.getCursor("to"),{className:"CodeMirror-composing"})}}),Xt(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},eo.prototype.createField=function(x){this.wrapper=vd(),this.textarea=this.wrapper.firstChild},eo.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},eo.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=ps(x);if(x.options.moveInputWithCursor){var ie=ha(x,ne.sel.primary().head,"div"),de=z.wrapper.getBoundingClientRect(),ye=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+ye.top-de.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+ye.left-de.left))}return te},eo.prototype.showSelection=function(x){var z=this.cm,ne=z.display;Mt(ne.cursorDiv,x.cursors),Mt(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},eo.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ne=z.getSelection();this.textarea.value=ne,z.state.focused&&Hn(this.textarea),ve&&ke>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",ve&&ke>=9&&(this.hasSelection=null))}},eo.prototype.getField=function(){return this.textarea},eo.prototype.supportsTouch=function(){return!1},eo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!rt||Rt()!=this.textarea))try{this.textarea.focus()}catch(x){}},eo.prototype.blur=function(){this.textarea.blur()},eo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},eo.prototype.receivedFocus=function(){this.slowPoll()},eo.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},eo.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function ne(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,ne)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ne)},eo.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||wn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ie=ne.value;if(ie==te&&!z.somethingSelected())return!1;if(ve&&ke>=9&&this.hasSelection===ie||Ee&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var de=ie.charCodeAt(0);if(de==8203&&!te&&(te="\u200B"),de==8666)return this.reset(),this.cm.execCommand("undo")}for(var ye=0,Be=Math.min(te.length,ie.length);ye<Be&&te.charCodeAt(ye)==ie.charCodeAt(ye);)++ye;return ga(z,function(){pd(z,ie.slice(ye),te.length-ye,null,x.composing?"*compose":null),ie.length>1e3||ie.indexOf(`
`)>-1?ne.value=x.prevInput="":x.prevInput=ie,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},eo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},eo.prototype.onKeyPress=function(){ve&&ke>=9&&(this.hasSelection=null),this.fastPoll()},eo.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var de=Bo(ne,x),ye=te.scroller.scrollTop;if(!de||Ie)return;var Be=ne.options.resetSelectionOnContextMenu;Be&&ne.doc.sel.contains(de)==-1&&Ha(ne,Do)(ne.doc,Os(de),$e);var Oe=ie.style.cssText,ze=z.wrapper.style.cssText,Ot=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(x.clientY-Ot.top-5)+"px; left: "+(x.clientX-Ot.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 Gt;Le&&(Gt=window.scrollY),te.input.focus(),Le&&window.scrollTo(null,Gt),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=Sn,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function On(){if(ie.selectionStart!=null){var Rr=ne.somethingSelected(),Xr="\u200B"+(Rr?ie.value:"");ie.value="\u21DA",ie.value=Xr,z.prevInput=Rr?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=Xr.length,te.selForContextMenu=ne.doc.sel}}function Sn(){if(z.contextMenuPending==Sn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=ze,ie.style.cssText=Oe,ve&&ke<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=ye),ie.selectionStart!=null)){(!ve||ve&&ke<9)&&On();var Rr=0,Xr=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?Ha(ne,td)(ne):Rr++<10?te.detectingSelectAll=setTimeout(Xr,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(Xr,200)}}if(ve&&ke>=9&&On(),Se){dr(x);var br=function(){Nn(window,"mouseup",br),setTimeout(Sn,20)};Xt(window,"mouseup",br)}else setTimeout(Sn,50)},eo.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},eo.prototype.setUneditable=function(){},eo.prototype.needsContentAttribute=!1;function Wl(x,z){if(z=z?tr(z):{},z.value=x.value,!z.tabindex&&x.tabIndex&&(z.tabindex=x.tabIndex),!z.placeholder&&x.placeholder&&(z.placeholder=x.placeholder),z.autofocus==null){var ne=Rt();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Be.getValue()}var ie;if(x.form&&(Xt(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var de=x.form;ie=de.submit;try{var ye=de.submit=function(){te(),de.submit=ie,de.submit(),de.submit=ye}}catch(Oe){}}z.finishInit=function(Oe){Oe.save=te,Oe.getTextArea=function(){return x},Oe.toTextArea=function(){Oe.toTextArea=isNaN,te(),x.parentNode.removeChild(Oe.getWrapperElement()),x.style.display="",x.form&&(Nn(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var Be=aa(function(Oe){return x.parentNode.insertBefore(Oe,x.nextSibling)},z);return Be}function uc(x){x.off=Nn,x.on=Xt,x.wheelEventPixels=Yu,x.Doc=Mo,x.splitLines=Ct,x.countColumn=Qe,x.findColumn=Xn,x.isWordChar=he,x.Pass=_t,x.signal=et,x.Line=rr,x.changeEnd=qs,x.scrollbarModel=Ql,x.Pos=gt,x.cmpPos=Dt,x.modes=lr,x.mimeModes=Gn,x.resolveMode=mt,x.getMode=Bt,x.modeExtensions=rn,x.extendMode=Ze,x.copyState=St,x.startState=Nt,x.innerMode=Vt,x.commands=ac,x.keyMap=$a,x.keyName=Hl,x.isModifierKey=Ic,x.lookupKey=rl,x.normalizeKeyMap=od,x.StringStream=cn,x.SharedTextMarker=ba,x.TextMarker=hl,x.LineWidget=nc,x.e_preventDefault=Vn,x.e_stopPropagation=mr,x.e_stop=dr,x.addClass=yn,x.contains=Jt,x.rmClass=je,x.keyNames=Ps}oh(aa),yd(aa);var ol="iter insert remove copy getEditor constructor".split(" ");for(var ks in Mo.prototype)Mo.prototype.hasOwnProperty(ks)&&At(ol,ks)<0&&(aa.prototype[ks]=function(x){return function(){return x.apply(this.doc,arguments)}}(Mo.prototype[ks]));return An(Mo),aa.inputStyles={textarea:eo,contenteditable:Qa},aa.defineMode=function(x){!aa.defaults.mode&&x!="null"&&(aa.defaults.mode=x),jn.apply(this,arguments)},aa.defineMIME=nt,aa.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),aa.defineMIME("text/plain","null"),aa.defineExtension=function(x,z){aa.prototype[x]=z},aa.defineDocExtension=function(x,z){Mo.prototype[x]=z},aa.fromTextArea=Wl,uc(aa),aa.version="5.58.2",aa})},49047:function(dn,en,se){(function(ae){ae(se(4631),se(29589),se(52539))})(function(ae){"use strict";ae.defineMode("markdown",function(Pe,Re){var qe=ae.getMode(Pe,"text/html"),ve=qe.name=="null";function ke(Qe){if(ae.findModeByName){var we=ae.findModeByName(Qe);we&&(Qe=we.mime||we.mimes[0])}var At=ae.getMode(Pe,Qe);return At.name=="null"?null:At}Re.highlightFormatting===void 0&&(Re.highlightFormatting=!1),Re.maxBlockquoteDepth===void 0&&(Re.maxBlockquoteDepth=0),Re.taskLists===void 0&&(Re.taskLists=!1),Re.strikethrough===void 0&&(Re.strikethrough=!1),Re.emoji===void 0&&(Re.emoji=!1),Re.fencedCodeBlockHighlighting===void 0&&(Re.fencedCodeBlockHighlighting=!0),Re.fencedCodeBlockDefaultMode===void 0&&(Re.fencedCodeBlockDefaultMode="text/plain"),Re.xml===void 0&&(Re.xml=!0),Re.tokenTypeOverrides===void 0&&(Re.tokenTypeOverrides={});var Le={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var xe in Le)Le.hasOwnProperty(xe)&&Re.tokenTypeOverrides[xe]&&(Le[xe]=Re.tokenTypeOverrides[xe]);var me=/^([*\-_])(?:\s*\1){2,}\s*$/,Ie=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,st=/^\[(x| )\](?=\s)/i,Ne=Re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,xt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,pt=/^[^#!\[\]*_\\<>` "'(~:]+/,ct=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,rt=/^\s*\[[^\]]+?\]:.*$/,Ee=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,at=" ";function Yt(Qe,we,At){return we.f=we.inline=At,At(Qe,we)}function Xe(Qe,we,At){return we.f=we.block=At,At(Qe,we)}function lt(Qe){return!Qe||!/\S/.test(Qe.string)}function Se(Qe){if(Qe.linkTitle=!1,Qe.linkHref=!1,Qe.linkText=!1,Qe.em=!1,Qe.strong=!1,Qe.strikethrough=!1,Qe.quote=0,Qe.indentedCode=!1,Qe.f==je){var we=ve;if(!we){var At=ae.innerMode(qe,Qe.htmlState);we=At.mode.name=="xml"&&At.state.tagStart===null&&!At.state.context&&At.state.tokenize.isInText}we&&(Qe.f=Ft,Qe.block=Ce,Qe.htmlState=null)}return Qe.trailingSpace=0,Qe.trailingSpaceNewLine=!1,Qe.prevLine=Qe.thisLine,Qe.thisLine={stream:null},null}function Ce(Qe,we){var At=Qe.column()===we.indentation,Mn=lt(we.prevLine.stream),_t=we.indentedCode,$e=we.prevLine.hr,dt=we.list!==!1,qt=(we.listStack[we.listStack.length-1]||0)+3;we.indentedCode=!1;var Xn=we.indentation;if(we.indentationDiff===null&&(we.indentationDiff=we.indentation,dt)){for(we.list=null;Xn<we.listStack[we.listStack.length-1];)we.listStack.pop(),we.listStack.length?we.indentation=we.listStack[we.listStack.length-1]:we.list=!1;we.list!==!1&&(we.indentationDiff=Xn-we.listStack[we.listStack.length-1])}var bn=!Mn&&!$e&&!we.prevLine.header&&(!dt||!_t)&&!we.prevLine.fencedCodeEnd,un=(we.list===!1||$e||Mn)&&we.indentation<=qt&&Qe.match(me),nn=null;if(we.indentationDiff>=4&&(_t||we.prevLine.fencedCodeEnd||we.prevLine.header||Mn))return Qe.skipToEnd(),we.indentedCode=!0,Le.code;if(Qe.eatSpace())return null;if(At&&we.indentation<=qt&&(nn=Qe.match(Ne))&&nn[1].length<=6)return we.quote=0,we.header=nn[1].length,we.thisLine.header=!0,Re.highlightFormatting&&(we.formatting="header"),we.f=we.inline,Mt(we);if(we.indentation<=qt&&Qe.eat(">"))return we.quote=At?1:we.quote+1,Re.highlightFormatting&&(we.formatting="quote"),Qe.eatSpace(),Mt(we);if(!un&&!we.setext&&At&&we.indentation<=qt&&(nn=Qe.match(Ie))){var xn=nn[1]?"ol":"ul";return we.indentation=Xn+Qe.current().length,we.list=!0,we.quote=0,we.listStack.push(we.indentation),we.em=!1,we.strong=!1,we.code=!1,we.strikethrough=!1,Re.taskLists&&Qe.match(st,!1)&&(we.taskList=!0),we.f=we.inline,Re.highlightFormatting&&(we.formatting=["list","list-"+xn]),Mt(we)}else{if(At&&we.indentation<=qt&&(nn=Qe.match(ct,!0)))return we.quote=0,we.fencedEndRE=new RegExp(nn[1]+"+ *$"),we.localMode=Re.fencedCodeBlockHighlighting&&ke(nn[2]||Re.fencedCodeBlockDefaultMode),we.localMode&&(we.localState=ae.startState(we.localMode)),we.f=we.block=Ue,Re.highlightFormatting&&(we.formatting="code-block"),we.code=-1,Mt(we);if(we.setext||(!bn||!dt)&&!we.quote&&we.list===!1&&!we.code&&!un&&!rt.test(Qe.string)&&(nn=Qe.lookAhead(1))&&(nn=nn.match(xt)))return we.setext?(we.header=we.setext,we.setext=0,Qe.skipToEnd(),Re.highlightFormatting&&(we.formatting="header")):(we.header=nn[0].charAt(0)=="="?1:2,we.setext=we.header),we.thisLine.header=!0,we.f=we.inline,Mt(we);if(un)return Qe.skipToEnd(),we.hr=!0,we.thisLine.hr=!0,Le.hr;if(Qe.peek()==="[")return Yt(Qe,we,tn)}return Yt(Qe,we,we.inline)}function je(Qe,we){var At=qe.token(Qe,we.htmlState);if(!ve){var Mn=ae.innerMode(qe,we.htmlState);(Mn.mode.name=="xml"&&Mn.state.tagStart===null&&!Mn.state.context&&Mn.state.tokenize.isInText||we.md_inside&&Qe.current().indexOf(">")>-1)&&(we.f=Ft,we.block=Ce,we.htmlState=null)}return At}function Ue(Qe,we){var At=we.listStack[we.listStack.length-1]||0,Mn=we.indentation<At,_t=At+3;if(we.fencedEndRE&&we.indentation<=_t&&(Mn||Qe.match(we.fencedEndRE))){Re.highlightFormatting&&(we.formatting="code-block");var $e;return Mn||($e=Mt(we)),we.localMode=we.localState=null,we.block=Ce,we.f=Ft,we.fencedEndRE=null,we.code=0,we.thisLine.fencedCodeEnd=!0,Mn?Xe(Qe,we,we.block):$e}else return we.localMode?we.localMode.token(Qe,we.localState):(Qe.skipToEnd(),Le.code)}function Mt(Qe){var we=[];if(Qe.formatting){we.push(Le.formatting),typeof Qe.formatting=="string"&&(Qe.formatting=[Qe.formatting]);for(var At=0;At<Qe.formatting.length;At++)we.push(Le.formatting+"-"+Qe.formatting[At]),Qe.formatting[At]==="header"&&we.push(Le.formatting+"-"+Qe.formatting[At]+"-"+Qe.header),Qe.formatting[At]==="quote"&&(!Re.maxBlockquoteDepth||Re.maxBlockquoteDepth>=Qe.quote?we.push(Le.formatting+"-"+Qe.formatting[At]+"-"+Qe.quote):we.push("error"))}if(Qe.taskOpen)return we.push("meta"),we.length?we.join(" "):null;if(Qe.taskClosed)return we.push("property"),we.length?we.join(" "):null;if(Qe.linkHref?we.push(Le.linkHref,"url"):(Qe.strong&&we.push(Le.strong),Qe.em&&we.push(Le.em),Qe.strikethrough&&we.push(Le.strikethrough),Qe.emoji&&we.push(Le.emoji),Qe.linkText&&we.push(Le.linkText),Qe.code&&we.push(Le.code),Qe.image&&we.push(Le.image),Qe.imageAltText&&we.push(Le.imageAltText,"link"),Qe.imageMarker&&we.push(Le.imageMarker)),Qe.header&&we.push(Le.header,Le.header+"-"+Qe.header),Qe.quote&&(we.push(Le.quote),!Re.maxBlockquoteDepth||Re.maxBlockquoteDepth>=Qe.quote?we.push(Le.quote+"-"+Qe.quote):we.push(Le.quote+"-"+Re.maxBlockquoteDepth)),Qe.list!==!1){var Mn=(Qe.listStack.length-1)%3;Mn?Mn===1?we.push(Le.list2):we.push(Le.list3):we.push(Le.list1)}return Qe.trailingSpaceNewLine?we.push("trailing-space-new-line"):Qe.trailingSpace&&we.push("trailing-space-"+(Qe.trailingSpace%2?"a":"b")),we.length?we.join(" "):null}function ht(Qe,we){if(Qe.match(pt,!0))return Mt(we)}function Ft(Qe,we){var At=we.text(Qe,we);if(typeof At!="undefined")return At;if(we.list)return we.list=null,Mt(we);if(we.taskList){var Mn=Qe.match(st,!0)[1]===" ";return Mn?we.taskOpen=!0:we.taskClosed=!0,Re.highlightFormatting&&(we.formatting="task"),we.taskList=!1,Mt(we)}if(we.taskOpen=!1,we.taskClosed=!1,we.header&&Qe.match(/^#+$/,!0))return Re.highlightFormatting&&(we.formatting="header"),Mt(we);var _t=Qe.next();if(we.linkTitle){we.linkTitle=!1;var $e=_t;_t==="("&&($e=")"),$e=($e+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var dt="^\\s*(?:[^"+$e+"\\\\]+|\\\\\\\\|\\\\.)"+$e;if(Qe.match(new RegExp(dt),!0))return Le.linkHref}if(_t==="`"){var qt=we.formatting;Re.highlightFormatting&&(we.formatting="code"),Qe.eatWhile("`");var Xn=Qe.current().length;if(we.code==0&&(!we.quote||Xn==1))return we.code=Xn,Mt(we);if(Xn==we.code){var bn=Mt(we);return we.code=0,bn}else return we.formatting=qt,Mt(we)}else if(we.code)return Mt(we);if(_t==="\\"&&(Qe.next(),Re.highlightFormatting)){var un=Mt(we),nn=Le.formatting+"-escape";return un?un+" "+nn:nn}if(_t==="!"&&Qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return we.imageMarker=!0,we.image=!0,Re.highlightFormatting&&(we.formatting="image"),Mt(we);if(_t==="["&&we.imageMarker&&Qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return we.imageMarker=!1,we.imageAltText=!0,Re.highlightFormatting&&(we.formatting="image"),Mt(we);if(_t==="]"&&we.imageAltText){Re.highlightFormatting&&(we.formatting="image");var un=Mt(we);return we.imageAltText=!1,we.image=!1,we.inline=we.f=Jt,un}if(_t==="["&&!we.image)return we.linkText&&Qe.match(/^.*?\]/)||(we.linkText=!0,Re.highlightFormatting&&(we.formatting="link")),Mt(we);if(_t==="]"&&we.linkText){Re.highlightFormatting&&(we.formatting="link");var un=Mt(we);return we.linkText=!1,we.inline=we.f=Qe.match(/\(.*?\)| ?\[.*?\]/,!1)?Jt:Ft,un}if(_t==="<"&&Qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){we.f=we.inline=tt,Re.highlightFormatting&&(we.formatting="link");var un=Mt(we);return un?un+=" ":un="",un+Le.linkInline}if(_t==="<"&&Qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){we.f=we.inline=tt,Re.highlightFormatting&&(we.formatting="link");var un=Mt(we);return un?un+=" ":un="",un+Le.linkEmail}if(Re.xml&&_t==="<"&&Qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var xn=Qe.string.indexOf(">",Qe.pos);if(xn!=-1){var Pn=Qe.string.substring(Qe.start,xn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Pn)&&(we.md_inside=!0)}return Qe.backUp(1),we.htmlState=ae.startState(qe),Xe(Qe,we,je)}if(Re.xml&&_t==="<"&&Qe.match(/^\/\w*?>/))return we.md_inside=!1,"tag";if(_t==="*"||_t==="_"){for(var De=1,ue=Qe.pos==1?" ":Qe.string.charAt(Qe.pos-2);De<3&&Qe.eat(_t);)De++;var ce=Qe.peek()||" ",he=!/\s/.test(ce)&&(!Ee.test(ce)||/\s/.test(ue)||Ee.test(ue)),fe=!/\s/.test(ue)&&(!Ee.test(ue)||/\s/.test(ce)||Ee.test(ce)),le=null,Me=null;if(De%2&&(!we.em&&he&&(_t==="*"||!fe||Ee.test(ue))?le=!0:we.em==_t&&fe&&(_t==="*"||!he||Ee.test(ce))&&(le=!1)),De>1&&(!we.strong&&he&&(_t==="*"||!fe||Ee.test(ue))?Me=!0:we.strong==_t&&fe&&(_t==="*"||!he||Ee.test(ce))&&(Me=!1)),Me!=null||le!=null){Re.highlightFormatting&&(we.formatting=le==null?"strong":Me==null?"em":"strong em"),le===!0&&(we.em=_t),Me===!0&&(we.strong=_t);var bn=Mt(we);return le===!1&&(we.em=!1),Me===!1&&(we.strong=!1),bn}}else if(_t===" "&&(Qe.eat("*")||Qe.eat("_"))){if(Qe.peek()===" ")return Mt(we);Qe.backUp(1)}if(Re.strikethrough){if(_t==="~"&&Qe.eatWhile(_t)){if(we.strikethrough){Re.highlightFormatting&&(we.formatting="strikethrough");var bn=Mt(we);return we.strikethrough=!1,bn}else if(Qe.match(/^[^\s]/,!1))return we.strikethrough=!0,Re.highlightFormatting&&(we.formatting="strikethrough"),Mt(we)}else if(_t===" "&&Qe.match(/^~~/,!0)){if(Qe.peek()===" ")return Mt(we);Qe.backUp(2)}}if(Re.emoji&&_t===":"&&Qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){we.emoji=!0,Re.highlightFormatting&&(we.formatting="emoji");var Ve=Mt(we);return we.emoji=!1,Ve}return _t===" "&&(Qe.match(/^ +$/,!1)?we.trailingSpace++:we.trailingSpace&&(we.trailingSpaceNewLine=!0)),Mt(we)}function tt(Qe,we){var At=Qe.next();if(At===">"){we.f=we.inline=Ft,Re.highlightFormatting&&(we.formatting="link");var Mn=Mt(we);return Mn?Mn+=" ":Mn="",Mn+Le.linkInline}return Qe.match(/^[^>]+/,!0),Le.linkInline}function Jt(Qe,we){if(Qe.eatSpace())return null;var At=Qe.next();return At==="("||At==="["?(we.f=we.inline=yn(At==="("?")":"]"),Re.highlightFormatting&&(we.formatting="link-string"),we.linkHref=!0,Mt(we)):"error"}var Rt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function yn(Qe){return function(we,At){var Mn=we.next();if(Mn===Qe){At.f=At.inline=Ft,Re.highlightFormatting&&(At.formatting="link-string");var _t=Mt(At);return At.linkHref=!1,_t}return we.match(Rt[Qe]),At.linkHref=!0,Mt(At)}}function tn(Qe,we){return Qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(we.f=Hn,Qe.next(),Re.highlightFormatting&&(we.formatting="link"),we.linkText=!0,Mt(we)):Yt(Qe,we,Ft)}function Hn(Qe,we){if(Qe.match(/^\]:/,!0)){we.f=we.inline=Yn,Re.highlightFormatting&&(we.formatting="link");var At=Mt(we);return we.linkText=!1,At}return Qe.match(/^([^\]\\]|\\.)+/,!0),Le.linkText}function Yn(Qe,we){return Qe.eatSpace()?null:(Qe.match(/^[^\s]+/,!0),Qe.peek()===void 0?we.linkTitle=!0:Qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),we.f=we.inline=Ft,Le.linkHref+" url")}var tr={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:Ft,text:ht,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(Qe){return{f:Qe.f,prevLine:Qe.prevLine,thisLine:Qe.thisLine,block:Qe.block,htmlState:Qe.htmlState&&ae.copyState(qe,Qe.htmlState),indentation:Qe.indentation,localMode:Qe.localMode,localState:Qe.localMode?ae.copyState(Qe.localMode,Qe.localState):null,inline:Qe.inline,text:Qe.text,formatting:!1,linkText:Qe.linkText,linkTitle:Qe.linkTitle,linkHref:Qe.linkHref,code:Qe.code,em:Qe.em,strong:Qe.strong,strikethrough:Qe.strikethrough,emoji:Qe.emoji,header:Qe.header,setext:Qe.setext,hr:Qe.hr,taskList:Qe.taskList,list:Qe.list,listStack:Qe.listStack.slice(0),quote:Qe.quote,indentedCode:Qe.indentedCode,trailingSpace:Qe.trailingSpace,trailingSpaceNewLine:Qe.trailingSpaceNewLine,md_inside:Qe.md_inside,fencedEndRE:Qe.fencedEndRE}},token:function(Qe,we){if(we.formatting=!1,Qe!=we.thisLine.stream){if(we.header=0,we.hr=!1,Qe.match(/^\s*$/,!0))return Se(we),null;if(we.prevLine=we.thisLine,we.thisLine={stream:Qe},we.taskList=!1,we.trailingSpace=0,we.trailingSpaceNewLine=!1,!we.localState&&(we.f=we.block,we.f!=je)){var At=Qe.match(/^\s*/,!0)[0].replace(/\t/g,at).length;if(we.indentation=At,we.indentationDiff=null,At>0)return null}}return we.f(Qe,we)},innerMode:function(Qe){return Qe.block==je?{state:Qe.htmlState,mode:qe}:Qe.localState?{state:Qe.localState,mode:Qe.localMode}:{state:Qe,mode:tr}},indent:function(Qe,we,At){return Qe.block==je&&qe.indent?qe.indent(Qe.htmlState,we,At):Qe.localState&&Qe.localMode.indent?Qe.localMode.indent(Qe.localState,we,At):ae.Pass},blankLine:Se,getType:Mt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return tr},"xml"),ae.defineMIME("text/markdown","markdown"),ae.defineMIME("text/x-markdown","markdown")})},52539:function(dn,en,se){(function(ae){ae(se(4631))})(function(ae){"use strict";ae.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Pe=0;Pe<ae.modeInfo.length;Pe++){var Re=ae.modeInfo[Pe];Re.mimes&&(Re.mime=Re.mimes[0])}ae.findModeByMIME=function(qe){qe=qe.toLowerCase();for(var ve=0;ve<ae.modeInfo.length;ve++){var ke=ae.modeInfo[ve];if(ke.mime==qe)return ke;if(ke.mimes){for(var Le=0;Le<ke.mimes.length;Le++)if(ke.mimes[Le]==qe)return ke}}if(/\+xml$/.test(qe))return ae.findModeByMIME("application/xml");if(/\+json$/.test(qe))return ae.findModeByMIME("application/json")},ae.findModeByExtension=function(qe){qe=qe.toLowerCase();for(var ve=0;ve<ae.modeInfo.length;ve++){var ke=ae.modeInfo[ve];if(ke.ext){for(var Le=0;Le<ke.ext.length;Le++)if(ke.ext[Le]==qe)return ke}}},ae.findModeByFileName=function(qe){for(var ve=0;ve<ae.modeInfo.length;ve++){var ke=ae.modeInfo[ve];if(ke.file&&ke.file.test(qe))return ke}var Le=qe.lastIndexOf("."),xe=Le>-1&&qe.substring(Le+1,qe.length);if(xe)return ae.findModeByExtension(xe)},ae.findModeByName=function(qe){qe=qe.toLowerCase();for(var ve=0;ve<ae.modeInfo.length;ve++){var ke=ae.modeInfo[ve];if(ke.name.toLowerCase()==qe)return ke;if(ke.alias){for(var Le=0;Le<ke.alias.length;Le++)if(ke.alias[Le].toLowerCase()==qe)return ke}}}})},80785:function(dn,en,se){(function(ae){ae(se(4631))})(function(ae){"use strict";ae.defineMode("stex",function(Pe,Re){"use strict";function qe(pt,ct){pt.cmdState.push(ct)}function ve(pt){return pt.cmdState.length>0?pt.cmdState[pt.cmdState.length-1]:null}function ke(pt){var ct=pt.cmdState.pop();ct&&ct.closeBracket()}function Le(pt){for(var ct=pt.cmdState,rt=ct.length-1;rt>=0;rt--){var Ee=ct[rt];if(Ee.name!="DEFAULT")return Ee}return{styleIdentifier:function(){return null}}}function xe(pt,ct,rt){return function(){this.name=pt,this.bracketNo=0,this.style=ct,this.styles=rt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var me={};me.importmodule=xe("importmodule","tag",["string","builtin"]),me.documentclass=xe("documentclass","tag",["","atom"]),me.usepackage=xe("usepackage","tag",["atom"]),me.begin=xe("begin","tag",["atom"]),me.end=xe("end","tag",["atom"]),me.label=xe("label","tag",["atom"]),me.ref=xe("ref","tag",["atom"]),me.eqref=xe("eqref","tag",["atom"]),me.cite=xe("cite","tag",["atom"]),me.bibitem=xe("bibitem","tag",["atom"]),me.Bibitem=xe("Bibitem","tag",["atom"]),me.RBibitem=xe("RBibitem","tag",["atom"]),me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ie(pt,ct){pt.f=ct}function st(pt,ct){var rt;if(pt.match(/^\\[a-zA-Z@]+/)){var Ee=pt.current().slice(1);return rt=me.hasOwnProperty(Ee)?me[Ee]:me.DEFAULT,rt=new rt,qe(ct,rt),Ie(ct,xt),rt.style}if(pt.match(/^\\[$&%#{}_]/)||pt.match(/^\\[,;!\/\\]/))return"tag";if(pt.match("\\["))return Ie(ct,function(Yt,Xe){return Ne(Yt,Xe,"\\]")}),"keyword";if(pt.match("\\("))return Ie(ct,function(Yt,Xe){return Ne(Yt,Xe,"\\)")}),"keyword";if(pt.match("$$"))return Ie(ct,function(Yt,Xe){return Ne(Yt,Xe,"$$")}),"keyword";if(pt.match("$"))return Ie(ct,function(Yt,Xe){return Ne(Yt,Xe,"$")}),"keyword";var at=pt.next();if(at=="%")return pt.skipToEnd(),"comment";if(at=="}"||at=="]"){if(rt=ve(ct),rt)rt.closeBracket(at),Ie(ct,xt);else return"error";return"bracket"}else return at=="{"||at=="["?(rt=me.DEFAULT,rt=new rt,qe(ct,rt),"bracket"):/\d/.test(at)?(pt.eatWhile(/[\w.%]/),"atom"):(pt.eatWhile(/[\w\-_]/),rt=Le(ct),rt.name=="begin"&&(rt.argument=pt.current()),rt.styleIdentifier())}function Ne(pt,ct,rt){if(pt.eatSpace())return null;if(rt&&pt.match(rt))return Ie(ct,st),"keyword";if(pt.match(/^\\[a-zA-Z@]+/))return"tag";if(pt.match(/^[a-zA-Z]+/))return"variable-2";if(pt.match(/^\\[$&%#{}_]/)||pt.match(/^\\[,;!\/]/)||pt.match(/^[\^_&]/))return"tag";if(pt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(pt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ee=pt.next();return Ee=="{"||Ee=="}"||Ee=="["||Ee=="]"||Ee=="("||Ee==")"?"bracket":Ee=="%"?(pt.skipToEnd(),"comment"):"error"}function xt(pt,ct){var rt=pt.peek(),Ee;return rt=="{"||rt=="["?(Ee=ve(ct),Ee.openBracket(rt),pt.eat(rt),Ie(ct,st),"bracket"):/[ \t\r]/.test(rt)?(pt.eat(rt),null):(Ie(ct,st),ke(ct),st(pt,ct))}return{startState:function(){var pt=Re.inMathMode?function(ct,rt){return Ne(ct,rt)}:st;return{cmdState:[],f:pt}},copyState:function(pt){return{cmdState:pt.cmdState.slice(),f:pt.f}},token:function(pt,ct){return ct.f(pt,ct)},blankLine:function(pt){pt.f=st,pt.cmdState.length=0},lineComment:"%"}}),ae.defineMIME("text/x-stex","stex"),ae.defineMIME("text/x-latex","stex")})},29589:function(dn,en,se){(function(ae){ae(se(4631))})(function(ae){"use strict";var Pe={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},Re={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ae.defineMode("xml",function(qe,ve){var ke=qe.indentUnit,Le={},xe=ve.htmlMode?Pe:Re;for(var me in xe)Le[me]=xe[me];for(var me in ve)Le[me]=ve[me];var Ie,st;function Ne(tt,Jt){function Rt(Hn){return Jt.tokenize=Hn,Hn(tt,Jt)}var yn=tt.next();if(yn=="<")return tt.eat("!")?tt.eat("[")?tt.match("CDATA[")?Rt(ct("atom","]]>")):null:tt.match("--")?Rt(ct("comment","-->")):tt.match("DOCTYPE",!0,!0)?(tt.eatWhile(/[\w\._\-]/),Rt(rt(1))):null:tt.eat("?")?(tt.eatWhile(/[\w\._\-]/),Jt.tokenize=ct("meta","?>"),"meta"):(Ie=tt.eat("/")?"closeTag":"openTag",Jt.tokenize=xt,"tag bracket");if(yn=="&"){var tn;return tt.eat("#")?tt.eat("x")?tn=tt.eatWhile(/[a-fA-F\d]/)&&tt.eat(";"):tn=tt.eatWhile(/[\d]/)&&tt.eat(";"):tn=tt.eatWhile(/[\w\.\-:]/)&&tt.eat(";"),tn?"atom":"error"}else return tt.eatWhile(/[^&<]/),null}Ne.isInText=!0;function xt(tt,Jt){var Rt=tt.next();if(Rt==">"||Rt=="/"&&tt.eat(">"))return Jt.tokenize=Ne,Ie=Rt==">"?"endTag":"selfcloseTag","tag bracket";if(Rt=="=")return Ie="equals",null;if(Rt=="<"){Jt.tokenize=Ne,Jt.state=Xe,Jt.tagName=Jt.tagStart=null;var yn=Jt.tokenize(tt,Jt);return yn?yn+" tag error":"tag error"}else return/[\'\"]/.test(Rt)?(Jt.tokenize=pt(Rt),Jt.stringStartCol=tt.column(),Jt.tokenize(tt,Jt)):(tt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function pt(tt){var Jt=function(Rt,yn){for(;!Rt.eol();)if(Rt.next()==tt){yn.tokenize=xt;break}return"string"};return Jt.isInAttribute=!0,Jt}function ct(tt,Jt){return function(Rt,yn){for(;!Rt.eol();){if(Rt.match(Jt)){yn.tokenize=Ne;break}Rt.next()}return tt}}function rt(tt){return function(Jt,Rt){for(var yn;(yn=Jt.next())!=null;){if(yn=="<")return Rt.tokenize=rt(tt+1),Rt.tokenize(Jt,Rt);if(yn==">")if(tt==1){Rt.tokenize=Ne;break}else return Rt.tokenize=rt(tt-1),Rt.tokenize(Jt,Rt)}return"meta"}}function Ee(tt,Jt,Rt){this.prev=tt.context,this.tagName=Jt,this.indent=tt.indented,this.startOfLine=Rt,(Le.doNotIndent.hasOwnProperty(Jt)||tt.context&&tt.context.noIndent)&&(this.noIndent=!0)}function at(tt){tt.context&&(tt.context=tt.context.prev)}function Yt(tt,Jt){for(var Rt;;){if(!tt.context||(Rt=tt.context.tagName,!Le.contextGrabbers.hasOwnProperty(Rt)||!Le.contextGrabbers[Rt].hasOwnProperty(Jt)))return;at(tt)}}function Xe(tt,Jt,Rt){return tt=="openTag"?(Rt.tagStart=Jt.column(),lt):tt=="closeTag"?Se:Xe}function lt(tt,Jt,Rt){return tt=="word"?(Rt.tagName=Jt.current(),st="tag",Ue):Le.allowMissingTagName&&tt=="endTag"?(st="tag bracket",Ue(tt,Jt,Rt)):(st="error",lt)}function Se(tt,Jt,Rt){if(tt=="word"){var yn=Jt.current();return Rt.context&&Rt.context.tagName!=yn&&Le.implicitlyClosed.hasOwnProperty(Rt.context.tagName)&&at(Rt),Rt.context&&Rt.context.tagName==yn||Le.matchClosing===!1?(st="tag",Ce):(st="tag error",je)}else return Le.allowMissingTagName&&tt=="endTag"?(st="tag bracket",Ce(tt,Jt,Rt)):(st="error",je)}function Ce(tt,Jt,Rt){return tt!="endTag"?(st="error",Ce):(at(Rt),Xe)}function je(tt,Jt,Rt){return st="error",Ce(tt,Jt,Rt)}function Ue(tt,Jt,Rt){if(tt=="word")return st="attribute",Mt;if(tt=="endTag"||tt=="selfcloseTag"){var yn=Rt.tagName,tn=Rt.tagStart;return Rt.tagName=Rt.tagStart=null,tt=="selfcloseTag"||Le.autoSelfClosers.hasOwnProperty(yn)?Yt(Rt,yn):(Yt(Rt,yn),Rt.context=new Ee(Rt,yn,tn==Rt.indented)),Xe}return st="error",Ue}function Mt(tt,Jt,Rt){return tt=="equals"?ht:(Le.allowMissing||(st="error"),Ue(tt,Jt,Rt))}function ht(tt,Jt,Rt){return tt=="string"?Ft:tt=="word"&&Le.allowUnquoted?(st="string",Ue):(st="error",Ue(tt,Jt,Rt))}function Ft(tt,Jt,Rt){return tt=="string"?Ft:Ue(tt,Jt,Rt)}return{startState:function(tt){var Jt={tokenize:Ne,state:Xe,indented:tt||0,tagName:null,tagStart:null,context:null};return tt!=null&&(Jt.baseIndent=tt),Jt},token:function(tt,Jt){if(!Jt.tagName&&tt.sol()&&(Jt.indented=tt.indentation()),tt.eatSpace())return null;Ie=null;var Rt=Jt.tokenize(tt,Jt);return(Rt||Ie)&&Rt!="comment"&&(st=null,Jt.state=Jt.state(Ie||Rt,tt,Jt),st&&(Rt=st=="error"?Rt+" error":st)),Rt},indent:function(tt,Jt,Rt){var yn=tt.context;if(tt.tokenize.isInAttribute)return tt.tagStart==tt.indented?tt.stringStartCol+1:tt.indented+ke;if(yn&&yn.noIndent)return ae.Pass;if(tt.tokenize!=xt&&tt.tokenize!=Ne)return Rt?Rt.match(/^(\s*)/)[0].length:0;if(tt.tagName)return Le.multilineTagIndentPastTag!==!1?tt.tagStart+tt.tagName.length+2:tt.tagStart+ke*(Le.multilineTagIndentFactor||1);if(Le.alignCDATA&&/<!\[CDATA\[/.test(Jt))return 0;var tn=Jt&&/^<(\/)?([\w_:\.-]*)/.exec(Jt);if(tn&&tn[1])for(;yn;)if(yn.tagName==tn[2]){yn=yn.prev;break}else if(Le.implicitlyClosed.hasOwnProperty(yn.tagName))yn=yn.prev;else break;else if(tn)for(;yn;){var Hn=Le.contextGrabbers[yn.tagName];if(Hn&&Hn.hasOwnProperty(tn[2]))yn=yn.prev;else break}for(;yn&&yn.prev&&!yn.startOfLine;)yn=yn.prev;return yn?yn.indent+ke:tt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Le.htmlMode?"html":"xml",helperType:Le.htmlMode?"html":"xml",skipAttribute:function(tt){tt.state==ht&&(tt.state=Ue)},xmlCurrentTag:function(tt){return tt.tagName?{name:tt.tagName,close:tt.type=="closeTag"}:null},xmlCurrentContext:function(tt){for(var Jt=[],Rt=tt.context;Rt;Rt=Rt.prev)Rt.tagName&&Jt.push(Rt.tagName);return Jt.reverse()}}}),ae.defineMIME("text/xml","xml"),ae.defineMIME("application/xml","xml"),ae.mimeModes.hasOwnProperty("text/html")||ae.defineMIME("text/html",{name:"xml",htmlMode:!0})})},15979:function(dn,en,se){"use strict";se.d(en,{hP:function(){return Pn}});var ae=function(De,ue){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,he){ce.__proto__=he}||function(ce,he){for(var fe in he)Object.prototype.hasOwnProperty.call(he,fe)&&(ce[fe]=he[fe])})(De,ue)};function Pe(De,ue){function ce(){this.constructor=De}ae(De,ue),De.prototype=ue===null?Object.create(ue):(ce.prototype=ue.prototype,new ce)}function Re(De,ue,ce,he){return new(ce||(ce=Promise))(function(fe,le){function Me(Ht){try{ft(he.next(Ht))}catch(Zt){le(Zt)}}function Ve(Ht){try{ft(he.throw(Ht))}catch(Zt){le(Zt)}}function ft(Ht){var Zt;Ht.done?fe(Ht.value):(Zt=Ht.value,Zt instanceof ce?Zt:new ce(function(jt){jt(Zt)})).then(Me,Ve)}ft((he=he.apply(De,ue||[])).next())})}function qe(De,ue){var ce,he,fe,le,Me={label:0,sent:function(){if(1&fe[0])throw fe[1];return fe[1]},trys:[],ops:[]};return le={next:Ve(0),throw:Ve(1),return:Ve(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Ve(ft){return function(Ht){return function(Zt){if(ce)throw new TypeError("Generator is already executing.");for(;Me;)try{if(ce=1,he&&(fe=2&Zt[0]?he.return:Zt[0]?he.throw||((fe=he.return)&&fe.call(he),0):he.next)&&!(fe=fe.call(he,Zt[1])).done)return fe;switch(he=0,fe&&(Zt=[2&Zt[0],fe.value]),Zt[0]){case 0:case 1:fe=Zt;break;case 4:return Me.label++,{value:Zt[1],done:!1};case 5:Me.label++,he=Zt[1],Zt=[0];continue;case 7:Zt=Me.ops.pop(),Me.trys.pop();continue;default:if(fe=Me.trys,!((fe=fe.length>0&&fe[fe.length-1])||Zt[0]!==6&&Zt[0]!==2)){Me=0;continue}if(Zt[0]===3&&(!fe||Zt[1]>fe[0]&&Zt[1]<fe[3])){Me.label=Zt[1];break}if(Zt[0]===6&&Me.label<fe[1]){Me.label=fe[1],fe=Zt;break}if(fe&&Me.label<fe[2]){Me.label=fe[2],Me.ops.push(Zt);break}fe[2]&&Me.ops.pop(),Me.trys.pop();continue}Zt=ue.call(De,Me)}catch(jt){Zt=[6,jt],he=0}finally{ce=fe=0}if(5&Zt[0])throw Zt[1];return{value:Zt[0]?Zt[1]:void 0,done:!0}}([ft,Ht])}}}function ve(){for(var De=0,ue=0,ce=arguments.length;ue<ce;ue++)De+=arguments[ue].length;var he=Array(De),fe=0;for(ue=0;ue<ce;ue++)for(var le=arguments[ue],Me=0,Ve=le.length;Me<Ve;Me++,fe++)he[fe]=le[Me];return he}var ke=function(){function De(){}return De.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},De.setAttributes=function(ue,ce){for(var he=0,fe=ce;he<fe.length;he++){var le=fe[he],Me=le[0],Ve=le[1];ue.setAttribute(Me,Ve)}},De.createRect=function(ue,ce,he){var fe=document.createElementNS("http://www.w3.org/2000/svg","rect");return fe.setAttribute("width",ue.toString()),fe.setAttribute("height",ce.toString()),he&&De.setAttributes(fe,he),fe},De.createLine=function(ue,ce,he,fe,le){var Me=document.createElementNS("http://www.w3.org/2000/svg","line");return Me.setAttribute("x1",ue.toString()),Me.setAttribute("y1",ce.toString()),Me.setAttribute("x2",he.toString()),Me.setAttribute("y2",fe.toString()),le&&De.setAttributes(Me,le),Me},De.createPolygon=function(ue,ce){var he=document.createElementNS("http://www.w3.org/2000/svg","polygon");return he.setAttribute("points",ue),ce&&De.setAttributes(he,ce),he},De.createCircle=function(ue,ce){var he=document.createElementNS("http://www.w3.org/2000/svg","circle");return he.setAttribute("cx",(ue/2).toString()),he.setAttribute("cy",(ue/2).toString()),he.setAttribute("r",ue.toString()),ce&&De.setAttributes(he,ce),he},De.createEllipse=function(ue,ce,he){var fe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return fe.setAttribute("cx",(ue/2).toString()),fe.setAttribute("cy",(ce/2).toString()),fe.setAttribute("rx",(ue/2).toString()),fe.setAttribute("ry",(ce/2).toString()),he&&De.setAttributes(fe,he),fe},De.createGroup=function(ue){var ce=document.createElementNS("http://www.w3.org/2000/svg","g");return ue&&De.setAttributes(ce,ue),ce},De.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},De.createMarker=function(ue,ce,he,fe,le,Me,Ve){var ft=document.createElementNS("http://www.w3.org/2000/svg","marker");return De.setAttributes(ft,[["id",ue],["orient",ce],["markerWidth",he.toString()],["markerHeight",fe.toString()],["refX",le.toString()],["refY",Me.toString()]]),ft.appendChild(Ve),ft},De.createText=function(ue){var ce=document.createElementNS("http://www.w3.org/2000/svg","text");return ce.setAttribute("x","0"),ce.setAttribute("y","0"),ue&&De.setAttributes(ce,ue),ce},De.createTSpan=function(ue,ce){var he=document.createElementNS("http://www.w3.org/2000/svg","tspan");return he.textContent=ue,ce&&De.setAttributes(he,ce),he},De.createImage=function(ue){var ce=document.createElementNS("http://www.w3.org/2000/svg","image");return ue&&De.setAttributes(ce,ue),ce},De.createPoint=function(ue,ce){var he=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return he.x=ue,he.y=ce,he},De.createPath=function(ue,ce){var he=document.createElementNS("http://www.w3.org/2000/svg","path");return he.setAttribute("d",ue),ce&&De.setAttributes(he,ce),he},De}(),Le=function(){function De(){}return De.addKey=function(ue){De.key=ue},Object.defineProperty(De,"isLicensed",{get:function(){return!!De.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(De.key)},enumerable:!1,configurable:!0}),De}(),xe=function(){function De(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return De.prototype.rasterize=function(ue,ce,he){var fe=this;return new Promise(function(le){var Me=he!==void 0?he:document.createElement("canvas");ue===null&&(fe.markersOnly=!0,fe.naturalSize=!1);var Ve=document.createElementNS("http://www.w3.org/2000/svg","svg");Ve.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ve.setAttribute("width",ce.width.baseVal.valueAsString),Ve.setAttribute("height",ce.height.baseVal.valueAsString),Ve.setAttribute("viewBox","0 0 "+ce.viewBox.baseVal.width.toString()+" "+ce.viewBox.baseVal.height.toString()),Ve.innerHTML=ce.innerHTML,fe.naturalSize===!0?(Ve.width.baseVal.value=ue.naturalWidth,Ve.height.baseVal.value=ue.naturalHeight):fe.width!==void 0&&fe.height!==void 0&&(Ve.width.baseVal.value=fe.width,Ve.height.baseVal.value=fe.height),Me.width=Ve.width.baseVal.value,Me.height=Ve.height.baseVal.value;var ft=Ve.outerHTML,Ht=Me.getContext("2d");fe.markersOnly!==!0&&Ht.drawImage(ue,0,0,Me.width,Me.height);var Zt=window.URL,jt=new Image(Me.width,Me.height);jt.setAttribute("crossOrigin","anonymous");var $t=new Blob([ft],{type:"image/svg+xml"}),Je=Zt.createObjectURL($t);jt.onload=function(){Ht.drawImage(jt,0,0),Zt.revokeObjectURL(Je);var Et=Me.toDataURL(fe.imageType,fe.imageQuality);le(Et)},jt.src=Je})},De}(),me=function(){},Ie=function(){function De(ue){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ue+"_"}return Object.defineProperty(De.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(De.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(De.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),De.prototype.addClass=function(ue){return this.styleSheet===void 0&&this.addStyleSheet(),ue.name=""+this.classNamePrefix+ue.localName,this.classes.push(ue),this.styleSheet.sheet.insertRule("."+ue.name+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length),ue},De.prototype.addRule=function(ue){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ue),this.styleSheet.sheet.insertRule(ue.selector+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length)},De.prototype.addStyleSheet=function(){var ue;this.styleSheet=document.createElement("style"),((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).appendChild(this.styleSheet),this.addRule(new st("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new st("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new st("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Ne("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ne("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},De.prototype.removeStyleSheet=function(){var ue;this.styleSheet&&(((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},De}(),st=function(De,ue){this.selector=De,this.style=ue},Ne=function(De,ue){this.localName=De,this.style=ue},xt=function(){function De(ue,ce,he,fe,le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ue,this.displayMode=ce,this.markerItems=he,this.uiStyleSettings=fe,this.styles=le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return De.prototype.show=function(ue){var ce=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var he=document.createElement("div");he.className=this.toolbarBlockStyleClass.name,he.style.whiteSpace="nowrap",this.uiContainer.appendChild(he),this.addActionButton(he,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(he,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(he,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(he,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(he,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(he,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(he,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(he,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(le){var Me=document.createElement("div");Me.className=""+ce.toolbarButtonStyleClass.name,Me.setAttribute("data-type-name",le.typeName),Me.innerHTML=le.icon,Me.addEventListener("click",function(){ce.markerToolbarButtonClicked(Me,le)}),ce.buttons.push(Me),ce.markerButtons.push(Me)}),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 fe=document.createElement("div");fe.className=this.toolbarBlockStyleClass.name,fe.style.whiteSpace="nowrap",fe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(fe),this.addActionButton(fe,'<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(fe,'<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()},De.prototype.addButtonClickListener=function(ue){this.buttonClickListeners.push(ue)},De.prototype.removeButtonClickListener=function(ue){this.buttonClickListeners.indexOf(ue)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ue),1)},De.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},De.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ue=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ce=0;ce<this.markerButtons.length;ce++)ce<ue||ce===ue&&this.markerButtons.length-1===ue?this.markerButtonBlock.appendChild(this.markerButtons[ce]):(ce===ue&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ce]))}},De.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")},De.prototype.resetButtonStyles=function(){var ue=this;this.buttons.forEach(function(ce){ce.className=ce.className.replace(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name,"").trim(),ce.className=ce.className.replace(ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ue.toolbarActiveButtonStyleColorsClass.name,"").trim(),ce.className+=" "+(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name)})},De.prototype.addActionButton=function(ue,ce,he){var fe=this,le=document.createElement("div");switch(le.className=""+this.toolbarButtonStyleClass.name,le.innerHTML=ce,le.setAttribute("data-action",he),le.addEventListener("click",function(){fe.actionToolbarButtonClicked(le,he)}),he){case"select":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":le.style.fill=this.uiStyleSettings.closeButtonColor}ue.appendChild(le),this.buttons.push(le)},De.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ne("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Ne("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ne("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ne("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Ne("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ue=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ne("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
padding: `+ue+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ne("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ne("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new st("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new st("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},De.prototype.markerToolbarButtonClicked=function(ue,ce){this.setActiveButton(ue),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(he){return he("marker",ce)}),this.markerButtonOverflowBlock.style.display="none"},De.prototype.actionToolbarButtonClicked=function(ue,ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(he){return he("action",ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},De.prototype.setActiveButton=function(ue){this.resetButtonStyles(),ue.className=ue.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},De.prototype.setActiveMarkerButton=function(ue){var ce=this.markerButtons.find(function(he){return he.getAttribute("data-type-name")===ue});ce&&this.setActiveButton(ce)},De.prototype.setCurrentMarker=function(ue){var ce=this;this.currentMarker=ue,this.buttons.filter(function(he){return/delete|notes/.test(he.getAttribute("data-action"))}).forEach(function(he){ce.currentMarker===void 0?(he.style.fillOpacity="0.4",he.style.pointerEvents="none"):(he.style.fillOpacity="1",he.style.pointerEvents="all")})},De}(),pt=function(){function De(ue,ce,he,fe){this.panels=[],this.panelButtons=[],this.markerjsContainer=ue,this.displayMode=ce,this.uiStyleSettings=he,this.styles=fe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return De.prototype.addStyles=function(){var ue;this.toolboxStyleClass=this.styles.addClass(new Ne("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Ne("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ne("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ne("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ne("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Ne("toolbox-panel-row_colors",`
background-color: `+((ue=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ue!==void 0?ue:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ne("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
padding: `+ce+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ne("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ne("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new st("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new st("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},De.prototype.show=function(ue){var ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},De.prototype.setPanelButtons=function(ue){var ce,he,fe=this;this.panels=ue,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((he=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&he!==void 0?he:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Me;le.uiStyleSettings=fe.uiStyleSettings;var Ve=document.createElement("div");Ve.className=fe.toolboxButtonStyleClass.name+" "+((Me=fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Me!==void 0?Me:fe.toolboxButtonStyleColorsClass.name),Ve.innerHTML=le.icon,Ve.title=le.title,Ve.addEventListener("click",function(){fe.panelButtonClick(le)}),fe.panelButtons.push(Ve),fe.buttonRow.appendChild(Ve)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},De.prototype.panelButtonClick=function(ue){var ce=this,he=-1;if(ue!==this.activePanel){he=this.panels.indexOf(ue),this.panelRow.innerHTML="";var fe=ue.getUi();fe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(fe),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ue}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ce.displayMode==="inline"?ce.panelRow.style.display="none":ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Me){var Ve,ft;le.className=ce.toolboxButtonStyleClass.name+" "+(Me===he?""+((Ve=ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ve!==void 0?Ve:ce.toolboxActiveButtonStyleColorsClass.name):""+((ft=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ft!==void 0?ft:ce.toolboxButtonStyleColorsClass.name))})},De}(),ct=function(De,ue){this.title=De,this.icon=ue},rt=function(De){function ue(ce,he,fe,le){var Me=De.call(this,ce,le||'<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 Me.colors=[],Me.addTransparent=!1,Me.colorBoxes=[],Me.colors=he,Me.currentColor=fe,Me.setCurrentColor=Me.setCurrentColor.bind(Me),Me.getColorBox=Me.getColorBox.bind(Me),Me}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.whiteSpace="nowrap",this.colors.forEach(function(fe){var le=ce.getColorBox(fe);he.appendChild(le),ce.colorBoxes.push(le)}),he},ue.prototype.getColorBox=function(ce){var he=this,fe=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-fe,Me=document.createElement("div");Me.style.display="inline-block",Me.style.boxSizing="content-box",Me.style.width=le-2+"px",Me.style.height=le-2+"px",Me.style.padding="1px",Me.style.marginRight="2px",Me.style.marginBottom="2px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.borderRadius=(le+2)/2+"px",Me.style.borderColor=ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){he.setCurrentColor(ce,Me)});var Ve=document.createElement("div");return Ve.style.display="inline-block",Ve.style.width=le-2+"px",Ve.style.height=le-2+"px",Ve.style.backgroundColor=ce,Ve.style.borderRadius=le/2+"px",ce==="transparent"&&(Ve.style.fill=this.uiStyleSettings.toolboxAccentColor,Ve.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>`),Me.appendChild(Ve),Me},ue.prototype.setCurrentColor=function(ce,he){var fe=this;this.currentColor=ce,this.colorBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ce)},ue}(ct),Ee=function(){function De(ue,ce,he){this._state="new",this._isSelected=!1,this._container=ue,this._overlayContainer=ce,this.globalSettings=he,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(De.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),De.prototype.ownsTarget=function(ue){return!1},Object.defineProperty(De.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),De.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},De.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},De.prototype.pointerDown=function(ue,ce){},De.prototype.dblClick=function(ue,ce){},De.prototype.manipulate=function(ue){},De.prototype.pointerUp=function(ue){this.stateChanged()},De.prototype.dispose=function(){},De.prototype.addMarkerVisualToContainer=function(ue){this.container.childNodes.length>0?this.container.insertBefore(ue,this.container.childNodes[0]):this.container.appendChild(ue)},De.prototype.getState=function(){return{typeName:De.typeName,state:this.state,notes:this.notes}},De.prototype.restoreState=function(ue){this._state=ue.state,this.notes=ue.notes},De.prototype.scale=function(ue,ce){},De.prototype.colorChanged=function(ue){this.onColorChanged&&this.onColorChanged(ue),this.stateChanged()},De.prototype.fillColorChanged=function(ue){this.onFillColorChanged&&this.onFillColorChanged(ue),this.stateChanged()},De.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ue=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ue.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ue)&&this.onStateChanged(this)}},De.typeName="MarkerBase",De}(),at=function(){function De(){this.findGripByVisual=this.findGripByVisual.bind(this)}return De.prototype.findGripByVisual=function(ue){return this.topLeft.ownsTarget(ue)?this.topLeft:this.topCenter.ownsTarget(ue)?this.topCenter:this.topRight.ownsTarget(ue)?this.topRight:this.centerLeft.ownsTarget(ue)?this.centerLeft:this.centerRight.ownsTarget(ue)?this.centerRight:this.bottomLeft.ownsTarget(ue)?this.bottomLeft:this.bottomCenter.ownsTarget(ue)?this.bottomCenter:this.bottomRight.ownsTarget(ue)?this.bottomRight:void 0},De}(),Yt=function(){function De(){this.GRIP_SIZE=10,this.visual=ke.createGroup(),this.visual.appendChild(ke.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ke.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return De.prototype.ownsTarget=function(ue){return ue===this.visual||ue===this.visual.childNodes[0]||ue===this.visual.childNodes[1]},De}(),Xe=function(){function De(){}return De.toITransformMatrix=function(ue){return{a:ue.a,b:ue.b,c:ue.c,d:ue.d,e:ue.e,f:ue.f}},De.toSVGMatrix=function(ue,ce){return ue.a=ce.a,ue.b=ce.b,ue.c=ce.c,ue.d=ce.d,ue.e=ce.e,ue.f=ce.f,ue},De}(),lt=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(ke.createTransform()),le.setupControlBox(),le}return Pe(ue,De),Object.defineProperty(ue.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"visual",{get:function(){return this._visual},set:function(ce){this._visual=ce;var he=ke.createTransform();this._visual.transform.baseVal.appendItem(he)},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(ce){return!!De.prototype.ownsTarget.call(this,ce)||!!(this.controlGrips.findGripByVisual(ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce))},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.left=ce.x,this.top=ce.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var fe=this.unrotatePoint(ce);if(this.manipulationStartX=fe.x,this.manipulationStartY=fe.y,this.offsetX=fe.x-this.left,this.offsetY=fe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(he),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(he)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Me=this.container.transform.baseVal.getItem(0);Me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Me,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ue.prototype.pointerUp=function(ce){var he=this.state;De.prototype.pointerUp.call(this,ce),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ce),this._state="select",he==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ue.prototype.moveVisual=function(ce){this.visual.style.transform="translate("+ce.x+"px, "+ce.y+"px)"},ue.prototype.manipulate=function(ce){var he=this.unrotatePoint(ce);this.state==="creating"?this.resize(ce):this.state==="move"?(this.left=this.manipulationStartLeft+(he.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(he.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(he):this.state==="rotate"&&this.rotate(ce)},ue.prototype.resize=function(ce){var he=this.manipulationStartLeft,fe=this.manipulationStartWidth,le=this.manipulationStartTop,Me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:he=this.manipulationStartLeft+ce.x-this.manipulationStartX,fe=this.manipulationStartWidth+this.manipulationStartLeft-he;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:fe=this.manipulationStartWidth+ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ce.y-this.manipulationStartY,Me=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Me=this.manipulationStartHeight+ce.y-this.manipulationStartY}fe>=0?(this.left=he,this.width=fe):(this.left=he+fe,this.width=-fe),Me>=0?(this.top=le,this.height=Me):(this.top=le+Me,this.height=-Me),this.setSize()},ue.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ue.prototype.rotate=function(ce){if(Math.abs(ce.x-this.centerX)>.1){var he=Math.sign(ce.x-this.centerX);this.rotationAngle=180*Math.atan((ce.y-this.centerY)/(ce.x-this.centerX))/Math.PI+90*he,this.applyRotation()}},ue.prototype.applyRotation=function(){var ce=this.container.transform.baseVal.getItem(0);ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ce,0)},ue.prototype.rotatePoint=function(ce){if(this.rotationAngle===0)return ce;var he=this.container.getCTM(),fe=ke.createPoint(ce.x,ce.y);return{x:(fe=fe.matrixTransform(he)).x,y:fe.y}},ue.prototype.unrotatePoint=function(ce){if(this.rotationAngle===0)return ce;var he=this.container.getCTM();he=he.inverse();var fe=ke.createPoint(ce.x,ce.y);return{x:(fe=fe.matrixTransform(he)).x,y:fe.y}},ue.prototype.select=function(){De.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){De.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=ke.createGroup();var ce=ke.createTransform();ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ce),this.container.appendChild(this.controlBox),this.controlRect=ke.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=ke.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 at,this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){var ce=this.controlBox.transform.baseVal.getItem(0);ce.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ce,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},ue.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},ue.prototype.createGrip=function(){var ce=new Yt;return ce.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(ce.visual),ce},ue.prototype.positionGrips=function(){var ce=this.controlGrips.topLeft.GRIP_SIZE,he=-ce/2,fe=he,le=(this.width+this.CB_DISTANCE)/2-ce/2,Me=(this.height+this.CB_DISTANCE)/2-ce/2,Ve=this.height+this.CB_DISTANCE-ce/2,ft=this.width+this.CB_DISTANCE-ce/2;this.positionGrip(this.controlGrips.topLeft.visual,he,fe),this.positionGrip(this.controlGrips.topCenter.visual,le,fe),this.positionGrip(this.controlGrips.topRight.visual,ft,fe),this.positionGrip(this.controlGrips.centerLeft.visual,he,Me),this.positionGrip(this.controlGrips.centerRight.visual,ft,Me),this.positionGrip(this.controlGrips.bottomLeft.visual,he,Ve),this.positionGrip(this.controlGrips.bottomCenter.visual,le,Ve),this.positionGrip(this.controlGrips.bottomRight.visual,ft,Ve),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,fe-3*this.CB_DISTANCE)},ue.prototype.positionGrip=function(ce,he,fe){var le=ce.transform.baseVal.getItem(0);le.setTranslate(he,fe),ce.transform.baseVal.replaceItem(le,0)},ue.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ue.prototype.showControlBox=function(){this.controlBox.style.display=""},ue.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Xe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Xe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},De.prototype.getState.call(this))},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.left=he.left,this.top=he.top,this.width=he.width,this.height=he.height,this.rotationAngle=he.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Xe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,he.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Xe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,he.containerTransformMatrix))},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he);var fe=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:fe.x*ce,y:fe.y*he});this.left=le.x,this.top=le.y,this.width=this.width*ce,this.height=this.height*he,this.adjustControlBox()},ue}(Ee),Se=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},ue.prototype.createVisual=function(){this.visual=ke.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ue.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce)},ue.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.setSize()},ue.prototype.setSize=function(){De.prototype.setSize.call(this),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(ce){De.prototype.pointerUp.call(this,ce),this.setSize()},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},ue.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},De.prototype.getState.call(this))},ue.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.opacity=he.opacity,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setSize()},ue.title="Rectangle marker",ue}(lt),Ce=function(De){function ue(ce,he,fe,le){var Me=De.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Me.widths=[],Me.widthBoxes=[],Me.widths=he,Me.currentWidth=fe,Me.setCurrentWidth=Me.setCurrentWidth.bind(Me),Me}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.widths.forEach(function(fe){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=fe===ce.currentWidth?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentWidth(fe,le)}),he.appendChild(le);var Me=document.createElement("div");Me.innerText=fe.toString(),Me.style.marginRight="5px",le.appendChild(Me);var Ve=document.createElement("div");Ve.style.minHeight="20px",Ve.style.flexGrow="2",Ve.style.display="flex",Ve.style.alignItems="center";var ft=document.createElement("hr");ft.style.minWidth="20px",ft.style.border="0px",ft.style.borderTop=fe+"px solid "+ce.uiStyleSettings.toolboxColor,ft.style.flexGrow="2",Ve.appendChild(ft),le.appendChild(Ve),ce.widthBoxes.push(le)}),he},ue.prototype.setCurrentWidth=function(ce,he){var fe=this;this.currentWidth=ce,this.widthBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ue}(ct),je=function(De){function ue(ce,he,fe,le){var Me=De.call(this,ce,le||'<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 Me.styles=[],Me.styleBoxes=[],Me.styles=he,Me.currentStyle=fe,Me.setCurrentStyle=Me.setCurrentStyle.bind(Me),Me}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.styles.forEach(function(fe){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.styles.length-5+"%",le.style.borderColor=fe===ce.currentStyle?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentStyle(fe,le)}),he.appendChild(le);var Me=document.createElement("div");Me.style.minHeight="20px",Me.style.flexGrow="2",Me.style.overflow="hidden";var Ve=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ce.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(fe!==""?'stroke-dasharray="'+fe+'"':"")+` />
</svg>`;Me.innerHTML=Ve,le.appendChild(Me),ce.styleBoxes.push(le)}),he},ue.prototype.setCurrentStyle=function(ce,he){var fe=this;this.currentStyle=ce,this.styleBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ue}(ct),Ue=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.strokeColor=fe.defaultColor,le.strokeWidth=fe.defaultStrokeWidth,le.strokeDasharray=fe.defaultStrokeDasharray,le.strokePanel=new rt("Line color",fe.defaultColorSet,fe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Pe(ue,De),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="FrameMarker",ue.title="Frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ue}(Se),Mt=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"},ht=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!!De.prototype.ownsTarget.call(this,ce)||!(!this.grip1.ownsTarget(ce)&&!this.grip2.ownsTarget(ce))},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.state==="new"&&(this.x1=ce.x,this.y1=ce.y,this.x2=ce.x,this.y2=ce.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(he)?this.activeGrip=this.grip1:this.grip2.ownsTarget(he)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ue.prototype.pointerUp=function(ce){var he=this.state;De.prototype.pointerUp.call(this,ce),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ce),this._state="select",he==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ue.prototype.adjustVisual=function(){},ue.prototype.manipulate=function(ce){this.state==="creating"?this.resize(ce):this.state==="move"?(this.x1=this.manipulationStartX1+ce.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ce.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ce.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ce.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ce)},ue.prototype.resize=function(ce){switch(this.activeGrip){case this.grip1:this.x1=ce.x,this.y1=ce.y;break;case this.grip2:case void 0:this.x2=ce.x,this.y2=ce.y}this.adjustVisual(),this.adjustControlBox()},ue.prototype.select=function(){De.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){De.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=ke.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){this.positionGrips()},ue.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ue.prototype.createGrip=function(){var ce=new Yt;return ce.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(ce.visual),ce},ue.prototype.positionGrips=function(){var ce=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ce/2,this.y1-ce/2),this.positionGrip(this.grip2.visual,this.x2-ce/2,this.y2-ce/2)},ue.prototype.positionGrip=function(ce,he,fe){var le=ce.transform.baseVal.getItem(0);le.setTranslate(he,fe),ce.transform.baseVal.replaceItem(le,0)},ue.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},De.prototype.getState.call(this))},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.x1=he.x1,this.y1=he.y1,this.x2=he.x2,this.y2=he.y2},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.x1=this.x1*ce,this.y1=this.y1*he,this.x2=this.x2*ce,this.y2=this.y2*he,this.adjustVisual(),this.adjustControlBox()},ue}(Ee),Ft=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=fe.defaultColor,le.strokeWidth=fe.defaultStrokeWidth,le.strokeDasharray=fe.defaultStrokeDasharray,le.strokePanel=new rt("Line color",fe.defaultColorSet,fe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorLine&&ce!==this.visibleLine)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorLine=ke.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ke.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ue.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),ke.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.createVisual(),this.adjustVisual()},ue.typeName="LineMarker",ue.title="Line marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ue}(ht),tt=function(De){function ue(ce,he,fe,le){var Me=De.call(this,ce,le||'<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 Me.fonts=[],Me.fontBoxes=[],Me.fonts=he,Me.currentFont=fe,Me.setCurrentFont=Me.setCurrentFont.bind(Me),Me}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.flexGrow="2",this.fonts.forEach(function(fe){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.fonts.length-5+"%",le.style.borderColor=fe===ce.currentFont?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentFont(fe,le)}),he.appendChild(le);var Me=document.createElement("div");Me.style.display="flex",Me.style.minHeight="20px",Me.style.flexGrow="2",Me.style.fontFamily=fe,Me.style.overflow="hidden";var Ve=document.createElement("div");Ve.style.whiteSpace="nowrap",Ve.style.overflow="hidden",Ve.style.textOverflow="ellipsis",Ve.innerHTML="The quick brown fox jumps over the lazy dog",Me.appendChild(Ve),le.appendChild(Me),ce.fontBoxes.push(le)}),he},ue.prototype.setCurrentFont=function(ce,he){var fe=this;this.currentFont=ce,this.fontBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ue}(ct),Jt=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=fe.defaultColor,le.fontFamily=fe.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new rt("Color",fe.defaultColorSet,fe.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new tt("Font",fe.defaultFontFamilies,fe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){if(De.prototype.ownsTarget.call(this,ce)||ce===this.visual||ce===this.textElement||ce===this.bgRectangle)return!0;var he=!1;return this.textElement.childNodes.forEach(function(fe){fe===ce&&(he=!0)}),he},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.bgRectangle=ke.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ke.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ue.prototype.renderText=function(){var ce=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(he){ce.textElement.appendChild(ke.createTSpan(he.trim()===""?" ":he.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ue.prototype.getTextScale=function(){var ce=this.textElement.getBBox(),he=1;if(ce.width>0&&ce.height>0){var fe=(1*this.width-this.width*this.padding*2/100)/ce.width,le=(1*this.height-this.height*this.padding*2/100)/ce.height;he=Math.min(fe,le)}return he},ue.prototype.getTextPosition=function(ce){var he=this.textElement.getBBox(),fe=0,le=0;return he.width>0&&he.height>0&&(fe=(this.width-he.width*ce)/2,le=this.height/2-he.height*ce/2),{x:fe,y:le}},ue.prototype.sizeText=function(){var ce=this.textElement.getBBox(),he=this.getTextScale(),fe=this.getTextPosition(he);fe.y-=ce.y*he,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+fe.x+"px, "+fe.y+"px) scale("+he+", "+he+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(fe.x,fe.y),this.textElement.transform.baseVal.getItem(1).setScale(he,he))},ue.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.isMoved=!0,this.setSize(),this.sizeText()},ue.prototype.setSize=function(){De.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ue.prototype.pointerUp=function(ce){var he=this.state;he==="creating"&&(this._suppressMarkerCreateEvent=!0),De.prototype.pointerUp.call(this,ce),this.setSize(),(he==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.showTextEditor=function(){var ce=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(he){he.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var he=Number.parseFloat(ce.textEditor.style.fontSize);ce.textEditor.clientWidth>=Number.parseInt(ce.textEditor.style.maxWidth)&&he>.9;)he-=.1,ce.textEditor.style.fontSize=Math.max(he,.9)+"em"}),this.textEditor.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(he){if(he.clipboardData){var fe=he.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(fe)),he.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ce.textEditDivClicked(ce.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ue.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ce=this.getTextScale(),he=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),fe=this.textElement.getBBox(),le={x:fe.width*ce,y:fe.height*ce};he.x-=le.x/2,he.y-=le.y/2,this.textEditor.style.top=he.y+"px",this.textEditor.style.left=he.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-he.x+"px",this.textEditor.style.fontSize=Math.max(16*ce,12)+"px",this.textElement.style.display="none"}},ue.prototype.textEditDivClicked=function(ce){this.text=ce.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ue.prototype.select=function(){De.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ue.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),De.prototype.deselect.call(this)},ue.prototype.dblClick=function(ce,he){De.prototype.dblClick.call(this,ce,he),this.showTextEditor()},ue.prototype.setColor=function(ce){this.textElement&&ke.setAttributes(this.textElement,[["fill",ce]]),this.color=ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ce)},ue.prototype.setFont=function(ce){this.textElement&&ke.setAttributes(this.textElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ue.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ue.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){var he=ce;this.color=he.color,this.fontFamily=he.fontFamily,this.padding=he.padding,this.text=he.text,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setSize(),this.sizeText(),this.positionTextEditor()},ue.typeName="TextMarker",ue.title="Text marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',ue}(lt),Rt=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=fe.defaultColor,le.lineWidth=fe.defaultStrokeWidth,le.pixelRatio=fe.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new rt("Color",fe.defaultColorSet,fe.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new Ce("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.drawingImage)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.drawingImage=ke.createImage(),this.visual.appendChild(this.drawingImage);var ce=ke.createTransform();this.visual.transform.baseVal.appendItem(ce),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ce,he){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ce.x,ce.y),this.drawing=!0):De.prototype.pointerDown.call(this,ce,he)},ue.prototype.manipulate=function(ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ce.x,ce.y),this.canvasContext.stroke()):De.prototype.manipulate.call(this,ce)},ue.prototype.resize=function(ce){De.prototype.resize.call(this,ce),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):De.prototype.pointerUp.call(this,ce)},ue.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},ue.prototype.select=function(){this.state==="creating"&&this.finishCreation(),De.prototype.select.call(this)},ue.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),De.prototype.deselect.call(this)},ue.prototype.finishCreation=function(){for(var ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),he=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],fe=he[0],le=he[1],Me=he[2],Ve=he[3],ft=!1,Ht=0;Ht<this.canvasElement.height;Ht++)for(var Zt=0;Zt<this.canvasElement.width;Zt++)ce.data[Ht*this.canvasElement.width*4+4*Zt+3]>0&&(ft=!0,Ht<le&&(le=Ht),Zt<fe&&(fe=Zt),Ht>Ve&&(Ve=Ht),Zt>Me&&(Me=Zt));if(ft){this.left=fe/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Me-fe)/this.pixelRatio,this.height=(Ve-le)/this.pixelRatio;var jt=document.createElement("canvas");jt.width=Me-fe,jt.height=Ve-le,jt.getContext("2d").putImageData(this.canvasContext.getImageData(fe,le,Me-fe,Ve-le),0,0),this.drawingImgUrl=jt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ue.prototype.setDrawingImage=function(){ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ue.prototype.setColor=function(ce){this.color=ce,this.colorChanged(ce)},ue.prototype.setLineWidth=function(ce){this.lineWidth=ce},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({drawingImgUrl:this.drawingImgUrl},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){this.createVisual(),De.prototype.restoreState.call(this,ce),this.drawingImgUrl=ce.drawingImgUrl,this.setDrawingImage()},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setDrawingImage()},ue.typeName="FreehandMarker",ue.title="Freehand marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',ue}(lt),yn=function(De){function ue(ce,he,fe){var le=De.call(this,ce,fe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return le.typeBoxes=[],le.currentType=he,le.setCurrentType=le.setCurrentType.bind(le),le}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2";for(var fe=function(Ve){var ft="both";switch(Ve){case 0:ft="both";break;case 1:ft="start";break;case 2:ft="end";break;case 3:ft="none"}var Ht=document.createElement("div");if(Ht.style.display="flex",Ht.style.flexGrow="2",Ht.style.alignItems="center",Ht.style.justifyContent="space-between",Ht.style.padding="5px",Ht.style.borderWidth="2px",Ht.style.borderStyle="solid",Ht.style.borderColor=ft===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",Ht.addEventListener("click",function(){ce.setCurrentType(ft,Ht)}),he.appendChild(Ht),ft==="both"||ft==="start"){var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.alignItems="center",Zt.style.minHeight="20px",Zt.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="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Zt.style.marginLeft="5px",Ht.appendChild(Zt)}var jt=document.createElement("div");jt.style.display="flex",jt.style.alignItems="center",jt.style.minHeight="20px",jt.style.flexGrow="2";var $t=document.createElement("hr");if($t.style.minWidth="20px",$t.style.border="0px",$t.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),$t.style.flexGrow="2",jt.appendChild($t),Ht.appendChild(jt),ft==="both"||ft==="end"){var Je=document.createElement("div");Je.style.display="flex",Je.style.alignItems="center",Je.style.minHeight="20px",Je.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="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Je.style.marginRight="5px",Ht.appendChild(Je)}le.typeBoxes.push(Ht)},le=this,Me=0;Me<4;Me++)fe(Me);return he},ue.prototype.setCurrentType=function(ce,he){var fe=this;this.currentType=ce,this.typeBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ue}(ct),tn=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new yn("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.arrow1&&ce!==this.arrow2)},ue.prototype.getArrowPoints=function(ce,he){var fe=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ce-fe/2+","+(he+le/2)+" "+ce+","+(he-le/2)+" "+(ce+fe/2)+","+(he+le/2)},ue.prototype.createTips=function(){this.arrow1=ke.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ke.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow2)},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(De.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",ke.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ke.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ce=0;Math.abs(this.x1-this.x2)>.1&&(ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var he=this.arrow1.transform.baseVal.getItem(0);he.setRotate(ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(he,0);var fe=this.arrow2.transform.baseVal.getItem(0);fe.setRotate(ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(fe,0)}},ue.prototype.setArrowType=function(ce){this.arrowType=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({arrowType:this.arrowType},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.arrowType=he.arrowType,this.createTips(),this.adjustVisual()},ue.typeName="ArrowMarker",ue.title="Arrow marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ue}(Ft),Hn=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.fillColor=fe.defaultFillColor,le.strokeWidth=0,le.fillPanel=new rt("Color",fe.defaultColorSet,fe.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return Pe(ue,De),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="CoverMarker",ue.title="Cover marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ue}(Se),Yn=function(De){function ue(ce,he,fe,le){var Me=De.call(this,ce,le||'<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 Me.opacities=[],Me.opacityBoxes=[],Me.opacities=he,Me.currentOpacity=fe,Me.setCurrentOpacity=Me.setCurrentOpacity.bind(Me),Me}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",he.style.justifyContent="space-between",this.opacities.forEach(function(fe){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=fe===ce.currentOpacity?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentOpacity(fe,le)}),he.appendChild(le);var Me=document.createElement("div");Me.innerText=100*fe+"%",le.appendChild(Me),ce.opacityBoxes.push(le)}),he},ue.prototype.setCurrentOpacity=function(ce,he){var fe=this;this.currentOpacity=ce,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ue}(ct),tr=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=fe.defaultHighlightColor,le.strokeWidth=0,le.opacity=fe.defaultHighlightOpacity,le.fillPanel=new rt("Color",fe.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new Yn("Opacity",fe.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return Pe(ue,De),ue.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&ke.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="HighlightMarker",ue.title="Highlight marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',ue}(Hn),Qe='<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>',we='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',At=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=fe.defaultStrokeColor,le.bgColor=fe.defaultFillColor,le.fontFamily=fe.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new rt("Text color",fe.defaultColorSet,le.color,Qe),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new rt("Fill color",fe.defaultColorSet,le.bgColor,we),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new tt("Font",fe.defaultFontFamilies,fe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new Yt,le.tipGrip.visual.transform.baseVal.appendItem(ke.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return De.prototype.ownsTarget.call(this,ce)||this.tipGrip.ownsTarget(ce)||this.tip===ce},ue.prototype.createTip=function(){ke.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ke.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ue.prototype.pointerDown=function(ce,he){this.state==="new"&&De.prototype.pointerDown.call(this,ce,he),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(he)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):De.prototype.pointerDown.call(this,ce,he)},ue.prototype.pointerUp=function(ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,De.prototype.pointerUp.call(this,ce);else{var he=this.state==="creating";De.prototype.pointerUp.call(this,ce),this.setTipPoints(he),this.positionTip()}},ue.prototype.manipulate=function(ce){if(this.tipMoving){var he=this.unrotatePoint(ce);this.tipPosition={x:he.x-this.manipulationStartLeft,y:he.y-this.manipulationStartTop},this.positionTip()}else De.prototype.manipulate.call(this,ce)},ue.prototype.setBgColor=function(ce){this.bgRectangle&&this.tip&&(ke.setAttributes(this.bgRectangle,[["fill",ce]]),ke.setAttributes(this.tip,[["fill",ce]])),this.bgColor=ce,this.fillColorChanged(ce)},ue.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},ue.prototype.setTipPoints=function(ce){ce===void 0&&(ce=!1);var he=Math.min(this.height/2,15),fe=this.height/5;ce&&(this.tipPosition={x:he+fe/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(fe=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:he,y:0},this.tipBase2Position={x:he+fe,y:0}):(this.tipBase1Position={x:0,y:he},this.tipBase2Position={x:0,y:he+fe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(fe=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-he-fe,y:0},this.tipBase2Position={x:this.width-he,y:0}):(this.tipBase1Position={x:this.width,y:he},this.tipBase2Position={x:this.width,y:he+fe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(fe=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-he-fe,y:this.height},this.tipBase2Position={x:this.width-he,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-he-fe},this.tipBase2Position={x:this.width,y:this.height-he}):le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(fe=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:he,y:this.height},this.tipBase2Position={x:he+fe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-he},this.tipBase2Position={x:0,y:this.height-he-fe})},ue.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.positionTip()},ue.prototype.positionTip=function(){ke.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ce=this.tipGrip.visual.transform.baseVal.getItem(0);ce.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ce,0)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.select=function(){this.positionTip(),De.prototype.select.call(this)},ue.prototype.getState=function(){var ce=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){var he=ce;this.bgColor=he.bgColor,this.tipPosition=he.tipPosition,De.prototype.restoreState.call(this,ce),this.createTip(),this.setTipPoints()},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.tipPosition={x:this.tipPosition.x*ce,y:this.tipPosition.y*he},this.positionTip()},ue.typeName="CalloutMarker",ue.title="Callout marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',ue}(Jt),Mn=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.strokeColor=fe.defaultColor,le.strokeWidth=fe.defaultStrokeWidth,le.strokeDasharray=fe.defaultStrokeDasharray,le.fillColor=fe.defaultFillColor,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.setOpacity=le.setOpacity.bind(le),le.createVisual=le.createVisual.bind(le),le.strokePanel=new rt("Line color",ve(fe.defaultColorSet,["transparent"]),fe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new rt("Fill color",ve(fe.defaultColorSet,["transparent"]),le.fillColor,we),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Ce("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.opacityPanel=new Yn("Opacity",fe.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},ue.prototype.createVisual=function(){this.visual=ke.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ue.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce)},ue.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.setSize()},ue.prototype.setSize=function(){De.prototype.setSize.call(this),ke.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ue.prototype.pointerUp=function(ce){De.prototype.pointerUp.call(this,ce),this.setSize()},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},ue.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&ke.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.opacity=he.opacity,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setSize()},ue.typeName="EllipseMarker",ue.title="Ellipse marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ue}(lt),_t=function(De){function ue(ce,he,fe){return De.call(this,ce,he,fe)||this}return Pe(ue,De),Object.defineProperty(ue.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.tip1&&ce!==this.tip2)},ue.prototype.createTips=function(){this.tip1=ke.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(ke.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ke.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(ke.createTransform()),this.visual.appendChild(this.tip2)},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(De.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ke.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()]]),ke.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),he=this.tip1.transform.baseVal.getItem(0);he.setRotate(ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(he,0);var fe=this.tip2.transform.baseVal.getItem(0);fe.setRotate(ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(fe,0)}},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce),this.createTips(),this.adjustVisual()},ue.typeName="MeasurementMarker",ue.title="Measurement marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',ue}(Ft),$e=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.strokePanel.colors=fe.defaultColorSet,le.fillColor="transparent",le}return Pe(ue,De),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="EllipseFrameMarker",ue.title="Ellipse frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ue}(Mn),dt=function(){function De(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(De.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),De.prototype.addUndoStep=function(ue){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ue)||(this.undoStack.push(ue),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ue)&&this.redoStack.splice(0,this.redoStack.length))},De.prototype.replaceLastUndoStep=function(ue){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ue)},De.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},De.prototype.undo=function(){if(this.undoStack.length>1){var ue=this.undoStack.pop();return ue!==void 0&&this.redoStack.push(ue),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},De.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},De}(),qt=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=fe.defaultColor,le.strokeWidth=fe.defaultStrokeWidth,le.strokeDasharray=fe.defaultStrokeDasharray,le.strokePanel=new rt("Line color",fe.defaultColorSet,fe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorCurve&&ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(ce))},ue.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorCurve=ke.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ke.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ce.x,this.curveY=ce.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(he)&&(this.activeGrip=this.curveGrip,this._state="resize")},ue.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ke.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setupControlBox=function(){De.prototype.setupControlBox.call(this),this.curveControlLine1=ke.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ke.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},ue.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,De.prototype.addControlGrips.call(this)},ue.prototype.positionGrips=function(){De.prototype.positionGrips.call(this);var ce=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ce/2,this.curveY-ce/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},ue.prototype.manipulate=function(ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ce.y-this.manipulationStartY),De.prototype.manipulate.call(this,ce)},ue.prototype.resize=function(ce){this.activeGrip===this.curveGrip&&(this.curveX=ce.x,this.curveY=ce.y),De.prototype.resize.call(this,ce),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual()},ue.prototype.scale=function(ce,he){this.curveX=this.curveX*ce,this.curveY=this.curveY*he,De.prototype.scale.call(this,ce,he)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.curveX=he.curveX,this.curveY=he.curveY,this.createVisual(),this.adjustVisual()},ue.typeName="CurveMarker",ue.title="Curve marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',ue}(ht),Xn=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=fe.defaultColor,le.strokeWidth=fe.defaultStrokeWidth,le.strokeDasharray=fe.defaultStrokeDasharray,le.fillColor=fe.defaultFillColor,le.textColor=fe.defaultStrokeColor,le.fontFamily=fe.defaultFontFamily,le.fontSize=fe.defaultCaptionFontSize,le.captionText=fe.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new rt("Line color",ve(fe.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new rt("Fill color",ve(fe.defaultColorSet,["transparent"]),le.fillColor,we),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Ce("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new tt("Font",fe.defaultFontFamilies,fe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new rt("Text color",fe.defaultColorSet,le.textColor,Qe),le.textColorPanel.onColorChanged=le.setTextColor,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.frame&&ce!==this.captionBg&&ce!==this.captionElement)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ke.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ke.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=ke.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},ue.prototype.setCaptionText=function(ce){this.captionText=ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ue.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.setSize()},ue.prototype.sizeCaption=function(){var ce=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ce.width+2*this.PADDING,this.captionBoxHeight=ce.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ke.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')"]]),ke.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},ue.prototype.showTextEditor=function(){var ce=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(he){he.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(he){he.key==="Enter"&&ce.finishTextEditing(ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ue.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},ue.prototype.finishTextEditing=function(ce){this.setCaptionText(ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ue.prototype.setFont=function(ce){this.captionElement&&ke.setAttributes(this.captionElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ue.prototype.setTextColor=function(ce){this.captionElement&&ke.setAttributes(this.captionElement,[["fill",ce]]),this.textColor=ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ue.prototype.setSize=function(){De.prototype.setSize.call(this),ke.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ue.prototype.pointerUp=function(ce){De.prototype.pointerUp.call(this,ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.dblClick=function(ce,he){De.prototype.dblClick.call(this,ce,he),this.showTextEditor()},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.frame&&ke.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},ue.prototype.setFillColor=function(ce){this.fillColor=ce,this.captionBg&&ke.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.frame&&ke.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.frame&&ke.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},De.prototype.getState.call(this));return ce.typeName=this.typeName,ce},ue.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.textColor=he.textColor,this.fontFamily=he.fontFamily,this.captionText=he.captionText,this.fontSize=he.fontSize,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setSize()},ue.typeName="CaptionFrameMarker",ue.title="Caption frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',ue}(lt),bn=function(){function De(ue,ce){ce===void 0&&(ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ue,this.cancelable=ce}return Object.defineProperty(De.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),De.prototype.preventDefault=function(){this._defaultPrevented=!0},De}(),un=function(De){function ue(ce,he,fe){var le=De.call(this,ce,!1)||this;return le.dataUrl=he,le.state=fe,le}return Pe(ue,De),ue}(bn),nn=function(De){function ue(ce,he,fe){fe===void 0&&(fe=!1);var le=De.call(this,ce,fe)||this;return le.marker=he,le}return Pe(ue,De),ue}(bn),xn=function(){function De(){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 De.prototype.addEventListener=function(ue,ce){this[ue].push(ce)},De.prototype.removeEventListener=function(ue,ce){var he=this[ue].indexOf(ce);he>-1&&this[ue].splice(he,1)},De}(),Pn=function(){function De(ue){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Mt,this._isOpen=!1,this.undoRedoManager=new dt,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 xn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=De.instanceCounter++,this.styles=new Ie(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ue,this.targetRoot=document.body,this.width=ue.clientWidth,this.height=ue.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(De.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ue,Rt,tn,Jt,$e,Mn,tr,At,_t,Hn,Ft,qt,Xn]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ue,Rt,tn,Jt,Mn,tr,At]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ue,Rt,tn,Jt,tr]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ue){var ce=this;this._availableMarkerTypes.splice(0),ue.forEach(function(he){if(typeof he=="string"){var fe=ce.ALL_MARKER_TYPES.find(function(le){return le.typeName===he});fe!==void 0&&ce._availableMarkerTypes.push(fe)}else ce._availableMarkerTypes.push(he)})},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ue){this._zoomLevel=ue,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),De.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Le.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},De.prototype.show=function(){var ue=this;this.styles.styleSheetRoot===void 0&&me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ce){return ce(new bn(ue))})},De.prototype.render=function(){return Re(this,void 0,void 0,function(){var ue;return qe(this,function(ce){switch(ce.label){case 0:return this.setCurrentMarker(),(ue=new xe).naturalSize=this.renderAtNaturalSize,ue.imageType=this.renderImageType,ue.imageQuality=this.renderImageQuality,ue.markersOnly=this.renderMarkersOnly,ue.width=this.renderWidth,ue.height=this.renderHeight,[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ce.sent(),[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ce.sent()]}})})},De.prototype.close=function(ue){var ce=this;if(ue===void 0&&(ue=!1),this.isOpen){var he=!1;ue||this.eventListeners.beforeclose.forEach(function(fe){var le=new bn(ce,!0);fe(le),le.defaultPrevented&&(he=!0)}),he||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(fe){return fe(new bn(ce))}),this.detachEvents(),this._isOpen=!1)}},De.prototype.addMarkersToToolbar=function(){for(var ue,ce=[],he=0;he<arguments.length;he++)ce[he]=arguments[he];(ue=this._availableMarkerTypes).push.apply(ue,ce)},De.prototype.addRenderEventListener=function(ue){this.addEventListener("render",function(ce){ue(ce.dataUrl,ce.state)})},De.prototype.removeRenderEventListener=function(ue){},De.prototype.addCloseEventListener=function(ue){this.addEventListener("close",function(){ue()})},De.prototype.removeCloseEventListener=function(ue){},De.prototype.setupResizeObserver=function(){var ue=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ue.resize(ue.target.clientWidth,ue.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ue.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},De.prototype.onPopupTargetResize=function(){var ue=1*this.target.clientWidth/this.target.clientHeight,ce=this.editorCanvas.clientWidth/ue>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ue:this.editorCanvas.clientWidth,he=ce<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ue;this.resize(ce,he)},De.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},De.prototype.resize=function(ue,ce){this._isResizing=!0;var he=ue/this.imageWidth,fe=ce/this.imageHeight;this.imageWidth=Math.round(ue),this.imageHeight=Math.round(ce),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(he,fe),this._isResizing=!1},De.prototype.scaleMarkers=function(ue,ce){var he,fe=this;this._currentMarker&&this._currentMarker instanceof Jt?this._currentMarker.scale(ue,ce):(he=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(le){le!==fe._currentMarker&&le.scale(ue,ce)}),he!==void 0&&this.setCurrentMarker(he)},De.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"},De.prototype.setTopLeft=function(){var ue=this.editingTarget.getBoundingClientRect(),ce=this.editorCanvas.getBoundingClientRect();this.left=ue.left-ce.left,this.top=ue.top-ce.top},De.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)},De.prototype.addDefs=function(){for(var ue,ce=[],he=0;he<arguments.length;he++)ce[he]=arguments[he];this.defs=ke.createDefs(),this.addDefsToImage(),(ue=this.defs).append.apply(ue,ce)},De.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},De.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)},De.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},De.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},De.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)},De.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},De.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)},De.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var ue=document.createElement("a");ue.href="https://markerjs.com/",ue.target="_blank",ue.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',ue.title="Powered by marker.js",ue.style.display="grid",ue.style.alignItems="center",ue.style.justifyItems="center",ue.style.padding="3px",ue.style.width="20px",ue.style.height="20px",this.logoUI.appendChild(ue),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},De.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")},De.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"},De.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},De.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var ue=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ue+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new xt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new pt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},De.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},De.prototype.removeMarker=function(ue){this.markerImage.removeChild(ue.container),this.markers.indexOf(ue)>-1&&this.markers.splice(this.markers.indexOf(ue),1),ue.dispose()},De.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())},De.prototype.toolbarButtonClicked=function(ue,ce){if(ue==="marker"&&ce!==void 0)this.createNewMarker(ce);else if(ue==="action")switch(ce){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},De.prototype.deleteSelectedMarker=function(){var ue=this;if(this._currentMarker!==void 0){var ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(fe){var le=new nn(ue,ue._currentMarker,!0);fe(le),le.defaultPrevented&&(ce=!0)}),!ce){var he=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(fe){return fe(new nn(ue,he))})}}},De.prototype.clear=function(){var ue=this,ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Me){var Ve=new nn(ue,void 0,!0);Me(Ve),Ve.defaultPrevented&&(ce=!0)}),!ce)){this.setCurrentMarker();for(var he=function(Me){var Ve=fe.markers[Me];fe.setCurrentMarker(fe.markers[Me]),fe._currentMarker.dispose(),fe.markerImage.removeChild(fe._currentMarker.container),fe.markers.splice(fe.markers.indexOf(fe._currentMarker),1),fe.eventListeners.markerdelete.forEach(function(ft){return ft(new nn(ue,Ve))})},fe=this,le=this.markers.length-1;le>=0;le--)he(le);this.addUndoStep()}},Object.defineProperty(De.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),De.prototype.showNotesEditor=function(){var ue;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(ue=this._currentMarker.notes)!==null&&ue!==void 0?ue:"",this.overlayContainer.appendChild(this.notesArea))},De.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)},De.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},De.prototype.addUndoStep=function(){var ue=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ce=this.getState(),he=this.undoRedoManager.getLastUndoStep();if(!he||he.width===ce.width&&he.height===ce.height){var fe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ce),fe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(le){return le(new bn(ue))})}else this.undoRedoManager.replaceLastUndoStep(ce),this.eventListeners.statechange.forEach(function(le){return le(new bn(ue))})}},De.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},De.prototype.undoStep=function(){var ue=this,ce=this.undoRedoManager.undo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(he){return he(new bn(ue))}))},De.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},De.prototype.redoStep=function(){var ue=this,ce=this.undoRedoManager.redo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(he){return he(new bn(ue))}))},De.prototype.stepZoom=function(){var ue=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ue<this.zoomSteps.length-1?this.zoomSteps[ue+1]:this.zoomSteps[0]},De.prototype.panTo=function(ue){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ue.x,top:this.prevPanPoint.y-ue.y}),this.prevPanPoint=ue},De.prototype.startRenderAndClose=function(){return Re(this,void 0,void 0,function(){var ue,ce,he=this;return qe(this,function(fe){switch(fe.label){case 0:return[4,this.render()];case 1:return ue=fe.sent(),ce=this.getState(),this.eventListeners.render.forEach(function(le){return le(new un(he,ue,ce))}),this.close(!0),[2]}})})},De.prototype.getState=function(ue){ue===!0&&this.setCurrentMarker();var ce={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(he){return ce.markers.push(he.getState())}),ce},De.prototype.restoreState=function(ue){var ce=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ue.markers.forEach(function(he){var fe=ce._availableMarkerTypes.find(function(Me){return Me.typeName===he.typeName});if(fe!==void 0){var le=ce.addNewMarker(fe);le.restoreState(he),ce.markers.push(le)}}),ue.width&&ue.height&&(ue.width!==this.imageWidth||ue.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ue.width,this.imageHeight/ue.height),this.eventListeners.restorestate.forEach(function(he){return he(new bn(ce))})},De.prototype.addNewMarker=function(ue){var ce=ke.createGroup();return this.markerImage.appendChild(ce),new ue(ce,this.overlayContainer,this.settings)},De.prototype.createNewMarker=function(ue){var ce,he=this;(ce=typeof ue=="string"?this._availableMarkerTypes.find(function(fe){return fe.typeName===ue}):ue)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ce),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ce.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(fe){return fe(new nn(he,he._currentMarker))}))},De.prototype.markerCreated=function(ue){var ce=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ue),this.setCurrentMarker(ue),ue instanceof Rt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Rt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(he){return he(new nn(ce,ce._currentMarker))})},De.prototype.colorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ue,this.settings.defaultStrokeColor=ue)},De.prototype.fillColorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ue)},De.prototype.markerStateChanged=function(ue){var ce=this;this.eventListeners.markerchange.forEach(function(he){return he(new nn(ce,ue))})},De.prototype.setCurrentMarker=function(ue){var ce=this;this._currentMarker!==ue&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(he){return he(new nn(ce,ce._currentMarker))})),this._currentMarker=ue,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(he){return he(new nn(ce,ce._currentMarker))}))},De.prototype.onPointerDown=function(ue){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ue.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ce=this.markers.find(function(he){return he.ownsTarget(ue.target)});ce!==void 0?(this.setCurrentMarker(ce),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ue.clientX,y:ue.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY))},De.prototype.onDblClick=function(ue){if(this._isFocused||this.focus(),this.mode==="select"){var ce=this.markers.find(function(he){return he.ownsTarget(ue.target)});ce!==void 0&&ce!==this._currentMarker&&this.setCurrentMarker(ce),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target):this.setCurrentMarker()}},De.prototype.onPointerMove=function(ue){this.touchPoints!==1&&ue.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ue.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ue.clientX,ue.clientY)):this.zoomLevel>1&&this.panTo({x:ue.clientX,y:ue.clientY}))},De.prototype.onPointerUp=function(ue){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ue.clientX,ue.clientY)),this.isDragging=!1,this.addUndoStep()},De.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},De.prototype.onKeyUp=function(ue){this._currentMarker===void 0||this.notesArea!==void 0||ue.key!=="Delete"&&ue.key!=="Backspace"||this.deleteSelectedMarker()},De.prototype.clientToLocalCoordinates=function(ue,ce){var he=this.markerImage.getBoundingClientRect();return{x:(ue-he.left)/this.zoomLevel,y:(ce-he.top)/this.zoomLevel}},De.prototype.onWindowResize=function(){this.positionUI()},De.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ue=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ue+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},De.prototype.addLicenseKey=function(ue){Le.addKey(ue)},De.prototype.addEventListener=function(ue,ce){this.eventListeners.addEventListener(ue,ce)},De.prototype.removeEventListener=function(ue,ce){this.eventListeners.removeEventListener(ue,ce)},De.prototype.renderState=function(ue){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ue),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(De.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),De.prototype.focus=function(){var ue=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ce){return ce(new bn(ue))}))},De.prototype.blur=function(){var ue=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ce){return ce(new bn(ue))}))},De.instanceCounter=0,De}()},95860:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Xe}});var ae=se(87462),Pe=se(1413),Re=se(4942),qe=se(97685),ve=se(45987),ke=se(94184),Le=se.n(ke),xe=se(67294);function me(lt){var Se=xe.useRef();Se.current=lt;var Ce=xe.useCallback(function(){for(var je,Ue=arguments.length,Mt=new Array(Ue),ht=0;ht<Ue;ht++)Mt[ht]=arguments[ht];return(je=Se.current)===null||je===void 0?void 0:je.call.apply(je,[Se].concat(Mt))},[]);return Ce}function Ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var st=Ie()?xe.useLayoutEffect:xe.useEffect,Ne=function(Se,Ce){var je=xe.useRef(!0);st(function(){return Se(je.current)},Ce),st(function(){return je.current=!1,function(){je.current=!0}},[])},xt=function(Se,Ce){Ne(function(je){if(!je)return Se()},Ce)},pt=null;function ct(lt){var Se=xe.useRef(!1),Ce=xe.useState(lt),je=(0,qe.Z)(Ce,2),Ue=je[0],Mt=je[1];xe.useEffect(function(){return Se.current=!1,function(){Se.current=!0}},[]);function ht(Ft,tt){tt&&Se.current||Mt(Ft)}return[Ue,ht]}function rt(lt){return lt!==void 0}function Ee(lt,Se){var Ce=Se||{},je=Ce.defaultValue,Ue=Ce.value,Mt=Ce.onChange,ht=Ce.postState,Ft=ct(function(){return rt(Ue)?Ue:rt(je)?typeof je=="function"?je():je:typeof lt=="function"?lt():lt}),tt=(0,qe.Z)(Ft,2),Jt=tt[0],Rt=tt[1],yn=Ue!==void 0?Ue:Jt,tn=ht?ht(yn):yn,Hn=me(Mt),Yn=ct([yn]),tr=(0,qe.Z)(Yn,2),Qe=tr[0],we=tr[1];xt(function(){var Mn=Qe[0];Jt!==Mn&&Hn(Jt,Mn)},[Qe]),xt(function(){rt(Ue)||Rt(Ue)},[Ue]);var At=me(function(Mn,_t){Rt(Mn,_t),we([yn],_t)});return[tn,At]}var at=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Yt=(0,xe.forwardRef)(function(lt,Se){var Ce,je=lt.prefixCls,Ue=je===void 0?"rc-checkbox":je,Mt=lt.className,ht=lt.style,Ft=lt.checked,tt=lt.disabled,Jt=lt.defaultChecked,Rt=Jt===void 0?!1:Jt,yn=lt.type,tn=yn===void 0?"checkbox":yn,Hn=lt.title,Yn=lt.onChange,tr=(0,ve.Z)(lt,at),Qe=(0,xe.useRef)(null),we=Ee(Rt,{value:Ft}),At=(0,qe.Z)(we,2),Mn=At[0],_t=At[1];(0,xe.useImperativeHandle)(Se,function(){return{focus:function(){var Xn;(Xn=Qe.current)===null||Xn===void 0||Xn.focus()},blur:function(){var Xn;(Xn=Qe.current)===null||Xn===void 0||Xn.blur()},input:Qe.current}});var $e=Le()(Ue,Mt,(Ce={},(0,Re.Z)(Ce,"".concat(Ue,"-checked"),Mn),(0,Re.Z)(Ce,"".concat(Ue,"-disabled"),tt),Ce)),dt=function(Xn){tt||("checked"in lt||_t(Xn.target.checked),Yn==null||Yn({target:(0,Pe.Z)((0,Pe.Z)({},lt),{},{type:tn,checked:Xn.target.checked}),stopPropagation:function(){Xn.stopPropagation()},preventDefault:function(){Xn.preventDefault()},nativeEvent:Xn.nativeEvent}))};return xe.createElement("span",{className:$e,title:Hn,style:ht},xe.createElement("input",(0,ae.Z)({},tr,{className:"".concat(Ue,"-input"),ref:Qe,onChange:dt,disabled:tt,checked:!!Mn,type:tn})),xe.createElement("span",{className:"".concat(Ue,"-inner")}))}),Xe=Yt},26819:function(dn,en){"use strict";var se;var ae=typeof Symbol=="function"&&Symbol.for,Pe=ae?Symbol.for("react.element"):60103,Re=ae?Symbol.for("react.portal"):60106,qe=ae?Symbol.for("react.fragment"):60107,ve=ae?Symbol.for("react.strict_mode"):60108,ke=ae?Symbol.for("react.profiler"):60114,Le=ae?Symbol.for("react.provider"):60109,xe=ae?Symbol.for("react.context"):60110,me=ae?Symbol.for("react.async_mode"):60111,Ie=ae?Symbol.for("react.concurrent_mode"):60111,st=ae?Symbol.for("react.forward_ref"):60112,Ne=ae?Symbol.for("react.suspense"):60113,xt=ae?Symbol.for("react.suspense_list"):60120,pt=ae?Symbol.for("react.memo"):60115,ct=ae?Symbol.for("react.lazy"):60116,rt=ae?Symbol.for("react.block"):60121,Ee=ae?Symbol.for("react.fundamental"):60117,at=ae?Symbol.for("react.responder"):60118,Yt=ae?Symbol.for("react.scope"):60119;function Xe(Se){if(typeof Se=="object"&&Se!==null){var Ce=Se.$$typeof;switch(Ce){case Pe:switch(Se=Se.type,Se){case me:case Ie:case qe:case ke:case ve:case Ne:return Se;default:switch(Se=Se&&Se.$$typeof,Se){case xe:case st:case ct:case pt:case Le:return Se;default:return Ce}}case Re:return Ce}}}function lt(Se){return Xe(Se)===Ie}se=me,se=Ie,se=xe,se=Le,se=Pe,se=st,se=qe,se=ct,se=pt,se=Re,se=ke,se=ve,se=Ne,se=function(Se){return lt(Se)||Xe(Se)===me},se=lt,se=function(Se){return Xe(Se)===xe},se=function(Se){return Xe(Se)===Le},se=function(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===Pe},se=function(Se){return Xe(Se)===st},se=function(Se){return Xe(Se)===qe},se=function(Se){return Xe(Se)===ct},en.isMemo=function(Se){return Xe(Se)===pt},se=function(Se){return Xe(Se)===Re},se=function(Se){return Xe(Se)===ke},se=function(Se){return Xe(Se)===ve},se=function(Se){return Xe(Se)===Ne},se=function(Se){return typeof Se=="string"||typeof Se=="function"||Se===qe||Se===Ie||Se===ke||Se===ve||Se===Ne||Se===xt||typeof Se=="object"&&Se!==null&&(Se.$$typeof===ct||Se.$$typeof===pt||Se.$$typeof===Le||Se.$$typeof===xe||Se.$$typeof===st||Se.$$typeof===Ee||Se.$$typeof===at||Se.$$typeof===Yt||Se.$$typeof===rt)},se=Xe},18459:function(dn,en,se){"use strict";dn.exports=se(26819)},16651:function(dn,en){"use strict";var se;var ae=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Le=Symbol.for("react.context"),xe=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),st=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),xt=Symbol.for("react.lazy"),pt=Symbol.for("react.offscreen"),ct;ct=Symbol.for("react.module.reference");function rt(Ee){if(typeof Ee=="object"&&Ee!==null){var at=Ee.$$typeof;switch(at){case ae:switch(Ee=Ee.type,Ee){case Re:case ve:case qe:case Ie:case st:return Ee;default:switch(Ee=Ee&&Ee.$$typeof,Ee){case xe:case Le:case me:case xt:case Ne:case ke:return Ee;default:return at}}case Pe:return at}}}se=Le,se=ke,se=ae,se=me,se=Re,se=xt,se=Ne,se=Pe,se=ve,se=qe,se=Ie,se=st,se=function(){return!1},se=function(){return!1},se=function(Ee){return rt(Ee)===Le},se=function(Ee){return rt(Ee)===ke},se=function(Ee){return typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===ae},se=function(Ee){return rt(Ee)===me},se=function(Ee){return rt(Ee)===Re},se=function(Ee){return rt(Ee)===xt},se=function(Ee){return rt(Ee)===Ne},se=function(Ee){return rt(Ee)===Pe},se=function(Ee){return rt(Ee)===ve},se=function(Ee){return rt(Ee)===qe},se=function(Ee){return rt(Ee)===Ie},se=function(Ee){return rt(Ee)===st},se=function(Ee){return typeof Ee=="string"||typeof Ee=="function"||Ee===Re||Ee===ve||Ee===qe||Ee===Ie||Ee===st||Ee===pt||typeof Ee=="object"&&Ee!==null&&(Ee.$$typeof===xt||Ee.$$typeof===Ne||Ee.$$typeof===ke||Ee.$$typeof===Le||Ee.$$typeof===me||Ee.$$typeof===ct||Ee.getModuleId!==void 0)},se=rt},33993:function(dn,en,se){"use strict";se(16651)},82523:function(dn,en){"use strict";var se;var ae=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Le=Symbol.for("react.context"),xe=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),st=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),xt=Symbol.for("react.lazy"),pt=Symbol.for("react.offscreen"),ct;ct=Symbol.for("react.module.reference");function rt(Ee){if(typeof Ee=="object"&&Ee!==null){var at=Ee.$$typeof;switch(at){case ae:switch(Ee=Ee.type,Ee){case Re:case ve:case qe:case Ie:case st:return Ee;default:switch(Ee=Ee&&Ee.$$typeof,Ee){case xe:case Le:case me:case xt:case Ne:case ke:return Ee;default:return at}}case Pe:return at}}}se=Le,se=ke,se=ae,se=me,se=Re,se=xt,se=Ne,se=Pe,se=ve,se=qe,se=Ie,se=st,se=function(){return!1},se=function(){return!1},se=function(Ee){return rt(Ee)===Le},se=function(Ee){return rt(Ee)===ke},se=function(Ee){return typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===ae},se=function(Ee){return rt(Ee)===me},se=function(Ee){return rt(Ee)===Re},se=function(Ee){return rt(Ee)===xt},se=function(Ee){return rt(Ee)===Ne},se=function(Ee){return rt(Ee)===Pe},se=function(Ee){return rt(Ee)===ve},se=function(Ee){return rt(Ee)===qe},se=function(Ee){return rt(Ee)===Ie},se=function(Ee){return rt(Ee)===st},se=function(Ee){return typeof Ee=="string"||typeof Ee=="function"||Ee===Re||Ee===ve||Ee===qe||Ee===Ie||Ee===st||Ee===pt||typeof Ee=="object"&&Ee!==null&&(Ee.$$typeof===xt||Ee.$$typeof===Ne||Ee.$$typeof===ke||Ee.$$typeof===Le||Ee.$$typeof===me||Ee.$$typeof===ct||Ee.getModuleId!==void 0)},se=rt},27183:function(dn,en,se){"use strict";se(82523)},67656:function(dn,en,se){"use strict";se.r(en),se.d(en,{BaseInput:function(){return Ie},default:function(){return Yt}});var ae=se(87462),Pe=se(1413),Re=se(4942),qe=se(71002),ve=se(94184),ke=se.n(ve),Le=se(67294),xe=se(87887),me=function(lt){var Se,Ce,je=lt.inputElement,Ue=lt.prefixCls,Mt=lt.prefix,ht=lt.suffix,Ft=lt.addonBefore,tt=lt.addonAfter,Jt=lt.className,Rt=lt.style,yn=lt.disabled,tn=lt.readOnly,Hn=lt.focused,Yn=lt.triggerFocus,tr=lt.allowClear,Qe=lt.value,we=lt.handleReset,At=lt.hidden,Mn=lt.classes,_t=lt.classNames,$e=lt.dataAttrs,dt=lt.styles,qt=lt.components,Xn=(qt==null?void 0:qt.affixWrapper)||"span",bn=(qt==null?void 0:qt.groupWrapper)||"span",un=(qt==null?void 0:qt.wrapper)||"span",nn=(qt==null?void 0:qt.groupAddon)||"span",xn=(0,Le.useRef)(null),Pn=function(jt){var $t;($t=xn.current)!==null&&$t!==void 0&&$t.contains(jt.target)&&(Yn==null||Yn())},De=function(){var jt;if(!tr)return null;var $t=!yn&&!tn&&Qe,Je="".concat(Ue,"-clear-icon"),Et=(0,qe.Z)(tr)==="object"&&tr!==null&&tr!==void 0&&tr.clearIcon?tr.clearIcon:"\u2716";return Le.createElement("span",{onClick:we,onMouseDown:function(Xt){return Xt.preventDefault()},className:ke()(Je,(jt={},(0,Re.Z)(jt,"".concat(Je,"-hidden"),!$t),(0,Re.Z)(jt,"".concat(Je,"-has-suffix"),!!ht),jt)),role:"button",tabIndex:-1},Et)},ue=(0,Le.cloneElement)(je,{value:Qe,hidden:At,className:ke()((Se=je.props)===null||Se===void 0?void 0:Se.className,!(0,xe.X3)(lt)&&!(0,xe.He)(lt)&&Jt)||null,style:(0,Pe.Z)((0,Pe.Z)({},(Ce=je.props)===null||Ce===void 0?void 0:Ce.style),!(0,xe.X3)(lt)&&!(0,xe.He)(lt)?Rt:{})});if((0,xe.X3)(lt)){var ce,he="".concat(Ue,"-affix-wrapper"),fe=ke()(he,(ce={},(0,Re.Z)(ce,"".concat(he,"-disabled"),yn),(0,Re.Z)(ce,"".concat(he,"-focused"),Hn),(0,Re.Z)(ce,"".concat(he,"-readonly"),tn),(0,Re.Z)(ce,"".concat(he,"-input-with-clear-btn"),ht&&tr&&Qe),ce),!(0,xe.He)(lt)&&Jt,Mn==null?void 0:Mn.affixWrapper,_t==null?void 0:_t.affixWrapper),le=(ht||tr)&&Le.createElement("span",{className:ke()("".concat(Ue,"-suffix"),_t==null?void 0:_t.suffix),style:dt==null?void 0:dt.suffix},De(),ht);ue=Le.createElement(Xn,(0,ae.Z)({className:fe,style:(0,Pe.Z)((0,Pe.Z)({},(0,xe.He)(lt)?void 0:Rt),dt==null?void 0:dt.affixWrapper),hidden:!(0,xe.He)(lt)&&At,onClick:Pn},$e==null?void 0:$e.affixWrapper,{ref:xn}),Mt&&Le.createElement("span",{className:ke()("".concat(Ue,"-prefix"),_t==null?void 0:_t.prefix),style:dt==null?void 0:dt.prefix},Mt),(0,Le.cloneElement)(je,{value:Qe,hidden:null}),le)}if((0,xe.He)(lt)){var Me="".concat(Ue,"-group"),Ve="".concat(Me,"-addon"),ft=ke()("".concat(Ue,"-wrapper"),Me,Mn==null?void 0:Mn.wrapper),Ht=ke()("".concat(Ue,"-group-wrapper"),Jt,Mn==null?void 0:Mn.group);return Le.createElement(bn,{className:Ht,style:Rt,hidden:At},Le.createElement(un,{className:ft},Ft&&Le.createElement(nn,{className:Ve},Ft),(0,Le.cloneElement)(ue,{hidden:null}),tt&&Le.createElement(nn,{className:Ve},tt)))}return ue},Ie=me,st=se(74902),Ne=se(97685),xt=se(45987),pt=se(21770),ct=se(98423),rt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Ee=(0,Le.forwardRef)(function(Xe,lt){var Se=Xe.autoComplete,Ce=Xe.onChange,je=Xe.onFocus,Ue=Xe.onBlur,Mt=Xe.onPressEnter,ht=Xe.onKeyDown,Ft=Xe.prefixCls,tt=Ft===void 0?"rc-input":Ft,Jt=Xe.disabled,Rt=Xe.htmlSize,yn=Xe.className,tn=Xe.maxLength,Hn=Xe.suffix,Yn=Xe.showCount,tr=Xe.type,Qe=tr===void 0?"text":tr,we=Xe.classes,At=Xe.classNames,Mn=Xe.styles,_t=(0,xt.Z)(Xe,rt),$e=(0,pt.Z)(Xe.defaultValue,{value:Xe.value}),dt=(0,Ne.Z)($e,2),qt=dt[0],Xn=dt[1],bn=(0,Le.useState)(!1),un=(0,Ne.Z)(bn,2),nn=un[0],xn=un[1],Pn=(0,Le.useRef)(null),De=function(Ht){Pn.current&&(0,xe.nH)(Pn.current,Ht)};(0,Le.useImperativeHandle)(lt,function(){return{focus:De,blur:function(){var Ht;(Ht=Pn.current)===null||Ht===void 0||Ht.blur()},setSelectionRange:function(Ht,Zt,jt){var $t;($t=Pn.current)===null||$t===void 0||$t.setSelectionRange(Ht,Zt,jt)},select:function(){var Ht;(Ht=Pn.current)===null||Ht===void 0||Ht.select()},input:Pn.current}}),(0,Le.useEffect)(function(){xn(function(ft){return ft&&Jt?!1:ft})},[Jt]);var ue=function(Ht){Xe.value===void 0&&Xn(Ht.target.value),Pn.current&&(0,xe.rJ)(Pn.current,Ht,Ce)},ce=function(Ht){Mt&&Ht.key==="Enter"&&Mt(Ht),ht==null||ht(Ht)},he=function(Ht){xn(!0),je==null||je(Ht)},fe=function(Ht){xn(!1),Ue==null||Ue(Ht)},le=function(Ht){Xn(""),De(),Pn.current&&(0,xe.rJ)(Pn.current,Ht,Ce)},Me=function(){var Ht=(0,ct.Z)(Xe,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return Le.createElement("input",(0,ae.Z)({autoComplete:Se},Ht,{onChange:ue,onFocus:he,onBlur:fe,onKeyDown:ce,className:ke()(tt,(0,Re.Z)({},"".concat(tt,"-disabled"),Jt),At==null?void 0:At.input),style:Mn==null?void 0:Mn.input,ref:Pn,size:Rt,type:Qe}))},Ve=function(){var Ht=Number(tn)>0;if(Hn||Yn){var Zt=(0,xe.D7)(qt),jt=(0,st.Z)(Zt).length,$t=(0,qe.Z)(Yn)==="object"?Yn.formatter({value:Zt,count:jt,maxLength:tn}):"".concat(jt).concat(Ht?" / ".concat(tn):"");return Le.createElement(Le.Fragment,null,!!Yn&&Le.createElement("span",{className:ke()("".concat(tt,"-show-count-suffix"),(0,Re.Z)({},"".concat(tt,"-show-count-has-suffix"),!!Hn),At==null?void 0:At.count),style:(0,Pe.Z)({},Mn==null?void 0:Mn.count)},$t),Hn)}return null};return Le.createElement(Ie,(0,ae.Z)({},_t,{prefixCls:tt,className:yn,inputElement:Me(),handleReset:le,value:(0,xe.D7)(qt),focused:nn,triggerFocus:De,suffix:Ve(),disabled:Jt,classes:we,classNames:At,styles:Mn}))}),at=Ee,Yt=at},87887:function(dn,en,se){"use strict";se.d(en,{D7:function(){return ve},He:function(){return ae},X3:function(){return Pe},nH:function(){return qe},rJ:function(){return Re}});function ae(ke){return!!(ke.addonBefore||ke.addonAfter)}function Pe(ke){return!!(ke.prefix||ke.suffix||ke.allowClear)}function Re(ke,Le,xe,me){if(xe){var Ie=Le;if(Le.type==="click"){var st=ke.cloneNode(!0);Ie=Object.create(Le,{target:{value:st},currentTarget:{value:st}}),st.value="",xe(Ie);return}if(me!==void 0){Ie=Object.create(Le,{target:{value:ke},currentTarget:{value:ke}}),ke.value=me,xe(Ie);return}xe(Ie)}}function qe(ke,Le){if(ke){ke.focus(Le);var xe=Le||{},me=xe.cursor;if(me){var Ie=ke.value.length;switch(me){case"start":ke.setSelectionRange(0,0);break;case"end":ke.setSelectionRange(Ie,Ie);break;default:ke.setSelectionRange(0,Ie)}}}}function ve(ke){return typeof ke=="undefined"||ke===null?"":String(ke)}},78595:function(dn,en,se){"use strict";se.d(en,{iz:function(){return ri},ck:function(){return kr},BW:function(){return Jr},sN:function(){return kr},Wd:function(){return fn},ZP:function(){return He},Xl:function(){return $t}});var ae=se(87462),Pe=se(4942),Re=se(1413),qe=se(74902),ve=se(97685),ke=se(45987),Le=se(94184),xe=se.n(Le),me=se(67294),Ie=se(48555);function st(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ne=st()?me.useLayoutEffect:me.useEffect,xt=function(Ge,ut){var vt=me.useRef(!0);Ne(function(){return Ge(vt.current)},ut),Ne(function(){return vt.current=!1,function(){vt.current=!0}},[])},pt=function(Ge,ut){xt(function(vt){if(!vt)return Ge()},ut)},ct=xt,rt=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ee=void 0;function at(Ke,Ge){var ut=Ke.prefixCls,vt=Ke.invalidate,Kt=Ke.item,vn=Ke.renderItem,kn=Ke.responsive,yr=Ke.responsiveDisabled,Pr=Ke.registerSize,cr=Ke.itemKey,Wn=Ke.className,Fn=Ke.style,$n=Ke.children,rr=Ke.display,Ir=Ke.order,gr=Ke.component,fr=gr===void 0?"div":gr,wr=(0,ke.Z)(Ke,rt),Sr=kn&&!rr;function Nr(sn){Pr(cr,sn)}me.useEffect(function(){return function(){Nr(null)}},[]);var Fe=vn&&Kt!==Ee?vn(Kt):$n,We;vt||(We={opacity:Sr?0:1,height:Sr?0:Ee,overflowY:Sr?"hidden":Ee,order:kn?Ir:Ee,pointerEvents:Sr?"none":Ee,position:Sr?"absolute":Ee});var Wt={};Sr&&(Wt["aria-hidden"]=!0);var bt=me.createElement(fr,(0,ae.Z)({className:xe()(!vt&&ut,Wn),style:(0,Re.Z)((0,Re.Z)({},We),Fn)},Wt,wr,{ref:Ge}),Fe);return kn&&(bt=me.createElement(Ie.Z,{onResize:function(Ln){var zn=Ln.offsetWidth;Nr(zn)},disabled:yr},bt)),bt}var Yt=me.forwardRef(at);Yt.displayName="Item";var Xe=Yt;function lt(Ke){var Ge=me.useRef();Ge.current=Ke;var ut=me.useCallback(function(){for(var vt,Kt=arguments.length,vn=new Array(Kt),kn=0;kn<Kt;kn++)vn[kn]=arguments[kn];return(vt=Ge.current)===null||vt===void 0?void 0:vt.call.apply(vt,[Ge].concat(vn))},[]);return ut}var Se=se(73935),Ce=function(Ge){return+setTimeout(Ge,16)},je=function(Ge){return clearTimeout(Ge)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ce=function(Ge){return window.requestAnimationFrame(Ge)},je=function(Ge){return window.cancelAnimationFrame(Ge)});var Ue=0,Mt=new Map;function ht(Ke){Mt.delete(Ke)}var Ft=function(Ge){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ue+=1;var vt=Ue;function Kt(vn){if(vn===0)ht(vt),Ge();else{var kn=Ce(function(){Kt(vn-1)});Mt.set(vt,kn)}}return Kt(ut),vt};Ft.cancel=function(Ke){var Ge=Mt.get(Ke);return ht(Ge),je(Ge)};var tt=Ft;function Jt(Ke){if(typeof MessageChannel=="undefined")tt(Ke);else{var Ge=new MessageChannel;Ge.port1.onmessage=function(){return Ke()},Ge.port2.postMessage(void 0)}}function Rt(){var Ke=me.useRef(null),Ge=function(vt){Ke.current||(Ke.current=[],Jt(function(){(0,Se.unstable_batchedUpdates)(function(){Ke.current.forEach(function(Kt){Kt()}),Ke.current=null})})),Ke.current.push(vt)};return Ge}function yn(Ke,Ge){var ut=me.useState(Ge),vt=(0,ve.Z)(ut,2),Kt=vt[0],vn=vt[1],kn=lt(function(yr){Ke(function(){vn(yr)})});return[Kt,kn]}var tn=me.createContext(null),Hn=["component"],Yn=["className"],tr=["className"],Qe=function(Ge,ut){var vt=me.useContext(tn);if(!vt){var Kt=Ge.component,vn=Kt===void 0?"div":Kt,kn=(0,ke.Z)(Ge,Hn);return me.createElement(vn,(0,ae.Z)({},kn,{ref:ut}))}var yr=vt.className,Pr=(0,ke.Z)(vt,Yn),cr=Ge.className,Wn=(0,ke.Z)(Ge,tr);return me.createElement(tn.Provider,{value:null},me.createElement(Xe,(0,ae.Z)({ref:ut,className:xe()(yr,cr)},Pr,Wn)))},we=me.forwardRef(Qe);we.displayName="RawItem";var At=we,Mn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],_t="responsive",$e="invalidate";function dt(Ke){return"+ ".concat(Ke.length," ...")}function qt(Ke,Ge){var ut=Ke.prefixCls,vt=ut===void 0?"rc-overflow":ut,Kt=Ke.data,vn=Kt===void 0?[]:Kt,kn=Ke.renderItem,yr=Ke.renderRawItem,Pr=Ke.itemKey,cr=Ke.itemWidth,Wn=cr===void 0?10:cr,Fn=Ke.ssr,$n=Ke.style,rr=Ke.className,Ir=Ke.maxCount,gr=Ke.renderRest,fr=Ke.renderRawRest,wr=Ke.suffix,Sr=Ke.component,Nr=Sr===void 0?"div":Sr,Fe=Ke.itemComponent,We=Ke.onVisibleChange,Wt=(0,ke.Z)(Ke,Mn),bt=Fn==="full",sn=Rt(),Ln=yn(sn,null),zn=(0,ve.Z)(Ln,2),ar=zn[0],ot=zn[1],Ye=ar||0,yt=yn(sn,new Map),Qt=(0,ve.Z)(yt,2),_n=Qt[0],mn=Qt[1],ln=yn(sn,0),sr=(0,ve.Z)(ln,2),ir=sr[0],xr=sr[1],er=yn(sn,0),Tn=(0,ve.Z)(er,2),Er=Tn[0],zr=Tn[1],Br=yn(sn,0),Cr=(0,ve.Z)(Br,2),Dr=Cr[0],ui=Cr[1],ei=(0,me.useState)(null),ii=(0,ve.Z)(ei,2),Ti=ii[0],ea=ii[1],Si=(0,me.useState)(null),zi=(0,ve.Z)(Si,2),ai=zi[0],vi=zi[1],_i=me.useMemo(function(){return ai===null&&bt?Number.MAX_SAFE_INTEGER:ai||0},[ai,ar]),Ki=(0,me.useState)(!1),Ea=(0,ve.Z)(Ki,2),Ta=Ea[0],va=Ea[1],ra="".concat(vt,"-item"),Yi=Math.max(ir,Er),ki=Ir===_t,Ma=vn.length&&ki,Ri=Ir===$e,si=Ma||typeof Ir=="number"&&vn.length>Ir,Ui=(0,me.useMemo)(function(){var Wi=vn;return Ma?ar===null&&bt?Wi=vn:Wi=vn.slice(0,Math.min(vn.length,Ye/Wn)):typeof Ir=="number"&&(Wi=vn.slice(0,Ir)),Wi},[vn,Wn,ar,Ir,Ma]),ua=(0,me.useMemo)(function(){return Ma?vn.slice(_i+1):vn.slice(Ui.length)},[vn,Ui,Ma,_i]),ta=(0,me.useCallback)(function(Wi,Xi){var da;return typeof Pr=="function"?Pr(Wi):(da=Pr&&(Wi==null?void 0:Wi[Pr]))!==null&&da!==void 0?da:Xi},[Pr]),oa=(0,me.useCallback)(kn||function(Wi){return Wi},[kn]);function Bi(Wi,Xi,da){ai===Wi&&(Xi===void 0||Xi===Ti)||(vi(Wi),da||(va(Wi<vn.length-1),We==null||We(Wi)),Xi!==void 0&&ea(Xi))}function pa(Wi,Xi){ot(Xi.clientWidth)}function wa(Wi,Xi){mn(function(da){var Ca=new Map(da);return Xi===null?Ca.delete(Wi):Ca.set(Wi,Xi),Ca})}function fa(Wi,Xi){zr(Xi),xr(Er)}function Sa(Wi,Xi){ui(Xi)}function La(Wi){return _n.get(ta(Ui[Wi],Wi))}ct(function(){if(Ye&&typeof Yi=="number"&&Ui){var Wi=Dr,Xi=Ui.length,da=Xi-1;if(!Xi){Bi(0,null);return}for(var Ca=0;Ca<Xi;Ca+=1){var Ka=La(Ca);if(bt&&(Ka=Ka||0),Ka===void 0){Bi(Ca-1,void 0,!0);break}if(Wi+=Ka,da===0&&Wi<=Ye||Ca===da-1&&Wi+La(da)<=Ye){Bi(da,null);break}else if(Wi+Yi>Ye){Bi(Ca-1,Wi-Ka-Dr+Er);break}}wr&&La(0)+Dr>Ye&&ea(null)}},[Ye,_n,Er,Dr,ta,Ui]);var Va=Ta&&!!ua.length,ha={};Ti!==null&&Ma&&(ha={position:"absolute",left:Ti,top:0});var Ba={prefixCls:ra,responsive:Ma,component:Fe,invalidate:Ri},qa=yr?function(Wi,Xi){var da=ta(Wi,Xi);return me.createElement(tn.Provider,{key:da,value:(0,Re.Z)((0,Re.Z)({},Ba),{},{order:Xi,item:Wi,itemKey:da,registerSize:wa,display:Xi<=_i})},yr(Wi,Xi))}:function(Wi,Xi){var da=ta(Wi,Xi);return me.createElement(Xe,(0,ae.Z)({},Ba,{order:Xi,key:da,item:Wi,renderItem:oa,itemKey:da,registerSize:wa,display:Xi<=_i}))},Ya,so={order:Va?_i:Number.MAX_SAFE_INTEGER,className:"".concat(ra,"-rest"),registerSize:fa,display:Va};if(fr)fr&&(Ya=me.createElement(tn.Provider,{value:(0,Re.Z)((0,Re.Z)({},Ba),so)},fr(ua)));else{var _a=gr||dt;Ya=me.createElement(Xe,(0,ae.Z)({},Ba,so),typeof _a=="function"?_a(ua):_a)}var Aa=me.createElement(Nr,(0,ae.Z)({className:xe()(!Ri&&vt,rr),style:$n,ref:Ge},Wt),Ui.map(qa),si?Ya:null,wr&&me.createElement(Xe,(0,ae.Z)({},Ba,{responsive:ki,responsiveDisabled:!Ma,order:_i,className:"".concat(ra,"-suffix"),registerSize:Sa,display:!0,style:ha}),wr));return ki&&(Aa=me.createElement(Ie.Z,{onResize:pa,disabled:!Ma},Aa)),Aa}var Xn=me.forwardRef(qt);Xn.displayName="Overflow",Xn.Item=At,Xn.RESPONSIVE=_t,Xn.INVALIDATE=$e;var bn=Xn,un=bn,nn=se(21770),xn=se(80334),Pn=se(91881),De=me.createContext(null);function ue(Ke,Ge){return Ke===void 0?null:"".concat(Ke,"-").concat(Ge)}function ce(Ke){var Ge=me.useContext(De);return ue(Ge,Ke)}var he=se(56982),fe=["children","locked"],le=me.createContext(null);function Me(Ke,Ge){var ut=(0,Re.Z)({},Ke);return Object.keys(Ge).forEach(function(vt){var Kt=Ge[vt];Kt!==void 0&&(ut[vt]=Kt)}),ut}function Ve(Ke){var Ge=Ke.children,ut=Ke.locked,vt=(0,ke.Z)(Ke,fe),Kt=me.useContext(le),vn=(0,he.Z)(function(){return Me(Kt,vt)},[Kt,vt],function(kn,yr){return!ut&&(kn[0]!==yr[0]||!(0,Pn.Z)(kn[1],yr[1],!0))});return me.createElement(le.Provider,{value:vn},Ge)}var ft=[],Ht=me.createContext(null);function Zt(){return me.useContext(Ht)}var jt=me.createContext(ft);function $t(Ke){var Ge=me.useContext(jt);return me.useMemo(function(){return Ke!==void 0?[].concat((0,qe.Z)(Ge),[Ke]):Ge},[Ge,Ke])}var Je=me.createContext(null),Et=me.createContext({}),Lt=Et,Xt=se(15105),wt=se(75164),Nn=function(Ke){if(!Ke)return!1;if(Ke instanceof Element){if(Ke.offsetParent)return!0;if(Ke.getBBox){var Ge=Ke.getBBox(),ut=Ge.width,vt=Ge.height;if(ut||vt)return!0}if(Ke.getBoundingClientRect){var Kt=Ke.getBoundingClientRect(),vn=Kt.width,kn=Kt.height;if(vn||kn)return!0}}return!1};function et(Ke){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Nn(Ke)){var ut=Ke.nodeName.toLowerCase(),vt=["input","select","textarea","button"].includes(ut)||Ke.isContentEditable||ut==="a"&&!!Ke.getAttribute("href"),Kt=Ke.getAttribute("tabindex"),vn=Number(Kt),kn=null;return Kt&&!Number.isNaN(vn)?kn=vn:vt&&kn===null&&(kn=0),vt&&Ke.disabled&&(kn=null),kn!==null&&(kn>=0||Ge&&kn<0)}return!1}function It(Ke){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=(0,qe.Z)(Ke.querySelectorAll("*")).filter(function(vt){return et(vt,Ge)});return et(Ke,Ge)&&ut.unshift(Ke),ut}var gn=null;function hn(){gn=document.activeElement}function An(){gn=null}function Vn(){if(gn)try{gn.focus()}catch(Ke){}}function mr(Ke,Ge){if(Ge.keyCode===9){var ut=It(Ke),vt=ut[Ge.shiftKey?0:ut.length-1],Kt=vt===document.activeElement||Ke===document.activeElement;if(Kt){var vn=ut[Ge.shiftKey?ut.length-1:0];vn.focus(),Ge.preventDefault()}}}var ur=Xt.Z.LEFT,dr=Xt.Z.RIGHT,Fr=Xt.Z.UP,nr=Xt.Z.DOWN,_r=Xt.Z.ENTER,oi=Xt.Z.ESC,Wr=Xt.Z.HOME,xi=Xt.Z.END,ti=[Fr,nr,ur,dr];function Ct(Ke,Ge,ut,vt){var Kt,vn,kn,yr,Pr="prev",cr="next",Wn="children",Fn="parent";if(Ke==="inline"&&vt===_r)return{inlineTrigger:!0};var $n=(Kt={},(0,Pe.Z)(Kt,Fr,Pr),(0,Pe.Z)(Kt,nr,cr),Kt),rr=(vn={},(0,Pe.Z)(vn,ur,ut?cr:Pr),(0,Pe.Z)(vn,dr,ut?Pr:cr),(0,Pe.Z)(vn,nr,Wn),(0,Pe.Z)(vn,_r,Wn),vn),Ir=(kn={},(0,Pe.Z)(kn,Fr,Pr),(0,Pe.Z)(kn,nr,cr),(0,Pe.Z)(kn,_r,Wn),(0,Pe.Z)(kn,oi,Fn),(0,Pe.Z)(kn,ur,ut?Wn:Fn),(0,Pe.Z)(kn,dr,ut?Fn:Wn),kn),gr={inline:$n,horizontal:rr,vertical:Ir,inlineSub:$n,horizontalSub:Ir,verticalSub:Ir},fr=(yr=gr["".concat(Ke).concat(Ge?"":"Sub")])===null||yr===void 0?void 0:yr[vt];switch(fr){case Pr:return{offset:-1,sibling:!0};case cr:return{offset:1,sibling:!0};case Fn:return{offset:-1,sibling:!1};case Wn:return{offset:1,sibling:!1};default:return null}}function wn(Ke){for(var Ge=Ke;Ge;){if(Ge.getAttribute("data-menu-list"))return Ge;Ge=Ge.parentElement}return null}function Rn(Ke,Ge){for(var ut=Ke||document.activeElement;ut;){if(Ge.has(ut))return ut;ut=ut.parentElement}return null}function an(Ke,Ge){var ut=It(Ke,!0);return ut.filter(function(vt){return Ge.has(vt)})}function vr(Ke,Ge,ut){var vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ke)return null;var Kt=an(Ke,Ge),vn=Kt.length,kn=Kt.findIndex(function(yr){return ut===yr});return vt<0?kn===-1?kn=vn-1:kn-=1:vt>0&&(kn+=1),kn=(kn+vn)%vn,Kt[kn]}function lr(Ke,Ge,ut,vt,Kt,vn,kn,yr,Pr,cr){var Wn=me.useRef(),Fn=me.useRef();Fn.current=Ge;var $n=function(){wt.Z.cancel(Wn.current)};return me.useEffect(function(){return function(){$n()}},[]),function(rr){var Ir=rr.which;if([].concat(ti,[_r,oi,Wr,xi]).includes(Ir)){var gr,fr,wr,Sr=function(){gr=new Set,fr=new Map,wr=new Map;var Qt=vn();return Qt.forEach(function(_n){var mn=document.querySelector("[data-menu-id='".concat(ue(vt,_n),"']"));mn&&(gr.add(mn),wr.set(mn,_n),fr.set(_n,mn))}),gr};Sr();var Nr=fr.get(Ge),Fe=Rn(Nr,gr),We=wr.get(Fe),Wt=Ct(Ke,kn(We,!0).length===1,ut,Ir);if(!Wt&&Ir!==Wr&&Ir!==xi)return;(ti.includes(Ir)||[Wr,xi].includes(Ir))&&rr.preventDefault();var bt=function(Qt){if(Qt){var _n=Qt,mn=Qt.querySelector("a");mn!=null&&mn.getAttribute("href")&&(_n=mn);var ln=wr.get(Qt);yr(ln),$n(),Wn.current=(0,wt.Z)(function(){Fn.current===ln&&_n.focus()})}};if([Wr,xi].includes(Ir)||Wt.sibling||!Fe){var sn;!Fe||Ke==="inline"?sn=Kt.current:sn=wn(Fe);var Ln,zn=an(sn,gr);Ir===Wr?Ln=zn[0]:Ir===xi?Ln=zn[zn.length-1]:Ln=vr(sn,gr,Fe,Wt.offset),bt(Ln)}else if(Wt.inlineTrigger)Pr(We);else if(Wt.offset>0)Pr(We,!0),$n(),Wn.current=(0,wt.Z)(function(){Sr();var yt=Fe.getAttribute("aria-controls"),Qt=document.getElementById(yt),_n=vr(Qt,gr);bt(_n)},5);else if(Wt.offset<0){var ar=kn(We,!0),ot=ar[ar.length-2],Ye=fr.get(ot);Pr(ot,!1),bt(Ye)}}cr==null||cr(rr)}}function Gn(Ke){Promise.resolve().then(Ke)}var jn="__RC_UTIL_PATH_SPLIT__",nt=function(Ge){return Ge.join(jn)},mt=function(Ge){return Ge.split(jn)},Bt="rc-menu-more";function rn(){var Ke=me.useState({}),Ge=(0,ve.Z)(Ke,2),ut=Ge[1],vt=(0,me.useRef)(new Map),Kt=(0,me.useRef)(new Map),vn=me.useState([]),kn=(0,ve.Z)(vn,2),yr=kn[0],Pr=kn[1],cr=(0,me.useRef)(0),Wn=(0,me.useRef)(!1),Fn=function(){Wn.current||ut({})},$n=(0,me.useCallback)(function(Nr,Fe){var We=nt(Fe);Kt.current.set(We,Nr),vt.current.set(Nr,We),cr.current+=1;var Wt=cr.current;Gn(function(){Wt===cr.current&&Fn()})},[]),rr=(0,me.useCallback)(function(Nr,Fe){var We=nt(Fe);Kt.current.delete(We),vt.current.delete(Nr)},[]),Ir=(0,me.useCallback)(function(Nr){Pr(Nr)},[]),gr=(0,me.useCallback)(function(Nr,Fe){var We=vt.current.get(Nr)||"",Wt=mt(We);return Fe&&yr.includes(Wt[0])&&Wt.unshift(Bt),Wt},[yr]),fr=(0,me.useCallback)(function(Nr,Fe){return Nr.some(function(We){var Wt=gr(We,!0);return Wt.includes(Fe)})},[gr]),wr=function(){var Fe=(0,qe.Z)(vt.current.keys());return yr.length&&Fe.push(Bt),Fe},Sr=(0,me.useCallback)(function(Nr){var Fe="".concat(vt.current.get(Nr)).concat(jn),We=new Set;return(0,qe.Z)(Kt.current.keys()).forEach(function(Wt){Wt.startsWith(Fe)&&We.add(Kt.current.get(Wt))}),We},[]);return me.useEffect(function(){return function(){Wn.current=!0}},[]),{registerPath:$n,unregisterPath:rr,refreshOverflowKeys:Ir,isSubPathKey:fr,getKeyPath:gr,getKeys:wr,getSubPathKeys:Sr}}function Ze(Ke){var Ge=me.useRef(Ke);Ge.current=Ke;var ut=me.useCallback(function(){for(var vt,Kt=arguments.length,vn=new Array(Kt),kn=0;kn<Kt;kn++)vn[kn]=arguments[kn];return(vt=Ge.current)===null||vt===void 0?void 0:vt.call.apply(vt,[Ge].concat(vn))},[]);return Ke?ut:void 0}var St=Math.random().toFixed(5).toString().slice(2),Vt=0;function Nt(Ke){var Ge=(0,nn.Z)(Ke,{value:Ke}),ut=(0,ve.Z)(Ge,2),vt=ut[0],Kt=ut[1];return me.useEffect(function(){Vt+=1;var vn="".concat(St,"-").concat(Vt);Kt("rc-menu-uuid-".concat(vn))},[]),vt}var cn=se(15671),on=se(43144),Kn=se(60136),Hr=se(51630),hr=se(98423),or=se(42550);function Ar(Ke,Ge,ut,vt){var Kt=me.useContext(le),vn=Kt.activeKey,kn=Kt.onActive,yr=Kt.onInactive,Pr={active:vn===Ke};return Ge||(Pr.onMouseEnter=function(cr){ut==null||ut({key:Ke,domEvent:cr}),kn(Ke)},Pr.onMouseLeave=function(cr){vt==null||vt({key:Ke,domEvent:cr}),yr(Ke)}),Pr}function Lr(Ke){var Ge=me.useContext(le),ut=Ge.mode,vt=Ge.rtl,Kt=Ge.inlineIndent;if(ut!=="inline")return null;var vn=Ke;return vt?{paddingRight:vn*Kt}:{paddingLeft:vn*Kt}}function kt(Ke){var Ge=Ke.icon,ut=Ke.props,vt=Ke.children,Kt;return Ge===null||Ge===!1?null:(typeof Ge=="function"?Kt=me.createElement(Ge,(0,Re.Z)({},ut)):typeof Ge!="boolean"&&(Kt=Ge),Kt||vt||null)}var gt=["item"];function Dt(Ke){var Ge=Ke.item,ut=(0,ke.Z)(Ke,gt);return Object.defineProperty(ut,"item",{get:function(){return(0,xn.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Ge}}),ut}var En=["title","attribute","elementRef"],qn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Cn=["active"],Dn=function(Ke){(0,Kn.Z)(ut,Ke);var Ge=(0,Hr.Z)(ut);function ut(){return(0,cn.Z)(this,ut),Ge.apply(this,arguments)}return(0,on.Z)(ut,[{key:"render",value:function(){var Kt=this.props,vn=Kt.title,kn=Kt.attribute,yr=Kt.elementRef,Pr=(0,ke.Z)(Kt,En),cr=(0,hr.Z)(Pr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,xn.ZP)(!kn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),me.createElement(un.Item,(0,ae.Z)({},kn,{title:typeof vn=="string"?vn:void 0},cr,{ref:yr}))}}]),ut}(me.Component),In=me.forwardRef(function(Ke,Ge){var ut,vt=Ke.style,Kt=Ke.className,vn=Ke.eventKey,kn=Ke.warnKey,yr=Ke.disabled,Pr=Ke.itemIcon,cr=Ke.children,Wn=Ke.role,Fn=Ke.onMouseEnter,$n=Ke.onMouseLeave,rr=Ke.onClick,Ir=Ke.onKeyDown,gr=Ke.onFocus,fr=(0,ke.Z)(Ke,qn),wr=ce(vn),Sr=me.useContext(le),Nr=Sr.prefixCls,Fe=Sr.onItemClick,We=Sr.disabled,Wt=Sr.overflowDisabled,bt=Sr.itemIcon,sn=Sr.selectedKeys,Ln=Sr.onActive,zn=me.useContext(Lt),ar=zn._internalRenderMenuItem,ot="".concat(Nr,"-item"),Ye=me.useRef(),yt=me.useRef(),Qt=We||yr,_n=(0,or.x1)(Ge,yt),mn=$t(vn),ln=function(ii){return{key:vn,keyPath:(0,qe.Z)(mn).reverse(),item:Ye.current,domEvent:ii}},sr=Pr||bt,ir=Ar(vn,Qt,Fn,$n),xr=ir.active,er=(0,ke.Z)(ir,Cn),Tn=sn.includes(vn),Er=Lr(mn.length),zr=function(ii){if(!Qt){var Ti=ln(ii);rr==null||rr(Dt(Ti)),Fe(Ti)}},Br=function(ii){if(Ir==null||Ir(ii),ii.which===Xt.Z.ENTER){var Ti=ln(ii);rr==null||rr(Dt(Ti)),Fe(Ti)}},Cr=function(ii){Ln(vn),gr==null||gr(ii)},Dr={};Ke.role==="option"&&(Dr["aria-selected"]=Tn);var ui=me.createElement(Dn,(0,ae.Z)({ref:Ye,elementRef:_n,role:Wn===null?"none":Wn||"menuitem",tabIndex:yr?null:-1,"data-menu-id":Wt&&wr?null:wr},fr,er,Dr,{component:"li","aria-disabled":yr,style:(0,Re.Z)((0,Re.Z)({},Er),vt),className:xe()(ot,(ut={},(0,Pe.Z)(ut,"".concat(ot,"-active"),xr),(0,Pe.Z)(ut,"".concat(ot,"-selected"),Tn),(0,Pe.Z)(ut,"".concat(ot,"-disabled"),Qt),ut),Kt),onClick:zr,onKeyDown:Br,onFocus:Cr}),cr,me.createElement(kt,{props:(0,Re.Z)((0,Re.Z)({},Ke),{},{isSelected:Tn}),icon:sr}));return ar&&(ui=ar(ui,Ke,{selected:Tn})),ui});function Un(Ke,Ge){var ut=Ke.eventKey,vt=Zt(),Kt=$t(ut);return me.useEffect(function(){if(vt)return vt.registerPath(ut,Kt),function(){vt.unregisterPath(ut,Kt)}},[Kt]),vt?null:me.createElement(In,(0,ae.Z)({},Ke,{ref:Ge}))}var kr=me.forwardRef(Un),pn=["className","children"],di=function(Ge,ut){var vt=Ge.className,Kt=Ge.children,vn=(0,ke.Z)(Ge,pn),kn=me.useContext(le),yr=kn.prefixCls,Pr=kn.mode,cr=kn.rtl;return me.createElement("ul",(0,ae.Z)({className:xe()(yr,cr&&"".concat(yr,"-rtl"),"".concat(yr,"-sub"),"".concat(yr,"-").concat(Pr==="inline"?"inline":"vertical"),vt),role:"menu"},vn,{"data-menu-list":!0,ref:ut}),Kt)},Qr=me.forwardRef(di);Qr.displayName="SubMenuList";var Fi=Qr,Ni=se(50344);function Ci(Ke,Ge){return(0,Ni.Z)(Ke).map(function(ut,vt){if(me.isValidElement(ut)){var Kt,vn,kn=ut.key,yr=(Kt=(vn=ut.props)===null||vn===void 0?void 0:vn.eventKey)!==null&&Kt!==void 0?Kt:kn,Pr=yr==null;Pr&&(yr="tmp_key-".concat([].concat((0,qe.Z)(Ge),[vt]).join("-")));var cr={key:yr,eventKey:yr};return me.cloneElement(ut,cr)}return ut})}var Qi=se(62709),Ei={adjustX:1,adjustY:1},pi={topLeft:{points:["bl","tl"],overflow:Ei},topRight:{points:["br","tr"],overflow:Ei},bottomLeft:{points:["tl","bl"],overflow:Ei},bottomRight:{points:["tr","br"],overflow:Ei},leftTop:{points:["tr","tl"],overflow:Ei},leftBottom:{points:["br","bl"],overflow:Ei},rightTop:{points:["tl","tr"],overflow:Ei},rightBottom:{points:["bl","br"],overflow:Ei}},Hi={topLeft:{points:["bl","tl"],overflow:Ei},topRight:{points:["br","tr"],overflow:Ei},bottomLeft:{points:["tl","bl"],overflow:Ei},bottomRight:{points:["tr","br"],overflow:Ei},rightTop:{points:["tr","tl"],overflow:Ei},rightBottom:{points:["br","bl"],overflow:Ei},leftTop:{points:["tl","tr"],overflow:Ei},leftBottom:{points:["bl","br"],overflow:Ei}},$i=null;function ci(Ke,Ge,ut){if(Ge)return Ge;if(ut)return ut[Ke]||ut.other}var Mi={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ji(Ke){var Ge=Ke.prefixCls,ut=Ke.visible,vt=Ke.children,Kt=Ke.popup,vn=Ke.popupStyle,kn=Ke.popupClassName,yr=Ke.popupOffset,Pr=Ke.disabled,cr=Ke.mode,Wn=Ke.onVisibleChange,Fn=me.useContext(le),$n=Fn.getPopupContainer,rr=Fn.rtl,Ir=Fn.subMenuOpenDelay,gr=Fn.subMenuCloseDelay,fr=Fn.builtinPlacements,wr=Fn.triggerSubMenuAction,Sr=Fn.forceSubMenuRender,Nr=Fn.rootClassName,Fe=Fn.motion,We=Fn.defaultMotions,Wt=me.useState(!1),bt=(0,ve.Z)(Wt,2),sn=bt[0],Ln=bt[1],zn=rr?(0,Re.Z)((0,Re.Z)({},Hi),fr):(0,Re.Z)((0,Re.Z)({},pi),fr),ar=Mi[cr],ot=ci(cr,Fe,We),Ye=me.useRef(ot);cr!=="inline"&&(Ye.current=ot);var yt=(0,Re.Z)((0,Re.Z)({},Ye.current),{},{leavedClassName:"".concat(Ge,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Qt=me.useRef();return me.useEffect(function(){return Qt.current=(0,wt.Z)(function(){Ln(ut)}),function(){wt.Z.cancel(Qt.current)}},[ut]),me.createElement(Qi.Z,{prefixCls:Ge,popupClassName:xe()("".concat(Ge,"-popup"),(0,Pe.Z)({},"".concat(Ge,"-rtl"),rr),kn,Nr),stretch:cr==="horizontal"?"minWidth":null,getPopupContainer:$n,builtinPlacements:zn,popupPlacement:ar,popupVisible:sn,popup:Kt,popupStyle:vn,popupAlign:yr&&{offset:yr},action:Pr?[]:[wr],mouseEnterDelay:Ir,mouseLeaveDelay:gr,onPopupVisibleChange:Wn,forceRender:Sr,popupMotion:yt,fresh:!0},vt)}var ca=se(62874);function na(Ke){var Ge=Ke.id,ut=Ke.open,vt=Ke.keyPath,Kt=Ke.children,vn="inline",kn=me.useContext(le),yr=kn.prefixCls,Pr=kn.forceSubMenuRender,cr=kn.motion,Wn=kn.defaultMotions,Fn=kn.mode,$n=me.useRef(!1);$n.current=Fn===vn;var rr=me.useState(!$n.current),Ir=(0,ve.Z)(rr,2),gr=Ir[0],fr=Ir[1],wr=$n.current?ut:!1;me.useEffect(function(){$n.current&&fr(!1)},[Fn]);var Sr=(0,Re.Z)({},ci(vn,cr,Wn));vt.length>1&&(Sr.motionAppear=!1);var Nr=Sr.onVisibleChanged;return Sr.onVisibleChanged=function(Fe){return!$n.current&&!Fe&&fr(!0),Nr==null?void 0:Nr(Fe)},gr?null:me.createElement(Ve,{mode:vn,locked:!$n.current},me.createElement(ca.Z,(0,ae.Z)({visible:wr},Sr,{forceRender:Pr,removeOnLeave:!1,leavedClassName:"".concat(yr,"-hidden")}),function(Fe){var We=Fe.className,Wt=Fe.style;return me.createElement(Fi,{id:Ge,className:We,style:Wt},Kt)}))}var hi=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],zt=["active"],Tt=function(Ge){var ut,vt=Ge.style,Kt=Ge.className,vn=Ge.title,kn=Ge.eventKey,yr=Ge.warnKey,Pr=Ge.disabled,cr=Ge.internalPopupClose,Wn=Ge.children,Fn=Ge.itemIcon,$n=Ge.expandIcon,rr=Ge.popupClassName,Ir=Ge.popupOffset,gr=Ge.popupStyle,fr=Ge.onClick,wr=Ge.onMouseEnter,Sr=Ge.onMouseLeave,Nr=Ge.onTitleClick,Fe=Ge.onTitleMouseEnter,We=Ge.onTitleMouseLeave,Wt=(0,ke.Z)(Ge,hi),bt=ce(kn),sn=me.useContext(le),Ln=sn.prefixCls,zn=sn.mode,ar=sn.openKeys,ot=sn.disabled,Ye=sn.overflowDisabled,yt=sn.activeKey,Qt=sn.selectedKeys,_n=sn.itemIcon,mn=sn.expandIcon,ln=sn.onItemClick,sr=sn.onOpenChange,ir=sn.onActive,xr=me.useContext(Lt),er=xr._internalRenderSubMenuItem,Tn=me.useContext(Je),Er=Tn.isSubPathKey,zr=$t(),Br="".concat(Ln,"-submenu"),Cr=ot||Pr,Dr=me.useRef(),ui=me.useRef(),ei=Fn!=null?Fn:_n,ii=$n!=null?$n:mn,Ti=ar.includes(kn),ea=!Ye&&Ti,Si=Er(Qt,kn),zi=Ar(kn,Cr,Fe,We),ai=zi.active,vi=(0,ke.Z)(zi,zt),_i=me.useState(!1),Ki=(0,ve.Z)(_i,2),Ea=Ki[0],Ta=Ki[1],va=function(Sa){Cr||Ta(Sa)},ra=function(Sa){va(!0),wr==null||wr({key:kn,domEvent:Sa})},Yi=function(Sa){va(!1),Sr==null||Sr({key:kn,domEvent:Sa})},ki=me.useMemo(function(){return ai||(zn!=="inline"?Ea||Er([yt],kn):!1)},[zn,ai,yt,Ea,kn,Er]),Ma=Lr(zr.length),Ri=function(Sa){Cr||(Nr==null||Nr({key:kn,domEvent:Sa}),zn==="inline"&&sr(kn,!Ti))},si=Ze(function(fa){fr==null||fr(Dt(fa)),ln(fa)}),Ui=function(Sa){zn!=="inline"&&sr(kn,Sa)},ua=function(){ir(kn)},ta=bt&&"".concat(bt,"-popup"),oa=me.createElement("div",(0,ae.Z)({role:"menuitem",style:Ma,className:"".concat(Br,"-title"),tabIndex:Cr?null:-1,ref:Dr,title:typeof vn=="string"?vn:null,"data-menu-id":Ye&&bt?null:bt,"aria-expanded":ea,"aria-haspopup":!0,"aria-controls":ta,"aria-disabled":Cr,onClick:Ri,onFocus:ua},vi),vn,me.createElement(kt,{icon:zn!=="horizontal"?ii:void 0,props:(0,Re.Z)((0,Re.Z)({},Ge),{},{isOpen:ea,isSubMenu:!0})},me.createElement("i",{className:"".concat(Br,"-arrow")}))),Bi=me.useRef(zn);if(zn!=="inline"&&zr.length>1?Bi.current="vertical":Bi.current=zn,!Ye){var pa=Bi.current;oa=me.createElement(Ji,{mode:pa,prefixCls:Br,visible:!cr&&ea&&zn!=="inline",popupClassName:rr,popupOffset:Ir,popupStyle:gr,popup:me.createElement(Ve,{mode:pa==="horizontal"?"vertical":pa},me.createElement(Fi,{id:ta,ref:ui},Wn)),disabled:Cr,onVisibleChange:Ui},oa)}var wa=me.createElement(un.Item,(0,ae.Z)({role:"none"},Wt,{component:"li",style:vt,className:xe()(Br,"".concat(Br,"-").concat(zn),Kt,(ut={},(0,Pe.Z)(ut,"".concat(Br,"-open"),ea),(0,Pe.Z)(ut,"".concat(Br,"-active"),ki),(0,Pe.Z)(ut,"".concat(Br,"-selected"),Si),(0,Pe.Z)(ut,"".concat(Br,"-disabled"),Cr),ut)),onMouseEnter:ra,onMouseLeave:Yi}),oa,!Ye&&me.createElement(na,{id:ta,open:ea,keyPath:zr},Wn));return er&&(wa=er(wa,Ge,{selected:Si,active:ki,open:ea,disabled:Cr})),me.createElement(Ve,{onItemClick:si,mode:zn==="horizontal"?"vertical":zn,itemIcon:ei,expandIcon:ii},wa)};function fn(Ke){var Ge=Ke.eventKey,ut=Ke.children,vt=$t(Ge),Kt=Ci(ut,vt),vn=Zt();me.useEffect(function(){if(vn)return vn.registerPath(Ge,vt),function(){vn.unregisterPath(Ge,vt)}},[vt]);var kn;return vn?kn=Kt:kn=me.createElement(Tt,Ke,Kt),me.createElement(jt.Provider,{value:vt},kn)}var Bn=se(71002),Qn=["className","title","eventKey","children"],Or=["children"],Zr=function(Ge){var ut=Ge.className,vt=Ge.title,Kt=Ge.eventKey,vn=Ge.children,kn=(0,ke.Z)(Ge,Qn),yr=me.useContext(le),Pr=yr.prefixCls,cr="".concat(Pr,"-item-group");return me.createElement("li",(0,ae.Z)({role:"presentation"},kn,{onClick:function(Fn){return Fn.stopPropagation()},className:xe()(cr,ut)}),me.createElement("div",{role:"presentation",className:"".concat(cr,"-title"),title:typeof vt=="string"?vt:void 0},vt),me.createElement("ul",{role:"group",className:"".concat(cr,"-list")},vn))};function Jr(Ke){var Ge=Ke.children,ut=(0,ke.Z)(Ke,Or),vt=$t(ut.eventKey),Kt=Ci(Ge,vt),vn=Zt();return vn?Kt:me.createElement(Zr,(0,hr.Z)(ut,["warnKey"]),Kt)}function ri(Ke){var Ge=Ke.className,ut=Ke.style,vt=me.useContext(le),Kt=vt.prefixCls,vn=Zt();return vn?null:me.createElement("li",{role:"separator",className:xe()("".concat(Kt,"-item-divider"),Ge),style:ut})}var qr=["label","children","key","type"];function fi(Ke){return(Ke||[]).map(function(Ge,ut){if(Ge&&(0,Bn.Z)(Ge)==="object"){var vt=Ge,Kt=vt.label,vn=vt.children,kn=vt.key,yr=vt.type,Pr=(0,ke.Z)(vt,qr),cr=kn!=null?kn:"tmp-".concat(ut);return vn||yr==="group"?yr==="group"?me.createElement(Jr,(0,ae.Z)({key:cr},Pr,{title:Kt}),fi(vn)):me.createElement(fn,(0,ae.Z)({key:cr},Pr,{title:Kt}),fi(vn)):yr==="divider"?me.createElement(ri,(0,ae.Z)({key:cr},Pr)):me.createElement(kr,(0,ae.Z)({key:cr},Pr),Kt)}return null}).filter(function(Ge){return Ge})}function Ai(Ke,Ge,ut){var vt=Ke;return Ge&&(vt=fi(Ge)),Ci(vt,ut)}var jr=["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"],wi=[],Di=me.forwardRef(function(Ke,Ge){var ut,vt,Kt=Ke,vn=Kt.prefixCls,kn=vn===void 0?"rc-menu":vn,yr=Kt.rootClassName,Pr=Kt.style,cr=Kt.className,Wn=Kt.tabIndex,Fn=Wn===void 0?0:Wn,$n=Kt.items,rr=Kt.children,Ir=Kt.direction,gr=Kt.id,fr=Kt.mode,wr=fr===void 0?"vertical":fr,Sr=Kt.inlineCollapsed,Nr=Kt.disabled,Fe=Kt.disabledOverflow,We=Kt.subMenuOpenDelay,Wt=We===void 0?.1:We,bt=Kt.subMenuCloseDelay,sn=bt===void 0?.1:bt,Ln=Kt.forceSubMenuRender,zn=Kt.defaultOpenKeys,ar=Kt.openKeys,ot=Kt.activeKey,Ye=Kt.defaultActiveFirst,yt=Kt.selectable,Qt=yt===void 0?!0:yt,_n=Kt.multiple,mn=_n===void 0?!1:_n,ln=Kt.defaultSelectedKeys,sr=Kt.selectedKeys,ir=Kt.onSelect,xr=Kt.onDeselect,er=Kt.inlineIndent,Tn=er===void 0?24:er,Er=Kt.motion,zr=Kt.defaultMotions,Br=Kt.triggerSubMenuAction,Cr=Br===void 0?"hover":Br,Dr=Kt.builtinPlacements,ui=Kt.itemIcon,ei=Kt.expandIcon,ii=Kt.overflowedIndicator,Ti=ii===void 0?"...":ii,ea=Kt.overflowedIndicatorPopupClassName,Si=Kt.getPopupContainer,zi=Kt.onClick,ai=Kt.onOpenChange,vi=Kt.onKeyDown,_i=Kt.openAnimation,Ki=Kt.openTransitionName,Ea=Kt._internalRenderMenuItem,Ta=Kt._internalRenderSubMenuItem,va=(0,ke.Z)(Kt,jr),ra=me.useMemo(function(){return Ai(rr,$n,wi)},[rr,$n]),Yi=me.useState(!1),ki=(0,ve.Z)(Yi,2),Ma=ki[0],Ri=ki[1],si=me.useRef(),Ui=Nt(gr),ua=Ir==="rtl",ta=(0,nn.Z)(zn,{value:ar,postState:function(Pa){return Pa||wi}}),oa=(0,ve.Z)(ta,2),Bi=oa[0],pa=oa[1],wa=function(Pa){var Xa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function go(){pa(Pa),ai==null||ai(Pa)}Xa?(0,Se.flushSync)(go):go()},fa=me.useState(Bi),Sa=(0,ve.Z)(fa,2),La=Sa[0],Va=Sa[1],ha=me.useRef(!1),Ba=me.useMemo(function(){return(wr==="inline"||wr==="vertical")&&Sr?["vertical",Sr]:[wr,!1]},[wr,Sr]),qa=(0,ve.Z)(Ba,2),Ya=qa[0],so=qa[1],_a=Ya==="inline",Aa=me.useState(Ya),Wi=(0,ve.Z)(Aa,2),Xi=Wi[0],da=Wi[1],Ca=me.useState(so),Ka=(0,ve.Z)(Ca,2),io=Ka[0],ho=Ka[1];me.useEffect(function(){da(Ya),ho(so),ha.current&&(_a?pa(La):wa(wi))},[Ya,so]);var Po=me.useState(0),No=(0,ve.Z)(Po,2),lo=No[0],Bo=No[1],ia=lo>=ra.length-1||Xi!=="horizontal"||Fe;me.useEffect(function(){_a&&Va(Bi)},[Bi]),me.useEffect(function(){return ha.current=!0,function(){ha.current=!1}},[]);var Vi=rn(),Oa=Vi.registerPath,Da=Vi.unregisterPath,co=Vi.refreshOverflowKeys,ao=Vi.isSubPathKey,hs=Vi.getKeyPath,$o=Vi.getKeys,ps=Vi.getSubPathKeys,sa=me.useMemo(function(){return{registerPath:Oa,unregisterPath:Da}},[Oa,Da]),Yr=me.useMemo(function(){return{isSubPathKey:ao}},[ao]);me.useEffect(function(){co(ia?wi:ra.slice(lo+1).map(function(oo){return oo.key}))},[lo,ia]);var Oi=(0,nn.Z)(ot||Ye&&((ut=ra[0])===null||ut===void 0?void 0:ut.key),{value:ot}),Pi=(0,ve.Z)(Oi,2),ji=Pi[0],Wa=Pi[1],Ga=Ze(function(oo){Wa(oo)}),_o=Ze(function(){Wa(void 0)});(0,me.useImperativeHandle)(Ge,function(){return{list:si.current,focus:function(Pa){var Xa,go=ji!=null?ji:(Xa=ra.find(function(xs){return!xs.props.disabled}))===null||Xa===void 0?void 0:Xa.key;if(go){var yo,Ko,wo;(yo=si.current)===null||yo===void 0||(Ko=yo.querySelector("li[data-menu-id='".concat(ue(Ui,go),"']")))===null||Ko===void 0||(wo=Ko.focus)===null||wo===void 0||wo.call(Ko,Pa)}}}});var Zo=(0,nn.Z)(ln||[],{value:sr,postState:function(Pa){return Array.isArray(Pa)?Pa:Pa==null?wi:[Pa]}}),ls=(0,ve.Z)(Zo,2),ya=ls[0],Ro=ls[1],cs=function(Pa){if(Qt){var Xa=Pa.key,go=ya.includes(Xa),yo;mn?go?yo=ya.filter(function(wo){return wo!==Xa}):yo=[].concat((0,qe.Z)(ya),[Xa]):yo=[Xa],Ro(yo);var Ko=(0,Re.Z)((0,Re.Z)({},Pa),{},{selectedKeys:yo});go?xr==null||xr(Ko):ir==null||ir(Ko)}!mn&&Bi.length&&Xi!=="inline"&&wa(wi)},ul=Ze(function(oo){zi==null||zi(Dt(oo)),cs(oo)}),Bs=Ze(function(oo,Pa){var Xa=Bi.filter(function(yo){return yo!==oo});if(Pa)Xa.push(oo);else if(Xi!=="inline"){var go=ps(oo);Xa=Xa.filter(function(yo){return!go.has(yo)})}(0,Pn.Z)(Bi,Xa,!0)||wa(Xa,!0)}),ms=function(Pa,Xa){var go=Xa!=null?Xa:!Bi.includes(Pa);Bs(Pa,go)},Ho=lr(Xi,ji,ua,Ui,si,$o,hs,Wa,ms,vi);me.useEffect(function(){Ri(!0)},[]);var Ds=me.useMemo(function(){return{_internalRenderMenuItem:Ea,_internalRenderSubMenuItem:Ta}},[Ea,Ta]),Is=Xi!=="horizontal"||Fe?ra:ra.map(function(oo,Pa){return me.createElement(Ve,{key:oo.key,overflowDisabled:Pa>lo},oo)}),Js=me.createElement(un,(0,ae.Z)({id:gr,ref:si,prefixCls:"".concat(kn,"-overflow"),component:"ul",itemComponent:kr,className:xe()(kn,"".concat(kn,"-root"),"".concat(kn,"-").concat(Xi),cr,(vt={},(0,Pe.Z)(vt,"".concat(kn,"-inline-collapsed"),io),(0,Pe.Z)(vt,"".concat(kn,"-rtl"),ua),vt),yr),dir:Ir,style:Pr,role:"menu",tabIndex:Fn,data:Is,renderRawItem:function(Pa){return Pa},renderRawRest:function(Pa){var Xa=Pa.length,go=Xa?ra.slice(-Xa):null;return me.createElement(fn,{eventKey:Bt,title:Ti,disabled:ia,internalPopupClose:Xa===0,popupClassName:ea},go)},maxCount:Xi!=="horizontal"||Fe?un.INVALIDATE:un.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Pa){Bo(Pa)},onKeyDown:Ho},va));return me.createElement(Lt.Provider,{value:Ds},me.createElement(De.Provider,{value:Ui},me.createElement(Ve,{prefixCls:kn,rootClassName:yr,mode:Xi,openKeys:Bi,rtl:ua,disabled:Nr,motion:Ma?Er:null,defaultMotions:Ma?zr:null,activeKey:ji,onActive:Ga,onInactive:_o,selectedKeys:ya,inlineIndent:Tn,subMenuOpenDelay:Wt,subMenuCloseDelay:sn,forceSubMenuRender:Ln,builtinPlacements:Dr,triggerSubMenuAction:Cr,getPopupContainer:Si,itemIcon:ui,expandIcon:ei,onItemClick:ul,onOpenChange:Bs},me.createElement(Je.Provider,{value:Yr},Js),me.createElement("div",{style:{display:"none"},"aria-hidden":!0},me.createElement(Ht.Provider,{value:sa},ra)))))}),Li=Di,Te=Li;Te.Item=kr,Te.SubMenu=fn,Te.ItemGroup=Jr,Te.Divider=ri;var He=Te},81626:function(dn,en){"use strict";en.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},66680:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Pe}});var ae=se(67294);function Pe(Re){var qe=ae.useRef();qe.current=Re;var ve=ae.useCallback(function(){for(var ke,Le=arguments.length,xe=new Array(Le),me=0;me<Le;me++)xe[me]=arguments[me];return(ke=qe.current)===null||ke===void 0?void 0:ke.call.apply(ke,[qe].concat(xe))},[]);return ve}},21770:function(dn,en,se){"use strict";se.d(en,{Z:function(){return ke}});var ae=se(97685),Pe=se(66680),Re=se(8410),qe=se(63896);function ve(Le){return Le!==void 0}function ke(Le,xe){var me=xe||{},Ie=me.defaultValue,st=me.value,Ne=me.onChange,xt=me.postState,pt=(0,qe.Z)(function(){return ve(st)?st:ve(Ie)?typeof Ie=="function"?Ie():Ie:typeof Le=="function"?Le():Le}),ct=(0,ae.Z)(pt,2),rt=ct[0],Ee=ct[1],at=st!==void 0?st:rt,Yt=xt?xt(at):at,Xe=(0,Pe.Z)(Ne),lt=(0,qe.Z)([at]),Se=(0,ae.Z)(lt,2),Ce=Se[0],je=Se[1];(0,Re.o)(function(){var Mt=Ce[0];rt!==Mt&&Xe(rt,Mt)},[Ce]),(0,Re.o)(function(){ve(st)||Ee(st)},[st]);var Ue=(0,Pe.Z)(function(Mt,ht){Ee(Mt,ht),je([at],ht)});return[Yt,Ue]}},91881:function(dn,en,se){"use strict";var ae=se(71002),Pe=se(80334);function Re(qe,ve){var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Le=new Set;function xe(me,Ie){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ne=Le.has(me);if((0,Pe.ZP)(!Ne,"Warning: There may be circular references"),Ne)return!1;if(me===Ie)return!0;if(ke&&st>1)return!1;Le.add(me);var xt=st+1;if(Array.isArray(me)){if(!Array.isArray(Ie)||me.length!==Ie.length)return!1;for(var pt=0;pt<me.length;pt++)if(!xe(me[pt],Ie[pt],xt))return!1;return!0}if(me&&Ie&&(0,ae.Z)(me)==="object"&&(0,ae.Z)(Ie)==="object"){var ct=Object.keys(me);return ct.length!==Object.keys(Ie).length?!1:ct.every(function(rt){return xe(me[rt],Ie[rt],xt)})}return!1}return xe(qe,ve)}en.Z=Re},98423:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Pe}});var ae=se(1413);function Pe(Re,qe){var ve=(0,ae.Z)({},Re);return Array.isArray(qe)&&qe.forEach(function(ke){delete ve[ke]}),ve}},64217:function(dn,en,se){"use strict";se.d(en,{Z:function(){return xe}});var ae=se(1413),Pe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Re=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,qe="".concat(Pe," ").concat(Re).split(/[\s\n]+/),ve="aria-",ke="data-";function Le(me,Ie){return me.indexOf(Ie)===0}function xe(me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st;Ie===!1?st={aria:!0,data:!0,attr:!0}:Ie===!0?st={aria:!0}:st=(0,ae.Z)({},Ie);var Ne={};return Object.keys(me).forEach(function(xt){(st.aria&&(xt==="role"||Le(xt,ve))||st.data&&Le(xt,ke)||st.attr&&qe.includes(xt))&&(Ne[xt]=me[xt])}),Ne}},73299:function(dn,en,se){"use strict";se.d(en,{Z:function(){return ti}});var ae=se(87462),Pe=se(1413),Re=se(71002),qe=se(97685),ve=se(4942),ke=se(45987),Le=se(67294),xe=se(73935),me=se(94184),Ie=se.n(me),st=se(48555),Ne=Le.forwardRef(function(Ct,wn){var Rn=Ct.height,an=Ct.offsetY,vr=Ct.offsetX,lr=Ct.children,Gn=Ct.prefixCls,jn=Ct.onInnerResize,nt=Ct.innerProps,mt=Ct.rtl,Bt=Ct.extra,rn={},Ze={display:"flex",flexDirection:"column"};if(an!==void 0){var St;rn={height:Rn,position:"relative",overflow:"hidden"},Ze=(0,Pe.Z)((0,Pe.Z)({},Ze),{},(St={transform:"translateY(".concat(an,"px)")},(0,ve.Z)(St,mt?"marginRight":"marginLeft",-vr),(0,ve.Z)(St,"position","absolute"),(0,ve.Z)(St,"left",0),(0,ve.Z)(St,"right",0),(0,ve.Z)(St,"top",0),St))}return Le.createElement("div",{style:rn},Le.createElement(st.Z,{onResize:function(Nt){var cn=Nt.offsetHeight;cn&&jn&&jn()}},Le.createElement("div",(0,ae.Z)({style:Ze,className:Ie()((0,ve.Z)({},"".concat(Gn,"-holder-inner"),Gn)),ref:wn},nt),lr,Bt)))});Ne.displayName="Filler";var xt=Ne,pt=function(wn){return+setTimeout(wn,16)},ct=function(wn){return clearTimeout(wn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(pt=function(wn){return window.requestAnimationFrame(wn)},ct=function(wn){return window.cancelAnimationFrame(wn)});var rt=0,Ee=new Map;function at(Ct){Ee.delete(Ct)}var Yt=function(wn){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rt+=1;var an=rt;function vr(lr){if(lr===0)at(an),wn();else{var Gn=pt(function(){vr(lr-1)});Ee.set(an,Gn)}}return vr(Rn),an};Yt.cancel=function(Ct){var wn=Ee.get(Ct);return at(wn),ct(wn)};var Xe=Yt;function lt(Ct,wn){var Rn="touches"in Ct?Ct.touches[0]:Ct;return Rn[wn?"pageX":"pageY"]}var Se=Le.forwardRef(function(Ct,wn){var Rn,an=Ct.prefixCls,vr=Ct.rtl,lr=Ct.scrollOffset,Gn=Ct.scrollRange,jn=Ct.onStartMove,nt=Ct.onStopMove,mt=Ct.onScroll,Bt=Ct.horizontal,rn=Ct.spinSize,Ze=Ct.containerSize,St=Ct.style,Vt=Ct.thumbStyle,Nt=Le.useState(!1),cn=(0,qe.Z)(Nt,2),on=cn[0],Kn=cn[1],Hr=Le.useState(null),hr=(0,qe.Z)(Hr,2),or=hr[0],Ar=hr[1],Lr=Le.useState(null),kt=(0,qe.Z)(Lr,2),gt=kt[0],Dt=kt[1],En=!vr,qn=Le.useRef(),Cn=Le.useRef(),Dn=Le.useState(!1),In=(0,qe.Z)(Dn,2),Un=In[0],kr=In[1],pn=Le.useRef(),di=function(){clearTimeout(pn.current),kr(!0),pn.current=setTimeout(function(){kr(!1)},3e3)},Qr=Gn-Ze||0,Fi=Ze-rn||0,Ni=Qr>0,Ci=Le.useMemo(function(){if(lr===0||Qr===0)return 0;var ca=lr/Qr;return ca*Fi},[lr,Qr,Fi]),Qi=function(na){na.stopPropagation(),na.preventDefault()},Ei=Le.useRef({top:Ci,dragging:on,pageY:or,startTop:gt});Ei.current={top:Ci,dragging:on,pageY:or,startTop:gt};var pi=function(na){Kn(!0),Ar(lt(na,Bt)),Dt(Ei.current.top),jn(),na.stopPropagation(),na.preventDefault()};Le.useEffect(function(){var ca=function(Tt){Tt.preventDefault()},na=qn.current,hi=Cn.current;return na.addEventListener("touchstart",ca),hi.addEventListener("touchstart",pi),function(){na.removeEventListener("touchstart",ca),hi.removeEventListener("touchstart",pi)}},[]);var Hi=Le.useRef();Hi.current=Qr;var $i=Le.useRef();$i.current=Fi,Le.useEffect(function(){if(on){var ca,na=function(Tt){var fn=Ei.current,Bn=fn.dragging,Qn=fn.pageY,Or=fn.startTop;if(Xe.cancel(ca),Bn){var Zr=lt(Tt,Bt)-Qn,Jr=Or;!En&&Bt?Jr-=Zr:Jr+=Zr;var ri=Hi.current,qr=$i.current,fi=qr?Jr/qr:0,Ai=Math.ceil(fi*ri);Ai=Math.max(Ai,0),Ai=Math.min(Ai,ri),ca=Xe(function(){mt(Ai,Bt)})}},hi=function(){Kn(!1),nt()};return window.addEventListener("mousemove",na),window.addEventListener("touchmove",na),window.addEventListener("mouseup",hi),window.addEventListener("touchend",hi),function(){window.removeEventListener("mousemove",na),window.removeEventListener("touchmove",na),window.removeEventListener("mouseup",hi),window.removeEventListener("touchend",hi),Xe.cancel(ca)}}},[on]),Le.useEffect(function(){di()},[lr]),Le.useImperativeHandle(wn,function(){return{delayHidden:di}});var ci="".concat(an,"-scrollbar"),Mi={position:"absolute",visibility:Un&&Ni?null:"hidden"},Ji={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Bt?(Mi.height=8,Mi.left=0,Mi.right=0,Mi.bottom=0,Ji.height="100%",Ji.width=rn,En?Ji.left=Ci:Ji.right=Ci):(Mi.width=8,Mi.top=0,Mi.bottom=0,En?Mi.right=0:Mi.left=0,Ji.width="100%",Ji.height=rn,Ji.top=Ci),Le.createElement("div",{ref:qn,className:Ie()(ci,(Rn={},(0,ve.Z)(Rn,"".concat(ci,"-horizontal"),Bt),(0,ve.Z)(Rn,"".concat(ci,"-vertical"),!Bt),(0,ve.Z)(Rn,"".concat(ci,"-visible"),Un),Rn)),style:(0,Pe.Z)((0,Pe.Z)({},Mi),St),onMouseDown:Qi,onMouseMove:di},Le.createElement("div",{ref:Cn,className:Ie()("".concat(ci,"-thumb"),(0,ve.Z)({},"".concat(ci,"-thumb-moving"),on)),style:(0,Pe.Z)((0,Pe.Z)({},Ji),Vt),onMouseDown:pi}))}),Ce=Se;function je(Ct){var wn=Ct.children,Rn=Ct.setRef,an=Le.useCallback(function(vr){Rn(vr)},[]);return Le.cloneElement(wn,{ref:an})}function Ue(Ct,wn,Rn,an,vr,lr,Gn){var jn=Gn.getKey;return Ct.slice(wn,Rn+1).map(function(nt,mt){var Bt=wn+mt,rn=lr(nt,Bt,{style:{width:an}}),Ze=jn(nt);return Le.createElement(je,{key:Ze,setRef:function(Vt){return vr(nt,Vt)}},rn)})}function Mt(Ct){return Ct instanceof HTMLElement||Ct instanceof SVGElement}function ht(Ct){return Mt(Ct)?Ct:Ct instanceof Le.Component?xe.findDOMNode(Ct):null}var Ft=se(15671),tt=se(43144),Jt=function(){function Ct(){(0,Ft.Z)(this,Ct),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,tt.Z)(Ct,[{key:"set",value:function(Rn,an){this.maps[Rn]=an,this.id+=1}},{key:"get",value:function(Rn){return this.maps[Rn]}}]),Ct}(),Rt=Jt;function yn(Ct,wn,Rn){var an=Le.useState(0),vr=(0,qe.Z)(an,2),lr=vr[0],Gn=vr[1],jn=(0,Le.useRef)(new Map),nt=(0,Le.useRef)(new Rt),mt=(0,Le.useRef)();function Bt(){Xe.cancel(mt.current)}function rn(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Bt();var Vt=function(){jn.current.forEach(function(cn,on){if(cn&&cn.offsetParent){var Kn=ht(cn),Hr=Kn.offsetHeight;nt.current.get(on)!==Hr&&nt.current.set(on,Kn.offsetHeight)}}),Gn(function(cn){return cn+1})};St?Vt():mt.current=Xe(Vt)}function Ze(St,Vt){var Nt=Ct(St),cn=jn.current.get(Nt);Vt?(jn.current.set(Nt,Vt),rn()):jn.current.delete(Nt),!cn!=!Vt&&(Vt?wn==null||wn(St):Rn==null||Rn(St))}return(0,Le.useEffect)(function(){return Bt},[]),[Ze,rn,nt.current,lr]}function tn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Hn=tn()?Le.useLayoutEffect:Le.useEffect,Yn=function(wn,Rn){var an=Le.useRef(!0);Hn(function(){return wn(an.current)},Rn),Hn(function(){return an.current=!1,function(){an.current=!0}},[])},tr=function(wn,Rn){Yn(function(an){if(!an)return wn()},Rn)},Qe=Yn;function we(Ct){var wn=Le.useRef();wn.current=Ct;var Rn=Le.useCallback(function(){for(var an,vr=arguments.length,lr=new Array(vr),Gn=0;Gn<vr;Gn++)lr[Gn]=arguments[Gn];return(an=wn.current)===null||an===void 0?void 0:an.call.apply(an,[wn].concat(lr))},[]);return Rn}function At(Ct){var wn=React.useRef(!1),Rn=React.useState(Ct),an=_slicedToArray(Rn,2),vr=an[0],lr=an[1];React.useEffect(function(){return wn.current=!1,function(){wn.current=!0}},[]);function Gn(jn,nt){nt&&wn.current||lr(jn)}return[vr,Gn]}function Mn(Ct){return Ct!==void 0}function _t(Ct,wn){var Rn=wn||{},an=Rn.defaultValue,vr=Rn.value,lr=Rn.onChange,Gn=Rn.postState,jn=useState(function(){return Mn(vr)?vr:Mn(an)?typeof an=="function"?an():an:typeof Ct=="function"?Ct():Ct}),nt=_slicedToArray(jn,2),mt=nt[0],Bt=nt[1],rn=vr!==void 0?vr:mt,Ze=Gn?Gn(rn):rn,St=useEvent(lr),Vt=useState([rn]),Nt=_slicedToArray(Vt,2),cn=Nt[0],on=Nt[1];useLayoutUpdateEffect(function(){var Hr=cn[0];mt!==Hr&&St(mt,Hr)},[cn]),useLayoutUpdateEffect(function(){Mn(vr)||Bt(vr)},[vr]);var Kn=useEvent(function(Hr,hr){Bt(Hr,hr),on([rn],hr)});return[Ze,Kn]}var $e=se(31461);function dt(Ct,wn,Rn){var an=React.useRef({});return(!("value"in an.current)||Rn(an.current.condition,wn))&&(an.current.value=Ct(),an.current.condition=wn),an.current.value}function qt(Ct,wn){typeof Ct=="function"?Ct(wn):_typeof(Ct)==="object"&&Ct&&"current"in Ct&&(Ct.current=wn)}function Xn(){for(var Ct=arguments.length,wn=new Array(Ct),Rn=0;Rn<Ct;Rn++)wn[Rn]=arguments[Rn];var an=wn.filter(function(vr){return vr});return an.length<=1?an[0]:function(vr){wn.forEach(function(lr){qt(lr,vr)})}}function bn(){for(var Ct=arguments.length,wn=new Array(Ct),Rn=0;Rn<Ct;Rn++)wn[Rn]=arguments[Rn];return useMemo(function(){return Xn.apply(void 0,wn)},wn,function(an,vr){return an.length!==vr.length||an.every(function(lr,Gn){return lr!==vr[Gn]})})}function un(Ct){var wn,Rn,an=isMemo(Ct)?Ct.type.type:Ct.type;return!(typeof an=="function"&&!((wn=an.prototype)!==null&&wn!==void 0&&wn.render)||typeof Ct=="function"&&!((Rn=Ct.prototype)!==null&&Rn!==void 0&&Rn.render))}function nn(Ct){return!isValidElement(Ct)||isFragment(Ct)?!1:un(Ct)}function xn(Ct,wn,Rn,an){if(!wn.length)return Rn;var vr=_toArray(wn),lr=vr[0],Gn=vr.slice(1),jn;return!Ct&&typeof lr=="number"?jn=[]:Array.isArray(Ct)?jn=_toConsumableArray(Ct):jn=_objectSpread({},Ct),an&&Rn===void 0&&Gn.length===1?delete jn[lr][Gn[0]]:jn[lr]=xn(jn[lr],Gn,Rn,an),jn}function Pn(Ct,wn,Rn){var an=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return wn.length&&an&&Rn===void 0&&!get(Ct,wn.slice(0,-1))?Ct:xn(Ct,wn,Rn,an)}function De(Ct){return _typeof(Ct)==="object"&&Ct!==null&&Object.getPrototypeOf(Ct)===Object.prototype}function ue(Ct){return Array.isArray(Ct)?[]:{}}var ce=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function he(){for(var Ct=arguments.length,wn=new Array(Ct),Rn=0;Rn<Ct;Rn++)wn[Rn]=arguments[Rn];var an=ue(wn[0]);return wn.forEach(function(vr){function lr(Gn,jn){var nt=new Set(jn),mt=get(vr,Gn),Bt=Array.isArray(mt);if(Bt||De(mt)){if(!nt.has(mt)){nt.add(mt);var rn=get(an,Gn);Bt?an=Pn(an,Gn,[]):(!rn||_typeof(rn)!=="object")&&(an=Pn(an,Gn,ue(mt))),ce(mt).forEach(function(Ze){lr([].concat(_toConsumableArray(Gn),[Ze]),nt)})}}else an=Pn(an,Gn,mt)}lr([])}),an}var fe={},le=[],Me=function(wn){le.push(wn)};function Ve(Ct,wn){if(0)var Rn}function ft(Ct,wn){if(0)var Rn}function Ht(){fe={}}function Zt(Ct,wn,Rn){!wn&&!fe[Rn]&&(Ct(!1,Rn),fe[Rn]=!0)}function jt(Ct,wn){Zt(Ve,Ct,wn)}function $t(Ct,wn){Zt(ft,Ct,wn)}jt.preMessage=Me,jt.resetWarned=Ht,jt.noteOnce=$t;var Je=null,Et=10;function Lt(Ct,wn,Rn,an,vr,lr,Gn,jn){var nt=Le.useRef(),mt=Le.useState(null),Bt=(0,qe.Z)(mt,2),rn=Bt[0],Ze=Bt[1];return Qe(function(){if(rn&&rn.times<Et){if(!Ct.current){Ze(function(di){return(0,Pe.Z)({},di)});return}lr();var St=rn.targetAlign,Vt=rn.originAlign,Nt=rn.index,cn=rn.offset,on=Ct.current.clientHeight,Kn=!1,Hr=St,hr=null;if(on){for(var or=St||Vt,Ar=0,Lr=0,kt=0,gt=Math.min(wn.length-1,Nt),Dt=0;Dt<=gt;Dt+=1){var En=vr(wn[Dt]);Lr=Ar;var qn=Rn.get(En);kt=Lr+(qn===void 0?an:qn),Ar=kt}for(var Cn=or==="top"?cn:on-cn,Dn=gt;Dn>=0;Dn-=1){var In=vr(wn[Dn]),Un=Rn.get(In);if(Un===void 0){Kn=!0;break}if(Cn-=Un,Cn<=0)break}switch(or){case"top":hr=Lr-cn;break;case"bottom":hr=kt-on+cn;break;default:{var kr=Ct.current.scrollTop,pn=kr+on;Lr<kr?Hr="top":kt>pn&&(Hr="bottom")}}hr!==null&&Gn(hr),hr!==rn.lastTop&&(Kn=!0)}Kn&&Ze(function(di){return(0,Pe.Z)((0,Pe.Z)({},di),{},{times:di.times+1,targetAlign:Hr,lastTop:hr})})}},[rn,Ct.current]),function(St){if(St==null){jn();return}if(Xe.cancel(nt.current),typeof St=="number")Gn(St);else if(St&&(0,Re.Z)(St)==="object"){var Vt,Nt=St.align;"index"in St?Vt=St.index:Vt=wn.findIndex(function(Kn){return vr(Kn)===St.key});var cn=St.offset,on=cn===void 0?0:cn;Ze({times:0,index:Vt,offset:on,originAlign:Nt})}}}function Xt(Ct,wn,Rn,an){var vr=Rn-Ct,lr=wn-Rn,Gn=Math.min(vr,lr)*2;if(an<=Gn){var jn=Math.floor(an/2);return an%2?Rn+jn+1:Rn-jn}return vr>lr?Rn-(an-lr):Rn+(an-vr)}function wt(Ct,wn,Rn){var an=Ct.length,vr=wn.length,lr,Gn;if(an===0&&vr===0)return null;an<vr?(lr=Ct,Gn=wn):(lr=wn,Gn=Ct);var jn={__EMPTY_ITEM__:!0};function nt(Vt){return Vt!==void 0?Rn(Vt):jn}for(var mt=null,Bt=Math.abs(an-vr)!==1,rn=0;rn<Gn.length;rn+=1){var Ze=nt(lr[rn]),St=nt(Gn[rn]);if(Ze!==St){mt=rn,Bt=Bt||Ze!==nt(Gn[rn+1]);break}}return mt===null?null:{index:mt,multiple:Bt}}function Nn(Ct,wn,Rn){var an=Le.useState(Ct),vr=(0,qe.Z)(an,2),lr=vr[0],Gn=vr[1],jn=Le.useState(null),nt=(0,qe.Z)(jn,2),mt=nt[0],Bt=nt[1];return Le.useEffect(function(){var rn=wt(lr||[],Ct||[],wn);(rn==null?void 0:rn.index)!==void 0&&(Rn==null||Rn(rn.index),Bt(Ct[rn.index])),Gn(Ct)},[Ct]),[mt]}var et=(typeof navigator=="undefined"?"undefined":(0,Re.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),It=et,gn=function(Ct,wn){var Rn=(0,Le.useRef)(!1),an=(0,Le.useRef)(null);function vr(){clearTimeout(an.current),Rn.current=!0,an.current=setTimeout(function(){Rn.current=!1},50)}var lr=(0,Le.useRef)({top:Ct,bottom:wn});return lr.current.top=Ct,lr.current.bottom=wn,function(Gn){var jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=Gn<0&&lr.current.top||Gn>0&&lr.current.bottom;return jn&&nt?(clearTimeout(an.current),Rn.current=!1):(!nt||Rn.current)&&vr(),!Rn.current&&nt}};function hn(Ct,wn,Rn,an,vr){var lr=(0,Le.useRef)(0),Gn=(0,Le.useRef)(null),jn=(0,Le.useRef)(null),nt=(0,Le.useRef)(!1),mt=gn(wn,Rn);function Bt(cn,on){Xe.cancel(Gn.current),lr.current+=on,jn.current=on,!mt(on)&&(It||cn.preventDefault(),Gn.current=Xe(function(){var Kn=nt.current?10:1;vr(lr.current*Kn),lr.current=0}))}function rn(cn,on){vr(on,!0),It||cn.preventDefault()}var Ze=(0,Le.useRef)(null),St=(0,Le.useRef)(null);function Vt(cn){if(Ct){Xe.cancel(St.current),St.current=Xe(function(){Ze.current=null},2);var on=cn.deltaX,Kn=cn.deltaY,Hr=cn.shiftKey,hr=on,or=Kn;(Ze.current==="sx"||!Ze.current&&Hr&&Kn&&!on)&&(hr=Kn,or=0,Ze.current="sx");var Ar=Math.abs(hr),Lr=Math.abs(or);Ze.current===null&&(Ze.current=an&&Ar>Lr?"x":"y"),Ze.current==="y"?Bt(cn,or):rn(cn,hr)}}function Nt(cn){Ct&&(nt.current=cn.detail===jn.current)}return[Vt,Nt]}var An=14/15;function Vn(Ct,wn,Rn){var an=(0,Le.useRef)(!1),vr=(0,Le.useRef)(0),lr=(0,Le.useRef)(null),Gn=(0,Le.useRef)(null),jn,nt=function(Ze){if(an.current){var St=Math.ceil(Ze.touches[0].pageY),Vt=vr.current-St;vr.current=St,Rn(Vt)&&Ze.preventDefault(),clearInterval(Gn.current),Gn.current=setInterval(function(){Vt*=An,(!Rn(Vt,!0)||Math.abs(Vt)<=.1)&&clearInterval(Gn.current)},16)}},mt=function(){an.current=!1,jn()},Bt=function(Ze){jn(),Ze.touches.length===1&&!an.current&&(an.current=!0,vr.current=Math.ceil(Ze.touches[0].pageY),lr.current=Ze.target,lr.current.addEventListener("touchmove",nt),lr.current.addEventListener("touchend",mt))};jn=function(){lr.current&&(lr.current.removeEventListener("touchmove",nt),lr.current.removeEventListener("touchend",mt))},Qe(function(){return Ct&&wn.current.addEventListener("touchstart",Bt),function(){var rn;(rn=wn.current)===null||rn===void 0||rn.removeEventListener("touchstart",Bt),jn(),clearInterval(Gn.current)}},[Ct])}var mr=20;function ur(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Rn=Ct/wn*100;return isNaN(Rn)&&(Rn=0),Rn=Math.max(Rn,mr),Rn=Math.min(Rn,Ct/2),Math.floor(Rn)}function dr(Ct,wn,Rn,an){var vr=Le.useMemo(function(){return[new Map,[]]},[Ct,Rn.id,an]),lr=(0,qe.Z)(vr,2),Gn=lr[0],jn=lr[1],nt=function(Bt){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bt,Ze=Gn.get(Bt),St=Gn.get(rn);if(Ze===void 0||St===void 0)for(var Vt=Ct.length,Nt=jn.length;Nt<Vt;Nt+=1){var cn,on=Ct[Nt],Kn=wn(on);Gn.set(Kn,Nt);var Hr=(cn=Rn.get(Kn))!==null&&cn!==void 0?cn:an;if(jn[Nt]=(jn[Nt-1]||0)+Hr,Kn===Bt&&(Ze=Nt),Kn===rn&&(St=Nt),Ze!==void 0&&St!==void 0)break}return{top:jn[Ze-1]||0,bottom:jn[St]}};return nt}var Fr=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],nr=[],_r={overflowY:"auto",overflowAnchor:"none"};function oi(Ct,wn){var Rn=Ct.prefixCls,an=Rn===void 0?"rc-virtual-list":Rn,vr=Ct.className,lr=Ct.height,Gn=Ct.itemHeight,jn=Ct.fullHeight,nt=jn===void 0?!0:jn,mt=Ct.style,Bt=Ct.data,rn=Ct.children,Ze=Ct.itemKey,St=Ct.virtual,Vt=Ct.direction,Nt=Ct.scrollWidth,cn=Ct.component,on=cn===void 0?"div":cn,Kn=Ct.onScroll,Hr=Ct.onVirtualScroll,hr=Ct.onVisibleChange,or=Ct.innerProps,Ar=Ct.extraRender,Lr=Ct.styles,kt=(0,ke.Z)(Ct,Fr),gt=!!(St!==!1&&lr&&Gn),Dt=gt&&Bt&&(Gn*Bt.length>lr||!!Nt),En=Vt==="rtl",qn=Ie()(an,(0,ve.Z)({},"".concat(an,"-rtl"),En),vr),Cn=Bt||nr,Dn=(0,Le.useRef)(),In=(0,Le.useRef)(),Un=(0,Le.useState)(0),kr=(0,qe.Z)(Un,2),pn=kr[0],di=kr[1],Qr=(0,Le.useState)(0),Fi=(0,qe.Z)(Qr,2),Ni=Fi[0],Ci=Fi[1],Qi=(0,Le.useState)(!1),Ei=(0,qe.Z)(Qi,2),pi=Ei[0],Hi=Ei[1],$i=function(){Hi(!0)},ci=function(){Hi(!1)},Mi=Le.useCallback(function(Ye){return typeof Ze=="function"?Ze(Ye):Ye==null?void 0:Ye[Ze]},[Ze]),Ji={getKey:Mi};function ca(Ye){di(function(yt){var Qt;typeof Ye=="function"?Qt=Ye(yt):Qt=Ye;var _n=yr(Qt);return Dn.current.scrollTop=_n,_n})}var na=(0,Le.useRef)({start:0,end:Cn.length}),hi=(0,Le.useRef)(),zt=Nn(Cn,Mi),Tt=(0,qe.Z)(zt,1),fn=Tt[0];hi.current=fn;var Bn=yn(Mi,null,null),Qn=(0,qe.Z)(Bn,4),Or=Qn[0],Zr=Qn[1],Jr=Qn[2],ri=Qn[3],qr=Le.useMemo(function(){if(!gt)return{scrollHeight:void 0,start:0,end:Cn.length-1,offset:void 0};if(!Dt){var Ye;return{scrollHeight:((Ye=In.current)===null||Ye===void 0?void 0:Ye.offsetHeight)||0,start:0,end:Cn.length-1,offset:void 0}}for(var yt=0,Qt,_n,mn,ln=Cn.length,sr=0;sr<ln;sr+=1){var ir=Cn[sr],xr=Mi(ir),er=Jr.get(xr),Tn=yt+(er===void 0?Gn:er);Tn>=pn&&Qt===void 0&&(Qt=sr,_n=yt),Tn>pn+lr&&mn===void 0&&(mn=sr),yt=Tn}return Qt===void 0&&(Qt=0,_n=0,mn=Math.ceil(lr/Gn)),mn===void 0&&(mn=Cn.length-1),mn=Math.min(mn+1,Cn.length-1),{scrollHeight:yt,start:Qt,end:mn,offset:_n}},[Dt,gt,pn,Cn,ri,lr]),fi=qr.scrollHeight,Ai=qr.start,jr=qr.end,wi=qr.offset;na.current.start=Ai,na.current.end=jr;var Di=Le.useState({width:0,height:lr}),Li=(0,qe.Z)(Di,2),Te=Li[0],He=Li[1],Ke=function(yt){He({width:yt.width||yt.offsetWidth,height:yt.height||yt.offsetHeight})},Ge=(0,Le.useRef)(),ut=(0,Le.useRef)(),vt=Le.useMemo(function(){return ur(Te.width,Nt)},[Te.width,Nt]),Kt=Le.useMemo(function(){return ur(Te.height,fi)},[Te.height,fi]),vn=fi-lr,kn=(0,Le.useRef)(vn);kn.current=vn;function yr(Ye){var yt=Ye;return Number.isNaN(kn.current)||(yt=Math.min(yt,kn.current)),yt=Math.max(yt,0),yt}var Pr=pn<=0,cr=pn>=vn,Wn=gn(Pr,cr),Fn=function(){return{x:En?-Ni:Ni,y:pn}},$n=(0,Le.useRef)(Fn()),rr=we(function(){if(Hr){var Ye=Fn();($n.current.x!==Ye.x||$n.current.y!==Ye.y)&&(Hr(Ye),$n.current=Ye)}});function Ir(Ye,yt){var Qt=Ye;yt?((0,xe.flushSync)(function(){Ci(Qt)}),rr()):ca(Qt)}function gr(Ye){var yt=Ye.currentTarget.scrollTop;yt!==pn&&ca(yt),Kn==null||Kn(Ye),rr()}var fr=function(yt){var Qt=yt,_n=Nt-Te.width;return Qt=Math.max(Qt,0),Qt=Math.min(Qt,_n),Qt},wr=we(function(Ye,yt){yt?((0,xe.flushSync)(function(){Ci(function(Qt){var _n=Qt+(En?-Ye:Ye);return fr(_n)})}),rr()):ca(function(Qt){var _n=Qt+Ye;return _n})}),Sr=hn(gt,Pr,cr,!!Nt,wr),Nr=(0,qe.Z)(Sr,2),Fe=Nr[0],We=Nr[1];Vn(gt,Dn,function(Ye,yt){return Wn(Ye,yt)?!1:(Fe({preventDefault:function(){},deltaY:Ye}),!0)}),Qe(function(){function Ye(Qt){gt&&Qt.preventDefault()}var yt=Dn.current;return yt.addEventListener("wheel",Fe),yt.addEventListener("DOMMouseScroll",We),yt.addEventListener("MozMousePixelScroll",Ye),function(){yt.removeEventListener("wheel",Fe),yt.removeEventListener("DOMMouseScroll",We),yt.removeEventListener("MozMousePixelScroll",Ye)}},[gt]),Qe(function(){Nt&&Ci(function(Ye){return fr(Ye)})},[Te.width,Nt]);var Wt=function(){var yt,Qt;(yt=Ge.current)===null||yt===void 0||yt.delayHidden(),(Qt=ut.current)===null||Qt===void 0||Qt.delayHidden()},bt=Lt(Dn,Cn,Jr,Gn,Mi,function(){return Zr(!0)},ca,Wt);Le.useImperativeHandle(wn,function(){return{getScrollInfo:Fn,scrollTo:function(yt){function Qt(_n){return _n&&(0,Re.Z)(_n)==="object"&&("left"in _n||"top"in _n)}Qt(yt)?(yt.left!==void 0&&Ci(fr(yt.left)),bt(yt.top)):bt(yt)}}}),Qe(function(){if(hr){var Ye=Cn.slice(Ai,jr+1);hr(Ye,Cn)}},[Ai,jr,Cn]);var sn=dr(Cn,Mi,Jr,Gn),Ln=Ar==null?void 0:Ar({start:Ai,end:jr,virtual:Dt,offsetX:Ni,offsetY:wi,rtl:En,getSize:sn}),zn=Ue(Cn,Ai,jr,Nt,Or,rn,Ji),ar=null;lr&&(ar=(0,Pe.Z)((0,ve.Z)({},nt?"height":"maxHeight",lr),_r),gt&&(ar.overflowY="hidden",Nt&&(ar.overflowX="hidden"),pi&&(ar.pointerEvents="none")));var ot={};return En&&(ot.dir="rtl"),Le.createElement("div",(0,ae.Z)({style:(0,Pe.Z)((0,Pe.Z)({},mt),{},{position:"relative"}),className:qn},ot,kt),Le.createElement(st.Z,{onResize:Ke},Le.createElement(on,{className:"".concat(an,"-holder"),style:ar,ref:Dn,onScroll:gr,onMouseEnter:Wt},Le.createElement(xt,{prefixCls:an,height:fi,offsetX:Ni,offsetY:wi,scrollWidth:Nt,onInnerResize:Zr,ref:In,innerProps:or,rtl:En,extra:Ln},zn))),Dt&&fi>lr&&Le.createElement(Ce,{ref:Ge,prefixCls:an,scrollOffset:pn,scrollRange:fi,rtl:En,onScroll:Ir,onStartMove:$i,onStopMove:ci,spinSize:Kt,containerSize:Te.height,style:Lr==null?void 0:Lr.verticalScrollBar,thumbStyle:Lr==null?void 0:Lr.verticalScrollBarThumb}),Dt&&Nt&&Le.createElement(Ce,{ref:ut,prefixCls:an,scrollOffset:Ni,scrollRange:Nt,rtl:En,onScroll:Ir,onStartMove:$i,onStopMove:ci,spinSize:vt,containerSize:Te.width,horizontal:!0,style:Lr==null?void 0:Lr.horizontalScrollBar,thumbStyle:Lr==null?void 0:Lr.horizontalScrollBarThumb}))}var Wr=Le.forwardRef(oi);Wr.displayName="List";var xi=Wr,ti=xi},66392:function(dn,en){"use strict";var se;var ae=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Le=Symbol.for("react.context"),xe=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),st=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),xt=Symbol.for("react.lazy"),pt=Symbol.for("react.offscreen"),ct;ct=Symbol.for("react.module.reference");function rt(Ee){if(typeof Ee=="object"&&Ee!==null){var at=Ee.$$typeof;switch(at){case ae:switch(Ee=Ee.type,Ee){case Re:case ve:case qe:case Ie:case st:return Ee;default:switch(Ee=Ee&&Ee.$$typeof,Ee){case xe:case Le:case me:case xt:case Ne:case ke:return Ee;default:return at}}case Pe:return at}}}se=Le,se=ke,se=ae,se=me,se=Re,se=xt,se=Ne,se=Pe,se=ve,se=qe,se=Ie,se=st,se=function(){return!1},se=function(){return!1},se=function(Ee){return rt(Ee)===Le},se=function(Ee){return rt(Ee)===ke},se=function(Ee){return typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===ae},se=function(Ee){return rt(Ee)===me},se=function(Ee){return rt(Ee)===Re},se=function(Ee){return rt(Ee)===xt},se=function(Ee){return rt(Ee)===Ne},se=function(Ee){return rt(Ee)===Pe},se=function(Ee){return rt(Ee)===ve},se=function(Ee){return rt(Ee)===qe},se=function(Ee){return rt(Ee)===Ie},se=function(Ee){return rt(Ee)===st},se=function(Ee){return typeof Ee=="string"||typeof Ee=="function"||Ee===Re||Ee===ve||Ee===qe||Ee===Ie||Ee===st||Ee===pt||typeof Ee=="object"&&Ee!==null&&(Ee.$$typeof===xt||Ee.$$typeof===Ne||Ee.$$typeof===ke||Ee.$$typeof===Le||Ee.$$typeof===me||Ee.$$typeof===ct||Ee.getModuleId!==void 0)},se=rt},31461:function(dn,en,se){"use strict";se(66392)},25365:function(dn){"use strict";dn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAA0VJREFUOE+V03lI01EcAPD3fjucs4nmwrXNOY/VdBoe0Tqggi5NgsLaWriWZFQEEvRHBxmL+iMo/KMg6KJSCy03mbapo1vXzCvJUstjZTM1bUzZZP6uF5M0Zwr1/nsHn/d93+/7QjBn3GhuZkm5scvRJIgODWX7sKCQT0oRGIAQorlnp+cIAAhnJghhhobvWRPjQ/rJ8eEVXIxGwcFsGBYWQUTFLrN6yCB9qpjdthA2BSGEsEd1X08NOlrPSiM4PxWJCSNL+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ZOneAalzZOiPNMIyq0uA0i0XEsebjZCNOHlMSk+RkqpLtzoafGowsYQhFMNZSivcHSdXyZPFVSpX7zNwxo0nhQHOkTO0JTO0xSax4VeS0mne2rqya0nHGEieT9DFkWbnmLk7ONoi6E9uWbqT+PmOZSaO/lsyWA/CWXKYyg8dolgUU38+P91HDI7wk5OjKMpBU61yyThtCUedwcGy/IVjozd2peQrmCrkroJyu1Ne/xSQxbOJo+CklKHMbFJcQZzRgaYxLAmnlXwokwSKYWG5ciZtZA8VmMmCGKaktjEQOyzZpKguYmtHVtI8OBuvK8u/eurJkeMd8gy0WCRXJwXGMIOuukmrNHAy9uEqnM3vKRVUKSiVPr4oSDw1oiHagPu/A2kmih6OXasidlejC7CBZfyVhB0nEpKwABDSlNcZAMtzuWaaJLtLdSTdlgWRnkZ0ZcrXrMYa3z+8Lkoox+jiXAEVNEwmGaX9VwRwSFzOlg/QgTCodJDnGZQfJXtS0/1XF/UCy/pRFMknLv4B0mO7tAcV+E4LavnLlX3lTS/GLYAyLAAAAAElFTkSuQmCC"},71979:function(dn){"use strict";dn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAqCAYAAABfjB7GAAAAAXNSR0IArs4c6QAAEy5JREFUeF7tW2l0VFW2/m4FkhBmQ5iEJEwBMcgoElwMMoOg0q20ywkJQj/1MXTjoxVlkjm0QNs2AgIapNW2gRYRbGRMCDJGmWcIUxISyASBhITUfevsM9xzb91UgM567w8lrqq6de+puvs7397fHmJcPxJvGoYBGAYMw8Of2X/sGNhb+Rm9Ecedz/w8E4BpGPDQlYDpEWuYdCl9VtbD42WriOvZivwfYJrqmR0xTfo2fpxe8uvYcfpfXsuOm16Yppc+97JndqrXBPvFpleuJc6R14tntq5BX8Ov4+uz1/J7vfy+tfP572Hr8d8oP2N3T8e03yruzro/IN0D73bDCBjfYMDUy0be4S8IIA6ExwJEgsQOww4SHaHz2T9+DfspHA8DXjeQpNXLAMkQBiFjixuSsHLDSzAskNhxbkR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N1TquIY77Eqjlk5W/5VVxIUSK6YpBSe2RsSS9sI9ka1gUo2HlAdIBRIXgFijHMZosE7c+cF6WbmGwIHHtGmoM09ziVVmxYTNwmSMV3knZXj2OcadKQOb3B15y0BWdmb5+ValhWvDM6zWEwcZz5O+ikNSjAmqclULdu9DT89GBl4CIWvy0xUSlFGGGMwMhCT9P2peMS0vUEUNJjETXFS+oa7c5gkV7wuchoGl0C62g6GBA/MJHMMWVWunf6PqlZIUPOsnC3zPrV59NeR2WoA3qkocJmh1miWmxmq0h0ihx7lsHwgkHTrXAAlCGlMq3qnWlUcM2KS192p3IqhFa5AJ7dBoXKBJIN7QJCcEWPvpJDAyIhV1N81GOOIAZNJDkhmYZTdrTFUAhtrrOzUt1ujxj4C2E201JZgcZ/VNWkawOh62secBqLWufgcqCvLDs0z3+CAZIwYe9xdLVepXJScFOKWhWQOd1rVoqqDTMGnV2U85AEN2cQw5h245yd7OLo8oxt4wVyYGyQnkXUadIa6K4xARA9+HALJ8vvfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(dn){"use strict";dn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7svWuXJMdxJWgRmVmP7gYIgEOOtLMjUY/R7v//OfthZ85KsyNRIgg0+lFVmRkx59o1czf38HhkVjXQAFE8TVRlRvjD3Nzsur28k19/fqXArxT4lQK/UuBXCvxKgV8p8EIU6F6onV+b+ZUCv1LgVwr8SoFfKfArBX6lgHT//O15/DHpUCOZH7Xz2Ylei68w+va7+LScG/9qv+FtxDc6GcdRm++ks7bGutH1pbt2amst21AxNv15Rj959hXFjFjPaNpmUbYwppVJozcK87l5npxf75JcsYdnEqca0ZSvnk+d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URGRbere4Ij9K42m3d0kEdCeeVUX/bYIBpqqaGYO8QBJ1/fODX+U8Bi9SQqU8++LS5fgldPr8m9LHTGntaz3obr9HT79TTHVjrdanhYdiI+XDOuKjsmzyk7s4gR3Cck1k3g01eiWO4KCDjzqTBnTPO3OO4PnuDo4/O2PBjNdqrjkMJeXRCmRFLMcQEVOwgJONs7WMoRk/uRNH8p72je4x+xBEn2CjyIg2UsoN2kZ8yJsK6lIEYNv61Ol0AY0s40gKDRJ6PWhVbAfnokh/+f17oKelHNP2kwROsZoa+DDnL4JaDI+U/UejzbXSaxR/K5ygXVan6UasJJiI6AV8jKgQWdQh+P8NewCBXTkFh5dNNOoB4NwLLtSc05opxCA5sQ2qkzqjlkPGndvq4I2alefyPfrwQWLWvK26J+U4VPtymGNvr6jJCkpX+Gv4bASrciDcnqMQ62IDT82UnbIvbP3v2aDjMISHRqDvhU/jScZAIuZpF7urMIRHhxMtxaDVxkP5s6/PTemjld9JmqnoUAXdp76ZqangOGXnmbuSSwINlw66vnonq757l0gHwoTNt7cz8nd3Yz4f/0XK6vduVqt42shwKRVC5U58oEJnXL9FPjpcPhFGHaBhdxW4sOsYHZjZGul8dDeXg4eBKtw86VGhGVwicBOpT6OxwMMV/3EQg6AWKIUvH5RNolA29CDT3wmNspggFJXkNUkl1IuQKnQixEgIwkJ5MjBYF/fTCG7E6XWDeW06oJpdinfW8BEx7JYaHE0aM0JdIN1IOF8WgwFO5YnABqrkUiiFDCsnyPqU9PKWXmCwc5De9OC0XNdja1QysjHUcte17BFMJCEZ5K6RCDwN/tGnKlws/cKIg8Kj4vMASYVKjdqXExZzAh8op+/5zRwrdHv1HgGwW+UeAbBb5R4BsFvlGgpcA3YPFtR3yjwDcKfKPANwp8o8A3ClyMAv8DD8nJIGmcntAAAAAASUVORK5CYII="},96908:function(dn){"use strict";dn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7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uxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},79633:function(dn){"use strict";dn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7tvXlzJzmSJQaSeWcd3TOzvT270mpN0ppM3/+raDWS6TJp/9jpObq6rqw8SZkDcI+HB3ccwR+zsruZZlUkI3A4HH48OByIq/T475EDjxx45MAjBx458MiBRw5ciANXF2rnsZlHDjxy4JEDjxx45MAjBx45kK7+l/96ezfigyCPq6vyX0p3SX4MK0yZev8Wpl18YQVu73z8djFU5zRUpyvlCYv+yUTS+2N2yksu4s09NuE0me7ch6Xv3B81WmSt/JNX/F6ba9rVNpgYaWTAA26bWaVVc5+VOTKdV3exHiD92J7ydqoBNsBa22MwlhmNrw5+2icNPOs9zIFYCW8uXNHCipX/1057Xl2WryHPPLma6H4jJo4wu6qK5Zy5EBnqmvIGUgX6fvbz0AuHzY3e7JhBT+RGup7fBfyXx9d3Kd3e3KWfn3xKN7UhnMuq+VnGblNKz9N1evXpOin/R/o1Gpe09ae3KX26U5/Vqj/qu44vkmtpS8aIY/3965RePUmJvaZnfphF6kvRJBkL71L6539N6c0vh01UWm9vqw0UWuS/2zI+fZ7L1Xe5z0w4/ON5qv7c6KmCdF3tcfb3oq+itPrzKqXbTym9/puUXv+mt8md3ZwBC62gRJRO7z4TuNg1hzuqxB7nEuru9397W2cKXl8EVLSaWhxBVYTIuYkQyjv9ucqxyLbmLkGJG3lGgYZ+i7RWhVfFrQxpjOXAeWs/HWgZORt+N2m/4SFYXmtGgQYxURVzhA/U6Lj8J75ZGRYaZzxNe1a+gUdbulsARulI/i8GrQFj7N1oQGKsWCZMlgL1Rr6xH1+V11xu4PhUV7g9BBaroCYb+5n5AD7Nis7GGDl8lje1cCv9rZRBX9CNt9oUKSNz/kQc0fVdenPzKV1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OC9WDnZ/XB6vTiA7UEB8QlNpHG30Ew3PIM8viGVa28CiSM16WskpraQnHMzInbKZmpmdlLr05dKxRw9sF71WH1Kx+UJRo6ofnxBe6O1tEjexMCk61P5me3GcFVsIa2cs1yar5EGzvG3FRopivTKxnuWGKOyDIdNe/+YbOM8CCLYRHqqpDMyd0p8Is4oC0STt4cZs628wWBbYnBECByU2ty32e5U9kTU7JoOMIGzAVIDuVTbZOOyETtJIz2r35ytseAijkAqz3KQnAQAvf0Kb2Rm1r4Miz470qd10IuBCQ8WrjeCpvH5AZs2GqjHnj5iOmDaiABrs28DSJNizJpTcp3VYd/cKAhVIZWBTjTqR9M2fIQGDFIbLznvV9tHncq8n3XY4cs9c+P0O6vTFw+4dYHW+ONu9veFb4GIm+J/LaXmBtdsEFdgFAA8Up9wTiocZaDRgbuB3DNjNmjQGvQ74fwJl5+NYwSun8H2aBo8h54oZTxALkTR9Zd/uT1Gsoi0bHIRf3l902VNxoWm3ctqzAaaBjmYGLDsTw9gg6XeY7graRINU7FDwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},84279:function(dn,en,se){"use strict";var ae=Object.defineProperty,Pe=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Le=(a,y,b)=>y in a?ae(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,xe=(a,y)=>{for(var b in y||(y={}))ve.call(y,b)&&Le(a,b,y[b]);if(qe)for(var b of qe(y))ke.call(y,b)&&Le(a,b,y[b]);return a},me=(a,y)=>Pe(a,Re(y)),Ie=a=>typeof a=="symbol"?a:a+"",st=(a,y)=>{var b={};for(var E in a)ve.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&qe)for(var E of qe(a))y.indexOf(E)<0&&ke.call(a,E)&&(b[E]=a[E]);return b};function Ne(a){return Array.isArray(a)}var xt={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function pt(){return"window"in globalThis&&"document"in globalThis}function ct(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function rt(){return typeof navigator.vibrate=="function"}function Ee(){var a,y;if(!pt())return"other";const b=(y=(a=navigator.userAgentData)==null?void 0:a.platform)!=null?y:navigator.platform;return/^mac/i.test(b)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(b)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function at(){if(!pt())return!0;if(/firefox/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/firefox\/(\d+)/i);return a?parseInt(a[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/edg\/(\d+)/i);return a?parseInt(a[1])>=79:!1}return!0}function Yt(){return HTMLElement.prototype.hasOwnProperty("popover")}var Xe={strings:xt,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return Xe._locale||(Xe._locale=pt()?navigator.language.slice(0,5):"en-US"),Xe._locale},set locale(a){Xe._locale=a,Xe._numberFormatter=void 0,Xe.dirty=!0},get numberFormatter(){return Xe._numberFormatter||(Xe._numberFormatter=new Intl.NumberFormat(Xe.locale)),Xe._numberFormatter},merge(a,y){if(typeof a=="string"&&y)Xe.strings[a]=xe(xe({},Xe.strings[a]),y),Xe.dirty=!0;else for(const b of Object.keys(a))Xe.merge(b,a[b])},get dirty(){return Xe._dirty},set dirty(a){Xe._dirty||Xe._dirty===a||(Xe._dirty=!0,setTimeout(()=>{Xe._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return Xe._subscribers.push(a),Xe._subscribers.length-1},unsubscribe(a){a<0||a>=Xe._subscribers.length||(Xe._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const E=b.getAttribute("data-l10n-tooltip");if(E){const ee=lt(E);ee&&b.setAttribute("data-tooltip",ee)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const E=b.getAttribute("data-l10n-arial-label");if(E){const ee=lt(E);ee&&b.setAttribute("aria-label",ee)}}}};function lt(a,...y){if(a===void 0)return;let b="";const E=Xe.locale;Xe.strings[E]&&(b=Xe.strings[E][a]);const ee=E.slice(0,2);if(!b&&Xe.strings[ee]&&(b=Xe.strings[ee][a]),b||(b=Xe.strings.en[a]),!b)return;const re=/(%@|%([0-9]+)\$@)/g;let oe=re.exec(b),pe=0;for(;oe;){if(y[pe++]){const be=oe[2]?parseInt(oe[2],10)-1:pe-1;let Ae=y[be];typeof Ae=="number"&&(Ae=Xe.numberFormatter.format(Ae)),b=b.replace(oe[1],Ae)}oe=re.exec(b)}return b=b.replace(/%%/g,"%"),b}var Se={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"},Ue={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"},Mt={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"},ht={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 Ft(a){var y,b,E,ee,re,oe;const pe=a.split("!");let ge,be,Ae,_e=255,it=255,Pt=255,Ut=-1;const Jn=pe.length>0&&pe[0].startsWith("-");Jn&&(pe[0]=pe[0].slice(1));for(let Ur=0;Ur<pe.length;Ur++){ge=_e,be=it,Ae=Pt;const Zn=(y=pe[Ur].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],Mr=Zn==null?void 0:Zn.toLowerCase(),Gr=Zn&&(oe=(re=(ee=(E=(b=Ue[Mr])!=null?b:Ue[Mt[Zn]])!=null?E:Ce[Zn])!=null?ee:ht[Zn])!=null?re:Se[Zn])!=null?oe:pe[Ur].trim();let Tr=Gr.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(Tr!=null&&Tr[1]&&Tr[2]&&Tr[3])_e=Math.max(0,Math.min(255,Number.parseInt(Tr[1],16))),it=Math.max(0,Math.min(255,Number.parseInt(Tr[2],16))),Pt=Math.max(0,Math.min(255,Number.parseInt(Tr[3],16)));else if(Tr=Gr.match(/^#([\da-f]{3})$/i),Tr!=null&&Tr[1]){const bi=Number.parseInt(Tr[1][0],16),Zi=Number.parseInt(Tr[1][1],16),Ii=Number.parseInt(Tr[1][2],16);_e=Math.max(0,Math.min(255,bi*16+bi)),it=Math.max(0,Math.min(255,Zi*16+Zi)),Pt=Math.max(0,Math.min(255,Ii*16+Ii))}else if(Tr=Gr.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),Tr!=null&&Tr[1]&&Tr[2]&&Tr[3])_e=Math.max(0,Math.min(255,Number.parseInt(Tr[1]))),it=Math.max(0,Math.min(255,Number.parseInt(Tr[2]))),Pt=Math.max(0,Math.min(255,Number.parseInt(Tr[3])));else return;Ut>=0&&(_e=(1-Ut)*_e+Ut*ge,it=(1-Ut)*it+Ut*be,Pt=(1-Ut)*Pt+Ut*Ae,Ut=-1),Ur+1<pe.length&&(Ut=Math.max(0,Math.min(100,Number.parseInt(pe[++Ur])))/100)}return Ut>=0&&(_e=Ut*_e+(1-Ut)*ge,it=Ut*it+(1-Ut)*be,Pt=Ut*Pt+(1-Ut)*Ae),Jn&&(_e=255-_e,it=255-it,Pt=255-Pt),"#"+("00"+Math.round(_e).toString(16)).slice(-2)+("00"+Math.round(it).toString(16)).slice(-2)+("00"+Math.round(Pt).toString(16)).slice(-2)}function tt(a){var y,b;return a=a.trim(),(b=(y=je[a.toLowerCase()])!=null?y:je[Mt[a]])!=null?b:Ft(a)}function Jt(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 Rt(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 yn(a){let[y,b,E]=[a.h,a.s,a.l];y=(y+360)%360/60,E=Math.max(0,Math.min(E,1)),b=Math.max(0,Math.min(b,1));const ee=E<=.5?E*(b+1):E+b-E*b,re=E*2-ee;return{r:Math.round(255*Rt(re,ee,y+2)),g:Math.round(255*Rt(re,ee,y)),b:Math.round(255*Rt(re,ee,y-2))}}function tn(a){return a<0?0:a>255?255:Math.round(a)}function Hn(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(tn(y)<<16)+(tn(b)<<8)+tn(E)).toString(16).slice(1);return ee[0]===ee[1]&&ee[2]===ee[3]&&ee[4]===ee[5]&&ee[6]===ee[7]&&(ee=ee[0]+ee[2]+ee[4]),"#"+ee}function Yn(a){let{r:y,g:b,b:E}=a;y=y/255,b=b/255,E=E/255;const ee=Math.min(y,b,E),re=Math.max(y,b,E),oe=re-ee;let pe,ge;re===ee?pe=0:y===re?pe=(b-E)/oe:b===re?pe=2+(E-y)/oe:E===re&&(pe=4+(y-b)/oe),pe=Math.min(pe*60,360),pe<0&&(pe+=360);const be=(ee+re)/2;return re===ee?ge=0:be<=.5?ge=oe/(re+ee):ge=oe/(2-re-ee),{h:pe,s:ge,l:be}}function tr(a){let y=Jt(a);if(!y)return a;let{h:b,s:E,l:ee}=Yn(y);return E+=.1,ee-=.1,Hn(yn({h:b,s:E,l:ee}))}var Qe={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"},we={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},At=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function Mn(a,y,b){if(!/[A-Za-z\d]/.test(a)||(b==="up"&&(b=void 0),!y&&!b))return a;const E=a.codePointAt(0);if(E===void 0)return a;for(const ee of At)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E<ee.offset+ee.len){const re=ee.start+E-ee.offset;return String.fromCodePoint(we[re]||re)}return a}function _t(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in we)if(we[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of At)if(a>=b.start&&a<b.start+b.len)return{char:String.fromCodePoint(a-b.start+b.offset),variant:b.variant,style:b.style};return{char:String.fromCodePoint(a)}}function $e(a){var y;let b="";for(const E of a){if("{}<>[]$&#^_%:'\u02DC".includes(E)){b+=E;continue}const ee=(y=E.codePointAt(0))!=null?y:0;let re=Qe[ee];if(re)re.startsWith("\\")?b+=re+" ":b+=re;else{const{char:oe,variant:pe,style:ge}=_t(ee);switch(re=oe,pe){case"double-struck":re=`\\mathbb{${re}}`;break;case"fraktur":re=`\\mathfrak{${re}}`;break;case"script":re=`\\mathscr{${re}}`;break;case"sans-serif":re=`\\mathsf{${re}}`;break;case"monospace":re=`\\mathtt{${re}}`;break;case"calligraphic":re=`\\mathcal{${re}}`;break}switch(ge){case"bold":re=`\\mathbf{${re}}`;break;case"italic":re=`\\mathit{${re}}`;break;case"bolditalic":re=`\\mathbfit{${re}}`;break}b+=re}}return b}function dt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var qt={},Xn=xe({},Qe),bn={},un={},nn={darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",lang:"\\langle",rang:"\\rangle",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",N:"\\mathbb{N}",R:"\\mathbb{R}",Z:"\\mathbb{Z}",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",Beta:"\\mathrm{B}",bull:"\\bullet",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",Dagger:"\\ddagger",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",exist:"\\exists",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",larr:"\\leftarrow",lArr:"\\Leftarrow",Larr:"\\Leftarrow",lrarr:"\\leftrightarrow",lrArr:"\\Leftrightarrow",Lrarr:"\\Leftrightarrow",Mu:"\\mathrm{M}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",Omicron:"\\mathrm{O}",plusmn:"\\pm",rarr:"\\rightarrow",rArr:"\\Rightarrow",Rarr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sect:"\\S",spades:"\\spadesuit",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",thetasym:"\\vartheta",weierp:"\\wp",Zeta:"\\mathrm{Z}"},xn={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}},Pn={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}},De={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:Pn},"amsmath.sty":{package:xn,primitive:!0},"texvc.sty":{package:nn,primitive:!1}},ue={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},ce=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,he,fe;at()?(he=new RegExp("\\p{Letter}","u"),fe=new RegExp("[0-9\\p{Letter}]","u")):(he=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,fe=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function le(a,y,b="mord",E){y!==void 0&&(qt[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},Xn[y]||(Xn[y]=a))}function Me(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);le(ee,ee.codePointAt(0))}return}for(const[E,ee,re,oe]of a)le(E,ee,re!=null?re:y,oe!=null?oe:b)}function Ve(a,y){for(let b=a;b<=y;b++)le(String.fromCodePoint(b),b)}function ft(a){var y;return(y=un[a])!=null?y:null}function Ht(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const oe in bn)oe.startsWith(y)&&!bn[oe].infix&&ee.push({match:oe,frequency:(b=bn[oe].frequency)!=null?b:0});for(const oe in qt)oe.startsWith(y)&&ee.push({match:oe,frequency:(E=qt[oe].frequency)!=null?E:0});const re=y.substring(1);for(const oe of Object.keys(a.options.macros))oe.startsWith(re)&&ee.push({match:"\\"+oe,frequency:0});return ee.sort((oe,pe)=>{var ge,be;return oe.frequency===pe.frequency?oe.match.length===pe.match.length?oe.match<pe.match?-1:1:oe.match.length-pe.match.length:((ge=pe.frequency)!=null?ge:0)-((be=oe.frequency)!=null?be:0)}),ee.map(oe=>oe.match)}function Zt(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function jt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:Zt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...jt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:Zt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...jt(b[E]))}return y}function $t(a){if(!a)return"";let y="",b=!0;for(const E of a)typeof E.value=="string"?y+=E.value:b=!1;return b?y:""}function Je(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)un[E]=b}function Et(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:jt(y),createAtom:b};for(const re of a)un[re]=ee}function Lt(a,y,b){var E,ee;b||(b={});const re={definitionType:"function",params:jt(y),ifMode:b.ifMode,isFunction:(E=b.isFunction)!=null?E:!1,applyMode:b.applyMode,infix:(ee=b.infix)!=null?ee:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")bn["\\"+a]=re;else for(const oe of a)bn["\\"+oe]=re}var Xt;function wt(a){return Xt||(Xt=et(De)),a?et(xe(xe({},Xt),a)):Xt}function Nn(a,y){var b,E,ee,re;if(typeof a=="string"){let oe=0;const pe=a;return/(^|[^\\])#1/.test(pe)&&(oe=1),/(^|[^\\])#2/.test(pe)&&(oe=2),/(^|[^\\])#3/.test(pe)&&(oe=3),/(^|[^\\])#4/.test(pe)&&(oe=4),/(^|[^\\])#5/.test(pe)&&(oe=5),/(^|[^\\])#6/.test(pe)&&(oe=6),/(^|[^\\])#7/.test(pe)&&(oe=7),/(^|[^\\])#8/.test(pe)&&(oe=8),/(^|[^\\])#9/.test(pe)&&(oe=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:oe,def:pe}}return xe({expand:(ee=y==null?void 0:y.expand)!=null?ee:!0,captureSelection:(re=y==null?void 0:y.captureSelection)!=null?re:!0,args:0},a)}function et(a){if(!a)return{};const y={};for(const b of Object.keys(a)){const E=a[b];if(E==null)delete y[b];else if(typeof E=="object"&&"package"in E)for(const ee of Object.keys(E.package))y[ee]=Nn(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=Nn(E)}return y}function It(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=bn[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=qt[a]:ue[a]&&(b={definitionType:"symbol",type:"mord",codepoint:ue[a]})}else if(y==="math"){if(b=qt[a],!b&&a.length===1){const E=hn("math",a.codePointAt(0));return E.startsWith("\\")?me(xe({},It(E,"math")),{command:E}):null}}else ue[a]?b={definitionType:"symbol",type:"mord",codepoint:ue[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function gn(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function hn(a,y){if(y===void 0)return"";if(a==="math"&&Xn[y])return Xn[y];if(a==="text"){const b=Object.keys(ue).find(E=>ue[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var An=[0,.68889,0,0,.72222],Vn=[0,.68889,0,0,.66667],mr=[0,.68889,0,0,.77778],ur=[0,.68889,0,0,.61111],dr=[.16667,.68889,0,0,.77778],Fr=[0,.68889,0,0,.55556],nr=[0,0,0,0,.25],_r=[0,.825,0,0,2.33334],oi=[0,.9,0,0,2.33334],Wr=[0,.68889,0,0,.54028],xi=[-.03598,.46402,0,0,.5],ti=[-.13313,.36687,0,0,1],Ct=[.01354,.52239,0,0,1],wn=[.01354,.52239,0,0,1.11111],Rn=[0,.54986,0,0,1],an=[0,.69224,0,0,.5],vr=[0,.43056,0,0,1],lr=[.08198,.58198,0,0,.77778],Gn=[.19444,.69224,0,0,.41667],jn=[.1808,.675,0,0,1],nt=[.19444,.69224,0,0,.83334],mt=[.13667,.63667,0,0,1],Bt=[-.064,.437,0,0,1.334],rn=[.08167,.58167,0,0,.77778],Ze=[0,.69224,0,0,.72222],St=[0,.69224,0,0,.66667],Vt=[-.13313,.36687,0,0,.77778],Nt=[.06062,.54986,0,0,.77778],cn=[0,.69224,0,0,.77778],on=[.25583,.75583,0,0,.77778],Kn=[.25142,.75726,0,0,.77778],Hr=[.20576,.70576,0,0,.77778],hr=[.30274,.79383,0,0,.77778],or=[.22958,.72958,0,0,.77778],Ar=[.1808,.675,0,0,.77778],Lr=[.13667,.63667,0,0,.77778],kt=[.13597,.63597,0,0,.77778],gt=[.03517,.54986,0,0,.77778],Dt=[0,.675,0,0,.77778],En=[.19444,.69224,0,0,.61111],qn=[0,.54986,0,0,.76042],Cn=[0,.54986,0,0,.66667],Dn=[.0391,.5391,0,0,.77778],In=[.03517,.54986,0,0,1.33334],Un=[.38569,.88569,0,0,.77778],kr=[.23222,.74111,0,0,.77778],pn=[.19444,.69224,0,0,.77778],di=[0,.37788,0,0,.5],Qr=[0,.54986,0,0,.72222],Fi=[0,.69224,0,0,.83334],Ni=[.11111,.69224,0,0,.66667],Ci=[.26167,.75726,0,0,.77778],Qi=[.48256,.98256,0,0,.77778],Ei=[.28481,.79383,0,0,.77778],pi=[.08167,.58167,0,0,.22222],Hi=[.08167,.58167,0,0,.38889],$i=[0,.43056,.04028,0,.66667],ci=[.41951,.91951,0,0,.77778],Mi=[.24982,.74947,0,0,.38865],Ji=[.08319,.58283,0,0,.75623],ca=[0,.10803,0,0,.27764],na=[0,.47534,0,0,.50181],hi=[.18906,.47534,0,0,.50181],zt=[0,.69141,0,0,.50181],Tt=[.24982,.74947,0,0,.27764],fn=[0,.69141,0,0,.21471],Bn=[.25,.75,0,0,.44722],Qn=[0,.64444,0,0,.575],Or=[.08556,.58556,0,0,.89444],Zr=[0,.69444,0,0,.89444],Jr=[0,.68611,0,0,.9],ri=[0,.68611,0,0,.86944],qr=[.25,.75,0,0,.575],fi=[.25,.75,0,0,.31944],Ai=[0,.69444,0,0,.63889],jr=[0,.69444,0,0,.31944],wi=[0,.44444,0,0,.63889],Di=[0,.44444,0,0,.51111],Li=[0,.69444,0,0,.575],Te=[.13333,.63333,0,0,.89444],He=[0,.44444,0,0,.31944],Ke=[0,.69444,0,0,.86944],Ge=[0,.68611,0,0,.69166],ut=[0,.68611,0,0,.83055],vt=[0,.68611,0,0,.89444],Kt=[0,.69444,0,0,.60278],vn=[.19444,.69444,0,0,.51111],kn=[0,.69444,0,0,.83055],yr=[-.10889,.39111,0,0,1.14999],Pr=[.19444,.69444,0,0,.575],cr=[.19444,.69444,0,0,1.14999],Wn=[.19444,.69444,0,0,.70277],Fn=[.05556,.75,0,0,.575],$n=[0,.68611,0,0,.95833],rr=[.08556,.58556,0,0,.76666],Ir=[-.02639,.47361,0,0,.575],gr=[0,.44444,0,0,.89444],fr=[0,.55556,0,0,.76666],wr=[-.10889,.39111,0,0,.89444],Sr=[.00222,.50222,0,0,.89444],Nr=[.19667,.69667,0,0,.89444],Fe=[.08556,.58556,0,0,1.14999],We=[0,.69444,0,0,.70277],Wt=[-.02778,.47222,0,0,.575],bt=[.25,.75,0,0,.51111],sn=[-.13889,.36111,0,0,1.14999],Ln=[.19444,.69444,0,0,1.02222],zn=[.12963,.69444,0,0,.89444],ar=[.19444,.69444,0,0,.44722],ot=[0,.64444,.13167,0,.59111],Ye=[.19444,.64444,.13167,0,.59111],yt=[0,.68611,.17208,0,.8961],Qt=[.19444,.44444,.105,0,.53222],_n=[0,.44444,.085,0,.82666],mn=[0,.69444,.06709,0,.59111],ln=[0,.69444,.12945,0,.35555],sr=[0,.69444,0,0,.94888],ir=[0,.69444,.11472,0,.59111],xr=[0,.68611,.10778,0,.88555],er=[0,.69444,.07939,0,.62055],Tn=[0,.69444,.12417,0,.30667],Er=[0,.64444,.13556,0,.51111],zr=[.19444,.64444,.13556,0,.51111],Br=[0,.68333,.16389,0,.74333],Cr=[.19444,.43056,.08847,0,.46],Dr=[0,.43056,.07514,0,.71555],ui=[0,.69444,.06646,0,.51111],ei=[0,.69444,0,0,.83129],ii=[0,.69444,.1225,0,.51111],Ti=[0,.68333,.09403,0,.76666],ea=[0,.68333,.11111,0,.76666],Si=[0,.69444,.06961,0,.51444],zi=[0,.69444,0,0,.27778],ai=[.25,.75,0,0,.38889],vi=[0,.64444,0,0,.5],_i=[0,.69444,0,0,.77778],Ki=[0,.68333,0,0,.75],Ea=[0,.68333,0,0,.77778],Ta=[0,.68333,0,0,.68056],va=[0,.68333,0,0,.72222],ra=[.25,.75,0,0,.5],Yi=[.25,.75,0,0,.27778],ki=[0,.69444,0,0,.5],Ma=[0,.69444,0,0,.55556],Ri=[0,.43056,0,0,.44445],si=[0,.43056,0,0,.5],Ui=[.19444,.43056,0,0,.55556],ua=[0,.43056,0,0,.55556],ta=[.08333,.58333,0,0,.77778],oa=[0,.43056,0,0,.27778],Bi=[0,.66786,0,0,.27778],pa=[0,.69444,0,0,.75],wa=[0,.66786,0,0,.5],fa=[0,.68333,0,0,.625],Sa=[.19444,.69444,0,0,.44445],La=[0,.69444,0,0,.72222],Va=[.19444,.69444,0,0,.5],ha=[.19444,.69444,0,0,1],Ba=[.011,.511,0,0,1.126],qa=[.19444,.69444,0,0,.61111],Ya=[.05556,.75,0,0,.5],so=[0,.68333,0,0,.83334],_a=[.0391,.5391,0,0,.66667],Aa=[-.05555,.44445,0,0,.5],Wi=[0,.43056,0,0,.77778],Xi=[0,.55556,0,0,.66667],da=[-.03625,.46375,0,0,.77778],Ca=[-.01688,.48312,0,0,.77778],Ka=[.0391,.5391,0,0,1],io=[0,.69444,0,0,.61111],ho=[-.03472,.46528,0,0,.5],Po=[.25,.75,0,0,.44445],No=[-.14236,.35764,0,0,1],lo=[.244,.744,0,0,.412],Bo=[.19444,.69444,0,0,.88889],ia=[.12963,.69444,0,0,.77778],Vi=[.19444,.69444,0,0,.38889],Oa=[.011,.511,0,0,1.638],Da=[.19444,.69444,0,0,0],co=[0,.44444,0,0,.575],ao=[.19444,.44444,0,0,.575],hs=[0,.68611,0,0,.75555],$o=[0,.69444,0,0,.66759],ps=[0,.68611,0,0,.80555],sa=[0,.68611,.08229,0,.98229],Yr=[0,.68611,0,0,.76666],Oi=[0,.44444,0,0,.58472],Pi=[.19444,.44444,0,0,.6118],ji=[.19444,.43056,0,0,.5],Wa=[0,.68333,.02778,.08334,.76278],Ga=[0,.68333,.08125,.05556,.83125],_o=[0,.43056,0,.05556,.48472],Zo=[.19444,.43056,0,.08334,.51702],ls=[.25,.75,0,0,.42778],ya=[0,.69444,0,0,.55],Ro=[0,.69444,0,0,.73334],cs=[0,.69444,0,0,.79445],ul=[0,.69444,0,0,.51945],Bs=[0,.69444,0,0,.70278],ms=[0,.69444,0,0,.76389],Ho=[.25,.75,0,0,.34306],Ds=[0,.69444,0,0,.56111],Is=[0,.69444,0,0,.25556],Js=[.19444,.45833,0,0,.56111],oo=[0,.45833,0,0,.56111],Pa=[0,.69444,0,0,.30556],Xa=[0,.69444,0,0,.58056],go=[0,.69444,0,0,.67223],yo=[0,.69444,0,0,.85556],Ko=[0,.69444,0,0,.55834],wo=[0,.65556,.11156,0,.5],xs=[0,.69444,.08094,0,.70834],Xl=[.17014,0,0,0,.44445],Ql=[0,.69444,.0799,0,.5],vc=[0,.69444,0,0,.73752],Xc=[0,.69444,.09205,0,.5],Ks=[0,.69444,.09031,0,.77778],Ts=[0,.69444,.07816,0,.27778],yc=[0,.69444,.00316,0,.5],Jl=[.19444,.69444,0,0,.83334],Na=[.05556,.75,0,0,.83334],ma=[0,.75,0,0,.5],Wo=[.125,.08333,0,0,.27778],es=[0,.08333,0,0,.27778],ga=[0,.65556,0,0,.5],Ha=[0,.69444,0,0,.47222],Fa=[0,.69444,0,0,.66667],po=[0,.69444,0,0,.59722],is=[0,.69444,0,0,.54167],Ws=[0,.69444,0,0,.70834],gs=[.25,.75,0,0,.28889],ql=[0,.69444,0,0,.51667],Ud=[0,.44444,0,0,.44445],Vd=[.19444,.44444,0,0,.51667],Qc=[0,.44444,0,0,.38333],Uu=[0,.44444,0,0,.51667],Jc=[0,.69444,0,0,.83334],Gd=[.35001,.85,0,0,.45834],qc=[.35001,.85,0,0,.57778],$c=[.35001,.85,0,0,.41667],Vu=[.35001,.85,0,0,.58334],bc=[0,.72222,0,0,.55556],eu=[1e-5,.6,0,0,.66667],Gu=[1e-5,.6,0,0,.77778],$l=[.25001,.75,0,0,.94445],Yd=[.306,.805,.19445,0,.47222],xc=[.30612,.805,.19445,0,.47222],Uo=[.25001,.75,0,0,.83334],Ol=[.35001,.85,0,0,.47222],Yu=[.25001,.75,0,0,1.11111],Xu=[.65002,1.15,0,0,.59722],vs=[.65002,1.15,0,0,.81111],Ua=[.65002,1.15,0,0,.47222],Ms=[.65002,1.15,0,0,.66667],Os=[0,.75,0,0,1],qs=[.55001,1.05,0,0,1.27778],Qu=[.862,1.36,.44445,0,.55556],tu=[.86225,1.36,.44445,0,.55556],Pl=[.55001,1.05,0,0,1.11111],nu=[.65002,1.15,0,0,.52778],ru=[.65002,1.15,0,0,.61111],Nl=[.55001,1.05,0,0,1.51112],Ju=[.95003,1.45,0,0,.73611],iu=[.95003,1.45,0,0,1.04445],$s=[.95003,1.45,0,0,.52778],wc=[.95003,1.45,0,0,.75],Sc=[0,.75,0,0,1.44445],au=[.95003,1.45,0,0,.58334],Cc=[1.25003,1.75,0,0,.79167],ou=[1.25003,1.75,0,0,1.27778],qu=[1.25003,1.75,0,0,.58334],su=[1.25003,1.75,0,0,.80556],Ec=[0,.825,0,0,1.8889],lu=[1.25003,1.75,0,0,.63889],cu=[.64502,1.155,0,0,.875],Mc=[1e-5,.6,0,0,.875],uu=[-99e-5,.601,0,0,.66667],du=[.64502,1.155,0,0,.66667],Xd=[1e-5,.9,0,0,.88889],$u=[.65002,1.15,0,0,.88889],Rl=[.90001,0,0,0,.88889],fu=[-.00499,.605,0,0,1.05556],Fl=[0,.12,0,0,.45],yi=[0,.61111,0,0,.525],ws=[.08333,.69444,0,0,.525],ed=[-.08056,.53055,0,0,.525],Qd=[-.05556,.55556,0,0,.525],as=[0,.43056,0,0,.525],Do=[.22222,.43056,0,0,.525],Ac=[0,0,0,0,.525],Jd={"AMS-Regular":{32:nr,65:An,66:Vn,67:An,68:An,69:Vn,70:ur,71:mr,72:mr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:mr,76:Vn,77:[0,.68889,0,0,.94445],78:An,79:dr,80:ur,81:dr,82:An,83:Fr,84:Vn,85:An,86:An,87:[0,.68889,0,0,1],88:An,89:An,90:Vn,107:Fr,160:nr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Fr,295:Wr,710:_r,732:oi,770:_r,771:oi,989:rn,1008:$i,8245:[0,.54986,0,0,.275],8463:Wr,8487:An,8498:Fr,8502:Vn,8503:[0,.68889,0,0,.44445],8504:Vn,8513:[0,.68889,0,0,.63889],8592:xi,8594:xi,8602:ti,8603:ti,8606:Ct,8608:Ct,8610:wn,8611:wn,8619:Rn,8620:Rn,8621:[-.13313,.37788,0,0,1.38889],8622:ti,8624:an,8625:an,8630:vr,8631:vr,8634:lr,8635:lr,8638:Gn,8639:Gn,8642:Gn,8643:Gn,8644:jn,8646:jn,8647:jn,8648:nt,8649:jn,8650:nt,8651:Ct,8652:Ct,8653:ti,8654:ti,8655:ti,8666:mt,8667:mt,8669:[-.13313,.37788,0,0,1],8672:Bt,8674:Bt,8705:[0,.825,0,0,.5],8708:Fr,8709:rn,8717:[0,.43056,0,0,.42917],8722:xi,8724:[.08198,.69224,0,0,.77778],8726:rn,8733:cn,8736:Ze,8737:Ze,8738:[.03517,.52239,0,0,.72222],8739:pi,8740:[.25142,.74111,0,0,.27778],8741:Hi,8742:[.25142,.74111,0,0,.5],8756:St,8757:St,8764:Vt,8765:[-.13313,.37788,0,0,.77778],8769:Vt,8770:da,8774:hr,8776:Ca,8778:rn,8782:Nt,8783:Nt,8785:lr,8786:lr,8787:lr,8790:cn,8791:or,8796:[.08198,.91667,0,0,.77778],8806:on,8807:on,8808:Kn,8809:Kn,8812:[.25583,.75583,0,0,.5],8814:Hr,8815:Hr,8816:hr,8817:hr,8818:or,8819:or,8822:Ar,8823:Ar,8828:Lr,8829:Lr,8830:or,8831:or,8832:Hr,8833:Hr,8840:hr,8841:hr,8842:kt,8843:kt,8847:gt,8848:gt,8858:lr,8859:lr,8861:lr,8862:Dt,8863:Dt,8864:Dt,8865:Dt,8872:[0,.69224,0,0,.61111],8873:Ze,8874:[0,.69224,0,0,.88889],8876:ur,8877:ur,8878:An,8879:An,8882:gt,8883:gt,8884:Lr,8885:Lr,8888:[0,.54986,0,0,1.11111],8890:Ui,8891:En,8892:En,8901:[0,.54986,0,0,.27778],8903:rn,8905:rn,8906:rn,8907:cn,8908:cn,8909:[-.03598,.46402,0,0,.77778],8910:qn,8911:qn,8912:gt,8913:gt,8914:Cn,8915:Cn,8916:St,8918:Dn,8919:Dn,8920:In,8921:In,8922:Un,8923:Un,8926:Lr,8927:Lr,8928:hr,8929:hr,8934:kr,8935:kr,8936:kr,8937:kr,8938:Hr,8939:Hr,8940:hr,8941:hr,8994:pn,8995:pn,9416:[.15559,.69224,0,0,.90222],9484:an,9488:an,9492:di,9496:di,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Dt,9633:Dt,9650:Qr,9651:Qr,9654:gt,9660:Qr,9661:Qr,9664:gt,9674:Ni,9733:[.19444,.69224,0,0,.94445],10003:Fi,10016:Fi,10731:Ni,10846:[.19444,.75583,0,0,.61111],10877:Lr,10878:Lr,10885:on,10886:on,10887:kt,10888:kt,10889:Ci,10890:Ci,10891:Qi,10892:Qi,10901:Lr,10902:Lr,10933:Kn,10934:Kn,10935:Ci,10936:Ci,10937:Ci,10938:Ci,10949:on,10950:on,10955:Ei,10956:Ei,57350:pi,57351:Hi,57352:rn,57353:$i,57356:Kn,57357:Kn,57358:ci,57359:hr,57360:hr,57361:ci,57366:Kn,57367:Kn,57368:Kn,57369:Kn,57370:kt,57371:kt},"Caligraphic-Regular":{32:nr,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:nr},"Fraktur-Regular":{32:nr,33:[0,.69141,0,0,.29574],34:fn,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Mi,41:Mi,42:[0,.62119,0,0,.27764],43:Ji,44:ca,45:Ji,46:ca,47:[.24982,.74947,0,0,.50181],48:na,49:na,50:na,51:hi,52:hi,53:hi,54:zt,55:hi,56:zt,57:hi,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:Tt,93:Tt,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:nr,8216:fn,8217:fn,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:nr,33:[0,.69444,0,0,.35],34:Kt,35:[.19444,.69444,0,0,.95833],36:Fn,37:[.05556,.75,0,0,.95833],38:Zr,39:jr,40:Bn,41:Bn,42:[0,.75,0,0,.575],43:Te,44:[.19444,.15556,0,0,.31944],45:Qc,46:[0,.15556,0,0,.31944],47:qr,48:Qn,49:Qn,50:Qn,51:Qn,52:Qn,53:Qn,54:Qn,55:Qn,56:Qn,57:Qn,58:He,59:[.19444,.44444,0,0,.31944],60:Or,61:wr,62:Or,63:[0,.69444,0,0,.54305],64:Zr,65:ri,66:[0,.68611,0,0,.81805],67:ut,68:[0,.68611,0,0,.88194],69:hs,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:Jr,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Ge,77:[0,.68611,0,0,1.09166],78:Jr,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:ri,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:fi,92:qr,93:fi,94:Li,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Ai,99:Di,100:Ai,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Ai,105:jr,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:jr,109:[0,.44444,0,0,.95833],110:wi,111:co,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:wi,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:Di,123:qr,124:fi,125:qr,126:[.35,.34444,0,0,.575],160:nr,163:[0,.69444,0,0,.86853],168:Li,172:[0,.44444,0,0,.76666],176:Ke,177:Te,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Te,216:[.04861,.73472,0,0,.89444],223:po,230:[0,.44444,0,0,.83055],247:Te,248:[.09722,.54167,0,0,.575],305:He,338:[0,.68611,0,0,1.16944],339:gr,567:[.19444,.44444,0,0,.35139],710:Li,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Li,715:Li,728:Li,729:jr,730:Ke,732:Li,733:Li,915:Ge,916:$n,920:vt,923:ps,926:Yr,928:Jr,931:ut,933:vt,934:ut,936:vt,937:ut,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:jr,8217:jr,8220:Kt,8221:Kt,8224:vn,8225:vn,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:$o,8465:kn,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:kn,8501:We,8592:yr,8593:Pr,8594:yr,8595:Pr,8596:yr,8597:qr,8598:cr,8599:cr,8600:cr,8601:cr,8636:yr,8637:yr,8640:yr,8641:yr,8656:yr,8657:Wn,8658:yr,8659:Wn,8660:yr,8661:[.25,.75,0,0,.70277],8704:Ai,8706:[0,.69444,.06389,0,.62847],8707:Ai,8709:Fn,8711:$n,8712:rr,8715:rr,8722:Te,8723:Te,8725:qr,8726:qr,8727:Wt,8728:Ir,8729:Ir,8730:[.18,.82,0,0,.95833],8733:gr,8734:[0,.44444,0,0,1.14999],8736:Ze,8739:fi,8741:qr,8743:fr,8744:fr,8745:fr,8746:fr,8747:[.19444,.69444,.12778,0,.56875],8764:wr,8768:[.19444,.69444,0,0,.31944],8771:Sr,8776:[.02444,.52444,0,0,.89444],8781:Sr,8801:Sr,8804:Nr,8805:Nr,8810:Fe,8811:Fe,8826:Or,8827:Or,8834:Or,8835:Or,8838:Nr,8839:Nr,8846:fr,8849:Nr,8850:Nr,8851:fr,8852:fr,8853:Te,8854:Te,8855:Te,8856:Te,8857:Te,8866:We,8867:We,8868:Zr,8869:Zr,8900:Ir,8901:[-.02639,.47361,0,0,.31944],8902:Wt,8968:bt,8969:bt,8970:bt,8971:bt,8994:sn,8995:sn,9651:Ln,9657:Wt,9661:Ln,9667:Wt,9711:cr,9824:zn,9825:zn,9826:zn,9827:zn,9837:[0,.75,0,0,.44722],9838:ar,9839:ar,10216:Bn,10217:Bn,10815:Jr,10927:Nr,10928:Nr,57376:Da},"Main-BoldItalic":{32:nr,33:[0,.69444,.11417,0,.38611],34:er,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:ln,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:ot,49:ot,50:ot,51:ot,52:Ye,53:ot,54:ot,55:Ye,56:ot,57:ot,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:ir,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:yt,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:yt,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:mn,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:Qt,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:Qt,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:nr,168:[0,.69444,.11473,0,.59111],176:sr,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:_n,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:_n,567:[.19444,.44444,.04611,0,.385],710:mn,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:ln,730:sr,732:ir,733:ir,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:yt,931:[0,.68611,.11431,0,.82666],933:xr,934:[0,.68611,.05632,0,.82666],936:xr,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:ln,8217:ln,8220:[0,.69444,.16772,0,.62055],8221:er},"Main-Italic":{32:nr,33:Tn,34:Si,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:Tn,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:Er,49:Er,50:Er,51:Er,52:zr,53:Er,54:Er,55:zr,56:Er,57:Er,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:ii,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:Br,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:Br,79:Ti,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:Br,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:ui,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:Cr,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:Cr,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:nr,168:[0,.66786,.10474,0,.51111],176:ei,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:Dr,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Dr,710:ui,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:ei,732:[0,.66786,.11585,0,.51111],733:ii,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Ti,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Br,931:[0,.68333,.12028,0,.71555],933:ea,934:[0,.68333,.05986,0,.71555],936:ea,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:Tn,8217:Tn,8220:[0,.69444,.1685,0,.51444],8221:Si,8463:Wr},"Main-Regular":{32:nr,33:zi,34:ki,35:Jl,36:Ya,37:Na,38:_i,39:zi,40:ai,41:ai,42:ma,43:ta,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:ra,48:vi,49:vi,50:vi,51:vi,52:vi,53:vi,54:vi,55:vi,56:vi,57:vi,58:oa,59:[.19444,.43056,0,0,.27778],60:Dn,61:Vt,62:Dn,63:Ha,64:_i,65:Ki,66:[0,.68333,0,0,.70834],67:va,68:[0,.68333,0,0,.76389],69:Ta,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Ki,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Ea,76:fa,77:[0,.68333,0,0,.91667],78:Ki,79:Ea,80:Ta,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:va,85:Ki,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Ki,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Yi,92:ra,93:Yi,94:ki,95:[.31,.12056,.02778,0,.5],97:si,98:Ma,99:Ri,100:Ma,101:Ri,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Ma,105:Bi,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:zi,109:[0,.43056,0,0,.83334],110:ua,111:si,112:Ui,113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:ua,118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:Ri,123:ra,124:Yi,125:ra,126:[.35,.31786,0,0,.5],160:nr,163:[0,.69444,0,0,.76909],167:Sa,168:wa,172:[0,.43056,0,0,.66667],176:pa,177:ta,182:qa,184:Xl,198:[0,.68333,0,0,.90278],215:ta,216:[.04861,.73194,0,0,.77778],223:ki,230:[0,.43056,0,0,.72222],247:ta,248:[.09722,.52778,0,0,.5],305:oa,338:[0,.68333,0,0,1.01389],339:Wi,567:[.19444,.43056,0,0,.30556],710:ki,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:ki,715:ki,728:ki,729:Bi,730:pa,732:wa,733:ki,915:fa,916:so,920:Ea,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Ki,931:va,933:Ea,934:va,936:Ea,937:va,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:zi,8217:zi,8220:ki,8221:ki,8224:Sa,8225:Sa,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Wr,8465:La,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:La,8501:io,8592:ti,8593:Va,8594:ti,8595:Va,8596:ti,8597:ra,8598:ha,8599:ha,8600:ha,8601:ha,8614:[.011,.511,0,0,1],8617:Ba,8618:Ba,8636:ti,8637:ti,8640:ti,8641:ti,8652:[.011,.671,0,0,1],8656:ti,8657:qa,8658:ti,8659:qa,8660:ti,8661:[.25,.75,0,0,.61111],8704:Ma,8706:[0,.69444,.05556,.08334,.5309],8707:Ma,8709:Ya,8711:so,8712:_a,8715:_a,8722:ta,8723:ta,8725:ra,8726:ra,8727:ho,8728:Aa,8729:Aa,8730:[.2,.8,0,0,.83334],8733:Wi,8734:vr,8736:Ze,8739:Yi,8741:ra,8743:Xi,8744:Xi,8745:Xi,8746:Xi,8747:[.19444,.69444,.11111,0,.41667],8764:Vt,8768:[.19444,.69444,0,0,.27778],8771:da,8773:[-.022,.589,0,0,1],8776:Ca,8781:da,8784:[-.133,.67,0,0,.778],8801:da,8804:kt,8805:kt,8810:Ka,8811:Ka,8826:Dn,8827:Dn,8834:Dn,8835:Dn,8838:kt,8839:kt,8846:Xi,8849:kt,8850:kt,8851:Xi,8852:Xi,8853:ta,8854:ta,8855:ta,8856:ta,8857:ta,8866:io,8867:io,8868:_i,8869:_i,8872:[.249,.75,0,0,.867],8900:Aa,8901:[-.05555,.44445,0,0,.27778],8902:ho,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:Po,8969:Po,8970:Po,8971:Po,8994:No,8995:No,9136:lo,9137:lo,9651:Bo,9657:ho,9661:Bo,9667:ho,9711:ha,9824:ia,9825:ia,9826:ia,9827:ia,9837:[0,.75,0,0,.38889],9838:Vi,9839:Vi,10216:ai,10217:ai,10222:lo,10223:lo,10229:[.011,.511,0,0,1.609],10230:Oa,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:Oa,10815:Ki,10927:kt,10928:kt,57376:Da},"Math-BoldItalic":{32:nr,48:co,49:co,50:co,51:ao,52:ao,53:ao,54:Qn,55:ao,56:Qn,57:ao,65:ri,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:sa,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:hs,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:$o,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:Oi,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:nr,915:[0,.68611,.15972,0,.65694],916:$n,920:[0,.68611,.03194,0,.86722],923:ps,926:[0,.68611,.07458,0,.84125],928:sa,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Yr,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:Oi,960:[0,.44444,.03704,0,.68241],961:Pi,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:Pi,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:nr,48:si,49:si,50:si,51:ji,52:ji,53:ji,54:vi,55:ji,56:vi,57:ji,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:Ga,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:Wa,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:_o,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:nr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Wa,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Ga,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:_o,960:[0,.43056,.03588,0,.57003],961:Zo,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:Zo,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:nr,33:[0,.69444,0,0,.36667],34:Ko,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:Pa,40:ls,41:ls,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:ya,49:ya,50:ya,51:ya,52:ya,53:ya,54:ya,55:ya,56:ya,57:ya,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:ul,64:Ro,65:Ro,66:Ro,67:Bs,68:cs,69:[0,.69444,0,0,.64167],70:io,71:Ro,72:cs,73:[0,.69444,0,0,.33056],74:ul,75:ms,76:Xa,77:[0,.69444,0,0,.97778],78:cs,79:cs,80:Bs,81:[.10556,.69444,0,0,.79445],82:Bs,83:io,84:Ro,85:ms,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Ro,89:[0,.69444,.0275,0,.73334],90:go,91:Ho,93:Ho,94:ya,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Ds,99:[0,.45833,0,0,.48889],100:Ds,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Ds,105:Is,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Is,109:[0,.45833,0,0,.86667],110:oo,111:[0,.45833,0,0,.55],112:Js,113:Js,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:oo,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:nr,168:ya,176:Ro,180:ya,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:ya,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:ya,729:Pa,730:Ro,732:ya,733:ya,915:Xa,916:[0,.69444,0,0,.91667],920:yo,923:go,926:Ro,928:cs,931:cs,933:yo,934:cs,936:yo,937:cs,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Pa,8217:Pa,8220:Ko,8221:Ko},"SansSerif-Italic":{32:nr,33:[0,.69444,.05733,0,.31945],34:yc,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:Ts,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:Wo,45:[0,.44444,.01946,0,.33333],46:es,47:[.25,.75,.13164,0,.5],48:wo,49:wo,50:wo,51:wo,52:wo,53:wo,54:wo,55:wo,56:wo,57:wo,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:Fa,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:xs,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:is,77:[0,.69444,.08094,0,.875],78:xs,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:Ql,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:nr,168:[0,.67937,.06385,0,.5],176:vc,184:Xl,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Ql,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Xc,715:ki,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:vc,732:[0,.67659,.08826,0,.5],733:Xc,915:[0,.69444,.13372,0,.54167],916:Jc,920:[0,.69444,.07555,0,.77778],923:io,926:[0,.69444,.12816,0,.66667],928:xs,931:[0,.69444,.11983,0,.72222],933:Ks,934:[0,.69444,.04603,0,.72222],936:Ks,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Ts,8217:Ts,8220:[0,.69444,.14205,0,.5],8221:yc},"SansSerif-Regular":{32:nr,33:[0,.69444,0,0,.31945],34:ki,35:Jl,36:Ya,37:Na,38:[0,.69444,0,0,.75834],39:zi,40:ai,41:ai,42:ma,43:ta,44:Wo,45:[0,.44444,0,0,.33333],46:es,47:ra,48:ga,49:ga,50:ga,51:ga,52:ga,53:ga,54:ga,55:ga,56:ga,57:ga,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:Ha,64:Fa,65:Fa,66:Fa,67:Ai,68:[0,.69444,0,0,.72223],69:po,70:[0,.69444,0,0,.56945],71:Fa,72:Ws,73:zi,74:Ha,75:[0,.69444,0,0,.69445],76:is,77:[0,.69444,0,0,.875],78:Ws,79:[0,.69444,0,0,.73611],80:Ai,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Ma,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:Fa,89:[0,.69444,.025,0,.66667],90:io,91:gs,93:gs,94:ki,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:ql,99:Ud,100:ql,101:Ud,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:ql,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:Uu,111:[0,.44444,0,0,.5],112:Vd,113:Vd,114:[0,.44444,.01389,0,.34167],115:Qc,116:[0,.57143,0,0,.36111],117:Uu,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:nr,168:[0,.67937,0,0,.5],176:Fa,184:Xl,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:ki,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:ki,715:ki,728:ki,729:[0,.67937,0,0,.27778],730:Fa,732:[0,.67659,0,0,.5],733:ki,915:is,916:Jc,920:_i,923:io,926:Fa,928:Ws,931:La,933:_i,934:La,936:_i,937:La,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:zi,8217:zi,8220:ki,8221:ki},"Script-Regular":{32:nr,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:nr},"Size1-Regular":{32:nr,40:Gd,41:Gd,47:qc,91:$c,92:qc,93:$c,123:Vu,125:Vu,160:nr,710:bc,732:bc,770:bc,771:bc,8214:[-99e-5,.601,0,0,.77778],8593:eu,8595:eu,8657:Gu,8659:Gu,8719:$l,8720:$l,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:xc,8748:Yd,8749:Yd,8750:xc,8896:Uo,8897:Uo,8898:Uo,8899:Uo,8968:Ol,8969:Ol,8970:Ol,8971:Ol,9168:uu,10216:Ol,10217:Ol,10752:Yu,10753:Yu,10754:Yu,10756:Uo,10758:Uo},"Size2-Regular":{32:nr,40:Xu,41:Xu,47:vs,91:Ua,92:vs,93:Ua,123:Ms,125:Ms,160:nr,710:Os,732:Os,770:Os,771:Os,8719:qs,8720:qs,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:tu,8748:Qu,8749:Qu,8750:tu,8896:Pl,8897:Pl,8898:Pl,8899:Pl,8968:nu,8969:nu,8970:nu,8971:nu,10216:ru,10217:ru,10752:Nl,10753:Nl,10754:Nl,10756:Pl,10758:Pl},"Size3-Regular":{32:nr,40:Ju,41:Ju,47:iu,91:$s,92:iu,93:$s,123:wc,125:wc,160:nr,710:Sc,732:Sc,770:Sc,771:Sc,8730:[.95003,1.45,0,0,1],8968:au,8969:au,8970:au,8971:au,10216:wc,10217:wc},"Size4-Regular":{32:nr,40:Cc,41:Cc,47:ou,91:qu,92:ou,93:qu,123:su,125:su,160:nr,710:Ec,732:Ec,770:Ec,771:Ec,8730:[1.25003,1.75,0,0,1],8968:lu,8969:lu,8970:lu,8971:lu,9115:cu,9116:Mc,9117:cu,9118:cu,9119:Mc,9120:cu,9121:du,9122:uu,9123:du,9124:du,9125:uu,9126:du,9127:Xd,9128:$u,9129:Rl,9130:[0,.3,0,0,.88889],9131:Xd,9132:$u,9133:Rl,9143:[.88502,.915,0,0,1.05556],10216:su,10217:su,57344:fu,57345:fu,57680:Fl,57681:Fl,57682:Fl,57683:Fl},"Typewriter-Regular":{32:Ac,33:yi,34:yi,35:yi,36:ws,37:ws,38:yi,39:yi,40:ws,41:ws,42:[0,.52083,0,0,.525],43:ed,44:[.13889,.125,0,0,.525],45:ed,46:[0,.125,0,0,.525],47:ws,48:yi,49:yi,50:yi,51:yi,52:yi,53:yi,54:yi,55:yi,56:yi,57:yi,58:as,59:[.13889,.43056,0,0,.525],60:Qd,61:[-.19549,.41562,0,0,.525],62:Qd,63:yi,64:yi,65:yi,66:yi,67:yi,68:yi,69:yi,70:yi,71:yi,72:yi,73:yi,74:yi,75:yi,76:yi,77:yi,78:yi,79:yi,80:yi,81:[.13889,.61111,0,0,.525],82:yi,83:yi,84:yi,85:yi,86:yi,87:yi,88:yi,89:yi,90:yi,91:ws,92:ws,93:ws,94:yi,95:[.09514,0,0,0,.525],96:yi,97:as,98:yi,99:as,100:yi,101:as,102:yi,103:Do,104:yi,105:yi,106:[.22222,.61111,0,0,.525],107:yi,108:yi,109:as,110:as,111:as,112:Do,113:Do,114:as,115:as,116:[0,.55358,0,0,.525],117:as,118:as,119:as,120:as,121:Do,122:as,123:ws,124:ws,125:ws,126:yi,127:yi,160:Ac,176:yi,184:[.19445,0,0,0,.525],305:as,567:Do,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:yi,715:yi,728:yi,730:yi,770:yi,771:yi,776:yi,915:yi,916:yi,920:yi,923:yi,926:yi,928:yi,931:yi,933:yi,934:yi,936:yi,937:yi,8216:yi,8217:yi,8242:yi,9251:[.11111,.21944,0,0,.525]}},qd=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,zl=10,os=.25,hu=1.2,el=.431,td={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[el,el,el],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:[os,os,os],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]},pu=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],dl=5,nd={"\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 tl(a,y){a===void 0&&(a=77);const b=Jd[y][a];if(b)return{defaultMetrics:!1,depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]};if(a===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const E=String.fromCodePoint(a);if(E in nd)a=nd[E].codePointAt(0);else if(qd.test(E))return a=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var mu={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},_l={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]},$d={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 ec(a){if(_l[a]){const[be,Ae,_e]=_l[a],it=`<span class="stretchy" style="height:${_e}em"><svg width="100%" height="${_e}em" viewBox="0 0 ${be} ${Ae}" preserveAspectRatio="none" ><path fill="currentcolor" d="${$d[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*_e/2)/100}em;min-width:0">${it}</span>`}const[y,b,E,ee]=mu[a];let re,oe;const pe=E/1e3;y.length===3?(re=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],oe=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(re=["slice-1-of-2","slice-2-of-2"],oe=["xMinYMin","xMaxYMin"]):(re=["slice-1-of-1"],oe=[ee]);const ge=y.map((be,Ae)=>`<span class="${re[Ae]}" style=height:${pe}em><svg width=400em height=${pe}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${oe[Ae]} slice"><path fill="currentcolor" d="${$d[be]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${pe}em;min-width:${b}em;">${ge}</span>`}function ef(a){return mu[a]?mu[a][2]/1e3:_l[a][2]}function tf(a){const y=[];for(let b=0;b<a.length;b++){let E=a.charCodeAt(b);if(E===13&&a.charCodeAt(b+1)===10&&(E=10,b++),(E===13||E===12)&&(E=10),E===0&&(E=65533),E>=55296&&E<=56319){const ee=a.charCodeAt(b+1);if(ee>=56320&&ee<=57343){const re=E-55296,oe=ee-56320;E=Tl(2,16)+re*Tl(2,10)+oe,b++}}y.push(E)}return y}var kc=8205,Lc=[[kc,1],[65038,2],[127995,5],[129456,4],[917536,96]],fl,tc=[127462,127487];function nc(a){var y;if(fl===void 0){fl={};for(const b of Lc)for(let E=b[0];E<=b[0]+b[1]-1;E++)fl[E]=!0}return(y=fl[a])!=null?y:!1}function nf(a){return a>=tc[0]&&a<=tc[1]}function rf(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=tf(a);let E=0;for(;E<b.length;){const ee=b[E++],re=b[E];if(re===kc){const oe=E-1;for(E+=2;b[E]===kc;)E+=2;y.push(String.fromCodePoint(...b.slice(oe,E-oe+1)))}else if(nc(re)){const oe=E-1;for(;nc(b[E]);)E+=b[E]===kc?2:1;y.push(String.fromCodePoint(...b.slice(oe,2*E-oe-1)))}else nf(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var af=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=rf(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 hl(a,y){var b,E,ee,re;const oe=[];let pe=a.next();if(pe&&pe!=="\\relax"){if(pe==="\\noexpand")pe=a.next(),pe&&oe.push(pe);else if(pe==="\\obeyspaces")a.obeyspaces=!0;else if(pe==="\\bgroup")oe.push("<{>");else if(pe==="\\egroup")oe.push("<}>");else if(pe==="\\string"){if(pe=a.next(),pe)if(pe.startsWith("\\"))for(const ge of pe)oe.push(ge==="\\"?"\\backslash":ge);else pe==="<{>"?oe.push("\\{"):pe==="<space>"?oe.push("~"):pe==="<}>"&&oe.push("\\}")}else if(pe==="\\csname"){for(;a.peek()==="<space>";)a.next();let ge="",be=!1,Ae=[];do{if(Ae.length===0)if(/^#[\d?@]$/.test(a.peek())){const _e=a.get().slice(1);Ae=nl((E=(b=y==null?void 0:y(_e))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),pe=Ae[0]}else pe=a.next(),Ae=pe?[pe]:[];be=Ae.length===0,!be&&pe==="\\endcsname"&&(be=!0,Ae.shift()),be||(be=pe==="<$>"||pe==="<$$>"||pe==="<{>"||pe==="<}>"||typeof pe=="string"&&pe.length>1&&pe.startsWith("\\")),be||(ge+=Ae.shift())}while(!be);ge&&oe.push("\\"+ge),oe.push(...Ae)}else if(pe!=="\\endcsname")if(pe.length>1&&pe.startsWith("#")){const ge=pe.slice(1);oe.push(...nl((re=(ee=y==null?void 0:y(ge))!=null?ee:y==null?void 0:y("?"))!=null?re:"\\placeholder{}",y))}else oe.push(pe)}return oe}function nl(a,y=null){const b=[];let E="";for(const oe of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const pe=oe.match(/((?:\\%)|[^%])*/);pe!==null&&b.push(pe[0])}const ee=new af($e(b.join(""))),re=[];do re.push(...hl(ee,y));while(!ee.end());return re}function ba(a){let y="";const b=[];for(const E of a)E&&(y&&/^[a-zA-Z\*]/.test(E)&&b.push(y),b.push(E),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(E)&&b.push(" "),y=/\\[a-zA-Z]+\*?$/.test(E)?" ":"");return b.join("")}function uo(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:ba([a,...y.map(b=>`{${b}}`)])}function pl(a){return ba(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var of=class Zd{constructor(y){Zd._registry[y]=this}static createAtom(y,b,E){return Zd._registry[y].createAtom(b,It(b,y),E)}static serialize(y,b){var E;if(!y||y.length===0)return"";if((E=b.skipStyles)!=null&&E){const ee=[];for(const re of sf(y)){const oe=Zd._registry[re[0].mode];ee.push(...oe.serialize(re,b))}return ba(ee)}return ba(th(y,b))}static getFont(y,b,E){return Zd._registry[y].getFont(b,E)}};of._registry={};var Ss=of;function sf(a){const y=[];let b=[],E="NONE";for(const ee of a)ee.type!=="first"&&(ee.mode!==E?(b.length>0&&y.push(b),b=[ee],E=ee.mode):b.push(ee));return b.length>0&&y.push(b),y}function Mo(a,y){const b=[];let E=[],ee;for(const re of a)if(re.type!=="first"&&re.style){let oe;y==="variant"?(oe=re.style.variant,re.style.variantStyle&&re.style.variantStyle!=="up"&&(oe+="-"+re.style.variantStyle)):oe=re.style[y],oe===ee?E.push(re):(E.length>0&&b.push(E),E=[re],ee=oe)}return E.length>0&&b.push(E),b}function rd(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,re=[];for(const oe of sf(a)){const pe=y.defaultMode;for(const ge of Mo(oe,"color")){const be=ge[0].computedStyle,Ae=Ss._registry[ge[0].mode].serialize(ge,me(xe({},y),{defaultMode:pe==="text"?"text":"math"}));!y.skipStyles&&be.color&&be.color!=="none"&&(!E||ee!==be.color)?re.push(uo("\\textcolor",(b=be.verbatimColor)!=null?b:be.color,ba(Ae))):re.push(ba(Ae))}}return re}function eh(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return Mo(a,"backgroundColor").map(ee=>{var re;if(ee.length>0||ee[0].type!=="box"){const oe=ee[0].computedStyle;if(oe.backgroundColor&&oe.backgroundColor!=="none"&&(!b||E!==oe.backgroundColor))return uo("\\colorbox",(re=oe.verbatimBackgroundColor)!=null?re:oe.backgroundColor,ba(rd(ee,me(xe({},y),{defaultMode:"text"}))))}return ba(rd(ee,y))})}function th(a,y){if(a.length===0)return[];const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.fontSize,ee=[];for(const re of Mo(a,"fontSize")){const oe=re[0].computedStyle.fontSize,pe=eh(re,y);pe&&(oe&&oe!=="auto"&&(!b||E!==oe)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][oe],...pe):ee.push(...pe))}return ee}function id(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 rc(a){if(a.length===0)return"ord";const y=id(a[0].type),b=id(a[a.length-1].type);return y&&y===b?y:"ord"}function ic(a,y){if(typeof a=="string")return a;if(typeof a=="number"){console.assert(Number.isFinite(a));const b=Math.ceil(100*a)/100;return b===0?"0":b.toString()+(y!=null?y:"")}return""}var Vr=class Ep{constructor(y,b){var E,ee,re,oe,pe;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Ne(y)?this.children=y.filter(be=>be!==null):y&&y instanceof Ep&&(this.children=[y]),this.children)for(const be of this.children)be.parent=this;this.type=(E=b==null?void 0:b.type)!=null?E:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ee=b==null?void 0:b.classes)!=null?ee:"",this.isTight=(re=b==null?void 0:b.isTight)!=null?re:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let ge=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ge=(pe=Ss.getFont((oe=b.mode)!=null?oe:"math",this,me(xe({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?pe:void 0),ge||(ge="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(b==null?void 0:b.maxFontSize)!==void 0&&(this.maxFontSize=b.maxFontSize),Bc(this,ge)}set atomID(y){y===void 0||y.length===0||(this.id=y)}selected(y){if(this.isSelected!==y&&(this.isSelected=y,this.children))for(const b of this.children)b.selected(y)}setStyle(y,b,E){if(b===void 0)return;const ee=ic(b,E);ee.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=ee)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=ic(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"]=ic(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"]=ic(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"]=ic(y,"em")))}get width(){return this._width*this.scale}set width(y){this._width=y,this.hasExplicitWidth=!0}set softWidth(y){}get height(){return this._height*this.scale}set height(y){this._height=y}get depth(){return this._depth*this.scale}set depth(y){this._depth=y}wrap(y){const b=y.parent;if(!b)return this;y.isPhantom&&this.setStyle("opacity",0);const E=y.color;E&&E!==b.color&&this.setStyle("color",E);let ee=y.backgroundColor;this.isSelected&&(ee=tr(ee)),ee&&ee!==b.backgroundColor&&(this.setStyle("background-color",ee),this.setStyle("display","inline-block"));const re=y.scalingFactor;return this.scale=re,this.skew*=re,this.italic*=re,this}toMarkup(){var y,b,E,ee;let re=(y=this.value)!=null?y:"";if(this.children)for(const Pt of this.children)re+=Pt.toMarkup();let oe="";if(this.svgBody)oe=ec(this.svgBody);else if(this.svgOverlay){oe='<span style="',oe+="display: inline-block;",oe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,oe+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,oe+='">',oe+=re,oe+="</span>",oe+='<svg style="position:absolute;overflow:visible;',oe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Pt=(b=this.cssProperties)==null?void 0:b.padding;Pt?(oe+=`top:${Pt};`,oe+=`left:${Pt};`,oe+=`width:calc(100% - 2 * ${Pt} );`):oe+="top:0;left:0;width:100%;",oe+="z-index:2;",oe+='"',this.svgStyle&&(oe+=this.svgStyle),oe+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,oe+=`>${this.svgOverlay}</svg>`}let pe="";const ge=this.classes.split(" ");ge.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&ge.push("ML__latex-caret"),this.isSelected&&ge.push("ML__selected");const be=ge.length===1?ge[0]:ge.filter((Pt,Ut,Jn)=>Pt.length>0&&Jn.indexOf(Pt)===Ut).join(" ");if(be.length>0&&(pe+=` class="${be}"`),this.id&&(pe+=` data-atom-id=${this.id}`),this.cssId&&(pe+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(pe+=" "+Object.keys(this.attributes).map(Pt=>`${Pt}="${this.attributes[Pt]}"`).join(" ")),this.htmlData){const Pt=this.htmlData.split(",");for(const Ut of Pt){const Jn=Ut.match(/([^=]+)=(.+$)/);if(Jn){const Ur=Jn[1].trim().replace(/ /g,"-");Ur&&(pe+=` data-${Ur}="${Jn[2]}" `)}else{const Ur=Ut.trim().replace(/ /g,"-");Ur&&(pe+=` data-${Ur} `)}}}const Ae=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&Ae.width===void 0&&(Ae.width=`${Math.ceil(this._width*100)/100}em`);const _e=Object.keys(Ae).map(Pt=>`${Pt}:${Ae[Pt]}`);if(this.scale!==void 0&&this.scale!==1&&(re.length>0||oe.length>0)&&_e.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Pt=this.htmlStyle.split(";");let Ut="";for(const Jn of Pt){const Ur=Jn.match(/([^=]+):(.+$)/);if(Ur){const Zn=Ur[1].trim().replace(/ /g,"-");Zn&&(Ut+=`${Zn}:${Ur[2]};`)}}Ut&&(pe+=` style="${Ut}"`)}_e.length>0&&(pe+=` style="${_e.join(";")}"`);let it="";return pe.length>0||oe.length>0?it=`<span${pe}>${re}${oe}</span>`:it=re,this.caret==="text"?it+='<span class="ML__text-caret"></span>':this.caret==="math"&&(it+='<span class="ML__caret"></span>'),it}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,E=y.children&&y.children.length>0;if(b||E)return!1;if(y.cssProperties||this.cssProperties){for(const ge of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ge in y.cssProperties||this.cssProperties&&ge in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,re=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==re)return!1;if(ee>0){for(const ge of Object.keys(this.cssProperties))if(this.cssProperties[ge]!==y.cssProperties[ge])return!1}const oe=this.classes.trim().replace(/\s+/g," ").split(" "),pe=y.classes.trim().replace(/\s+/g," ").split(" ");if(oe.length!==pe.length)return!1;oe.sort(),pe.sort();for(const[ge,be]of oe.entries())if(be==="vertical-separator"||be!==pe[ge])return!1;return this.value+=y.value,this.height=Math.max(this.height,y.height),this.depth=Math.max(this.depth,y.depth),this._width=this._width+y._width,this.maxFontSize=Math.max(this.maxFontSize,y.maxFontSize),this.italic=y.italic,!0}};function ad(a){if(!a||a.length===0)return[];a[0].children=ad(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=ad(a[b].children),y.push(a[b]));return y}function gu(a){return a.children&&(a.children=ad(a.children)),a}function vu(a,y){if(!a)return new Vr(null,y);const b=new Vr(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const E=[b];if(a.depth!==0){const ee=new Vr(null,{classes:"ML__strut--bottom",type:"ignore"});ee.setStyle("height",a.height+a.depth,"em"),ee.setStyle("vertical-align",-a.depth,"em"),E.push(ee)}return E.push(a),new Vr(E,me(xe({},y),{type:"lift"}))}function Ps(a){const y=ef(a)/2,b=new Vr(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Bc(a,y){var b;if(a.type==="latex"){a.height=.9,a.depth=.2,a._width=1;return}if(a.value){a.height=-1/0,a.depth=-1/0,a._width=0,a.skew=-1/0,a.italic=-1/0;for(let E=0;E<a.value.length;E++){const ee=tl(a.value.codePointAt(E),y);a.height=Math.max(a.height,ee.height),a.depth=Math.max(a.depth,ee.depth),a._width+=ee.width,a.skew=ee.skew,a.italic=ee.italic}return}if(a.children&&a.children.length>0){let E=-1/0,ee=-1/0,re=0;for(const oe of a.children)oe.height>E&&(E=oe.height),oe.depth>ee&&(ee=oe.depth),re=Math.max(re,(b=oe.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((oe,pe)=>oe+pe.width,0),a.maxFontSize=re}}function yu(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const E=[b],ee=-b.shift-b.box.depth;let re=ee;for(let oe=1;oe<y.length;oe++){const pe=y[oe],ge=-pe.shift-re-pe.box.depth,be=ge-(b.box.height+b.box.depth);re=re+ge,E.push(be),E.push(pe),b=pe}return[E,ee]}if("top"in a){let y=a.top;for(const b of a.children)y-=typeof b=="number"?b:b.box.height+b.box.depth;return[a.children,y]}else{if("bottom"in a)return[a.children,-a.bottom];if("firstBaseline"in a){const y=a.firstBaseline[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.firstBaseline,-y.box.depth]}else if("shift"in a){const y=a.children[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.children,-y.box.depth-a.shift]}}return[null,0]}function Dc(a){var y;const[b,E]=yu(a);if(!b)return[[],0,0];const ee=new Vr(null,{classes:"pstrut"});let re=0;for(const Ut of b)if(typeof Ut!="number"){const Jn=Ut.box;re=Math.max(re,Jn.maxFontSize,Jn.height)}re+=2,ee.height=re,ee.setStyle("height",re,"em");const oe=[];let pe=E,ge=E,be=E,Ae=0;for(const Ut of b){if(typeof Ut=="number")be+=Ut;else{const Jn=Ut.box,Ur=(y=Ut.classes)!=null?y:[],Zn=new Vr([ee,Jn],{classes:Ur.join(" "),style:Ut.style});Jn.setStyle("height",Jn.height+Jn.depth,"em"),Jn.setStyle("display","inline-block"),Zn.setStyle("top",-re-be-Jn.depth,"em"),Ut.marginLeft&&Zn.setStyle("margin-left",Ut.marginLeft,"em"),Ut.marginRight&&Zn.setStyle("margin-right",Ut.marginRight,"em"),oe.push(Zn),be+=Jn.height+Jn.depth,Ae=Math.max(Ae,Zn.width)}pe=Math.min(pe,be),ge=Math.max(ge,be)}oe.forEach(Ut=>{Ut.softWidth=Ae});const _e=new Vr(oe,{classes:"vlist"});if(_e.softWidth=Ae,_e.height=ge,_e.setStyle("height",ge,"em"),pe>=0)return[[new Vr(_e,{classes:"vlist-r"})],ge,-pe];const it=new Vr(new Vr(null),{classes:"vlist"});it.height=-pe,it.setStyle("height",-pe,"em");const Pt=new Vr(8203,{classes:"vlist-s",maxFontSize:0});return Pt.softWidth=0,Pt.height=0,Pt.depth=0,[[new Vr([_e,Pt],{classes:"vlist-r"}),new Vr(it,{classes:"vlist-r"})],ge,-pe]}var $a=class extends Vr{constructor(a,y){var b;const[E,ee,re]=Dc(a);super(E.length===1?E[0]:E,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(E.length===2?" vlist-t2":"")}),this.height=ee,this.depth=re,this.softWidth=E.reduce((oe,pe)=>Math.max(oe,pe.width),0)}};function nh(a,y){var b,E,ee,re,oe;const pe=a.metrics,ge=new Vr(y.base),be=(b=y.baseShift)!=null?b:0,Ae=(E=y.slant)!=null?E:0;let _e=0,it=0;y.above&&(_e=(ee=y.aboveShift)!=null?ee:Math.max(pe.bigOpSpacing1,pe.bigOpSpacing3-y.above.depth)),y.below&&(it=(re=y.belowShift)!=null?re:Math.max(pe.bigOpSpacing2,pe.bigOpSpacing4-y.below.height));let Pt=null;if(y.below&&y.above){const Ut=pe.bigOpSpacing5+y.below.height+y.below.depth+it+ge.depth+be;Pt=new $a({bottom:Ut,children:[pe.bigOpSpacing5,{box:y.below,marginLeft:-Ae,classes:["ML__center"]},it,{box:ge,classes:["ML__center"]},_e,{box:y.above,marginLeft:Ae,classes:["ML__center"]},pe.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)Pt=new $a({top:ge.height-be,children:[pe.bigOpSpacing5,{box:y.below,marginLeft:-Ae,classes:["ML__center"]},it,{box:ge,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const Ut=ge.depth+be;Pt=new $a({bottom:Ut,children:[{box:ge,classes:["ML__center"]},_e,{box:y.above,marginLeft:Ae,classes:["ML__center"]},pe.bigOpSpacing5]}).wrap(a)}else{const Ut=ge.depth+be;Pt=new $a({bottom:Ut,children:[{box:ge},pe.bigOpSpacing5]}).wrap(a)}return new Vr(Pt,{type:(oe=y.type)!=null?oe:"op"})}var od=7,rl=6,Ic=5,ml=4,Hl=3,ss=2,As=1,Vo=0,js=class{constructor(a,y,b){this.id=a,this.sizeDelta=y,this.cramped=b;const E={"-4":2,"-3":1,0:0}[y];this.metrics=Object.keys(td).reduce((ee,re)=>me(xe({},ee),{[re]:td[re][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return Zs[[Vo,As,Vo,As,ss,Hl,ss,Hl][this.id]]}get sub(){return Zs[[Vo,Vo,Vo,Vo,ss,ss,ss,ss][this.id]]}get fracNum(){return Zs[[Vo,As,Vo,As,ss,Hl,ml,Ic][this.id]]}get fracDen(){return Zs[[Vo,Vo,Vo,Vo,ss,ss,ml,ml][this.id]]}get cramp(){return Zs[[Vo,Vo,ss,ss,ml,ml,rl,rl][this.id]]}get isTight(){return this.sizeDelta<0}},Kl={7:new js(od,0,!1),6:new js(rl,0,!0),5:new js(Ic,0,!1),4:new js(ml,0,!0),3:new js(Hl,-3,!1),2:new js(ss,-3,!0),1:new js(As,-4,!1),0:new js(Vo,-4,!0)},Zs=me(xe({},Kl),{displaystyle:Kl[od],textstyle:Kl[Ic],scriptstyle:Kl[Hl],scriptscriptstyle:Kl[As]});function ac(a,y){var b;if(!a)return 0;const E={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:zl,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(b=a.unit)!=null?b:"pt"];if(Number.isFinite(y)){const ee=Tl(10,y);return Math.round(a.dimension/zl*E*ee)/ee}return a.dimension*E}function sd(a,y){if(a===null)return 0;const b=ac(a)/zl;if(Number.isFinite(y)){const E=Tl(10,y);return Math.round(b*E)/E}return b}function ld(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function lf(a){let y=ld(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${ld(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${ld(a.shrink)}`),y}function Io(a){var y,b;if(a==null)return null;let E="";if("dimension"in a&&(E=`${a.dimension}${(y=a.unit)!=null?y:"pt"}`),"glue"in a&&(E=lf(a)),"number"in a)if(!("base"in a)||a.base==="decimal")E=Number(a.number).toString();else if(a.base==="alpha")E=`\`${String.fromCodePoint(a.number)}`;else{const ee=Math.round(a.number)>>>0;a.base==="hexadecimal"?(E=Number(ee).toString(16).toUpperCase(),ee<=255?E=E.padStart(2,"0"):ee<=65535?E=E.padStart(4,"0"):ee<=16777215?E=E.padStart(6,"0"):E=E.padStart(8,"0"),E=`"${E}`):a.base==="octal"&&(E=Number(ee).toString(8),ee<=63?E=E.padStart(2,"0"):ee<=30583?E=E.padStart(4,"0"):E=E.padStart(8,"0"),E=`'${E}`)}return"register"in a&&("factor"in a&&(a.factor===-1?E="-":a.factor!==1&&(E=Number(a.factor).toString())),"global"in a&&a.global&&(E+="\\global"),E+=`\\${a.register}`),"string"in a&&(E=a.string),(b=a.relax)!=null&&b&&(E+="\\relax"),E}function Us(a,y){return a==null?null:"number"in a?me(xe({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?me(xe({},a),{factor:a.factor*y}):me(xe({},a),{factor:y}):"dimension"in a?me(xe({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:Us(a.glue,y),shrink:Us(a.shrink,y),grow:Us(a.grow,y)}:a.shrink?{glue:Us(a.glue,y),shrink:Us(a.shrink,y)}:a.grow?{glue:Us(a.glue,y),grow:Us(a.grow,y)}:{glue:Us(a.glue,y)}:null}var rh={"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 oc(){return xe({},rh)}function bu(){return{registers:oc(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:Xe.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Ft,backgroundColorMap:tt,getMacro:a=>gn(a,wt())}}var Ia=class Mp{constructor(y,b){var E,ee,re,oe,pe,ge,be,Ae,_e,it,Pt,Ut,Jn,Ur,Zn;let Mr;y!=null&&y.parent?(this.parent=y.parent,Mr=y.parent,this.registers={}):(Mr=xe(xe({},bu()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=Mr.registers),Mr.atomIdsSettings&&(this.atomIdsSettings=xe({},Mr.atomIdsSettings)),this.renderPlaceholder=Mr.renderPlaceholder,this.isPhantom=(oe=(re=y==null?void 0:y.isPhantom)!=null?re:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?oe:!1,this.letterShapeStyle=Mr.letterShapeStyle,this.minFontScale=Mr.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ge=(pe=this.parent)==null?void 0:pe.color)!=null?ge:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Ae=(be=this.parent)==null?void 0:be.backgroundColor)!=null?Ae:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((_e=this.parent)==null?void 0:_e.size)?this.size=b.fontSize:this.size=(Pt=(it=this.parent)==null?void 0:it.size)!=null?Pt:dl;let Gr=(Jn=(Ut=this.parent)==null?void 0:Ut.mathstyle)!=null?Jn:Zs.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(Mr instanceof Mp)switch(y.mathstyle){case"cramp":Gr=Gr.cramp;break;case"superscript":Gr=Gr.sup;break;case"subscript":Gr=Gr.sub;break;case"numerator":Gr=Gr.fracNum;break;case"denominator":Gr=Gr.fracDen;break}switch(y.mathstyle){case"textstyle":Gr=Zs.textstyle;break;case"displaystyle":Gr=Zs.displaystyle;break;case"scriptstyle":Gr=Zs.scriptstyle;break;case"scriptscriptstyle":Gr=Zs.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Gr,this.smartFence=Mr.smartFence,this.placeholderSymbol=Mr.placeholderSymbol,this.colorMap=(Ur=Mr.colorMap)!=null?Ur:Tr=>Tr,this.backgroundColorMap=(Zn=Mr.backgroundColorMap)!=null?Zn:Tr=>Tr,this.getMacro=Mr.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===od||this.mathstyle.id===rl}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(pu[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(y){var b;if((b=this.registers)!=null&&b[y])return this.registers[y];if(this.parent)return this.parent.getRegister(y)}getRegisterAsNumber(y){const b=this.getRegister(y);if(typeof b=="number")return b;if(typeof b=="string")return Number(b)}getRegisterAsGlue(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E:typeof E=="object"&&"dimension"in E?{glue:{dimension:E.dimension}}:typeof E=="number"?{glue:{dimension:E}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(y)}getRegisterAsEm(y,b){return sd(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E.glue:typeof E=="object"&&"dimension"in E?E:typeof E=="number"?{dimension:E}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(y)}setRegister(y,b){if(b===void 0){delete this.registers[y];return}this.registers[y]=b}evaluate(y){if(!y||!("register"in y))return y;let b=this;if("global"in y&&y.global)for(;b.parent;)b=b.parent;let E=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(E=y.factor);const ee=b.getRegister(y.register);if(ee===void 0)return;if(typeof ee=="string")return{string:Number(ee).toString()+ee};if(typeof ee=="number")return{number:E*ee};const re=b.evaluate(ee);if(re!==void 0)return"string"in re?{string:Number(ee).toString()+re.string}:"number"in re?{number:E*re.number}:"dimension"in re?me(xe({},re),{dimension:E*re.dimension}):"glue"in re?me(xe({},re),{glue:me(xe({},re.glue),{dimension:E*re.glue.dimension}),shrink:re.shrink?me(xe({},re.shrink),{dimension:E*re.shrink.dimension}):void 0,grow:re.grow?me(xe({},re.grow),{dimension:E*re.grow.dimension}):void 0}):y}toDimension(y){const b=this.evaluate(y);return b===void 0?null:"dimension"in b?b:"glue"in b?b.glue:"number"in b?{dimension:b.number}:null}toEm(y,b){if(y===null)return 0;const E=this.toDimension(y);return E===null?0:ac(E,b)/zl}toNumber(y){if(y===null)return null;const b=this.evaluate(y);return b===void 0?null:"number"in b?b.number:"dimension"in b?b.dimension:"glue"in b?b.glue.dimension:"string"in b?Number(b.string):null}toColor(y){var b,E;if(y===null)return null;const ee=this.evaluate(y);return ee===void 0?null:"string"in ee?(E=(b=this.colorMap)==null?void 0:b.call(this,ee.string))!=null?E:ee.string:null}toBackgroundColor(y){var b,E;if(y===null)return null;const ee=this.evaluate(y);return ee===void 0?null:"string"in ee?(E=(b=this.backgroundColorMap)==null?void 0:b.call(this,ee.string))!=null?E:ee.string:null}},sc=["body","above","below","superscript","subscript"];function il(a){return typeof a=="string"&&sc.includes(a)}function Tc(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var pr=class Gl{constructor(y){var b,E,ee,re,oe,pe;this.type=y.type,typeof y.value=="string"&&(this.value=y.value),this.command=(E=(b=y.command)!=null?b:this.value)!=null?E:"",this.mode=(ee=y.mode)!=null?ee:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=xe({},y.style),this.displayContainsHighlight=(re=y.displayContainsHighlight)!=null?re:!1,this.captureSelection=(oe=y.captureSelection)!=null?oe:!1,this.skipBoundary=(pe=y.skipBoundary)!=null?pe:!1,y.verbatimLatex!==void 0&&y.verbatimLatex!==null&&(this.verbatimLatex=y.verbatimLatex),y.args&&(this.args=y.args),y.body&&(this.body=y.body),this._changeCounter=0}static createBox(y,b,E){var ee;if(!b)return null;const re=cf(b),oe=[];for(const ge of re){const be=ge[0].style,Ae=uf(y,ge,{style:{color:be.color,backgroundColor:be.backgroundColor,fontSize:be.fontSize}});Ae&&oe.push(Ae)}if(oe.length===0)return null;const pe=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return oe.length===1&&!pe&&!(E!=null&&E.type)?oe[0].wrap(y):new Vr(oe,{classes:pe,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Ss.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const E=new WeakSet;let{parent:ee}=y;for(;ee;)E.add(ee),ee=ee.parent;for(ee=b.parent;ee;){if(E.has(ee))return ee;ee=ee.parent}console.assert(!!ee)}static fromJson(y){return typeof y=="string"?new Gl({type:"mord",value:y,mode:"math"}):new Gl(y)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const y={};if(this.type&&(y.type=this.type),this.mode!=="math"&&(y.mode=this.mode),this.command&&this.command!==this.value&&(y.command=this.command),this.value!==void 0&&(y.value=this.value),this.style&&Object.keys(this.style).length>0&&(y.style=xe({},this.style)),this.verbatimLatex!==void 0&&(y.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(y.explicitSubsupPlacement=!0),this.isFunction&&(y.isFunction=!0),this.displayContainsHighlight&&(y.displayContainsHighlight=!0),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.skipBoundary&&(y.skipBoundary=!0),this.captureSelection&&(y.captureSelection=!0),this.args&&(y.args=ud(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(E=>E.type!=="first").map(E=>E.toJson()));return y.type==="mord"&&Object.keys(y).length===2&&"value"in y?y.value:y}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(y){if(y){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:b}=this;for(;b;)b.parent||b._changeCounter++,"verbatimLatex"in b&&(b.verbatimLatex=void 0),b._children=void 0,b=b.parent}}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=It(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?ba([uo(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?ba([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Ss.serialize(this.body,me(xe({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Ss.serialize(this.above,y)}belowToLatex(y){return Ss.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=me(xe({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Ss.serialize(this.subscript,y);E.length===0?b+="_{}":E.length===1?/^[0-9]$/.test(E)?b+=`_${E}`:b+=`_{${E}}`:b+=`_{${E}}`}if(this.branch("superscript")!==void 0){const E=Ss.serialize(this.superscript,y);E.length===0?b+="^{}":E.length===1?E==="\u2032"?b+="^\\prime ":E==="\u2033"?b+="^\\doubleprime ":/^[0-9]$/.test(E)?b+=`^${E}`:b+=`^{${E}}`:b+=`^{${E}}`}return b}get treeDepth(){let y=1,b=this.parent;for(;b;)b=b.parent,y+=1;return y}get inCaptureSelection(){let y=this;for(;y;){if(y.captureSelection)return!0;y=y.parent}return!1}get parentPrompt(){let y=this.parent;for(;y;){if(y.type==="prompt"&&!y.captureSelection)return y;y=y.parent}return null}branch(y){if(il(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of sc)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(il(y)),il(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 Tc(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Tc(this.parentBranch)?this.parentBranch[1]:-1}get body(){var y;return(y=this._branches)==null?void 0:y.body}set body(y){this.setChildren(y,"body")}get superscript(){var y;return(y=this._branches)==null?void 0:y.superscript}set superscript(y){this.setChildren(y,"superscript")}get subscript(){var y;return(y=this._branches)==null?void 0:y.subscript}set subscript(y){this.setChildren(y,"subscript")}get above(){var y;return(y=this._branches)==null?void 0:y.above}set above(y){this.setChildren(y,"above")}get below(){var y;return(y=this._branches)==null?void 0:y.below}set below(y){this.setChildren(y,"below")}get computedStyle(){var y,b;const E=typeof this.style.verbatimColor=="string",ee=typeof this.style.verbatimBackgroundColor=="string",re=xe(xe({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete re.variant,delete re.variantStyle,ee||delete re.verbatimBackgroundColor,E||delete re.verbatimColor,re}applyStyle(y){this.isDirty=!0,this.style=xe(xe({},this.style),y),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const b of this.children)b.applyStyle(y)}getInitialBaseElement(){var y,b,E;return this.hasEmptyBranch("body")?this:(console.assert(((y=this.body)==null?void 0:y[0].type)==="first"),(E=(b=this.body[1])==null?void 0:b.getInitialBaseElement())!=null?E:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(y){const b=this.branch(y);return b?(console.assert(b.length>0),console.assert(b[0].type==="first"),b.length===1):!0}setChildren(y,b){var E;if(!y||(console.assert(il(b)),!il(b)))return;console.assert(((E=y[0])==null?void 0:E.type)!=="first");const ee=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ee:this._branches={[b]:ee};for(const re of y)re.parent=this,re.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Gl({type:"first",mode:this.mode});return b.parent=this,b.parentBranch=y,b}addChild(y,b){console.assert(y.type!=="first"),this.createBranch(b).push(y),this.isDirty=!0,y.parent=this,y.parentBranch=b}addChildBefore(y,b){console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b),0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildAfter(y,b){console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildren(y,b){const E=this.createBranch(b);for(const ee of y)ee.parent=this,ee.parentBranch=b,E.push(ee);this.isDirty=!0}addChildrenAfter(y,b){console.assert(y.length===0||y[0].type!=="first"),console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,...y),this.isDirty=!0;for(const ee of y)ee.parent=this,ee.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(il(y)&&(this._branches[y]=void 0),!b)return[];for(const E of b)E.parent=void 0,E.parentBranch=void 0;return console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}removeChild(y){if(console.assert(y.parent===this),y.type==="first")return;const b=this.branch(y.parentBranch),E=b.indexOf(y);console.assert(E>=0),b.splice(E,1),this.isDirty=!0,y.parent=void 0,y.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:y}=this;return y[y.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:y}=this;return y[y.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const y=[];for(const b of sc)if(this._branches[b])for(const E of this._branches[b])y.push(...E.children),y.push(E);return this._children=y,y}render(y){if(this.type==="first"&&!y.atomIdsSettings)return null;const b=It(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new Ia({parent:y},this.style);let ee=this.createBox(E,{classes:this.parent?"":"ML__base"});return ee?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ee=this.attachSupsub(E,{base:ee})),ee.wrap(E)):null}attachSupsub(y,b){var E;const ee=b.base,re=this.superscript,oe=this.subscript;if(!re&&!oe)return ee;let pe=null,ge=null;const be=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Ae=0;if(re){const Jn=new Ia({parent:y,mathstyle:"superscript"});pe=Gl.createBox(Jn,re),be||(Ae=ee.height-y.metrics.supDrop*Jn.scalingFactor)}let _e=0;if(oe){const Jn=new Ia({parent:y,mathstyle:"subscript"});ge=Gl.createBox(Jn,oe),be||(_e=ee.depth+y.metrics.subDrop*Jn.scalingFactor)}let it;y.isDisplayStyle?it=y.metrics.sup1:y.isCramped?it=y.metrics.sup3:it=y.metrics.sup2;const Pt=.5/zl/y.scalingFactor;let Ut=null;if(ge&&pe){Ae=Math.max(Ae,it,pe.depth+.25*y.metrics.xHeight),_e=Math.max(_e,y.metrics.sub2);const Jn=y.metrics.defaultRuleThickness;if(Ae-pe.depth-(ge.height-_e)<4*Jn){_e=4*Jn-(Ae-pe.depth)+ge.height;const Zn=.8*y.metrics.xHeight-(Ae-pe.depth);Zn>0&&(Ae+=Zn,_e-=Zn)}const Ur=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;Ut=new $a({individualShift:[{box:ge,shift:_e,marginLeft:Ur},{box:pe,shift:-Ae}]}).wrap(y)}else ge&&!pe?(_e=Math.max(_e,y.metrics.sub1,ge.height-.8*el),Ut=new $a({shift:_e,children:[{box:ge,marginRight:Pt,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!ge&&pe&&(Ae=Math.max(Ae,it,pe.depth+.25*el),Ut=new $a({shift:-Ae,children:[{box:pe,marginRight:Pt}]}));return new Vr([ee,new Vr(Ut,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?Gl.createBox(new Ia({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?Gl.createBox(new Ia({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):nh(y,me(xe({},b),{above:E,below:ee}))}bind(y,b){if(!b||y.isPhantom||this.value==="\u200B")return b;let E=this.parent;for(;E&&!E.captureSelection;)E=E.parent;return E!=null&&E.captureSelection||(this.id||(this.id=y.makeID()),b.atomID=this.id),b}createBox(y,b){var E,ee,re,oe;const pe=(E=this.value)!=null?E:this.body,ge=(ee=b==null?void 0:b.boxType)!=null?ee:id(this.type);let be=(re=b==null?void 0:b.classes)!=null?re:"";this.mode==="text"&&(be+=" ML__text");const Ae=typeof pe=="string"||pe===void 0?new Vr(pe!=null?pe:null,{type:ge,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:me(xe({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:be}):(oe=Gl.createBox(y,pe,{type:ge,classes:be}))!=null?oe:new Vr(null);return y.isTight&&(Ae.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Ae.italic=0),Ae.right=Ae.italic,this.bind(y,Ae),this.caret&&!this.superscript&&!this.subscript&&(Ae.caret=this.caret),Ae}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 cf(a){let y;const b=[];let E=[];for(const ee of a)if(!y&&!ee.style)E.push(ee);else{const re=ee.computedStyle;y&&re.color===y.color&&re.backgroundColor===y.backgroundColor&&re.fontSize===y.fontSize?E.push(ee):(E.length>0&&b.push(E),E=[ee],y=re)}return E.length>0&&b.push(E),b}function uf(a,y,b){var E,ee,re,oe,pe;if(!y||y.length===0)return null;const ge=new Ia({parent:a},b.style),be=!((E=ge.atomIdsSettings)!=null&&E.groupNumbers);let Ae=[];if(y.length===1){const it=y[0],Pt=it.render(ge);Pt&&(be&&it.isSelected&&Pt.selected(!0),Ae=[Pt])}else{let it="",Pt=!0;for(const Ut of y){(ee=ge.atomIdsSettings)!=null&&ee.groupNumbers&&it&&(Pt&&Ut.isDigit()||!Pt&&cd(Ut))&&(ge.atomIdsSettings.overrideID=it);const Jn=Ut.render(ge);ge.atomIdsSettings&&(ge.atomIdsSettings.overrideID=void 0),Jn&&((re=ge.atomIdsSettings)!=null&&re.groupNumbers&&((Ut.isDigit()||cd(Ut))&&(!it||Pt!==Ut.isDigit())&&(Pt=Ut.isDigit(),it=(oe=Ut.id)!=null?oe:""),it&&(!(Ut.isDigit()||cd(Ut))||!Ut.hasEmptyBranch("superscript")||!Ut.hasEmptyBranch("subscript"))&&(it="")),be&&Ut.isSelected&&Jn.selected(!0),Ae.push(Jn))}}if(Ae.length===0)return null;const _e=new Vr(Ae,me(xe({isTight:ge.isTight},b),{type:(pe=b.type)!=null?pe:"lift"}));return _e.isSelected=Ae.every(it=>it.isSelected),_e.wrap(ge)}function cd(a){return a.mode==="text"}function ud(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof pr?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var al=class Ap extends pr{constructor(y,b,E){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(E)}static fromJson(y){return new Ap(y.command,y.value,y.style)}render(y){const b=this.createBox(y);return this.caret&&(b.caret=this.caret),b}_serialize(y){var b;return(b=this.verbatimLatex)!=null?b:hn("text",this.value.codePointAt(0))}};function Oc(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&ih(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function ih(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Go(a){let y=1/0,b=-1/0;for(const E of a.ranges)y=Math.min(y,E[0],E[1]),b=Math.max(b,E[0],E[1]);return[y,b]}function gl(a){return typeof a=="number"&&!Number.isNaN(a)}function xu(a){return Array.isArray(a)&&a.length===2}function wu(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function ah(a,y){const b=a.at(y);let E;if(b){E=b.mode;let ee=b.parent;for(;!E&&ee;)ee&&(E=ee.mode),ee=ee.parent}return E}function df(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,E=!1,ee=!1,re=!1,oe=!1,pe=!1,ge=!1,be=!1,Ae=!1,_e=!1,it=!1,Pt=!1,Ut=!1,Jn=!1,Ur=!1,Zn=a[0],Mr=0;for(;Zn!=null&&Zn.type&&/^(subsup|placeholder)$/.test(Zn.type);)Mr+=1,Zn=a[Mr];return b=!Zn||Zn.type==="first",Zn&&(Jn=Zn.mode==="text",E=!Jn&&Zn.type==="mord"&&he.test(Zn.value),ee=!Jn&&Zn.type==="mord"&&/\d+$/.test(Zn.value),re=!Jn&&Zn.isFunction,oe=Zn.type==="genfrac",pe=Zn.type==="surd",ge=Zn.type==="mbin",be=Zn.type==="mrel",Ae=Zn.type==="mop"||Zn.type==="operator"||Zn.type==="extensible-symbol",_e=Zn.type==="mpunct"||Zn.type==="minner",it=Zn.type==="array",Pt=Zn.type==="mopen",Ut=Zn.type==="mclose"||Zn.type==="leftright",Ur=Zn.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ee||y.after.includes("function")&&re||y.after.includes("frac")&&oe||y.after.includes("surd")&&pe||y.after.includes("binop")&&ge||y.after.includes("relop")&&be||y.after.includes("operator")&&Ae||y.after.includes("punct")&&_e||y.after.includes("array")&&it||y.after.includes("openfence")&&Pt||y.after.includes("closefence")&&Ut||y.after.includes("text")&&Jn||y.after.includes("space")&&Ur?y.value:""}function dd(a,y,b){return b?df(a,b[y]):""}var ff={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 Pc(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=pf(a)),E==="ascii-math"?(a=a.replace(/\u2061/gu,""),a=a.replace(/\u3016/gu,"{"),a=a.replace(/\u3017/gu,"}"),a=a.replace(/([^\\])sinx/g,"$1\\sin x"),a=a.replace(/([^\\])cosx/g,"$1\\cos x "),a=a.replace(/\u2013/g,"-"),["ascii-math",ts(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function ts(a,y){var b,E,ee;if(!a)return"";let re=!1,oe;const pe=(b=y.inlineShortcuts)!=null?b:ff;if(!re&&(a.startsWith("^")||a.startsWith("_"))&&(oe=vl(a.slice(1),{inlineShortcuts:pe,noWrap:!0}),a=a[0]+"{"+oe.match+"}",a+=ts(oe.rest,y),re=!0),re||(oe=a.match(/^(sqrt|\u221A)(.*)/),oe&&(oe=vl(oe[2],{inlineShortcuts:pe,noWrap:!0}),a="\\sqrt{"+((E=oe.match)!=null?E:"\\placeholder{}")+"}",a+=ts(oe.rest,y),re=!0)),re||(oe=a.match(/^(\\cbrt|\u221B)(.*)/),oe&&(oe=vl(oe[2],{inlineShortcuts:pe,noWrap:!0}),a="\\sqrt[3]{"+((ee=oe.match)!=null?ee:"\\placeholder{}")+"}",a+=ts(oe.rest,y),re=!0)),re||(oe=a.match(/^abs(.*)/),oe&&(oe=vl(oe[1],{inlineShortcuts:pe,noWrap:!0}),a="\\left|"+oe.match+"\\right|",a+=ts(oe.rest,y),re=!0)),re||(oe=a.match(/^["”“](.*?)["”“](.*)/),oe&&(a="\\text{"+oe[1]+"}",a+=ts(oe[2],y),re=!0)),re||(oe=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),oe&&(a=hf(oe[1],pe),a+=ts(oe[2],y),re=!0)),!re&&/^([fgh])[^a-zA-Z]/.test(a)&&(oe=vl(a.slice(1),{inlineShortcuts:pe,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+oe.match+"\\right)":a[0]+oe.match,a+=ts(oe.rest,y),re=!0),re||(oe=a.match(/^([a-zA-Z]+)(.*)/),oe&&(a=hf(oe[1],pe),a+=ts(oe[2],y),re=!0)),!re)if(oe=vl(a,{inlineShortcuts:pe,noWrap:!0}),oe.match&&oe.rest[0]==="/"){const ge=vl(oe.rest.slice(1),{inlineShortcuts:pe,noWrap:!0});ge.match&&(a="\\frac{"+oe.match+"}{"+ge.match+"}"+ts(ge.rest,y)),re=!0}else oe.match&&(a=a.startsWith("(")?"\\left("+oe.match+"\\right)"+ts(oe.rest,y):oe.match+ts(oe.rest,y),re=!0);return re||(oe=a.match(/^(\s+)(.*)$/),oe&&(a=" "+ts(oe[2],y),re=!0)),a}function vl(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),re={"(":")","{":"}","[":"]"}[ee];if(re){let oe=1,pe=1;for(;pe<a.length&&oe>0;)a[pe]===ee&&oe++,a[pe]===re&&oe--,pe++;oe===0?(y.noWrap&&ee==="("?b=ts(a.substring(1,pe-1),y):(ee==="{"&&re==="}"&&(ee="\\{",re="\\}"),b="\\left"+ee+ts(a.substring(1,pe-1),y)+"\\right"+re),E=a.slice(Math.max(0,pe))):(b=a.substring(1,pe),E="")}else{let oe=a.match(/^([a-zA-Z]+)/);if(oe){let pe=dd(null,a,y.inlineShortcuts);if(pe)return pe=pe.replace("_{#?}",""),pe=pe.replace("^{#?}",""),{match:pe,rest:a.slice(pe.length)}}if(oe=a.match(/^([a-zA-Z])/),oe)return{match:oe[1],rest:a.slice(1)};if(oe=a.match(/^(-)?\d+(\.\d*)?/),oe)return{match:oe[0],rest:a.slice(oe[0].length)};/^\\(left|right)/.test(a)||(oe=a.match(/^(\\[a-zA-Z]+)/),oe&&(E=a.slice(oe[1].length),b=oe[1]))}return{match:b,rest:E}}function hf(a,y){let b=dd(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var fd=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function yl(a){const y=a.trim();for(const b of fd)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 pf(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=yl(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 Su="$$",oh="$$",sh=(a,y,b)=>(fd.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${Su} ${y} ${oh}`),y),mf=class $f{constructor(y){$f._modes[y]=this}static onPaste(y,b,E){var ee;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof E=="string"){const oe=new DataTransfer;oe.setData("text/plain",E),E=oe}const re=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(re)?$f._modes[y].onPaste(b,E):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const E=y.model,ee=E.selectionIsCollapsed?[0,E.lastOffset]:Go(E.selection),re=E.getValue(ee,b);navigator.clipboard.writeText(re).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var E;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ee=y.model,re=ee.selectionIsCollapsed?[0,ee.lastOffset]:Go(ee.selection);let oe=ee.getAtoms(re);if(oe.every(pe=>pe.mode==="text"||!pe.mode))b.clipboardData.setData("text/plain",oe.filter(pe=>pe instanceof al).map(pe=>pe.value).join(""));else if(oe.every(pe=>pe.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(re,{includeChildren:!0}).map(pe=>{var ge;return(ge=pe.value)!=null?ge:""}).join(""));else{let pe;oe.length===1&&oe[0].verbatimLatex!==void 0?pe=oe[0].verbatimLatex:pe=ee.getValue(re,"latex-expanded"),b.clipboardData.setData("application/x-latex",pe);try{b.clipboardData.setData("text/plain",y.options.onExport(y,pe,re))}catch(ge){}if(oe.length===1){const ge=oe[0];(ge.type==="root"||ge.type==="group")&&(oe=ge.body.filter(be=>be.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(oe.map(ge=>ge.toJson())))}catch(ge){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const ge=window.MathfieldElement.computeEngine;if(ge)try{const be=ge.jsonSerializationOptions;ge.jsonSerializationOptions={metadata:["latex"]};const Ae=ge.parse(ee.getValue(re,"latex-unstyled"));ge.jsonSerializationOptions=be;const _e=JSON.stringify(Ae.json);_e&&b.clipboardData.setData("application/json",_e)}catch(be){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const re=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return $f._modes[re].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};mf._modes={};var aa=mf,lh=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],hd={"\\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 Ns(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Rs(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 bl(a){const y=Rs(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function pd(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 md(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,re=y.bottom-y.top,oe=Math.ceil(y.left-E.left+a.field.scrollLeft*b),pe=Math.ceil(y.top-E.top);return{left:oe,right:oe+ee,top:pe,bottom:pe+re}}function gd(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),E={top:y.top-1,bottom:y.bottom,left:y.left,right:y.right-1+b};if(a.children.length===0||a.tagName.toUpperCase()==="SVG")return E;for(const ee of a.children)if(ee.nodeType===1&&"atomId"in ee.dataset&&!ee.classList.contains("pstrut")){const re=gd(ee);E.left=Math.min(E.left,re.left),E.right=Math.max(E.right,re.right),E.top=Math.min(E.top,re.top),E.bottom=Math.max(E.bottom,re.bottom)}return E}function lc(a,y){var b,E;if(!y.id)return null;let ee=(E=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?E:null;if(ee!==null)return ee;const re=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ee=re?gd(re):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function gf(a,y,b){const E=new Map;for(const ee of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ee.style.backgroundColor)continue;const re=a.field,oe=re.offsetWidth;let ge=Math.floor(re.getBoundingClientRect().width)/oe;ge=isNaN(ge)?1:ge;const be=md(a,lc(a,ee),ge);if(be){const Ae=pd(ee);if(E.has(Ae)){const _e=E.get(Ae);E.set(Ae,{left:Math.min(_e.left,be.left),right:Math.max(_e.right,be.right),top:Math.min(_e.top,be.top),bottom:Math.max(_e.bottom,be.bottom)})}else E.set(Ae,be)}}return[...E.values()]}function vd(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...gf(a,E,y)),[])}function yd(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function Cu(a){let y=0,b=0;const E=a.offsetWidth,ee=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,E,ee)}var vf=`@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;
}
`,Qa=`.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);
}
`,yf=`#mathlive-environment-popover.is-visible {
visibility: visible;
}
#mathlive-environment-popover {
--_environment-panel-height: var(--environment-panel-height, 70px);
--_accent-color: var(--accent-color, #aaa);
--_background: var(--environment-panel-background, #fff);
--_button-background: var(--environment-panel-button-background, white);
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
--_button-text: var(--environment-panel-button-text, #e3e4e8);
position: absolute;
width: calc(var(--_environment-panel-height) * 2);
height: var(--_environment-panel-height);
border-radius: 4px;
border: 1.5px solid var(--_accent-color);
background-color: var(--_background);
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
pointer-events: all;
visibility: hidden;
}
#mathlive-environment-popover .MLEP__array-buttons {
height: calc(var(--_environment-panel-height) * 5/4);
width: calc(var(--_environment-panel-height) * 5/4);
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
}
#mathlive-environment-popover .MLEP__array-buttons .font {
fill: white;
}
#mathlive-environment-popover .MLEP__array-buttons circle {
fill: #7f7f7f;
transition: fill 300ms;
}
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
fill-opacity: 1;
fill: var(--_background);
stroke: var(--_accent-color);
stroke-width: 3px;
}
#mathlive-environment-popover .MLEP__array-buttons line {
stroke: var(--_accent-color);
stroke-opacity: 0;
stroke-width: 40;
pointer-events: none;
transition: stroke-opacity 300ms;
stroke-linecap: round;
}
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
fill: var(--_accent-color);
}
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
stroke-opacity: 1;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
height: 100%;
width: 50%;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
width: var(--_environment-panel-height);
height: var(--_environment-panel-height);
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-around;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
pointer-events: all;
margin-top: 2px;
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
height: calc(var(--_environment-panel-height) / 3 - 2px);
border-radius: calc(var(--_environment-panel-height) / 25);
background-color: var(--_button-background);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
background-color: var(--_button-background-hover);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
stroke: var(--_button-text);
stroke-width: 2;
stroke-linecap: round;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
fill-opacity: 0;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
pointer-events: none;
background-color: var(--_button-background-active);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
stroke: var(--_accent-color);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
fill: var(--_accent-color);
}
`,ch=`/* The element that display info while in latex mode */
#mathlive-suggestion-popover {
background-color: rgba(97, 97, 97);
color: #fff;
text-align: center;
border-radius: 8px;
position: fixed;
z-index: 1;
display: none;
flex-direction: column;
justify-content: center;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
#mathlive-suggestion-popover.top-tip::after {
content: '';
position: absolute;
top: -15px;
left: calc(50% - 15px);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-bottom: 15px solid rgba(97, 97, 97);
font-size: 1rem;
}
#mathlive-suggestion-popover.bottom-tip::after {
content: '';
position: absolute;
bottom: -15px;
left: calc(50% - 15px);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-top: 15px solid rgba(97, 97, 97);
font-size: 1rem;
}
#mathlive-suggestion-popover.is-animated {
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
}
#mathlive-suggestion-popover.is-visible {
display: flex;
}
@keyframes ML__fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* The wrapper class for the entire content of the popover panel */
#mathlive-suggestion-popover ul {
display: flex;
flex-flow: column;
list-style: none;
margin: 0;
padding: 0;
align-items: flex-start;
max-height: 400px;
overflow-y: auto;
}
#mathlive-suggestion-popover li {
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 8px;
padding: 8px;
width: calc(100% - 16px - 16px);
column-gap: 1em;
border-radius: 8px;
cursor: pointer;
/* Since the content can be clicked on, provide feedback on hover */
}
#mathlive-suggestion-popover li a {
color: #5ea6fd;
padding-top: 0.3em;
margin-top: 0.4em;
display: block;
}
#mathlive-suggestion-popover li a:hover {
color: #5ea6fd;
text-decoration: underline;
}
#mathlive-suggestion-popover li:hover,
#mathlive-suggestion-popover li.is-pressed,
#mathlive-suggestion-popover li.is-active {
background: rgba(255, 255, 255, 0.1);
}
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
.ML__popover__command {
font-size: 1.6rem;
font-family: KaTeX_Main;
}
.ML__popover__current {
background: #5ea6fd;
color: #fff;
}
.ML__popover__latex {
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
align-self: center;
}
/* The keyboard shortcuts for a symbol as displayed in the popover */
.ML__popover__keybinding {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 0.8em;
opacity: 0.7;
}
/* Style for the character that joins the modifiers of a keyboard shortcut
(usually a "+" sign)*/
.ML__shortcut-join {
opacity: 0.5;
}
`,cc=`/* The element that displays the keys as the user type them */
#mathlive-keystroke-caption-panel {
visibility: hidden;
/*min-width: 160px;*/
/*background-color: rgba(97, 97, 200, .95);*/
background: var(--secondary, hsl(var(--_hue), 19%, 26%));
border-color: var(--secondary-border, hsl(0, 0%, 91%));
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
text-align: center;
border-radius: 6px;
padding: 16px;
position: absolute;
z-index: 1;
display: flex;
flex-direction: row-reverse;
justify-content: center;
--keystroke: white;
--on-keystroke: #555;
--keystroke-border: #f7f7f7;
}
@media (prefers-color-scheme: dark) {
body:not([theme='light']) #mathlive-keystroke-caption-panel {
--keystroke: hsl(var(--_hue), 50%, 30%);
--on-keystroke: hsl(0, 0%, 98%);
--keystroke-border: hsl(var(--_hue), 50%, 25%);
}
}
body[theme='dark'] #mathlive-keystroke-caption-panel {
--keystroke: hsl(var(--_hue), 50%, 30%);
--on-keystroke: hsl(0, 0%, 98%);
--keystroke-border: hsl(var(--_hue), 50%, 25%);
}
#mathlive-keystroke-caption-panel > span {
min-width: 14px;
/*height: 8px;*/
margin: 0 8px 0 0;
padding: 4px;
background-color: var(--keystroke);
color: var(--on-keystroke);
fill: currentColor;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 1em;
border-radius: 6px;
border: 2px solid var(--keystroke-border);
/*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/
}
`,uh=`.ML__keyboard {
--_keyboard-height: 0;
--_keyboard-zindex: var(--keyboard-zindex, 105);
--_accent-color: var(--keyboard-accent-color, #0c75d8);
--_background: var(--keyboard-background, #cacfd7);
--_border: var(--keyboard-border, #ddd);
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
--_padding-top: var(--keyboard-padding-top, 5px);
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
--_keycap-background: var(--keycap-background, white);
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
--_keycap-border: var(--keycap-border, #e5e6e9);
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
--_keycap-text: var(--keycap-text, #000);
--_keycap-text-active: var(--keycap-text-active, #fff);
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
--_keycap-height: var(--keycap-height, 60px);
/* Keycap width (incl. margin) */
--_keycap-max-width: var(--keycap-max-width, 100px);
--_keycap-gap: var(--keycap-gap, 8px);
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
--_variant-panel-background: var(--variant-panel-background, #fff);
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
--_variant-keycap-length: var(--variant-keycap-length, 70px);
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
}
.is-math-mode .MLK__rows .if-text-mode,
.is-text-mode .MLK__rows .if-math-mode {
display: none;
}
.if-can-undo,
.if-can-redo,
.if-can-copy,
.if-can-cut,
.if-can-paste {
opacity: 0.4;
pointer-events: none;
}
.can-undo .if-can-undo,
.can-redo .if-can-redo,
.can-copy .if-can-copy,
.can-cut .if-can-cut,
.can-paste .if-can-paste {
opacity: 1;
pointer-events: all;
}
body > .ML__keyboard {
position: fixed;
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
}
body > .ML__keyboard.is-visible > .MLK__backdrop {
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
border-top: 1px solid var(--_border);
}
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
box-shadow: none;
border: none;
}
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
transition-property: transform, opacity;
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ML__keyboard {
position: relative;
overflow: hidden;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: var(--_keyboard-zindex);
box-sizing: border-box;
outline: none;
border: none;
margin: 0;
padding: 0;
line-height: 1;
overflow-wrap: unset;
text-align: left;
vertical-align: baseline;
cursor: auto;
white-space: pre;
box-shadow: none;
opacity: 1;
transform: none;
pointer-events: none;
}
.ML__keyboard :where(div) {
box-sizing: border-box;
outline: none;
border: none;
margin: 0;
padding: 0;
line-height: 1;
overflow-wrap: unset;
text-align: left;
vertical-align: baseline;
cursor: auto;
white-space: pre;
box-shadow: none;
transform: none;
}
.MLK__backdrop {
position: absolute;
bottom: calc(-1 * var(--_keyboard-height));
width: 100%;
height: var(--_keyboard-height);
box-sizing: border-box;
padding-top: var(--_padding-top);
padding-bottom: var(--_padding-bottom);
padding-left: var(--_padding-horizontal);
padding-right: var(--_padding-horizontal);
opacity: 0;
visibility: hidden;
transform: translate(0, 0);
background: var(--_background);
}
.backdrop-is-transparent .MLK__backdrop {
background: transparent;
}
/* If a custom layout has a custom container/backdrop
(backdrop-is-transparent), make sure to let pointer event go through. */
.backdrop-is-transparent .MLK__plate {
background: transparent;
pointer-events: none;
}
/* If a custom layout has a custom container/backdrop, make sure to
allow pointer events on it. */
.backdrop-is-transparent .MLK__layer > div > div {
pointer-events: all;
}
.ML__keyboard.is-visible > .MLK__backdrop {
transform: translate(0, calc(-1 * var(--_keyboard-height)));
opacity: 1;
visibility: visible;
}
.caps-lock-indicator {
display: none;
width: 8px;
height: 8px;
background: #0cbc0c;
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
border-radius: 8px;
right: 8px;
top: 8px;
position: absolute;
}
.ML__keyboard.is-caps-lock .caps-lock-indicator {
display: block;
}
.ML__keyboard.is-caps-lock .shift {
background: var(--_keycap-background-active);
color: var(--_keycap-text-active);
}
.MLK__plate {
position: absolute;
top: var(--_padding-top);
left: var(--_padding-horizontal);
width: calc(100% - 2 * var(--_padding-horizontal));
margin: 0;
padding: 0;
box-sizing: border-box;
container-type: inline-size;
touch-action: none;
-webkit-user-select: none;
user-select: none;
pointer-events: all;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 16px;
/* Size of toolbar labels */
font-weight: 400;
text-shadow: none;
}
.ML__box-placeholder {
color: var(--_box-placeholder-color);
}
.MLK__tex {
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__tex-math {
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
font-style: italic;
}
.MLK__layer {
display: none;
outline: none;
}
.MLK__layer.is-visible {
display: flex;
flex-flow: column;
}
/* Keyboard layouts are made or rows of keys... */
.MLK__rows {
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
display: flex;
flex-flow: column;
align-items: center;
border-collapse: separate;
clear: both;
border: 0;
margin: 0;
margin-bottom: var(--_keycap-gap);
gap: var(--_keycap-gap);
/* If the styling include, e.g., some shadows, they will be
cut off by the overflow. In that case, set the padding to
compensate. */
padding-left: var(--_row-padding-left);
padding-right: var(--_row-padding-right);
overflow: visible;
touch-action: none;
}
.MLK__rows > .MLK__row {
display: flex;
flex-flow: row;
justify-content: center;
width: 100%;
gap: var(--_keycap-gap);
margin: 0;
padding: 0;
/* For the alignment of the text on some modifiers (e.g. shift) */
/* Extra spacing between two adjacent keys */
}
.MLK__rows > .MLK__row .tex {
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__rows > .MLK__row .tex-math {
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__rows > .MLK__row .big-op {
font-size: calc(1.25 * var(--_keycap-font-size));
}
.MLK__rows > .MLK__row .small {
font-size: var(--_keycap-small-font-size);
}
.MLK__rows > .MLK__row .bottom {
justify-content: flex-end;
}
.MLK__rows > .MLK__row .left {
align-items: flex-start;
padding-left: 12px;
}
.MLK__rows > .MLK__row .right {
align-items: flex-end;
padding-right: 12px;
}
.MLK__rows > .MLK__row .w0 {
width: 0;
}
.MLK__rows > .MLK__row .w5 {
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w15 {
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w20 {
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w40 {
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w50 {
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .MLK__keycap.w50 {
font-size: 80%;
padding-top: 10px;
font-weight: 100;
}
.MLK__rows > .MLK__row .separator {
background: transparent;
border: none;
pointer-events: none;
}
.MLK__rows > .MLK__row .horizontal-rule {
height: 6px;
margin-top: 3px;
margin-bottom: 0;
width: 100%;
border-radius: 0;
border-top: var(--_horizontal-rule);
}
.MLK__rows > .MLK__row .ghost {
background: var(--_toolbar-background);
border: none;
color: var(--_toolbar-text);
}
.MLK__rows > .MLK__row .ghost:hover {
background: var(--_toolbar-background-hover);
}
.MLK__rows > .MLK__row .bigfnbutton {
font-size: var(--_keycap-extra-small-font-size);
}
.MLK__rows > .MLK__row .shift,
.MLK__rows > .MLK__row .action {
color: var(--_keycap-secondary-text);
background: var(--_keycap-secondary-background);
border-color: var(--_keycap-secondary-border);
border-bottom-color: var(--_keycap-secondary-border-bottom);
line-height: 0.8;
font-size: min(1rem, var(--_keycap-small-font-size));
font-weight: 600;
padding: 8px 12px 8px 12px;
}
.MLK__rows > .MLK__row .shift:hover,
.MLK__rows > .MLK__row .action:hover {
background: var(--_keycap-secondary-background-hover);
}
.MLK__rows > .MLK__row .action.primary {
background: var(--_keycap-primary-background);
color: var(--_keycap-primary-text);
}
.MLK__rows > .MLK__row .action.primary:hover {
background: var(--_keycap-primary-background-hover);
color: var(--_keycap-primary-text);
}
.MLK__rows > .MLK__row .shift.selected,
.MLK__rows > .MLK__row .action.selected {
color: var(--_toolbar-text-active);
}
.MLK__rows > .MLK__row .shift.selected.is-pressed,
.MLK__rows > .MLK__row .action.selected.is-pressed,
.MLK__rows > .MLK__row .shift.selected.is-active,
.MLK__rows > .MLK__row .action.selected.is-active {
color: white;
}
.MLK__rows > .MLK__row .warning {
background: #cd0030;
color: white;
}
.MLK__rows > .MLK__row .warning svg.svg-glyph {
width: 24px;
height: 24px;
min-height: 24px;
}
/** A regular keycap
* Use the :where() pseudo-class to give it a very low specifity,
* so that it can be overriden by custom style.
*/
:where(.MLK__rows > .MLK__row div) {
display: flex;
flex-flow: column;
align-items: center;
justify-content: space-evenly;
width: calc(var(--_keycap-width) - var(--_keycap-gap));
height: var(--_keycap-height);
box-sizing: border-box;
padding: 0;
vertical-align: top;
text-align: center;
float: left;
color: var(--_keycap-text);
fill: currentColor;
font-size: var(--_keycap-font-size);
background: var(--_keycap-background);
border: 1px solid var(--_keycap-border);
border-bottom-color: var(--_keycap-border-bottom);
border-radius: 6px;
cursor: pointer;
touch-action: none;
/* Keys with a variants panel */
position: relative;
overflow: hidden;
-webkit-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
:where(.MLK__rows > .MLK__row div):hover {
overflow: visible;
background: var(--_keycap-background-hover);
}
:where(.MLK__rows > .MLK__row div) .ML__latex {
pointer-events: none;
touch-action: none;
}
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
margin: 8px 0;
width: 20px;
height: 20px;
min-height: 20px;
}
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
margin: 8px 0;
width: 24px;
height: 24px;
min-height: 24px;
}
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
font-size: 25px;
}
:where(.MLK__rows > .MLK__row div).is-pressed {
background: var(--_keycap-background-pressed);
color: var(--_keycap-text-pressed);
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
:where(.MLK__rows > .MLK__row div).action.is-active,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
:where(.MLK__rows > .MLK__row div).action.is-pressed {
z-index: calc(var(--_keyboard-zindex) - 5);
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
:where(.MLK__rows > .MLK__row div).action.is-active aside,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
display: none;
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
display: none;
}
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
:where(.MLK__rows > .MLK__row div).action.is-pressed {
background: var(--_keycap-background-pressed);
color: var(--_keycap-text-pressed);
}
:where(.MLK__rows > .MLK__row div).shift.is-active,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
:where(.MLK__rows > .MLK__row div).action.is-active {
background: var(--_keycap-background-active);
color: var(--_keycap-text-active);
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
}
:where(.MLK__rows > .MLK__row div) small {
color: var(--_keycap-secondary-text);
}
:where(.MLK__rows > .MLK__row div) aside {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 10px;
line-height: 10px;
color: var(--_keycap-secondary-text);
}
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
Note there are a different set of tooltip rules for the keyboard toggle
(it's in a different CSS tree) */
.ML__keyboard [data-tooltip] {
position: relative;
}
.ML__keyboard [data-tooltip]::after {
position: absolute;
display: inline-table;
content: attr(data-tooltip);
top: inherit;
bottom: 100%;
width: max-content;
max-width: 200px;
padding: 8px 8px;
background: #616161;
color: #fff;
text-align: center;
z-index: 2;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
border-radius: 2px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-weight: 400;
font-size: 12px;
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
opacity: 0;
transform: scale(0.5);
}
.ML__keyboard [data-tooltip]:hover {
position: relative;
}
.ML__keyboard [data-tooltip]:hover::after {
opacity: 1;
transform: scale(1);
}
.MLK__toolbar {
align-self: center;
display: flex;
flex-flow: row;
justify-content: space-between;
width: 100%;
max-width: 996px;
min-height: 32px;
/* Icons for undo/redo, etc. */
}
.MLK__toolbar svg {
height: 20px;
width: 20px;
}
.MLK__toolbar > .left {
position: relative;
display: flex;
justify-content: flex-start;
flex-flow: row;
}
.MLK__toolbar > .right {
display: flex;
justify-content: flex-end;
flex-flow: row;
}
.MLK__toolbar > div > div {
/* "button" in the toolbar */
display: flex;
align-items: center;
justify-content: center;
color: var(--_toolbar-text);
fill: currentColor;
background: var(--_toolbar-background);
font-size: var(--_toolbar-font-size);
padding: 4px 15px;
cursor: pointer;
width: max-content;
min-width: 42px;
min-height: 34px;
border: none;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 8px;
padding-top: 8px;
margin-top: 0;
margin-bottom: 4px;
margin-left: 4px;
margin-right: 4px;
border-radius: 8px;
box-shadow: none;
border-bottom: 2px solid transparent;
}
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
background: var(--_toolbar-background-hover);
}
.MLK__toolbar > div > div.disabled svg,
.MLK__toolbar > div > div.disabled:hover svg,
.MLK__toolbar > div > div.disabled.is-pressed svg {
color: var(--_toolbar-text);
opacity: 0.2;
}
.MLK__toolbar > div > div:hover,
.MLK__toolbar > div > div:active,
.MLK__toolbar > div > div.is-pressed,
.MLK__toolbar > div > div.is-active {
color: var(--_toolbar-text-active);
}
.MLK__toolbar > div > div.selected {
color: var(--_toolbar-text-active);
background: var(--_toolbar-background-selected);
border-radius: 0;
border-bottom-color: var(--_toolbar-text-active);
padding-bottom: 4px;
margin-bottom: 8px;
}
/* This is the element that displays variants on press+hold */
.MLK__variant-panel {
visibility: hidden;
position: fixed;
display: flex;
flex-flow: row wrap-reverse;
justify-content: center;
align-content: center;
margin: 0;
padding: 0;
bottom: auto;
top: 0;
box-sizing: content-box;
transform: none;
z-index: calc(var(--_keyboard-zindex) + 1);
touch-action: none;
max-width: 350px;
background: var(--_variant-panel-background);
text-align: center;
border-radius: 6px;
padding: 6px;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
transition: none;
}
.MLK__variant-panel.is-visible {
visibility: visible;
}
.MLK__variant-panel.compact {
--_variant-keycap-length: var(--variant-keycap-length, 50px);
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
}
.MLK__variant-panel .item {
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
font-size: var(--_variant-keycap-font-size);
height: var(--_variant-keycap-length);
width: var(--_variant-keycap-length);
margin: 0;
box-sizing: border-box;
border-radius: 5px;
border: 1px solid transparent;
background: transparent;
pointer-events: all;
cursor: pointer;
color: var(--_variant-keycap-text);
fill: currentColor;
}
@media (max-height: 412px) {
.MLK__variant-panel .item {
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-length: var(--variant-keycap-length, 50px);
}
}
.MLK__variant-panel .item .ML__latex {
pointer-events: none;
}
.MLK__variant-panel .item.is-active {
background: var(--_variant-keycap-background-active);
color: var(--_variant-keycap-text-active);
}
.MLK__variant-panel .item.is-pressed {
background: var(--_variant-keycap-background-pressed);
color: var(--_variant-keycap-text-pressed);
}
.MLK__variant-panel .item.small {
font-size: var(--_keycap-small-font-size);
}
.MLK__variant-panel .item.swatch-button {
box-sizing: border-box;
background: #fbfbfb;
}
.MLK__variant-panel .item.swatch-button > span {
display: inline-block;
margin: 6px;
width: calc(100% - 12px);
height: calc(100% - 12px);
border-radius: 50%;
}
.MLK__variant-panel .item.swatch-button:hover {
background: #f0f0f0;
}
.MLK__variant-panel .item.swatch-button:hover > span {
border-radius: 2px;
}
.MLK__variant-panel .item.box > div,
.MLK__variant-panel .item.box > span {
border: 1px dashed rgba(0, 0, 0, 0.24);
}
.MLK__variant-panel .item .warning {
min-height: 60px;
min-width: 60px;
background: #cd0030;
color: white;
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
}
.MLK__variant-panel .item .warning.is-pressed,
.MLK__variant-panel .item .warning.is-active {
background: red;
}
.MLK__variant-panel .item .warning svg.svg-glyph {
width: 50px;
height: 50px;
}
.MLK__variant-panel .item aside {
font-size: var(--_variant-keycap-aside-font-size);
line-height: 12px;
opacity: 0.78;
padding-top: 2px;
}
.MLK__keycap {
position: relative;
}
.MLK__shift {
display: block;
position: absolute;
right: 4px;
top: 4px;
font-size: var(--_keycap-shift-font-size);
color: var(--_keycap-shift-color);
}
.hide-shift .MLK__shift {
display: none;
}
@media (max-width: 414px) {
.MLK__variant-panel {
max-width: 350px;
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-length: var(--variant-keycap-length, 50px);
}
}
/* @xs breakpoint: iPhone 5 */
@container (max-width: 414px) {
.MLK__rows {
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
--_keycap-height: max(var(--_keycap-height), 42px);
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
}
.MLK__toolbar > div > div {
font-size: 100%;
margin-left: 2px;
margin-right: 2px;
}
.MLK__rows .shift,
.MLK__rows .action {
font-size: 65%;
}
.MLK__rows .warning svg.svg-glyph {
width: 14px;
height: 14px;
min-height: 14px;
}
}
@container (max-width: 744px) {
.MLK__rows {
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
--_keycap-height: max(var(--keycap-height, 52px), 52px);
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
}
.MLK__toolbar > div > div {
padding-left: 0;
padding-right: 0;
}
.MLK__tooltip::after {
padding: 8px 16px;
font-size: 16px;
}
.MLK__rows > .MLK__row > div.fnbutton {
font-size: 16px;
}
.MLK__rows > .MLK__row > div.bigfnbutton {
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
}
.MLK__rows > .MLK__row > div.small {
font-size: 13px;
}
.MLK__rows > .MLK__row > div > aside {
display: none;
}
.MLK__shift {
display: none;
}
}
/* Medium breakpoint: larger phones */
@container (max-width: 768px) {
.MLK__rows {
--_keycap-height: max(var(--keycap-height, 42px), 42px);
}
.MLK__rows > .MLK__row > div > small {
font-size: 14px;
}
}
@media (max-height: 768px) {
.MLK__rows {
--_keycap-height: max(var(--keycap-height, 42px), 42px);
}
.MLK__rows > .MLK__row > div > small {
font-size: 14px;
}
}
@container (max-width: 1444px) {
.MLK__rows .if-wide {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
--_background: var(--keyboard-background, #151515);
--_border: var(--keyboard-border, transparent);
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
--keyboard-toolbar-background-hover: #303030;
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
--_keycap-background: var(--keycap-background, #1f2022);
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
--_keycap-border: var(--_keycap-border, transparent);
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
--_keycap-text: var(--keycap-text, #e3e4e8);
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
--keycap-secondary-border: transparent;
--keycap-secondary-border-bottom: transparent;
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
--_variant-panel-background: var(--variant-panel-background, #303030);
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
}
}
/* Same as the media query, but with a class */
[theme='dark'] .ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
--_background: var(--keyboard-background, #151515);
--_border: var(--keyboard-border, transparent);
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
--keyboard-toolbar-background-hover: #303030;
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
--_keycap-background: var(--keycap-background, #1f2022);
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
--_keycap-border: var(--_keycap-border, transparent);
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
--_keycap-text: var(--keycap-text, #e3e4e8);
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
--keycap-secondary-border: transparent;
--keycap-secondary-border-bottom: transparent;
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
--_variant-panel-background: var(--variant-panel-background, #303030);
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
}
[theme='light'] .ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0c75d8);
--_background: var(--keyboard-background, #cacfd7);
--_border: var(--keyboard-border, #ddd);
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
--_keycap-background: var(--keycap-background, white);
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
--_keycap-border: var(--_keycap-border, #e5e6e9);
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
--_keycap-text: var(--keycap-text, #000);
--_keycap-text-active: var(--keycap-text-active, #fff);
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
--_variant-panel-background: var(--variant-panel-background, #fff);
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
}
`,Eu=`:host {
--primary-color: #5898ff;
--primary-color-dimmed: #c0c0f0;
--primary-color-dark: var(--blue-500);
--primary-color-light: var(--blue-100);
--primary-color-reverse: #ffffff;
--secondary-color: #ff8a65;
--secondary-color-dimmed: #f0d5c5;
--secondary-color-dark: var(--orange-500);
--secondary-color-light: var(--orange-100);
--secondary-color-reverse: #ffffff;
--link-color: #5898ff;
--link-color-dimmed: #c5c5c5;
--link-color-dark: #121212;
--link-color-light: #e2e2e2;
--link-color-reverse: #ffffff;
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--neutral-100: #f5f5f5;
--neutral-200: #eeeeee;
--neutral-300: #e0e0e0;
--neutral-400: #bdbdbd;
--neutral-500: #9e9e9e;
--neutral-600: #757575;
--neutral-700: #616161;
--neutral-800: #424242;
--neutral-900: #212121;
--red-25: #fff8f7;
--red-50: #fff1ef;
--red-100: #ffeae6;
--red-200: #ffcac1;
--red-300: #ffa495;
--red-400: #ff7865;
--red-500: #f21c0d;
--red-600: #e50018;
--red-700: #d30024;
--red-800: #bd002c;
--red-900: #a1002f;
--orange-25: #fffbf8;
--orange-50: #fff7f1;
--orange-100: #fff3ea;
--orange-200: #ffe1c9;
--orange-300: #ffcca2;
--orange-400: #ffb677;
--orange-500: #fe9310;
--orange-600: #f58700;
--orange-700: #ea7c00;
--orange-800: #dc6d00;
--orange-900: #ca5b00;
--brown-25: #fff8ef;
--brown-50: #fff1df;
--brown-100: #ffe9ce;
--brown-200: #ebcca6;
--brown-300: #cdaf8a;
--brown-400: #af936f;
--brown-500: #856a47;
--brown-600: #7f5e34;
--brown-700: #78511f;
--brown-800: #6e4200;
--brown-900: #593200;
--yellow-25: #fffdf9;
--yellow-50: #fffcf2;
--yellow-100: #fffaec;
--yellow-200: #fff2ce;
--yellow-300: #ffe8ab;
--yellow-400: #ffdf85;
--yellow-500: #ffcf33;
--yellow-600: #f1c000;
--yellow-700: #dfb200;
--yellow-800: #c9a000;
--yellow-900: #ad8a00;
--lime-25: #f4ffee;
--lime-50: #e9ffdd;
--lime-100: #ddffca;
--lime-200: #a8fb6f;
--lime-300: #94e659;
--lime-400: #80d142;
--lime-500: #63b215;
--lime-600: #45a000;
--lime-700: #268e00;
--lime-800: #007417;
--lime-900: #005321;
--green-25: #f5fff5;
--green-50: #ebffea;
--green-100: #e0ffdf;
--green-200: #a7ffa7;
--green-300: #5afa65;
--green-400: #45e953;
--green-500: #17cf36;
--green-600: #00b944;
--green-700: #00a34a;
--green-800: #008749;
--green-900: #00653e;
--teal-25: #f3ffff;
--teal-50: #e6fffe;
--teal-100: #d9fffe;
--teal-200: #8dfffe;
--teal-300: #57f4f4;
--teal-400: #43e5e5;
--teal-500: #17cfcf;
--teal-600: #00c2c0;
--teal-700: #00b5b1;
--teal-800: #00a49e;
--teal-900: #009087;
--cyan-25: #f7fcff;
--cyan-50: #eff8ff;
--cyan-100: #e7f5ff;
--cyan-200: #c2e6ff;
--cyan-300: #95d5ff;
--cyan-400: #61c4ff;
--cyan-500: #13a7ec;
--cyan-600: #069eda;
--cyan-700: #0095c9;
--cyan-800: #0088b2;
--cyan-900: #0a7897;
--blue-25: #f7faff;
--blue-50: #eef5ff;
--blue-100: #e5f1ff;
--blue-200: #bfdbff;
--blue-300: #92c2ff;
--blue-400: #63a8ff;
--blue-500: #0d80f2;
--blue-600: #0077db;
--blue-700: #006dc4;
--blue-800: #0060a7;
--blue-900: #005086;
--indigo-25: #f8f7ff;
--indigo-50: #f1efff;
--indigo-100: #eae7ff;
--indigo-200: #ccc3ff;
--indigo-300: #ac99ff;
--indigo-400: #916aff;
--indigo-500: #63c;
--indigo-600: #5a21b2;
--indigo-700: #4e0b99;
--indigo-800: #3b0071;
--indigo-900: #220040;
--purple-25: #fbf7ff;
--purple-50: #f8f0ff;
--purple-100: #f4e8ff;
--purple-200: #e4c4ff;
--purple-300: #d49aff;
--purple-400: #c36aff;
--purple-500: #a219e6;
--purple-600: #9000c4;
--purple-700: #7c009f;
--purple-800: #600073;
--purple-900: #3d0043;
--magenta-25: #fff8fb;
--magenta-50: #fff2f6;
--magenta-100: #ffebf2;
--magenta-200: #ffcddf;
--magenta-300: #ffa8cb;
--magenta-400: #ff7fb7;
--magenta-500: #eb4799;
--magenta-600: #da3689;
--magenta-700: #c82179;
--magenta-800: #b00065;
--magenta-900: #8a004c;
}
@media (prefers-color-scheme: dark) {
:host {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
}
:host([theme='dark']) {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
/* @media (prefers-color-scheme: dark) {
:host {
--label-color: #fff;
--active-label-color: #000;
--menu-bg: #525252;
--active-bg: #5898ff;
--active-bg-dimmed: #5c5c5c;
}
} */
:host {
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol';
--ui-font-size: 14px;
--ui-line-height: 1.5;
--ui-letter-spacing: 0.007em;
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
--ui-layer-1: var(--neutral-100);
--ui-layer-2: var(--neutral-200);
--ui-layer-3: var(--neutral-300);
--ui-layer-4: var(--neutral-400);
--ui-layer-5: var(--neutral-500);
--ui-layer-6: var(--neutral-600);
--ui-border-color: var(--primary-color);
--ui-border-radius: 4px;
--ui-text: var(--neutral-900);
--ui-text-secondary: var(--neutral-700);
--ui-text-placeholder: var(--neutral-500);
--ui-text-muted: var(--neutral-300);
/** A field is a UI element in which a user can type data, for
* example an input or textarea element.
*/
--ui-field-bg: var(--neutral-100);
--ui-field-bg-hover: var(--neutral-100);
--ui-field-bg-disabled: var(--neutral-300);
--ui-field-bg-invalid: var(--red-100);
--ui-field-bg-focus: var(--neutral-100);
--ui-field-border: 0.5px solid var(--border-color);
--ui-field-border-hover: 0.5px solid var(--border-color);
--ui-field-border-disabled: 0.5px solid var(--border-color);
--ui-field-border-invalid: 0.5px solid var(--border-color);
--ui-field-border-focus: 0.5px solid var(--border-color);
--ui-menu-bg: var(--neutral-100);
--ui-menu-text: var(--neutral-900);
--ui-menu-bg-hover: var(--neutral-200);
--ui-menu-text-hover: var(--neutral-900);
/** The \`active\` state is used for the state of menu items
* when they are selected.
*/
--ui-menu-bg-active: var(--primary-color);
--ui-menu-text-active: var(--primary-color-reverse);
/** The \`active-muted\` set is used for the state of
* submenus when they are open.
*/
--ui-menu-bg-active-muted: var(--neutral-300);
--ui-menu-text-active-muted: var(--neutral-900);
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
--ui-menu-divider: 0.5px solid #c7c7c7;
/* var(--neutral-300); */
--ui-menu-z-index: 10000;
--page-bg: var(--neutral-100);
--content-bg: var(--neutral-200);
}
@media (prefers-color-scheme: dark) {
:host {
--ui-menu-bg: var(--neutral-200);
}
}
:host([theme='dark']) {
--ui-menu-bg: var(--neutral-200);
}
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
Noto is a Linux/Android font.
*/
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh) {
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
}
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
}
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac) {
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
}
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(ko-kr-apple) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh),
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo),
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac),
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std),
:lang(ko-kr-apple) {
--ui-font-size: 1rem;
--ui-line-height: 1.7;
--ui-letter-spacing: 0;
}
:dir(rtl) {
--ui-line-height: auto;
--ui-letter-spacing: 0;
}
`,dh=`.ui-menu *,
.ui-menu ::before,
.ui-menu ::after {
box-sizing: border-box;
}
.ui-menu {
display: none;
color-scheme: light dark;
-webkit-user-select: none;
/* Important: Safari iOS doesn't respect user-select */
user-select: none;
cursor: default;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0 0 0 0);
--active-label-color: #fff;
/* ui-menu-text-active */
--label-color: #121212;
/* ui-menu-text */
--menu-bg: #e2e2e2;
/* ui-menu-background */
--active-bg: #5898ff;
/* ui-menu-background-active */
--active-bg-dimmed: #c5c5c5;
/* ui-menu-background-active-muted */
}
/** Use the :where pseudo selector to make the specificity of the
* selector 0, so that it can be overridden by the user.
*/
:where(.ui-menu-container) {
position: absolute;
overflow: visible;
width: auto;
height: auto;
z-index: 10000;
border-radius: 8px;
background: var(--ui-menu-bg);
box-shadow: var(--ui-menu-shadow);
list-style: none;
padding: 6px 0 6px 0;
margin: 0;
user-select: none;
cursor: default;
color: var(--ui-menu-text);
font-weight: normal;
font-style: normal;
text-shadow: none;
text-transform: none;
letter-spacing: 0;
outline: none;
opacity: 1;
/* The [popover] elements have a 1px solid black border. Ugh. */
border: none;
width: fit-content;
height: fit-content;
}
:where(.ui-menu-container > li) {
display: flex;
flex-flow: row;
align-items: center;
padding: 1px 7px 1px 7px;
margin-top: 0;
margin-left: 6px;
margin-right: 6px;
border-radius: 4px;
white-space: nowrap;
position: relative;
outline: none;
fill: currentColor;
user-select: none;
cursor: default;
text-align: left;
color: inherit;
font-family: var(--ui-font-family);
font-size: var(--ui-font-size);
line-height: var(--ui-line-height);
letter-spacing: var(--ui-letter-spacing);
}
:where(.ui-menu-container > li > .label) {
appearance: none;
background: none;
outline: none;
width: 100%;
margin: 0;
padding: 1px 2px 1px 1px;
overflow: visible;
border: 1px solid transparent;
white-space: nowrap;
text-align: start;
}
:where(.ui-menu-container > li:has(.heading)) {
margin-top: 0.5em;
}
:where(.ui-menu-container > li > .label.heading) {
font-weight: bold;
opacity: 0.4;
}
:where(.ui-menu-container > li.indent > .label) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li > .label.indent) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li[role='divider']) {
border-bottom: 1px solid var(--ui-menu-divider);
border-radius: 0;
padding: 0;
margin-left: 15px;
margin-right: 15px;
padding-top: 5px;
margin-bottom: 5px;
width: calc(100% - 30px);
/** 100% - (margin-left + margin-right) */
}
:where(.ui-menu-container > li[aria-disabled='true']) {
opacity: 0.5;
}
:where(.ui-menu-container > li.active) {
background: var(--ui-menu-bg-active);
background: -apple-system-control-accent;
color: var(--ui-menu-text-active);
}
:where(.ui-menu-container > li.active.is-submenu-open) {
background: var(--ui-menu-bg-active-muted);
color: inherit;
}
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
padding-inline-end: 0;
}
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
color: var(--ui-menu-text-active);
}
/** Keyboard shortcut */
:where(.ui-menu-container > li > kbd) {
font-family: var(--ui-font-family);
margin-inline-start: 12px;
opacity: 0.4;
}
:where(.ui-menu-container > li.active > kbd) {
opacity: 0.85;
}
.ui-trailing-chevron {
display: flex;
margin-inline-start: 24px;
width: 10px;
height: 10px;
margin-bottom: 4px;
}
.ui-trailing-chevron:dir(rtl) {
transform: scaleX(-1);
}
.ui-checkmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
.ui-mixedmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
`,eo;function Wl(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=Qa;break;case"mathfield":y=vf;break;case"environment-popover":y=yf;break;case"suggestion-popover":y=ch;break;case"keystroke-caption":y=cc;break;case"virtual-keyboard":y=uh;break;case"ui":y=Eu;break;case"menu":y=dh;break;default:debugger}return y}function uc(a){return eo||(eo={}),eo[a]||(eo[a]=new CSSStyleSheet,eo[a].replaceSync(Wl(a))),eo[a]}var ol;function ks(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(Wl(a))),window.document.head.appendChild(b);return}if(ol||(ol={}),((y=ol[a])!=null?y:0)!==0)ol[a]+=1;else{const b=uc(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],ol[a]=1}}function x(a){if("adoptedStyleSheets"in document&&ol!=null&&ol[a]&&(ol[a]-=1,ol[a]<=0)){const y=eo[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class kp extends pr{constructor(y){var b;super(me(xe({},y),{type:"accent",body:(b=y.body)!=null?b:void 0})),y.accentChar?this.accent=y.accentChar:this.svgAccent=y==null?void 0:y.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(y){return new kp(y)}toJson(){return me(xe({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new Ia({parent:y,mathstyle:"cramp"},this.style),ee=(b=pr.createBox(E,this.body))!=null?b:new Vr("\u25A2",{style:this.style});let re=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(re=ee.skew);let oe=Math.min(ee.height,el),pe;if(this.svgAccent)pe=Ps(this.svgAccent),oe=E.metrics.bigOpSpacing1-oe;else if(this.accent){const be=new Vr(this.accent,{fontFamily:"Main-Regular"});be.italic=0;const Ae=this.accent===8407?" ML__accent-vec":"";pe=new Vr(new Vr(be),{classes:"ML__accent-body"+Ae})}pe=new $a({shift:0,children:[{box:new Vr(ee)},-oe,{box:pe,marginLeft:ee.left+2*re,classes:["ML__center"]}]});const ge=new Vr(pe,{type:"lift"});return this.caret&&(ge.caret=this.caret),this.bind(E,ge.wrap(E)),this.attachSupsub(E,{base:ge})}},ne={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},te=Object.fromEntries(Object.entries(ne).map(([a,y])=>[y,a]));function ie(a){var y;return(y={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[a])!=null?y:a.codePointAt(0)}function de(a,y,b,E){var ee;const oe=new Vr(ie(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&oe.setTop((1-y.scalingFactor)*os),oe}function ye(a,y,b,E,ee){var re,oe;const pe=new Ia({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),ge=new Vr(ie(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((re=ee.classes)!=null?re:"")+` ML__delim-size${y}`,type:(oe=ee.type)!=null?oe:"ignore"}).wrap(pe);return b&&ge.setTop((1-pe.scalingFactor)*os),ge}function Be(a,y,b,E,ee){var re;let oe,pe,ge,be;oe=ge=be=ie(a),pe=null;let Ae="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ge=oe=be=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ge=oe=be=8741:a==="\\uparrow"?ge=be=9168:a==="\\Uparrow"?ge=be=8214:a==="\\downarrow"?oe=ge=9168:a==="\\Downarrow"?oe=ge=8214:a==="\\updownarrow"?(oe=8593,ge=9168,be=8595):a==="\\Updownarrow"?(oe=8657,ge=8214,be=8659):a==="["||a==="\\lbrack"?(oe=9121,ge=9122,be=9123,Ae="Size4-Regular"):a==="]"||a==="\\rbrack"?(oe=9124,ge=9125,be=9126,Ae="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ge=oe=9122,be=9123,Ae="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(oe=9121,ge=be=9122,Ae="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ge=oe=9125,be=9126,Ae="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(oe=9124,ge=be=9125,Ae="Size4-Regular"):a==="("||a==="\\lparen"?(oe=9115,ge=9116,be=9117,Ae="Size4-Regular"):a===")"||a==="\\rparen"?(oe=9118,ge=9119,be=9120,Ae="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(oe=9127,pe=9128,be=9129,ge=9130,Ae="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(oe=9131,pe=9132,be=9133,ge=9130,Ae="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(oe=9127,be=9129,ge=9130,Ae="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(oe=9131,be=9133,ge=9130,Ae="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(oe=9127,be=9133,ge=9130,Ae="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(oe=9131,be=9129,ge=9130,Ae="Size4-Regular"):a==="\\surd"?(oe=57345,be=9143,ge=57344,Ae="Size4-Regular"):a==="\\ulcorner"?(oe=9484,ge=be=32):a==="\\urcorner"?(oe=9488,ge=be=32):a==="\\llcorner"?(be=9492,ge=oe=32):a==="\\lrcorner"&&(oe=9496,ge=oe=32);const _e=tl(oe,Ae),it=_e.height+_e.depth,Pt=tl(ge,Ae),Ut=Pt.height+Pt.depth,Jn=tl(be,Ae),Ur=Jn.height+Jn.depth;let Zn=0,Mr=1;if(pe!==null){const Jo=tl(pe,Ae);Zn=Jo.height+Jo.depth,Mr=2}const Gr=it+Ur+Zn,Tr=Math.max(0,Math.ceil((y-Gr)/(Mr*Ut))),bi=Gr+Tr*Mr*Ut;let Zi=os;b&&(Zi=Zi*E.scalingFactor);const Ii=bi/2-Zi,Ra=.008,Ja=[];Ja.push({box:new Vr(be,{fontFamily:Ae})}),Ja.push(-Ra);const $r=new Vr(ge,{fontFamily:Ae});if(pe===null)for(let Jo=0;Jo<Tr;Jo++)Ja.push({box:$r});else{for(let Jo=0;Jo<Tr;Jo++)Ja.push({box:$r});Ja.push(-Ra),Ja.push({box:new Vr(pe,{fontFamily:Ae})}),Ja.push(-Ra);for(let Jo=0;Jo<Tr;Jo++)Ja.push({box:$r})}Ja.push(-Ra),Ja.push({box:new Vr(oe,{fontFamily:Ae})});let _s="";Ae==="Size1-Regular"?_s=" delim-size1":Ae==="Size4-Regular"&&(_s=" delim-size4");const kl=new $a({bottom:Ii,children:Ja},{classes:_s});return new Vr(kl,me(xe({},ee!=null?ee:{}),{classes:((re=ee==null?void 0:ee.classes)!=null?re:"")+" ML__delim-mult"}))}var Oe=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),ze=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Ot=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Gt=[0,1.2,1.8,2.4,3];function On(a,y,b,E){return a===void 0||a==="."?gi(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),Oe.has(a)||Ot.has(a)?ye(a,y,!1,b,E):ze.has(a)?Be(a,Gt[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var Sn=[{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}],br=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],Rr=[{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 Xr(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function li(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let re=ee;re<b.length&&b[re].type!=="stack";re++){const oe=tl(a,Xr(b[re]));if(oe.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let pe=oe.height+oe.depth;if(b[re].type==="small"&&(b[re].mathstyle==="scriptscriptstyle"?pe*=Math.max(pu[Math.max(1,E.size-2)],E.minFontScale):b[re].mathstyle==="scriptstyle"&&(pe*=Math.max(pu[Math.max(1,E.size-1)],E.minFontScale))),pe>y)return b[re]}return b[b.length-1]}function mi(a,y,b,E,ee,re){if(!y||y.length===0||y===".")return gi(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let oe;Ot.has(y)?oe=Sn:Oe.has(y)?oe=Rr:oe=br;const pe=li(ie(y),b,oe,ee),ge=new Ia({parent:ee,mathstyle:pe.mathstyle},re==null?void 0:re.style);return pe.type==="small"?de(y,ge,E,me(xe({},re),{type:a})):pe.type==="large"?ye(y,pe.size,E,ge,me(xe({},re),{type:a})):(console.assert(pe.type==="stack"),Be(y,b,E,ge,me(xe({},re),{type:a})))}function ni(a,y,b,E,ee,re){if(y===".")return gi(ee,re==null?void 0:re.classes);const oe=os*ee.scalingFactor,pe=901,ge=5/zl,be=Math.max(b-oe,E+oe),Ae=Math.max(be/500*pe,2*be-ge);return mi(a,y,Ae,!0,ee,re)}function gi(a,y){const b=new Vr(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new Ia({parent:a,mathstyle:"textstyle"}))}var Gi=class Lp extends pr{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 Lp(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{}"}},qi=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],xa=["cases","dcases","rcases"],to=["align","align*","aligned","gather","gathered","split"],jo=["array","subequations","eqnarray"];function bo(a){return jo.concat(to).concat(xa).concat(qi).includes(a)}function us(a){return qi.includes(a)}function ds(a){return xa.includes(a)}function To(a){return to.includes(a)}function fs(a,y,b){let E=0;for(const be of b)"align"in be&&(E+=1);let ee=0;const re=[];for(const be of y){let Ae=0;for(ee=Math.max(ee,Math.min(be.length,E));Ae<be.length;){const _e=[],it=Math.min(be.length,Ae+E);for(;Ae<it;){const Pt=be[Ae];Pt.length===0?_e.push([new pr({type:"first",mode:a.mode})]):Pt[0].type!=="first"?_e.push([new pr({type:"first",mode:a.mode}),...Pt]):(console.assert(!Pt.slice(1).some(Ut=>Ut.type==="first")),_e.push(Pt)),Ae+=1}re.push(_e)}}re.length>0&&re[re.length-1].length===1&&re[re.length-1][0].length===1&&re[re.length-1][0][0].type==="first"&&re.pop();const oe=[];for(const be of re){if(be.length!==ee)for(let Ae=be.length;Ae<ee;Ae++)be.push([new pr({type:"first",mode:a.mode}),new Gi]);oe.push(be)}let pe=0,ge=0;for(const be of oe){ge=0;for(const Ae of be){for(const _e of Ae)_e.parent=a,_e.parentBranch=[pe,ge];ge+=1}pe+=1}return a.isDirty=!0,oe}var la=class Bp extends pr{constructor(y,b,E,ee={}){var re;super({type:"array"}),this.environmentName=y,this.rowGaps=E,ee.mathstyleName&&(this.mathstyleName=ee.mathstyleName),ee.columns&&(ee.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ee.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=fs(this,b,this.colFormat),ee.leftDelim&&(this.leftDelim=ee.leftDelim),ee.rightDelim&&(this.rightDelim=ee.rightDelim),ee.arraycolsep!==void 0&&(this.arraycolsep=ee.arraycolsep),this.colSeparationType=ee.colSeparationType,ee.arraystretch!==void 0&&(this.arraystretch=ee.arraystretch),this.minColumns=(re=ee.minColumns)!=null?re:1}static fromJson(y){return new Bp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=me(xe({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(E=>E.map(ee=>ee.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(y.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(y.arraycolsep=this.arraycolsep),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}branch(y){var b;if(Tc(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Tc(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(il(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(E=>{E.parent=void 0,E.parentBranch=void 0}),console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}get hasChildren(){return this.children.length>0}get children(){const y=[];for(const b of this.array)for(const E of b)if(E)for(const ee of E)y.push(...ee.children),y.push(ee);return[...y,...super.children]}render(y){var b,E,ee,re,oe,pe;const ge=new Ia({parent:y,mathstyle:this.mathstyleName},this.style),be=ge.getRegisterAsEm("arrayrulewidth"),Ae=ge.getRegisterAsEm("arraycolsep"),_e=ge.getRegisterAsEm("doublerulesep"),it=(E=(b=this.arraystretch)!=null?b:ge.getRegisterAsNumber("arraystretch"))!=null?E:1;let Pt=typeof this.arraycolsep=="number"?this.arraycolsep:Ae;this.colSeparationType==="small"&&(Pt=.2778*(new Ia({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const Ut=it*hu,Jn=.7*Ut,Ur=.3*Ut;let Zn=0;const Mr=[];let Gr=0;const Tr=this.array.length;for(let ro=0;ro<Tr;++ro){const Lo=this.array[ro];Gr=Math.max(Gr,Lo.length);const qo=new Ia({parent:ge,mathstyle:this.mathstyleName},this.style);let Ll=Jn/qo.scalingFactor,Bl=Ur/qo.scalingFactor;const Dl={cells:[],height:0,depth:0,pos:0};for(const cl of Lo){const e0=(ee=pr.createBox(qo,cl,{type:"ignore"}))!=null?ee:new Vr(null,{type:"ignore"});Bl=Math.max(Bl,e0.depth),Ll=Math.max(Ll,e0.height),Dl.cells.push(e0)}let Il=(re=sd(this.rowGaps[ro]))!=null?re:0;Il>0&&(Il+=Ur,Bl=Math.max(Bl,Il),Il=0),ro<Tr-1&&!us(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Bl+=ge.getRegisterAsEm("jot")),Dl.height=Ll,Dl.depth=Bl,Zn+=Ll,Dl.pos=Zn,Zn+=Bl+Il,Mr.push(Dl)}const bi=Zn/2+os,Zi=[];for(let ro=0;ro<Gr;ro++){const Lo=[];for(const qo of Mr){const Ll=qo.cells[ro];Ll.depth=qo.depth,Ll.height=qo.height,Lo.push({box:Ll,shift:qo.pos-bi})}Lo.length>0&&Zi.push(new $a({individualShift:Lo}))}const Ii=[];let Ra=!1,Ja=!1,$r=0,_s=!this.leftDelim;const{colFormat:kl}=this;for(const ro of kl){if("align"in ro&&$r>=Zi.length)break;if("align"in ro)Ra?Ii.push(xo(2*Pt)):(Ja||_s)&&Ii.push(xo(Pt)),Ii.push(new Vr(Zi[$r],{classes:"col-align-"+ro.align})),$r++,Ra=!0,Ja=!1,_s=!1;else if("gap"in ro){if(typeof ro.gap=="number")Ii.push(xo(ro.gap));else{const Lo=Co(y,Mr,bi,ro.gap);Lo&&Ii.push(Lo)}Ra=!1,Ja=!1,_s=!1}else if("separator"in ro){const Lo=new Vr(null,{classes:"vertical-separator"});Lo.height=Zn,Lo.setStyle("height",Zn,"em"),Lo.setStyle("border-right",`${be}em ${ro.separator} currentColor`),Lo.setStyle("vertical-align",-(Zn-bi),"em");let qo=0;Ja?qo=_e-be:Ra&&(qo=Pt-be),Lo.left=qo,Ii.push(Lo),Ra=!1,Ja=!0,_s=!1}}Ra&&!this.rightDelim&&Ii.push(xo(Pt));const Xs=new Vr(Ii,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Xs.caret=this.caret),this.bind(y,Xs);const Jo=Xs.height,Hs=Xs.depth,Es=this.bind(y,new Vr([this.bind(y,ni("open",(oe=this.leftDelim)!=null?oe:".",Jo,Hs,ge,{isSelected:this.isSelected})),Xs,this.bind(y,ni("close",(pe=this.rightDelim)!=null?pe:".",Jo,Hs,ge,{isSelected:this.isSelected}))],{type:"ord"}));return Es?(Es.setStyle("display","inline-block"),this.caret&&(Es.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Es}))):null}_serialize(y){var b;const E=[];if(this.environmentName==="lines"?E.push("{\\displaylines"):E.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(E.push("{"),this.colFormat!==void 0)for(const ee of this.colFormat)"align"in ee&&typeof ee.align=="string"?E.push(ee.align):"separator"in ee&&ee.separator==="solid"?E.push("|"):"separator"in ee&&ee.separator==="dashed"&&E.push(":");E.push("}")}for(let ee=0;ee<this.array.length;ee++){for(let re=0;re<this.array[ee].length;re++)re>0&&E.push(" & "),E.push(pr.serialize(this.array[ee][re],y));if(ee<this.array.length-1){const re=this.rowGaps[ee];re!=null&&re.dimension?E.push(`\\\\[${re.dimension} ${(b=re.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),ba(E)}getCell(y,b){return this.array[y][b]}setCell(y,b,E){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const re of this.array[y][b])re.parent=void 0,re.parentBranch=void 0;let ee=E;(E.length===0||E[0].type!=="first")&&(ee=[new pr({type:"first",mode:this.mode}),...E]),this.array[y][b]=ee;for(const re of ee)re.parent=this,re.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(So(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const oe of re)oe.parentBranch=[E,ee]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(So(this));this.array.splice(y+1,0,b);for(let E=y+1;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const oe of re)oe.parentBranch=[E,ee]}this.isDirty=!0}removeRow(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>y);const b=this.array.splice(y,1);for(const E of b)for(const ee of E)if(ee)for(const re of ee)re.parent=void 0,re.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const oe of re)oe.parentBranch=[E,ee]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,So(this));for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}this.isDirty=!0}addColumnAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y+1,0,So(this));for(let b=0;b<this.rowCount;b++)for(let E=y+1;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>y);for(const b of this.array){const E=b.splice(y,1);for(const ee of E)if(ee)for(const re of ee)re.parent=void 0,re.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const E of b)E&&y.push(E.filter(ee=>ee.type!=="first"));return y}};function So(a){const y=new pr({type:"first",mode:a.mode});y.parent=a;const b=new Gi;return b.parent=a,[y,b]}function xo(a){const y=new Vr(null,{classes:"arraycolsep"});return y.width=a,y}function Co(a,y,b,E){if(!E)return null;const ee=[];for(const re of y){const oe=pr.createBox(a,E,{type:"ignore"});oe&&(oe.depth=re.depth,oe.height=re.height,ee.push({box:oe,shift:re.pos-b}))}return new $a({individualShift:ee}).wrap(a)}var Ao=class Dp extends pr{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 Dp(y)}toJson(){return me(xe({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,E,ee,re;const oe=pr.createBox(y,this.body,{type:"lift"});if(!oe)return null;const pe=y.toEm((b=this.offset)!=null?b:{dimension:0});oe.depth+=pe,oe.setStyle("display","inline-block"),oe.setStyle("position","relative"),oe.setStyle("height",Math.floor(100*oe.height+oe.depth)/100,"em"),oe.setStyle("vertical-align",-Math.floor(100*oe.height)/100,"em");const ge=new Ia({parent:y},this.style),be=ge.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Ae=new Vr(null,{classes:"ML__box"});Ae.height=oe.height+be,Ae.depth=oe.depth+be,Ae.setStyle("box-sizing","border-box"),Ae.setStyle("position","absolute"),Ae.setStyle("top",-be+.3,"em"),Ae.setStyle("left",0),Ae.setStyle("height",Ae.height+Ae.depth,"em"),Ae.setStyle("width","100%"),this.backgroundcolor&&Ae.setStyle("background-color",(ee=ge.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&Ae.setStyle("border",`${ge.getRegisterAsEm("fboxrule",2)}em solid ${(re=ge.toColor(this.framecolor))!=null?re:"black"}`),this.border&&Ae.setStyle("border",this.border);const _e=new Vr([Ae,oe],{type:"lift"});return _e.setStyle("display","inline-block"),_e.setStyle("position","relative"),_e.setStyle("line-height",0),_e.height=oe.height+be+(pe>0?pe:0),_e.depth=oe.depth+be+(pe<0?-pe:0),_e.setStyle("padding-left",be,"em"),_e.setStyle("padding-right",be,"em"),_e.setStyle("height",Math.floor(100*(oe.height+oe.depth+2*be+Math.abs(pe)))/100,"em"),_e.setStyle("margin-top",-be,"em"),_e.setStyle("top",Math.floor(100*(oe.depth-oe.height+2*be-pe))/100,"em"),_e.setStyle("vertical-align",Math.floor(100*(oe.depth+2*be))/100,"em"),this.caret&&(_e.caret=this.caret),this.attachSupsub(y,{base:_e})}_serialize(y){return y.skipStyles?ba([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},jl=class Ip extends pr{constructor(y,b){var E;super({type:"composition",mode:(E=b==null?void 0:b.mode)!=null?E:"math",value:y})}static fromJson(y){return new Ip(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new Vr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},ys=class Tp extends pr{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Tp(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Yo=class Op extends pr{constructor(y,b,E){super({type:"group",mode:b,style:E}),this.body=y,this.boxType=y.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,y&&y.length===1&&y[0].command===","&&(this.captureSelection=!0)}static fromJson(y){return new Op(y.body,y.mode,y.style)}render(y){const b=pr.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=It(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},ja=class Pp extends pr{constructor(y,b,E){super({type:"leftright",style:E.style,displayContainsHighlight:!0}),this.variant=y,this.body=b,this.leftDelim=E.leftDelim,this.rightDelim=E.rightDelim}static fromJson(y){var b;return new Pp((b=y.variant)!=null?b:"",y.body,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}_serialize(y){var b,E;const ee=this.matchingRightDelim();return this.variant==="left...right"?ba(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?ba(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):ba([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ee])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const E=(y=this.leftDelim)!=null?y:".";return(b=ne[E])!=null?b:E}render(y){var b,E;const ee=new Ia({parent:y},this.style);console.assert(this.body!==void 0);const re=new Ia({parent:y,mathstyle:"textstyle"},this.style),oe=(b=pr.createBox(ee,this.body,{type:"inner"}))!=null?b:new Vr(null,{type:"inner"}),pe=oe.height/re.scalingFactor,ge=oe.depth/re.scalingFactor,be=[];if(this.leftDelim&&be.push(this.bind(re,ni("open",this.leftDelim,pe,ge,re,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),oe&&(Fo(oe.children,this,ee,pe,ge),be.push(oe)),this.rightDelim){let Pt=this.containsCaret?" ML__contains-caret":"",Ut=this.rightDelim;Ut==="?"&&(ee.smartFence?(Ut=this.matchingRightDelim(),Pt+=" ML__smart-fence__close"):Ut="."),be.push(this.bind(re,ni("close",Ut,pe,ge,re,{isSelected:this.isSelected,classes:Pt+" ML__close",mode:this.mode,style:this.style})))}let Ae=this.variant==="mleft...mright";const _e=this.leftSibling;_e&&(!Ae&&_e.isFunction&&(Ae=!0),!Ae&&_e.type==="subsup"&&((E=_e.leftSibling)!=null&&E.isFunction)&&(Ae=!0));const it=new Vr(be,{type:Ae?"close":"inner",classes:"left-right"});return it.setStyle("margin-top",`${-oe.depth}em`),it.setStyle("height",`${oe.height+oe.depth}em`),this.caret&&(it.caret=this.caret),this.bind(ee,it.wrap(ee))}};function Fo(a,y,b,E,ee){if(a)for(let re=0;re<a.length;re++){const oe=a[re];oe.type==="middle"?(a[re]=y.bind(b,ni("inner",oe.value,E,ee,b,{isSelected:y.isSelected})),a[re].caret=oe.caret,a[re].isSelected=oe.isSelected,a[re].cssId=oe.cssId,a[re].htmlData=oe.htmlData,a[re].htmlStyle=oe.htmlStyle,a[re].attributes=oe.attributes,a[re].cssProperties=oe.cssProperties):oe.children&&Fo(oe.children,y,b,E,ee)}}var Mu=class Np extends pr{constructor(y,b){var E;super({type:"macro",command:y,style:b.style}),this.body=b.body,b.captureSelection===void 0?b.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=b.captureSelection,this.macroArgs=b.args,this.expand=(E=b.expand)!=null?E:!1}static fromJson(y){return new Np(y.command,y)}toJson(){const y=super.toJson();return this.expand&&(y.expand=!0),this.captureSelection!==void 0&&(y.captureSelection=this.captureSelection),this.macroArgs&&(y.args=this.macroArgs),y}_serialize(y){var b;return y.expandMacro&&this.expand?this.bodyToLatex(y):this.command+((b=this.macroArgs)!=null?b:"")}render(y){const b=pr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},sl=class Rp extends pr{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Rp}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},xl=class Fp extends pr{constructor(y,b,E=!1,ee,re){var oe;super({type:"prompt",mode:(oe=re==null?void 0:re.mode)!=null?oe:"math",style:re==null?void 0:re.style,command:"\\placeholder"}),this.body=ee,this.correctness=b,this.placeholderId=y,this.locked=E,this.captureSelection=this.locked}static fromJson(y){return new Fp(y.placeholderId,y.correctness,y.locked,y.body,y)}toJson(){const y=super.toJson();return this.placeholderId&&(y.placeholderId=this.placeholderId),this.body||delete y.body,this.body&&(y.body=this.body.filter(b=>b.type!=="first").map(b=>b.toJson())),this.correctness&&(y.correctness=this.correctness),y.locked=this.locked,y}render(y){const b=new Ia({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,re=E,oe=pr.createBox(y,this.body);if(!oe)return null;oe.height||(oe.height=b.metrics.xHeight),oe.setStyle("vertical-align",-oe.height,"em"),this.correctness==="correct"?oe.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&oe.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const pe=new Vr(oe,{type:"ord"});pe.setStyle("display","inline-block"),pe.setStyle("height",oe.height+oe.depth,"em"),pe.setStyle("vertical-align",-re,"em");let ge="ML__prompt ";this.locked?ge+=" ML__lockedPromptBox ":ge+=" ML__editablePromptBox ",this.correctness==="correct"?ge+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ge+=" ML__incorrectPromptBox "),this.containsCaret&&(ge+=" ML__focusedPromptBox ");const be=new Vr(null,{classes:ge,attributes:{part:"prompt"}});be.height=pe.height+re,be.depth=pe.depth+re,be.width=pe.width+2*ee,be.setStyle("box-sizing","border-box"),be.setStyle("position","absolute"),be.setStyle("height",pe.height+pe.depth+2*re,"em"),ee===0&&be.setStyle("width","100%"),ee!==0&&(be.setStyle("width",`calc(100% + ${2*ee}em)`),be.setStyle("top",E,"em"),be.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(be.width=3*ee,be.setStyle("width",`calc(100% + ${3*ee}em)`),be.setStyle("left",-1.5*ee,"em"));let Ae="";this.correctness==="incorrect"&&(Ae+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Ae&&(be.svgOverlay=Ae);const _e=new Vr([be,pe],{classes:"ML__prompt-atom"});return _e.setStyle("position","relative"),_e.setStyle("display","inline-block"),_e.setStyle("line-height",0),_e.height=pe.height+re+.2,_e.depth=pe.depth+re,_e.left=ee,_e.right=ee,_e.setStyle("height",pe.height+re,"em"),_e.setStyle("top",pe.depth-pe.height,"em"),_e.setStyle("vertical-align",pe.depth+re,"em"),_e.setStyle("margin-left",.5,"em"),_e.setStyle("margin-right",.5,"em"),this.caret&&(_e.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:_e}))}_serialize(y){var b;const E=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return E;let ee="\\placeholder";return this.placeholderId&&(ee+=`[${this.placeholderId}]`),this.correctness==="correct"?ee+="[correct]":this.correctness==="incorrect"&&(ee+="[incorrect]"),this.locked&&(ee+="[locked]"),uo(ee,E)}},Vs=class zp extends pr{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new zp(y);for(const E of sc)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new Ia({parent:y,isPhantom:!0}),ee=this.leftSibling,re=(b=ee.render(E))!=null?b:new Vr(null),oe=new Vr(null);return oe.height=re.height,oe.depth=re.depth,this.attachSupsub(y,{base:oe,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function Oo(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var Zl=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,re,oe;b!=null||(b={}),this.tokens=a,this.context=y instanceof Ia&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new Ia({from:y,mathstyle:b.mathstyle},b.style),this.args=(E=b.args)!=null?E:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(ee=b.style)!=null?ee:{},parseMode:(re=b.parseMode)!=null?re:"math",mathstyle:(oe=b.mathstyle)!=null?oe:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,re={parent:ee,mathlist:[],style:xe({},ee.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:ee.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:ee.mathstyle,tabular:(E=a==null?void 0:a.tabular)!=null?E:!1};this.parsingContext=re}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(xe({before:pl(this.tokens.slice(this.index,this.index+10)),after:pl(this.tokens.slice(Math.max(0,this.index-10),this.index))},a))}get mathlist(){return this.parsingContext.mathlist}set mathlist(a){this.parsingContext.mathlist=a}get parseMode(){return this.parsingContext.parseMode}set parseMode(a){this.parsingContext.parseMode=a}get tabularMode(){return this.parsingContext.tabular}get style(){let a=this.parsingContext;for(;a;){if(a.style)return xe({},a.style);a=a.parent}return{}}set style(a){this.parsingContext.style=a}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(a){return this.tokens[this.index]===a?(this.index++,!0):!1}lastSubsupAtom(){let a;return this.mathlist.length>0&&(a=this.mathlist[this.mathlist.length-1],a.type==="subsup"||a.subsupPlacement!==void 0)||(a=new Vs({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=It(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?Xo(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Gi({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(a){let y=this.tokens[this.index];for(;y&&y!==a;)y=this.tokens[++this.index];y===a&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(a){const y=this.index;let b=this.end(),E="";for(;!b;){const re=this.get();Oo(re)?(E+=re,b=this.end()||E.length>=a.length):b=!0}const ee=a.toUpperCase()===E.toUpperCase();return ee||(this.index=y),ee}scanString(){let a="";for(;!this.end();){const y=this.peek();if(y==="]")return a;if(y==="<space>")a+=" ";else if(y.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),a+=y.substring(1);else if(Oo(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const E=this.get();E==="<space>"?a+=" ":E==="<{>"?(a+="{",b+=1):E==="<}>"?(b-=1,b>0?a+="}":this.index-=1):E==="<$>"?a+="$":E==="<$$>"?a+="$$":a+=E,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const E=this.get();E==="<}>"?(b-=1,b>0&&(y+="}")):E==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(E)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[E])!=null?a:E)}return y}scanNumber(a=!0){var y,b;let E=!1,ee=this.peek();for(;ee==="<space>"||ee==="+"||ee==="-";)this.get(),ee==="-"&&(E=!E),ee=this.peek();a=!!a;let re=10,oe=/\d/;if(this.match("'"))re=8,oe=/[0-7]/,a=!0;else if(this.match('"'))re=16,oe=/[\dA-F]/,a=!0;else if(this.match("x"))re=16,oe=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ee=this.get(),ee?ee.length===2&&ee.startsWith("\\")?{number:(E?-1:1)*((y=ee.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(E?-1:1)*((b=ee.codePointAt(0))!=null?b:0),base:"alpha"}:null;let pe="";for(;this.hasPattern(oe);)pe+=this.get();if(!a&&(this.match(".")||this.match(",")))for(pe+=".";this.hasPattern(oe);)pe+=this.get();const ge=a?Number.parseInt(pe,re):Number.parseFloat(pe);return Number.isNaN(ge)?null:{number:E?-ge:ge,base:re===16?"hexadecimal":re===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let E=!1;if(b===null)for(;;){const re=this.peek();if(re==="-")E=!E;else if(re!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const re=this.get();return re.startsWith("\\")?b?{register:re,global:!0,factor:(E?-1:1)*b.number}:E?{register:re,global:!0,factor:-1}:{register:re,global:!0}:(this.index=y,null)}let ee=this.get();return ee!=null&&ee.startsWith("\\")?(ee=ee.substring(1),this.context.registers[ee]?!E||b!==null?{register:ee,factor:(E?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ee}:(this.index=y,null)):(this.index=y,null)}scanValue(){const a=this.scanRegister();if(a)return a;const y=this.index,b=this.scanGlueOrDimen();if(b&&("unit"in b||"glue"in b&&"unit"in b.glue))return b;this.index=y;const E=this.scanNumber();if(E)return E;if(this.end()||!Oo(this.peek()))return null;const ee=this.scanString();return ee.length>0?{string:ee}:null}scanDimen(){const a=this.scanNumber(!1);if(a===null)return null;const y=a.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let b;return this.matchKeyword("pt")?b="pt":this.matchKeyword("mm")?b="mm":this.matchKeyword("cm")?b="cm":this.matchKeyword("ex")?b="ex":this.matchKeyword("px")?b="px":this.matchKeyword("em")?b="em":this.matchKeyword("bp")?b="bp":this.matchKeyword("dd")?b="dd":this.matchKeyword("pc")?b="pc":this.matchKeyword("in")?b="in":this.matchKeyword("mu")&&(b="mu"),b?{dimension:y,unit:b}:{dimension:y}}scanGlueOrDimen(){const a=this.scanDimen();if(a===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return a;const y={glue:a};if(this.matchKeyword("plus")){const b=this.scanDimen();if(b)y.grow=b;else return y}if(this.skipWhitespace(),this.match("\\relax"))return y;if(this.skipWhitespace(),this.matchKeyword("minus")){const b=this.scanDimen();if(b)y.shrink=b;else return y}return!y.grow&&!y.shrink?a:y}scanColspec(){this.skipWhitespace();const a=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const y=this.get();y==="c"||y==="r"||y==="l"?a.push({align:y}):y==="|"?a.push({separator:"solid"}):y===":"?a.push({separator:"dashed"}):y==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),a.push({gap:this.scan(b=>b==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return a}scanModeSet(){let a;if(this.match("\\(")&&(a="textstyle"),!a&&this.match("\\[")&&(a="displaystyle"),!a)return null;this.beginContext({mode:"math",mathstyle:a});const y=this.scan(b=>b===(a==="displaystyle"?"\\]":"\\)"));return this.match(a==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanModeShift(){let a="";if(this.match("<$>")&&(a="<$>"),!a&&this.match("<$$>")&&(a="<$$>"),!a)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const y=this.scan(b=>b===a);return this.match(a)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanEnvironment(){if(!this.match("\\begin"))return null;const a=this.scanArgument("string");if(!a)return null;const y=ft(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const pe of y.params)if(pe.isOptional)b.push(this.scanOptionalArgument(pe.type));else{const ge=this.scanArgument(pe.type);ge||this.onError({code:"missing-argument",arg:a}),b.push(ge)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let re=[],oe=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),oe=!0),!oe&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),oe=!0),!oe)if(this.matchColumnSeparator())re.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){re.push(this.mathlist),this.mathlist=[];let pe=null;this.skipWhitespace(),this.match("[")&&(pe=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(pe!=null?pe:{dimension:0}),E.push(re),re=[]}else this.mathlist.push(...this.scan(pe=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(pe)));while(!oe);return re.push(this.mathlist),re.length>0&&E.push(re),this.endContext(),y.createAtom(a,E,ee,b)}scanExpression(){const a=this.mathlist;if(this.mathlist=[],this.parseExpression()){const y=this.mathlist;return this.mathlist=a,y}return this.mathlist=a,null}scan(a){this.beginContext(),a||(a=oe=>oe==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=It(y,"math"),b&&(E=this.scanArguments(b)[1]),ee=this.mathlist,this.mathlist=[]):this.parseExpression();let re;return y?(console.assert(!!b),E.unshift(this.mathlist),ee&&E.unshift(ee),re=[b.createAtom({command:y,args:E,style:this.style,mode:this.parseMode})]):re=this.mathlist,this.endContext(),re}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(E=>E==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new Yo(y,this.parseMode,this.style);return b.verbatimLatex=pl(this.tokens.slice(a,this.index)),b}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let a=1;for(;!this.end()&&a!==0;)this.match("(")&&(a+=1),this.match(")")&&(a-=1),a!==0&&this.parseExpression();const y=new ja("",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(!Oo(a)&&!a.startsWith("\\"))return null;this.next();const y=It(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 ys("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new ys("\\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 ys(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const E=this.mathlist;this.endContext();const ee=(a=this.scanDelim())!=null?a:".";return new ja(y==="\\right"?"left...right":"mleft...mright",E,{leftDelim:b,rightDelim:ee,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let a=this.peek();if(a!=="^"&&a!=="_"&&a!=="'")return!1;const y=this.lastSubsupAtom();for(;a==="^"||a==="_"||a==="'";)this.match("'")?this.match("'")?y.addChild(new pr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new pr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(dt(this.scanArgument("expression")),a==="_"?"subscript":"superscript"),a=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const a=this.match("\\limits"),y=!a&&this.match("\\nolimits"),b=!y&&!a&&this.match("\\displaylimits");if(!a&&!y&&!b)return!1;const E=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return E===null?!1:(E.explicitSubsupPlacement=!0,a&&(E.subsupPlacement="over-under"),y&&(E.subsupPlacement="adjacent"),b&&(E.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let E=a.infix?2:0;for(;E<a.params.length;){const ee=a.params[E];ee.type==="rest"?b.push(this.scan(re=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(re))):ee.isOptional?b.push(this.scanOptionalArgument(ee.type)):ee.type.endsWith("*")?y=ee.type.slice(0,-1):b.push(this.scanArgument(ee.type)),E+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(Oo(a)){const b=Ss.createAtom(this.parseMode,a,xe({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=It(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new ys(a)];if(b.definitionType==="symbol"){const E=xe({},this.style);b.variant&&(E.variant=b.variant),y=new pr({type:b.type,command:a,style:E,value:String.fromCodePoint(b.codepoint),mode:this.parseMode,verbatimLatex:a})}else{if(b.applyMode||b.applyStyle||b.infix)return this.onError({code:"invalid-command",arg:a}),[new ys(a)];b.createAtom&&(y=b.createAtom({command:a,args:[],style:this.style,mode:this.parseMode}))}}return y?[y]:null}scanArgument(a){var y;this.skipFiller();const b=this.parseMode;if(a==="auto"&&(a=b),!this.match("<{>")){if(a==="string")return this.scanString();if(a==="value")return this.scanValue();if(a==="delim")return(y=this.scanDelim())!=null?y:".";if(a==="expression")return this.scanExpression();if(a==="math"){a!==b&&this.beginContext({mode:"math"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}return a==="balanced-string"||console.assert(!1),null}if(a==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}let E=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}return a==="string"?E=this.scanString():a==="balanced-string"?E=this.scanBalancedString():a==="colspec"?E=this.scanColspec():a==="value"&&(E=this.scanValue()),this.skipUntilToken("<}>"),E}scanOptionalArgument(a){if(a=a==="auto"?this.parseMode:a,this.skipFiller(),!this.match("["))return null;let y=null;for(;!this.end()&&!this.match("]");)if(a==="string")y=this.scanString();else if(a==="value")y=this.scanValue();else if(a==="colspec")y=this.scanColspec();else if(a==="bbox"){const b={},E=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ee of E){const re=ee.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(re)b.padding={dimension:parseInt(re[1]),unit:re[2]};else{const oe=ee.match(/^\s*border\s*:\s*(.*)/);oe?b.border=oe[1]:b.backgroundcolor={string:ee}}}y=b}else a==="math"&&(this.beginContext({mode:"math"}),y=this.mathlist.concat(this.scan(b=>b==="]")),this.endContext());return y}scanSymbolOrCommand(a){var y,b,E;if(a==="\\placeholder"){const pe=this.scanOptionalArgument("string"),ge=this.scanOptionalArgument("math"),be=pr.serialize(ge,{defaultMode:"math"});let Ae=[],_e;!_e&&be==="correct"?_e="correct":!_e&&be==="incorrect"?_e="incorrect":be!==""&&(Ae=ge);const it=this.scanOptionalArgument("string")==="locked",Pt=this.scanArgument("auto");let Ut;return Pt&&Array.isArray(Pt)&&Pt.length>0?Ut=Pt:Pt&&typeof Pt=="object"&&"group"in Pt?Ut=Pt.group:Ut=Ae,pe?[new xl(pe,_e,it,Ut!=null?Ut:Ae,{mode:this.parseMode,style:this.style})]:[new Gi({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const pe=this.index,ge=this.scanLiteralGroup()||this.next();if(!ge)return null;if(this.context.registers[ge.substring(1)]){const be=this.scanArgument("string");be!==null&&(this.context.registers[ge.substring(1)]=be);const Ae=ba([a,pl(this.tokens.slice(pe,this.index))]);return[new pr({type:"text",value:"",verbatimLatex:Ae})]}}let ee=this.scanMacro(a);if(ee)return[ee];const re=It(a,this.parseMode);if(!re)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(pe=>new pr({type:"text",value:pe,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new ys(a)]);const oe=this.index;if(re.definitionType==="symbol"){const pe=xe({},this.style);re.variant&&(pe.variant=re.variant),ee=new pr({type:re.type,command:a,style:pe,value:String.fromCodePoint(re.codepoint),mode:this.parseMode})}else{if(re.ifMode&&!re.ifMode.includes(this.parseMode))return[];const pe=this.parseMode;re.applyMode&&(this.parseMode=re.applyMode);let ge,be=[];if(re.parse?be=re.parse(this):[ge,be]=this.scanArguments(re),this.parseMode=pe,re.applyMode&&!re.applyStyle&&!re.createAtom)return dt(be[0]);if(re.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof re.createAtom=="function")ee=re.createAtom({command:a,args:be,style:this.style,mode:this.parseMode}),ge&&(ee.body=dt(this.scanArgument(ge)));else if(typeof re.applyStyle=="function"){const Ae=xe(xe({},this.style),re.applyStyle(a,be,this.context)),_e=this.parseMode;if(re.applyMode&&(this.parseMode=re.applyMode),ge){const it=this.style;this.style=Ae;const Pt=this.scanArgument(ge);return this.style=it,this.parseMode=_e,dt(Pt)}this.style=Ae}else ee=new pr({type:"mord",command:(b=re.command)!=null?b:a,style:xe({},this.style),value:a,mode:(E=re.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof pr&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const pe=ba([a,pl(this.tokens.slice(oe,this.index))]);pe&&(ee.verbatimLatex=pe)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const pe=this.scanSmartFence();if(pe)return[ee,pe]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(Oo(a)){const y=Ss.createAtom(this.parseMode,a,xe({},this.style));if(!y)return null;if(y.isFunction&&this.smartFence){const b=this.scanSmartFence();if(b)return[y,b]}return[y]}return a.startsWith("\\")?this.scanSymbolOrCommand(a):a==="<space>"?this.parseMode==="text"?[new al(" "," ",this.style)]:null:(a==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:a}),null)}scanMacro(a){var y;const b=this.context.getMacro(a);if(!b)return null;const E=this.index,ee=b.args,re={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let oe=1;oe<=ee;oe++){let pe=this.scanLiteralGroup();if(!pe){const ge=this.index;this.scanExpression(),pe=pl(this.tokens.slice(ge,this.index))}re[oe]=pe}return new Mu(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:pl(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:Xo(b.def,{context:this.context,parseMode:this.parseMode,args:oe=>re[oe],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,E;let ee=(E=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?E:this.scanLeftRight();if(ee===null){if(this.parseSupSub()||this.parseLimits())return!0;ee=this.scanSymbolCommandOrLiteral()}return ee?(Array.isArray(ee)?this.mathlist.push(...ee):this.mathlist.push(ee),!0):!1}};function Xo(a,y){var b,E,ee,re;const oe=(b=y==null?void 0:y.args)!=null?b:void 0,pe=new Zl(nl(a,oe),y==null?void 0:y.context,{args:oe,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ee=y==null?void 0:y.parseMode)!=null?ee:"math",style:(re=y==null?void 0:y.style)!=null?re:{}}),ge=[];for(;!pe.end();)ge.push(...pe.scan(()=>!1));return ge}function t0(a,y){var b;const E=new Zl(nl(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!E.end();)E.scan();return E.errors}var n0=class _p extends pr{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=vo.go(Kr.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Xo(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new _p(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return me(xe({},super.toJson()),{arg:this.arg})}render(y){const b=pr.createBox(y,this.body,{type:"inner"});return this.caret&&(b.caret=this.caret),this.bind(y,b)}_serialize(y){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};Lt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var Kr={go:function(a,y){if(!a)return[];y===void 0&&(y="ce");var b="0",E={};E.parenthesisLevel=0,a=a.replace(/\n/g," "),a=a.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),a=a.replace(/[\u2026]/g,"...");for(var ee,re=10,oe=[];;){ee!==a?(re=10,ee=a):re--;var pe=Kr.stateMachines[y],ge=pe.transitions[b]||pe.transitions["*"];e:for(var be=0;be<ge.length;be++){var Ae=Kr.patterns.match_(ge[be].pattern,a);if(Ae){for(var _e=ge[be].task,it=0;it<_e.action_.length;it++){var Pt;if(pe.actions[_e.action_[it].type_])Pt=pe.actions[_e.action_[it].type_](E,Ae.match_,_e.action_[it].option);else if(Kr.actions[_e.action_[it].type_])Pt=Kr.actions[_e.action_[it].type_](E,Ae.match_,_e.action_[it].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+_e.action_[it].type_+")"];Kr.concatArray(oe,Pt)}if(b=_e.nextState||b,a.length>0){if(_e.revisit||(a=Ae.remainder),!_e.toContinue)break e}else return oe}}if(re<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(a,y){if(y)if(Object.prototype.toString.call(y)==="[object Array]")for(var b=0;b<y.length;b++)a.push(y[b]);else a.push(y)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"(-)(9)^(-9)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"state of aggregation $":function(a){var y=Kr.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 Kr.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return Kr.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return Kr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return Kr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return Kr.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return Kr.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return Kr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return Kr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return Kr.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return Kr.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return Kr.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return Kr.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return Kr.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 Kr.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return Kr.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return Kr.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return Kr.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 Kr.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return Kr.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return Kr.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return Kr.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return Kr.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return Kr.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return Kr.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return Kr.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=Kr.patterns.findObserveGroups(a,"","$","$","");return b&&(y=b.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),y)?{match_:y[0],remainder:a.substr(y[0].length)}:null},amount2:function(a){return this.amount(a)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(a){if(a.match(/^\([a-z]+\)$/))return null;var y=a.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return y?{match_:y[0],remainder:a.substr(y[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(a,y,b,E,ee,re,oe,pe,ge,be){var Ae=function(Zn,Mr){if(typeof Mr=="string")return Zn.indexOf(Mr)!==0?null:Mr;var Gr=Zn.match(Mr);return Gr?Gr[0]:null},_e=function(Zn,Mr,Gr){for(var Tr=0;Mr<Zn.length;){var bi=Zn.charAt(Mr),Zi=Ae(Zn.substr(Mr),Gr);if(Zi!==null&&Tr===0)return{endMatchBegin:Mr,endMatchEnd:Mr+Zi.length};if(bi==="{")Tr++;else if(bi==="}"){if(Tr===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];Tr--}Mr++}return Tr>0,null},it=Ae(a,y);if(it===null||(a=a.substr(it.length),it=Ae(a,b),it===null))return null;var Pt=_e(a,it.length,E||ee);if(Pt===null)return null;var Ut=a.substring(0,E?Pt.endMatchEnd:Pt.endMatchBegin);if(re||oe){var Jn=this.findObserveGroups(a.substr(Pt.endMatchEnd),re,oe,pe,ge);if(Jn===null)return null;var Ur=[Ut,Jn.match_];return{match_:be?Ur.join(""):Ur,remainder:Jn.remainder}}else return{match_:Ut,remainder:a.substr(Pt.endMatchEnd)}},match_:function(a,y){var b=Kr.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return Kr.patterns.patterns[a](y);var E=y.match(b);if(E){var ee;return E[2]?ee=[E[1],E[2]]:E[1]?ee=E[1]:ee=E[0],{match_:ee,remainder:y.substr(E[0].length)}}return null}},actions:{"a=":function(a,y){a.a=(a.a||"")+y},"b=":function(a,y){a.b=(a.b||"")+y},"p=":function(a,y){a.p=(a.p||"")+y},"o=":function(a,y){a.o=(a.o||"")+y},"q=":function(a,y){a.q=(a.q||"")+y},"d=":function(a,y){a.d=(a.d||"")+y},"rm=":function(a,y){a.rm=(a.rm||"")+y},"text=":function(a,y){a.text_=(a.text_||"")+y},insert:function(a,y,b){return{type_:b}},"insert+p1":function(a,y,b){return{type_:b,p1:y}},"insert+p1+p2":function(a,y,b){return{type_:b,p1:y[0],p2:y[1]}},copy:function(a,y){return y},rm:function(a,y){return{type_:"rm",p1:y||""}},text:function(a,y){return Kr.go(y,"text")},"{text}":function(a,y){var b=["{"];return Kr.concatArray(b,Kr.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return Kr.go(y,"tex-math")},"tex-math tight":function(a,y){return Kr.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 Kr.go(y)},"1/2":function(a,y){var b=[];y.match(/^[+\-]/)&&(b.push(y.substr(0,1)),y=y.substr(1));var E=y.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return E[1]=E[1].replace(/\$/g,""),b.push({type_:"frac",p1:E[1],p2:E[2]}),E[3]&&(E[3]=E[3].replace(/\$/g,""),b.push({type_:"tex-math",p1:E[3]})),b},"9,9":function(a,y){return Kr.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ee,re={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ee=0;ee<E.length;ee++)re[E[ee]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ee=0;ee<E.length;ee++){var oe=a[y][b];if(oe.action_){oe.action_=[].concat(oe.action_);for(var pe=0;pe<oe.action_.length;pe++)typeof oe.action_[pe]=="string"&&(oe.action_[pe]={type_:oe.action_[pe]})}else oe.action_=[];for(var ge=y.split("|"),be=0;be<ge.length;be++)if(E[ee]==="*")for(var Ae in re)re[Ae].push({pattern:ge[be],task:oe});else re[E[ee]].push({pattern:ge[be],task:oe})}return re},stateMachines:{}};Kr.stateMachines={ce:{transitions:Kr.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(a,y){var b;if((a.d||"").match(/^[0-9]+$/)){var E=a.d;a.d=void 0,b=this.output(a),a.b=E}else b=this.output(a);return Kr.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 Kr.concatArray(b,this.output(a)),Kr.concatArray(b,Kr.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=Kr.patterns.match_("orbital",a.o||""),ee=Kr.patterns.match_("one lowercase greek letter $",a.o||""),re=Kr.patterns.match_("one lowercase latin letter $",a.o||""),oe=Kr.patterns.match_("$one lowercase latin letter$ $",a.o||""),pe=y==="-"&&(E&&E.remainder===""||ee||re||oe);pe&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&re&&(a.o="$"+a.o+"$");var ge=[];return pe?(Kr.concatArray(ge,this.output(a)),ge.push({type_:"hyphen"})):(E=Kr.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(Kr.concatArray(ge,Kr.actions["d="](a,y)),Kr.concatArray(ge,this.output(a))):(Kr.concatArray(ge,this.output(a)),Kr.concatArray(ge,Kr.actions.bond(a,y,"-")))),ge},"a to o":function(a){a.o=a.a,a.a=void 0},"sb=true":function(a){a.sb=!0},"sb=false":function(a){a.sb=!1},"beginsWithBond=true":function(a){a.beginsWithBond=!0},"beginsWithBond=false":function(a){a.beginsWithBond=!1},"parenthesisLevel++":function(a){a.parenthesisLevel++},"parenthesisLevel--":function(a){a.parenthesisLevel--},"state of aggregation":function(a,y){return{type_:"state of aggregation",p1:Kr.go(y,"o")}},comma:function(a,y){var b=y.replace(/\s*$/,""),E=b!==y;return E&&a.parenthesisLevel===0?{type_:"comma enumeration L",p1:b}:{type_:"comma enumeration M",p1:b}},output:function(a,y,b){var E;if(!a.r)E=[],!a.a&&!a.b&&!a.p&&!a.o&&!a.q&&!a.d&&!b||(a.sb&&E.push({type_:"entitySkip"}),!a.o&&!a.q&&!a.d&&!a.b&&!a.p&&b!==2?(a.o=a.a,a.a=void 0):!a.o&&!a.q&&!a.d&&(a.b||a.p)?(a.o=a.a,a.d=a.b,a.q=a.p,a.a=a.b=a.p=void 0):a.o&&a.dType==="kv"&&Kr.patterns.match_("d-oxidation$",a.d||"")?a.dType="oxidation":a.o&&a.dType==="kv"&&!a.q&&(a.dType=void 0),E.push({type_:"chemfive",a:Kr.go(a.a,"a"),b:Kr.go(a.b,"bd"),p:Kr.go(a.p,"pq"),o:Kr.go(a.o,"o"),q:Kr.go(a.q,"pq"),d:Kr.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=Kr.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=Kr.go(a.rd);var re;a.rqt==="M"?re=Kr.go(a.rq,"tex-math"):a.rqt==="T"?re=[{type_:"text",p1:a.rq||""}]:re=Kr.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:re}}for(var oe in a)oe!=="parenthesisLevel"&&oe!=="beginsWithBond"&&delete a[oe];return E},"oxidation-output":function(a,y){var b=["{"];return Kr.concatArray(b,Kr.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:Kr.go(y[0]),p2:Kr.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:Kr.go(y[0]),p2:Kr.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:Kr.go(y[0]),p2:Kr.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:Kr.go(y[0]),p2:Kr.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Kr.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:Kr.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:Kr.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:Kr.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:Kr.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:Kr.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Kr.go(y[1],"pq")}}}},bd:{transitions:Kr.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:Kr.go(y[1],"bd")}}}},oxidation:{transitions:Kr.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:Kr.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:Kr.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:Kr.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Kr.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]&&(Kr.concatArray(b,Kr.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?Kr.concatArray(b,Kr.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]),Kr.concatArray(b,Kr.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=Kr.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=Kr.patterns.match_("{(...)}",a.q||"");if(E&&E.remainder===""&&(a.q=E.match_),a.d&&(a.d=a.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.d=a.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),a.q){a.q=a.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.q=a.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var ee={d:Kr.go(a.d,"pu"),q:Kr.go(a.q,"pu")};a.o==="//"?y={type_:"pu-frac",p1:ee.d,p2:ee.q}:(y=ee.d,ee.d.length>1||ee.q.length>1?y.push({type_:" / "}):y.push({type_:"/"}),Kr.concatArray(y,ee.q))}else y=Kr.go(a.d,"pu-2");for(var re in a)delete a[re];return y}}},"pu-2":{transitions:Kr.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=Kr.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=Kr.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:Kr.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){var b=a.text_.length%3;b===0&&(b=3);for(var E=a.text_.length-3;E>0;E-=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(0,b)),y.reverse()}else y.push(a.text_);for(var ee in a)delete a[ee];return y},"output-o":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){for(var b=a.text_.length-3,E=0;E<b;E+=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(E))}else y.push(a.text_);for(var ee in a)delete a[ee];return y}}}};var vo={go:function(a,y){if(!a)return"";for(var b="",E=!1,ee=0;ee<a.length;ee++){var re=a[ee];typeof re=="string"?b+=re:(b+=vo._go2(re),re.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&vo.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:vo._goInner(a.a),b:vo._goInner(a.b),p:vo._goInner(a.p),o:vo._goInner(a.o),q:vo._goInner(a.q),d:vo._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 "+vo._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+vo._goInner(a.p1);break;case"bond":if(y=vo._getBond(a.kind_),!y)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+a.kind_+")"];break;case"frac":var E="\\frac{"+a.p1+"}{"+a.p2+"}";y="\\mathchoice{\\textstyle"+E+"}{"+E+"}{"+E+"}{"+E+"}";break;case"pu-frac":var ee="\\frac{"+vo._goInner(a.p1)+"}{"+vo._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+vo._goInner(a.p1)+"}{"+vo._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+vo._goInner(a.p1)+"}{"+vo._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+vo._goInner(a.p1)+"}{"+vo._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+vo._goInner(a.p1)+"}_{"+vo._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+vo._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var re={rd:vo._goInner(a.rd),rq:vo._goInner(a.rq)},oe=vo._getArrow(a.r);re.rd||re.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(oe="\\long"+oe,re.rd&&(oe="\\overset{"+re.rd+"}{"+oe+"}"),re.rq&&(a.r==="<-->"?oe="\\underset{\\lower2mu{"+re.rq+"}}{"+oe+"}":oe="\\underset{\\lower6mu{"+re.rq+"}}{"+oe+"}"),oe=" {}\\mathrel{"+oe+"}{} "):(re.rq&&(oe+="[{"+re.rq+"}]"),oe+="{"+re.rd+"}",oe=" {}\\mathrel{\\x"+oe+"}{} "):oe=" {}\\mathrel{\\long"+oe+"}{} ",y=oe;break;case"operator":y=vo._getOperator(a.kind_);break;case"1st-level escape":y=a.p1+" ";break;case"space":y=" ";break;case"entitySkip":y="~";break;case"pu-space-1":y="~";break;case"pu-space-2":y="\\mkern3mu ";break;case"1000 separator":y="\\mkern2mu ";break;case"commaDecimal":y="{,}";break;case"comma enumeration L":y="{"+a.p1+"}\\mkern6mu ";break;case"comma enumeration M":y="{"+a.p1+"}\\mkern3mu ";break;case"comma enumeration S":y="{"+a.p1+"}\\mkern1mu ";break;case"hyphen":y="\\text{-}";break;case"addition compound":y="\\,{\\cdot}\\,";break;case"electron dot":y="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":y="{\\times}";break;case"prime":y="\\prime ";break;case"cdot":y="\\cdot ";break;case"tight cdot":y="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":y="\\times ";break;case"circa":y="{\\sim}";break;case"^":y="uparrow";break;case"v":y="downarrow";break;case"ellipsis":y="\\ldots ";break;case"/":y="/";break;case" / ":y="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return y},_getArrow:function(a){switch(a){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(a){switch(a){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(a){switch(a){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function M1(a){}function A1(a){}var r0=class Hp extends pr{constructor(y){super(me(xe({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Hp(y)}toJson(){return me(xe({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new Vr(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=It(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):uo(this.command,this.value)}},i0=class Kp extends pr{constructor(y){super(me(xe({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return me(xe({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=On(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=It(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):uo(this.command,this.value)}},bd=class Wp extends pr{constructor(y,b,E,ee){var re,oe;super({type:"enclose",command:y,style:ee.style}),this.body=b,this.backgroundcolor=ee.backgroundcolor,E.updiagonalarrow&&(E.updiagonalstrike=!1),E.box&&(E.left=!1,E.right=!1,E.bottom=!1,E.top=!1),this.notation=E,this.shadow=(re=ee.shadow)!=null?re:"none",this.strokeWidth=(oe=ee.strokeWidth)!=null?oe:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ee.strokeStyle,this.svgStrokeStyle=ee.svgStrokeStyle,this.strokeColor=ee.strokeColor,this.borderStyle=ee.borderStyle,this.padding=ee.padding,this.captureSelection=!1}static fromJson(y){return new Wp(y.command,y.body,y.notation,y)}toJson(){return me(xe({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(y){var b;if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const E=It(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);let ee=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ee+="{"+Object.keys(this.notation).join(" ")+"}";let re="",oe="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(re+=oe+'mathbackground="'+this.backgroundcolor+'"',oe=","),this.shadow&&this.shadow!=="auto"&&(re+=oe+'shadow="'+this.shadow+'"',oe=","),this.strokeWidth||this.strokeStyle!=="solid"?(re+=oe+this.borderStyle,oe=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(re+=oe+'mathcolor="'+this.strokeColor+'"',oe=","),re&&(ee+=`[${re}]`)}return uo(ee,this.bodyToLatex(y))}render(y){const b=new Ia({parent:y},this.style),E=pr.createBox(b,this.body);if(!E)return null;const ee=im(this.borderStyle),re=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});E.setStyle("position","relative"),E.setStyle("display","inline-block"),E.setStyle("top",re,"em"),E.setStyle("height",E.height+E.depth,"em"),E.setStyle("width",E.width,"em");const oe=new Vr(null,{classes:"ML__notation"});let pe=E.height+E.depth+2*re;const ge=E.width+2*re;let be="";if(this.notation.horizontalstrike&&(be+=this.line(3,50,97,50)),this.notation.verticalstrike&&(be+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(be+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(be+=this.line(3,3,97,97)),this.notation.updiagonalarrow){be+=this.line(re.toString(),(re+E.depth+E.height).toString(),(re+E.width).toString(),re.toString());const Ut=.03*Math.sqrt(ge*ge+pe*pe)*1,Jn=E.width*Ut,Ur=(E.depth+E.height)*Ut,Zn=re+E.width;let Mr=re;Mr+Ur-.4*Jn<0&&(Mr=.4*Jn-Ur),be+='<polygon points="',be+=`${Zn},${Mr} ${Zn-Jn-.4*Ur},${Mr+Ur-.4*Jn} `,be+=`${Zn-.7*Jn},${Mr+.7*Ur} ${Zn-Jn+.4*Ur},${Mr+Ur+.4*Jn} `,be+=`${Zn},${Mr}`,be+=`" stroke='none' fill="${this.strokeColor}"`,be+="/>"}let Ae=0;if(this.notation.phasorangle){const it=a0(b),Pt=(E.height+E.depth+2*it+re).toString(),Ut=(E.height+E.depth)/2;be+=this.line(re.toString(),Pt,(re+Ut+E.width).toString(),Pt),be+=this.line(re.toString(),Pt,(re+Ut).toString(),(re-it).toString()),pe+=it,Ae=Ut,E.left+=pe/2-re}if(this.notation.longdiv){const it=a0(b);pe+=it,be+=this.line(re.toString(),re.toString(),(re+E.width).toString(),re.toString());const Pt=.3;Ae=Pt+it,E.left+=Pt+it,E.setTop(re+it),be+='<path d="',be+=`M ${re} ${re} a${Pt} ${(E.depth+E.height+2*it)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*it} "`,be+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,be+="/>"}if(oe.width=E.width+2*re+Ae,oe.height=E.height+re,oe.depth=E.depth+re,oe.setStyle("box-sizing","border-box"),oe.setStyle("left",`calc(-${ee} / 2 )`),oe.setStyle("height",`${Math.floor(100*pe)/100}em`),oe.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&oe.setStyle("background-color",this.backgroundcolor),this.notation.box&&oe.setStyle("border","1px solid red"),this.notation.actuarial&&(oe.setStyle("border-top",this.borderStyle),oe.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(oe.setStyle("border-bottom",this.borderStyle),oe.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(oe.setStyle("border-radius","8px"),oe.setStyle("border",this.borderStyle)),this.notation.circle&&(oe.setStyle("border-radius","50%"),oe.setStyle("border",this.borderStyle)),this.notation.top&&oe.setStyle("border-top",this.borderStyle),this.notation.left&&oe.setStyle("border-left",this.borderStyle),this.notation.right&&oe.setStyle("border-right",this.borderStyle),this.notation.bottom&&oe.setStyle("border-bottom",this.borderStyle),be){let it="";this.shadow==="auto"&&(it+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(it+=`filter: drop-shadow(${this.shadow})`),it+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,it+=' stroke-linecap="round"',this.svgStrokeStyle&&(it+=` stroke-dasharray="${this.svgStrokeStyle}"`),oe.svgStyle=it,oe.svgOverlay=be}const _e=new Vr([oe,E]);return _e.setStyle("position","relative"),_e.setStyle("vertical-align",re,"em"),_e.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*re))/100}em`),_e.setStyle("display","inline-block"),_e.height=oe.height,_e.depth=oe.depth,_e.width=oe.width-2*re,_e.left=re,_e.right=re,this.caret&&(_e.caret=this.caret),_e.wrap(b)}line(y,b,E,ee){return`<line x1="${bf(y)}" y1="${bf(b)}" x2="${bf(E)}" y2="${bf(ee)}" vector-effect="non-scaling-stroke"></line>`}};function bf(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function im(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function am(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function a0(a){const y=a.isDisplayStyle?el:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var Au=class jp extends pr{constructor(y,b,E){var ee,re;super(me(xe({},E),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ee=E==null?void 0:E.hasBarLine)!=null?ee:!0,this.continuousFraction=(re=E==null?void 0:E.continuousFraction)!=null?re:!1,this.numerPrefix=E==null?void 0:E.numerPrefix,this.denomPrefix=E==null?void 0:E.denomPrefix,this.mathstyleName=E==null?void 0:E.mathstyleName,this.leftDelim=E==null?void 0:E.leftDelim,this.rightDelim=E==null?void 0:E.rightDelim,this.fractionNavigationOrder=E==null?void 0:E.fractionNavigationOrder}static fromJson(y){return new jp(y.above,y.below,y)}toJson(){const y={};return this.continuousFraction&&(y.continuousFraction=!0),this.numerPrefix&&(y.numerPrefix=this.numerPrefix),this.denomPrefix&&(y.denomPrefix=this.denomPrefix),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),this.hasBarLine||(y.hasBarLine=!1),this.mathstyleName&&(y.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(y.fractionNavigationOrder=this.fractionNavigationOrder),xe(xe({},super.toJson()),y)}get children(){if(this._children)return this._children;const y=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const b of this.below)y.push(...b.children),y.push(b);for(const b of this.above)y.push(...b.children),y.push(b)}else{for(const b of this.above)y.push(...b.children),y.push(b);for(const b of this.below)y.push(...b.children),y.push(b)}return this._children=y,y}render(y){var b,E;const ee=new Ia({parent:y,mathstyle:this.mathstyleName},this.style),re=ee.metrics,oe=new Ia({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),pe=this.numerPrefix?new Vr([new Vr(this.numerPrefix),pr.createBox(oe,this.above)],{isTight:oe.isTight,type:"ignore"}):(b=pr.createBox(oe,this.above,{type:"ignore"}))!=null?b:new Vr(null,{type:"ignore"}),ge=new Ia({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),be=this.denomPrefix?new Vr([new Vr(this.denomPrefix),pr.createBox(ge,this.below,{type:"ignore"})]):(E=pr.createBox(ge,this.below,{type:"ignore"}))!=null?E:new Vr(null,{type:"ignore"}),Ae=this.hasBarLine?re.defaultRuleThickness:0;let _e,it=0,Pt;ee.isDisplayStyle?(_e=oe.metrics.num1,it=Ae>0?3*Ae:7*Ae,Pt=ge.metrics.denom1):(Ae>0?(_e=oe.metrics.num2,it=Ae):(_e=oe.metrics.num3,it=3*re.defaultRuleThickness),Pt=ge.metrics.denom2);const Ut=[];this.isSelected&&Ut.push("ML__selected");const Jn=pe.depth,Ur=be.height;let Zn;if(Ae<=0){const Ii=_e-Jn-(Ur-Pt);Ii<it&&(_e+=(it-Ii)/2,Pt+=(it-Ii)/2),Zn=new $a({individualShift:[{box:pe,shift:-_e,classes:[...Ut,"ML__center"]},{box:be,shift:Pt,classes:[...Ut,"ML__center"]}]}).wrap(ee)}else{const Ii=new Vr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Ii.softWidth=Math.max(pe.width,be.width),Ii.height=Ae/2,Ii.depth=Ae/2;const Ra=os+Ae/2;_e<it+Jn+Ra&&(_e=it+Jn+Ra);const Ja=os-Ae/2;Pt<it+Ur-Ja&&(Pt=it+Ur-Ja),Zn=new $a({individualShift:[{box:be,shift:Pt,classes:[...Ut,"ML__center"]},{box:Ii,shift:-Ja,classes:Ut},{box:pe,shift:-_e,classes:[...Ut,"ML__center"]}]}).wrap(ee)}const Mr=ee.isDisplayStyle?re.delim1:re.delim2,Gr=this.leftDelim?this.bind(y,mi("open",this.leftDelim,Mr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):gi(ee,"open");let Tr=null;this.continuousFraction?Tr=new Vr(null,{type:"close"}):this.rightDelim?Tr=this.bind(y,mi("close",this.rightDelim,Mr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Tr=gi(ee,"close");const bi=new Vr([Gr,Zn,Tr],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),Zi=this.bind(y,bi);return this.caret&&(Zi.caret=this.caret),this.attachSupsub(y,{base:Zi})}},ns=class Zp extends pr{constructor(y,b){var E;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(E=b==null?void 0:b.isSuggestion)!=null?E:!1,this.isError=!1}static fromJson(y){const b=new Zp(y.value);return y.isSuggestion&&(b.isSuggestion=!0),y.isError&&(b.isError=!0),b}toJson(){const y={};return this.isSuggestion&&(y.isSuggestion=!0),this.isError&&(y.isError=!0),xe({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new Vr(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},xd=class Up extends pr{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new ns(b)),this.skipBoundary=!1}static fromJson(y){return new Up("")}toJson(){return super.toJson()}render(y){const b=pr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,E;return(E=(b=this.body)==null?void 0:b.map(ee=>ee.value).join(""))!=null?E:""}},fh=class Vp extends pr{constructor(y,b){super(me(xe({},b),{type:"extensible-symbol",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new Vp(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.value&&(y.symbol=this.value),y}render(y){var b;const E=y.isDisplayStyle&&this.value!=="\\smallint",ee=new Vr(this.value,{fontFamily:E?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(E?"large-op":"small-op"),type:"op",maxFontSize:y.scalingFactor,isSelected:this.isSelected});if(!ee)return null;ee.right=ee.italic;const re=(ee.height-ee.depth)/2-os*y.scalingFactor,oe=ee.italic;ee.setTop(re);let pe=ee;if(this.superscript||this.subscript){const ge=(b=this.subsupPlacement)!=null?b:"auto";pe=ge==="over-under"||ge==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:re,slant:oe}):this.attachSupsub(y,{base:ee})}return new Vr(this.bind(y,pe),{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=It(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[];return E.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),ba(E)}},Nc=class Gp extends pr{constructor(y){const b=y.body;super(me(xe({},y),{type:"overlap",body:typeof b=="string"?[new pr({value:b})]:b,style:y==null?void 0:y.style})),this.skipBoundary=!0,this.align=y==null?void 0:y.align,this.boxType=y==null?void 0:y.boxType}static fromJson(y){return new Gp(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),xe(xe({},super.toJson()),y)}render(y){const b=pr.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new Vr([b,new Vr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Gs=class Yp extends pr{constructor(y){var b,E,ee,re;super({type:"overunder",command:y.command,style:y.style,mode:y.mode,body:y.body,skipBoundary:(b=y.skipBoundary)!=null?b:!0}),this.subsupPlacement=y.supsubPlacement,this.svgAbove=y.svgAbove,this.svgBelow=y.svgBelow,this.svgBody=y.svgBody,this.above=y.above,this.below=y.below,this.boxType=(E=y.boxType)!=null?E:"ord",this.paddedBody=(ee=y.paddedBody)!=null?ee:!1,this.paddedLabels=(re=y.paddedLabels)!=null?re:!1}static fromJson(y){return new Yp(y)}toJson(){const y=super.toJson();return this.skipBoundary||(y.skipBoundary=!1),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.svgAbove&&(y.svgAbove=this.svgAbove),this.svgBelow&&(y.svgBelow=this.svgBelow),this.svgBody&&(y.svgBody=this.svgBody),this.boxType!=="ord"&&(y.boxType=this.boxType),this.paddedBody&&(y.paddedBody=!0),this.paddedLabels&&(y.paddedLabels=!0),y}render(y){let b=this.svgBody?Ps(this.svgBody):pr.createBox(y,this.body,{type:"ignore"});const E=new Ia({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=Ps(this.svgAbove):this.above&&(ee=pr.createBox(E,this.above,{type:"ignore"}));let re=null;this.svgBelow?re=Ps(this.svgBelow):this.below&&(re=pr.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new Vr([gi(y,"open"),b,gi(y,"close")],{type:"ignore"}));let oe=om(y,{base:b,above:ee,below:re,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return oe?(this.subsupPlacement==="over-under"?oe=this.attachLimits(y,{base:oe,type:oe.type}):oe=this.attachSupsub(y,{base:oe}),this.caret&&(oe.caret=this.caret),this.bind(y,oe)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const pe=new Vr(y.base,{type:y.type});return pe.setStyle("position","relative"),pe}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,re=0,oe=["ML__center"];if(y.paddedAboveBelow&&oe.push("ML__label_padding"),y.below&&y.above){const pe=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+re;E=new $a({bottom:pe,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:oe},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:oe},a.metrics.bigOpSpacing5]})}else y.below?E=new $a({top:ee.height-re,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:oe},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new $a({bottom:ee.depth+re,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:oe},a.metrics.bigOpSpacing5]}));return new Vr(E,{type:y.type})}var wd=class Xp extends pr{constructor(y){var b,E,ee,re;super(me(xe({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(E=y.smashDepth)!=null?E:!1,this.smashHeight=(ee=y.smashHeight)!=null?ee:!1,this.smashWidth=(re=y.smashWidth)!=null?re:!1}static fromJson(y){return new Xp(y)}toJson(){const y={};return this.isInvisible&&(y.isInvisible=!0),this.smashDepth&&(y.smashDepth=!0),this.smashHeight&&(y.smashHeight=!0),this.smashWidth&&(y.smashWidth=!0),xe(xe({},super.toJson()),y)}render(y){const b=new Ia({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),pr.createBox(b,this.body,{classes:"inner"});const E=pr.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new Vr(null,{classes:"fix"});return new Vr([E,ee],{classes:"rlap"}).wrap(y)}if(!this.smashHeight&&!this.smashDepth)return E;if(this.smashHeight&&(E.height=0),this.smashDepth&&(E.depth=0),E.children)for(const ee of E.children)this.smashHeight&&(ee.height=0),this.smashDepth&&(ee.depth=0);return new $a({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},Sd=class Qp extends pr{constructor(y){var b;super(xe({type:"spacing"},y)),this.width=y==null?void 0:y.width,this._braced=(b=y==null?void 0:y.braced)!=null?b:!1}static fromJson(y){return new Qp(y)}toJson(){const y=super.toJson();return this.width!==void 0&&(y.width=this.width),this._braced&&(y.braced=!0),y}render(y){var b;if(this.command==="space")return new Vr(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new Vr(null,{classes:"mspace"}),E.left=y.toEm(this.width);else{const ee=(b={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?b:"mediumspace";E=new Vr(null,{classes:ee})}return E=this.bind(y,E),this.caret&&(E.caret=this.caret),E}_serialize(y){var b;if(!y.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const E=It(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);const ee=(b=this.command)!=null?b:"";return this.width===void 0?ee:this._braced&&!("register"in this.width)?`${ee}{${Io(this.width)}}`:`${ee}${Io(this.width)}`}},o0=class Jp extends pr{constructor(y){var b;super(me(xe({},y),{type:"surd",mode:(b=y.mode)!=null?b:"math",style:y.style,displayContainsHighlight:!0,body:y.body})),this.above=y.index}static fromJson(y){return new Jp(me(xe({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=It(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=this.command,ee=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?uo(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:uo(E,ee)}get children(){if(this._children)return this._children;const y=[];if(this.above)for(const b of this.above)y.push(...b.children),y.push(b);if(this.body)for(const b of this.body)y.push(...b.children),y.push(b);return this._children=y,y}render(y){var b;const E=new Ia({parent:y,mathstyle:"cramp"},this.style),ee=(b=pr.createBox(E,this.body,{type:"inner"}))!=null?b:new Vr(null),re=E.scalingFactor,oe=E.metrics.defaultRuleThickness/re,pe=y.isDisplayStyle?el:oe,ge=new Vr(null,{classes:"ML__sqrt-line",style:this.style});ge.height=oe,ge.softWidth=ee.width;let be=re*(oe+pe/4);const _e=Math.max(re*2*pe,ee.height+ee.depth)+be+oe,it=new Ia({parent:y},this.style),Pt=this.bind(it,new Vr(mi("inner","\\surd",_e,!1,it,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Pt)return null;const Ut=Pt.height+Pt.depth-oe;Ut>ee.height+ee.depth+be&&(be=(be+Ut-(ee.height+ee.depth))/2),Pt.setTop(Pt.height-ee.height-be);const Jn=this.bind(y,new $a({firstBaseline:[{box:new Vr(ee)},be-2*oe,{box:ge},oe]})),Ur=pr.createBox(new Ia({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Ur){const Gr=new Vr([Pt,Jn],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Gr.setStyle("display","inline-block"),Gr.setStyle("height",Gr.height+Gr.depth,"em"),this.caret&&(Gr.caret=this.caret),this.bind(y,Gr)}const Zn=new $a({shift:-.6*(Math.max(Pt.height,Jn.height)-Math.max(Pt.depth,Jn.depth)),children:[{box:Ur}]}),Mr=new Vr([new Vr(Zn,{classes:"ML__sqrt-index",type:"ignore"}),Pt,Jn],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return Mr.height=Pt.height,Mr.depth=Pt.depth,this.caret&&(Mr.caret=this.caret),this.bind(y,Mr)}},sm=class extends Vr{constructor(a){super(null,{type:"skip"}),this._width=a}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function xf(a,y){if(!a.parent)return;const b=a.parent.children,E=b.indexOf(a);let ee=E-1;for(;ee>=0&&b[ee].type==="ignore";)ee-=1;if(ee<0&&a.parent.parent&&a.parent.type==="lift"){xf(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new sm(y))}var lm={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},cm={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function um(a){Ed(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 Cd(a,y){if(!a.children)return a;const b=a.children;um(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),re=y.getRegisterAsEm("thickmuskip");return Ed(b,(oe,pe)=>{var ge,be,Ae;if(!oe)return;const _e=oe.type,it=pe.isTight?(ge=cm[_e])!=null?ge:null:(be=lm[_e])!=null?be:null,Pt=(Ae=it==null?void 0:it[pe.type])!=null?Ae:null;Pt===3&&xf(pe,E),Pt===4&&xf(pe,ee),Pt===5&&xf(pe,re)}),a}function Ed(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=Ed(E.children,y,b):E.type==="ignore"?Ed(E.children,y):(y(b,E),Ed(E.children,y),b=E);return b}var hh=class qp extends pr{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new pr({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new qp(me(xe({},y),{tooltip:dc(y.tooltip)}))}toJson(){var y;const b=(y=this.tooltip.body)==null?void 0:y.filter(E=>E.type!=="first").map(E=>E.toJson());return me(xe({},super.toJson()),{tooltip:b})}render(y){const b=pr.createBox(new Ia,this.body);if(!b)return null;const E=new Ia({parent:y,mathstyle:"displaystyle"},{fontSize:dl}),ee=gu(Cd(new Vr(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),re=new Vr([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(re.caret=this.caret),this.bind(y,re)}},Rc=class $p extends pr{constructor(y,b){super(me(xe({},b),{type:"operator",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.variantStyle=b==null?void 0:b.variantStyle,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new $p(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.variantStyle&&(y.variantStyle=this.variantStyle),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.value&&(y.symbol=this.value),y}render(y){var b;const E=new Vr(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ee=E;if(this.superscript||this.subscript){const re=(b=this.subsupPlacement)!=null?b:"auto";ee=re==="over-under"||re==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:E}):this.attachSupsub(y,{base:E})}return new Vr(this.bind(y,ee),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=It(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),ba(E)}};function dc(a){if(Ne(a))return a.map(E=>dc(E));if(typeof a=="string")return pr.fromJson(a);a=xe({},a);for(const E of sc)a[E]&&(a[E]=dc(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=dc(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=la.fromJson(a)),y==="box"&&(b=Ao.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=jl.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=bd.fromJson(a)),y==="error"&&(b=ys.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=Au.fromJson(a)),y==="group"&&(b=Yo.fromJson(a)),y==="latex"&&(b=ns.fromJson(a)),y==="latexgroup"&&(b=xd.fromJson(a)),y==="leftright"&&(b=ja.fromJson(a)),y==="macro"&&(b=Mu.fromJson(a)),y==="macro-argument"&&(b=sl.fromJson(a)),y==="operator"&&(b=Rc.fromJson(a)),y==="overlap"&&(b=Nc.fromJson(a)),y==="overunder"&&(b=Gs.fromJson(a)),y==="placeholder"&&(b=Gi.fromJson(a)),y==="prompt"&&(b=xl.fromJson(a)),y==="phantom"&&(b=wd.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=Sd.fromJson(a)),y==="subsup"&&(b=Vs.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=al.fromJson(a)),y==="tooltip"&&(b=hh.fromJson(a)),b||(console.assert(!y||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(y),`MathLive 0.98.5: an unexpected atom type "${y}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),b=pr.fromJson(a));for(const E of sc)a[E]&&b.setChildren(a[E],E);return a.verbatimLatex!==void 0&&(b.verbatimLatex=a.verbatimLatex),a.subsupPlacement&&(b.subsupPlacement=a.subsupPlacement),a.explicitSubsupPlacement&&(b.explicitSubsupPlacement=!0),a.isFunction&&(b.isFunction=!0),a.isExtensibleSymbol&&(b.isExtensibleSymbol=!0),a.skipBoundary&&(b.skipBoundary=!0),a.captureSelection&&(b.captureSelection=!0),b}function dm(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>dc(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>dc(b)):y)}var s0={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},ph={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},l0=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,l0,fm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends Ss{constructor(){super("math")}createAtom(a,y,b){var E,ee,re,oe;if(y===null)return new pr({type:"mord",mode:"math",command:a,value:a,style:b});const pe=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const be=new pr({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(re=y.command)!=null?re:a,value:String.fromCodePoint(y.codepoint),style:b});return pe&&(be.isFunction=!0),a.startsWith("\\")&&(be.verbatimLatex=a),be}const ge=new pr({type:"mord",mode:"math",command:(oe=y.command)!=null?oe:a,value:a,style:b});return pe&&(ge.isFunction=!0),a.startsWith("\\")&&(ge.verbatimLatex=a),ge}serialize(a,y){const b=gm(a,me(xe({},y),{defaultMode:"math"}));return b.length===0||y.defaultMode!=="text"?b:["$ ",...b," $"]}getFont(a,y){console.assert(y.variant!==void 0);let{variant:b}=y,{variantStyle:E}=y;b==="normal"&&!E&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",E="italic"),b==="normal"&&!E&&a.value.length===1&&hm.forEach((pe,ge)=>{var be;pe.test(a.value)&&pm[(be=y.letterShapeStyle)!=null?be:"tex"][ge]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(s0[ee]!==void 0);const[re,oe]=s0[ee];return ph[b]&&!ph[b].test(a.value)?(a.value=Mn(a.value,b,E),null):(l0.test(a.value)&&(a.classes+=" lcGreek"),oe&&(a.classes+=" "+oe),re)}};function gm(a,y){const{parent:b}=a[0],E=c0(b);return Mo(a,"variant").map(ee=>{const re=c0(ee[0]);let oe="";re&&re!==E&&(oe={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[re],console.assert(oe!==void 0));const pe=ba(ee.map(ge=>ge._serialize(y)));return oe?uo(oe,pe):pe})}function c0(a){if(!a)return"";const{style:y}=a;if(y.variant===void 0)return"";let b=y.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(y.variant)&&y.variantStyle&&y.variantStyle!=="up"&&(b+="-"+y.variantStyle),b}new mm;function vm(a,y){return a.map(b=>b._serialize(y))}function ym(a,y){return Mo(a,"fontShape").map(b=>{const E=vm(b,y),{fontShape:ee}=b[0].style;let re="";return ee==="it"&&(re="\\textit"),ee==="sl"&&(re="\\textsl"),ee==="sc"&&(re="\\textsc"),ee==="n"&&(re="\\textup"),!re&&ee?`{${uo("\\fontshape",ee)}${ba(E)}}`:re?uo(re,ba(E)):ba(E)})}function bm(a,y){return Mo(a,"fontSeries").map(b=>{const E=ym(b,y),{fontSeries:ee}=b[0].style;let re="";return ee==="b"&&(re="\\textbf"),ee==="l"&&(re="\\textlf"),ee==="m"&&(re="\\textmd"),ee&&!re?`{${uo("\\fontseries",ee)}${ba(E)}}`:re?uo(re,ba(E)):ba(E)})}function xm(a,y){return Mo(a,"fontSize").map(b=>{var E,ee;const re=bm(b,y),oe=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return oe?`${oe} ${ba(re)}`:ba(re)})}function wm(a,y,b){return Mo(a,"fontFamily").map(E=>{var ee,re;const oe=xm(E,y),pe=(re={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?re:"";return pe?`\\${pe}{${ba(oe)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${ba(oe)}}`:b?`\\text{${ba(oe)}}`:ba(oe)})}var u0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Sm=class extends Ss{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new al(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return wm(a,me(xe({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,re,oe;const{fontFamily:pe}=y;if(u0[pe]?a.classes+=" "+u0[pe]:pe&&a.setStyle("font-family",pe),y.fontShape&&(a.classes+=" ",a.classes+=(b={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[y.fontShape])!=null?b:""),y.fontSeries){const ge=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ge&&(a.classes+=" ",a.classes+=(ee={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(E=ge[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(oe={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(re=ge[2])!=null?re:""])!=null?oe:"")}return"Main-Regular"}};new Sm;var Cm=class extends Ss{constructor(){super("latex")}createAtom(a){return new ns(a)}serialize(a,y){return a.filter(b=>b instanceof ns&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new Cm;var Em={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},mh={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},d0={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},f0={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Mm={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},Am={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},km={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},Lm={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:["=","=","=","="]}},Bm={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:["<",">","|",""]}},Dm={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},Im={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},Tm={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Om={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function h0(a){const y=a.split("+"),b={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:y.pop()};return y.includes("shift")&&(b.shift=!0),y.includes("alt")&&(b.alt=!0),y.includes("ctrl")&&(b.ctrl=!0),y.includes("cmd")&&(b.cmd=!0),y.includes("win")&&(b.win=!0),y.includes("meta")&&(b.meta=!0),b}function ku(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 Pm={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]"},Md=[],Ad;function gh(){switch(Ee()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Fs(a){(!a.platform||a.platform===gh())&&Md.push(a)}function Nm(a,y){var b;const E={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return E;for(const[ee,re]of Object.entries(y.mapping)){if(re[0]===a)return E.key=`[${ee}]`,E;if(re[1]===a)return E.shift=!0,E.key=`[${ee}]`,E;if(re[2]===a)return E.alt=!0,E.key=`[${ee}]`,E;if(re[3]===a)return E.shift=!0,E.alt=!0,E.key=`[${ee}]`,E}return E.key=(b=Pm[a])!=null?b:"",E}function Rm(a){if(a.code)return a;const y=Object.entries(kd().mapping);let b=!1,E=!1,ee="";for(let re=0;re<4;re++){for(const[oe,pe]of y)if(pe[re]===a.key){ee=oe,re===3?(b=!0,E=!0):re===2?b=!0:re===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,me(xe({},a),{altKey:b,shiftKey:E,code:ee}))}function Fm(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const E=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const ee of Md)((y=ee.mapping[a.code])==null?void 0:y[E])===a.key?ee.score+=1:(b=ee.mapping[a.code])!=null&&b[E]&&(ee.score=0);Md.sort((ee,re)=>re.score-ee.score)}function zm(a){Ad=Md.find(y=>a.startsWith(y.locale))}function kd(){return Ad!=null?Ad:Md[0]}function _m(){switch(gh()){case"apple":return mh;case"windows":return d0;case"linux":return f0}return mh}switch(gh()){case"apple":Fs(mh),Fs(Mm),Fs(Im),Fs(Lm);break;case"windows":Fs(d0),Fs(Am),Fs(Tm),Fs(Bm);break;case"linux":Fs(f0),Fs(km),Fs(Om),Fs(Dm);break}Fs(Em);function vh(a){var y;const b=/macos|ios/.test(Ee()),E=a.split("+");let ee="";for(const re of E)ee&&(ee+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),re.startsWith("[Key")?ee+=re.slice(4,5):re.startsWith("Key")?ee+=re.slice(3,4):re.startsWith("[Digit")?ee+=re.slice(6,7):re.startsWith("Digit")?ee+=re.slice(5,6):ee+=(y={cmd:"\u2318",meta:b?"\u2318":"Ctrl",shift:b?"\u21E7":"Shift",alt:b?"\u2325":"Alt",ctrl:b?"\u2303":"Ctrl","\n":b?"\u23CE":"Return","[return]":b?"\u23CE":"Return","[enter]":b?"\u2324":"Enter","[tab]":b?"\u21E5":"Tab","[escape]":"Esc","[backspace]":b?"\u232B":"Backspace","[delete]":b?"\u2326":"Del","[pageup]":b?"\u21DE":"Page Up","[pagedown]":b?"\u21DF":"Page Down","[home]":b?"\u2912":"Home","[end]":b?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* &#128290;",numpaddivide:"/ &#128290;",numpadsubtract:"- &#128290;",numpadadd:"+ &#128290;",numpaddecimal:". &#128290;",numpadcomma:", &#128290;",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[re.toLowerCase()])!=null?y:re.toUpperCase();return ee}function wf(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((E,ee)=>({x:E.x+ee.clientX,y:E.y+ee.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function Fc(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 Hm(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 Km=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 Sf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Km.has(a.code)}function Cf(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var wl=class Yl{static get scrim(){return Yl._scrim||(Yl._scrim=new Yl),Yl._scrim}static open(y){Yl.scrim.open(y)}static close(){Yl.scrim.close()}static get state(){return Yl.scrim.state}static get element(){return Yl.scrim.element}constructor(y){var b,E;this.lightDismiss=(b=y==null?void 0:y.lightDismiss)!=null?b:!0,this.translucent=(E=y==null?void 0:y.translucent)!=null?E:!1,this.state="closed"}get element(){if(this._element)return this._element;const y=document.createElement("div");return y.setAttribute("role","presentation"),y.style.position="fixed",y.style.contain="content",y.style.top="0",y.style.left="0",y.style.right="0",y.style.bottom="0",y.style.zIndex="var(--scrim-zindex, 10099)",y.style.outline="none",this.translucent?(y.style.background="rgba(255, 255, 255, .2)",y.style.backdropFilter="contrast(40%)"):y.style.background="transparent",this._element=y,y}open(y){var b;if(this.state!=="closed")return;this.state="opening",this.onDismiss=y==null?void 0:y.onDismiss,this.savedActiveElement=Cf();const{element:E}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(E),E.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ee=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const re=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${re+ee}px`,y!=null&&y.child&&E.append(y.child),this.state="open"}close(){var y,b,E,ee;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:re}=this;re.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),re.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Cf()!==this.savedActiveElement&&((ee=(E=this.savedActiveElement)==null?void 0:E.focus)==null||ee.call(E)),re.innerHTML="",this.state="closed"}handleEvent(y){this.lightDismiss&&(y.target===this._element&&y.type==="click"?(this.close(),y.preventDefault(),y.stopPropagation()):y.target===document&&(y.type==="touchmove"||y.type==="scroll")&&(this.close(),y.preventDefault(),y.stopPropagation()))}};function Wm(a,y,b){let E=null,ee=null,re=!1,oe=!1,pe=!1;const ge=new AbortController,be=ge.signal;return a.addEventListener("keydown",Ae=>{if(re||Ae.key==="Process"||Ae.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Ae.code)){E=null;return}E=Ae,ee=null,b.onKeystroke(Ae)?a.textContent="":E=null},{capture:!0,signal:be}),a.addEventListener("keypress",Ae=>{re||(E&&ee&&b.onKeystroke(E),ee=Ae)},{capture:!0,signal:be}),a.addEventListener("compositionstart",Ae=>{a.textContent="",re=!0,b.onCompositionStart(Ae.data)},{capture:!0,signal:be}),a.addEventListener("compositionupdate",Ae=>{re&&b.onCompositionUpdate(Ae.data)},{capture:!0,signal:be}),a.addEventListener("compositionend",Ae=>{a.textContent="",re&&(re=!1,b.onCompositionEnd(Ae.data))},{capture:!0,signal:be}),a.addEventListener("beforeinput",Ae=>Ae.stopImmediatePropagation(),{signal:be}),a.addEventListener("input",Ae=>{var _e;if(!re&&(a.textContent="",Ae.inputType!=="insertCompositionText")){if(Ae.inputType==="insertFromPaste"){Ae.preventDefault(),Ae.stopPropagation();return}b.onInput((_e=Ae.data)!=null?_e:""),Ae.preventDefault(),Ae.stopPropagation()}},{signal:be}),a.addEventListener("paste",Ae=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Ae)||Ae.preventDefault(),Ae.stopImmediatePropagation()},{signal:be}),a.addEventListener("cut",Ae=>b.onCut(Ae),{capture:!0,signal:be}),a.addEventListener("copy",Ae=>b.onCopy(Ae),{capture:!0,signal:be}),a.addEventListener("blur",Ae=>{var _e,it;if(((it=(_e=Ae.relatedTarget)==null?void 0:_e._mathfield)==null?void 0:it.element)===y){a.focus({preventScroll:!0}),Ae.preventDefault(),Ae.stopPropagation();return}const Pt=wl.state;if(Pt==="open"||Pt==="opening"){Ae.preventDefault(),Ae.stopPropagation();return}if(Ae.relatedTarget===Ae.target.getRootNode().host){Ae.preventDefault(),Ae.stopPropagation();return}pe||oe||(pe=!0,E=null,ee=null,b.onBlur(),pe=!1)},{capture:!0,signal:be}),a.addEventListener("focus",Ae=>{pe||oe||(oe=!0,b.onFocus(),oe=!1)},{capture:!0,signal:be}),{dispose:()=>ge.abort(),cancelComposition:()=>{re&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!oe&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Cf()===a,setAriaLabel:Ae=>a.setAttribute("aria-label",Ae),setValue:Ae=>{var _e;a.textContent=Ae,a.style.left="-1000px",(_e=window.getSelection())==null||_e.selectAllChildren(a)},moveTo:(Ae,_e)=>{a.style.top=`${_e}px`,a.style.left=`${Ae}px`}}}function Lu(a){var y;if(!a||!Sf(a))return"";let b;return a.key==="Unidentified"&&a.target&&(b=a.target.value),b=(y=b!=null?b:a.key)!=null?y:a.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(b)&&(b=""),b}function p0(a){a=Rm(a);const y=[];return a.ctrlKey&&y.push("ctrl"),a.metaKey&&y.push("meta"),a.altKey&&y.push("alt"),a.shiftKey&&y.push("shift"),y.length===0?`[${a.code}]`:(y.push(`[${a.code}]`),y.join("+"))}function jm(a){if(pt()){const y=Ee(),b=a.startsWith("!"),E=a.endsWith(y);if(b&&!E||!b&&E)return!0}return a==="!other"?!1:a==="other"}function Zm(a,y,b){if(a.length===0)return"";const E=ku(h0(p0(b))),ee=ku({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(Ee()),cmd:!1,win:!1});for(let re=a.length-1;re>=0;re--)if((a[re].key===E||a[re].key===ee)&&(!a[re].ifMode||a[re].ifMode===y))return a[re].command;return""}function m0(a){let y=a;return Ne(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Um(a,y){let b=[];if(typeof y=="string"){const re=hd[y];Ne(re)?b=re.slice():re&&b.push(re)}const E=m0(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const re of a)ee.test(m0(re.command))&&b.push(re.key);return b.map(vh)}function Vm(a,y){if(a.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(a.ifPlatform))throw new Error(`Unexpected platform "${a.ifPlatform}" for keybinding ${a.key}`);if(a.ifLayout!==void 0&&(y.score===0||!a.ifLayout.includes(y.id)))return;const b=h0(a.key);let E=a.ifPlatform;if(b.cmd){if(E&&E!=="macos"&&E!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+E+`"
"cmd" modifier can only be used with macOS or iOS platform.`);E||(E=Ee()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(E&&E!=="windows")throw new Error('Unexpected "win" modifier with platform "'+E+`"
"win" modifier can only be used with Windows platform.`);E="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(E&&!jm(E))return;if(/^\[.+\]$/.test(b.key))return me(xe({},a),{key:ku(b)});const ee=Nm(b.key,y);if(!ee)return me(xe({},a),{key:ku(b)});if(ee.shift&&b.shift||ee.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${yh(a.command)}) is conflicting with the key combination ${ku(ee)} using the ${y.displayName} keyboard layout`);return ee.shift=ee.shift||b.shift,ee.alt=ee.alt||b.alt,ee.meta=b.meta,ee.ctrl=b.ctrl,me(xe({},a),{key:ku(ee)})}function yh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Gm(a,y){const b=[],E=[];for(const ee of a)try{const re=Vm(ee,y);if(!re)continue;const oe=E.find(pe=>pe.key===re.key&&pe.ifMode===re.ifMode);if(oe)throw new Error(`Ambiguous key binding ${ee.key} (${yh(ee.command)}) matches ${oe.key} (${yh(oe.command)}) with the ${y.displayName} keyboard layout`);E.push(re)}catch(re){re instanceof Error&&b.push(re.message)}return[E,b]}var Ym=class extends aa{constructor(){super("latex")}createAtom(a){return new ns(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"}),Eo(a)),a.startRecording(),!0):!1}insert(a,y,b){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b||(b={}),b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder");const{silenceNotifications:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Go(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const re=[];for(const ge of y)ce.test(ge)&&re.push(new ns(ge));let oe=a.at(a.position);if(oe instanceof xd&&(oe=oe.lastChild),!(oe.parent instanceof xd)){const ge=new xd("");oe.parent.addChildAfter(ge,oe),oe=ge.firstChild}const pe=oe.parent.addChildrenAfter(re,oe);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(pe)):pe&&(a.position=a.offsetOf(pe))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Xm(a){return a.atoms.find(y=>y.type==="latexgroup")}function Ld(a){var y,b;const E=a.atoms.find(ee=>ee.type==="latexgroup");return E?(b=(y=E.body)==null?void 0:y.filter(ee=>ee.type==="latex"))!=null?b:[]:[]}function g0(a,y){var b;let E=0,ee=!1;const re=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=re&&!ee;){const ge=a.at(E);ee=ge instanceof ns&&ge.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let oe=E,pe=!1;for(;oe<=re&&!pe;){const ge=a.at(oe);pe=!(ge instanceof ns&&ge.isSuggestion),pe||oe++}return[E-1,oe-1]}new Ym;function Ef(a){const y=Ld(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 Bd(a,y){var b;const{model:E}=a;Ef(a);for(const Ae of Ld(E))Ae.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){Du(a);return}const ee=[];let re=E.at(E.position);for(;re&&re instanceof ns&&/^[a-zA-Z\*]$/.test(re.value);)re=re.leftSibling;if(re&&re instanceof ns&&re.value==="\\")for(ee.push(re),re=re.rightSibling;re&&re instanceof ns&&/^[a-zA-Z\*]$/.test(re.value);)ee.push(re),re=re.rightSibling;const oe=ee.map(Ae=>Ae.value).join(""),pe=Ht(a,oe);if(pe.length===0){if(/^\\[a-zA-Z\*]+$/.test(oe))for(const Ae of ee)Ae.isError=!0;Du(a);return}const ge=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ge<0?pe.length-1:ge%pe.length;const be=pe[a.suggestionIndex];if(be!==oe){const Ae=ee[ee.length-1];Ae.parent.addChildrenAfter([...be.slice(oe.length-be.length)].map(_e=>new ns(_e,{isSuggestion:!0})),Ae),zc(a,{interactive:!0})}Jm(a,pe)}function v0(a){const[y,b]=g0(a,{before:a.position});if(y===void 0||b===void 0)return!1;let E=!1;return a.getAtoms([y,b]).forEach(ee=>{ee.isSuggestion&&(ee.isSuggestion=!1,E=!0)}),E}function Bu(a,y="accept",b){var E,ee;Du(a);const re=Xm(a.model);if(!re)return!1;if(y==="accept-suggestion"||y==="accept-all"){const be=Ld(a.model).filter(Ae=>Ae.isSuggestion);if(be.length!==0){for(const Ae of be)Ae.isSuggestion=!1;a.model.position=a.model.offsetOf(be[be.length-1])}if(y==="accept-suggestion")return be.length!==0}const pe=Ld(a.model).filter(be=>!be.isSuggestion).map(be=>be.value).join(""),ge=re.leftSibling;return re.parent.removeChild(re),a.model.position=a.model.offsetOf(ge),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(aa.insert(a.model,pe,{selectionMode:(ee=b==null?void 0:b.selectItem)!=null&&ee?"item":"placeholder",format:"latex",mode:"math"}),a.snapshot(),a.model.announce("replacement"),a.switchMode("math")),!0}function 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 bh(a){var y;const b=document.getElementById(a);if(!b)return;const E=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");E<=1?b.remove():b.dataset.refcount=Number(E-1).toString()}function Qm(a,y){const b=new Ia({from:a.context}),E=new pr({mode:"math",type:"root",body:Xo(y,{context:b})}),ee=gu(Cd(new Vr(E.render(b),{classes:"ML__base"}),b));return vu(ee,{classes:"ML__latex"}).toMarkup()}function Jm(a,y){var b;if(y.length===0){Du(a);return}let E="";for(const[re,oe]of y.entries()){const pe=oe,ge=Qm(a,oe),be=Um(a.keybindings,pe).join("<br>");E+=`<li role="button" data-command="${pe}" ${re===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${pe}</span><span class="ML__popover__command">${ge}</span>`,be&&(E+=`<span class="ML__popover__keybinding">${be}</span>`),E+="</li>"}const ee=qm(a,`<ul>${E}</ul>`);xh()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var re;ee&&!xh()&&(ee.classList.add("is-visible"),Af(a),(re=ee.querySelector(".ML__popover__current"))==null||re.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Af(a,y){var b;if(!a.element||a.element.mathfield!==a||!xh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){Du(a);return}if(y!=null&&y.deferred){setTimeout(()=>Af(a),32);return}const E=bl(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,re=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,oe=window.innerWidth-document.documentElement.clientWidth,pe=window.innerHeight-document.documentElement.clientHeight,ge=window.mathVirtualKeyboard.boundingRect.height,be=document.getElementById("mathlive-suggestion-popover");E.x+be.offsetWidth/2>re-oe?be.style.left=`${re-be.offsetWidth-oe}px`:E.x-be.offsetWidth/2<0?be.style.left="0":be.style.left=`${E.x-be.offsetWidth/2}px`;const Ae=E.y-E.height;ee-pe-ge-E.y<Ae?(be.classList.add("ML__popover--reverse-direction"),be.classList.remove("top-tip"),be.classList.add("bottom-tip"),be.style.top=`${E.y-E.height-be.offsetHeight-15}px`):(be.classList.remove("ML__popover--reverse-direction"),be.classList.add("top-tip"),be.classList.remove("bottom-tip"),be.style.top=`${E.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 qm(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Mf("mathlive-suggestion-popover"),ks("suggestion-popover"),ks("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(Bu(a,"reject"),aa.insert(a.model,ee.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function $m(){document.getElementById("mathlive-suggestion-popover")&&(bh("mathlive-suggestion-popover"),x("suggestion-popover"),x("core"))}function eg(){const a=String(new Error().stack).replace(/^Error.*\n/,"").split(`
`);if(a.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let y=a[1],b=y.match(/http.*\.ts[\?:]/);return b&&(y=a[2]),b=y.match(/(https?:.*):[0-9]+:[0-9]+/),b||(b=y.match(/at (.*(\.ts))[\?:]/),b||(b=y.match(/at (.*(\.mjs|\.js))[\?:]/))),b?b[1]:(console.error(a),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${y}").`),"")}var kf=null,y0,b0,wh=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||eg();function x0(a){return gc(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(kf===null)try{const y=yield fetch(wh,{method:"HEAD"});y.status===200&&(kf=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${wh}")`)}return new URL(a,kf!=null?kf:wh).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var zs="not-loaded";function ng(){return gc(this,null,function*(){return zs="not-loaded",Lf()})}function Lf(){return gc(this,null,function*(){var a;if(zs!=="not-loaded")return;if(zs="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){zs="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const b=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],E=Array.from(document.fonts).map(oe=>oe.family);if(b.every(oe=>E.includes(oe))){zs="ready";return}if(!window.MathfieldElement.fontsDirectory){zs="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),zs="error";return}const re=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(oe=>tg(oe[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${oe[0]}`,oe[1]));try{(yield Promise.all(re.map(pe=>{try{return pe.load()}catch(ge){}}))).forEach(pe=>document.fonts.add(pe)),zs="ready";return}catch(oe){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:oe}),document.body.classList.add("ML__fonts-did-not-load")}zs="error"}})}function rg(a){let y=0;for(let b=0;b<a.length;b++)y=y*31+a.charCodeAt(b),y=y|0;return Math.abs(y)}function Eo(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Ns(a)&&a.dirty&&(a.atomBoundsCache=new Map,zc(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new Ia({from:me(xe({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(pr.serialize([a.model.root],{expandMacro:!1,defaultMode:a.options.defaultMode})):"random",groupNumbers:(b=y.forHighlighting)!=null?b:!1},letterShapeStyle:a.options.letterShapeStyle}),mathstyle:a.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),ee=a.model.root.render(E);return vu(Cd(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function w0(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ee of b.atoms)ee.caret=void 0,ee.isSelected=!1,ee.containsCaret=!1;if(b.selectionIsCollapsed){const ee=b.at(b.position);ee.caret=a.model.mode;let re=ee.parent;for(;re;)re.containsCaret=!0,re=re.parent}else{const ee=b.getAtoms(b.selection,{includeChildren:!0});for(const re of ee)re.isSelected=!0}return ig(a,y).toMarkup()}function zc(a,y){if(!Ns(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const E=a.field;if(!E)return;const ee=a.isSelectionEditable&&a.hasFocus(),re=E.classList.contains("ML__focused");re&&!ee?E.classList.remove("ML__focused"):!re&&ee&&E.classList.add("ML__focused");let oe=w0(a,y);const pe=a.element.querySelector("[part=menu-toggle]");if(pe&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?pe.style.display="none":pe.style.display=""),a.model.atoms.length<=1){const ge=a.options.contentPlaceholder;ge&&(oe+=`<span part=placeholder class="ML__content-placeholder">${Qo(ge)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(oe),Bf(a,y.interactive),a.dirty=!1}function Bf(a,y){const b=a.field;if(!b)return;for(const pe of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))pe.remove();!(y!=null&&y)&&zs!=="error"&&zs!=="ready"&&setTimeout(()=>{zs==="ready"?Bf(a):setTimeout(()=>Bf(a),128)},32);const E=a.model,ee=b.offsetWidth,re=b.getBoundingClientRect().width;let oe=Math.floor(re)/ee;if(oe=isNaN(oe)?1:oe,E.selectionIsCollapsed){Af(a,{deferred:!0});let pe=E.at(E.position);for(;pe&&pe.type!=="prompt"&&!(pe.containsCaret&&pe.displayContainsHighlight);)pe=pe.parent;if(pe!=null&&pe.containsCaret&&pe.displayContainsHighlight){const ge=md(a,lc(a,pe),oe);if(ge){ge.left/=oe,ge.right/=oe,ge.top/=oe,ge.bottom/=oe;const be=document.createElement("div");be.classList.add("ML__contains-highlight"),be.style.position="absolute",be.style.left=`${ge.left+1}px`,be.style.top=`${Math.ceil(ge.top)}px`,be.style.width=`${Math.ceil(ge.right-ge.left)}px`,be.style.height=`${Math.ceil(ge.bottom-ge.top)}px`,b.insertBefore(be,b.childNodes[0])}}return}for(const pe of ag(vd(a,{excludeAtomsWithBackground:!0}))){pe.left/=oe,pe.right/=oe,pe.top/=oe,pe.bottom/=oe;const ge=document.createElement("div");ge.classList.add("ML__selection"),ge.style.position="absolute",ge.style.left=`${pe.left}px`,ge.style.top=`${pe.top}px`,ge.style.width=`${Math.ceil(pe.right-pe.left)}px`,ge.style.height=`${Math.ceil(pe.bottom-pe.top-1)}px`,b.insertBefore(ge,b.childNodes[0])}}function ag(a){let y=[];for(const b of a){let E=!1;for(const ee of y)if(b.left===ee.left&&b.right===ee.right&&b.top===ee.top&&b.bottom===ee.bottom){E=!0;break}E||y.push(b)}a=y,y=[];for(const b of a){let E=0;for(const ee of a)if(b.left>=ee.left&&b.right<=ee.right&&b.top>=ee.top&&b.bottom<=ee.bottom&&(E+=1,E>1))break;E===1&&y.push(b)}return y}var S0=3,Sl;function Ls(a,y){y=xe({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Sl||(Sl={});for(const b of Object.keys(a))console.assert(!Sl[b],"Selector already defined: ",b),Sl[b]=me(xe({},y),{fn:a[b]})}function Sh(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Sh(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Sl[y]}function Iu(a){var y;return(y=Sh(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],re=!1,oe=!1;Ne(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,be=>be[1].toUpperCase());const pe=Sl[E],ge=pe==null?void 0:pe.target;if(ge==="model"){if(!a.isSelectionEditable&&(pe!=null&&pe.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||Ef(a),Sl[E].fn(a.model,...ee),Bd(a),oe=!0,re=!0}else if(ge==="virtual-keyboard")oe=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,re=!0;else if(Sl[E]){if(!a.isSelectionEditable&&(pe!=null&&pe.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),oe=Sl[E].fn(a,...ee),re=!0}else throw new Error(`Unknown command "${E}"`);return ge!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||pe!=null&&pe.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),pe!=null&&pe.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),oe&&Eo(a),re}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&rt()&&navigator.vibrate(S0);const E=Sh(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}Ls({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return Bd(a,{atIndex:a.suggestionIndex+1}),!1}function cg(a){return Bd(a,{atIndex:a.suggestionIndex-1}),!1}Ls({complete:Bu},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),Ls({nextSuggestion:lg,previousSuggestion:cg},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Df="mathlive#virtual-keyboard-message";function Ch(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Df}var ug=class em{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new em),this._singleton}set alphabeticLayout(y){this.sendMessage("update-setting",{alphabeticLayout:y})}set layouts(y){this.sendMessage("update-setting",{layouts:y})}get normalizedLayouts(){return[]}set editToolbar(y){this.sendMessage("update-setting",{editToolbar:y})}set actionKeycap(y){this.sendMessage("update-setting",{actionKeycap:y})}set shiftKeycap(y){this.sendMessage("update-setting",{shiftKeycap:y})}set backspaceKeycap(y){this.sendMessage("update-setting",{backspaceKeycap:y})}set tabKeycap(y){this.sendMessage("update-setting",{tabKeycap:y})}set container(y){throw new Error("Container inside an iframe cannot be changed")}show(y){this.sendMessage("show",y)}hide(y){this.sendMessage("hide",y)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(y){y?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(y){return this.sendMessage("execute-command",{command:y}),!0}updateToolbar(y){this.sendMessage("update-toolbar",y)}update(y){this.sendMessage("update-setting",y)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Ch(y)){if(!yd(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");this.handleMessage(y.data)}}handleMessage(y){const{action:b}=y;if(b==="execute-command"){const{command:E}=y;Iu(E)==="virtual-keyboard"&&this.executeCommand(E);return}if(b==="synchronize-proxy"){this._boundingRect=y.boundingRect,this._isShifted=y.isShifted;return}if(b==="geometry-changed"){this._boundingRect=y.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(y,b={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(xe({type:Df,action:y},b),this.targetOrigin)}},C0={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"&alpha;&beta;&gamma;",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>&#x03c6;</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>&#x03c2;</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>&#x03f5;</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>&rho;</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>&tau;</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>&upsilon;</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>&theta;</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>&iota;</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>&omicron;</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>&pi;</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>&alpha;</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>&sigma;</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>&delta;</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>&gamma;</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>&eta;</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>&xi;</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>&kappa;</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>&lambda;</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>&zeta;</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>&chi;</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>&psi;</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>&omega;</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>&beta;</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>&nu;</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>&mu;</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>&#x03b5;</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>&#x03d1;</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>&#x3f0;</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>&#x03d6;</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>&#x03f1;</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"&infin;\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]"]]}},If={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"}]},Dd;function E0(a,y){var b,E,ee;const re=fc.singleton;if(!re)return;const oe=Tu(a),pe=(E=(b=re.getKeycap(oe==null?void 0:oe.id))==null?void 0:b.variants)!=null?E:"";if(typeof pe=="string"&&!M0(pe)||Array.isArray(pe)&&pe.length===0){y==null||y();return}const ge={};let be="";for(const Jn of fg(pe)){const Ur=k0(Jn),Zn=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ge[Zn]=Ur;const[Mr,Gr]=Tf(Ur);be+=`<div id=${Zn} class="item ${Gr}">${Mr}</div>`}const Ae=document.createElement("div");Ae.setAttribute("aria-hidden","true"),Ae.className="MLK__variant-panel",Ae.style.height="auto";const _e=Object.keys(ge).length;let it=5;_e===1?it=1:_e===2||_e===4?it=2:_e===3||_e===5||_e===6?it=3:_e>=7&&_e<14&&(it=4),Ae.style.width=`calc(var(--variant-keycap-length) * ${it} + 12px)`,Ae.innerHTML=vp.createHTML(be),wl.open({root:(ee=re==null?void 0:re.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:Ae}),Dd=new AbortController;const{signal:Pt}=Dd,Ut=a==null?void 0:a.getBoundingClientRect();if(Ut){Ut.top-Ae.clientHeight<0&&(Ae.style.width="auto",_e<=6?Ae.style.height="56px":_e<=12?Ae.style.height="108px":_e<=18?Ae.style.height="205px":Ae.classList.add("compact"));const Jn=Math.max(0,Math.min(window.innerWidth-Ae.offsetWidth,(Ut.left+Ut.right-Ae.offsetWidth)/2)),Ur=Ut.top-Ae.clientHeight+5;Ae.style.transform=`translate(${Jn}px, ${Ur}px)`,Ae.classList.add("is-visible"),requestAnimationFrame(()=>{Ae.addEventListener("pointerup",Zn=>{const Mr=Tu(Zn.target);!(Mr!=null&&Mr.id)||!ge[Mr.id]||(Eh(ge[Mr.id]),Id(),y==null||y(),Zn.preventDefault())},{capture:!0,passive:!1,signal:Pt}),Ae.addEventListener("pointerenter",Zn=>{const Mr=Tu(Zn.target);!(Mr!=null&&Mr.id)||!ge[Mr.id]||Mr.classList.add("is-active")},{capture:!0,signal:Pt}),Ae.addEventListener("pointerleave",Zn=>{const Mr=Tu(Zn.target);!(Mr!=null&&Mr.id)||!ge[Mr.id]||Mr.classList.remove("is-active")},{capture:!0,signal:Pt}),window.addEventListener("pointercancel",()=>{Id(),y==null||y()},{signal:Pt}),window.addEventListener("pointerup",()=>{Id(),y==null||y()},{signal:Pt})})}}function Id(){Dd==null||Dd.abort(),Dd=null,wl.state==="open"&&wl.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Ue))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Ue[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(je))y.push({class:"swatch-button",label:'<span style="background:'+je[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function M0(a){return If[a]!==void 0}function fg(a){var y;return typeof a!="string"?a:(If[a]||(If[a]=(y=dg(a))!=null?y:[]),If[a])}function hg(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function pg(a){return Object.keys(a).map(y=>`${y} {${hg(a[y])}}`).join("")}function Td(a){if(!a)return"";const y=new Ia,b=new pr({mode:"math",type:"root",body:Xo(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=gu(Cd(new Vr(b.render(y),{classes:"ML__base"}),y));return vu(E,{classes:"ML__latex"}).toMarkup()}function Od(a){var y;if(Array.isArray(a))return a.map(E=>Od(E)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(E=>E.map(ee=>k0(ee)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function mg(){var a,y;let E=window.mathVirtualKeyboard.alphabeticLayout;if(E==="auto"){const pe=kd();pe&&(E=pe.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[Xe.locale.slice(0,2)])!=null?a:"qwerty")}const ee={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},re=(y=ee[E])!=null?y:ee.qwerty,oe=E==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const pe of re){const ge=[];for(const be of pe)/[a-z]/.test(be)?ge.push({label:be,class:"hide-shift",shift:{label:be.toUpperCase()},variants:M0(be)?be:void 0}):be==="~"?E!=="dvorak"?ge.push("[backspace]"):ge.push({label:"[backspace]",width:1}):be==="^"?ge.push("[shift]"):be===" "&&ge.push("[separator-5]");oe.push(ge)}return oe.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:Od({rows:oe})}}function A0(a){if(a==="alphabetic")return mg();if(typeof a=="string")return console.assert(C0[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),A0(C0[a]);let y;if("rows"in a&&Array.isArray(a.rows)){console.assert(!("layers"in a||"markup"in a),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const ee=a,{rows:re}=ee,oe=st(ee,["rows"]);y=me(xe({},oe),{layers:Od({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:re}=ee,oe=st(ee,["markup"]);y=me(xe({},oe),{layers:Od(a.markup)})}else y=xe({},a),"layers"in a?y.layers=Od(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,E=!1;for(const ee of y.layers)if(ee.rows)for(const re of ee.rows.flat()){Ou(re)&&(b=!0);const oe=re.command;typeof oe=="string"&&["undo","redo","cut","copy","paste"].includes(oe)&&(E=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!E),y}function gg(a,y){var b,E;let ee='<div class="left">';if(a.normalizedLayouts.length>1)for(const[re,oe]of a.normalizedLayouts.entries()){const pe=oe,ge=[re===y?"selected":"layer-switch"];pe.tooltip&&ge.push("MLK__tooltip"),pe.labelClass&&ge.push(...pe.labelClass.split(" ")),ee+=`<div class="${ge.join(" ")}"`,pe.tooltip&&(ee+=" data-tooltip='"+((b=lt(pe.tooltip))!=null?b:pe.tooltip)+"' "),re!==y&&(ee+=`data-layer="${pe.layers[0].id}"`),ee+=`>${(E=pe.label)!=null?E:"untitled"}</div>`}return ee+="</div>",ee}function vg(a,y){let b="";if(a.editToolbar==="none")return"";const ee=[];y.selectionIsCollapsed?ee.push("undo","redo","pasteFromClipboard"):ee.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const re={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
data-command='"undo"'
data-tooltip='${lt("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${lt("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${lt("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${lt("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${lt("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return b+=ee.map(oe=>re[oe]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=fc.singleton;if(!y)return;const b={};if(!a.id){if(a.hasAttribute("data-label")&&(b.label=a.dataset.label),a.hasAttribute("data-latex")&&(b.latex=a.dataset.latex),a.hasAttribute("data-key")&&(b.key=a.dataset.key),a.hasAttribute("data-insert")&&(b.insert=a.dataset.insert),a.hasAttribute("data-variants")&&(b.variants=a.dataset.variants),a.hasAttribute("data-aside")&&(b.aside=a.dataset.aside),a.className&&(b.class=a.className),!b.label&&!b.latex&&!b.key&&!b.insert&&(b.latex=a.innerText,b.label=a.innerHTML),a.hasAttribute("data-command"))try{b.command=JSON.parse(a.dataset.command)}catch(E){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[E,ee]=Tf(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){ks("virtual-keyboard"),ks("core"),Lf()}function wg(){x("core"),x("virtual-keyboard")}var Sg=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
</symbol>
<symbol id="svg-shift" viewBox="0 0 384 512">
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
</symbol>
<symbol id="svg-commit" viewBox="0 0 512 512">
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
</symbol>
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
<symbol id="svg-command" viewBox="0 0 640 512">
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
</symbol>
<symbol id="svg-undo" viewBox="0 0 512 512">
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
</symbol>
<symbol id="svg-redo" viewBox="0 0 512 512">
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
</symbol>
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
</symbol>
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
</symbol>
<symbol id="svg-tab" viewBox="0 0 448 512">
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
</symbol>
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
</symbol>
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
</symbol>
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
</symbol>
<symbol id="svg-trash" viewBox="0 0 448 512">
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
</symbol>
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
</svg>`;function Cg(a){a.resetKeycapRegistry(),xg();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Sg+a.normalizedLayouts.map((oe,pe)=>Eg(a,oe,pe)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",Ag,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const oe of ee)oe.addEventListener("click",pe=>{var ge,be;let Ae=pe.target,_e="";for(;Ae&&!_e;)_e=(ge=Ae==null?void 0:Ae.getAttribute("data-command"))!=null?ge:"",Ae=(be=Ae==null?void 0:Ae.parentElement)!=null?be:null;_e&&a.executeCommand(JSON.parse(_e))});yg(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const re=y.querySelectorAll(".MLK__layer");console.assert(re.length>0,"No virtual keyboards available");for(const oe of re)oe.addEventListener("pointerdown",pe=>pe.preventDefault());return a.currentLayer=a.latentLayer,y}function Eg(a,y,b){const E=[];if(!("layers"in y))return"";for(const ee of y.layers)E.push(`<div tabindex="-1" class="MLK__layer" id="${ee.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(E.push("<div class='MLK__toolbar' role='toolbar'>"),E.push(gg(a,b)),y.displayEditToolbar&&E.push('<div class="ML__edit-toolbar right"></div>'),E.push("</div>")),E.push(Mg(a,ee)),E.push("</div>");return E.join("")}function Mg(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=`<style>${y.style}</style>`:typeof y.style=="object"&&(b+=`<style>${pg(y.style)}</style>`),y.backdrop&&(b+=`<div class='${y.backdrop}'>`),y.container&&(b+=`<div class='${y.container}'>`),y.rows){b+="<div class=MLK__rows>";for(const E of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ee of E)if(ee){const re=a.registerKeycap(ee),[oe,pe]=Tf(ee);/(^|\s)separator/.test(pe)?b+=`<div class="${pe}"`:b+=`<div tabindex="-1" id="${re}" class="${pe}"`,ee.tooltip&&(b+=` data-tooltip="${ee.tooltip}"`),b+=`>${oe}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Tf(a,y={shifted:!1}){var b,E,ee,re,oe,pe,ge;let be="",Ae=(b=a.class)!=null?b:"";if(y.shifted&&Ou(a)&&(Ae+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?be=Td(a.shift):typeof a.shift=="object"&&(be=a.shift.label?a.shift.label:(E=Td(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(Ae=(re=(ee=a.shift.class)!=null?ee:a.class)!=null?re:"");else{if(be=a.label?a.label:(oe=Td(a.latex||a.insert||"")||a.key)!=null?oe:"",a.shift){let _e;typeof a.shift=="string"?_e=Td(a.shift):a.shift.label?_e=a.shift.label:_e=(pe=Td(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?pe:"",be+=`<span class="MLK__shift">${_e}</span>`}a.aside&&(be+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(Ae)&&(Ae+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Ae)||(Ae+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Ae)&&a.width&&(Ae+=(ge={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ge:""),[be,Ae||"MLK__keycap"]}var _c={"[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:"&#x2212;",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"&divide;"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"&times;",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 k0(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!_c[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&_c[a.label]&&(b=me(xe(xe({},_c[a.label]),a),{label:_c[a.label].label})),"key"in a&&a.key&&_c[a.key]&&(b=me(xe(xe({},_c[a.key]),a),{key:_c[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var Pd;function Ag(a){var y;if(a.button!==0)return;const b=fc.singleton;if(!b)return;let E=a.target;for(;E&&!E.getAttribute("data-layer");)E=E.parentElement;if(E){b.currentLayer=(y=E.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const ee=Tu(a.target);if(!(ee!=null&&ee.id))return;const re=b.getKeycap(ee.id);if(!re)return;console.assert(a.type==="pointerdown");const oe=new AbortController,pe=oe.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",Of(oe),{capture:!0,signal:pe}),ee.addEventListener("pointerleave",Of(oe),{capture:!0,signal:pe}),ee.addEventListener("pointercancel",Of(oe),{signal:pe}),ee.addEventListener("pointerup",Of(oe),{signal:pe}),Ou(re)&&(ee.classList.add("is-active"),b.shiftPressCount++),re.variants&&(Pd&&clearTimeout(Pd),Pd=setTimeout(()=>{ee.classList.contains("is-pressed")&&(ee.classList.remove("is-pressed"),ee.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),E0(ee,()=>{oe.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Of(a){return y=>{const b=Tu(y.target);if(!(b!=null&&b.id))return;const E=fc.singleton;if(!E)return;const ee=E.getKeycap(b.id);if(ee){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),Ou(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),Ou(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){Pd&&clearTimeout(Pd),Ou(ee)?b.classList.toggle("is-active",E.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),E.isShifted&&ee.shift?typeof ee.shift=="string"?E.executeCommand(["insert",ee.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Eh(ee.shift):Eh(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Eh(a){var y;let b=a.command;!b&&a.insert&&(b=["insert",a.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!b&&a.key&&(b=["typedText",a.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!b&&a.latex&&(b=["insert",a.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),b||(b=["typedText",a.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(y=fc.singleton)==null||y.executeCommand(b)}function kg(a){if(a.nodeType!==1)return!1;const y=a.classList;return y.contains("MLK__keycap")||y.contains("shift")||y.contains("action")||y.contains("fnbutton")||y.contains("bigfnbutton")}function Tu(a){if(!a)return;let y=a;for(;y&&!kg(y);)y=y.parentElement;return y!=null?y:void 0}function Ou(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var fc=class tm{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,E;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(b=(y=window.document)==null?void 0:y.body)!=null?b:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(ee=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(E=window.top)==null||E.addEventListener("message",this)}catch(ee){window.addEventListener("message",this)}document.body.addEventListener("focusin",ee=>{const re=ee.target;re!=null&&re.isConnected&&setTimeout(()=>{const oe=L0();oe&&!oe.readOnly&&oe.mathVirtualKeyboardPolicy==="auto"&&ct()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{L0()||this.hide()},300)})}get currentLayer(){var y,b,E;return(E=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?E:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let E=y?this._element.querySelector(`#${y}.MLK__layer`):null;E||(E=this._element.querySelector(".MLK__layer")),E&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),E.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(y){var b;this._shiftPressCount=y>2||y<0?0:y,(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(y){const b="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[b]=y,b}getKeycap(y){return y?this.keycapRegistry[y]:void 0}getLayer(y){const b=this.normalizedLayouts;for(const E of b)for(const ee of E.layers)if(ee.id===y)return ee}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(y){this._alphabeticLayout=y,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(y){this._actionKeycap=typeof y=="string"?{label:y}:y}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(y){this._shiftKeycap=typeof y=="string"?{label:y}:y}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(y){this._backspaceKeycap=typeof y=="string"?{label:y}:y}get tabKeycap(){return this._tabKeycap}set tabKeycap(y){this._tabKeycap=typeof y=="string"?{label:y}:y}get layouts(){return this._layouts}set layouts(y){this.updateNormalizedLayouts(y),this.rebuild()}updateNormalizedLayouts(y){const b=Array.isArray(y)?[...y]:[y],E=b.findIndex(ee=>ee==="default");E>=0&&b.splice(E,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ee=>A0(ee))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(y){this._editToolbar=y,this.rebuild()}get container(){return this._container}set container(y){this._container=y,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new tm}catch(y){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}get element(){return this._element}set element(y){var b;this._element!==y&&((b=this._element)==null||b.remove(),this._element=y)}get visible(){return this._visible}set visible(y){y?this.show():this.hide()}get boundingRect(){var y;if(!this._visible)return new DOMRect;const b=(y=this._element)==null?void 0:y.getElementsByClassName("MLK__plate")[0];return b?b.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var y,b;const E=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${E}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ee=E-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ee}px)`:`${ee}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${E}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const y=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=y,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const y=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(y&&(y.backdrop||y.container)));const b=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(b)for(const E of b){const ee=this.getKeycap(E.id);if(ee){const[re,oe]=Tf(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(re),E.className=oe}}}show(y){var b;if(this._visible)return;const E=this.container;if(E&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ee=this._element.getElementsByClassName("MLK__plate")[0];if(ee&&this.observer.observe(ee),E===window.document.body){const re=E.style.paddingBottom;this.originalContainerBottomPadding=re;const oe=ee.offsetHeight-1;E.style.paddingBottom=re?`calc(${re} + ${oe}px)`:`${oe}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,y!=null&&y.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var ee;return(ee=this._element)==null?void 0:ee.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(y){var b;const E=this.container;if(E&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ee=this._element.getElementsByClassName("MLK__plate")[0];ee&&this.observer.unobserve(ee),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),Id(),wg(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(E.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var y,b;return(b=(y=this.element)==null?void 0:y.offsetHeight)!=null?b:0}buildAndAttachElement(){var y;console.assert(!this.element),this.element=Cg(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&E0(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Ch(y)){if(!yd(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");y.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:y.data.action!=="update-setting"&&y.data.action!=="proxy-created"&&y.data.action!=="execute-command"&&(console.assert(y.source!==void 0),this.connectedMathfieldWindow=y.source),this.handleMessage(y.data,y.source)}if(this._element)switch(y.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":y.button!==2&&y.preventDefault();break;case"keydown":{y.key==="Shift"&&!y.repeat&&(this.shiftPressCount=1);break}case"keyup":{(y.key==="Shift"||!y.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(y,b){const{action:E}=y;if(E==="execute-command"){const{command:ee}=y,re=Iu(ee);if(window.top!==void 0&&re!=="virtual-keyboard")return;this.executeCommand(ee);return}if((E==="connect"||E==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b),E!=="disconnect"&&window===window.top){if(E==="show"){typeof y.animate!="undefined"?this.show({animate:y.animate}):this.show();return}if(E==="hide"){typeof y.animate!="undefined"?this.hide({animate:y.animate}):this.hide();return}if(E==="update-setting"){y.alphabeticLayout&&(this.alphabeticLayout=y.alphabeticLayout),y.layouts&&(this.layouts=y.layouts),y.editToolbar&&(this.editToolbar=y.editToolbar);return}if(E==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b);return}}}sendMessage(y,b,E){if(E||(E=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||E===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:xe({type:Df,action:y},b)}));return}if(E)E.postMessage(xe({type:Df,action:y},b),{targetOrigin:this.targetOrigin});else if(b.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:b.command})),y==="execute-command"&&Array.isArray(b.command)&&b.command[0]==="insert"){const ee=b.command[1].split("");for(const re of ee)this.dispatchEvent(new KeyboardEvent("keydown",{key:re,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:re,bubbles:!0}))}}stateWillChange(y){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:y},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(y){const b=this._element;if(!b)return;b.classList.toggle("is-math-mode",y.mode==="math"),b.classList.toggle("is-text-mode",y.mode==="text"),b.classList.toggle("can-undo",y.canUndo),b.classList.toggle("can-redo",y.canRedo),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-paste",!0);const E=b.querySelectorAll(".ML__edit-toolbar");if(E)for(const ee of E)ee.innerHTML=vg(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,E=[],ee=Iu(y);return Ne(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=Iu(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,re=>re[1].toUpperCase()),ee==="virtual-keyboard"?Sl[b].fn(void 0,...E):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function L0(){var a,y;let b=Cf(),E=null;for(;b;){if("host"in b&&((y=(a=b.host)==null?void 0:a.tagName)==null?void 0:y.toLowerCase())==="math-field"){E=b.host;break}b=b.parentNode}return E}if(pt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=fc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ug.singleton,configurable:!0});function Pf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(Ne(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[re,oe]=E.split(",").map(pe=>parseInt(pe.trim()));y.scriptDepth=[re,oe]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ee=a.mathVirtualKeyboardPolicy.toLowerCase();if(ee==="sandboxed"){if(window!==window.top){const re=fc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>re})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?Xe.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=et(a.macros);break;default:Ne(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=xe({},a[b]):y[b]=a[b]}return y}function Hc(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const E={};for(const ee of b)a[ee]===null?E[ee]=null:Ne(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=xe({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Nf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Ft,backgroundColorMap:tt,letterShapeStyle:Xe.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:a=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(a),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:lh,inlineShortcuts:ff,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:sh,value:""}}function B0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function hc(a,y){!a||!y||(Ne(a)?a.forEach(b=>hc(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),hc(a.body,y),hc(a.above,y),hc(a.below,y),hc(a.subscript,y),hc(a.superscript,y)))}function Mh(a,y,b,E){function ee(oe,pe){for(const ge of re)if(ge.style[oe]!==pe)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const re=a.getAtoms(y,{includeChildren:!0});E.operation==="toggle"&&(b.color&&ee("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ee("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ee("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ee("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ee("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ee("fontSize",b.fontSize)&&(b.fontSize=dl),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const oe of re)oe.applyStyle(b);return!0}function Lg(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:E}=b;b.caret=void 0;const ee=new jl(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Bg(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}Je(["math","displaymath"],Ys),Je("center",Ys),Lt("displaylines","",{parse:a=>{const y=[];let b=[];a.beginContext({tabular:!0});do{if(a.end()||a.match("<}>"))break;a.matchColumnSeparator()||a.matchRowSeparator()?(y.push([b]),b=[]):b.push(...a.scan(E=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(E)))}while(!0);return a.endContext(),y.push([b]),y},createAtom:a=>new la("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Et("array","{columns:colspec}",(a,y,b,E)=>new la(a,Ah(y),b,{columns:E[0],mathstyleName:"textstyle"})),Et(["equation","equation*","subequations"],"",(a,y,b)=>new la(a,Ah(y),b,{columns:[{align:"c"}]})),Et(["multline","multline*"],"",Ys),Et(["align","align*","aligned","eqnarray"],"",Ys),Et("split","",Ys),Et(["gather","gathered"],"",Ys),Et(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Ys),Et(["smallmatrix","smallmatrix*"],"[columns:colspec]",Ys),Et(["cases","dcases","rcases"],"",Ys);function Dg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function Ah(a,y=1){return Dg(a)?Array(y).fill([[new pr({type:"first"}),new Gi]]):a.map(b=>b.length===0?[[new pr({type:"first"})]]:b.map(E=>E.length===0?[new pr({type:"first"})]:(E[0].type!=="first"&&E.unshift(new pr({type:"first"})),E)))}function Ys(a,y=[[[]]],b=[],E=[]){switch(y=Ah(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new la(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new la(a,y,b,{mathstyleName:"textstyle"});case"center":return new la(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new la(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new la(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new la(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Kc(E[0])});case"bmatrix":case"bmatrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Kc(E[0])});case"Bmatrix":case"Bmatrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Kc(E[0])});case"vmatrix":case"vmatrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Kc(E[0])});case"Vmatrix":case"Vmatrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Kc(E[0])});case"matrix":case"matrix*":return new la(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Kc(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new la(a,y,b,{mathstyleName:"scriptstyle",columns:Kc(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new la(a,y,b,{mathstyleName:a==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new la(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new la(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const pe of y)ee=Math.max(ee,pe.length);const re=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let oe=2;for(;oe<ee;)re.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),oe+=2;return re.push({gap:0}),new la(a,y,b,{arraycolsep:0,columns:re,minColumns:2})}}return new la(a,y,b,{mathstyleName:"textstyle"})}function Kc(a){return a!=null?a:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Ig(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof la);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof la)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ee=a.extractAtoms([a.position,a.lastOffset]),re=a.extractAtoms([0,a.position]);re.length===0&&(re=zf()),ee.length===0&&(ee=zf());let oe;return y.endsWith("column")?(oe=Ys("split",[[re,ee]]),a.root=oe,Wc(oe,0,0)?jc(a,oe,0,0):Wc(oe,0,1)?jc(a,oe,0,1):a.position=a.offsetOf(E)):(oe=Ys("lines",[[re],[ee]]),a.root=oe,Wc(oe,0,0)?jc(a,oe,0,0):Wc(oe,1,0)?jc(a,oe,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof ja){const ee=b.parent;let re=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),oe=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);oe.length===0&&(oe=zf()),re.length===0&&(re=zf());let pe="pmatrix";const ge=ee.leftDelim,be=ee.rightDelim;ge==="("&&(be===")"||be==="?")?pe="pmatrix":(ge==="["||ge==="\\lbrack")&&(be==="]"||be==="\\rbrack"||be==="?")?pe="bmatrix":ge==="\\vert"&&be==="\\vert"?pe="vmatrix":ge==="\\Vert"&&be==="\\Vert"?pe="Vmatrix":(ge==="{"||ge==="\\lbrace")&&(be==="."||be==="?")&&(pe="cases");const Ae=Ys(pe,y.endsWith("column")?[[oe,re]]:[[oe],[re]]);return ee.parent.addChildBefore(Ae,ee),ee.parent.removeChild(ee),Wc(Ae,0,0)?jc(a,Ae,0,0):y.endsWith("column")?Wc(Ae,0,1)?jc(a,Ae,0,1):a.position=a.offsetOf(b):Wc(Ae,1,0)?jc(a,Ae,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof la?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Wc(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Tg(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function jc(a,y,b,E){const ee=Tg(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function Rf(a,y,b,E,ee){const re=y.getCell(b,E);re&&a.setPositionHandlingPlaceholder(a.offsetOf(re[ee==="start"?0:re.length-1]))}function Ff(a,y){const[b,[E,ee]]=Ig(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),Rf(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),Rf(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),Rf(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),Rf(a,b,E,ee,"start");break}}function D0(a){return a.contentWillChange({inputType:"insertText"})?(Ff(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Og(a){return a.contentWillChange({inputType:"insertText"})?(Ff(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function I0(a){return a.contentWillChange({inputType:"insertText"})?(Ff(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Pg(a){return a.contentWillChange({inputType:"insertText"})?(Ff(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function T0(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",E=".";switch(y){case"pmatrix":case"pmatrix*":b="(",E=")";break;case"bmatrix":case"bmatrix*":b="[",E="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",E="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",E="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",E="\\Vert";break;case"matrix":case"matrix*":b=".",E=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":E="\\rbrace";break}const ee=a.at(a.position),re=ee.type==="array"?ee:a.parentEnvironment;return re.environmentName=y,re.leftDelim=b,re.rightDelim=E,a.contentDidChange({}),!0}function O0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof la);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof la){const E=b.parent,ee=b.parentBranch;let re;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const oe=E.getCell(Math.max(0,ee[0]-1),ee[1]);re=a.offsetOf(oe[oe.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const oe=E.getCell(ee[0],Math.max(0,ee[1]-1));re=a.offsetOf(oe[oe.length-1])}break}re&&a.setPositionHandlingPlaceholder(re)}}function Ng(a){return a.contentWillChange({inputType:"deleteContent"})?(O0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Rg(a){return a.contentWillChange({inputType:"deleteContent"})?(O0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}Ls({addRowAfter:D0,addColumnAfter:I0,addRowBefore:Og,addColumnBefore:Pg,removeRow:Ng,removeColumn:Rg,setEnvironment:T0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function zf(){return[new Gi]}var P0=class nm{constructor(y){this.recording=!1,this.model=y,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(y){y&&this.index>=0&&(this.stack[this.index].selection=y),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(y){return this.recording?(y&&y===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>nm.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};P0.maximumDepth=1e3;var Fg=P0;function kh(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(fe.test(a.at(y).value)){let re=y,oe;do oe=a.at(re).mode==="text"&&fe.test(a.at(re).value),re+=E;while(a.at(re)&&oe);ee=a.at(re)?re-2*E:re-E}else if(/\s/.test(a.at(y).value)){let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&/\s/.test(a.at(re).value);)re+=E;if(!a.at(re))ee=re-E;else{let oe=!0;do oe=a.at(re).mode==="text"&&!/\s/.test(a.at(re).value),re+=E;while(a.at(re)&&oe);ee=a.at(re)?re-2*E:re-E}}else{let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&!/\s/.test(a.at(re).value);)re+=E;ee=a.at(re)?re:re-E;let oe=!0;for(;a.at(re)&&oe;)oe=a.at(re).mode==="text"&&/\s/.test(a.at(re).value),oe&&(ee=re),re+=E;ee=a.at(re)?re-2*E:re-E}return ee-(E>0?0:1)}function Pu(a,y,b){var E,ee,re,oe,pe,ge,be;const Ae=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let _e=a.at(a.position);if(y==="forward"&&(_e.type==="subsup"?(_e=_e.rightSibling,_e||(_e=a.at(a.position+1))):_e=a.at(a.position+1)),!_e)return a.announce("plonk"),!1;let it=a.offsetOf(_e);if(_e instanceof al)it=kh(a,it,y);else if(_e instanceof ns)if(_e.isSuggestion)for(console.assert(y==="forward");_e&&_e instanceof ns;)_e.isSuggestion=!1,it=a.offsetOf(_e),_e=_e.rightSibling;else if(y==="forward"){if(_e=_e.rightSibling,!_e||!(_e instanceof ns))return a.announce("plonk"),!1;for(;_e&&_e instanceof ns&&/[a-zA-Z\*]/.test(_e.value);)it=a.offsetOf(_e),_e=_e.rightSibling}else{if(_e=_e.leftSibling,!_e||!(_e instanceof ns))return a.announce("plonk"),!1;for(;_e&&_e instanceof ns&&/[a-zA-Z\*]/.test(_e.value);)it=a.offsetOf(_e),_e=_e.leftSibling}else if(y==="forward"&&_e.type==="mopen"){let Pt=0;do _e.type==="mopen"?Pt+=1:_e.type==="mclose"&&(Pt-=1),_e=_e.rightSibling;while(!_e.isLastSibling&&Pt!==0);it=a.offsetOf(_e.leftSibling)}else if(y==="backward"&&_e.type==="mclose"){let Pt=0;do _e.type==="mopen"?Pt+=1:_e.type==="mclose"&&(Pt-=1),_e=_e.leftSibling;while(!_e.isFirstSibling&&Pt!==0);it=a.offsetOf(_e)}else if(y==="backward")if(_e.type==="first")for(;it>0&&_e.type==="first";)it-=1,_e=a.at(it);else{const Pt=_e.type;_e.type==="subsup"&&(it=a.offsetOf(a.at(it).leftSibling)),it-=1;let Ut=(ee=a.at(it))==null?void 0:ee.type;for(;it>=0&&Ut===Pt;)((re=a.at(it))==null?void 0:re.type)==="subsup"?it=a.offsetOf(a.at(it).leftSibling):it-=1,Ut=a.at(it).type}else{const{type:Pt}=_e;let Ut=(oe=a.at(it))==null?void 0:oe.type;const{lastOffset:Jn}=a;for(;it<=Jn&&(Ut===Pt||Ut==="subsup");){for(;((pe=a.at(it).rightSibling)==null?void 0:pe.type)==="subsup";)it=a.offsetOf(a.at(it).rightSibling);it+=1,Ut=(ge=a.at(it))==null?void 0:ge.type}it-=1}if((be=b==null?void 0:b.extend)!=null&&be){if(!a.setSelection(a.anchor,it))return a.announce("plonk"),!1}else{if(it===a.position)return a.announce("plonk"),!1;a.position=it}return a.announce("move",Ae),a.mathfield.stopCoalescingUndo(),!0}function Cl(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[pe,ge]=g0(a);pe!==void 0&&ge!==void 0&&a.deleteAtoms([pe,ge])}if(y==="upward")return _g(a,b);if(y==="downward")return Hg(a,b);if(b.extend){let pe=_f(a,a.position,y);pe<0&&(pe=0),pe>a.lastOffset&&(pe=a.lastOffset);const ge=a.setSelection(a.anchor,pe);return a.mathfield.stopCoalescingUndo(),ge}if(a.selectionIsPlaceholder){a.collapseSelection(y);const pe=Cl(a,y);return a.mathfield.stopCoalescingUndo(),pe}let re=a.position;const oe=re;if(a.collapseSelection(y)?(re=a.position,N0(a,re)||(re=_f(a,re,y))):re=_f(a,re,y),re<0||re>a.lastOffset){let pe=!0;return a.silenceNotifications||(pe=(ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0),pe&&a.announce("plonk"),pe}return a.setPositionHandlingPlaceholder(re),a.mathfield.stopCoalescingUndo(),a.announce("move",oe),!0}function _f(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||N0(a,y)?y:_f(a,y,b)}function N0(a,y){var b;const E=a.at(y);let ee=E.parent;for(;ee&&!ee.inCaptureSelection;)ee=ee.parent;return!(ee!=null&&ee.inCaptureSelection||(b=E.parent)!=null&&b.skipBoundary&&(!E.isFirstSibling&&E.isLastSibling||E.type==="first")||a.mathfield.hasEditablePrompts&&!E.parentPrompt)}function zg(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const re=Cu(a.getHTMLElement(y[ee])).right,oe=Math.abs(b-re);if(oe<=E)E=oe;else break}return y[ee-1]}function Hf(a,y,b,E,ee){const re=a.mathfield.hasEditablePrompts,oe=re?b.filter(be=>be.type==="prompt"&&!be.captureSelection):b,pe=Cu(a.mathfield.getHTMLElement(y)).right,ge=a.offsetOf(zg(a.mathfield,oe,pe))-(re?1:0);if(E){const[be,Ae]=a.selection.ranges[0];let _e;ge<(ee==="up"?be:Ae)?_e={ranges:[[ge,Ae]],direction:"backward"}:_e={ranges:[[be,ge]],direction:"forward"},a.setSelection(_e)}else a.setPositionHandlingPlaceholder(ge);a.announce(`move ${ee}`)}function _g(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const re=()=>{var ge,be;let Ae=!0;return a.silenceNotifications||(Ae=(be=(ge=a.mathfield.host)==null?void 0:ge.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?be:!0),a.announce(Ae?"plonk":"line"),Ae},oe=a.at(a.position);let pe=oe;for(;pe&&pe.parentBranch!=="below"&&!(Array.isArray(pe.parentBranch)&&pe.parent instanceof la);)pe=pe.parent;if(Array.isArray(pe==null?void 0:pe.parentBranch)&&pe.parent instanceof la){const ge=pe.parent;if(pe.parentBranch[0]<1)return re();const be=pe.parentBranch[0]-1,Ae=ge.array[be][pe.parentBranch[1]];if(!Ae.some(it=>it.type==="prompt"&&!it.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Hf(a,oe,Ae,ee,"up")}else if(pe){const ge=(E=pe.parent.branch("above"))!=null?E:pe.parent.createBranch("above");if(!ge.some(Ae=>Ae.type==="prompt"&&Ae.placeholderId)&&a.mathfield.hasEditablePrompts)return re();Hf(a,oe,ge,ee,"up")}else return re();return a.mathfield.stopCoalescingUndo(),!0}function Hg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const re=()=>{var ge,be;let Ae=!0;return a.silenceNotifications||(Ae=(be=(ge=a.mathfield.host)==null?void 0:ge.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?be:!0),a.announce(Ae?"plonk":"line"),Ae},oe=a.at(a.position);let pe=oe;for(;pe&&pe.parentBranch!=="above"&&!(Array.isArray(pe.parentBranch)&&pe.parent instanceof la);)pe=pe.parent;if(Array.isArray(pe==null?void 0:pe.parentBranch)&&pe.parent instanceof la){const ge=pe.parent;if(pe.parentBranch[0]+1>ge.array.length-1)return re();const be=pe.parentBranch[0]+1,Ae=ge.array[be][pe.parentBranch[1]];if(!Ae.some(it=>it.type==="prompt"&&!it.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Hf(a,oe,Ae,ee,"down")}else if(pe){const ge=(E=pe.parent.branch("below"))!=null?E:pe.parent.createBranch("below");if(!ge.some(Ae=>Ae.type==="prompt")&&a.mathfield.hasEditablePrompts)return re();Hf(a,oe,ge,ee,"down")}else return re();return!0}function R0(a){const y=a.position,b=a.at(y).parent;return b!=null&&b.parent?(a.position=a.offsetOf(b),a.mathfield.stopCoalescingUndo(),a.announce("move",y),!0):(a.announce("plonk"),!1)}function Kg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!1):E=!0,b=b.parent;return E?y:0}function Wg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!0):E=!1,b=b.parent;return E?y:0}function F0(a){var y;if(a.collapseSelection(),Kg(a)>=a.mathfield.options.scriptDepth[1])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=b.rightSibling)==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new Vs({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function z0(a){var y;if(a.collapseSelection(),Wg(a)>=a.mathfield.options.scriptDepth[0])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=a.at(a.position+1))==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new Vs({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 jg(){function a(ge){const be=[],Ae=[];return[...ge.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((it,Pt)=>{const Ut=E(it);Ut===0?be.push(it):Ae.push({documentOrder:Pt,tabIndex:Ut,node:it})}),Ae.sort((it,Pt)=>it.tabIndex===Pt.tabIndex?it.documentOrder-Pt.documentOrder:it.tabIndex-Pt.tabIndex).map(it=>it.node).concat(be)}function y(ge){return!(!b(ge)||ee(ge)||E(ge)<0)}function b(ge){return!(ge.disabled||ge.type==="hidden"&&ge.tagName.toUpperCase()==="INPUT"||pe(ge))}function E(ge){var be;const Ae=Number.parseInt((be=ge.getAttribute("tabindex"))!=null?be:"NaN",10);return Number.isNaN(Ae)?ge.contentEditable==="true"||(ge.nodeName==="AUDIO"||ge.nodeName==="VIDEO")&&ge.getAttribute("tabindex")===null?0:ge.tabIndex:Ae}function ee(ge){return ge.tagName.toUpperCase()==="INPUT"&&ge.type==="radio"&&!oe(ge)}function re(ge,be){for(const Ae of ge)if(Ae.checked&&Ae.form===be)return Ae;return null}function oe(ge){var be;if(!ge.name)return!0;const _e=((be=ge.form)!=null?be:ge.ownerDocument).querySelectorAll('input[type="radio"][name="'+ge.name+'"]'),it=re(_e,ge.form);return!it||it===ge}function pe(ge){if(!pt()||ge===document.activeElement||ge.contains(document.activeElement))return!1;if(getComputedStyle(ge).visibility==="hidden")return!0;const be=ge.getBoundingClientRect();if(be.width===0||be.height===0)return!0;for(;ge;){if(getComputedStyle(ge).display==="none")return!0;ge=ge.parentElement}return!1}return pt()?a(document.body):[]}function bs(a,y,b="forward"){const E=a.position;if(Array.isArray(y)){const ee=a.offsetOf(y[0]),re=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ee,re):a.setSelection(re,ee),a.announce("move",E),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?bs(a,[y.leftSibling,y]):bs(a,[y,y.leftSibling])}function ll(a,y){const b=a.position;if(typeof y=="number"&&(y=a.at(y)),y.type==="prompt")a.setSelection(a.offsetOf(y.firstChild),a.offsetOf(y.lastChild));else{const E=a.offsetOf(y);y.type==="placeholder"?a.setSelection(E-1,E):a.position=E}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function Kf(a,y,b=!0){var E,ee;const re=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Cl(a,y);let oe;const pe=a.at(a.anchor).parentPrompt;pe?y==="forward"?oe=a.offsetOf(pe)+1:oe=a.offsetOf(pe.leftSibling):oe=Math.max(a.position+re,0);const ge=Lh(a,oe,y);if(!ge||y==="forward"&&a.offsetOf(ge)<oe||y==="backward"&&a.offsetOf(ge)>oe){if(!b||!((ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ee))return a.announce("plonk"),!1;const Ae=jg();if(!document.activeElement||Ae.length<=1)return a.announce("plonk"),!1;let _e=Ae.indexOf(document.activeElement)+re;return _e<0&&(_e=Ae.length-1),_e>=Ae.length&&(_e=0),Ae[_e].focus(),a.mathfield.stopCoalescingUndo(),!0}return ll(a,ge),!0}function Lh(a,y=0,b="forward"){return a.findAtom(E=>E.type==="placeholder"||E.type==="prompt"||!a.mathfield.readOnly&&E.treeDepth>2&&E.isFirstSibling&&E.isLastSibling,y,b)}Ls({moveToOpposite:a=>{const y={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},b=a.at(a.position),{parent:E}=b;if(!E)return a.announce("plonk"),!1;const ee=b.parentBranch;let re;if(typeof ee=="string"&&(re=y[ee]),!re){const pe=b.subsupPlacement?z0(a):F0(a);return a.mathfield.stopCoalescingUndo(),pe}E.branch(re)||E.createBranch(re);const oe=a.setSelection(a.getBranchRange(a.offsetOf(E),re));return a.mathfield.stopCoalescingUndo(),oe},moveBeforeParent:a=>{const{parent:y}=a.at(a.position);return y?(a.position=a.offsetOf(y),a.mathfield.stopCoalescingUndo(),!0):(a.announce("plonk"),!1)},moveAfterParent:a=>R0(a),moveToNextChar:a=>Cl(a,"forward"),moveToPreviousChar:a=>Cl(a,"backward"),moveUp:a=>Cl(a,"upward"),moveDown:a=>Cl(a,"downward"),moveToNextWord:a=>Pu(a,"forward"),moveToPreviousWord:a=>Pu(a,"backward"),moveToGroupStart:a=>{const y=a.offsetOf(a.at(a.position).firstSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:a=>{const y=a.offsetOf(a.at(a.position).lastSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:a=>{var y,b,E,ee;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return Kf(a,"forward");const re=a.at(a.position);if(re.mode==="text"){if(a.selectionIsCollapsed){let it=re;for(;it&&it.mode==="text";)it=it.leftSibling;let Pt=re;for(;((y=Pt.rightSibling)==null?void 0:y.mode)==="text";)Pt=Pt.rightSibling;if(it&&Pt)return bs(a,[it,Pt])}if(re.rightSibling.mode==="text"){let it=re;for(;it&&it.mode==="text";)it=it.rightSibling;return it?(ll(a,(b=it.leftSibling)!=null?b:it),a.mathfield.switchMode("math"),!0):ll(a,a.lastOffset)}}const pe=a.at(a.anchor).parentPrompt,ge=pe?a.offsetOf(pe)+1:Math.max(a.position+1,0),be=Lh(a,ge,"forward");if(be)return ll(a,be);const Ae=_0(a,re,it=>it.type==="leftright"||it.type==="text","forward");if(Ae){if(Ae.mode==="text"){let it=Ae;for(;it&&it.mode==="text";)it=it.rightSibling;return bs(a,[(E=Ae.leftSibling)!=null?E:Ae,(ee=it.leftSibling)!=null?ee:it])}return bs(a,Ae)}const _e=re.parent;if(_e){if(_e.type==="leftright"||_e.type==="surd")return bs(a,_e);if(re.parentBranch==="superscript"&&_e.subscript)return bs(a,_e.subscript);if(re.parentBranch==="above"&&_e.below)return bs(a,_e.below);if(re.parentBranch==="superscript"||re.parentBranch==="subscript")return ll(a,_e);if(re.parentBranch==="above"||re.parentBranch==="below")return bs(a,_e)}return ll(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Kf(a,"backward");let b=a.at(a.position);const E=b.mode;if(E==="text"){if(a.selectionIsCollapsed){let pe=b;for(;pe&&pe.mode==="text";)pe=pe.leftSibling;let ge=b;for(;((y=ge.rightSibling)==null?void 0:y.mode)==="text";)ge=ge.rightSibling;if(pe&&ge)return bs(a,[pe,ge])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?ll(a,b):ll(a,0)}const ee=a.at(a.anchor).parentPrompt,re=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),oe=Lh(a,re,"backward");if(oe)return ll(a,oe);if(E==="math"){const pe=_0(a,b,be=>be.type==="leftright"||be.type==="text","backward");if(pe){if(pe.mode==="text"){let be=pe;for(;be&&be.mode==="text";)be=be.leftSibling;return bs(a,[pe,be])}return bs(a,pe)}const ge=b.parent;if(ge){if(ge.type==="leftright"||ge.type==="surd")return bs(a,ge);if(b.parentBranch==="subscript"&&ge.superscript)return bs(a,ge.superscript);if(b.parentBranch==="below"&&ge.above)return bs(a,ge.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return ll(a,ge);if(b.parentBranch==="above"||b.parentBranch==="below")return bs(a,ge)}return ll(a,0)}return!1},moveToMathfieldStart:a=>a.selectionIsCollapsed&&a.position===0?(a.announce("plonk"),!1):(a.position=0,a.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:a=>a.selectionIsCollapsed&&a.position===a.lastOffset?(a.announce("plonk"),!1):(a.position=a.lastOffset,a.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:F0,moveToSubscript:z0},{target:"model",changeSelection:!0}),Ls({moveToNextPlaceholder:a=>Kf(a,"forward"),moveToPreviousPlaceholder:a=>Kf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function _0(a,y,b,E){if(E==="forward"){let re=y.rightSibling;for(;re&&!b(re);)re=re.rightSibling;return re}let ee=y.leftSibling;for(;ee&&!b(ee);)ee=ee.leftSibling;return ee}function Wf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1,re="";for(;!ee;){const oe=a.at(E);ee=y===0||oe===void 0||oe.type==="first"||oe.mode!=="math"||!(oe.type&&/mord|mpunct|operator/.test(oe.type)||oe.type==="mop"&&/[a-zA-Z ]+/.test(oe.value))||!oe.hasEmptyBranch("superscript")||!oe.hasEmptyBranch("subscript")||typeof b=="function"&&!b(oe),ee||(oe.mode="text",oe.command=oe.value,oe.verbatimLatex=void 0,re+=oe.value),E-=1,y-=1}a.contentDidChange({data:re,inputType:"insertText"})}function Zc(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1;const re=[];for(;!ee;){const oe=a.at(E);ee=y===0||!oe||oe.type==="first"||oe.isFirstSibling||oe.mode!=="text"||oe.value===" "||typeof b=="function"&&!b(oe),ee||(re.push(pr.serialize([oe],{defaultMode:"math"})),oe.mode="math"),E-=1,y-=1}Bh(a),a.contentDidChange({data:ba(re),inputType:"insertText"})}function Bh(a){var y;let b=a.position-1;for(;b>=0&&((y=a.at(b))==null?void 0:y.mode)==="math";)b-=1;if(!(b<0)&&a.at(b).mode==="text"&&a.at(b).value===" "&&a.at(b-1).mode==="math"){a.at(b-1).parent.removeChild(a.at(b-1));const E=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=E,a.contentDidChange({inputType:"deleteContent"})}}function Zg(a){let y="",b=a.position,E=!1;for(;!E;){const ee=a.at(b);E=!(ee&&(ee.mode==="text"||ee.mode==="math"&&ee.type&&/mord|mpunct/.test(ee.type))),E||(y=ee.value+y),b-=1}return y}function Ug(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!Sf(b))return!1;const ee=Lu(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const re=Zg(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(re)&&Zc(E,1),!0;const oe={")":"(","}":"{","]":"["}[ee],{parent:pe}=E.at(E.position);if(oe&&pe instanceof ja&&pe.leftDelim===oe)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(re))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ee))return!0;if(/(^|[^a-zA-Z'])[a-zA-Z] $/.test(re))return Zc(E,1),!1;if(/\D\.[^\d\s]$/.test(re)){Zc(E,1);const ge=E.at(E.position);return ge.value="\u22C5",ge.style.variant="normal",ge.command="\\cdot",ge.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(re)||/\.\d$/.test(re)||/\([\d+\-.]$/.test(re))return Zc(E,1),!0;if(/\([a-z][,;]$/.test(re))return Zc(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Bh(E),!0}else{if(y==="[Space]")return Wf(E,void 0,oe=>/[a-z][:,;.]$/.test(oe.value)),!0;if(/[a-zA-Z]{3,}$/.test(re)&&!/(dxd|abc|xyz|uvw)$/.test(re))return Wf(E,void 0,oe=>/[a-zA-Z]/.test(oe.value)),!0;if(/(^|\W)(if)$/i.test(re))return Wf(E,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(re)&&!/(αβγ)$/.test(re))return Wf(E,void 0,oe=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(oe.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(re))return!0}return!1}function Vg(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=H0(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(vh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function Gg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=H0();y.innerHTML=""}else{const y=Mf("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function H0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(ks("keystroke-caption"),ks("core"),Mf("mathlive-keystroke-caption-panel"))}function Yg(){document.getElementById("mathlive-keystroke-caption-panel")&&(bh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function K0(a,y){var b,E,ee;const{model:re}=a,oe=p0(y);if(y.isTrusted){Fm(y);const Pt=kd();a.keyboardLayout!==Pt.id&&(a.keyboardLayout=Pt.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Vg(a,oe),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let pe,ge="",be;const Ae=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(re.mode==="math")if(oe==="[Backspace]")Ae.pop();else if(!Sf(y))a.flushInlineShortcutBuffer();else{const Pt=Lu(y),Ut=[...(E=(b=Ae[Ae.length-1])==null?void 0:b.keystrokes)!=null?E:[],Pt];Ae.push({state:re.getState(),keystrokes:Ut,leftSiblings:Xg(a)});let Jn=0,Ur="";for(;!pe&&Jn<Ut.length;)be=Ae.length-(Ut.length-Jn),Ur=Ut.slice(Jn).join(""),pe=dd(Ae[be].leftSiblings,Ur,a.options.inlineShortcuts),!pe&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Ur)&&(pe=a.options.onInlineShortcut(a,Ur)),Jn+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(pe?a.switchMode("math"):Ug(a,oe,y)&&(a.switchMode({math:"text",text:"math"}[re.mode]),ge=""))}if(!pe){if(ge||(ge=Zm(a.keybindings,re.mode,y)),!ge&&(oe==="[Enter]"||oe==="[Return]")){let Pt=!1;return re.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(Pt=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Pt||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),re.contentDidChange({inputType:"insertLineBreak"})),Pt}if((!ge||oe==="[Space]")&&re.mode==="math"){if(oe==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return aa.insert(re,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ge="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const Pt=re.at(re.position+1),Ut=re.at(re.position-1);if((Pt==null?void 0:Pt.mode)==="text"||(Ut==null?void 0:Ut.mode)==="text")return aa.insert(re," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ee=re.at(re.position))!=null&&ee.isDigit()&&window.MathfieldElement.decimalSeparator===","&&Lu(y)===","&&(ge="insertDecimalSeparator")}}if(!pe&&!ge){if(re.mathfield.smartFence){if(Ih(re,Lu(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:Pt}=re.at(re.position);if(Pt instanceof ja&&Pt.rightDelim==="?"&&re.at(re.position).isLastSibling&&/^[)}\]|]$/.test(oe))return a.snapshot(),Pt.isDirty=!0,Pt.rightDelim=oe,re.position+=1,re.selectionDidChange(),re.contentDidChange({data:Lu(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!re.selectionIsCollapsed){const Ut=Lu(y);if(Ut==="("||Ut==="{"||Ut==="["){const Jn={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Ut],Ur={"(":")","{":"\\rbrace","[":"\\rbrack"}[Ut],[Zn,Mr]=Go(re.selection);return a.snapshot(),re.position=Mr,aa.insert(re,Ur,{format:"latex"}),re.position=Zn,aa.insert(re,Jn,{format:"latex"}),re.setSelection(Zn+1,Mr+1),re.contentDidChange({data:Ut,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const _e=re.at(Math.max(re.position,re.anchor)),{parent:it}=_e;if(ge==="moveAfterParent"&&(it==null?void 0:it.type)==="leftright"&&_e.isLastSibling&&a.options.smartFence&&Ih(re,".",a.defaultStyle)&&(ge="",Eo(a)),a.keyboardDelegate.cancelComposition(),ge)a.executeCommand(ge);else if(pe){const Pt=a.effectiveStyle;re.setState(Ae[be].state);const Ut=Ae[Ae.length-1].keystrokes;for(const Jn of Ut)aa.insert(re,Jn,{silenceNotifications:!0,style:Pt});a.snapshot("insert-shortcut"),re.setState(Ae[be].state),re.deferNotifications({content:!0,selection:!0,data:pe,type:"insertText"},()=>(aa.insert(re,pe,{format:"latex",style:Pt}),Bh(a.model),pe.endsWith(" ")&&(a.switchMode("text"),aa.insert(re," ",{style:Pt,mode:"text"})),a.snapshot(),re.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,re.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Dh(a,y,b){const{model:E}=a;if(!a.isSelectionEditable){E.announce("plonk");return}b!=null||(b={}),b.focus&&a.focus(),b.feedback&&window.MathfieldElement.playSound("keypress"),typeof b.mode=="string"&&(a.switchMode(b.mode),a.snapshot());let ee=rf(y);const re=window.mathVirtualKeyboard;if(re!=null&&re.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(ge=>ge.toUpperCase())),b.simulateKeystroke){let ge=!0;for(const be of ee)K0(a,new KeyboardEvent("keypress",{key:be}))&&(ge=!1);if(ge)return}const oe=E.at(E.position),pe=xe(xe({},oe.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(Go(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Ef(a);for(const ge of ee)aa.insert(E,ge);a.snapshot("insert-latex"),Bd(a)});else if(E.mode==="text"){for(const ge of ee)aa.insert(E,ge,{style:pe});a.snapshot("insert-text")}else if(E.mode==="math")for(const ge of ee)Qg(a,ge,pe,oe);a.dirty=!0,a.scrollIntoView()}function Xg(a){const y=a.model,b=[];let E=y.at(Math.min(y.position,y.anchor));for(;E.type!=="first";)b.push(E),E=E.leftSibling;return b}function Qg(a,y,b,E){const ee=a.model;let re={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(re=["insert",a.options.mathModeSpace]),re){a.executeCommand(re);return}if(/\d/.test(y)&&a.options.smartSuperscript&&E.parentBranch==="superscript"&&E.parent.type!=="mop"&&E.parent.type!=="operator"&&E.parent.type!=="extensible-symbol"&&E.hasNoSiblings){Jg(ee),aa.insert(ee,y,{style:b}),a.snapshot(),R0(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const oe=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(oe==null?void 0:oe.type)==="mord"&&/[a-zA-Z0-9]/.test(oe.value)&&(b=xe({},b),oe.style.variant&&(b.variant=oe.style.variant),oe.style.variantStyle&&(b.variantStyle=oe.style.variantStyle))}aa.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Jg(a){a.selectionIsCollapsed||(a.deleteAtoms(Go(a.selection)),a.mathfield.snapshot("delete"))}function Ih(a,y,b){if(!y||a.mode!=="math")return!1;const E=a.at(a.position),{parent:ee}=E,re={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!re)return!1;const oe=te[re],pe=ne[re];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[ge,be]=Go(a.selection),Ae=a.extractAtoms([ge,be]),_e=ee.addChildrenAfter([new ja("left...right",Ae,{leftDelim:re,rightDelim:pe})],a.at(ge));return a.setSelection(a.offsetOf(_e.firstChild),a.offsetOf(_e.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(re==="|"){const ge=ee instanceof ja?ee.leftDelim+ee.rightDelim:"";if(ge==="\\lbrace\\rbrace"||ge==="\\{\\}"||ge==="\\lbrace?")return a.mathfield.snapshot(),aa.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(pe){if(ee instanceof ja&&ee.firstChild===E&&(ee.leftDelim==="?"||ee.leftDelim==="."))return ee.leftDelim=re,ee.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ee instanceof ja)){let _e=E;for(;_e&&!(_e.type==="mclose"&&_e.value===pe);)_e=_e.rightSibling;if(_e){a.mathfield.snapshot();const it=a.extractAtoms([a.offsetOf(E),a.offsetOf(_e)]);return it.pop(),ee.addChildrenAfter([new ja("left...right",it,{leftDelim:re,rightDelim:pe})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const ge=a.offsetOf(E.lastSibling);let be;for(be=a.position;be<=ge;be++){const _e=a.at(be);if(_e instanceof ja&&(_e.leftDelim==="?"||_e.leftDelim===".")&&W0(re,_e.rightDelim))break}const Ae=a.at(be);if(be<=ge&&Ae instanceof ja){Ae.leftDelim=re,a.mathfield.snapshot();let _e=a.extractAtoms([a.position,be-1]);return _e=_e.filter(it=>it.type!=="first"),Ae.addChildren(_e,Ae.parentBranch),a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof ja&&(ee.leftDelim==="?"||ee.leftDelim===".")&&W0(re,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=re,a.mathfield.snapshot();const _e=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const it of _e)ee.parent.addChildBefore(it,ee);return a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof ja&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),aa.insert(a,`\\left${re}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const _e=a.offsetOf(E.lastSibling),it=a.extractAtoms([a.position,_e]);a.at(a.position).body=it,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(oe){let ge=E;for(;ge;){if(ge.type==="mopen"&&ge.value===oe){a.mathfield.snapshot();const Pt=ge.leftSibling,Ut=a.extractAtoms([a.offsetOf(ge.leftSibling),a.offsetOf(E)]);Ut.shift();const Jn=new ja("left...right",Ut,{leftDelim:oe,rightDelim:re});return ee.addChildrenAfter([Jn],Pt),a.position=a.offsetOf(Jn),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ge=ge.leftSibling}if(ee instanceof ja&&E.isLastSibling&&Th(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const be=a.offsetOf(E.firstSibling);let Ae;for(Ae=a.position;Ae>=be;Ae--){const Pt=a.at(Ae);if(Pt instanceof ja&&(Pt.rightDelim==="?"||Pt.rightDelim===".")&&Th(Pt.leftDelim,re))break}const _e=a.at(Ae);if(Ae>=be&&_e instanceof ja)return a.mathfield.snapshot(),_e.rightDelim=re,_e.addChildren(a.extractAtoms([Ae,a.position]),_e.parentBranch),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof ja&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Th(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,ee.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(E.lastSibling)]),ee.parentBranch),a.position=a.offsetOf(ee),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const it=ee.parent;return it instanceof ja&&(it.rightDelim==="?"||it.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(it),Ih(a,re,b)):!1}return!1}function Th(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ne[a]===y:!0}function W0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):te[y]===a:!0}Ls({undo:a=>(a.undo(),!0),redo:a=>(a.redo(),!0),scrollIntoView:a=>(a.scrollIntoView(),!0),scrollToStart:a=>(a.field.scroll(0,0),!0),scrollToEnd:a=>{const y=a.field.getBoundingClientRect();return a.field.scroll(y.left-window.scrollX,0),!0},toggleKeystrokeCaption:Gg,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,E)=>(a.switchMode(y,b,E),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Dh(a,y,b),!0),insertDecimalSeparator:a=>{const y=a.model;return y.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&y.at(Math.max(y.position,y.anchor)).isDigit()?(a.insert("{,}",{format:"latex"}),a.snapshot("insert-mord"),!0):(a.insert("."),!0)},commit:a=>{var y;return a.model.contentWillChange({inputType:"insertLineBreak"})&&((y=a.host)==null||y.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(a,y,b)=>{const E=a.getPrompts();let ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),re=0;for(;E.includes(ee)&&re<100;){if(re===99)return console.error("could not find a unique ID after 100 tries"),!1;ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),re++}return a.insert(`\\placeholder[${y!=null?y:ee}]{}`,b),!0}}),Ls({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"}),Ls({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})&&(Bd(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Eo(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=Oh(a,y),{model:E}=a;return E.selectionIsCollapsed?(a.defaultStyle.fontSeries&&b.fontSeries===a.defaultStyle.fontSeries&&(b.fontSeries="auto"),b.fontShape&&b.fontShape===a.defaultStyle.fontShape&&(b.fontShape="auto"),b.color&&b.color===a.defaultStyle.color&&(b.color="none"),b.backgroundColor&&b.backgroundColor===a.defaultStyle.backgroundColor&&(b.backgroundColor="none"),b.fontSize&&b.fontSize===a.defaultStyle.fontSize&&(b.fontSize="auto"),a.defaultStyle=xe(xe({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ee=>Mh(E,ee,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}Ls({applyStyle:qg},{target:"mathfield",canUndo:!0,changeContent:!0});function Oh(a,y){var b,E,ee,re,oe,pe,ge,be,Ae,_e;const it={};if(typeof y.color=="string"){const Ut=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";Ut!==y.color&&(it.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),it.color=Ut}if(typeof y.backgroundColor=="string"){const Ut=(oe=a.backgroundColorMap((re=y.backgroundColor)!=null?re:y.verbatimBackgroundColor))!=null?oe:"none";Ut!==y.backgroundColor&&(it.verbatimBackgroundColor=(pe=y.verbatimBackgroundColor)!=null?pe:y.backgroundColor),it.backgroundColor=Ut}typeof y.fontFamily=="string"&&(it.fontFamily=y.fontFamily),typeof y.series=="string"&&(it.fontSeries=y.series),typeof y.fontSeries=="string"&&(it.fontSeries=y.fontSeries.toLowerCase()),it.fontSeries&&(it.fontSeries=(ge={bold:"b",medium:"m",normal:"m"}[it.fontSeries])!=null?ge:it.fontSeries),typeof y.shape=="string"&&(it.fontShape=y.shape),typeof y.fontShape=="string"&&(it.fontShape=y.fontShape.toLowerCase()),it.fontShape&&(it.fontShape=(be={italic:"it",up:"n",upright:"n",normal:"n"}[it.fontShape])!=null?be:it.fontShape),y.variant&&(it.variant=y.variant.toLowerCase()),y.variantStyle&&(it.variantStyle=y.variantStyle.toLowerCase());const Pt=(Ae=y.size)!=null?Ae:y.fontSize;return typeof Pt=="number"?it.fontSize=Math.max(1,Math.min(10,Pt)):typeof Pt=="string"&&(it.fontSize=(_e={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Pt.toLowerCase()])!=null?_e:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Pt]),it}function Ph(a){let[y,b]=Go(a.selection);if(y=j0(a,y,"backward"),b=j0(a,b,"forward"),y===b){const E=a.at(y);if(E.type==="leftright")return a.setSelection(a.offsetOf(E.firstChild)-1,b);if(E.type==="first"&&(E.parent.type==="leftright"||E.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(E.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function j0(a,y,b){var E,ee,re;let oe=a.at(y);if(!oe)return y;const pe=b==="forward"?1:-1;if(oe.mode==="text"){for(;oe&&!(oe.mode!=="text"||!fe.test(oe.value));)y+=pe,oe=a.at(y);return b==="backward"?y-1:y}if(oe.mode==="latex"){if(/[a-zA-Z\*]/.test(oe.value))if(b==="backward")for(;oe&&oe.mode==="latex"&&oe.value!=="\\"&&/[a-zA-Z]/.test(oe.value);)y+=pe,oe=a.at(y);else for(;oe&&oe.mode==="latex"&&/[a-zA-Z\*]/.test(oe.value);)y+=pe,oe=a.at(y);else if(oe.value==="{"){if(b==="forward"){for(;oe&&oe.mode==="latex"&&oe.value!=="}";)y+=pe,oe=a.at(y);return y}return y-1}else if(oe.value==="}"){if(b==="backward"){for(;oe&&oe.mode==="latex"&&oe.value!=="{";)y+=pe,oe=a.at(y);return y-1}return y}return y-1}if(oe.mode==="math"){if(oe.isDigit()){for(;(E=a.at(y+pe))!=null&&E.isDigit();)y+=pe;return b==="backward"?y-1:y}if(oe.style.variant||oe.style.variantStyle){let ge=(ee=a.at(y))==null?void 0:ee.style;for(;ge&&ge.variant===oe.style.variant&&ge.variantStyle===oe.style.variantStyle;)ge=(re=a.at(y+pe))==null?void 0:re.style,y+=pe;return b==="backward"?y-1:y}return y}return y}Ls({selectGroup:a=>{const y=Ph(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Cl(a,"forward",{extend:!0}),extendSelectionBackward:a=>Cl(a,"backward",{extend:!0}),extendToNextWord:a=>Pu(a,"forward",{extend:!0}),extendToPreviousWord:a=>Pu(a,"backward",{extend:!0}),extendSelectionUpward:a=>Cl(a,"upward",{extend:!0}),extendSelectionDownward:a=>Cl(a,"downward",{extend:!0}),extendToNextBoundary:a=>Pu(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>Pu(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 Uc=null,Nd=0,jf=class Qs{static start(y,b,E,ee){var re;Qs.element=y,(re=Qs.controller)==null||re.abort(),Qs.controller=new AbortController;const oe={signal:Qs.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,oe),y.addEventListener("pointerup",ee,oe),y.addEventListener("pointercancel",ee,oe),Nh(b)&&(Qs.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,oe),window.addEventListener("blur",ee,oe),window.addEventListener("mouseup",ee,oe))}static stop(){var y;(y=Qs.controller)==null||y.abort(),Qs.controller=void 0,typeof Qs.pointerId=="number"&&(Qs.element.releasePointerCapture(Qs.pointerId),Qs.pointerId=void 0)}};function Nh(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function Z0(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ee,re=!1,oe=!1,pe="none",ge=!1,be=!1;const Ae=y.clientX,_e=y.clientY,it=Date.now(),Pt=E.field,Ut=setInterval(()=>{ge?Pt.scroll({top:0,left:Pt.scrollLeft-16}):be&&Pt.scroll({top:0,left:Pt.scrollLeft+16})},32);function Jn(){jf.stop(),re=!1,clearInterval(Ut),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Ur(Mr){if(!E.hasFocus()){Jn();return}const Gr=Mr.clientX,Tr=Mr.clientY,bi=Nh(Mr)&&Mr.pointerType==="touch"?20:5;if(Date.now()<it+500&&Math.abs(Ae-Gr)<bi&&Math.abs(_e-Tr)<bi){Mr.preventDefault(),Mr.stopPropagation();return}const Zi=Pt.getBoundingClientRect();be=Gr>Zi.right,ge=Gr<Zi.left;let Ii=ee;Nh(Mr)&&(Mr.isPrimary||(Ii=Rd(E,Mr.clientX,Mr.clientY,{bias:0})));const Ra=Rd(E,Gr,Tr,{bias:Gr<=Ae?Gr===Ae?0:-1:1});Ii>=0&&Ra>=0&&(E.model.extendSelectionTo(Ii,Ra),Eo(a)),oe&&Ph(E.model)}Uc&&Math.abs(Uc.x-Ae)<5&&Math.abs(Uc.y-_e)<5&&Date.now()<Uc.time+500?(Nd+=1,Uc.time=it):(Uc={x:Ae,y:_e,time:it},Nd=1);const Zn=Pt.getBoundingClientRect();if(Ae>=Zn.left&&Ae<=Zn.right&&_e>=Zn.top&&_e<=Zn.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=Rd(a,Ae,_e,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const Mr=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),v0(a.model)||Mr?pe="all":pe="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),pe="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),pe="selection"):(a.model.position=ee,v0(a.model)?pe="all":pe="selection");a.defaultStyle={},y.detail===3||Nd>2?(Jn(),(y.detail===3||Nd===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},pe="all")):re||(re=!0,jf.start(Pt,y,Ur,Jn),(y.detail===2||Nd===2)&&(oe=!0,Ph(a.model),pe="all"))}a.hasFocus()||(pe="none",a.focus({preventScroll:!0}))}else Uc=null;a.stopCoalescingUndo(),pe!=="none"&&(a.model.selectionIsCollapsed&&(pe="all"),Eo(a)),y.preventDefault()}function $g(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const E=a-(b.left+b.right)/2,ee=y-(b.top+b.bottom)/2;return E*E+ee*ee}function U0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const re=lc(a,b);if(!re)return[1/0,null];let oe=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=re.left&&E<=re.right)for(const pe of b.children){const ge=U0(a,y,pe,E,ee);ge[0]<=oe[0]&&(oe=ge)}return oe[1]||(oe=[$g(E,ee,re),b]),y.set(b.id,oe),oe}function ev(a,y,b){const[,E]=U0(a,new Map,a.model.root,y,b);return E}function Rd(a,y,b,E){var ee;const re=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!re)return 0;if(y>re.right||b>re.bottom+8)return a.model.lastOffset;if(y<re.left||b<re.top-8)return 0;E=E!=null?E:{},E.bias=(ee=E.bias)!=null?ee:0;let oe=ev(a,y,b);const pe=[];let ge=oe;for(;ge;)pe.unshift(ge),ge=ge.parent;for(const Ae of pe)if(Ae.captureSelection){oe=Ae;break}let be=a.model.offsetOf(oe);if(be<0)return-1;if(oe.leftSibling)if(E.bias===0&&oe.type!=="placeholder"){const Ae=lc(a,oe);Ae&&y<(Ae.left+Ae.right)/2&&(be=a.model.offsetOf(oe.leftSibling))}else E.bias<0&&(be=a.model.offsetOf(oe.leftSibling));return be}var tv=class extends aa{constructor(){super("math")}onPaste(a,y){if(!y||!a.model.contentWillChange({data:typeof y=="string"?y:null,dataTransfer:typeof y=="string"?null:y,inputType:"insertFromPaste"}))return!1;let b="",E="auto",ee=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ee)try{const re=JSON.parse(ee);if(re&&Array.isArray(re)){a.snapshot();const oe=dc(re),{model:pe}=a;pe.selectionIsCollapsed||pe.deleteAtoms(Go(pe.selection));const ge=pe.at(pe.position);if(ge.parent instanceof la){console.assert(ge.parentBranch!==void 0);const be=[];let Ae=[];oe[0].type==="first"&&oe.shift(),oe[oe.length-1].type==="first"&&oe.pop();for(const Ut of oe)Ut.type==="first"&&Ae.length>0?(be.push(Ae),Ae=[Ut]):Ae.push(Ut);Ae.length>0&&be.push(Ae);let _e=Number(ge.parentBranch[0]),it=Number(ge.parentBranch[1]);const Pt=ge.parent.maxColumns;for(;ge.parent.colCount-it<be.length&&ge.parent.colCount<Pt;)ge.parent.addColumn();ge.parent.addChildrenAfter(be[0],ge);for(let Ut=1;Ut<be.length;Ut++)it++,it>=Pt&&(it=0,ge.parent.addRowAfter(_e),_e++),ge.parent.setCell(_e,it,be[Ut])}else ge.parent.addChildrenAfter(oe.filter(be=>be.type!=="first"),ge);return pe.position=pe.offsetOf(oe[oe.length-1]),pe.contentDidChange({inputType:"insertFromPaste"}),Eo(a),!0}}catch(re){}if(ee=typeof y!="string"?y.getData("application/json"):"",ee&&window.MathfieldElement.computeEngine)try{const re=JSON.parse(ee);if(typeof re=="object"&&"latex"in re&&re.latex&&(b=re.latex),!b){const oe=window.MathfieldElement.computeEngine.box(re);oe&&!oe.has("Error")&&(b=oe.latex)}b||(E="latex")}catch(re){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(E="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let re;return[re,b]=yl(b),E==="auto"&&re&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),Eo(a)),a.startRecording(),!0}return!1}insert(a,y,b){var E,ee;const re=typeof y=="string"?y:(ee=(E=window.MathfieldElement.computeEngine)==null?void 0:E.box(y).latex)!=null?ee:"";if(!b.silenceNotifications&&!a.contentWillChange({data:re,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:oe}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const pe=a.silenceNotifications;a.silenceNotifications=!0;const ge={"?":"\\placeholder{}","@":"\\placeholder{}"};ge[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Go(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 be=-1;ge[0]?ge["@"]=ge[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(be=rv(a),be>=0&&(ge["@"]=a.getValue(be,a.position,"latex"))),ge[0]||(ge[0]=ge["?"]);let Ae=!1;const _e=Gr=>(Ae=!0,ge[Gr]);let[it,Pt]=V0(a,y,_e,b);if(!Pt)return!1;const Ut=Pt.length===1&&Pt[0].type==="genfrac";Ut&&be>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ge["@"]=ge["?"],Ae=!1,[it,Pt]=V0(a,y,_e,b)):be>=0&&a.deleteAtoms([be,a.position]);const{parent:Jn}=a.at(a.position),Ur=Jn.hasEmptyBranch("body");if(Ut&&it!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Jn instanceof ja&&Jn.leftDelim==="("&&Ur){const Gr=Jn.parent,Tr=Jn.parentBranch;Gr.removeChild(Jn),Gr.setChildren(Pt,Tr)}const Zn=a.at(a.position);Zn.parent.addChildrenAfter(Pt,Zn),it==="latex"&&typeof y=="string"&&(Jn==null?void 0:Jn.type)==="root"&&Ur&&!Ae&&(Jn.verbatimLatex=y),a.silenceNotifications=pe;const Mr=Pt[Pt.length-1];if(b.selectionMode==="placeholder"){const Gr=Pt.flatMap(Tr=>[Tr,...Tr.children]).find(Tr=>Tr.type==="placeholder");if(Gr){const Tr=a.offsetOf(Gr);a.setSelection(Tr-1,Tr),a.announce("move")}else Mr&&(a.position=a.offsetOf(Mr))}else b.selectionMode==="before"||(b.selectionMode==="after"?Mr&&(a.position=a.offsetOf(Mr)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(Mr)));return a.contentDidChange({data:re,inputType:"insertText"}),a.silenceNotifications=oe,!0}};function V0(a,y,b,E){var ee;let re,oe=[];if(typeof y!="string"||E.format==="math-json"){const pe=window.MathfieldElement.computeEngine;if(!pe)return["math-json",[]];[re,y]=["latex",pe.box(y).latex],oe=Xo(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([re,y]=Pc(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),oe=Xo(y,{context:a.mathfield.context}),re!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Zf(oe)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([re,y]=Pc(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=yl(y)),oe=Xo(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Zf(oe));return hc(oe,E.style),[re!=null?re:"latex",oe]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof ja&&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 ja&&b.leftDelim==="("){let E=0,ee=0,re=0;for(let oe=0;b.body[oe];oe++)b.body[oe].type==="genfrac"&&(E++,ee=oe),re++;re===0&&E===1&&(a[y]=b.body[ee])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){Zf(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof la)for(const b of y.cells)Zf(b)}}}function rv(a){let y=a.at(a.position);if(y.mode==="text"){for(;!y.isFirstSibling&&y.mode==="text";)y=y.leftSibling;return a.offsetOf(y)}const b=y;let E=!1;if(y.type==="mclose"){const ee=te[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ee);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),E=!0}else y.type==="leftright"&&(y=y.leftSibling,E=!0);if(E)for(;!y.isFirstSibling&&(y.isFunction||G0(y));)y=y.leftSibling;else{const ee=[];for(;!y.isFirstSibling&&(G0(y)||ee.length>0);)y.type==="mclose"&&ee.unshift(y.value),y.type==="mopen"&&ee.length>0&&y.value===te[ee[0]]&&ee.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function G0(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new tv;var iv=class extends aa{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"),Eo(a)),a.startRecording(),!0):!1}insert(a,y,b={}){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Go(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const re=av(y,a.mathfield.context);if(hc(re,b.style),!re)return!1;const oe=a.at(a.position),pe=oe.parent.addChildrenAfter(re,oe);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(pe)):pe&&(a.position=a.offsetOf(pe))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function av(a,y){return a=a.replace(/\\/g,"\\textbackslash "),a=a.replace(/#/g,"\\#"),a=a.replace(/\$/g,"\\$"),a=a.replace(/%/g,"\\%"),a=a.replace(/&/g,"\\&"),a=a.replace(/_/g,"\\_"),a=a.replace(/{/g,"\\textbraceleft "),a=a.replace(/}/g,"\\textbraceright "),a=a.replace(/lbrace/g,"\\textbraceleft "),a=a.replace(/rbrace/g,"\\textbraceright "),a=a.replace(/\^/g,"\\textasciicircum "),a=a.replace(/~/g,"\\textasciitilde "),a=a.replace(/£/g,"\\textsterling "),Xo(a,{context:y,parseMode:"text"})}new iv;function El(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var fo=4,Cs=20,zo=2*(Cs+fo),Uf=(a,y)=>`
<line x1="${a+Cs}" y1="${y+Cs}"
x2="${a>y?a+Cs:7*Cs+10*fo}"
y2="${a<y?y+Cs:7*Cs+10*fo}"/>
<svg id="plus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
</svg>`,Y0=(a,y)=>`
<line x1="${a+Cs}" y1="${y+Cs}"
x2="${a>y?a+Cs:7*Cs+10*fo}"
y2="${a<y?y+Cs:7*Cs+10*fo}"/>
<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>`,Vf=(a,y,b)=>`
<svg id="arrow" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<g transform="rotate(${b})" transform-origin="20 20">
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
</g>
</svg>`,ov=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*Cs+10*fo+5} ${8*Cs+10*fo+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${zo+fo}"
height="${3*zo}"
width="${zo}"
rx="${zo/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${zo+fo}"
y="0"
height="${zo}"
width="${3*zo}"
rx="${zo/2}"/>
<g data-command='"moveDown"'>
${Vf(2*(fo+zo),2*fo+3*zo,0)}
</g>
<g data-command='"moveUp"'>
${Vf(2*(fo+zo),2*fo+zo,180)}
</g>
<g data-command='"moveToNextWord"'>
${Vf(2*fo+3*zo,2*(fo+zo),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${Vf(2*fo+zo,2*(fo+zo),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${Uf(2*fo+zo,fo)}
</g>
<g data-command='"removeColumn"'>
${Y0(2*fo+2*zo,fo)}
</g>
<g data-command='"addColumnAfter"'>
${Uf(2*fo+3*zo,fo)}
</g>
<g data-command='"addRowBefore"'>
${Uf(fo,2*fo+zo)}
</g>
<g data-command='"removeRow"'>
${Y0(fo,2*fo+2*zo)}
</g>
<g data-command='"addRowAfter"'>
${Uf(fo,2*fo+3*zo)}
</g>
</svg>`,sv=a=>`
<svg id="matrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","matrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,lv=a=>`
<svg id="pmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","pmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,X0=a=>`
<svg id="Bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","Bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,cv=a=>`
<svg id="bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4h-3v16h3"/>
<path class="cls-2" d="m22,4h3v16h-3"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,uv=a=>`
<svg id="vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
</svg>`,dv=a=>`
<svg id="Vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
data-command='["setEnvironment","Vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
</svg>`,fv=a=>`
<svg id="cases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","cases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<circle cx="13" cy="8" r="1"/>
<circle cx="13" cy="16" r="1"/>
<circle cx="21" cy="8" r="1"/>
<circle cx="21" cy="16" r="1"/>
</svg>`,hv=a=>`
<svg id="rcases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","rcases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
<circle cx="15" cy="8" r="1"/>
<circle cx="15" cy="16" r="1"/>
<circle cx="7" cy="8" r="1"/>
<circle cx="7" cy="16" r="1"/>
</svg>`,Rh={matrix:sv,pmatrix:lv,bmatrix:cv,Bmatrix:X0,vmatrix:uv,Vmatrix:dv},Fh={cases:fv,rcases:hv,Bmatrix:X0};function pv(a){var y,b;const E=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!E)return;let ee=0;E.forEach(Ut=>{(!ee||Ut.length>ee)&&(ee=Ut.length)});let re=document.getElementById("mathlive-environment-popover");re||(re=Mf("mathlive-environment-popover"),ks("environment-popover"),ks("core"),re.setAttribute("aria-hidden","true"));let oe;const pe=re.querySelector(".MLEP__environment-controls");pe?oe=pe:(oe=document.createElement("div"),re.innerHTML="",re.appendChild(oe)),oe.className="MLEP__environment-controls",oe.style.display="flex",oe.style.width="100%",oe.style.height="100%",oe.style.boxSizing="border-box",oe.innerHTML=ov;let ge=[],be="";const Ae=a.model.parentEnvironment.environmentName;if(us(Ae)){const Ut=gv(Ae);be=Rh[Ut]("active");const Jn=Rh,{[Ut]:Ur}=Jn,Zn=st(Jn,[Ie(Ut)]);ge=Object.values(Zn).map(Mr=>Mr("inactive"))}else if(ds(Ae)){const Ut=vv(Ae);be=Fh[Ut]("active");const Jn=Fh,{[Ut]:Ur}=Jn,Zn=st(Jn,[Ie(Ut)]);ge=Object.values(Zn).map(Mr=>Mr("inactive"))}else To(Ae)&&(be=Rh.matrix("active"),ge=Object.values(Fh).map(Ut=>Ut("inactive")));const _e=document.createElement("div");_e.className="MLEP__environment-delimiter-controls",_e.style.display="flex",_e.style.flexDirection="column",_e.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${be}
${ge.join("")}
</div>`,be&&oe.appendChild(_e),oe.querySelectorAll("[data-command]").forEach(Ut=>{const Jn=Ut.dataset.command;let Ur=Jn;try{Ur=JSON.parse(Jn)}catch(Zn){}Ut.addEventListener("mousedown",Zn=>Zn.preventDefault()),Ur&&Ut.addEventListener("click",()=>a.executeCommand(Ur))});const Pt=(b=a.field)==null?void 0:b.getBoundingClientRect();Pt&&(re.style.top=`${window.scrollY+(Pt.top-re.clientHeight-15)}px`,re.style.left=`${Pt.left+20}px`,re.classList.add("is-visible"))}function zh(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){document.getElementById("mathlive-environment-popover")&&(bh("mathlive-environment-popover"),x("environment-popover"),x("core"))}function Gf(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&bo(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):zh()}function gv(a){return a.replace("*","")}function vv(a){return a==="dcases"?"cases":a}function Q0(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function J0(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function _h(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="rtl"||b==="end"&&E==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function yv(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="ltr"||b==="end"&&E==="rtl"||b==="top"||b==="right"?a:a-y}function bv(a,y){var b,E,ee;const re=(b=Q0(a))!=null?b:"ltr";a.style.position="fixed",a.style.left="",a.style.top="",a.style.right="",a.style.bottom="",a.style.height="",a.style.width="";const oe=a.getBoundingClientRect(),pe=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let ge=Math.min(pe,(E=y.height)!=null?E:oe.height),be=_h(y.location.y,ge,y.verticalPos,re);be+ge>window.innerHeight-8&&(y.alternateLocation?(be=_h(y.alternateLocation.y,ge,y.verticalPos,re),be+ge>window.innerHeight-8&&(be=void 0)):be=void 0),Number.isFinite(be)||(be=Math.max(8,window.innerHeight-8-ge),8+ge>window.innerHeight-8&&(a.style.bottom="8px")),ge=Math.min(be+ge,window.innerHeight-8)-be;const Ae=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let _e=Math.min(Ae,(ee=y.width)!=null?ee:oe.width),it=_h(y.location.x,_e,y.horizontalPos,re);it+_e>window.innerWidth-8&&(y.alternateLocation?(it=yv(y.alternateLocation.x,_e,y.verticalPos,re),it+_e>window.innerWidth-8&&(it=void 0)):it=void 0),Number.isFinite(it)||(it=Math.max(8,window.innerWidth-8-_e),8+_e>window.innerWidth-8&&(a.style.right="8px")),_e=Math.min(it+_e,window.innerWidth-8)-it,re==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-it-_e).toString()}px`:a.style.left=`${Math.ceil(it).toString()}px`,a.style.top=`${Math.ceil(be).toString()}px`,ge!==oe.height&&(a.style.height=`${Math.ceil(ge).toString()}px`),_e!==oe.width&&(a.style.width=`${Math.ceil(_e).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function Nu(a){return"submenu"in a}function Ml(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function Hh(a){return"type"in a&&a.type==="divider"}function Kh(a){return"type"in a&&a.type==="heading"}var q0={};function Wh(a){let y=q0[a];if(!y){let b;switch(a){case"checkmark":b=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
</span>`;break;case"trailing-chevron":b='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":b='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(b){const E=document.createElement("template");E.innerHTML=b,q0[a]=E,y=E}}if(y){if("content"in y)return y.content.cloneNode(!0);const b=document.createElement("svg");return b.innerHTML=y.innerHTML,b}}var $0=80,ep=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,Nu(a)?(this.type="submenu",this.submenu=new tp(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Ml(a)&&a.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var a,y;(a=this._abortController)==null||a.abort(),this._abortController=void 0,(y=this._element)==null||y.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var a;return(a=this._label)!=null?a:""}set label(a){a===void 0&&(a=""),a!==this._label&&(this._label=a,this.dirty=!0)}get visible(){return this._visible}set visible(a){a!==this._visible&&(this._visible=a,this.dirty=!0)}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this.element&&(a?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(a){this._checked=a,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(a){a!==this._tooltip&&(this._tooltip=a,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(a){a!==this._ariaLabel&&(this._ariaLabel=a,this.dirty=!0)}get active(){var a,y;return(y=(a=this.element)==null?void 0:a.classList.contains("active"))!=null?y:!1}set active(a){this.element&&this.element.classList.toggle("active",a)}updateState(a){var y,b,E;const ee=this._declaration;if(Hh(ee)){this.enabled=!1,this.checked=!1;return}Kh(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Ml(ee)&&(this.checked=Ml(ee)&&((y=Ru(ee.checked,a))!=null?y:!1)),(Ml(ee)||Nu(ee))&&(this.enabled=(b=Ru(ee.enabled,a))!=null?b:!0,this.visible=(E=Ru(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Ml(ee)||Kh(ee)||Nu(ee))&&(this.label=Ru(ee.label,a),this.tooltip=Ru(ee.tooltip,a),this.ariaLabel=Ru(ee.ariaLabel,a)),this._element&&this.updateElement()}set dirty(a){console.assert(a===!0),a&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const a=this.element;a.textContent="",this.enabled?a.removeAttribute("aria-disabled"):a.setAttribute("aria-disabled","true"),this.checked===!0?(a.setAttribute("aria-checked","true"),a.append(Wh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Wh("mixedmark"))):a.removeAttribute("aria-checked"),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel);const y=document.createElement("span");if(y.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&y.classList.add("heading"),y.innerHTML=this.label,a.append(y),this._tooltip&&a.setAttribute("data-tooltip",this._tooltip),Ml(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=vh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Wh("trailing-chevron"))}get element(){if(this._element)return this._element;if(Hh(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,(Ml(this._declaration)||Kh(this._declaration)||Nu(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(!Ml(this._declaration))return;const a=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(a)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(a){var y;if(!(!this.visible||!this.enabled)){if(a.type==="click"){this.rootMenu.state==="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}if(a.type==="pointerenter"){const b=a;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((y=this.parentMenu.activeMenuItem)!=null&&y.movingTowardSubmenu(b))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(a.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(a.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},$0)},$0)}openSubmenu(a){var y;if(this.type!=="submenu"||!this.element)return;if((y=a==null?void 0:a.withDelay)!=null&&y){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const b=this.element.getBoundingClientRect(),E=Q0(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:J0(b,"trailing",E),y:b.top-4},alternateLocation:{x:J0(b,"leading",E),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const E=a.clientX-y.clientX;if(wv(E,y.clientY-a.clientY,b)<=.2)return!1;let re="right";if(this.submenu.element){const oe=this.submenu.element.getBoundingClientRect(),pe=this.element.getBoundingClientRect();oe.left<pe.left+pe.width/2&&(re="left")}return re==="right"?E>0:E<0}};function wv(a,y,b){return Math.hypot(a,y)/b}function Ru(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var tp=class Zu{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var E,ee;this.parentMenu=(E=b==null?void 0:b.parentMenu)!=null?E:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ee=b==null?void 0:b.columnCount)!=null?ee:1,this.isSubmenuOpen=!1,this.menuItems=y}get children(){return this._menuItems}set menuItems(y){const b=this.parentMenu;this.dispose(),this.parentMenu=b,y=[...y],this._menuItems=y.map(E=>E.onCreate?E.onCreate(E,this):new ep(E,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var y;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(y=this._menuItems)==null||y.forEach(b=>b.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(y){if(y.type==="wheel"&&this._element){const b=y;this._element.scrollBy(0,b.deltaY),y.stopPropagation()}}dispatchEvent(y){return this.rootMenu.dispatchEvent(y)}get rootMenu(){return this.parentMenu.rootMenu}updateState(y){var b,E,ee;this._menuItems.forEach(be=>be.updateState(y));const re=this.hasCheck;this.hasCheck=this._menuItems.some(be=>be.visible&&be.hasCheck),this.hasCheck!==re&&this._menuItems.forEach(be=>be.updateState(y));let oe,pe=0;for(const be of this._menuItems)be.type==="heading"?(oe&&pe===0&&(oe.visible=!1),oe=be,pe=0):be.type==="divider"&&oe?(oe.visible=pe>0,oe=void 0,pe=0):oe&&be.visible&&(pe+=1);oe&&(oe.visible=pe>0);let ge=!0;for(const be of this._menuItems)be.type==="divider"?(be.visible=!ge,ge=!0):be.visible&&(ge=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((E=this.activeMenuItem)!=null&&E.enabled)&&((ee=this.activeMenuItem)==null?void 0:ee.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible&&y.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible)}set dirty(y){console.assert(y===!0),this._dirty!==y&&y&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var y;if(this._element){this._element.textContent="";for(const{element:b,visible:E}of this._menuItems)b&&E&&this._element.append(b);(y=this._element.querySelector("li:first-of-type"))==null||y.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const y=document.createElement("menu");y.setAttribute("role","menu"),y.setAttribute("tabindex","-1"),y.setAttribute("aria-orientation","vertical"),y.setAttribute("part","ui-menu-container"),this._submenuClass&&y.classList.add(this._submenuClass),y.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const b=this._abortController.signal;return y.addEventListener("focus",this,{signal:b}),y.addEventListener("wheel",this,{passive:!0,signal:b}),this._element=y,this.updateElement(),y}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(y){var b,E,ee,re;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const oe=this.activeMenuItem;oe.active=!1,(b=oe.submenu)==null||b.hide()}if(!((E=y==null?void 0:y.visible)==null||E)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ee=y.element)==null||ee.focus({preventScroll:!0}):(re=this._element)==null||re.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const E=this._menuItems;for(;!b&&y<=E.length-1;){const ee=E[y];b=ee.type!=="divider"&&ee.visible&&ee.enabled,y+=1}return b?E[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,E=!1;for(;!E&&b>=0;){const ee=y[b];E=ee.type!=="divider"&&ee.visible&&ee.enabled,b-=1}return E?y[b+1]:null}nextMenuItem(y){if(y===0)return this._activeMenuItem;if(!this._activeMenuItem)return y>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const b=this._menuItems.indexOf(this.firstMenuItem),E=this._menuItems.indexOf(this.lastMenuItem);let ee=this._menuItems.indexOf(this._activeMenuItem),re=1;for(;ee>=b&&ee<=E;){ee+=y>0?1:-1;const oe=this._menuItems[ee];if(!oe)break;if(oe.visible&&oe.enabled){if(re===Math.abs(y))return this._menuItems[ee];re+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const E=this._menuItems.filter(ee=>ee.visible&&ee.enabled).indexOf(y);return E<0?-1:E%this.columnCount}static get collator(){return Zu._collator||(Zu._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Zu._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(pe=>pe.type!=="divider"&&pe.visible&&pe.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(pe=>pe.label.length))-y.length;if(ee<0)return null;let re=null,oe=0;for(;oe<ee&&!re;)re=(b=E.find(pe=>Zu.collator.compare(y,pe.label.substring(oe,y.length))===0))!=null?b:null,oe++;return re}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),Yt()&&(this.element.popover="manual",this.element.showPopover()),y.location&&bv(this.element,{location:y.location,alternateLocation:y.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var y,b,E,ee,re;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),Yt()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(E=(b=this.parentMenu)==null?void 0:b.element)==null||E.focus(),(re=(ee=this._element)==null?void 0:ee.parentNode)==null||re.removeChild(this._element)}set openSubmenu(y){var b,E,ee,re;const oe=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",oe.toString())),(re=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||re.classList.toggle("is-submenu-open",oe),this.isSubmenuOpen=oe}},np=class rm extends tp{constructor(y,b){var E;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(E=b==null?void 0:b.host)!=null?E:null,this.isDynamic=y.some(rp),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){Hm(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=Fc(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Fc(y));let re=!0;const oe=this.activeSubmenu,pe=oe.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":pe==null||pe.select(Fc(y));break;case"ArrowRight":if((pe==null?void 0:pe.type)==="submenu")pe.select(Fc(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!pe)oe.activeMenuItem=oe.firstMenuItem;else{const ge=(b=oe.getMenuItemColumn(pe))!=null?b:-1;if(ge>=0&&ge<((E=oe.columnCount)!=null?E:1)-1){const be=oe.nextMenuItem(1);be&&(oe.activeMenuItem=be)}}break;case"ArrowLeft":if(oe===this.rootMenu)pe||(oe.activeMenuItem=oe.firstMenuItem);else if((pe&&(ee=oe.getMenuItemColumn(pe))!=null?ee:-1)<=0||!pe){oe.hide();const be=oe.parentMenu.activeMenuItem;if(be){const{element:Ae}=be;Ae==null||Ae.focus(),Ae==null||Ae.classList.remove("is-submenu-open")}}else{const be=oe.nextMenuItem(-1);be&&(oe.activeMenuItem=be)}break;case"ArrowDown":oe.activeMenuItem=oe.nextMenuItem(oe.columnCount);break;case"ArrowUp":oe.activeMenuItem=oe.nextMenuItem(-oe.columnCount);break;case"Home":case"PageUp":oe.activeMenuItem=oe.firstMenuItem;break;case"End":case"PageDown":oe.activeMenuItem=oe.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ge=oe.findMenuItem(this.typingBuffer);ge&&(oe.activeMenuItem=ge),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Sf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ge=oe.findMenuItem(this.typingBuffer);ge&&(oe.activeMenuItem=ge),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else re=!1}re&&(y.preventDefault(),y.stopPropagation())}handleEvent(y){if(y.type==="keydown")this.handleKeydownEvent(y);else if(y.type==="keyup")this.handleKeyupEvent(y);else if(y.type==="pointermove")this.lastMoveEvent=y;else if(y.type==="pointerup"&&y.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(y.type==="contextmenu"){y.preventDefault(),y.stopPropagation();return}super.handleEvent(y)}dispatchEvent(y){return this._host?this._host.dispatchEvent(y):!0}get scrim(){return wl.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),wl.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),wl.state==="open"&&wl.scrim.close()}get rootMenu(){return this}show(y){return this._onDismiss=y==null?void 0:y.onDismiss,y!=null&&y.modifiers&&(this.modifiers=y.modifiers),this.updateState(),this.connectScrim(y==null?void 0:y.target),super.show(me(xe({},y),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,wl.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=rm.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};np.SUBMENU_DELAY=120;var Sv=np;function rp(a){return Hh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Ml(a)||Nu(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Ml(a)&&typeof a.checked=="function"?!0:Nu(a)?a.submenu.some(rp):!1}var Yf=class{};Yf.DELAY=300,Yf.MAX_DISTANCE=10;function Cv(a){return new Promise((y,b)=>{const E=wf(a);E||y(!1);let ee=E;const re=setTimeout(()=>{oe.abort(),y(xv(ee,E)<Yf.MAX_DISTANCE)},Yf.DELAY),oe=new AbortController,pe=oe.signal;for(const ge of["pointermove","pointerup","pointercancel"])window.addEventListener(ge,be=>{if(be.type==="pointerup"||be.type==="pointercancel")clearTimeout(re),oe.abort(),y(!1);else if(be.type==="pointermove"){const Ae=wf(be);Ae&&(ee=Ae)}},{passive:!0,signal:pe})})}function ip(a,y,b){return gc(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:wf(E),modifiers:Fc(E)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const E=a;if(E.code==="ContextMenu"||E.code==="F10"&&E.shiftKey){const ee=y==null?void 0:y.getBoundingClientRect();if(ee&&b.show({target:y,location:{x:Math.ceil(ee.left+ee.width/2),y:Math.ceil(ee.top+ee.height/2)},modifiers:Fc(E)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let E=a.target;for(;E&&y!==E;)E=E.parentNode;if(!E||!b.visible)return!1;const ee=wf(a);if(yield Cv(a))return b.state!=="closed"?!1:(b.show({target:y,location:ee}),!0)}return!1})}var ap={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};Lt(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(me(xe({},a),{body:dt(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),Lt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=$t(dt(a.args[0]));return new z(me(xe({},a),{body:dt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),Lt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(me(xe({},a),{body:dt(a.args[0]),svgAccent:"overarc"}))}),Lt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new Gs(me(xe({},a),{body:dt(a.args[0]),svgBelow:"underarc"}))}),Lt("utilde","{body:auto}",{createAtom:a=>{const y=dt(a.args[0]),b=$t(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new Gs(me(xe({},a),{body:y,svgBelow:E,boxType:rc(y)}))}}),Lt("^","{:string}",{createAtom:a=>{var y;return new pr(me(xe({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[a.args[0]])!=null?y:"^"}))}}),Lt("`","{:string}",{createAtom:a=>{var y;return new pr(me(xe({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[a.args[0]])!=null?y:"`"}))}}),Lt("'","{:string}",{createAtom:a=>{var y;return new pr(me(xe({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[a.args[0]])!=null?y:"'"}))}}),Lt('"',"{:string}",{createAtom:a=>{var y,b;return new pr(me(xe({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[a.args[0]])!=null?b:'"'+a.args[0]:'"'}))}}),Lt(".","{:string}",{createAtom:a=>{var y,b;return new pr(me(xe({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[a.args[0]])!=null?b:"."+a.args[0]:"."}))}}),Lt("=","{:string}",{createAtom:a=>{var y,b;return new pr(me(xe({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[a.args[0]])!=null?b:"="+a.args[0]:"="}))}}),Lt("~","{:string}",{createAtom:a=>{var y;return new pr(me(xe({type:"mord"},a),{isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[a.args[0]])!=null?y:"\xB4"}))}}),Lt("c","{:string}",{createAtom:a=>{var y;return new pr(me(xe({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),Lt("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const E=a.args,ee={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(E[1]){const oe=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const pe of oe){const ge=pe.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ge)ee.strokeWidth=ge[1],ee.strokeStyle=ge[2],ee.strokeColor=ge[3];else{const be=pe.match(/\s*([a-z]*)\s*=\s*"(.*)"/);be&&(be[1]==="mathbackground"?ee.backgroundcolor=be[2]:be[1]==="mathcolor"?ee.strokeColor=be[2]:be[1]==="padding"?ee.padding=be[2]:be[1]==="shadow"&&(ee.shadow=be[2]))}}ee.strokeStyle==="dashed"?ee.svgStrokeStyle="5,5":ee.strokeStyle==="dotted"&&(ee.svgStrokeStyle="1,5")}ee.borderStyle=`${ee.strokeWidth} ${ee.strokeStyle} ${ee.strokeColor}`;const re={};return((b=E[0])!=null?b:"").split(/[, ]/).filter(oe=>oe.length>0).forEach(oe=>{re[oe.toLowerCase()]=!0}),new bd(a.command,dt(E[2]),re,ee)}}),Lt("cancel","{body:auto}",{createAtom:a=>{var y;return new bd(a.command,dt(a.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Lt("bcancel","{body:auto}",{createAtom:a=>{var y;return new bd(a.command,dt(a.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Lt("xcancel","{body:auto}",{createAtom:a=>{var y;return new bd(a.command,dt(a.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Lt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new Gs(me(xe({},a),{body:dt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),Lt("overbrace","{:auto}",{createAtom:a=>new Gs(me(xe({},a),{body:dt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),Lt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new Gs(me(xe({},a),{body:dt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),Lt(["underbrace"],"{:auto}",{createAtom:a=>new Gs(me(xe({},a),{body:dt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),Lt(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:a=>{var y,b,E,ee,re;return new Gs(me(xe({},a),{svgBody:a.command.slice(1),above:((b=dt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:dt((E=a.args)==null?void 0:E[1]),below:(re=dt((ee=a.args)==null?void 0:ee[0]))!=null?re:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(a,y)=>a.command+(a.hasEmptyBranch("below")?"":`[${a.belowToLatex(y)}]`)+`{${a.aboveToLatex(y)}}${a.supsubToLatex(y)}`}),Lt(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:a=>new Rc(a.command.slice(1),me(xe({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),Lt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new Rc({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],me(xe({},a),{limits:"over-under",variant:"main"}))}),Lt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new Rc(a.command.slice(1),me(xe({},a),{limits:"over-under",variant:"main"}))}),Lt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new Rc(a.command.slice(1),me(xe({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),Lt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[0])})),serialize:(a,y)=>`\\ang{${a.bodyToLatex(y)}}`,render:(a,y)=>{const b=a.createBox(y),E=b.caret;b.caret=void 0;const ee=new Vr("\xB0",{style:me(xe({},a.style),{variant:"normal",variantStyle:"up"})});return new Vr([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),Lt("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(me(xe({},a),{body:dt(a.args[1]),index:a.args[0]?dt(a.args[0]):void 0}))}),Lt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=xe({},a),b=a.command,E=a.args;switch(b){case"\\dfrac":case"\\frac":case"\\tfrac":y.hasBarLine=!0;break;case"\\atopfrac":y.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":y.hasBarLine=!1,y.leftDelim="(",y.rightDelim=")";break;case"\\cfrac":y.hasBarLine=!0,y.continuousFraction=!0;break;default:}switch(b){case"\\dfrac":case"\\dbinom":y.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":y.mathstyleName="textstyle";break;default:}return new Au(E[0]?dt(E[0]):[new Gi],E[1]?dt(E[1]):[new Gi],y)},serialize:(a,y)=>{const b=a.aboveToLatex(y),E=a.belowToLatex(y);return/^[0-9]$/.test(b)&&/^[0-9]$/.test(E)?`${a.command}${b}${E}`:uo(a.command,b,E)}}),Lt(["brace","brack"],"",{infix:!0,createAtom:a=>new Au(dt(a.args[0]),dt(a.args[1]),me(xe({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>ba([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Lt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new Au(dt(E[0]),dt(E[1]),me(xe({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>ba([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Lt(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:a=>{var y,b;const E=a.args;return new Au(dt(E[0]),dt(E[1]),me(xe({},a),{leftDelim:(y=E[2])!=null?y:".",rightDelim:(b=E[3])!=null?b:".",hasBarLine:!1}))},serialize:(a,y)=>`${a.aboveToLatex(y)} ${a.command}${a.leftDelim}${a.rightDelim}${a.belowToLatex(y)}`}),Lt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new Au(dt(a.args[0]),dt(a.args[1]),me(xe({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),Lt(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new fh({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[a.command.slice(1)],me(xe({},a),{limits:"auto",variant:"main"}))}),Lt("smallint","",{ifMode:"math",createAtom:a=>new Rc("\u222B",me(xe({},a),{limits:"adjacent",variant:"main"}))});var op={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};Lt(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new fh(b,me(xe({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),Lt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new Rc({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],me(xe({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),Lt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(me(xe({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),Lt("the","{:value}",{createAtom:a=>new pr(me(xe({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new Ia({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const re=E.evaluate(a.args[0]);return new Vr(((b=Io(re))!=null?b:"").split("").map(oe=>new Vr(oe,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:xe({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:ee}).wrap(E)},serialize:a=>{var y;return`\\the${(y=Io(a.args[0]))!=null?y:"\\relax"}`}}),Lt("mathtip","{:auto}{:math}",{createAtom:a=>new hh(me(xe({},a),{body:dt(a.args[0]),tooltip:dt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${pr.serialize([a.tooltip],me(xe({},y),{defaultMode:"math"}))}}`}),Lt("texttip","{:auto}{:text}",{createAtom:a=>new hh(me(xe({},a),{body:dt(a.args[0]),tooltip:dt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${pr.serialize([a.tooltip],me(xe({},y),{defaultMode:"text"}))}}`}),Lt("error","{:math}",{createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),Lt("ensuremath","{:math}",{createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(me(xe({},y),{defaultMode:"math"}))}}`}),Lt("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Io(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),Lt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Io(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),Lt("boxed","{content:math}",{createAtom:a=>new Ao(me(xe({},a),{body:dt(a.args[0]),framecolor:{string:"black"}}))}),Lt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=Io(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),Lt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new Ao(me(xe({},a),{body:dt(a.args[2]),framecolor:(y=a.args[0])!=null?y:{string:"blue"},backgroundcolor:(b=a.args[1])!=null?b:{string:"yellow"}}))},serialize:(a,y)=>{var b,E;return y.skipStyles?a.bodyToLatex(me(xe({},y),{defaultMode:"text"})):uo(a.command,(b=Io(a.framecolor))!=null?b:"",(E=Io(a.backgroundcolor))!=null?E:"",a.bodyToLatex(me(xe({},y),{defaultMode:"text"})))}}),Lt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=dt(a.args[1]);return b?new Ao(me(xe({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new Ao(me(xe({},a),{body:E}))},serialize:(a,y)=>{var b,E;if(y.skipStyles)return a.bodyToLatex(y);let ee=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const re=[];a.padding&&re.push((b=Io(a.padding))!=null?b:""),a.border&&re.push(`border: ${a.border}`),a.backgroundcolor&&re.push((E=Io(a.backgroundcolor))!=null?E:""),ee+=`[${re.join(",")}]`}return uo(ee,a.bodyToLatex(y))}}),Lt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[0])})),render:(a,y)=>{const b=new Ia({parent:y,mathstyle:a.command.slice(1)},a.style),E=pr.createBox(b,a.body,{type:"lift"});return a.caret&&(E.caret=a.caret),a.bind(y,E)},serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{${ba([a.command,a.bodyToLatex(y)])}}`}),Lt(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:a=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[a]})}),Lt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),Lt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),Lt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),Lt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),Lt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),Lt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),Lt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),Lt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Lt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Lt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Lt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Lt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Lt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Lt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Lt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Lt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),Lt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Lt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),Lt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Lt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),Lt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),Lt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),Lt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),Lt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),Lt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),Lt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),Lt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),Lt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),Lt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),Lt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),Lt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),Lt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),Lt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),Lt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),Lt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),Lt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),Lt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),Lt("mbox","{:text}",{ifMode:"math",createAtom:a=>new pr(me(xe({},a),{type:"mord",body:dt(a.args[0]),mode:"math"})),serialize:(a,y)=>uo("\\mbox",a.bodyToLatex(me(xe({},y),{defaultMode:"text"})))}),Lt("text","{:text}",{ifMode:"math",applyMode:"text"}),Lt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[1])})),serialize:(a,y)=>!a.args[0]||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`,render:(a,y)=>{var b;return a.createBox(y,{classes:(b=a.args[0])!=null?b:""})}}),Lt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.cssId=(b=a.args[0])!=null?b:"",E}}),Lt("htmlData","{data:string}{content:auto}",{createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`\\htmlData{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.htmlData=(b=a.args[0])!=null?b:"",E}}),Lt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.htmlStyle=(b=a.args[0])!=null?b:"",E}}),Lt("em","{:rest}",{createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[0])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{\\em ${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})}),Lt("emph","{:auto}",{createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[1])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\emph{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})});var sp={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};Lt(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(me(xe({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),Lt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Sd(me(xe({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Lt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Sd(me(xe({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Lt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new pr(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===Ic||E===ml)&&(b=1),(E===Hl||E===ss)&&(b=2),(E===As||E===Vo)&&(b=3);const ee=dt(a.args[b]);return pr.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${pr.serialize(a.args[0],y)}}{${pr.serialize(a.args[1],y)}}{${pr.serialize(a.args[2],y)}}{${pr.serialize(a.args[3],y)}}`}),Lt("mathop","{:auto}",{createAtom:a=>new pr(me(xe({},a),{type:"mop",body:dt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=pr.createBox(y,a.body);if(a.superscript||a.subscript){const ee=(b=a.subsupPlacement)!=null?b:"auto";E=ee==="over-under"||ee==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return new Vr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[uo(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),ba(b)}}),Lt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new pr(me(xe({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:dt(a.args[0])}))}),Lt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=dt(a.args[0]).map(b=>{var E;return b.type!=="first"&&(b.type="mord",b.value=(E={"\u2217":"*","\u2212":"-"}[b.value])!=null?E:b.value,b.isFunction=!1,!b.style.variant&&!b.style.variantStyle&&(b.style.variant="main",b.style.variantStyle="up")),b});return new pr(me(xe({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=pr.createBox(y,a.body);if(a.superscript||a.subscript){const ee=(b=a.subsupPlacement)!=null?b:"auto";E=ee==="over-under"||ee==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return a.caret&&(E.caret=a.caret),new Vr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[uo(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),ba(b)}}),Lt(["char","unicode"],"{charcode:value}",{createAtom:a=>new pr(me(xe({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Io((y=a.args[0])!=null?y:{number:10067,base:"hexadecimal"})}`},render:(a,y)=>{let b=y.evaluate(a.args[0]);return(!b||!("number"in b))&&(b={number:10067,base:"hexadecimal"}),a.value=String.fromCodePoint(b.number),a.createBox(y)}}),Lt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new pr(a),render:(a,y)=>{var b,E,ee;const re=new Ia({parent:y,mathstyle:"textstyle"},a.style),oe=re.toEm((b=a.args[0])!=null?b:{dimension:0}),pe=re.toEm((E=a.args[1])!=null?E:{dimension:10}),ge=re.toEm((ee=a.args[2])!=null?ee:{dimension:10}),be=new Vr(null,{classes:"rule",type:"ord"});return be.width=pe,be.height=ge+oe,be.depth=-oe,be.setStyle("border-right-width",pe,"em"),be.setStyle("border-top-width",ge,"em"),be.setStyle("border-color",a.style.color),be.setStyle("vertical-align",oe,"em"),a.isSelected&&be.setStyle("opacity","50%"),a.bind(re,be),a.caret&&(be.caret=a.caret),be.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Io(a.args[0])}]`:""}{${Io(a.args[1])}}{${Io(a.args[2])}}`}),Lt(["overline","underline"],"{:auto}",{createAtom:a=>new pr(me(xe({},a),{body:dt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new Ia({parent:y,mathstyle:"cramp"},a.style),ee=pr.createBox(E,a.body);if(!ee)return null;const re=E.metrics.defaultRuleThickness/E.scalingFactor,oe=new Vr(null,{classes:b+"-line"});oe.height=re,oe.maxFontSize=re*1.125*E.scalingFactor;let pe;return b==="overline"?pe=new $a({shift:0,children:[{box:ee},3*re,{box:oe},re]}):pe=new $a({top:ee.height,children:[re,{box:oe},3*re,{box:ee}]}),a.caret&&(pe.caret=a.caret),new Vr(pe,{classes:b,type:"ignore"})}}),Lt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=dt(a.args[1]);return new Gs(me(xe({},a),{above:dt(a.args[0]),body:y,skipBoundary:!1,boxType:rc(y)}))},serialize:(a,y)=>uo(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Lt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=dt(a.args[1]);return new Gs(me(xe({},a),{below:dt(a.args[0]),body:y,skipBoundary:!1,boxType:rc(y)}))},serialize:(a,y)=>uo(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Lt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=dt(a.args[2]);return new Gs(me(xe({},a),{above:dt(a.args[0]),below:dt(a.args[1]),body:y,skipBoundary:!1,boxType:rc(y)}))},serialize:(a,y)=>uo(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Lt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new Gs(me(xe({},a),{body:dt(a.args[2]),above:dt(a.args[1]),below:dt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>uo(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Lt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new wd(me(xe({},a),{body:dt(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(ee=(E=a.args[0])==null?void 0:E.includes("b"))!=null?ee:!0}))}}),Lt(["vphantom"],"{:auto}",{createAtom:a=>new wd(me(xe({},a),{body:dt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),Lt(["hphantom"],"{:auto}",{createAtom:a=>new wd(me(xe({},a),{body:dt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),Lt(["phantom"],"{:auto}",{createAtom:a=>new wd(me(xe({},a),{body:dt(a.args[0]),isInvisible:!0}))}),Lt("not","{:math}",{createAtom:a=>{const y=dt(a.args[0]);return y.length===0?new pr(me(xe({},a),{type:"mrel",value:"\uE020"})):new pr(me(xe({},a),{body:[new Nc(me(xe({},a),{body:"\uE020",align:"right"})),...y],captureSelection:!0}))},serialize:(a,y)=>{const b=a.args[0],E=b&&typeof b=="object"&&"group"in b;return a.value!=="\uE020"?E?`\\not{${pr.serialize(b.group,y)}}`:`\\not${pr.serialize(b,y)}`:E?"\\not{}":"\\not"},render:(a,y)=>{if(a.value)return a.createBox(y);const E=a.args[0]&&typeof a.args[0]=="object"&&"group"in a.args[0]?"ord":rc(dt(a.args[0])),ee=pr.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),Lt(["ne","neq"],"",{createAtom:a=>new pr(me(xe({},a),{type:"mrel",body:[new Nc(me(xe({},a),{body:"\uE020",align:"right",boxType:"rel"})),new pr(me(xe({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),Lt("rlap","{:auto}",{createAtom:a=>new Nc(me(xe({},a),{body:dt(a.args[0]),align:"right"}))}),Lt("llap","{:auto}",{createAtom:a=>new Nc(me(xe({},a),{body:dt(a.args[0]),align:"left"}))}),Lt("mathrlap","{:math}",{createAtom:a=>new Nc(me(xe({},a),{body:dt(a.args[0]),align:"left"}))}),Lt("mathllap","{:math}",{createAtom:a=>new Nc(me(xe({},a),{body:dt(a.args[0]),align:"left"}))}),Lt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new Ao(me(xe({},a),{body:dt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return uo("\\raisebox",(b=Io(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Lt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new Ao(me(xe({},a),{body:dt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return uo("\\raise",(b=Io(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Lt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new Ao(me(xe({},a),{body:dt(a.args[1]),padding:{dimension:0},offset:(y=Us(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return uo("\\lower",(E=Io(Us((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Me("0123456789/@.?!"),Ve(65,90),Ve(97,122),Me([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Me([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Me([["\\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]]),Me([["\\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"),Me([["\\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"]]),Me([["\\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"]]),Me([["\\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"),Me([["+",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"),Me([["\\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"),Me([["\\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]]),Me([["=",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"),Me([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Me([["\\wp",8472],["\\aleph",8501]]),Me([["\\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"),Me([["\\ ",160],["~",160]],"space"),Lt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Sd(a)}),Lt("space","",{createAtom:a=>new Sd(a)}),Me([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Me([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Me([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="<mo>&#x2061;</mo>",Xf="<mo>&#8290;</mo>";function Qf(a){return a.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function no(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ev(a,y,b){var E,ee,re,oe,pe,ge,be,Ae,_e,it,Pt;let Ut=!1;y=y!=null?y:a.atoms.length;let Jn="",Ur="",Zn=a.atoms[a.index];const Mr=(ee=(E=Zn.style)==null?void 0:E.variant)!=null?ee:"",Gr=(oe=(re=Zn.style)==null?void 0:re.variantStyle)!=null?oe:"";let Tr="";if(Mr||Gr){const Zi=Mn(Zn.value,(pe=Zn.style)==null?void 0:pe.variant,(ge=Zn.style)==null?void 0:ge.variantStyle);if(Zi!==Zn.value)return a.index+=1,Jn=`<mi${no(Zn.id,b)}>${Zi}</mi>`,Ul(Jn,a,b)||(a.mathML+=Jn,a.lastType="mi"),!0;Tr=(be={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"}[Gr+Mr])!=null?be:"",Tr=` mathvariant="${Tr}"`}const bi={"\\exponentialE":"&#x02147;","\\imaginaryI":"&#x2148;","\\differentialD":"&#x2146;","\\capitalDifferentialD":"&#x2145;","\\alpha":"&#x03b1;","\\pi":"&#x03c0;","\\infty":"&#x221e;","\\forall":"&#x2200;","\\nexists":"&#x2204;","\\exists":"&#x2203;","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Zn.command==="!")return a.index+=1,Jn="<mo>!</mo>",Ul(Jn,a,b)||(a.mathML+=Jn,a.lastType="mo"),!0;if(bi[Zn.command]){a.index+=1;let Zi=`<mi${no(Zn.id,b)}${Tr}>${bi[Zn.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(Zi=Xf+Zi),Ul(Zi,a,b)||(a.mathML+=Zi,a.lastType="mi"),!0}if(Zn.command==="\\operatorname")Ur=Fu(Zn.body),a.index+=1;else if(Mr||Gr)for(;a.index<y&&(Zn.type==="mord"||Zn.type==="macro")&&!Zn.isDigit()&&Mr===((_e=(Ae=Zn.style)==null?void 0:Ae.variant)!=null?_e:"")&&Gr===((Pt=(it=Zn.style)==null?void 0:it.variantStyle)!=null?Pt:"");)Ur+=Fu([Zn]),a.index+=1,Zn=a.atoms[a.index];else(Zn.type==="mord"||Zn.type==="macro")&&!Zn.isDigit()&&(Ur+=Fu([Zn]),a.index+=1);if(Ur.length>0){Ut=!0,Jn=`<mi${Tr}>${Ur}</mi>`;const Zi=a.lastType;Jn.endsWith(">f</mi>")||Jn.endsWith(">g</mi>")?(Jn+=lp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Jn)?"mo":"mi",Ul(Jn,a,b)||((Zi==="mi"||Zi==="mn"||Zi==="mtext"||Zi==="fence")&&(Jn=Xf+Jn),a.mathML+=Jn)}return Ut}function Mv(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function Av(a){let y=-1,b=a.index,E=!1,ee=!1;for(;b<a.atoms.length&&!E&&!ee;){const re=a.atoms[b];E=!re.isDigit(),ee=!E&&re.superscript!==void 0,b++}return ee&&(y=b-1),y}function Ul(a,y,b){var E;let ee=y.atoms[y.index-1];if(!ee)return!1;if(!ee.superscript&&!ee.subscript)if(((E=y.atoms[y.index])==null?void 0:E.type)==="subsup")ee=y.atoms[y.index],y.index+=1;else return!1;const re=y.lastType;y.lastType="";const oe=Za(ee.superscript,b);y.lastType="";const pe=Za(ee.subscript,b);if(y.lastType=re,!oe&&!pe)return!1;let ge="";return oe&&pe?ge=`<msubsup>${a}${pe}${oe}</msubsup>`:oe?ge=`<msup>${a}${oe}</msup>`:pe&&(ge=`<msub>${a}${pe}</msub>`),y.mathML+=ge,y.lastType="",!0}function kv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ee+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ee.length>0?(a.mathML+=`<mtext ${no(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Lv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",re=Av(a);for(re>=0&&re<y&&(y=re);a.index<y&&a.atoms[a.index].isDigit();)ee+=a.atoms[a.index].asDigit(),a.index+=1;return ee.length<=0?!1:(ee="<mn"+no(a.atoms[E].id,b)+">"+ee+"</mn>",re<0&&Mv(a)&&(re=a.index,a.index+=1),Ul(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Bv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let oe=!1,pe=0;const ge=a.index;let be=-1,Ae=ge+1;for(;Ae<y&&!oe;)a.atoms[Ae].type==="mopen"?pe+=1:a.atoms[Ae].type==="mclose"&&(pe-=1),pe===-1&&(oe=!0,be=Ae),Ae+=1;oe&&(ee="<mrow>",ee+=Vc(a.atoms[ge],b),ee+=Za(a.atoms,b,ge+1,be),ee+=Vc(a.atoms[be],b),ee+="</mrow>",a.index=be+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=Xf),Ul(ee,a,b)&&(E=!0,a.lastType="",ee=""),re="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=re),E}function Dv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";const oe=a.atoms[a.index];if(!oe)return!1;const pe={"\\ne":"&ne;","\\neq":"&neq;","\\pm":"&#177;","\\times":"&#215;","\\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(pe[oe.command]){a.index+=1;const ge=`<mo${no(oe.id,b)}>${pe[oe.command]}</mo>`;return Ul(ge,a,b)||(a.mathML+=ge,a.lastType="mo"),!0}if(a.index<y&&(oe.type==="mbin"||oe.type==="mrel"))ee+=jh(a.atoms[a.index],b),a.index+=1,re="mo";else if(a.index<y&&(oe.type==="mop"||oe.type==="operator"||oe.type==="extensible-symbol")){if(oe.subsupPlacement==="over-under"&&(oe.superscript||oe.subscript)){const ge=Vc(oe,b);return oe.superscript&&oe.subscript?(ee+="<munderover>"+ge,ee+=Za(oe.subscript,b),ee+=Za(oe.superscript,b),ee+="</munderover>"):oe.superscript?(ee+="<mover>"+ge,ee+=Za(oe.superscript,b),ee+="</mover>"):oe.subscript&&(ee+="<munder>"+ge,ee+=Za(oe.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const ge=a.atoms[a.index],be=ge.value==="\\operatorname",Ae=be?'<mi class="MathML-Unit"'+no(ge.id,b)+">"+Fu(ge.value)+"</mi>":Vc(ge,b);ee+=Ae,!be&&!/^<mo>(.*)<\/mo>$/.test(Ae)?(ee+=lp,re="applyfunction"):re=be?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=Xf+ee),a.index+=1}return ee.length>0&&(E=!0,Ul(ee,a,b)||(a.mathML+=ee,a.lastType=re)),E}function Za(a,y,b,E){y!=null||(y={});const ee={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")ee.mathML=a.toString();else if(typeof a=="string")ee.mathML=a;else if(a instanceof pr)ee.mathML=jh(a,y);else if(Array.isArray(a)){ee.atoms=a;let re=0;for(E=E||(a?a.length:0);ee.index<E;)if(kv(ee,E,y)||Lv(ee,E,y)||Ev(ee,E,y)||Dv(ee,E,y)||Bv(ee,E,y))re+=1;else if(ee.index<E){let oe=jh(ee.atoms[ee.index],y);ee.lastType==="mn"&&oe.length>0&&ee.atoms[ee.index].type==="genfrac"&&(oe="<mo>&#x2064;</mo>"+oe),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,Ul(oe,ee,y)?re+=1:oe.length>0&&(ee.mathML+=oe,re+=1)}re>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function Vc(a,y){let b="";const E=Fu(a.value);return E&&(b="<mo"+no(a.id,y)+">"+E+"</mo>"),b}function Fu(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 jh(a,y){var b,E,ee,re,oe,pe,ge,be,Ae,_e,it,Pt,Ut,Jn,Ur,Zn,Mr,Gr,Tr,bi,Zi,Ii;if(a.mode==="text")return`<mi${no(a.id,y)}>${a.value}</mi>`;const Ra={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"},Ja={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let $r="",_s="",kl,Xs,Jo,Hs,Es,ro;const{command:Lo}=a;if(a.command==="\\error")return`<merror${no(a.id,y)}>${Za(a.body,y)}</merror>`;const qo={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Ll={"\\vec":"&#x20d7;","\\acute":"&#x00b4;","\\grave":"&#x0060;","\\dot":"&#x02d9;","\\ddot":"&#x00a8;","\\tilde":"&#x007e;","\\bar":"&#x00af;","\\breve":"&#x02d8;","\\check":"&#x02c7;","\\hat":"&#x005e;"};switch(a.type){case"first":break;case"group":case"root":$r=Za(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&($r+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&($r+="<mo>"+(qo[a.leftDelim]||a.leftDelim)+"</mo>")),$r+="<mtable",a.colFormat){for($r+=' columnalign="',Jo=0;Jo<a.colFormat.length;Jo++)a.colFormat[Jo].align&&($r+={l:"left",c:"center",r:"right"}[a.colFormat[Jo].align]+" ");$r+='"'}for($r+=">",Xs=0;Xs<a.array.length;Xs++){for($r+="<mtr>",kl=0;kl<a.array[Xs].length;kl++)$r+="<mtd>"+Za(a.array[Xs][kl],y)+"</mtd>";$r+="</mtr>"}$r+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&($r+="<mo>"+(qo[a.leftDelim]||a.rightDelim)+"</mo>"),$r+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&($r+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&($r+="<mo"+no(a.id,y)+">"+(qo[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?($r+="<mfrac>",$r+=Za(a.above,y)||"<mi>&nbsp;</mi>",$r+=Za(a.below,y)||"<mi>&nbsp;</mi>",$r+="</mfrac>"):($r+="<mtable"+no(a.id,y)+">",$r+="<mtr>"+Za(a.above,y)+"</mtr>",$r+="<mtr>"+Za(a.below,y)+"</mtr>",$r+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&($r+="<mo"+no(a.id,y)+">"+(qo[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&($r+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?($r+="<msqrt"+no(a.id,y)+">",$r+=Za(a.body,y),$r+="</msqrt>"):($r+="<mroot"+no(a.id,y)+">",$r+=Za(a.body,y),$r+=Za(a.above,y),$r+="</mroot>");break;case"leftright":const Bl=a,Dl=Bl.leftDelim;$r="<mrow>",Dl&&Dl!=="."&&($r+=`<mo${no(a.id,y)}>${(b=qo[Dl])!=null?b:Dl}</mo>`),a.body&&($r+=Za(a.body,y));const Il=Bl.matchingRightDelim();Il&&Il!=="."&&($r+=`<mo${no(a.id,y)}>${(E=qo[Il])!=null?E:Il}</mo>`),$r+="</mrow>";break;case"sizeddelim":case"delim":$r+=`<mo${no(a.id,y)}>${qo[a.value]||a.value}</mo>`;break;case"accent":$r+='<mover accent="true"'+no(a.id,y)+">",$r+=Za(a.body,y),$r+="<mo>"+(Ll[Lo]||a.accent)+"</mo>",$r+="</mover>";break;case"line":case"overlap":break;case"overunder":Es=a.above,Hs=a.below,(a.svgAbove||Es)&&(a.svgBelow||Hs)?ro=a.body:Es&&Es.length>0?(ro=a.body,(re=(ee=a.body)==null?void 0:ee[0])!=null&&re.below?(Hs=a.body[0].below,ro=a.body[0].body):((pe=(oe=a.body)==null?void 0:oe[0])==null?void 0:pe.type)==="first"&&((be=(ge=a.body)==null?void 0:ge[1])!=null&&be.below)&&(Hs=a.body[1].below,ro=a.body[1].body)):Hs&&Hs.length>0&&(ro=a.body,(_e=(Ae=a.body)==null?void 0:Ae[0])!=null&&_e.above?(Es=a.body[0].above,ro=a.body[0].body):((Pt=(it=a.body)==null?void 0:it[0])==null?void 0:Pt.type)==="first"&&((Jn=(Ut=a.body)==null?void 0:Ut[1])!=null&&Jn.above)&&(Es=a.body[1].overscript,ro=a.body[1].body)),(a.svgAbove||Es)&&(a.svgBelow||Hs)?($r+=`<munderover ${no(a.id,y)}>`,$r+=(Ur=Ra[a.svgBody])!=null?Ur:Za(ro,y),$r+=(Zn=Ra[a.svgBelow])!=null?Zn:Za(Hs,y),$r+=(Mr=Ra[a.svgAbove])!=null?Mr:Za(Es,y),$r+="</munderover>"):a.svgAbove||Es?($r+=`<mover ${no(a.id,y)}>`+((Gr=Ra[a.svgBody])!=null?Gr:Za(ro,y)),$r+=(Tr=Ra[a.svgAbove])!=null?Tr:Za(Es,y),$r+="</mover>"):(a.svgBelow||Hs)&&($r+=`<munder ${no(a.id,y)}>`+((bi=Ra[a.svgBody])!=null?bi:Za(ro,y)),$r+=(Zi=Ra[a.svgBelow])!=null?Zi:Za(Hs,y),$r+="</munder>");break;case"placeholder":$r+="?";break;case"mord":{$r=typeof a.value=="string"?a.value:Lo,Lo==="\\char"?$r="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":$r.length>0&&$r.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?$r="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?$r=a.value.charAt(0):(console.error("Did not expect this"),$r=""));const cl=/\d/.test($r)?"mn":"mi";$r=`<${cl}${no(a.id,y)}>${Qf($r)}</${cl}>`;break}case"mbin":case"mrel":case"minner":$r=Vc(a,y);break;case"mpunct":$r='<mo separator="true"'+no(a.id,y)+">"+Lo+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&($r="<mo"+no(a.id,y)+">",$r+=Lo==="\\operatorname"?a.body:Lo||a.body,$r+="</mo>");break;case"box":$r='<menclose notation="box"',a.backgroundcolor&&($r+=' mathbackground="'+a.backgroundcolor+'"'),$r+=no(a.id,y)+">"+Za(a.body,y)+"</menclose>";break;case"spacing":$r+='<mspace width="'+((Ii=Ja[Lo])!=null?Ii:0)+'em"/>';break;case"enclose":$r='<menclose notation="';for(const cl in a.notation)Object.prototype.hasOwnProperty.call(a.notation,cl)&&a.notation[cl]&&($r+=_s+cl,_s=" ");$r+=no(a.id,y)+'">'+Za(a.body,y)+"</menclose>";break;case"prompt":$r='<menclose notation="roundexbox""">'+Za(a.body,y)+"</menclose>";break;case"space":$r+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":$r+=Vc(a,y);break;case"mclose":$r+=Vc(a,y);break;case"macro":{const cl=a.command+Fu(a.macroArgs);cl&&($r+=`<mo ${no(a.id,y)}>${cl}</mo>`)}break;case"latexgroup":$r+=Za(a.body,y);break;case"latex":$r+="<mtext"+no(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":$r+=Za(a.body,y);break;case"text":$r+=`<mtext ${no(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${no(a.id,y)} displaystyle="true">${Za(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${no(a.id,y)} displaystyle="false">${Za(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return $r}var zu={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},Zh={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function Iv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function Fd(a){let y=0;if(Ne(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Tv(a){if(Ne(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function cp(a){let y="";if(Ne(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Ov(a){return a?a.map(y=>y.value).join(""):""}function ka(a,y){var b,E,ee,re,oe;function pe(Ae){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Ae)?` <say-as interpret-as="character">${Ae}</say-as>`:/[A-Z]/.test(Ae)?`capital <say-as interpret-as="character">${Ae.toLowerCase()}</say-as>`:Ae:/[a-z]/.test(Ae)?" '"+Ae.toUpperCase()+"'":/[A-Z]/.test(Ae)?" 'capital "+Ae.toUpperCase()+"'":Ae}function ge(Ae){return"<emphasis>"+Ae+"</emphasis>"}if(!y)return"";let be="";if(Ne(y)){let Ae=!1,_e=!1;for(let it=0;it<y.length;it++)y[it].type!=="first"&&(y[it].mode!=="text"&&(_e=!1),it<y.length-2&&y[it].type==="mopen"&&y[it+2].type==="mclose"&&y[it+1].type==="mord"?(be+=" of ",be+=ge(ka(a,y[it+1])),it+=2):y[it].mode==="text"?_e?be+=(b=y[it].value)!=null?b:" ":(_e=!0,be+=ka("text",y[it])):y[it].isDigit()?Ae?be+=y[it].asDigit():(Ae=!0,be+=ka(a,y[it])):(Ae=!1,be+=ka(a,y[it])))}else if(y.mode==="text")y.id&&a==="math"&&(be+='<mark name="'+y.id.toString()+'"/>'),be+=y.value;else{y.id&&a==="math"&&(be+='<mark name="'+y.id.toString()+'"/>');let Ae="",_e="",it="",Pt=!1;const{command:Ut}=y;switch(Ut){case"\\vec":return"vector "+ka(a,y.body);case"\\acute":return ka(a,y.body)+" acute";case"\\grave":return ka(a,y.body)+" grave";case"\\dot":return"dot over"+ka(a,y.body);case"\\ddot":return"double dot over"+ka(a,y.body);case"\\mathring":return"ring over"+ka(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+ka(a,y.body);case"\\bar":return ka(a,y.body)+" bar";case"\\breve":return ka(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+ka(a,y.body);case"\\hat":case"\\widehat":return"hat over"+ka(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+ka(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+ka(a,y.body)}switch(y.type){case"prompt":const Jn=y.body.length>1?'start input . <break time="500ms"/> '+ka(a,y.body)+'. <break time="500ms"/> end input':"blank";be+=' <break time="300ms"/> '+Jn+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const Ur=y.array,Zn=y.environmentName;if(Object.keys(Zh).includes(Zn)){be+=` begin ${Zh[Zn]} `;for(let Tr=0;Tr<Ur.length;Tr++){Tr>0&&(be+=","),be+=` row ${Tr+1} `;for(let bi=0;bi<Ur[Tr].length;bi++)bi>0&&(be+=","),be+=` column ${bi+1}: `,be+=ka("math",Ur[Tr][bi])}be+=` end ${Zh[Zn]} `}break;case"group":Ut==="\\ne"?be+=" not equal ":(Ut==="\\not"&&(be+=" not "),be+=ka("math",y.body));break;case"root":be+=ka("math",y.body);break;case"genfrac":if(Ae=ka("math",y.above),_e=ka("math",y.below),Fd(y.above)&&Fd(y.below)){const bi={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[cp(y.above)+"/"+cp(y.below)];bi?be=bi:be+=Ae+" over "+_e}else be+=' the fraction <break time="150ms"/>'+Ae+' over <break time="150ms"/>'+_e+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(it=ka("math",y.body),y.hasEmptyBranch("above"))be+=Fd(y.body)?" the square root of "+it+" , ":' the square root of <break time="200ms"/>'+it+'. <break time="200ms"/> End square root';else{let Tr=ka("math",y.above);Tr=Tr.trim();const bi=Tr.replace(/<mark([^/]*)\/>/g,"");bi==="3"?be+=' the cube root of <break time="200ms"/>'+it+'. <break time="200ms"/> End cube root':bi==="n"?be+=' the nth root of <break time="200ms"/>'+it+'. <break time="200ms"/> End root':be+=' the root with index: <break time="200ms"/>'+Tr+', of <break time="200ms"/>'+it+'. <break time="200ms"/> End root'}break;case"leftright":{const Tr=y;be+=(ee=Tr.leftDelim?zu[Tr.leftDelim]:void 0)!=null?ee:Tr.leftDelim,be+=ka("math",y.body),be+=(re=Tr.rightDelim?zu[Tr.rightDelim]:void 0)!=null?re:Tr.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const Mr=Ut.replace(/^\\/g,""),Gr=wt()[Mr];Gr&&(Gr!=null&&Gr.expand?be+=ka("math",y.body):be+=`${Mr} `);break;case"placeholder":be+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Ut==="\\mathbin"||Ut==="\\mathrel"||Ut==="\\mathopen"||Ut==="\\mathclose"||Ut==="\\mathpunct"||Ut==="\\mathord"||Ut==="\\mathinner"){be=ka(a,y.body);break}let Tr=y.isDigit()?y.asDigit():y.value,bi=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(bi=y.value,Tr=bi),a==="text")be+=Tr;else{if(y.type==="mbin"&&(be+='<break time="150ms"/>'),Tr){const Zi=zu[Tr]||(bi?zu[bi.trim()]:"");if(Zi)be+=" "+Zi;else{const Ii=bi?Iv(bi.trim()):"";be+=Ii||pe(Tr)}}else be+=ka("math",y.body);y.type==="mbin"&&(be+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const Tr=y.command;if(Tr==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let bi=ka("math",y.superscript);bi=bi.trim();let Zi=ka("math",y.subscript);Zi=Zi.trim(),be+=' the summation from <break time="200ms"/>'+Zi+'<break time="200ms"/> to <break time="200ms"/>'+bi+'<break time="200ms"/> of <break time="150ms"/>',Pt=!0}else if(y.hasEmptyBranch("subscript"))be+=" the summation of";else{let bi=ka("math",y.subscript);bi=bi.trim(),be+=' the summation from <break time="200ms"/>'+bi+'<break time="200ms"/> of <break time="150ms"/>',Pt=!0}else if(Tr==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let bi=ka("math",y.superscript);bi=bi.trim();let Zi=ka("math",y.subscript);Zi=Zi.trim(),be+=' the product from <break time="200ms"/>'+Zi+'<break time="200ms"/> to <break time="200ms"/>'+bi+'<break time="200ms"/> of <break time="150ms"/>',Pt=!0}else if(y.hasEmptyBranch("subscript"))be+=" the product of ";else{let bi=ka("math",y.subscript);bi=bi.trim(),be+=' the product from <break time="200ms"/>'+bi+'<break time="200ms"/> of <break time="150ms"/>',Pt=!0}else if(Tr==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let bi=ka("math",y.superscript);bi=bi.trim();let Zi=ka("math",y.subscript);Zi=Zi.trim(),be+=' the integral from <break time="200ms"/>'+ge(Zi)+'<break time="200ms"/> to <break time="200ms"/>'+ge(bi)+' <break time="200ms"/> of ',Pt=!0}else be+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const bi=(oe=zu[y.value])!=null?oe:y.command?zu[y.command]:void 0;be+=bi||" "+y.value}else y.command&&(y.command==="\\mathop"?be+=ka("math",y.body):y.command==="\\operatorname"?be+=Ov(y.body):be+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":it=ka("math",y.body),be+=" crossed out "+it+". End crossed out.";break;case"space":case"spacing":break}if(!Pt&&!y.hasEmptyBranch("superscript")){let Jn=ka(a,y.superscript);Jn=Jn.trim();const Ur=Jn.replace(/<[^>]*>/g,"");if(Fd(y.superscript)){if(a==="math"){const Zn=Tv(y.superscript);Zn&&(be+='<mark name="'+Zn+'"/>')}Ur==="\u2032"?be+=" prime ":Ur==="2"?be+=" squared ":Ur==="3"?be+=" cubed ":Number.isNaN(Number.parseInt(Ur))?be+=" to the "+Jn+"; ":be+=' to the <say-as interpret-as="ordinal">'+Ur+"</say-as> power; "}else Number.isNaN(Number.parseInt(Ur))?be+=" raised to the "+Jn+"; ":be+=' raised to the <say-as interpret-as="ordinal">'+Ur+"</say-as> power; "}if(!Pt&&!y.hasEmptyBranch("subscript")){let Jn=ka("math",y.subscript);Jn=Jn.trim(),be+=Fd(y.subscript)?" sub "+Jn:" subscript "+Jn+". End subscript. "}}return be}function _u(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=Za(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const re=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&re.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let oe="";try{oe=re.toSpeech(ee)}catch(pe){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",pe)}return oe}return""}let E=ka("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ee="";window.MathfieldElement.speechEngineRate&&(ee='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),E='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+ee+"<p><s>"+E+"</s></p>"+(ee?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&Ee()==="macos"?E=E.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):E=E.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return E}var zd={"\\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"},_d={"\\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 Pv(a){let y="";for(const b of a){const E=y[y.length-1];E!==void 0&&/\d/.test(E)&&/^\d/.test(b)&&(y+=" "),y+=b}return y}function ko(a){var y,b,E,ee,re,oe,pe,ge,be,Ae,_e,it,Pt;if(!a)return"";if(Ne(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(ko).join("");if(a[0].mode==="text"){let Gr=0,Tr="";for(;((y=a[Gr])==null?void 0:y.mode)==="text";)Tr+=a[Gr].body?ko(a[Gr].body):a[Gr].value,Gr++;return`"${Tr}" ${ko(a.slice(Gr))}`}let Zn=0;const Mr=[];for(;a[Zn]&&a[Zn].mode==="math";){let Gr="";for(;a[Zn]&&a[Zn].type==="mord"&&/\d/.test(a[Zn].value);)Gr+=a[Zn++].value;Gr?Mr.push(Gr):Mr.push(ko(a[Zn++]))}return Mr.push(ko(a.slice(Zn))),Pv(Mr)}if(a.mode==="text")return`"${a.value}"`;let Ut="";const{command:Jn}=a;let Ur;if(Jn==="\\placeholder")return`(${ko(a.body)})`;switch(a.type){case"accent":const Zn={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Jn];Ut=`${Zn!=null?Zn:""} ${ko(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Ii=>Ii.value).join("");case"group":case"root":Ut=(b=zd[Jn])!=null?b:ko(a.body);break;case"genfrac":{const Ii=a;(Ii.leftDelim||Ii.rightDelim)&&(Ut=Ii.leftDelim==="."||!Ii.leftDelim?"{:":Ii.leftDelim),Ii.hasBarLine?(Ut+="(",Ut+=ko(Ii.above),Ut+=")/(",Ut+=ko(Ii.below),Ut+=")"):(Ut+="("+ko(Ii.above)+"),",Ut+="("+ko(Ii.below)+")"),(Ii.leftDelim||Ii.rightDelim)&&(Ut+=Ii.rightDelim==="."||!Ii.rightDelim?"{:":Ii.rightDelim)}break;case"surd":Ut+=a.hasEmptyBranch("above")?"sqrt("+ko(a.body)+")":"root("+ko(a.above)+")("+ko(a.body)+")";break;case"latex":Ut=a.value;break;case"leftright":{const Ii=a,Ra=Ii.leftDelim;Ut+=Ra==="."||!Ra?"{:":Ra,Ut+=ko(Ii.body);const Ja=Ii.matchingRightDelim();Ut+=Ja==="."||!Ja?":}":Ja}break;case"sizeddelim":case"delim":Ut=a.value;break;case"overlap":break;case"overunder":break;case"mord":Ut=(ee=(E=zd[Jn])!=null?E:Jn)!=null?ee:typeof a.value=="string"?a.value:"",Ut.startsWith("\\")&&(Ut+=" "),Ur=Jn?Jn.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Ur?Ut=String.fromCodePoint(Number.parseInt("0x"+Ur[1])):Ut.length>0&&Ut.startsWith("\\")&&(Ut=typeof a.value=="string"?a.value.charAt(0):a.command),Ut=Nv(Ut,a.style);break;case"mbin":case"mrel":case"minner":Ut=(oe=(re=zd[Jn])!=null?re:_d[Jn])!=null?oe:a.value;break;case"mopen":case"mclose":Ut=a.value;break;case"mpunct":Ut=(pe=_d[Jn])!=null?pe:Jn;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(_d[Jn]?Ut=_d[Jn]:Ut=Jn==="\\operatorname"?ko(a.body):(ge=a.value)!=null?ge:Jn,Ut+=" ");break;case"array":const Mr=a.array,Gr=a.environmentName,Tr=(be={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Gr])!=null?be:["(",")"],bi=[];for(const Ii of Mr){const Ra=[];for(const Ja of Ii)Ra.push(Tr[0]+ko(Ja)+Tr[1]);bi.push(Ra.join(","))}const Zi=(Ae={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Gr])!=null?Ae:["(",")"];Ut=Zi[0]+bi.join(",")+Zi[1];break;case"box":break;case"spacing":Ut=(_e=zd[Jn])!=null?_e:" ";break;case"enclose":Ut="("+ko(a.body)+")";break;case"space":Ut=" ";break;case"subsup":Ut="";break;case"macro":Ut=(Pt=(it=zd[Jn])!=null?it:_d[Jn])!=null?Pt:ko(a.body);break}if(!a.hasEmptyBranch("subscript")){Ut+="_";const Zn=ko(a.subscript);Ut+=Zn.length!==1?`(${Zn})`:Zn}if(!a.hasEmptyBranch("superscript")){Ut+="^";const Zn=ko(a.superscript);Ut+=Zn.length!==1?`(${Zn})`:Zn}return Ut}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 Qo(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new Ia({from:me(xe({},bu()),{renderPlaceholder:()=>new Vr(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),oe=new pr({mode:"math",type:"root",body:Xo(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return oe?(gu(Cd(oe,ee)),vu(oe,{classes:"ML__latex"}).toMarkup()):""}function k1(a){return t0(a,{context:bu()})}function Rv(a,y={}){return Za(Xo(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Fv(a){const y=Xo(a,{parseMode:"math",mathstyle:"displaystyle"});return _u(y)}var Jf;function zv(a){var y,b;if(!Jf){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?Jf=new E:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(b=Jf==null?void 0:Jf.box(a).latex)!=null?b:""}function L1(a,y="math"){return ko(new pr({type:"root",body:Xo(a,{parseMode:y})}))}function B1(a){return Pc(a,{format:"ascii-math"})[1]}function Uh(a){if(typeof a=="string"){const y=_v(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Kv(a):"a"in a?up(a):a}function Hu(a){return a<0?0:a>255?255:Math.round(a)}function _v(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&typeof y.a=="undefined"&&(y.a=1),y}function Vh(a){const[y,b,E]=[a.L,a.C,a.H],ee=E*Math.PI/180,re={L:y,a:b*Math.cos(ee),b:b*Math.sin(ee)};return a.alpha!==void 0&&(re.alpha=a.alpha),re}function Hv(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),oe=Math.atan2(E,b)*180/Math.PI,pe={L:y,C:ee,H:oe};return a.alpha!==void 0&&(pe.alpha=a.alpha),pe}function Gh(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*E,3),re=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*E,3),oe=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),pe=4.076741661347994*ee-3.307711590408193*re+.230969928729428*oe,ge=-1.2684380040921763*ee+2.6097574006633715*re-.3413193963102197*oe,be=-.004196086541837188*ee-.7034186144594493*re+1.7076147009309444*oe,Ae=_e=>{const it=Math.abs(_e);return it<=.0031308?_e*12.92:(Math.sign(_e)||1)*(1.055*Math.pow(it,1/2.4)-.055)};return[Ae(pe),Ae(ge),Ae(be)]}function Yh(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Xh(a,y){let[b,E,ee]=a;return b=Hu(b*255),E=Hu(E*255),ee=Hu(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function up(a){let[y,b,E]=Gh(a);if(Yh([y,b,E]))return Xh([y,b,E],a.alpha);const ee=Hv(a);if(ee.C=0,[y,b,E]=Gh(Vh(ee)),!Yh([y,b,E]))return Xh([y,b,E],a.alpha);let re=0,oe=a.L,pe=(re+oe)/2;ee.C=pe;const ge=.36/Math.pow(2,12);for(;oe-re>ge;)pe=(re+oe)/2,ee.C=pe,[y,b,E]=Gh(Vh(ee)),Yh([y,b,E])?re=pe:oe=pe;return Xh([y,b,E],a.alpha)}function Kv(a){return up(Vh(a))}function dp(a,y){const b=Uh(a),E=Uh(y),ee=.56,re=.57,oe=.62,pe=.65,ge=.022,be=1.414,Ae=.1,_e=5e-4,it=1.14,Pt=.027,Ut=1.14,Jn=.027;function Ur(Ii){return Ii>=ge?Ii:Ii+Tl(ge-Ii,be)}function Zn(Ii){return(Ii<0?-1:1)*Math.pow(Math.abs(Ii),2.4)}const Mr=Ur(Zn(E.r/255)*.2126729+Zn(E.g/255)*.7151522+Zn(E.b/255)*.072175),Gr=Ur(Zn(b.r/255)*.2126729+Zn(b.g/255)*.7151522+Zn(b.b/255)*.072175);let Tr,bi,Zi;return Math.abs(Gr-Mr)<_e?bi=0:Gr>Mr?(Tr=Tl(Gr,ee)-Tl(Mr,re),bi=Tr*it):(Tr=Tl(Gr,pe)-Tl(Mr,oe),bi=Tr*Ut),Math.abs(bi)<Ae?Zi=0:bi>0?Zi=bi-Jn:Zi=bi+Pt,Zi*100}function fp(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const E=dp(a,b),ee=dp(a,y);return Math.abs(E)>Math.abs(ee)?b:y}function Wv(a){const y=Uh(a);let b=((1<<24)+(Hu(y.r)<<16)+(Hu(y.g)<<8)+Hu(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 mo(a){const y=hp(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function hp(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function jv(a,y){const b=hp(a);if(b.length!==1)return!1;const E=ph[y];return E?!!E.test(b[0].value):!1}function Zv(a,y){return mo(a).length>0}function Uv(a){return[Qh(a,"double-struck","mathbb","tooltip.blackboard"),Qh(a,"fraktur","mathfrak","tooltip.fraktur"),Qh(a,"calligraphic","mathcal","tooltip.caligraphic"),Jh(a,"up","mathrm","tooltip.roman-upright"),Jh(a,"bold","mathbf","tooltip.bold"),Jh(a,"italic","mathit","tooltip.italic")]}function Vv(a){return[{label:()=>Qo(`\\vec{${mo(a)}}`),visible:()=>mo(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\overrightarrow{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\overleftarrow{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\dot{${mo(a)}}`),visible:()=>mo(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\ddot{${mo(a)}}`),visible:()=>mo(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\bar{${mo(a)}}`),visible:()=>mo(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\overline{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\overgroup{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\overbrace{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\underline{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\undergroup{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\underbrace{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gv(a){return[{label:()=>Qo(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Qo(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Yv(a){const y=[];for(const b of Object.keys(je))y.push({class:(Wv(fp(je[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${je[b]} "></span>`,ariaLabel:()=>{var E;return(E=lt(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({backgroundColor:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Xv(a){const y=[];for(const b of Object.keys(Ue))y.push({class:(fp(Ue[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ue[b]} "></span>`,ariaLabel:()=>{var E;return(E=lt(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({color:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Qv=class extends ep{constructor(a,y,b,E){super(a,y),this.row=b,this.col=E}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function Jv(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ee,re)=>new Qv(ee,re,b,E),label:"\u2610",tooltip:()=>lt("tooltip.row-by-col",b,E),data:{row:b,col:E},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(E).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function qv(a){return[{label:()=>lt("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Gc(a)},{label:()=>lt("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Gc(a)},{label:()=>lt("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Gc(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>lt("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Gc(a)},{type:"divider"},{label:()=>lt("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Gc(a)},{label:()=>lt("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Gc(a)},{type:"divider"},{label:()=>lt("menu.borders"),visible:()=>($v(a)||Gc(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Hd(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Hd(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Hd(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Hd(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Hd(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>lt("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Jv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>lt("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>lt("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Bu(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>lt("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Bu(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>lt("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>lt("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>lt("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Xv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>lt("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>lt("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Vv(a),submenuClass:"variant-submenu"},{label:()=>lt("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&mo(a).length>0,submenu:Gv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>lt("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=t1(a);if(!y){a.model.announce("plonk");return}a.model.selectionIsCollapsed?(a.model.position=a.model.lastOffset,a.insert(`=${y}`,{insertionMode:"insertAfter",selectionMode:"item"})):a.insert(y,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>lt("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const E=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!E){a.model.announce("plonk");return}a.insert(`=${E.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!E){a.model.announce("plonk");return}a.insert(E.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var y;if(window.MathfieldElement.computeEngine===null)return"";const b=(y=a.expression)==null?void 0:y.unknowns[0];return b?lt("menu.solve-for",Qo(b)):lt("menu.solve")},id:"ce-solve",visible:()=>{var y;return a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((y=a.expression)==null?void 0:y.unknowns.length)===1&&a.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var y;const b=a.expression,E=b==null?void 0:b.unknowns[0],ee=(y=b.solve(E))==null?void 0:y.map(re=>{var oe;return(oe=re.simplify().latex)!=null?oe:""});if(!ee){a.model.announce("plonk");return}a.insert(`${E}=${ee.length===1?ee[0]:"\\left\\lbrace"+(ee==null?void 0:ee.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>lt("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>lt("menu.copy"),id:"copy",submenu:[{label:()=>lt("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>aa.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>lt("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>aa.copyToClipboard(a,"ascii-math")},{label:()=>lt("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>aa.copyToClipboard(a,"math-ml")}]},{label:()=>lt("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>lt("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Gc(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function $v(a){return a.model.at(a.model.position).type==="array"}function e1(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((E,ee)=>Math.max(E,ee.length),0)]:[0,0]}function Hd(a,y){Ef(a),a.flushInlineShortcutBuffer(),T0(a.model,y),Eo(a)}function t1(a){var y,b;let E;if(a.model.selectionIsCollapsed?E=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!E)return"";let ee=E.evaluate();return ee.isSame(E)&&(ee=E.N()),ee.latex}function Qh(a,y,b,E){return{label:()=>Qo(`\\${b}{${mo(a)}}`),tooltip:()=>{var ee;return(ee=lt(E))!=null?ee:E},visible:()=>jv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variant:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Jh(a,y,b,E){return{label:()=>Qo(`\\${b}{${mo(a)}}`),tooltip:()=>{var ee;return(ee=lt(E))!=null?ee:E},visible:()=>Zv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variantStyle:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Ku(a,y){return a+_u(y)}Ls({speak:(a,y,b)=>n1(a,y,b)},{target:"mathfield"});function n1(a,y,b){var E,ee;b=b!=null?b:{withHighlighting:!1};const{model:re}=a;function oe(Ae){let _e=null;switch(Ae){case"all":_e=re.root;break;case"selection":_e=re.getAtoms(re.selection);break;case"left":{_e=re.getAtoms(re.offsetOf(re.at(re.position).leftSibling),re.position);break}case"right":{_e=re.getAtoms(re.position,re.offsetOf(re.at(re.position).rightSibling));break}case"group":_e=re.getAtoms(re.getSiblingsRange(re.position));break;case"parent":{const{parent:it}=re.at(re.position);it!=null&&it.parent?_e=it:_e=re.root;break}default:_e=re.root}return _e}function pe(Ae){let _e="";switch(Ae){case"all":console.log("Internal failure: speak all failed");break;case"selection":_e="no selection";break;case"left":_e="at start";break;case"right":_e="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":_e="no parent";break;default:console.log('unknown speak_ param value: "'+Ae+'"');break}return _e}const ge=oe(y);if(ge===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,pe(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const be=_u(ge);return pt()&&b.withHighlighting?(mc().readAloudMathfield=a,zc(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,be)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(be),!1}function r1(a){var y,b;if(!pt()){console.log("Speak:",a);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const E=new SpeechSynthesisUtterance(a);window.speechSynthesis.speak(E)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const E=new window.AWS.Polly({apiVersion:"2016-06-10"}),ee={OutputFormat:"mp3",VoiceId:(y=window.MathfieldElement.speechEngineVoice)!=null?y:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna")?"neural":"standard",Text:a,TextType:"ssml"};E.synthesizeSpeech(ee,(re,oe)=>{if(re)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);else if(oe!=null&&oe.AudioStream){const pe=new Uint8Array(oe.AudioStream),ge=new Blob([pe.buffer],{type:"audio/mpeg"}),be=URL.createObjectURL(ge);new Audio(be).play().catch(_e=>console.log(_e))}else console.log("polly.synthesizeSpeech():",oe)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function pp(a){var y;let b;if(a.parent.type==="prompt")a.parentBranch==="body"&&(b="prompt");else if(a.parentBranch==="body")b=a.type&&(y={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[a.type])!=null?y:"parent";else if(a.parent.type==="genfrac"){if(a.parentBranch==="above")return"numerator";if(a.parentBranch==="below")return"denominator"}else a.parent.type==="surd"?a.parentBranch==="above"&&(b="index"):a.parentBranch==="superscript"?b="superscript":a.parentBranch==="subscript"&&(b="subscript");return b||console.log("unknown relationship"),b!=null?b:"parent"}function i1(a,y,b,E){let ee="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ee=Ku("deleted: ",E);else if(y==="focus"||y.includes("move"))ee=a1(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+o1(a.model);else if(y==="replacement")ee=Ku("",a.model.at(a.model.position));else if(y==="line"){const re=Ku("",a.model.root);a.keyboardDelegate.setAriaLabel(re)}else ee=E?Ku(y+" ",E):y;if(ee){const re=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ee+re}}function a1(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let E="",ee=b.parent;const re=a.at(a.position).parent;for(;ee!==a.root&&ee!==re;)E+=`out of ${pp(ee)};`,ee=ee.parent;return E}function o1(a){if(!a.selectionIsCollapsed)return Ku("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),E=pp(b);return b.isFirstSibling&&(y=(E?"start of "+E:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=E?"end of "+E:"unknown"):y+=Ku("",b),y}var s1=class{constructor(a,y,b){this.mathfield=a,this.mode=y,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=b}dispose(){this.mathfield=void 0}getState(){const a={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(a.direction=this.selection.direction),{content:this.root.toJson(),selection:a,mode:this.mode}}setState(a,y){var b;const E=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let ee={};if((y==null?void 0:y.type)==="undo"&&(ee={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ee={inputType:"historyRedo"}),this.contentWillChange(ee)){const re=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=dc(a.content),this.selection=a.selection,this.silenceNotifications=re,this.contentDidChange(ee)}this.silenceNotifications=E}get atoms(){return this.root.children}get selection(){return this._selection}set selection(a){this.setSelection(a)}setSelection(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var b,E,ee;const re=this.normalizeSelection(a,y);if(re===void 0)throw new TypeError("Invalid selection");if(re.ranges.length===1&&re.ranges[0][0]===re.ranges[0][1]){const Ae=re.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(Ae))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(Ae-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(Ae-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(Ae+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(Ae+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=Ae,this._position=Ae,this._selection=re;return}const oe=Go(re);re.direction==="backward"?[this._position,this._anchor]=oe:[this._anchor,this._position]=oe;const pe=this.at(oe[0]+1),ge=this.at(oe[1]),be=pr.commonAncestor(pe,ge);(be==null?void 0:be.type)==="array"&&pe.parent===be&&ge.parent===be?this._selection={ranges:[oe],direction:re.direction}:this._selection={ranges:[oe],direction:re.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(a){var y;const b=this.at(a);(b==null?void 0:b.type)==="placeholder"?this.setSelection(a-1,a):((y=b==null?void 0:b.rightSibling)==null?void 0:y.type)==="placeholder"?this.setSelection(a,a+1):this.position=a,b instanceof ns&&b.isSuggestion&&(b.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(a){this.setSelection(a,a)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(a="forward"){return this._anchor===this._position?!1:(a==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(a){return this.atoms[a]}offsetOf(a){return this.atoms.indexOf(a)}getSiblingsRange(a){const y=this.at(a),{parent:b}=y;if(!b)return[0,this.lastOffset];const E=y.parent.branch(y.parentBranch);return[this.offsetOf(E[0]),this.offsetOf(E[E.length-1])]}getBranchRange(a,y){const b=this.at(a).branch(y);return[this.offsetOf(b[0]),this.offsetOf(b[b.length-1])]}getAtoms(a,y,b){let E=b!=null?b:{};if(wu(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((be,Ae)=>[...be,...this.getAtoms(Ae,E)],[]);a=a.ranges[0]}let ee,re;if(gl(a)){if(ee=a,!gl(y))return[];re=y}else[ee,re]=a,E=y!=null?y:{};if(!Number.isFinite(ee))return[];E.includeChildren===void 0&&(E.includeChildren=!1),ee<0&&(ee=this.lastOffset-ee+1),re<0&&(re=this.lastOffset-re+1);const oe=Math.min(ee,re)+1,pe=Math.max(ee,re);if(!E.includeChildren&&oe===1&&pe===this.lastOffset)return[this.root];let ge=[];for(let be=oe;be<=pe;be++){const Ae=this.atoms[be];mp(this,Ae,oe,pe)&&ge.push(Ae)}return E.includeChildren||(ge=ge.filter(be=>{let Ae=!1,{parent:_e}=be;for(;_e&&!Ae;)Ae=mp(this,_e,oe,pe),_e=_e.parent;return!Ae})),ge}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let E=a;E<=b;E++)y.push(this.atoms[E]);for(let E=0;E<a;E++)y.push(this.atoms[E]);return y}findAtom(a,y=0,b="forward"){let E;const ee=this.lastOffset;if(b==="forward"){for(let re=y;re<=ee;re++)if(E=this.atoms[re],a(E))return E;for(let re=0;re<y;re++)if(E=this.atoms[re],a(E))return E;return}for(let re=y;re>=0;re--)if(E=this.atoms[re],a(E))return E;for(let re=ee;re>y;re--)if(E=this.atoms[re],a(E))return E}extractAtoms(a){let y=this.getAtoms(a);if(y.length===1&&!y[0].parent)if(y[0].type==="root")y=[...y[0].body],y.shift();else return y=this.root.cells.flat(),this.root=new pr({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 pr.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 Za(a);if(b==="spoken")return _u(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=_u(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ee=_u(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?ko(a):(console.error(`MathLive 0.98.5: Unexpected format "${b}`),"")}getValue(a,y,b){if(a===void 0)return this.atomToString(this.root,"latex");if(typeof a=="string"&&a!=="math-json")return this.atomToString(this.root,a);let E,ee;if(gl(a)&&gl(y)?(E=[this.normalizeRange([a,y])],ee=b):xu(a)?(E=[this.normalizeRange(a)],ee=y):wu(a)?(E=a.ranges,ee=y):(E=[this.normalizeRange([0,-1])],ee=a),ee!=null||(ee="latex"),ee==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const re=this.getValue({ranges:E},"latex-unstyled");try{const oe=window.MathfieldElement.computeEngine.parse(re);return JSON.stringify(oe.json)}catch(oe){return JSON.stringify(["Error",`'${oe.toString()}'`])}}if(ee.startsWith("latex")){const re={expandMacro:ee==="latex-expanded",skipStyles:ee==="latex-unstyled",skipPlaceholders:ee==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return ba(E.map(oe=>pr.serialize(this.getAtoms(oe),re)))}return E.map(re=>this.getAtoms(re).map(oe=>this.atomToString(oe,ee)).join("")).join("")}extendSelectionTo(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const b=this.normalizeRange([a,y]);let[E,ee]=b,{parent:re}=this.at(ee);if(re&&(re.type==="genfrac"||re.type==="subsup"))for(;re!==this.root&&qh(this,re,[E,ee]);)ee=this.offsetOf(re),re=re.parent;for(re=this.at(E).parent;re!==this.root&&qh(this,re,[E,ee]);)E=this.offsetOf(re.leftSibling),re=re.parent;if(re=this.at(ee).parent,(re==null?void 0:re.type)==="genfrac")for(;re!==this.root&&qh(this,re,[E,ee]);)ee=this.offsetOf(re),console.assert(ee>=0),re=re.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[E,ee]],direction:"none"}})}announce(a,y,b=[]){var E,ee;((ee=(E=this.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0)&&i1(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,E=this._anchor,ee=this._position,re=this.silenceNotifications;this.silenceNotifications=!0;const oe=this.root.changeCounter;y();const pe=this.root.changeCounter!==oe,ge=E!==this._anchor||ee!==this._position||Oc(this._selection,b)==="different";return this.silenceNotifications=re,a.content&&pe&&this.contentDidChange({inputType:a.type}),a.selection&&ge&&this.selectionDidChange(),pe||ge}normalizeOffset(a){return a>0?a=Math.min(a,this.lastOffset):a<0&&(a=this.lastOffset+a+1),a}normalizeRange(a){let[y,b]=a;return y=this.normalizeOffset(y),b=this.normalizeOffset(b),y<b?[y,b]:[b,y]}normalizeSelection(a,y){var b;let E;if(gl(a)){const ee=this.normalizeOffset(a);if(gl(y)){const re=this.normalizeOffset(y);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else E={ranges:[[ee,ee]],direction:"none"}}else if(xu(a)){const ee=this.normalizeOffset(a[0]),re=this.normalizeOffset(a[1]);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else wu(a)&&(E={ranges:a.ranges.map(ee=>this.normalizeRange(ee)),direction:(b=a.direction)!=null?b:"none"});return console.assert(E!==void 0),E}get parentEnvironment(){let a=this.at(this.position).parent;if(a){for(;a.parent&&a.type!=="array";)a=a.parent;if(a.type==="array")return a}}get cell(){var a;let y=this.at(this.position);if(y){for(;y&&((a=y.parent)==null?void 0:a.type)!=="array";)y=y.parent;if(!(!(y!=null&&y.parent)||y.parent.type!=="array"))return y.parentBranch}}contentWillChange(a={}){if(this.silenceNotifications||!this.mathfield)return!0;const y=this.silenceNotifications;this.silenceNotifications=!0;const b=this.mathfield.onContentWillChange(a);return this.silenceNotifications=y,b}contentDidChange(a){var y;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(El(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",me(xe({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",bubbles:!0,composed:!0}))),this.silenceNotifications=b}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(El(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function mp(a,y,b,E){const ee=a.offsetOf(y);if(ee<b||ee>E)return!1;if(!y.hasChildren)return!0;const re=a.offsetOf(y.firstChild);if(re>=b&&re<=E){const oe=a.offsetOf(y.lastChild);if(oe>=b&&oe<=E)return!0}return!1}function qh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,re=a.offsetOf(y.firstChild),oe=a.offsetOf(y.lastChild);return re>=E&&re<=ee&&oe>=re&&oe<=ee}function Kd(a,y,b,E){var ee,re,oe,pe,ge,be;const Ae=b.parent;if(Ae&&b instanceof ja){const _e=!E&&y==="forward"||E==="body"&&y==="backward";let it=_e?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return _e?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Ae.addChildrenAfter(b.removeBranch("body"),b),Ae.removeChild(b),it--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Ae.addChildrenAfter(b.removeBranch("body"),b),Ae.removeChild(b),it--),a.position=it,!0}if(Ae&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const _e=b.leftSibling;b.hasChildren&&Ae.addChildrenAfter(b.removeBranch("body"),b),Ae.removeChild(b),a.position=a.offsetOf(_e)}else y==="forward"&&E==="body"?a.position=a.offsetOf(b):!E&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),Ae.removeChild(b)):E==="above"&&(b.hasEmptyBranch("above")&&b.removeBranch("above"),y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b.body[0]));return!0}if(Ae&&(b.type==="box"||b.type==="enclose")){const _e=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Ae.addChildrenAfter(b.removeBranch("body"),b),Ae.removeChild(b),a.position=a.offsetOf(_e),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!E)return b.type==="overunder"&&b.hasEmptyBranch("body")||b.type==="genfrac"&&b.hasEmptyBranch("below")&&b.hasEmptyBranch("above")?!1:(a.position=a.offsetOf(y==="forward"?b.firstChild:b.lastChild),!0);const _e=Wd.fractionNavigationOrder==="numerator-denominator"?"above":"below",it=_e==="above"?"below":"above";if(Ae&&(y==="forward"&&E===_e||y==="backward"&&E===it)){const Pt=b.removeBranch(_e),Ut=b.removeBranch(it);return Ae.addChildrenAfter([...Pt,...Ut],b),Ae.removeChild(b),a.position=a.offsetOf(Pt.length>0?Pt[Pt.length-1]:Ut[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!E&&y==="forward")return!1;if(!E){if(b.subscript||b.superscript){const _e=y==="forward"?(oe=(ee=b.superscript)==null?void 0:ee[0])!=null?oe:(re=b.subscript)==null?void 0:re[0]:(be=(pe=b.subscript)==null?void 0:pe[0].lastSibling)!=null?be:(ge=b.superscript)==null?void 0:ge[0].lastSibling;return _e&&(a.position=a.offsetOf(_e)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const _e=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=_e,!0}if(E==="superscript")if(y==="backward"){const _e=a.offsetOf(b.firstChild)-1;console.assert(_e>=0),a.position=_e}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else E==="subscript"&&(y==="backward"&&b.superscript?a.position=a.offsetOf(b.superscript[0].lastSibling):y==="backward"?a.position=a.offsetOf(b.firstChild)-1:a.position=a.offsetOf(b));if(E&&b.hasEmptyBranch(E)&&(b.removeBranch(E),b.type==="subsup"&&!b.subscript&&!b.superscript)){const _e=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=_e}return!0}if((Ae==null?void 0:Ae.type)==="genfrac"&&!E&&b.type!=="first"){let _e=a.offsetOf(b.leftSibling);return Ae.removeChild(b),Ae.hasEmptyBranch("above")&&Ae.hasEmptyBranch("below")?(_e=a.offsetOf(Ae.leftSibling),Ae.parent.removeChild(Ae),a.announce("delete",void 0,[Ae]),a.position=_e,!0):(a.announce("delete",void 0,[b]),a.position=_e,!0)}if(y==="backward"&&((Ae==null?void 0:Ae.command)==="\\ln"||(Ae==null?void 0:Ae.command)==="\\log")&&b.parentBranch!=="body"){const _e=a.offsetOf(Ae.leftSibling);return Ae.parent.removeChild(Ae),a.announce("delete",void 0,[Ae]),a.position=_e,!0}return!1}function l1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentBackward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let y=a.at(a.position);if(!(y&&Kd(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(Kd(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])}}):Al(a,Go(a.selection),"deleteContentBackward")}function c1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let E=a.at(a.position).rightSibling;if(E&&Kd(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&Kd(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&Kd(a,"forward",E.parent,E.parentBranch))return;E=void 0}if(a.position===a.lastOffset||!E){a.announce("plonk");return}E.parent.removeChild(E);let ee=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ee==null?void 0:ee.type)==="subsup";)ee.parent.removeChild(ee),ee=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[E])}):Al(a,Go(a.selection),"deleteContentForward")}function Al(a,y,b){const E=a.getAtoms(y);if(E.length>0&&E[0].parent){let ee=E[0].parent.firstChild;ee.type==="first"&&(ee=ee.rightSibling);const re=E[E.length-1].parent.lastChild;let oe=E[0];oe.type==="first"&&(oe=oe.rightSibling);const pe=E[E.length-1];if(oe===ee&&pe===re){const ge=E[0].parent;ge.parent&&ge.type!=="prompt"&&(y=[a.offsetOf(ge.leftSibling),a.offsetOf(ge)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const ge=E[0].parent,be=E[0].parentBranch==="below"?"above":"below",Ae=a.offsetOf(ge.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var _e,it;const Pt=ge.removeBranch(be);if(Pt.length===1&&Pt[0].type==="placeholder")(it=ge.parent)==null||it.removeChild(ge),a.position=Math.max(0,Ae);else{const Ut=ge.parent.addChildrenAfter(Pt,ge);(_e=ge.parent)==null||_e.removeChild(ge),a.position=a.offsetOf(Ut)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}Ls({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Al(a,[0,-1],"deleteContent"),deleteForward:a=>c1(a),deleteBackward:a=>l1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Al(a,[a.anchor,kh(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Al(a,[a.anchor,kh(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Al(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Al(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Al(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Al(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var u1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${lt("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,d1=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${lt("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,f1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=xe(me(xe({},Nf()),{macros:wt(),registers:oc()}),Pf(y)),this.eventController=new AbortController;const re=this.eventController.signal;y.eventSink&&(this.host=y.eventSink),this.element=a,a.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let oe=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";oe=oe.trim();const pe=B0(this.options),ge=new pr({type:"root",mode:pe,body:Xo(oe,{context:this.context})});this.model=new s1(this,pe,ge),this.undoManager=new Fg(this.model);const be=[];if(be.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>"),be.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),be.push("<span part=content class=ML__content>"),be.push(w0(this)),be.push("</span>"),window.mathVirtualKeyboard&&(be.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">`),be.push(u1),be.push("</div>")),be.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),be.push(d1),be.push("</div>"),be.push("</span>"),be.push("<span class=ML__sr-only>"),be.push("<span role=status aria-live=assertive aria-atomic=true></span>"),be.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(be.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=Xe.subscribe(()=>Xe.update(this.element)),Xe.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",_e=>_e.stopImmediatePropagation(),{capture:!1,signal:re}),this.field.addEventListener("wheel",this,{passive:!1,signal:re}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:re}):this.field.addEventListener("mousedown",this,{signal:re}),(ee=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ee.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(El(this)))},{signal:re}),this._menu=new Sv(qv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:re});const Ae=this.element.querySelector("[part=menu-toggle]");Ae==null||Ae.addEventListener("pointerdown",_e=>{if(_e.currentTarget!==Ae||this._menu.state!=="closed")return;this.element.classList.add("tracking");const it=Ae.getBoundingClientRect();this._menu.modifiers=Fc(_e),this._menu.show({target:Ae,location:{x:it.left,y:it.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),_e.preventDefault(),_e.stopPropagation()},{signal:re}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Ae.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Wm(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:re}),document.addEventListener("scroll",this,{signal:re}),this.resizeObserver=new ResizeObserver(()=>Eo(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:re}),Ad&&!Xe.locale.startsWith(Ad.locale)&&zm(Xe.locale),zs!=="ready"&&document.fonts.ready.then(()=>Bf(this)),a.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(a){this._defaultStyle=a}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const a=this.model.at(this.model.position),y=this.adoptStyle==="right"?a.rightSibling:a;if(!y)return this.defaultStyle;if(y.type==="group"){const b=y.branch("body");return!b||b.length<2?{}:this.adoptStyle==="right"?b[1].computedStyle:b[b.length-1].computedStyle}return y.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(El(this)),Gf(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,zh())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:bl(this.field))!=null?b:void 0,ee=a==null?void 0:a.modifiers,re=this.element.querySelector("[part=container]");return this._menu.show({target:re,location:E,modifiers:ee})}get colorMap(){return a=>{var y,b,E;return(E=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?E:Ft(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,re,oe;return(oe=(re=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?re:(ee=(E=this.options).colorMap)==null?void 0:ee.call(E,a))!=null?oe:tt(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=pr.commonAncestor(a,y);return!!((b==null?void 0:b.type)==="prompt"||b!=null&&b.parentPrompt)}get letterShapeStyle(){var a;return(a=this.options.letterShapeStyle)!=null?a:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const a=this.model.getAtoms(this.model.selection);if(a.length===0)return{};const y=xe({},a[0].style);for(const b of a)for(const[E,ee]of Object.entries(b.style))y[E]!==ee&&delete y[E];return y}queryStyle(a){const y=Oh(this,a);"verbatimColor"in y&&delete y.verbatimColor,"verbatimBackgroundColor"in y&&delete y.verbatimBackgroundColor;const b=Object.keys(y).length;if(b===0)return"all";if(b>1){for(const ge of Object.keys(y)){const be=this.queryStyle({[ge]:y[ge]});if(be==="none")return"none";if(be==="some")return"some"}return"all"}const E=Object.keys(y)[0],ee=y[E];if(this.model.selectionIsCollapsed)return this.effectiveStyle[E]===ee?"all":"none";const re=this.model.getAtoms(this.model.selection,{includeChildren:!0});let oe=re.length;if(oe===0)return"none";let pe=0;for(const ge of re){if(ge.type==="first"){oe-=1;continue}ge.style[E]===ee&&(pe+=1)}return pe===0?"none":pe===oe?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Gm(this.options.keybindings,(a=kd())!=null?a:_m());return((y=kd())==null?void 0:y.score)>0&&(this._keybindings=b,E.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",E)),b}get menu(){return this._menu}setOptions(a){var y;this.options=xe(xe({},this.options),Pf(a)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let b=this.options.defaultMode;b==="inline-math"&&(b="math"),((y=this.model.root.firstChild)==null?void 0:y.mode)!==b&&(this.model.root.firstChild.mode=b),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const E=pr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&aa.insert(this.model,E,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in a||"macros"in a||"registers"in a||"colorMap"in a||"backgroundColorMap"in a||"letterShapeStyle"in a||"minFontScale"in a||"readOnly"in a||"placeholderSymbol"in a)&&Eo(this)}getOptions(a){return Hc(this.options,a)}getOption(a){return Hc(this.options,a)}handleEvent(a){return gc(this,null,function*(){var y;if(Ns(this)){if(Ch(a)){if(!yd(a.origin,(y=this.options.originValidator)!=null?y:"none"))throw new DOMException(`Message from unknown origin (${a.origin}) cannot be handled`,"SecurityError");const{action:b}=a.data;if(b==="execute-command"){const E=a.data.command;if(Iu(E)==="virtual-keyboard")return;this.executeCommand(E)}else b==="update-state"||(b==="focus"?this.focus({preventScroll:!0}):b==="blur"&&this.blur());return}switch(a.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&Z0(this,a);break;case"pointerdown":this.userSelect!=="none"&&(Z0(this,a),a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&jf.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&jf.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Gf(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Ns(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Ns(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Ns(this))return;Xe.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const a=this.element;delete a.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,Yg(),$m(),mv()}flushInlineShortcutBuffer(a){if(a!=null||(a={defer:!1}),!a.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(a){return Iu(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(El(this))),!1):og(this,a)}get errors(){return t0(this.model.getValue(),{context:this.context})}getValue(a,y,b){return this.model.getValue(a,y,b)}setValue(a,y){var b;y=y!=null?y:{mode:"math"},y.insertionMode===void 0&&(y.insertionMode="replaceAll"),(y.format===void 0||y.format==="auto")&&(y.format="latex"),(y.mode===void 0||y.mode==="auto")&&(y.mode=(b=ah(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();aa.insert(this.model,a,y)&&(Eo(this),E||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const a=window.MathfieldElement.computeEngine;return a?a.box(a.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var a;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const E=window.mathVirtualKeyboard.boundingRect,ee=this.host.getBoundingClientRect();ee.bottom>E.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ee.bottom-E.top+8))}}this.dirty&&zc(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=bl(this.field);else{const E=vd(this);if(E.length>0){let ee=-1/0,re=-1/0;for(const oe of E)oe.right>ee&&(ee=oe.right),oe.top<re&&(re=oe.top);b={x:ee+y.left-this.field.scrollLeft,y:re+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ee=b.y;let re=this.host.scrollTop;ee<E.top?re=ee-E.top+this.host.scrollTop:ee>E.bottom&&(re=ee-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:re,left:0})}if(b){const E=b.x-window.scrollX;let ee=this.field.scrollLeft;E<y.left?ee=E-y.left+this.field.scrollLeft-20:E>y.right&&(ee=E-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ee})}}insert(a,y){return typeof a!="string"||a.length===0&&((y==null?void 0:y.insertionMode)==="insertBefore"||(y==null?void 0:y.insertionMode)==="insertAfter")||a.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),y=y!=null?y:{mode:"math"},y.focus&&this.focus(),y.feedback&&(window.MathfieldElement.keypressVibration&&rt()&&navigator.vibrate(S0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?D0(this.model):a==="&"?I0(this.model):this.model.selectionIsCollapsed?aa.insert(this.model,a,xe({style:this.model.at(this.model.position).computedStyle},y)):aa.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Eo(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var E;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ee=this.model.mode;if(this.model.mode=a,!((E=this.host)!=null&&E.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ee;return}const re=this.model.mode,{model:oe}=this;oe.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let pe=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const ge=Xo(y,{context:this.context,parseMode:a});oe.collapseSelection("forward");const be=oe.at(oe.position);oe.position=oe.offsetOf(be.parent.addChildrenAfter(ge,be)),pe=!0}if(this.model.mode=a,a==="latex"){let ge=oe.selectionIsCollapsed;Bu(this,"accept");let be,Ae=oe.at(oe.position);if(ge)be="\\";else{const it=Go(oe.selection);be=this.model.getValue(it,"latex");const Pt=this.model.extractAtoms(it);Pt.length===1&&Pt[0].type==="placeholder"&&(be=y,ge=!0),Ae=oe.at(it[0])}const _e=new xd(be);Ae.parent.addChildAfter(_e,Ae),ge?oe.position=oe.offsetOf(_e.lastChild):oe.setSelection(oe.offsetOf(_e.firstChild),oe.offsetOf(_e.lastChild))}else Ld(oe).forEach(ge=>{ge.isError=!1});if(b){const ge=Xo(b,{context:this.context,parseMode:re});oe.collapseSelection("forward");const be=oe.at(oe.position);oe.position=oe.offsetOf(be.parent.addChildrenAfter(ge,be)),pe=!0}return Eo(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),pe}),this.model.mode=a,window.mathVirtualKeyboard.update(El(this))}hasFocus(){return!this.blurred}focus(a){var y;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(y=a==null?void 0:a.preventScroll)!=null&&y||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(a,y={}){var b,E;const ee={operation:"set",silenceNotifications:!1};xu(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const re=Oh(this,a),oe=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(oe==="set"){this.defaultStyle=xe(xe({},this.defaultStyle),re);return}const pe=xe({},this.defaultStyle);for(const ge of Object.keys(re))pe[ge]===re[ge]?(ge==="color"&&delete pe.verbatimColor,ge==="backgroundColor"&&delete pe.verbatimBackgroundColor,delete pe[ge]):pe[ge]=re[ge];this.defaultStyle=pe;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const pe of this.model.selection.ranges)Mh(this.model,pe,re,{operation:oe});else Mh(this.model,ee.range,re,{operation:oe})}),Eo(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=bl(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=Rd(this,a,y,{bias:0});if(b<0)return!1;const E=this.model.position;return this.model.position=b,this.model.announce("move",E),Eo(this),!0}getPrompt(a){const y=this.model.findAtom(b=>b.type==="prompt"&&b.placeholderId===a);return console.assert(y!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),y}getPromptValue(a,y){const b=this.getPrompt(a);if(!b)return"";const E=this.model.offsetOf(b.firstChild),ee=this.model.offsetOf(b.lastChild);return this.model.getValue(E,ee,y)}getPrompts(a){return this.model.getAllAtoms().filter(y=>y.type!=="prompt"?!1:a?!(a.id&&y.placeholderId!==a.id||a.locked&&y.locked!==a.locked||a.correctness==="undefined"&&y.correctness||a.correctness&&y.correctness!==a.correctness):!0).map(y=>y.placeholderId)}setPromptValue(a,y,b){if(y!==void 0){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const ee=this.model.getBranchRange(this.model.offsetOf(E),"body");this.model.setSelection(ee),this.insert(y,me(xe({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Eo(this)}setPromptState(a,y,b){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}y==="undefined"?E.correctness=void 0:typeof y=="string"&&(E.correctness=y),typeof b=="boolean"&&(E.locked=b,E.captureSelection=b),Eo(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(El(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(El(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(El(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var a;(a=this.undoManager)==null||a.reset()}onSelectionDidChange(){var a,y;const b=this.model;this.keyboardDelegate.setValue(b.getValue(this.model.selection,"latex-expanded"));{const E=b.at(b.position),ee=(a=E.mode)!=null?a:B0(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(Bu(this,"accept",{mode:ee}),b.position=b.offsetOf(E)):this.switchMode(ee))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(El(this)),Gf(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",me(xe({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?E:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),zc(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})),Eo(this),this.focusBlurInProgress=!1,zh();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Ns(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Dh(this,a)}onKeystroke(a){return K0(this,a)}onCompositionStart(a){this.model.deleteAtoms(Go(this.model.selection));const y=bl(this.field);y&&requestAnimationFrame(()=>{zc(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Lg(this.model,a),Eo(this)}onCompositionEnd(a){Bg(this.model),Dh(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),aa.onCopy(this,a),Al(this.model,Go(this.model.selection),"deleteByCut"),this.snapshot("cut"),Eo(this))}onCopy(a){aa.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=aa.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(),Af(this),Gf(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=>gn(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function gp(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)gp(y)}function $h(a,y){var b;a&&(!y||((b=a.dataset)==null?void 0:b.atomId)===y?(a.classList.add("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&$h(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&$h(E,y)})))}function h1(a,y){var b;if(!pt())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(y);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const E=new window.AWS.Polly({apiVersion:"2016-06-10"}),ee={OutputFormat:"json",VoiceId:(b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna",Engine:"standard",Text:y,TextType:"ssml",SpeechMarkTypes:["ssml"]};mc().readAloudElement=a,E.synthesizeSpeech(ee,(re,oe)=>{if(re){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);return}if(!(oe!=null&&oe.AudioStream)){console.log("polly.synthesizeSpeech():",oe);return}const pe=new TextDecoder("utf-8").decode(new Uint8Array(oe.AudioStream));mc().readAloudMarks=pe.split(`
`).map(ge=>ge?JSON.parse(ge):{}),mc().readAloudTokens=[];for(const ge of mc().readAloudMarks)ge.value&&mc().readAloudTokens.push(ge.value);mc().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(ge,be)=>{if(ge){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ge}`);return}if(!(be!=null&&be.AudioStream))return;const Ae=new Uint8Array(be.AudioStream),_e=new Blob([Ae.buffer],{type:"audio/mpeg"}),it=URL.createObjectURL(_e),Pt=mc();Pt.readAloudAudio?Pt.readAloudAudio.pause():(Pt.readAloudAudio=new Audio,Pt.readAloudAudio.addEventListener("ended",()=>{const Ut=Pt.readAloudMathfield;Pt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Ut?(zc(Ut),Pt.readAloudElement=null,Pt.readAloudMathfield=null,Pt.readAloudTokens=[],Pt.readAloudMarks=[],Pt.readAloudCurrentMark=""):gp(Pt.readAloudElement)}),Pt.readAloudAudio.addEventListener("timeupdate",()=>{let Ut="";const Jn=Pt.readAloudAudio.currentTime*1e3+100;for(const Ur of Pt.readAloudMarks)Ur.time<Jn&&(Ut=Ur.value);Pt.readAloudCurrentMark!==Ut&&(Pt.readAloudCurrentToken=Ut,Ut&&Ut===Pt.readAloudFinalToken?Pt.readAloudAudio.pause():(Pt.readAloudCurrentMark=Ut,$h(Pt.readAloudElement,Pt.readAloudCurrentMark)))})),Pt.readAloudAudio.src=it,Pt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Pt.readAloudAudio.play()})})}pt()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var za=new WeakMap,p1=.5,pc={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 = ..."},rs=class Yc extends HTMLElement{static get formAssociated(){return Wu()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,ng())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(y){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(y){this._soundsDirectory=y,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(y){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(y){var b,E,ee;this.audioBuffers={},y===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof y=="string"?this._keypressSound={spacebar:y,return:y,delete:y,default:y}:typeof y=="object"&&"default"in y&&(this._keypressSound={spacebar:(b=y.spacebar)!=null?b:y.default,return:(E=y.return)!=null?E:y.default,delete:(ee=y.delete)!=null?ee:y.default,default:y.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(y){this.audioBuffers={},this._plonkSound=y}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(y){this._speechEngine=y}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(y){this._speechEngineRate=y}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(y){this._speechEngineVoice=y}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(y){this._textToSpeechMarkup=y}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(y){this._textToSpeechRules=y}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(y){this._textToSpeechRulesOptions=y}static get locale(){return Xe.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),Xe.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 Xe.strings}static set strings(y){Xe.merge(y)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(y){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(y){this._decimalSeparator=y,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(y){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var y,b;if(this._computeEngine===void 0){const E=(y=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;if(!E)return null;this._computeEngine=new E,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(b=this._computeEngine)!=null?b:null}static set computeEngine(y){this._computeEngine=y}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(y){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(y){this._isFunction=y}static loadSound(y){return gc(this,null,function*(){delete this.audioBuffers[y];let b="";switch(y){case"keypress":b=this._keypressSound.default;break;case"return":b=this._keypressSound.return;break;case"spacebar":b=this._keypressSound.spacebar;break;case"delete":b=this._keypressSound.delete;break;case"plonk":b=this.plonkSound;break}if(typeof b!="string")return;b=b.trim();const E=this.soundsDirectory;if(!(E==null||E==="null"||b==="none"||b==="null"))try{const re=yield(yield fetch(yield x0(`${E}/${b}`))).arrayBuffer(),oe=yield this.audioContext.decodeAudioData(re);this.audioBuffers[y]=oe}catch(ee){}})}static playSound(y){return gc(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[y]||(yield this.loadSound(y)),!this.audioBuffers[y])return;const b=this.audioContext.createBufferSource();b.buffer=this.audioBuffers[y];const E=this.audioContext.createGain();E.gain.value=p1,b.connect(E).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const E of Object.keys(y))if(pc[E])if(pc[E].startsWith("mf."))if(pc[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${pc[E]}`);else{const ee=pc[E].match(/([a-zA-Z]+) =/);b.push(`Option \`${E}\` has been renamed \`${ee[1]}\``)}else b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${pc[E]}`);if(b.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const E of b)console.warn(E);console.groupEnd()}}if(Wu()&&(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=[uc("core"),uc("mathfield"),uc("mathfield-element"),uc("ui"),uc("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>"+Wl("core")+Wl("mathfield")+Wl("mathfield-element")+Wl("ui")+Wl("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const E=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=E==null?void 0:E.assignedNodes().map(ee=>ee.nodeType===3?ee.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?E:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",y=>{var b;y.target===this&&!((b=this._mathfield)!=null&&b.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:y.altKey,button:y.button,buttons:y.buttons,clientX:y.clientX,clientY:y.clientY,ctrlKey:y.ctrlKey,metaKey:y.metaKey,movementX:y.movementX,movementY:y.movementY,relatedTarget:y.relatedTarget,screenX:y.screenX,screenY:y.screenY,shiftKey:y.shiftKey}))},{once:!0})}getPromptValue(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.getPromptValue(y,b))!=null?ee:""}setPromptValue(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptValue(y,b,E)}getPromptRange(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?E:null}getPrompts(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?E:[]}get form(){var y;return(y=this._internals)==null?void 0:y.form}get name(){var y;return(y=this.getAttribute("name"))!=null?y:""}get type(){return this.localName}get mode(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.mode)!=null?b:this.defaultMode==="text"?"text":"math"}set mode(y){var b;(b=this._mathfield)==null||b.switchMode(y)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(y){var b,E;if(!this._mathfield)return;const ee=(E=(b=Yc.computeEngine)==null?void 0:b.box(y).latex)!=null?E:null;ee!==null&&this._mathfield.setValue(ee),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.errors)!=null?b:[]}_getOptions(y){return this._mathfield?Hc(this._mathfield.options,y):za.has(this)?xe({},Hc(xe(xe({},Nf()),Pf(za.get(this).options)),y)):null}getOptions(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?Hc(this._mathfield.options,y):za.has(this)?Hc(xe(xe({},Nf()),Pf(za.get(this).options)),y):null}reflectAttributes(){const y=Nf(),b=this._getOptions();Object.keys(Yc.optionsAttributes).forEach(E=>{const ee=Vl(E);Yc.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(Yc.optionsAttributes[E]==="boolean"?b[ee]?this.setAttribute(E,""):this.removeAttribute(E):(typeof b[ee]=="string"||typeof b[ee]=="number")&&this.setAttribute(E,b[ee].toString()))})}getOption(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([y])[y]}_getOption(y){return this._getOptions([y])[y]}_setOptions(y){if(this._mathfield)this._mathfield.setOptions(y);else if(za.has(this)){const b=xe(xe({},za.get(this).options),y);za.set(this,me(xe({},za.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else za.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:y,menuItems:void 0});this.reflectAttributes()}setOptions(y){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const b of Object.keys(y))pc[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${pc[b]}`);console.groupEnd(),this._setOptions(y)}executeCommand(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.executeCommand(y))!=null?E:!1}getValue(y,b,E){var ee,re;if(this._mathfield)return this._mathfield.model.getValue(y,b,E);if(za.has(this)){let oe,pe,ge;if(wu(y)?([oe,pe]=y.ranges[0],ge=b):xu(y)?([oe,pe]=y,ge=b):gl(y)&&gl(b)?(oe=y,pe=b,ge=E):(oe=0,pe=-1,ge=y),(ge===void 0||ge==="latex")&&oe===0&&pe===-1)return(re=(ee=za.get(this).value)!=null?ee:this.textContent)!=null?re:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(za.has(this)){const ee=za.get(this).options;za.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=jd(this);za.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:E,menuItems:void 0})}hasFocus(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.hasFocus())!=null?b:!1}focus(){var y;(y=this._mathfield)==null||y.focus()}blur(){var y;(y=this._mathfield)==null||y.blur()}select(){var y;(y=this._mathfield)==null||y.select()}insert(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.insert(y,b))!=null?ee:!1}applyStyle(y,b){var E;return(E=this._mathfield)==null?void 0:E.applyStyle(y,b)}queryStyle(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?E:"none"}get caretPoint(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.getCaretPoint())!=null?b:null}set caretPoint(y){var b;y&&((b=this._mathfield)==null||b.setCaretPoint(y.x,y.y))}setCaretPoint(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.setCaretPoint(y,b))!=null?ee:!1}offsetFromPoint(y,b,E){return this._mathfield?Rd(this._mathfield,y,b,E):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const E=lc(this._mathfield,b);return E?new DOMRect(E.left,E.top,E.right-E.left,E.bottom-E.top):null}resetUndo(){var y;(y=this._mathfield)==null||y.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(y){var b,E,ee,re;wl.state==="closed"&&((E=(b=this._mathfield)==null?void 0:b.menu)==null?void 0:E.state)==="closed"&&(y.type==="pointerdown"&&this.onPointerDown(),y.type==="focus"&&((ee=this._mathfield)==null||ee.focus()),y.type==="blur"&&((re=this._mathfield)==null||re.blur()))}connectedCallback(){var y,b,E,ee;const re=window.getComputedStyle(this),oe=this.shadowRoot,pe=re.userSelect!=="none";if(pe)oe.host.addEventListener("pointerdown",this,!0);else{const Ae=oe.querySelector("span");Ae.style.pointerEvents="none"}oe.host.addEventListener("focus",this,!0),oe.host.addEventListener("blur",this,!0),Wu()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),pe&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const ge=oe.querySelector("slot:not([name])");if(ge)try{this._style=ge.assignedElements().filter(Ae=>Ae.tagName.toLowerCase()==="style").map(Ae=>Ae.textContent).join("")}catch(Ae){console.error(Ae)}if(this._style){const Ae=document.createElement("style");Ae.textContent=this._style,oe.appendChild(Ae)}let be="";if(this.hasAttribute("value")?be=this.getAttribute("value"):be=(y=ge==null?void 0:ge.assignedNodes().map(Ae=>Ae.nodeType===3?Ae.textContent:"").join("").trim())!=null?y:"",this._mathfield=new f1(oe.querySelector(":host > span"),me(xe({},(E=(b=za.get(this))==null?void 0:b.options)!=null?E:jd(this)),{eventSink:this,value:be})),!za.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Ae of Object.keys(Yc.optionsAttributes))this.upgradeProperty(Vl(Ae))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(za.has(this)){const Ae=this._mathfield,_e=za.get(this),it=_e.menuItems;Ae.model.deferNotifications({content:!1,selection:!1},()=>{const Pt=_e.value;Pt!==void 0&&Ae.setValue(Pt),Ae.model.selection=_e.selection,za.delete(this)}),it&&(this.menuItems=it)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Lf()}disconnectedCallback(){var y,b;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const E=Hc(this._mathfield.options,Object.keys(Yc.optionsAttributes).map(ee=>Vl(ee)));za.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(b=(y=this._mathfield.menu)==null?void 0:y.menuItems)!=null?b:void 0,options:E}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(y){if(this.hasOwnProperty(y)){const b=this[y];delete this[y],(y==="readonly"||y==="read-only")&&(y="readOnly"),this[y]=b}}attributeChangedCallback(y,b,E){if(b===E)return;const ee=E!==null;switch(y){case"contenteditable":Eo(this._mathfield);break;case"disabled":this.disabled=ee;break;case"read-only":case"readonly":this.readOnly=ee;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),Wu()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Wu()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:b})}get disabled(){return this.hasAttribute("disabled")}set disabled(y){var b;const E=!!y;E?this.setAttribute("disabled",""):this.removeAttribute("disabled"),Wu()?this._internals.ariaDisabled=E?"true":"false":this.setAttribute("aria-disabled",E?"true":"false"),E&&((b=this._mathfield)!=null&&b.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(y){this.setValue(y)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(y){this._setOptions({defaultMode:y})}get macros(){return this._getOption("macros")}set macros(y){this._setOptions({macros:y})}get registers(){const y=this;return new Proxy({},{get:(b,E)=>{if(typeof E=="string")return y._getOption("registers")[E]},set(b,E,ee){return typeof E!="string"?!1:(y._setOptions({registers:me(xe({},y._getOption("registers")),{[E]:ee})}),!0)}})}set registers(y){this._setOptions({registers:y})}get colorMap(){return this._getOption("colorMap")}set colorMap(y){this._setOptions({colorMap:y})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(y){this._setOptions({backgroundColorMap:y})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(y){this._setOptions({letterShapeStyle:y})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(y){this._setOptions({minFontScale:y})}get smartMode(){return this._getOption("smartMode")}set smartMode(y){this._setOptions({smartMode:y})}get smartFence(){return this._getOption("smartFence")}set smartFence(y){this._setOptions({smartFence:y})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(y){this._setOptions({smartSuperscript:y})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(y){this._setOptions({scriptDepth:y})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(y){this._setOptions({removeExtraneousParentheses:y})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(y){this._setOptions({mathModeSpace:y})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(y){this._setOptions({placeholderSymbol:y})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(y){this._setOptions({popoverPolicy:y})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(y){this._setOptions({environmentPopoverPolicy:y})}get menuItems(){var y,b,E;return this._mathfield?(y=this._mathfield.menu._menuItems.map(ee=>ee.menuItem))!=null?y:[]:(E=(b=za.get(this))==null?void 0:b.menuItems)!=null?E:[]}set menuItems(y){var b;if(this._mathfield){const E=(b=this._mathfield.element)==null?void 0:b.querySelector("[part=menu-toggle]");E&&(E.style.display=y.length===0?"none":""),this._mathfield.menu.menuItems=y}za.has(this)?za.set(this,me(xe({},za.get(this)),{menuItems:y})):za.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:jd(this),menuItems:y})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(y){this._setOptions({mathVirtualKeyboardPolicy:y})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(y){this._setOptions({inlineShortcuts:y})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(y){this._setOptions({inlineShortcutTimeout:y})}get keybindings(){return this._getOption("keybindings")}set keybindings(y){this._setOptions({keybindings:y})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(y){this._setOptions({onInlineShortcut:y})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(y){this._setOptions({onScrollIntoView:y})}get onExport(){return this._getOption("onExport")}set onExport(y){this._setOptions({onExport:y})}get readOnly(){return this._getOption("readOnly")}set readOnly(y){this._setOptions({readOnly:y})}get isSelectionEditable(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.isSelectionEditable)!=null?b:!1}setPromptState(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptState(y,b,E)}getPromptState(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?E:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(y){this._setOptions({virtualKeyboardTargetOrigin:y})}get selection(){return this._mathfield?this._mathfield.model.selection:za.has(this)?za.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(y){if(typeof y=="number"&&(y={ranges:[[y,y]]}),this._mathfield){this._mathfield.model.selection=y,Eo(this._mathfield);return}if(za.has(this)){za.set(this,me(xe({},za.get(this)),{selection:y}));return}za.set(this,{value:void 0,selection:y,options:jd(this),menuItems:void 0})}get selectionIsCollapsed(){const y=this.selection;return y.ranges.length===1&&y.ranges[0][0]===y.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:za.has(this)?za.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Eo(this._mathfield)),za.has(this)){za.set(this,me(xe({},za.get(this)),{selection:{ranges:[[y,y]]}}));return}za.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:jd(this),menuItems:void 0})}getOffsetDepth(y){var b,E;return this._mathfield?((E=(b=this._mathfield.model.at(y))==null?void 0:b.treeDepth)!=null?E:2)-2:0}get lastOffset(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.lastOffset)!=null?b:-1}};rs.version="0.98.5",rs._fontsDirectory="./fonts",rs._soundsDirectory="./sounds",rs.keypressVibration=!0,rs._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},rs._plonkSound="plonk.wav",rs.audioBuffers={},rs.createHTML=a=>a,rs._speechEngineRate="100%",rs._speechEngineVoice="Joanna",rs._textToSpeechMarkup="",rs._textToSpeechRules="mathlive",rs._textToSpeechRulesOptions={},rs.speakHook=r1,rs.readAloudHook=h1,rs._decimalSeparator=".",rs.fractionNavigationOrder="numerator-denominator",rs._isFunction=a=>{var y,b;const E=window.MathfieldElement.computeEngine;return(b=(y=E==null?void 0:E.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var Wd=rs;function Vl(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function jd(a){const y={readOnly:!1},b=Wd.optionsAttributes;return Object.keys(b).forEach(E=>{if(a.hasAttribute(E)){const ee=a.getAttribute(E);E==="placeholder"?y.contentPlaceholder=ee!=null?ee:"":b[E]==="boolean"?y[Vl(E)]=!0:b[E]==="on/off"?ee==="on"?y[Vl(E)]=!0:ee==="off"?y[Vl(E)]=!1:y[Vl(E)]=void 0:b[E]==="number"?y[Vl(E)]=Number.parseFloat(ee!=null?ee:"0"):y[Vl(E)]=ee}}),y}function Wu(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=Wd,yp,bp,xp,wp;if(pt()&&!((yp=window.customElements)!=null&&yp.get("math-field"))){(xp=window[bp=Symbol.for("io.cortexjs.mathlive")])!=null||(window[bp]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=Wd,(wp=window.customElements)==null||wp.define("math-field",Wd)}function m1(a,y,b){let E=b,ee=0;const re=a.length;for(;E<y.length;){const oe=y[E];if(ee<=0&&y.slice(E,E+re)===a)return E;oe==="\\"?E++:oe==="{"?ee++:oe==="}"&&ee--,E++}return-1}function qf(a,y,b,E,ee="latex"){const re=[];for(const oe of a)if(oe.type==="text"){const pe=oe.data;let ge=!0,be=0,Ae;Ae=pe.indexOf(y),Ae!==-1&&(be=Ae,be>0&&re.push({type:"text",data:pe.slice(0,be)}),ge=!1);let _e=!1;for(;!_e;){if(ge){if(Ae=pe.indexOf(y,be),Ae===-1){_e=!0;break}be!==Ae&&re.push({type:"text",data:pe.slice(be,Ae)}),be=Ae}else{if(Ae=m1(b,pe,be+y.length),Ae===-1){_e=!0;break}let it=pe.slice(be+y.length,Ae);ee==="ascii-math"&&([,it]=Pc(it,{format:"ascii-math"})),re.push({type:"math",data:it,rawData:pe.slice(be,Ae+b.length),mathstyle:E}),be=Ae+b.length}ge=!ge}be<pe.length&&re.push({type:"text",data:pe.slice(be)})}else re.push(oe);return re}function Sp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,re])=>{E=qf(E,ee,re,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,re])=>{E=qf(E,ee,re,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,re])=>{E=qf(E,ee,re,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,re])=>{E=qf(E,ee,re,"displaystyle","ascii-math")}),E}function g1(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const E="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(E)}catch(E){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${E}`),b.textContent=a}return b.className="ML__sr-only",b}function v1(a,y,b,E){try{const ee=y.renderToMarkup(a,{mathstyle:b,format:"html"}),re=document.createElement("span");return re.dataset.latex=a,re.style.display=b==="displaystyle"?"flex":"inline-flex",re.setAttribute("aria-hidden","true"),re.setAttribute("translate","no"),re.innerHTML=window.MathfieldElement.createHTML(ee),re}catch(ee){if(console.error("Could not parse'"+a+"' with ",ee),E)return document.createTextNode(a)}return null}function ju(a,y,b,E){var ee;const re=v1(a,b,y||"textstyle",E),oe=(ee=b.renderAccessibleContent)!=null?ee:"";if(re&&/\b(mathml|speakable-text)\b/i.test(oe)){const pe=document.createElement("span");if(/\bmathml\b/i.test(oe)&&b.renderToMathML&&pe.append(g1(a,b)),/\bspeakable-text\b/i.test(oe)&&b.renderToSpeakableText){const ge=document.createElement("span");ge.setAttribute("translate","no");const be=b.renderToSpeakableText(a);ge.innerHTML=window.MathfieldElement.createHTML(be),ge.className="ML__sr-only",pe.append(ge)}return pe.append(re),pe}return re}function y1(a,y){var b,E,ee;let re=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){re=document.createDocumentFragment();const oe=ju(a,"",y,!0);oe&&re.appendChild(oe)}else{if(!a.trim())return null;const oe=Sp(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(oe.length===1&&oe[0].type==="text")return null;re=document.createDocumentFragment();for(const pe of oe)if(pe.type==="text")re.appendChild(document.createTextNode(pe.data));else{const ge=ju(pe.data,pe.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ge&&re.appendChild(ge)}}return re}function Cp(a,y){var b,E,ee,re,oe,pe,ge,be,Ae,_e,it,Pt,Ut,Jn,Ur,Zn;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Mr=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(Mr)){a.textContent="";const Tr=ju(Mr,"",y,!0);Tr&&a.append(Tr);return}const Gr=Sp(Mr,(ee=y.TeX)==null?void 0:ee.delimiters,(re=y.asciiMath)==null?void 0:re.delimiters);if(Gr.length===1&&Gr[0].type==="math"){a.textContent="";const Tr=ju(Gr[0].data,Gr[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Tr&&a.append(Tr);return}if(Gr.length===1&&Gr[0].type==="text")return}for(let Mr=a.childNodes.length-1;Mr>=0;Mr--){const Gr=a.childNodes[Mr];if(Gr.nodeType===3){const Tr=y1((oe=Gr.textContent)!=null?oe:"",y);Tr&&(Mr+=Tr.childNodes.length-1,Gr.replaceWith(Tr))}else if(Gr.nodeType===1){const Tr=Gr,bi=Gr.nodeName.toLowerCase();if(bi==="script"){const Zi=Gr;let Ii;if((pe=y.processScriptTypePattern)!=null&&pe.test(Zi.type))Ii=(ge=Zi.textContent)!=null?ge:"";else if((be=y.processMathJSONScriptTypePattern)!=null&&be.test(Zi.type))try{Ii=(_e=y.serializeToLatex)==null?void 0:_e.call(y,JSON.parse((Ae=Zi.textContent)!=null?Ae:""))}catch(Ra){console.error(Ra)}if(Ii){let Ra="textstyle";for(const $r of Zi.type.split(";")){const[_s,kl]=$r.toLowerCase().split("=");_s.trim()==="mode"&&(Ra=kl.trim()==="display"?"displaystyle":"textstyle")}const Ja=ju(Ii,Ra,y,!0);Ja&&Zi.parentNode.replaceChild(Ja,Zi)}}else if(((Pt=(it=y.processClassPattern)==null?void 0:it.test(Tr.className))!=null?Pt:!1)||!((Jn=(Ut=y.skipTags)==null?void 0:Ut.includes(bi))!=null&&Jn||(Zn=(Ur=y.ignoreClassPattern)==null?void 0:Ur.test(Tr.className))!=null&&Zn))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Ii=a.textContent;a.textContent="";const Ra=ju(Ii!=null?Ii:"","displaystyle",y,!0);Ra&&a.append(Ra)}else Cp(Tr,y)}}}var b1={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function x1(a,y){var b,E,ee,re;try{const oe=xe(xe({},b1),y);oe.ignoreClassPattern=new RegExp((b=oe.ignoreClass)!=null?b:""),oe.processClassPattern=new RegExp((E=oe.processClass)!=null?E:""),oe.processScriptTypePattern=new RegExp((ee=oe.processScriptType)!=null?ee:""),oe.processMathJSONScriptTypePattern=new RegExp((re=oe.processMathJSONScriptType)!=null?re:""),Lf(),ks("core"),Cp(a,oe)}catch(oe){oe instanceof Error?console.error("renderMathInElement(): "+oe.message):console.error("renderMathInElement(): Could not render math for element",a)}}function w1(a,y){const b=fc.singleton;return b?(b.show(),Id(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function S1(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}Ls({switchKeyboardLayer:w1,toggleVirtualKeyboard:S1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function mc(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function D1(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function I1(a){E1(document.body,a)}function C1(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function E1(a,y){var b,E,ee,re;const oe=C1(a);if(!oe)return;const pe=y!=null?y:{};(b=pe.renderToMarkup)!=null||(pe.renderToMarkup=Qo),(E=pe.renderToMathML)!=null||(pe.renderToMathML=Rv),(ee=pe.renderToSpeakableText)!=null||(pe.renderToSpeakableText=Fv),(re=pe.serializeToLatex)!=null||(pe.serializeToLatex=zv),x1(oe,pe)}var T1={mathlive:"0.98.5"}},17423:function(dn,en,se){"use strict";se.d(en,{Z:function(){return xe}});const ae=me=>typeof me=="object"&&me!=null&&me.nodeType===1,Pe=(me,Ie)=>(!Ie||me!=="hidden")&&me!=="visible"&&me!=="clip",Re=(me,Ie)=>{if(me.clientHeight<me.scrollHeight||me.clientWidth<me.scrollWidth){const st=getComputedStyle(me,null);return Pe(st.overflowY,Ie)||Pe(st.overflowX,Ie)||(Ne=>{const xt=(pt=>{if(!pt.ownerDocument||!pt.ownerDocument.defaultView)return null;try{return pt.ownerDocument.defaultView.frameElement}catch(ct){return null}})(Ne);return!!xt&&(xt.clientHeight<Ne.scrollHeight||xt.clientWidth<Ne.scrollWidth)})(me)}return!1},qe=(me,Ie,st,Ne,xt,pt,ct,rt)=>pt<me&&ct>Ie||pt>me&&ct<Ie?0:pt<=me&&rt<=st||ct>=Ie&&rt>=st?pt-me-Ne:ct>Ie&&rt<st||pt<me&&rt>st?ct-Ie+xt:0,ve=me=>{const Ie=me.parentElement;return Ie==null?me.getRootNode().host||null:Ie},ke=(me,Ie)=>{var st,Ne,xt,pt;if(typeof document=="undefined")return[];const{scrollMode:ct,block:rt,inline:Ee,boundary:at,skipOverflowHiddenElements:Yt}=Ie,Xe=typeof at=="function"?at:_t=>_t!==at;if(!ae(me))throw new TypeError("Invalid target");const lt=document.scrollingElement||document.documentElement,Se=[];let Ce=me;for(;ae(Ce)&&Xe(Ce);){if(Ce=ve(Ce),Ce===lt){Se.push(Ce);break}Ce!=null&&Ce===document.body&&Re(Ce)&&!Re(document.documentElement)||Ce!=null&&Re(Ce,Yt)&&Se.push(Ce)}const je=(Ne=(st=window.visualViewport)==null?void 0:st.width)!=null?Ne:innerWidth,Ue=(pt=(xt=window.visualViewport)==null?void 0:xt.height)!=null?pt:innerHeight,{scrollX:Mt,scrollY:ht}=window,{height:Ft,width:tt,top:Jt,right:Rt,bottom:yn,left:tn}=me.getBoundingClientRect(),{top:Hn,right:Yn,bottom:tr,left:Qe}=(_t=>{const $e=window.getComputedStyle(_t);return{top:parseFloat($e.scrollMarginTop)||0,right:parseFloat($e.scrollMarginRight)||0,bottom:parseFloat($e.scrollMarginBottom)||0,left:parseFloat($e.scrollMarginLeft)||0}})(me);let we=rt==="start"||rt==="nearest"?Jt-Hn:rt==="end"?yn+tr:Jt+Ft/2-Hn+tr,At=Ee==="center"?tn+tt/2-Qe+Yn:Ee==="end"?Rt+Yn:tn-Qe;const Mn=[];for(let _t=0;_t<Se.length;_t++){const $e=Se[_t],{height:dt,width:qt,top:Xn,right:bn,bottom:un,left:nn}=$e.getBoundingClientRect();if(ct==="if-needed"&&Jt>=0&&tn>=0&&yn<=Ue&&Rt<=je&&Jt>=Xn&&yn<=un&&tn>=nn&&Rt<=bn)return Mn;const xn=getComputedStyle($e),Pn=parseInt(xn.borderLeftWidth,10),De=parseInt(xn.borderTopWidth,10),ue=parseInt(xn.borderRightWidth,10),ce=parseInt(xn.borderBottomWidth,10);let he=0,fe=0;const le="offsetWidth"in $e?$e.offsetWidth-$e.clientWidth-Pn-ue:0,Me="offsetHeight"in $e?$e.offsetHeight-$e.clientHeight-De-ce:0,Ve="offsetWidth"in $e?$e.offsetWidth===0?0:qt/$e.offsetWidth:0,ft="offsetHeight"in $e?$e.offsetHeight===0?0:dt/$e.offsetHeight:0;if(lt===$e)he=rt==="start"?we:rt==="end"?we-Ue:rt==="nearest"?qe(ht,ht+Ue,Ue,De,ce,ht+we,ht+we+Ft,Ft):we-Ue/2,fe=Ee==="start"?At:Ee==="center"?At-je/2:Ee==="end"?At-je:qe(Mt,Mt+je,je,Pn,ue,Mt+At,Mt+At+tt,tt),he=Math.max(0,he+ht),fe=Math.max(0,fe+Mt);else{he=rt==="start"?we-Xn-De:rt==="end"?we-un+ce+Me:rt==="nearest"?qe(Xn,un,dt,De,ce+Me,we,we+Ft,Ft):we-(Xn+dt/2)+Me/2,fe=Ee==="start"?At-nn-Pn:Ee==="center"?At-(nn+qt/2)+le/2:Ee==="end"?At-bn+ue+le:qe(nn,bn,qt,Pn,ue+le,At,At+tt,tt);const{scrollLeft:Ht,scrollTop:Zt}=$e;he=ft===0?0:Math.max(0,Math.min(Zt+he/ft,$e.scrollHeight-dt/ft+Me)),fe=Ve===0?0:Math.max(0,Math.min(Ht+fe/Ve,$e.scrollWidth-qt/Ve+le)),we+=Zt-he,At+=Ht-fe}Mn.push({el:$e,top:he,left:fe})}return Mn},Le=me=>me===!1?{block:"end",inline:"nearest"}:(Ie=>Ie===Object(Ie)&&Object.keys(Ie).length!==0)(me)?me:{block:"start",inline:"nearest"};function xe(me,Ie){if(!me.isConnected||!(xt=>{let pt=xt;for(;pt&&pt.parentNode;){if(pt.parentNode===document)return!0;pt=pt.parentNode instanceof ShadowRoot?pt.parentNode.host:pt.parentNode}return!1})(me))return;const st=(xt=>{const pt=window.getComputedStyle(xt);return{top:parseFloat(pt.scrollMarginTop)||0,right:parseFloat(pt.scrollMarginRight)||0,bottom:parseFloat(pt.scrollMarginBottom)||0,left:parseFloat(pt.scrollMarginLeft)||0}})(me);if((xt=>typeof xt=="object"&&typeof xt.behavior=="function")(Ie))return Ie.behavior(ke(me,Ie));const Ne=typeof Ie=="boolean"||Ie==null?void 0:Ie.behavior;for(const{el:xt,top:pt,left:ct}of ke(me,Le(Ie))){const rt=pt-st.top+st.bottom,Ee=ct-st.left+st.right;xt.scroll({top:rt,left:Ee,behavior:Ne})}}}}]);
}());