1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunk-admin-dashboard-Dv1cGksx.js","chunk-rolldown-runtime-B0Z9INg1.js","chunk-context-fF3cXpK_.js","chunk-useTheme-BzPAMe9Z.js","chunk-ChartsContainer-BeuqWU6v.js","chunk-ChevronLeft-DsfA1qgG.js","chunk-Portal-D_1L42jH.js","chunk-Popper-CPbY-ZL8.js","chunk-Search-C_8o8TeT.js","chunk-TextField-Bsg7SgCA.js","chunk-List-Bi9zKfVp.js","chunk-usage-stats-chart-BrPHQ8Nv.js","chunk-Chip-BTNhx1tx.js","chunk-ListItem-CSIQxjfL.js","chunk-trusted-publishers-section-BJXE0a8a.js","chunk-Link-D7Fk7r5v.js","chunk-listItemTextClasses-j4lyFr21.js","chunk-utils-D3vZyl6C.js","chunk-CircularProgress-DMAFh2rH.js","chunk-ListItemText-DN_KMq9p.js","chunk-TableRow-DFIUQMFJ.js","chunk-TableContainer-WEzXtr21.js","chunk-button-with-progress-DkROBEVl.js","chunk-namespace-input-CeVsty3o.js","chunk-search-list-container-DZwvQQoQ.js","chunk-use-usage-stats-7TRc-Lkr.js"])))=>i.map(i=>d[i]); 2import{a as e,r as t,t as n}from"./chunk-rolldown-runtime-B0Z9INg1.js";import{$ as r,At as i,Cn as a,Ct as o,F as s,Ft as c,H as l,I as u,It as d,J as f,Kt as p,L as m,Lt as h,P as g,Q as _,Sn as v,St as y,Tn as b,Tt as x,U as S,V as C,X as w,Y as ee,_t as T,a as E,at as D,b as O,bn as k,ct as A,dt as j,fn as M,ft as te,g as N,h as ne,ht as P,i as re,it as ie,lt as ae,mn as oe,n as se,nt as ce,o as le,ot as ue,pn as de,pt as fe,q as pe,qt as me,r as he,rn as F,rt as ge,t as I,un as _e,ut as ve,v as ye,w as be,x as xe,xn as L,xt as Se,yn as Ce,z as we}from"./chunk-context-fF3cXpK_.js";import{n as Te,t as Ee}from"./chunk-useTheme-BzPAMe9Z.js";import{L as De,R as Oe,z as ke}from"./chunk-ChartsContainer-BeuqWU6v.js";import{C as Ae,S as je,_ as Me,b as Ne,f as Pe,g as Fe,h as R,i as Ie,m as Le,n as Re,o as ze,r as z,s as Be,t as Ve,u as He,v as Ue,x as We,y as Ge}from"./chunk-Search-C_8o8TeT.js";import{a as Ke,c as qe,i as Je,l as Ye,s as Xe,t as Ze}from"./chunk-usage-stats-chart-BrPHQ8Nv.js";import{A as Qe,C as $e,E as et,M as B,N as tt,O as nt,P as rt,T as it,a as at,d as ot,f as st,i as ct,j as lt,l as ut,n as dt,o as ft,r as pt,s as mt,t as ht,v as gt,y as _t}from"./chunk-TextField-Bsg7SgCA.js";import{a as vt,i as yt,l as bt,n as xt,r as St,s as Ct,t as wt}from"./chunk-ChevronLeft-DsfA1qgG.js";import{a as Tt,i as Et,n as Dt,o as Ot,r as kt}from"./chunk-Portal-D_1L42jH.js";import{$ as At,A as jt,B as Mt,C as Nt,D as Pt,E as Ft,F as It,G as Lt,H as Rt,I as zt,K as Bt,L as Vt,M as Ht,N as Ut,O as Wt,P as Gt,Q as V,R as Kt,S as qt,T as Jt,U as Yt,V as Xt,W as Zt,X as Qt,Z as $t,_ as en,a as tn,at as nn,b as rn,c as an,ct as on,d as sn,et as cn,f as ln,ft as un,g as dn,h as fn,i as pn,it as mn,j as hn,k as gn,l as _n,lt as vn,m as yn,n as bn,nt as H,o as xn,p as Sn,r as Cn,s as wn,st as Tn,t as En,tt as Dn,u as On,ut as kn,v as An,w as jn,x as Mn,y as Nn,z as Pn}from"./chunk-trusted-publishers-section-BJXE0a8a.js";import{a as Fn,c as In,r as Ln,s as Rn,u as zn}from"./chunk-List-Bi9zKfVp.js";import{t as Bn}from"./chunk-Popper-CPbY-ZL8.js";import{t as Vn}from"./chunk-Chip-BTNhx1tx.js";import{t as Hn}from"./chunk-CircularProgress-DMAFh2rH.js";import{t as U}from"./chunk-Link-D7Fk7r5v.js";import{a as Un,c as Wn,d as Gn,f as Kn,h as qn,i as Jn,l as Yn,n as W,o as Xn,p as Zn,r as G,s as Qn,t as $n}from"./chunk-utils-D3vZyl6C.js";import{t as er}from"./chunk-button-with-progress-DkROBEVl.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var tr=n((e=>{var t=Te();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),nr=n(((e,t)=>{var n=typeof Element<`u`,r=typeof Map==`function`,i=typeof Set==`function`,a=typeof ArrayBuffer==`function`&&!!ArrayBuffer.isView;function o(e,t){if(e===t)return!0;
2if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;var s,c,l;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(!o(e[c],t[c]))return!1;return!0}var u;if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],t.get(c.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf==`function`&&typeof t.valueOf==`function`)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString==`function`&&typeof t.toString==`function`)return e.toString()===t.toString();if(l=Object.keys(e),s=l.length,s!==Object.keys(t).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[c]))return!1;if(n&&e instanceof Element)return!1;for(c=s;c--!==0;)if(!((l[c]===`_owner`||l[c]===`__v`||l[c]===`__o`)&&e.$$typeof)&&!o(e[l[c]],t[l[c]]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||``).match(/stack|recursion/i))return console.warn(`react-fast-compare cannot handle circular refs`),!1;throw e}}})),rr=n(((e,t)=>{t.exports=function(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}})),ir=n(((e,t)=>{t.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],d=t[l];if(i=n?n.call(r,u,d,l):void 0,i===!1||i===void 0&&u!==d)return!1}return!0}})),ar=tr(),K=e(b()),or=e(nr()),sr=e(rr()),cr=e(ir()),lr,ur,dr=(e=>(e.BASE=`base`,e.BODY=`body`,e.HEAD=`head`,e.HTML=`html`,e.LINK=`link`,e.META=`meta`,e.NOSCRIPT=`noscript`,e.SCRIPT=`script`,e.STYLE=`style`,e.TITLE=`title`,e.FRAGMENT=`Symbol(react.fragment)`,e))(dr||{}),q={link:{rel:[`amphtml`,`canonical`,`alternate`]},script:{type:[`application/ld+json`]},meta:{charset:``,name:[`generator`,`robots`,`description`],property:[`og:type`,`og:title`,`og:url`,`og:image`,`og:image:alt`,`og:description`,`twitter:url`,`twitter:title`,`twitter:description`,`twitter:image`,`twitter:image:alt`,`twitter:card`,`twitter:site`]}},fr=Object.values(dr),pr={accesskey:`accessKey`,charset:`charSet`,class:`className`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,"http-equiv":`httpEquiv`,itemprop:`itemProp`,tabindex:`tabIndex`},mr=Object.entries(pr).reduce((e,[t,n])=>(e[n]=t,e),{}),J=`data-rh`,hr={DEFAULT_TITLE:`defaultTitle`,DEFER:`defer`,ENCODE_SPECIAL_CHARACTERS:`encodeSpecialCharacters`,ON_CHANGE_CLIENT_STATE:`onChangeClientState`,TITLE_TEMPLATE:`titleTemplate`,PRIORITIZE_SEO_TAGS:`prioritizeSeoTags`},gr=(e,t)=>{for(let n=e.length-1;n>=0;--n){let r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},_r=e=>{let t=gr(e,`title`),n=gr(e,hr.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join(``)),n&&t)return n.replace(/%s/g,()=>t);let r=gr(e,hr.DEFAULT_TITLE);return t||r||void 0},vr=e=>gr(e,hr.ON_CHANGE_CLIENT_STATE)||(()=>{}),yr=(e,t)=>t.filter(t=>t[e]!==void 0).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),br=(e,t)=>t.filter(e=>e.base!==void 0).map(e=>e.base).reverse().reduce((t,n)=>{if(!t.length){let r=Object.keys(n);for(let i=0;i<r.length;i+=1){let a=r[i].toLowerCase();if(e.indexOf(a)!==-1&&n[a])return t.concat(n)}}return t},[]),xr=e=>console&&typeof console.warn==`function`&&console.warn(e),Sr=(e,t,n
2)=>{let r={};return n.filter(t=>Array.isArray(t[e])?!0:(t[e]!==void 0&&xr(`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`),!1)).map(t=>t[e]).reverse().reduce((e,n)=>{let i={};n.filter(e=>{let n,a=Object.keys(e);for(let r=0;r<a.length;r+=1){let i=a[r],o=i.toLowerCase();t.indexOf(o)!==-1&&(n!==`rel`||e[n].toLowerCase()!==`canonical`)&&(o!==`rel`||e[o].toLowerCase()!==`stylesheet`)&&(n=o),t.indexOf(i)!==-1&&(i===`innerHTML`||i===`cssText`||i===`itemprop`)&&(n=i)}if(!n||!e[n])return!1;let o=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][o]&&(i[n][o]=!0,!0)}).reverse().forEach(t=>e.push(t));let a=Object.keys(i);for(let e=0;e<a.length;e+=1){let t=a[e],n={...r[t],...i[t]};r[t]=n}return e},[]).reverse()},Cr=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},wr=e=>({baseTag:br([`href`],e),bodyAttributes:yr(`bodyAttributes`,e),defer:gr(e,hr.DEFER),encode:gr(e,hr.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:yr(`htmlAttributes`,e),linkTags:Sr(`link`,[`rel`,`href`],e),metaTags:Sr(`meta`,[`name`,`charset`,`http-equiv`,`property`,`itemprop`],e),noscriptTags:Sr(`noscript`,[`innerHTML`],e),onChangeClientState:vr(e),scriptTags:Sr(`script`,[`src`,`innerHTML`],e),styleTags:Sr(`style`,[`cssText`],e),title:_r(e),titleAttributes:yr(`titleAttributes`,e),prioritizeSeoTags:Cr(e,hr.PRIORITIZE_SEO_TAGS)}),Tr=e=>Array.isArray(e)?e.join(``):e,Er=(e,t)=>{let n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Dr=(e,t)=>Array.isArray(e)?e.reduce((e,n)=>(Er(n,t)?e.priority.push(n):e.default.push(n),e),{priority:[],default:[]}):{default:e,priority:[]},Or=(e,t)=>({...e,[t]:void 0}),kr=[`noscript`,`script`,`style`],Ar=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`),jr=e=>Object.keys(e).reduce((t,n)=>{let r=e[n]===void 0?`${n}`:`${n}="${e[n]}"`;return t?`${t} ${r}`:r},``),Mr=(e,t,n,r)=>{let i=jr(n),a=Tr(t);return i?`<${e} ${J}="true" ${i}>${Ar(a,r)}</${e}>`:`<${e} ${J}="true">${Ar(a,r)}</${e}>`},Nr=(e,t,n=!0)=>t.reduce((t,r)=>{let i=r,a=Object.keys(i).filter(e=>e!==`innerHTML`&&e!==`cssText`).reduce((e,t)=>{let r=i[t]===void 0?t:`${t}="${Ar(i[t],n)}"`;return e?`${e} ${r}`:r},``),o=i.innerHTML||i.cssText||``;return`${t}<${e} ${J}="true" ${a}${kr.indexOf(e)===-1?`/>`:`>${o}</${e}>`}`},``),Pr=(e,t={})=>Object.keys(e).reduce((t,n)=>{let r=pr[n];return t[r||n]=e[n],t},t),Fr=(e,t,n)=>{let r=Pr(n,{key:t,[J]:!0});return[K.createElement(`title`,r,t)]},Ir=(e,t)=>t.map((t,n)=>{let r={key:n,[J]:!0};return Object.keys(t).forEach(e=>{let n=pr[e]||e;if(n===`innerHTML`||n===`cssText`){let e=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:e}}else r[n]=t[e]}),K.createElement(e,r)}),Lr=(e,t,n=!0)=>{switch(e){case`title`:return{toComponent:()=>Fr(e,t.title,t.titleAttributes),toString:()=>Mr(e,t.title,t.titleAttributes,n)};case`bodyAttributes`:case`htmlAttributes`:return{toComponent:()=>Pr(t),toString:()=>jr(t)};default:return{toComponent:()=>Ir(e,t),toString:()=>Nr(e,t,n)}}},Rr=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{let i=Dr(e,q.meta),a=Dr(t,q.link),o=Dr(n,q.script);return{priorityMethods:{toComponent:()=>[...Ir(`meta`,i.priority),...Ir(`link`,a.priority),...Ir(`script`,o.priority)],toString:()=>`${Lr(`meta`,i.priority,r)} ${Lr(`link`,a.priority,r)} ${Lr(`script`,o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},zr=e=>{let{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s=``,titleAttributes:c,prioritizeSeoTags:l}=e,{linkTags:u,metaTags:d,scriptTags:f}=e,p={toComponent:()=>{},toString:()=>``};return l&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:f}=Rr(e)),{priority:p,base:Lr(`base`,t,r),bodyAttributes:Lr(`bodyAttributes`,n,r),htmlAttributes:Lr(`htmlAttributes`,i,r),link:Lr(`link`,u,r),meta:Lr(`meta`,d,r),noscript:Lr(`noscript`,a,r),script:Lr(`script`,f,r),style:Lr(`style`,o,r),title:Lr(`title`,{title:s,titleAttributes:c},r)}},Br=[],Vr=!!(typeof window<`u`&&window.document&&window.document.createElement),Hr=class{constructor(e,t){ke(this,`instances`,[]),ke(this,`canUseDOM`,Vr),ke(this,`context`,void 0),ke(this,`value`,{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Br:this.instances,add:e=>{(this.canUseDOM?Br:this.instances).push(e)},remove:e=>{let t=(this.canUseDOM?Br:this.instances).indexOf(e);(this.canUseDOM?Br:this.instances).splice(t,1)}}}),this.context=e,this.canUseDOM=t||!1,t||(e.helmet=zr({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:``,titleAttributes:{}}))}},Ur=K.createContext({}),Wr=(lr=class e extends K.Component{constructor(t){super(t),ke(this,`helmetData`,void 0),this.helmetData=new Hr(this.props.context||{},e.canUseDOM)}render(){return K.createElement(Ur.Provider,{value:this.helmetData.value},this.props.children)}},ke(lr,`canUseDOM`,Vr),lr),Gr=(e,t)=>{let n=document.head||document.querySelector(`head`),r=n.querySelectorAll(`${e}[${J}]`),i=[].slice.call(r),a=[],o;return t&&t.length&&t.forEach(t=>{let n=document.createElement(e);for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){if(e===`innerHTML`)n.innerHTML=t.innerHTML;else if(e===`cssText`)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{let r=e,i=t[r]===void 0?``:t[r];n.setAttribute(e,i)}}n.setAttribute(J,`true`),i.some((e,t)=>(o=t,n.isEqualNode(e)))?i.splice(o,1):a.push(n)}
2),i.forEach(e=>e.parentNode?.removeChild(e)),a.forEach(e=>n.appendChild(e)),{oldTags:i,newTags:a}},Kr=(e,t)=>{let n=document.getElementsByTagName(e)[0];if(!n)return;let r=n.getAttribute(J),i=r?r.split(`,`):[],a=[...i],o=Object.keys(t);for(let e of o){let r=t[e]||``;n.getAttribute(e)!==r&&n.setAttribute(e,r),i.indexOf(e)===-1&&i.push(e);let o=a.indexOf(e);o!==-1&&a.splice(o,1)}for(let e=a.length-1;e>=0;--e)n.removeAttribute(a[e]);i.length===a.length?n.removeAttribute(J):n.getAttribute(J)!==o.join(`,`)&&n.setAttribute(J,o.join(`,`))},qr=(e,t)=>{e!==void 0&&document.title!==e&&(document.title=Tr(e)),Kr(`title`,t)},Jr=(e,t)=>{let{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:c,scriptTags:l,styleTags:u,title:d,titleAttributes:f}=e;Kr(`body`,r),Kr(`html`,i),qr(d,f);let p={baseTag:Gr(`base`,n),linkTags:Gr(`link`,a),metaTags:Gr(`meta`,o),noscriptTags:Gr(`noscript`,s),scriptTags:Gr(`script`,l),styleTags:Gr(`style`,u)},m={},h={};Object.keys(p).forEach(e=>{let{newTags:t,oldTags:n}=p[e];t.length&&(m[e]=t),n.length&&(h[e]=p[e].oldTags)}),t&&t(),c(e,m,h)},Yr=null,Xr=e=>{Yr&&cancelAnimationFrame(Yr),e.defer?Yr=requestAnimationFrame(()=>{Jr(e,()=>{Yr=null})}):(Jr(e),Yr=null)},Zr=class extends K.Component{constructor(...e){super(...e),ke(this,`rendered`,!1)}shouldComponentUpdate(e){return!(0,cr.default)(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){let{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){let{helmetInstances:e,setHelmet:t}=this.props.context,n=null,r=wr(e.get().map(e=>{let t={...e.props};return delete t.context,t}));Wr.canUseDOM?Xr(r):zr&&(n=zr(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;let{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Qr=(ur=class extends K.Component{shouldComponentUpdate(e){return!(0,or.default)(Or(this.props,`helmetData`),Or(e,`helmetData`))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case`script`:case`noscript`:return{innerHTML:t};case`style`:return{cssText:t};default:throw Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case`title`:return{...t,[e.type]:r,titleAttributes:{...n}};case`body`:return{...t,bodyAttributes:{...n}};case`html`:return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(t=>{n={...n,[t]:e[t]}}),n}warnOnInvalidChildren(e,t){return(0,sr.default)(fr.some(t=>e.type===t),typeof e.type==`function`?`You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.`:`Only elements types ${fr.join(`, `)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),(0,sr.default)(!t||typeof t==`string`||Array.isArray(t)&&!t.some(e=>typeof e!=`string`),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return K.Children.forEach(e,e=>{if(!e||!e.props)return;let{children:r,...i}=e.props,a=Object.keys(i).reduce((e,t)=>(e[mr[t]||t]=i[t],e),{}),{type:o}=e;
2switch(typeof o==`symbol`?o=o.toString():this.warnOnInvalidChildren(e,r),o){case`Symbol(react.fragment)`:t=this.mapChildrenToProps(r,t);break;case`link`:case`meta`:case`noscript`:case`script`:case`style`:n=this.flattenArrayTypeChildren(e,n,a,r);break;default:t=this.mapObjectTypeChildren(e,t,a,r)}}),this.mapArrayTypeChildrenToProps(n,t)}render(){let{children:e,...t}=this.props,n={...t},{helmetData:r}=t;return e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Hr)&&(r=new Hr(r.context,!0),delete n.helmetData),r?K.createElement(Zr,{...n,context:r.value}):K.createElement(Ur.Consumer,null,e=>K.createElement(Zr,{...n,context:e}))}},ke(ur,`defaultProps`,{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),ur),$r=K.createContext(null);function ei(){return K.useContext($r)}var ti=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;v();var Y=_e();function ni(e,t){return typeof t==`function`?t(e):L({},e,t)}function ri(e){let{children:t,theme:n}=e,r=ei(),i=K.useMemo(()=>{let e=r===null?n:ni(r,n);return e!=null&&(e[ti]=r!==null),e},[n,r]);return(0,Y.jsx)($r.Provider,{value:i,children:t})}var ii=0;function ai(e){let[t,n]=K.useState(e),r=e||t;return K.useEffect(()=>{t??(ii+=1,n(`mui-${ii}`))},[t]),r}var oi=K.useId;function si(e){if(oi!==void 0){let t=oi();return e??t}return ai(e)}function ci(e){let t=c(),n=si()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,Oe(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){var r;if(t&&(r=t.hasAttribute)!=null&&r.call(t,`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let a=document.createElement(`style`);a.setAttribute(`data-mui-layer-order`,n),a.textContent=i,e.prepend(a)}else{var a;(a=e.querySelector(`style[data-mui-layer-order="${n}"]`))==null||a.remove()}},[i,n]),i?(0,Y.jsx)(rt,{styles:i}):null}v(),F();var li={};function ui(e,t,n,r=!1){return K.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?L({},t,{[e]:a}):a;return r?()=>o:o}return e?L({},t,{[e]:n}):L({},t,n)},[e,t,n,r])}function di(e){let{children:t,theme:n,themeId:r}=e,i=c(li),a=ei()||li,o=ui(r,i,n),s=ui(r,a,n,!0),l=o.direction===`rtl`,u=ci(o);return(0,Y.jsx)(ri,{theme:s,children:(0,Y.jsx)(oe.Provider,{value:o,children:(0,Y.jsx)(Tt,{value:l,children:(0,Y.jsxs)(x,{value:o?.components,children:[u,t]}
2)})})})}k(),v(),p(),d();var fi=[`className`,`component`,`disableGutters`,`fixed`,`maxWidth`,`classes`],pi=h(),mi=Ct(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${me(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),hi=e=>vt({props:e,name:`MuiContainer`,defaultTheme:pi}),gi=(e,t)=>{let n=e=>bt(t,e),{classes:r,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:[`root`,o&&`maxWidth${me(String(o))}`,i&&`fixed`,a&&`disableGutters`]};return yt(s,n,r)};function _i(e={}){let{createStyledComponent:t=mi,useThemeProps:n=hi,componentName:r=`MuiContainer`}=e,a=t(({theme:e,ownerState:t})=>L({width:`100%`,marginLeft:`auto`,boxSizing:`border-box`,marginRight:`auto`,display:`block`},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let r=n,i=e.breakpoints.values[r];return i!==0&&(t[e.breakpoints.up(r)]={maxWidth:`${i}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>L({},t.maxWidth===`xs`&&{[e.breakpoints.up(`xs`)]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&t.maxWidth!==`xs`&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}));return K.forwardRef(function(e,t){let o=n(e),{className:s,component:c=`div`,disableGutters:l=!1,fixed:u=!1,maxWidth:d=`lg`}=o,f=Ce(o,fi),p=L({},o,{component:c,disableGutters:l,fixed:u,maxWidth:d}),m=gi(p,r);return(0,Y.jsx)(a,L({as:c,ownerState:p,className:i(m.root,s),ref:t},f))})}v(),k();var vi=[`theme`];function yi(e){let{theme:t}=e,n=Ce(e,vi),r=t[a],i=r||t;return typeof t!=`function`&&(r&&!r.vars?i=L({},r,{vars:null}):t&&!t.vars&&(i=L({},t,{vars:null}))),(0,Y.jsx)(di,L({},n,{themeId:r?a:void 0,theme:i}))}var bi;function xi(){if(bi)return bi;let e=document.createElement(`div`),t=document.createElement(`div`);return t.style.width=`10px`,t.style.height=`1px`,e.appendChild(t),e.dir=`rtl`,e.style.fontSize=`14px`,e.style.width=`4px`,e.style.height=`1px`,e.style.position=`absolute`,e.style.top=`-1000px`,e.style.overflow=`scroll`,document.body.appendChild(e),bi=`reverse`,e.scrollLeft>0?bi=`default`:(e.scrollLeft=1,e.scrollLeft===0&&(bi=`negative`)),document.body.removeChild(e),bi}function Si(e,t){let n=e.scrollLeft;if(t!==`rtl`)return n;switch(xi()){case`negative`:return e.scrollWidth-e.clientWidth+n;case`reverse`:return e.scrollWidth-e.clientWidth-n;default:return n}}var Ci={border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,whiteSpace:`nowrap`,width:`1px`};function wi(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Ti=tt;function Ei(e){return o(`MuiCollapse`,e)}D(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]),k(),v();var Di=[`addEndListener`,`children`,`className`,`collapsedSize`,`component`,`easing`,`in`,`onEnter`,`onEntered`,`onEntering`,`onExit`,`onExited`,`onExiting`,`orientation`,`style`,`timeout`,`TransitionComponent`],Oi=e=>{let{orientation:t,classes:n}=e,r={root:[`root`,`${t}`],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,`${t}`],wrapperInner:[`wrapperInner`,`${t}`]};return ue(r,Ei,n)},ki=P(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(({theme:e,ownerState:t})=>L({height:0,overflow:`hidden`,transition:e.transitions.create(`height`)},t.orientation===`horizontal`&&{height:`auto`,width:0,transition:e.transitions.create(`width`)},t.state===`entered`&&L({height:`auto`,overflow:`visible`},t.orientation===`horizontal`&&{width:`auto`}),t.state===`exited`&&!t.in&&t.collapsedSize===`0px`&&{visibility:`hidden`})),Ai=P(`div`,{name:`MuiCollapse`,slot:`Wrapper`,overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>L({display:`flex`,width:`100%`},e.orientation===`horizontal`&&{width:`auto`,height:`100%`})),ji=P(`div`,{name:`MuiCollapse`,slot:`WrapperInner`,overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>L({width:`100%`},e.orientation===`horizontal`&&{width:`auto`,height:`100%`})),Mi=K.forwardRef(function(e,t){let n=_({props:e,name:`MuiCollapse`}),{addEndListener:r,children:a,className:o,collapsedSize:s=`0px`,component:c,easing:l,in:u,onEnter:d,onEntered:p,onEntering:m,onExit:h,onExited:g,onExiting:v,orientation:y=`vertical`,style:b,timeout:x=Se.standard,TransitionComponent:S=Fn}=n,C=Ce(n,Di),w=L({},n,{orientation:y,collapsedSize:s}),ee=Oi(w),T=Ee(),E=ve(),D=K.useRef(null),O=K.useRef(),k=typeof s==`
2number`?`${s}px`:s,A=y===`horizontal`,j=A?`width`:`height`,M=K.useRef(null),te=f(t,M),N=e=>t=>{if(e){let n=M.current;t===void 0?e(n):e(n,t)}},ne=()=>D.current?D.current[A?`clientWidth`:`clientHeight`]:0,P=N((e,t)=>{D.current&&A&&(D.current.style.position=`absolute`),e.style[j]=k,d&&d(e,t)}),re=N((e,t)=>{let n=ne();D.current&&A&&(D.current.style.position=``);let{duration:r,easing:i}=Ln({style:b,timeout:x,easing:l},{mode:`enter`});if(x===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[j]=`${n}px`,e.style.transitionTimingFunction=i,m&&m(e,t)}),ie=N((e,t)=>{e.style[j]=`auto`,p&&p(e,t)}),ae=N(e=>{e.style[j]=`${ne()}px`,h&&h(e)}),oe=N(g),se=N(e=>{let t=ne(),{duration:n,easing:r}=Ln({style:b,timeout:x,easing:l},{mode:`exit`});if(x===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[j]=k,e.style.transitionTimingFunction=r,v&&v(e)}
vendor: 7,861 bytes, line 2
2);return(0,Y.jsx)(S,L({in:u,onEnter:P,onEntered:ie,onEntering:re,onExit:ae,onExited:oe,onExiting:se,addEndListener:e=>{x===`auto`&&E.start(O.current||0,e),r&&r(M.current,e)},nodeRef:M,timeout:x===`auto`?null:x},C,{children:(e,t)=>(0,Y.jsx)(ki,L({as:c,className:i(ee.root,o,{entered:ee.entered,exited:!u&&k===`0px`&&ee.hidden}[e]),style:L({[A?`minWidth`:`minHeight`]:k},b),ref:te},t,{ownerState:L({},w,{state:e}),children:(0,Y.jsx)(Ai,{ownerState:L({},w,{state:e}),className:ee.wrapper,ref:D,children:(0,Y.jsx)(ji,{ownerState:L({},w,{state:e}),className:ee.wrapperInner,children:a})})}))}))});Mi.muiSupportAuto=!0;function Ni(e){return o(`MuiAppBar`,e)}D(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]),k(),v();var Pi=[`className`,`color`,`enableColorOnDark`,`position`],Fi=e=>{let{color:t,position:n,classes:i}=e,a={root:[`root`,`color${r(t)}`,`position${r(n)}`]};return ue(a,Ni,i)},Ii=(e,t)=>e?`${e?.replace(`)`,``)}, ${t})`:t,Li=P(S,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${r(n.position)}`],t[`color${r(n.color)}`]]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode===`light`?e.palette.grey[100]:e.palette.grey[900];return L({display:`flex`,flexDirection:`column`,width:`100%`,boxSizing:`border-box`,flexShrink:0},t.position===`fixed`&&{position:`fixed`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0,"@media print":{position:`absolute`}},t.position===`absolute`&&{position:`absolute`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0},t.position===`sticky`&&{position:`sticky`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0},t.position===`static`&&{position:`static`},t.position===`relative`&&{position:`relative`},!e.vars&&L({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!==`inherit`&&t.color!==`transparent`&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color===`inherit`&&{color:`inherit`},e.palette.mode===`dark`&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color===`transparent`&&L({backgroundColor:`transparent`,color:`inherit`},e.palette.mode===`dark`&&{backgroundImage:`none`})),e.vars&&L({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Ii(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Ii(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Ii(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Ii(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},![`inherit`,`transparent`].includes(t.color)&&{backgroundColor:`var(--AppBar-background)`},{color:t.color===`inherit`?`inherit`:`var(--AppBar-color)`},t.color===`transparent`&&{backgroundImage:`none`,backgroundColor:`transparent`,color:`inherit`}))}),Ri=K.forwardRef(function(e,t){let n=_({props:e,name:`MuiAppBar`}),{className:r,color:a=`primary`,enableColorOnDark:o=!1,position:s=`fixed`}=n,c=Ce(n,Pi),l=L({},n,{color:a,position:s,enableColorOnDark:o}),u=Fi(l);return(0,Y.jsx)(Li,L({square:!0,component:`header`,ownerState:l,elevation:4,className:i(u.root,r,s===`fixed`&&`mui-fixed`),ref:t},c))}),zi=w((0,Y.jsx)(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`}),`Person`);function Bi(e){return o(`MuiAvatar`,e)}D(`MuiAvatar`,[`root`,`colorDefault`,`circular`,`rounded`,`square`,`img`,`fallback`]),k(),v();var Vi=[`alt`,`children`,`className`,`component`,`slots`,`slotProps`,`imgProps`,`sizes`,`src`,`srcSet`,`variant`],Hi=e=>{let{classes:t,variant:n,colorDefault:r}=e;return ue({root:[`root`,n,r&&`colorDefault`],img:[`img`],fallback:[`fallback`]},Bi,t)},Ui=P(`div`,{name:`MuiAvatar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:`50%`,overflow:`hidden`,userSelect:`none`,variants:[{props:{variant:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:`square`},style:{borderRadius:0}},{props:{colorDefault:!0},style:L({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:L({backgroundColor:e.palette.grey[400]},e.applyStyles(`dark`,{backgroundColor:e.palette.grey[600]})))}]})),Wi=P(`img`,{name:`MuiAvatar`,slot:`Img`,overridesResolver:(e,t)=>t.img})({width:`100%`,height:`100%`,textAlign:`center`,objectFit:`cover`,color:`transparent`,textIndent:1e4}),Gi=P(zi,{name:`MuiAvatar`,slot:`Fallback`,overridesResolver:(e,t)=>t.fallback})({width:`75%`,height:`75%`});function Ki({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){let[i,a]=K.useState(!1);return K.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0,o=new Image;return o.onload=()=>{i&&a(`loaded`)},o.onerror=()=>{i&&a(`error`)},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{i=!1}},[e,t,n,r]),i}var qi=K.forwardRef(function(e,t){let n=_({props:e,name:`MuiAvatar`}),{alt:r,children:a,className:o,component:s=`div`,slots:c={},slotProps:u={},imgProps:d,sizes:f,src:p,srcSet:m,variant:h=`circular`}=n,g=Ce(n,Vi),v=null,y=Ki(L({},d,{src:p,srcSet:m})),b=p||m,x=b&&y!==`error`,S=L({},n,{colorDefault:!x,component:s,variant:h}),C=Hi(S),[w,ee]=l(`img`,{className:C.img,elementType:Wi,externalForwardedProps:{slots:c,slotProps:{img:L({},d,u.img)}},additionalProps:{alt:r,src:p,srcSet:m,sizes:f},ownerState:S});return v=x?(0,Y.jsx)(w,L({},ee)):a||a===0?a:b&&r?r[0]:(0,Y.jsx)(Gi,{ownerState:S,className:C.fallback}),(0,Y.jsx)(Ui,L({as:s,ownerState:S,className:i(C.root,o),ref:t},g,{children:v}))});function Ji(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=qe({badgeContent:t,max:r}),o=n;n===!1&&t===0&&!i&&(o=!0);let{badgeContent:s,max:c=r}=o?a:e,l=s&&Number(s)>c?`${c}+`:s;return{badgeContent:s,invisible:o,max:c,displayValue:l}}function Yi(e){return o(`MuiBadge`,e)}var Xi=D(`MuiBadge`,[`root`,`badge`,`dot`,`standard`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`,`invisible`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`overlapRectangular`,`overlapCircular`,`anchorOriginTopLeftCircular`,`anchorOriginTopLeftRectangular`,`anchorOriginTopRightCircular`,`anchorOriginTopRightRectangular`,`anchorOriginBottomLeftCircular`,`anchorOriginBottomLeftRectangular`,`anchorOriginBottomRightCircular`,`anchorOriginBottomRightRectangular`]);v(),k();var Zi=[`anchorOrigin`,`className`,`classes`,`component`,`components`,`componentsProps`,`children`,`overlap`,`color`,`invisible`,`max`,`badgeContent`,`slots`,`slotProps`,`showZero`,`variant`],Qi=10,$i=4,ea=e=>{let{color:t,anchorOrigin:n,invisible:i,overlap:a,variant:o,classes:s={}}=e,c={root:[`root`],badge:[`badge`,o,i&&`invisible`,`anchorOrigin${r(n.vertical)}${r(n.horizontal)}`,`anchorOrigin${r(n.vertical)}${r(n.horizontal)}${r(a)}`,`overlap${r(a)}`,t!=="default"&&`color${r(t)}`]};return ue(c,Yi,s)},ta=P(`span`,{name:`MuiBadge`,slot:`Root`,overridesResolver:(e,t)=>t.root})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),na=P(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;
2return[t.badge,t[n.variant],t[`anchorOrigin${r(n.anchorOrigin.vertical)}${r(n.anchorOrigin.horizontal)}${r(n.overlap)}`],n.color!=="default"&&t[`color${r(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>({display:`flex`,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,position:`absolute`,boxSizing:`border-box`,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:`0 6px`,height:20,borderRadius:Qi,zIndex:1,transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main&&(e.vars??e).palette[t].contrastText).map(t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:`dot`},style:{borderRadius:$i,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`rectangular`,style:{to
2p:0,right:0,transform:`scale(1) translate(50%, -50%)`,transformOrigin:`100% 0%`,[`&.${Xi.invisible}`]:{transform:`scale(0) translate(50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`rectangular`,style:{bottom:0,right:0,transform:`scale(1) translate(50%, 50%)`,transformOrigin:`100% 100%`,[`&.${Xi.invisible}`]:{transform:`scale(0) translate(50%, 50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`rectangular`,style:{top:0,left:0,transform:`scale(1) translate(-50%, -50%)`,transformOrigin:`0% 0%`,[`&.${Xi.invisible}`]:{transform:`scale(0) translate(-50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`rectangular`,style:{bottom:0,left:0,transform:`scale(1) translate(-50%, 50%)`,transformOrigin:`0% 100%`,[`&.${Xi.invisible}`]:{transform:`scale(0) translate(-50%, 50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`circular`,style:{to
2p:`14%`,right:`14%`,transform:`scale(1) translate(50%, -50%)`,transformOrigin:`100% 0%`,[`&.${Xi.invisible}`]:{transform:`scale(0) translate(50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`circular`,style:{bottom:`14%`,right:`14%`,transform:`scale(1) translate(50%, 50%)`,transformOrigin:`100% 100%`,[`&.${Xi.invisible}`]:{transform:`scale(0) translate(50%, 50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`circular`,style:{top:`14%`,left:`14%`,transform:`scale(1) translate(-50%, -50%)`,transformOrigin:`0% 0%`,[`&.${Xi.invisible}`]:{transform:`scale(0) translate(-50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`circular`,style:{bottom:`14%`,left:`14%`,transform:`scale(1) translate(-50%, 50%)`,transformOrigin:`0% 100%`,[`&.${Xi.invisible}`]:{transform:`scale(0) translate(-50%, 50%)`}}},{props:{invisible:!0},style:{transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})),ra=K.forwardRef(function(e,t){let n=_({props:e,name:`MuiBadge`}),{anchorOrigin:r={vertical:`top`,horizontal:`right`},className:a,component:o,components:s={},componentsProps:c={},children:l,overlap:u=`rectangular`,color:d=`default`,invisible:f=!1,max:p=99,badgeContent:m,slots:h,slotProps:g,showZero:v=!1,variant:y=`standard`}=n,b=Ce(n,Zi),{badgeContent:x,invisible:S,max:C,displayValue:w}=Ji({max:p,invisible:f,badgeContent:m,showZero:v}),ee=qe({anchorOrigin:r,color:d,overlap:u,variant:y,badgeContent:m}),T=S||x==null&&y!==`dot`,{color:E=d,overlap:D=u,anchorOrigin:O=r,variant:k=y}=T?ee:n,A=k===`dot`?void 0:w,j=L({},n,{badgeContent:x,invisible:T,max:C,displayValue:A,showZero:v,anchorOrigin:O,color:E,overlap:D,variant:k}),M=ea(j),te=h?.root??s.Root??ta,N=h?.badge??s.Badge??na,ne=g?.root??c.root,P=g?.badge??c.badge,re=kt({elementType:te,externalSlotProps:ne,externalForwardedProps:b,additionalProps:{ref:t,as:o},ownerState:j,className:i(ne?.className,M.root,a)}),ie=kt({elementType:N,externalSlotProps:P,ownerState:j,className:i(M.badge,P?.className)});return(0,Y.jsxs)(te,L({},re,{children:[l,(0,Y.jsx)(N,L({},ie,{children:A}))]}))}),ia=_i({createStyledComponent:P(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${r(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>_({props:e,name:`MuiContainer`})});v();var aa=(e,t)=>L({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`},t&&!e.vars&&{colorScheme:e.palette.mode}),X=e=>L({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),oa=(e,t=!1)=>{var n;let r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,n])=>{r[e.getColorSchemeSelector(t).replace(/\s*&/,``)]={colorScheme:n.palette?.mode}});let i=L({html:aa(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:L({margin:0},X(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r),a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function sa(e){let{children:t,enableColorScheme:n=!1}=_({props:e,name:`MuiCssBaseline`});return(0,Y.jsxs)(K.Fragment,{children:[(0,Y.jsx)(it,{styles:e=>oa(e,n)}),t]})}v(),k();var ca=[`className`,`children`,`classes`,`IconComponent`,`input`,`inputProps`,`variant`],la=[`root`],ua=e=>{let{classes:t}=e;return ue({root:[`root`]},at,t)},da=(0,Y.jsx)(ot,{}),fa=K.forwardRef(function(e,t){let n=_({name:`MuiNativeSelect`,props:e}),{className:r,children:a,classes:o={},IconComponent:s=_t,input:c=da,inputProps:l}=n,u=Ce(n,ca),d=et(),f=nt({props:n,muiFormControl:d,states:[`variant`]}),p=ua(L({},n,{classes:o})),m=Ce(o,la);return(0,Y.jsx)(K.Fragment,{children:K.cloneElement(c,L({inputComponent:ct,inputProps:L({children:a,classes:m,IconComponent:s,variant:f.variant,type:void 0},l,c?c.props.inputProps:{}),ref:t},u,{className:i(p.root,c.props.className,r)}))})});fa.muiName=`Select`;function pa(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}v();var ma=2;function ha(e,t){return e-t}function ga(e,t){let{index:n}=e.reduce((e,n,r)=>{let i=Math.abs(t-n);return e===null||i<e.distance||i===e.distance?{distance:i,index:r}:e},null)??{};return n}function _a(e,t){if(t.current!==void 0&&e.changedTouches){let n=e;for(let e=0;e<n.changedTouches.length;e+=1){let r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function va(e,t,n){return(e-t)*100/(n-t)}function ya(e,t,n){return(n-t)*e+t}
2function ba(e){if(Math.abs(e)<1){let t=e.toExponential().split(`e-`),n=t[0].split(`.`)[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(`.`)[1];return t?t.length:0}function xa(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(ba(t)))}function Sa({values:e,newValue:t,index:n}){let r=e.slice();return r[n]=t,r.sort(ha)}function Ca({sliderRef:e,activeIndex:t,setActive:n}){var r,i;let a=Et(e.current);if(!((r=e.current)!=null&&r.contains(a.activeElement))||Number(a==null||(i=a.activeElement)==null?void 0:i.getAttribute(`data-index`))!==t){var o;(o=e.current)==null||o.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}function wa(e,t){return typeof e==`number`&&typeof t==`number`?e===t:typeof e==`object`&&typeof t==`object`&&pa(e,t)}var Ta={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ea=e=>e,Da;function Oa(){return Da===void 0&&(Da=typeof CSS<`u`&&typeof CSS.supports==`function`?CSS.supports(`touch-action`,`none`):!0),Da}function ka(e){let{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:c=0,name:l,onChange:u,onChangeCommitted:d,orientation:f=`horizontal`,rootRef:p,scale:m=Ea,step:h=1,shiftStep:g=10,tabIndex:_,value:v}=e,y=K.useRef(void 0),[b,x]=K.useState(-1),[S,C]=K.useState(-1),[w,ee]=K.useState(!1),T=K.useRef(0),[E,D]=zn({controlled:v,default:n??c,name:`Slider`}),O=u&&((e,t,n)=>{let r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:l}}),u(i,t,n)}),k=Array.isArray(E),M=k?E.slice().sort(ha):[E];M=M.map(e=>e==null?c:wi(e,c,s));let N=o===!0&&h!==null?[...Array(Math.floor((s-c)/h)+1)].map((e,t)=>({value:c+h*t})):o||[],ne=N.map(e=>e.value),{isFocusVisibleRef:P,onBlur:re,onFocus:ie,ref:ae}=A(),[oe,se]=K.useState(-1),le=K.useRef(null),ue=j(ae,le),de=j(p,ue),pe=e=>t=>{var n;let r=Number(t.currentTarget.getAttribute(`data-index`));ie(t),P.current===!0&&se(r),C(r),e==null||(n=e.onFocus)==null||n.call(e,t)},me=e=>t=>{var n;re(t),P.current===!1&&se(-1),C(-1),e==null||(n=e.onBlur)==null||n.call(e,t)},he=(e,t)=>{let n=Number(e.currentTarget.getAttribute(`data-index`)),r=M[n],a=ne.indexOf(r),o=t;if(N&&h==null){let e=ne[ne.length-1];o=o>e?e:o<ne[0]?ne[0]:o<r?ne[a-1]:ne[a+1]}if(o=wi(o,c,s),k){i&&(o=wi(o,M[n-1]||-1/0,M[n+1]||1/0));let e=o;o=Sa({values:M,newValue:o,index:n});let t=n;i||(t=o.indexOf(e)),Ca({sliderRef:le,activeIndex:t})}D(o),se(n),O&&!wa(o,E)&&O(e,o,n),d&&d(e,o)},F=e=>t=>{var n;if(h!==null){let e=Number(t.currentTarget.getAttribute(`data-index`)),n=M[e],r=null;(t.key===`ArrowLeft`||t.key===`ArrowDown`)&&t.shiftKey||t.key===`PageDown`?r=Math.max(n-g,c):((t.key===`ArrowRight`||t.key===`ArrowUp`)&&t.shiftKey||t.key===`PageUp`)&&(r=Math.min(n+g,s)),r!==null&&(he(t,r),t.preventDefault())}e==null||(n=e.onKeyDown)==null||n.call(e,t)};fe(()=>{if(r&&le.current.contains(document.activeElement)){var e;(e=document.activeElement)==null||e.blur()}},[r]),r&&b!==-1&&x(-1),r&&oe!==-1&&se(-1);let ge=e=>t=>{var n;(n=e.onChange)==null||n.call(e,t),he(t,t.target.valueAsNumber)},I=K.useRef(void 0),_e=f;a&&f===`horizontal`&&(_e+=`-reverse`);let ve=({finger:e,move:t=!1})=>{let{current:n}=le,{width:r,height:a,bottom:o,left:l}=n.getBoundingClientRect(),u;u=_e.indexOf(`vertical`)===0?(o-e.y)/a:(e.x-l)/r,_e.indexOf(`-reverse`)!==-1&&(u=1-u);let d;if(d=ya(u,c,s),h)d=xa(d,h,c);else{let e=ga(ne,d);d=ne[e]}d=wi(d,c,s);let f=0;if(k){f=t?I.current:ga(M,d),i&&(d=wi(d,M[f-1]||-1/0,M[f+1]||1/0));let e=d;d=Sa({values:M,newValue:d,index:f}),i&&t||(f=d.indexOf(e),I.current=f)}return{newValue:d,activeIndex:f}},ye=te(e=>{let t=_a(e,y);if(!t)return;if(T.current+=1,e.type===`mousemove`&&e.buttons===0){be(e);return}let{newValue:n,activeIndex:r}=ve({finger:t,move:!0});Ca({sliderRef:le,activeIndex:r,setActive:x}),D(n),!w&&T.current>ma&&ee(!0),O&&!wa(n,E)&&O(e,n,r)}),be=te(e=>{let t=_a(e,y);if(ee(!1),!t)return;let{newValue:n}=ve({finger:t,move:!0});x(-1),e.type===`touchend`&&C(-1),d&&d(e,n),y.current=void 0,Se()}),xe=te(e=>{if(r)return;Oa()||e.preventDefault();let t=e.changedTouches[0];t!=null&&(y.current=t.identifier);let n=_a(e,y);if(n!==!1){let{newValue:t,activeIndex:r}=ve({finger:n});Ca({sliderRef:le,activeIndex:r,setActive:x}),D(t),O&&!wa(t,E)&&O(e,t,r)}T.current=0;let i=Et(le.current);i.addEventListener(`touchmove`,ye,{passive:!0}),i.addEventListener(`touchend`,be,{passive:!0})}),Se=K.useCallback(()=>{let e=Et(le.current);e.removeEventListener(`mousemove`,ye),e.removeEventListener(`mouseup`,be),e.removeEventListener(`touchmove`,ye),e.removeEventListener(`touchend`,be)},[be,ye]);K.useEffect(()=>{let{current:e}=le;return e.addEventListener(`touchstart`,xe,{passive:Oa()}),()=>{e.removeEventListener(`touchstart`,xe),Se()}},[Se,xe]),K.useEffect(()=>{r&&Se()},[r,Se]);let Ce=e=>t=>{var n;if((n=e.onMouseDown)==null||n.call(e,t),r||t.defaultPrevented||t.button!==0)return;t.preventDefault();let i=_a(t,y);if(i!==!1){let{newValue:e,activeIndex:n}=ve({finger:i});Ca({sliderRef:le,activeIndex:n,setActive:x}),D(e),O&&!wa(e,E)&&O(t,e,n)}T.current=0;let a=Et(le.current);a.addEventListener(`mousemove`,ye,{passive:!0}),a.addEventListener(`mouseup`,be)},we=va(k?M[0]:c,c,s),Te=va(M[M.length-1],c,s)-we,Ee=(e={})=>{let t=ce(e),n={onMouseDown:Ce(t||{})},r=L({},t,n);return L({},e,{ref:de},r)},De=e=>t=>{var n;(n=e.onMouseOver)==null||n.call(e,t);let r=Number(t.currentTarget.getAttribute(`data-index`));C(r)},Oe=e=>t=>{var n;(n=e.onMouseLeave)==null||n.call(e,t),C(-1)};return{active:b,axis:_e,axisProps:Ta,dragging:w,focusedThumbIndex:oe,getHiddenInputProps:(n={})=>
2{let i=ce(n),o={onChange:ge(i||{}),onFocus:pe(i||{}),onBlur:me(i||{}),onKeyDown:F(i||{})},u=L({},i,o);return L({tabIndex:_,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(c),name:l,type:`range`,min:e.min,max:e.max,step:e.step===null&&e.marks?`any`:e.step??void 0,disabled:r},n,u,{style:L({},Ci,{direction:a?`rtl`:`ltr`,width:`100%`,height:`100%`})})},getRootProps:Ee,getThumbProps:(e={})=>{let t=ce(e),n={onMouseOver:De(t||{}),onMouseLeave:Oe(t||{})};return L({},e,t,n)},marks:N,open:S,range:k,rootRef:de,trackLeap:Te,trackOffset:we,values:M,getThumbStyle:e=>({pointerEvents:b!==-1&&b!==e?`none`:void 0})}}var Aa=e=>!e||!ie(e);function ja(e){return o(`MuiSlider`,e)}var Ma=D(`MuiSlider`,`root.active.colorPrimary.colorSecondary.colorError.colorInfo.colorSuccess.colorWarning.disabled.dragging.focusVisible.mark.markActive.marked.markLabel.markLabelActive.rail.sizeSmall.thumb.thumbColorPrimary.thumbColorSecondary.thumbColorError.thumbColorSuccess.thumbColorInfo.thumbColorWarning.track.trackInverted.trackFalse.thumbSizeSmall.valueLabel.valueLabelOpen.valueLabelCircle.valueLabelLabel.vertical`.split(`.`)),Na=e=>{let{open:t}=e;return{offset:i(t&&Ma.valueLabelOpen),circle:Ma.valueLabelCircle,label:Ma.valueLabelLabel}};function Pa(e){let{children:t,className:n,value:r}=e,a=Na(e);return t?K.cloneElement(t,{className:i(t.props.className)},(0,Y.jsxs)(K.Fragment,{children:[t.props.children,(0,Y.jsx)(`span`,{className:i(a.offset,n),"aria-hidden":!0,children:(0,Y.jsx)(`span`,{className:a.circle,children:(0,Y.jsx)(`span`,{className:a.label,children:r})})})]})):null}k(),v();var Fa=y(),Ia=`aria-label.aria-valuetext.aria-labelledby.component.components.componentsProps.color.classes.className.disableSwap.disabled.getAriaLabel.getAriaValueText.marks.max.min.name.onChange.onChangeCommitted.orientation.shiftStep.size.step.scale.slotProps.slots.tabIndex.track.value.valueLabelDisplay.valueLabelFormat`.split(`.`);function La(e){return e}var Ra=P(`span`,{name:`MuiSlider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${r(n.color)}`],n.size!==`medium`&&t[`size${r(n.size)}`],n.marked&&t.marked,n.orientation===`vertical`&&t.vertical,n.track===`inverted`&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>({borderRadius:12,boxSizing:`content-box`,display:`inline-block`,position:`relative`,cursor:`pointer`,touchAction:`none`,WebkitTapHighlightColor:`transparent`,"@media print":{colorAdjust:`exact`},[`&.${Ma.disabled}`]:{pointerEvents:`none`,cursor:`default`,color:(e.vars||e).palette.grey[400]},[`&.${Ma.dragging}`]:{[`& .${Ma.thumb}, & .${Ma.track}`]:{transition:`none`}},variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:`horizontal`},style:{height:4,width:`100%`,padding:`13px 0`,"@media (pointer: coarse)":{padding:`20px 0`}}},{props:{orientation:`horizontal`,size:`small`},style:{height:2}},{props:{orientation:`horizontal`,marked:!0},style:{marginBottom:20}},{props:{orientation:`vertical`},style:{height:`100%`,width:4,padding:`0 13px`,"@media (pointer: coarse)":{padding:`0 20px`}}},{props:{orientation:`vertical`,size:`small`},style:{width:2}},{props:{orientation:`vertical`,marked:!0},style:{marginRight:44}}]})),za=P(`span`,{name:`MuiSlider`,slot:`Rail`,overridesResolver:(e,t)=>t.rail})({display:`block`,position:`absolute`,borderRadius:`inherit`,backgroundColor:`currentColor`,opacity:.38,variants:[{props:{orientation:`horizontal`},style:{width:`100%`,height:`inherit`,top:`50%`,transform:`translateY(-50%)`}},{props:{orientation:`vertical`},style:{height:`100%`,width:`inherit`,left:`50%`,transform:`translateX(-50%)`}},{props:{track:`inverted`},style:{opacity:1}}]}),Ba=P(`span`,{name:`MuiSlider`,slot:`Track`,overridesResolver:(e,t)=>t.track})(({theme:e})=>({display:`block`,position:`absolute`,borderRadius:`inherit`,border:`1px solid currentColor`,backgroundColor:`currentColor`,transition:e.transitions.create([`left`,`width`,`bottom`,`height`],{duration:e.transitions.duration.shortest}),variants:[{props:{size:`small`},style:{border:`none`}},{props:{orientation:`horizontal`},style:{height:`inherit`,top:`50%`,transform:`translateY(-50%)`}},{props:{orientation:`vertical`},style:{width:`inherit`,left:`50%`,transform:`translateX(-50%)`}},{props:{track:!1},style:{display:`none`}},...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{color:t,track:`inverted`},style:L({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:L({backgroundColor:(0,Fa.lighten)(e.palette[t].main,.62),borderColor:(0,Fa.lighten)(e.palette[t].main,.62)},e.applyStyles(`dark`,{backgroundColor:(0,Fa.darken)(e.palette[t].main,.5)}),e.applyStyles(`dark`,{borderColor:(0,Fa.darken)(e.palette[t].main,.5)})))}))]}
vendor: 4,322 bytes, line 2
2)),Va=P(`span`,{name:`MuiSlider`,slot:`Thumb`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.thumb,t[`thumbColor${r(n.color)}`],n.size!==`medium`&&t[`thumbSize${r(n.size)}`]]}})(({theme:e})=>({position:`absolute`,width:20,height:20,boxSizing:`border-box`,borderRadius:`50%`,outline:0,backgroundColor:`currentColor`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:e.transitions.create([`box-shadow`,`left`,`bottom`],{duration:e.transitions.duration.shortest}),"&::before":{position:`absolute`,content:`""`,borderRadius:`inherit`,width:`100%`,height:`100%`,boxShadow:(e.vars||e).shadows[2]},"&::after":{position:`absolute`,content:`""`,borderRadius:`50%`,width:42,height:42,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`},[`&.${Ma.disabled}`]:{"&:hover":{boxShadow:`none`}},variants:[{props:{size:`small`},style:{width:12,height:12,"&::before":{boxShadow:`none`}}},{props:{orientation:`horizontal`},style:{top:`50%`,transform:`translate(-50%, -50%)`}},{props:{orientation:`vertical`},style:{left:`50%`,transform:`translate(-50%, 50%)`}},...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{color:t},style:{[`&:hover, &.${Ma.focusVisible}`]:L({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${(0,Fa.alpha)(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:`none`}}),[`&.${Ma.active}`]:L({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${(0,Fa.alpha)(e.palette[t].main,.16)}`})}}))]})),Ha=P(Pa,{name:`MuiSlider`,slot:`ValueLabel`,overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>L({zIndex:1,whiteSpace:`nowrap`},e.typography.body2,{fontWeight:500,transition:e.transitions.create([`transform`],{duration:e.transitions.duration.shortest}),position:`absolute`,backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:`0.25rem 0.75rem`,variants:[{props:{orientation:`horizontal`},style:{transform:`translateY(-100%) scale(0)`,top:`-10px`,transformOrigin:`bottom center`,"&::before":{position:`absolute`,content:`""`,width:8,height:8,transform:`translate(-50%, 50%) rotate(45deg)`,backgroundColor:`inherit`,bottom:0,left:`50%`},[`&.${Ma.valueLabelOpen}`]:{transform:`translateY(-100%) scale(1)`}}},{props:{orientation:`vertical`},style:{transform:`translateY(-50%) scale(0)`,right:`30px`,top:`50%`,transformOrigin:`right center`,"&::before":{position:`absolute`,content:`""`,width:8,height:8,transform:`translate(-50%, -50%) rotate(45deg)`,backgroundColor:`inherit`,right:-8,top:`50%`},[`&.${Ma.valueLabelOpen}`]:{transform:`translateY(-50%) scale(1)`}}},{props:{size:`small`},style:{fontSize:e.typography.pxToRem(12),padding:`0.25rem 0.5rem`}},{props:{orientation:`vertical`,size:`small`},style:{right:`20px`}}]})),Ua=P(`span`,{name:`MuiSlider`,slot:`Mark`,shouldForwardProp:e=>T(e)&&e!==`markActive`,overridesResolver:(e,t)=>{let{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:`absolute`,width:2,height:2,borderRadius:1,backgroundColor:`currentColor`,variants:[{props:{orientation:`horizontal`},style:{top:`50%`,transform:`translate(-1px, -50%)`}},{props:{orientation:`vertical`},style:{left:`50%`,transform:`translate(-50%, 1px)`}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),Wa=P(`span`,{name:`MuiSlider`,slot:`MarkLabel`,shouldForwardProp:e=>T(e)&&e!==`markLabelActive`,overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>L({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:`absolute`,whiteSpace:`nowrap`,variants:[{props:{orientation:`horizontal`},style:{top:30,transform:`translateX(-50%)`,"@media (pointer: coarse)":{top:40}}},{props:{orientation:`vertical`},style:{left:36,transform:`translateY(50%)`,"@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Ga=e=>{let{disabled:t,dragging:n,marked:i,orientation:a,track:o,classes:s,color:c,size:l}=e,u={root:[`root`,t&&`disabled`,n&&`dragging`,i&&`marked`,a===`vertical`&&`vertical`,o===`inverted`&&`trackInverted`,o===!1&&`trackFalse`,c&&`color${r(c)}`,l&&`size${r(l)}
2`],rail:[`rail`],track:[`track`],mark:[`mark`],markActive:[`markActive`],markLabel:[`markLabel`],markLabelActive:[`markLabelActive`],valueLabel:[`valueLabel`],thumb:[`thumb`,t&&`disabled`,l&&`thumbSize${r(l)}`,c&&`thumbColor${r(c)}`],active:[`active`],disabled:[`disabled`],focusVisible:[`focusVisible`]};return ue(u,ja,s)},Ka=({children:e})=>e,qa=K.forwardRef(function(e,t){let n=_({props:e,name:`MuiSlider`}),r=Ot(),{"aria-label":a,"aria-valuetext":o,"aria-labelledby":s,component:c=`span`,components:l={},componentsProps:u={},color:d=`primary`,classes:f,className:p,disableSwap:m=!1,disabled:h=!1,getAriaLabel:g,getAriaValueText:v,marks:y=!1,max:b=100,min:x=0,orientation:S=`horizontal`,shiftStep:C=10,size:w=`medium`,step:ee=1,scale:T=La,slotProps:E,slots:D,track:O=`normal`,valueLabelDisplay:k=`off`,valueLabelFormat:A=La}=n,j=Ce(n,Ia),M=L({},n,{isRtl:r,max:b,min:x,classes:f,disabled:h,disableSwap:m,orientation:S,marks:y,color:d,size:w,step:ee,shiftStep:C,scale:T,track:O,valueLabelDisplay:k,valueLabelFormat:A}),{axisProps:te,getRootProps:N,getHiddenInputProps:ne,getThumbProps:P,open:re,active:ae,axis:oe,focusedThumbIndex:se,range:ce,dragging:le,marks:ue,values:de,trackOffset:fe,trackLeap:pe,getThumbStyle:me}=ka(L({},M,{rootRef:t}));M.marked=ue.length>0&&ue.some(e=>e.label),M.dragging=le,M.focusedThumbIndex=se;let he=Ga(M),F=D?.root??l.Root??Ra,ge=D?.rail??l.Rail??za,I=D?.track??l.Track??Ba,_e=D?.thumb??l.Thumb??Va,ve=D?.valueLabel??l.ValueLabel??Ha,ye=D?.mark??l.Mark??Ua,be=D?.markLabel??l.MarkLabel??Wa,xe=D?.input??l.Input??`input`,Se=E?.root??u.root,we=E?.rail??u.rail,Te=E?.track??u.track,Ee=E?.thumb??u.thumb,De=E?.valueLabel??u.valueLabel,Oe=E?.mark??u.mark,ke=E?.markLabel??u.markLabel,Ae=E?.input??u.input,je=kt({elementType:F,getSlotProps:N,externalSlotProps:Se,externalForwardedProps:j,additionalProps:L({},Aa(F)&&{as:c}),ownerState:L({},M,Se?.ownerState),className:[he.root,p]}),Me=kt({elementType:ge,externalSlotProps:we,ownerState:M,className:he.rail}),Ne=kt({elementType:I,externalSlotProps:Te,additionalProps:{style:L({},te[oe].offset(fe),te[oe].leap(pe))},ownerState:L({},M,Te?.ownerState),className:he.track}),Pe=kt({elementType:_e,getSlotProps:P,externalSlotProps:Ee,ownerState:L({},M,Ee?.ownerState),className:he.thumb}),Fe=kt({elementType:ve,externalSlotProps:De,ownerState:L({},M,De?.ownerState),className:he.valueLabel}),R=kt({elementType:ye,externalSlotProps:Oe,ownerState:M,className:he.mark}),Ie=kt({elementType:be,externalSlotProps:ke,ownerState:M,className:he.markLabel}),Le=kt({elementType:xe,getSlotProps:ne,externalSlotProps:Ae,ownerState:M});return(0,Y.jsxs)(F,L({},je,{children:[(0,Y.jsx)(ge,L({},Me)),(0,Y.jsx)(I,L({},Ne)),ue.filter(e=>e.value>=x&&e.value<=b).map((e,t)=>{let n=va(e.value,x,b),r=te[oe].offset(n),a;return a=O===!1?de.indexOf(e.value)!==-1:O===`normal`&&(ce?e.value>=de[0]&&e.value<=de[de.length-1]:e.value<=de[0])||O===`inverted`&&(ce?e.value<=de[0]||e.value>=de[de.length-1]:e.value>=de[0]),(0,Y.jsxs)(K.Fragment,{children:[(0,Y.jsx)(ye,L({"data-index":t},R,!ie(ye)&&{markActive:a},{style:L({},r,R.style),className:i(R.className,a&&he.markActive)})),e.label==null?null:(0,Y.jsx)(be,L({"aria-hidden":!0,"data-index":t},Ie,!ie(be)&&{markLabelActive:a},{style:L({},r,Ie.style),className:i(he.markLabel,Ie.className,a&&he.markLabelActive),children:e.label}))]},t)}),de.map((e,t)=>{let n=va(e,x,b),r=te[oe].offset(n),c=k===`off`?Ka:ve;return(0,Y.jsx)(c,L({},!ie(c)&&{valueLabelFormat:A,valueLabelDisplay:k,value:typeof A==`function`?A(T(e),t):A,index:t,open:re===t||ae===t||k===`on`,disabled:h},Fe,{children:(0,Y.jsx)(_e,L({"data-index":t},Pe,{className:i(he.thumb,Pe.className,ae===t&&he.active,se===t&&he.focusVisible),style:L({},r,me(t),Pe.style),children:(0,Y.jsx)(xe,L({"data-index":t,"aria-label":g?g(t):a,"aria-valuenow":T(e),"aria-labelledby":s,"aria-valuetext":v?v(T(e),t):o,value:de[t]},Le))}))}),t)})]}))});function Ja(e){return o(`MuiTooltip`,e)}var Ya=D(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);k(),v();
vendor: 22,105 bytes, line 2
2var Xa=`arrow.children.classes.components.componentsProps.describeChild.disableFocusListener.disableHoverListener.disableInteractive.disableTouchListener.enterDelay.enterNextDelay.enterTouchDelay.followCursor.id.leaveDelay.leaveTouchDelay.onClose.onOpen.open.placement.PopperComponent.PopperProps.slotProps.slots.title.TransitionComponent.TransitionProps`.split(`.`);function Za(e){return Math.round(e*1e5)/1e5}var Qa=e=>{let{classes:t,disableInteractive:n,arrow:i,touch:a,placement:o}=e,s={popper:[`popper`,!n&&`popperInteractive`,i&&`popperArrow`],tooltip:[`tooltip`,i&&`tooltipArrow`,a&&`touch`,`tooltipPlacement${r(o.split(`-`)[0])}`],arrow:[`arrow`]};return ue(s,Ja,t)},$a=P(Bn,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>L({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`},!t.disableInteractive&&{pointerEvents:`auto`},!n&&{pointerEvents:`none`},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ya.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${Ya.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${Ya.arrow}`]:L({},t.isRtl?{right:0,marginRight:`-0.71em`}:{left:0,marginLeft:`-0.71em`},{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}}),[`&[data-popper-placement*="left"] .${Ya.arrow}`]:L({},t.isRtl?{left:0,marginLeft:`-0.71em`}:{right:0,marginRight:`-0.71em`},{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}})})),eo=P(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${r(n.placement.split(`-`)[0])}`]]}})(({theme:e,ownerState:t})=>L({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Fa.alpha)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:`relative`,margin:0},t.touch&&{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${Za(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ya.popper}[data-popper-placement*="left"] &`]:L({transformOrigin:`right center`},t.isRtl?L({marginLeft:`14px`},t.touch&&{marginLeft:`24px`}):L({marginRight:`14px`},t.touch&&{marginRight:`24px`})),[`.${Ya.popper}[data-popper-placement*="right"] &`]:L({transformOrigin:`left center`},t.isRtl?L({marginRight:`14px`},t.touch&&{marginRight:`24px`}):L({marginLeft:`14px`},t.touch&&{marginLeft:`24px`})),[`.${Ya.popper}[data-popper-placement*="top"] &`]:L({transformOrigin:`center bottom`,marginBottom:`14px`},t.touch&&{marginBottom:`24px`}),[`.${Ya.popper}[data-popper-placement*="bottom"] &`]:L({transformOrigin:`center top`,marginTop:`14px`},t.touch&&{marginTop:`24px`})})),to=P(`span`,{name:`MuiTooltip`,slot:`Arrow`,overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:(0,Fa.alpha)(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}})),no=!1,ro=new ae,io={x:0,y:0};function ao(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var oo=K.forwardRef(function(e,t){let n=_({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:a,components:o={},componentsProps:s={},describeChild:c=!1,disableFocusListener:l=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:p=!1,enterDelay:m=100,enterNextDelay:h=0,enterTouchDelay:g=700,followCursor:v=!1,id:y,leaveDelay:b=0,leaveTouchDelay:x=1500,onClose:S,onOpen:C,open:w,placement:T=`bottom`,PopperComponent:E,PopperProps:D={},slotProps:O={},slots:k={},title:A,TransitionComponent:j=st,TransitionProps:M}=n,te=Ce(n,Xa),N=K.isValidElement(a)?a:(0,Y.jsx)(`span`,{children:a}),ne=Ee(),P=Ot(),[re,ie]=K.useState(),[ae,oe]=K.useState(null),se=K.useRef(!1),ce=d||v,le=ve(),ue=ve(),de=ve(),fe=ve(),[me,he]=Rn({controlled:w,default:!1,name:`Tooltip`,state:`open`}),F=me,I=Ti(y),_e=K.useRef(),ye=ee(()=>{_e.current!==void 0&&(document.body.style.WebkitUserSelect=_e.current,_e.current=void 0),fe.clear()});K.useEffect(()=>ye,[ye]);let be=e=>{ro.clear(),no=!0,he(!0),C&&!F&&C(e)},xe=ee(e=>{ro.start(800+b,()=>{no=!1}),he(!1),S&&F&&S(e),le.start(ne.transitions.duration.shortest,()=>{se.current=!1})}),Se=e=>{se.current&&e.type!==`touchstart`||(re&&re.removeAttribute(`title`),ue.clear(),de.clear(),m||no&&h?ue.start(no?h:m,()=>{be(e)}):be(e))},we=e=>{ue.clear(),de.start(b,()=>{xe(e)})},{isFocusVisibleRef:Te,onBlur:De,onFocus:Oe,ref:ke}=pe(),[,Ae]=K.useState(!1),je=e=>{De(e),Te.current===!1&&(Ae(!1),we(e))},Me=e=>{re||ie(e.currentTarget),Oe(e),Te.current===!0&&(Ae(!0),Se(e))},Ne=e=>{se.current=!0;let t=N.props;t.onTouchStart&&t.onTouchStart(e)},Pe=e=>{Ne(e),de.clear(),le.clear(),ye(),_e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,fe.start(g,()=>{document.body.style.WebkitUserSelect=_e.current,Se(e)})},Fe=e=>{N.props.onTouchEnd&&N.props.onTouchEnd(e),ye(),de.start(x,()=>{xe(e)})};K.useEffect(()=>{if(!F)return;function e(e){(e.key===`Escape`||e.key===`Esc`)&&xe(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[xe,F]);let R=f(Dt(N),ke,ie,t);!A&&A!==0&&(F=!1);let Ie=K.useRef(),Le=e=>{let t=N.props;t.onMouseMove&&t.onMouseMove(e),io={x:e.clientX,y:e.clientY},Ie.current&&Ie.current.update()},Re={},ze=typeof A==`string`;c?(Re.title=!F&&ze&&!u?A:null,Re[`aria-describedby`]=F?I:null):(Re[`aria-label`]=ze?A:null,Re[`aria-labelledby`]=F&&!ze?I:null);let z=L({},Re,te,N.props,{className:i(te.className,N.props.className),onTouchStart:Ne,ref:R},v?{onMouseMove:Le}:{}),Be={};p||(z.onTouchStart=Pe,z.onTouchEnd=Fe),u||(z.onMouseOver=ao(Se,z.onMouseOver),z.onMouseLeave=ao(we,z.onMouseLeave),ce||(Be.onMouseOver=Se,Be.onMouseLeave=we)),l||(z.onFocus=ao(Me,z.onFocus),z.onBlur=ao(je,z.onBlur),ce||(Be.onFocus=Me,Be.onBlur=je));let Ve=K.useMemo(()=>{var e;let t=[{name:`arrow`,enabled:!!ae,options:{element:ae,padding:4}}];return(e=D.popperOptions)!=null&&e.modifiers&&(t=t.concat(D.popperOptions.modifiers)),L({},D.popperOptions,{modifiers:t})},[ae,D]),He=L({},n,{isRtl:P,arrow:r,disableInteractive:ce,placement:T,PopperComponentProp:E,touch:se.current}),Ue=Qa(He),We=k.popper??o.Popper??$a,Ge=k.transition??o.Transition??j??st,Ke=k.tooltip??o.Tooltip??eo,qe=k.arrow??o.Arrow??to,Je=ge(We,L({},D,O.popper??s.popper,{className:i(Ue.popper,D?.className,(O.popper??s.popper)?.className)}),He),Ye=ge(Ge,L({},M,O.transition??s.transition),He),Xe=ge(Ke,L({},O.tooltip??s.tooltip,{className:i(Ue.tooltip,(O.tooltip??s.tooltip)?.className)}),He),Ze=ge(qe,L({},O.arrow??s.arrow,{className:i(Ue.arrow,(O.arrow??s.arrow)?.className)}),He);return(0,Y.jsxs)(K.Fragment,{children:[K.cloneElement(N,z),(0,Y.jsx)(We,L({as:E??Bn,placement:T,anchorEl:v?{getBoundingClientRect:()=>({top:io.y,left:io.x,right:io.x,bottom:io.y,width:0,height:0})}:re,popperRef:Ie,open:re?F:!1,id:I,transition:!0},Be,Je,{popperOptions:Ve,children:({TransitionProps:e})=>(0,Y.jsx)(Ge,L({timeout:ne.transitions.duration.shorter},e,Ye,{children:(0,Y.jsxs)(Ke,L({},Xe,{children:[A,r?(0,Y.jsx)(qe,L({},Ze,{ref:oe})):null]}))}))}))]})});function so(e){return o(`MuiTab`,e)}var co=D(`MuiTab`,[`root`,`labelIcon`,`textColorInherit`,`textColorPrimary`,`textColorSecondary`,`selected`,`disabled`,`fullWidth`,`wrapped`,`iconWrapper`]);k(),v();var lo=[`className`,`disabled`,`disableFocusRipple`,`fullWidth`,`icon`,`iconPosition`,`indicator`,`label`,`onChange`,`onClick`,`onFocus`,`selected`,`selectionFollowsFocus`,`textColor`,`value`,`wrapped`],uo=e=>{let{classes:t,textColor:n,fullWidth:i,wrapped:a,icon:o,label:s,selected:c,disabled:l}=e,u={root:[`root`,o&&s&&`labelIcon`,`textColor${r(n)}`,i&&`fullWidth`,a&&`wrapped`,c&&`selected`,l&&`disabled`],iconWrapper:[`iconWrapper`]};return ue(u,so,t)},fo=P(C,{name:`MuiTab`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${r(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${co.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>L({},e.typography.button,{maxWidth:360,minWidth:90,position:`relative`,minHeight:48,flexShrink:0,padding:`12px 16px`,overflow:`hidden`,whiteSpace:`normal`,textAlign:`center`},t.label&&{flexDirection:t.iconPosition===`top`||t.iconPosition===`bottom`?`column`:`row`},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${co.iconWrapper}`]:L({},t.iconPosition===`top`&&{marginBottom:6},t.iconPosition===`bottom`&&{marginTop:6},t.iconPosition===`start`&&{marginRight:e.spacing(1)},t.iconPosition===`end`&&{marginLeft:e.spacing(1)})},t.textColor===`inherit`&&{color:`inherit`,opacity:.6,[`&.${co.selected}`]:{opacity:1},[`&.${co.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor===`primary`&&{color:(e.vars||e).palette.text.secondary,[`&.${co.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${co.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor===`secondary`&&{color:(e.vars||e).palette.text.secondary,[`&.${co.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${co.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:`none`},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),po=K.forwardRef(function(e,t){let n=_({props:e,name:`MuiTab`}),{className:r,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:c,iconPosition:l=`top`,indicator:u,label:d,onChange:f,onClick:p,onFocus:m,selected:h,selectionFollowsFocus:g,textColor:v=`inherit`,value:y,wrapped:b=!1}=n,x=Ce(n,lo),S=L({},n,{disabled:a,disableFocusRipple:o,selected:h,icon:!!c,iconPosition:l,label:!!d,fullWidth:s,textColor:v,wrapped:b}),C=uo(S),w=c&&d&&K.isValidElement(c)?K.cloneElement(c,{className:i(C.iconWrapper,c.props.className)}):c;return(0,Y.jsxs)(fo,L({focusRipple:!o,className:i(C.root,r),ref:t,role:`tab`,"aria-selected":h,disabled:a,onClick:e=>{!h&&f&&f(e,y),p&&p(e)},onFocus:e=>{g&&!h&&f&&f(e,y),m&&m(e)},ownerState:S,tabIndex:h?0:-1},x,{children:[l===`top`||l===`start`?(0,Y.jsxs)(K.Fragment,{children:[w,d]}):(0,Y.jsxs)(K.Fragment,{children:[d,w]}),u]}))});function mo(e){return o(`MuiToolbar`,e)}D(`MuiToolbar`,[`root`,`gutters`,`regular`,`dense`]),k(),v();var ho=[`className`,`component`,`disableGutters`,`variant`],go=e=>{let{classes:t,disableGutters:n,variant:r}=e;return ue({root:[`root`,!n&&`gutters`,r]},mo,t)},_o=P(`div`,{name:`MuiToolbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>L({position:`relative`,display:`flex`,alignItems:`center`},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant===`dense`&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant===`regular`&&e.mixins.toolbar),vo=K.forwardRef(function(e,t){let n=_({props:e,name:`MuiToolbar`}),{className:r,component:a=`div`,disableGutters:o=!1,variant:s=`regular`}=n,c=Ce(n,ho),l=L({},n,{component:a,disableGutters:o,variant:s}),u=go(l);return(0,Y.jsx)(_o,L({as:a,className:i(u.root,r),ref:t,ownerState:l},c))}),yo=w((0,Y.jsx)(`path`,{d:`M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z`}),`KeyboardArrowLeft`),bo=w((0,Y.jsx)(`path`,{d:`M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z`}),`KeyboardArrowRight`);function xo(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function So(e,t,n,r={},i=()=>{}){let{ease:a=xo,duration:o=300}=r,s=null,c=t[e],l=!1,u=()=>{l=!0},d=r=>{if(l){i(Error(`Animation cancelled`));return}s===null&&(s=r);let u=Math.min(1,(r-s)/o);if(t[e]=a(u)*(n-c)+c,u>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return c===n?(i(Error(`Element already at target position`)),u):(requestAnimationFrame(d),u)}v(),k();var Co=[`onChange`],wo={width:99,height:99,position:`absolute`,top:-9999,overflow:`scroll`};function To(e){let{onChange:t}=e,n=Ce(e,Co),r=K.useRef(),i=K.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return In(()=>{let e=B(()=>{let e=r.current;a(),e!==r.current&&t(r.current)}),n=Qe(i.current);return n.addEventListener(`resize`,e),()=>{e.clear(),n.removeEventListener(`resize`,e)}},[t]),K.useEffect(()=>{a(),t(r.current)},[t]),(0,Y.jsx)(`div`,L({style:wo},n,{ref:i}))}function Eo(e){return o(`MuiTabScrollButton`,e)}var Do=D(`MuiTabScrollButton`,[`root`,`vertical`,`horizontal`,`disabled`]);k(),v();var Oo=[`className`,`slots`,`slotProps`,`direction`,`orientation`,`disabled`],Z=e=>{let{classes:t,orientation:n,disabled:r}=e;return ue({root:[`root`,n,r&&`disabled`]},Eo,t)},ko=P(C,{name:`MuiTabScrollButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>L({width:40,flexShrink:0,opacity:.8,[`&.${Do.disabled}`]:{opacity:0}},e.orientation===`vertical`&&{width:`100%`,height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Ao=K.forwardRef(function(e,t){let n=_({props:e,name:`MuiTabScrollButton`}),{className:r,slots:a={},slotProps:o={},direction:s}=n,c=Ce(n,Oo),l=Ot(),u=L({isRtl:l},n),d=Z(u),f=a.StartScrollButtonIcon??yo,p=a.EndScrollButtonIcon??bo,m=kt({elementType:f,externalSlotProps:o.startScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:u}),h=kt({elementType:p,externalSlotProps:o.endScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:u});return(0,Y.jsx)(ko,L({component:`div`,className:i(d.root,r),ref:t,role:null,ownerState:u,tabIndex:null},c,{children:s===`left`?(0,Y.jsx)(f,L({},m)):(0,Y.jsx)(p,L({},h))}))});function jo(e){return o(`MuiTabs`,e)}var Mo=D(`MuiTabs`,[`root`,`vertical`,`flexContainer`,`flexContainerVertical`,`centered`,`scroller`,`fixed`,`scrollableX`,`scrollableY`,`hideScrollbar`,`scrollButtons`,`scrollButtonsHideMobile`,`indicator`]);k(),v();var No=[`aria-label`,`aria-labelledby`,`action`,`centered`,`children`,`className`,`component`,`allowScrollButtonsMobile`,`indicatorColor`,`onChange`,`orientation`,`ScrollButtonComponent`,`scrollButtons`,`selectionFollowsFocus`,`slots`,`slotProps`,`TabIndicatorProps`,`TabScrollButtonProps`,`textColor`,`value`,`variant`,`visibleScrollbar`],Po=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Fo=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Io=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}let t=i.disabled||i.getAttribute(`aria-disabled`)===`true`;if(!i.hasAttribute(`tabindex`)||t)i=n(e,i);else{i.focus();return}}},Lo=e=>{let{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:c}=e;return ue({root:[`root`,t&&`vertical`],scroller:[`scroller`,n&&`fixed`,r&&`hideScrollbar`,i&&`scrollableX`,a&&`scrollableY`],flexContainer:[`flexContainer`,t&&`flexContainerVertical`,o&&`centered`],indicator:[`indicator`],scrollButtons:[`scrollButtons`,s&&`scrollButtonsHideMobile`],scrollableX:[i&&`scrollableX`],hideScrollbar:[r&&`hideScrollbar`]},jo,c)},Ro=P(`div`,{name:`MuiTabs`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Mo.scrollButtons}`]:t.scrollButtons},{[`& .${Mo.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>L({overflow:`hidden`,minHeight:48,WebkitOverflowScrolling:`touch`,display:`flex`},e.vertical&&{flexDirection:`column`},e.scrollButtonsHideMobile&&{[`& .${Mo.scrollButtons}`]:{[t.breakpoints.down(`sm`)]:{display:`none`}}})),zo=P(`div`,{name:`MuiTabs`,slot:`Scroller`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>L({position:`relative`,display:`inline-block`,flex:`1 1 auto`,whiteSpace:`nowrap`},e.fixed&&{overflowX:`hidden`,width:`100%`},e.hideScrollbar&&{scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}},e.scrollableX&&{overflowX:`auto`,overflowY:`hidden`},e.scrollableY&&{overflowY:`auto`,overflowX:`hidden`})),Bo=P(`div`,{name:`MuiTabs`,slot:`FlexContainer`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>L({display:`flex`},e.vertical&&{flexDirection:`column`},e.centered&&{justifyContent:`center`})),Vo=P(`span`,{name:`MuiTabs`,slot:`Indicator`,overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>L({position:`absolute`,height:2,bottom:0,width:`100%`,transition:t.transitions.create()},e.indicatorColor===`primary`&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor===`secondary`&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:`100%`,width:2,right:0})),Ho=P(To)({overflowX:`auto`,overflowY:`hidden`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}),Uo={},Wo=K.forwardRef(function(e,t){let n=_({props:e,name:`MuiTabs`}),r=Ee(),a=Ot(),{"aria-label":o,"aria-labelledby":s,action:c,centered:l=!1,children:u,className:d,component:f=`div`,allowScrollButtonsMobile:p=!1,indicatorColor:m=`primary`,onChange:h,orientation:g=`horizontal`,ScrollButtonComponent:v=Ao,scrollButtons:y=`auto`,selectionFollowsFocus:b,slots:x={},slotProps:S={},TabIndicatorProps:C={},TabScrollButtonProps:w={},textColor:T=`primary`,value:E,variant:D=`standard`,visibleScrollbar:O=!1}=n,k=Ce(n,No),A=D===`scrollable`,j=g===`vertical`,M=j?`scrollTop`:`scrollLeft`,te=j?`top`:`left`,N=j?`bottom`:`right`,ne=j?`clientHeight`:`clientWidth`,P=j?`height`:`width`,re=L({},n,{component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:g,vertical:j,scrollButtons:y,textColor:T,variant:D,visibleScrollbar:O,fixed:!A,hideScrollbar:A&&!O,scrollableX:A&&!j,scrollableY:A&&j,centered:l&&!A,scrollButtonsHideMobile:!p}),ie=Lo(re),ae=kt({elementType:x.StartScrollButtonIcon,externalSlotProps:S.startScrollButtonIcon,ownerState:re}),oe=kt({elementType:x.EndScrollButtonIcon,externalSlotProps:S.endScrollButtonIcon,ownerState:re}),[se,ce]=K.useState(!1),[le,ue]=K.useState(Uo),[de,fe]=K.useState(!1),[pe,me]=K.useState(!1),[he,F]=K.useState(!1),[ge,I]=K.useState({overflow:`hidden`,scrollbarWidth:0}),_e=new Map,ve=K.useRef(null),ye=K.useRef(null),be=()=>{let e=ve.current,t;if(e){let n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Si(e,a?`rtl`:`ltr`),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}let n;if(e&&E!==!1){let e=ye.current.children;if(e.length>0){let t=e[_e.get(E)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},xe=ee(()=>{let{tabsMeta:e,tabMeta:t}=be(),n=0,r;if(j)r=`top`,t&&e&&(n=t.top-e.top+e.scrollTop);else if(r=a?`right`:`left`,t&&e){let i=a?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;n=(a?-1:1)*(t[r]-e[r]+i)}let i={[r]:n,[P]:t?t[P]:0};if(isNaN(le[r])||isNaN(le[P]))ue(i);else{let e=Math.abs(le[r]-i[r]),t=Math.abs(le[P]-i[P]);(e>=1||t>=1)&&ue(i)}}),Se=(e,{animation:t=!0}={})=>{t?So(M,ve.current,e,{duration:r.transitions.duration.standard}):ve.current[M]=e},we=e=>{let t=ve.current[M];j?t+=e:(t+=e*(a?-1:1),t*=a&&xi()===`reverse`?-1:1),Se(t)},Te=()=>{let e=ve.current[ne],t=0,n=Array.from(ye.current.children);for(let r=0;r<n.length;r+=1){let i=n[r];if(t+i[ne]>e){r===0&&(t=e);break}t+=i[ne]}return t},De=()=>{we(-1*Te())},Oe=()=>{we(Te())},ke=K.useCallback(e=>{I({overflow:null,scrollbarWidth:e})},[]),Ae=()=>{let e={};e.scrollbarSizeListener=A?(0,Y.jsx)(Ho,{onChange:ke,className:i(ie.scrollableX,ie.hideScrollbar)}):null;let t=A&&(y===`auto`&&(de||pe)||y===!0);return e.scrollButtonStart=t?(0,Y.jsx)(v,L({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ae},orientation:g,direction:a?`right`:`left`,onClick:De,disabled:!de},w,{className:i(ie.scrollButtons,w.className)})):null,e.scrollButtonEnd=t?(0,Y.jsx)(v,L({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:oe},orientation:g,direction:a?`left`:`right`,onClick:Oe,disabled:!pe},w,{className:i(ie.scrollButtons,w.className)})):null,e},je=ee(e=>{let{tabsMeta:t,tabMeta:n}=be();if(!(!n||!t)){if(n[te]<t[te]){let r=t[M]+(n[te]-t[te]);Se(r,{animation:e})}else if(n[N]>t[N]){let r=t[M]+(n[N]-t[N]);Se(r,{animation:e})}}}),Me=ee(()=>{A&&y!==!1&&F(!he)});K.useEffect(()=>{let e=B(()=>{ve.current&&xe()}),t,n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{var n;(n=t)==null||n.unobserve(e)}),e.addedNodes.forEach(e=>{var n;(n=t)==null||n.observe(e)})}),e(),Me()},r=Qe(ve.current);r.addEventListener(`resize`,e);let i;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(e),Array.from(ye.current.children).forEach(e=>{t.observe(e)})),typeof MutationObserver<`u`&&(i=new MutationObserver(n),i.observe(ye.current,{childList:!0})),()=>{var n,a;e.clear(),r.removeEventListener(`resize`,e),(n=i)==null||n.disconnect(),(a=t)==null||a.disconnect()}},[xe,Me]),K.useEffect(()=>{let e=Array.from(ye.current.children),t=e.length;if(typeof IntersectionObserver<`u`&&t>0&&A&&y!==!1){let n=e[0],r=e[t-1],i={root:ve.current,threshold:.99},a=new IntersectionObserver(e=>{fe(!e[0].isIntersecting)},i);a.observe(n);let o=new IntersectionObserver(e=>{me(!e[0].isIntersecting)},i);return o.observe(r),()=>{a.disconnect(),o.disconnect()}}},[A,y,he,u?.length]),K.useEffect(()=>{ce(!0)},[]),K.useEffect(()=>{xe()}),K.useEffect(()=>{je(Uo!==le)},[je,le]),K.useImperativeHandle(c,()=>({updateIndicator:xe,updateScrollButtons:Me}),[xe,Me]);let Ne=(0,Y.jsx)(Vo,L({},C,{className:i(ie.indicator,C.className),ownerState:re,style:L({},le,C.style)}
2)),Pe=0,Fe=K.Children.map(u,e=>{if(!K.isValidElement(e))return null;let t=e.props.value===void 0?Pe:e.props.value;_e.set(t,Pe);let n=t===E;return Pe+=1,K.cloneElement(e,L({fullWidth:D===`fullWidth`,indicator:n&&!se&&Ne,selected:n,selectionFollowsFocus:b,onChange:h,textColor:T,value:t},Pe===1&&E===!1&&!e.props.tabIndex?{tabIndex:0}:{}))}),R=e=>{let t=ye.current,n=lt(t).activeElement;if(n.getAttribute(`role`)!==`tab`)return;let r=g===`horizontal`?`ArrowLeft`:`ArrowUp`,i=g===`horizontal`?`ArrowRight`:`ArrowDown`;switch(g===`horizontal`&&a&&(r=`ArrowRight`,i=`ArrowLeft`),e.key){case r:e.preventDefault(),Io(t,n,Fo);break;case i:e.preventDefault(),Io(t,n,Po);break;case`Home`:e.preventDefault(),Io(t,null,Po);break;case`End`:e.preventDefault(),Io(t,null,Fo)}},Ie=Ae();return(0,Y.jsxs)(Ro,L({className:i(ie.root,d),ownerState:re,ref:t,as:f},k,{children:[Ie.scrollButtonStart,Ie.scrollbarSizeListener,(0,Y.jsxs)(zo,{className:ie.scroller,ownerState:re,style:{overflow:ge.overflow,[j?`margin${a?`Left`:`Right`}`:`marginBottom`]:O?void 0:-ge.scrollbarWidth},ref:ve,children:[(0,Y.jsx)(Bo,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g===`vertical`?`vertical`:null,className:ie.flexContainer,ownerState:re,onKeyDown:R,ref:ye,role:`tablist`,children:Fe}),se&&Ne]}),Ie.scrollButtonEnd]}))}),Go=class extends ye{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:O(t,n.data),hasPreviousPage:xe(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}};function Ko(e){return e}function qo(e,t){return le(e,Go,t)}var Jo=function(){return null},Yo=(0,K.createContext)({shortcuts:[],register:()=>{},unregister:()=>{}}),Xo=()=>(0,K.useContext)(Yo),Zo=({children:e})=>{let t=(0,K.useRef)(new Map),[n,r]=(0,K.useState)([]),i=()=>r(Array.from(t.current.values()).map(({key:e,label:t,order:n})=>({key:e,label:t,order:n})).sort((e,t)=>e.order-t.order)),a=(0,K.useCallback)(e=>{t.current.set(e.key,e),i()},[]),o=(0,K.useCallback)(e=>{t.current.delete(e),i()},[]);return(0,K.useEffect)(()=>{let e=new Map,n=new Set,r=()=>{e.clear(),n.clear()},i=e=>{let t=e;return t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`SELECT`||t.isContentEditable||!!t.closest?.(`[role="listbox"], [role="menu"], [role="dialog"]`)},a=r=>{r.repeat||r.key===`Shift`||(e.size>0?(e.forEach((e,t)=>n.add(t)),n.add(r.code)):!i(r.target)&&t.current.has(r.key)&&r.preventDefault(),e.set(r.code,r.key))},o=a=>{if(a.key===`Shift`)return;if(a.key===`Meta`)return r();let o=n.has(a.code),s=e.get(a.code)??a.key;if(e.delete(a.code),n.delete(a.code),o||i(a.target))return;let c=t.current.get(s);c&&c.callback()};return document.addEventListener(`keydown`,a),document.addEventListener(`keyup`,o),window.addEventListener(`blur`,r),()=>{document.removeEventListener(`keydown`,a),document.removeEventListener(`keyup`,o),window.removeEventListener(`blur`,r)}},[]),(0,Y.jsx)(Yo.Provider,{value:(0,K.useMemo)(()=>({shortcuts:n,register:a,unregister:o}),[n,a,o]),children:e})};function Qo(e){return{query:e.get(`q`)??``,category:e.get(`category`)??``,sortBy:e.get(`sortBy`)??`relevance`,sortOrder:e.get(`sortOrder`)??`desc`}}function $o({query:e,category:t,sortBy:n,sortOrder:r}){let i={};return e&&(i.q=e),t&&(i.category=t),n!==`relevance`&&(i.sortBy=n),r!==`desc`&&(i.sortOrder=r),i}var es=(0,K.createContext)(()=>{});function ts(){let[e]=je(),t=(0,K.useMemo)(()=>Qo(e),[e]);return{search:(0,K.useContext)(es),filter:t}}var ns=300;function rs(e,t=ns){let n=(0,K.useRef)(e);n.current=e;let r=(0,K.useMemo)(()=>{let e,r=((...r)=>{clearTimeout(e),e=setTimeout(()=>{e=void 0,n.current(...r)},t)});return r.cancel=()=>{clearTimeout(e),e=void 0},r},[t]);return(0,K.useEffect)(()=>r.cancel,[r]),r}var is;(function(e){e.MAIN=G([]),e.SEARCH=G([`search`])})(is||(is={}));function as(){let[e,t]=(0,K.useState)({signal:0}),n=(0,K.useCallback)(e=>t(t=>({signal:t.signal+1,payload:e})),[]);return(0,K.useMemo)(()=>({signal:e.signal,payload:e.payload,emit:n}),[e,n])}var os=(0,K.createContext)({searchFocusSignal:{signal:0,emit:()=>{}},resultsNavigationSignal:{signal:0,emit:()=>{}},searchFocused:!1,setSearchFocused:()=>{}});function ss(){return(0,K.useContext)(os)}var cs=({children:e})=>{let t=as(),n=as(),[r,i]=(0,K.useState)(!1),a=(0,K.useMemo)(()=>({searchFocusSignal:t,resultsNavigationSignal:n,searchFocused:r,setSearchFocused:i}),[t,n,r]);return(0,Y.jsx)(os.Provider,{value:a,children:e})},ls=(0,K.createContext)({hasPageSearchBar:!1,isPageSearchBarActive:()=>!1,registerPageSearchBar:()=>()=>{}});function us(){return(0,K.useContext)(ls)}function ds(e){let{registerPageSearchBar:t}=us(),[n,r]=(0,K.useState)(!0);return(0,K.useLayoutEffect)(()=>{let n=e?.current;if(!n)return t();let i,a=e=>{e&&!i?i=t():!e&&i&&(i(),i=void 0),r(e)},o=n.getBoundingClientRect();a(o.bottom>0&&o.top<window.innerHeight&&o.right>0&&o.left<window.innerWidth);let s=new IntersectionObserver(e=>a(e[e.length-1].isIntersecting));return s.observe(n),()=>{s.disconnect(),i?.()}},[t,e]),n}var fs=({children:e})=>{let t=(0,K.useRef)(0),[n,r]=(0,K.useState)(!1),i=(0,K.useCallback)(()=>(t.current++,r(!0),()=>{t.current--,r(t.current>0)}),[]),a=(0,K.useCallback)(()=>t.current>0,[]),o=(0,K.useMemo)(()=>({hasPageSearchBar:n,isPageSearchBarActive:a,registerPageSearchBar:i}),[n,a,i]);return(0,Y.jsx)(ls.Provider,{value:o,children:e})},ps=250,ms;function hs(e){if(typeof document.startViewTransition!=`function`){e();return}return document.startViewTransition(()=>new Promise(t=>{let n=0,r=()=>{window.clearTimeout(n),ms=void 0,t()};n=window.setTimeout(r,ps),ms=r,e()}))}function gs(){ms?.()}var _s=(0,K.createContext)({query:``});function vs(){return(0,K.useContext)(_s)}var ys=({children:e})=>{let[t,n]=(0,K.useState)(``),r=Ge(),i=Ue(),a=Ne(),{pathname:o}=i,[s,c]=je(),l=s.get(`q`)??``,{isPageSearchBarActive:u}=us(),{searchFocusSignal:d}=ss();(0,K.useLayoutEffect)(gs,[i]),(0,K.useEffect)(()=>{a===`POP`&&n(l)},[l,a]);let f=(0,K.useCallback)((e,t)=>{let n={...Qo(s),...e};n.query=n.query.trim();let i=$o(n),a=()=>o===is.SEARCH?c(i,{replace:!0}):r({pathname:is.SEARCH,search:new URLSearchParams(i).toString()},{replace:t?.replace});if(o!==is.SEARCH&&u()){let e=!!n.query,t=hs(()=>{a(),e&&d.emit()});e&&t?.finished.then(d.emit).catch(()=>void 0);return}a()},[s,o,r,c,u,d.emit]),p=rs(f,150);(0,K.useLayoutEffect)(()=>{o!==is.SEARCH&&p.cancel()},[o,p]);let m=(0,K.useCallback)((e,t)=>{if(e.query!==void 0&&n(e.query),t?.debounce){if(e.query!==void 0&&!e.query.trim()&&o!==is.SEARCH){p.cancel();return}p(e);return}p.cancel(),f(e,t)},[p,f,o]),h=(0,K.useMemo)(()=>({query:t}),[t]);return(0,Y.jsx)(_s.Provider,{value:h,children:(0,Y.jsx)(es.Provider,{value:m,children:e})})},bs=({children:e})=>(0,Y.jsx)(cs,{children:(0,Y.jsx)(fs,{children:(0,Y.jsx)(ys,{children:e})})}),xs=e=>{let{version:t}=(0,K.useContext)(I);return t==null?void 0:e(t)},Ss=[`user`,`extensions`],Cs=e=>Ko({queryKey:Ss,queryFn:({signal:t})=>e.getExtensions(he(t))}),ws=()=>{let{service:e,user:t}=(0,K.useContext)(I);return E({...Cs(e),enabled:t!=null})},Ts=()=>{let{service:e}=(0,K.useContext)(I);return qn({mutationFn:t=>e.publishExtension(t)})},Es;(function(e){e.ROOT=G([`user-settings`]),e.MAIN=G([e.ROOT,`:tab`]),e.PROFILE=G([e.ROOT,`profile`]),e.TOKENS=G([e.ROOT,`tokens`]),e.TRUSTED_PUBLISHERS=G([e.ROOT,`trusted-publishers`]),e.NAMESPACES=G([e.ROOT,`namespaces`]),e.NAMESPACE_DETAIL=G([e.ROOT,`namespaces`,`:namespace`]),e.EXTENSIONS=G([e.ROOT,`extensions`]),e.EXTENSION_SETTINGS=G([e.ROOT,`extensions`,`:namespace`,`:extension`]),e.CUSTOMERS=G([e.ROOT,`customers`])})(Es||(Es={}));var Ds=[`user`,`namespaces`],Os=()=>{let{service:e,user:t}=(0,K.useContext)(I);return E({queryKey:Ds,queryFn:({signal:t})=>e.getNamespaces(he(t)),enabled:t!=null,...se})},ks=()=>{let{service:e}=(0,K.useContext)(I),t=N();return qn({mutationFn:t=>e.createNamespace(t),onSuccess:()=>
2t.invalidateQueries({queryKey:Ds})})},As=()=>{let e=Ge();return t=>e(G([Es.NAMESPACES,t]))},js=5e3,Ms=js/2,Ns=3e5,Ps=6e4,Fs=(0,K.createContext)({items:[],publish:()=>{},clearFinished:()=>{}}),Is=()=>(0,K.useContext)(Fs),Ls=e=>e.name.toLowerCase().endsWith(`.vsix`),Rs=e=>e.status!==`uploading`&&e.status!==`reviewing`,zs=e=>{if(e.namespaceOwnershipConflict)return`blocked`;switch(e.reviewStatus){case`under_review`:return`reviewing`;case`rejected`:return`rejected`;default:return`published`}},Bs=e=>{if(!V(e)||!e.error.startsWith(`Unknown publisher: `))return;let t=e.error.indexOf(` 3`,19),n=(t===-1?e.error.substring(19):e.error.substring(19,t)).trim();return n&&n!==`undefined`?n:void 0},Vs=({children:e})=>{let{service:t,user:n,handleError:r}=(0,K.useContext)(I),{mutateAsync:i}=Ts(),{mutateAsync:a}=ks(),o=N(),[s,c]=(0,K.useState)([]),l=(0,K.useRef)(0),u=xs(e=>e.maxExtensionSize),d=(0,K.useRef)(!1);(0,K.useEffect)(()=>(d.current=!1,()=>{d.current=!0}),[]);let f=(0,K.useCallback)((e,t)=>{c(n=>n.map(n=>n.id===e?{...n,...t}:n))},[]),p=(0,K.useCallback)(async(e,n,r)=>(await o.fetchQuery({...Cs(t),staleTime:r})).find(t=>t.namespace===e&&t.name===n),[o,t]),m=(0,K.useCallback)(async(e,t,n)=>{let r=Date.now(),i=r,a=n.readBack,o=e=>!a||e.reviewStatus===`under_review`&&!e.namespaceOwnershipConflict?(i=Date.now(),Date.now()-r<Ns):!e.files?.icon&&Date.now()-i<Ps,s=t;for(;o(s)&&!d.current;){if(await new Promise(e=>setTimeout(e,js)),d.current)return;try{let e=await p(t.namespace,t.name,Ms);if(!e)continue;s=e,a=!0}catch{continue}f(e,{extension:s,status:zs(s),error:s.reviewStatus===`rejected`?s.reviewMessage:void 0,awaitingIcon:!s.files?.icon})}f(e,{awaitingIcon:!1})},[p,f]),h=(0,K.useCallback)(async e=>{try{return await p(e.namespace,e.name,0)}catch{return}},[p]),g=(0,K.useCallback)(async(e,t)=>{try{let n;try{n=await i(t)}catch(e){let r=Bs(e);if(!r)throw e;await a(r),n=await i(t)}let r=await h(n),o=r??n;f(e,{extension:o,status:zs(o),error:o.reviewStatus===`rejected`?o.reviewMessage:void 0,awaitingIcon:!o.files?.icon}),await m(e,o,{readBack:r!==void 0})}catch(t){d.current||(f(e,{status:`failed`,error:Gn(t)}),r(t))}},[f,m,i,a,h,r]),_=(0,K.useCallback)(e=>{if(!n)return;let t=e.filter(Ls).map(e=>{let t=u!==void 0&&e.size>u;return{id:l.current++,fileName:e.name,size:e.size,status:t?`failed`:`uploading`,error:t?`Larger than the ${Un(u)} limit.`:void 0,file:e}});if(t.length===0){e.length>0&&r({error:`Only .vsix packages can be published.`});return}c(e=>[...t.map(({file:e,...t})=>t),...e]),t.forEach(({id:e,file:t,status:n})=>{n===`uploading`&&g(e,t)})},[n,g,r,u]),v=(0,K.useCallback)(()=>c(e=>e.filter(e=>!Rs(e))),[]);return(0,Y.jsx)(Fs.Provider,{value:{items:s,publish:_,clearFinished:v},children:e})},Hs=({mainContext:e,queryClient:t=re,children:n})=>(0,Y.jsxs)(ne,{client:t,children:[(0,Y.jsx)(I.Provider,{value:e,children:(0,Y.jsx)(Zo,{children:(0,Y.jsx)(bs,{children:(0,Y.jsx)(Vs,{children:n})})})}),(0,Y.jsx)(Jo,{initialIsOpen:!1})]}),Us;(function(e){e.ROOT=`admin-dashboard`,e.MAIN=G([e.ROOT]),e.STATISTICS=G([e.ROOT,`statistics`]),e.NAMESPACE_ADMIN=G([e.ROOT,`namespaces`]),e.EXTENSION_ADMIN=G([e.ROOT,`extensions`]),e.PUBLISHER_ADMIN=G([e.ROOT,`publisher`]),e.SCANS_ADMIN=G([e.ROOT,`scans`]),e.TIERS=G([e.ROOT,`tiers`]),e.CUSTOMERS=G([e.ROOT,`customers`]),e.USAGE_STATS=G([e.ROOT,`usage`]),e.SETTINGS=G([e.ROOT,`settings`]),e.LOGS=G([e.ROOT,`logs`]),e.CONSISTENCY=G([e.ROOT,`consistency`]),e.SEARCH_INDEX=G([e.ROOT,`search-index`]),e.SEARCH_EXPLAIN=G([e.ROOT,`search-explain`])})(Us||(Us={}));var Ws=P(U)(({theme:e})=>({textDecoration:`underline`,color:e.palette.primary.main})),Gs=e=>{(0,K.useEffect)(()=>(document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)),[]);let t=t=>{t.code===`Enter`&&e.handleCloseDialog()},n=(()=>{if(!e.errorCode)return null;switch(e.errorCode){case`eclipse-missing-github-id`:return(0,Y.jsxs)(Y.Fragment,{children:[`Please fill in the âGitHub Usernameâ field in`,` `,(0,Y.jsx)(Ws,{href:`https://accounts.eclipse.org/user/edit`,target:`_blank`,children:`your Eclipse account`}),` `,`and try again.`]});case`eclipse-mismatch-github-id`:return(0,Y.jsxs)(Y.Fragment,{children:[`Please edit the âGitHub Usernameâ field in`,` `,(0,Y.jsx)(Ws,{href:`https://accounts.eclipse.org/user/edit`,target:`_blank`,children:`your Eclipse account`}),` `,`or log in with a different GitHub account.`]});case`publisher-agreement-problem`:return(0,Y.jsxs)(Y.Fragment,{children:[`Please contact`,` `,(0,Y.jsx)(Ws,{href:`mailto:[email protected]?subject=Problem%20With%20open-vsx.org%20Publisher%20Agreement`,children:`[email protected]`}),` `,`if this problem persists.`]});default:return null}})();return(0,Y.jsxs)(Be,{open:e.isErrorDialogOpen,onClose:e.handleCloseDialog,children:[(0,Y.jsx)(on,{children:`Error`}),(0,Y.jsx)(Ie,{children:(0,Y.jsxs)(vn,{sx:{color:e=>e.palette.error.main},children:[e.errorMessage,n?(0,Y.jsx)(s,{mt:2,children:n}):null]})}),(0,Y.jsx)(ze,{children:(0,Y.jsx)(g,{onClick:e.handleCloseDialog,children:`Close`})})]})},Ks=w((0,Y.jsx)(`path`,{d:`M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8`}),`InfoOutlined`),qs=w((0,Y.jsx)(`path`,{d:`M12 5.99 19.53 19H4.47zM2.74 18c-.77 1.33.19 3 1.73 3h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0zM11 11v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1m0 5h2v2h-2z`}),`WarningAmberRounded`),Js={info:{Icon:Ks,bg:`accentSoft`,accent:`secondary.light`},warning:{Icon:qs,bg:`warningSoft`,accent:`warningAccent`}},Ys=e=>{let{color:t=`info`,open:n,showDismissButton:r,dismissButtonLabel:i,dismissButtonOnClick:a,children:o}=e,{Icon:c,bg:l,accent:u}=Js[t];return(0,Y.jsx)(Mi,{in:n,timeout:{enter:800,exit:300},children:(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`,minHeight:`2.25rem`,py:`0.375rem`,px:{xs:`0.625rem`,sm:`1.75rem`},bgcolor:l,color:`text.primary`,"& a":{color:u,fontWeight:700,textDecoration:`none`,"&:hover":{textDecoration:`underline`}}},children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.5rem`,minWidth:0},children:[(0,Y.jsx)(c,{sx:{color:u,fontSize:`1.125rem`,flexShrink:0}}),(0,Y.jsx)(s,{component:`span`,sx:{fontSize:`0.875rem`,lineHeight:1.4},children:o})]}),r&&(i?(0,Y.jsx)(g,{variant:`text`,onClick:a,sx:e=>({flexShrink:0,color:u,px:2,py:.5,fontWeight:600,fontSize:`0.8125rem`,whiteSpace:`nowrap`,borderRadius:`${e.shape.borderRadius}px`,"&:hover":{backgroundColor:`color-mix(in srgb, currentColor 8%, transparent)`}}),children:i}):(0,Y.jsx)(we,{size:`small`,"aria-label":`Dismiss`,onClick:a,sx:{flexShrink:0,color:`inherit`,mr:`-0.375rem`},children:(0,Y.jsx)(Lt,{sx:{fontSize:`1.125rem`}})}))]})})},Xs=({children:e})=>(0,Y.jsx)(s,{component:`kbd`,sx:{fontFamily:Rt,fontSize:`0.625rem`,fontWeight:600,lineHeight:1,px:`0.3125rem`,pt:`0.125rem`,pb:`0.1875rem`,minWidth:`1.125rem`,textAlign:`center`,borderRadius:1,color:`color-mix(in srgb, currentcolor 62%, transparent)`,bgcolor:`color-mix(in srgb, currentcolor 9%, transparent)`,border:`1px solid color-mix(in srgb, currentcolor 24%, transparent)`,borderBottomWidth:`2px`,boxShadow:`inset 0 -1px 0 color-mix(in srgb, currentcolor 12%, transparent)`,display:`inline-block`,userSelect:`none`,verticalAlign:`middle`,"@media (hover: none)":{display:`none`}},children:e}),Zs=({open:e,onClose:t})=>{let{shortcuts:n}=Xo();return(0,Y.jsxs)(Be,{open:e,onClose:t,maxWidth:`xs`,fullWidth:!0,children:[(0,Y.jsxs)(on,{component:`div`,sx:{dis
3play:`flex`,alignItems:`center`,justifyContent:`space-between`,py:`0.875rem`,px:`1.25rem`,borderBottom:`1px solid`,borderColor:`divider`},children:[(0,Y.jsx)(u,{sx:{fontSize:`1rem`,fontWeight:700},children:`Keyboard shortcuts`}),(0,Y.jsx)(we,{onClick:t,size:`small`,edge:`end`,"aria-label":`Close`,sx:{color:`text.disabled`},children:(0,Y.jsx)(Lt,{fontSize:`small`})})]}),(0,Y.jsx)(Ie,{sx:{p:0,"& kbd":{display:`inline-block`}},children:n.map((e,t)=>(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,px:`1.25rem`,py:`0.6875rem`,borderBottom:t<n.length-1?`1px solid`:`none`,borderColor:`border2`},children:[(0,Y.jsx)(u,{sx:{fontSize:`0.875rem`,color:`text.secondary`},children:e.label}),(0,Y.jsx)(Xs,{children:e.key})]},e.key))})]})},Qs=(0,K.createContext)({tint:null,setTint:()=>{},blurDepth:0,setBlurDepth:()=>{}}),$s=({children:e})=>{let[t,n]=(0,K.useState)(null),[r,i]=(0,K.useState)(0),a=(0,K.useMemo)(()=>({tint:t,setTint:n,blurDepth:r,setBlurDepth:i}),[t,r]);return(0,Y.jsx)(Qs.Provider,{value:a,children:e})};function ec(){return(0,K.useContext)(Qs).tint}function tc(){return(0,K.useContext)(Qs).setTint}function nc(){return(0,K.useContext)(Qs).blurDepth}function rc({key:e,label:t,callback:n,order:r=99,enabled:i=!0}){let{register:a,unregister:o}=Xo(),s=(0,K.useRef)(n);s.current=n,(0,K.useEffect)(()=>{if(i)return a({key:e,label:t,order:r,callback:()=>s.current()}),()=>o(e)},[e,t,r,i])}var ic;(function(e){let t;(function(e){e.NAME=`:name`})(t=e.Parameters||(e.Parameters={})),e.ROOT=`namespace`,e.MAIN=G([e.ROOT,t.NAME])})(ic||(ic={}));var ac;(function(e){e.ROOT=G([`publish`])})(ac||(ac={}));var oc=w((0,Y.jsx)(`path`,{d:`M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z`}),`ArrowBack`),sc=w((0,Y.jsx)(`path`,{d:`M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z`}),`FileUploadOutlined`),cc=e=>Array.from(e?.types??[]).includes(`Files`),lc=()=>{let{user:e}=(0,K.useContext)(I),{publish:t}=Is(),n=Ge(),{pathname:r}=Ue(),[i,a]=(0,K.useState)(!1),[o,s]=(0,K.useState)(!1),c=(0,K.useRef)(0);(0,K.useEffect)(()=>{if(!e)return;let t=e=>{cc(e.dataTransfer)&&(c.current+=1,a(!0))},n=()=>{c.current=Math.max(0,c.current-1),c.current===0&&(a(!1),s(!1))},r=e=>{cc(e.dataTransfer)&&e.preventDefault()},i=e=>{r(e),c.current=0,a(!1),s(!1)};return window.addEventListener(`dragenter`,t),window.addEventListener(`dragleave`,n),window.addEventListener(`dragover`,r),window.addEventListener(`drop`,i),()=>{window.removeEventListener(`dragenter`,t),window.removeEventListener(`dragleave`,n),window.removeEventListener(`dragover`,r),window.removeEventListener(`drop`,i)}},[e]);let l=(0,K.useCallback)(t=>{!e||!cc(t.dataTransfer)||(t.preventDefault(),s(!0))},[e]);return{dragging:i,over:o,dropProps:{onDragEnter:l,onDragOver:l,onDragLeave:(0,K.useCallback)(e=>{e.currentTarget.contains(e.relatedTarget)||s(!1)},[]),onDrop:(0,K.useCallback)(i=>{!e||!cc(i.dataTransfer)||(i.preventDefault(),s(!1),t(Array.from(i.dataTransfer.files)),r!==ac.ROOT&&n(ac.ROOT))},[e,t,n,r])}}},uc=(0,K.forwardRef)(function({fluid:e,flushTop:t,flushBottom:n,sx:r,...i},a){return(0,Y.jsx)(ia,{ref:a,maxWidth:!e&&`xl`,disableGutters:e,sx:[{pt:t?0:{xs:`1.75rem`,sm:`2.5rem`},pb:n?0:{xs:`2.5rem`,sm:`4rem`}},...Array.isArray(r)?r:[r]],...i})}),dc=w((0,Y.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`}),`ErrorOutline`),fc=w((0,Y.jsx)(`path`,{d:`M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z`}),`SaveAlt`),pc=w((0,Y.jsx)(`path`,{d:`M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z`}),`Star`),mc=w((0,Y.jsx)(`path`,{d:`m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z`}),`Verified`),hc=e=>({...zt(e),containerType:`inline-size`,padding:`1rem 0.875rem`,[e.breakpoints.down(`sm`)]:{padding:`0.75rem 0.625rem`},display:`flex`,flexDirection:`column`,alignItems:`center`,height:`100%`,minHeight:`13rem`}),gc=P(S)(({theme:e})=>({...hc(e),position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`border-color 0.15s, box-shadow 0.15s, transform 0.15s`,...It(e,{"&:hover .extension-card-overlay":{opacity:.7,color:e.palette.secondary.light}}),"& .extension-card-overlay":{position:`absolute`,top:`0.75rem`,right:`0.75rem`,display:`flex`,color:e.palette.text.disabled,opacity:.28,transition:`opacity 0.15s, color 0.15s`},"a:focus-visible &, [data-cursor-visible] a[data-active] &":Pn(e)})),_c=P(S)(({theme:e})=>hc(e)),vc=({children:e,placeholder:t})=>(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.1875rem`,height:`1.25rem`,minWidth:0,flexShrink:1,overflow:`hidden`,whiteSpace:`nowrap`,fontSize:{xs:`0.8125rem`,sm:`0.875rem`}},children:[e!=null&&(0,Y.jsx)(pc,{sx:{fontSize:`inherit`,...t&&{color:`action.disabledBackgroun
3d`}}}),e]}),yc=()=>(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Dn,{variant:`rounded`,width:54,height:54,sx:{flexShrink:0,mb:`0.75rem`}}),(0,Y.jsx)(Dn,{variant:`text`,width:`70%`,sx:{fontSize:{xs:`0.8125rem`,sm:`0.875rem`}}}),(0,Y.jsxs)(s,{sx:{width:`100%`,height:`2.1rem`,mt:`0.375rem`,overflow:`hidden`},children:[(0,Y.jsx)(Dn,{variant:`text`,sx:{fontSize:`0.75rem`}}),(0,Y.jsx)(Dn,{variant:`text`,width:`60%`,sx:{fontSize:`0.75rem`,mx:`auto`}})]}),(0,Y.jsxs)(s,{sx:{width:`100%`,mt:`0.75rem`,display:`flex`,justifyContent:`space-between`,gap:1},children:[(0,Y.jsx)(Dn,{variant:`text`,width:`45%`,sx:{fontSize:`0.75rem`}}),(0,Y.jsx)(Dn,{variant:`text`,width:`30%`,sx:{fontSize:`0.6875rem`}})]}),(0,Y.jsx)(s,{sx:{width:`100%`,mt:`auto`,pt:`0.6875rem`,borderTop:`1px solid`,borderColor:`border2`,display:`flex`,alignItems:`center`,fontSize:{xs:`0.8125rem`,sm:`0.875rem`}},children:(0,Y.jsx)(vc,{placeholder:!0,children:(0,Y.jsx)(Dn,{variant:`text`,width:`2.5rem`,sx:{fontSize:`0.6875rem`}})})})]}),bc=(0,K.memo)((0,K.forwardRef)(function({extension:e,fadeDelayMs:t=0,appear:n=!0,to:r,linkState:i,overlay:a,footerStart:o,dimmed:c,tone:l,iconPending:d,...f},p){let m=e?.displayName??e?.name,h=e?Jn(e.downloadCount??0):void 0,g=e?.reviewCount??0;return(0,Y.jsx)(gt,{in:!0,appear:n,timeout:{enter:t},children:(0,Y.jsx)(s,{title:m,sx:{height:`100%`},children:e?(0,Y.jsx)(R,{ref:p,...f,to:r??G([qt.ROOT,e.namespace,e.name]),state:i,"aria-label":m,style:{textDecoration:`none`,height:`100%`,display:`block`,outline:`none`},children:(0,Y.jsxs)(gc,{elevation:0,sx:[(e.deprecated||c)===!0&&{opacity:.5,filter:`grayscale(100%)`},l===`warning`&&(e=>({borderColor:He(e.palette.warningAccent,.55),"& .extension-card-overlay":{opacity:1,color:e.palette.warningAccent},"@media (hover: hover)":{"&:hover":{borderColor:e.palette.warningAccent},"&:hover .extension-card-overlay":{color:e.palette.warningAccent}}}))],children:[a?(0,Y.jsx)(`span`,{className:`extension-card-overlay`,children:a}):null,(0,Y.jsx)(s,{display:`flex`,justifyContent:`center`,alignItems:`center`,flexShrink:0,sx:{width:54,height:54,mb:`0.75rem`},children:(0,Y.jsx)(Mn,{extension:e,alt:m,pending:d,sx:{width:54,maxHeight:54,objectFit:`contain`}})}),(0,Y.jsx)(u,{noWrap:!0,sx:{fontSize:{xs:`0.8125rem`,sm:`0.875rem`},fontWeight:600,lineHeight:1.3,width:`100%`},children:m}),(0,Y.jsx)(u,{sx:{fontSize:`0.75rem`,color:`text.secondary`,lineHeight:1.4,height:`2.1rem`,mt:`0.375rem`,width:`100%`,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.description}),(0,Y.jsxs)(s,{sx:{width:`100%`,mt:`0.75rem`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.375rem`,overflow:`hidden`,"& > :first-of-type:hover":{flexShrink:0,maxWidth:`none`},"& > :first-of-type:hover + *":{minWidth:0,flexShrink:1},"& > :last-of-type:hover":{flexShrink:0,maxWidth:`none`},"&:has(> :last-of-type:hover) > :first-of-type":{flexShrink:1,minWidth:0}},children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.25rem`,minWidth:0,flexShrink:1,maxWidth:`70%`,overflow:`hidden`},children:[(0,Y.jsx)(u,{component:`div`,noWrap:!0,sx:{fontSize:`0.75rem`,color:`text.disabled`,minWidth:0,textAlign:`left`},children:e.namespace}),e.verified&&(0,Y.jsx)(s,{component:`span`,title:`Verified publisher`,role:`img`,"aria-label":`Verified publisher`,sx:{display:`inline-flex`,fontSize:`0.75rem`,color:`secondary.light`,flexShrink:0},children:(0,Y.jsx)(mc,{fontSize:`inherit`})})]}),(0,Y.jsx)(u,{component:`div`,title:e.version,sx:{fontSize:`0.6875rem`,color:`text.disabled`,flexShrink:3,minWidth:`2ch`,maxWidth:`10ch`,fontFamily:Rt,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:e.version})]}),e.deprecated&&(0,Y.jsx)(s,{sx:{width:`100%`,mt:`0.25rem`,textAlign:`left`,fontSize:`0.6875rem`,fontWeight:500,color:`warningAccent`},children:`deprecated`}),(0,Y.jsxs)(s,{sx:{width:`100%`,mt:`auto`,pt:`0.6875rem`,borderTop:`1px solid`,borderColor:`border2`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.5rem`,overflow:`hidden`,fontSize:`0.75rem`},children:[o??(0,Y.jsx)(vc,{children:g>0?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(s,{component:`span`,sx:{fontSize:`0.6875rem`},children:Xn(e.averageRating??0)}),(0,Y.jsxs)(s,{component:`span`,sx:{fontSize:`0.6875rem`,color:`text.disabled`},children:[`(`,Jn(g),`)`]})]}):null}
3),h!==`0`&&(0,Y.jsxs)(s,{component:`span`,sx:{display:`flex`,alignItems:`center`,gap:`0.1875rem`,flexShrink:0,whiteSpace:`nowrap`,fontFamily:`'Geist Mono', monospace`,fontSize:`0.6875rem`,color:`text.disabled`},children:[(0,Y.jsx)(fc,{sx:{fontSize:`0.8125rem`}}),h]})]})]})}):(0,Y.jsx)(_c,{elevation:0,children:(0,Y.jsx)(yc,{})})})})})),xc=w((0,Y.jsx)(`path`,{d:`M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2`}),`SettingsOutlined`),Sc=w([(0,Y.jsx)(`path`,{d:`M12 5.99 19.53 19H4.47zM12 2 1 21h22z`},`0`),(0,Y.jsx)(`path`,{d:`M13 16h-2v2h2zm0-6h-2v5h2z`},`1`)],`WarningAmber`),Cc=({extension:e,routePrefix:t,linkState:n,iconPending:r,footerStart:i})=>{let a=rn(e),o=!!e.namespaceOwnershipConflict;return(0,Y.jsx)(bc,{extension:e,to:G([t,e.namespace,e.name]),linkState:n,dimmed:e.active===!1&&!e.namespaceOwnershipConflict,iconPending:r,tone:o?`warning`:void 0,overlay:o?(0,Y.jsx)(Sc,{titleAccess:`Needs attention`,sx:{fontSize:`0.9375rem`}}):(0,Y.jsx)(xc,{sx:{fontSize:`0.9375rem`}}),footerStart:i??(a?(0,Y.jsx)(u,{component:`span`,sx:{fontSize:`0.75rem`,fontWeight:600,color:a.color},children:a.label}):void 0)})},wc=(e,t)=>{let[n,r]=(0,K.useState)(!1),i=(0,K.useRef)(),a=(0,K.useRef)(t);return a.current=t,(0,K.useEffect)(()=>()=>clearTimeout(i.current),[]),{saved:n,flash:(0,K.useCallback)(()=>{r(!0),clearTimeout(i.current),i.current=setTimeout(()=>{r(!1),a.current?.()},e)},[e]),clear:(0,K.useCallback)(()=>{clearTimeout(i.current),r(!1)},[])}};M();var Tc=`11rem`,Ec=P(s)({display:`flex`,gap:`0.75rem`,overflowX:`auto`,padding:`0.75rem 0 1rem`,margin:`-0.75rem 0 -1rem`,maskImage:`linear-gradient(to right, #000 calc(100% - 3rem), transparent)`,WebkitMaskImage:`linear-gradient(to right, #000 calc(100% - 3rem), transparent)`}),Dc=P(s)({position:`relative`,flex:`0 0 ${Tc}`,maxWidth:Tc}),Oc=1600,kc=de` 4 0% { opacity: 0; } 5 25% { opacity: 1; } 6 100% { opacity: 0; } 7`,Ac=P(`span`)(({theme:e})=>({position:`absolute`,inset:0,pointerEvents:`none`,borderRadius:`${e.shape.borderRadiusCard}px`,border:`2px solid ${e.palette.success.main}`,backgroundColor:He(e.palette.success.main,.14),opacity:0,"@media (prefers-reduced-motion: no-preference)":{animation:`${kc} ${Oc}ms ease-in-out`}})),jc=P(Ut)({fontSize:`0.5625rem`,flexShrink:1,maxWidth:`100%`,whiteSpace:`normal`,textAlign:`center`,lineHeight:1.4}),Mc=e=>{let t=t=>e.filter(e=>e.status===t).length,n=t(`uploading`);if(n>0)return`Publishing ${n}`;let r=t(`reviewing`);return r>0?`Reviewing ${r}`:t(`published`)===e.length?`Published`:`Action needed`},Nc=P(s)(({theme:e})=>({...zt(e),borderColor:He(e.palette.error.main,.4),height:`100%`,minHeight:`13rem`,padding:`1rem 0.875rem`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:`0.5rem`,textAlign:`center`})),Pc=({item:e})=>
7{if(e.status===`failed`||e.status===`rejected`)return(0,Y.jsxs)(Nc,{title:e.error,children:[(0,Y.jsx)(dc,{sx:{fontSize:`1.5rem`,color:`error.main`}}),(0,Y.jsx)(u,{noWrap:!0,sx:{width:`100%`,fontSize:`0.8125rem`,fontWeight:700},children:e.fileName}),(0,Y.jsx)(u,{sx:{fontSize:`0.75rem`,color:`error.main`,display:`-webkit-box`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.error??`Publishing failed`})]});if(!e.extension)return(0,Y.jsx)(bc,{});let t=rn(e.extension);return(0,Y.jsx)(Cc,{extension:e.extension,routePrefix:Es.EXTENSIONS,iconPending:e.awaitingIcon,linkState:{backTo:ac.ROOT,backLabel:`Back to publishing`},footerStart:t?(0,Y.jsx)(jc,{sx:{color:t.color},children:t.label}):void 0})},Fc=({item:e})=>{let{saved:t,flash:n}=wc(Oc),r=(0,K.useRef)(e.status);return(0,K.useEffect)(()=>{let t=r.current!==`published`&&e.status===`published`;r.current=e.status,t&&n()},[e.status,n]),(0,Y.jsxs)(Dc,{children:[(0,Y.jsx)(Pc,{item:e}),t?(0,Y.jsx)(Ac,{"data-testid":`publish-accepted`}):null]})},Ic=()=>{let{items:e,clearFinished:t}=Is();return e.length===0?null:(0,Y.jsxs)(s,{"aria-label":`Publishing queue`,children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.5rem`,mb:`0.75rem`},children:[(0,Y.jsx)(gn,{children:Mc(e)}),e.some(Rs)?(0,Y.jsx)(g,{size:`small`,onClick:t,children:`Clear`}):null]}),(0,Y.jsx)(Ec,{children:e.map(e=>(0,Y.jsx)(Fc,{item:e},e.id))})]})},Lc=e=>{let[t,n]=(0,K.useState)(!1),r=()=>n(!0),i=Object.keys(e.loginProviders);return i.length===1?e.renderButton(e.loginProviders[i[0]]):(0,Y.jsxs)(Y.Fragment,{children:[e.renderButton(void 0,r),(0,Y.jsxs)(Be,{fullWidth:!0,open:t,onClose:()=>n(!1),children:[(0,Y.jsx)(on,{children:`Log In`}),(0,Y.jsx)(Ie,{children:(0,Y.jsx)(St,{spacing:2,children:i.map(t=>(0,Y.jsx)(g,{fullWidth:!0,variant:`contained`,color:`secondary`,href:e.loginProviders[t],children:t},t))})})]})]})},Rc=P(s,{shouldForwardProp:e=>e!==`over`})(({theme:e,over:t})=>({padding:`1.25rem`,border:`1.5px dashed ${t?e.palette.secondary.main:e.palette.divider}`,borderRadius:e.shape.borderRadiusCard,backgroundColor:t?He(e.palette.secondary.main,.06):e.palette.surface2,transition:`border-color 0.15s, background-color 0.15s`,"@media (hover: hover)":{"&:hover":{borderColor:e.palette.secondary.main}}})),zc=P(C)(({theme:e})=>({width:`100%`,flexDirection:`column`,gap:`0.75rem`,padding:`4.75rem 1.5rem`,borderRadius:`${e.shape.borderRadius}px`,fontFamily:`inherit`,...Kt(e)})),Bc=P(s)(({theme:e})=>({...zt(e),backgroundColor:e.palette.surface2,padding:`1rem 1.125rem`,fontFamily:Rt,fontSize:`0.8125rem`,color:e.palette.text.secondary,whiteSpace:`pre-line`,overflowX:`auto`})),Vc=`npm install -g ovsx 8ovsx publish my-extension.vsix -p <token>`,Hc=()=>{let{pageSettings:e,user:t,loginProviders:n}=(0,K.useContext)(I),{publish:r,items:i}=Is(),{over:a,dropProps:o}=lc(),c=Ge(),l=(0,K.useRef)(null),d=xs(e=>e.maxExtensionSize),f=e=>{r(Array.from(e.target.files??[])),e.target.value=``};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Qr,{children:(0,Y.jsxs)(`title`,{children:[`Publish an extension â `,e.pageTitle]})}),(0,Y.jsxs)(uc,{children:[t?(0,Y.jsx)(Nt,{disableRipple:!0,onClick:()=>c(Es.EXTENSIONS),startIcon:(0,Y.jsx)(oc,{sx:{fontSize:`0.9375rem`}}),sx:{mb:`1.75rem`},children:`Back to extensions`}):null,(0,Y.jsxs)(s,{sx:{mb:`2.5rem`},children:[(0,Y.jsx)(u,{component:`h1`,sx:{fontSize:`1.75rem`,fontWeight:800,letterSpacing:`-0.02em`},children:`Publish an extension`}),(0,Y.jsxs)(u,{sx:{fontSize:`0.9375rem`,color:`text.secondary`,mt:`0.375rem`},children:[`Drop your `,(0,Y.jsx)(`code`,{children:`.vsix`}),` packages here, or pick them below.`]})]}),t?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Rc,{over:a,...o,children:[(0,Y.jsxs)(zc,{onClick:()=>l.current?.click(),children:[(0,Y.jsx)(Jt,{sx:{width:`3rem`,height:`3rem`,color:`secondary.main`},children:(0,Y.jsx)(sc,{})}),(0,Y.jsx)(u,{sx:{fontSize:`1rem`,fontWeight:700},children:`Drag & drop your extensions here`}),(0,Y.jsxs)(u,{sx:{fontSize:`0.875rem`,color:`text.disabled`},children:[`or click to select `,(0,Y.jsx)(`code`,{children:`.vsix`}),` packages`,d?` â up to ${Un(d)} each`:null]})]}),i.length>0?(0,Y.jsx)(s,{sx:{mt:`1.25rem`,pt:`1.25rem`,borderTop:`1px dashed`,borderColor:`divi
8der`},children:(0,Y.jsx)(Ic,{})}):null]}),(0,Y.jsx)(s,{component:`input`,ref:l,type:`file`,multiple:!0,"aria-label":`Extension packages`,accept:`application/vsix,.vsix`,onChange:f,sx:{display:`none`}})]}):(0,Y.jsxs)(u,{sx:{fontSize:`0.9375rem`},children:[`Please`,` `,n?(0,Y.jsx)(Lc,{loginProviders:n,renderButton:(e,t)=>(0,Y.jsx)(U,{color:`secondary`,href:e,onClick:t,children:`log in`})}):`log in`,` `,`to publish an extension.`]}),(0,Y.jsxs)(s,{sx:{mt:`2.5rem`},children:[(0,Y.jsx)(gn,{sx:{mb:`0.75rem`},children:`Or publish from the command line`}),(0,Y.jsx)(Bc,{component:`pre`,children:Vc})]})]})]})},Uc=e=>{let[t,n]=(0,K.useState)(null);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:e.className,"aria-haspopup":`true`,"aria-owns":t?e.id:void 0,onMouseEnter:e=>n(e.currentTarget),onMouseLeave:()=>n(null),children:e.children}),(0,Y.jsx)(mt,{id:e.id,open:!!t,anchorEl:t,anchorOrigin:{vertical:`bottom`,horizontal:`left`},onClose:()=>n(null),disableRestoreFocus:!0,sx:{pointerEvents:`none`,"& .MuiPopover-paper":{p:1,maxWidth:`80%`}},children:e.popupContent})]})},Wc=e=>{let t=e.collapseSmall?{xs:0,sm:0,md:`1em`,lg:`1em`,xl:`1em`}:`1em`,n=e.collapseSmall?{xs:.25,sm:.25,md:1,lg:1,xl:1}:1,r=e.collapseSmall?{xs:.25,sm:.25,md:0,lg:0,xl:0}:0,i=e.backgroundColor??`#151515`;return(0,Y.jsx)(Tn,{orientation:`vertical`,sx:{alignSelf:`center`,height:t,mx:n,my:r,bgcolor:i}})},Gc=w((0,Y.jsx)(`path`,{d:`m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z`}),`StarHalf`),Kc=e=>(0,Y.jsx)(Y.Fragment,{children:[1,2,3,4,5].map(t=>{let n=e.number,r=e.fontSize??`medium`;return t<=n?(0,Y.jsx)(pc,{fontSize:r},t):t>n&&t-1<n?(0,Y.jsxs)(s,{component:`span`,sx:{position:`relative`,display:`inline-flex`},children:[(0,Y.jsx)(Gc,{fontSize:r,sx:{position:`absolute`,top:0,left:0}}),(0,Y.jsx)(pc,{fontSize:r,sx:{display:`block`,color:`#bcbcbc`}})]},t):(0,Y.jsx)(pc,{fontSize:r,sx:{color:`#bcbcbc`}},t)})}),qc=w((0,Y.jsx)(`path`,{d:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`}),`Home`),Jc=w((0,Y.jsx)(`path`,{d:`M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z`}),`BugReport`),Yc=w((0,Y.jsx)(`path`,{d:`M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1m-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1`}),`QuestionAnswer`),Xc={};function Zc(e){let t=Xc[e];if(t)return t;t=Xc[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]=`%`+(`0`+r.toString(16).toUpperCase()).slice(-2)}return t}function Qc(e,t){typeof t!=`string`&&(t=Qc.defaultChars);let n=Zc(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t=``;for(let r=0,i=e.length;r<i;r+=3){let a=parseInt(e.slice(r+1,r+3),16);if(a<128){t+=n[a];continue}if((a&224)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((n&192)==128){let e=a<<6&1984|n&63;t+=e<128?`��`:String.fromCharCode(e),r+=3;continue}}if((a&240)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((n&192)==128&&(i&192)==128){let e=a<<12&61440|n<<6&4032|i&63;t+=e<2048||e>=55296&&e<=57343?`���`:String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if((n&192)==128&&(i&192)==128&&(o&192)==128){let e=a<<18&1835008|n<<12&258048|i<<6&4032|o&63;e<65536||e>1114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}return t})}Qc.defaultChars=`;/?:@&=+$,#`,Qc.componentChars=``;var $c={};function el(e){let t=$c[e];if(t)return t;t=$c[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function tl(e,t,n){typeof t!=`string`&&(n=t,t=tl.defaultChars),n===void 0&&(n=!0);let r=el(t),i=``;for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(n&&o===37&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`;continue}i+=encodeURIComponent(e[t])}return i}tl.defaultChars=`;/?:@&=+$,-_.!~*'()#`,tl.componentChars=`-_.!~*'()`;function nl(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function rl(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var il=/^([a-z0-9.+-]+:)/i,al=/:[0-9]*$/,ol=/^(\/\/?(?!\/)[^\?\s]
vendor: 4,625 bytes, lines 8-9
8*)(\?[^\s]*)?$/,sl=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,` 9`,` `],cl=[`/`,`?`,`#`],ll=255,ul=/^[+a-z0-9A-Z_-]{0,63}$/,dl=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,fl={javascript:!0,"javascript:":!0},pl={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ml(e,t){if(e&&e instanceof rl)return e;let n=new rl;return n.parse(e,t),n}rl.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=ol.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=il.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&fl[o])&&(a=a.substr(2),this.slashes=!0)),!fl[o]&&(i||o&&!pl[o])){let e=-1;for(let t=0;t<cl.length;t++)r=a.indexOf(cl[t]),r!==-1&&(e===-1||r<e)&&(e=r);let t,n;n=e===-1?a.lastIndexOf(`@`):a.lastIndexOf(`@`,e),n!==-1&&(t=a.slice(0,n),a=a.slice(n+1),this.auth=t),e=-1;for(let t=0;t<sl.length;t++)r=a.indexOf(sl[t]),r!==-1&&(e===-1||r<e)&&(e=r);e===-1&&(e=a.length),a[e-1]===`:`&&e--;let i=a.slice(0,e);a=a.slice(e),this.parseHost(i),this.hostname=this.hostname||``;let o=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(ul)){let r=``;for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+=`x`:r+=n[e];if(!r.match(ul)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(dl);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>ll&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let c=a.indexOf(`?`);return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),pl[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},rl.prototype.parseHost=function(e){let t=al.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var hl=t({decode:()=>Qc,encode:()=>tl,format:()=>nl,parse:()=>ml}),gl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_l=/[\0-\x1F\x7F-\x9F]/,vl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,yl=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,bl=/[\$\+<->
9\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,xl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Sl=t({Any:()=>gl,Cc:()=>_l,Cf:()=>vl,P:()=>yl,S:()=>bl,Z:()=>xl}),Cl=new Uint16Array(`
vendor: 8,301 bytes, line 9
9áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;
vendor: 7,828 bytes, line 9
9ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 10,543 bytes, line 9
9ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»\xA0ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ`.split(``).map(e=>e.charCodeAt(0))),
9wl=new Uint16Array(`Èaglq ��\x1BÉ�\0\0�p;ä¦os;ä§t;ä¾t;ä¼uot;ä¢`.split(``).map(e=>e.charCodeAt(0))),Tl=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),El=String.fromCodePoint??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Dl(e){return e>=55296&&e<=57343||e>1114111?65533:Tl.get(e)??e}var Ol;
vendor: 4,938 bytes, line 9
9(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(Ol||(Ol={}));var kl=32,Al;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(Al||(Al={}));function jl(e){return e>=Ol.ZERO&&e<=Ol.NINE}function Ml(e){return e>=Ol.UPPER_A&&e<=Ol.UPPER_F||e>=Ol.LOWER_A&&e<=Ol.LOWER_F}function Nl(e){return e>=Ol.UPPER_A&&e<=Ol.UPPER_Z||e>=Ol.LOWER_A&&e<=Ol.LOWER_Z||jl(e)}function Pl(e){return e===Ol.EQUALS||Nl(e)}var Fl;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(Fl||(Fl={}));var Il;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(Il||(Il={}));var Ll=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Fl.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Il.Strict}startEntity(e){this.decodeMode=e,this.state=Fl.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Fl.EntityStart:return e.charCodeAt(t)===Ol.NUM?(this.state=Fl.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Fl.NamedEntity,this.stateNamedEntity(e,t));case Fl.NumericStart:return this.stateNumericStart(e,t);case Fl.NumericDecimal:return this.stateNumericDecimal(e,t);case Fl.NumericHex:return this.stateNumericHex(e,t);case Fl.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|kl)===Ol.LOWER_X?(this.state=Fl.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Fl.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(jl(r)||Ml(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(jl(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ol.SEMI)this.consumed+=1;else if(this.decodeMode===Il.Strict)return 0;return this.emitCodePoint(Dl(this.result),this.consumed),this.errors&&(e!==Ol.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&Al.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=zl(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===Il.Attribute&&(i===0||Pl(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&Al.VALUE_LENGTH)>>14,i!==0){if(a===Ol.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Il.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&Al.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~Al.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Fl.NamedEntity:return this.result!==0&&(this.decodeMode!==Il.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Fl.NumericDecimal:return this.emitNumericEntity(0,2);case Fl.NumericHex:return this.emitNumericEntity(0,3);case Fl.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Fl.EntityStart:return 0}}};function Rl(e){let t=``,n=new Ll(e,e=>t+=El(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function zl(e,t,n,r){let i=(t&Al.BRANCH_LENGTH)>>7,a=t&Al.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}var Bl=Rl(Cl);Rl(wl);function Vl(e,t=Il.Legacy){return Bl(e,t)}
9function Hl(e){return Bl(e,Il.Strict)}var Ul=t({arrayReplaceAt:()=>Jl,asciiTrim:()=>_u,assign:()=>ql,escapeHtml:()=>su,escapeRE:()=>lu,fromCodePoint:()=>Xl,has:()=>Kl,isMdAsciiPunct:()=>mu,isPunctChar:()=>fu,isPunctCharCode:()=>pu,isSpace:()=>uu,isString:()=>Gl,isValidEntityCode:()=>Yl,isWhiteSpace:()=>du,lib:()=>vu,normalizeReference:()=>hu,unescapeAll:()=>nu,unescapeMd:()=>tu});function Wl(e){return Object.prototype.toString.call(e)}function Gl(e){return Wl(e)===`[object String]`}var Q=Object.prototype.hasOwnProperty;function Kl(e,t){return Q.call(e,t)}function ql(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!=`object`)throw TypeError(t+`must be object`);Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function Jl(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Yl(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Xl(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var Zl=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ql=RegExp(Zl.source+`|&([a-z#][a-z0-9]{1,31});`,`gi`),$l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function eu(e,t){if(t.charCodeAt(0)===35&&$l.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Yl(n)?Xl(n):e}let n=Vl(e);return n===e?e:n}function tu(e){return e.indexOf(`\\`)<0?e:e.replace(Zl,`$1`)}function nu(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(Ql,function(e,t,n){return t||eu(e,n)})}var ru=/[&<>"]/,iu=/[&<>"]/g,au={"&":`&`,"<":`<`,">":`>`,'"':`"`};function ou(e){return au[e]}function su(e){return ru.test(e)?e.replace(iu,ou):e}var cu=/[.?*+^$[\]\\(){}|-]/g;function lu(e){return e.replace(cu,`\\$&`)}function uu(e){switch(e){case 9:case 32:return!0}return!1}function du(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function fu(e){return yl.test(e)||bl.test(e)}function pu(e){return fu(Xl(e))}function mu(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function hu(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}function gu(e){return e===32||e===9||e===10||e===13}function _u(e){let t=0;for(;t<e.length&&gu(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&gu(e.charCodeAt(n));n--);return e.slice(t,n+1)}var vu={mdurl:hl,ucmicro:Sl};function yu(e,t,n){let r,i,a,o,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),a===91){if(o===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return i&&(l=e.pos),e.pos=c,l}function bu(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return a;if(r===62)return a.pos=i+1,a.str=nu(e.slice(t+1,i)),a.ok=!0,a;if(r===92&&i+1<n){i+=2;continue}i++}return a}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(o++,o>32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=nu(e.slice(t,i)),a.pos=i,a.ok=!0,a)}function xu(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a<n;){if(i=e.charCodeAt(a),i===o.marker)return o.pos=a+1,o.str+=nu(e.slice(t,a)),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&a+1<n&&a++,a++}return o.can_continue=!0,o.str+=nu(e.slice(t,a)),o}var Su=t({parseLinkDestination:()=>bu,parseLinkLabel:()=>yu,parseLinkTitle:()=>xu}),Cu={};Cu.code_inline=function(e,t,n,r,i){let a=e[t];return`<code`+i.renderAttrs(a)+`>`+su(a.content)+`</code>`},Cu.code_block=function(e,t,n,r,i){let a=e[t];return`<pre`+i.renderAttrs(a)+`><code>`+su(e[t].content)+`</code></pre> 10`},Cu.fence=function(e,t,n,r,i){let a=e[t],o=a.info?nu(a.info).trim():``,s=``,c=``;if(o){let e=o.split(/(\s+)/g);s=e[0],c=e.slice(2).join(``)}let l;if(l=n.highlight&&n.highlight(a.content,s,c)||su(a.content),l.indexOf(`<pre`)===0)return l+` 11`;if(o){let e=a.attrIndex(`class`),t=a.attrs?a.attrs.slice():[];e<0?t.push([`class`,n.langPrefix+s]):(t[e]=t[e].slice(),t[e][1]+=` `+n.langPrefix+s);let r={attrs:t};return`<pre><code${i.renderAttrs(r)}>${l}</code></pre>\n`}return`<pre><code${i.renderAttrs(a)}>${l}</code></pre>\n`},Cu.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},Cu.hardbreak=function(e,t,n){return n.xhtmlOut?`<br /> 12`:`<br> 13`},Cu.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br /> 14`:`<br> 15`:` 16`},Cu.text=function(e,t){return su(e[t].content)},Cu.html_block=function(e,t){return e[t].content},Cu.html_inline=function(e,t){return e[t].content};function wu(){this.rules=ql({},Cu)}wu.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return``;for(r=``,t=0,n=e.attrs.length;t<n;t++)r+=` `+su(e.attrs[t][0])+`="`+su(e.attrs[t][1])+`"`;return r},wu.prototype.renderToken=function(e,t,n){let r=e[t],i=``;if(r.hidden)return``;r.block&&r.nesting!==-1&&t&&e[t-1].hidden&&(i+=` 17`),i+=(r.nesting===-1?`</`:`<`)+r.tag,i+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(i+=` /`);let a=!1;if(r.block&&(a=!0,r.nesting===1&&t+1<e.length)){let n=e[t+1];(n.type===`inline`||n.hidden||n.nesting===-1&&n.tag===r.tag)&&(a=!1)}return i+=a?`> 18`:`>`,i},wu.prototype.renderInline=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r},wu.prototype.renderInlineAsText=function(e,t,n){let r=``;for(let i=0,a=e.length;i<a;
18i++)switch(e[i].type){case`text`:r+=e[i].content;break;case`image`:r+=this.renderInlineAsText(e[i].children,t,n);break;case`html_inline`:case`html_block`:r+=e[i].content;break;case`softbreak`:case`hardbreak`:r+=` 19`}return r},wu.prototype.render=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;o===`inline`?r+=this.renderInline(e[a].children,t,n):i[o]===void 0?r+=this.renderToken(e,a,t,n):r+=i[o](e,a,t,n,this)}return r};function Tu(){this.__rules__=[],this.__cache__=null}Tu.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Tu.prototype.__compile__=function(){let e=this,t=[``];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},Tu.prototype.at=function(e,t,n){let r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: `+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},Tu.prototype.before=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Tu.prototype.after=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Tu.prototype.push=function(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},Tu.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},Tu.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},Tu.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},Tu.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Eu(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content=``,this.markup=``,this.info=``,this.meta=null,this.block=!1,this.hidden=!1}Eu.prototype.attrIndex=function(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},Eu.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Eu.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},Eu.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},Eu.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t};function Du(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Du.prototype.Token=Eu;var Ou=/\r\n?|\n/g,ku=/\0/g;function Au(e){let t;t=e.src.replace(Ou,` 20`),t=t.replace(ku,`�`),e.src=t}function $(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function ju(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Mu(e){return/^<a[>\s]/i.test(e)}function Nu(e){return/^<\/a\s*>/i.test(e)}function Pu(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=0;for(let a=r.length-1;a>=0;a--){let o=r[a];if(o.type===`link_close`){for(a--;r[a].level!==o.level&&r[a].type!==`link_open`;)a--;continue}if(o.type===`html_inline`&&(Mu(o.content)&&i>0&&i--,Nu(o.content)&&i++),!(i>0)&&o.type===`text`&&e.md.linkify.test(o.content)){let i=o.content,s=e.md.linkify.match(i),c=[],l=o.level,u=0;s.length>0&&s[0].index===0&&a>0&&r[a-1].type===`text_special`&&(s=s.slice(1));for(let t=0;t<s.length;t++){let n=s[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let a=s[t].text;a=s[t].schema?s[t].schema===`mailto:`&&!/^mailto:/i.test(a)?e.md.normalizeLinkText(`mailto:`+a).replace(/^mailto:/,``):e.md.normalizeLinkText(a):e.md.normalizeLinkText(`http://`+a).replace(/^http:\/\//,``);let o=s[t].index;if(o>u){let t=new e.Token(`text`,``,0);t.content=i.slice(u,o),t.level=l,c.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=l++,d.markup=`linkify`,d.info=`auto`,c.push(d);let f=new e.Token(`text`,``,0);f.content=a,f.level=l,c.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--l,p.markup=`linkify`,p.info=`auto`,c.push(p),u=s[t].lastIndex}if(u<i.length){let t=new e.Token(`text`,``,0);t.content=i.slice(u),t.level=l,c.push(t)}t[n].children=r=Jl(r,a,c)}}}}var Fu=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Iu=/\((c|tm|r)\)/i,Lu=/\((c|tm|r)\)/gi,Ru={c:`©`,r:`®`,tm:`â¢`};function zu(e,t){return Ru[t.toLowerCase()]}function Bu(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(Lu,zu)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Vu(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&Fu.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`â¦`).replace(/([?!])â¦/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1â`).replace(/(^|\s)--(?=\s|$)/gm,`$1â`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1â`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Hu(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(Iu.test(e.tokens[t].content)&&Bu(e.tokens[t].children),Fu.test(e.tokens[t].content)&&Vu(e.tokens[t].children))}var Uu=/['"]/,Wu=/['"]/g,Gu=`â`;function Ku(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function qu(e,t){let n=``,r=0;t.sort((e,t)=>
20e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];n+=e.slice(r,a.pos)+a.ch,r=a.pos+1}return n+e.slice(r)}function Ju(e,t){let n,r=[],i={};for(let a=0;a<e.length;a++){let o=e[a],s=e[a].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,o.type!==`text`)continue;let c=o.content,l=0,u=c.length;OUTER:for(;l<u;){Wu.lastIndex=l;let o=Wu.exec(c);if(!o)break;let d=!0,f=!0;l=o.index+1;let p=o[0]===`'`,m=32;if(o.index-1>=0)m=c.charCodeAt(o.index-1);else for(n=a-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let h=32;if(l<u)h=c.charCodeAt(l);else for(n=a+1;n<e.length&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n++)if(e[n].content){h=e[n].content.charCodeAt(0);break}let g=mu(m)||pu(m),_=mu(h)||pu(h),v=du(m),y=du(h);if(y?d=!1:_&&(v||g||(d=!1)),v?f=!1:g&&(y||_||(f=!1)),h===34&&o[0]===`"`&&m>=48&&m<=57&&(f=d=!1),d&&f&&(d=g,f=_),!d&&!f){p&&Ku(i,a,o.index,Gu);continue}if(f)for(n=r.length-1;n>=0;n--){let e=r[n];if(r[n].level<s)break;if(e.single===p&&r[n].level===s){e=r[n];let s,c;p?(s=t.md.options.quotes[2],c=t.md.options.quotes[3]):(s=t.md.options.quotes[0],c=t.md.options.quotes[1]),Ku(i,a,o.index,c),Ku(i,e.token,e.pos,s),r.length=n;continue OUTER}}d?r.push({token:a,pos:o.index,single:p,level:s}):f&&p&&Ku(i,a,o.index,Gu)}}
vendor: 16,883 bytes, lines 20-21
20Object.keys(i).forEach(function(t){e[t].content=qu(e[t].content,i[t])})}function Yu(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!==`inline`||!Uu.test(e.tokens[t].content)||Ju(e.tokens[t].children,e)}function Xu(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var Zu=[[`normalize`,Au],[`block`,$],[`inline`,ju],[`linkify`,Pu],[`replacements`,Hu],[`smartquotes`,Yu],[`text_join`,Xu]];function Qu(){this.ruler=new Tu;for(let e=0;e<Zu.length;e++)this.ruler.push(Zu[e][0],Zu[e][1])}Qu.prototype.process=function(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)},Qu.prototype.State=Du;function $u(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=`root`,this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o){if(uu(s)){n++,s===9?r+=4-r%4:r++;continue}o=!0}(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}$u.prototype.push=function(e,t,n){let r=new Eu(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},$u.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},$u.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},$u.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&uu(this.src.charCodeAt(e));e++);return e},$u.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!uu(this.src.charCodeAt(--e)))return e+1;return e},$u.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},$u.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},$u.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],c=s,l;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];c<l&&e<n;){let t=this.src.charCodeAt(c);if(uu(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(c-s<this.tShift[o])e++;else break;c++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)},$u.prototype.Token=Eu;var ed=65536;function td(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function nd(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function rd(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!uu(s)||o===45&&uu(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!uu(t))return!1;a++}let c=td(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=td(e,t).trim(),c.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=nd(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=td(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=nd(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>ed))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}function id(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+` 21`,a.map=[t,e.line],!0}function ad(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function od(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(uu(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function sd(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!uu(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function cd(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!uu(e.src.charCodeAt(r))?-1:r}function ld(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<r&&(a=e.src.charCodeAt(i),!uu(a))?-1:i}function ud(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function dd(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=ld(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=cd(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=ld(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=cd(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&ud(e,h),!0}function fd(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!uu(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!uu(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&uu(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&uu(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=hu(c.slice(1,l));return _?r?!0:(e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d}),e.line=o,!0):!1}var pd=`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`.split(`.`),md=RegExp(`^(?:<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),hd=RegExp(`^(?:<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)`),gd=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+pd.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(hd.source+`\\s*$`),/^$/,!1]];function _d(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<gd.length&&!gd[s][0].test(o);s++);if(s===gd.length)return!1;if(r)return gd[s][2];let c=t+1,l=gd[s][1].test(``);if(!gd[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),gd[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function vd(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!uu(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&uu(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=_u(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function yd(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=_u(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function bd(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=_u(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var xd=[[`table`,rd,[`paragraph`,`reference`]],[`code`,id],[`fence`,ad,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,od,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,sd,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,dd,[`paragraph`,`reference`,`blockquote`]],[`reference`,fd],[`html_block`,_d,[`paragraph`,`reference`,`blockquote`]],[`heading`,vd,[`paragraph`,`reference`,`blockquote`]],[`lheading`,yd],[`paragraph`,bd]];function Sd(){this.ruler=new Tu;
21for(let e=0;e<xd.length;e++)this.ruler.push(xd[e][0],xd[e][1],{alt:(xd[e][2]||[]).slice()})}Sd.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},Sd.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},Sd.prototype.State=$u;function Cd(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Cd.prototype.pushPending=function(){let e=new Eu(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},Cd.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new Eu(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Cd.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else(s&64512)==56320&&(s=65533);let c=mu(i)||pu(i),l=mu(s)||pu(s),u=du(i),d=du(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},Cd.prototype.Token=Eu;function wd(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Td(e,t){let n=e.pos;for(;n<e.posMax&&!wd(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var Ed=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Dd(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(Ed);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));let l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,l]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}function Od(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&uu(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var kd=[];for(let e=0;e<256;e++)kd.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){kd[e.charCodeAt(0)]=1});function Ad(e,t){let n=e.pos,r=e.posMax;
21if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),uu(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let t=e.push(`text_special`,``,0);t.content=`\\`,t.markup=`\\`,t.info=`escape`}return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&kd[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function jd(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function Md(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Nd(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function Pd(e){let t=e.tokens_meta,n=e.tokens_meta.length;Nd(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Nd(e,t[r].delimiters)}var Fd={tokenize:Md,postProcess:Pd};function Id(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function Ld(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Rd(e){let t=e.tokens_meta,n=e.tokens_meta.length;Ld(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ld(e,t[r].delimiters)}var zd={tokenize:Id,postProcess:Rd};function Bd(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!uu(n)&&n!==10));m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),!(!uu(n)&&n!==10));m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),!(!uu(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;
vendor: 5,218 bytes, line 21
21if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||(r=e.src.slice(f,p)),a=e.env.references[hu(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function Vd(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),!(!uu(n)&&n!==10));a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),!(!uu(n)&&n!==10));a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),!(!uu(n)&&n!==10));a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||(i=e.src.slice(p,m)),o=e.env.references[hu(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var Hd=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Ud=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Wd(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(Ud.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(Hd.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function Gd(e){return/^<a[>\s]/i.test(e)}function Kd(e){return/^<\/a\s*>/i.test(e)}function qd(e){let t=e|32;return t>=97&&t<=122}function Jd(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!qd(i))return!1;let a=e.src.slice(r).match(md);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],Gd(t.content)&&e.linkLevel++,Kd(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var Yd=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Xd=/^&([a-z][a-z0-9]{1,31});/i;function Zd(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(Yd);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Yl(t)?Xl(t):Xl(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(Xd);if(r){let n=Hl(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function Qd(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function $d(e){let t=e.tokens_meta,n=e.tokens_meta.length;Qd(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Qd(t[e].delimiters)}function ef(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var tf=[[`text`,Td],[`linkify`,Dd],[`newline`,Od],[`escape`,Ad],[`backticks`,jd],[`strikethrough`,Fd.tokenize],[`emphasis`,zd.tokenize],[`link`,Bd],[`image`,Vd],[`autolink`,Wd],[`html_inline`,Jd],[`entity`,Zd]],nf=[[`balance_pairs`,$d],[`strikethrough`,Fd.postProcess],[`emphasis`,zd.postProcess],[`fragments_join`,ef]];function rf(){this.ruler=new Tu;
21for(let e=0;e<tf.length;e++)this.ruler.push(tf[e][0],tf[e][1]);this.ruler2=new Tu;for(let e=0;e<nf.length;e++)this.ruler2.push(nf[e][0],nf[e][1])}rf.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},rf.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},rf.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},rf.prototype.State=Cd;function af(e){let t={};e=e||{},t.src_Any=gl.source,t.src_Cc=_l.source,t.src_Z=xl.source,t.src_P=yl.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><ï½]`;return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function of(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function sf(e){return Object.prototype.toString.call(e)}function cf(e){return sf(e)===`[object String]`}function lf(e){return sf(e)===`[object Object]`}function uf(e){return sf(e)===`[object RegExp]`}function df(e){return sf(e)===`[object Function]`}function ff(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var pf={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function mf(e){return Object.keys(e||{}).reduce(function(e,t){return e||pf.hasOwnProperty(t)},!1)}var hf={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);
vendor: 7,626 bytes, line 21
21return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},gf=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,_f=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|ÑÑ`.split(`|`);function vf(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function yf(){return function(e,t){t.normalize(e)}}function bf(e){let t=e.re=af(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(gf),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,lf(n)){uf(n.validate)?r.validate=vf(n.validate):df(n.validate)?r.validate=n.validate:a(t,n),df(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=yf();return}if(cf(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:yf()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(ff).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function xf(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function Sf(e,t){if(!(this instanceof Sf))return new Sf(e,t);t||mf(e)&&(t=e,e={}),this.__opts__=of({},pf,t),this.__schemas__=of({},hf,e),this.__compiled__={},this.__tlds__=_f,this.__tlds_replaced__=!1,this.re={},bf(this)}Sf.prototype.add=function(e,t){return this.__schemas__[e]=t,bf(this),this},Sf.prototype.set=function(e){return this.__opts__=of(this.__opts__,e),this},Sf.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},Sf.prototype.pretest=function(e){return this.re.pretest.test(e)},Sf.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Sf.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function c(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(e))!==null;)o=this.testSchemaAt(e,a[2],s.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)r.push({schema:``,index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)i.push({schema:`mailto:`,index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],u=0;for(;;){let a=[n[l[0]],i[l[1]],r[l[2]]],o=c(c(a[0],a[1]),a[2]);if(!o)break;if(o===a[0]?l[0]++:o===a[1]?l[1]++:l[2]++,o.index<u)continue;let s=new xf(e,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),t.push(s),u=o.lastIndex}return t.length?t:null},Sf.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new xf(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},Sf.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),bf(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,bf(this),this)},Sf.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)},Sf.prototype.onCompile=function(){};var Cf=2147483647,wf=36,Tf=1,Ef=26,Df=38,Of=700,kf=72,Af=128,jf=`-`,Mf=/^xn--/,Nf=/[^\0-\x7F]/,Pf=/[\x2E\u3002\uFF0E\uFF61]/g,Ff={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},If=35,Lf=Math.floor,Rf=String.fromCharCode;function zf(e){throw RangeError(Ff[e])}function Bf(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Vf(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(Pf,`.`);let i=Bf(e.split(`.`),t).join(`.`);return r+i}function Hf(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var Uf=e=>String.fromCodePoint(...e),Wf=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:wf},Gf=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Kf=function(e,t,n){let r=0;for(e=n?Lf(e/Of):e>>1,e+=Lf(e/t);e>455;r+=wf)e=Lf(e/If);return Lf(r+36*e/(e+Df))},qf=function(e){let t=[],n=e.length,r=0,i=Af,a=kf,o=e.lastIndexOf(jf);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&zf(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=wf;;i+=wf){s>=n&&zf(`invalid-input`);let o=Wf(e.charCodeAt(s++));o>=wf&&zf(`invalid-input`),o>Lf((Cf-r)/t)&&zf(`overflow`),r+=o*t;let c=i<=a?Tf:i>=a+Ef?Ef:i-a;if(o<c)break;let l=wf-c;t>Lf(Cf/l)&&zf(`overflow`),t*=l}let c=t.length+1;a=Kf(r-o,c,o==0),Lf(r/c)>Cf-i&&zf(`overflow`),i+=Lf(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Jf=function(e){let t=[];e=Hf(e);let n=e.length,r=Af,i=0,a=kf;for(let n of e)n<128&&t.push(Rf(n));let o=t.length,s=o;
21for(o&&t.push(jf);s<n;){let n=Cf;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>Lf((Cf-i)/c)&&zf(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Cf&&zf(`overflow`),n===r){let e=i;for(let n=wf;;n+=wf){let r=n<=a?Tf:n>=a+Ef?Ef:n-a;if(e<r)break;let i=e-r,o=wf-r;t.push(Rf(Gf(r+i%o,0))),e=Lf(i/o)}t.push(Rf(Gf(e,0))),a=Kf(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},Yf={version:`2.3.1`,ucs2:{decode:Hf,encode:Uf},decode:qf,encode:Jf,toASCII:function(e){return Vf(e,function(e){return Nf.test(e)?`xn--`+Jf(e):e})},toUnicode:function(e){return Vf(e,function(e){return Mf.test(e)?qf(e.slice(4).toLowerCase()):e})}},Xf={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`ââââ`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`ââââ`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`ââââ`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},Zf=/^(vbscript|javascript|file|data):/,Qf=/^data:image\/(gif|png|jpeg|webp);/;function $f(e){let t=e.trim().toLowerCase();return!Zf.test(t)||Qf.test(t)}var ep=[`http:`,`https:`,`mailto:`];function tp(e){let t=ml(e,!0);if(t.hostname&&(!t.protocol||ep.indexOf(t.protocol)>=0))try{t.hostname=Yf.toASCII(t.hostname)}catch{}return tl(nl(t))}function np(e){let t=ml(e,!0);if(t.hostname&&(!t.protocol||ep.indexOf(t.protocol)>=0))try{t.hostname=Yf.toUnicode(t.hostname)}catch{}return Qc(nl(t),Qc.defaultChars+`%`)}function rp(e,t){if(!(this instanceof rp))return new rp(e,t);t||Gl(e)||(t=e||{},e=`default`),this.inline=new rf,this.block=new Sd,this.core=new Qu,this.renderer=new wu,this.linkify=new Sf,this.validateLink=$f,this.normalizeLink=tp,this.normalizeLinkText=np,this.utils=Ul,this.helpers=ql({},Su),this.options={},this.configure(e),t&&this.set(t)}rp.prototype.set=function(e){return ql(this.options,e),this},rp.prototype.configure=function(e){let t=this;if(Gl(e)){let t=e;if(e=Xf[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[
21n].ruler2.enableOnly(e.components[n].rules2)}),this},rp.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},rp.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},rp.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},rp.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},rp.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},rp.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},rp.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var ip=!1,ap={false:`push`,true:`unshift`,after:`push`,before:`unshift`},op={isPermalinkSymbol:!0};function sp(e,t,n,r){var i;if(!ip){var a=`Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks`;typeof process==`object`&&process&&process.emitWarning?process.emitWarning(a):console.warn(a),ip=!0}var o=[Object.assign(new n.Token(`link_open`,`a`,1),{attrs:[].concat(t.permalinkClass?[[`class`,t.permalinkClass]]:[],[[`href`,t.permalinkHref(e,n)]],Object.entries(t.permalinkAttrs(e,n)))}),Object.assign(new n.Token(`html_block`,``,0),{content:t.permalinkSymbol,meta:op}),new n.Token(`link_close`,`a`,-1)];t.permalinkSpace&&n.tokens[r+1].children[ap[t.permalinkBefore]](Object.assign(new n.Token(`text`,``,0),{content:` `})),(i=n.tokens[r+1].children)[ap[t.permalinkBefore]].apply(i,o)}function cp(e){return`#`+e}function lp(e){return{}}var up={class:`header-anchor`,symbol:`#`,renderHref:cp,renderAttrs:lp};function dp(e){function t(n){return n=Object.assign({},t.defaults,n),function(t,r,i,a){return e(t,n,r,i,a)}}return t.defaults=Object.assign({},up),t.renderPermalinkImpl=e,t}function fp(e){var t=[],n=e.filter(function(e){if(e[0]!==`class`)return!0;t.push(e[1])});return t.length>0&&n.unshift([`class`,t.join(` `)]),n}var pp=dp(function(e,t,n,r,i){var a,o=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:fp([].concat(t.class?[[`class`,t.class]]:[],[[`href`,t.renderHref(e,r)]],t.ariaHidden?[[`aria-hidden`,`true`]]:[],Object.entries(t.renderAttrs(e,r))))}),Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:op}),new r.Token(`link_close`,`a`,-1)];if(t.space){var s=typeof t.space==`string`?t.space:` `;r.tokens[i+1].children[ap[t.placement]](Object.assign(new r.Token(typeof t.space==`string`?`html_inline`:`text`,``,0),{content:s}))}(a=r.tokens[i+1].children)[ap[t.placement]].apply(a,o)});Object.assign(pp.defaults,{space:!0,placement:`after`,ariaHidden:!1});var mp=dp(pp.renderPermalinkImpl);mp.defaults=Object.assign({},pp.defaults,{ariaHidden:!0});var hp=dp(function(e,t,n,r,i){var a=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:fp([].concat(t.class?[[`class`,t.class]]:[],[[`href`,t.renderHref(e,r)]],Object.entries(t.renderAttrs(e,r))))})].concat(t.safariReaderFix?[new r.Token(`span_open`,`span`,1)]:[],r.tokens[i+1].children,t.safariReaderFix?[new r.Token(`span_close`,`span`,-1)]:[],[new r.Token(`link_close`,`a`,-1)]);r.tokens[i+1].children=a});Object.assign(hp.defaults,{safariReaderFix:!1});var gp=dp(function(e,t,n,r,i){var a;if(![`visually-hidden`,`aria-label`,`aria-describedby`,`aria-labelledby`].includes(t.style))throw Error("`permalink.linkAfterHeader` called with unknown style option `"+t.style+"`");if(![`aria-describedby`,`aria-labelledby`].includes(t.style)&&!t.assistiveText)throw Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+t.style+"` style");if(t.style===`visually-hidden`&&!t.visuallyHiddenClass)throw Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=r.tokens[i+1].children.filter(function(e){return e.type===`text`||e.type===`code_inline`}).reduce(function(e,t){return e+t.content},``),s=[],c=[];if(t.class&&c.push([`class`,t.class]),c.push([`href`,t.renderHref(e,r)]),c.push.apply(c,Object.entries(t.renderAttrs(e,r))),t.style===`visually-hidden`){if(s.push(Object.assign(new r.Token(`span_open`,`span`,1),{attrs:[[`class`,t.visuallyHiddenClass]]}),Object.assign(new r.Token(`text`,``,0),{content:t.assistiveText(o)}),new r.Token(`span_close`,`span`,-1)),t.space){var l=typeof t.space==`string`?t.space:` `;s[ap[t.placement]](Object.assign(new r.Token(typeof t.space==`string`?`html_inline`:`text`,``,0),{content:l}))}s[ap[t.placement]](Object.assign(new r.Token(`span_open`,`span`,1),{attrs:[[`aria-hidden`,`true`]]}),Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:op}),new r.Token(`span_close`,`span`,-1))}else s.push(Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:op}));t.style===`aria-label`?c.push([`aria-label`,t.assistiveText(o)]):[`aria-describedby`,`aria-labelledby`].includes(t.style)&&c.push([t.style,e]);var u=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:fp(c)})].concat(s,[new r.Token(`link_close`,`a`,-1)]);(a=r.tokens).splice.apply(a,[i+3,0].concat(u)),t.wrapper&&(r.tokens.splice(i,0,Object.assign(new r.Token(`html_block`,``,0),{content:t.wrapper[0]+` 22`})),r.tokens.splice(i+3+u.length+1,0,Object.assign(new r.Token(`html_block`,``,0),{content:t.wrapper[1]+` 23`})))});function _p(e,t,n,r){var i=e,a=r;if(n&&Object.prototype.hasOwnProperty.call(t,i))throw Error("User defined `id` attribute `"+e+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(t,i);)i=e+`-`+a,a+=1;return t[i]=!0,i}function vp(e,t){t=Object.assign({},vp.defaults,t),e.core.ruler.push(`anchor`,function(e){for(var n,r={},i=e.tokens,a=Array.isArray(t.level)?(n=t.level,function(e){return n.includes(e)}):function(e){return function(t){return t>=e}}(t.level),o=0;o<i.length;o++){var s=i[o];if(s.type===`heading_open`&&a(Number(s.tag.substr(1)))){var c=t.getTokensText(i[o+1].children),l=s.attrGet(`id`);l=l==null?_p(l=t.slugifyWithState?t.slugifyWithState(c,e):t.slugify(c),r,!1,t.uniqueSlugStartIndex):_p(l,r,!0,t.uniqueSlugStartIndex),s.attrSet(`id`,l),!1!==t.tabIndex&&s.attrSet(`tabindex`,``+t.tabIndex),typeof t.permalink==`function`?t.permalink(l,t,e,o):(t.permalink||t.renderPermalink&&t.renderPermalink!==sp)&&t.renderPermalink(l,t,e,o),o=i.indexOf(s),t.callback&&t.callback(s,{slug:l,title:c})}}})}Object.assign(gp.defaults,{style:`visually-hidden`,space:!0,placement:`after`,wrapper:null}),vp.permalink={__proto__:null,legacy:sp,renderHref:cp,renderAttrs:lp,makePermalink:dp,linkInsideHeader:pp,ariaHidden:mp,headerLink:hp,linkAfterHeader:gp},vp.defaults={level:1,slugify:function(e){return encodeURIComponent(String(e).trim().toLowerCase().replace(/\s+/g,`-`))},uniqueSlugStartIndex:1,tabIndex:`-1`,getTokensText:function(e){return e.filter(function(e){return[`text`,`code_inline`].includes(e.type)}).map(function(e){return e.content}).join(``)},permalink:!1,renderPermalink:sp,permalinkClass:mp.defaults.class,permalinkSpace:mp.defaults.space,permalinkSymbol:`¶`,permalinkBefore:mp.defaults.placement===`before`,permalinkHref:mp.defaults.renderHref,permalinkAttrs:mp.defaults.renderAttrs},vp.default=vp;var yp=(e,t)=>(n,r,i,a)=>
23{if(n.sCount[r]-n.blkIndent>=4||n.level!==0&&!t)return!1;let o=n.bMarks[r]+n.tShift[r],s=n.eMarks[r];if(n.src.charCodeAt(o)!==62)return!1;let c=o+1,l=n.sCount[r]+1,u=!1;n.src.charCodeAt(c)===32?(c++,l++):n.src.charCodeAt(c)===9&&((n.bsCount[r]+l)%4==3?(c++,l++):u=!0);let d=l;for(;c<s;){let e=n.src.charCodeAt(c);if(e===9)d+=4-(d+n.bsCount[r]+ +!!u)%4;else if(e===32)d++;else break;c++}if(d-l>=4||s-c<4||n.src.charCodeAt(c)!==91||n.src.charCodeAt(c+1)!==33)return!1;c+=2;let f=``;for(;c<s;){let e=n.src.charAt(c);if(e===`]`)break;f+=e,c++}if(c===s)return!1;let p=f.toLowerCase();if(!e.has(p)||(c=n.skipSpaces(c+1),c<s))return!1;let m=[],h=[],g=[],_=[],v=n.lineMax,y=n.parentType,b=[n.md.block.ruler.getRules(`blockquote`),n.md.block.ruler.getRules(`alert`)].flat();n.parentType=`alert`;let x=r,S=!1;for(;x<i;x++){let e=n.sCount[x]<n.blkIndent,t=n.bMarks[x]+n.tShift[x],r=n.eMarks[x];if(t>=r)break;if(n.src.charCodeAt(t++)===62&&!e){let e=n.sCount[x]+1,i=!1,o=!1;n.src.charCodeAt(t)===32?(t++,e++,i=!0):n.src.charCodeAt(t)===9&&(i=!0,(n.bsCount[x]+e)%4==3?(t++,e++):o=!0);let s=e;for(a||(m.push(n.bMarks[x]),n.bMarks[x]=t);t<r;){let e=n.src.charCodeAt(t);if(e===9)s+=4-(s+n.bsCount[x]+ +!!o)%4;else if(e===32)s++;else break;t++}S=t>=r,a||(h.push(n.bsCount[x]),n.bsCount[x]=n.sCount[x]+1+ +!!i,g.push(n.sCount[x]),n.sCount[x]=s-e,_.push(n.tShift[x]),n.tShift[x]=t-n.bMarks[x]);continue}if(S)break;let o=!1,s=b.length;for(let e=0;e<s;e++){let t=b[e];if(t(n,x,i,!0)){o=!0;break}}if(o){n.lineMax=x,n.blkIndent!==0&&!a&&(m.push(n.bMarks[x]),h.push(n.bsCount[x]),g.push(n.sCount[x]),_.push(n.tShift[x]),n.sCount[x]-=n.blkIndent);break}a||(m.push(n.bMarks[x]),h.push(n.bsCount[x]),g.push(n.sCount[x]),_.push(n.tShift[x]),n.sCount[x]=-1)}let C=()=>{n.lineMax=v,n.parentType=y;for(let e=0;e<_.length;e++)n.bMarks[e+r]=m[e],n.tShift[e+r]=_[e],n.sCount[e+r]=g[e],n.bsCount[e+r]=h[e]};if(r+1>=x)return a||C(),!1;if(a)return!0;let w=n.blkIndent;n.blkIndent=0;let ee=[r,r+1],T=[r+1,0],E=n.push(`alert_open`,`div`,1);E.markup=p,E.attrJoin(`class`,`markdown-alert markdown-alert-${p}`),E.map=T;let D=n.push(`alert_title`,``,0);D.attrJoin(`class`,`markdown-alert-title`),D.markup=p,D.content=f,D.map=ee,n.md.block.tokenize(n,r+1,x);let O=n.push(`alert_close`,`div`,-1);return O.markup=p,T[1]=n.line,n.blkIndent=w,C(),!0},bp=(e,{alertNames:t=[`tip`,`warning`,`caution`,`important`,`note`],deep:n=!1,openRender:r,closeRender:i,titleRender:a}={})=>{e.block.ruler.before(`blockquote`,`alert`,yp(new Set(t.map(e=>e.toLowerCase())),n),{alt:[`paragraph`,`reference`,`blockquote`,`list`]}),r&&(e.renderer.rules.alert_open=r),i&&(e.renderer.rules.alert_close=i),e.renderer.rules.alert_title=a??((e,t)=>{let n=e[t];return`<p class="markdown-alert-title">${n.content[0].toUpperCase()+n.content.slice(1).toLowerCase()}</p>\n`})};function xp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sp(e){if(Array.isArray(e))return e}function Cp(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function wp(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tp(e,t){return Sp(e)||Cp(e,t)||Ep(e,t)||wp()}function Ep(e,t){if(e){if(typeof e==`string`)return xp(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xp(e,t):void 0}}var Dp=Object.entries,Op=Object.setPrototypeOf,kp=Object.isFrozen,Ap=Object.getPrototypeOf,jp=Object.getOwnPropertyDescriptor,Mp=Object.freeze,Np=Object.seal,Pp=Object.create,Fp=typeof Reflect<`u`&&Reflect,Ip=Fp.apply,Lp=Fp.construct;Mp||(Mp=function(e){return e}),Np||(Np=function(e){return e}),Ip||(Ip=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)}),Lp||(Lp=function(e){return new e(...[...arguments].slice(1))});var Rp=im(Array.prototype.forEach),zp=im(Array.prototype.lastIndexOf),Bp=im(Array.prototype.pop),Vp=im(Array.prototype.push),Hp=im(Array.prototype.splice),Up=Array.isArray,Wp=im(String.prototype.toLowerCase),Gp=im(String.prototype.toString),Kp=im(String.prototype.match),qp=im(String.prototype.replace),Jp=im(String.prototype.indexOf),Yp=im(String.prototype.trim),Xp=im(Number.prototype.toString),Zp=im(Boolean.prototype.toString),Qp=typeof BigInt>`u`?null:im(BigInt.prototype.toString),$p=typeof Symbol>`u`?null:im(Symbol.prototype.toString),em=im(Object.prototype.hasOwnProperty),tm=im(Object.prototype.toString),nm=im(RegExp.prototype.test),rm=am(TypeError);function im(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Ip(e,t,n)}}function am(e){return function(){return Lp(e,[...arguments])}}function om(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wp;if(Op&&Op(e,null),!Up(t))return e;let r=t.length;for(;r--;){let i=t[r];
vendor: 6,638 bytes, line 24
24if(typeof i==`string`){let e=n(i);e!==i&&(kp(t)||(t[r]=e),i=e)}e[i]=!0}return e}function sm(e){for(let t=0;t<e.length;t++)em(e,t)||(e[t]=null);return e}function cm(e){let t=Pp(null);for(let r of Dp(e)){var n=Tp(r,2);let i=n[0],a=n[1];em(e,i)&&(t[i]=Up(a)?sm(a):a&&typeof a==`object`&&a.constructor===Object?cm(a):a)}return t}function lm(e){switch(typeof e){case`string`:return e;case`number`:return Xp(e);case`boolean`:return Zp(e);case`bigint`:return Qp?Qp(e):`0`;case`symbol`:return $p?$p(e):`Symbol()`;case`undefined`:return tm(e);case`function`:case`object`:{if(e===null)return tm(e);let t=e,n=um(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:tm(e)}return tm(e)}default:return tm(e)}}function um(e,t){for(;e!==null;){let n=jp(e,t);if(n){if(n.get)return im(n.get);if(typeof n.value==`function`)return im(n.value)}e=Ap(e)}function n(){return null}return n}function dm(e){try{return nm(e,``),!0}catch{return!1}}var fm=Mp(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),pm=Mp(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),mm=Mp([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),hm=Mp([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),gm=Mp(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),_m=Mp([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),vm=Mp([`#text`]),ym=Mp(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),bm=Mp(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),xm=Mp(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Sm=Mp([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Cm=Np(/{{[\w\W]*|^[\w\W]*}}/g),wm=Np(/<%[\w\W]*|^[\w\W]*%>/g),Tm=Np(/\${[\w\W]*/g),Em=Np(/^data-[\-\w.\u00B7-\uFFFF]+$/),Dm=Np(/^aria-[\-\w]+$/),Om=Np(/^(?:(?:(?
vendor: 4,579 bytes, line 24
24:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),km=Np(/^(?:\w+script|data):/i),Am=Np(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jm=Np(/^html$/i),Mm=Np(/^[a-z][.\w]*(-[.\w]+)+$/i),Nm=Np(/<[/\w!]/g),Pm=Np(/<[/\w]/g),Fm=Np(/<\/no(script|embed|frames)/i),Im=Np(/\/>/i),Lm={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Rm=function(){return typeof window>`u`?null:window},zm=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Bm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Vm=function(e,t,n,r){return em(e,t)&&Up(e[t])?om(r.base?cm(r.base):{},e[t],r.transform):n};function Hm(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rm(),t=e=>Hm(e);if(t.version=`3.4.13`,t.removed=[],!e||!e.document||e.document.nodeType!==Lm.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=um(d,`cloneNode`),p=um(d,`remove`),m=um(d,`nextSibling`),h=um(d,`childNodes`),g=um(d,`parentNode`),_=um(d,`shadowRoot`),v=um(d,`attributes`),y=o&&o.prototype?um(o.prototype,`nodeType`):null,b=o&&o.prototype?um(o.prototype,`nodeName`):null,x=o&&o.prototype?um(o.prototype,`ownerDocument`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w,ee=!1,T=0,E=function(){if(T>0)throw rm(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},D=function(e){E(),T++;try{return S.createHTML(e)}finally{T--}},O=function(e){E(),T++;try{return S.createScriptURL(e)}finally{T--}},k=function(){return ee||(w=zm(u,i),ee=!0),w},A=n,j=A.implementation,M=A.createNodeIterator,te=A.createDocumentFragment,N=A.getElementsByTagName,ne=r.importNode,P=Bm();t.isSupported=typeof Dp==`function`&&typeof g==`function`&&j&&j.createHTMLDocument!==void 0;let re=Cm,ie=wm,ae=Tm,oe=Em,se=Dm,ce=km,le=Am,ue=Mm,de=Om,fe=null,pe=om({},[...fm,...pm,...mm,...gm,...vm]),me=null,he=om({},[...ym,...bm,...xm,...Sm]),F=Object.seal(Pp(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ge=null,I=null,_e=Object.seal(Pp(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ve=!0,ye=!0,be=!1,xe=!0,L=!1,Se=!0,Ce=!1,we=!1,Te=null,Ee=null,De=!1,Oe=!1,ke=!1,Ae=!1,je=!0,Me=!1,Ne=`user-content-`,Pe=!0,Fe=!1,R={},Ie=null,Le=om({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Re=null,ze=om({},[`audio`,`video`,`img`,`source`,`image`,`track`]),z=null,Be=om({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ve=`http://www.w3.org/1998/Math/MathML`,He=`http://www.w3.org/2000/svg`,Ue=`http://www.w3.org/1999/xhtml`,We=Ue,Ge=!1,Ke=null,qe=om({},[Ve,He,Ue],Gp),Je=Mp([`mi`,`mo`,`mn`,`ms`,`mtext`]),Ye=om({},Je),Xe=Mp([`annotation-xml`]),Ze=om({},Xe),Qe=om({},[`title`,`style`,`font`,`a`,`script`]),$e=null,et=[`application/xhtml+xml`,`text/html`],B=null,tt=null,nt=n.createElement(`form`),rt=function(e){return e instanceof RegExp||e instanceof Function},it=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(tt&&tt===e)return;(!e||typeof e!=`object`)&&(e={}
vendor: 14,726 bytes, lines 24-25
24),e=cm(e),$e=et.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,B=$e===`application/xhtml+xml`?Gp:Wp,fe=Vm(e,`ALLOWED_TAGS`,pe,{transform:B}),me=Vm(e,`ALLOWED_ATTR`,he,{transform:B}),Ke=Vm(e,`ALLOWED_NAMESPACES`,qe,{transform:Gp}),z=Vm(e,`ADD_URI_SAFE_ATTR`,Be,{transform:B,base:Be}),Re=Vm(e,`ADD_DATA_URI_TAGS`,ze,{transform:B,base:ze}),Ie=Vm(e,`FORBID_CONTENTS`,Le,{transform:B}),ge=Vm(e,`FORBID_TAGS`,cm({}),{transform:B}),I=Vm(e,`FORBID_ATTR`,cm({}),{transform:B}),R=em(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?cm(e.USE_PROFILES):e.USE_PROFILES:!1,ve=e.ALLOW_ARIA_ATTR!==!1,ye=e.ALLOW_DATA_ATTR!==!1,be=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,L=e.SAFE_FOR_TEMPLATES||!1,Se=e.SAFE_FOR_XML!==!1,Ce=e.WHOLE_DOCUMENT||!1,Oe=e.RETURN_DOM||!1,ke=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,je=e.SANITIZE_DOM!==!1,Me=e.SANITIZE_NAMED_PROPS||!1,Pe=e.KEEP_CONTENT!==!1,Fe=e.IN_PLACE||!1,de=dm(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Om,We=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ue,Ye=em(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?cm(e.MATHML_TEXT_INTEGRATION_POINTS):om({},Je),Ze=em(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?cm(e.HTML_INTEGRATION_POINTS):om({},Xe);let t=em(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?cm(e.CUSTOM_ELEMENT_HANDLING):Pp(null);if(F=Pp(null),em(t,`tagNameCheck`)&&rt(t.tagNameCheck)&&(F.tagNameCheck=t.tagNameCheck),em(t,`attributeNameCheck`)&&rt(t.attributeNameCheck)&&(F.attributeNameCheck=t.attributeNameCheck),em(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(F.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Np(F),L&&(ye=!1),ke&&(Oe=!0),R&&(fe=om({},vm),me=Pp(null),R.html===!0&&(om(fe,fm),om(me,ym)),R.svg===!0&&(om(fe,pm),om(me,bm),om(me,Sm)),R.svgFilters===!0&&(om(fe,mm),om(me,bm),om(me,Sm)),R.mathMl===!0&&(om(fe,gm),om(me,xm),om(me,Sm))),_e.tagCheck=null,_e.attributeCheck=null,em(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?_e.tagCheck=e.ADD_TAGS:Up(e.ADD_TAGS)&&(fe===pe&&(fe=cm(fe)),om(fe,e.ADD_TAGS,B))),em(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?_e.attributeCheck=e.ADD_ATTR:Up(e.ADD_ATTR)&&(me===he&&(me=cm(me)),om(me,e.ADD_ATTR,B))),em(e,`ADD_URI_SAFE_ATTR`)&&Up(e.ADD_URI_SAFE_ATTR)&&om(z,e.ADD_URI_SAFE_ATTR,B),em(e,`FORBID_CONTENTS`)&&Up(e.FORBID_CONTENTS)&&(Ie===Le&&(Ie=cm(Ie)),om(Ie,e.FORBID_CONTENTS,B)),em(e,`ADD_FORBID_CONTENTS`)&&Up(e.ADD_FORBID_CONTENTS)&&(Ie===Le&&(Ie=cm(Ie)),om(Ie,e.ADD_FORBID_CONTENTS,B)),Pe&&(fe[`#text`]=!0),Ce&&om(fe,[`html`,`head`,`body`]),fe.table&&(om(fe,[`tbody`]),delete ge.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw rm(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw rm(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{C=D(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,C=``):(S===void 0&&(S=k()),S&&typeof C==`string`&&(C=D(``)));Mp&&Mp(e),tt=e},at=om({},[...pm,...mm,...hm]),ot=om({},[...gm,..._m]),st=function(e,t,n){return t.namespaceURI===Ue?e===`svg`:t.namespaceURI===Ve?e===`svg`&&(n===`annotation-xml`||Ye[n]):!!at[e]},ct=function(e,t,n){return t.namespaceURI===Ue?e===`math`:t.namespaceURI===He?e===`math`&&Ze[n]:!!ot[e]},lt=function(e,t,n){return t.namespaceURI===He&&!Ze[n]||t.namespaceURI===Ve&&!Ye[n]?!1:!ot[e]&&(Qe[e]||!at[e])},ut=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:We,tagName:`template`});let n=Wp(e.tagName),r=Wp(t.tagName);return Ke[e.namespaceURI]?e.namespaceURI===He?st(n,t,r):e.namespaceURI===Ve?ct(n,t,r):e.namespaceURI===Ue?lt(n,t,r):!!($e===`application/xhtml+xml`&&Ke[e.namespaceURI]):!1},dt=function(e){Vp(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw rm(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},ft=function(e){ht(e);let t=h(e);if(t){let e=[];Rp(t,t=>{Vp(e,t)}),Rp(e,e=>{try{p(e)}catch{}})}let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},pt=function(e,n){try{Vp(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Vp(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`){if(Oe||ke)try{dt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},mt=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||me[B(i)]))try{e.removeAttribute(i)}catch{}}},ht=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(y?y(e):e.nodeType)===Lm.element&&mt(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},gt=function(e){if(!Se)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=y?y(e):e.nodeType;if(n===Lm.processingInstruction||n===Lm.comment&&nm(Pm,e.data)){try{p(e)}catch{}continue}if(n===Lm.element){let t=e,n=B(b?b(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=h(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},_t=function(e){let t=null,r=null;if(De)e=`<remove></remove>`+e;else{let t=Kp(e,/^[\r\n\t ]+/);r=t&&t[0]}$e===`application/xhtml+xml`&&We===Ue&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?D(e):e;if(We===Ue)try{t=new l().parseFromString(i,$e)}catch{}if(!t||!t.documentElement){t=j.createDocument(We,`template`,null);try{t.documentElement.innerHTML=Ge?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),We===Ue?N.call(t,Ce?`html`:`body`)[0]:Ce?t.documentElement:a},vt=function(e){let t=x?x(e):e.ownerDocument;return M.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},yt=function(e){return e=qp(e,re,` `),e=qp(e,ie,` `),e=qp(e,ae,` `),e},bt=function(e){e.normalize();let t=x?x(e):e.ownerDocument,n=M.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=yt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&Rp(i,e=>{St(e.content)&&bt(e.content)})},xt=function(e){let t=b?b(e):null;return typeof t!=`string`||B(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},St=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===Lm.documentFragment}catch{return!1}},Ct=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function wt(e,n,r){e.length!==0&&Rp(e,e=>{e.call(t,n,r,tt)})}let Tt=function(e,t){return!!(Se&&e.hasChildNodes()&&!Ct(e.firstElementChild)&&nm(Nm,e.textContent)&&nm(Nm,e.innerHTML)||Se&&e.namespaceURI===Ue&&t===`style`&&Ct(e.firstElementChild)||e.nodeType===Lm.processingInstruction||Se&&e.nodeType===Lm.comment&&nm(Pm,e.data))},Et=function(e,t,n){if(!ge[t]&&jt(t)&&(F.tagNameCheck instanceof RegExp&&nm(F.tagNameCheck,t)||F.tagNameCheck instanceof Function&&F.tagNameCheck(t)))return!1;if(Pe&&!Ie[t]){let t=g(e),r=h(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,m(e))}}}return dt(e),!0},Dt=function(e,t,n,r){return e.length===0?t:t===n||t===r?cm(t):t},Ot=function(e,n){if(wt(P.beforeSanitizeElements,e,null),e!==n&&g(e)===null)return Fe&&ht(e),!0;if(xt(e))return dt(e),!0;let r=B(b?b(e):e.nodeName);if(fe=Dt(P.uponSanitizeElement,fe,pe,Te),wt(P.uponSanitizeElement,e,{tagName:r,allowedTags:fe}),e!==n&&g(e)===null)return Fe&&ht(e),!0;if(Tt(e,r))return dt(e),!0;if(ge[r]||!(_e.tagCheck instanceof Function&&_e.tagCheck(r))&&!fe[r]){let t=Et(e,r,n);return t===!1&&wt(P.afterSanitizeElements,e,null),t}if((y?y(e):e.nodeType)===Lm.element&&!ut(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&nm(Fm,e.innerHTML))return dt(e),!0;if(L&&e.nodeType===Lm.text){let n=yt(e.textContent);e.textContent!==n&&(Vp(t.removed,{element:e.cloneNode()}),e.textContent=n)}return wt(P.afterSanitizeElements,e,null),!1},kt=function(e,t,r){if(I[t]||Se&&t===`patchsrc`||Se&&t===`for`&&e!==`label`&&e!==`output`||je&&(t===`id`||t===`name`)&&(r in n||r in nt))return!1;let i=me[t]||_e.attributeCheck instanceof Function&&_e.attributeCheck(t,e);if(!(ye&&nm(oe,t))&&!(ve&&nm(se,t))){if(!i){if(!(jt(e)&&(F.tagNameCheck instanceof RegExp&&nm(F.tagNameCheck,e)||F.tagNameCheck instanceof Function&&F.tagNameCheck(e))&&(F.attributeNameCheck instanceof RegExp&&nm(F.attributeNameCheck,t)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(t,e))||t===`is`&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&nm(F.tagNameCheck,r)||F.tagNameCheck instanceof Function&&F.tagNameCheck(r))))return!1}else if(!z[t]&&!nm(de,qp(r,le,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Jp(r,`data:`)===0&&Re[e])&&!(be&&!nm(ce,qp(r,le,``)))&&r)return!1}return!0},At=om({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),jt=function(e){return!At[Wp(e)]&&nm(ue,e)},Mt=function(e,t,n,r){if(S&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return D(r);case`TrustedScriptURL`:return O(r)}return r},Nt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),xt(e)?dt(e):Bp(t.removed)}catch{pt(n,e)}},Pt=function(e){wt(P.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||xt(e))return;me=Dt(P.uponSanitizeAttribute,me,he,Ee);let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:me,forceKeepAttr:void 0},r=t.length,i=B(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=B(o),u=c,d=o===`value`?u:Yp(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,wt(P.uponSanitizeAttribute,e,n),d=n.attrValue,Me&&(l===`id`||l===`name`)&&Jp(d,Ne)!==0&&(pt(o,e),d=Ne+d),Se&&nm(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){pt(o,e);continue}if(l===`attributename`&&Kp(d,`href`)){pt(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){pt(o,e);continue}if(!xe&&nm(Im,d)){pt(o,e);continue}if(L&&(d=yt(d)),!kt(i,l,d)){pt(o,e);continue}d=Mt(i,l,s,d),d!==u&&Nt(e,o,s,d)}}wt(P.afterSanitizeAttributes,e,null)},Ft=function(e){let t=null,n=vt(e);for(wt(P.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(wt(P.uponSanitizeShadowNode,t,null),Ot(t,e),Pt(t),St(t.content)&&Ft(t.content),(y?y(t):t.nodeType)===Lm.element){let e=_(t);St(e)&&(It(e),Ft(e))}wt(P.afterSanitizeShadowDOM,e,null)},It=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Ft(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===Lm.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&&B(e)===`template`){let e=n.content;St(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);St(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ge=!e,Ge&&(e=`<!-->`),typeof e!=`string`&&!Ct(e)&&(e=lm(e),typeof e!=`string`))throw rm(`dirty is not a string, aborting`);if(!t.isSupported)return e;we?(fe=Te,me=Ee):it(n),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(fe=cm(fe)),P.uponSanitizeAttribute.length>0&&(me=cm(me)),t.removed=[];let c=Fe&&typeof e!=`string`&&Ct(e);if(c){gt(e);let t=b?b(e):e.nodeName;if(typeof t==`string`){let n=B(t);if(!fe[n]||ge[n])throw ft(e),rm(`root node is forbidden and cannot be sanitized in-place`)}if(xt(e))throw ft(e),rm(`root node is clobbered and cannot be sanitized in-place`);try{It(e)}catch(t){throw ft(e),t}}else if(Ct(e))i=_t(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Lm.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),It(a);else{if(!Oe&&!L&&!Ce&&e.indexOf(`<`)===-1)return S&&Ae?D(e):e;if(i=_t(e),!i)return Oe?null:Ae?C:``}i&&De&&dt(i.firstChild);let l=c?e:i;try{let e=vt(l);for(;o=e.nextNode();)Ot(o,l),Pt(o),St(o.content)&&Ft(o.content)}catch(n){throw c&&(ft(e),Rp(t.removed,e=>{e.element&&ht(e.element)})),n}if(c)return Rp(t.removed,e=>{e.element&&ht(e.element)}),L&&bt(e),e;if(Oe){if(L&&bt(i),ke)for(s=te.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(me.shadowroot||me.shadowrootmode)&&(s=ne.call(r,s,!0)),s}let u=Ce?i.outerHTML:i.innerHTML;return Ce&&fe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&nm(jm,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`> 25`+u),L&&(u=yt(u)),S&&Ae?D(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};it(e),we=!0,Te=fe,Ee=me},t.clearConfig=function(){tt=null,we=!1,Te=null,Ee=null,S=w,C=``},t.isValidAttribute=function(e,t,n){tt||it({});let r=B(e),i=B(t);return kt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&em(P,e)&&Vp(P[e],t)},t.removeHook=function(e,t){if(em(P,e)){if(t!==void 0){let n=zp(P[e],t);return n===-1?void 0:Hp(P[e],n,1)[0]}return Bp(P[e])}},t.removeHooks=function(e){em(P,e)&&(P[e]=[])},t.removeAllHooks=function(){P=Bm()},t}var Um=Hm();function Wm(e){return`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="${e.x} ${e.y} ${e.width} ${e.height}"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>`}var Gm=P(`div`)(({theme:e})=>({"& > :first-of-type":{marginTop:0},"& a":{textDecoration:`none`,color:e.palette.secondary.main,"&:hover":{textDecoration:`underline`}},"& a.header-anchor":{fill:e.palette.textHint,opacity:.4,marginLeft:e.spacing(.5),"&:hover":{opacity:1}},"& kbd":{borderRadius:e.spacing(3),backgroundColor:e.palette.neutral.light,margin:e.spacing(2),fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize-1,padding:`2px 7px 2px 7px`,fontWeight:500,display:`inline-block`},"& img":{maxWidth:`100%`}
25,"& code":{whiteSpace:`pre`,backgroundColor:e.palette.neutral.light,padding:2},"& h2":{borderBottom:`1px solid #eee`},"& pre":{background:e.palette.neutral.light,padding:`10px 5px`,overflow:`auto`,"& code":{padding:0,background:`inherit`}},"& table":{borderCollapse:`collapse`,borderSpacing:0,display:`block`,overflowX:`auto`,"& tr, & td, & th":{border:`1px solid #ddd`},"& td, & th":{padding:`6px 8px`},"& th":{textAlign:`start`,background:e.palette.neutral.dark}},"& .markdown-alert":{padding:`8px 16px`,marginBottom:16,borderLeft:`4px solid`,borderRadius:4,"& .markdown-alert-title":{display:`flex`,alignItems:`center`,fontWeight:600,marginBottom:4,"& svg":{marginRight:8,width:16,height:16}},"& .markdown-alert-title:before":{content:`" "`,width:`16px`,height:`16px`,marginRight:`8px`},"& p":{margin:0}},"& .markdown-alert-note":{borderColor:`#2f81f7`,backgroundColor:`rgba(47, 129, 247, 0.1)`,"& .markdown-alert-title":{color:`#2f81f7`},"& .markdown-alert-title::before":{content:`url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232f81f7' d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E")`}},"& .markdown-alert-tip":{borderColor:`#3fb950`,backgroundColor:`rgba(63, 185, 80, 0.1)`,"& .markdown-alert-title":{color:`#3fb950`},"& .markdown-alert-title::before":{content:`url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%233fb950' d='M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z'/%3E%3C/svg%3E")`}},"& .markdown-alert-important":{borderColor:`#a371f7`,backgroundColor:`rgba(163, 113, 247, 0.1)`,"& .markdown-alert-title":{color:`#a371f7`},"& .markdown-alert-title::before":{content:`url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23a371f7' d='M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z'/%3E%3C/svg%3E ")`}},"& .markdown-alert-warning":{borderColor:`#d29922`,backgroundColor:`rgba(210, 153, 34, 0.1)`,"& .markdown-alert-title":{color:`#d29922`},"& .markdown-alert-title::before":{content:`url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23d29922' d='M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z'/%3E%3C/svg%3E")`}},"& .markdown-alert-caution":{borderColor:`#f85149`,backgroundColor:`rgba(248, 81, 73, 0.1)`,"& .markdown-alert-title":{color:`#f85149`},"& .markdown-alert-title::before":{content:`url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23f85149' d='M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E")`}}}
25)),Km=({content:e,sanitize:t,linkify:n})=>{let r=new rp({html:!0,linkify:!0,typographer:!0});if(r.use(bp),n===void 0||n){let e=vp;r.use(e,{permalink:e.permalink.linkInsideHeader({symbol:Wm({x:0,y:0,width:24,height:10})})})}let{hash:i}=Ue();(0,K.useEffect)(()=>{if(i&&i.length>1){let e=document.getElementById(i.substring(1));e&&e.scrollIntoView()}},[]);let a=r.render(e),o=t===void 0||t?Um.sanitize(a):a;return(0,Y.jsx)(Gm,{dangerouslySetInnerHTML:{__html:o}})},qm=e=>{let[t,n]=(0,K.useState)(null),r=e=>{n(e.currentTarget)},i=()=>{n(null)};return(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`},children:[(0,Y.jsx)(g,{variant:`contained`,color:`secondary`,sx:{mt:2},title:`Download`,"aria-label":`Download`,onClick:r,children:`Download`}),(0,Y.jsx)(ft,{open:!!t,anchorEl:t,transformOrigin:{vertical:`top`,horizontal:`left`},sx:{mt:1},onClose:i,children:Object.keys(e.downloads).map(t=>{let n=e.downloads[t];return(0,Y.jsx)(H,{component:U,href:n,onClick:i,sx:{textDecoration:`none`},children:(0,Y.jsx)(u,{variant:`body2`,color:`text.primary`,children:Yn(t)})},t)})})]})},Jm=e=>{let[t,n]=(0,K.useState)(!0),[r,i]=(0,K.useState)(``),{pageSettings:a,service:o,handleError:c}=(0,K.useContext)(I),l=We(),d=Ge(),f=(0,K.useRef)(new AbortController),p=(0,K.useMemo)(()=>{let t=e.extension.engines;if(t==null)return null;let n=Object.keys(t).map(e=>({key:e,name:Wn(e),version:t[e]})).filter(e=>e.name);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(z,{item:!0,xs:`auto`,children:(0,Y.jsx)(St,{spacing:.5,children:n.map(e=>(0,Y.jsxs)(s,{component:`span`,sx:{color:`primary.dark`,fontWeight:`fontWeightBold`},children:[e.name,`:`]},e.key))})}),(0,Y.jsx)(z,{item:!0,xs:!0,children:(0,Y.jsx)(St,{spacing:.5,children:n.map(e=>(0,Y.jsx)(s,{component:`span`,children:e.version},e.key))})})]})},[e.extension.engines]),m=(0,K.useMemo)(()=>(0,Y.jsxs)(z,{item:!0,xs:12,children:[(0,Y.jsxs)(s,{component:`span`,sx:{color:`primary.dark`,fontWeight:`fontWeightBold`},children:[`Target Platforms:`,` `]}),Object.keys(e.extension.downloads).map((e,t)=>{let n=Yn(e);return n?(0,Y.jsxs)(`span`,{children:[t>0?`, `:``,n]},e):null})]}),[e.extension.downloads]);(0,K.useEffect)(()=>(n(!0),h(),()=>f.current.abort()),[e.extension.namespace,e.extension.name,e.extension.version]);let h=async()=>{if(e.extension.files.readme)try{let t=await o.getExtensionReadme(f.current,e.extension);i(t),n(!1)}catch(e){c(e),n(!1)}else i(`## No README available`),n(!1)},_=()=>{let{extension:t}=e,n=Object.keys(t.allVersions).filter(e=>Qt.indexOf(e)<0);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(u,{variant:`h6`,children:`Version`}),n.length===1?(0,Y.jsx)(u,{variant:`body1`,display:`inline`,children:n[0]}):(0,Y.jsx)(fa,{name:`Version`,value:t.version,onChange:t=>e.selectVersion(t.target.value),inputProps:{"aria-label":`Version`},children:n.map(e=>(0,Y.jsx)(`option`,{children:e},e))}),t.preRelease?(0,Y.jsx)(s,{component:`span`,sx:{color:`primary.dark`,fontStyle:`italic`,ml:2,p:`4px`},children:`(pre-release version)`}):``,t.timestamp?(0,Y.jsxs)(s,{mt:1,mb:1,children:[`Published `,(0,Y.jsx)(An,{value:t.timestamp})]}):null]})},v=()=>(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(u,{variant:`h6`,children:`Unique Identifier`}),(0,Y.jsx)(u,{variant:`body2`,children:(0,Y.jsx)(`code`,{children:`${w.namespace}.${w.name}`})})]}),y=(t,n)=>{let{extension:r}=e,i=t.length?t.map(e=>{let t=[qt.ROOT,r.namespace,r.name];l.target&&t.push(l.target),e!==`latest`&&t.push(e);let i=G(t);return(0,Y.jsx)(g,{sx:n,size:`small`,variant:`outlined`,title:`Switch to version with "${e}" alias`,onClick:()=>d(i),children:e},e)}):``;return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(u,{variant:`h6`,children:[`Version Alias`,r.versionAlias.length>1?`es`:``]}),r.versionAlias.map((e,t)=>(0,Y.jsxs)(s,{component:`span`,sx:{color:`primary.dark`,fontWeight:`fontWeightBold`},children:[t>0?`, `:``,e]},e)),i?(0,Y.jsxs)(Y.Fragment,{children:[r.versionAlias.length>0?` `:``,`Switch to `,i]}):``]})},b=(e,t,n,r)=>{let i=Array.from(new Set(n)).sort((e,t)=>e.localeCompare(t));return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(u,{variant:`h6`,children:t}),i.map(t=>(0,Y.jsx)(g,{sx:r,size:`small`,variant:`outlined`,title:e===`category`?`Search for extensions in "${t}" category`:`Search for extensions containing "${t}"`,onClick:()=>{let n=$n(is.MAIN,[{key:e,value:t}]);d(n)},children:t},t))]})},x=(e,t,n)=>{if(!n||!(n.startsWith(`http`)||n.startsWith(`mailto`)))return``;let r;return e===`Homepage`?r=(0,Y.jsx)(qc,{fontSize:`small`}):e===`Repository`&&n.startsWith(`https://github.com/`)?r=(0,Y.jsx)(Nn,{fontSize:`small`}):e===`Bugs`?r=(0,Y.jsx)(Jc,{fontSize:`small`}):e===`Q'n'A`&&(r=(0,Y.jsx)(Yc,{fontSize:`small`})),(0,Y.jsx)(s,{children:(0,Y.jsxs)(U,{href:n,target:`_blank`,variant:`body2`,color:`secondary`,underline:`hover`,sx:t,children:[r,`\xA0`,e]})})},S=P(R)(({theme:e})=>({textDecoration:`none`,color:e.palette.text.primary,"&:hover":{textDecoration:`underline`}})),C=e=>(0,Y.jsx)(s,{children:(0,Y.jsxs)(S,{to:G([qt.ROOT,e.namespace,e.extension]),children:[e.namespace,`.`,e.extension]})},`${e.namespace}.${e.extension}`);if(!r)return(0,Y.jsx)(Re,{loading:t});let{extension:w}=e,ee={fontWeight:`normal`,textTransform:`none`,mr:.5,mb:.5,padding:`1px 6px`},T={display:`flex`,alignItems:`center`,mt:.5},E={display:`flex`,flexDirection:`column`},D=a.elements.claimNamespace,O=a.elements.reportAbuse,k=a.elements.downloadTerms,A=Object.keys(w.allVersions).filter(e=>w.versionAlias.indexOf(e)<0&&Qt.indexOf(e)>=0),j=w.tags?.filter(e=>!e.startsWith(`__`)),M=null;return w.downloadable&&w.downloads&&Object.keys(w.downloads).length>1?M=(0,Y.jsx)(qm,{downloads:w.downloads}):w.downloadable&&w.downloads&&Object.keys(w.downloads).length==1&&(M=(0,Y.jsx)(g,{variant:`contained`,color:`secondary`,sx:{mt:2},href:w.downloads[Object.keys(w.downloads)[0]],children:`Download`})),(0,Y.jsxs)(s,{sx:{display:`flex`,gap:4,flexDirection:{xs:`column-reverse`,md:`row`}},children:[(0,Y.jsx)(s,{flex:5,sx:{minWidth:0,overflow:`auto`}
25,children:(0,Y.jsx)(Km,{content:r})}),(0,Y.jsxs)(s,{sx:{flex:1,display:`flex`,width:`100%`,minWidth:{xs:0,md:`290px`},gap:2,flexDirection:`column`},children:[(0,Y.jsxs)(s,{sx:E,children:[(0,Y.jsx)(s,{children:_()}),A.length||w.versionAlias.length?(0,Y.jsx)(s,{children:y(A,ee)}):``]}),(0,Y.jsx)(s,{sx:E,children:(0,Y.jsx)(s,{children:v()})}),(0,Y.jsxs)(s,{sx:E,children:[w.categories&&w.categories.length>0?(0,Y.jsx)(s,{children:b(`category`,`Categories`,w.categories,ee)}):null,j&&j.length>0?(0,Y.jsx)(s,{mt:w.categories&&w.categories.length>0?2:0,children:b(`search`,`Tags`,j,ee)}):null]}),w.downloads?(0,Y.jsx)(s,{sx:E,children:(0,Y.jsxs)(s,{children:[(0,Y.jsx)(u,{variant:`h6`,children:`Works With`}),(0,Y.jsxs)(z,{container:!0,spacing:.5,children:[p,m]})]})}):null,(0,Y.jsxs)(s,{sx:E,children:[(0,Y.jsxs)(s,{children:[(0,Y.jsx)(u,{variant:`h6`,children:`Resources`}),x(`Homepage`,T,w.homepage),x(`Repository`,T,w.repository),x(`Bugs`,T,w.bugs),x(`Q'n'A`,T,w.qna),M,k&&w.downloadable&&w.downloads&&Object.keys(w.downloads).length>0?(0,Y.jsx)(k,{}):null]}),w.bundledExtensions!==void 0&&w.bundledExtensions.length>0?(0,Y.jsxs)(s,{mt:2,children:[(0,Y.jsx)(u,{variant:`h6`,children:`Bundled Extensions`}),w.bundledExtensions.map(e=>C(e))]}):null,w.dependencies!==void 0&&w.dependencies.length>0?(0,Y.jsxs)(s,{mt:2,children:[(0,Y.jsx)(u,{variant:`h6`,children:`Dependencies`}),w.dependencies.map(e=>C(e))]}):null,(0,Y.jsxs)(s,{mt:2,children:[D?(0,Y.jsx)(D,{namespace:w.namespace,extension:w,sx:T}):``,O?(0,Y.jsx)(O,{extension:w,sx:T}):``]})]})]})]})},Ym=e=>{let[t,n]=(0,K.useState)(),[r,i]=(0,K.useState)(!0),a=(0,K.useContext)(I),o=(0,K.useRef)(new AbortController);(0,K.useEffect)(()=>(i(!0),c(),()=>o.current.abort()),[e.extension.namespace,e.extension.name,e.extension.version]);let c=async()=>{if(e.extension.files.changelog)try{let t=await a.service.getExtensionChangelog(o.current,e.extension);n(t)}catch(e){a.handleError(e),n(void 0)}else n(``);i(!1)};return t===void 0?(0,Y.jsx)(Re,{loading:r}):t.length===0?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(s,{sx:{mb:2,display:`flex`,justifyContent:`space-between`,"@media(max-width: 360px)":{flexDirection:`column`,"& > div:first-of-type":{marginBottom:`1rem`},"& button":{maxWidth:`12rem`}}},children:(0,Y.jsx)(u,{variant:`h5`,children:`Changelog`})}),(0,Y.jsx)(Tn,{}),(0,Y.jsx)(s,{mt:3,children:(0,Y.jsx)(u,{children:`No changelog available`})})]}):(0,Y.jsx)(s,{sx:{display:`flex`,flexDirection:{xs:`column-reverse`,sm:`column-reverse`,md:`column-reverse`,lg:`column-reverse`,xl:`row`}},children:(0,Y.jsx)(s,{flex:5,overflow:`auto`,children:(0,Y.jsx)(Km,{content:t})})})},Xm=w((0,Y.jsx)(`path`,{d:`m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z`}),`StarBorder`),Zm=e=>{let[t,n]=(0,K.useState)(1),r=t=>{n(t),e.handleRatingChange(t)},i=e=>(0,Y.jsx)(we,{onClick:()=>r(e),children:e<=t?(0,Y.jsx)(pc,{}):(0,Y.jsx)(Xm,{})},`starbtn`+e);return(0,Y.jsx)(s,{children:(()=>{let e=[];for(let t=1;t<=5;t++)e.push(i(t));return e})()})},Qm=2048,$m=e=>{let[t,n]=(0,K.useState)(!1),[r,i]=(0,K.useState)(!1),[a,o]=(0,K.useState)(1),[c,l]=(0,K.useState)(``),[u,d]=(0,K.useState)(),f=(0,K.useContext)(I),p=(0,K.useRef)(new AbortController);(0,K.useEffect)(()=>()=>p.current.abort(),[]);let m=()=>{f.user&&(n(!0),i(!1))},h=()=>n(!1);return f.user?(0,Y.jsxs)(Y.Fragment,{children:[!r&&(0,Y.jsx)(g,{variant:`contained`,color:`secondary`,onClick:m,children:`Write a Review`}),(0,Y.jsxs)(Be,{open:t,onClose:h,children:[(0,Y.jsxs)(on,{children:[e.extension.displayName??e.extension.name,` Review`]}),(0,Y.jsxs)(Ie,{children:[(0,Y.jsxs)(vn,{children:[`Your review will be posted publicly as `,f.user.loginName]}),(0,Y.jsx)(s,{component:`div`,sx:{width:{xs:`140%`,sm:`100%`,md:`100%`,lg:`100%`,xl:`100%`},transform:{xs:`scale(.7) translateX(-23%)`,sm:`none`,md:`none`,lg:`none`,xl:`none`}},children:(0,Y.jsx)(Zm,{handleRatingChange:e=>o(e)})}),(0,Y.jsx)(ht,{margin:`dense`,label:`Your Review...`,fullWidth:!0,multiline:!0,variant:`outlined`,rows:4,error:!!u,helperText:u,onChange:e=>{let t=e.target.value,n;t.length>Qm&&(n=`The review comment must not be longer than ${Qm} characters.`),l(t),d(n)}})]}),(0,Y.jsxs)(ze,{sx:{justifyContent:{xs:`center`,sm:`end`,md:`end`,lg:`end`,xl:`end`}},children:[(0,Y.jsx)(g,{onClick:h,color:`secondary`,children:`Cancel`}),(0,Y.jsx)(er,{autoFocus:!0,error:!!u,working:r,sx:{ml:1},onClick:async()=>{i(!0);try{let t=await f.service.postReview(p.current,{rating:a,comment:c},e.reviewPostUrl);if(V(t))throw t;n(!1),l(``),e.saveCompleted()}catch(e){f.handleError(e)}},children:`Post Review`})]})]})]}):null},eh=e=>{let[t,n]=(0,K.useState)(),[r,i]=(0,K.useState)(!0),[a,o]=(0,K.useState)(!1),[c,l]=(0,K.useState)(!1),[d,f]=(0,K.useState)(void 0),[p,m]=(0,K.useState)(new Set),h=(0,K.useContext)(I),_=(0,K.useRef)(new AbortController),v=e=>{let t=new Set(p);t.add(e),m(t)},y=e=>{let t=new Set(p);t.delete(e),m(t)};(0,K.useEffect)(()=>(b(),()=>_.current.abort()),[]);let b=async()=>{try{let t=await h.service.getExtensionReviews(_.current,e.extension);n(t)}catch(e){h.handleError(e)}i(!1),o(!1)},x=()=>{i(!0),b(),e.reviewsDidUpdate()},S=async()=>{o(!0);try{let e=await h.service.deleteReview(_.current,t.deleteUrl);if(V(e))throw e;x()}catch(e){h.handleError(e)}},C=()=>
25{if(!h.user||!t)return``;let n=t.reviews.find(e=>$t(e.user,h.user));if(n){let e=Zn(n.timestamp);return(0,Y.jsx)(er,{working:a,onClick:S,title:`Revoke review written by ${h.user.loginName} on ${e}`,children:`Revoke my Review`})}return(0,Y.jsx)(s,{children:(0,Y.jsx)($m,{saveCompleted:x,extension:e.extension,reviewPostUrl:t.postUrl})})},w=async()=>{if(d!==void 0){v(d.loginName);try{let t=await h.service.deleteUserReview(_.current,e.extension,d);if(V(t))throw t;x(),l(!1)}catch(e){h.handleError(e)}finally{y(d.loginName)}}},ee=e=>(0,Y.jsx)(g,{variant:`contained`,color:`error`,sx:{ml:1},onClick:()=>{f(e.user),l(!0)},children:`Remove review`}),T=()=>(0,Y.jsxs)(Be,{open:c,onClose:()=>l(!1),children:[(0,Y.jsx)(on,{children:`Remove Review`}),(0,Y.jsx)(Ie,{children:(0,Y.jsx)(vn,{component:`div`,children:(0,Y.jsxs)(u,{children:[`Confirm removal of review comment from `,(0,Y.jsx)(`code`,{children:d?.loginName}),`?`]})})}),(0,Y.jsxs)(ze,{children:[(0,Y.jsx)(g,{variant:`contained`,color:`primary`,onClick:()=>l(!1),children:`Cancel`}),(0,Y.jsx)(er,{autoFocus:!0,color:`error`,sx:{ml:1},working:p.has(d?.loginName??``),onClick:()=>w(),children:`Remove review`})]})]}),E=e=>e?e.reviews.length===0?(0,Y.jsx)(s,{mt:3,children:(0,Y.jsx)(u,{children:`Be the first to review this extension`})}):e.reviews.map(D.bind(void 0)):``,D=e=>(0,Y.jsxs)(K.Fragment,{children:[(0,Y.jsxs)(s,{display:`flex`,justifyContent:`space-between`,children:[(0,Y.jsxs)(s,{my:2,children:[(0,Y.jsxs)(s,{display:`flex`,children:[e.timestamp?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(u,{variant:`body2`,children:(0,Y.jsx)(An,{value:e.timestamp})}),(0,Y.jsx)(Wc,{})]}):null,(0,Y.jsx)(u,{variant:`body2`,children:e.user.homepage?(0,Y.jsx)(U,{href:e.user.homepage,color:`text.primary`,underline:`hover`,children:e.user.loginName}):e.user.loginName})]}),(0,Y.jsx)(s,{display:`flex`,alignItems:`center`,children:(0,Y.jsx)(Kc,{number:e.rating})}),(0,Y.jsx)(s,{overflow:`auto`,children:(0,Y.jsx)(u,{variant:`body1`,sx:{overflow:`hidden`,textOverflow:`ellipsis`},children:e.comment})})]}),h.user?.role===`admin`?(0,Y.jsx)(s,{sx:{mb:2,minWidth:160},display:`flex`,alignItems:`end`,children:ee(e)}):null]}),(0,Y.jsx)(Tn,{})]},e.user.loginName+e.timestamp);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(s,{sx:{mb:2,display:`flex`,justifyContent:`space-between`,"@media(max-width: 360px)":{flexDirection:`column`,"& > div:first-of-type":{marginBottom:`1rem`},"& button":{maxWidth:`12rem`}}},children:[(0,Y.jsx)(s,{children:(0,Y.jsx)(u,{variant:`h5`,children:`User Reviews`})}),C()]}),(0,Y.jsx)(Tn,{}),(0,Y.jsxs)(s,{children:[(0,Y.jsx)(Re,{loading:r}),E(t),h.user?.role===`admin`&&T()]})]})},th=P(U)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(.5)})),nh=P(`span`)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(.5)})),rh=({color:e})=>{let{pageSettings:t}=(0,K.useContext)(I),n=`Published via trusted publishing`,r=t.urls.trustedPublishing,i=(0,Y.jsx)(mc,{fontSize:`small`});return r?(0,Y.jsx)(th,{href:r,target:`_blank`,rel:`noopener`,title:n,"aria-label":n,sx:{color:e},children:i}):(0,Y.jsx)(nh,{role:`img`,title:n,"aria-label":n,sx:{color:e},children:i})},ih=(e,t,n,r)=>{let i=(0,K.useRef)(new AbortController),{handleError:a,service:o}=(0,K.useContext)(I),[s,c]=(0,K.useState)(!0),[l,u]=(0,K.useState)(),[d,f]=(0,K.useState)(),[p,m]=(0,K.useState)(0);return(0,K.useEffect)(()=>()=>{i.current.abort()},[]),(0,K.useEffect)(()=>{!e||!t||(c(!0),(async()=>{f(void 0),u(void 0);let a=o.getExtensionApiUrl({namespace:e,name:t,target:n,version:r}),s=await o.getExtensionDetail(i.current,a);if(V(s))throw s;i.current.signal.aborted||f(s)})().then(()=>{c(!1)}).catch(n=>{if(i.current.signal.aborted){c(!1);return}n?.status===404?u(Error(`Extension Not Found: ${e}.${t}`)):(u(n instanceof Error?n:Error(`Failed to load extension details`)),a(n)),c(!1)}))},[e,t,n,r,p]),{loading:s,extension:d,error:l,reload:(0,K.useCallback)(()=>m(e=>e+1),[])}},ah=P(po)(({theme:e})=>({...Xt(e),minHeight:0,minWidth:0,backgroundColor:He(e.palette.surface2,.7),backdropFilter:`blur(2px) saturate(1.8)`,"&.Mui-selected":{backgroundColor:He(e.palette.secondary.main,.7),borderColor:e.palette.secondary.main,color:e.palette.secondary.c
25ontrastText,fontWeight:600},"&:not(.Mui-selected)":Gt(e),...Kt(e)})),oh=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,`-${t}`])),sh=({gutters:e={xs:`1rem`,sm:`1.5rem`},sx:t,children:n,...r})=>{let i=oh(e);return(0,Y.jsx)(Wo,{variant:`scrollable`,scrollButtons:!1,sx:[{position:`sticky`,top:Yt,zIndex:50,minHeight:0,mx:i,"& .MuiTabs-indicator":{display:`none`},"& .MuiTabs-flexContainer":{gap:`0.5rem`,py:`0.625rem`,width:`max-content`,minWidth:`100%`,px:e}},...Array.isArray(t)?t:[t]],...r,children:n})},ch=w((0,Y.jsx)(`path`,{d:`M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z`}),`Warning`),lh=w((0,Y.jsx)(`path`,{d:`M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z`}),`VerifiedUser`),uh={display:`contents`,cursor:`pointer`,textDecoration:`none`,"&:hover":{textDecoration:`underline`}},dh=P(R)(uh),fh=P(U)(uh),ph=P(Uc)({display:`flex`,alignItems:`center`}),mh=P(ra)(({theme:e})=>({"& .MuiBadge-badge":{top:e.spacing(1),right:e.spacing(-5)}})),hh;(function(e){e.OVERVIEW=`overview`,e.CHANGES=`changes`,e.REVIEWS=`reviews`})(hh||(hh={}));var gh=new Set(Object.values(hh)),_h=e=>gh.has(e??``),vh=e=>_h(e)?e:hh.OVERVIEW,yh=(e,t,n,...r)=>{let i=[qt.ROOT,e,t];return n&&i.push(n),i.push(...r),G(i)},bh=({extension:e,headerTextColor:t,themeType:n})=>{let{pageSettings:r}=(0,K.useContext)(I);return e.verified?null:(0,Y.jsxs)(S,{sx:{display:`flex`,maxWidth:`800px`,p:2,mt:0,mx:{xs:0,md:6},mb:{xs:2,md:4},bgcolor:`warning.${n}`,color:t,"& a":{color:t,textDecoration:`underline`}},children:[(0,Y.jsx)(ch,{fontSize:`large`}),(0,Y.jsxs)(s,{ml:1,children:[`This version of the â`,e.displayName??e.name,`â extension was published by`,` `,(0,Y.jsx)(U,{href:e.publishedBy.homepage,children:e.publishedBy.loginName}),`. That user account is not a verified publisher of the namespace â`,e.namespace,`â of this extension.`,` `,(0,Y.jsx)(U,{href:r.urls.namespaceAccessInfo,target:`_blank`,children:`See the documentation`}),` `,`to learn how we handle namespaces and what you can do to eliminate this warning.`]})]})},xh=({verified:e,color:t})=>{let{pageSettings:n}=(0,K.useContext)(I),r=e?(0,Y.jsx)(lh,{fontSize:`small`}):(0,Y.jsx)(ch,{fontSize:`small`}),i=e?`Verified publisher`:`Unverified publisher`;return(0,Y.jsx)(fh,{href:n.urls.namespaceAccessInfo,target:`_blank`,title:i,sx:{color:t},children:r})},Sh=({user:e,color:t})=>{let n=(0,Y.jsxs)(s,{display:`flex`,flexDirection:`row`,children:[e.avatarUrl&&(0,Y.jsx)(qi,{src:e.avatarUrl,alt:e.fullName??e.loginName,variant:`rounded`,sx:{width:`60px`,height:`60px`}}),(0,Y.jsxs)(s,{ml:2,children:[e.fullName&&(0,Y.jsx)(u,{variant:`h6`,children:e.fullName}),(0,Y.jsx)(u,{variant:`body1`,children:e.loginName})]})]});return(0,Y.jsx)(ph,{id:`user_${e.loginName}_popover`,popupContent:n,children:(0,Y.jsx)(fh,{href:e.homepage,sx:{color:t},children:e.avatarUrl?(0,Y.jsxs)(Y.Fragment,{children:[e.loginName,`\xA0`,(0,Y.jsx)(qi,{src:e.avatarUrl,alt:e.loginName,sx:{width:`20px`,height:`20px`}})]}):e.loginName})})},Ch=({extension:e,color:t})=>e.files.license?(0,Y.jsx)(fh,{href:e.files.license,sx:{color:t},title:e.license?`License type`:void 0,children:e.license||`Provided license`}):(0,Y.jsx)(Y.Fragment,{children:e.license||`Unlicensed`}),wh=({extension:e,headerTextColor:t})=>{let n=Jn(e.downloadCount||0),r=Jn(e.reviewCount||0);return(0,Y.jsxs)(s,{sx:{pt:.5,overflow:`visible`,flex:1,minWidth:0},children:[(0,Y.jsx)(mh,{color:`secondary`,badgeContent:`Preview`,invisible:!e.preview,children:(0,Y.jsx)(u,{component:`h1`,sx:{fontSize:{xs:`1.7rem`,md:`1.938rem`},fontWeight:800,letterSpacing:`-0.025em`,mb:1,color:t},children:e.displayName??e.name})}),e.deprecated&&(0,Y.jsxs)(St,{direction:`row`,alignItems:`center`,children:[(0,Y.jsx)(ch,{fontSize:`small`}),(0,Y.jsxs)(u,{children:[`This extension has been deprecated.`,e.replacement&&(0,Y.jsxs)(Y.Fragment,{children:[`\xA0Use`,` `,(0,Y.jsx)(fh,{sx:{color:t},href:e.replacement.url,children:e.replacement.displayName}),` `,`instead.`]})]})]}),(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,color:t,flexDirection:{xs:`column`,md:`row`}},children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,flexShrink:0},children:[(0,Y.jsx)(xh,{verified:e.verified,color:t}),`\xA0`,(0,Y.jsx)(dh,{to:G([ic.ROOT,e.namespace]),style:{color:t},children:e.namespaceDisplayName})]}),(0,Y.jsx)(Wc,{backgroundColor:t,collapseSmall:!0}),(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,flexShrink:0},children:[`Published by\xA0`,(0,Y.jsx)(Sh,{user:e.publishedBy,color:t}),e.publishedWithTrustedPublishing&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Wc,{backgroundColor:t,collapseSmall:!0}),(0,Y.jsx)(rh,{color:t})]})]}),(0,Y.jsx)(Wc,{backgroundColor:t,collapseSmall:!0}),(0,Y.jsx)(s,{sx:{display:`flex`,alignItems:`center`},children:(0,Y.jsx)(Ch,{extension:e,color:t})})]}),(0,Y.jsx)(s,{mt:2,mb:2,overflow:`auto`,children:(0,Y.jsx)(u,{sx:{overflow:`hidden`,textOverflow:`ellipsis`},children:e.description})}),(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,color:t,justifyContent:{xs:`center`,md:`flex-start`}}
25,children:[(0,Y.jsxs)(s,{component:`span`,sx:{display:`flex`,alignItems:`center`},title:e.downloadCount&&e.downloadCount>=1e3?`${e.downloadCount} downloads`:void 0,children:[(0,Y.jsx)(fc,{fontSize:`small`}),`\xA0`,n,`\xA0`,e.downloadCount===1?`download`:`downloads`]}),(0,Y.jsx)(Wc,{backgroundColor:t}),(0,Y.jsxs)(fh,{href:G([qt.ROOT,e.namespace,e.name,`reviews`]),sx:{display:`flex`,alignItems:`center`,color:t},title:e.averageRating===void 0?`Not rated yet`:`Average rating: ${Math.round(e.averageRating*10)/10} out of 5 (${e.reviewCount} reviews)`,children:[(0,Y.jsx)(Kc,{number:e.averageRating??0,fontSize:`small`}),`(`,r,`)`]})]})]})},Th=e=>{let[t,n,r]=Pe(e).values,i=Math.round(.2126*t+.7152*n+.0722*r);return`rgb(${i}, ${i}, ${i})`},Eh=(e,t)=>{let n=tc();(0,K.useEffect)(()=>{let r=t.current;if(!r)return;let i=new ResizeObserver(()=>n({color:e,depth:r.getBoundingClientRect().bottom+window.scrollY}));return i.observe(r),()=>{i.disconnect(),n(null)}},[e,t,n])},Dh=({extension:e,bandRef:t})=>{let n=Ee(),{pageSettings:r}=(0,K.useContext)(I),i=(e.galleryTheme||r.themeType)??`light`,a=n.palette.neutral[i],o=e.galleryColor||a;try{Pe(o)}catch{o=a}let c=n.palette.getContrastText(o),l=!e.galleryColor;return Eh(l?null:e.deprecated?Th(o):o,t),(0,Y.jsx)(s,{ref:t,sx:{bgcolor:l?`bg2`:o,color:l?`text.primary`:c,mt:`-${Yt}`,pt:Yt,borderBottom:`1px solid`,borderColor:`divider`,filter:e.deprecated?`grayscale(100%)`:void 0},children:(0,Y.jsx)(ia,{maxWidth:`xl`,children:(0,Y.jsxs)(s,{sx:{pt:`1.125rem`,pb:`1.75rem`},children:[(0,Y.jsx)(bh,{extension:e,headerTextColor:l?n.palette.text.primary:c,themeType:i}),(0,Y.jsxs)(s,{sx:{display:`flex`,width:`100%`,flexDirection:{xs:`column`,md:`row`},textAlign:{xs:`center`,md:`start`},alignItems:{xs:`center`,md:`flex-start`},gap:{xs:2,md:`1.625rem`}},children:[(0,Y.jsx)(Mn,{extension:e,sx:{width:`96px`,height:`96px`,flexShrink:0,objectFit:`contain`}}),(0,Y.jsx)(wh,{extension:e,headerTextColor:l?n.palette.text.primary:c})]})]})})})},Oh=()=>{let{namespace:e,name:t,target:n,"*":r}=We(),i=Ge(),{pageSettings:a}=(0,K.useContext)(I),o=r||void 0,c=_h(o)?void 0:o,l=vh(o),d=(0,K.useRef)(null),f=(0,K.useRef)(l);(0,K.useEffect)(()=>{if(f.current===l)return;f.current=l;let e=d.current;if(!e)return;let t=e.getBoundingClientRect().bottom+window.scrollY-62,n=Math.max(0,t);window.scrollY>n&&window.scrollTo({top:n})},[l]);let{loading:p,error:m,extension:h,reload:g}=ih(e,t,n,c),_=(0,K.useCallback)(e=>i(e,{state:{preserveScroll:!0}}),[i]),v=(0,K.useCallback)(r=>{!e||!t||i(r===`latest`?yh(e,t,n):yh(e,t,n,r))},[i,e,t,n]),y=e&&t?yh(e,t,n):``,b=e&&t?yh(e,t,n,hh.CHANGES):``,x=e&&t?yh(e,t,n,hh.REVIEWS):``;if(rc({key:`o`,label:`Extension overview`,order:40,callback:()=>_(y),enabled:!!y}),rc({key:`c`,label:`Extension changelog`,order:50,callback:()=>_(b),enabled:!!y}),rc({key:`r`,label:`Extension reviews`,order:60,callback:()=>_(x),enabled:!!y}),!e||!t)return null;let S=y;o&&!_h(o)?S=yh(e,t,n,o):h&&!h.versionAlias.includes(`latest`)&&(S=yh(e,t,n,h.version));let C=a.elements.extensionHeadTags;return(0,Y.jsxs)(Y.Fragment,{children:[C&&(0,Y.jsx)(C,{extension:h,pageSettings:a}),(0,Y.jsx)(Re,{loading:p}),h&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Dh,{extension:h,bandRef:d}),(0,Y.jsxs)(uc,{flushTop:!0,children:[(0,Y.jsxs)(sh,{value:l,gutters:{xs:`1rem`,sm:`1.5rem`,md:`0.375rem`},children:[(0,Y.jsx)(ah,{value:hh.OVERVIEW,label:(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.4375rem`},children:[`Overview`,(0,Y.jsx)(Xs,{children:`o`})]}),component:R,to:S,state:{preserveScroll:!0}}),(0,Y.jsx)(ah,{value:hh.CHANGES,label:(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.4375rem`},children:[`Changes`,(0,Y.jsx)(Xs,{children:`c`})]}),component:R,to:b,state:{preserveScroll:!0}}),(0,Y.jsx)(ah,{value:hh.REVIEWS,label:(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.4375rem`},children:[`Ratings & Reviews`,(0,Y.jsx)(Xs,{children:`r`})]}),component:R,to:x,state:{preserveScroll:!0}})]}),(0,Y.jsx)(s,{sx:{pt:2},children:(0,Y.jsxs)(Me,{children:[(0,Y.jsx)(Fe,{path:hh.REVIEWS,element:(0,Y.jsx)(eh,{extension:h,reviewsDidUpdate:g})}),(0,Y.jsx)(Fe,{path:hh.CHANGES,element:(0,Y.jsx)(Ym,{extension:h})}),(0,Y.jsx)(Fe,{path:`*`,element:(0,Y.jsx)(Jm,{extension:h,selectVersion:v})})]})})]})]}),m&&(0,Y.jsx)(s,{p:4,children:(0,Y.jsx)(u,{variant:`h5`,children:m.message})})]})};function kh(e,t){let n=(0,K.useRef)(e.signal);(0,K.useLayoutEffect)(()=>{e.signal!==n.current&&(n.current=e.signal,t(e.payload))},[e,t])}var Ah=P(s)(({theme:e})=>({display:`flex`,alignItems:`center`,gap:`0.8125rem`,backgroundColor:e.palette.surface2,border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadiusCard,height:`3.25rem`,paddingLeft:`1rem`,paddingRight:`0.25rem`,[e.breakpoints.down(`sm`)]:{height:`3rem`,paddingLeft:`0.875rem`,gap:`0.625rem`},boxShadow:`var(--shadow)`,transition:`border-color 0.2s ease, box-shadow 0.3s ease`,"&:focus-within":Pn(e,`0 18px 70px -10px ${He(e.palette.secondary.main,.45)}`)})),jh=P(`input`)(({theme:e})=>({flex:1,height:`100%`,border:`none`,outline:`none`,background:`none`,color:e.palette.text.primary,fontSize:`0.9375rem`,fontFamily:Rt,"&::placeholder":{color:e.palette.text.disabled}})),Mh=P(C)(({theme:e})=>({display:`flex`,alignItems:`center`,gap:`0.5rem`,height:`2.75rem`,padding:`0 1rem`,borderRadius:e.shape.borderRadius,overflow:`hidden`,backgroundColor:e.palette.secondary.main,color:e.palette.secondary.c
25ontrastText,fontSize:`0.8125rem`,fontWeight:400,flexShrink:0,transition:`background 0.14s`,[e.breakpoints.down(`sm`)]:{height:`2.5rem`,padding:`0 0.875rem`},"&:hover":{backgroundColor:e.palette.secondary.dark},...Kt(e)})),Nh=P(C)(({theme:e})=>({backgroundColor:e.palette.surface2,border:`1px solid ${e.palette.divider}`,color:e.palette.text.secondary,fontSize:`0.8125rem`,fontWeight:400,padding:`0.3125rem 0.625rem`,borderRadius:e.shape.borderRadiusPill,overflow:`hidden`,fontFamily:Rt,transition:`border-color 0.14s, color 0.14s`,...Gt(e),...Kt(e)})),Ph=({searchHeader:e,popularSearches:t=[]})=>{let{query:n}=vs(),{search:r}=ts(),{searchFocusSignal:i,searchFocused:a}=ss(),o=(0,K.useRef)(null),c=ds(o);kh(i,(0,K.useCallback)(()=>{let e=o.current;!e||!c||(e.focus(),requestAnimationFrame(()=>e.setSelectionRange(e.value.length,e.value.length)))},[c]));let l=(0,K.useRef)(c);(0,K.useLayoutEffect)(()=>{l.current!==c&&(l.current=c,c?a&&i.emit():document.activeElement===o.current&&i.emit())},[c,a,i.emit]),(0,K.useLayoutEffect)(()=>()=>{document.activeElement===o.current&&i.emit()},[i.emit]);let{key:d}=Ue();return(0,K.useLayoutEffect)(()=>{d==="default"&&i.emit()},[d,i.emit]),(0,Y.jsxs)(ia,{maxWidth:`xl`,component:`section`,sx:{textAlign:`center`},children:[e&&(0,Y.jsx)(e,{}),(0,Y.jsx)(s,{component:`form`,onSubmit:e=>{e.preventDefault(),n.trim()&&r({query:n})},sx:{maxWidth:`41.25rem`,mx:`auto`},children:(0,Y.jsxs)(Ah,{style:{viewTransitionName:c?`vt-search`:void 0},children:[(0,Y.jsx)(s,{component:`span`,sx:{fontFamily:Rt,color:`secondary.light`,fontSize:`1.25rem`,flexShrink:0,userSelect:`none`},children:`/`}),(0,Y.jsx)(jh,{ref:o,"aria-label":`Search extensions`,value:n,onChange:e=>r({query:e.target.value},{debounce:!0}),placeholder:`search extensionsâ¦`}),(0,Y.jsxs)(Mh,{type:`submit`,"aria-label":`Search`,children:[(0,Y.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.4`,children:[(0,Y.jsx)(`circle`,{cx:`11`,cy:`11`,r:`7`}),(0,Y.jsx)(`path`,{d:`M21 21l-4.3-4.3`})]}),(0,Y.jsx)(s,{component:`span`,sx:{display:{xs:`none`,sm:`inline`}},children:`search`})]})]})}),t.length>0&&(0,Y.jsxs)(s,{sx:{display:`flex`,gap:`0.5625rem`,justifyContent:{xs:`flex-start`,sm:`center`},flexWrap:{xs:`nowrap`,sm:`wrap`},overflowX:{xs:`auto`,sm:`visible`},mt:`0.875rem`,mx:{xs:`-1rem`,sm:0},px:{xs:`1rem`,sm:0},pb:{xs:`0.25rem`,sm:0},"&::-webkit-scrollbar":{display:`none`},scrollbarWidth:`none`},children:[(0,Y.jsx)(u,{component:`span`,sx:{fontSize:`0.8125rem`,color:`text.disabled`,alignSelf:`center`,flexShrink:0},children:`Popular:`}),t.map(e=>(0,Y.jsx)(Nh,{onClick:()=>r({query:e}),style:{flexShrink:0},children:e},e))]})]})},Fh=w((0,Y.jsx)(`path`,{d:`M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z`}),`DataObject`),Ih=w((0,Y.jsx)(`path`,{d:`m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z`}),`AutoAwesome`),Lh=w((0,Y.jsx)(`path`,{d:`M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h
255.64zm-6.02-5L8.5 5.48 10.57 11zm15.16.59-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13z`}),`Spellcheck`),Rh=w((0,Y.jsx)(`path`,{d:`M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z`}),`FormatAlignLeft`),zh=w((0,Y.jsx)(`path`,{d:`M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z`}),`ContentCopy`),Bh=w((0,Y.jsx)(`path`,{d:`M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5`}),`Palette`),Vh=w((0,Y.jsx)(`path`,{d:`M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z`}),`AccountTree`),Hh=w((0,Y.jsx)(`path`,{d:`M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m-9 3h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-1 2H5v-2h2zm0-3H5V8h2zm9 7H8v-2h8zm0-4h-2v-2h2zm0-3h-2V8h2zm3 3h-2v-2h2zm0-3h-2V8h2z`}),`Keyboard`),Uh=w((0,Y.jsx)(`path`,{d:`M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11`}),`Extension`),Wh=w((0,Y.jsx)(`path`,{d:`M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z`}),`BarChart`),Gh=w((0,Y.jsx)(`path`,{d:`m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z`}),`Translate`),Kh=w([(0,Y.jsx)(`path`,{d:`M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2`},`0`),(0,Y.jsx)(`path`,{d:`m15 9 .94-2.07L18 6l-2.06-.93L15 3l-.92 2.07L12 6l2.08.93zM3.5 11 4 9l2-.5L4 8l-.5-2L3 8l-2 .5L3 9z`},`1`)],`Insights`),qh=w((0,Y.jsx)(`path`,{d:`M15.5 13.5c0 2-2.5 3.5-2.5 5h-2c0-1.5-2.5-3-2.5-5 0-1.93 1.57-3.5 3.5-3.5s3.5 1.57 3.5 3.5m-2.5 6h-2V21h2zm6-6.5c0 1.68-.59 3.21-1.58 4.42l1.42 1.42C20.18 17.27 21 15.23 21 13c0-2.74-1.23-5.19-3.16-6.84l-1.42 1.42C17.99 8.86 19 10.82 19 13m-3-8-4-4v3c-4.97 0-9 4.03-9 9 0 2.23.82 4.27 2.16 5.84l1.42-1.42C5.59 16.21 5 14.68 5 13c0-3.86 3.14-7 7-7v3z`}),`ModelTraining`),Jh=w([(0,Y.jsx)(`path`,{d:`M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1m0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5z`},`0`),(0,Y.jsx)(`path`,{d:`M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99M13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83m4.5 1.84c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24`},`1`)],`MenuBook`),Yh=w((0,Y.jsx)(`path`,{fillRule:`evenodd`,d:`M3 3v8h8V3zm6 6H5V5h4zm-6 4v8h8v-8zm6 6H5v-4h4zm4-16v8h8V3zm6 6h-4V5h4zm-6 4v8h8v-8zm6 6h-4v-4h4z`}),`GridView`),Xh=Yh,Zh={AI:Ih,"Programming Languages":Fh,Snippets:zh,Linters:Lh,Themes:Bh,Debuggers:Jc,Formatters:Rh,Keymaps:Hh,"SCM Providers":Vh,Other:Yh,"Extension Packs":Uh,"Language Packs":Gh,"Data Science":Kh,"Machine Learning":qh,Visualization:Wh,Notebooks:Jh},Qh=[...Bt].sort((e,t)=>
25e===`Other`?1:t===`Other`?-1:e.localeCompare(t));function $h(){return Qh}var eg=P(C,{shouldForwardProp:e=>e!==`isSelected`})(({theme:e,isSelected:t})=>({display:`inline-flex`,alignItems:`center`,gap:`0.4375rem`,flexShrink:0,overflow:`hidden`,...Mt(e),...t?{backgroundColor:He(e.palette.secondary.main,.7)}:{},border:`1px solid ${t?e.palette.secondary.main:e.palette.divider}`,color:t?e.palette.secondary.contrastText:e.palette.text.secondary,fontSize:`0.8125rem`,fontWeight:t?600:500,padding:`0.4375rem 0.8125rem`,borderRadius:e.shape.borderRadiusPill,whiteSpace:`nowrap`,fontFamily:`inherit`,transition:`border-color 0.14s, color 0.14s, background 0.14s`,...t?{}:Gt(e),...Kt(e)})),tg=({label:e,icon:t,isSelected:n,onClick:r})=>{let i=(0,K.useRef)(null);return(0,K.useEffect)(()=>{n&&i.current?.scrollIntoView({block:`nearest`,inline:`center`,behavior:`smooth`})},[n]),(0,Y.jsxs)(eg,{ref:i,isSelected:n,"aria-pressed":!!n,onClick:r,children:[(0,Y.jsx)(t,{sx:{fontSize:`1rem`,flexShrink:0,color:n?`inherit`:`secondary.main`}}),e]})},ng=P(C)(({theme:e})=>({...zt(e),display:`flex`,alignItems:`center`,justifyContent:`flex-start`,textAlign:`left`,overflow:`hidden`,flexGrow:1,maxWidth:`16rem`,gap:`0.625rem`,padding:`0.625rem 0.875rem 0.625rem 0.75rem`,color:e.palette.text.primary,transition:`border-color 0.15s, box-shadow 0.15s, transform 0.15s`,...It(e),...Kt(e),"& .MuiTouchRipple-root":{color:e.palette.secondary.main}})),rg=({label:e,icon:t,onClick:n})=>(0,Y.jsxs)(ng,{onClick:n,children:[(0,Y.jsx)(s,{sx:{width:`1.875rem`,height:`1.875rem`,borderRadius:1,bgcolor:`accentSoft`,color:`secondary.main`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:(0,Y.jsx)(t,{sx:{fontSize:`1.0625rem`}})}),(0,Y.jsx)(u,{noWrap:!0,sx:{fontSize:`0.875rem`,fontWeight:600,minWidth:0},children:e})]}),ig=new Set([`AI`,`Programming Languages`,`Snippets`,`Linters`,`Themes`,`Debuggers`,`Formatters`,`Keymaps`,`SCM Providers`,`Extension Packs`,`Language Packs`,`Data Science`,`Machine Learning`,`Visualization`,`Notebooks`]),ag=[{title:`Featured`,subtitle:`Top picks ranked by relevance`,sortBy:`relevance`},{title:`Most downloaded`,subtitle:`The extensions developers rely on every day`,sortBy:`downloadCount`},{title:`Recently updated`,subtitle:`Fresh releases from publishers this week`,sortBy:`timestamp`}];function og(){let e=$h();return(0,K.useMemo)(()=>e.filter(e=>ig.has(e)),[e])}function sg(e){let{service:t}=(0,K.useContext)(I),n=cn({queries:e.map(e=>({queryKey:[`home-curated`,e.sortBy],queryFn:async({signal:n})=>(await t.search(he(n),{query:``,category:``,offset:0,size:7,sortBy:e.sortBy,sortOrder:`desc`})).extensions}))});return e.map((e,t)=>({...e,extensions:n[t].data??[],loading:n[t].isLoading}))}var cg=e=>{let t=og(),{search:n}=ts(),r=e.categories??t,i=e.onSelect??(e=>n({query:``,category:e}));return r.length===0?null:(0,Y.jsxs)(ia,{maxWidth:`xl`,component:`section`,children:[(0,Y.jsx)(gn,{sx:{mb:{xs:`0.75rem`,sm:`1.125rem`}},children:`Browse by category`}),(0,Y.jsx)(s,{sx:{display:{xs:`flex`,sm:`none`},flexWrap:`nowrap`,overflowX:`auto`,gap:`0.5rem`,mx:`-1rem`,px:`1rem`,pb:`0.25rem`,"&::-webkit-scrollbar":{display:`none`},scrollbarWidth:`none`},children:r.map(e=>(0,Y.jsx)(tg,{label:e,icon:Zh[e]??Xh,onClick:()=>i(e)},e))}),(0,Y.jsx)(s,{sx:{display:{xs:`none`,sm:`flex`},flexWrap:`wrap`,justifyContent:`center`,gap:`0.625rem`},children:r.map(e=>(0,Y.jsx)(rg,{label:e,icon:Zh[e]??Xh,onClick:()=>i(e)},e))})]})},lg=e=>{let t=sg(e.sections??ag),{search:n}=ts();return(0,Y.jsx)(Y.Fragment,{children:t.map(t=>!t.loading&&t.extensions.length===0?null:(0,Y.jsxs)(ia,{maxWidth:`xl`,component:`section`,children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,mb:`0.875rem`},children:[(0,Y.jsxs)(s,{children:[(0,Y.jsx)(u,{sx:{fontSize:{xs:`1rem`,sm:`1.4375rem`},fontWeight:700,letterSpacing:`-0.02em`},children:t.title}),(0,Y.jsx)(u,{component:`span`,sx:{fontSize:`0.8125rem`,color:`text.disabled`,display:{xs:`none`,sm:`block`}},children:t.subtitle})]}),(0,Y.jsx)(s,{component:`button`,onClick:e.onSeeAll??(()=>n({query:``,sortBy:t.sortBy})),sx:{background:`none`,border:`none`,color:`secondary.light`,fontSize:`0.875rem`,fontWeight:600,cursor:`pointer`},children:`See all â`})]}),(0,Y.jsx)(Wt,{children:Array.from({length:t.loading?7:t.extensions.length},(e,n)=>(0,Y.jsx)(bc,{extension:t.extensions[n],fadeDelayMs:n%7*200},n))})]},t.title))})},ug=P(s)(({theme:e})=>({backgroundColor:e.palette.background.paper,border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadiusCard,padding:`1.25rem`,display:`flex`,flexDirection:`column`})),dg=({theme:e})=>({fontSize:`0.8125rem`,fontWeight:600,color:e.palette.secondary.light,textDecoration:`none`,"&:hover":{textDecoration:`underline`},...Kt(e)}),fg=P(`a`)(dg),pg=P(R)(dg),mg=({href:e,children:t})=>{let n=/^https?:\/\//.test(e);return e.startsWith(`/`)&&!e.startsWith(`//`)?(0,Y.jsx)(pg,{to:e,children:t}):(0,Y.jsx)(fg,{href:e,target:n?`_blank`:void 0,rel:n?`noopener noreferrer`:void 0,children:t})},hg=({heading:e,cards:t})=>!t||t.length===0?null:(0,Y.jsxs)(ia,{maxWidth:`xl`,component:`section`,children:[(0,Y.jsx)(gn,{sx:{letterSpacing:`0.1em`,mb:{xs:`0.875rem`,sm:`1.25rem`}},children:e??`Get Involved`}),(0,Y.jsx)(s,{sx:{display:`grid`,gridTemplateColumns:{xs:`1fr`,sm:`1fr 1fr`,md:`repeat(3, 1fr)`},gap:`1rem`},children:t.map(e=>(0,Y.jsxs)(ug,{children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.6875rem`,mb:`0.75rem`},children:[(0,Y.jsx)(s,{sx:{width:`2.125rem`,height:`2.125rem`,borderRadius:1,bgcolor:`accentSoft`,color:`secondary.light`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,"& > svg":{fontSize:`1.125rem`}},children:e.icon}),(0,Y.jsx)(u,{sx:{fontSize:`0.9375rem`,fontWeight:700},children:e.title})]}),(0,Y.jsx)(u,{sx:{fontSize:`0.8125rem`,color:`text.secondary`,lineHeight:1.55,mb:`1.125rem`,flex:1},children:e.description}),(0,Y.jsx)(mg,{href:e.href,children:e.label})]},e.title))})]}),gg=()=>{let{pageSettings:e}=(0,K.useContext)(I),[t]=je(),{search:n}=ts(),r=[`search`,`category`,`sortBy`,`sortOrder`].some(e=>t.has(e));if((0,K.useLayoutEffect)(()=>{r&&n({query:t.get(`search`)??``},{replace:!0})},[r,t,n]),r)return null;let i=e.elements.home;return typeof i==`function`?(0,Y.jsx)(i,{}):(0,Y.jsx)(_g,{home:i})},_g=({home:e})=>{let{pageSettings:t}=(0,K.useContext)(I);return(0,Y.jsx)(uc,{fluid:!0,component:`main`,sx:{animation:`fadeIn .25s ease`},children:(0,Y.jsxs)(Ht,{children:[(0,Y.jsx)(Ph,{searchHeader:t.elements.searchHeader,popularSearches:e?.popularSearches}),(0,Y.jsx)(hn,{}),(0,Y.jsx)(lg,{sections:e?.curatedSections}),(0,Y.jsx)(cg,{}),(0,Y.jsx)(hg,{heading:e?.involvement?.heading,cards:e?.involvement?.cards})]})})},vg=e(Ye()),yg=class extends K.Component{constructor(e){super(e),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){let e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}
25isPassiveSupported(){let e=!1,t={get passive(){e=!0}};try{document.addEventListener(`test`,null,t),document.removeEventListener(`test`,null,t)}catch{}return e}eventListenerOptions(){let e=this.props.useCapture;return e=this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1},e}setDefaultLoader(e){this.defaultLoader=e}detachMousewheelListener(){let e=window;this.props.useWindow===!1&&(e=this.scrollComponent.parentNode),e.removeEventListener(`mousewheel`,this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let e=window;this.props.useWindow===!1&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener(`scroll`,this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener(`resize`,this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(e){return(this.props.getScrollParent&&this.props.getScrollParent())??(e&&e.parentNode)}filterProps(e){return e}attachScrollListener(){let e=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!e)return;let t=window;this.props.useWindow===!1&&(t=e),t.addEventListener(`mousewheel`,this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener(`scroll`,this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener(`resize`,this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(e){e.deltaY===1&&!this.isPassiveSupported()&&e.preventDefault()}scrollListener(){let e=this.scrollComponent,t=window,n=this.getParentElement(e),r;if(this.props.useWindow){let n=document.documentElement||document.body.parentNode||document.body,i=t.pageYOffset===void 0?n.scrollTop:t.pageYOffset;r=this.props.isReverse?i:this.calculateOffset(e,i)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;r<Number(this.props.threshold)&&e&&e.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,typeof this.props.loadMore==`function`&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}calculateTopPosition(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}render(){let{children:e,element:t,hasMore:n,initialLoad:r,isReverse:i,loader:a,loadMore:o,pageStart:s,ref:c,threshold:l,useCapture:u,useWindow:d,getScrollParent:f,...p}=this.filterProps(this.props);p.ref=e=>{this.scrollComponent=e,c&&c(e)};let m=[e];return n&&(a?i?m.unshift(a):m.push(a):this.defaultLoader&&(i?m.unshift(this.defaultLoader):m.push(this.defaultLoader))),K.createElement(t,p,m)}};ke(yg,`propTypes`,{children:vg.default.node.isRequired,element:vg.default.node,hasMore:vg.default.bool,initialLoad:vg.default.bool,isReverse:vg.default.bool,loader:vg.default.node,loadMore:vg.default.func.isRequired,pageStart:vg.default.number,ref:vg.default.func,getScrollParent:vg.default.func,threshold:vg.default.number,useCapture:vg.default.bool,useWindow:vg.default.bool}),ke(yg,`defaultProps`,{element:`div`,hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var bg={ArrowUp:`up`,ArrowDown:`down`,ArrowLeft:`left`,ArrowRight:`right`};function xg(e,t,n,r){switch(e){case`right`:return Math.min(t+1,r);case`left`:return Math.max(t-1,0);case`down`:return Math.min(t+n,r);case`up`:return t<n?t:t-n}}function Sg(e,t={}){let{cursorVisible:n=!1,onExitTop:r}=t,i=(0,K.useRef)(null),a=(0,K.useRef)(new Map),o=(0,K.useRef)(new Map),[s,c]=(0,K.useState)(0),l=e===0?0:Math.min(s,e-1),u=(0,K.useRef)(l);u.current=l;let d=(0,K.useCallback)(()=>{let e=i.current;if(!e)return 1;let t=getComputedStyle(e).gridTemplateColumns;return t===`none`?1:t.split(` `).length},[]),f=(0,K.useCallback)((e,t)=>{c(e);let n=a.current.get(e);n&&(t.focus?n.focus():n.scrollIntoView({block:`nearest`}))},[]),p=(0,K.useCallback)(t=>{if(e===0)return;
25let n=t===`next`?1:-1,r=Math.min(Math.max(u.current+n,0),e-1);r!==u.current&&f(r,{focus:!1})},[e,f]),m=(0,K.useCallback)(()=>{a.current.get(u.current)?.click()},[]),h=(0,K.useCallback)(()=>c(0),[]),g=(0,K.useCallback)(t=>{if(e===0)return;let n=u.current,i=e-1,a=d();if(t.key===`ArrowUp`&&n<a&&r){t.preventDefault(),r();return}let o;if(t.key===`Home`)o=0;else if(t.key===`End`)o=i;else{let e=bg[t.key];if(!e)return;o=xg(e,n,a,i)}o!==n&&(t.preventDefault(),f(o,{focus:!0}))},[e,d,f,r]),_=(0,K.useCallback)(e=>{for(let[t,n]of a.current)if(n===e.target){c(t);return}},[]),v=(0,K.useCallback)(e=>{let t=o.current.get(e);return t||(t=t=>{t?a.current.set(e,t):a.current.delete(e)},o.current.set(e,t)),{ref:t,tabIndex:e===l?0:-1,"data-active":e===l?``:void 0}},[l]);return{containerProps:{ref:i,onKeyDown:g,onFocus:_,"data-cursor-visible":n?``:void 0},itemProps:v,move:p,openActive:m,reset:h}}function Cg(e){let{searchFocusSignal:t,resultsNavigationSignal:n,searchFocused:r}=ss(),i=Sg(e,{cursorVisible:r,onExitTop:t.emit}),{move:a,openActive:o}=i;return kh(n,(0,K.useCallback)(e=>{e===`open`?o():a(e)},[a,o])),i}var wg={list:e=>[`search`,e]},Tg=e=>{let{service:t}=(0,K.useContext)(I),{query:n,category:r,size:i,sortBy:a,sortOrder:o}=e;return qo({queryKey:wg.list({query:n,category:r,size:i,sortBy:a,sortOrder:o}),queryFn:({pageParam:e,signal:s})=>t.search(he(s),{query:n,category:r,size:i,sortBy:a,sortOrder:o,offset:e}),initialPageParam:0,getNextPageParam:(e,t)=>{let n=t.reduce((e,t)=>e+t.extensions.length,0);return e.extensions.length>0&&n<e.totalSize?n:void 0},placeholderData:be})},Eg=({filter:e,onUpdate:t})=>{let{handleError:n}=(0,K.useContext)(I),{data:r,error:i,isLoading:a,isFetchingNextPage:o,hasNextPage:s,fetchNextPage:c}=Tg(e),l=(0,K.useMemo)(()=>r?.pages.flatMap(e=>e.extensions)??[],[r]),u=r?.pages[0]?.totalSize??0,d=Cg(l.length);(0,K.useEffect)(()=>{t(u)},[u,t]),(0,K.useEffect)(()=>{i&&n(i)},[i,n]),(0,K.useEffect)(()=>{d.reset()},[e.query,e.category,e.sortBy,e.sortOrder,d.reset]);let f=e.size,p=a||o,m=(0,K.useRef)(p?0:l.length).current,h=l.length+(p?f:0),g=Array.from({length:h},(e,t)=>{let n=l[t];return(0,Y.jsx)(bc,{extension:n,appear:t>=m,fadeDelayMs:Math.min(t%f,5)*200,...n?d.itemProps(t):{}},t)});return(0,Y.jsx)(yg,{loadMore:()=>{s&&!o&&c()},hasMore:s&&!o,threshold:200,children:(0,Y.jsx)(Wt,{...d.containerProps,children:g})})},Dg=P(C,{shouldForwardProp:e=>e!==`isSelected`})(({theme:e,isSelected:t})=>({display:`flex`,alignItems:`center`,justifyContent:`flex-start`,gap:`0.5rem`,width:`100%`,textAlign:`left`,padding:`0.4375rem 0.625rem`,borderRadius:e.shape.borderRadius,overflow:`hidden`,fontSize:`0.8125rem`,fontWeight:t?600:400,color:t?e.palette.secondary.light:e.palette.text.secondary,backgroundColor:t?e.palette.accentSoft:`transparent`,marginBottom:`1px`,fontFamily:`inherit`,transition:`background 0.14s, color 0.14s`,"&:hover":t?{}:{backgroundColor:e.palette.surface3,color:e.palette.text.primary},...Kt(e)})),Og=({label:e,icon:t,isSelected:n,onClick:r})=>(0,Y.jsxs)(Dg,{isSelected:n,"aria-current":n?`true`:void 0,onClick:r,children:[(0,Y.jsx)(t,{sx:{fontSize:`0.9375rem`,opacity:.75,flexShrink:0}}),e]}),kg=w((0,Y.jsx)(`path`,{d:`m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z`}),`ArrowUpward`),Ag=w((0,Y.jsx)(`path`,{d:`m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z`}),`ArrowDownward`),jg=e=>`calc((100vw - min(100vw, ${e.breakpoints.values.xl}px)) / 2 + 1.5rem)`,Mg=e=>{let{sortBy:t,sortOrder:n,onSortByChanged:r,onSortOrderChanged:i}=e,a=e=>{r(e.target.value)},o=()=>{i(n===`asc`?`desc`:`asc`)},c=e.searchQuery?`"${e.searchQuery}"`:e.category||`All extensions`;return(0,Y.jsxs)(s,{sx:e=>({pt:`1.75rem`,pb:`0.875rem`,mb:`1rem`,ml:{md:`-1.25rem`},pl:{md:`1.25rem`},mr:{xs:`-1rem`,sm:`calc(${jg(e)} * -1)`},pr:{xs:`1rem`,sm:jg(e)},borderBottom:`1px solid`,borderColor:`border2`,display:`flex`,alignItems:`flex-start`,justifyContent:`space-between`,gap:`1rem`}),children:[(0,Y.jsxs)(s,{sx:{flex:1,minWidth:0},children:[(0,Y.jsx)(u,{component:`h1`,noWrap:!0,sx:{fontSize:{xs:`1.25rem`,sm:`1.6rem`},fontWeight:700,letterSpacing:`-0.025em`,lineHeight:1.2,color:`text.primary`},children:c}),(0,Y.jsxs)(u,{sx:{fontSize:`0.8125rem`,color:`text.disabled`,mt:`0.3125rem`}
25,children:[e.resultNumber.toLocaleString(),` extensions found`]})]}),(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.375rem`,flexShrink:0,mt:`0.375rem`},children:[(0,Y.jsx)(s,{component:`span`,sx:{fontSize:`0.8125rem`,color:`text.disabled`},children:`Sort by`}),(0,Y.jsxs)(dt,{value:t,onChange:a,size:`small`,inputProps:{"aria-label":`Sort by`},sx:Vt,children:[(0,Y.jsx)(H,{value:`relevance`,children:`Relevance`}),(0,Y.jsx)(H,{value:`timestamp`,children:`Date`}),(0,Y.jsx)(H,{value:`downloadCount`,children:`Downloads`}),(0,Y.jsx)(H,{value:`rating`,children:`Rating`})]}),(0,Y.jsx)(we,{onClick:o,title:n===`asc`?`Ascending`:`Descending`,"aria-label":n===`asc`?`Sort ascending`:`Sort descending`,sx:{color:`text.disabled`,borderRadius:1,p:`0.1875rem`,transition:`color 0.14s`,"&:hover":{color:`secondary.light`,bgcolor:`transparent`}},children:n===`asc`?(0,Y.jsx)(kg,{fontSize:`small`}):(0,Y.jsx)(Ag,{fontSize:`small`})})]})]})},Ng=()=>{let{filter:e,search:t}=ts(),{query:n,category:r,sortBy:i,sortOrder:a}=e,o=$h(),[c,l]=(0,K.useState)(0);return(0,Y.jsxs)(uc,{flushTop:!0,flushBottom:!0,sx:{flexGrow:1,display:`flex`,flexDirection:`column`},children:[o.length>0&&(0,Y.jsx)(s,{sx:{display:{xs:`flex`,md:`none`},flexWrap:`nowrap`,overflowX:`auto`,gap:`0.5rem`,mx:{xs:`-1rem`,md:0},px:{xs:`1rem`,md:0},pt:`1.25rem`,pb:`0.25rem`,"&::-webkit-scrollbar":{display:`none`},scrollbarWidth:`none`},children:[``,...o].map(e=>{let n=e?Zh[e]:Xh;return(0,Y.jsx)(tg,{label:e||`All`,icon:n,isSelected:r===e,onClick:()=>t({category:e})},e||`_all`)})}),(0,Y.jsxs)(s,{sx:{display:`flex`,flexGrow:1},children:[(0,Y.jsxs)(s,{component:`nav`,"aria-label":`Categories`,sx:{width:210,flexShrink:0,pr:`0.75rem`,pl:`0.25rem`,ml:`-0.25rem`,pt:`1.75rem`,pb:`2.5rem`,display:{xs:`none`,md:`block`},position:`sticky`,top:Yt,alignSelf:`flex-start`,maxHeight:`calc(100vh - ${Yt} - 1.125rem)`,overflowY:`auto`,zIndex:50},children:[(0,Y.jsx)(gn,{sx:{mb:`0.625rem`,px:`0.625rem`},children:`Categories`}),[``,...o].map(e=>{let n=e?Zh[e]:Xh;return(0,Y.jsx)(Og,{label:e||`All categories`,icon:n,isSelected:r===e,onClick:()=>t({category:e})},e||`_all`)})]}),(0,Y.jsxs)(s,{sx:e=>({flex:1,minWidth:0,borderLeft:{xs:`none`,md:`1px solid ${e.palette.border2}`},pl:{md:`1.25rem`},pb:{xs:`2.5rem`,sm:`4rem`}}),children:[(0,Y.jsx)(Mg,{resultNumber:c,sortBy:i,sortOrder:a,searchQuery:n,category:r,onSortByChanged:e=>t({sortBy:e}),onSortOrderChanged:e=>t({sortOrder:e})}),(0,Y.jsx)(Eg,{filter:{query:n,category:r,offset:0,size:30,sortBy:i,sortOrder:a},onUpdate:l})]})]})]})},Pg=w((0,Y.jsx)(`path`,{d:`M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z`}),`LinkedIn`),Fg=w((0,Y.jsx)(`path`,{d:`M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z`}),`Twitter`),Ig=()=>{let[e,t]=(0,K.useState)(!0),[n,r]=(0,K.useState)(!0),[i,a]=(0,K.useState)(!1),[o,c]=(0,K.useState)(),[l,d]=(0,K.useState)(``),{name:f}=We(),{pageSettings:p,service:m,handleError:h}=(0,K.useContext)(I),g=(0,K.useRef)(new AbortController);(0,K.useEffect)(()=>(_(f),()=>{g.current.abort()}),[]),(0,K.useEffect)(()=>{c(void 0),t(!0),_(f)},[f]);let _=async e=>{try{let n=await m.getNamespaceDetails(g.current,e);if(V(n))throw n;c(n),t(!1),r(!0)}catch(n){n&&n.status===404?d(`Namespace Not Found: ${e}`):h(n),t(!1)}},v=()=>{r(!1)},y=e=>e.replace(/https?:\/\//,``),b=(e,t)=>{let{namespaceHeadTags:n}=p.elements;return(0,Y.jsx)(Y.Fragment,{children:n?(0,Y.jsx)(n,{namespaceDetails:t,name:e,pageSettings:p}):null})},x=()=>(0,Y.jsx)(Y.Fragment,{children:l?(0,Y.jsx)(s,{p:4,children:(0,Y.jsx)(u,{variant:`h5`,children:l})}):null}),S=e=>{let t=n&&e&&(e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth);a(t)};return(0,Y.jsxs)(Y.Fragment,{children:[b(f,o),(0,Y.jsx)(Re,{loading:e}),o?((e,t)=>
25{let{website:n,supportLink:r,socialLinks:a}=e;return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(s,{sx:{borderBottom:`1px solid`,borderColor:`divider`},children:(0,Y.jsx)(ia,{maxWidth:`xl`,sx:{py:{xs:`2rem`,sm:`3rem`}},children:(0,Y.jsxs)(s,{sx:{display:`flex`,flexDirection:{xs:`column`,sm:`row`},alignItems:{xs:`flex-start`,sm:`center`},gap:{xs:`1.5rem`,sm:`2rem`}},children:[(0,Y.jsx)(s,{component:`img`,src:e.logo??p.urls.extensionDefaultIcon,alt:e.displayName,sx:{width:`7.5rem`,height:`7.5rem`,objectFit:`contain`,flexShrink:0}}),(0,Y.jsxs)(s,{sx:{minWidth:0,flex:1},children:[(0,Y.jsx)(u,{variant:`h5`,sx:{fontWeight:700},children:e.displayName}),e.description?(0,Y.jsxs)(s,{sx:{mt:`0.5rem`},children:[(0,Y.jsx)(u,{color:`text.secondary`,ref:S,sx:t?{overflow:`hidden`,textOverflow:`ellipsis`,display:`-webkit-box`,WebkitLineClamp:`2`,WebkitBoxOrient:`vertical`}:{},children:e.description}),i?(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,component:`button`,onClick:v,children:`Read more`}):null]}):null,n||r?(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:`0.75rem`,mt:`1rem`},children:[n?(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,target:`_blank`,href:n,children:y(n)}):null,n&&r?(0,Y.jsx)(Tn,{orientation:`vertical`,flexItem:!0}):null,r?(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,target:`_blank`,href:r,children:y(r)}):null]}):null,a.linkedin||a.github||a.twitter?(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`1rem`,mt:`1rem`},children:[a.linkedin?(0,Y.jsx)(U,{target:`_blank`,color:`text.primary`,href:a.linkedin,children:(0,Y.jsx)(Pg,{})}):null,a.github?(0,Y.jsx)(U,{target:`_blank`,color:`text.primary`,href:a.github,children:(0,Y.jsx)(Nn,{})}):null,a.twitter?(0,Y.jsx)(U,{target:`_blank`,color:`text.primary`,href:a.twitter,children:(0,Y.jsx)(Fg,{})}):null]}):null]})]})})}),e.extensions?(0,Y.jsx)(ia,{maxWidth:`xl`,sx:{py:{xs:`2rem`,sm:`3rem`}},children:(0,Y.jsx)(Wt,{children:e.extensions.map((e,t)=>(0,Y.jsx)(bc,{extension:e,fadeDelayMs:t%10*200},`${e.namespace}.${e.name}`))})}):null]})})(o,n):x()]})},Lg=w((0,Y.jsx)(`path`,{d:`M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2m-3 6.42 3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4z`}),`BrokenImage`),Rg=()=>(0,Y.jsx)(uc,{flushTop:!0,children:(0,Y.jsxs)(s,{height:`30vh`,display:`flex`,flexWrap:`wrap`,justifyContent:`center`,alignItems:`center`,children:[(0,Y.jsx)(u,{variant:`h3`,children:`Oooups...this is a 404 page.`}),(0,Y.jsx)(Lg,{sx:{fontSize:`4rem`,flexBasis:`100%`}})]})}),zg=w((0,Y.jsx)(`path`,{d:`M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z`}),`Menu`),Bg=()=>{let e=Ee(),{pageSettings:t}=(0,K.useContext)(I),{defaultMenuContent:n,mobileMenuContent:r}=t.elements;return De(e.breakpoints.down(`lg`))&&r?(0,Y.jsx)(Vg,{menuContent:r}):n?(0,Y.jsx)(n,{}):null},Vg=e=>{let t=Ue(),[n,r]=(0,K.useState)(!1),[i,a]=(0,K.useState)();(0,K.useEffect)(()=>{r(!1)},[t]);let o=e.menuContent;return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(we,{title:`Menu`,"aria-label":`Menu`,color:`inherit`,onClick:e=>{a(e.currentTarget),r(!n)},children:(0,Y.jsx)(zg,{})}),(0,Y.jsx)(ft,{open:n,anchorEl:i,anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`},onClose:()=>r(!1),children:(0,Y.jsx)(o,{})})]})},Hg=({style:e})=>(0,Y.jsxs)(`svg`,{viewBox:`0 0 110 131`,style:{height:`1.875rem`,...e},children:[(0,Y.jsx)(`path`,{d:`M30 44.2L52.6 5H7.3zM4.6 88.5h45.3L27.2 49.4zm51 0l22.6 39.2 22.6-39.2z`,fill:`#c160ef`}),(0,Y.jsx)(`path`,{d:`M52.6 5L30 44.2h45.2zM27.2 49.4l22.7 39.1 22.6-39.1zm51 0L55.6 88.5h45.2z`,fill:`#a60ee5`})]}),Ug=P(s,{shouldForwardProp:e=>e!==`hasError`})(({theme:e,hasError:t})=>({flex:2,display:`flex`,alignItems:`center`,gap:`0.625rem`,border:t?`2px solid`:`1px solid`,borderColor:t?e.palette.error.main:e.palette.divider,borderRadius:e.shape.borderRadiusCard,height:`2.8rem`,padding:`0 0.8125rem`,backgroundColor:He(e.palette.surface2,.7),backdropFilter:`blur(2px)`,transition:`border-color 0.18s, box-shadow 0.18s`,"&:focus-within":Pn(e)})),Wg=P($e)(({theme:e})=>({flex:1,fontFamily:Rt,fontSize:`0.9375rem`,color:e.palette.text.primary,[e.breakpoints.down(`sm`)]:{fontSize:`1rem`}
25,"& input::placeholder":{color:e.palette.text.primary,opacity:.7},"& input::-webkit-search-cancel-button":{display:`none`}})),Gg=(0,K.forwardRef)((e,t)=>{let n=(0,K.useRef)(null),r=(0,K.useId)(),i=(0,K.useCallback)(e=>{n.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]),a=t=>{e.onSearchChanged(t.target.value)},o=()=>{e.onSearchSubmit&&e.onSearchSubmit(e.searchQuery??``)},s=()=>{e.onSearchChanged(``),n.current?.focus()},c=t=>{e.inputProps?.onKeyDown?.(t),t.key===`Enter`&&e.onSearchSubmit&&!t.defaultPrevented&&e.onSearchSubmit(e.searchQuery??``)};return(0,Y.jsxs)(Ug,{hasError:e.error,style:e.viewTransitionName?{viewTransitionName:e.viewTransitionName}:void 0,children:[(0,Y.jsx)(jt,{children:`/`}),(0,Y.jsx)(Wg,{inputRef:i,autoFocus:e.autoFocus??!1,value:e.searchQuery,onChange:a,placeholder:e.placeholder,id:r,type:`search`,inputMode:`search`,inputProps:{...e.inputProps,onKeyDown:c}}),(0,Y.jsx)(`label`,{htmlFor:r,className:`visually-hidden`,children:`Search for Name, Tags or Description`}),e.searchQuery&&(0,Y.jsx)(we,{"aria-label":`Clear search`,onClick:s,size:`small`,sx:{color:`text.disabled`,p:`0.25rem`,flexShrink:0,transition:`color 0.14s`,"&:hover":{color:`text.primary`}},children:(0,Y.jsx)(Lt,{sx:{fontSize:`1.125rem`}})}),!e.hideIconButton&&(0,Y.jsx)(we,{color:`primary`,"aria-label":`Search`,onClick:o,sx:{bgcolor:`secondary.main`,color:`secondary.contrastText`,borderRadius:1,p:`0.375rem`,flexShrink:0,transition:`background 0.14s`,"&:hover":{bgcolor:`secondary.dark`}},children:(0,Y.jsx)(Ve,{fontSize:`small`})})]})});Gg.displayName=`ExtensionSearchfield`;var Kg=()=>{let{pathname:e}=Ue(),{query:t}=vs(),{search:n,filter:r}=ts(),{searchFocusSignal:i,resultsNavigationSignal:a,setSearchFocused:o}=ss(),{hasPageSearchBar:c,isPageSearchBarActive:l}=us(),u=(0,K.useRef)(null),[d,f]=(0,K.useState)(!1);(0,K.useEffect)(()=>{let e=requestAnimationFrame(()=>f(!0));return()=>cancelAnimationFrame(e)},[]);let p=(0,K.useRef)(null),m=(0,K.useRef)(!1);(0,K.useLayoutEffect)(()=>{p.current&&(p.current.inert=c),!c&&m.current&&(m.current=!1,u.current?.focus({preventScroll:!0}))},[c]),kh(i,(0,K.useCallback)(()=>{if(!l()){if(c){m.current=!0;return}u.current?.focus({preventScroll:!0})}},[l,c])),rc({key:`/`,label:`Focus search`,order:1,callback:i.emit});let h=(0,K.useCallback)(e=>n({query:e},{debounce:!0}),[n]),g=(0,K.useCallback)(t=>{if(e===is.SEARCH&&t.trim()===r.query){a.emit(`open`);return}n({query:t})},[n,e,r.query,a.emit]),_=(0,K.useCallback)(e=>{o(!0);let{target:t}=e;requestAnimationFrame(()=>t.setSelectionRange(t.value.length,t.value.length))},[o]),v=(0,K.useCallback)(()=>o(!1),[o]),y=(0,K.useCallback)(t=>{if(t.key===`Escape`){t.preventDefault(),t.target.blur();return}e===is.SEARCH&&(t.key===`ArrowDown`||t.key===`ArrowUp`)&&(t.preventDefault(),a.emit(t.key===`ArrowDown`?`next`:`previous`))},[a.emit,e]);return(0,Y.jsx)(s,{sx:{flex:1,display:{xs:c?`none`:`flex`,md:`flex`},alignItems:`center`,justifyContent:`center`,px:{xs:`0.5rem`,md:`1.25rem`}},children:(0,Y.jsx)(s,{ref:p,sx:{display:`flex`,width:`100%`,maxWidth:`35rem`,mx:`auto`,opacity:+!c,pointerEvents:c?`none`:`auto`,transition:d?`opacity 0.15s ease`:`none`},children:(0,Y.jsx)(Gg,{ref:u,onSearchChanged:h,onSearchSubmit:g,searchQuery:t,placeholder:`search extensionsâ¦`,hideIconButton:!0,autoFocus:!1,viewTransitionName:c?void 0:`vt-search`,inputProps:{onFocus:_,onBlur:v,onKeyDown:y}})})})},qg=P(s)({display:`flex`,alignItems:`center`}),Jg={"& svg path":{fill:`currentColor`},"& svg path:first-of-type":{fillOpacity:.72}},Yg=[1,.984,.897,.725,.5,.275,.103,.016,0],Xg=[{blur:`5.2px`,saturate:1.35,fadeStart:0},{blur:`2.75px`,saturate:1.25,fadeStart:30},{blur:`1.2px`,saturate:1.2,fadeStart:60}].map(({blur:e,saturate:t,fadeStart:n})=>({filter:`blur(${e}) saturate(${t})`,mask:`linear-gradient(to bottom, ${Yg.map((e,t)=>`rgba(0, 0, 0, ${e}) ${n+40*t/(Yg.length-1)}%`).join(`, `)})`})),Zg=()=>{let e=ec(),[t,n]=(0,K.useState)(!1);(0,K.useEffect)(()=>{if(!e){n(!1);return}let t=()=>n(window.scrollY>e.depth-31);return t(),window.addEventListener(`scroll`,t,{passive:!0}),()=>window.removeEventListener(`scroll`,t)},[e]);let r=e&&!t?e.color:null,i=(0,K.useRef)(r);return(0,K.useEffect)(()=>{r&&(i.current=r)},[r]),{navTint:r,washColor:r??i.current}},Qg=()=>{let{pageSettings:e}=(0,K.useContext)(I),{toolbarContent:t}=e.elements,{hasPageSearchBar:n}=us(),r=Ee(),i=r.palette.mode===`dark`?.74:.78,a=He(r.palette.background.default,i),o=r.palette.mode===`dark`?.3:.35,[c,l]=(0,K.useState)(!1);(0,K.useEffect)(()=>{let e=()=>l(window.scrollY>20);return window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]);let u=!c,d=c,{navTint:f,washColor:p}=Zg(),m=nc(),h=e=>({xs:`-48px`,sm:`-80px`,md:`-${80+(e?m:0)}px`}),g={xs:`-48px`,sm:`-150px`,md:`-${150+m}px`},_=f?r.palette.getContrastText(f):r.palette.text.primary,v=f??a,y=f??r.palette.divider,b=e=>`linear-gradient(to bottom, ${Yg.map((t,n)=>`${He(e,o*t)} ${n*100/(Yg.length-1)}%`).join(`, `)})`,x=b(r.palette.background.default),S=p?b(p):null;return(0,Y.jsxs)(Ri,{position:`sticky`,color:`transparent`,elevation:0,sx:{overflow:`visible`,zIndex:50},children:[(0,Y.jsx)(s,{"aria-hidden":`true`,sx:{position:`absolute`,inset:0,pointerEvents:`none`,zIndex:0,backgroundColor:v,backdropFilter:`blur(12px) saturate(1.3)`,WebkitBackdropFilter:`blur(12px) saturate(1.3)`,borderBottom:`1px solid`,borderColor:y,opacity:+!!u,visibility:u?`visible`:`hidden`,transition:`opacity 0.35s ease, visibility 0.35s, background-color 0.35s ease, border-color 0.35s ease`}}),Xg.map((e,t)=>(0,Y.jsx)(s,{"aria-hidden":`true`,sx:{position:`absolute`,left:0,right:0,top:0,bottom:h(t===Xg.length-1),pointerEvents:`none`,zIndex:0,opacity:+!!d,visibility:d?`visible`:`hidden`,transition:`opacity 0.35s ease, visibility 0.35s, bottom 0.35s ease`,backdropFilter:e.filter,WebkitBackdropFilter:e.filter,WebkitMaskImage:e.mask,maskImage:e.mask}},t)),(0,Y.jsx)(s,{"aria-hidden":`true`,sx:{position:`absolute`,left:0,right:0,top:0,bottom:g,pointerEvents:`none`,zIndex:0,opacity:d&&!f?1:0,transition:`opacity 0.35s ease, bottom 0.35s ease`,background:x}}),S&&(0,Y.jsx)(s,{"aria-hidden":`true`,sx:{position:`absolute`,left:0,right:0,top:0,bottom:g,pointerEvents:`none`,zIndex:0,opacity:d&&f?1:0,transition:`opacity 0.35s ease, bottom 0.35s ease`,background:S}}),(0,Y.jsxs)(vo,{disableGutters:!0,sx:{justifyContent:`space-between`,px:{xs:`0.625rem`,sm:`1.75rem`},position:`relative`,zIndex:1,color:_,transition:`color 0.35s ease`,"& svg path":{transition:`fill 0.35s ease, fill-opacity 0.35s ease`},...f&&{"& .MuiButton-textSecondary":{color:`inherit`}}},children:[(0,Y.jsxs)(qg,{children:[(0,Y.jsx)(s,{sx:{display:{xs:n?`none`:`flex`,md:`none`},alignItems:`center`,mr:`0.5rem`,...f&&Jg},children:(0,Y.jsx)(R,{to:`/`,"aria-label":`Home`,style:{display:`flex`,textDecoration:`none`,color:`inherit`},children:(0,Y.jsx)(Hg,{style:{height:`2.5rem`}})})}),(0,Y.jsx)(s,{sx:{display:{xs:n?`flex`:`none`,md:`flex`},...f&&Jg},children:t?(0,Y.jsx)(t,{}):null})]}),(0,Y.jsx)(Kg,{}),(0,Y.jsx)(qg,{children:(0,Y.jsx)(Bg,{})})]})]})},$g=({theme:e})=>({fontSize:`0.8125rem`,color:e.palette.text.secondary,textDecoration:`none`,display:`block`,"&:hover":{color:e.palette.secondary.light},...Kt(e)}),e_=P(`a`)($g),t_=P(R)($g),n_=P(`a`)(({theme:e})=>
25({width:34,height:34,borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.paper,color:e.palette.text.secondary,display:`flex`,alignItems:`center`,justifyContent:`center`,textDecoration:`none`,transition:`border-color 0.14s, color 0.14s`,...Gt(e),...Kt(e)})),r_=P(`button`)(({theme:e})=>({background:`none`,border:`none`,cursor:`pointer`,padding:0,display:`flex`,alignItems:`center`,gap:`0.5rem`,fontSize:`0.75rem`,color:e.palette.text.disabled,"&:hover":{color:e.palette.secondary.light},...Kt(e)})),i_=P(`footer`)(({theme:e})=>({position:`fixed`,bottom:0,zIndex:50,width:`100%`,padding:`${e.spacing(1)} ${e.spacing(2)}`,backgroundColor:e.palette.background.paper,boxShadow:`0px -2px 6px 0px rgba(0, 0, 0, 0.5)`,backgroundImage:e.palette.mode===`dark`?`linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08))`:void 0})),a_=({footer:e})=>{let t=e.content,[n,r]=(0,K.useState)(!1);return(0,Y.jsx)(i_,{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:(0,Y.jsx)(t,{expanded:n})})},o_=({onOpenShortcuts:e})=>{let{pageSettings:t,version:n}=(0,K.useContext)(I),r=t.elements.footer;return rc({key:`?`,label:`Show keyboard shortcuts`,order:0,callback:e,enabled:typeof r!=`function`&&!(r&&`content`in r)}),typeof r==`function`?(0,Y.jsx)(r,{}):r&&`content`in r?(0,Y.jsx)(a_,{footer:r}):(0,Y.jsx)(s_,{footer:r,version:n?.version??null,onOpenShortcuts:e})},s_=({footer:e,version:t,onOpenShortcuts:n})=>(0,Y.jsxs)(s,{component:`footer`,sx:{mt:`auto`,borderTop:`1px solid`,borderColor:`divider`,bgcolor:`background.paper`},children:[e&&(e.brand||e.columns)&&(0,Y.jsxs)(ia,{maxWidth:`xl`,sx:{pt:`3rem`,pb:`1.875rem`,display:`grid`,gridTemplateColumns:{xs:`1fr`,sm:`1fr 1fr`,md:`1fr repeat(${e?.columns?.length??0}, minmax(0, 13rem))`},gap:`2.125rem`},children:[e.brand&&(0,Y.jsxs)(s,{children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.5625rem`,mb:`1.125rem`},children:[e.brand.logo,(0,Y.jsx)(u,{sx:{fontWeight:700,fontSize:`0.9375rem`},children:e.brand.name})]}),e.brand.description&&(0,Y.jsx)(u,{sx:{fontSize:`0.8125rem`,color:`text.disabled`,lineHeight:1.55,mb:`1.125rem`,maxWidth:`16.25rem`},children:e.brand.description}),e.social&&e.social.length>0&&(0,Y.jsx)(s,{sx:{display:`flex`,gap:`0.5rem`},children:e.social.map(e=>(0,Y.jsx)(n_,{href:e.href,target:`_blank`,title:e.title,children:e.icon},e.title))})]}),e.columns?.map((e,t)=>(0,Y.jsxs)(s,{children:[(0,Y.jsx)(gn,{sx:{mb:`0.875rem`},children:e.heading}),(0,Y.jsx)(s,{sx:{display:`flex`,flexDirection:`column`,gap:`0.625rem`},children:e.links.map((e,t)=>!e.external&&e.href.startsWith(`/`)&&!e.href.startsWith(`//`)?(0,Y.jsx)(t_,{to:e.href,children:e.label},t):(0,Y.jsx)(e_,{href:e.href,target:e.external?`_blank`:void 0,children:e.label},t))})]},t))]}),(0,Y.jsxs)(ia,{maxWidth:`xl`,sx:{py:`1.25rem`,borderTop:e?.brand||e?.columns?`1px solid`:`none`,borderColor:`divider`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,flexWrap:`wrap`,gap:`0.75rem`},children:[(0,Y.jsx)(u,{sx:{fontSize:`0.75rem`,color:`text.disabled`},children:e?.copyright}),(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`1.25rem`},children:[e?.extra,(0,Y.jsxs)(r_,{type:`button`,onClick:n,children:[`Keyboard shortcuts`,(0,Y.jsx)(Xs,{children:`?`})]}),e?.showVersion&&t&&(0,Y.jsx)(u,{sx:{fontSize:`0.75rem`,color:`text.disabled`,fontFamily:`'Geist Mono', monospace`},children:t})]})]})]}),c_=()=>{let{pathname:e,state:t}=Ue(),n=Ne(),r=t?.preserveScroll;return(0,K.useLayoutEffect)(()=>{n!==`POP`&&!r&&window.scrollTo({top:0,left:0})},[e]),null},l_=(0,K.lazy)(()=>Ae(()=>Promise.resolve().then(()=>Iy).then(e=>({default:e.UserSettings})),void 0)),u_=P(s)({display:`flex`,flexDirection:`column`,position:`relative`,minHeight:`100vh`}),d_=e=>{let{pageSettings:t}=(0,K.useContext)(I),{additionalRoutes:n,banner:r,footer:i}=t.elements,a=typeof i==`object`&&`content`in i?i.props?.footerHeight:0,o=Ge(),{search:c}=ts(),[l,u]=(0,K.useState)(!1),[d,f]=(0,K.useState)(!1);return(0,K.useEffect)(()=>{let e=t.elements.banner;if(!e||e.cookie&&Qn(e.cookie.key)===e.cookie.value)return;let n=setTimeout(()=>u(!0),600);return()=>clearTimeout(n)},[]),rc({key:`h`,label:`Go to home`,order:4,callback:()=>o(`/`)}),rc({key:`s`,label:`Go to search`,order:5,callback:()=>c({query:``})}),(0,Y.jsxs)(u_,{children:[(0,Y.jsx)(c_,{}),r?(0,Y.jsx)(Ys,{open:l,showDismissButton:r.props?.dismissButton?.show,dismissButtonLabel:r.props?.dismissButton?.label,dismissButtonOnClick:()=>{let e=t.elements.banner?.props?.onClose;e&&e();let n=t.elements.banner?.cookie;n&&Kn(n),u(!1)},color:r.props?.color,children:(0,Y.jsx)(r.content,{})}):null,(0,Y.jsx)(Qg,{}),(0,Y.jsx)(s,{sx:{flexGrow:1,display:`flex`,flexDirection:`column`,minHeight:{xs:`calc(100vh - ${Yt})`,sm:0},pb:a?`${a+24}px`:0},children:(0,Y.jsx)(K.Suspense,{fallback:null,children:(0,Y.jsxs)(Me,{children:[(0,Y.jsx)(Fe,{path:is.MAIN,element:(0,Y.jsx)(gg,{})}),(0,Y.jsx)(Fe,{path:is.SEARCH,element:(0,Y.jsx)(Ng,{})}),(0,Y.jsx)(Fe,{path:Es.MAIN,element:(0,Y.jsx)(l_,{userLoading:e.userLoading})}),(0,Y.jsx)(Fe,{path:Es.EXTENSION_SETTINGS,element:(0,Y.jsx)(l_,{userLoading:e.userLoading})}),(0,Y.jsx)(Fe,{path:Es.NAMESPACE_DETAIL,element:(0,Y.jsx)(l_,{userLoading:e.userLoading})}),(0,Y.jsx)(Fe,{path:ac.ROOT,element:(0,Y.jsx)(Hc,{})}),(0,Y.jsx)(Fe,{path:ic.MAIN,element:(0,Y.jsx)(Ig,{})}),(0,Y.jsx)(Fe,{path:qt.MAIN,element:(0,Y.jsx)(Oh,{})}),(0,Y.jsx)(Fe,{path:qt.MAIN_TARGET,element:(0,Y.jsx)(Oh,{})}),n??null,(0,Y.jsx)(Fe,{path:`*`,element:(0,Y.jsx)(Rg,{})})]})})}),(0,Y.jsx)(o_,{onOpenShortcuts:()=>f(!0)}),(0,Y.jsx)(Zs,{open:d,onClose:()=>f(!1)})]})},f_=e=>(0,Y.jsx)($s,{children:(0,Y.jsx)(d_,{...e})}),p_=(0,K.lazy)(()=>Ae(()=>import(`./chunk-admin-dashboard-Dv1cGksx.js`).then(e=>({default:e.AdminDashboard})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]))),m_=e=>{let[t,n]=(0,K.useState)(),[r,i]=(0,K.useState)(!0),[a,o]=(0,K.useState)(e.loginProviders),[s,c]=(0,K.useState)(),[l,u]=(0,K.useState)(!1),[d,f]=(0,K.useState)(void 0),p=(0,K.useRef)(new AbortController),m=(0,K.useRef)(void 0);(0,K.useEffect)(()=>(g(),new URLSearchParams(window.location.search).has(`auth-error`)&&e.service.getUserAuthError(p.current).then(_),h(),e.service.getRegistryVersion(p.current).then(f).catch(()=>{}),()=>p.current.abort()),[]);let h=async()=>{try{i(!0);let t=await e.service.getUser(p.current);V(t)?n(void 0):n(t)}catch(e){_(e)}i(!1)},g=async()=>
25{if(e.loginProviders!=null)return;let t=await e.service.getLoginProviders(p.current);At(t)?console.log(t.success):o(t.loginProviders)},_=(e,t)=>{if(e instanceof DOMException&&e.message.trim()===`The operation was aborted.`)return;let n=Gn(e),r=e.code;m.current=t?.onClose,c({message:n,code:r}),u(!0)},v=()=>{u(!1);let e=m.current;m.current=void 0,e?.()},y=()=>{let{mainHeadTags:t}=e.pageSettings.elements;return(0,Y.jsxs)(Y.Fragment,{children:[t?(0,Y.jsx)(t,{pageSettings:e.pageSettings}):null,(0,Y.jsxs)(Me,{children:[(0,Y.jsx)(Fe,{path:Us.MAIN+`/*`,element:(0,Y.jsx)(K.Suspense,{fallback:null,children:(0,Y.jsx)(p_,{userLoading:r})})}),(0,Y.jsx)(Fe,{path:`*`,element:(0,Y.jsx)(f_,{userLoading:r})})]}),s?(0,Y.jsx)(Gs,{errorMessage:s.message,errorCode:s.code,isErrorDialogOpen:l,handleCloseDialog:v}):null]})},b={service:e.service,pageSettings:e.pageSettings,user:t,userLoading:r,updateUser:h,loginProviders:a,handleError:_,version:d};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(sa,{}),(0,Y.jsx)(Hs,{mainContext:b,children:y()})]})},h_=e(n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.fetchRetry=r())})(e,(function(){var e=function(e,r){if(r=r||{},typeof e!=`function`)throw new n(`fetch must be a function`);if(typeof r!=`object`)throw new n(`defaults must be an object`);if(r.retries!==void 0&&!t(r.retries))throw new n(`retries must be a positive integer`);if(r.retryDelay!==void 0&&!t(r.retryDelay)&&typeof r.retryDelay!=`function`)throw new n(`retryDelay must be a positive integer or a function returning a positive integer`);if(r.retryOn!==void 0&&!Array.isArray(r.retryOn)&&typeof r.retryOn!=`function`)throw new n(`retryOn property expects an array or function`);return r=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},r),function(i,a){var o=r.retries,s=r.retryDelay,c=r.retryOn;if(a&&a.retries!==void 0){if(t(a.retries))o=a.retries;else throw new n(`retries must be a positive integer`)}if(a&&a.retryDelay!==void 0){if(t(a.retryDelay)||typeof a.retryDelay==`function`)s=a.retryDelay;else throw new n(`retryDelay must be a positive integer or a function returning a positive integer`)}if(a&&a.retryOn){if(Array.isArray(a.retryOn)||typeof a.retryOn==`function`)c=a.retryOn;else throw new n(`retryOn property expects an array or function`)}return new Promise(function(t,n){var r=function(r){e(typeof Request<`u`&&i instanceof Request?i.clone():i,a).then(function(e){if(Array.isArray(c)&&c.indexOf(e.status)===-1)t(e);else if(typeof c==`function`)try{return Promise.resolve(c(r,null,e)).then(function(n){n?l(r,null,e):t(e)}).catch(n)}catch(e){n(e)}else r<o?l(r,null,e):t(e)}).catch(function(e){if(typeof c==`function`)try{Promise.resolve(c(r,e,null)).then(function(t){t?l(r,e,null):n(e)}).catch(function(e){n(e)})}catch(e){n(e)}else r<o?l(r,e,null):n(e)})};function l(e,t,n){var i=typeof s==`function`?s(e,t,n):s;setTimeout(function(){r(++e)},i)}r(0)})}};function t(e){return Number.isInteger(e)&&e>=0}function n(e){this.name=`ArgumentError`,this.message=e}return e}))}))());async function g_(e,t=!0){e.method??(e.method=`GET`),e.headers??(e.headers={}),e.headers.Accept||(e.headers.Accept=`application/json`);let n={method:e.method};e.abortController?n.signal=e.abortController.signal:e.abortSignal&&(n.signal=e.abortSignal),e.payload&&(n.body=e.payload instanceof File||e.payload instanceof FormData?e.payload:JSON.stringify(e.payload)),n.headers=e.headers,e.followRedirect&&(n.redirect=`follow`),e.credentials&&(n.credentials=`include`);let r=await(0,h_.default)(fetch,t?{retries:10,retryDelay:(e,t,n)=>2**e*1e3,retryOn:(e,t,n)=>t!==null||n.status>=500}:{})(e.endpoint,n);if(r.ok)switch(e.headers.Accept){case`application/json`:return r.json();case`text/plain`:return r.text();case`application/octet-stream`:return r.blob();default:throw Error(`Unsupported type ${e.headers.Accept}`)}else if(r.status===429){let n=r.headers.get(`X-Rate-Limit-Retry-After-Seconds`),i=r.headers.get(`Retry-After`),a=n??i??`0`,o=Math.floor(Math.random()*100),s=(Number(a)+1)*1e3+o;return new Promise(t=>setTimeout(t,s,e)).then(e=>g_(e,t))}else{let t;try{t=await r.json(),t.status=r.status}catch{t={error:`Request failed: ${e.method} ${r.url}`,status:r.status,message:r.statusText||`Status ${r.status}`}}throw t}}function __(e){return g_(e,!1)}async function v_(e){let t=await g_(e,!1);if(V(t))throw t;return t}var y_=class{constructor(e=``,t=b_){this.serverUrl=e,this.admin=new t(this)}async getLoginProviders(e){return g_({abortController:e,endpoint:W([this.serverUrl,`login-providers`])})}getLogoutUrl(){return W([this.serverUrl,`logout`])}getExtensionApiUrl(e){let t=[this.serverUrl,`api`,e.namespace,e.name];return e.target&&t.push(e.target),e.version&&t.push(e.version),W(t)}async getNamespaceDetails(e,t){return v_({abortController:e,endpoint:W([this.serverUrl,`api`,t,`details`])})}async setNamespaceDetails(e,t,n){let r=await this.getCsrfToken(e),i={"Content-Type":`application/json;charset=UTF-8`};if(!V(r)){let e=r;i[e.header]=e.value}return v_({abortController:e,method:`POST`,payload:n,credentials:!0,endpoint:t,headers:i})}async setNamespaceLogo(e,t,n,r){let i=await this.getCsrfToken(e),a={};if(!V(i)){let e=i;a[e.header]=e.value}let o=new FormData;return o.append(`file`,n,r),t=W([t,`logo`]),v_({abortController:e,method:`POST`,payload:o,credentials:!0,endpoint:t,headers:a})}async search(e,t){let n=[];return t&&(t.query&&n.push({key:`query`,value:t.query}),t.category&&n.push({key:`category`,value:t.category}),t.offset&&n.push({key:`offset`,value:t.offset}),t.size&&n.push({key:`size`,value:t.size}),t.sortBy&&n.push({key:`sortBy`,value:t.sortBy}),t.sortOrder&&n.push({key:`sortOrder`,value:t.sortOrder})),v_({abortController:e,endpoint:W([this.serverUrl,`api`,`-`,`search`],n)})}async getExtensionDetail(e,t){return g_({abortController:e,endpoint:t})}async getExtensionReadme(e,t){return g_({abortController:e,endpoint:t.files.readme,headers:{Accept:`text/plain`},followRedirect:!0})}async getExtensionChangelog(e,t){return g_({abortController:e,endpoint:t.files.changelog,headers:{Accept:`text/plain`},followRedirect:!0})}async getExtensionIcon(e,t){return t.files?.icon?g_({abortController:e,endpoint:t.files.icon,headers:{Accept:`application/octet-stream`},followRedirect:!0}).then(e=>{let t=e;return URL.createObjectURL(t)}):Promise.resolve(void 0)}async getExtensionReviews(e,t){return g_({abortController:e,endpoint:t.reviewsUrl})}async postReview(e,t,n){let r=await this.getCsrfToken(e),i={"Content-Type":`application/json;charset=UTF-8`};if(!V(r)){let e=r;i[e.header]=e.value}return g_({abortController:e,method:`POST`,payload:t,credentials:!0,endpoint:n,headers:i})}async deleteReview(e,t){let n=await this.getCsrfToken(e),r={};if(!V(n)){let e=n;r[e.header]=e.value}return g_({abortController:e,method:`POST`,credentials:!0,endpoint:t,headers:r})}async deleteUserReview(e,t,n){let r=await this.getCsrfToken(e),i={};if(!V(r)){let e=r;i[e.header]=e.value}return g_({abortController:e,method:`POST`,credentials:!0,endpoint:W([this.serverUrl,`admin`,`extension`,t.namespace,t.name,`review`,n.provider||`github`,n.loginName,`delete`]),headers:i})}async getUser(e){return g_({abortController:e,endpoint:W([this.serverUrl,`user`]),credentials:!0})}async getUserAuthError(e){return g_({abortController:e,endpoint:W([this.serverUrl,`user`,`auth-error`]),credentials:!0})}async getUserByName(e,t){return g_({abortController:e,endpoint:W([this.serverUrl,`user`,`search`,t]),credentials:!0})}async getAccessTokens(e,t){return g_({abortController:e,credentials:!0,endpoint:t.tokensUrl})}async createAccessToken(e,t,n){let r=await this.getCsrfToken(e),i={};if(!V(r)){let e=r;i[e.header]=e.value}return g_({abortController:e,method:`POST`,credentials:!0,endpoint:$n(t.createTokenUrl,[{key:`description`,value:n}]),headers:i})}
25async deleteAccessToken(e,t){let n=await this.getCsrfToken(e),r={};if(!V(n)){let e=n;r[e.header]=e.value}return g_({abortController:e,method:`POST`,credentials:!0,endpoint:t.deleteTokenUrl,headers:r})}async deleteAllAccessTokens(e,t){let n=await this.getCsrfToken(e),r={};if(!V(n)){let e=n;r[e.header]=e.value}return await Promise.all(t.map(t=>g_({abortController:e,method:`POST`,credentials:!0,endpoint:t.deleteTokenUrl,headers:r})))}async getCsrfToken(e){return g_({abortController:e,credentials:!0,endpoint:W([this.serverUrl,`user`,`csrf`])})}async getNamespaces(e){return g_({abortController:e,credentials:!0,endpoint:W([this.serverUrl,`user`,`namespaces`])})}async getCustomers(e){return g_({abortController:e,credentials:!0,endpoint:W([this.serverUrl,`user`,`customers`])})}async getUsageStats(e,t,n){let r=[];return r.push({key:`date`,value:n.toISOString()}),g_({abortController:e,endpoint:W([this.serverUrl,`user`,`customers`,t,`usage`],r),credentials:!0},!1)}async getNamespaceMembers(e,t){return g_({abortController:e,credentials:!0,endpoint:t.membersUrl})}async setNamespaceMember(e,t,n,r){let i=await this.getCsrfToken(e),a={};if(!V(i)){let e=i;a[e.header]=e.value}let o=[{key:`user`,value:n.loginName},{key:`provider`,value:n.provider},{key:`role`,value:r}];return g_({abortController:e,headers:a,method:`POST`,credentials:!0,endpoint:$n(t,o)})}userTrustedPublishingUrl(e){return W([this.serverUrl,`user`,`namespace`,e,`trusted-publishing`])}async getTrustedPublishingStatus(e){return v_({abortController:e,credentials:!0,endpoint:W([this.serverUrl,`api`,`-`,`trusted-publishing`,`status`])})}async getTrustedPublishers(e,t){let n=await v_({abortController:e,credentials:!0,endpoint:t});return{trustedPublishers:n.trustedPublishers??[],registrableExtensions:n.registrableExtensions??[]}}async registerTrustedPublisher(e,t){let n=await this.getCsrfToken(),r={"Content-Type":`application/json;charset=UTF-8`};if(!V(n)){let e=n;r[e.header]=e.value}return v_({method:`POST`,credentials:!0,payload:t,headers:r,endpoint:W([e,`create`])})}async deleteTrustedPublisher(e,t){let n=await this.getCsrfToken(),r={};if(!V(n)){let e=n;r[e.header]=e.value}return v_({method:`POST`,credentials:!0,headers:r,endpoint:W([e,`delete`,`${t}`])})}async signPublisherAgreement(e){let t=await this.getCsrfToken(e),n={};if(!V(t)){let e=t;n[e.header]=e.value}return g_({abortController:e,method:`POST`,credentials:!0,endpoint:W([this.serverUrl,`user`,`publisher-agreement`]),headers:n})}async getStaticContent(e,t){return g_({abortController:e,endpoint:t,headers:{Accept:`text/plain`},followRedirect:!0})}async publishExtension(e){let t=await this.getCsrfToken(),n={"Content-Type":`application/octet-stream`};if(!V(t)){let e=t;n[e.header]=e.value}return v_({method:`POST`,credentials:!0,payload:e,headers:n,endpoint:W([this.serverUrl,`api`,`user`,`publish`])})}async createNamespace(e){let t=await this.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return v_({method:`POST`,credentials:!0,payload:{name:e},headers:n,endpoint:W([this.serverUrl,`api`,`user`,`namespace`,`create`])})}async getExtensions(e){return v_({abortController:e,method:`GET`,credentials:!0,headers:{},endpoint:W([this.serverUrl,`user`,`extensions`])})}async getExtension(e,t,n){return v_({abortController:e,method:`GET`,credentials:!0,headers:{},endpoint:W([this.serverUrl,`user`,`extension`,t,n])})}async deleteExtensions(e){let t=await this.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return v_({method:`POST`,credentials:!0,endpoint:W([this.serverUrl,`user`,`extension`,e.namespace,e.extension,`delete`]),headers:n,payload:e.targetPlatformVersions})}async getRegistryVersion(e){return g_({abortController:e,endpoint:W([this.serverUrl,`api`,`version`])})}},b_=class{constructor(e){this.registry=e}async getExtension(e,t,n){return v_({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`extension`,t,n])})}async deleteExtensions(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return v_({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`extension`,e.namespace,e.extension,`delete`]),headers:n,payload:e.targetPlatformVersions})}async purgeExtensions(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return v_({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`extension`,e.namespace,e.extension,`purge`]),headers:n,payload:e.targetPlatformVersions})}async getNamespace(e,t){return v_({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`namespace`,t])})}async createNamespace(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return v_({credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`create-namespace`]),method:`POST`,payload:e,headers:n})}async deleteNamespace(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return v_({credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`namespace`,e.name]),method:`DELETE`,headers:n})}async changeNamespace(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return v_({credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`change-namespace`]),method:`POST`,payload:e,headers:n})}async getPublisherInfo(e,t,n){return __({abortController:e,endpoint:W([this.registry.serverUrl,`admin`,`publisher`,t,n]),credentials:!0})}async getUsers(e,t){let n=[];return t&&(t.search&&n.push({key:`query`,value:t.search}),t.role&&n.push({key:`role`,value:t.role}),t.page!==void 0&&n.push({key:`page`,value:t.page}),t.size!==void 0&&n.push({key:`size`,value:t.size})),__({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`user`,`search`],n)})}async updateUserRole(e,t,n){let r=await this.registry.getCsrfToken(),i={};if(!V(r)){let e=r;i[e.header]=e.value}let a=[{key:`role`,value:n}];return v_({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`user`,e,t,`role`],a),headers:i})}async revokePublisherContributions(e,t){let n=await this.registry.getCsrfToken(),r={};if(!V(n)){let e=n;r[e.header]=e.value}return v_({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`publisher`,e,t,`revoke`]),headers:r})}async revokeAccessTokens(e,t){let n=await this.registry.getCsrfToken(),r={};if(!V(n)){let e=n;r[e.header]=e.value}return v_({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`publisher`,e,t,`tokens`,`revoke`]),headers:r})}async forgetUser(e,t){let n=await this.registry.getCsrfToken(),r={};if(!V(n)){let e=n;r[e.header]=e.value}return v_({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`publisher`,e,t,`delete`]),headers:r})}async getAllScans(e,t){let n=[];if(t){if(t.size!==void 0&&n.push({key:`size`,value:t.size}),t.offset!==void 0&&n.push({key:`offset`,value:t.offset}),t.status){let e=Array.isArray(t.status)?t.status.join(`,`):t.status;n.push({key:`status`,value:e})}t.publisher&&n.push({key:`publisher`,value:t.publisher}),t.namespace&&n.push({key:`namespace`,value:t.namespace}),t.name&&n.push({key:`name`,value:t.name}),t.validationType&&t.validationType.length>0&&n.push({key:`validationType`,value:t.validationType.join(`,`)}),t.threatScannerName&&t.threatScannerName.length>0&&n.push({key:`threatScannerName`,value:t.threatScannerName.join(`,`)}),t.dateStartedFrom&&n.push({key:`dateStartedFrom`,value:t.dateStartedFrom}),t.dateStartedTo&&n.push({key:`dateStartedTo`,value:t.dateStartedTo}),t.enforcement&&n.push({key:`enforcement`,value:t.enforcement}),t.adminDecision&&t.adminDecision.length>0&&n.push({key:`adminDecision`,value:t.adminDecision.join(`,`)})}return __({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`scans`],n)})}async getScan(e,t){return __({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`scans`,t])})}async retryFailedScannerJobs(e){let t=await this.registry.getCsrfToken(),n={};if(!V(t)){let e=t;n[e.header]=e.value}return __({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`scans`,e,`jobs`,`retry`]),headers:n})}async getScanCounts(e,t){let n=[];return t&&(t.dateStartedFrom&&n.push({key:`dateStartedFrom`,value:t.dateStartedFrom}),t.dateStartedTo&&n.push({key:`dateStartedTo`,value:t.dateStartedTo}),t.enforcement&&n.push({key:`enforcement`,value:t.enforcement}),t.threatScannerName&&t.threatScannerName.length>0&&n.push({key:`threatScannerName`,value:t.threatScannerName.join(`,`)}),t.validationType&&t.validationType.length>0&&n.push({key:`validationType`,value:t.validationType.join(`,`)})),__({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`scans`,`counts`],n)})}async getScanFilterOptions(e){return __({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`scans`,`filterOptions`])})}async getFiles(e,t){let n=[];return t&&(t.size!==void 0&&n.push({key:`size`,value:t.size}),t.offset!==void 0&&n.push({key:`offset`,value:t.offset}),t.decision&&n.push({key:`decision`,value:t.decision}),t.publisher&&n.push({key:`publisher`,value:t.publisher}),t.namespace&&n.push({key:`namespace`,value:t.namespace}),t.name&&n.push({key:`name`,value:t.name}),t.dateDecidedFrom&&n.push({key:`dateDecidedFrom`,value:t.dateDecidedFrom}),t.dateDecidedTo&&n.push({key:`dateDecidedTo`,value:t.dateDecidedTo}),t.sortBy&&n.push({key:`sortBy`,value:t.sortBy}),t.sortOrder&&n.push({key:`sortOrder`,value:t.sortOrder})),__({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`scans`,`files`],n)})}async getFileCounts(e,t){let n=[];return t&&(t.dateDecidedFrom&&n.push({key:`dateDecidedFrom`,value:t.dateDecidedFrom}),t.dateDecidedTo&&n.push({key:`dateDecidedTo`,value:t.dateDecidedTo})),__({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`scans`,`files`,`counts`],n)})}async makeScanDecision(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return __({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`scans`,`decisions`]),headers:n,payload:e})}async makeFileDecision(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return __({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`scans`,`files`,`decisions`]),headers:n,payload:e})}async deleteFileDecisions(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return __({method:`DELETE`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`scans`,`files`,`decisions`]),headers:n,payload:e})}async getTiers(e){return __({abortController:e,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`tiers`]),credentials:!0})}async createTier(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return __({method:`POST`,payload:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`tiers`,`create`]),headers:n})}async updateTier(e,t){let n=await this.registry.getCsrfToken(),r={"Content-Type":`application/json;charset=UTF-8`};if(!V(n)){let e=n;r[e.header]=e.value}return __({method:`PUT`,payload:t,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`tiers`,e]),headers:r})}async deleteTier(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return v_({method:`DELETE`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`tiers`,e]),headers:n})}async getCustomers(e){return await __({abortController:e,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`]),credentials:!0})}async getCustomer(e,t){return await __({abortController:e,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`,t]),credentials:!0})}async createCustomer(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return __({method:`POST`,payload:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`,`create`]),headers:n})}async updateCustomer(e,t){let n=await this.registry.getCsrfToken(),r={"Content-Type":`application/json;charset=UTF-8`};if(!V(n)){let e=n;r[e.header]=e.value}return __({method:`PUT`,payload:t,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`,e]),headers:r})}async deleteCustomer(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return v_({method:`DELETE`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`,e]),headers:n})}async getCustomerMembers(e,t){return __({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`,t,`members`])})}async addCustomerMember(e,t){let n=await this.registry.getCsrfToken(),r={};if(!V(n)){let e=n;r[e.header]=e.value}let i=[{key:`user`,value:t.loginName},{key:`provider`,value:t.provider}];return v_({headers:r,method:`POST`,credentials:!0,endpoint:$n(W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`,e,`add-member`]),i)})}async removeCustomerMember(e,t){let n=await this.registry.getCsrfToken(),r={};if(!V(n)){let e=n;r[e.header]=e.value}let i=[{key:`user`,value:t.loginName},{key:`provider`,value:t.provider}];return v_({headers:r,method:`POST`,credentials:!0,endpoint:$n(W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`,e,`remove-member`]),i)})}
25async getUsageStats(e,t,n){let r=[];return r.push({key:`date`,value:n.toISOString()}),__({abortController:e,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`,t,`usage`],r),credentials:!0})}async getLogs(e,t=0,n=20,r){let i=[{key:`page`,value:t},{key:`size`,value:n}];return r&&i.push({key:`period`,value:r}),__({abortController:e,endpoint:$n(W([this.registry.serverUrl,`admin`,`logs`]),i),credentials:!0})}async getCustomerRateLimitTokens(e,t){return __({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`,t,`tokens`])})}async createCustomerRateLimitToken(e,t){let n=await this.registry.getCsrfToken(),r={};if(!V(n)){let e=n;r[e.header]=e.value}let i=W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`,e,`tokens`]);return __({method:`POST`,credentials:!0,endpoint:t===void 0?i:$n(i,[{key:`description`,value:t}]),headers:r})}async deleteCustomerRateLimitToken(e,t){let n=await this.registry.getCsrfToken(),r={"Content-Type":`application/json;charset=UTF-8`};if(!V(n)){let e=n;r[e.header]=e.value}return v_({method:`DELETE`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`ratelimit`,`customers`,e,`tokens`,`${t}`]),headers:r})}async getSettings(e){return __({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`settings`])})}async updateSettings(e){let t=await this.registry.getCsrfToken(),n={"Content-Type":`application/json;charset=UTF-8`};if(!V(t)){let e=t;n[e.header]=e.value}return __({method:`PUT`,payload:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`settings`]),headers:n})}async getAdminStatistics(e,t,n){return __({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`statistics`],[{key:`year`,value:t},{key:`month`,value:n}])})}getAdminStatisticsCsvUrl(e,t){return W([this.registry.serverUrl,`admin`,`statistics`,`csv`],[{key:`year`,value:e},{key:`month`,value:t}])}async getSearchIndex(e){return __({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`search-index`])})}async explainSearch(e,t,n,r){return __({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`search-explain`],[{key:`query`,value:t},{key:`size`,value:n},{key:`offset`,value:r}])})}async updateSearchIndex(){let e=await this.csrfHeaders();return v_({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`update-search-index`]),headers:e})}async getConsistencyChecks(e){return __({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`consistency`])})}async getConsistencyFindings(e,t){return __({abortController:e,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`consistency`,t,`findings`])})}async fixConsistencyFindings(e){let t=await this.csrfHeaders();return v_({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`consistency`,e,`fix`]),headers:t})}async fixConsistencyFinding(e,t){let n=await this.csrfHeaders();return v_({method:`POST`,credentials:!0,endpoint:W([this.registry.serverUrl,`admin`,`consistency`,e,`fix`,String(t)]),headers:n})}async csrfHeaders(){let e=await this.registry.getCsrfToken(),t={};if(!V(e)){let n=e;t[n.header]=n.value}return t}},x_=({user:e,sx:t})=>(0,Y.jsx)(qi,{src:e.avatarUrl,alt:e.loginName,variant:`rounded`,sx:[{bgcolor:`surface3`,color:`text.secondary`,fontWeight:700},...Array.isArray(t)?t:[t]],children:e.loginName.slice(0,2).toUpperCase()}),S_=255,C_=e=>{let[t,n]=(0,K.useState)(``),[r,i]=(0,K.useState)(),a=(0,K.useContext)(I),{mutateAsync:o,isPending:c}=ks();(0,K.useEffect)(()=>{e.open&&(n(``),i(void 0))},[e.open]),(0,K.useEffect)(()=>(document.addEventListener(`keydown`,p),()=>{document.removeEventListener(`keydown`,p)}));let l=e=>{let t=e.target.value,r;t.length>S_&&(r=`The namespace name must not be longer than ${S_} characters.`),n(t),i(r)},u=!!r||!t,d=(0,K.useRef)(!1),f=async()=>{if(!(!a.user||u||d.current)){d.current=!0;try{await o(t),e.onClose(),e.namespaceCreated(t)}catch(e){a.handleError(e)}finally{d.current=!1}}},p=t=>{e.open&&t.code===`Enter`&&f()};return(0,Y.jsxs)(Be,{open:e.open,onClose:e.onClose,children:[(0,Y.jsx)(on,{children:`Create new namespace`}),(0,Y.jsx)(Ie,{children:(0,Y.jsx)(s,{my:2,children:(0,Y.jsx)(ht,{fullWidth:!0,label:`Namespace Name`,error:!!r,helperText:r,onChange:l})})}),(0,Y.jsxs)(ze,{children:[(0,Y.jsx)(g,{onClick:e.onClose,children:`Cancel`}),(0,Y.jsx)(er,{autoFocus:!0,sx:{ml:1},error:u,working:c,onClick:f,children:`Create Namespace`})]})]})},w_=()=>{let{service:e,user:t}=(0,K.useContext)(I);return E({queryKey:[`user`,`customers`],queryFn:({signal:t})=>e.getCustomers(he(t)),enabled:t!=null,...se})},T_=w((0,Y.jsx)(`path`,{d:`M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4`}),`PersonOutlined`),E_=w((0,Y.jsx)(`path`,{d:`M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM
257 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3`}),`KeyOutlined`),D_=w((0,Y.jsx)(`path`,{d:`M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm7 10c0 4.52-2.98 8.69-7 9.93-4.02-1.24-7-5.41-7-9.93V6.3l7-3.11 7 3.11zm-11.59.59L6 13l4 4 8-8-1.41-1.42L10 14.17z`}),`VerifiedUserOutlined`),O_=w((0,Y.jsx)(`path`,{d:`M3 3v8h8V3zm6 6H5V5h4zm-6 4v8h8v-8zm6 6H5v-4h4zm4-16v8h8V3zm6 6h-4V5h4zm-6 4v8h8v-8zm6 6h-4v-4h4z`}),`GridViewOutlined`),k_=w([(0,Y.jsx)(`path`,{d:`m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44z`},`0`),(0,Y.jsx)(`path`,{d:`M10.59 15.41a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83`},`1`)],`SpeedOutlined`),A_=[{value:`profile`,label:`Profile`,icon:(0,Y.jsx)(T_,{})},{value:`tokens`,label:`Access Tokens`,icon:(0,Y.jsx)(E_,{})},{value:`trusted-publishers`,label:`Trusted Publishers`,icon:(0,Y.jsx)(D_,{})},{value:`extensions`,label:`Extensions`,icon:(0,Y.jsx)(O_,{})},{value:`customers`,label:`Rate Limiting`,icon:(0,Y.jsx)(k_,{})}],j_=()=>{let e=(w_().data??[]).length>0,t=dn().data?.enabled??!1;return A_.filter(n=>{switch(n.value){case`customers`:return e;case`trusted-publishers`:return t;default:return!0}})},M_=()=>{let{tab:e,namespace:t,extension:n}=We();if(e!=null)return e;if(n!=null)return`extensions`;if(t!=null)return`namespaces`},N_=P(C,{shouldForwardProp:e=>e!==`active`})(({theme:e,active:t})=>({display:`flex`,alignItems:`center`,justifyContent:`flex-start`,gap:`0.6875rem`,width:`100%`,textAlign:`left`,fontFamily:`inherit`,fontSize:`0.875rem`,fontWeight:t?600:500,color:t?e.palette.text.primary:e.palette.text.secondary,backgroundColor:t?e.palette.surface3:`transparent`,padding:`0.5625rem 0.75rem`,borderRadius:e.shape.borderRadius,...Kt(e),"@media (hover: hover)":{"&:hover":{backgroundColor:e.palette.surface3}},"& .nav-icon":{display:`flex`,width:`1.0625rem`,justifyContent:`center`,color:t?e.palette.text.primary:e.palette.text.disabled,"& svg":{fontSize:`1.0625rem`}}})),P_=P(N_)({gap:`0.5rem`,fontFamily:Rt,fontSize:`0.84375rem`,padding:`0.5rem 0.75rem`}),F_=P(jn)({padding:`1.125rem 0.75rem`,fontSize:`0.78125rem`,lineHeight:1.45,margin:`0 0.25rem`}),I_=({tab:e})=>{let t=Ge(),n=M_();return(0,Y.jsxs)(N_,{active:n===e.value,onClick:()=>t(G([Es.ROOT,e.value])),children:[(0,Y.jsx)(`span`,{className:`nav-icon`,children:e.icon}),e.label]})},L_=()=>{let{user:e}=(0,K.useContext)(I),t=Ge(),n=M_(),r=j_(),{namespace:i,extension:a}=We(),o=Os(),c=o.data??[],l=As(),[d,f]=(0,K.useState)(!1);if(!e)return null;let p=(()=>{if(n===`namespaces`&&a==null)return i??c[0]?.name})();return(0,Y.jsxs)(s,{component:`aside`,sx:{display:{xs:`none`,md:`block`},minWidth:0,position:`sticky`,top:`calc(${Yt} + 1.625rem)`,zIndex:1},children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.75rem`,p:`0.375rem 0.25rem 1.125rem`},children:[(0,Y.jsx)(x_,{user:e,sx:{width:`2.75rem`,height:`2.75rem`,fontSize:`0.9375rem`}}),(0,Y.jsxs)(s,{sx:{minWidth:0},children:[(0,Y.jsx)(u,{noWrap:!0,sx:{fontSize:`0.875rem`,fontWeight:700},children:e.fullName||e.loginName}),(0,Y.jsxs)(u,{noWrap:!0,sx:{fontSize:`0.75rem`,color:`text.disabled`},children:[`@`,e.loginName]})]})]}),(0,Y.jsxs)(s,{component:`nav`,sx:{display:`flex`,flexDirection:`column`,gap:`0.125rem`},children:[r.map(e=>(0,Y.jsx)(I_,{tab:e},e.value)),(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,m:`1.25rem 0.75rem 0.5rem`},children:[(0,Y.jsx)(gn,{sx:{fontSize:`0.6875rem`,letterSpacing:`0.06em`}
25,children:`Namespaces`}),(0,Y.jsx)(we,{size:`small`,title:`Create namespace`,"aria-label":`Create namespace`,onClick:()=>f(!0),sx:e=>({p:`0.1875rem`,borderRadius:`${e.shape.borderRadius}px`}),children:(0,Y.jsx)(en,{sx:{fontSize:`0.875rem`}})})]}),c.map(e=>(0,Y.jsxs)(P_,{active:e.name===p,onClick:()=>t(G([Es.NAMESPACES,e.name])),children:[(0,Y.jsx)(u,{component:`span`,noWrap:!0,sx:{flex:1,minWidth:0,font:`inherit`},children:e.name}),e.verified?null:(0,Y.jsx)(Sc,{titleAccess:`Not verified`,sx:{fontSize:`0.8125rem`,color:`warningAccent`,flexShrink:0}})]},e.name)),c.length===0&&!o.isLoading?(0,Y.jsx)(F_,{children:`You don't belong to any namespace yet.`}):null]}),(0,Y.jsx)(C_,{open:d,onClose:()=>f(!1),namespaceCreated:l})]})},R_=w((0,Y.jsx)(`path`,{d:`m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27zm0-11.47L17.74 9 12 13.47 6.26 9z`}),`LayersOutlined`),z_=({icon:e,children:t})=>(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.4375rem`,"& svg":{fontSize:`1rem`}},children:[e,t]}),B_=()=>{let{user:e}=(0,K.useContext)(I),t=M_(),n=j_();return e?(0,Y.jsxs)(sh,{value:t??!1,gutters:{xs:`1rem`,sm:`1.75rem`},sx:{display:{md:`none`},mb:`0.5rem`},children:[n.map(({value:e,label:t,icon:n})=>(0,Y.jsx)(ah,{value:e,label:(0,Y.jsx)(z_,{icon:n,children:t}),component:R,to:G([Es.ROOT,e])},e)),(0,Y.jsx)(ah,{value:`namespaces`,label:(0,Y.jsx)(z_,{icon:(0,Y.jsx)(R_,{}
25),children:`Namespaces`}),component:R,to:Es.NAMESPACES})]}):null},V_=w((0,Y.jsx)(`path`,{d:`M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3`}),`Visibility`),H_=w((0,Y.jsx)(`path`,{d:`M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z`}),`VisibilityOff`),U_=e(n(((e,t)=>{t.exports=a;function n(){return new DOMException(`The request is not allowed`,`NotAllowedError`)}async function r(e){if(!navigator.clipboard)throw n();return navigator.clipboard.writeText(e)}async function i(e){let t=document.createElement(`span`);t.textContent=e,t.style.whiteSpace=`pre`,t.style.webkitUserSelect=`auto`,t.style.userSelect=`all`,document.body.appendChild(t);let r=window.getSelection(),i=window.document.createRange();r.removeAllRanges(),i.selectNode(t),r.addRange(i);let a=!1;try{a=window.document.execCommand(`copy`)}finally{r.removeAllRanges(),window.document.body.removeChild(t)}if(!a)throw n()}async function a(e){try{await r(e)}catch(t){try{await i(e)}catch(e){throw e||t||n()}}}}))()),W_=255,G_=e=>{let[t,n]=(0,K.useState)(!1),[r,i]=(0,K.useState)(``),[a,o]=(0,K.useState)(),[c,l]=(0,K.useState)(),[u,d]=(0,K.useState)(!1),[f,p]=(0,K.useState)(!1),{open:m,onClose:h,title:_=`Generate new token`}=e,v=()=>{n(!1),i(``),o(void 0),l(void 0),d(!1),p(!1)},y=()=>{t||(h(),v())},b=e=>{let t=e.target.value;i(t),o(t.length>W_?`Description must not exceed ${W_} characters.`:void 0)},x=async()=>{n(!0);try{let t=await e.onGenerate(r);l(t)}catch(t){e.onError?.(t)}finally{n(!1)}},S=()=>{c&&((0,U_.default)(c).then(()=>d(!0)),setTimeout(()=>d(!1),2e3))},C=!a&&!t;return(0,Y.jsx)(Y.Fragment,{children:m&&(0,Y.jsxs)(Be,{open:m,onClose:y,children:[(0,Y.jsx)(on,{children:_}),t&&(0,Y.jsx)(ut,{color:`secondary`}),(0,Y.jsx)(Ie,{children:c?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(vn,{sx:{mb:2},children:`Copy this token now. It will not be shown again.`}),(0,Y.jsx)(pt,{fullWidth:!0,readOnly:!0,type:f?`text`:`password`,value:c,sx:{fontFamily:`monospace`,fontSize:`0.85rem`},endAdornment:(0,Y.jsxs)(Ke,{position:`end`,children:[(0,Y.jsx)(oo,{title:f?`Hide`:`Show`,placement:`top`,children:(0,Y.jsx)(we,{size:`small`,onClick:()=>p(e=>!e),children:f?(0,Y.jsx)(H_,{fontSize:`small`}):(0,Y.jsx)(V_,{fontSize:`small`})})}),(0,Y.jsx)(oo,{title:u?`Copied!`:`Copy`,placement:`top`,children:(0,Y.jsx)(we,{size:`small`,onClick:S,children:(0,Y.jsx)(zh,{fontSize:`small`})})})]})})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(vn,{children:`You can add an optional description to help identify where this token is used.`}),(0,Y.jsx)(s,{mt:2,children:(0,Y.jsx)(ht,{autoFocus:!0,fullWidth:!0,label:`Description (optional)`,error:!!a,helperText:a,value:r,onChange:b,onKeyDown:e=>{e.key===`Enter`&&C&&x()}})})]})}),(0,Y.jsxs)(ze,{children:[(0,Y.jsx)(g,{onClick:y,children:c?`Close`:`Cancel`}),!c&&(0,Y.jsx)(g,{variant:`contained`,color:`secondary`,disabled:!C,onClick:x,children:`Generate Token`})]})]})})},K_=e=>{let t=(0,K.useContext)(I),n=(0,K.useRef)(new AbortController),[r,i]=(0,K.useState)(!1);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(g,{variant:`outlined`,onClick:()=>i(!0),children:`Generate new token`}),(0,Y.jsx)(G_,{open:r,onClose:()=>i(!1),onGenerate:async r=>{if(!t.user)throw Error(`Not logged in`);let i=await t.service.createAccessToken(n.current,t.user,r);if(V(i))throw i;return e.handleTokenGenerated(),i.value},onError:t.handleError})]})},q_=()=>{let{data:e}=dn();return e?.enabled?(0,Y.jsxs)(m,{severity:`info`,sx:{mt:2},children:[(0,Y.jsx)(un,{sx:{fontWeight:600},children:`Skip the token â publish with a trusted publisher`}),`You can now let a CI/CD workflow publish your extensions without ever creating a long-lived token. The workflow authenticates with a short-lived OIDC token at publish time, so thereâs no secret to leak, rotate, or accidentally revoke.`,(0,Y.jsx)(s,{sx:{mt:1.5},children:(0,Y.jsxs)(R,{to:Es.TRUSTED_PUBLISHERS,children:[`Set up a trusted publisher`,(0,Y.jsx)(Sn,{sx:{fontSize:`1.125rem`}})]})})]}):null},J_=({title:e,actions:t,description:n})=>(0,Y.jsxs)(s,{sx:{mb:`1.375rem`},children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`,flexWrap:`wrap`,pb:`1rem`,borderBottom:`1px solid`,borderColor:`divi
25der`},children:[(0,Y.jsx)(u,{component:`h1`,sx:{fontSize:`1.4375rem`,fontWeight:700,letterSpacing:`-0.02em`},children:e}),t?(0,Y.jsx)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.5rem`,flexWrap:`wrap`},children:t}):null]}),n?(0,Y.jsx)(u,{sx:{fontSize:`0.875rem`,color:`text.disabled`,mt:`1.375rem`},children:n}):null]}),Y_=e=>e===`all`?{title:`Delete all access tokens`,message:`Are you sure you want to delete all access tokens?`,confirmLabel:`Delete`}:{title:`Revoke access token`,message:`Revoking ${e.description?`â${e.description}â`:`this token`} cannot be undone. Any command line or CI workflow still using it will fail to publish until you replace it.`,confirmLabel:`Revoke`},X_=P(s)({display:`flex`,alignItems:`center`,gap:`1rem`,padding:`1.125rem 1.25rem`}),Z_=()=>{let{service:e,user:t,handleError:n,pageSettings:r}=(0,K.useContext)(I),[i,a]=(0,K.useState)([]),[o,c]=(0,K.useState)(!0),[l,d]=(0,K.useState)(),f=(0,K.useRef)(new AbortController);(0,K.useEffect)(()=>(p(),()=>{f.current.abort()}),[]);let p=async()=>{if(t)try{let n=await e.getAccessTokens(f.current,t);a(n),c(!1)}catch(e){n(e),c(!1)}},h=async t=>{d(void 0),c(!0);try{t===`all`?await e.deleteAllAccessTokens(f.current,i):await e.deleteAccessToken(f.current,t),p()}catch(e){n(e)}},_=()=>{c(!0),p()},v=e=>(0,Y.jsxs)(X_,{children:[(0,Y.jsx)(Jt,{sx:{width:`2.25rem`,height:`2.25rem`},children:(0,Y.jsx)(E_,{sx:{fontSize:`1.0625rem`}})}),(0,Y.jsxs)(s,{sx:{flex:1,minWidth:0},children:[(0,Y.jsx)(u,{noWrap:!0,sx:{fontSize:`0.90625rem`,fontWeight:600},children:e.description}),(0,Y.jsxs)(u,{sx:{fontSize:`0.78125rem`,color:`text.disabled`,mt:`0.125rem`},children:[`Expires`,` `,e.expiresTimestamp?(0,Y.jsx)(An,{value:e.expiresTimestamp,isFutureTime:!0}):`never`]}),(0,Y.jsxs)(u,{sx:{fontSize:`0.75rem`,color:`text.disabled`,mt:`0.125rem`},children:[`Created `,(0,Y.jsx)(An,{value:e.createdTimestamp}),e.accessedTimestamp?(0,Y.jsxs)(Y.Fragment,{children:[` `,`· Last used `,(0,Y.jsx)(An,{value:e.accessedTimestamp})]}):null]})]}),(0,Y.jsx)(ln,{title:`Revoke token`,"aria-label":e.description?`Revoke token ${e.description}`:`Revoke token`,sx:{flexShrink:0},onClick:()=>d(e),disabled:o})]},`token:`+e.id),y=t?.publisherAgreement;if(y&&(y.status===`none`||y.status===`outdated`)){let e=r?.publisherAgreement?.email,t=[r?.publisherAgreement?.name,`Publisher Agreement`].filter(Boolean).join(` `);return(0,Y.jsxs)(s,{children:[(0,Y.jsx)(J_,{title:`Access Tokens`,description:`Personal access tokens let you publish extensions from the command line. Treat them like passwords.`}),(0,Y.jsxs)(m,{severity:`warning`,children:[(0,Y.jsx)(un,{sx:{fontWeight:700},children:`Publisher agreement required`}),`Tokens can only be created once you have signed the `,t,`.`,(0,Y.jsx)(s,{sx:{mt:`0.75rem`},children:(0,Y.jsxs)(U,{component:R,to:Es.PROFILE,children:[`Sign it on your profile`,(0,Y.jsx)(Sn,{sx:{fontSize:`1.125rem`}})]})}),e!==void 0&&(0,Y.jsxs)(s,{sx:{mt:`0.75rem`,fontSize:`0.8125rem`},children:[`If you believe this is in error, contact`,` `,(0,Y.jsx)(U,{href:`mailto:${e}`,children:e}),`.`]})]})]})}return(0,Y.jsxs)(s,{children:[(0,Y.jsx)(J_,{title:`Access Tokens`,description:`Personal access tokens let you publish extensions from the command line. Treat them like passwords.`,actions:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(g,{variant:`outlined`,color:`error`,onClick:()=>d(`all`),disabled:o||i.length===0,children:`Delete all`}),(0,Y.jsx)(K_,{handleTokenGenerated:_})]})}),(0,Y.jsx)(s,{mb:`1.375rem`,children:(0,Y.jsx)(q_,{})}),(0,Y.jsx)(Re,{loading:o}),i.length>0?(0,Y.jsx)(On,{children:i.map(e=>v(e))}):o?null:(0,Y.jsx)(jn,{children:`You currently have no tokens.`}),l?(0,Y.jsx)(Q_,{target:l,onClose:()=>d(void 0),onConfirm:()=>h(l)}):null]})},Q_=({target:e,onClose:t,onConfirm:n})=>{let{title:r,message:i,confirmLabel:a}=Y_(e);return(0,Y.jsxs)(Be,{open:!0,onClose:t,children:[(0,Y.jsx)(on,{children:r}),(0,Y.jsx)(Ie,{children:(0,Y.jsx)(vn,{component:`div`,children:i})}),(0,Y.jsxs)(ze,{children:[(0,Y.jsx)(g,{onClick:t,children:`Cancel`}),(0,Y.jsx)(g,{variant:`contained`,color:`error`,autoFocus:!0,onClick:n,children:a})]})]})},$_=(e,t)=>
25e.namespace.localeCompare(t.namespace)||e.extension.localeCompare(t.extension)||e.id-t.id,ev=e=>!!e.trustedPublishingUrl,tv=()=>{let{handleError:e}=(0,K.useContext)(I),{data:t=[],isLoading:n}=an(Os()),{data:r,isLoading:i}=dn(),a=r?.trustedPublisherProviders??[],o=a.length>0?t.filter(ev):[],{publishers:c,registrableExtensions:l,isLoading:d}=yn(o.map(e=>e.trustedPublishingUrl)),{mutateAsync:f,isPending:p}=fn(),[m,h]=(0,K.useState)(!1),_=n||i||d||p,v=[...c].sort($_),y=o.map((e,t)=>({name:e.name,registrableExtensions:l[t]??[],registeredExtensions:c.filter(t=>t.namespace===e.name).map(e=>e.extension),trustedPublishingUrl:e.trustedPublishingUrl})),b=y.some(e=>e.registrableExtensions.length>0);return(0,Y.jsxs)(s,{children:[(0,Y.jsx)(J_,{title:`Trusted Publishers`,description:(0,Y.jsxs)(Y.Fragment,{children:[`Let CI/CD workflows publish your extensions without long-lived access tokens. The workflow authenticates with a short-lived OIDC token at publish time, accepted only when its repository, workflow and (if set) environment match a registration. `,(0,Y.jsx)(xn,{})]}),actions:b?(0,Y.jsx)(g,{variant:`outlined`,startIcon:(0,Y.jsx)(en,{}),onClick:()=>h(!0),children:`Add a trusted publisher`}):void 0}),(0,Y.jsx)(Re,{loading:_}),v.length>0?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(wn,{publishers:v,providers:a,loading:p,rowDetail:`namespace/extension`,onDelete:async t=>{let n=o.find(e=>e.name===t.namespace)?.trustedPublishingUrl;if(n)try{await f({trustedPublishingUrl:n,id:t.id})}catch(t){e(t)}}}),b?null:(0,Y.jsx)(u,{variant:`body2`,color:`text.secondary`,sx:{mt:2},children:`Every active extension in your namespaces already has a trusted publisher. An extension can have only one.`})]}):_?null:(0,Y.jsx)(jn,{children:o.length===0?`Trusted publishers are registered per namespace â create or join a namespace first.`:`No trusted publishers registered yet.`}),(0,Y.jsx)(tn,{open:m,onClose:()=>h(!1),namespaces:y,providers:a})]})},nv=w((0,Y.jsx)(`path`,{d:`M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`}),`Check`),rv=w((0,Y.jsx)(`path`,{d:`M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z`}),`DescriptionOutlined`),iv=e=>{let{service:t,pageSettings:n,updateUser:r,handleError:i}=(0,K.useContext)(I),[a,o]=(0,K.useState)(!1),[c,l]=(0,K.useState)(!1),[d,f]=(0,K.useState)(``),p=(0,K.useRef)(new AbortController);(0,K.useEffect)(()=>()=>{p.current.abort()},[]),(0,K.useEffect)(()=>{a&&v()},[a]);let m=()=>{o(!1)},h=async()=>{try{l(!0);let e=await t.signPublisherAgreement(p.current);if(V(e))throw e;r(),o(!1)}catch(e){e.code||Object.assign(e,{code:`publisher-agreement-problem`}),i(e)}finally{l(!1)}},_=()=>{n.urls.publisherAgreement?o(!0):i({error:`Publisher agreement text is not available.`})},v=async()=>{let e=n.urls.publisherAgreement;if(e)try{let n=await t.getStaticContent(p.current,e);f(n)}catch(e){i(e)}else f(`Publisher agreement text is not available.`)},y=()=>{o(!1)},b=e.user;if(!b.publisherAgreement)return null;let x=n?.publisherAgreement?.name??``,S=b.publisherAgreement.status==`signed`,C,w,ee;return S?(C=`Publisher Agreement signed`,w=b.publisherAgreement.timestamp?(0,Y.jsxs)(Y.Fragment,{children:[`You signed the `,x,` Publisher Agreement`,` `,(0,Y.jsx)(An,{value:b.publisherAgreement.timestamp}),`.`]}):(0,Y.jsxs)(Y.Fragment,{children:[`You signed the `,x,` Publisher Agreement.`]}),ee=(0,Y.jsx)(g,{onClick:_,variant:`outlined`,children:`View`})):b.additionalLogins?.find(e=>e.provider===`eclipse`)?(C=`Publisher Agreement required`,w=(0,Y.jsxs)(Y.Fragment,{children:[`You need to sign the `,x,` Publisher Agreement before you can publish any extension to this registry.`]}),ee=(0,Y.jsx)(g,{onClick:_,variant:`outlined`,color:`secondary`,children:`Review & sign`})):(C=`Publisher Agreement required`,w=(0,Y.jsxs)(Y.Fragment,{children:[`You need to sign the `,x,` Publisher Agreement before you can publish any extension to this registry. To start the signing process, please log in with an Eclipse Foundation account.`]}),ee=(0,Y.jsx)(U,{href:W([t.serverUrl,`oauth2`,`authorization`,`eclipse`]),children:(0,Y.jsx)(g,{variant:`outlined`,color:`secondary`,children:`Log in with Eclipse`})})),(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(s,{sx:e=>({...zt(e),display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:`0.875rem`,p:`1rem 1.125rem`,mt:`1.125rem`}),children:[(0,Y.jsx)(Jt,{sx:{width:`2.125rem`,height:`2.125rem`},children:S?(0,Y.jsx)(nv,{sx:{fontSize:`1.0625rem`}}):(0,Y.jsx)(rv,{sx:{fontSize:`1.0625rem`}})}),(0,Y.jsxs)(s,{sx:{flex:1,minWidth:`12.5rem`},children:[(0,Y.jsx)(u,{sx:{fontSize:`0.875rem`,fontWeight:600},children:C}),(0,Y.jsx)(u,{sx:{fontSize:`0.78125rem`,color:`text.disabled`,mt:`0.125rem`},children:w})]}),ee]}),(0,Y.jsx)(Be,{open:a,onClose:y,maxWidth:`xl`,sx:{"& .MuiDialog-paperScrollPaper":{height:`75%`,width:`100%`}},children:(0,Y.jsx)(Ie,{children:d?(0,Y.jsxs)(vn,{component:`div`,children:[(0,Y.jsx)(Km,{content:d,sanitize:!1,linkify:!1}),(0,Y.jsxs)(s,{display:`flex`,justifyContent:`flex-end`,children:[(0,Y.jsx)(g,{onClick:m,children:`Close`}),!S&&(0,Y.jsx)(er,{working:c,onClick:h,children:`Agree`})]})]}):(0,Y.jsx)(s,{height:1,display:`flex`,justifyContent:`center`,alignItems:`center`,children:(0,Y.jsx)(Hn,{color:`secondary`})})})})]})},av=`10.75rem`,ov=({sidebar:e,children:t})=>(0,Y.jsxs)(s,{sx:{display:`grid`,gridTemplateColumns:{xs:`1fr`,lg:`1fr ${av}`},gap:{xs:`1.5rem`,lg:`2.5rem`},alignItems:`start`},children:[(0,Y.jsx)(s,{sx:{minWidth:0,order:{xs:2,lg:1}},children:t}),(0,Y.jsx)(s,{sx:{width:av,order:{xs:1,lg:2}},children:e})]}),sv=({user:e,isAdmin:t})=>{let{pageSettings:n}=(0,K.useContext)(I),r=null;if(e.publisherAgreement){if(t){let t=`has not signed`;e.publisherAgreement.status===`signed`?t=`has signed`:e.publisherAgreement.status===`outdated`&&(t=`has signed an outdated version of`);let i=n?.publisherAgreement?.name??``;r=(0,Y.jsxs)(u,{variant:`body1`,sx:{mt:`1.125rem`},title:Zn(e.publisherAgreement.timestamp),children:[e.loginName,` `,t,` the `,i,` Publisher Agreement.`]})}else r=(0,Y.jsx)(iv,{user:e})}return(0,Y.jsxs)(s,{children:[(0,Y.jsx)(J_,{title:`Profile`}),(0,Y.jsxs)(ov,{sidebar:(0,Y.jsx)(x_,{user:e,sx:{width:`100%`,height:`auto`,aspectRatio:`1 / 1`,borderRadius:e=>`${e.shape.borderRadiusCard}
25px`,border:`1px solid`,borderColor:`divider`,fontSize:`3.5rem`}}),children:[(0,Y.jsxs)(On,{children:[(0,Y.jsx)(_n,{label:`Login name`,mono:!0,children:e.loginName}),e.fullName?(0,Y.jsx)(_n,{label:`Full name`,children:e.fullName}):null]}),r]})]})},cv=e=>{let[t,n]=(0,K.useState)(),[r,i]=(0,K.useState)(!0),a=(0,K.useContext)(I),{pathname:o}=Ue(),c=e.fetchExtension??((e,t)=>a.service.getExtensionDetail(e,t.url));(0,K.useEffect)(()=>{let e=new AbortController;return n(void 0),i(!0),l(e),()=>e.abort()},[e.namespace.name]);let l=async t=>{let r=Object.keys(e.namespace.extensions).map(t=>({name:t,url:e.namespace.extensions[t]})),o=(await Promise.all(r.map(async e=>{try{let n=await c(t,e);if(V(n))throw n;return n}catch(e){a.handleError(e);return}}))).filter(e=>e!=null);n(o),i(!1)};return(0,Y.jsxs)(s,{children:[(0,Y.jsx)(Pt,{component:`h3`,children:`Extensions`}),(0,Y.jsx)(Re,{loading:r}),t&&t.length>0?(0,Y.jsx)(Wt,{children:t.map(t=>(0,Y.jsx)(Cc,{extension:t,routePrefix:e.routePrefix,linkState:{backTo:o,backLabel:`Back to ${e.namespace.name}`}},`${t.namespace}.${t.name}-${t.version}`))}):r?null:(0,Y.jsx)(jn,{children:`No extensions published under this namespace yet.`})]})},lv=(0,K.createContext)({}),uv=P(s)(({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing(2),padding:e.spacing(2),[e.breakpoints.down(`sm`)]:{gap:e.spacing(1),padding:e.spacing(1.5,1.25)}})),dv=e=>{let t=(e,t)=>e?.loginName===t?.loginName&&e?.provider===t?.provider,n=e.member.user,r=(0,K.useContext)(I),{fixSelf:i}=(0,K.useContext)(lv),a=r.user;return(0,Y.jsxs)(uv,{children:[(0,Y.jsx)(x_,{user:n,sx:{width:`2.5rem`,height:`2.5rem`,fontSize:`0.875rem`,flexShrink:0}}),(0,Y.jsxs)(s,{sx:{flex:1,minWidth:0},children:[(0,Y.jsx)(u,{noWrap:!0,sx:{fontSize:`0.875rem`,fontWeight:700,lineHeight:1.2},children:n.fullName??n.loginName}),(0,Y.jsx)(u,{noWrap:!0,sx:{fontSize:`0.78125rem`,color:`text.disabled`,fontFamily:Rt,mt:`0.125rem`},children:n.loginName})]}),i&&t(n,a)?(0,Y.jsx)(Ut,{accent:!0,children:`Owner`}):(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:{xs:`0.5rem`,sm:`0.8125rem`},ml:`auto`,flexShrink:0},children:[(0,Y.jsxs)(dt,{variant:`outlined`,size:`small`,sx:{fontSize:{xs:`0.75rem`,sm:`0.8125rem`},fontWeight:600,"& .MuiSelect-select":{py:{xs:`0.3125rem`,sm:`0.53125rem`},pl:{xs:`0.625rem`,sm:`0.875rem`}}},value:e.member.role,onChange:t=>e.onChangeRole(t.target.value),children:[(0,Y.jsx)(H,{value:`contributor`,children:`Contributor`}),(0,Y.jsx)(H,{value:`owner`,children:`Owner`})]}),(0,Y.jsx)(ln,{title:`Remove member`,"aria-label":`Remove ${n.loginName}`,onClick:()=>e.onRemoveUser()})]})]})},fv=({open:e,title:t,description:n,existingUsers:r,onClose:i,onAddUser:a,filterUsers:o})=>{let{service:c,handleError:l}=(0,K.useContext)(I),[u,d]=(0,K.useState)([]),[f,p]=(0,K.useState)(!1),m=(0,K.useRef)(new AbortController),h=(0,K.useRef)();(0,K.useEffect)(()=>()=>{m.current.abort(),clearTimeout(h.current)},[]);let _=e=>r.some(t=>t.loginName===e.loginName&&t.provider===e.provider)||o&&!o(e),v=(e,t)=>{if(clearTimeout(h.current),!t){d([]),p(!1);return}p(!0),h.current=setTimeout(async()=>{let e=await c.getUserByName(m.current,t);e&&d(e),p(!1)},300)},y=(e,t)=>{if(t){if(_(t)){l({message:`User ${t.loginName} is already added.`});return}a(t),i()}},b=()=>{d([]),i()};return(0,Y.jsxs)(Be,{onClose:b,open:e,maxWidth:`sm`,fullWidth:!0,children:[(0,Y.jsx)(on,{children:t}),(0,Y.jsxs)(Ie,{children:[(0,Y.jsx)(vn,{children:n}),(0,Y.jsx)(Xe,{options:u,loading:f,filterOptions:e=>e.filter(e=>!_(e)),getOptionLabel:e=>e.loginName,isOptionEqualToValue:(e,t)=>e.loginName===t.loginName&&e.provider===t.provider,onInputChange:v,onChange:y,renderOption:(e,t)=>(0,K.createElement)(s,{component:`li`,...e,key:t.loginName+t.provider,sx:{display:`flex`,alignItems:`center`,gap:1.5}},(0,Y.jsx)(qi,{variant:`rounded`,src:t.avatarUrl,sx:{width:36,height:36}}),(0,Y.jsxs)(s,{children:[(0,Y.jsx)(s,{fontWeight:`bold`,children:t.loginName}),(0,Y.jsx)(s,{fontSize:`0.75rem`,color:`text.secondary`,children:t.fullName})]})),renderInput:e=>(0,Y.jsx)(ht,{...e,autoFocus:!0,margin:`dense`,label:`Search User`,fullWidth:!0})})]}),(0,Y.jsx)(ze,{children:(0,Y.jsx)(g,{onClick:b,children:`Cancel`})})]})},pv=e=>{let t=(0,K.useContext)(lv),{service:n,handleError:r}=(0,K.useContext)(I),i=(0,K.useRef)(new AbortController),a=e.members.map(e=>e.user);return(0,Y.jsx)(fv,{open:e.open,title:`Add Member`,description:`Enter the Login Name of the User you want to add.`,existingUsers:a,filterUsers:t.filterUsers,onClose:e.onClose,onAddUser:
25async a=>{try{if(!e.namespace)return;e.setLoadingState(!0);let r=e.namespace.roleUrl,o=await n.setNamespaceMember(i.current,r,a,t.defaultMemberRole??`contributor`);if(V(o))throw o;e.setLoadingState(!1),e.onClose()}catch(t){e.setLoadingState(!1),r(t)}}})},mv=e=>{let{service:t,user:n,handleError:r}=(0,K.useContext)(I),[i,a]=(0,K.useState)([]),[o,s]=(0,K.useState)(!1),c=(0,K.useRef)(new AbortController);(0,K.useEffect)(()=>{d()},[e.namespace]),(0,K.useEffect)(()=>()=>{c.current.abort()},[]);let l=async()=>{s(!1),d()},u=()=>{s(!0)},d=async()=>{try{let n=(await t.getNamespaceMembers(c.current,e.namespace)).namespaceMemberships;a(n)}catch(e){r(e)}},f=async(n,i)=>{try{e.setLoadingState(!0);let r=e.namespace.roleUrl,a=await t.setNamespaceMember(c.current,r,n.user,i);if(V(a))throw a;await d(),e.setLoadingState(!1)}catch(t){r(t),e.setLoadingState(!1)}};return n?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Ft,{children:[(0,Y.jsx)(Pt,{component:`h3`,sx:{m:0},children:`Members`}),(0,Y.jsx)(g,{variant:`outlined`,startIcon:(0,Y.jsx)(en,{}),onClick:u,children:`Add member`})]}),i.length?(0,Y.jsx)(S,{variant:`outlined`,children:(0,Y.jsx)(St,{divider:(0,Y.jsx)(Tn,{}),children:i.map(e=>(0,Y.jsx)(dv,{member:e,onChangeRole:t=>f(e,t),onRemoveUser:()=>f(e,`remove`)},`nspcmbr-`+e.user.loginName+e.user.provider))})}):(0,Y.jsx)(jn,{children:`There are no members assigned yet.`}),(0,Y.jsx)(pv,{members:i,namespace:e.namespace,onClose:l,open:o,setLoadingState:e.setLoadingState})]}):null},hv=w((0,Y.jsx)(`path`,{d:`M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z`}),`Edit`),gv=w((0,Y.jsx)(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2`}),`LockOutlined`),_v=e(n(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,S=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],C=`[object Arguments]`,w=`[object Array]`,ee=`[object AsyncFunction]`,T=`[object Boolean]`,E=`[object Date]`,D=`[object DOMException]`,O=`[object Error]`,k=`[object Function]`,A=`[object GeneratorFunction]`,j=`[object Map]`,M=`[object Number]`,te=`[object Null]`,N=`[object Object]`,ne=`[object Promise]`,P=`[object Proxy]`,re=`[object RegExp]`,ie=`[object Set]`,ae=`[object String]`,oe=`[object Symbol]`,se=`[object Undefined]`,ce=`[object WeakMap]`,le=`[object WeakSet]`,ue=`[object ArrayBuffer]`,de=`[object DataView]`,fe=`[object Float32Array]`,pe=`[object Float64Array]`,me=`[object Int8Array]`,he=`[object Int16Array]`,F=`[object Int32Array]`,ge=`[object Uint8Array]`,I=`[object Uint8ClampedArray]`,_e=`[object Uint16Array]`,ve=`[object Uint32Array]`,ye=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Ce=RegExp(L.source),we=RegExp(Se.source),Te=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,De=/<%=([\s\S]+?)%>/g,Oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ke=/^\w*$/,Ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(je.source),Ne=/^\s+/,Pe=/\s/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,R=/\{\n\/\* \[wrapped with (.+)\] \*/,Ie=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Re=/[()=,{}\[\]\/\s]/,ze=/\\(\\)?/g,z=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Be=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,Ue=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 67,102 bytes, lines 25-44
257f]/g,qe=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Ye=`\\ud800-\\udfff`,Xe=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Ze=`\\u2700-\\u27bf`,Qe=`a-z\\xdf-\\xf6\\xf8-\\xff`,$e=`\\xac\\xb1\\xd7\\xf7`,et=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,B=`\\u2000-\\u206f`,tt=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,nt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,rt=`\\ufe0e\\ufe0f`,it=$e+et+B+tt,at=`['â]`,ot=`[`+Ye+`]`,st=`[`+it+`]`,ct=`[`+Xe+`]`,lt=`\\d+`,ut=`[`+Ze+`]`,dt=`[`+Qe+`]`,ft=`[^`+Ye+it+lt+Ze+Qe+nt+`]`,pt=`\\ud83c[\\udffb-\\udfff]`,mt=`(?:`+ct+`|`+pt+`)`,ht=`[^`+Ye+`]`,gt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,_t=`[\\ud800-\\udbff][\\udc00-\\udfff]`,vt=`[`+nt+`]`,yt=`\\u200d`,bt=`(?:`+dt+`|`+ft+`)`,xt=`(?:`+vt+`|`+ft+`)`,St=`(?:`+at+`(?:d|ll|m|re|s|t|ve))?`,Ct=`(?:`+at+`(?:D|LL|M|RE|S|T|VE))?`,wt=mt+`?`,Tt=`[`+rt+`]?`,Et=`(?:`+yt+`(?:`+[ht,gt,_t].join(`|`)+`)`+Tt+wt+`)*`,Dt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Ot=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,kt=Tt+wt+Et,At=`(?:`+[ut,gt,_t].join(`|`)+`)`+kt,jt=`(?:`+[ht+ct+`?`,ct,gt,_t,ot].join(`|`)+`)`,Mt=RegExp(at,`g`),Nt=RegExp(ct,`g`),Pt=RegExp(pt+`(?=`+pt+`)|`+jt+kt,`g`),Ft=RegExp([vt+`?`+dt+`+`+St+`(?=`+[st,vt,`$`].join(`|`)+`)`,xt+`+`+Ct+`(?=`+[st,vt+bt,`$`].join(`|`)+`)`,vt+`?`+bt+`+`+St,vt+`+`+Ct,Ot,Dt,lt,At].join(`|`),`g`),It=RegExp(`[`+yt+Ye+Xe+rt+`]`),Lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rt=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),zt=-1,Bt={};Bt[fe]=Bt[pe]=Bt[me]=Bt[he]=Bt[F]=Bt[ge]=Bt[I]=Bt[_e]=Bt[ve]=!0,Bt[C]=Bt[w]=Bt[ue]=Bt[T]=Bt[de]=Bt[E]=Bt[O]=Bt[k]=Bt[j]=Bt[M]=Bt[N]=Bt[re]=Bt[ie]=Bt[ae]=Bt[ce]=!1;var Vt={};Vt[C]=Vt[w]=Vt[ue]=Vt[de]=Vt[T]=Vt[E]=Vt[fe]=Vt[pe]=Vt[me]=Vt[he]=Vt[F]=Vt[j]=Vt[M]=Vt[N]=Vt[re]=Vt[ie]=Vt[ae]=Vt[oe]=Vt[ge]=Vt[I]=Vt[_e]=Vt[ve]=!0,Vt[O]=Vt[k]=Vt[ce]=!1;var Ht={Ã:`A`,Ã:`A`,Ã:`A`,Ã:`A`,Ã:`A`,à :`A`,à :`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,Ã¥:`a`,Ã:`C`,ç:`c`,Ã:`D`,ð:`d`,Ã:`E`,Ã:`E`,Ã:`E`,Ã:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ã:`I`,Ã:`I`,Ã:`I`,Ã:`I`,ì:`i`,Ã:`i`,î:`i`,ï:`i`,Ã:`N`,ñ:`n`,Ã:`O`,Ã:`O`,Ã:`O`,Ã:`O`,Ã:`O`,Ã:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ã:`U`,Ã:`U`,Ã:`U`,Ã:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ã:`Y`,ý:`y`,ÿ:`y`,Ã:`Ae`,æ:`ae`,Ã:`Th`,þ:`th`,Ã:`ss`,Ä:`A`,Ä:`A`,Ä:`A`,Ä:`a`,Ä:`a`,Ä :`a`,Ä:`C`,Ä:`C`,Ä:`C`,Ä:`C`,Ä:`c`,Ä:`c`,Ä:`c`,Ä:`c`,Ä:`D`,Ä:`D`,Ä:`d`,Ä:`d`,Ä:`E`,Ä:`E`,Ä:`E`,Ä:`E`,Ä:`E`,Ä:`e`,Ä:`e`,Ä:`e`,Ä:`e`,Ä:`e`,Ä:`G`,Ä:`G`,Ä :`G`,Ä¢:`G`,Ä:`g`,Ä:`g`,Ä¡:`g`,Ä£:`g`,Ĥ:`H`,Ħ:`H`,Ä¥:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Ä®:`I`,İ:`I`,Ä©:`i`,Ä«:`i`,Ä:`i`,į:`i`,ı:`i`,Ä´:`J`,ĵ:`j`,Ķ:`K`,Ä·:`k`,ĸ:`k`,Ĺ:`L`,Ä»:`L`,Ľ:`L`,Ä¿:`L`,Å:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,Å:`l`,Å:`l`,Å:`N`,Å :`N`,Å:`N`,Å:`N`,Å:`n`,Å:`n`,Å:`n`,Å:`n`,Å:`O`,Å:`O`,Å:`O`,Å:`o`,Å:`o`,Å:`o`,Å:`R`,Å:`R`,Å:`R`,Å:`r`,Å:`r`,Å:`r`,Å:`S`,Å:`S`,Å:`S`,Å :`S`,Å:`s`,Å:`s`,Å:`s`,Å¡:`s`,Å¢:`T`,Ť:`T`,Ŧ:`T`,Å£:`t`,Å¥:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Å®:`U`,Ű:`U`,Ų:`U`,Å©:`u`,Å«:`u`,Å:`u`,ů:`u`,ű:`u`,ų:`u`,Å´:`W`,ŵ:`w`,Ŷ:`Y`,Å·:`y`,Ÿ:`Y`,Ź:`Z`,Å»:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Å:`Oe`,Å:`oe`,Å:`'n`,Å¿:`s`},Ut={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Wt={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},Gt={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},V=parseFloat,Kt=parseInt,qt=typeof global==`object`&&global&&global.Object===Object&&global,Jt=typeof self==`object`&&self&&self.Object===Object&&self,Yt=qt||Jt||Function(`return this`)(),Xt=typeof e==`object`&&e&&!e.nodeType&&e,Zt=Xt&&typeof t==`object`&&t&&!t.nodeType&&t,Qt=Zt&&Zt.exports===Xt,$t=Qt&&qt.process,en=function(){try{return Zt&&Zt.require&&Zt.require(`util`).types||$t&&$t.binding&&$t.binding(`util`)}catch{}}(),tn=en&&en.isArrayBuffer,nn=en&&en.isDate,rn=en&&en.isMap,an=en&&en.isRegExp,on=en&&en.isSet,sn=en&&en.isTypedArray;function cn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ln(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function un(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function dn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function fn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function pn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function mn(e,t){return!!(e!=null&&e.length)&&Tn(e,t,0)>-1}function hn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function gn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function _n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function vn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function yn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function bn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var H=kn(`length`);function xn(e){return e.split(``)}function Sn(e){return e.match(Le)||[]}function Cn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function wn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Tn(e,t,n){return t===t?Qn(e,t,n):wn(e,Dn,n)}function En(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Dn(e){return e!==e}function On(e,t){var n=e==null?0:e.length;return n?Nn(e,t)/n:v}function kn(e){return function(t){return t==null?n:t[e]}}function An(e){return function(t){return e==null?n:e[t]}}function jn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Mn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Nn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Pn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Fn(e,t){return gn(t,function(t){return[t,e[t]]})}function In(e){return e&&e.slice(0,nr(e)+1).replace(Ne,``)}function Ln(e){return function(t){return e(t)}}function Rn(e,t){return gn(t,function(t){return e[t]})}function zn(e,t){return e.has(t)}function Bn(e,t){for(var n=-1,r=e.length;++n<r&&Tn(t,e[n],0)>-1;);return n}function Vn(e,t){for(var n=e.length;n--&&Tn(t,e[n],0)>-1;);return n}function Hn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var U=An(Ht),Un=An(Ut);function Wn(e){return`\\`+Gt[e]}function Gn(e,t){return e==null?n:e[t]}function Kn(e){return It.test(e)}function qn(e){return Lt.test(e)}function Jn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Yn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function W(e,t){return function(n){return e(t(n))}}function Xn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function Zn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function G(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Qn(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function $n(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function er(e){return Kn(e)?ir(e):H(e)}function tr(e){return Kn(e)?ar(e):xn(e)}function nr(e){for(var t=e.length;t--&&Pe.test(e.charAt(t)););return t}var rr=An(Wt);function ir(e){for(var t=Pt.lastIndex=0;Pt.test(e);)++t;return t}function ar(e){return e.match(Pt)||[]}function K(e){return e.match(Ft)||[]}var or=(function e(t){t=t==null?Yt:or.defaults(Yt.Object(),t,or.pick(Yt,Rt));var Pe=t.Array,Le=t.Date,Ye=t.Error,Xe=t.Function,Ze=t.Math,Qe=t.Object,$e=t.RegExp,et=t.String,B=t.TypeError,tt=Pe.prototype,nt=Xe.prototype,rt=Qe.prototype,it=t[`__core-js_shared__`],at=nt.toString,ot=rt.hasOwnProperty,st=0,ct=function(){var e=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),lt=rt.toString,ut=at.call(Qe),dt=Yt._,ft=$e(`^`+at.call(ot).replace(je,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),pt=Qt?t.Buffer:n,mt=t.Symbol,ht=t.Uint8Array,gt=pt?pt.allocUnsafe:n,_t=W(Qe.getPrototypeOf,Qe),vt=Qe.create,yt=rt.propertyIsEnumerable,bt=tt.splice,xt=mt?mt.isConcatSpreadable:n,St=mt?mt.iterator:n,Ct=mt?mt.toStringTag:n,wt=function(){try{var e=jo(Qe,`defineProperty`);return e({},``,{}),e}catch{}}(),Tt=t.clearTimeout!==Yt.clearTimeout&&t.clearTimeout,Et=Le&&Le.now!==Yt.Date.now&&Le.now,Dt=t.setTimeout!==Yt.setTimeout&&t.setTimeout,Ot=Ze.ceil,kt=Ze.floor,At=Qe.getOwnPropertySymbols,jt=pt?pt.isBuffer:n,Pt=t.isFinite,Ft=tt.join,It=W(Qe.keys,Qe),Lt=Ze.max,Ht=Ze.min,Ut=Le.now,Wt=t.parseInt,Gt=Ze.random,qt=tt.reverse,Jt=jo(t,`DataView`),Xt=jo(t,`Map`),Zt=jo(t,`Promise`),$t=jo(t,`Set`),en=jo(t,`WeakMap`),H=jo(Qe,`create`),xn=en&&new en,An={},Qn=gs(Jt),ir=gs(Xt),ar=gs(Zt),sr=gs($t),cr=gs(en),lr=mt?mt.prototype:n,ur=lr?lr.valueOf:n,dr=lr?lr.toString:n;function q(e){if(cu(e)&&!Q(e)&&!(e instanceof J)){if(e instanceof mr)return e;if(ot.call(e,`__wrapped__`))return vs(e)}return new mr(e)}var fr=function(){function e(){}return function(t){if(!su(t))return{};if(vt)return vt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function pr(){}function mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}q.templateSettings={escape:Te,evaluate:Ee,interpolate:De,variable:``,imports:{_:q}},q.prototype=pr.prototype,q.prototype.constructor=q,mr.prototype=fr(pr.prototype),mr.prototype.constructor=mr;function J(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function hr(){var e=new J(this.__wrapped__);return e.__actions__=Ha(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ha(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ha(this.__views__),e}function gr(){if(this.__filtered__){var e=new J(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function _r(){var e=this.__wrapped__.value(),t=this.__dir__,n=Q(e),r=t<0,i=n?e.length:0,a=Io(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=Ht(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Ca(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}J.prototype=fr(pr.prototype),J.prototype.constructor=J;function vr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function yr(){this.__data__=H?H(null):{},this.size=0}function br(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function xr(e){var t=this.__data__;if(H){var r=t[e];return r===i?n:r}return ot.call(t,e)?t[e]:n}function Sr(e){var t=this.__data__;return H?t[e]!==n:ot.call(t,e)}function Cr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=H&&t===n?i:t,this}vr.prototype.clear=yr,vr.prototype.delete=br,vr.prototype.get=xr,vr.prototype.has=Sr,vr.prototype.set=Cr;function wr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Tr(){this.__data__=[],this.size=0}function Er(e){var t=this.__data__,n=Zr(t,e);return n<0?!1:(n==t.length-1?t.pop():bt.call(t,n,1),--this.size,!0)}function Dr(e){var t=this.__data__,r=Zr(t,e);return r<0?n:t[r][1]}function Or(e){return Zr(this.__data__,e)>-1}function kr(e,t){var n=this.__data__,r=Zr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}wr.prototype.clear=Tr,wr.prototype.delete=Er,wr.prototype.get=Dr,wr.prototype.has=Or,wr.prototype.set=kr;function Ar(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jr(){this.size=0,this.__data__={hash:new vr,map:new(Xt||wr),string:new vr}}function Mr(e){var t=ko(this,e).delete(e);return this.size-=+!!t,t}function Nr(e){return ko(this,e).get(e)}function Pr(e){return ko(this,e).has(e)}function Fr(e,t){var n=ko(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Ar.prototype.clear=jr,Ar.prototype.delete=Mr,Ar.prototype.get=Nr,Ar.prototype.has=Pr,Ar.prototype.set=Fr;function Ir(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ar;++t<n;)this.add(e[t])}function Lr(e){return this.__data__.set(e,i),this}function Rr(e){return this.__data__.has(e)}Ir.prototype.add=Ir.prototype.push=Lr,Ir.prototype.has=Rr;function zr(e){var t=this.__data__=new wr(e);this.size=t.size}function Br(){this.__data__=new wr,this.size=0}function Vr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hr(e){return this.__data__.get(e)}function Ur(e){return this.__data__.has(e)}function Wr(e,t){var n=this.__data__;if(n instanceof wr){var r=n.__data__;if(!Xt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ar(r)}return n.set(e,t),this.size=n.size,this}zr.prototype.clear=Br,zr.prototype.delete=Vr,zr.prototype.get=Hr,zr.prototype.has=Ur,zr.prototype.set=Wr;function Gr(e,t){var n=Q(e),r=!n&&Gl(e),i=!n&&!r&&Xl(e),a=!n&&!r&&!i&&Cu(e),o=n||r||i||a,s=o?Pn(e.length,et):[],c=s.length;for(var l in e)(t||ot.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Wo(l,c)))&&s.push(l);return s}function Kr(e){var t=e.length;return t?e[ra(0,t-1)]:n}function qr(e,t){return ps(Ha(e),ni(t,0,e.length))}function Jr(e){return ps(Ha(e))}function Yr(e,t,r){(r!==n&&!Hl(e[t],r)||r===n&&!(t in e))&&ti(e,t,r)}function Xr(e,t,r){var i=e[t];(!(ot.call(e,t)&&Hl(i,r))||r===n&&!(t in e))&&ti(e,t,r)}function Zr(e,t){for(var n=e.length;n--;)if(Hl(e[n][0],t))return n;return-1}function Qr(e,t,n,r){return ci(e,function(e,i,a){t(r,e,n(e),a)}),r}function $r(e,t){return e&&Ua(t,id(t),e)}function ei(e,t){return e&&Ua(t,ad(t),e)}function ti(e,t,n){t==`__proto__`&&wt?wt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Y(e,t){for(var r=-1,i=t.length,a=Pe(i),o=e==null;++r<i;)a[r]=o?n:Qu(e,t[r]);return a}function ni(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ri(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!su(e))return e;var d=Q(e);if(d){if(s=zo(e),!c)return Ha(e,s)}else{var f=Fo(e),p=f==k||f==A;if(Xl(e))return Ma(e,c);if(f==N||f==C||p&&!a){if(s=l||p?{}:Bo(e),!c)return l?Ga(e,ei(s,e)):Wa(e,$r(s,e))}else{if(!Vt[f])return a?e:{};s=Vo(e,f,c)}}o||(o=new zr);var m=o.get(e);if(m)return m;o.set(e,s),bu(e)?e.forEach(function(n){s.add(ri(n,t,r,n,e,o))}):lu(e)&&e.forEach(function(n,i){s.set(i,ri(n,t,r,i,e,o))});var h=d?n:(u?l?To:wo:l?ad:id)(e);return un(h||e,function(n,i){h&&(i=n,n=e[i]),Xr(s,i,ri(n,t,r,i,e,o))}),s}function ii(e){var t=id(e);return function(n){return ai(n,e,t)}}function ai(e,t,r){var i=r.length;if(e==null)return!i;for(e=Qe(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function oi(e,t,i){if(typeof e!=`function`)throw new B(r);return ls(function(){e.apply(n,i)},t)}function si(e,t,n,r){var i=-1,a=mn,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=gn(t,Ln(n))),r?(a=hn,o=!1):t.length>=200&&(a=zn,o=!1,t=new Ir(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var ci=Ja(_i),li=Ja(vi,!0);function ui(e,t){var n=!0;return ci(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function di(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!Su(s):r(s,c)))var c=s,l=o}return l}function fi(e,t,r,i){var a=e.length;for(r=$(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:$(i),i<0&&(i+=a),i=r>i?0:ju(i);r<i;)e[r++]=t;return e}function pi(e,t){var n=[];return ci(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function mi(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=Uo),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?mi(s,t-1,n,r,i):_n(i,s):r||(i[i.length]=s)}return i}var hi=Ya(),gi=Ya(!0);function _i(e,t){return e&&hi(e,t,id)}function vi(e,t){return e&&gi(e,t,id)}function yi(e,t){return pn(t,function(t){return iu(e[t])})}function bi(e,t){t=Oa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[hs(t[r++])];return r&&r==i?e:n}function xi(e,t,n){var r=t(e);return Q(e)?r:_n(r,n(e))}function Si(e){return e==null?e===n?se:te:Ct&&Ct in Qe(e)?Mo(e):rs(e)}function Ci(e,t){return e>t}function wi(e,t){return e!=null&&ot.call(e,t)}function Ti(e,t){return e!=null&&t in Qe(e)}function Ei(e,t,n){return e>=Ht(t,n)&&e<Lt(t,n)}function Di(e,t,r){for(var i=r?hn:mn,a=e[0].length,o=e.length,s=o,c=Pe(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=gn(d,Ln(t))),l=Ht(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Ir(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?zn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?zn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Oi(e,t,n,r){return _i(e,function(e,i,a){t(r,n(e),i,a)}),r}function ki(e,t,r){t=Oa(t,e),e=as(e,t);var i=e==null?e:e[hs(Us(t))];return i==null?n:cn(i,e,r)}function Ai(e){return cu(e)&&Si(e)==C}function ji(e){return cu(e)&&Si(e)==ue}function Mi(e){return cu(e)&&Si(e)==E}function Ni(e,t,n,r,i){return e===t?!0:e==null||t==null||!cu(e)&&!cu(t)?e!==e&&t!==t:Pi(e,t,n,r,Ni,i)}function Pi(e,t,n,r,i,a){var o=Q(e),s=Q(t),c=o?w:Fo(e),l=s?w:Fo(t);c=c==C?N:c,l=l==C?N:l;var u=c==N,d=l==N,f=c==l;if(f&&Xl(e)){if(!Xl(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new zr),o||Cu(e)?bo(e,t,n,r,i,a):xo(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&ot.call(e,`__wrapped__`),m=d&&ot.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||(a=new zr),i(h,g,n,r,a)}}return f?(a||(a=new zr),So(e,t,n,r,i,a)):!1}function Fi(e){return cu(e)&&Fo(e)==j}function Ii(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=Qe(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new zr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Ni(d,u,3,i,f):p))return!1}}return!0}function Li(e){return!su(e)||Yo(e)?!1:(iu(e)?ft:Ue).test(gs(e))}function Ri(e){return cu(e)&&Si(e)==re}function zi(e){return cu(e)&&Fo(e)==ie}function Bi(e){return cu(e)&&ou(e.length)&&!!Bt[Si(e)]}function Vi(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?Q(e)?qi(e[0],e[1]):Ki(e):Ef(e)}function Hi(e){if(!Zo(e))return It(e);var t=[];for(var n in Qe(e))ot.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Ui(e){if(!su(e))return ns(e);var t=Zo(e),n=[];for(var r in e)r==`constructor`&&(t||!ot.call(e,r))||n.push(r);return n}function Wi(e,t){return e<t}function Gi(e,t){var n=-1,r=ql(e)?Pe(e.length):[];return ci(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Ki(e){var t=Ao(e);return t.length==1&&t[0][2]?$o(t[0][0],t[0][1]):function(n){return n===e||Ii(n,e,t)}}function qi(e,t){return Ko(e)&&Qo(t)?$o(hs(e),t):function(r){var i=Qu(r,e);return i===n&&i===t?ed(r,e):Ni(t,i,3)}}function Ji(e,t,r,i,a){e!==t&&hi(t,function(o,s){if(a||(a=new zr),su(o))Yi(e,t,s,r,Ji,i,a);else{var c=i?i(ss(e,s),o,s+``,e,t,a):n;c===n&&(c=o),Yr(e,s,c)}},ad)}function Yi(e,t,r,i,a,o,s){var c=ss(e,r),l=ss(t,r),u=s.get(l);if(u){Yr(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=Q(l),m=!p&&Xl(l),h=!p&&!m&&Cu(l);d=l,p||m||h?Q(c)?d=c:Jl(c)?d=Ha(c):m?(f=!1,d=Ma(l,!0)):h?(f=!1,d=La(l,!0)):d=[]:_u(l)||Gl(l)?(d=c,Gl(c)?d=Nu(c):(!su(c)||iu(c))&&(d=Bo(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),Yr(e,r,d)}function Xi(e,t){var r=e.length;if(r)return t+=t<0?r:0,Wo(t,r)?e[t]:n}function Zi(e,t,n){t=t.length?gn(t,function(e){return Q(e)?function(t){return bi(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=gn(t,Ln(Z())),Mn(Gi(e,function(e,n,i){return{criteria:gn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return za(e,t,n)})}function Qi(e,t){return $i(e,t,function(t,n){return ed(e,n)})}function $i(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=bi(e,o);n(s,o)&&ca(a,Oa(o,e),s)}return a}function ea(e){return function(t){return bi(t,e)}}function ta(e,t,n,r){var i=r?En:Tn,a=-1,o=t.length,s=e;for(e===t&&(t=Ha(t)),n&&(s=gn(e,Ln(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&bt.call(s,c,1),bt.call(e,c,1);return e}function na(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Wo(i)?bt.call(e,i,1):ba(e,i)}}return e}function ra(e,t){return e+kt(Gt()*(t-e+1))}function ia(e,t,n,r){for(var i=-1,a=Lt(Ot((t-e)/(n||1)),0),o=Pe(a);a--;)o[r?a:++i]=e,e+=n;return o}function aa(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=kt(t/2),t&&(e+=e);while(t);return n}function X(e,t){return us(is(e,t,pf),e+``)}function oa(e){return Kr(Cd(e))}function sa(e,t){var n=Cd(e);return ps(n,ni(t,0,n.length))}function ca(e,t,r,i){if(!su(e))return e;t=Oa(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=hs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=su(d)?d:Wo(t[a+1])?[]:{})}Xr(c,l,u),c=c[l]}return e}var la=xn?function(e,t){return xn.set(e,t),e}:pf,ua=wt?function(e,t){return wt(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function da(e){return ps(Cd(e))}function fa(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Pe(i);++r<i;)a[r]=e[r+t];return a}function pa(e,t){var n;return ci(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function ma(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!Su(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ha(e,t,pf,n)}function ha(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=Su(t),u=t===n;a<o;){var d=kt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=Su(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return Ht(o,b)}function ga(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Hl(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function _a(e){return typeof e==`number`?e:Su(e)?v:+e}function va(e){if(typeof e==`string`)return e;if(Q(e))return gn(e,va)+``;if(Su(e))return dr?dr.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ya(e,t,n){var r=-1,i=mn,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=hn;else if(a>=200){var l=t?null:mo(e);if(l)return Zn(l);o=!1,i=zn,c=new Ir}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function ba(e,t){t=Oa(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=hs(t[n]);if(i===`__proto__`&&!ot.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=as(e,t);return a==null||delete a[hs(Us(t))]}function xa(e,t,n,r){return ca(e,t,n(bi(e,t)),r)}function Sa(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?fa(e,r?0:a,r?a+1:i):fa(e,r?a+1:0,r?i:a)}function Ca(e,t){var n=e;return n instanceof J&&(n=n.value()),vn(t,function(e,t){return t.func.apply(t.thisArg,_n([e],t.args))},n)}function wa(e,t,n){var r=e.length;if(r<2)return r?ya(e[0]):[];for(var i=-1,a=Pe(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=si(a[i]||o,e[s],t,n));return ya(mi(a,1),t,n)}function Ta(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Ea(e){return Jl(e)?e:[]}function Da(e){return typeof e==`function`?e:pf}function Oa(e,t){return Q(e)?e:Ko(e,t)?[e]:ms(Fu(e))}var ka=X;function Aa(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:fa(e,t,r)}var ja=Tt||function(e){return Yt.clearTimeout(e)};function Ma(e,t){if(t)return e.slice();var n=e.length,r=gt?gt(n):new e.constructor(n);return e.copy(r),r}function Na(e){var t=new e.constructor(e.byteLength);return new ht(t).set(new ht(e)),t}function Pa(e,t){var n=t?Na(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Fa(e){var t=new e.constructor(e.source,Be.exec(e));return t.lastIndex=e.lastIndex,t}function Ia(e){return ur?Qe(ur.call(e)):{}}function La(e,t){var n=t?Na(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ra(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=Su(e),s=t!==n,c=t===null,l=t===t,u=Su(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function za(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Ra(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ba(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=Lt(a-o,0),u=Pe(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function Va(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=Lt(a-s,0),d=Pe(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function Ha(e,t){var n=-1,r=e.length;for(t||(t=Pe(r));++n<r;)t[n]=e[n];return t}function Ua(e,t,r,i){var a=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?ti(r,c,l):Xr(r,c,l)}return r}function Wa(e,t){return Ua(e,No(e),t)}function Ga(e,t){return Ua(e,Po(e),t)}function Ka(e,t){return function(n,r){var i=Q(n)?ln:Qr,a=t?t():{};return i(n,e,Z(r,2),a)}}function qa(e){return X(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Go(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=Qe(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function Ja(e,t){return function(n,r){if(n==null)return n;if(!ql(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Qe(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function Ya(e){return function(t,n,r){for(var i=-1,a=Qe(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function Xa(e,t,n){var r=t&o,i=$a(e);function a(){return(this&&this!==Yt&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function Za(e){return function(t){t=Fu(t);var r=Kn(t)?tr(t):n,i=r?r[0]:t.charAt(0),a=r?Aa(r,1).join(``):t.slice(1);return i[e]()+a}}function Qa(e){return function(t){return vn(rf(Ad(t).replace(Mt,``)),e,``)}}function $a(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=fr(e.prototype),r=e.apply(n,t);return su(r)?r:n}}function eo(e,t,r){var i=$a(e);function a(){for(var o=arguments.length,s=Pe(o),c=o,l=Oo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:Xn(s,l);return o-=u.length,o<r?fo(e,t,ro,a.placeholder,n,s,u,n,n,r-o):cn(this&&this!==Yt&&this instanceof a?i:e,this,s)}return a}function to(e){return function(t,r,i){var a=Qe(t);if(!ql(t)){var o=Z(r,3);t=id(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function no(e){return Co(function(t){var i=t.length,a=i,o=mr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new B(r);if(o&&!l&&Do(s)==`wrapper`)var l=new mr([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=Do(s),m=d==`wrapper`?Eo(s):n;l=m&&Jo(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[Do(m[0])].apply(l,m[3]):s.length==1&&Jo(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&Q(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function ro(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,S=y?n:$a(e);function C(){for(var n=arguments.length,o=Pe(n),s=n;s--;)o[s]=arguments[s];if(b)var c=Oo(C),l=Hn(o,c);if(i&&(o=Ba(o,i,a,b)),u&&(o=Va(o,u,d,b)),n-=l,b&&n<g){var f=Xn(o,c);return fo(e,t,ro,C.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,w=y?m[e]:e;return n=o.length,p?o=os(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==Yt&&this instanceof C&&(w=S||$a(w)),w.apply(m,o)}return C}function io(e,t){return function(n,r){return Oi(n,e,t(r),{})}}function ao(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=va(r),i=va(i)):(r=_a(r),i=_a(i)),a=e(r,i)}return a}}function oo(e){return Co(function(t){return t=gn(t,Ln(Z())),X(function(n){var r=this;return e(t,function(e){return cn(e,r,n)})})})}function so(e,t){t=t===n?` `:va(t);var r=t.length;if(r<2)return r?aa(t,e):t;var i=aa(t,Ot(e/er(t)));return Kn(t)?Aa(tr(i),0,e).join(``):i.slice(0,e)}function co(e,t,n,r){var i=t&o,a=$a(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=Pe(l+o),d=this&&this!==Yt&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return cn(d,i?n:this,u)}return s}function lo(e){return function(t,r,i){return i&&typeof i!=`number`&&Go(t,r,i)&&(r=i=n),t=Au(t),r===n?(r=t,t=0):r=Au(r),i=i===n?t<r?1:-1:Au(i),ia(t,r,i,e)}}function uo(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Mu(t),n=Mu(n)),e(t,n)}}function fo(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],S=r.apply(n,x);return Jo(e)&&cs(S,x),S.placeholder=i,ds(S,e,t)}function po(e){var t=Ze[e];return function(e,n){if(e=Mu(e),n=n==null?0:Ht($(n),292),n&&Pt(e)){var r=(Fu(e)+`e`).split(`e`);return r=(Fu(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var mo=$t&&1/Zn(new $t([,-0]))[1]==h?function(e){return new $t(e)}:xf;function ho(e){return function(t){var n=Fo(t);return n==j?Yn(t):n==ie?G(t):Fn(t,e(t))}}function go(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new B(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:Lt($(m),0),h=h===n?h:$(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:Eo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&ts(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:Lt(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var S=Xa(e,t,i);else S=t==c||t==l?eo(e,t,h):(t==u||t==(o|u))&&!f.length?co(e,t,i,a):ro.apply(n,x);return ds((b?la:cs)(S,x),e,t)}function _o(e,t,r,i){return e===n||Hl(e,rt[r])&&!ot.call(i,r)?t:e}function vo(e,t,r,i,a,o){return su(e)&&su(t)&&(o.set(t,e),Ji(e,t,n,vo,o),o.delete(t)),e}function yo(e){return _u(e)?n:e}function bo(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Ir:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!bn(t,function(e,t){if(!zn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function xo(e,t,n,r,i,a,o){switch(n){case de:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ue:return!(e.byteLength!=t.byteLength||!a(new ht(e),new ht(t)));case T:case E:case M:return Hl(+e,+t);case O:return e.name==t.name&&e.message==t.message;case re:case ae:return e==t+``;case j:var s=Yn;case ie:var c=r&1;if(s||(s=Zn),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=bo(s(e),s(t),r,i,a,o);return o.delete(e),u;case oe:if(ur)return ur.call(e)==ur.call(t)}return!1}function So(e,t,r,i,a,o){var s=r&1,c=wo(e),l=c.length;if(l!=wo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:ot.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||(h=d==`constructor`)}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function Co(e){return us(is(e,n,Ms),e+``)}function wo(e){return xi(e,id,No)}function To(e){return xi(e,ad,Po)}var Eo=xn?function(e){return xn.get(e)}:xf;function Do(e){for(var t=e.name+``,n=An[t],r=ot.call(An,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Oo(e){return(ot.call(q,`placeholder`)?q:e).placeholder}function Z(){var e=q.iteratee||mf;return e=e===mf?Vi:e,arguments.length?e(arguments[0],arguments[1]):e}function ko(e,t){var n=e.__data__;return qo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Ao(e){for(var t=id(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Qo(i)]}return t}function jo(e,t){var r=Gn(e,t);return Li(r)?r:n}function Mo(e){var t=ot.call(e,Ct),r=e[Ct];try{e[Ct]=n;var i=!0}catch{}var a=lt.call(e);return i&&(t?e[Ct]=r:delete e[Ct]),a}var No=At?function(e){return e==null?[]:(e=Qe(e),pn(At(e),function(t){return yt.call(e,t)}))}:Af,Po=At?function(e){for(var t=[];e;)_n(t,No(e)),e=_t(e);return t}:Af,Fo=Si;(Jt&&Fo(new Jt(new ArrayBuffer(1)))!=de||Xt&&Fo(new Xt)!=j||Zt&&Fo(Zt.resolve())!=ne||$t&&Fo(new $t)!=ie||en&&Fo(new en)!=ce)&&(Fo=function(e){var t=Si(e),r=t==N?e.constructor:n,i=r?gs(r):``;if(i)switch(i){case Qn:return de;case ir:return j;case ar:return ne;case sr:return ie;case cr:return ce}return t});function Io(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=Ht(t,e+o);break;case`takeRight`:e=Lt(e,t-o)}}return{start:e,end:t}}function Lo(e){var t=e.match(R);return t?t[1].split(Ie):[]}function Ro(e,t,n){t=Oa(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=hs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&ou(i)&&Wo(o,i)&&(Q(e)||Gl(e)))}function zo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&ot.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Bo(e){return typeof e.constructor==`function`&&!Zo(e)?fr(_t(e)):{}}function Vo(e,t,n){var r=e.constructor;switch(t){case ue:return Na(e);case T:case E:return new r(+e);case de:return Pa(e,n);case fe:case pe:case me:case he:case F:case ge:case I:case _e:case ve:return La(e,n);case j:return new r;case M:case ae:return new r(e);case re:return Fa(e);case ie:return new r;case oe:return Ia(e)}}function Ho(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(Fe,`{ 26/* [wrapped with `+t+`] */ 27`)}function Uo(e){return Q(e)||Gl(e)||!!(xt&&e&&e[xt])}function Wo(e,t){var n=typeof e;return t=t??g,!!t&&(n==`number`||n!=`symbol`&&Ge.test(e))&&e>-1&&e%1==0&&e<t}function Go(e,t,n){if(!su(n))return!1;var r=typeof t;return(r==`number`?ql(n)&&Wo(t,n.length):r==`string`&&t in n)?Hl(n[t],e):!1}function Ko(e,t){if(Q(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Su(e)?!0:ke.test(e)||!Oe.test(e)||t!=null&&e in Qe(t)}function qo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Jo(e){var t=Do(e),n=q[t];if(typeof n!=`function`||!(t in J.prototype))return!1;if(e===n)return!0;var r=Eo(n);return!!r&&e===r[0]}function Yo(e){return!!ct&&ct in e}var Xo=it?iu:jf;function Zo(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||rt)}function Qo(e){return e===e&&!su(e)}function $o(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in Qe(r))}}function es(e){var t=wl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function ts(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Ba(m,d,t[4]):d,e[4]=m?Xn(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?Va(m,d,t[6]):d,e[6]=m?Xn(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:Ht(e[8],t[8])),e[9]??(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function ns(e){var t=[];if(e!=null)for(var n in Qe(e))t.push(n);return t}function rs(e){return lt.call(e)}function is(e,t,r){return t=Lt(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Lt(n.length-t,0),o=Pe(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Pe(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),cn(e,this,s)}}function as(e,t){return t.length<2?e:bi(e,fa(t,0,-1))}function os(e,t){for(var r=e.length,i=Ht(t.length,r),a=Ha(e);i--;){var o=t[i];e[i]=Wo(o,r)?a[o]:n}return e}function ss(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var cs=fs(la),ls=Dt||function(e,t){return Yt.setTimeout(e,t)},us=fs(ua);function ds(e,t,n){var r=t+``;return us(e,Ho(r,_s(Lo(r),n)))}function fs(e){var t=0,r=0;return function(){var i=Ut(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ps(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=ra(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var ms=es(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Ae,function(e,n,r,i){t.push(r?i.replace(ze,`$1`):n||e)}),t});function hs(e){if(typeof e==`string`||Su(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function gs(e){if(e!=null){try{return at.call(e)}catch{}try{return e+``}catch{}}return``}function _s(e,t){return un(S,function(n){var r=`_.`+n[0];t&n[1]&&!mn(e,r)&&e.push(r)}),e.sort()}function vs(e){if(e instanceof J)return e.clone();var t=new mr(e.__wrapped__,e.__chain__);return t.__actions__=Ha(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ys(e,t,r){t=(r?Go(e,t,r):t===n)?1:Lt($(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=Pe(Ot(i/t));a<i;)s[o++]=fa(e,a,a+=t);return s}function bs(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function xs(){var e=arguments.length;if(!e)return[];for(var t=Pe(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return _n(Q(n)?Ha(n):[n],mi(t,1))}var Ss=X(function(e,t){return Jl(e)?si(e,mi(t,1,Jl,!0)):[]}),Cs=X(function(e,t){var r=Us(t);return Jl(r)&&(r=n),Jl(e)?si(e,mi(t,1,Jl,!0),Z(r,2)):[]}),ws=X(function(e,t){var r=Us(t);return Jl(r)&&(r=n),Jl(e)?si(e,mi(t,1,Jl,!0),n,r):[]});function Ts(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:$(t),fa(e,t<0?0:t,i)):[]}function Es(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:$(t),t=i-t,fa(e,0,t<0?0:t)):[]}function Ds(e,t){return e&&e.length?Sa(e,Z(t,3),!0,!0):[]}function Os(e,t){return e&&e.length?Sa(e,Z(t,3),!0):[]}function ks(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Go(e,t,n)&&(n=0,r=i),fi(e,t,n,r)):[]}function As(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:$(n);return i<0&&(i=Lt(r+i,0)),wn(e,Z(t,3),i)}function js(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=$(r),a=r<0?Lt(i+a,0):Ht(a,i-1)),wn(e,Z(t,3),a,!0)}function Ms(e){return e!=null&&e.length?mi(e,1):[]}function Ns(e){return e!=null&&e.length?mi(e,h):[]}function Ps(e,t){return e!=null&&e.length?(t=t===n?1:$(t),mi(e,t)):[]}function Fs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];ti(r,i[0],i[1])}return r}function Is(e){return e&&e.length?e[0]:n}function Ls(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:$(n);return i<0&&(i=Lt(r+i,0)),Tn(e,t,i)}function Rs(e){return e!=null&&e.length?fa(e,0,-1):[]}var zs=X(function(e){var t=gn(e,Ea);return t.length&&t[0]===e[0]?Di(t):[]}),Bs=X(function(e){var t=Us(e),r=gn(e,Ea);return t===Us(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Di(r,Z(t,2)):[]}),Vs=X(function(e){var t=Us(e),r=gn(e,Ea);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Di(r,n,t):[]});function Hs(e,t){return e==null?``:Ft.call(e,t)}function Us(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Ws(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=$(r),a=a<0?Lt(i+a,0):Ht(a,i-1)),t===t?$n(e,t,a):wn(e,Dn,a,!0)}function Gs(e,t){return e&&e.length?Xi(e,$(t)):n}var Ks=X(qs);function qs(e,t){return e&&e.length&&t&&t.length?ta(e,t):e}function Js(e,t,n){return e&&e.length&&t&&t.length?ta(e,t,Z(n,2)):e}function Ys(e,t,r){return e&&e.length&&t&&t.length?ta(e,t,n,r):e}var Xs=Co(function(e,t){var n=e==null?0:e.length,r=Y(e,t);return na(e,gn(t,function(e){return Wo(e,n)?+e:e}).sort(Ra)),r});function Zs(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=Z(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return na(e,i),n}function Qs(e){return e==null?e:qt.call(e)}function $s(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Go(e,t,r)?(t=0,r=i):(t=t==null?0:$(t),r=r===n?i:$(r)),fa(e,t,r)):[]}function ec(e,t){return ma(e,t)}function tc(e,t,n){return ha(e,t,Z(n,2))}function nc(e,t){var n=e==null?0:e.length;if(n){var r=ma(e,t);if(r<n&&Hl(e[r],t))return r}return-1}function rc(e,t){return ma(e,t,!0)}function ic(e,t,n){return ha(e,t,Z(n,2),!0)}function ac(e,t){if(e!=null&&e.length){var n=ma(e,t,!0)-1;if(Hl(e[n],t))return n}return-1}function oc(e){return e&&e.length?ga(e):[]}function sc(e,t){return e&&e.length?ga(e,Z(t,2)):[]}function cc(e){var t=e==null?0:e.length;return t?fa(e,1,t):[]}function lc(e,t,r){return e&&e.length?(t=r||t===n?1:$(t),fa(e,0,t<0?0:t)):[]}function uc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:$(t),t=i-t,fa(e,t<0?0:t,i)):[]}function dc(e,t){return e&&e.length?Sa(e,Z(t,3),!1,!0):[]}function fc(e,t){return e&&e.length?Sa(e,Z(t,3)):[]}var pc=X(function(e){return ya(mi(e,1,Jl,!0))}),mc=X(function(e){var t=Us(e);return Jl(t)&&(t=n),ya(mi(e,1,Jl,!0),Z(t,2))}),hc=X(function(e){var t=Us(e);return t=typeof t==`function`?t:n,ya(mi(e,1,Jl,!0),n,t)});function gc(e){return e&&e.length?ya(e):[]}function _c(e,t){return e&&e.length?ya(e,Z(t,2)):[]}function vc(e,t){return t=typeof t==`function`?t:n,e&&e.length?ya(e,n,t):[]}function yc(e){if(!(e&&e.length))return[];var t=0;return e=pn(e,function(e){if(Jl(e))return t=Lt(e.length,t),!0}),Pn(t,function(t){return gn(e,kn(t))})}function bc(e,t){if(!(e&&e.length))return[];var r=yc(e);return t==null?r:gn(r,function(e){return cn(t,n,e)})}var xc=X(function(e,t){return Jl(e)?si(e,t):[]}),Sc=X(function(e){return wa(pn(e,Jl))}),Cc=X(function(e){var t=Us(e);return Jl(t)&&(t=n),wa(pn(e,Jl),Z(t,2))}),wc=X(function(e){var t=Us(e);return t=typeof t==`function`?t:n,wa(pn(e,Jl),n,t)}),Tc=X(yc);function Ec(e,t){return Ta(e||[],t||[],Xr)}function Dc(e,t){return Ta(e||[],t||[],ca)}var Oc=X(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,bc(e,r)});function kc(e){var t=q(e);return t.__chain__=!0,t}function Ac(e,t){return t(e),e}function jc(e,t){return t(e)}var Mc=Co(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return Y(t,e)};return t>1||this.__actions__.length||!(i instanceof J)||!Wo(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:jc,args:[a],thisArg:n}),new mr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Nc(){return kc(this)}function Pc(){return new mr(this.value(),this.__chain__)}function Fc(){this.__values__===n&&(this.__values__=ku(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Ic(){return this}function Lc(e){for(var t,r=this;r instanceof pr;){var i=vs(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function Rc(){var e=this.__wrapped__;if(e instanceof J){var t=e;return this.__actions__.length&&(t=new J(this)),t=t.reverse(),t.__actions__.push({func:jc,args:[Qs],thisArg:n}),new mr(t,this.__chain__)}return this.thru(Qs)}function zc(){return Ca(this.__wrapped__,this.__actions__)}var Bc=Ka(function(e,t,n){ot.call(e,n)?++e[n]:ti(e,n,1)});function Vc(e,t,r){var i=Q(e)?fn:ui;return r&&Go(e,t,r)&&(t=n),i(e,Z(t,3))}function Hc(e,t){return(Q(e)?pn:pi)(e,Z(t,3))}var Uc=to(As),Wc=to(js);function Gc(e,t){return mi(el(e,t),1)}function Kc(e,t){return mi(el(e,t),h)}function qc(e,t,r){return r=r===n?1:$(r),mi(el(e,t),r)}function Jc(e,t){return(Q(e)?un:ci)(e,Z(t,3))}function Yc(e,t){return(Q(e)?dn:li)(e,Z(t,3))}var Xc=Ka(function(e,t,n){ot.call(e,n)?e[n].push(t):ti(e,n,[t])});function Zc(e,t,n,r){e=ql(e)?e:Cd(e),n=n&&!r?$(n):0;var i=e.length;return n<0&&(n=Lt(i+n,0)),xu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Tn(e,t,n)>-1}var Qc=X(function(e,t,n){var r=-1,i=typeof t==`function`,a=ql(e)?Pe(e.length):[];return ci(e,function(e){a[++r]=i?cn(t,e,n):ki(e,t,n)}),a}),$c=Ka(function(e,t,n){ti(e,n,t)});function el(e,t){return(Q(e)?gn:Gi)(e,Z(t,3))}function tl(e,t,r,i){return e==null?[]:(Q(t)||(t=t==null?[]:[t]),r=i?n:r,Q(r)||(r=r==null?[]:[r]),Zi(e,t,r))}var nl=Ka(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function rl(e,t,n){var r=Q(e)?vn:jn,i=arguments.length<3;return r(e,Z(t,4),n,i,ci)}function il(e,t,n){var r=Q(e)?yn:jn,i=arguments.length<3;return r(e,Z(t,4),n,i,li)}function al(e,t){return(Q(e)?pn:pi)(e,Tl(Z(t,3)))}function ol(e){return(Q(e)?Kr:oa)(e)}function sl(e,t,r){return t=(r?Go(e,t,r):t===n)?1:$(t),(Q(e)?qr:sa)(e,t)}function cl(e){return(Q(e)?Jr:da)(e)}function ll(e){if(e==null)return 0;if(ql(e))return xu(e)?er(e):e.length;var t=Fo(e);return t==j||t==ie?e.size:Hi(e).length}function ul(e,t,r){var i=Q(e)?bn:pa;return r&&Go(e,t,r)&&(t=n),i(e,Z(t,3))}var dl=X(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Go(e,t[0],t[1])?t=[]:n>2&&Go(t[0],t[1],t[2])&&(t=[t[0]]),Zi(e,mi(t,1),[])}),fl=Et||function(){return Yt.Date.now()};function pl(e,t){if(typeof t!=`function`)throw new B(r);return e=$(e),function(){if(--e<1)return t.apply(this,arguments)}}function ml(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,go(e,f,n,n,n,n,t)}function hl(e,t){var i;if(typeof t!=`function`)throw new B(r);return e=$(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var gl=X(function(e,t,n){var r=o;if(n.length){var i=Xn(n,Oo(gl));r|=u}return go(e,r,t,n,i)}),_l=X(function(e,t,n){var r=o|s;if(n.length){var i=Xn(n,Oo(_l));r|=u}return go(t,r,e,n,i)});function vl(e,t,r){t=r?n:t;var i=go(e,c,n,n,n,n,n,t);return i.placeholder=vl.placeholder,i}function yl(e,t,r){t=r?n:t;var i=go(e,l,n,n,n,n,n,t);return i.placeholder=yl.placeholder,i}function bl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new B(r);t=Mu(t)||0,su(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?Lt(Mu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=ls(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?Ht(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=fl();if(v(e))return b(e);l=ls(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&ja(l),d=0,a=u=o=l=n}function S(){return l===n?c:b(fl())}function C(){var e=fl(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return ja(l),l=ls(y,t),h(u)}return l===n&&(l=ls(y,t)),c}return C.cancel=x,C.flush=S,C}var xl=X(function(e,t){return oi(e,1,t)}),Sl=X(function(e,t,n){return oi(e,Mu(t)||0,n)});function Cl(e){return go(e,m)}function wl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new B(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(wl.Cache||Ar),n}wl.Cache=Ar;function Tl(e){if(typeof e!=`function`)throw new B(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function El(e){return hl(2,e)}var Dl=ka(function(e,t){t=t.length==1&&Q(t[0])?gn(t[0],Ln(Z())):gn(mi(t,1),Ln(Z()));var n=t.length;return X(function(r){for(var i=-1,a=Ht(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return cn(e,this,r)})}),Ol=X(function(e,t){return go(e,u,n,t,Xn(t,Oo(Ol)))}),kl=X(function(e,t){return go(e,d,n,t,Xn(t,Oo(kl)))}),Al=Co(function(e,t){return go(e,p,n,n,n,t)});function jl(e,t){if(typeof e!=`function`)throw new B(r);return t=t===n?t:$(t),X(e,t)}function Ml(e,t){if(typeof e!=`function`)throw new B(r);return t=t==null?0:Lt($(t),0),X(function(n){var r=n[t],i=Aa(n,0,t);return r&&_n(i,r),cn(e,this,i)})}function Nl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new B(r);return su(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),bl(e,t,{leading:i,maxWait:t,trailing:a})}function Pl(e){return ml(e,1)}function Fl(e,t){return Ol(Da(t),e)}function Il(){if(!arguments.length)return[];var e=arguments[0];return Q(e)?e:[e]}function Ll(e){return ri(e,4)}function Rl(e,t){return t=typeof t==`function`?t:n,ri(e,4,t)}function zl(e){return ri(e,5)}function Bl(e,t){return t=typeof t==`function`?t:n,ri(e,5,t)}function Vl(e,t){return t==null||ai(e,t,id(t))}function Hl(e,t){return e===t||e!==e&&t!==t}var Ul=uo(Ci),Wl=uo(function(e,t){return e>=t}),Gl=Ai(function(){return arguments}())?Ai:function(e){return cu(e)&&ot.call(e,`callee`)&&!yt.call(e,`callee`)},Q=Pe.isArray,Kl=tn?Ln(tn):ji;function ql(e){return e!=null&&ou(e.length)&&!iu(e)}function Jl(e){return cu(e)&&ql(e)}function Yl(e){return e===!0||e===!1||cu(e)&&Si(e)==T}var Xl=jt||jf,Zl=nn?Ln(nn):Mi;function Ql(e){return cu(e)&&e.nodeType===1&&!_u(e)}function $l(e){if(e==null)return!0;if(ql(e)&&(Q(e)||typeof e==`string`||typeof e.splice==`function`||Xl(e)||Cu(e)||Gl(e)))return!e.length;var t=Fo(e);if(t==j||t==ie)return!e.size;if(Zo(e))return!Hi(e).length;for(var n in e)if(ot.call(e,n))return!1;return!0}function eu(e,t){return Ni(e,t)}function tu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Ni(e,t,n,r):!!i}function nu(e){if(!cu(e))return!1;var t=Si(e);return t==O||t==D||typeof e.message==`string`&&typeof e.name==`string`&&!_u(e)}function ru(e){return typeof e==`number`&&Pt(e)}function iu(e){if(!su(e))return!1;var t=Si(e);return t==k||t==A||t==ee||t==P}function au(e){return typeof e==`number`&&e==$(e)}function ou(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function su(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function cu(e){return typeof e==`object`&&!!e}var lu=rn?Ln(rn):Fi;function uu(e,t){return e===t||Ii(e,t,Ao(t))}function du(e,t,r){return r=typeof r==`function`?r:n,Ii(e,t,Ao(t),r)}function fu(e){return gu(e)&&e!=+e}function pu(e){if(Xo(e))throw new Ye(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Li(e)}function mu(e){return e===null}function hu(e){return e==null}function gu(e){return typeof e==`number`||cu(e)&&Si(e)==M}function _u(e){if(!cu(e)||Si(e)!=N)return!1;var t=_t(e);if(t===null)return!0;var n=ot.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&at.call(n)==ut}var vu=an?Ln(an):Ri;function yu(e){return au(e)&&e>=-g&&e<=g}var bu=on?Ln(on):zi;function xu(e){return typeof e==`string`||!Q(e)&&cu(e)&&Si(e)==ae}function Su(e){return typeof e==`symbol`||cu(e)&&Si(e)==oe}var Cu=sn?Ln(sn):Bi;function wu(e){return e===n}function Tu(e){return cu(e)&&Fo(e)==ce}function Eu(e){return cu(e)&&Si(e)==le}var Du=uo(Wi),Ou=uo(function(e,t){return e<=t});function ku(e){if(!e)return[];if(ql(e))return xu(e)?tr(e):Ha(e);if(St&&e[St])return Jn(e[St]());var t=Fo(e);return(t==j?Yn:t==ie?Zn:Cd)(e)}function Au(e){return e?(e=Mu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function $(e){var t=Au(e),n=t%1;return t===t?n?t-n:t:0}function ju(e){return e?ni($(e),0,y):0}function Mu(e){if(typeof e==`number`)return e;if(Su(e))return v;if(su(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=su(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=In(e);var n=He.test(e);return n||We.test(e)?Kt(e.slice(2),n?2:8):Ve.test(e)?v:+e}function Nu(e){return Ua(e,ad(e))}function Pu(e){return e?ni($(e),-g,g):e===0?e:0}function Fu(e){return e==null?``:va(e)}var Iu=qa(function(e,t){if(Zo(t)||ql(t)){Ua(t,id(t),e);return}for(var n in t)ot.call(t,n)&&Xr(e,n,t[n])}),Lu=qa(function(e,t){Ua(t,ad(t),e)}),Ru=qa(function(e,t,n,r){Ua(t,ad(t),e,r)}),zu=qa(function(e,t,n,r){Ua(t,id(t),e,r)}),Bu=Co(Y);function Vu(e,t){var n=fr(e);return t==null?n:$r(n,t)}var Hu=X(function(e,t){e=Qe(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Go(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=ad(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||Hl(d,rt[u])&&!ot.call(e,u))&&(e[u]=o[u])}return e}),Uu=X(function(e){return e.push(n,vo),cn(ld,n,e)});function Wu(e,t){return Cn(e,Z(t,3),_i)}function Gu(e,t){return Cn(e,Z(t,3),vi)}function Ku(e,t){return e==null?e:hi(e,Z(t,3),ad)}function qu(e,t){return e==null?e:gi(e,Z(t,3),ad)}function Ju(e,t){return e&&_i(e,Z(t,3))}function Yu(e,t){return e&&vi(e,Z(t,3))}function Xu(e){return e==null?[]:yi(e,id(e))}function Zu(e){return e==null?[]:yi(e,ad(e))}function Qu(e,t,r){var i=e==null?n:bi(e,t);return i===n?r:i}function $u(e,t){return e!=null&&Ro(e,t,wi)}function ed(e,t){return e!=null&&Ro(e,t,Ti)}var td=io(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=lt.call(t)),e[t]=n},lf(pf)),nd=io(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=lt.call(t)),ot.call(e,t)?e[t].push(n):e[t]=[n]},Z),rd=X(ki);function id(e){return ql(e)?Gr(e):Hi(e)}function ad(e){return ql(e)?Gr(e,!0):Ui(e)}function od(e,t){var n={};return t=Z(t,3),_i(e,function(e,r,i){ti(n,t(e,r,i),e)}),n}function sd(e,t){var n={};return t=Z(t,3),_i(e,function(e,r,i){ti(n,r,t(e,r,i))}),n}var cd=qa(function(e,t,n){Ji(e,t,n)}),ld=qa(function(e,t,n,r){Ji(e,t,n,r)}),ud=Co(function(e,t){var n={};if(e==null)return n;var r=!1;t=gn(t,function(t){return t=Oa(t,e),r||(r=t.length>1),t}),Ua(e,To(e),n),r&&(n=ri(n,7,yo));for(var i=t.length;i--;)ba(n,t[i]);return n});function dd(e,t){return pd(e,Tl(Z(t)))}var fd=Co(function(e,t){return e==null?{}:Qi(e,t)});function pd(e,t){if(e==null)return{};var n=gn(To(e),function(e){return[e]});return t=Z(t),$i(e,n,function(e,n){return t(e,n[0])})}function md(e,t,r){t=Oa(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[hs(t[i])];o===n&&(i=a,o=r),e=iu(o)?o.call(e):o}return e}function hd(e,t,n){return e==null?e:ca(e,t,n)}function gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:ca(e,t,r,i)}var _d=ho(id),vd=ho(ad);function yd(e,t,n){var r=Q(e),i=r||Xl(e)||Cu(e);if(t=Z(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:su(e)&&iu(a)?fr(_t(e)):{}}return(i?un:_i)(e,function(e,r,i){return t(n,e,r,i)}),n}function bd(e,t){return e==null||ba(e,t)}function xd(e,t,n){return e==null?e:xa(e,t,Da(n))}function Sd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:xa(e,t,Da(r),i)}function Cd(e){return e==null?[]:Rn(e,id(e))}function wd(e){return e==null?[]:Rn(e,ad(e))}function Td(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Mu(r),r=r===r?r:0),t!==n&&(t=Mu(t),t=t===t?t:0),ni(Mu(e),t,r)}function Ed(e,t,r){return t=Au(t),r===n?(r=t,t=0):r=Au(r),e=Mu(e),Ei(e,t,r)}function Dd(e,t,r){if(r&&typeof r!=`boolean`&&Go(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Au(e),t===n?(t=e,e=0):t=Au(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Gt();return Ht(e+a*(t-e+V(`1e-`+((a+``).length-1))),t)}return ra(e,t)}var Od=Qa(function(e,t,n){return t=t.toLowerCase(),e+(n?kd(t):t)});function kd(e){return nf(Fu(e).toLowerCase())}function Ad(e){return e=Fu(e),e&&e.replace(Ke,U).replace(Nt,``)}function jd(e,t,r){e=Fu(e),t=va(t);var i=e.length;r=r===n?i:ni($(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Md(e){return e=Fu(e),e&&we.test(e)?e.replace(Se,Un):e}function Nd(e){return e=Fu(e),e&&Me.test(e)?e.replace(je,`\\$&`):e}var Pd=Qa(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Fd=Qa(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Id=Za(`toLowerCase`);function Ld(e,t,n){e=Fu(e),t=$(t);var r=t?er(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return so(kt(i),n)+e+so(Ot(i),n)}function Rd(e,t,n){e=Fu(e),t=$(t);var r=t?er(e):0;return t&&r<t?e+so(t-r,n):e}function zd(e,t,n){e=Fu(e),t=$(t);var r=t?er(e):0;return t&&r<t?so(t-r,n)+e:e}function Bd(e,t,n){return n||t==null?t=0:t&&(t=+t),Wt(Fu(e).replace(Ne,``),t||0)}function Vd(e,t,r){return t=(r?Go(e,t,r):t===n)?1:$(t),aa(Fu(e),t)}function Hd(){var e=arguments,t=Fu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ud=Qa(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Wd(e,t,r){return r&&typeof r!=`number`&&Go(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=Fu(e),e&&(typeof t==`string`||t!=null&&!vu(t))&&(t=va(t),!t&&Kn(e))?Aa(tr(e),0,r):e.split(t,r)):[]}var Gd=Qa(function(e,t,n){return e+(n?` `:``)+nf(t)});function Kd(e,t,n){return e=Fu(e),n=n==null?0:ni($(n),0,e.length),t=va(t),e.slice(n,n+t.length)==t}function qd(e,t,r){var i=q.templateSettings;r&&Go(e,t,r)&&(t=n),e=Fu(e),t=zu({},t,i,_o);var a=zu({},t.imports,i.imports,_o),o=id(a),s=Rn(a,o);un(o,function(e){if(Re.test(e))throw new Ye("Invalid `imports` option passed into `_.template`")});var c,l,u=0,d=t.interpolate||qe,f=`__p += '`,p=$e((t.escape||qe).source+`|`+d.source+`|`+(d===De?z:qe).source+`|`+(t.evaluate||qe).source+`|$`,`g`),m=`//# sourceURL=`+(ot.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++zt+`]`)+` 28`;e.replace(p,function(t,n,r,i,a,o){return r||(r=i),f+=e.slice(u,o).replace(Je,Wn),n&&(c=!0,f+=`' + 29__e(`+n+`) + 30'`),a&&(l=!0,f+=`'; 31`+a+`; 32__p += '`),r&&(f+=`' + 33((__t = (`+r+`)) == null ? '' : __t) + 34'`),u=o+t.length,t}),f+=`'; 35`;var h=ot.call(t,`variable`)&&t.variable;if(!h)f=`with (obj) { 36`+f+` 37} 38`;else if(Re.test(h))throw new Ye("Invalid `variable` option passed into `_.template`");f=(l?f.replace(ye,``):f).replace(be,`$1`).replace(xe,`$1;`),f=`function(`+(h||`obj`)+`) { 39`+(h?``:`obj || (obj = {}); 40`)+`var __t, __p = ''`+(c?`, __e = _.escape`:``)+(l?`, __j = Array.prototype.join; 41function print() { __p += __j.call(arguments, '') } 42`:`; 43`)+f+`return __p 44}`;var g=af(function(){return Xe(o,m+`return `+f).apply(n,s)});if(g.source=f,nu(g))throw g;return g}function Jd(e){return Fu(e).toLowerCase()}function Yd(e){return Fu(e).toUpperCase()}function Xd(e,t,r){if(e=Fu(e),e&&(r||t===n))return In(e);if(!e||!(t=va(t)))return e;var i=tr(e),a=tr(t);return Aa(i,Bn(i,a),Vn(i,a)+1).join(``)}function Zd(e,t,r){if(e=Fu(e),e&&(r||t===n))return e.slice(0,nr(e)+1);if(!e||!(t=va(t)))return e;var i=tr(e);return Aa(i,0,Vn(i,tr(t))+1).join(``)}function Qd(e,t,r){if(e=Fu(e),e&&(r||t===n))return e.replace(Ne,``);if(!e||!(t=va(t)))return e;var i=tr(e);return Aa(i,Bn(i,tr(t))).join(``)}function $d(e,t){var r=30,i=`...`;if(su(t)){var a=`separator`in t?t.separator:a;r=`length`in t?$(t.length):r,i=`omission`in t?va(t.omission):i}e=Fu(e);var o=e.length;if(Kn(e)){var s=tr(e);o=s.length}if(r>=o)return e;var c=r-er(i);if(c<1)return i;var l=s?Aa(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),vu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=$e(a.source,Fu(Be.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(va(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function ef(e){return e=Fu(e),e&&Ce.test(e)?e.replace(L,rr):e}var tf=Qa(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),nf=Za(`toUpperCase`);function rf(e,t,r){return e=Fu(e),t=r?n:t,t===n?qn(e)?K(e):Sn(e):e.match(t)||[]}var af=X(function(e,t){try{return cn(e,n,t)}catch(e){return nu(e)?e:new Ye(e)}}),of=Co(function(e,t){return un(t,function(t){t=hs(t),ti(e,t,gl(e[t],e))}),e});function sf(e){var t=e==null?0:e.length,n=Z();return e=t?gn(e,function(e){if(typeof e[1]!=`function`)throw new B(r);return[n(e[0]),e[1]]}):[],X(function(n){for(var r=-1;++r<t;){var i=e[r];if(cn(i[0],this,n))return cn(i[1],this,n)}})}function cf(e){return ii(ri(e,1))}function lf(e){return function(){return e}}function uf(e,t){return e==null||e!==e?t:e}var df=no(),ff=no(!0);function pf(e){return e}function mf(e){return Vi(typeof e==`function`?e:ri(e,1))}function hf(e){return Ki(ri(e,1))}function gf(e,t){return qi(e,ri(t,1))}var _f=X(function(e,t){return function(n){return ki(n,e,t)}}),vf=X(function(e,t){return function(n){return ki(e,n,t)}});function yf(e,t,n){var r=id(t),i=yi(t,r);n==null&&!(su(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=yi(t,id(t)));var a=!(su(n)&&`chain`in n)||!!n.chain,o=iu(e);return un(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ha(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,_n([this.value()],arguments))})}),e}function bf(){return Yt._===this&&(Yt._=dt),this}function xf(){}function Sf(e){return e=$(e),X(function(t){return Xi(t,e)})}var Cf=oo(gn),wf=oo(fn),Tf=oo(bn);function Ef(e){return Ko(e)?kn(hs(e)):ea(e)}function Df(e){return function(t){return e==null?n:bi(e,t)}}var Of=lo(),kf=lo(!0);function Af(){return[]}function jf(){return!1}function Mf(){return{}}function Nf(){return``}function Pf(){return!0}function Ff(e,t){if(e=$(e),e<1||e>g)return[];var n=y,r=Ht(e,y);t=Z(t),e-=y;for(var i=Pn(r,t);++n<e;)t(n);return i}function If(e){return Q(e)?gn(e,hs):Su(e)?[e]:Ha(ms(Fu(e)))}function Lf(e){var t=++st;return Fu(e)+t}var Rf=ao(function(e,t){return e+t},0),zf=po(`ceil`),Bf=ao(function(e,t){return e/t},1),Vf=po(`floor`);function Hf(e){return e&&e.length?di(e,pf,Ci):n}function Uf(e,t){return e&&e.length?di(e,Z(t,2),Ci):n}function Wf(e){return On(e,pf)}function Gf(e,t){return On(e,Z(t,2))}function Kf(e){return e&&e.length?di(e,pf,Wi):n}function qf(e,t){return e&&e.length?di(e,Z(t,2),Wi):n}var Jf=ao(function(e,t){return e*t},1),Yf=po(`round`),Xf=ao(function(e,t){return e-t},0);function Zf(e){return e&&e.length?Nn(e,pf):0}function Qf(e,t){return e&&e.length?Nn(e,Z(t,2)):0}return q.after=pl,q.ary=ml,q.assign=Iu,q.assignIn=Lu,q.assignInWith=Ru,q.assignWith=zu,q.at=Bu,q.before=hl,q.bind=gl,q.bindAll=of,q.bindKey=_l,q.castArray=Il,q.chain=kc,q.chunk=ys,q.compact=bs,q.concat=xs,q.cond=sf,q.conforms=cf,q.constant=lf,q.countBy=Bc,q.create=Vu,q.curry=vl,q.curryRight=yl,q.debounce=bl,q.defaults=Hu,q.defaultsDeep=Uu,q.defer=xl,q.delay=Sl,q.difference=Ss,q.differenceBy=Cs,q.differenceWith=ws,q.drop=Ts,q.dropRight=Es,q.dropRightWhile=Ds,q.dropWhile=Os,q.fill=ks,q.filter=Hc,q.flatMap=Gc,q.flatMapDeep=Kc,q.flatMapDepth=qc,q.flatten=Ms,q.flattenDeep=Ns,q.flattenDepth=Ps,q.flip=Cl,q.flow=df,q.flowRight=ff,q.fromPairs=Fs,q.functions=Xu,q.functionsIn=Zu,q.groupBy=Xc,q.initial=Rs,q.intersection=zs,q.intersectionBy=Bs,q.intersectionWith=Vs,q.invert=td,q.invertBy=nd,q.invokeMap=Qc,q.iteratee=mf,q.keyBy=$c,q.keys=id,q.keysIn=ad,q.map=el,q.mapKeys=od,q.mapValues=sd,q.matches=hf,q.matchesProperty=gf,q.memoize=wl,q.merge=cd,q.mergeWith=ld,q.method=_f,q.methodOf=vf,q.mixin=yf,q.negate=Tl,q.nthArg=Sf,q.omit=ud,q.omitBy=dd,q.once=El,q.orderBy=tl,q.over=Cf,q.overArgs=Dl,q.overEvery=wf,q.overSome=Tf,q.partial=Ol,q.partialRight=kl,q.partition=nl,q.pick=fd,q.pickBy=pd,q.property=Ef,q.propertyOf=Df,q.pull=Ks,q.pullAll=qs,q.pullAllBy=Js,q.pullAllWith=Ys,q.pullAt=Xs,q.range=Of,q.rangeRight=kf,q.rearg=Al,q.reject=al,q.remove=Zs,q.rest=jl,q.reverse=Qs,q.sampleSize=sl,q.set=hd,q.setWith=gd,q.shuffle=cl,q.slice=$s,q.sortBy=dl,q.sortedUniq=oc,q.sortedUniqBy=sc,q.split=Wd,q.spread=Ml,q.tail=cc,q.take=lc,q.takeRight=uc,q.takeRightWhile=dc,q.takeWhile=fc,q.tap=Ac,q.throttle=Nl,q.thru=jc,q.toArray=ku,q.toPairs=_d,q.toPairsIn=vd,q.toPath=If,q.toPlainObject=Nu,q.transform=yd,q.unary=Pl,q.union=pc,q.unionBy=mc,q.unionWith=hc,q.uniq=gc,q.uniqBy=_c,q.uniqWith=vc,q.unset=bd,q.unzip=yc,q.unzipWith=bc,q.update=xd,q.updateWith=Sd,q.values=Cd,q.valuesIn=wd,q.without=xc,q.words=rf,q.wrap=Fl,q.xor=Sc,q.xorBy=Cc,q.xorWith=wc,q.zip=Tc,q.zipObject=Ec,q.zipObjectDeep=Dc,q.zipWith=Oc,q.entries=_d,q.entriesIn=vd,q.extend=Lu,q.extendWith=Ru,yf(q,q),q.add=Rf,q.attempt=af,q.camelCase=Od,q.capitalize=kd,q.ceil=zf,q.clamp=Td,q.clone=Ll,q.cloneDeep=zl,q.cloneDeepWith=Bl,q.cloneWith=Rl,q.conformsTo=Vl,q.deburr=Ad,q.defaultTo=uf,q.divide=Bf,q.endsWith=jd,q.eq=Hl,q.escape=Md,q.escapeRegExp=Nd,q.every=Vc,q.find=Uc,q.findIndex=As,q.findKey=Wu,q.findLast=Wc,q.findLastIndex=js,q.findLastKey=Gu,q.floor=Vf,q.forEach=Jc,q.forEachRight=Yc,q.forIn=Ku,q.forInRight=qu,q.forOwn=Ju,q.forOwnRight=Yu,q.get=Qu,q.gt=Ul,q.gte=Wl,q.has=$u,q.hasIn=ed,q.head=Is,q.identity=pf,q.includes=Zc,q.indexOf=Ls,q.inRange=Ed,q.invoke=rd,q.isArguments=Gl,q.isArray=Q,q.isArrayBuffer=Kl,q.isArrayLike=ql,q.isArrayLikeObject=Jl,q.isBoolean=Yl,q.isBuffer=Xl,q.isDate=Zl,q.isElement=Ql,q.isEmpty=$l,q.isEqual=eu,q.isEqualWith=tu,q.isError=nu,q.isFinite=ru,q.isFunction=iu,q.isInteger=au,q.isLength=ou,q.isMap=lu,q.isMatch=uu,q.isMatchWith=du,q.isNaN=fu,q.isNative=pu,q.isNil=hu,q.isNull=mu,q.isNumber=gu,q.isObject=su,q.isObjectLike=cu,q.isPlainObject=_u,q.isRegExp=vu,q.isSafeInteger=yu,q.isSet=bu,q.isString=xu,q.isSymbol=Su,q.isTypedArray=Cu,q.isUndefined=wu,q.isWeakMap=Tu,q.isWeakSet=Eu,q.join=Hs,q.kebabCase=Pd,q.last=Us,q.lastIndexOf=Ws,q.lowerCase=Fd,q.lowerFirst=Id,q.lt=Du,q.lte=Ou,q.max=Hf,q.maxBy=Uf,q.mean=Wf,q.meanBy=Gf,q.min=Kf,q.minBy=qf,q.stubArray=Af,q.stubFalse=jf,q.stubObject=Mf,q.stubString=Nf,q.stubTrue=Pf,q.multiply=Jf,q.nth=Gs,q.noConflict=bf,q.noop=xf,q.now=fl,q.pad=Ld,q.padEnd=Rd,q.padStart=zd,q.parseInt=Bd,q.random=Dd,q.reduce=rl,q.reduceRight=il,q.repeat=Vd,q.replace=Hd,q.result=md,q.round=Yf,q.runInContext=e,q.sample=ol,q.size=ll,q.snakeCase=Ud,q.some=ul,q.sortedIndex=ec,q.sortedIndexBy=tc,q.sortedIndexOf=nc,q.sortedLastIndex=rc,q.sortedLastIndexBy=ic,q.sortedLastIndexOf=ac,q.startCase=Gd,q.startsWith=Kd,q.subtract=Xf,q.sum=Zf,q.sumBy=Qf,q.template=qd,q.times=Ff,q.toFinite=Au,q.toInteger=$,q.toLength=ju,q.toLower=Jd,q.toNumber=Mu,q.toSafeInteger=Pu,q.toString=Fu,q.toUpper=Yd,q.trim=Xd,q.trimEnd=Zd,q.trimStart=Qd,q.truncate=$d,q.unescape=ef,q.uniqueId=Lf,q.upperCase=tf,q.upperFirst=nf,q.each=Jc,q.eachRight=Yc,q.first=Is,yf(q,function(){var e={};return _i(q,function(t,n){ot.call(q.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),q.VERSION=`4.18.1`,un([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){q[e].placeholder=q}),un([`drop`,`take`],function(e,t){J.prototype[e]=function(r){r=r===n?1:Lt($(r),0);var i=this.__filtered__&&!t?new J(this):this.clone();return i.__filtered__?i.__takeCount__=Ht(r,i.__takeCount__):i.__views__.push({size:Ht(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},J.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),un([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;J.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Z(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),un([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);
44J.prototype[e]=function(){return this[n](1).value()[0]}}),un([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);J.prototype[e]=function(){return this.__filtered__?new J(this):this[n](1)}}),J.prototype.compact=function(){return this.filter(pf)},J.prototype.find=function(e){return this.filter(e).head()},J.prototype.findLast=function(e){return this.reverse().find(e)},J.prototype.invokeMap=X(function(e,t){return typeof e==`function`?new J(this):this.map(function(n){return ki(n,e,t)})}),J.prototype.reject=function(e){return this.filter(Tl(Z(e)))},J.prototype.slice=function(e,t){e=$(e);var r=this;return r.__filtered__&&(e>0||t<0)?new J(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=$(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},J.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},J.prototype.toArray=function(){return this.take(y)},_i(J.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=q[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(q.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof J,l=s[0],u=c||Q(t),d=function(e){var t=a.apply(q,_n([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new J(this);var g=e.apply(t,s);return g.__actions__.push({func:jc,args:[d],thisArg:n}),new mr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),un([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=tt[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);q.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Q(i)?i:[],e)}return this[n](function(n){return t.apply(Q(n)?n:[],e)})}}),_i(J.prototype,function(e,t){var n=q[t];if(n){var r=n.name+``;ot.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}}),An[ro(n,s).name]=[{name:`wrapper`,func:n}],J.prototype.clone=hr,J.prototype.reverse=gr,J.prototype.value=_r,q.prototype.at=Mc,q.prototype.chain=Nc,q.prototype.commit=Pc,q.prototype.next=Fc,q.prototype.plant=Lc,q.prototype.reverse=Rc,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=zc,q.prototype.first=q.prototype.head,St&&(q.prototype[St]=Ic),q})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(Yt._=or,define(function(){return or})):Zt?((Zt.exports=or)._=or,Xt._=or):Yt._=or}).call(e)}))()),vv=w((0,Y.jsx)(`path`,{d:`M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z`}),`Save`),yv=({saved:e,savedLabel:t=`Saved`,children:n=`Save`,disabled:r,sx:i,...a})=>(0,Y.jsx)(g,{variant:`contained`,disabled:r||e,startIcon:e?(0,Y.jsx)(nv,{}):(0,Y.jsx)(vv,{}),sx:[{transition:`background-color 0.5s ease`,...e&&{backgroundColor:`success.main`,"&:hover":{backgroundColor:`success.dark`},"&.Mui-disabled":{backgroundColor:`success.main`,color:`white`,opacity:.9}}},...Array.isArray(i)?i:[i]],...a,children:e?t:n}),bv=e=>[`namespace-details`,e],xv=e=>{let{service:t}=(0,K.useContext)(I);return an(E({queryKey:bv(e),queryFn:({signal:n})=>t.getNamespaceDetails(he(n),e),...se}))},Sv=()=>{let{service:e}=(0,K.useContext)(I),t=N();return qn({mutationFn:({detailsUrl:t,details:n})=>e.setNamespaceDetails(new AbortController,t,n),onSuccess:(e,{details:n})=>{t.invalidateQueries({queryKey:bv(n.name)})}})},Cv=()=>{let{service:e}=(0,K.useContext)(I),t=N();return qn({mutationFn:({detailsUrl:t,file:n,fileName:r})=>e.setNamespaceLogo(new AbortController,t,n,r),onSuccess:(e,{namespaceName:n})=>{t.invalidateQueries({queryKey:bv(n)})}})},wv=P(s)({padding:`0.875rem 1.125rem`}),Tv=e=>{let t=e.endsWith(`/`)?e.slice(0,-1):e;return t.substring(t.lastIndexOf(`/`)+1)},Ev=e=>{let t=(e.endsWith(`/`)?e.slice(0,-1):e).split(`/`);return{handle:t[t.length-1],accountType:t[t.length-2]}},Dv=`â`,Ov=(e,t)=>{let n=e=>!e;return _v.default.isEqual(_v.default.omitBy(e,n),_v.default.omitBy(t,n))},kv=e=>{let t=`display-name`,n=`description`,r=`website`,i=`support-link`,a=`linkedin`,o=`github`,c=`twitter`,l=(0,K.useContext)(I),d=xv(e.n
44amespace.name),f=Sv(),[p,m]=(0,K.useState)(),[h,_]=(0,K.useState)(),[v,y]=(0,K.useState)(!1),{saved:b,flash:x}=wc(1200,()=>y(!1)),[S,C]=(0,K.useState)(`in`),w=(0,K.useMemo)(()=>Ov(p,h),[p,h]),ee=e=>JSON.parse(JSON.stringify(e)),T=e=>{let t=ee(e),{linkedin:n,github:r,twitter:i}=t.socialLinks,a=`in`;if(n){let e=Ev(n);t.socialLinks.linkedin=e.handle,a=e.accountType}r&&(t.socialLinks.github=Tv(r)),i&&(t.socialLinks.twitter=Tv(i)),m(ee(t)),_(ee(t)),C(a)},E=d.data;(0,K.useEffect)(()=>{E&&T(E)},[E]),(0,K.useEffect)(()=>{y(!1)},[e.namespace.name]);let D=e=>({name:e.name,displayName:e.displayName,description:e.description,website:e.website,supportLink:e.supportLink,socialLinks:{linkedin:e.socialLinks.linkedin?`https://www.linkedin.com/${S}/${e.socialLinks.linkedin}`:void 0,github:e.socialLinks.github?`https://github.com/`+e.socialLinks.github:void 0,twitter:e.socialLinks.twitter?`https://twitter.com/`+e.socialLinks.twitter:void 0},logo:e.logo}),O=async()=>{if(h)try{await f.mutateAsync({detailsUrl:e.namespace.detailsUrl,details:D(h)}),m(ee(h)),x()}catch(e){l.handleError(e)}},k=e=>{if(!h)return;let s=e.target,l=ee(h);switch(s.name){case t:l.displayName=s.value;break;case n:l.description=s.value;break;case r:l.website=s.value;break;case i:l.supportLink=s.value;break;case a:if(s.value.startsWith(`https://www.linkedin.com/`)){let{handle:e,accountType:t}=Ev(s.value);l.socialLinks.linkedin=e,C(t)}else l.socialLinks.linkedin=s.value;break;case o:l.socialLinks.github=s.value.startsWith(`https://github.com/`)?Tv(s.value):s.value;break;case c:l.socialLinks.twitter=s.value.startsWith(`https://twitter.com/`)?Tv(s.value):s.value}_(l)},A=e=>C(e.target.value),j=()=>{E&&T(E),y(!1)},M=!!e.namespace.detailsUrl,te=(e,t=!1)=>{if(!e)return!0;try{let n=new URL(e).protocol;return n===`http:`||n===`https:`||t&&n===`mailto:`}catch{return!1}},N=e=>!e||/^[^\s/]+$/.test(e),ne=te(h?.website),P=te(h?.supportLink,!0),re=N(h?.socialLinks.linkedin),ie=N(h?.socialLinks.github),ae=N(h?.socialLinks.twitter),oe=ne&&P&&re&&ie&&ae,se=()=>{let t=l.pageSettings.urls.namespaceAccessInfo;return(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.625rem`,mb:`1.25rem`},children:[e.namespace.verified?(0,Y.jsx)(gv,{sx:{fontSize:`1rem`,color:`text.disabled`,flexShrink:0}}):(0,Y.jsx)(Sc,{sx:{fontSize:`1rem`,color:`warningAccent`,flexShrink:0}}),(0,Y.jsx)(u,{sx:{fontSize:`0.8125rem`,color:`text.disabled`,lineHeight:1.5},children:e.namespace.verified?`Only namespace owners can edit these details.`:(0,Y.jsxs)(Y.Fragment,{children:[`This namespace isn't verified yet.`,` `,t?(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,target:`_blank`,href:t,sx:{fontWeight:600},children:`Claim ownership`}):`Claim ownership`,` `,`to verify it and unlock editing its details.`]})})]})},ce=(e,t)=>(0,Y.jsx)(_n,{label:e,empty:!t,children:t?(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,target:`_blank`,href:t,children:t.replace(/https?:\/\//,``)}):Dv},e),le=(e,t)=>(0,Y.jsx)(_n,{label:e,empty:!t,children:t||Dv},e);return h?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Ft,{sx:{minHeight:`2.375rem`},children:[(0,Y.jsx)(Pt,{component:`h3`,sx:{m:0},children:`Details`}),M&&!v?(0,Y.jsx)(g,{variant:`outlined`,startIcon:(0,Y.jsx)(hv,{sx:{fontSize:`0.875rem`}}),onClick:()=>y(!0),children:`Edit`}):null]}),M?null:se(),v?(e=>(0,Y.jsxs)(On,{children:[(0,Y.jsx)(wv,{children:(0,Y.jsx)(ht,{fullWidth:!0,size:`small`,label:`Display name`,name:t,value:e.displayName??``,onChange:k,inputProps:{maxLength:32}})}),(0,Y.jsx)(wv,{children:(0,Y.jsx)(ht,{fullWidth:!0,size:`small`,multiline:!0,minRows:3,maxRows:8,label:`Description`,placeholder:`What is this namespace about?`,name:n,value:e.description??``,onChange:k})}),(0,Y.jsx)(sn,{children:`Links`}),(0,Y.jsx)(wv,{children:(0,Y.jsx)(ht,{fullWidth:!0,size:`small`,label:`Website`,type:`url`,placeholder:`https://example.com`,name:r,value:e.website??``,onChange:k,error:!ne,helperText:ne?void 0:`Enter a full URL, including https://`})}),(0,Y.jsx)(wv,{children:(0,Y.jsx)(ht,{fullWidth:!0,size:`small`,label:`Support link`,type:`url`,placeholder:`https:// or mailto:`,name:i,value:e.supportLink??``,onChange:k,error:!P,helperText:P?void 0:`Enter a full URL, including https:// or mailto:`})}),(0,Y.jsx)(sn,{children:`Social accounts`}),(0,Y.jsx)(wv,{children:(0,Y.jsx)(ht,{fullWidth:!0,size:`small`,label:`LinkedIn`,placeholder:`account name`,name:a,value:e.socialLinks.linkedin??``,onChange:k,error:!re,helperText:re?void 0:`Just the account name â no slashes or spaces`,InputProps:{startAdornment:(0,Y.jsx)(Ke,{position:`start`,children:(0,Y.jsxs)(dt,{variant:`standard`,disableUnderline:!0,value:S,onChange:A,sx:{fontSize:`0.875rem`,color:`text.disabled`,"& .MuiSelect-select":{py:0}},children:[(0,Y.jsx)(H,{value:`in`,children:`linkedin.com/in/`}),(0,Y.jsx)(H,{value:`company`,children:`linkedin.com/company/`})]})})}})}),(0,Y.jsx)(wv,{children:(0,Y.jsx)(ht,{fullWidth:!0,size:`small`,label:`GitHub`,placeholder:`username`,name:o,value:e.socialLinks.github??``,onChange:k,error:!ie,helperText:ie?void 0:`Just the account name â no slashes or spaces`,InputProps:{startAdornment:(0,Y.jsx)(Ke,{position:`start`,children:`github.com/`})}})}),(0,Y.jsx)(wv,{children:(0,Y.jsx)(ht,{fullWidth:!0,size:`small`,label:`Twitter / X`,placeholder:`username`,name:c,value:e.socialLinks.twitter??``,onChange:k,error:!ae,helperText:ae?void 0:`Just the account name â no slashes or spaces`,InputProps:{startAdornment:(0,Y.jsx)(Ke,{position:`start`,children:`twitter.com/`})}})}),(0,Y.jsxs)(wv,{sx:{display:`flex`,justifyContent:`flex-end`,gap:`0.5rem`},children:[(0,Y.jsx)(g,{onClick:j,children:`Cancel`}),(0,Y.jsx)(yv,{color:`secondary`,saved:b,disabled:w||!oe||f.isPending,onClick:O,children:`Save namespace details`})]})]}))(h):(e=>
44(0,Y.jsxs)(On,{children:[(0,Y.jsx)(_n,{label:`Display name`,children:e.displayName||e.name}),(0,Y.jsx)(_n,{label:`Description`,empty:!e.description,children:e.description||Dv}),(0,Y.jsx)(sn,{children:`Links`}),ce(`Website`,e.website),ce(`Support`,e.supportLink),(0,Y.jsx)(sn,{children:`Social accounts`}),le(`LinkedIn`,e.socialLinks.linkedin),le(`GitHub`,e.socialLinks.github),le(`Twitter / X`,e.socialLinks.twitter)]}))(h)]}):(0,Y.jsx)(Re,{loading:d.isLoading})},Av=w((0,Y.jsx)(`path`,{d:`M7.11 8.53 5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93`}),`RotateLeft`),jv=w((0,Y.jsx)(`path`,{d:`M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48`}),`RotateRight`),Mv=w([(0,Y.jsx)(`path`,{d:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14`},`0`),(0,Y.jsx)(`path`,{d:`M12 10h-2v2H9v-2H7V9h2V7h1v2h2z`},`1`)],`ZoomIn`),Nv=w((0,Y.jsx)(`path`,{d:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z`}),`ZoomOut`),Pv=(e,t,n,r,i,a)=>{if(a===0)e.rect(t,n,r,i);else{let o=r-a,s=i-a;e.translate(t,n),e.arc(a,a,a,Math.PI,Math.PI*1.5),e.lineTo(o,0),e.arc(o,a,a,Math.PI*1.5,Math.PI*2),e.lineTo(r,s),e.arc(o,s,a,Math.PI*2,Math.PI*.5),e.lineTo(a,i),e.arc(a,s,a,Math.PI*.5,Math.PI),e.closePath(),e.translate(-t,-n)}},Fv=(e,t,n,r,i,a)=>{e.fillStyle=a;let o=r/3,s=i/3;e.fillRect(t,n,1,i),e.fillRect(o+t,n,1,i),e.fillRect(o*2+t,n,1,i),e.fillRect(o*3+t,n,1,i),e.fillRect(o*4+t,n,1,i),e.fillRect(t,n,r,1),e.fillRect(t,s+n,r,1),e.fillRect(t,s*2+n,r,1),e.fillRect(t,s*3+n,r,1),e.fillRect(t,s*4+n,r,1)},Iv=e=>!!e.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i),Lv=(e,t)=>new Promise((n,r)=>{let i=new Image;i.addEventListener(`load`,()=>n(i)),i.addEventListener(`error`,r),!Iv(e)&&t&&(i.crossOrigin=t),i.src=e}),Rv=e=>new Promise((t,n)=>{let r=new FileReader;r.addEventListener(`load`,e=>{try{if(!e?.target?.result)throw Error(`No image data`);t(Lv(e.target.result))}catch(e){n(e)}}),r.readAsDataURL(e)}),zv=typeof File<`u`,Bv=e=>Math.PI/180*e,Vv={x:.5,y:.5},Hv=class{constructor(e){this.imageState=Vv,this.config={border:25,borderRadius:0,scale:1,rotate:0,color:[0,0,0,.5],backgroundColor:``,borderColor:void 0,showGrid:!1,gridColor:`#666`,disableBoundaryChecks:!1,disableHiDPIScaling:!1,disableCanvasRotation:!0,crossOrigin:void 0,...e},this.pixelRatio=typeof window<`u`&&window.devicePixelRatio&&!this.config.disableHiDPIScaling?window.devicePixelRatio:1}getPixelRatio(){return this.pixelRatio}getImageState(){return this.imageState}setImageState(e){this.imageState=e}updateConfig(e){this.config={...this.config,...e}}isVertical(){return!this.config.disableCanvasRotation&&this.config.rotate%180!=0}getBorders(e){let t=e??this.config.border;return Array.isArray(t)?t:[t,t]}getDimensions(){let{width:e,height:t,rotate:n,border:r}=this.config,i={width:0,height:0},[a,o]=this.getBorders(r);return this.isVertical()?(i.width=t,i.height=e):(i.width=e,i.height=t),i.width+=a*2,i.height+=o*2,{canvas:i,rotate:n,width:e,height:t,border:r}}getXScale(){if(!this.imageState.width||!this.imageState.height)throw Error(`Image dimension is unknown.`);let e=this.config.width/this.config.height,t=this.imageState.width/this.imageState.height;return Math.min(1,e/t)}getYScale(){if(!this.imageState.width||!this.imageState.height)throw Error(`Image dimension is unknown.`);let e=this.config.height/this.config.width,t=this.imageState.height/this.imageState.width;return Math.min(1,e/t)}
44getCroppingRect(e){if(!this.imageState.width||!this.imageState.height)return{x:0,y:0,width:1,height:1};let t=e||{x:this.imageState.x,y:this.imageState.y},n=1/this.config.scale*this.getXScale(),r=1/this.config.scale*this.getYScale(),i={x:t.x-n/2,y:t.y-r/2,width:n,height:r},a=0,o=1-i.width,s=0,c=1-i.height;return(this.config.disableBoundaryChecks||n>1||r>1)&&(a=-i.width,o=1,s=-i.height,c=1),{...i,x:Math.max(a,Math.min(i.x,o)),y:Math.max(s,Math.min(i.y,c))}}getInitialSize(e,t){let n,r,i=this.getDimensions();return i.height/i.width>t/e?(n=i.height,r=n/t*e):(r=i.width,n=r/e*t),{height:n,width:r}}async loadImage(e){let t;if(zv&&e instanceof File)t=await Rv(e);else if(typeof e==`string`)t=await Lv(e,this.config.crossOrigin);else throw Error(`Invalid image source`);let n={...this.getInitialSize(t.width,t.height),resource:t,x:.5,y:.5};return this.imageState=n,n}clearImage(){this.imageState=Vv}calculatePosition(e=this.imageState,t){let[n,r]=this.getBorders(t);if(!e.width||!e.height)throw Error(`Image dimension is unknown.`);let i=this.getCroppingRect(),a=e.width*this.config.scale,o=e.height*this.config.scale,s=-i.x*a,c=-i.y*o;return this.isVertical()?(s+=r,c+=n):(s+=n,c+=r),{x:s,y:c,height:o,width:a}}paint(e){e.save(),e.scale(this.pixelRatio,this.pixelRatio),e.translate(0,0),e.fillStyle=`rgba(`+this.config.color.slice(0,4).join(`,`)+`)`;let t=this.config.borderRadius,n=this.getDimensions(),[r,i]=this.getBorders(n.border),a=n.canvas.height,o=n.canvas.width;t=Math.max(t,0),t=Math.min(t,o/2-r,a/2-i),e.beginPath(),Pv(e,r,i,o-r*2,a-i*2,t),e.rect(o,0,-o,a),e.fill(`evenodd`),this.config.borderColor&&(e.strokeStyle=`rgba(`+this.config.borderColor.slice(0,4).join(`,`)+`)`,e.lineWidth=1,e.beginPath(),Pv(e,r+.5,i+.5,o-r*2-1,a-i*2-1,t),e.stroke()),this.config.showGrid&&Fv(e,r,i,o-r*2,a-i*2,this.config.gridColor),e.restore()}paintImage(e,t,n,r=this.pixelRatio){if(!t.resource)return;let i=this.calculatePosition(t,n);e.save(),e.translate(e.canvas.width/2,e.canvas.height/2),e.rotate(this.config.rotate*Math.PI/180),e.translate(-(e.canvas.width/2),-(e.canvas.height/2)),this.isVertical()&&e.translate((e.canvas.width-e.canvas.height)/2,(e.canvas.height-e.canvas.width)/2),e.scale(r,r),e.globalCompositeOperation=`destination-over`,e.drawImage(t.resource,i.x,i.y,i.width,i.height),this.config.backgroundColor&&(e.fillStyle=this.config.backgroundColor,e.fillRect(0,0,e.canvas.width,e.canvas.height)),e.restore()}getImage(){let e=this.getCroppingRect(),t=this.imageState;if(!t.resource)throw Error(`No image resource available, please report this to: https://github.com/mosch/react-avatar-editor/issues`);e.x*=t.resource.width,e.y*=t.resource.height,e.width*=t.resource.width,e.height*=t.resource.height;let n=document.createElement(`canvas`);this.isVertical()?(n.width=Math.round(e.height),n.height=Math.round(e.width)):(n.width=Math.round(e.width),n.height=Math.round(e.height));let r=n.getContext(`2d`);if(!r)throw Error(`No context found, please report this to: https://github.com/mosch/react-avatar-editor/issues`);return r.translate(n.width/2,n.height/2),r.rotate(this.config.rotate*Math.PI/180),r.translate(-(n.width/2),-(n.height/2)),this.isVertical()&&r.translate((n.width-n.height)/2,(n.height-n.width)/2),this.config.backgroundColor&&(r.fillStyle=this.config.backgroundColor,r.fillRect(0,0,n.width,n.height)),r.drawImage(t.resource,-e.x,-e.y),n}getImageScaledToCanvas(){let e=this.getDimensions(),t=this.imageState,n=document.createElement(`canvas`);if(this.isVertical()?(n.width=e.height,n.height=e.width):(n.width=e.width,n.height=e.height),!t.resource)return n;let r=n.getContext(`2d`);if(!r)return n;let i=this.calculatePosition(t,0);return r.save(),r.translate(n.width/2,n.height/2),r.rotate(this.config.rotate*Math.PI/180),r.translate(-(n.width/2),-(n.height/2)),this.isVertical()&&r.translate((n.width-n.height)/2,(n.height-n.width)/2),this.config.backgroundColor&&(r.fillStyle=this.config.backgroundColor,r.fillRect(0,0,n.width,n.height)),r.drawImage(t.resource,i.x,i.y,i.width,i.height),r.restore(),n}calculateDragPosition(e,t,n,r){let i=n-e,a=r-t;if(!this.imageState.width||!this.imageState.height)throw Error(`Image dimension is unknown.`);let o=this.imageState.width*this.config.scale,s=this.imageState.height*this.config.scale,{x:c,y:l}
44=this.getCroppingRect();c*=o,l*=s;let u=this.config.rotate;u%=360,u=u<0?u+360:u;let d=Math.cos(Bv(u)),f=Math.sin(Bv(u)),p=c+i*d+a*f,m=l+-i*f+a*d,h=1/this.config.scale*this.getXScale(),g=1/this.config.scale*this.getYScale();return{x:p/o+h/2,y:m/s+g/2}}},Uv=()=>{},Wv=()=>{let e=!1;try{let t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener(`test`,Uv,t),window.removeEventListener(`test`,Uv,t)}catch{e=!1}return e},Gv=(0,K.forwardRef)((e,t)=>{let{scale:n=1,rotate:r=0,border:i=25,borderRadius:a=0,width:o=200,height:s=200,color:c=[0,0,0,.5],showGrid:l=!1,gridColor:u=`#666`,disableBoundaryChecks:d=!1,disableHiDPIScaling:f=!1,disableCanvasRotation:p=!0,image:m,position:h,backgroundColor:g,crossOrigin:_,onLoadStart:v,onLoadFailure:y,onLoadSuccess:b,onImageReady:x,onImageChange:S,onMouseUp:C,onMouseMove:w,onPositionChange:ee,borderColor:T,style:E}=e,D=(0,K.useRef)(null),O=(0,K.useRef)(new Hv({width:o,height:s,border:i,borderRadius:a,scale:n,rotate:r,color:c,backgroundColor:g,borderColor:T,showGrid:l,gridColor:u,disableBoundaryChecks:d,disableHiDPIScaling:f,disableCanvasRotation:p,crossOrigin:_})),k=(0,K.useRef)(!1),A=(0,K.useRef)(void 0),j=(0,K.useRef)(void 0),[M,te]=(0,K.useState)(!1),[N,ne]=(0,K.useState)(!1),[P,re]=(0,K.useState)(O.current.getImageState()),ie=(0,K.useRef)(C);ie.current=C;let ae=(0,K.useRef)(w);ae.current=w;let oe=(0,K.useRef)(ee);oe.current=ee,(0,K.useEffect)(()=>{O.current.updateConfig({width:o,height:s,border:i,borderRadius:a,scale:n,rotate:r,color:c,backgroundColor:g,borderColor:T,showGrid:l,gridColor:u,disableBoundaryChecks:d,disableHiDPIScaling:f,disableCanvasRotation:p,crossOrigin:_})},[o,s,i,a,n,r,c,g,T,l,u,d,f,p,_]);let se=(0,K.useCallback)(()=>{if(!D.current)throw Error(`No canvas found, please report this to: https://github.com/mosch/react-avatar-editor/issues`);return D.current},[]),ce=(0,K.useCallback)(()=>{let e=se().getContext(`2d`);if(!e)throw Error(`No context found, please report this to: https://github.com/mosch/react-avatar-editor/issues`);return e},[se]),le=(0,K.useCallback)(async e=>{ne(!0),v?.();try{let t=await O.current.loadImage(e);k.current=!1,te(!1),re(t),x?.(),b?.(t)}catch{y?.()}finally{ne(!1)}},[v,x,b,y]),ue=(0,K.useCallback)(()=>{let e=se();ce().clearRect(0,0,e.width,e.height),O.current.clearImage(),re(O.current.getImageState())},[se,ce]),de=(0,K.useCallback)(()=>{let e=ce(),t=se();e.clearRect(0,0,t.width,t.height),O.current.paint(e),O.current.paintImage(e,P,i)},[ce,se,P,i,o,s,a,n,r,c,g,T,l,u,d,f,p,_]),fe=(0,K.useCallback)(e=>{e.preventDefault(),k.current=!0,A.current=void 0,j.current=void 0,te(!0)},[]),pe=(0,K.useCallback)(()=>{k.current=!0,A.current=void 0,j.current=void 0,te(!0)},[]);(0,K.useImperativeHandle)(t,()=>({getImage:()=>O.current.getImage(),getImageScaledToCanvas:()=>O.current.getImageScaledToCanvas(),getCroppingRect:()=>O.current.getCroppingRect()}),[]),(0,K.useEffect)(()=>{let e=ce();m&&le(m),O.current.paint(e);let t=e=>{if(!k.current)return;e.cancelable&&e.preventDefault();let t=`targetTouches`in e?e.targetTouches[0].pageX:e.clientX,n=`targetTouches`in e?e.targetTouches[0].pageY:e.clientY,r=A.current,i=j.current;if(A.current=t,j.current=n,r!==void 0&&i!==void 0){let e=O.current.getImageState();if(e.width&&e.height){let a=O.current.calculateDragPosition(t,n,r,i);oe.current?.(a);let o={...e,...a};O.current.setImageState(o),re(o)}}ae.current?.(e)},n=()=>{k.current&&(k.current=!1,te(!1),ie.current?.())},r=Wv()?{passive:!1}:!1;return document.addEventListener(`mousemove`,t,r),document.addEventListener(`mouseup`,n,r),document.addEventListener(`touchmove`,t,r),document.addEventListener(`touchend`,n,r),()=>{document.removeEventListener(`mousemove`,t,!1),document.removeEventListener(`mouseup`,n,!1),document.removeEventListener(`touchmove`,t,!1),document.removeEventListener(`touchend`,n,!1)}},[]),(0,K.useEffect)(()=>{m?le(m):!m&&P.x!==.5&&P.y!==.5&&ue()},[m,o,s,g]),(0,K.useEffect)(()=>{de()},[de]),(0,K.useEffect)(()=>{if(!N)return;let e=D.current;if(!e)return;let t=e.getContext(`2d`);if(!t)return;let n,r=performance.now(),i=a=>{let o=(a-r)/1e3,s=.03+Math.sin(o*2.5)*.02+.02;t.save(),t.clearRect(0,0,e.width,e.height),t.fillStyle=`rgba(255,255,255,${s}
44)`,t.fillRect(0,0,e.width,e.height),t.restore(),n=requestAnimationFrame(i)};return n=requestAnimationFrame(i),()=>cancelAnimationFrame(n)},[N]);let me=(0,K.useRef)({image:m,width:o,height:s,position:h,scale:n,rotate:r,imageX:P.x,imageY:P.y});(0,K.useEffect)(()=>{let e=me.current;(e.image!==m||e.width!==o||e.height!==s||e.position!==h||e.scale!==n||e.rotate!==r||e.imageX!==P.x||e.imageY!==P.y)&&(S?.(),me.current={image:m,width:o,height:s,position:h,scale:n,rotate:r,imageX:P.x,imageY:P.y})},[m,o,s,h,n,r,P.x,P.y,S]);let he=O.current.getDimensions(),F=O.current.getPixelRatio(),ge={width:he.canvas.width,height:he.canvas.height,cursor:M?`grabbing`:`grab`,touchAction:`none`,maxWidth:`none`,maxHeight:`none`};return K.createElement(`canvas`,{width:he.canvas.width*F,height:he.canvas.height*F,onMouseDown:fe,onTouchStart:pe,style:{...ge,...E},ref:D})});Gv.displayName=`AvatarEditor`;var Kv=P(jn)({display:`flex`,alignItems:`center`,justifyContent:`center`,width:`100%`,aspectRatio:`1 / 1`,padding:`1rem`}),qv=e=>{let t=(0,K.useContext)(I),n=(0,K.useRef)(null),r=(0,K.useRef)(null),i=xv(e.namespace.name),a=i.data,o=Cv(),c=Sv(),[l,u]=(0,K.useState)(null),[d,f]=(0,K.useState)(),[p,m]=(0,K.useState)(!1),[h,_]=(0,K.useState)(1),[v,y]=(0,K.useState)(0),[b,x]=(0,K.useState)(),S=!!e.namespace.detailsUrl,C=e=>{let n=e.target.files?.[0];if(e.target.value=``,n){if(n.type!==`image/png`&&n.type!==`image/jpeg`){t.handleError(Error(`Unsupported file type '${n.type}'`));return}f(n),_(1),y(0),x(void 0),m(!0)}},w=()=>{(n.current?.getImageScaledToCanvas())?.toBlob(async n=>{if(!(!n||!d))try{await o.mutateAsync({namespaceName:e.namespace.name,detailsUrl:e.namespace.detailsUrl,file:n,fileName:d.name})}catch(e){t.handleError(e)}}),m(!1)},ee=async()=>{if(u(null),a)try{await c.mutateAsync({detailsUrl:e.namespace.detailsUrl,details:{name:a.name,displayName:a.displayName,description:a.description,website:a.website,supportLink:a.supportLink,socialLinks:{linkedin:a.socialLinks.linkedin||void 0,github:a.socialLinks.github||void 0,twitter:a.socialLinks.twitter||void 0},logo:void 0}})}catch(e){t.handleError(e)}},T=e=>e<1?.5+e/2:e;return(0,Y.jsxs)(s,{sx:{position:`relative`},children:[i.isLoading?(0,Y.jsx)(Dn,{variant:`rounded`,sx:{width:`100%`,height:`auto`,aspectRatio:`1 / 1`}}):a?.logo?(0,Y.jsx)(s,{component:`img`,src:a.logo,alt:`${a.displayName||e.namespace.name} logo`,sx:{display:`block`,width:`100%`,aspectRatio:`1 / 1`,objectFit:`contain`,borderRadius:e=>`${e.shape.borderRadiusCard}px`,border:`1px solid`,borderColor:`divider`}}):(0,Y.jsx)(Kv,{children:`No logo`}),S?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(g,{variant:`outlined`,size:`small`,startIcon:(0,Y.jsx)(hv,{sx:{fontSize:`0.8125rem`}}),onClick:e=>u(e.currentTarget),sx:{position:`absolute`,bottom:`0.5rem`,left:`0.5rem`,bgcolor:`background.paper`,boxShadow:`var(--shadow)`,"&:hover":{bgcolor:`background.paper`}},children:`Edit`}),(0,Y.jsxs)(ft,{open:!!l,anchorEl:l,onClose:()=>u(null),children:[(0,Y.jsx)(H,{onClick:()=>{u(null),r.current?.click()},children:`Upload a logoâ¦`}),a?.logo?(0,Y.jsx)(H,{onClick:ee,sx:{color:`error.main`},children:`Remove logo`}):null]}),(0,Y.jsx)(s,{component:`input`,ref:r,type:`file`,accept:`image/png,image/jpeg`,onChange:C,sx:{display:`none`}}),(0,Y.jsxs)(Be,{open:p,onClose:()=>m(!1),children:[(0,Y.jsx)(on,{children:`Edit namespace logo`}),(0,Y.jsx)(Ie,{sx:{overflowY:`unset`},children:(0,Y.jsxs)(z,{container:!0,spacing:2,children:[(0,Y.jsx)(z,{item:!0,xs:12,sx:{display:`flex`},children:(0,Y.jsx)(Gv,{style:{margin:`0 auto`},ref:n,image:d??``,width:120,height:120,border:8,color:[200,200,200,.6],scale:T(h),rotate:v,position:b,onPositionChange:x})}),(0,Y.jsx)(z,{item:!0,xs:12,children:(0,Y.jsxs)(z,{container:!0,spacing:2,children:[(0,Y.jsx)(z,{item:!0,children:(0,Y.jsx)(Nv,{})}),(0,Y.jsx)(z,{item:!0,xs:!0,children:(0,Y.jsx)(qa,{min:0,max:2,step:.01,scale:T,color:`secondary`,valueLabelDisplay:`auto`,valueLabelFormat:e=>`${Math.round(e*100)}%`,value:h,onChange:(e,t)=>
44_(typeof t==`number`?t:t[0])})}),(0,Y.jsx)(z,{item:!0,children:(0,Y.jsx)(Mv,{})})]})}),(0,Y.jsx)(z,{item:!0,xs:12,sx:{display:`flex`},children:(0,Y.jsxs)(St,{direction:`row`,spacing:2,sx:{margin:`0 auto`},children:[(0,Y.jsx)(we,{onClick:()=>y(v-90),title:`Rotate image counter-clockwise`,children:(0,Y.jsx)(Av,{})}),(0,Y.jsx)(we,{onClick:()=>y(v+90),title:`Rotate image clockwise`,children:(0,Y.jsx)(jv,{})})]})})]})}),(0,Y.jsxs)(ze,{children:[(0,Y.jsx)(g,{onClick:()=>m(!1),children:`Cancel`}),(0,Y.jsx)(g,{variant:`contained`,color:`secondary`,autoFocus:!0,onClick:w,children:`Apply logo`})]})]})]}):null]})},Jv=P(`span`)(({theme:e})=>({flexShrink:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`1em`,height:`1em`,borderRadius:`50%`,backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText})),Yv=({title:e,sx:t})=>(0,Y.jsx)(Jv,{title:e,sx:t,children:(0,Y.jsx)(nv,{sx:{fontSize:`0.65em`}})}),Xv=e=>(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`,flexWrap:`wrap`,mb:`1.875rem`},children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.75rem`,minWidth:0},children:[(0,Y.jsx)(u,{component:`h2`,noWrap:!0,sx:{fontFamily:Rt,fontSize:`1.75rem`,fontWeight:800,letterSpacing:`-0.02em`,minWidth:0},children:e.namespace.name}),e.namespace.verified?(0,Y.jsx)(Yv,{title:`Verified namespace`,sx:{fontSize:`1.1875rem`}}):null]}),(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.5625rem`,flexWrap:`wrap`},children:[e.headerActions,(0,Y.jsx)(g,{variant:`outlined`,component:R,to:G([ic.ROOT,e.namespace.name]),target:`_blank`,rel:`noopener`,startIcon:(0,Y.jsx)(pn,{}),children:`View public page`})]})]}),e.namespace.verified?null:(0,Y.jsxs)(Cn,{namespace:e.namespace.name,showAction:e.showClaimAction,sx:{mb:`1.875rem`},children:[`Claiming`,` `,(0,Y.jsx)(u,{component:`code`,sx:{fontFamily:Rt,fontSize:`inherit`},children:e.namespace.name}),` `,`proves you own it. Until then extensions published here can stay inactive.`]}),(0,Y.jsxs)(ov,{sidebar:(0,Y.jsx)(qv,{namespace:e.namespace}),children:[e.namespace.detailsUrl?(0,Y.jsx)(s,{sx:{mb:`2.375rem`},children:(0,Y.jsx)(kv,{namespace:e.namespace})}):null,e.namespace.membersUrl?(0,Y.jsx)(s,{sx:{mb:`2.375rem`},children:(0,Y.jsx)(mv,{setLoadingState:e.setLoadingState,namespace:e.namespace})}):null,(0,Y.jsx)(bn,{namespace:e.namespace}),(0,Y.jsx)(cv,{namespace:e.namespace,routePrefix:e.extensionRoutePrefix,fetchExtension:e.fetchExtension})]})]}),Zv=P(C)(({theme:e})=>({...zt(e),width:`100%`,display:`flex`,alignItems:`center`,gap:`0.8125rem`,textAlign:`left`,padding:`0.875rem 1rem`,marginBottom:`0.625rem`,fontFamily:`inherit`,...Kt(e),"@media (hover: hover)":{"&:hover":{borderColor:e.palette.secondary.main}}})),Qv=({selectedName:e})=>{let{pageSettings:t,service:n,user:r}=(0,K.useContext)(I),i=Ee(),a=De(i.breakpoints.down(`md`)),o=Ge(),c=an(Os()),l=As(),[d,f]=(0,K.useState)(!1),[p,m]=(0,K.useState)(!1),h=c.data??[],_=c.isLoading||p,v=t.urls.namespaceAccessInfo,y=(0,K.useMemo)(()=>({fixSelf:!0,filterUsers:e=>e.provider!==r?.provider||e.loginName!==r?.loginName}),[r]),b=e=>{o(G([Es.NAMESPACES,e.name]))},x=e=>(0,Y.jsx)(lv.Provider,{value:y,children:(0,Y.jsx)(Xv,{namespace:e,setLoadingState:m,extensionRoutePrefix:Es.EXTENSIONS,showClaimAction:!0,fetchExtension:(t,r)=>n.getExtension(t,e.name,r.name)})}),S=()=>(0,Y.jsxs)(s,{children:[h.map(e=>{let t=Object.keys(e.extensions).length;return(0,Y.jsxs)(Zv,{onClick:()=>b(e),children:[(0,Y.jsxs)(s,{sx:{flex:1,minWidth:0},children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.4375rem`},children:[(0,Y.jsx)(u,{component:`span`,noWrap:!0,sx:{fontFamily:Rt,fontSize:`0.9375rem`,fontWeight:700,minWidth:0},children:e.name}),e.verified?null:(0,Y.jsx)(Sc,{titleAccess:`Not verified`,sx:{fontSize:`0.875rem`,color:`warningAccent`,flexShrink:0}})]}),(0,Y.jsx)(u,{sx:{fontSize:`0.78125rem`,color:`text.disabled`,mt:`0.1875rem`},children:t===1?`1 extension`:`${t} extensions`})]}),(0,Y.jsx)(xt,{sx:{fontSize:`1.125rem`,color:`text.disabled`,flexShrink:0}})]},e.name)}),(0,Y.jsx)(g,{variant:`outlined`,startIcon:(0,Y.jsx)(en,{}),onClick:()=>f(!0),children:`Create namespace`})]});return(0,Y.jsxs)(s,{children:[(0,Y.jsx)(Re,{loading:_}),(()=>{if(h.length===0)return _?null:(0,Y.jsxs)(s,{children:[(0,Y.jsxs)(u,{variant:`body1`,sx:{mb:`1rem`},children:[`No namespaces available. Read`,` `,(0,Y.jsx)(U,{color:`secondary`,href:v,target:`_blank`,children:`here`}),` `,`about claiming namespaces.`]}),(0,Y.jsx)(g,{variant:`outlined`,startIcon:(0,Y.jsx)(en,{}),onClick:()=>f(!0),children:`Create namespace`})]});if(a&&e==null)return S();let t=h.find(t=>t.name===e)??h[0];return(0,Y.jsxs)(s,{children:[a?(0,Y.jsx)(Nt,{disableRipple:!0,onClick:()=>o(Es.NAMESPACES),startIcon:(0,Y.jsx)(oc,{sx:{fontSize:`0.9375rem`}}),sx:{mb:`1.125rem`},children:`All namespaces`}):null,x(t)]})})(),(0,Y.jsx)(C_,{open:d,onClose:()=>f(!1),namespaceCreated:l})]})},$v=()=>{let{data:e,isLoading:t}=an(ws());return(0,Y.jsxs)(s,{children:[(0,Y.jsx)(J_,{title:`Extensions`,actions:(0,Y.jsx)(g,{variant:`outlined`,component:R,to:ac.ROOT,startIcon:(0,Y.jsx)(sc,{sx:{fontSize:`0.9375rem`}}),children:`Publish extension`})}),(0,Y.jsx)(Re,{loading:t}),e&&e.length>0?(0,Y.jsx)(Wt,{children:e.map(e=>(0,Y.jsx)(Cc,{extension:e,routePrefix:Es.EXTENSIONS},`${e.namespace}.${e.name}-${e.version}`))}):t?null:(0,Y.jsx)(jn,{children:`You haven't published any extensions yet.`})]})},ey=[],ty=e=>{let{service:t}=(0,K.useContext)(I),[n,r]=(0,K.useState)(Je),{data:i,isFetching:a,error:o}=E({queryKey:[`usage-stats`,e??null,n.toMillis()],queryFn:({signal:r})=>t.getUsageStats(he(r),e,n.toJSDate()),enabled:!!e});return{usageStats:i?.stats??ey,dailyP95:i?.dailyP95,loading:a,error:o?Gn(o):null,
44startDate:n,setStartDate:r}},ny={elevation:1,sx:{p:3,mb:3}},ry=({customer:e,headerAction:t})=>{let n=e.tier;return(0,Y.jsxs)(S,{...ny,children:[(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,mb:1},children:[(0,Y.jsx)(u,{variant:`h6`,children:`General Information`}),t&&(0,Y.jsx)(s,{sx:{ml:`auto`},children:t})]}),(0,Y.jsx)(Tn,{sx:{mb:2}}),(0,Y.jsxs)(z,{container:!0,spacing:2,children:[(0,Y.jsxs)(z,{item:!0,xs:12,sm:6,md:4,children:[(0,Y.jsx)(u,{variant:`subtitle2`,color:`text.secondary`,children:`Name`}),(0,Y.jsx)(u,{variant:`body1`,children:e.name})]}),(0,Y.jsxs)(z,{item:!0,xs:12,sm:6,md:4,children:[(0,Y.jsx)(u,{variant:`subtitle2`,color:`text.secondary`,children:`State`}),(0,Y.jsx)(s,{sx:{mt:.5},children:(0,Y.jsx)(Vn,{label:e.state,size:`small`,color:`secondary`})})]}),n?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(z,{item:!0,xs:12,sm:6,md:4,children:[(0,Y.jsx)(u,{variant:`subtitle2`,color:`text.secondary`,children:`Tier`}),(0,Y.jsx)(s,{sx:{mt:.5},children:(0,Y.jsx)(Vn,{label:n.name,size:`small`})})]}),(0,Y.jsxs)(z,{item:!0,xs:12,sm:6,md:4,children:[(0,Y.jsx)(u,{variant:`subtitle2`,color:`text.secondary`,children:`Tier Type`}),(0,Y.jsx)(u,{variant:`body2`,children:n.tierType})]}),(0,Y.jsxs)(z,{item:!0,xs:12,sm:6,md:4,children:[(0,Y.jsx)(u,{variant:`subtitle2`,color:`text.secondary`,children:`Capacity`}),(0,Y.jsxs)(u,{variant:`body2`,children:[n.capacity,` requests / `,n.duration,`s`]})]}),(0,Y.jsxs)(z,{item:!0,xs:12,sm:6,md:4,children:[(0,Y.jsx)(u,{variant:`subtitle2`,color:`text.secondary`,children:`Refill Strategy`}),(0,Y.jsx)(u,{variant:`body2`,children:n.refillStrategy})]}),n.description&&(0,Y.jsxs)(z,{item:!0,xs:12,children:[(0,Y.jsx)(u,{variant:`subtitle2`,color:`text.secondary`,children:`Tier Description`}),(0,Y.jsx)(u,{variant:`body2`,children:n.description})]})]}):(0,Y.jsxs)(z,{item:!0,xs:12,sm:6,md:4,children:[(0,Y.jsx)(u,{variant:`subtitle2`,color:`text.secondary`,children:`Tier`}),(0,Y.jsx)(u,{variant:`body2`,color:`text.secondary`,children:`No tier assigned`})]}),(0,Y.jsxs)(z,{item:!0,xs:12,children:[(0,Y.jsx)(u,{variant:`subtitle2`,color:`text.secondary`,children:`CIDR Blocks`}),e.cidrBlocks.length>0?(0,Y.jsx)(St,{direction:`row`,spacing:.5,sx:{mt:.5},flexWrap:`wrap`,useFlexGap:!0,children:e.cidrBlocks.map(e=>(0,Y.jsx)(Vn,{label:e,size:`small`,variant:`outlined`},e))}):(0,Y.jsx)(u,{variant:`body2`,color:`text.secondary`,children:`None configured`})]})]})]})},iy={elevation:1,sx:{p:3,mb:3}},ay=({usageStats:e,dailyP95:t,customer:n,startDate:r,onStartDateChange:i,compact:a})=>(0,Y.jsxs)(S,{...iy,children:[(0,Y.jsx)(u,{variant:`h6`,gutterBottom:!0,children:`Usage Statistics`}),(0,Y.jsx)(Tn,{sx:{mb:2}}),(0,Y.jsx)(Ze,{usageStats:e,dailyP95:t,customer:n,startDate:r,onStartDateChange:i,embedded:!0,compact:a})]}),oy=({customer:e})=>{let{usageStats:t,dailyP95:n,startDate:r,setStartDate:i}=ty(e.name);return(0,Y.jsxs)(s,{sx:{minWidth:0},children:[(0,Y.jsx)(u,{component:`h2`,sx:{fontSize:`1.1875rem`,fontWeight:700,letterSpacing:`-0.01em`,mb:`1rem`},children:e.name}),(0,Y.jsx)(ay,{usageStats:t,dailyP95:n,customer:e,startDate:r,onStartDateChange:i,compact:!0})]})},sy=P(C,{shouldForwardProp:e=>e!==`active`})(({theme:e,active:t})=>({...Xt(e),backgroundColor:e.palette.surface2,fontFamily:`inherit`,...t&&{borderColor:He(e.palette.secondary.main,.35),backgroundColor:e.palette.accentSoft,color:e.palette.secondary.light,fontWeight:700},...Kt(e),...t?{}:Gt(e)})),cy=()=>{let e=an(w_()),[t,n]=(0,K.useState)(),r=e.data??[],i=e.isLoading,a=r.find(e=>e.name===t)??r[0];return(0,Y.jsxs)(s,{children:[(0,Y.jsx)(J_,{title:`Rate Limiting`,description:`Usage statistics and rate limits for the customer groups you belong to.`}),(0,Y.jsx)(Re,{loading:i}),r.length>0&&a?(0,Y.jsxs)(s,{children:[r.length>1?(0,Y.jsx)(s,{sx:{display:`flex`,flexWrap:`wrap`,gap:`0.5rem`,mb:`1.375rem`},children:r.map(e=>(0,Y.jsx)(sy,{active:e===a,onClick:()=>n(e.name),children:e.name},`cust-`+e.name))}):null,(0,Y.jsx)(oy,{customer:a})]}):i?null:(0,Y.jsx)(jn,{children:`You are not a member of any rate limiting customer group.`})]})},ly=({extension:e,actions:t})=>{let n=G([qt.ROOT,e.namespace,e.name]);return(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`flex-start`,gap:`1.25rem`,flexWrap:`wrap`,pb:`1.5rem`,mb:`1.75rem`,borderBottom:`1px solid`,borderColor:`divi
44der`},children:[(0,Y.jsx)(s,{sx:{flexShrink:0,width:`4rem`,height:`4rem`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,Y.jsx)(Mn,{extension:e,sx:{width:`4rem`,maxHeight:`4rem`,objectFit:`contain`}})}),(0,Y.jsxs)(s,{sx:{flex:1,minWidth:`12rem`},children:[(0,Y.jsx)(u,{component:`h1`,noWrap:!0,sx:{fontSize:`1.625rem`,fontWeight:800,letterSpacing:`-0.02em`,mb:`0.375rem`},children:e.displayName??e.name}),(0,Y.jsxs)(u,{component:`code`,sx:{fontFamily:Rt,fontSize:`0.8125rem`,color:`text.disabled`},children:[e.namespace,`.`,e.name]}),e.description?(0,Y.jsx)(u,{sx:{fontSize:`0.84375rem`,color:`text.secondary`,lineHeight:1.5,mt:`0.5rem`,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.description}):null]}),(0,Y.jsxs)(St,{direction:`row`,spacing:2,sx:{flexShrink:0},children:[t,e.active!==!1&&!e.removed?(0,Y.jsx)(g,{variant:`outlined`,component:R,to:n,target:`_blank`,rel:`noopener`,startIcon:(0,Y.jsx)(pn,{}),children:`View public page`}):null]})]})},uy=w((0,Y.jsx)(`path`,{d:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z`}),`DeleteForever`),dy=20,fy=P(s)(({theme:e})=>({...zt(e),overflow:`hidden`})),py=P(s)(({theme:e})=>({display:`flex`,alignItems:`center`,gap:`0.5625rem`,height:`2.375rem`,padding:`0 0.75rem`,backgroundColor:e.palette.surface2,border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadius,transition:`border-color 0.15s, box-shadow 0.15s`,"&:focus-within":Pn(e)})),my=P(s)(({theme:e})=>({display:`grid`,gap:`0.75rem`,alignItems:`center`,padding:`0.375rem 1.125rem`,borderBottom:`1px solid ${e.palette.border2}`})),hy=P(Ut)({fontSize:`0.5625rem`}),gy=P(hy)(({theme:e})=>({backgroundColor:He(e.palette.error.main,.12),color:e.palette.error.main})),_y=P(we)(({theme:e})=>({width:`1.875rem`,height:`1.875rem`,backgroundColor:e.palette.surface2,border:`1px solid ${e.palette.error.main}`,color:e.palette.error.main,transition:`background-color 0.15s`,"&:hover":{backgroundColor:e.palette.error.main,color:e.palette.common.white}})),vy=P(we)(({theme:e})=>({width:`2rem`,height:`2rem`,borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.paper,color:e.palette.text.secondary})),yy=(e,t)=>{let n=Math.max(1,Math.ceil(e.length/dy)),r=Math.min(t,n-1);return{pageCount:n,safePage:r,pagedVersions:e.slice(r*dy,(r+1)*dy),hasPrevPage:r>0,hasNextPage:r<n-1,from:e.length===0?0:r*dy+1,to:Math.min(e.length,(r+1)*dy)}},by=e=>{if(e.canDelete===!1)return`Only the publisher or a namespace owner can delete this version`;if(e.targetPlatforms.length>0&&e.targetPlatforms.every(e=>e.removed))return`Version already removed`},xy=(e,t)=>t?`error.main`:e?`secondary.main`:`text.disabled`,Sy=({index:e,rowCount:t,hasPrevPage:n,hasNextPage:r,color:i})=>{let a=e===0,o=e===t-1,c=a?n?`-0.625rem`:`50%`:`-0.875rem`,l=o?r?`-0.625rem`:`50%`:`-0.875rem`,u=o&&r?`to bottom`:a&&n?`to top`:void 0;return(0,Y.jsxs)(s,{component:`span`,sx:{position:`relative`,alignSelf:`stretch`,minHeight:`1.875rem`},children:[(0,Y.jsx)(s,{component:`span`,sx:e=>({position:`absolute`,left:`50%`,transform:`translateX(-50%)`,top:c,bottom:l,width:`2px`,background:u?`linear-gradient(${u}, ${e.palette.divider} 40%, transparent)`:e.palette.divider})}),(0,Y.jsx)(s,{component:`span`,sx:{position:`absolute`,left:`50%`,top:`50%`,transform:`translate(-50%, -50%)`,zIndex:1,width:`0.625rem`,height:`0.625rem`,borderRadius:`50%`,bgcolor:i}})]})},Cy=({versions:e,latestVersion:t,rejected:n,page:r,onPageChange:i,onDeleteVersion:a,onPurgeVersion:o})=>{let[c,l]=(0,K.useState)(``),d=e=>{l(e.target.value),i(0)},f=e.filter(e=>!c.trim()||e.version.includes(c.trim())),{pageCount:p,safePage:m,pagedVersions:h,hasPrevPage:g,hasNextPage:_,from:v,to:y}=yy(f,r),b=o?`1.875rem 1.5fr 1fr 1.875rem 1.875rem`:`1.875rem 1.5fr 1fr 1.875rem`;return(0,Y.jsxs)(fy,{children:[(0,Y.jsx)(s,{sx:{p:`0.75rem 0.875rem`,borderBottom:`1px solid`,borderColor:`border2`},children:(0,Y.jsxs)(py,{children:[(0,Y.jsx)(Ve,{sx:{fontSize:`0.9375rem`,color:`text.disabled`,flexShrink:0}}),(0,Y.jsx)($e,{value:c,onChange:d,placeholder:`filter versions⦠e.g. 1.3`,inputProps:{"aria-label":`Filter versions`},sx:{flex:1,fontFamily:Rt,fontSize:`0.84375rem`}})]})}),(0,Y.jsxs)(my,{sx:{gridTemplateColumns:b,p:`0.6875rem 1.125rem`,bgcolor:`surface2`,borderBottomColor:`divi
44der`,fontSize:`0.6875rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.05em`,color:`text.disabled`},children:[(0,Y.jsx)(`span`,{}),(0,Y.jsx)(`span`,{children:`Version`}),(0,Y.jsx)(`span`,{children:`Target platforms`}),(0,Y.jsx)(`span`,{}),o?(0,Y.jsx)(`span`,{}):null]}),h.map((e,r)=>{let i=e.version===t,c=e.version.includes(`-`),l=by(e),d=e.targetPlatforms.length>0&&e.targetPlatforms.every(e=>e.removed);return(0,Y.jsxs)(my,{sx:{gridTemplateColumns:b},children:[(0,Y.jsx)(Sy,{index:r,rowCount:h.length,hasPrevPage:g,hasNextPage:_,color:xy(i,d)}),(0,Y.jsxs)(s,{component:`span`,sx:{display:`flex`,alignItems:`center`,gap:`0.5rem`,minWidth:0},children:[(0,Y.jsx)(u,{component:`code`,noWrap:!0,sx:{fontFamily:Rt,fontSize:`0.8125rem`,fontWeight:600,color:d?`error.main`:`inherit`,textDecoration:d?`line-through`:`none`},children:e.version}),d?(0,Y.jsx)(gy,{children:`Removed`}):n?(0,Y.jsx)(gy,{children:`Rejected`}):i?(0,Y.jsx)(hy,{accent:!0,children:`Latest`}):c?(0,Y.jsx)(hy,{children:`Pre-release`}):null]}),(0,Y.jsx)(u,{component:`span`,sx:{fontSize:`0.78125rem`,color:`text.secondary`},children:e.targetPlatforms.map((t,n)=>(0,Y.jsxs)(u,{component:`span`,sx:{fontSize:`inherit`},children:[(0,Y.jsx)(u,{component:`span`,title:t.removed?`Removed`:t.active?void 0:`Inactive`,sx:{fontSize:`inherit`,color:t.removed?`text.disabled`:`inherit`,textDecoration:t.active?`none`:`line-through`},children:t.targetPlatform}),n<e.targetPlatforms.length-1?`, `:``]},t.targetPlatform))}),(0,Y.jsx)(ln,{title:l??`Delete this version permanently`,"aria-label":`Delete version ${e.version}`,disabled:l!=null,onClick:()=>a(e),sx:{justifySelf:`end`}}),o?(0,Y.jsx)(_y,{title:`Purge version permanently`,"aria-label":`Purge version ${e.version}`,onClick:()=>o(e),sx:{justifySelf:`end`},children:(0,Y.jsx)(uy,{sx:{fontSize:`0.9375rem`}})}):null]},e.version)}),f.length===0?(0,Y.jsx)(u,{sx:{p:`1.625rem 1.125rem`,textAlign:`center`,fontSize:`0.84375rem`,color:`text.disabled`},children:e.length===0?`No version information available.`:`No versions match that filter.`}):null,p>1?(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,p:`0.6875rem 1.125rem`,bgcolor:`surface2`},children:[(0,Y.jsxs)(u,{sx:{fontSize:`0.78125rem`,color:`text.disabled`},children:[`Showing `,v,`â`,y,` of `,f.length,` versions`]}),(0,Y.jsxs)(s,{sx:{display:`flex`,alignItems:`center`,gap:`0.375rem`},children:[(0,Y.jsx)(vy,{"aria-label":`Previous page`,disabled:!g,onClick:()=>i(m-1),children:(0,Y.jsx)(wt,{sx:{fontSize:`0.9375rem`}})}),(0,Y.jsxs)(u,{sx:{fontSize:`0.78125rem`,fontWeight:600,color:`text.secondary`,px:`0.375rem`},children:[m+1,` / `,p]}),(0,Y.jsx)(vy,{"aria-label":`Next page`,disabled:!_,onClick:()=>i(m+1),children:(0,Y.jsx)(xt,{sx:{fontSize:`0.9375rem`}})})]})]}):null]})},wy=e=>e?.status===409,Ty=e=>[{targetPlatform:`*`,version:`*`,checked:!0},...e.map(e=>({targetPlatform:e,version:`*`,checked:!0}))],Ey=(e,t)=>{let{name:n,checked:r}=e.target;if(n===`*`)return t.map(e=>({...e,checked:r}));let i=t.map(e=>e.targetPlatform===n?{...e,checked:r}:e),a=i.filter(e=>e.targetPlatform!==`*`).every(e=>e.checked);return i.map(e=>e.targetPlatform===`*`?{...e,checked:a}:e)},Dy=e=>{let{handleError:t}=(0,K.useContext)(I),[n,r]=(0,K.useState)([]),[i,a]=(0,K.useState)(!1),o=(e.mode??`delete`)===`purge`;(0,K.useEffect)(()=>{let t=e.version.targetPlatforms.filter(e=>o||!e.removed).map(e=>e.targetPlatform);r(Ty(t))},[e.version,o]);let c=e=>{r(t=>Ey(e,t))},l=n.filter(e=>e.targetPlatform!==`*`&&e.checked),u=async()=>{try{a(!0),await e.onRemove(l.map(({targetPlatform:t})=>({version:e.version.version,targetPlatform:t}))),e.onDeleted(),e.onClose()}catch(n){wy(n)?t(n,{onClose:()=>{e.onDeleted(),e.onClose()}}):t(n)}finally{a(!1)}},d=n.find(e=>e.targetPlatform===`*`),f=n.filter(e=>e.targetPlatform!==`*`);return(0,Y.jsxs)(Be,{open:e.open,onClose:e.onClose,maxWidth:`xs`,fullWidth:!0,children:[(0,Y.jsxs)(on,{children:[o?`Purge`:`Delete`,` version `,e.version.version,` of`,` `,e.extension.displayName??e.extension.name]}),(0,Y.jsxs)(Ie,{children:[(0,Y.jsx)(vn,{sx:{mb:2},children:o?`Purging permanently removes the selected version(s) from the database and storage, freeing the version identity so it can be published again. This cannot be undone.`:`The selected version(s) will be removed and their files deleted. Extension ver
44sions are immutable, so a removed version stays permanently reserved and can never be republished.`}),(0,Y.jsxs)(mn,{children:[d&&(0,Y.jsx)(nn,{control:(0,Y.jsx)(kn,{checked:d.checked,onChange:c,name:`*`}),label:`All Targets`}),f.map(e=>(0,Y.jsx)(nn,{sx:{pl:4},control:(0,Y.jsx)(kn,{checked:e.checked,onChange:c,name:e.targetPlatform}),label:Yn(e.targetPlatform)||e.targetPlatform},e.targetPlatform))]})]}),(0,Y.jsxs)(ze,{children:[(0,Y.jsx)(g,{onClick:e.onClose,children:`Cancel`}),(0,Y.jsxs)(s,{sx:{ml:1,position:`relative`,display:`inline-flex`},children:[(0,Y.jsx)(g,{variant:`contained`,color:o?`error`:`secondary`,disabled:l.length===0||i,onClick:u,children:o?`Purge`:`Remove`}),i&&(0,Y.jsx)(Hn,{size:24,sx:{position:`absolute`,top:`50%`,left:`50%`,mt:`-12px`,ml:`-12px`}})]})]})]})},Oy=e=>{let{handleError:t}=(0,K.useContext)(I),[n,r]=(0,K.useState)(!1),i=(e.mode??`delete`)===`purge`;return(0,Y.jsxs)(Be,{open:e.open,onClose:e.onClose,maxWidth:`xs`,fullWidth:!0,children:[(0,Y.jsxs)(on,{children:[i?`Purge`:`Delete`,` all versions of `,e.extension.displayName??e.extension.name,`?`]}),(0,Y.jsx)(Ie,{children:(0,Y.jsx)(vn,{children:i?`This permanently removes ${e.versions.length} version${e.versions.length===1?``:`s`} of this extension from the database and storage across all target platforms, freeing the version numbers so they can be published again. This cannot be undone.`:`This removes ${e.versions.length} version${e.versions.length===1?``:`s`} of this extension across all target platforms and deletes their files. Extension ver
44sions are immutable, so removed versions stay permanently reserved and can never be republished. This cannot be undone.`})}),(0,Y.jsxs)(ze,{children:[(0,Y.jsx)(g,{onClick:e.onClose,children:`Cancel`}),(0,Y.jsx)(er,{sx:{ml:1},color:`error`,working:n,onClick:async()=>{try{r(!0);let t=e.versions.flatMap(e=>e.targetPlatforms.filter(e=>i||!e.removed).map(({targetPlatform:t})=>({version:e.version,targetPlatform:t})));await e.onRemove(t),e.onDeleted(),e.onClose()}catch(n){wy(n)?t(n,{onClose:()=>{e.onDeleted(),e.onClose()}}):t(n)}finally{r(!1)}},children:i?`Purge All Versions`:`Delete All Versions`})]})]})},ky=P(On)(({theme:e})=>({display:`grid`,gridTemplateColumns:`1fr`,marginBottom:`1.75rem`,[e.breakpoints.up(`lg`)]:{gridTemplateColumns:`repeat(3, 1fr)`,"& > *":{borderBottom:0},"& > *:nth-of-type(-n+3)":{borderBottom:`1px solid ${e.palette.border2}`},"& > *:not(:nth-of-type(3n))":{borderRight:`1px solid ${e.palette.border2}`}}})),Ay=P(s)(({theme:e})=>({border:`1px solid ${He(e.palette.error.main,.4)}`,borderRadius:e.shape.borderRadiusCard,overflow:`hidden`,"& > *":{borderBottom:`1px solid ${He(e.palette.error.main,.25)}`},"& > *:last-child":{borderBottom:0}})),jy=P(s)({display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`,flexWrap:`wrap`,padding:`1rem 1.25rem`}),My=e=>{let{extension:t,actions:n,onRemoveVersion:r,onVersionDeleted:i,onPurgeVersion:a}=e,o=!!a,[c,l]=(0,K.useState)(0),[d,f]=(0,K.useState)(null),[p,m]=(0,K.useState)(null),[h,_]=(0,K.useState)(!1),[v,y]=(0,K.useState)(!1),{data:b}=dn();(0,K.useEffect)(()=>
44{l(0)},[t]);let x=(t.allTargetPlatformVersions??[]).filter(e=>!Qt.includes(e.version)),S=o?x:x.filter(e=>e.canDelete!==!1),C=S.some(e=>e.targetPlatforms.some(e=>!e.removed)),w=rn(t)??{label:`Public`,color:`success.main`},ee=t.active!==!1&&!t.removed;return(0,Y.jsxs)(s,{children:[(0,Y.jsx)(ly,{extension:t,actions:n}),t.namespaceOwnershipConflict&&(0,Y.jsxs)(Cn,{namespace:t.namespace,extension:t,showAction:!o,sx:{mb:`1.75rem`},children:[(0,Y.jsx)(u,{component:`code`,sx:{fontFamily:`'Geist Mono', monospace`,fontSize:`inherit`},children:t.namespace}),` `,`already exists in another gallery, so this extension stays inactive until the namespace is claimed and ownership verified.`]}),(0,Y.jsx)(gn,{sx:{mb:`0.75rem`},children:`General`}),(0,Y.jsxs)(ky,{children:[(0,Y.jsx)(_n,{label:`Namespace`,mono:!0,noWrap:!0,children:t.namespace}),(0,Y.jsx)(_n,{label:`Latest version`,mono:!0,noWrap:!0,children:t.version}),(0,Y.jsx)(_n,{label:`Category`,noWrap:!0,children:t.categories?.join(`, `)||`â`}),(0,Y.jsx)(_n,{label:`License`,noWrap:!0,children:t.license??`â`}),(0,Y.jsx)(_n,{label:`Status`,noWrap:!0,children:(0,Y.jsxs)(s,{component:`span`,sx:{display:`inline-flex`,alignItems:`center`,gap:`0.375rem`},children:[(0,Y.jsx)(s,{component:`span`,sx:{width:`0.4375rem`,height:`0.4375rem`,borderRadius:`50%`,bgcolor:w.color,flexShrink:0}}),w.label]})}),(0,Y.jsx)(_n,{label:`Total downloads`,mono:!0,noWrap:!0,children:Jn(t.downloadCount??0)})]}),b?.enabled?(0,Y.jsx)(En,{namespace:t.namespace,extension:t.name}):null,(0,Y.jsxs)(s,{sx:{mb:`0.75rem`},children:[(0,Y.jsx)(gn,{sx:{mb:`0.25rem`},children:`Published versions`}),(0,Y.jsx)(u,{sx:{fontSize:`0.84375rem`,color:`text.disabled`},children:`Every version published to the registry. Deleting a version permanently removes its files from storage.`})]}),(0,Y.jsx)(Cy,{versions:x,latestVersion:ee?t.version:void 0,rejected:t.reviewStatus===`rejected`,page:c,onPageChange:l,onDeleteVersion:f,onPurgeVersion:o?m:void 0}),x.length>0&&(0,Y.jsxs)(s,{sx:{mt:`3.25rem`},children:[(0,Y.jsx)(u,{component:`h2`,sx:{fontSize:`1.1875rem`,fontWeight:800,letterSpacing:`-0.01em`,color:`error.main`,mb:`0.75rem`},children:`Danger Zone`}),(0,Y.jsxs)(Ay,{children:[(0,Y.jsxs)(jy,{children:[(0,Y.jsxs)(s,{sx:{minWidth:0},children:[(0,Y.jsx)(u,{sx:{fontSize:`0.90625rem`,fontWeight:700,mb:`0.125rem`},children:`Delete all versions`}),(0,Y.jsx)(u,{sx:{fontSize:`0.8125rem`,color:`text.disabled`},children:`Remove every published version of this extension. This cannot be undone.`})]}),(0,Y.jsx)(g,{variant:`outlined`,color:`error`,sx:{flexShrink:0},disabled:!C,onClick:()=>_(!0),children:`Delete all versions`})]}),o&&(0,Y.jsxs)(jy,{children:[(0,Y.jsxs)(s,{sx:{minWidth:0},children:[(0,Y.jsx)(u,{sx:{fontSize:`0.90625rem`,fontWeight:700,mb:`0.125rem`},children:`Purge all versions`}),(0,Y.jsx)(u,{sx:{fontSize:`0.8125rem`,color:`text.disabled`},children:`Erase every version, including already removed ones, so the extension can be published again.`})]}),(0,Y.jsx)(g,{variant:`contained`,color:`error`,sx:{flexShrink:0},onClick:()=>y(!0),children:`Purge all versions`})]})]})]}),d&&(0,Y.jsx)(Dy,{open:!0,onClose:()=>f(null),extension:t,version:d,onRemove:r,onDeleted:i}),p&&a&&(0,Y.jsx)(Dy,{open:!0,mode:`purge`,onClose:()=>m(null),extension:t,version:p,onRemove:a,onDeleted:i}),h&&(0,Y.jsx)(Oy,{open:!0,onClose:()=>_(!1),extension:t,versions:S,onRemove:r,onDeleted:i}),v&&a&&(0,Y.jsx)(Oy,{open:!0,mode:`purge`,onClose:()=>y(!1),extension:t,versions:x,onRemove:a,onDeleted:i})]})},Ny=e=>{let{service:t}=(0,K.useContext)(I);return E({queryKey:[`user`,`extension`,e.namespace,e.extension],queryFn:({signal:n})=>t.getExtension(he(n),e.namespace,e.extension),...se})},Py=()=>{let{service:e}=(0,K.useContext)(I);return qn({mutationFn:t=>e.deleteExtensions(t)})},Fy=e=>{let{handleError:t}=(0,K.useContext)(I),n=Ge(),r=Ue().state??{},i=r.backTo??Es.EXTENSIONS,a=r.backLabel??`Back to your extensions`,{data:o,isFetching:c,error:l,refetch:u}=Ny({namespace:e.namespace,extension:e.extension}),{mutateAsync:d}=Py();return(0,K.useEffect)(()=>{l&&(t(l),l.status===404&&n(Es.EXTENSIONS))},[l,n,t]),c?(0,Y.jsx)(Re,{loading:!0}):o?(0,Y.jsxs)(s,{children:[(0,Y.jsx)(Nt,{disableRipple:!0,onClick:()=>n(i),startIcon:(0,Y.jsx)(oc,{sx:{fontSize:`0.9375rem`}}),sx:{mb:`1.375rem`},children:a}),(0,Y.jsx)(My,{extension:o,onRemoveVersion:e=>d({namespace:o.namespace,extension:o.name,targetPlatformVersions:e}),onVersionDeleted:u})]}):null},Iy=t({UserSettings:()=>Ly}),Ly=e=>{let{pageSettings:t,user:n,loginProviders:r}=(0,K.useContext)(I),{tab:i,namespace:a,extension:o}=We(),c=M_(),{data:l}=dn(),d=l?.enabled??!1;return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Qr,{children:(0,Y.jsxs)(`title`,{children:[`Settings â `,t.pageTitle]})}),e.userLoading?(0,Y.jsx)(Re,{loading:!0}):n?(0,Y.jsxs)(uc,{sx:{pt:{xs:0,md:`2.625rem`},display:`grid`,gridTemplateColumns:{xs:`minmax(0, 1fr)`,md:`14.75rem minmax(0, 1fr)`},gap:{xs:`1.5rem`,md:`2.5rem`},alignItems:`start`},children:[(0,Y.jsx)(L_,{}),(0,Y.jsxs)(s,{sx:{minWidth:0},children:[(0,Y.jsx)(B_,{}),(e=>{if(i==null&&a!=null&&o!=null)return(0,Y.jsx)(Fy,{namespace:a,extension:o});switch(c){case`profile`:return(0,Y.jsx)(sv,{user:e});case`tokens`:return(0,Y.jsx)(Z_,{});case`trusted-publishers`:return d?(0,Y.jsx)(tv,{}):null;case`namespaces`:return(0,Y.jsx)(Qv,{selectedName:a});case`extensions`:return(0,Y.jsx)($v,{});case`customers`:return(0,Y.jsx)(cy,{});default:return null}})(n)]})]}):r?(0,Y.jsxs)(uc,{children:[(0,Y.jsx)(u,{variant:`h4`,children:`Not Logged In`}),(0,Y.jsx)(s,{mt:2,children:(0,Y.jsxs)(u,{variant:`body1`,children:[`Please`,` `,(0,Y.jsx)(Lc,{loginProviders:r,renderButton:(e,t)=>(0,Y.jsx)(U,{color:`secondary`,href:e,onClick:t,children:`log in`})}),` `,`to access your account settings.`]})})]}):null]})},Ry=P(g,{shouldForwardProp:e=>e!==`dragging`&&e!==`over`})(({theme:e,dragging:t,over:n})=>({margin:`0 0.25rem`,padding:`0.5rem 1.125rem`,fontWeight:600,fontSize:`0.8125rem`,borderRadius:`${e.shape.borderRadius}px`,display:`inline-flex`,alignItems:`center`,gap:`0.4375rem`,outline:`2px dashed transparent`,outlineOffset:`-2px`,transition:`background-color 0.15s, outline-color 0.15s`,"&:hover":{backgroundColor:He(e.palette.secondary.main,.08)},...t&&{outlineColor:He(e.palette.secondary.main,n?1:.45),backgroundColor:He(e.palette.secondary.main,n?.16:.06)}})),zy=({sx:e,className:t})=>{let n=Ge(),{dragging:r,over:i,dropProps:a}=lc();return rc({key:`p`,label:`Publish`,order:3,callback:()=>n(ac.ROOT)}),(0,Y.jsx)(Ry,{variant:`text`,color:`secondary`,component:R,to:ac.ROOT,dragging:r,over:i,...a,sx:e,className:t,children:r?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(sc,{sx:{fontSize:`1rem`}}),`Drop to publish`]}):(0,Y.jsxs)(Y.Fragment,{children:[`Publish`,(0,Y.jsx)(Xs,{children:`p`})]})})},By=w((0,Y.jsx)(`path`,{d:`M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z`}),`ExpandMore`),Vy=w((0,Y.jsx)(`path`,{d:`M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z`}),`ArrowOutward`),Hy=w((0,Y.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z`}),`Info`),Uy=w((0,Y.jsx)(`path`,{d:`M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.
4468 1.96-1.59l.01-.03L16.4 5.5c0-.28-.22-.5-.5-.5M1 9l2 2c2.88-2.88 6.79-4.08 10.53-3.62l1.19-2.68C9.89 3.84 4.74 5.27 1 9m20 2 2-2c-1.64-1.64-3.55-2.82-5.59-3.57l-.53 2.82c1.5.62 2.9 1.53 4.12 2.75m-4 4 2-2c-.8-.8-1.7-1.42-2.66-1.89l-.55 2.92c.42.27.83.59 1.21.97M5 13l2 2c1.13-1.13 2.56-1.79 4.03-2l1.28-2.88c-2.63-.08-5.3.87-7.31 2.88`}),`NetworkCheck`),Wy=w((0,Y.jsx)(`path`,{d:`M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z`}),`Publish`),Gy=w([(0,Y.jsx)(`path`,{fillRule:`evenodd`,d:`M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87`},`0`),(0,Y.jsx)(`circle`,{cx:`9`,cy:`8`,r:`4`,fillRule:`evenodd`},`1`),(0,Y.jsx)(`path`,{fillRule:`evenodd`,d:`M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24m-6 1c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4`},`2`)],`PeopleAlt`),Ky=w((0,Y.jsx)(`path`,{d:`M8.4 18.2c.38.5.6 1.12.6 1.8 0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3c.44 0 .85.09 1.23.26l1.41-1.77c-.92-1.03-1.29-2.39-1.09-3.69l-2.03-.68c-.54.83-1.46 1.38-2.52 1.38-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3c0 .07 0 .14-.01.21l2.03.68c.64-1.21 1.82-2.09 3.22-2.32V5.91C9.96 5.57 9 4.4 9 3c0-1.66 1.34-3 3-3s3 1.34 3 3c0 1.4-.96 2.57-2.25 2.91v2.16c1.4.23 2.58 1.11 3.22 2.32L18 9.71V9.5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-1.06 0-1.98-.55-2.52-1.37l-2.03.68c.2 1.29-.16 2.65-1.09 3.69l1.41 1.77c.38-.18.79-.27 1.23-.27 1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.68.22-1.3.6-1.8l-1.41-1.77c-1.35.75-3.01.76-4.37 0z`}),`Hub`),qy=w((0,Y.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 3c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m7 13H5v-.23c0-.62.28-1.2.76-1.58C7.47 15.82 9.64 15 12 15s4.53.82 6.24 2.19c.48.38.76.97.76 1.58z`}),`AccountBox`),Jy=w((0,Y.jsx)(`path`,{d:`M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z`}),`Business`),Yy=w((0,Y.jsx)(`path`,{d:`M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z`}),`Security`),Xy=w((0,Y.jsx)(`path`,{d:`M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6`}),`Settings`),Zy=w([(0,Y.jsx)(`path`,{d:`M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6`},`0`),(0,Y.jsx)(`path`,{d:`M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12m0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17`},`1`)],`AdminPanelSettings`),Qy=w((0,Y.jsx)(`path`,{d:`m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z`}),`Logout`),$y=(0,K.forwardRef)(({children:e},t)=>
44{let[n,r]=(0,K.useState)(),i=(0,K.useContext)(I),a=(0,K.useRef)(new AbortController);(0,K.useEffect)(()=>(o(),()=>a.current.abort()),[]);let o=async()=>{try{let e=await i.service.getCsrfToken(a.current);V(e)||r(e.value)}catch(e){i.handleError(e)}};return(0,Y.jsxs)(`form`,{ref:t,method:`post`,action:i.service.getLogoutUrl(),style:{display:`contents`},children:[n?(0,Y.jsx)(`input`,{name:`_csrf`,type:`hidden`,value:n}):null,e]})});$y.displayName=`LogoutForm`;var eb={py:`0.5rem`,px:`0.625rem`,gap:`0.625rem`,color:`text.primary`,display:`flex`,alignItems:`center`},tb={fontSize:`1.0625rem`,color:`text.disabled`,flexShrink:0},nb=()=>{let[e,t]=(0,K.useState)(!1),n=(0,K.useCallback)(()=>t(!1),[]),r=(0,K.useMemo)(()=>{let e=({to:e,icon:t,children:r})=>(0,Y.jsxs)(H,{component:R,to:e,onClick:n,sx:{...eb,textDecoration:`none`},children:[(0,Y.jsx)(t,{sx:tb}),r]});return e.displayName=`UserMenuEntry`,e},[n]),i=(0,K.useContext)(I),{userMenuContent:a}=i.pageSettings.elements,o=(0,K.useRef)(null),c=(0,K.useRef)(null),l=i.user;if(!l)return null;let d=l.loginName.slice(0,2).toUpperCase();return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(we,{ref:o,title:`Logged in as ${l.loginName}`,"aria-label":`User menu`,onClick:()=>t(!0),sx:{p:`0.3125rem`},children:(0,Y.jsx)(qi,{src:l.avatarUrl,alt:l.loginName,sx:{width:32,height:32,bgcolor:`accentSoft`,color:`secondary.light`,fontSize:`0.75rem`,fontWeight:700,borderRadius:1},children:d})}),(0,Y.jsxs)(ft,{open:e,anchorEl:o.current,anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`},onClose:()=>t(!1),children:[(0,Y.jsxs)(s,{sx:{px:`0.875rem`,py:`0.875rem`,display:`flex`,alignItems:`center`,gap:`0.75rem`},children:[(0,Y.jsx)(qi,{src:l.avatarUrl,sx:{width:40,height:40,bgcolor:`accentSoft`,color:`secondary.light`,fontSize:`0.9375rem`,fontWeight:700,borderRadius:1,flexShrink:0},children:d}),(0,Y.jsxs)(s,{sx:{minWidth:0},children:[(0,Y.jsx)(u,{sx:{fontSize:`0.6875rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.07em`,color:`text.disabled`,lineHeight:1.3},children:`Logged in as`}),(0,Y.jsx)(u,{sx:{fontSize:`0.875rem`,fontWeight:700,lineHeight:1.3,color:`text.primary`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:(0,Y.jsx)(U,{href:l.homepage,target:`_blank`,onClick:()=>t(!1),children:l.loginName})})]})]}),(0,Y.jsxs)(H,{component:R,to:Es.PROFILE,onClick:()=>t(!1),sx:{...eb,textDecoration:`none`},children:[(0,Y.jsx)(Xy,{sx:tb}),`Settings`]}),a?(0,Y.jsx)(a,{close:n,MenuEntry:r}):null,l.role===`admin`&&(0,Y.jsxs)(H,{component:R,to:Us.MAIN,onClick:()=>t(!1),sx:{...eb,textDecoration:`none`},children:[(0,Y.jsx)(Zy,{sx:tb}),`Admin Dashboard`]}),(0,Y.jsx)(H,{onClick:()=>c.current?.submit(),sx:eb,children:(0,Y.jsxs)($y,{ref:c,children:[(0,Y.jsx)(Qy,{sx:tb}),`Log out`]})})]})]})},rb=w((0,Y.jsx)(`path`,{d:`M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2`}),`MoreVert`),ib={mr:1,width:`16px`,height:`16px`},ab=({children:e})=>(0,Y.jsx)(u,{variant:`body2`,color:`text.primary`,sx:{display:`flex`,alignItems:`center`,textTransform:`none`},children:e}),ob=()=>{let{user:e,pageSettings:t}=(0,K.useContext)(I),{userMenuContent:n}=t.elements,r=(0,K.useRef)(null),i=(0,K.useRef)(null),[a,o]=(0,K.useState)(!1),s=(0,K.useCallback)(()=>o(!1),[]),c=(0,K.useMemo)(()=>{let e=({to:e,icon:t,children:n})=>(0,Y.jsx)(H,{component:R,to:e,onClick:s,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(t,{sx:ib}),n]})});return e.displayName=`MobileUserMenuEntry`,e},[s]);return e?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(H,{ref:i,onClick:()=>o(!0),"aria-haspopup":`menu`,"aria-expanded":a,children:[(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(qi,{src:e.avatarUrl,alt:e.loginName,variant:`rounded`,sx:ib}),e.loginName]}),(0,Y.jsx)(rb,{fontSize:`small`,sx:{ml:`auto`,color:`text.secondary`}})]}),(0,Y.jsxs)(ft,{open:a,onClose:s,anchorEl:i.current,anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`right`},children:[(0,Y.jsx)(H,{component:U,href:e.homepage,onClick:s,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Nn,{sx:ib}),e.loginName]})}),(0,Y.jsx)(H,{component:R,to:Es.PROFILE,onClick:s,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Xy,{sx:ib}),`Settings`]})}),n?(0,Y.jsx)(n,{close:s,MenuEntry:c}):null,e.role===`admin`?(0,Y.jsx)(H,{component:R,to:Us.MAIN,onClick:s,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Zy,{sx:ib}),`Admin Dashboard`]})}):null,(0,Y.jsx)(H,{onClick:()=>r.current?.submit(),children:(0,Y.jsx)($y,{ref:r,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Qy,{sx:ib}),`Log Out`]})})})]})]}):null},sb=({theme:e})=>({margin:e.spacing(0,.5),padding:e.spacing(1,1.5),color:`inherit`,opacity:.78,textDecoration:`none`,fontSize:`0.875rem`,fontFamily:e.typography.fontFamily,fontWeight:500,letterSpacing:0,borderRadius:`${e.shape.borderRadius}px`,transition:`background 0.14s, opacity 0.14s`,"&:hover":{opacity:1,backgroundColor:`color-mix(in srgb, currentcolor 8%, transparent)`,textDecoration:`none`},...Kt(e)}),cb=P(U)(sb);P(R)(sb);var lb=({children:e})=>
44(0,Y.jsxs)(s,{component:`span`,sx:{display:`inline-flex`,alignItems:`center`,gap:`0.25rem`},children:[e,(0,Y.jsx)(Vy,{sx:{fontSize:`0.875rem`,opacity:.6}})]}),ub=()=>{let{user:e,loginProviders:t}=(0,K.useContext)(I);return(0,Y.jsxs)(Y.Fragment,{children:[t&&(e?(0,Y.jsx)(ob,{}):(0,Y.jsx)(Lc,{loginProviders:t,renderButton:(e,t)=>(0,Y.jsx)(H,{component:U,href:e,onClick:t,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(qy,{sx:ib}),`Log In`]})})})),t&&!location.pathname.startsWith(ac.ROOT)&&(0,Y.jsx)(H,{component:R,to:ac.ROOT,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Wy,{sx:ib}),`Publish`]})}),(0,Y.jsx)(H,{component:U,href:`https://managed.open-vsx.org/`,target:`_blank`,rel:`noopener`,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Jy,{sx:ib}),(0,Y.jsx)(lb,{children:`Commercial usage`})]})}),(0,Y.jsx)(H,{component:U,href:`https://researcher-recognition.open-vsx.org`,target:`_blank`,rel:`noopener`,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Yy,{sx:ib}),(0,Y.jsx)(lb,{children:`Report a vulnerability`})]})}),(0,Y.jsx)(H,{component:U,href:`https://www.eclipse.org/donate/openvsx/`,target:`_blank`,rel:`noopener`,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(pc,{sx:ib}),(0,Y.jsx)(lb,{children:`Sponsor`})]})}),(0,Y.jsx)(H,{component:U,href:`https://status.open-vsx.org/`,target:`_blank`,rel:`noopener`,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Uy,{sx:ib}),(0,Y.jsx)(lb,{children:`Status`})]})}),(0,Y.jsx)(H,{component:U,href:`https://github.com/EclipseFdn/open-vsx.org/wiki`,target:`_blank`,rel:`noopener`,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Jh,{sx:ib}),(0,Y.jsx)(lb,{children:`Documentation`})]})}),(0,Y.jsx)(H,{component:R,to:`/members`,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Gy,{sx:ib}),`Members`]})}),(0,Y.jsx)(H,{component:R,to:`/adopters`,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Ky,{sx:ib}),`Adopters`]})}),(0,Y.jsx)(H,{component:R,to:`/about`,children:(0,Y.jsxs)(ab,{children:[(0,Y.jsx)(Hy,{sx:ib}),`About`]})})]})},db=(0,K.forwardRef)(({label:e,onClose:t,children:n,...r},i)=>{let[a,o]=(0,K.useState)(!1),s=(0,K.useRef)(null),c=()=>o(!1),l=()=>{c(),t()},u=`${e.toLowerCase().replace(/\s+/g,`-`)}-submenu`;return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(H,{...r,ref:e=>{s.current=e,typeof i==`function`?i(e):i&&(i.current=e)},onClick:()=>o(!0),onKeyDown:e=>{(e.key===`ArrowRight`||e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o(!0))},"aria-haspopup":`menu`,"aria-expanded":a,"aria-controls":a?u:void 0,sx:{justifyContent:`space-between`,gap:3},children:[(0,Y.jsx)(ab,{children:e}),(0,Y.jsx)(xt,{fontSize:`small`,sx:{color:`text.secondary`,mr:`-13px`}})]}),(0,Y.jsx)(ft,{id:u,open:a,anchorEl:s.current,onClose:c,anchorOrigin:{vertical:`top`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`left`},MenuListProps:{onClick:l,onKeyDown:e=>{e.stopPropagation(),e.key===`ArrowLeft`||e.key===`Escape`?c():e.key===`Tab`&&(e.preventDefault(),l())}},children:n})]})});db.displayName=`SubMenuItem`;var fb=P(`button`)(({theme:e})=>({...sb({theme:e}),display:`inline-flex`,alignItems:`center`,gap:`0.25rem`,background:`none`,border:`none`,cursor:`pointer`})),pb=()=>{let{loginProviders:e,user:t}=(0,K.useContext)(I),[n,r]=(0,K.useState)(!1),i=(0,K.useRef)(null),a=()=>r(!1);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(cb,{href:`https://managed.open-vsx.org/`,target:`_blank`,rel:`noopener`,children:(0,Y.jsx)(lb,{children:`Commercial usage`})}),(0,Y.jsxs)(fb,{ref:i,onClick:()=>r(!0),"aria-haspopup":`menu`,"aria-expanded":n,"aria-controls":n?`resources-menu`:void 0,children:[`Resources`,(0,Y.jsx)(By,{fontSize:`small`})]}),(0,Y.jsxs)(ft,{id:`resources-menu`,open:n,anchorEl:i.current,onClose:a,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},children:[(0,Y.jsx)(H,{component:U,href:`https://researcher-recognition.open-vsx.org`,target:`_blank`,rel:`noopener`,onClick:a,children:(0,Y.jsx)(ab,{children:(0,Y.jsx)(lb,{children:`Report a vulnerability`})})}),(0,Y.jsx)(H,{component:U,href:`https://www.eclipse.org/donate/openvsx/`,target:`_blank`,rel:`noopener`,onClick:a,children:(0,Y.jsx)(ab,{children:(0,Y.jsx)(lb,{children:`Sponsor`})})}),(0,Y.jsx)(H,{component:U,href:`https://status.open-vsx.org/`,target:`_blank`,rel:`noopener`,onClick:a,children:(0,Y.jsx)(ab,{children:(0,Y.jsx)(lb,{children:`Status`})})}),(0,Y.jsx)(H,{component:U,href:`https://github.com/EclipseFdn/open-vsx.org/wiki`,target:`_blank`,rel:`noopener`,onClick:a,children:(0,Y.jsx)(ab,{children:(0,Y.jsx)(lb,{children:`Documentation`})})}),(0,Y.jsxs)(db,{label:`Working group`,onClose:a,children:[(0,Y.jsx)(H,{component:R,to:`/members`,children:(0,Y.jsx)(ab,{children:`Members`})}),(0,Y.jsx)(H,{component:R,to:`/adopters`,children:(0,Y.jsx)(ab,{children:`Adopters`})})]}),(0,Y.jsx)(H,{component:R,to:`/about`,onClick:a,children:(0,Y.jsx)(ab,{children:`About`})})]}),e&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(zy,{}),t?(0,Y.jsx)(nb,{}):(0,Y.jsx)(Lc,{loginProviders:e,renderButton:(e,t)=>e?(0,Y.jsx)(we,{href:e,color:`inherit`,title:`Log In`,"aria-label":`Log In`,children:(0,Y.jsx)(qy,{})}):(0,Y.jsx)(we,{onClick:t,color:`inherit`,title:`Log In`,"aria-label":`Log In`,children:(0,Y.jsx)(qy,{})})})]})]})},mb=e=>
44(0,Y.jsxs)(`svg`,{viewBox:`0 0 725.4 131`,style:{width:e.width,height:e.height},children:[(0,Y.jsx)(`path`,{d:`M30 44.2L52.6 5H7.3zM4.6 88.5h45.3L27.2 49.4zm51 0l22.6 39.2 22.6-39.2z`,fill:`#c160ef`}),(0,Y.jsx)(`path`,{d:`M52.6 5L30 44.2h45.2zM27.2 49.4l22.7 39.1 22.6-39.1zm51 0L55.6 88.5h45.2z`,fill:`#a60ee5`}),(0,Y.jsx)(`path`,{d:`M160.2 50.1c-.1 12.7-8.1 24.9-24.3 24.9-16.2 0-24.3-12.3-24.3-25 0-13 8.1-24.8 24.3-24.8 16.3-.1 24.4 11.8 24.3 24.9zm-44.9-.1c.1 10.9 7 21.5 20.7 21.5 13.8 0 20.7-10.6 20.7-21.5 0-11.2-6.9-21.4-20.7-21.4-13.9 0-20.8 10-20.7 21.4zm53.1 38.3V40.1h3.3v8.1c2.7-5.2 8.1-8.5 14.7-8.5 9.2.3 16.5 6.5 16.5 17.5 0 11.4-7.7 17.6-17.3 17.6-5.8 0-11.2-2.8-14.1-8.5v22h-3.1zm31.2-31.2c0-9.6-6.2-14.3-13.9-14.3-7.9 0-13.8 6-13.8 14.3s6 14.3 13.8 14.3c7.7.1 13.9-4.7 13.9-14.3zm9.8 0c0-10.2 7.7-17.6 17.3-17.6 9.6 0 18.1 5.9 16.8 19.1h-30.7c.7 8 6.8 12.6 13.8 12.6 4.5 0 9.7-1.8 12.3-5.2l2.4 1.9c-3.3 4.3-9.2 6.5-14.7 6.5-9.5.2-17.2-6.5-17.2-17.3zm31-1.4c-.1-8.4-5.6-13.1-13.8-13.1-7 0-13.1 4.8-13.8 13.1h27.6zm15.1-15.6v6.1c2.6-4.7 7.4-6.6 12.1-6.7 9.1 0 15.4 5.6 15.4 15v19.6h-3.4V54.5c0-7.7-4.8-11.8-12.1-11.8-7 .1-11.9 5.4-11.9 12.4V74h-3.4V40h3.3zm95.9-14.2l-19.8 48.4h-4l-19.8-48.4h4L329.6 70l17.8-44.1h4zm37.7 9.3c-3.5-5.6-9.2-6.5-14.6-6.5-5.6 0-14.6 2.1-14.6 9.8 0 6.1 6.6 7.6 14.7 9.1 9.3 1.8 18.9 3.4 18.9 13.8-.1 10.9-11 13.5-19.1 13.5-7.5 0-16.1-3.1-19.8-10.5l3.3-1.7c3 5.9 10.5 8.7 16.5 8.7s15.4-1.7 15.4-10.2c.1-7.2-7.9-8.8-15.8-10.3-8.8-1.7-17.8-3.5-17.8-12.4-.2-10.2 10.4-13.4 18.3-13.4 6.9 0 12.9 1.1 17.6 8.2l-3 1.9zm44.6-9.3h4v.1l-16.4 23.4L439 74v.1h-4.4l-15.6-22-15.6 22H399V74l17.7-24.7L400.4 26v-.1h4.1L419 46.5l14.7-20.6zm69.7 48.2h-4.9l-16.7-18.3h-13.2v18.3h-3.7V25.9h21.2c10.5 0 15.8 7.5 15.8 15 .1 7.9-5.1 14.7-15.6 14.7l17.1 18.5zm-34.8-21.8h17.1c8.4 0 12.1-4.8 12.2-11.5.1-5.6-3.8-11.5-11.8-11.5h-17.5v23zm38.4 4.8c0-10.2 7.7-17.6 17.3-17.6 9.6 0 18.1 5.9 16.8 19.1h-30.7c.7 8 6.8 12.6 13.8 12.6 4.5 0 9.7-1.8 12.3-5.2l2.5 2c-3.3 4.3-9.2 6.5-14.7 6.5-9.6.1-17.3-6.6-17.3-17.4zm31.1-1.4c-.1-8.4-5.6-13.1-13.8-13.1-7 0-13.1 4.8-13.8 13.1h27.6zm39.1-17l2.2 1.9-3.3 3.9c2.4 2.6 4.2 6.1 4.2 11.6 0 5.9-3.5 11.9-9.2 14.5 6 2.1 9.3 6.3 9.3 12.2 0 9.2-7.2 13.6-16.2 13.6s-16.1-5-16.1-13.6h3.4c0 7 5.9 10.3 12.7 10.3s12.9-3 12.9-10.3c0-7.3-6.5-10.2-12.9-10.2-9.9 0-16-7.4-16-16.5 0-10.6 7.2-16.6 16-16.6 3.4 0 7 1.2 9.6 3.1l3.4-3.9zm-25.6 17.4c0 7 4.8 13.1 12.6 13.1 7 0 12.7-6.1 12.7-13.1 0-8.6-5.7-13.2-12.7-13.2-6.9-.1-12.6 4.3-12.6 13.2zM591.7 29c0 3.6-5.4 3.6-5.4 0s5.4-3.6 5.4 0zm-4.4 10.9v34.2h3.4V39.9h-3.4zm36.3 6.4c-3.4-3-6.8-3.6-10.6-3.6-5.3-.1-10.4 1.9-10.3 6.3.1 4.5 6.1 5.4 10.3 6.2 6.1 1 14.4 2.1 14.1 10-.2 7.5-8 9.5-14 9.5s-11.9-2.3-14.9-6.8l2.5-2.2c2.8 4.1 7.9 5.8 12.5 5.8 4.1 0 10.4-1.1 10.6-6.5.1-4.9-5.5-5.9-11.1-6.8-6.6-1.1-13.2-2.3-13.2-9.2-.1-6.7 6.6-9.6 13.5-9.5 5 0 9.3 1.4 12.7 4.5l-2.1 2.3zm18.8-16.5v10.3H654v2.8h-11.6v20.7c0 4.6 1 7.9 6.3 7.9 1.7 0 3.5-.6 5.2-1.4l1.2 2.8c-2.1 1-4.3 1.7-6.4 1.7-7.2 0-9.6-4.3-9.6-11V42.9h-7.2v-2.8h7.2v-9.9l3.3-.4zM665 40.1l.1 6.1c2.1-4.6 7-6.4 11.3-6.4 2.5-.1 5 .6 7.3 2l-1.5 2.8c-1.8-1.1-3.8-1.6-5.8-1.6-6.3.1-11.2 5.2-11.2 11.4v19.8h-3.4v-34h3.2zm55 0l-20.7 48.2h-3.6l6.3-14.6-13.6-33.6h3.7l7.9 20.1 4 9.9 3.9-9.9 8.5-20h3.6z`,fill:`currentColor`})]}),hb=e=>{let t=(0,K.useRef)(new AbortController),[n,r]=(0,K.useState)(),[i,a]=(0,K.useState)(!0),o=(0,K.useContext)(I),c=async()=>{try{a(!0);let n=await o.service.getStaticContent(t.current,e.url);r(n)}catch(e){o.handleError(e)}finally{a(!1)}};return(0,K.useEffect)(()=>(c(),()=>t.current.abort()),[e.url]),(0,Y.jsxs)(s,{p:5,display:`flex`,width:`100%`,justifyContent:`center`,children:[(0,Y.jsx)(Re,{loading:i}),(0,Y.jsx)(s,{maxWidth:`1040px`,children:n?(0,Y.jsx)(Km,{content:n}):null})]})},gb=P(u)(({theme:e})=>({marginTop:e.spacing(4)})),_b=P(u)(({theme:e})=>({marginTop:e.spacing(2)})),vb=()=>(0,Y.jsxs)(ia,{maxWidth:`md`,children:[(0,Y.jsx)(gb,{variant:`h4`,children:`About This Service`}),(0,Y.jsxs)(_b,{variant:`body1`,children:[`Open VSX is an open source registry for VS Code extensions. It can be used by any development environment that supports such extensions. See\xA0`,(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,href:`https://www.eclipse.org/community/eclipse_newsletter/2020/march/1.php`,children:`this article`}),`\xA0for more information.`]}),(0,Y.jsxs)(_b,{variant:`body1`,children:[`This service is operated by the\xA0`,(0,Y.jsx)(U,{color:`secondary`,href:`https://www.eclipse.org/`,children:`Eclipse Foundation\xA0`}),`under the responsibility of the Open VSX Working Group. The Open VSX Working Group ensures the continued sustainability, integrity, evolution and adoption of the Open VSX Registry. It provides governance, guidance, and funding for the communities that support its implementation, deployment and maintenance. If you're interested in joining the working group, please\xA0`,(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,href:`https://www.eclipse.org/membership/join-us/`,children:`let us know`}),`.`]}),(0,Y.jsxs)(_b,{variant:`body1`,children:[`For information on using the registry, publishing extensions, its API, implementation and deployment details, see our\xA0`,(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,href:`https://github.com/EclipseFdn/open-vsx.org/wiki`,children:`wiki`}),`.`]}),(0,Y.jsx)(gb,{variant:`h5`,children:`Contact Us`}),(0,Y.jsxs)(_b,{variant:`body1`,children:[`For non-urgent questions, including managing namespaces or publishing extensions, please visit our\xA0`,(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,href:`https://github.com/EclipseFdn/open-vsx.org/wiki`,children:`wiki`}),`.`]}),(0,Y.jsxs)(_b,{variant:`body1`,children:[`We use Slack for instant messaging and general communication, use this\xA0`,(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,href:`https://join.slack.com/t/openvsxworkinggroup/shared_invite/zt-3czmpiy42-2DX18Yvqw1pfQyKx53_skg`,children:`link`}),`\xA0to join our Slack workspace.`]})]}),yb=()=>{let e=(0,K.useRef)(new AbortController),[t,n]=(0,K.useState)(!1),[r,i]=(0,K.useState)([]),a=async()=>{try{n(!1);let t=await fetch(`https://api.eclipse.org/adopters/projects?working_group=cloud-development-tools`,{signal:e.current.signal});if(!t.ok)throw Error(`Failed to fetch adopters`);let r=(await t.json()).find(e=>e.project_id==`ecd.openvsx`);r&&i(r.adopters)}catch(e){if(e instanceof DOMException&&e.name===`AbortError`)return;console.error(`Error loading adopters: ${e}`)}finally{n(!0)}};return(0,K.useEffect)(()=>
44{if(!t)return a(),()=>e.current.abort()},[t]),t?(0,Y.jsx)(z,{container:!0,spacing:3,mt:2,children:r.map(e=>(0,Y.jsx)(wb,{name:e.name,logo:e.logo,logoWhite:e.logo_white,url:e.homepage_url},e.name))}):(0,Y.jsx)(Hn,{})},bb=e=>({border:`1px solid`,borderColor:e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800]}),xb=P(s)(({theme:e})=>({...bb(e),display:`flex`,alignItems:`center`,minHeight:`6rem`,backgroundColor:e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800]})),Sb=P(s)(({theme:e})=>({...bb(e),display:`flex`,height:`100%`,alignItems:`center`,justifyContent:`center`,backgroundColor:e.palette.background.default})),Cb=P(z)({display:`flex`,flexDirection:`column`,alignItems:`stretch`,height:`18rem`,textAlign:`center`}),wb=({name:e,logo:t,logoWhite:n,url:r})=>{let{pageSettings:i}=(0,K.useContext)(I),a={heading:{width:`100%`},logoContainer:{width:`100%`,maxWidth:`8rem`,maxHeight:`8rem`},logo:{width:`100%`,height:`100%`,objectFit:`contain`}},o=i.themeType==`dark`?n:t;return o&&(o=`https://api.eclipse.org/adopters/assets/images/adopters/`+o),(0,Y.jsxs)(Cb,{item:!0,xs:12,md:4,children:[(0,Y.jsx)(xb,{p:2,children:r?(0,Y.jsx)(U,{sx:a.heading,href:r,variant:`h6`,children:e}):(0,Y.jsx)(u,{sx:a.heading,variant:`h6`,children:e})}),(0,Y.jsx)(Sb,{p:2,children:(0,Y.jsx)(s,{sx:a.logoContainer,children:o?(0,Y.jsx)(s,{component:`img`,sx:a.logo,src:o,alt:``}):(0,Y.jsx)(u,{variant:`h6`,children:e})})})]})},Tb=P(u)(({theme:e})=>({marginTop:e.spacing(4),marginBottom:e.spacing(2)})),Eb=()=>(0,Y.jsxs)(ia,{maxWidth:`md`,children:[(0,Y.jsx)(Tb,{variant:`h4`,children:`Adopters`}),(0,Y.jsx)(u,{children:`Our open source projects drive innovation across a broad spectrum of industries and on both private and public clouds â enabling organizations of all shapes and sizes to accelerate cloud native development with world-class tools.`}),(0,Y.jsx)(s,{mt:4,textAlign:`center`,children:(0,Y.jsx)(g,{variant:`contained`,color:`secondary`,href:`https://ecdtools.eclipse.org/adopters/get-listed/`,children:`Get Listed`})}),(0,Y.jsx)(yb,{})]}),Db=({collaborationId:e})=>{let t=(0,K.useRef)(new AbortController),[n,r]=(0,K.useState)(!1),[i,a]=(0,K.useState)([]),o=async()=>{try{r(!1);let n=await fetch(`https://membership.eclipse.org/api/organizations?working_group=${e}`,{signal:t.current.signal});if(!n.ok)throw Error(`Failed to fetch members`);let i=await n.json();a(i)}catch(e){if(e instanceof DOMException&&e.name===`AbortError`)return;console.error(`Error loading members: ${e}`)}finally{r(!0)}};return(0,K.useEffect)(()=>{if(!n)return o(),()=>t.current.abort()},[i,n]),n?(0,Y.jsx)(z,{container:!0,spacing:3,children:i.map(e=>(0,Y.jsx)(Mb,{memberId:e.organization_id,name:e.name,logo:e.logos.web},e.organization_id))}):(0,Y.jsx)(Hn,{})},Ob=e=>({border:`1px solid`,borderColor:e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800]}),kb=P(s)(({theme:e})=>({...Ob(e),display:`flex`,alignItems:`center`,minHeight:`6rem`,backgroundColor:e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800]})),Ab=P(s)(({theme:e})=>({...Ob(e),display:`flex`,height:`100%`,alignItems:`center`,justifyContent:`center`,backgroundColor:`#fff`})),jb=P(z)({display:`flex`,flexDirection:`column`,alignItems:`stretch`,height:`18rem`,textAlign:`center`}),Mb=({name:e,logo:t,memberId:n})=>{let r={heading:{width:`100%`},logoContainer:{width:`100%`,height:`100%`,maxWidth:`12rem`,maxHeight:`6rem`,backgroundColor:`#fff`},logo:{width:`100%`,height:`100%`,objectFit:`contain`}},i=`https://www.eclipse.org/membership/showMember.php?member_id=${n}`;return(0,Y.jsxs)(jb,{item:!0,xs:12,md:4,children:[(0,Y.jsx)(kb,{p:2,children:(0,Y.jsx)(U,{sx:r.heading,href:i,variant:`h6`,children:e})}),(0,Y.jsx)(Ab,{p:2,children:(0,Y.jsx)(s,{sx:r.logoContainer,children:t?(0,Y.jsx)(s,{component:`img`,sx:r.logo,src:t,alt:``}):(0,Y.jsx)(u,{color:`#333`,variant:`h6`,children:e})})})]})},Nb=P(u)(({theme:e})=>({marginTop:e.spacing(4),marginBottom:e.spacing(2)})),Pb=()=>(0,Y.jsxs)(ia,{maxWidth:`md`,children:[(0,Y.jsx)(Nb,{variant:`h4`,children:`Members`}),(0,Y.jsx)(u,{children:`The Open VSX Working Group aims to ensure the continued sustainability, integrity, evolution and adoption of the Open VSX Registry. In particular, it is formed to provide governance, guidance, and funding for the communities that support the implementation, deployment, maintenance and adoption of the Eclipse Foundationâs Open VSX Registry at open-vsx.org.`}),(0,Y.jsxs)(s,{display:`flex`,gap:1,my:4,justifyContent:`center`,textAlign:`center`,children:[(0,Y.jsx)(g,{variant:`contained`,color:`secondary`,href:`https://www.eclipse.org/membership/join-us/`,children:`Contact Us About Membership`}),(0,Y.jsx)(g,{variant:`contained`,color:`secondary`,href:`https://membership.eclipse.org/application/ready-to-join`,children:`My Organisation Is Ready to Join Now`})]}),(0,Y.jsx)(Db,{collaborationId:`open-vsx`})]}),Fb=w((0,Y.jsx)(`path`,{d:`m14 4 2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z`}),`CallSplit`),Ib=w((0,Y.jsx)(`path`,{d:`M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29M20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3`}),`Groups`),Lb=`https://github.com/EclipseFdn/open-vsx.org/wiki`,Rb=`https://github.com/eclipse-openvsx/openvsx`,zb=()=>(0,Y.jsxs)(s,{textAlign:`center`,sx:{mb:2,mx:`auto`}
44,children:[(0,Y.jsx)(u,{component:`h1`,sx:{fontSize:{xs:`1.875rem`,sm:`2.5rem`,md:`2.875rem`},lineHeight:1.1,letterSpacing:`-0.02em`,fontWeight:600,mb:1.5},children:`Extensions for modern developer tools.`}),(0,Y.jsx)(u,{sx:{fontSize:`1.125rem`,color:`text.secondary`,maxWidth:`35rem`,mx:`auto`,lineHeight:1.5},children:`Discover extensions for VS Code-compatible editors, AI coding tools, cloud IDEs, and developer platforms.`})]}),Bb=()=>(0,Y.jsx)(uc,{fluid:!0,component:`main`,sx:{animation:`fadeIn .25s ease`},children:(0,Y.jsxs)(Ht,{children:[(0,Y.jsx)(Ph,{searchHeader:zb,popularSearches:[`python`,`git`,`docker`,`prettier`,`eslint`,`rust`,`java`]}),(0,Y.jsx)(hn,{}),(0,Y.jsx)(lg,{sections:[{title:`Featured`,subtitle:`Top picks ranked by relevance`,sortBy:`relevance`},{title:`Most downloaded`,subtitle:`The extensions developers rely on every day`,sortBy:`downloadCount`},{title:`Recently updated`,subtitle:`Fresh releases from publishers this week`,sortBy:`timestamp`}]}),(0,Y.jsx)(cg,{}),(0,Y.jsx)(hg,{heading:`Get Involved`,cards:[{icon:(0,Y.jsx)(Fb,{}),title:`Contribute`,description:`Open VSX is fully open source. Help build the registry the ecosystem depends on.`,href:Rb,label:`View on GitHub â`},{icon:(0,Y.jsx)(Ib,{}),title:`Join the Working Group`,description:`Shape the future of an open, vendor-neutral marketplace for extensions.`,href:`/members`,label:`Learn more â`},{icon:(0,Y.jsx)(Jh,{}),title:`Read the docs`,description:`Learn how to publish, claim namespaces, and consume extensions via the API.`,href:Lb,label:`View documentation â`}]})]})}),Vb=w((0,Y.jsx)(`path`,{d:`M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z`}),`X`),Hb=`https://github.com/EclipseFdn/open-vsx.org/wiki`,Ub=`https://github.com/eclipse-openvsx/openvsx`,Wb=e=>{let t=(e,t,n)=>{t.metaTags&&t.metaTags.forEach(e=>{e.content||e.remove()})},n=e.imageUrl?`summary_large_image`:`summary`;return(0,Y.jsxs)(Qr,{onChangeClientState:t,children:[(0,Y.jsx)(`title`,{children:e.title}),(0,Y.jsx)(`meta`,{name:`description`,content:e.description}),(0,Y.jsx)(`meta`,{name:`keywords`,content:e.keywords}),(0,Y.jsx)(`meta`,{property:`og:url`,content:e.url}),(0,Y.jsx)(`meta`,{property:`og:type`,content:`website`}),(0,Y.jsx)(`meta`,{property:`og:title`,content:e.title}),(0,Y.jsx)(`meta`,{property:`og:description`,content:e.description}),(0,Y.jsx)(`meta`,{property:`og:image`,content:e.imageUrl}),(0,Y.jsx)(`meta`,{itemProp:`name`,content:e.title}),(0,Y.jsx)(`meta`,{itemProp:`description`,content:e.description}),(0,Y.jsx)(`meta`,{itemProp:`image`,content:e.imageUrl}),(0,Y.jsx)(`meta`,{name:`twitter:card`,content:n}),(0,Y.jsx)(`meta`,{name:`twitter:title`,content:e.title}),(0,Y.jsx)(`meta`,{name:`twitter:description`,content:e.description}),(0,Y.jsx)(`meta`,{name:`twitter:image`,content:e.imageUrl})]})},Gb=e=>{let t=e.pageSettings.pageTitle,n=`${location.protocol}//${location.host}`,r=n+`/openvsx-preview.png`;return(0,Y.jsx)(Wb,{title:t,description:`Open VSX is an Eclipse open-source project and alternative to the Visual Studio Marketplace. It is deployed by the Eclipse Foundation at open-vsx.org.`,keywords:`eclipse,ide,open source,development environment,development,vs code,visual studio code,extension,plugin,plug-in,registry,theia`,url:n,imageUrl:r})},Kb=e=>{let{name:t,namespace:n}=We(),r=` â ${e.pageSettings.pageTitle}`,i=`${location.protocol}//${location.host}/extension/`,a,o;if(e.extension){if(r=(e.extension.displayName??e.extension.name)+r,i+=`${e.extension.namespace}/${e.extension.name}`,a=e.extension.description,a&&a.length>255){let e=a.indexOf(` `,255);e=e===-1?255:e-1,a=a.substring(0,e)}e.extension.tags&&(o=e.extension.tags.filter(e=>!e.startsWith(`__`)).join())}else r=t+r,i+=`${n}/${t}`;return(0,Y.jsx)(Wb,{title:r,url:i,description:a,keywords:o})},qb=e=>{let{name:t}=We(),n=e.namespaceDetails?.displayName??e.namespaceDetails?.name??t,r=`${n} â ${e.pageSettings.pageTitle}`,i=`${location.protocol}//${location.host}/namespace/${n}`,a=e.namespaceDetails?.description;return(0,Y.jsx)(Wb,{title:r,url:i,description:a})};function Jb(e,t){let n=()=>{let{version:e}=(0,K.useContext)(I);return e?(0,Y.jsx)(u,{variant:`body2`,sx:{alignSelf:`flex-start`,fontSize:`0.8rem`},children:e.version}):(0,Y.jsx)(`div`,{children:`Loading version...`})},r=()=>{let{user:e}=(0,K.useContext)(I);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(R,{to:is.MAIN,"aria-label":`Home - Open VSX Registry`,style:{display:`flex`,color:`inherit`},children:(0,Y.jsx)(mb,{width:`auto`,height:`2.5rem`})}),e?.role===`admin`&&(0,Y.jsx)(K.Suspense,{children:(0,Y.jsx)(n,{})})]})},i=()=>(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(s,{component:`strong`,sx:{fontWeight:700},children:`Trusted Publishing`}),` `,`is now available: publish your extensions straight from CI, without storing an access token as a
44secret. See the`,` `,(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,href:`${Ub}/wiki/Trusted-Publishing`,children:`documentation`}),` `,`to get started.`]}),a=()=>(0,Y.jsx)(s,{mt:1,children:(0,Y.jsxs)(u,{variant:`body2`,children:[`By clicking download, you accept this website's\xA0`,(0,Y.jsx)(U,{color:`secondary`,underline:`hover`,href:`https://open-vsx.org/terms-of-use`,children:`Terms of Use`}),`.`]})}),o=(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Fe,{path:`/about`,element:(0,Y.jsx)(vb,{})}),(0,Y.jsx)(Fe,{path:`/terms-of-use`,element:(0,Y.jsx)(hb,{url:`/documents/terms-of-use.md`})}),(0,Y.jsx)(Fe,{path:`/publisher-agreement-v1.1`,element:(0,Y.jsx)(hb,{url:`/documents/publisher-agreement-v1.1.md`})}),(0,Y.jsx)(Fe,{path:`/members`,element:(0,Y.jsx)(Pb,{})}),(0,Y.jsx)(Fe,{path:`/adopters`,element:(0,Y.jsx)(Eb,{})})]});return{pageTitle:`Open VSX Registry`,themeType:t?`dark`:`light`,publisherAgreement:{name:`Eclipse Foundation Open VSX`,email:`[email protected]`},elements:{defaultMenuContent:pb,mobileMenuContent:ub,toolbarContent:r,banner:{content:i,props:{dismissButton:{show:!0},color:`info`},cookie:{key:`Trusted-Publishing-Announcement-2026-09-30`,value:`closed`,path:`/`}},footer:{brand:{logo:(0,Y.jsx)(Hg,{}),name:`Open VSX Registry`,description:`An open source, vendor-neutral registry for VS Codeâcompatible extensions.`},columns:[{heading:`Resources`,links:[{label:`Documentation`,href:Hb,external:!0},{label:`Status`,href:`https://status.open-vsx.org/`,external:!0},{label:`Commercial Usage`,href:`https://managed.open-vsx.org/`,external:!0},{label:`Report a Vulnerability`,href:`https://researcher-recognition.open-vsx.org`,external:!0},{label:`Sponsor`,href:`https://www.eclipse.org/donate/openvsx/`,external:!0}]},{heading:`Community`,links:[{label:`About This Service`,href:`/about`},{label:`Members`,href:`/members`},{label:`Adopters`,href:`/adopters`}]},{heading:`Legal`,links:[{label:`OSS Access`,href:`https://managed.open-vsx.org/contact`,external:!0},{label:`Privacy Policy`,href:`https://www.eclipse.org/legal/privacy/`,external:!0},{label:`Terms of Use`,href:`/terms-of-use`},{label:`Security Policy`,href:`/security/`},{label:`Compliance`,href:`https://www.eclipse.org/legal/compliance/`,external:!0},{label:`Legal Resources`,href:`http://www.eclipse.org/legal/`,external:!0}]}],social:[{title:`Open VSX on GitHub`,href:Ub,icon:(0,Y.jsx)(Nn,{sx:{fontSize:`1rem`}})},{title:`Open VSX on LinkedIn`,href:`https://www.linkedin.com/company/open-vsx/`,icon:(0,Y.jsx)(Pg,{sx:{fontSize:`1rem`}})},{title:`Open VSX on X (Twitter)`,href:`https://x.com/openvsx`,icon:(0,Y.jsx)(Vb,{sx:{fontSize:`1rem`}})}],copyright:(0,Y.jsxs)(Y.Fragment,{children:[`Copyright ©`,` `,(0,Y.jsx)(U,{href:`https://www.eclipse.org`,color:`inherit`,underline:`hover`,children:`Eclipse Foundation, AISBL.`}),` `,`All Rights Reserved.`]}),extra:(0,Y.jsx)(s,{component:`span`,className:`toolbar-manage-cookies`,sx:{cursor:`pointer`,fontSize:`0.75rem`,color:`text.disabled`,"&:hover":{color:`secondary.light`}},children:`Manage Cookies`})},home:Bb,downloadTerms:a,additionalRoutes:o,reportAbuse:({extension:e,sx:t})=>{let n=encodeURIComponent(`${location.protocol}//${location.hostname}/extension/${e.namespace}/${e.name}`);return(0,Y.jsx)(U,{href:`mailto:[email protected]?subject=Report%20Abuse%20-%20${e.namespace}.${e.name}&Body=%3CPlease%20describe%20the%20issue%3E%0A%0A${n}`,variant:`body2`,color:`secondary`,underline:`hover`,sx:t,children:`Report Abuse`})},claimNamespace:({namespace:e,extension:t,sx:n})=>{if(t?.verified)return null;let r=`Claiming namespace \`${e}\``;return(0,Y.jsx)(U,{href:`https://github.com/EclipseFdn/open-vsx.org/issues/new?template=claim-namespace-ownership.yml&namespace=${encodeURIComponent(e)}&title=${encodeURIComponent(r)}`,target:`_blank`,variant:`body2`,color:`secondary`,underline:`hover`,sx:n,children:`Claim Ownership`})},mainHeadTags:Gb,extensionHeadTags:Kb,namespaceHeadTags:qb},urls:{extensionDefaultIcon:`/default-icon.png`,namespaceAccessInfo:`https://github.com/eclipse-openvsx/openvsx/wiki/Namespace-Access`,publisherAgreement:`/documents/publisher-agreement-v1.1.md`,trustedPublishing:`https://github.com/eclipse-openvsx/openvsx/wiki/Trusted-Publishing`}}}var Yb=()=>{let e=De(`(prefers-color-scheme: dark)`),t=e?`dark`:`light`,n=(0,K.useMemo)(()=>Zt(t),[t]),r=``;if(location.port===`3000`){let e=location.hostname+`:8080`;r=`${location.protocol}//${e}`}let i=new y_(r),a=Jb(n,e);
44return(0,Y.jsx)(Wr,{children:(0,Y.jsx)(yi,{theme:n,children:(0,Y.jsx)(m_,{service:i,pageSettings:a,loginProviders:{github:W([r,`oauth2`,`authorization`,`github`])}})})})},Xb=document.getElementById(`main`);(0,ar.createRoot)(Xb).render((0,Y.jsx)(Le,{children:(0,Y.jsx)(Yb,{})}));export{yo as A,Ti as B,wc as C,qo as D,rs as E,ia as F,ra as I,qi as L,po as M,oo as N,Wo as O,sa as P,Ri as R,Lc as S,Us as T,V_ as _,Hy as a,Uh as b,ay as c,yv as d,hv as f,G_ as g,nv as h,qy as i,vo as j,bo as k,ry as l,lv as m,Xy as n,By as o,fv as p,Yy as r,My as s,Zy as t,Xv as u,T_ as v,pc as w,ch as x,Wh as y,Mi as z}; 45//# sourceMappingURL=bundle-Cr3Cd2bK.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.