0},e}(),An="undefined"!==typeof WeakMap?new WeakMap:new hn,Ln=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=kn.getInstance(),r=new Rn(t,n,this);An.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Ln.prototype[e]=function(){var t;return(t=An.get(this))[e].apply(t,arguments)}}));var Dn="undefined"!==typeof gn.ResizeObserver?gn.ResizeObserver:Ln;const jn={[Zt.RUS]:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c",[Zt.UKR]:"\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",[Zt.BEL]:"\u041f\u0440\u0430\u0446\u044f\u0433\u043d\u0443\u0446\u044c",[Zt.KAZ]:"\u0416\u0430\u043b\u0493\u0430\u0441\u0442\u044b\u0440\u0443",[Zt.UZB]:"Davom etish",[Zt.ENG]:"Continue",[Zt.SPA]:"Continuar",[Zt.GERMAN]:"Fortfahren",[Zt.POL]:"Kontynuuj",[Zt.FRA]:"Continuer",[Zt.TURKEY]:"Devam"},zn={[Zt.RUS]:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f",[Zt.UKR]:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f",[Zt.BEL]:"\u0417\u0430\u043f\u0456\u0441\u0430\u0446\u0446\u0430",[Zt.KAZ]:"\u0416\u0430\u0437\u044b\u043b\u0443",[Zt.UZB]:"Yozilish",[Zt.ENG]:"Sign up",[Zt.SPA]:"Registrarse",[Zt.GERMAN]:"Anmelden",[Zt.POL]:"Zapisz si\u0119",[Zt.FRA]:"Prendre RDV",[Zt.TURKEY]:"Kaydol"},Mn={[Zt.RUS]:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c",[Zt.UKR]:"\u041e\u0442\u0440\u0438\u043c\u0430\u0442\u0438",[Zt.BEL]:"\u0410\u0442\u0440\u044b\u043c\u0430\u0446\u044c",[Zt.KAZ]:"\u0410\u043b\u0443",[Zt.UZB]:"Olish",[Zt.ENG]:"Get",[Zt.SPA]:"Obtener",[Zt.GERMAN]:"Erhalten",[Zt.POL]:"Otrzymaj",[Zt.FRA]:"Obtenir",[Zt.TURKEY]:"Al"},Fn={[Zt.RUS]:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c",[Zt.UKR]:"\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0438",[Zt.BEL]:"\u0410\u0434\u043a\u0440\u044b\u0446\u044c",[Zt.KAZ]:"\u0410\u0448\u0443",[Zt.UZB]:"Ochish",[Zt.ENG]:"Open",[Zt.SPA]:"Abrir",[Zt.GERMAN]:"\xd6ffnen",[Zt.POL]:"Otw\xf3rz",[Zt.FRA]:"Ouvrir",[Zt.TURKEY]:"A\xe7"},Un={[Zt.RUS]:"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c",[Zt.UKR]:"\u0420\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438",[Zt.BEL]:"\u0420\u0430\u0437\u043b\u0456\u0447\u044b\u0446\u044c",[Zt.KAZ]:"\u0415\u0441\u0435\u043f\u0442\u0435\u0443",[Zt.UZB]:"Hisoblash",[Zt.ENG]:"Calculate",[Zt.SPA]:"Calcular",[Zt.GERMAN]:"Berechnen",[Zt.POL]:"Oblicz",[Zt.FRA]:"Calculer",[Zt.TURKEY]:"Hesapla"},Vn={[Zt.RUS]:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c",[Zt.UKR]:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438",[Zt.BEL]:"\u0417\u0430\u043a\u0430\u0437\u0430\u0446\u044c",[Zt.KAZ]:"\u0422\u0430\u043f\u0441\u044b\u0440\u044b\u0441 \u0431\u0435\u0440\u0443",[Zt.UZB]:"Buyurtma berish",[Zt.ENG]:"Order",[Zt.SPA]:"Pedir",[Zt.GERMAN]:"Bestellen",[Zt.POL]:"Zam\xf3w",[Zt.FRA]:"Commander",[Zt.TURKEY]:"Sipari\u015f ver"},Bn={[Zt.RUS]:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u0437\u0430\u043a\u0430\u0437",[Zt.UKR]:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u0438 \u0437\u0430\u043c\u043e\u0432\u043b\u0435\u043d\u043d\u044f",[Zt.BEL]:"\u0410\u0444\u043e\u0440\u043c\u0456\u0446\u044c \u0437\u0430\u043a\u0430\u0437",[Zt.KAZ]:"\u0422\u0430\u043f\u0441\u044b\u0440\u044b\u0441\u0442\u044b \u0440\u04d9\u0441\u0456\u043c\u0434\u0435\u0443",[Zt.UZB]:"Buyurtmani shakllantirish",[Zt.ENG]:"Place order",[Zt.SPA]:"Hacer pedido",[Zt.GERMAN]:"Bestellung aufgeben",[Zt.POL]:"Wype\u0142nij zam\xf3wienie",[Zt.FRA]:"Passer commande",[Zt.TURKEY]:"Sipari\u015fi tamamlar"},$n={[Zt.RUS]:"\u041e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u044f\u0432\u043a\u0443",[Zt.UKR]:"\u0417\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0437\u0430\u043f\u0438\u0442",[Zt.BEL]:"\u041f\u0430\u043a\u0456\u043d\u0443\u0446\u044c \u0437\u0430\u044f\u045e\u043a\u0443",[Zt.KAZ]:"\u04e8\u0442\u0456\u043d\u0456\u043c \u049b\u0430\u043b\u0434\u044b\u0440\u0443",[Zt.UZB]:"Talabnoma qoldirish",[Zt.ENG]:"Send request",[Zt.SPA]:"Enviar solicitud",[Zt.GERMAN]:"Anfrage stellen",[Zt.POL]:"Pozostaw wniosek",[Zt.FRA]:"Envoyer demande",[Zt.TURKEY]:"Ba\u015fvuru b\u0131rak"},Kn={[Zt.RUS]:"\u0423\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c",[Zt.UKR]:"\u0411\u0440\u0430\u0442\u0438 \u0443\u0447\u0430\u0441\u0442\u044c",[Zt.BEL]:"\u0423\u0434\u0437\u0435\u043b\u044c\u043d\u0456\u0447\u0430\u0446\u044c",[Zt.KAZ]:"\u049a\u0430\u0442\u044b\u0441\u0443",[Zt.UZB]:"Ishtirok etish",[Zt.ENG]:"Participate",[Zt.SPA]:"Participar",[Zt.GERMAN]:"Teilnehmen",[Zt.POL]:"Uczestnicz",[Zt.FRA]:"Participer",[Zt.TURKEY]:"Kat\u0131l"},Hn={[dn.SIGN_IN]:jn,[dn.SIGN_UP]:zn,[dn.GET]:Mn,[dn.OPEN]:Fn,[dn.CALCULATE]:Un,[dn.ORDER]:Vn,[dn.PLACE_ORDER]:Bn,[dn.SUBMIT_REQUEST]:$n,[dn.PARTICIPATE]:Kn},Wn={[Zt.RUS]:"\u0412\u043e\u0439\u0442\u0438 c VK ID",[Zt.UKR]:"\u0423\u0432\u0456\u0439\u0442\u0438 \u0437 VK ID",[Zt.BEL]:"\u0423\u0432\u0430\u0439\u0441\u0446\u0456 \u0437 V\u041a ID",[Zt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u043a\u0456\u0440\u0443",[Zt.UZB]:"VK ID dan kirish",[Zt.ENG]:"Sign in with VK ID",[Zt.SPA]:"Iniciar sesi\xf3n con VK ID",[Zt.GERMAN]:"Mit VK-ID anmelden",[Zt.POL]:"Wejd\u017a z VK ID",[Zt.FRA]:"Se connecter avec VK ID",[Zt.TURKEY]:"VK ID arac\u0131l\u0131\u011f\u0131yla gir"},qn={[Zt.RUS]:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0441 VK ID",[Zt.UKR]:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f \u0437 VK ID",[Zt.BEL]:"\u0417\u0430\u043f\u0456\u0441\u0430\u0446\u0446\u0430 \u0437 VK ID",[Zt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0436\u0430\u0437\u044b\u043b\u0443",[Zt.UZB]:"VK ID bilan yozilish",[Zt.ENG]:"Sign up with VK ID",[Zt.SPA]:"Registrarse con VK ID",[Zt.GERMAN]:"Mit VK ID anmelden",[Zt.POL]:"Zapisz si\u0119 z VK ID",[Zt.FRA]:"Prendre RDV avec VK ID",[Zt.TURKEY]:"VK ID ile kaydol"},Gn={[Zt.RUS]:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441 VK ID",[Zt.UKR]:"\u041e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0437 VK ID",[Zt.BEL]:"\u0410\u0442\u0440\u044b\u043c\u0430\u0446\u044c \u0437 VK ID",[Zt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0430\u043b\u0443",[Zt.UZB]:"VK ID bilan olish",[Zt.ENG]:"Get with VK ID",[Zt.SPA]:"Obtener con VK ID",[Zt.GERMAN]:"Mit VK ID erhalten",[Zt.POL]:"Otrzymaj z VK ID",[Zt.FRA]:"Obtenir avec VK ID",[Zt.TURKEY]:"VK ID ile al"},Qn={[Zt.RUS]:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441 VK ID",[Zt.UKR]:"\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0438 \u0437 VK ID",[Zt.BEL]:"\u0410\u0434\u043a\u0440\u044b\u0446\u044c \u0437 VK ID",[Zt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0430\u0448\u0443",[Zt.UZB]:"VK ID bilan ochish",[Zt.ENG]:"Open with VK ID",[Zt.SPA]:"Abrir con VK ID",[Zt.GERMAN]:"Mit VK ID \xf6ffnen",[Zt.POL]:"Otw\xf3rz z VK ID",[Zt.FRA]:"Ouvrir avec VK ID",[Zt.TURKEY]:"VK ID ile a\xe7"},Zn={[Zt.RUS]:"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441 VK ID",[Zt.UKR]:"\u0420\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 \u0437 VK ID",[Zt.BEL]:"\u0420\u0430\u0437\u043b\u0456\u0447\u044b\u0446\u044c \u0437 VK ID",[Zt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0435\u0441\u0435\u043f\u0442\u0435\u0443",[Zt.UZB]:"VK ID yordamida hisoblash",[Zt.ENG]:"Calculate with VK ID",[Zt.SPA]:"Calcular con VK ID",[Zt.GERMAN]:"Mit VK ID berechnen",[Zt.POL]:"Oblicz z VK ID",[Zt.FRA]:"Calculer avec VK ID",[Zt.TURKEY]:"VK ID ile hesapla"},Yn={[Zt.RUS]:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0441 VK ID",[Zt.UKR]:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0437 VK ID",[Zt.BEL]:"\u0417\u0430\u043a\u0430\u0437\u0430\u0446\u044c \u0437 VK ID",[Zt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0442\u0430\u043f\u0441\u044b\u0440\u044b\u0441 \u0431\u0435\u0440\u0443",[Zt.UZB]:"VK ID bilan buyurtma berish",[Zt.ENG]:"Order with VK ID",[Zt.SPA]:"Pedir con VK ID",[Zt.GERMAN]:"Mit VK ID bestellen",[Zt.POL]:"Zam\xf3w z VK ID",[Zt.FRA]:"Commander avec VK ID",[Zt.TURKEY]:"VK ID ile sipari\u015f ver"},Xn={[Zt.RUS]:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u0441 VK ID",[Zt.UKR]:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u0438 \u0437 VK ID",[Zt.BEL]:"\u0410\u0444\u043e\u0440\u043c\u0456\u0446\u044c \u0437 VK ID",[Zt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0440\u04d9\u0441\u0456\u043c\u0434\u0435\u0443",[Zt.UZB]:"VK ID bilan shakllantirish",[Zt.ENG]:"Order with VK ID",[Zt.SPA]:"Pedir con VK ID",[Zt.GERMAN]:"Mit VK ID Bestellung aufgeben",[Zt.POL]:"Wype\u0142nij z VK ID",[Zt.FRA]:"Commander avec VK ID",[Zt.TURKEY]:"VK ID ile yap"},Jn={[Zt.RUS]:"\u041e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u044f\u0432\u043a\u0443 \u0441 VK ID",[Zt.UKR]:"\u0417\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0437\u0430\u043f\u0438\u0442 \u0437 VK ID",[Zt.BEL]:"\u041f\u0430\u043a\u0456\u043d\u0443\u0446\u044c \u0437\u0430\u044f\u045e\u043a\u0443 \u0437 VK ID",[Zt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u04e9\u0442\u0456\u043d\u0456\u043c \u049b\u0430\u043b\u0434\u044b\u0440\u0443",[Zt.UZB]:"VK ID bilan talabnoma qoldirish",[Zt.ENG]:"Send request with VK ID",[Zt.SPA]:"Enviar solicitud con VK ID",[Zt.GERMAN]:"Mit VK ID Anfrage stellen",[Zt.POL]:"Zostaw wniosek z VK ID",[Zt.FRA]:"Envoyer demande avec VK ID",[Zt.TURKEY]:"VK ID ile ba\u015fvuru yap"},er={[Zt.RUS]:"\u0423\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 VK ID",[Zt.UKR]:"\u0411\u0440\u0430\u0442\u0438 \u0443\u0447\u0430\u0441\u0442\u044c \u0437 VK ID",[Zt.BEL]:"\u0423\u0434\u0437\u0435\u043b\u044c\u043d\u0456\u0447\u0430\u0446\u044c \u0437 VK ID",[Zt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u049b\u0430\u0442\u044b\u0441\u0443",[Zt.UZB]:"VK ID ilan ishtirok etish",[Zt.ENG]:"Participate with VK ID",[Zt.SPA]:"Participar con VK ID",[Zt.GERMAN]:"Mit VK ID teilnehmen",[Zt.POL]:"Uczestnicz z VK ID",[Zt.FRA]:"Participer avec VK ID",[Zt.TURKEY]:"VK ID ile kat\u0131l"},tr={[dn.SIGN_IN]:Wn,[dn.SIGN_UP]:qn,[dn.GET]:Gn,[dn.OPEN]:Qn,[dn.CALCULATE]:Zn,[dn.ORDER]:Yn,[dn.PLACE_ORDER]:Xn,[dn.SUBMIT_REQUEST]:Jn,[dn.PARTICIPATE]:er},nr=e=>{let{width:t,height:n,iframeHeight:r,borderRadius:o,login:i,skin:a,scheme:l,contentId:s,lang:u,renderOAuthList:c,providers:d,setStatsButtonType:f}=e;return e=>{let p=0,h=0,m=0,g=0;const v=((e,t)=>{const n=Hn[e]||Hn[dn.SIGN_IN];return n[t]||n[Zt.RUS]})(s,u),y=((e,t)=>{const n=tr[e]||tr[dn.SIGN_IN];return n[t]||n[Zt.RUS]})(s,u),b=(e=>{const t=(e-30)/2+3;return e<40?t:t-2})(n),k=(e=>e<40?14:e>47?17:16)(n),w=(e=>e<40?24:28)(n),x=document.createElement("div"),S=document.createElement("button");setTimeout((()=>{S.classList.add(`VkIdWebSdk__button_animation_${e}`)}),100),S.classList.add(`VkIdWebSdk__button_${e}`),S.classList.add(`VkIdWebSdk__button_reset_${e}`),i&&(S.onclick=i);const _=document.createElement("span");_.classList.add(`VkIdWebSdk__button_in_${e}`);const E=document.createElement("span");E.classList.add(`VkIdWebSdk__button_content_${e}`);const C=document.createElement("span");C.classList.add(`VkIdWebSdk__button_logo_${e}`),C.innerHTML='\n \n';const I=document.createElement("span");I.classList.add(`VkIdWebSdk__button_text_${e}`);const T=document.createElement("span");T.innerText=v;const N=document.createElement("span");N.innerText=y;const P=document.createElement("span");P.innerText="VK ID";const O=document.createElement("span");O.classList.add(`VkIdWebSdk__button_spinner_${e}`),O.innerHTML='\n \n';const R=document.createElement("div");R.classList.add(`VkIdWebSdk__oauthList_container_${e}`);const A=e=>e+16+2*b+2*w,L=()=>{let t=0,r=!1;const i=()=>{const e=E.contains(I),i=I.contains(P),a=I.contains(N),s=x.clientWidth;e&&s=p&&(S.removeAttribute("style"),E.appendChild(I),E.appendChild(O)),!i&&s{N.remove(),I.appendChild(P)}),t)),!a&&s>=h&&(I.style.width=`${g}px`,P.dataset.active="",N.dataset.active="true",setTimeout((()=>{P.remove(),I.appendChild(N)}),t),d?.length&&!x.contains(R)&&(x.appendChild(R),!r&&c({lang:u,scheme:l,container:R,oauthList:d,styles:{borderRadius:o,height:n}}),r=!0)),f("default")};new Dn(function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,i=function(){return e.apply(o,r)};return function(){for(var e=arguments.length,o=new Array(e),a=0;a\n \n \n\n `}};const rr=0,or=44,ir=8;class ar extends qt{analytics;vkidAppName="button_one_tap_auth";statsBtnType;fastAuthDisabled;constructor(){super(),this.analytics=new pn(ar.config)}setStatsButtonType=e=>{this.statsBtnType||(this.statsBtnType=e,this.fastAuthDisabled&&this.statsBtnType&&this.analytics.sendOneTapButtonNoUserShow(this.statsBtnType))};sendSuccessLoginEvent=e=>{this.events.emit(Vt.LOGIN_SUCCESS,e)};onBridgeMessageHandler(e){switch(e.handler){case Vt.SHOW_FULL_AUTH:{const t=e.params,n={};t.screen&&(n.screen=t.screen),t.sdk_oauth&&(n.provider=t.sdk_oauth,n.statsFlowSource=ft.MULTIBRANDING),this.openFullAuth(n);break}case Vt.NOT_AUTHORIZED:this.analytics.sendNoSessionFound(),this.setState(Bt.NOT_LOADED),clearTimeout(this.timeoutTimer),this.elements?.iframe?.remove();break;case Vt.AUTHENTICATION_INFO:this.events.emit(Vt.AUTHENTICATION_INFO,e.params);break;default:super.onBridgeMessageHandler(e)}}onErrorHandler(e){this.analytics.sendFrameLoadingFailed(),this.analytics.sendOneTapButtonNoUserShow(this.statsBtnType),super.onErrorHandler(e)}openFullAuth(e){const t={statsFlowSource:ft.BUTTON_ONE_TAP,...e,uniqueSessionId:this.id,lang:this.lang,scheme:this.scheme};ar.auth.login(t).then(this.sendSuccessLoginEvent).catch((e=>{this.events.emit(Ht.ERROR,{code:$t.AuthError,text:e.error})}))}login(e){this.config.get().mode===gt.Redirect?this.analytics.sendOneTapButtonNoUserTap(this.statsBtnType).finally((()=>{this.openFullAuth(e)})):(this.analytics.sendOneTapButtonNoUserTap(this.statsBtnType),this.openFullAuth(e))}renderOAuthList(e){if(!e.oauthList.length)return;(new un).on(tn.LOGIN_SUCCESS,this.sendSuccessLoginEvent).render({...e,flowSource:We.NOWHERE,uniqueSessionId:this.id})}render(e){this.lang=e?.lang||Zt.RUS,this.scheme=e?.scheme||Yt.LIGHT,this.fastAuthDisabled=!1===e.fastAuthEnabled;const t=(e.oauthList||[]).filter((e=>e!==Nt.VK)),n={style_height:e.styles?.height||or,style_border_radius:Xt(e.styles?.borderRadius)?ir:e.styles?.borderRadius,show_alternative_login:e?.showAlternativeLogin?1:0,button_skin:e.skin||cn.Primary,content_id:e?.contentId||dn.SIGN_IN,scheme:this.scheme,lang_id:this.lang,providers:t.join(","),uuid:this.id};return this.analytics.setUniqueSessionId(this.id),this.templateRenderer=nr({width:e.styles?.width||rr,iframeHeight:n.show_alternative_login?2*n.style_height+12:n.style_height,height:n.style_height,borderRadius:n.style_border_radius,login:this.login.bind(this),skin:n.button_skin,scheme:n.scheme,lang:n.lang_id,contentId:n.content_id,renderOAuthList:this.renderOAuthList.bind(this),providers:t,setStatsButtonType:this.setStatsButtonType.bind(this)}),this.analytics.sendScreenProceed({scheme:this.scheme,lang:this.lang,skin:n.button_skin,contentId:n.content_id}),this.fastAuthDisabled&&(n.fastAuthDisabled=!0),super.render({container:e.container,...n})}}!function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([At({styles:[e=>({result:void 0!==e&&void 0!==e.height&&Dt(e.height)&&e.height<57&&e.height>31||void 0===e||void 0===e.height,makeError:()=>"The height should correspond to the range from 32 to 56"})]})],ar.prototype,"render",null);var lr=n(579);function sr(){return(0,o.useEffect)((()=>{Gt.init({app:52316017,redirectUrl:"https://novelplus.ru/users/vk-login/",scope:"email"});const e=new ar,t=document.getElementById("VkIdSdkOneTap");t&&e.render({container:t,scheme:Yt.DARK,lang:Zt.RUS})}),[]),(0,lr.jsx)("div",{className:"vk-login",children:(0,lr.jsx)("div",{id:"VkIdSdkOneTap"})})}function ur(){const[e,t]=(0,o.useState)(!0),[n,r]=(0,o.useState)(Pe),[i,a]=(0,o.useState)(null);const l=[Ee],s=[Ee,Ce],u=e=>{const{name:t,value:o,type:i,checked:l}=e.target;a(null),r({...n,[t]:"checkbox"===i?l:o})};return(0,lr.jsxs)("div",{className:"login-from-menu vertical-box",children:[(0,lr.jsx)("button",{onClick:function(){t(!e)},children:e?"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f":"\u0412\u043e\u0439\u0442\u0438"}),(0,lr.jsx)("br",{}),i&&(0,lr.jsxs)("div",{className:"error",children:[(0,lr.jsx)("label",{children:i}),(0,lr.jsx)("br",{})]}),(0,lr.jsx)("label",{htmlFor:"login",children:"\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f"}),(0,lr.jsx)("input",{id:"login",type:"text",name:"username",autoFocus:!0,autoComplete:e?"username":void 0,maxLength:40,required:!0,onChange:u}),(0,lr.jsx)("label",{htmlFor:"password",children:"\u041f\u0430\u0440\u043e\u043b\u044c"}),(0,lr.jsx)("input",{id:"password",type:"password",name:"password",autoComplete:e?"current-password":"new-password",required:!0,onChange:u}),!e&&(0,lr.jsxs)("div",{className:"vertical-box",children:[(0,lr.jsx)("label",{htmlFor:"password2",children:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0430\u0440\u043e\u043b\u044f"}),(0,lr.jsx)("input",{id:"password2",type:"password",name:"password2",autoComplete:"new-password",required:!0,onChange:u})]}),(0,lr.jsx)("input",{type:"submit",onClick:e?async function(){if(!Ie(l,n,i,a))return;const e=await async function(e){return await Fe(ve.password,"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043d\u0435\u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435",e)}(n);e&&a(e)}:async function(){if(!Ie(s,n,i,a))return;const e=await async function(e){return await Fe(ve.register,"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043d\u0435\u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438",e)}(n);e&&a(e)},value:e?"\u0412\u043e\u0439\u0442\u0438":"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f"}),!Le&&(0,lr.jsx)(sr,{})]})}function cr(){let{page:e,subpage:t}=ke();const[n,r]=(0,o.useState)(!1),i=()=>{r(!n)};we();const{screenVariant:a}=Ne(),l=(0,lr.jsxs)("div",{className:"navigation "+(a.computer?"horizontal-box":"vertical-box"),children:[(0,lr.jsx)("a",{href:"/store",className:"primary small"+("store"===e?" selected":""),children:"\u0418\u0433\u0440\u044b \u0438 \u0430\u0441\u0441\u0435\u0442\u044b"}),(0,lr.jsx)("a",{href:"/vacancy",className:"primary small"+("vacancy"===e?" selected":""),children:"\u0412\u0430\u043a\u0430\u043d\u0441\u0438\u0438"})]}),s="store"===e?(0,lr.jsxs)("div",{className:"navigation "+(a.computer?"horizontal-box":"vertical-box"),children:[(0,lr.jsx)("a",{href:"/store/game",className:"primary small"+("game"===t?" selected":""),children:"\u0418\u0433\u0440\u044b"}),(0,lr.jsx)("a",{href:"/store/sprite",className:"primary small"+("sprite"===t?" selected":""),children:"\u0421\u043f\u0440\u0430\u0439\u0442\u044b"})]}):"vacancy"===e&&(0,lr.jsxs)("div",{className:"navigation "+(a.computer?"horizontal-box":"vertical-box"),children:[(0,lr.jsx)("a",{href:"/vacancy/developer",className:"primary small"+("developer"===t?" selected":""),children:"\u0418\u0449\u0443 \u0440\u0430\u0431\u043e\u0442\u043d\u0438\u043a\u0430"}),(0,lr.jsx)("a",{href:"/vacancy/project",className:"primary small"+("project"===t?" selected":""),children:"\u0418\u0449\u0443 \u043f\u0440\u043e\u0435\u043a\u0442"})]});return(0,lr.jsxs)("header",{className:"header",children:[(0,lr.jsxs)("div",{className:"content-box stretched-box align-center",children:[(0,lr.jsxs)("div",{className:"align-center upper-menu",children:[(0,lr.jsx)("a",{href:"/",children:(0,lr.jsx)("img",{className:"icon",alt:"icon",src:pe||""})}),a.computer&&l]}),(0,lr.jsxs)("div",{className:"dropdown-menu",children:[(0,lr.jsx)("button",{className:"menu-button",onClick:i,children:(0,lr.jsx)("img",{className:"avatar",alt:"Avatar",src:(null===je||void 0===je?void 0:je.avatar)||he||""})}),n&&(0,lr.jsx)("div",{className:"menu-click-area",children:(0,lr.jsxs)("div",{className:"vertical-box align-end",children:[(0,lr.jsx)("div",{className:"avatar",onClick:i}),(0,lr.jsxs)("div",{className:"menu-content",children:[je.isAdmin&&(0,lr.jsx)("a",{href:"/admin/",children:"\u0410\u0434\u043c\u0438\u043d \u0447\u0430\u0441\u0442\u044c"},"admin-access"),null!==je&&void 0!==je&&je.isAuthenticated?[(0,lr.jsx)("a",{href:"/users/"+(null===je||void 0===je?void 0:je.id)+"/",children:"\u041c\u043e\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c"},"my-profile"),(0,lr.jsx)("button",{onClick:Me,children:"\u0412\u044b\u0439\u0442\u0438"},"logout")]:(0,lr.jsx)(ur,{})]})]})})]})]}),!a.computer&&(0,lr.jsxs)("div",{className:"phone-menu content-box",children:[(0,lr.jsx)("div",{children:l}),(0,lr.jsx)("div",{children:s})]}),s&&a.computer&&(0,lr.jsx)("div",{className:"content-box align-end bottom-menu vertical-box",children:s})]})}function dr(){return(0,lr.jsxs)("footer",{className:"footer",children:[(0,lr.jsx)("a",{href:"/about",children:"\u041e \u041f\u0420\u041e\u0415\u041a\u0422\u0415"}),(0,lr.jsx)("div",{className:"body-text",children:"support@novelplus.ru"})]})}function fr(){return(0,lr.jsxs)("div",{className:"section about content-box body-text",children:[(0,lr.jsx)("h1",{children:"\u041e \u043f\u0440\u043e\u0435\u043a\u0442\u0435"}),"NovelPlus \u2013 \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0438\u0433\u0440\u043e\u043a\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u043d\u0430\u0439\u0442\u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u043e\u0432\u0435\u043b\u043b\u044b \u0441\u0435\u0431\u0435 \u043f\u043e \u0432\u043a\u0443\u0441\u0443, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043e\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u0442\u0443\u0434\u0438\u0439.",(0,lr.jsx)("br",{}),"\u042d\u0442\u043e \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u044b\u0441\u043a\u0430\u0442\u044c \u0442\u0430\u043b\u0430\u043d\u0442\u043b\u0438\u0432\u044b\u0445 \u043b\u044e\u0434\u0435\u0439 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0438 \u0432\u043c\u0435\u0441\u0442\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u0435\u043b\u043b\u044b.",(0,lr.jsx)("br",{}),"\u0410 \u0442\u0430\u043a\u0436\u0435 \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u043b\u044e\u0434\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0430\u0441\u0441\u0435\u0442\u044b: \u0441\u043f\u0440\u0430\u0439\u0442\u044b, \u0444\u043e\u043d\u044b, \u043c\u0443\u0437\u044b\u043a\u0443, \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0438 \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.",(0,lr.jsx)("br",{}),(0,lr.jsx)("br",{}),(0,lr.jsx)("h2",{children:"\u041f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0443"}),"\u041d\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u043e\u0435 \u0432 \u043f\u043e\u043b\u043d\u043e\u0439 \u043c\u0435\u0440\u0435, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0432\u0430\u0448\u0430 \u043f\u043e\u043c\u043e\u0449\u044c!",(0,lr.jsx)("br",{}),"\u0421\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u0440\u0435\u0430\u0442\u043e\u0440\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043d\u0443\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0432 \u043b\u044e\u0431\u043e\u0439 \u043f\u043e\u043c\u043e\u0449\u0438!",(0,lr.jsx)("br",{}),"\u041c\u044b \u0438\u0449\u0435\u043c:",(0,lr.jsxs)("ul",{children:[(0,lr.jsx)("li",{children:"\u0414\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u0430;"}),(0,lr.jsx)("li",{children:"\u0424\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u0443\u044e \u043f\u043e\u043c\u043e\u0449\u044c \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0441\u0430\u0439\u0442\u0430 \u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430;"}),(0,lr.jsx)("li",{children:"\u0418\u0433\u0440\u044b \u0438 \u0430\u0441\u0441\u0435\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442;"}),(0,lr.jsx)("li",{children:"\u0412\u0430\u0448\u0438 \u0438\u0434\u0435\u0438 \u0438 \u043a\u0440\u0438\u0442\u0438\u043a\u0443: \u0447\u0435\u0433\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430."})]}),(0,lr.jsx)("h2",{children:"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b:"}),"\u0414\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0432\u044f\u0437\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a:",(0,lr.jsx)("ul",{children:(0,lr.jsx)("li",{children:"\u041f\u043e\u0447\u0442\u0430 - support@novelplus.ru;"})}),(0,lr.jsxs)("div",{className:"vertical-box align-left button-list",children:[(0,lr.jsx)("a",{href:"https://vk.com/novelplus",target:"_blank",rel:"noreferrer",className:"primary medium",children:"\u041d\u0430\u0448\u0430 \u0433\u0440\u0443\u043f\u043f\u0430 \u0412\u041a"}),(0,lr.jsx)("a",{href:"https://t.me/NovelPlusNews",target:"_blank",rel:"noreferrer",className:"primary medium",children:"\u041d\u0430\u0448 \u043a\u0430\u043d\u0430\u043b Telegram"}),(0,lr.jsx)("a",{href:"https://www.tinkoff.ru/cf/7hqDRjNZvBR",target:"_blank",rel:"noreferrer",className:"primary medium",children:"\u0421\u0431\u043e\u0440 \u0434\u043e\u043d\u0430\u0442\u043e\u0432 (\u0422\u0438\u043d\u044c\u043a\u043e\u0444\u0444)"}),(0,lr.jsx)("a",{href:"https://boosty.to/mikan-ds/donate",target:"_blank",rel:"noreferrer",className:"primary medium",children:"\u0421\u0431\u043e\u0440 \u0434\u043e\u043d\u0430\u0442\u043e\u0432 (Boosty)"})]})]})}function pr(e){let{item:t,collection:n}=e;return(0,lr.jsx)("a",{href:"/"+n+"/"+t.id,className:"card",style:{backgroundImage:"url("+t.preview+")"},children:(0,lr.jsx)("div",{className:"horizontal-box align-end",children:(0,lr.jsx)("div",{className:"body-text",children:t.title})})})}const hr=n.p+"static/media/loading.af264934e725715bfe23.gif";function mr(e){let{singlePage:t,notFound:n}=e;return n?(0,lr.jsx)("div",{className:"section body-text content-box vertical-box align-center loading-page",children:t?(0,lr.jsxs)("div",{className:"vertical-box align-center",children:[(0,lr.jsx)("h1",{children:"404: \u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e."}),(0,lr.jsx)("a",{href:"/",children:"\u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443"})]}):(0,lr.jsx)("h1",{children:"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e :("})}):(0,lr.jsxs)("div",{className:"section body-text content-box vertical-box align-center loading-page",children:["\u0418\u0414\u0415\u0422 \u0417\u0410\u0413\u0420\u0423\u0417\u041a\u0410...",(0,lr.jsx)("img",{src:hr||"",alt:"\u0438\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430..."})]})}function gr(){const{items:e,collection:t}=xe(),n=null!==e&&0===e.length;return e&&!n?(0,lr.jsx)("div",{className:"section content-box store",children:e.map((e=>(0,lr.jsx)(pr,{item:e,collection:t},e.id)))}):(0,lr.jsx)(mr,{singlePage:!1,notFound:n})}function vr(e){let{item:t,collection:n,screenVariant:r=Ae}=e;return(0,lr.jsxs)("a",{href:"/"+n+"/"+t.id,className:"mini-card "+(r.phone?"vertical-box":"horizontal-box"),children:[(0,lr.jsx)("img",{className:"preview",src:t.preview,alt:t.title}),(0,lr.jsxs)("div",{className:"vertical-box fill-width",children:[(0,lr.jsxs)("div",{className:"horizontal-box"+(!r.phone&&" stretched-box"),children:[(0,lr.jsxs)("div",{className:"vertical-box",children:[(0,lr.jsx)("h2",{children:t.title}),(0,lr.jsxs)("div",{children:["\u0421\u0442\u0430\u0442\u0443\u0441:",(0,lr.jsx)("br",{}),t.status]}),r.phone&&(0,lr.jsxs)("div",{children:["\u0414\u0430\u0442\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f:",(0,lr.jsx)("br",{}),new Date(t.updatedAt).toLocaleString()]})]}),!r.phone&&(0,lr.jsxs)("div",{children:["\u0414\u0430\u0442\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f:",(0,lr.jsx)("br",{}),new Date(t.updatedAt).toLocaleString()]})]}),(0,lr.jsx)("div",{children:t.shortDescription})]})]})}function yr(){const{items:e,collection:t}=xe(),{screenVariant:n}=Ne(),r=null!==e&&0===e.length;return e&&!r?(0,lr.jsx)("div",{className:"section vacancy content-box body-text vertical-box",children:e.map((e=>(0,lr.jsx)(vr,{item:e,collection:t,screenVariant:n},e.id)))}):(0,lr.jsx)(mr,{singlePage:!1,notFound:r})}let br=!0;function kr(){const e=new URLSearchParams(window.location.search),t=e.get("code"),n=e.get("device_id"),{page:r,subpage:i}=ke();return(0,o.useEffect)((()=>{if(br){if(Gt.init({app:52316017,redirectUrl:"https://novelplus.ru/users/vk-login/",scope:"email"}),"users"===r&&"vk-login"===i&&t&&n)try{Qt.exchangeCode(t,n).then((e=>{(async function(e){return await Fe(ve.vk,"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043d\u0435\u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435",{access_token:e})})(e.access_token).then()}))}catch(es){window.location.href=window.location.href.split("?")[0]}br=!0}})),(0,lr.jsx)("div",{className:"section"})}const wr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sr={};function _r(e,t){return((t||Sr).jsx?xr:wr).test(e)}const Er=/[ \t\n\f\r]/g;function Cr(e){return""===e.replace(Er,"")}class Ir{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Tr(e,t){const n={},r={};let o=-1;for(;++o"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Wr=Kr({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function qr(e,t){return t in e?e[t]:t}function Gr(e,t){return qr(e,t.toLowerCase())}const Qr=Kr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Gr,properties:{xmlns:null,xmlnsXLink:null}}),Zr=Kr({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ar,ariaAutoComplete:null,ariaBusy:Ar,ariaChecked:Ar,ariaColCount:Dr,ariaColIndex:Dr,ariaColSpan:Dr,ariaControls:jr,ariaCurrent:null,ariaDescribedBy:jr,ariaDetails:null,ariaDisabled:Ar,ariaDropEffect:jr,ariaErrorMessage:null,ariaExpanded:Ar,ariaFlowTo:jr,ariaGrabbed:Ar,ariaHasPopup:null,ariaHidden:Ar,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:jr,ariaLevel:Dr,ariaLive:null,ariaModal:Ar,ariaMultiLine:Ar,ariaMultiSelectable:Ar,ariaOrientation:null,ariaOwns:jr,ariaPlaceholder:null,ariaPosInSet:Dr,ariaPressed:Ar,ariaReadOnly:Ar,ariaRelevant:null,ariaRequired:Ar,ariaRoleDescription:jr,ariaRowCount:Dr,ariaRowIndex:Dr,ariaRowSpan:Dr,ariaSelected:Ar,ariaSetSize:Dr,ariaSort:null,ariaValueMax:Dr,ariaValueMin:Dr,ariaValueNow:Dr,ariaValueText:null,role:null}}),Yr=Kr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Gr,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zr,acceptCharset:jr,accessKey:jr,action:null,allow:null,allowFullScreen:Rr,allowPaymentRequest:Rr,allowUserMedia:Rr,alt:null,as:null,async:Rr,autoCapitalize:null,autoComplete:jr,autoFocus:Rr,autoPlay:Rr,blocking:jr,capture:null,charSet:null,checked:Rr,cite:null,className:jr,cols:Dr,colSpan:null,content:null,contentEditable:Ar,controls:Rr,controlsList:jr,coords:Dr|zr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Rr,defer:Rr,dir:null,dirName:null,disabled:Rr,download:Lr,draggable:Ar,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Rr,formTarget:null,headers:jr,height:Dr,hidden:Rr,high:Dr,href:null,hrefLang:null,htmlFor:jr,httpEquiv:jr,id:null,imageSizes:null,imageSrcSet:null,inert:Rr,inputMode:null,integrity:null,is:null,isMap:Rr,itemId:null,itemProp:jr,itemRef:jr,itemScope:Rr,itemType:jr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Rr,low:Dr,manifest:null,max:null,maxLength:Dr,media:null,method:null,min:null,minLength:Dr,multiple:Rr,muted:Rr,name:null,nonce:null,noModule:Rr,noValidate:Rr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Rr,optimum:Dr,pattern:null,ping:jr,placeholder:null,playsInline:Rr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Rr,referrerPolicy:null,rel:jr,required:Rr,reversed:Rr,rows:Dr,rowSpan:Dr,sandbox:jr,scope:null,scoped:Rr,seamless:Rr,selected:Rr,shadowRootClonable:Rr,shadowRootDelegatesFocus:Rr,shadowRootMode:null,shape:null,size:Dr,sizes:null,slot:null,span:Dr,spellCheck:Ar,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Dr,step:null,style:null,tabIndex:Dr,target:null,title:null,translate:null,type:null,typeMustMatch:Rr,useMap:null,value:Ar,width:Dr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:jr,axis:null,background:null,bgColor:null,border:Dr,borderColor:null,bottomMargin:Dr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Rr,declare:Rr,event:null,face:null,frame:null,frameBorder:null,hSpace:Dr,leftMargin:Dr,link:null,longDesc:null,lowSrc:null,marginHeight:Dr,marginWidth:Dr,noResize:Rr,noHref:Rr,noShade:Rr,noWrap:Rr,object:null,profile:null,prompt:null,rev:null,rightMargin:Dr,rules:null,scheme:null,scrolling:Ar,standby:null,summary:null,text:null,topMargin:Dr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Dr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Rr,disableRemotePlayback:Rr,prefix:null,property:null,results:Dr,security:null,unselectable:null}}),Xr=Kr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:qr,properties:{about:Mr,accentHeight:Dr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Dr,amplitude:Dr,arabicForm:null,ascent:Dr,attributeName:null,attributeType:null,azimuth:Dr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Dr,by:null,calcMode:null,capHeight:Dr,className:jr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Dr,diffuseConstant:Dr,direction:null,display:null,dur:null,divisor:Dr,dominantBaseline:null,download:Rr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Dr,enableBackground:null,end:null,event:null,exponent:Dr,externalResourcesRequired:null,fill:null,fillOpacity:Dr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zr,g2:zr,glyphName:zr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Dr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Dr,horizOriginX:Dr,horizOriginY:Dr,id:null,ideographic:Dr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Dr,k:Dr,k1:Dr,k2:Dr,k3:Dr,k4:Dr,kernelMatrix:Mr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Dr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Dr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Dr,overlineThickness:Dr,paintOrder:null,panose1:null,path:null,pathLength:Dr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:jr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Dr,pointsAtY:Dr,pointsAtZ:Dr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Mr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Mr,rev:Mr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Mr,requiredFeatures:Mr,requiredFonts:Mr,requiredFormats:Mr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Dr,specularExponent:Dr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Dr,strikethroughThickness:Dr,string:null,stroke:null,strokeDashArray:Mr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Dr,strokeOpacity:Dr,strokeWidth:null,style:null,surfaceScale:Dr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Mr,tabIndex:Dr,tableValues:null,target:null,targetX:Dr,targetY:Dr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Mr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Dr,underlineThickness:Dr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Dr,values:null,vAlphabetic:Dr,vMathematical:Dr,vectorEffect:null,vHanging:Dr,vIdeographic:Dr,version:null,vertAdvY:Dr,vertOriginX:Dr,vertOriginY:Dr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Dr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Jr=Tr([Wr,Hr,Qr,Zr,Yr],"html"),eo=Tr([Wr,Hr,Qr,Zr,Xr],"svg"),to=/^data[-\w.:]+$/i,no=/-[a-z]/g,ro=/[A-Z]/g;function oo(e){return"-"+e.toLowerCase()}function io(e){return e.charAt(1).toUpperCase()}const ao={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var lo=n(222);const so=lo.default||lo,uo=fo("end"),co=fo("start");function fo(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function po(e){return e&&"object"===typeof e?"position"in e||"type"in e?mo(e.position):"start"in e||"end"in e?mo(e):"line"in e||"column"in e?ho(e):"":""}function ho(e){return go(e&&e.line)+":"+go(e&&e.column)}function mo(e){return ho(e&&e.start)+"-"+ho(e&&e.end)}function go(e){return e&&"number"===typeof e?e:1}class vo extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=po(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"===typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}vo.prototype.file="",vo.prototype.name="",vo.prototype.reason="",vo.prototype.message="",vo.prototype.stack="",vo.prototype.column=void 0,vo.prototype.line=void 0,vo.prototype.ancestors=void 0,vo.prototype.cause=void 0,vo.prototype.fatal=void 0,vo.prototype.place=void 0,vo.prototype.ruleId=void 0,vo.prototype.source=void 0;const yo={}.hasOwnProperty,bo=new Map,ko=/[A-Z]/g,wo=/-([a-z])/g,xo=new Set(["table","tbody","thead","tfoot","tr"]),So=new Set(["td","th"]),_o="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Eo(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),l=co(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?eo:Jr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=Co(o,e,void 0);return i&&"string"!==typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function Co(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=eo,e.schema=o);e.ancestors.push(t);const i=Oo(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&yo.call(t.properties,o)){const i=Po(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"===typeof a&&So.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=No(e,t);xo.has(t.tagName)&&(l=l.filter((function(e){return"string"!==typeof e||!("object"===typeof(t=e)?"text"===t.type&&Cr(t.value):Cr(t));var t})));return Io(e,a,i,t),To(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Ro(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=eo,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:Oo(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Ro(e,t.position);else{const o=r.name;let i;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else Ro(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=No(e,t);return Io(e,a,i,t),To(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ro(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return To(r,No(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Io(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function To(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function No(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:bo;for(;++r4&&"data"===n.slice(0,4)&&to.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(no,io);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!no.test(e)){let n=e.replace(ro,oo);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Vr}return new o(r,t)}(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"===typeof n?n:function(e,t){const n={};try{so(t,r)}catch(o){if(!e.ignoreInvalidStyle){const t=o,n=new vo("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=_o+"#cannot-parse-style-attribute",n}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(wo,Lo)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)yo.call(e,n)&&(t[Ao(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ao[r.property]||r.property:r.attribute,n]}}function Oo(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++oo?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a0?(Uo(e,e.length,0,t),e):t}class Bo{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&$o(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),$o(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),$o(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e-1&&e.test(String.fromCharCode(t))}}function si(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(oi(r))return e.enter(n),a(r);return t(r)};function a(r){return oi(r)&&i++i))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(v(a),e=n;er;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},di={tokenize:function(e,t,n){return si(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const fi={tokenize:function(e,t,n){return function(t){return oi(t)?si(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||ni(e)?t(e):n(e)}},partial:!0};const pi={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):ni(t)?e.check(hi,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return Ko(e),e}},hi={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),si(e,o,"linePrefix")};function o(o){if(null===o||ni(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};const mi={tokenize:function(e){const t=this,n=e.attempt(fi,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,si(e,e.attempt(this.parser.constructs.flow,r,e.attempt(pi,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const gi={resolveAll:ki()},vi=bi("string"),yi=bi("text");function bi(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o-1){const e=a[0];"string"===typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function h(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function m(){let e;for(;r._index=3&&(null===i||ni(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),oi(t)?si(e,i,"whitespace")(t):i(t))}}};const Ei={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Jo(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(_i,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Jo(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(fi,r.interrupt?n:u,e.attempt(Ci,d,c))}function u(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function c(t){return oi(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(fi,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,si(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!oi(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ii,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,si(e,e.attempt(Ei,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},Ci={tokenize:function(e,t,n){const r=this;return si(e,(function(e){const o=r.events[r.events.length-1];return!oi(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ii={tokenize:function(e,t,n){const r=this;return si(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const Ti={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return oi(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(oi(t))return si(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(Ti,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Ni(e,t,n,r,o,i,a,l,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||Xo(t))return n(t);return e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||ni(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return c||null!==o&&41!==o&&!ri(o)?c999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):ni(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||ni(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!oi(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function Oi(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l;return n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):ni(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),si(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||ni(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function Ri(e,t){let n;return function r(o){if(ni(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(oi(o))return si(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function Ai(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Li={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Pi.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Ai(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ri(t)?Ri(e,l)(t):l(t)}function l(t){return Ni(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Di,u,u)(t)}function u(t){return oi(t)?si(e,c,"whitespace")(t):c(t)}function c(i){return null===i||ni(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Di={tokenize:function(e,t,n){return function(t){return ri(t)?Ri(e,r)(t):n(t)};function r(t){return Oi(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return oi(t)?si(e,i,"whitespace")(t):i(t)}function i(e){return null===e||ni(e)?t(e):n(e)}},partial:!0};const ji={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),si(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):ni(t)?e.attempt(zi,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||ni(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},zi={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):ni(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):si(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):ni(e)?o(e):n(e)}},partial:!0};const Mi={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||ri(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||ni(n)?(e.exit("atxHeading"),t(n)):oi(n)?si(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||ri(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Uo(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const Fi={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),oi(t)?si(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||ni(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const Ui=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Vi=["pre","script","style","textarea"],Bi={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,p):63===l?(e.consume(l),o=3,r.interrupt?t:L):Qo(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function c(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,l=0,f):Qo(i)?(e.consume(i),o=4,r.interrupt?t:L):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:C:f):n(o)}function p(t){return Qo(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||ri(l)){const s=47===l,u=a.toLowerCase();return s||i||!Vi.includes(u)?Ui.includes(a.toLowerCase())?(o=6,s?(e.consume(l),m):r.interrupt?t(l):C(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?g(l):v(l)):(o=1,r.interrupt?t(l):C(l))}return 45===l||Zo(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:C):n(o)}function g(t){return oi(t)?(e.consume(t),g):_(t)}function v(t){return 47===t?(e.consume(t),_):58===t||95===t||Qo(t)?(e.consume(t),y):oi(t)?(e.consume(t),v):_(t)}function y(t){return 45===t||46===t||58===t||95===t||Zo(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),k):oi(t)?(e.consume(t),b):v(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):oi(t)?(e.consume(t),k):x(t)}function w(t){return t===s?(e.consume(t),s=null,S):null===t||ni(t)?n(t):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ri(t)?b(t):(e.consume(t),x)}function S(e){return 47===e||62===e||oi(e)?v(e):n(e)}function _(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||ni(t)?C(t):oi(t)?(e.consume(t),E):n(t)}function C(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),O):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),A):!ni(t)||6!==o&&7!==o?null===t||ni(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check($i,j,I)(t))}function I(t){return e.check(Ki,T,j)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||ni(t)?I(t):(e.enter("htmlFlowData"),C(t))}function P(t){return 45===t?(e.consume(t),L):C(t)}function O(t){return 47===t?(e.consume(t),a="",R):C(t)}function R(t){if(62===t){const n=a.toLowerCase();return Vi.includes(n)?(e.consume(t),D):C(t)}return Qo(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):C(t)}function A(t){return 93===t?(e.consume(t),L):C(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),L):C(t)}function D(t){return null===t||ni(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),D)}function j(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},$i={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(fi,t,n)}},partial:!0},Ki={tokenize:function(e,t,n){const r=this;return function(t){if(ni(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const Hi={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Wi={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),oi(t)?si(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=l?(e.exit("codeFencedFenceSequence"),oi(t)?si(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||ni(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),oi(t)?si(e,u,"whitespace")(t):u(t))}function u(n){return null===n||ni(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Hi,p,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||ni(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):oi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),si(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),c)}function d(t){return null===t||ni(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||ni(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,y,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&oi(t)?si(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||ni(t)?e.check(Hi,p,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||ni(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const qi=document.createElement("i");function Gi(e){const t="&"+e+";";qi.innerHTML=t;const n=qi.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const Qi={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=Zo,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=ei,u):(e.enter("characterReferenceValue"),o=7,i=Jo,u(t))}function u(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==Zo||Gi(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),f=Object.assign({},e[c][1].start);ia(d,-l),ia(f,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:f},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},a.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Vo(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Vo(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Vo(s,xi(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=Vo(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=Vo(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,Uo(e,n-1,c-n+3,s),c=n+s.length-u-2;break}c=-1;for(;++c13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const Sa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _a(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return xa(n.slice(t?2:1),t?16:10)}return Gi(n)||e}const Ea={}.hasOwnProperty;function Ca(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(Y),blockQuote:i(W),characterEscape:E,characterReference:E,codeFenced:i(q),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(q,a),codeText:i(G,a),codeTextData:E,data:E,codeFlowValue:E,definition:i(Q),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(Z),hardBreakEscape:i(X),hardBreakTrailing:i(X),htmlFlow:i(J,a),htmlFlowData:E,htmlText:i(J,a),htmlTextData:E,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:F,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(Y),strong:i(ie),thematicBreak:i(le)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:H,autolinkProtocol:K,blockQuote:s(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:B,characterReference:$,codeFenced:s(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:C,codeIndented:s(v),codeText:s(O),codeTextData:C,data:C,definition:s(),definitionDestinationString:k,definitionLabelString:y,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(T),hardBreakTrailing:s(T),htmlFlow:s(N),htmlFlowData:C,htmlText:s(P),htmlTextData:C,image:s(A),label:D,labelText:L,lineEnding:I,link:s(R),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:U,resourceDestinationString:j,resourceTitleString:z,resource:M,setextHeading:s(_),setextHeadingLineSequence:S,setextHeadingText:x,strong:s(),thematicBreak:s()}};Ta(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:u,buffer:a,resume:c,data:n},s=[];let d=-1;for(;++d0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Pa).call(i,void 0,e[0])}for(r.position={start:Ia(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ia(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new Ra[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o)}return n(new Ra[i](a),o)};return r})(new Map,e)(0),La="",{toString:Da}={},{keys:ja}=Object,za=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Da.call(e).slice(8,-1);switch(n){case"Array":return[1,La];case"Object":return[2,La];case"Date":return[3,La];case"RegExp":return[4,La];case"Map":return[5,La];case"Set":return[6,La]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Ma=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},Fa=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=za(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l)return o([l,[...r]],r);const e=[],t=o([a,e],r);for(const n of r)e.push(i(n));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([a,n],r);for(const t of ja(r))!e&&Ma(za(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[o,a]of r)(e||!Ma(za(o))&&!Ma(za(a)))&&t.push([i(o),i(a)]);return n}case 6:{const t=[],n=o([a,t],r);for(const o of r)!e&&Ma(za(o))||t.push(i(o));return n}}const{message:s}=r;return o([a,{name:l,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},Ua="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Aa(Fa(e,t)):structuredClone(e):(e,t)=>Aa(Fa(e,t));function Va(e){const t=[];let n=-1,r=0,o=0;for(;++n55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="\ufffd"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Ba(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function $a(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Ka=function(e){if(null===e||void 0===e)return Wa;if("function"===typeof e)return Ha(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return c;function c(){let u,c,d,f=Ga;if((!t||i(o,l,s[s.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[Qa,e];return null===e||void 0===e?Ga:[e]}(n(o,s)),f[0]===Za))return f;if("children"in o&&o.children){const t=o;if(t.children&&f[0]!==Ya)for(c=(r?t.children.length:-1)+a,d=s.concat(t);c>-1&&c1:t}const nl=9,rl=32;function ol(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(il(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(il(t.slice(o),o>0,!1)),i.join("")}function il(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;t===nl||t===rl;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;t===nl||t===rl;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const al={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Va(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return el(e,t);const o={src:Va(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Va(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return el(e,t);const o={href:Va(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Va(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=co(t.children[1]),a=uo(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const s=[];for(;++l0&&n.push({type:"text",value:"\n"}),n}function hl(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ml(e,t){const n=function(e,t){const n=t||ul,r=new Map,o=new Map,i=new Map,a={...al,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r0&&d.push({type:"text",value:" "});let e="string"===typeof n?n:n(s,c);"string"===typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Ua(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function gl(e,t){return e&&"run"in e?async function(n,r){const o=ml(n,{file:r,...t});await e.run(o,r)}:function(n,r){return ml(n,{file:r,...t||e})}}function vl(e){if(e)throw e}var yl=n(240);function bl(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function kl(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r1?s-1:0),c=1;co.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(r){if(s&&n)throw r;return i(r)}s||(u&&u.then&&"function"===typeof u.then?u.then(a,i):u instanceof Error?i(u):a(u))}function i(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;ie.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(xl(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){xl(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),o=0;o2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function xl(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Sl={cwd:function(){return"/"}};function _l(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function El(e){if("string"===typeof e)e=new URL(e);else if(!_l(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n1?r-1:0),i=1;i0){let[r,...i]=n;const a=t[o][1];bl(a)&&bl(r)&&(r=yl(!0,a,r)),t[o]=[e,r,...i]}}}}const Ll=(new Al).freeze();function Dl(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function jl(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function zl(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ml(e){if(!bl(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Fl(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ul(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Il(e)}const Vl=[],Bl={allowDangerousHtml:!0},$l=/^(https?|ircs?|mailto|xmpp)$/i,Kl=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Hl(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,a=e.disallowedElements,l=e.rehypePlugins||Vl,s=e.remarkPlugins||Vl,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Bl}:Bl,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Wl,p=Ll().use(Oa).use(s).use(gl,u).use(l),h=new Il;"string"===typeof r&&(h.value=r);for(const v of Kl)Object.hasOwn(e,v.from)&&(v.from,v.to&&v.to,v.id);const m=p.parse(h);let g=p.runSync(m,h);return o&&(g={type:"element",tagName:"div",properties:{className:o},children:"root"===g.type?g.children:[g]}),Ja(g,(function(e,r,o){if("raw"===e.type&&o&&"number"===typeof r)return c?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in jo)if(Object.hasOwn(jo,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=jo[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=f(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&n&&"number"===typeof r&&(i=!n(e,r,o)),i&&o&&"number"===typeof r)return d&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}})),Eo(g,{Fragment:lr.Fragment,components:i,ignoreInvalidStyle:!0,jsx:lr.jsx,jsxs:lr.jsxs,passKeys:!0,passNode:!0})}function Wl(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||n>-1&&t>n||r>-1&&t>r||$l.test(e.slice(0,t))?e:""}function ql(e){let{item:t}=e;return(0,lr.jsx)("div",{className:"vertical-box",children:t.contextButtons.map((e=>(0,lr.jsx)("a",{href:e.url,className:"primary small",children:e.name},"context-button-"+e.name)))})}function Gl(){const{item:e,notFound:t}=Se(),{screenVariant:n}=Ne();return e?(0,lr.jsxs)("div",{className:"section body-text content-box vertical-box item",children:[(0,lr.jsxs)("div",{className:"preview"+(n.computer?" horizontal-box":" vertical-box"),children:[(0,lr.jsx)("img",{src:e.image,alt:e.title}),(0,lr.jsxs)("div",{children:[(0,lr.jsx)("h1",{children:e.title}),(0,lr.jsx)("div",{children:e.author&&(0,lr.jsx)("a",{href:"/users/"+e.author,className:"primary small",children:"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0430\u0432\u0442\u043e\u0440\u0430"})}),(0,lr.jsx)("br",{}),e.shortDescription]})]}),(0,lr.jsx)("br",{}),(0,lr.jsx)(Hl,{children:e.description}),(0,lr.jsx)(ql,{item:e})]}):(0,lr.jsx)(mr,{singlePage:!0,notFound:t})}function Ql(e){let{originalUserPage:t,children:n=null}=e;const{screenVariant:r}=Ne(),[i,a]=(0,o.useState)(t),[l,s]=(0,o.useState)(null),u=e=>{const{name:t,value:n}=e.target;a({...i,[t]:n})};return(0,lr.jsxs)("div",{children:[(0,lr.jsx)("h1",{children:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f"}),"\u0410\u0432\u0430\u0442\u0430\u0440:",(0,lr.jsxs)("div",{className:(r.phone?"vertical-box":"horizontal-box")+" align-center",children:[(0,lr.jsx)("img",{src:i.avatar||"",alt:"\u0410\u0432\u0430\u0442\u0430\u0440",className:"avatar"}),(0,lr.jsxs)("div",{className:"vertical-box",children:[(0,lr.jsx)("input",{type:"file",accept:"image/*",onChange:e=>{e.target.files&&s(e.target.files[0])}}),(0,lr.jsx)("button",{onClick:async()=>{if(l){const e=new FormData;e.append("avatar",l);const t=await async function(e){const t=await ze("/users/update/avatar/",e,!0,ge.formData);if(t.success){const e=t.body;return e.isAuthenticated&&Le&&e.avatar&&(e.avatar=De+e.avatar),e}return null}(e);t&&(a({...i,avatar:t.avatar}),s(null))}},children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0430\u0432\u0430\u0442\u0430\u0440"})]})]}),(0,lr.jsxs)("div",{children:[(0,lr.jsx)("label",{htmlFor:"firstName",children:"\u0418\u043c\u044f:"}),(0,lr.jsx)("input",{type:"text",id:"firstName",name:"firstName",value:i.firstName,onChange:u})]}),(0,lr.jsxs)("div",{children:[(0,lr.jsx)("label",{htmlFor:"lastName",children:"\u0424\u0430\u043c\u0438\u043b\u0438\u044f:"}),(0,lr.jsx)("input",{type:"text",id:"lastName",name:"lastName",value:i.lastName,onChange:u})]}),(0,lr.jsxs)("div",{children:[(0,lr.jsx)("label",{htmlFor:"email",children:"\u041f\u043e\u0447\u0442\u0430:"}),(0,lr.jsx)("input",{type:"email",id:"email",name:"email",value:i.email,onChange:u})]}),(0,lr.jsxs)("div",{children:[(0,lr.jsxs)("label",{htmlFor:"description",children:["\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 (",(0,lr.jsx)("a",{href:"https://www.markdownguide.org/basic-syntax/",target:"_blank",children:"Markdown"}),"):"]}),(0,lr.jsx)("textarea",{id:"description",name:"description",value:i.description,onChange:u,className:"fill-width"})]}),(0,lr.jsx)("button",{onClick:async()=>{const e=new FormData;e.append("id",String(i.id)),i.firstName!==t.firstName&&(e.append("firstName",i.firstName),e.append("changes","firstName")),i.lastName!==t.lastName&&(e.append("lastName",i.lastName),e.append("changes","lastName")),i.email!==t.email&&(e.append("email",i.email||""),e.append("changes","email")),i.description!==t.description&&(e.append("description",i.description),e.append("changes","description")),l&&(e.append("avatar",l),e.append("changes","avatar")),e.getAll("changes").length>0?await async function(e){return(await ze("/users/update/profile/",e,!1,ge.formData)).success&&window.location.reload(),null}(e):window.location.reload()},className:"primary small",children:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f"}),n,(0,lr.jsx)("h2",{children:"\u041f\u0440\u0435\u0432\u044c\u044e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f"}),(0,lr.jsx)(Hl,{children:i.description})]})}function Zl(){const{userPage:e,notFound:t}=_e(),{screenVariant:n}=Ne(),[r,i]=(0,o.useState)(!1);return e?(0,lr.jsx)("div",{className:"section content-box user-profile",children:r?(0,lr.jsx)(Ql,{originalUserPage:e,children:(0,lr.jsx)("button",{className:"primary small",onClick:()=>i(!1),children:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c"})}):(0,lr.jsxs)("div",{children:[(0,lr.jsxs)("div",{className:n.phone?"vertical-box":"horizontal-box",children:[(0,lr.jsx)("img",{className:"avatar",alt:"Avatar",src:e.avatar||he||""}),(0,lr.jsxs)("div",{children:[(0,lr.jsxs)("h2",{children:[e.firstName,e.lastName.length>0&&" "+e.lastName]}),(0,lr.jsxs)("div",{className:"username",children:["@",e.username]}),(0,lr.jsxs)("div",{children:["\u0414\u0430\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438: ",new Date(e.dateJoined).toLocaleString()]}),(0,lr.jsx)("button",{className:"primary small",onClick:()=>i(!0),children:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c"})]})]}),(0,lr.jsx)(Hl,{children:e.description}),(0,lr.jsx)(ql,{item:e})]})}):(0,lr.jsx)(mr,{singlePage:!0,notFound:t})}function Yl(){const{page:e,subpage:t}=ke();let n;switch(e){case"about":n=(0,lr.jsx)(fr,{});break;case"store":n=(0,lr.jsx)(gr,{});break;case"vacancy":n=(0,lr.jsx)(yr,{});break;case"users":n="vk-login"===t?(0,lr.jsx)(kr,{}):(0,lr.jsx)(Zl,{});break;default:n=(0,lr.jsx)(Gl,{})}return(0,lr.jsx)("section",{className:"section body-text",children:n})}function Xl(){return(0,lr.jsxs)("div",{className:"page fill-width",children:[(0,lr.jsx)(cr,{}),(0,lr.jsx)(Yl,{}),(0,lr.jsx)(dr,{})]})}function Jl(){return(0,lr.jsx)("div",{className:"App",children:(0,lr.jsx)(ce,{children:(0,lr.jsx)(le,{children:(0,lr.jsx)(ie,{path:":page?/:subpage?",element:(0,lr.jsx)(Xl,{})})})})})}a.createRoot(document.getElementById("root")).render((0,lr.jsx)(o.StrictMode,{children:(0,lr.jsx)(Jl,{})}))})()})();
+//# sourceMappingURL=main.4a9be667.js.map
\ No newline at end of file
diff --git a/frontend/templates/frontend/app.html b/frontend/templates/frontend/app.html
index b117cfd..ea7b3c8 100644
--- a/frontend/templates/frontend/app.html
+++ b/frontend/templates/frontend/app.html
@@ -8,10 +8,11 @@
В NovelPlus можно находить и выкладывать свои визуальные новеллы и ассеты для них.
А для разработчиков - найти единомышленников!">
+ {% csrf_token %}
-
+