import{as as ZL,at as f1,q as bq,d as xq,e as p1,b as Yc,au as Tq,B as d1,W as Sq,D as h1,u as Eq,a4 as nc,Q as Pq,t as ej,a7 as NA,w as et,x as _s,y as Aq,av as wq}from"./index-CX44Czc2.js";import{cl as Mt,r as te,j as ce,c as Pl,i as Pe,cY as tj,cK as _q,R as Oq,dk as $l,u as Os,du as Cq,dv as Iq,P as pr,k as Qt,dw as kq,cM as ca,cQ as Nq,q as fa,dx as rj,l as Nr,dj as Dq,dy as Mq,dz as wm,bH as _m,dA as m1,bJ as yu,dB as Lq,bI as gu,dC as Xf,dD as vu,dE as Gf,dF as nj,dG as jq,s as y1,p as g1,n as v1,cN as vs,cR as of,o as Rq,de as Es,m as Bq,at as ij,aG as Fq,y as b1,X as aj,aa as qq,dH as $q,dI as Uq,dJ as sj,dK as Vq,dL as Kq,dM as zq,dN as oj,dO as lj,dP as uj,dQ as cj,dR as fj,dS as pj,bE as dj,dT as hj,dU as mj,dV as yj,dW as Wq,dX as Hq,dY as Yq,dZ as gj,df as Xq,dg as Gq,dh as vj,d_ as Jq,d$ as Qq,e0 as Zq,e1 as e9,e2 as bj,e3 as t9,e4 as xj,e5 as r9,e6 as n9,e7 as Tj,e8 as Sj,d as Ej,e9 as Pj,ad as i9,ea as Aj,eb as wj,ec as a9,ed as s9,ee as _j,ef as Oj,eg as Cj,cV as o9,cW as l9,cX as u9,eh as c9,cU as Ij,ei as kj}from"./vendor-ui-DZJzNhfO.js";import{c as Ot,p as An,q as x1,u as DA,v as Oi,w as lf,x as T1,y as Nj,z as nn,A as Tn,s as Sg,B as ea,n as f9,C as p9,D as PT,E as d9,F as AT,G as h9,H as m9,I as y9,J as g9,K as Eg,L as MA,M as v9,N as Dj,O as Mj,P as S1,Q as E1,R as b9,S as x9,f as Zo,T as Lj}from"./vendor-utils-DxBcq7o1.js";import{a as T9}from"./vendor-data-DipQAKt7.js";function S9(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Pg,LA;function E9(){return LA||(LA=1,Pg={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Pg}var P9=E9();const A9=Mt(P9);var w9=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function jA(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(A9[r[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var i=new RegExp(w9),a=null;(a=i.exec(e))!==null;)if(a[0].trim())if(a[1]){var s=a[1].trim(),o=[s,""];s.indexOf("=")>-1&&(o=s.split("=")),t.attrs[o[0]]=o[1],i.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var _9=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,O9=/^\s*$/,C9=Object.create(null);function jj(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?(function(r){var n=[];for(var i in r)n.push(i+'="'+r[i]+'"');return n.length?" "+n.join(" "):""})(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(jj,"")+"</"+t.name+">";case"comment":return e+"<!--"+t.comment+"-->"}}var I9={parse:function(e,t){t||(t={}),t.components||(t.components=C9);var r,n=[],i=[],a=-1,s=!1;if(e.indexOf("<")!==0){var o=e.indexOf("<");n.push({type:"text",content:o===-1?e:e.substring(0,o)})}return e.replace(_9,function(l,c){if(s){if(l!=="</"+r.name+">")return;s=!1}var p,f=l.charAt(1)!=="/",d=l.startsWith("<!--"),h=c+l.length,v=e.charAt(h);if(d){var x=jA(l);return a<0?(n.push(x),n):((p=i[a]).children.push(x),n)}if(f&&(a++,(r=jA(l)).type==="tag"&&t.components[r.name]&&(r.type="component",s=!0),r.voidElement||s||!v||v==="<"||r.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),a===0&&n.push(r),(p=i[a-1])&&p.children.push(r),i[a]=r),(!f||r.voidElement)&&(a>-1&&(r.voidElement||r.name===l.slice(2,-1))&&(a--,r=a===-1?n:i[a]),!s&&v!=="<"&&v)){p=a===-1?n:i[a].children;var y=e.indexOf("<",h),m=e.slice(h,y===-1?void 0:y);O9.test(m)&&(m=" "),(y>-1&&a+p.length>=0||m!==" ")&&p.push({type:"text",content:m})}}),n},stringify:function(e){return e.reduce(function(t,r){return t+jj("",r)},"")}};const th=(e,t,r,n)=>{var a,s,o,l;const i=[r,{code:t,...n||{}}];if((s=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&s.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);qn(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(l=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&l.warn?e.services.logger.warn(...i):console!=null&&console.warn},RA={},uf=(e,t,r,n)=>{qn(r)&&RA[r]||(qn(r)&&(RA[r]=new Date),th(e,t,r,n))},Rj=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},wT=(e,t,r)=>{e.loadNamespaces(t,Rj(e,r))},BA=(e,t,r,n)=>{if(qn(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return wT(e,r,n);r.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Rj(e,n))},k9=(e,t,r={})=>!t.languages||!t.languages.length?(uf(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(n,i)=>{var a;if(((a=r.bindI18n)==null?void 0:a.indexOf("languageChanging"))>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!i(n.isLanguageChangingTo,e))return!1}}),qn=e=>typeof e=="string",jo=e=>typeof e=="object"&&e!==null,Ag=(e,t)=>{var n;if(!e)return!1;const r=((n=e.props)==null?void 0:n.children)??e.children;return t?r.length>0:!!r},wg=e=>{var r,n;if(!e)return[];const t=((r=e.props)==null?void 0:r.children)??e.children;return(n=e.props)!=null&&n.i18nIsDynamicList?Al(t):t},N9=e=>Array.isArray(e)&&e.every(te.isValidElement),Al=e=>Array.isArray(e)?e:[e],D9=(e,t)=>{const r={...t};return r.props=Object.assign(e.props,t.props),r},Bj=(e,t,r,n)=>{if(!e)return"";let i="";const a=Al(e),s=t!=null&&t.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((o,l)=>{if(qn(o)){i+=`${o}`;return}if(te.isValidElement(o)){const{props:c,type:p}=o,f=Object.keys(c).length,d=s.indexOf(p)>-1,h=c.children;if(!h&&d&&!f){i+=`<${p}/>`;return}if(!h&&(!d||f)||c.i18nIsDynamicList){i+=`<${l}></${l}>`;return}if(d&&f===1&&qn(h)){i+=`<${p}>${h}</${p}>`;return}const v=Bj(h,t,r,n);i+=`<${l}>${v}</${l}>`;return}if(o===null){th(r,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:n});return}if(jo(o)){const{format:c,...p}=o,f=Object.keys(p);if(f.length===1){const d=c?`${f[0]}, ${c}`:f[0];i+=`{{${d}}}`;return}th(r,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:n,child:o});return}th(r,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:n,child:o})}),i},M9=(e,t,r,n,i,a)=>{if(t==="")return[];const s=n.transKeepBasicHtmlNodesFor||[],o=t&&new RegExp(s.map(y=>`<${y}`).join("|")).test(t);if(!e&&!o&&!a)return[t];const l={},c=y=>{Al(y).forEach(T=>{qn(T)||(Ag(T)?c(wg(T)):jo(T)&&!te.isValidElement(T)&&Object.assign(l,T))})};c(e);const p=I9.parse(`<0>${t}</0>`),f={...l,...i},d=(y,m,T)=>{var P;const A=wg(y),E=v(A,m.children,T);return N9(A)&&E.length===0||(P=y.props)!=null&&P.i18nIsDynamicList?A:E},h=(y,m,T,A,E)=>{y.dummy?(y.children=m,T.push(te.cloneElement(y,{key:A},E?void 0:m))):T.push(...te.Children.map([y],P=>{const _={...P.props};return delete _.i18nIsDynamicList,te.createElement(P.type,{..._,key:A,ref:P.ref},E?null:m)}))},v=(y,m,T)=>{const A=Al(y);return Al(m).reduce((P,_,I)=>{var M,D;const k=((D=(M=_.children)==null?void 0:M[0])==null?void 0:D.content)&&r.services.interpolator.interpolate(_.children[0].content,f,r.language);if(_.type==="tag"){let C=A[parseInt(_.name,10)];T.length===1&&!C&&(C=T[0][_.name]),C||(C={});const L=Object.keys(_.attrs).length!==0?D9({props:_.attrs},C):C,q=te.isValidElement(L),$=q&&Ag(_,!0)&&!_.voidElement,z=o&&jo(L)&&L.dummy&&!q,Q=jo(e)&&Object.hasOwnProperty.call(e,_.name);if(qn(L)){const V=r.services.interpolator.interpolate(L,f,r.language);P.push(V)}else if(Ag(L)||$){const V=d(L,_,T);h(L,V,P,I)}else if(z){const V=v(A,_.children,T);h(L,V,P,I)}else if(Number.isNaN(parseFloat(_.name)))if(Q){const V=d(L,_,T);h(L,V,P,I,_.voidElement)}else if(n.transSupportBasicHtmlNodes&&s.indexOf(_.name)>-1)if(_.voidElement)P.push(te.createElement(_.name,{key:`${_.name}-${I}`}));else{const V=v(A,_.children,T);P.push(te.createElement(_.name,{key:`${_.name}-${I}`},V))}else if(_.voidElement)P.push(`<${_.name} />`);else{const V=v(A,_.children,T);P.push(`<${_.name}>${V}</${_.name}>`)}else if(jo(L)&&!q){const V=_.children[0]?k:null;V&&P.push(V)}else h(L,k,P,I,_.children.length!==1||!k)}else if(_.type==="text"){const C=n.transWrapTextNodes,L=a?n.unescape(r.services.interpolator.interpolate(_.content,f,r.language)):r.services.interpolator.interpolate(_.content,f,r.language);C?P.push(te.createElement(C,{key:`${_.name}-${I}`},L)):P.push(L)}return P},[])},x=v([{dummy:!0,children:e||[]}],p,Al(e||[]));return wg(x[0])},Fj=(e,t,r)=>{const n=e.key||t,i=te.cloneElement(e,{key:n});if(!i.props||!i.props.children||r.indexOf(`${t}/>`)<0&&r.indexOf(`${t} />`)<0)return i;function a(){return te.createElement(te.Fragment,null,i)}return te.createElement(a,{key:n})},L9=(e,t)=>e.map((r,n)=>Fj(r,n,t)),j9=(e,t)=>{const r={};return Object.keys(e).forEach(n=>{Object.assign(r,{[n]:Fj(e[n],n,t)})}),r},R9=(e,t,r,n)=>e?Array.isArray(e)?L9(e,t):jo(e)?j9(e,t):(uf(r,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:n}),null):null;function B9({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:a={},values:s,defaults:o,components:l,ns:c,i18n:p,t:f,shouldUnescape:d,...h}){var L,q,$,z,Q,V;const v=p||f1();if(!v)return uf(v,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:n}),e;const x=f||v.t.bind(v)||(X=>X),y={...ZL(),...(L=v.options)==null?void 0:L.react};let m=c||x.ns||((q=v.options)==null?void 0:q.defaultNS);m=qn(m)?[m]:m||["translation"];const T=Bj(e,y,v,n),A=o||T||y.transEmptyNodeValue||n,{hashTransKey:E}=y,P=n||(E?E(T||A):T||A);(z=($=v.options)==null?void 0:$.interpolation)!=null&&z.defaultVariables&&(s=s&&Object.keys(s).length>0?{...s,...v.options.interpolation.defaultVariables}:{...v.options.interpolation.defaultVariables});const _=s||t!==void 0&&!((V=(Q=v.options)==null?void 0:Q.interpolation)!=null&&V.alwaysFormat)||!e?a.interpolation:{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}},I={...a,context:i||a.context,count:t,...s,..._,defaultValue:A,ns:m},k=P?x(P,I):A,M=R9(l,k,v,n),D=M9(M||e,k,v,y,I,d),C=r??y.defaultTransParent;return C?te.createElement(C,h,D):D}const qj=te.createContext();class F9{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function q9({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:a={},values:s,defaults:o,components:l,ns:c,i18n:p,t:f,shouldUnescape:d,...h}){var T;const{i18n:v,defaultNS:x}=te.useContext(qj)||{},y=p||v||f1(),m=f||(y==null?void 0:y.t.bind(y));return B9({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:a,values:s,defaults:o,components:l,ns:c||(m==null?void 0:m.ns)||x||((T=y==null?void 0:y.options)==null?void 0:T.defaultNS),i18n:y,t:f,shouldUnescape:d,...h})}const $9=(e,t)=>{const r=te.useRef();return te.useEffect(()=>{r.current=e},[e,t]),r.current},$j=(e,t,r,n)=>e.getFixedT(t,r,n),U9=(e,t,r,n)=>te.useCallback($j(e,t,r,n),[e,t,r,n]),V9=(e,t={})=>{var E,P,_,I;const{i18n:r}=t,{i18n:n,defaultNS:i}=te.useContext(qj)||{},a=r||n||f1();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new F9),!a){uf(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const k=(D,C)=>qn(C)?C:jo(C)&&qn(C.defaultValue)?C.defaultValue:Array.isArray(D)?D[D.length-1]:D,M=[k,{},!1];return M.t=k,M.i18n={},M.ready=!1,M}(E=a.options.react)!=null&&E.wait&&uf(a,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...ZL(),...a.options.react,...t},{useSuspense:o,keyPrefix:l}=s;let c=e||i||((P=a.options)==null?void 0:P.defaultNS);c=qn(c)?[c]:c||["translation"],(I=(_=a.reportNamespaces).addUsedNamespaces)==null||I.call(_,c);const p=(a.isInitialized||a.initializedStoreOnce)&&c.every(k=>k9(k,a,s)),f=U9(a,t.lng||null,s.nsMode==="fallback"?c:c[0],l),d=()=>f,h=()=>$j(a,t.lng||null,s.nsMode==="fallback"?c:c[0],l),[v,x]=te.useState(d);let y=c.join();t.lng&&(y=`${t.lng}${y}`);const m=$9(y),T=te.useRef(!0);te.useEffect(()=>{const{bindI18n:k,bindI18nStore:M}=s;T.current=!0,!p&&!o&&(t.lng?BA(a,t.lng,c,()=>{T.current&&x(h)}):wT(a,c,()=>{T.current&&x(h)})),p&&m&&m!==y&&T.current&&x(h);const D=()=>{T.current&&x(h)};return k&&(a==null||a.on(k,D)),M&&(a==null||a.store.on(M,D)),()=>{T.current=!1,a&&(k==null||k.split(" ").forEach(C=>a.off(C,D))),M&&a&&M.split(" ").forEach(C=>a.store.off(C,D))}},[a,y]),te.useEffect(()=>{T.current&&p&&x(d)},[a,l,p]);const A=[v,a,p];if(A.t=v,A.i18n=a,A.ready=p,p||!p&&!o)return A;throw new Promise(k=>{t.lng?BA(a,t.lng,c,()=>k()):wT(a,c,()=>k())})};function Uj(){return bq("SDK_BACKEND_URL")||xq()}function fh(){return Uj()+"/api"}function K9(){const e=window.location.hostname;if(e.startsWith("checkpoint--")){const t=e.split("--");if(t.length>=3)return t[2].split(".")[0]}return e.startsWith("preview--")?"preview":"prod"}function FA(e,t,r,n={}){class i extends p1{constructor(){super(),this.axios.interceptors.response.use(s=>s,s=>{var f,d,h,v;const o=`error trying to call ${t.name} entity api: ${s.config.url}`;let l=s.config.data;try{typeof l!="string"&&(l=JSON.stringify(l)),l&&l.length>1e3&&(l=l.substring(0,997)+"...")}catch{l=String(l)}let c="";try{c=JSON.stringify((f=s.response)==null?void 0:f.data),c&&c.length>1e3&&(c=c.substring(0,997)+"...")}catch{c=String(((d=s.response)==null?void 0:d.data)||"")}const p=`When using the app, on url ${window.location.href} the following entity api call failed:
entity: ${t.name}
url: ${s.config.baseURL}${s.config.url}
method: ${s.config.method}
data: ${l}
error:${((v=(h=s.response)==null?void 0:h.data)==null?void 0:v.message)||s.message}
fulljson:${c}`;return r(o,p),Promise.reject(s)})}getBaseURL(){return fh()+`/apps/${e}/entities/${t.name}`}getClient(){return Yc(this.getBaseURL(),n,!0,!0)}schema(){return t}bulkCreate(s){return this.axios.post("/bulk",s)}importEntities(s){const o=new FormData;return o.append("file",s,s.name),this.axios.post("/import",o,{headers:{"Content-Type":"multipart/form-data"}})}async listDeleted(s={},o=null,l=null){let c={};return s&&Object.keys(s).length>0&&(c.q=JSON.stringify(s)),o&&(c.limit=o),l&&(c.skip=l),await this.axios.get("/trash",{params:c})}async restore(s){return await this.axios.put(`/${s}/restore`)}async deletePermanently(s){return await this.axios.delete(`/${s}/permanent`)}async restoreMany(s={}){return await this.axios.put("/trash/restore",s)}}return new i}function Gme(e,t,r,n={}){let i={};return Object.keys(e.entities).forEach(a=>{i[a]=FA(e.id,e.entities[a],t,n)}),i.User=FA(e.id,e.user_entity,t,n),i.User.updateMyUserData=async function(a){return await r.updateMyUserData(a)},i.User.me=async function(){return await r.getMyUserInfo()},i.User.logout=async function(){return await r.logout()},i.User.login=async function(){return await r.login()},i.User.loginWithRedirect=async function(a){return await r.loginWithRedirect(a)},i.User.isUserAuthenticated=function(){return r.isUserAuthenticated()},i}function Jme(e,t,r={}){const i={"Base44-Functions-Version":K9(),...r},a=Yc(fh()+`/apps/${e.id}/functions`,i,!0,!1,!1);t=t||(l=>{}),a.interceptors.response.use(l=>l,l=>{var h;const c=`error trying to call function: ${l.config.url}`;let p=l.config.data;try{typeof p!="string"&&(p=JSON.stringify(p)),p&&p.length>1e3&&(p=p.substring(0,997)+"...")}catch{p=String(p)}let f="";try{(h=l.response)!=null&&h.data?(typeof l.response.data=="object"?f=JSON.stringify(l.response.data):f=String(l.response.data),f.length>1e3&&(f=f.substring(0,997)+"...")):f=l.message||"Unknown error"}catch{f=String(l)||"Unknown error"}const d=`When using the app, on url ${window.location.href} the following function call failed:
url: ${l.config.baseURL}${l.config.url}
method: ${l.config.method}
data: ${p}
error: ${f}`;return t(c,d),Promise.reject(l)});let s={};return(e.function_names||Object.keys(e.functions||{})).forEach(l=>{s[l]=async c=>await a.post(`/${l}`,c||{})}),s}let ll=null,qA,$A;function z9(e,t){class r extends Tq{getMountPath(){return"/ws-user-apps/socket.io/"}getSocketQuery(){const i=super.getSocketQuery();return t&&(i.token=t),i.app_id=e,i}}return(!ll||qA!==e||$A!==t)&&(ll==null||ll.cleanup(),qA=e,$A=t,ll=new r),ll}function _g(e){return!e||typeof e!="string"||e.length<8||e.length>128?!1:/^[a-zA-Z0-9]+$/.test(e)}class W9 extends d1{getBaseURL(){return"/workspace/invitations"}inviteUser(t,r="member",n=null){const i=n?{workspaceId:n}:{};return this.axios.post("/invite",{email:t,role:r},{params:i})}bulkInviteUsers(t,r=null){const n=r?{workspaceId:r}:{};return this.axios.post("/bulk-invite",{invitations:t},{params:n})}getInvitationDetails(t){return _g(t)?this.axios.get(`/${t}`):Promise.reject(new Error("Invalid invitation token format"))}acceptInvitation(t){return _g(t)?this.axios.post(`/${t}/accept`):Promise.reject(new Error("Invalid invitation token format"))}declineInvitation(t){return _g(t)?this.axios.post(`/${t}/decline`):Promise.reject(new Error("Invalid invitation token format"))}}const ic=new W9;class H9 extends d1{getBaseURL(){return"/workspace"}getWorkspaces(){return this.axios.get("/workspaces")}getAvailablePlans(t=null){const r=t?{existingPriceIds:t.join(",")}:{};return this.axios.get("/available-plans",{params:r})}createWorkspace(t,r=null){return this.axios.post("/workspaces",{name:t,domain:r})}getDashboard(t=null){const r=t?{workspaceId:t}:{};return this.axios.get("",{params:r})}subscribeToDashboard(t,r,n){const i=`workspace/${t}/dashboard`;return n(r),Sq.addListener(i,a=>{r={...r,...a},n(r,Object.keys(a))},async()=>{try{const a=await this.getDashboard(t);n(a,Object.keys(a))}catch{}})}updateWorkspace(t,r){const n=t?{workspaceId:t}:{};return this.axios.put("/update",r,{params:n})}inviteUser(t,r="member",n=null){return ic.inviteUser(t,r,n)}bulkInviteUsers(t,r=null){return ic.bulkInviteUsers(t,r)}buySeats(t,r,n=null){const i=n?{workspaceId:n}:{};return this.axios.post("/buy-seats",{plan:t,count:r},{params:i})}removeSeats(t,r,n=null){const i=n?{workspaceId:n}:{};return this.axios.post("/remove-seats",{plan:t,count:r},{params:i})}updateMemberRole(t,r,n=null){const i=n?{workspaceId:n}:{};return this.axios.put(`/members/${t}/role`,{role:r},{params:i})}updateMemberSeat(t,r,n=null,i=null){const a=n?{workspaceId:n}:{},s={seat_type:r};return i!==null&&(s.seat_id=i),this.axios.put(`/members/${t}/seat`,s,{params:a})}removeMember(t,r=null){const n=r?{workspaceId:r}:{};return this.axios.delete(`/members/${t}`,{params:n})}leaveWorkspace(t){return this.axios.post("/leave",{},{params:{workspaceId:t}})}getMySeatInfo(t=null){const r=t?{workspaceId:t}:{};return this.axios.get("/my-seat",{params:r})}getSeatUsage(t,r=null){const n=r?{workspaceId:r}:{};return this.axios.get(`/seats/${t}/usage`,{params:n})}getWorkspaceInvoices(t=null){const r=t?{workspaceId:t}:{};return this.axios.get("/invoices",{params:r})}getInvitationDetails(t){return ic.getInvitationDetails(t)}acceptInvitation(t){return ic.acceptInvitation(t)}declineInvitation(t){return ic.declineInvitation(t)}createWorkspacePortalSession(t=null){const r=t?{workspaceId:t}:{};return this.axios.post("/create-portal-session",{},{params:r})}checkSensitiveFeaturePermission(t,r=null){const n={feature:t};return r&&(n.organizationId=r),this.axios.get("/sensitive-feature-permission",{params:n})}getMemberCredits(t){return this.axios.get("/members/credits",{params:{workspaceId:t}})}getGuestApps(t,r){return this.axios.get("/guest-apps",{params:{workspaceId:t,email:r}})}updateMemberCreditLimit(t,r,n){return this.axios.put(`/members/${t}/credit-limit`,{credit_limit:r},{params:{workspaceId:n}})}updateDefaultMemberCreditLimit(t,r){return this.axios.put("/default-credit-limit",{default_credit_limit:t},{params:{workspaceId:r}})}updateDataRegion(t,r){const n=t?{workspaceId:t}:{};return this.axios.put("/data-region",{data_region:r},{params:n})}getAppsDataRegion(t){const r=t?{workspaceId:t}:{};return this.axios.get("/apps-data-region",{params:r})}getDomainVerificationStatus(t){const r={workspaceId:t};return this.axios.get("/domain/verification",{params:r})}initiateDomainVerification(t){const r={workspaceId:t};return this.axios.post("/domain/initiate-verification",{},{params:r})}verifyDomain(t){const r={workspaceId:t};return this.axios.post("/domain/verify",{},{params:r})}resetDomainVerification(t){const r={workspaceId:t};return this.axios.delete("/domain/verification",{params:r})}getEnterprisePaymentLink(t){const r={workspaceId:t};return this.axios.get("/enterprise-payment-link",{params:r})}}const Y9=new H9,Vj=te.createContext();function Qme({children:e}){const{isNativeMobile:t,platform:r}=h1(),n=te.useRef(r);n.current=r;const[i,a]=te.useState(()=>localStorage.getItem("activeWorkspaceId")||null),[s,o]=te.useState([]),[l,c]=te.useState(!0),[p,f]=te.useState(!0),[d,h]=te.useState(!0),[v,x]=te.useState(null),{reloadUser:y,isAuthenticated:m,user:T}=Eq(),A=te.useRef(0),E=te.useMemo(()=>!i||!s.length?null:s.find(D=>D.id===i)||null,[i,s]);te.useEffect(()=>{var D,C;let M=!1;return t&&!i&&((C=(D=n.current).getLatestActiveWorkSpace)==null||C.call(D).then(L=>{!M&&L&&a(L)})),()=>{M=!0}},[t,i]),te.useEffect(()=>{if(nc(()=>i),m){const M=++A.current;y().catch(()=>{}).finally(()=>{A.current===M&&h(!0)})}return()=>{nc(()=>null),m&&y().catch(()=>{})}},[i,m,y]),te.useEffect(()=>{var M,D;t&&i&&((D=(M=n.current).setActiveWorkSpace)==null||D.call(M,{workspaceId:i}))},[i]),te.useEffect(()=>{if(!(T!=null&&T.id)){c(!1);return}const M=localStorage.getItem("activeWorkspaceId");M&&nc(()=>M),c(!1)},[T==null?void 0:T.id]),te.useEffect(()=>{i?localStorage.setItem("activeWorkspaceId"+(T==null?void 0:T.id),i):localStorage.removeItem("activeWorkspaceId"+(T==null?void 0:T.id))},[i,T==null?void 0:T.id]);const P=te.useCallback(async()=>{try{f(!0),x(null);const M=await Y9.getWorkspaces();o(M.workspaces||M||[])}catch(M){x(M),o([])}finally{f(!1)}},[]);te.useEffect(()=>{m&&P()},[P,m]);const _=te.useCallback(M=>{const D=typeof M=="string"?M:M==null?void 0:M.id;a(C=>(C!==D&&h(!1),D)),nc(()=>D),D?localStorage.setItem("activeWorkspaceId",D):localStorage.removeItem("activeWorkspaceId")},[]),I=te.useCallback(()=>{a(null),nc(()=>null),localStorage.removeItem("activeWorkspaceId")},[]);te.useEffect(()=>{!p&&s.length>0&&!E&&_(s[0])},[s,p,E,_]);const k={activeWorkspace:E,activeWorkspaceId:i,isWorkspaceReady:d,workspaces:s,isLoading:l,isLoadingWorkspaces:p,error:v,switchActiveWorkspace:_,clearActiveWorkspace:I,refetchWorkspaces:P};return ce.jsx(Vj.Provider,{value:k,children:e})}function Zme(){const e=te.useContext(Vj);if(e===void 0)throw new Error("useWorkspace must be used within a WorkspaceProvider");return e}var bp={},UA;function X9(){if(UA)return bp;UA=1,bp.match=a,bp.parse=s;var e=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,t=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,r=/^(?:(min|max)-)?(.+)/,n=/(em|rem|px|cm|mm|in|pt|pc)?$/,i=/(dpi|dpcm|dppx)?$/;function a(p,f){return s(p).some(function(d){var h=d.inverse,v=d.type==="all"||f.type===d.type;if(v&&h||!(v||h))return!1;var x=d.expressions.every(function(y){var m=y.feature,T=y.modifier,A=y.value,E=f[m];if(!E)return!1;switch(m){case"orientation":case"scan":return E.toLowerCase()===A.toLowerCase();case"width":case"height":case"device-width":case"device-height":A=c(A),E=c(E);break;case"resolution":A=l(A),E=l(E);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":A=o(A),E=o(E);break;case"grid":case"color":case"color-index":case"monochrome":A=parseInt(A,10)||1,E=parseInt(E,10)||0;break}switch(T){case"min":return E>=A;case"max":return E<=A;default:return E===A}});return x&&!h||!x&&h})}function s(p){return p.split(",").map(function(f){f=f.trim();var d=f.match(e),h=d[1],v=d[2],x=d[3]||"",y={};return y.inverse=!!h&&h.toLowerCase()==="not",y.type=v?v.toLowerCase():"all",x=x.match(/\([^\)]+\)/g)||[],y.expressions=x.map(function(m){var T=m.match(t),A=T[1].toLowerCase().match(r);return{modifier:A[1],feature:A[2],value:T[2]}}),y})}function o(p){var f=Number(p),d;return f||(d=p.match(/^(\d+)\s*\/\s*(\d+)$/),f=d[1]/d[2]),f}function l(p){var f=parseFloat(p),d=String(p).match(i)[1];switch(d){case"dpcm":return f/2.54;case"dppx":return f*96;default:return f}}function c(p){var f=parseFloat(p),d=String(p).match(n)[1];switch(d){case"em":return f*16;case"rem":return f*16;case"cm":return f*96/2.54;case"mm":return f*96/2.54/10;case"in":return f*96;case"pt":return f*72;case"pc":return f*72/12;default:return f}}return bp}var Og,VA;function G9(){if(VA)return Og;VA=1;var e=X9().match,t=typeof window<"u"?window.matchMedia:null;function r(i,a,s){var o=this,l;t&&!s&&(l=t.call(window,i)),l?(this.matches=l.matches,this.media=l.media,l.addListener(f)):(this.matches=e(i,a),this.media=i),this.addListener=c,this.removeListener=p,this.dispose=d;function c(h){l&&l.addListener(h)}function p(h){l&&l.removeListener(h)}function f(h){o.matches=h.matches,o.media=h.media}function d(){l&&l.removeListener(f)}}function n(i,a,s){return new r(i,a,s)}return Og=n,Og}var J9=G9();const Q9=Mt(J9);var Z9=/[A-Z]/g,e7=/^ms-/,Cg={};function t7(e){return"-"+e.toLowerCase()}function Kj(e){if(Cg.hasOwnProperty(e))return Cg[e];var t=e.replace(Z9,t7);return Cg[e]=e7.test(t)?"-"+t:t}function r7(e,t){if(e===t)return!0;if(!e||!t)return!1;const r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(let a=0;a<i;a++){const s=r[a];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var Ig={exports:{}},kg,KA;function n7(){if(KA)return kg;KA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return kg=e,kg}var Ng,zA;function i7(){if(zA)return Ng;zA=1;var e=n7();function t(){}function r(){}return r.resetWarningCache=t,Ng=function(){function n(s,o,l,c,p,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Ng}var WA;function a7(){return WA||(WA=1,Ig.exports=i7()()),Ig.exports}var s7=a7();const ht=Mt(s7),Kr=ht.oneOfType([ht.string,ht.number]),zj={all:ht.bool,grid:ht.bool,aural:ht.bool,braille:ht.bool,handheld:ht.bool,print:ht.bool,projection:ht.bool,screen:ht.bool,tty:ht.bool,tv:ht.bool,embossed:ht.bool},o7={orientation:ht.oneOf(["portrait","landscape"]),scan:ht.oneOf(["progressive","interlace"]),aspectRatio:ht.string,deviceAspectRatio:ht.string,height:Kr,deviceHeight:Kr,width:Kr,deviceWidth:Kr,color:ht.bool,colorIndex:ht.bool,monochrome:ht.bool,resolution:Kr,type:Object.keys(zj)},{type:eye,...l7}=o7,u7={minAspectRatio:ht.string,maxAspectRatio:ht.string,minDeviceAspectRatio:ht.string,maxDeviceAspectRatio:ht.string,minHeight:Kr,maxHeight:Kr,minDeviceHeight:Kr,maxDeviceHeight:Kr,minWidth:Kr,maxWidth:Kr,minDeviceWidth:Kr,maxDeviceWidth:Kr,minColor:ht.number,maxColor:ht.number,minColorIndex:ht.number,maxColorIndex:ht.number,minMonochrome:ht.number,maxMonochrome:ht.number,minResolution:Kr,maxResolution:Kr,...l7},c7={...zj,...u7};var f7={all:c7};const p7=e=>`not ${e}`,d7=(e,t)=>{const r=Kj(e);return typeof t=="number"&&(t=`${t}px`),t===!0?r:t===!1?p7(r):`(${r}: ${t})`},h7=e=>e.join(" and "),m7=e=>{const t=[];return Object.keys(f7.all).forEach(r=>{const n=e[r];n!=null&&t.push(d7(r,n))}),h7(t)},y7=te.createContext(void 0),g7=e=>e.query||m7(e),HA=e=>e?Object.keys(e).reduce((r,n)=>(r[Kj(n)]=e[n],r),{}):void 0,Wj=()=>{const e=te.useRef(!1);return te.useEffect(()=>{e.current=!0},[]),e.current},v7=e=>{const t=te.useContext(y7),r=()=>HA(e)||HA(t),[n,i]=te.useState(r);return te.useEffect(()=>{const a=r();r7(n,a)||i(a)},[e,t]),n},b7=e=>{const t=()=>g7(e),[r,n]=te.useState(t);return te.useEffect(()=>{const i=t();r!==i&&n(i)},[e]),r},x7=(e,t)=>{const r=()=>Q9(e,t||{},!!t),[n,i]=te.useState(r),a=Wj();return te.useEffect(()=>{if(a){const s=r();return i(s),()=>{s&&s.dispose()}}},[e,t]),n},T7=e=>{const[t,r]=te.useState(e.matches);return te.useEffect(()=>{const n=i=>{r(i.matches)};return e.addListener(n),r(e.matches),()=>{e.removeListener(n)}},[e]),t},S7=(e,t,r)=>{const n=v7(t),i=b7(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=x7(i,n),s=T7(a);return Wj(),te.useEffect(()=>{},[s]),te.useEffect(()=>()=>{a&&a.dispose()},[]),s};function Hj(){return S7({maxWidth:767})}function tye(){const e=Hj(),{isNativeMobile:t}=h1();return e||t}function rye(){const{isNativeMobile:e}=h1();if(e)return!0;if(typeof navigator>"u")return!1;const t=navigator.userAgent,r=/iPhone|iPad|iPod/i.test(t),n=/Macintosh/i.test(t)&&navigator.maxTouchPoints>1;return r||n}function nye(){const{isIOS:e,isAndroid:t}=Pq(),r=Hj();return te.useMemo(()=>e?{platform:"mobile_app_ios",isNativeApp:!0,isMobile:!0,isDesktop:!1}:t?{platform:"mobile_app_android",isNativeApp:!0,isMobile:!0,isDesktop:!1}:r?{platform:"mobile_web",isNativeApp:!1,isMobile:!0,isDesktop:!1}:{platform:"desktop_web",isNativeApp:!1,isMobile:!1,isDesktop:!0},[e,t,r])}function E7({appId:e,conversationId:t,agentName:r,hasFiles:n=!1}){ej("App Agent: Message Received",{app_id:e,conversation_id:t,agent_name:r,has_files:n})}function P7({appId:e,conversationId:t,agentName:r,messageId:n=null}){ej("App Agent: Message Sent",{app_id:e,conversation_id:t,agent_name:r,message_id:n})}const wl={},Tl={},YA=(e,t)=>{var r;return(t==null?void 0:t.agent_name)||((r=wl[e])==null?void 0:r.agent_name)||null},XA=e=>(e!=null&&e.id&&(wl[e.id]=e,Tl[e.id]=new Set((e.messages||[]).filter(t=>(t==null?void 0:t.role)==="assistant"&&(t==null?void 0:t.id)&&String((t==null?void 0:t.content)||"").trim()).map(t=>String(t.id)))),e),A7=(e,t)=>{if(!(t!=null&&t.id)||(t==null?void 0:t.role)!=="assistant"||!String((t==null?void 0:t.content)||"").trim())return!1;Tl[e]??(Tl[e]=new Set);const r=String(t.id);return Tl[e].has(r)?!1:(Tl[e].add(r),!0)};function GA(e){try{e()}catch{}}function iye(e,t,r,n={}){const{trackRuntimeAnalytics:i=!1}=n;class a extends p1{constructor(){super(),this.socketManager=z9(e,t),this.axios.interceptors.response.use(o=>o,o=>{var l,c;return r(((c=(l=o.response)==null?void 0:l.data)==null?void 0:c.message)||o.message),Promise.reject(o)})}getClient(){return t?Yc(this.getBaseURL(),{Authorization:`Bearer ${t}`}):super.getClient()}getBaseURL(){return fh()+`/apps/${e}/agents`}getConversations(){return this.axios.get("/conversations")}getConversation(o){return this.axios.get(`/conversations/${o}`).then(XA)}listConversations(o){return this.axios.get("/conversations",{params:o})}createConversation(o){return this.axios.post("/conversations",o).then(XA)}async addMessage(o,l){var p;let c;try{c=await this.getClient().post(`/conversations/v2/${o.id}/messages`,l)}catch(f){const d=(p=f==null?void 0:f.response)==null?void 0:p.status;if(d&&d>=400&&d<500)throw f;await this.refreshConversation(o.id),c=await this.axios.post(`/conversations/v2/${o.id}/messages`,l)}return i&&GA(()=>{var f;E7({appId:e,conversationId:o.id,agentName:YA(o.id,o),hasFiles:!!((f=l==null?void 0:l.file_urls)!=null&&f.length)})}),c}getMemoryItems(o){return this.axios.get(`/${encodeURIComponent(o)}/memory`)}deleteMemoryItem(o,l){return this.axios.delete(`/${encodeURIComponent(o)}/memory/${encodeURIComponent(l)}`)}getWhatsAppConnectURL(o){const c=`${Uj()}/api/apps/${e}/agents/${encodeURIComponent(o)}/whatsapp`,p=t??NA.getToken();return p?`${c}?token=${p}`:c}_getAppClient(){const o=fh()+`/apps/${e}`,l=t??NA.getToken();return l?Yc(o,{Authorization:`Bearer ${l}`}):Yc(o)}setupTelegram(o){return this._getAppClient().post("/telegram/setup",{bot_token:o})}getTelegramStatus(){return this._getAppClient().get("/telegram/status")}disconnectTelegram(){return this._getAppClient().delete("/telegram/disconnect")}getManagedBotSupported(){return this._getAppClient().get("/telegram/managed-bot/supported")}createManagedBot({agentDisplayName:o,agentProfilePhotoUrl:l}={}){return this._getAppClient().post("/telegram/managed-bot/create",{agent_display_name:o||"",agent_profile_photo_url:l||""})}getManagedBotStatus(o){return this._getAppClient().get(`/telegram/managed-bot/status/${o}`)}async generateLineCode(){return await this._getAppClient().post("/line/generate-code")}async generateIMessageCode(){return await this._getAppClient().post("/imessage/generate-code")}getIMessageStatus(){return this._getAppClient().get("/imessage/status")}addOptimisticMessage(o,l){const c=wl[o];if(c){const p={...c,messages:[...c.messages||[],l]};wl[o]=p}}refreshConversation(o){return this.getConversation(o)}subscribeToConversation(o,l){const c=this.getConversation(o);return this.socketManager.addListener(`/agent-conversations/${o}`,async p=>{if(await c,!p._message)return;const f=p._message,d=wl[o],h=d.messages.findIndex(y=>y.id===f.id),v=h>=0?d.messages.map((y,m)=>m===h?f:y):[...d.messages,f],x={...d,messages:v};wl[o]=x,i&&A7(o,f)&&GA(()=>{P7({appId:e,conversationId:o,agentName:YA(o,x),messageId:f.id})}),l(x)})}}return new a}var rh={exports:{}},w7=rh.exports,JA;function _7(){return JA||(JA=1,(function(e,t){(function(r,n){e.exports=n()})(w7,(function(){const r=/^[\w+.-]+:\/\//,n=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function a(T){return r.test(T)}function s(T){return T.startsWith("//")}function o(T){return T.startsWith("/")}function l(T){return T.startsWith("file:")}function c(T){return/^[.?#]/.test(T)}function p(T){const A=n.exec(T);return d(A[1],A[2]||"",A[3],A[4]||"",A[5]||"/",A[6]||"",A[7]||"")}function f(T){const A=i.exec(T),E=A[2];return d("file:","",A[1]||"","",o(E)?E:"/"+E,A[3]||"",A[4]||"")}function d(T,A,E,P,_,I,k){return{scheme:T,user:A,host:E,port:P,path:_,query:I,hash:k,type:7}}function h(T){if(s(T)){const E=p("http:"+T);return E.scheme="",E.type=6,E}if(o(T)){const E=p("http://foo.com"+T);return E.scheme="",E.host="",E.type=5,E}if(l(T))return f(T);if(a(T))return p(T);const A=p("http://foo.com/"+T);return A.scheme="",A.host="",A.type=T?T.startsWith("?")?3:T.startsWith("#")?2:4:1,A}function v(T){if(T.endsWith("/.."))return T;const A=T.lastIndexOf("/");return T.slice(0,A+1)}function x(T,A){y(A,A.type),T.path==="/"?T.path=A.path:T.path=v(A.path)+T.path}function y(T,A){const E=A<=4,P=T.path.split("/");let _=1,I=0,k=!1;for(let D=1;D<P.length;D++){const C=P[D];if(!C){k=!0;continue}if(k=!1,C!=="."){if(C===".."){I?(k=!0,I--,_--):E&&(P[_++]=C);continue}P[_++]=C,I++}}let M="";for(let D=1;D<_;D++)M+="/"+P[D];(!M||k&&!M.endsWith("/.."))&&(M+="/"),T.path=M}function m(T,A){if(!T&&!A)return"";const E=h(T);let P=E.type;if(A&&P!==7){const I=h(A),k=I.type;switch(P){case 1:E.hash=I.hash;case 2:E.query=I.query;case 3:case 4:x(E,I);case 5:E.user=I.user,E.host=I.host,E.port=I.port;case 6:E.scheme=I.scheme}k>P&&(P=k)}y(E,P);const _=E.query+E.hash;switch(P){case 2:case 3:return _;case 4:{const I=E.path.slice(1);return I?c(A||T)&&!c(I)?"./"+I+_:I+_:_||"."}case 5:return E.path+_;default:return E.scheme+"//"+E.user+E.host+E.port+E.path+_}}return m}))})(rh)),rh.exports}var Dg={},Ht={},xp={},ac={},Qn={},kt={},QA;function Yj(){return QA||(QA=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.Var=kt.User=kt.Statement=kt.SpreadProperty=kt.Scope=kt.RestProperty=kt.ReferencedMemberExpression=kt.ReferencedIdentifier=kt.Referenced=kt.Pure=kt.NumericLiteralTypeAnnotation=kt.Generated=kt.ForAwaitStatement=kt.Flow=kt.Expression=kt.ExistentialTypeParam=kt.BlockScoped=kt.BindingIdentifier=void 0,kt.ReferencedIdentifier=["Identifier","JSXIdentifier"],kt.ReferencedMemberExpression=["MemberExpression"],kt.BindingIdentifier=["Identifier"],kt.Statement=["Statement"],kt.Expression=["Expression"],kt.Scope=["Scopable","Pattern"],kt.Referenced=null,kt.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],kt.Var=["VariableDeclaration"],kt.User=null,kt.Generated=null,kt.Pure=null,kt.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],kt.RestProperty=["RestElement"],kt.SpreadProperty=["RestElement"],kt.ExistentialTypeParam=["ExistsTypeAnnotation"],kt.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],kt.ForAwaitStatement=["ForOfStatement"]),kt}var Tp={exports:{}},Mg,ZA;function O7(){if(ZA)return Mg;ZA=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,a=n*365.25;Mg=function(p,f){f=f||{};var d=typeof p;if(d==="string"&&p.length>0)return s(p);if(d==="number"&&isFinite(p))return f.long?l(p):o(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function s(p){if(p=String(p),!(p.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(f){var d=parseFloat(f[1]),h=(f[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return d*a;case"weeks":case"week":case"w":return d*i;case"days":case"day":case"d":return d*n;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function o(p){var f=Math.abs(p);return f>=n?Math.round(p/n)+"d":f>=r?Math.round(p/r)+"h":f>=t?Math.round(p/t)+"m":f>=e?Math.round(p/e)+"s":p+"ms"}function l(p){var f=Math.abs(p);return f>=n?c(p,f,n,"day"):f>=r?c(p,f,r,"hour"):f>=t?c(p,f,t,"minute"):f>=e?c(p,f,e,"second"):p+" ms"}function c(p,f,d,h){var v=f>=d*1.5;return Math.round(p/d)+" "+h+(v?"s":"")}return Mg}var Lg,ew;function C7(){if(ew)return Lg;ew=1;function e(t){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=a,n.enabled=l,n.humanize=O7(),n.destroy=p,Object.keys(t).forEach(f=>{n[f]=t[f]}),n.names=[],n.skips=[],n.formatters={};function r(f){let d=0;for(let h=0;h<f.length;h++)d=(d<<5)-d+f.charCodeAt(h),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=r;function n(f){let d,h=null,v,x;function y(...m){if(!y.enabled)return;const T=y,A=Number(new Date),E=A-(d||A);T.diff=E,T.prev=d,T.curr=A,d=A,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let P=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(I,k)=>{if(I==="%%")return"%";P++;const M=n.formatters[k];if(typeof M=="function"){const D=m[P];I=M.call(T,D),m.splice(P,1),P--}return I}),n.formatArgs.call(T,m),(T.log||n.log).apply(T,m)}return y.namespace=f,y.useColors=n.useColors(),y.color=n.selectColor(f),y.extend=i,y.destroy=n.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(v!==n.namespaces&&(v=n.namespaces,x=n.enabled(f)),x),set:m=>{h=m}}),typeof n.init=="function"&&n.init(y),y}function i(f,d){const h=n(this.namespace+(typeof d>"u"?":":d)+f);return h.log=this.log,h}function a(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];const d=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const h of d)h[0]==="-"?n.skips.push(h.slice(1)):n.names.push(h)}function s(f,d){let h=0,v=0,x=-1,y=0;for(;h<f.length;)if(v<d.length&&(d[v]===f[h]||d[v]==="*"))d[v]==="*"?(x=v,y=h,v++):(h++,v++);else if(x!==-1)v=x+1,y++,h=y;else return!1;for(;v<d.length&&d[v]==="*";)v++;return v===d.length}function o(){const f=[...n.names,...n.skips.map(d=>"-"+d)].join(",");return n.enable(""),f}function l(f){for(const d of n.skips)if(s(f,d))return!1;for(const d of n.names)if(s(f,d))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function p(){}return n.enable(n.load()),n}return Lg=e,Lg}var tw;function I7(){return tw||(tw=1,(function(e,t){var r={};t.formatArgs=i,t.save=a,t.load=s,t.useColors=n,t.storage=o(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0)}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const p="color: "+this.color;c.splice(1,0,p,"color: inherit");let f=0,d=0;c[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(f++,h==="%c"&&(d=f))}),c.splice(d,0,p)}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function s(){let c;try{c=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=r.DEBUG),c}function o(){try{return localStorage}catch{}}e.exports=C7()(t);const{formatters:l}=e.exports;l.j=function(c){try{return JSON.stringify(c)}catch(p){return"[UnexpectedJSONParseError]: "+p.message}}})(Tp,Tp.exports)),Tp.exports}var sc={},oc={},jg={},lc={},Sp={},Ep={},ge={},Pp={},rw;function P1(){if(rw)return Pp;rw=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.default=e;function e(t,r){const n=Object.keys(r);for(const i of n)if(t[i]!==r[i])return!1;return!0}return Pp}var Ap={},nw;function Jf(){if(nw)return Ap;nw=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=t;const e=new Set;function t(n,i,a="",s=n){if(e.has(s))return;e.add(s);const{internal:o,trace:l}=r(1,2)}function r(n,i){const{stackTraceLimit:a,prepareStackTrace:s}=Error;let o;if(Error.stackTraceLimit=1+n+i,Error.prepareStackTrace=function(c,p){o=p},new Error().stack,Error.stackTraceLimit=a,Error.prepareStackTrace=s,!o)return{internal:!1,trace:""};const l=o.slice(1+n,1+n+i);return{internal:/[\\/]@babel[\\/]/.test(l[1].getFileName()),trace:l.map(c=>` at ${c}`).join(`
`)}}return Ap}var iw;function dr(){if(iw)return ge;iw=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.isAccessor=rg,ge.isAnyTypeAnnotation=zn,ge.isArgumentPlaceholder=go,ge.isArrayExpression=r,ge.isArrayPattern=re,ge.isArrayTypeAnnotation=ot,ge.isArrowFunctionExpression=ue,ge.isAssignmentExpression=n,ge.isAssignmentPattern=je,ge.isAwaitExpression=Ee,ge.isBigIntLiteral=it,ge.isBinary=Qu,ge.isBinaryExpression=i,ge.isBindExpression=vo,ge.isBlock=tc,ge.isBlockParent=ec,ge.isBlockStatement=l,ge.isBooleanLiteral=q,ge.isBooleanLiteralTypeAnnotation=Hn,ge.isBooleanTypeAnnotation=Wn,ge.isBreakStatement=c,ge.isCallExpression=p,ge.isCatchClause=f,ge.isClass=Zy,ge.isClassAccessorProperty=lr,ge.isClassBody=Te,ge.isClassDeclaration=Oe,ge.isClassExpression=ke,ge.isClassImplements=ci,ge.isClassMethod=gt,ge.isClassPrivateMethod=mr,ge.isClassPrivateProperty=hr,ge.isClassProperty=Ut,ge.isCompletionStatement=W,ge.isConditional=Y,ge.isConditionalExpression=d,ge.isContinueStatement=h,ge.isDebuggerStatement=v,ge.isDecimalLiteral=So,ge.isDeclaration=qy,ge.isDeclareClass=Yn,ge.isDeclareExportAllDeclaration=js,ge.isDeclareExportDeclaration=Ri,ge.isDeclareFunction=$r,ge.isDeclareInterface=Cn,ge.isDeclareModule=fi,ge.isDeclareModuleExports=fn,ge.isDeclareOpaqueType=ga,ge.isDeclareTypeAlias=Ur,ge.isDeclareVariable=ji,ge.isDeclaredPredicate=pn,ge.isDecorator=Ki,ge.isDirective=s,ge.isDirectiveLiteral=o,ge.isDoExpression=bo,ge.isDoWhileStatement=x,ge.isEmptyStatement=y,ge.isEmptyTypeAnnotation=Xn,ge.isEnumBody=ug,ge.isEnumBooleanBody=yi,ge.isEnumBooleanMember=no,ge.isEnumDeclaration=mi,ge.isEnumDefaultedMember=Aa,ge.isEnumMember=cg,ge.isEnumNumberBody=qi,ge.isEnumNumberMember=Ui,ge.isEnumStringBody=ro,ge.isEnumStringMember=io,ge.isEnumSymbolBody=$i,ge.isExistsTypeAnnotation=Jr,ge.isExportAllDeclaration=Me,ge.isExportDeclaration=eg,ge.isExportDefaultDeclaration=Ke,ge.isExportDefaultSpecifier=xo,ge.isExportNamedDeclaration=_e,ge.isExportNamespaceSpecifier=st,ge.isExportSpecifier=pe,ge.isExpression=Ju,ge.isExpressionStatement=m,ge.isExpressionWrapper=Fe,ge.isFile=T,ge.isFlow=ig,ge.isFlowBaseAnnotation=sg,ge.isFlowDeclaration=og,ge.isFlowPredicate=lg,ge.isFlowType=ag,ge.isFor=pt,ge.isForInStatement=A,ge.isForOfStatement=ne,ge.isForStatement=E,ge.isForXStatement=Vt,ge.isFunction=ur,ge.isFunctionDeclaration=P,ge.isFunctionExpression=_,ge.isFunctionParameter=$y,ge.isFunctionParent=kn,ge.isFunctionTypeAnnotation=In,ge.isFunctionTypeParam=Rs,ge.isGenericTypeAnnotation=Bs,ge.isIdentifier=I,ge.isIfStatement=k,ge.isImmutable=Wy,ge.isImport=Xe,ge.isImportAttribute=Gr,ge.isImportDeclaration=me,ge.isImportDefaultSpecifier=Ie,ge.isImportExpression=We,ge.isImportNamespaceSpecifier=De,ge.isImportOrExportDeclaration=vp,ge.isImportSpecifier=Ue,ge.isIndexedAccessType=ut,ge.isInferredPredicate=Fs,ge.isInterfaceDeclaration=pi,ge.isInterfaceExtends=qs,ge.isInterfaceTypeAnnotation=$s,ge.isInterpreterDirective=a,ge.isIntersectionTypeAnnotation=va,ge.isJSX=fg,ge.isJSXAttribute=wa,ge.isJSXClosingElement=so,ge.isJSXClosingFragment=Na,ge.isJSXElement=oo,ge.isJSXEmptyExpression=lo,ge.isJSXExpressionContainer=uo,ge.isJSXFragment=ka,ge.isJSXIdentifier=co,ge.isJSXMemberExpression=Oa,ge.isJSXNamespacedName=Ca,ge.isJSXOpeningElement=fo,ge.isJSXOpeningFragment=ho,ge.isJSXSpreadAttribute=po,ge.isJSXSpreadChild=_a,ge.isJSXText=Ia,ge.isLVal=Vy,ge.isLabeledStatement=M,ge.isLiteral=zy,ge.isLogicalExpression=z,ge.isLoop=oe,ge.isMemberExpression=Q,ge.isMetaProperty=lt,ge.isMethod=Yy,ge.isMiscellaneous=pg,ge.isMixedTypeAnnotation=Us,ge.isModuleDeclaration=Tg,ge.isModuleExpression=Eo,ge.isModuleSpecifier=tg,ge.isNewExpression=V,ge.isNoop=mo,ge.isNullLiteral=L,ge.isNullLiteralTypeAnnotation=Li,ge.isNullableTypeAnnotation=jr,ge.isNumberLiteral=gg,ge.isNumberLiteralTypeAnnotation=Vs,ge.isNumberTypeAnnotation=Bi,ge.isNumericLiteral=C,ge.isObjectExpression=U,ge.isObjectMember=Xy,ge.isObjectMethod=N,ge.isObjectPattern=Ge,ge.isObjectProperty=j,ge.isObjectTypeAnnotation=Ks,ge.isObjectTypeCallProperty=di,ge.isObjectTypeIndexer=xa,ge.isObjectTypeInternalSlot=ba,ge.isObjectTypeProperty=zs,ge.isObjectTypeSpreadProperty=Ws,ge.isOpaqueType=Fi,ge.isOptionalCallExpression=Tt,ge.isOptionalIndexedAccessType=ao,ge.isOptionalMemberExpression=mt,ge.isParenthesizedExpression=se,ge.isPattern=Qy,ge.isPatternLike=Uy,ge.isPipelineBareFunction=Ma,ge.isPipelinePrimaryTopicReference=Ao,ge.isPipelineTopicExpression=Jn,ge.isPlaceholder=yo,ge.isPrivate=ng,ge.isPrivateName=yr,ge.isProgram=X,ge.isProperty=Gy,ge.isPureish=Fy,ge.isQualifiedTypeIdentifier=Ta,ge.isRecordExpression=Da,ge.isRegExpLiteral=$,ge.isRegexLiteral=vg,ge.isRestElement=F,ge.isRestProperty=bg,ge.isReturnStatement=R,ge.isScopable=Zu,ge.isSequenceExpression=J,ge.isSpreadElement=vt,ge.isSpreadProperty=xg,ge.isStandardized=Gu,ge.isStatement=rc,ge.isStaticBlock=Mr,ge.isStringLiteral=D,ge.isStringLiteralTypeAnnotation=Sa,ge.isStringTypeAnnotation=Gn,ge.isSuper=Le,ge.isSwitchCase=ie,ge.isSwitchStatement=ae,ge.isSymbolTypeAnnotation=Hs,ge.isTSAnyKeyword=Ne,ge.isTSArrayType=Ka,ge.isTSAsExpression=cs,ge.isTSBaseType=yg,ge.isTSBigIntKeyword=Qe,ge.isTSBooleanKeyword=Ve,ge.isTSCallSignatureDeclaration=B,ge.isTSConditionalType=Ja,ge.isTSConstructSignatureDeclaration=ee,ge.isTSConstructorType=Fa,ge.isTSDeclareFunction=u,ge.isTSDeclareMethod=b,ge.isTSEntityName=Ky,ge.isTSEnumBody=Lu,ge.isTSEnumDeclaration=ju,ge.isTSEnumMember=Ru,ge.isTSExportAssignment=Ku,ge.isTSExpressionWithTypeArguments=as,ge.isTSExternalModuleReference=Uu,ge.isTSFunctionType=Ba,ge.isTSImportEqualsDeclaration=$u,ge.isTSImportType=qu,ge.isTSIndexSignature=we,ge.isTSIndexedAccessType=ts,ge.isTSInferType=Qa,ge.isTSInstantiationExpression=us,ge.isTSInterfaceBody=os,ge.isTSInterfaceDeclaration=ss,ge.isTSIntersectionType=Ga,ge.isTSIntrinsicKeyword=tt,ge.isTSLiteralType=is,ge.isTSMappedType=rs,ge.isTSMethodSignature=be,ge.isTSModuleBlock=Fu,ge.isTSModuleDeclaration=Bu,ge.isTSNamedTupleMember=Ya,ge.isTSNamespaceExportDeclaration=zu,ge.isTSNeverKeyword=ct,ge.isTSNonNullExpression=Vu,ge.isTSNullKeyword=Ct,ge.isTSNumberKeyword=Rt,ge.isTSObjectKeyword=bt,ge.isTSOptionalType=Wa,ge.isTSParameterProperty=g,ge.isTSParenthesizedType=Za,ge.isTSPropertySignature=le,ge.isTSQualifiedName=w,ge.isTSRestType=Ha,ge.isTSSatisfiesExpression=Du,ge.isTSStringKeyword=jt,ge.isTSSymbolKeyword=dn,ge.isTSTemplateLiteralType=ns,ge.isTSThisType=Ra,ge.isTSTupleType=za,ge.isTSType=mg,ge.isTSTypeAliasDeclaration=ls,ge.isTSTypeAnnotation=Wu,ge.isTSTypeAssertion=Mu,ge.isTSTypeElement=hg,ge.isTSTypeLiteral=Va,ge.isTSTypeOperator=es,ge.isTSTypeParameter=Xu,ge.isTSTypeParameterDeclaration=Yu,ge.isTSTypeParameterInstantiation=Hu,ge.isTSTypePredicate=$a,ge.isTSTypeQuery=Ua,ge.isTSTypeReference=qa,ge.isTSUndefinedKeyword=Zr,ge.isTSUnionType=Xa,ge.isTSUnknownKeyword=La,ge.isTSVoidKeyword=ja,ge.isTaggedTemplateExpression=qe,ge.isTemplateElement=he,ge.isTemplateLiteral=$e,ge.isTerminatorless=K,ge.isThisExpression=fe,ge.isThisTypeAnnotation=Qr,ge.isThrowStatement=de,ge.isTopicReference=Po,ge.isTryStatement=Se,ge.isTupleExpression=To,ge.isTupleTypeAnnotation=Ys,ge.isTypeAlias=Gs,ge.isTypeAnnotation=hi,ge.isTypeCastExpression=Ea,ge.isTypeParameter=Js,ge.isTypeParameterDeclaration=Qs,ge.isTypeParameterInstantiation=Zs,ge.isTypeScript=dg,ge.isTypeofTypeAnnotation=Xs,ge.isUnaryExpression=Ce,ge.isUnaryLike=Jy,ge.isUnionTypeAnnotation=eo,ge.isUpdateExpression=xe,ge.isUserWhitespacable=Hy,ge.isV8IntrinsicIdentifier=Vi,ge.isVariableDeclaration=Be,ge.isVariableDeclarator=Re,ge.isVariance=Pa,ge.isVoidPattern=G,ge.isVoidTypeAnnotation=to,ge.isWhile=Ae,ge.isWhileStatement=He,ge.isWithStatement=ze,ge.isYieldExpression=Ze;var e=P1(),t=Jf();function r(O,S){return!O||O.type!=="ArrayExpression"?!1:S==null||(0,e.default)(O,S)}function n(O,S){return!O||O.type!=="AssignmentExpression"?!1:S==null||(0,e.default)(O,S)}function i(O,S){return!O||O.type!=="BinaryExpression"?!1:S==null||(0,e.default)(O,S)}function a(O,S){return!O||O.type!=="InterpreterDirective"?!1:S==null||(0,e.default)(O,S)}function s(O,S){return!O||O.type!=="Directive"?!1:S==null||(0,e.default)(O,S)}function o(O,S){return!O||O.type!=="DirectiveLiteral"?!1:S==null||(0,e.default)(O,S)}function l(O,S){return!O||O.type!=="BlockStatement"?!1:S==null||(0,e.default)(O,S)}function c(O,S){return!O||O.type!=="BreakStatement"?!1:S==null||(0,e.default)(O,S)}function p(O,S){return!O||O.type!=="CallExpression"?!1:S==null||(0,e.default)(O,S)}function f(O,S){return!O||O.type!=="CatchClause"?!1:S==null||(0,e.default)(O,S)}function d(O,S){return!O||O.type!=="ConditionalExpression"?!1:S==null||(0,e.default)(O,S)}function h(O,S){return!O||O.type!=="ContinueStatement"?!1:S==null||(0,e.default)(O,S)}function v(O,S){return!O||O.type!=="DebuggerStatement"?!1:S==null||(0,e.default)(O,S)}function x(O,S){return!O||O.type!=="DoWhileStatement"?!1:S==null||(0,e.default)(O,S)}function y(O,S){return!O||O.type!=="EmptyStatement"?!1:S==null||(0,e.default)(O,S)}function m(O,S){return!O||O.type!=="ExpressionStatement"?!1:S==null||(0,e.default)(O,S)}function T(O,S){return!O||O.type!=="File"?!1:S==null||(0,e.default)(O,S)}function A(O,S){return!O||O.type!=="ForInStatement"?!1:S==null||(0,e.default)(O,S)}function E(O,S){return!O||O.type!=="ForStatement"?!1:S==null||(0,e.default)(O,S)}function P(O,S){return!O||O.type!=="FunctionDeclaration"?!1:S==null||(0,e.default)(O,S)}function _(O,S){return!O||O.type!=="FunctionExpression"?!1:S==null||(0,e.default)(O,S)}function I(O,S){return!O||O.type!=="Identifier"?!1:S==null||(0,e.default)(O,S)}function k(O,S){return!O||O.type!=="IfStatement"?!1:S==null||(0,e.default)(O,S)}function M(O,S){return!O||O.type!=="LabeledStatement"?!1:S==null||(0,e.default)(O,S)}function D(O,S){return!O||O.type!=="StringLiteral"?!1:S==null||(0,e.default)(O,S)}function C(O,S){return!O||O.type!=="NumericLiteral"?!1:S==null||(0,e.default)(O,S)}function L(O,S){return!O||O.type!=="NullLiteral"?!1:S==null||(0,e.default)(O,S)}function q(O,S){return!O||O.type!=="BooleanLiteral"?!1:S==null||(0,e.default)(O,S)}function $(O,S){return!O||O.type!=="RegExpLiteral"?!1:S==null||(0,e.default)(O,S)}function z(O,S){return!O||O.type!=="LogicalExpression"?!1:S==null||(0,e.default)(O,S)}function Q(O,S){return!O||O.type!=="MemberExpression"?!1:S==null||(0,e.default)(O,S)}function V(O,S){return!O||O.type!=="NewExpression"?!1:S==null||(0,e.default)(O,S)}function X(O,S){return!O||O.type!=="Program"?!1:S==null||(0,e.default)(O,S)}function U(O,S){return!O||O.type!=="ObjectExpression"?!1:S==null||(0,e.default)(O,S)}function N(O,S){return!O||O.type!=="ObjectMethod"?!1:S==null||(0,e.default)(O,S)}function j(O,S){return!O||O.type!=="ObjectProperty"?!1:S==null||(0,e.default)(O,S)}function F(O,S){return!O||O.type!=="RestElement"?!1:S==null||(0,e.default)(O,S)}function R(O,S){return!O||O.type!=="ReturnStatement"?!1:S==null||(0,e.default)(O,S)}function J(O,S){return!O||O.type!=="SequenceExpression"?!1:S==null||(0,e.default)(O,S)}function se(O,S){return!O||O.type!=="ParenthesizedExpression"?!1:S==null||(0,e.default)(O,S)}function ie(O,S){return!O||O.type!=="SwitchCase"?!1:S==null||(0,e.default)(O,S)}function ae(O,S){return!O||O.type!=="SwitchStatement"?!1:S==null||(0,e.default)(O,S)}function fe(O,S){return!O||O.type!=="ThisExpression"?!1:S==null||(0,e.default)(O,S)}function de(O,S){return!O||O.type!=="ThrowStatement"?!1:S==null||(0,e.default)(O,S)}function Se(O,S){return!O||O.type!=="TryStatement"?!1:S==null||(0,e.default)(O,S)}function Ce(O,S){return!O||O.type!=="UnaryExpression"?!1:S==null||(0,e.default)(O,S)}function xe(O,S){return!O||O.type!=="UpdateExpression"?!1:S==null||(0,e.default)(O,S)}function Be(O,S){return!O||O.type!=="VariableDeclaration"?!1:S==null||(0,e.default)(O,S)}function Re(O,S){return!O||O.type!=="VariableDeclarator"?!1:S==null||(0,e.default)(O,S)}function He(O,S){return!O||O.type!=="WhileStatement"?!1:S==null||(0,e.default)(O,S)}function ze(O,S){return!O||O.type!=="WithStatement"?!1:S==null||(0,e.default)(O,S)}function je(O,S){return!O||O.type!=="AssignmentPattern"?!1:S==null||(0,e.default)(O,S)}function re(O,S){return!O||O.type!=="ArrayPattern"?!1:S==null||(0,e.default)(O,S)}function ue(O,S){return!O||O.type!=="ArrowFunctionExpression"?!1:S==null||(0,e.default)(O,S)}function Te(O,S){return!O||O.type!=="ClassBody"?!1:S==null||(0,e.default)(O,S)}function ke(O,S){return!O||O.type!=="ClassExpression"?!1:S==null||(0,e.default)(O,S)}function Oe(O,S){return!O||O.type!=="ClassDeclaration"?!1:S==null||(0,e.default)(O,S)}function Me(O,S){return!O||O.type!=="ExportAllDeclaration"?!1:S==null||(0,e.default)(O,S)}function Ke(O,S){return!O||O.type!=="ExportDefaultDeclaration"?!1:S==null||(0,e.default)(O,S)}function _e(O,S){return!O||O.type!=="ExportNamedDeclaration"?!1:S==null||(0,e.default)(O,S)}function pe(O,S){return!O||O.type!=="ExportSpecifier"?!1:S==null||(0,e.default)(O,S)}function ne(O,S){return!O||O.type!=="ForOfStatement"?!1:S==null||(0,e.default)(O,S)}function me(O,S){return!O||O.type!=="ImportDeclaration"?!1:S==null||(0,e.default)(O,S)}function Ie(O,S){return!O||O.type!=="ImportDefaultSpecifier"?!1:S==null||(0,e.default)(O,S)}function De(O,S){return!O||O.type!=="ImportNamespaceSpecifier"?!1:S==null||(0,e.default)(O,S)}function Ue(O,S){return!O||O.type!=="ImportSpecifier"?!1:S==null||(0,e.default)(O,S)}function We(O,S){return!O||O.type!=="ImportExpression"?!1:S==null||(0,e.default)(O,S)}function lt(O,S){return!O||O.type!=="MetaProperty"?!1:S==null||(0,e.default)(O,S)}function gt(O,S){return!O||O.type!=="ClassMethod"?!1:S==null||(0,e.default)(O,S)}function Ge(O,S){return!O||O.type!=="ObjectPattern"?!1:S==null||(0,e.default)(O,S)}function vt(O,S){return!O||O.type!=="SpreadElement"?!1:S==null||(0,e.default)(O,S)}function Le(O,S){return!O||O.type!=="Super"?!1:S==null||(0,e.default)(O,S)}function qe(O,S){return!O||O.type!=="TaggedTemplateExpression"?!1:S==null||(0,e.default)(O,S)}function he(O,S){return!O||O.type!=="TemplateElement"?!1:S==null||(0,e.default)(O,S)}function $e(O,S){return!O||O.type!=="TemplateLiteral"?!1:S==null||(0,e.default)(O,S)}function Ze(O,S){return!O||O.type!=="YieldExpression"?!1:S==null||(0,e.default)(O,S)}function Ee(O,S){return!O||O.type!=="AwaitExpression"?!1:S==null||(0,e.default)(O,S)}function Xe(O,S){return!O||O.type!=="Import"?!1:S==null||(0,e.default)(O,S)}function it(O,S){return!O||O.type!=="BigIntLiteral"?!1:S==null||(0,e.default)(O,S)}function st(O,S){return!O||O.type!=="ExportNamespaceSpecifier"?!1:S==null||(0,e.default)(O,S)}function mt(O,S){return!O||O.type!=="OptionalMemberExpression"?!1:S==null||(0,e.default)(O,S)}function Tt(O,S){return!O||O.type!=="OptionalCallExpression"?!1:S==null||(0,e.default)(O,S)}function Ut(O,S){return!O||O.type!=="ClassProperty"?!1:S==null||(0,e.default)(O,S)}function lr(O,S){return!O||O.type!=="ClassAccessorProperty"?!1:S==null||(0,e.default)(O,S)}function hr(O,S){return!O||O.type!=="ClassPrivateProperty"?!1:S==null||(0,e.default)(O,S)}function mr(O,S){return!O||O.type!=="ClassPrivateMethod"?!1:S==null||(0,e.default)(O,S)}function yr(O,S){return!O||O.type!=="PrivateName"?!1:S==null||(0,e.default)(O,S)}function Mr(O,S){return!O||O.type!=="StaticBlock"?!1:S==null||(0,e.default)(O,S)}function Gr(O,S){return!O||O.type!=="ImportAttribute"?!1:S==null||(0,e.default)(O,S)}function zn(O,S){return!O||O.type!=="AnyTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function ot(O,S){return!O||O.type!=="ArrayTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Wn(O,S){return!O||O.type!=="BooleanTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Hn(O,S){return!O||O.type!=="BooleanLiteralTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Li(O,S){return!O||O.type!=="NullLiteralTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function ci(O,S){return!O||O.type!=="ClassImplements"?!1:S==null||(0,e.default)(O,S)}function Yn(O,S){return!O||O.type!=="DeclareClass"?!1:S==null||(0,e.default)(O,S)}function $r(O,S){return!O||O.type!=="DeclareFunction"?!1:S==null||(0,e.default)(O,S)}function Cn(O,S){return!O||O.type!=="DeclareInterface"?!1:S==null||(0,e.default)(O,S)}function fi(O,S){return!O||O.type!=="DeclareModule"?!1:S==null||(0,e.default)(O,S)}function fn(O,S){return!O||O.type!=="DeclareModuleExports"?!1:S==null||(0,e.default)(O,S)}function Ur(O,S){return!O||O.type!=="DeclareTypeAlias"?!1:S==null||(0,e.default)(O,S)}function ga(O,S){return!O||O.type!=="DeclareOpaqueType"?!1:S==null||(0,e.default)(O,S)}function ji(O,S){return!O||O.type!=="DeclareVariable"?!1:S==null||(0,e.default)(O,S)}function Ri(O,S){return!O||O.type!=="DeclareExportDeclaration"?!1:S==null||(0,e.default)(O,S)}function js(O,S){return!O||O.type!=="DeclareExportAllDeclaration"?!1:S==null||(0,e.default)(O,S)}function pn(O,S){return!O||O.type!=="DeclaredPredicate"?!1:S==null||(0,e.default)(O,S)}function Jr(O,S){return!O||O.type!=="ExistsTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function In(O,S){return!O||O.type!=="FunctionTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Rs(O,S){return!O||O.type!=="FunctionTypeParam"?!1:S==null||(0,e.default)(O,S)}function Bs(O,S){return!O||O.type!=="GenericTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Fs(O,S){return!O||O.type!=="InferredPredicate"?!1:S==null||(0,e.default)(O,S)}function qs(O,S){return!O||O.type!=="InterfaceExtends"?!1:S==null||(0,e.default)(O,S)}function pi(O,S){return!O||O.type!=="InterfaceDeclaration"?!1:S==null||(0,e.default)(O,S)}function $s(O,S){return!O||O.type!=="InterfaceTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function va(O,S){return!O||O.type!=="IntersectionTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Us(O,S){return!O||O.type!=="MixedTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Xn(O,S){return!O||O.type!=="EmptyTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function jr(O,S){return!O||O.type!=="NullableTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Vs(O,S){return!O||O.type!=="NumberLiteralTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Bi(O,S){return!O||O.type!=="NumberTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Ks(O,S){return!O||O.type!=="ObjectTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function ba(O,S){return!O||O.type!=="ObjectTypeInternalSlot"?!1:S==null||(0,e.default)(O,S)}function di(O,S){return!O||O.type!=="ObjectTypeCallProperty"?!1:S==null||(0,e.default)(O,S)}function xa(O,S){return!O||O.type!=="ObjectTypeIndexer"?!1:S==null||(0,e.default)(O,S)}function zs(O,S){return!O||O.type!=="ObjectTypeProperty"?!1:S==null||(0,e.default)(O,S)}function Ws(O,S){return!O||O.type!=="ObjectTypeSpreadProperty"?!1:S==null||(0,e.default)(O,S)}function Fi(O,S){return!O||O.type!=="OpaqueType"?!1:S==null||(0,e.default)(O,S)}function Ta(O,S){return!O||O.type!=="QualifiedTypeIdentifier"?!1:S==null||(0,e.default)(O,S)}function Sa(O,S){return!O||O.type!=="StringLiteralTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Gn(O,S){return!O||O.type!=="StringTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Hs(O,S){return!O||O.type!=="SymbolTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Qr(O,S){return!O||O.type!=="ThisTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Ys(O,S){return!O||O.type!=="TupleTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Xs(O,S){return!O||O.type!=="TypeofTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Gs(O,S){return!O||O.type!=="TypeAlias"?!1:S==null||(0,e.default)(O,S)}function hi(O,S){return!O||O.type!=="TypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Ea(O,S){return!O||O.type!=="TypeCastExpression"?!1:S==null||(0,e.default)(O,S)}function Js(O,S){return!O||O.type!=="TypeParameter"?!1:S==null||(0,e.default)(O,S)}function Qs(O,S){return!O||O.type!=="TypeParameterDeclaration"?!1:S==null||(0,e.default)(O,S)}function Zs(O,S){return!O||O.type!=="TypeParameterInstantiation"?!1:S==null||(0,e.default)(O,S)}function eo(O,S){return!O||O.type!=="UnionTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Pa(O,S){return!O||O.type!=="Variance"?!1:S==null||(0,e.default)(O,S)}function to(O,S){return!O||O.type!=="VoidTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function mi(O,S){return!O||O.type!=="EnumDeclaration"?!1:S==null||(0,e.default)(O,S)}function yi(O,S){return!O||O.type!=="EnumBooleanBody"?!1:S==null||(0,e.default)(O,S)}function qi(O,S){return!O||O.type!=="EnumNumberBody"?!1:S==null||(0,e.default)(O,S)}function ro(O,S){return!O||O.type!=="EnumStringBody"?!1:S==null||(0,e.default)(O,S)}function $i(O,S){return!O||O.type!=="EnumSymbolBody"?!1:S==null||(0,e.default)(O,S)}function no(O,S){return!O||O.type!=="EnumBooleanMember"?!1:S==null||(0,e.default)(O,S)}function Ui(O,S){return!O||O.type!=="EnumNumberMember"?!1:S==null||(0,e.default)(O,S)}function io(O,S){return!O||O.type!=="EnumStringMember"?!1:S==null||(0,e.default)(O,S)}function Aa(O,S){return!O||O.type!=="EnumDefaultedMember"?!1:S==null||(0,e.default)(O,S)}function ut(O,S){return!O||O.type!=="IndexedAccessType"?!1:S==null||(0,e.default)(O,S)}function ao(O,S){return!O||O.type!=="OptionalIndexedAccessType"?!1:S==null||(0,e.default)(O,S)}function wa(O,S){return!O||O.type!=="JSXAttribute"?!1:S==null||(0,e.default)(O,S)}function so(O,S){return!O||O.type!=="JSXClosingElement"?!1:S==null||(0,e.default)(O,S)}function oo(O,S){return!O||O.type!=="JSXElement"?!1:S==null||(0,e.default)(O,S)}function lo(O,S){return!O||O.type!=="JSXEmptyExpression"?!1:S==null||(0,e.default)(O,S)}function uo(O,S){return!O||O.type!=="JSXExpressionContainer"?!1:S==null||(0,e.default)(O,S)}function _a(O,S){return!O||O.type!=="JSXSpreadChild"?!1:S==null||(0,e.default)(O,S)}function co(O,S){return!O||O.type!=="JSXIdentifier"?!1:S==null||(0,e.default)(O,S)}function Oa(O,S){return!O||O.type!=="JSXMemberExpression"?!1:S==null||(0,e.default)(O,S)}function Ca(O,S){return!O||O.type!=="JSXNamespacedName"?!1:S==null||(0,e.default)(O,S)}function fo(O,S){return!O||O.type!=="JSXOpeningElement"?!1:S==null||(0,e.default)(O,S)}function po(O,S){return!O||O.type!=="JSXSpreadAttribute"?!1:S==null||(0,e.default)(O,S)}function Ia(O,S){return!O||O.type!=="JSXText"?!1:S==null||(0,e.default)(O,S)}function ka(O,S){return!O||O.type!=="JSXFragment"?!1:S==null||(0,e.default)(O,S)}function ho(O,S){return!O||O.type!=="JSXOpeningFragment"?!1:S==null||(0,e.default)(O,S)}function Na(O,S){return!O||O.type!=="JSXClosingFragment"?!1:S==null||(0,e.default)(O,S)}function mo(O,S){return!O||O.type!=="Noop"?!1:S==null||(0,e.default)(O,S)}function yo(O,S){return!O||O.type!=="Placeholder"?!1:S==null||(0,e.default)(O,S)}function Vi(O,S){return!O||O.type!=="V8IntrinsicIdentifier"?!1:S==null||(0,e.default)(O,S)}function go(O,S){return!O||O.type!=="ArgumentPlaceholder"?!1:S==null||(0,e.default)(O,S)}function vo(O,S){return!O||O.type!=="BindExpression"?!1:S==null||(0,e.default)(O,S)}function Ki(O,S){return!O||O.type!=="Decorator"?!1:S==null||(0,e.default)(O,S)}function bo(O,S){return!O||O.type!=="DoExpression"?!1:S==null||(0,e.default)(O,S)}function xo(O,S){return!O||O.type!=="ExportDefaultSpecifier"?!1:S==null||(0,e.default)(O,S)}function Da(O,S){return!O||O.type!=="RecordExpression"?!1:S==null||(0,e.default)(O,S)}function To(O,S){return!O||O.type!=="TupleExpression"?!1:S==null||(0,e.default)(O,S)}function So(O,S){return!O||O.type!=="DecimalLiteral"?!1:S==null||(0,e.default)(O,S)}function Eo(O,S){return!O||O.type!=="ModuleExpression"?!1:S==null||(0,e.default)(O,S)}function Po(O,S){return!O||O.type!=="TopicReference"?!1:S==null||(0,e.default)(O,S)}function Jn(O,S){return!O||O.type!=="PipelineTopicExpression"?!1:S==null||(0,e.default)(O,S)}function Ma(O,S){return!O||O.type!=="PipelineBareFunction"?!1:S==null||(0,e.default)(O,S)}function Ao(O,S){return!O||O.type!=="PipelinePrimaryTopicReference"?!1:S==null||(0,e.default)(O,S)}function G(O,S){return!O||O.type!=="VoidPattern"?!1:S==null||(0,e.default)(O,S)}function g(O,S){return!O||O.type!=="TSParameterProperty"?!1:S==null||(0,e.default)(O,S)}function u(O,S){return!O||O.type!=="TSDeclareFunction"?!1:S==null||(0,e.default)(O,S)}function b(O,S){return!O||O.type!=="TSDeclareMethod"?!1:S==null||(0,e.default)(O,S)}function w(O,S){return!O||O.type!=="TSQualifiedName"?!1:S==null||(0,e.default)(O,S)}function B(O,S){return!O||O.type!=="TSCallSignatureDeclaration"?!1:S==null||(0,e.default)(O,S)}function ee(O,S){return!O||O.type!=="TSConstructSignatureDeclaration"?!1:S==null||(0,e.default)(O,S)}function le(O,S){return!O||O.type!=="TSPropertySignature"?!1:S==null||(0,e.default)(O,S)}function be(O,S){return!O||O.type!=="TSMethodSignature"?!1:S==null||(0,e.default)(O,S)}function we(O,S){return!O||O.type!=="TSIndexSignature"?!1:S==null||(0,e.default)(O,S)}function Ne(O,S){return!O||O.type!=="TSAnyKeyword"?!1:S==null||(0,e.default)(O,S)}function Ve(O,S){return!O||O.type!=="TSBooleanKeyword"?!1:S==null||(0,e.default)(O,S)}function Qe(O,S){return!O||O.type!=="TSBigIntKeyword"?!1:S==null||(0,e.default)(O,S)}function tt(O,S){return!O||O.type!=="TSIntrinsicKeyword"?!1:S==null||(0,e.default)(O,S)}function ct(O,S){return!O||O.type!=="TSNeverKeyword"?!1:S==null||(0,e.default)(O,S)}function Ct(O,S){return!O||O.type!=="TSNullKeyword"?!1:S==null||(0,e.default)(O,S)}function Rt(O,S){return!O||O.type!=="TSNumberKeyword"?!1:S==null||(0,e.default)(O,S)}function bt(O,S){return!O||O.type!=="TSObjectKeyword"?!1:S==null||(0,e.default)(O,S)}function jt(O,S){return!O||O.type!=="TSStringKeyword"?!1:S==null||(0,e.default)(O,S)}function dn(O,S){return!O||O.type!=="TSSymbolKeyword"?!1:S==null||(0,e.default)(O,S)}function Zr(O,S){return!O||O.type!=="TSUndefinedKeyword"?!1:S==null||(0,e.default)(O,S)}function La(O,S){return!O||O.type!=="TSUnknownKeyword"?!1:S==null||(0,e.default)(O,S)}function ja(O,S){return!O||O.type!=="TSVoidKeyword"?!1:S==null||(0,e.default)(O,S)}function Ra(O,S){return!O||O.type!=="TSThisType"?!1:S==null||(0,e.default)(O,S)}function Ba(O,S){return!O||O.type!=="TSFunctionType"?!1:S==null||(0,e.default)(O,S)}function Fa(O,S){return!O||O.type!=="TSConstructorType"?!1:S==null||(0,e.default)(O,S)}function qa(O,S){return!O||O.type!=="TSTypeReference"?!1:S==null||(0,e.default)(O,S)}function $a(O,S){return!O||O.type!=="TSTypePredicate"?!1:S==null||(0,e.default)(O,S)}function Ua(O,S){return!O||O.type!=="TSTypeQuery"?!1:S==null||(0,e.default)(O,S)}function Va(O,S){return!O||O.type!=="TSTypeLiteral"?!1:S==null||(0,e.default)(O,S)}function Ka(O,S){return!O||O.type!=="TSArrayType"?!1:S==null||(0,e.default)(O,S)}function za(O,S){return!O||O.type!=="TSTupleType"?!1:S==null||(0,e.default)(O,S)}function Wa(O,S){return!O||O.type!=="TSOptionalType"?!1:S==null||(0,e.default)(O,S)}function Ha(O,S){return!O||O.type!=="TSRestType"?!1:S==null||(0,e.default)(O,S)}function Ya(O,S){return!O||O.type!=="TSNamedTupleMember"?!1:S==null||(0,e.default)(O,S)}function Xa(O,S){return!O||O.type!=="TSUnionType"?!1:S==null||(0,e.default)(O,S)}function Ga(O,S){return!O||O.type!=="TSIntersectionType"?!1:S==null||(0,e.default)(O,S)}function Ja(O,S){return!O||O.type!=="TSConditionalType"?!1:S==null||(0,e.default)(O,S)}function Qa(O,S){return!O||O.type!=="TSInferType"?!1:S==null||(0,e.default)(O,S)}function Za(O,S){return!O||O.type!=="TSParenthesizedType"?!1:S==null||(0,e.default)(O,S)}function es(O,S){return!O||O.type!=="TSTypeOperator"?!1:S==null||(0,e.default)(O,S)}function ts(O,S){return!O||O.type!=="TSIndexedAccessType"?!1:S==null||(0,e.default)(O,S)}function rs(O,S){return!O||O.type!=="TSMappedType"?!1:S==null||(0,e.default)(O,S)}function ns(O,S){return!O||O.type!=="TSTemplateLiteralType"?!1:S==null||(0,e.default)(O,S)}function is(O,S){return!O||O.type!=="TSLiteralType"?!1:S==null||(0,e.default)(O,S)}function as(O,S){return!O||O.type!=="TSExpressionWithTypeArguments"?!1:S==null||(0,e.default)(O,S)}function ss(O,S){return!O||O.type!=="TSInterfaceDeclaration"?!1:S==null||(0,e.default)(O,S)}function os(O,S){return!O||O.type!=="TSInterfaceBody"?!1:S==null||(0,e.default)(O,S)}function ls(O,S){return!O||O.type!=="TSTypeAliasDeclaration"?!1:S==null||(0,e.default)(O,S)}function us(O,S){return!O||O.type!=="TSInstantiationExpression"?!1:S==null||(0,e.default)(O,S)}function cs(O,S){return!O||O.type!=="TSAsExpression"?!1:S==null||(0,e.default)(O,S)}function Du(O,S){return!O||O.type!=="TSSatisfiesExpression"?!1:S==null||(0,e.default)(O,S)}function Mu(O,S){return!O||O.type!=="TSTypeAssertion"?!1:S==null||(0,e.default)(O,S)}function Lu(O,S){return!O||O.type!=="TSEnumBody"?!1:S==null||(0,e.default)(O,S)}function ju(O,S){return!O||O.type!=="TSEnumDeclaration"?!1:S==null||(0,e.default)(O,S)}function Ru(O,S){return!O||O.type!=="TSEnumMember"?!1:S==null||(0,e.default)(O,S)}function Bu(O,S){return!O||O.type!=="TSModuleDeclaration"?!1:S==null||(0,e.default)(O,S)}function Fu(O,S){return!O||O.type!=="TSModuleBlock"?!1:S==null||(0,e.default)(O,S)}function qu(O,S){return!O||O.type!=="TSImportType"?!1:S==null||(0,e.default)(O,S)}function $u(O,S){return!O||O.type!=="TSImportEqualsDeclaration"?!1:S==null||(0,e.default)(O,S)}function Uu(O,S){return!O||O.type!=="TSExternalModuleReference"?!1:S==null||(0,e.default)(O,S)}function Vu(O,S){return!O||O.type!=="TSNonNullExpression"?!1:S==null||(0,e.default)(O,S)}function Ku(O,S){return!O||O.type!=="TSExportAssignment"?!1:S==null||(0,e.default)(O,S)}function zu(O,S){return!O||O.type!=="TSNamespaceExportDeclaration"?!1:S==null||(0,e.default)(O,S)}function Wu(O,S){return!O||O.type!=="TSTypeAnnotation"?!1:S==null||(0,e.default)(O,S)}function Hu(O,S){return!O||O.type!=="TSTypeParameterInstantiation"?!1:S==null||(0,e.default)(O,S)}function Yu(O,S){return!O||O.type!=="TSTypeParameterDeclaration"?!1:S==null||(0,e.default)(O,S)}function Xu(O,S){return!O||O.type!=="TSTypeParameter"?!1:S==null||(0,e.default)(O,S)}function Gu(O,S){if(!O)return!1;switch(O.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(O.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return S==null||(0,e.default)(O,S)}function Ju(O,S){if(!O)return!1;switch(O.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(O.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return S==null||(0,e.default)(O,S)}function Qu(O,S){if(!O)return!1;switch(O.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return S==null||(0,e.default)(O,S)}function Zu(O,S){if(!O)return!1;switch(O.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(O.expectedNode==="BlockStatement")break;default:return!1}return S==null||(0,e.default)(O,S)}function ec(O,S){if(!O)return!1;switch(O.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(O.expectedNode==="BlockStatement")break;default:return!1}return S==null||(0,e.default)(O,S)}function tc(O,S){if(!O)return!1;switch(O.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(O.expectedNode==="BlockStatement")break;default:return!1}return S==null||(0,e.default)(O,S)}function rc(O,S){if(!O)return!1;switch(O.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(O.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return S==null||(0,e.default)(O,S)}function K(O,S){if(!O)return!1;switch(O.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return S==null||(0,e.default)(O,S)}function W(O,S){if(!O)return!1;switch(O.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return S==null||(0,e.default)(O,S)}function Y(O,S){if(!O)return!1;switch(O.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return S==null||(0,e.default)(O,S)}function oe(O,S){if(!O)return!1;switch(O.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return S==null||(0,e.default)(O,S)}function Ae(O,S){if(!O)return!1;switch(O.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return S==null||(0,e.default)(O,S)}function Fe(O,S){if(!O)return!1;switch(O.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return S==null||(0,e.default)(O,S)}function pt(O,S){if(!O)return!1;switch(O.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return S==null||(0,e.default)(O,S)}function Vt(O,S){if(!O)return!1;switch(O.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return S==null||(0,e.default)(O,S)}function ur(O,S){if(!O)return!1;switch(O.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return S==null||(0,e.default)(O,S)}function kn(O,S){if(!O)return!1;switch(O.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return S==null||(0,e.default)(O,S)}function Fy(O,S){if(!O)return!1;switch(O.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(O.expectedNode==="StringLiteral")break;default:return!1}return S==null||(0,e.default)(O,S)}function qy(O,S){if(!O)return!1;switch(O.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(O.expectedNode==="Declaration")break;default:return!1}return S==null||(0,e.default)(O,S)}function $y(O,S){if(!O)return!1;switch(O.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(O.expectedNode==="Identifier")break;default:return!1}return S==null||(0,e.default)(O,S)}function Uy(O,S){if(!O)return!1;switch(O.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(O.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return S==null||(0,e.default)(O,S)}function Vy(O,S){if(!O)return!1;switch(O.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(O.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return S==null||(0,e.default)(O,S)}function Ky(O,S){if(!O)return!1;switch(O.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(O.expectedNode==="Identifier")break;default:return!1}return S==null||(0,e.default)(O,S)}function zy(O,S){if(!O)return!1;switch(O.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(O.expectedNode==="StringLiteral")break;default:return!1}return S==null||(0,e.default)(O,S)}function Wy(O,S){if(!O)return!1;switch(O.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(O.expectedNode==="StringLiteral")break;default:return!1}return S==null||(0,e.default)(O,S)}function Hy(O,S){if(!O)return!1;switch(O.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return S==null||(0,e.default)(O,S)}function Yy(O,S){if(!O)return!1;switch(O.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return S==null||(0,e.default)(O,S)}function Xy(O,S){if(!O)return!1;switch(O.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return S==null||(0,e.default)(O,S)}function Gy(O,S){if(!O)return!1;switch(O.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return S==null||(0,e.default)(O,S)}function Jy(O,S){if(!O)return!1;switch(O.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return S==null||(0,e.default)(O,S)}function Qy(O,S){if(!O)return!1;switch(O.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(O.expectedNode==="Pattern")break;default:return!1}return S==null||(0,e.default)(O,S)}function Zy(O,S){if(!O)return!1;switch(O.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return S==null||(0,e.default)(O,S)}function vp(O,S){if(!O)return!1;switch(O.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return S==null||(0,e.default)(O,S)}function eg(O,S){if(!O)return!1;switch(O.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return S==null||(0,e.default)(O,S)}function tg(O,S){if(!O)return!1;switch(O.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return S==null||(0,e.default)(O,S)}function rg(O,S){if(!O)return!1;switch(O.type){case"ClassAccessorProperty":break;default:return!1}return S==null||(0,e.default)(O,S)}function ng(O,S){if(!O)return!1;switch(O.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return S==null||(0,e.default)(O,S)}function ig(O,S){if(!O)return!1;switch(O.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return S==null||(0,e.default)(O,S)}function ag(O,S){if(!O)return!1;switch(O.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return S==null||(0,e.default)(O,S)}function sg(O,S){if(!O)return!1;switch(O.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return S==null||(0,e.default)(O,S)}function og(O,S){if(!O)return!1;switch(O.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return S==null||(0,e.default)(O,S)}function lg(O,S){if(!O)return!1;switch(O.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return S==null||(0,e.default)(O,S)}function ug(O,S){if(!O)return!1;switch(O.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return S==null||(0,e.default)(O,S)}function cg(O,S){if(!O)return!1;switch(O.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return S==null||(0,e.default)(O,S)}function fg(O,S){if(!O)return!1;switch(O.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return S==null||(0,e.default)(O,S)}function pg(O,S){if(!O)return!1;switch(O.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return S==null||(0,e.default)(O,S)}function dg(O,S){if(!O)return!1;switch(O.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return S==null||(0,e.default)(O,S)}function hg(O,S){if(!O)return!1;switch(O.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return S==null||(0,e.default)(O,S)}function mg(O,S){if(!O)return!1;switch(O.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return S==null||(0,e.default)(O,S)}function yg(O,S){if(!O)return!1;switch(O.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return S==null||(0,e.default)(O,S)}function gg(O,S){return(0,t.default)("isNumberLiteral","isNumericLiteral"),!O||O.type!=="NumberLiteral"?!1:S==null||(0,e.default)(O,S)}function vg(O,S){return(0,t.default)("isRegexLiteral","isRegExpLiteral"),!O||O.type!=="RegexLiteral"?!1:S==null||(0,e.default)(O,S)}function bg(O,S){return(0,t.default)("isRestProperty","isRestElement"),!O||O.type!=="RestProperty"?!1:S==null||(0,e.default)(O,S)}function xg(O,S){return(0,t.default)("isSpreadProperty","isSpreadElement"),!O||O.type!=="SpreadProperty"?!1:S==null||(0,e.default)(O,S)}function Tg(O,S){return(0,t.default)("isModuleDeclaration","isImportOrExportDeclaration"),vp(O,S)}return ge}var aw;function Xj(){if(aw)return Ep;aw=1,Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.default=r;var e=dr();function t(n){return(0,e.isMemberExpression)(n)||(0,e.isMetaProperty)(n)}function r(n,i,a){if(!t(n))return!1;const s=Array.isArray(i)?i:i.split("."),o=[];let l;for(l=n;t(l);l=(c=l.object)!=null?c:l.meta){var c;o.push(l.property)}if(o.push(l),o.length<s.length||!a&&o.length>s.length)return!1;for(let p=0,f=o.length-1;p<s.length;p++,f--){const d=o[f];let h;if((0,e.isIdentifier)(d))h=d.name;else if((0,e.isStringLiteral)(d))h=d.value;else if((0,e.isThisExpression)(d))h="this";else if((0,e.isSuper)(d))h="super";else if((0,e.isPrivateName)(d))h="#"+d.id.name;else return!1;if(s[p]!==h)return!1}return!0}return Ep}var sw;function Gj(){if(sw)return Sp;sw=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.default=t;var e=Xj();function t(r,n){const i=r.split(".");return a=>(0,e.default)(a,i,n)}return Sp}var ow;function k7(){if(ow)return lc;ow=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.default=void 0;var e=Gj();const t=(0,e.default)("React.Component");return lc.default=t,lc}var wp={},lw;function N7(){if(lw)return wp;lw=1,Object.defineProperty(wp,"__esModule",{value:!0}),wp.default=e;function e(t){return!!t&&/^[a-z]/.test(t)}return wp}var _p={},Op={},Rg={},ye={},wo={},Bg={},Tr={},Cp={},Ip={},uw;function A1(){if(uw)return Ip;uw=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.default=t;var e=si();function t(r,n){if(r===n)return!0;if(r==null||e.ALIAS_KEYS[n])return!1;const i=e.FLIPPED_ALIAS_KEYS[n];return!!(i!=null&&i.includes(r))}return Ip}var kp={},cw;function Jj(){if(cw)return kp;cw=1,Object.defineProperty(kp,"__esModule",{value:!0}),kp.default=t;var e=si();function t(r,n){if(r===n)return!0;const i=e.PLACEHOLDERS_ALIAS[r];return!!(i!=null&&i.includes(n))}return kp}var fw;function Qf(){if(fw)return Cp;fw=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.default=i;var e=P1(),t=A1(),r=Jj(),n=si();function i(a,s,o){return s?(0,t.default)(s.type,a)?o===void 0?!0:(0,e.default)(s,o):!o&&s.type==="Placeholder"&&a in n.FLIPPED_ALIAS_KEYS?(0,r.default)(s.expectedNode,a):!1:!1}return Cp}var Np={},Fg={},ul={},pw;function D7(){if(pw)return ul;pw=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.isIdentifierChar=l,ul.isIdentifierName=c,ul.isIdentifierStart=o;let e="ªµºÀ-ÖØ-öø-ˈ-Ë‘Ë -ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ÒÒŠ-Ô¯Ô±-Õ–Õ™Õ -Öˆ×-תׯ-×²Ø -يٮٯٱ-Û“Û•Û¥Û¦Û®Û¯Ûº-Û¼Û¿ÜÜ’-ܯÝ-ޥޱߊ-ßªß´ßµßºà €-à •à šà ¤à ¨à¡€-ࡘࡠ-ࡪࡰ-ࢇࢉ-à¢à¢ -ࣉऄ-हऽà¥à¥˜-ॡॱ-ঀঅ-ঌà¦à¦à¦“-নপ-রলশ-হঽৎড়à§à§Ÿ-ৡৰৱৼਅ-ਊà¨à¨à¨“-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-àªàª-ઑઓ-નપ-રલળવ-હઽà«à« ૡૹଅ-ଌà¬à¬à¬“-ନପ-ରଲଳଵ-ହଽàœààŸ-à¡à±à®ƒà®…-ஊஎ-à®à®’-கஙசஜஞடணதந-பம-ஹà¯à°…-ఌఎ-à°à°’-నప-హఽౘ-ౚ౜à±à± ౡಀಅ-ಌಎ-à²à²’-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-à´à´’-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-à¶–à¶š-නඳ-රලව-à·†à¸-ะาำเ-ๆàºàº‚ຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿá-á•áš-áá¡á¥á¦á®-á°áµ-á‚ႎႠ-ჅჇáƒáƒ-ჺჼ-ቈቊ-á‰á‰-ቖቘቚ-á‰á‰ -ኈኊ-áŠáŠ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-áŒáŒ’-ጕጘ-ášáŽ€-áŽáŽ -áµá¸-á½á-ᙬᙯ-ᙿáš-áššáš -ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱá€-á‘á -á¬á®-á°áž€-ឳៗៜá -ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞá¥-á¥á¥°-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳá…-áŒá®ƒ-ᮠᮮᮯᮺ-ᯥᰀ-á°£á±-á±á±š-ᱽᲀ-ᲊá²-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-á¼á¼ -ὅὈ-á½á½-ὗὙὛá½á½Ÿ-ώᾀ-á¾´á¾¶-ᾼιῂ-ῄῆ-ῌá¿-á¿“á¿–-Ίῠ-Ῥῲ-á¿´á¿¶-ῼâ±â¿â‚-ₜℂℇℊ-ℓℕ℘-â„ℤΩℨK-ℹℼ-â„¿â……-â…‰â…Žâ… -ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧâ´â´°-ⵧⵯⶀ-â¶–â¶ -ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-â·Žâ·-â·–â·˜-ⷞ々-〇〡-〩〱-〵〸-〼ã-ã‚–ã‚›-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿã€-䶿一-ê’Œê“-ꓽꔀ-ꘌê˜-ꘟꘪꘫꙀ-ꙮꙿ-êšêš -ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ê ê ƒ-ê …ê ‡-ê Šê Œ-ê ¢ê¡€-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ê¥†ê¥ -ꥼꦄ-ꦲê§ê§ -ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ê©‚ê©„-ê©‹ê© -ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ê«ê« -ꫪꫲ-ê«´ê¬-ꬆꬉ-ꬎꬑ-ê¬–ê¬ -ꬦꬨ-ꬮꬰ-êšêœ-ê©ê°-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-ï©ï©°-龎ff-stﬓ-ﬗï¬ï¬Ÿ-ﬨשׁ-זּטּ-לּמּï€ïïƒï„ï†-ﮱﯓ-ï´½ïµ-ï¶ï¶’-ﷇﷰ-ﷻﹰ-ï¹´ï¹¶-ﻼA-Zï½-zヲ-하-ᅦᅧ-ï¿ï¿’-ᅲᅳ-ᅵ",t="·̀-ͯ·҃-Ò‡Ö‘-Ö½Ö¿×ׇׂׅׄØ-ØšÙ‹-٩ٰۖ-ۜ۟-Û¤Û§Û¨Ûª-ÛÛ°-۹ܑܰ-ÝŠÞ¦-ް߀-߉߫-ß³ß½à –-à ™à ›-à £à ¥-à §à ©-à à¡™-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-à¥à¥‘-ॗॢॣ०-९à¦-ঃ়া-ৄেৈো-à§à§—ৢৣ০-৯৾à¨-ਃ਼ਾ-ੂੇੈੋ-à©à©‘੦-ੱੵàª-ઃ઼ા-ૅે-ૉો-à«à«¢à«£à«¦-૯ૺ-à«¿à¬-ଃ଼ା-à„à‡àˆà‹-àà•-à—à¢à£à¦-à¯à®‚ா-ூெ-ைொ-à¯à¯—௦-௯ఀ-ఄ఼ా-ౄె-ైొ-à±à±•ౖౢౣ౦-౯à²-ಃ಼ಾ-ೄೆ-ೈೊ-à³à³•ೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-àµàµ—ൢൣ൦-൯à¶-ඃ්à·-ුූෘ-à·Ÿà·¦-෯ෲෳัิ-ฺ็-๎à¹-๙ັິ-ຼ່-໎à»-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇à¾-ྗྙ-ྼ࿆ါ-ှá€-á‰á–-á™áž-á á¢-á¤á§-áá±-á´á‚‚-á‚á‚-á‚á-áŸá©-á±áœ’-᜕ᜲ-᜴á’á“á²á³áž´-៓áŸáŸ -áŸ©á ‹-á á -á ™á¢©á¤ -ᤫᤰ-᤻᥆-á¥á§-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉áª-᪙᪰-᪽ᪿ-á«á« -᫫ᬀ-ᬄ᬴-á„á-á™á«-á³á®€-ᮂᮡ-á®á®°-᮹᯦-᯳ᰤ-á°·á±€-᱉á±-á±™á³-á³’á³”-᳨á³á³´á³·-᳹᷀-᷿‌â€â€¿â€â”âƒ-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-ã€¯ã‚™ã‚šãƒ»ê˜ -꘩꙯ꙴ-ê™½êšžêšŸê›°ê›±ê ‚ê †ê ‹ê £-ê §ê ¬ê¢€ê¢ê¢´-ꣅê£-ê£™ê£ -꣱ꣿ-꤉ꤦ-ê¤ê¥‡-꥓ꦀ-ꦃ꦳-ê§€ê§-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌê©ê©-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿ê«ê««-ꫯꫵ꫶ꯣ-ꯪ꯬ê¯ê¯°-꯹ﬞ︀-ï¸ï¸ -︯︳︴ï¹-ï¹ï¼-9_・";const r=new RegExp("["+e+"]"),n=new RegExp("["+e+t+"]");e=t=null;const i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function s(p,f){let d=65536;for(let h=0,v=f.length;h<v;h+=2){if(d+=f[h],d>p)return!1;if(d+=f[h+1],d>=p)return!0}return!1}function o(p){return p<65?p===36:p<=90?!0:p<97?p===95:p<=122?!0:p<=65535?p>=170&&r.test(String.fromCharCode(p)):s(p,i)}function l(p){return p<48?p===36:p<58?!0:p<65?!1:p<=90?!0:p<97?p===95:p<=122?!0:p<=65535?p>=170&&n.test(String.fromCharCode(p)):s(p,i)||s(p,a)}function c(p){let f=!0;for(let d=0;d<p.length;d++){let h=p.charCodeAt(d);if((h&64512)===55296&&d+1<p.length){const v=p.charCodeAt(++d);(v&64512)===56320&&(h=65536+((h&1023)<<10)+(v&1023))}if(f){if(f=!1,!o(h))return!1}else if(!l(h))return!1}return!f}return ul}var fs={},dw;function M7(){if(dw)return fs;dw=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.isKeyword=l,fs.isReservedWord=i,fs.isStrictBindOnlyReservedWord=s,fs.isStrictBindReservedWord=o,fs.isStrictReservedWord=a;const e={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},t=new Set(e.keyword),r=new Set(e.strict),n=new Set(e.strictBind);function i(c,p){return p&&c==="await"||c==="enum"}function a(c,p){return i(c,p)||r.has(c)}function s(c){return n.has(c)}function o(c,p){return a(c,p)||s(c)}function l(c){return t.has(c)}return fs}var hw;function Om(){return hw||(hw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=D7(),r=M7()})(Fg)),Fg}var mw;function Zf(){if(mw)return Np;mw=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.default=t;var e=Om();function t(r,n=!0){return typeof r!="string"||n&&((0,e.isKeyword)(r)||(0,e.isStrictReservedWord)(r,!0))?!1:(0,e.isIdentifierName)(r)}return Np}var cl={},yw;function L7(){if(yw)return cl;yw=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.readCodePoint=l,cl.readInt=o,cl.readStringContents=n;var e=function(p){return p>=48&&p<=57};const t={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},r={bin:c=>c===48||c===49,oct:c=>c>=48&&c<=55,dec:c=>c>=48&&c<=57,hex:c=>c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102};function n(c,p,f,d,h,v){const x=f,y=d,m=h;let T="",A=null,E=f;const{length:P}=p;for(;;){if(f>=P){v.unterminated(x,y,m),T+=p.slice(E,f);break}const _=p.charCodeAt(f);if(i(c,_,p,f)){T+=p.slice(E,f);break}if(_===92){T+=p.slice(E,f);const I=a(p,f,d,h,c==="template",v);I.ch===null&&!A?A={pos:f,lineStart:d,curLine:h}:T+=I.ch,{pos:f,lineStart:d,curLine:h}=I,E=f}else _===8232||_===8233?(++f,++h,d=f):_===10||_===13?c==="template"?(T+=p.slice(E,f)+`
`,++f,_===13&&p.charCodeAt(f)===10&&++f,++h,E=d=f):v.unterminated(x,y,m):++f}return{pos:f,str:T,firstInvalidLoc:A,lineStart:d,curLine:h,containsInvalid:!!A}}function i(c,p,f,d){return c==="template"?p===96||p===36&&f.charCodeAt(d+1)===123:p===(c==="double"?34:39)}function a(c,p,f,d,h,v){const x=!h;p++;const y=T=>({pos:p,ch:T,lineStart:f,curLine:d}),m=c.charCodeAt(p++);switch(m){case 110:return y(`
`);case 114:return y("\r");case 120:{let T;return{code:T,pos:p}=s(c,p,f,d,2,!1,x,v),y(T===null?null:String.fromCharCode(T))}case 117:{let T;return{code:T,pos:p}=l(c,p,f,d,x,v),y(T===null?null:String.fromCodePoint(T))}case 116:return y(" ");case 98:return y("\b");case 118:return y("\v");case 102:return y("\f");case 13:c.charCodeAt(p)===10&&++p;case 10:f=p,++d;case 8232:case 8233:return y("");case 56:case 57:if(h)return y(null);v.strictNumericEscape(p-1,f,d);default:if(m>=48&&m<=55){const T=p-1;let E=/^[0-7]+/.exec(c.slice(T,p+2))[0],P=parseInt(E,8);P>255&&(E=E.slice(0,-1),P=parseInt(E,8)),p+=E.length-1;const _=c.charCodeAt(p);if(E!=="0"||_===56||_===57){if(h)return y(null);v.strictNumericEscape(T,f,d)}return y(String.fromCharCode(P))}return y(String.fromCharCode(m))}}function s(c,p,f,d,h,v,x,y){const m=p;let T;return{n:T,pos:p}=o(c,p,f,d,16,h,v,!1,y,!x),T===null&&(x?y.invalidEscapeSequence(m,f,d):p=m-1),{code:T,pos:p}}function o(c,p,f,d,h,v,x,y,m,T){const A=p,E=h===16?t.hex:t.decBinOct,P=h===16?r.hex:h===10?r.dec:h===8?r.oct:r.bin;let _=!1,I=0;for(let k=0,M=v??1/0;k<M;++k){const D=c.charCodeAt(p);let C;if(D===95&&y!=="bail"){const L=c.charCodeAt(p-1),q=c.charCodeAt(p+1);if(y){if(Number.isNaN(q)||!P(q)||E.has(L)||E.has(q)){if(T)return{n:null,pos:p};m.unexpectedNumericSeparator(p,f,d)}}else{if(T)return{n:null,pos:p};m.numericSeparatorInEscapeSequence(p,f,d)}++p;continue}if(D>=97?C=D-97+10:D>=65?C=D-65+10:e(D)?C=D-48:C=1/0,C>=h){if(C<=9&&T)return{n:null,pos:p};if(C<=9&&m.invalidDigit(p,f,d,h))C=0;else if(x)C=0,_=!0;else break}++p,I=I*h+C}return p===A||v!=null&&p-A!==v||_?{n:null,pos:p}:{n:I,pos:p}}function l(c,p,f,d,h,v){const x=c.charCodeAt(p);let y;if(x===123){if(++p,{code:y,pos:p}=s(c,p,f,d,c.indexOf("}",p)-p,!0,h,v),++p,y!==null&&y>1114111)if(h)v.invalidCodePoint(p,f,d);else return{code:null,pos:p}}else({code:y,pos:p}=s(c,p,f,d,4,!1,h,v));return{code:y,pos:p}}return cl}var wt={},gw;function ep(){if(gw)return wt;gw=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.UPDATE_OPERATORS=wt.UNARY_OPERATORS=wt.STRING_UNARY_OPERATORS=wt.STATEMENT_OR_BLOCK_KEYS=wt.NUMBER_UNARY_OPERATORS=wt.NUMBER_BINARY_OPERATORS=wt.LOGICAL_OPERATORS=wt.INHERIT_KEYS=wt.FOR_INIT_KEYS=wt.FLATTENABLE_KEYS=wt.EQUALITY_BINARY_OPERATORS=wt.COMPARISON_BINARY_OPERATORS=wt.COMMENT_KEYS=wt.BOOLEAN_UNARY_OPERATORS=wt.BOOLEAN_NUMBER_BINARY_OPERATORS=wt.BOOLEAN_BINARY_OPERATORS=wt.BINARY_OPERATORS=wt.ASSIGNMENT_OPERATORS=void 0,wt.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],wt.FLATTENABLE_KEYS=["body","expressions"],wt.FOR_INIT_KEYS=["left","init"],wt.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const e=wt.LOGICAL_OPERATORS=["||","&&","??"];wt.UPDATE_OPERATORS=["++","--"];const t=wt.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],r=wt.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],n=wt.COMPARISON_BINARY_OPERATORS=[...r,"in","instanceof"],i=wt.BOOLEAN_BINARY_OPERATORS=[...n,...t],a=wt.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];wt.BINARY_OPERATORS=["+",...a,...i,"|>"],wt.ASSIGNMENT_OPERATORS=["=","+=",...a.map(c=>c+"="),...e.map(c=>c+"=")];const s=wt.BOOLEAN_UNARY_OPERATORS=["delete","!"],o=wt.NUMBER_UNARY_OPERATORS=["+","-","~"],l=wt.STRING_UNARY_OPERATORS=["typeof"];return wt.UNARY_OPERATORS=["void","throw",...s,...o,...l],wt.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},wt.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),wt.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding"),wt}var Nt={},vw;function pa(){if(vw)return Nt;vw=1;var e={};Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.allExpandedTypes=Nt.VISITOR_KEYS=Nt.NODE_UNION_SHAPES__PRIVATE=Nt.NODE_PARENT_VALIDATIONS=Nt.NODE_FIELDS=Nt.FLIPPED_ALIAS_KEYS=Nt.DEPRECATED_KEYS=Nt.BUILDER_KEYS=Nt.ALIAS_KEYS=void 0,Nt.arrayOf=y,Nt.arrayOfType=m,Nt.assertEach=A,Nt.assertNodeOrValueType=I,Nt.assertNodeType=_,Nt.assertOneOf=E,Nt.assertOptionalChainStart=D,Nt.assertShape=M,Nt.assertValueType=k,Nt.chain=C,Nt.default=Q,Nt.defineAliasedType=z,Nt.validate=d,Nt.validateArrayOfType=T,Nt.validateOptional=v,Nt.validateOptionalType=x,Nt.validateType=h;var t=Qf(),r=w1();const n=Nt.VISITOR_KEYS={},i=Nt.ALIAS_KEYS={},a=Nt.FLIPPED_ALIAS_KEYS={},s=Nt.NODE_FIELDS={},o=Nt.BUILDER_KEYS={},l=Nt.DEPRECATED_KEYS={},c=Nt.NODE_PARENT_VALIDATIONS={},p=Nt.NODE_UNION_SHAPES__PRIVATE={};function f(V){return Array.isArray(V)?"array":V===null?"null":typeof V}function d(V){return{validate:V}}function h(...V){return d(_(...V))}function v(V){return{validate:V,optional:!0}}function x(...V){return{validate:_(...V),optional:!0}}function y(V){return C(k("array"),A(V))}function m(...V){return y(_(...V))}function T(...V){return d(m(...V))}function A(V){const X=e.BABEL_TYPES_8_BREAKING?r.validateChild:()=>{};function U(N,j,F){if(!Array.isArray(F))return;let R=0;const J={toString(){return`${j}[${R}]`}};for(;R<F.length;R++){const se=F[R];V(N,J,se),X(N,J,se)}}return U.each=V,U}function E(...V){function X(U,N,j){if(!V.includes(j))throw new TypeError(`Property ${N} expected value to be one of ${JSON.stringify(V)} but got ${JSON.stringify(j)}`)}return X.oneOf=V,X}const P=Nt.allExpandedTypes=[];function _(...V){const X=new Set;P.push({types:V,set:X});function U(N,j,F){const R=F==null?void 0:F.type;if(R!=null){if(X.has(R)){(0,r.validateChild)(N,j,F);return}if(R==="Placeholder"){for(const J of V)if((0,t.default)(J,F)){(0,r.validateChild)(N,j,F);return}}}throw new TypeError(`Property ${j} of ${N.type} expected node to be of a type ${JSON.stringify(V)} but instead got ${JSON.stringify(R)}`)}return U.oneOfNodeTypes=V,U}function I(...V){function X(U,N,j){const F=f(j);for(const R of V)if(F===R||(0,t.default)(R,j)){(0,r.validateChild)(U,N,j);return}throw new TypeError(`Property ${N} of ${U.type} expected node to be of a type ${JSON.stringify(V)} but instead got ${JSON.stringify(j==null?void 0:j.type)}`)}return X.oneOfNodeOrValueTypes=V,X}function k(V){function X(U,N,j){if(f(j)!==V)throw new TypeError(`Property ${N} expected type of ${V} but got ${f(j)}`)}return X.type=V,X}function M(V){const X=Object.keys(V);function U(N,j,F){const R=[];for(const J of X)try{(0,r.validateField)(N,J,F[J],V[J])}catch(se){if(se instanceof TypeError){R.push(se.message);continue}throw se}if(R.length)throw new TypeError(`Property ${j} of ${N.type} expected to have the following:
${R.join(`
`)}`)}return U.shapeOf=V,U}function D(){function V(X){var U;let N=X;for(;X;){const{type:j}=N;if(j==="OptionalCallExpression"){if(N.optional)return;N=N.callee;continue}if(j==="OptionalMemberExpression"){if(N.optional)return;N=N.object;continue}break}throw new TypeError(`Non-optional ${X.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(U=N)==null?void 0:U.type}`)}return V}function C(...V){function X(...U){for(const N of V)N(...U)}if(X.chainOf=V,V.length>=2&&"type"in V[0]&&V[0].type==="array"&&!("each"in V[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return X}const L=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),q=new Set(["default","optional","deprecated","validate"]),$={};function z(...V){return(X,U={})=>{let N=U.aliases;if(!N){var j;U.inherits&&(N=(j=$[U.inherits].aliases)==null?void 0:j.slice()),N??(N=[]),U.aliases=N}const F=V.filter(R=>!N.includes(R));N.unshift(...F),Q(X,U)}}function Q(V,X={}){const U=X.inherits&&$[X.inherits]||{};let N=X.fields;if(!N&&(N={},U.fields)){const J=Object.getOwnPropertyNames(U.fields);for(const se of J){const ie=U.fields[se],ae=ie.default;if(Array.isArray(ae)?ae.length>0:ae&&typeof ae=="object")throw new Error("field defaults can only be primitives or empty arrays currently");N[se]={default:Array.isArray(ae)?[]:ae,optional:ie.optional,deprecated:ie.deprecated,validate:ie.validate}}}const j=X.visitor||U.visitor||[],F=X.aliases||U.aliases||[],R=X.builder||U.builder||X.visitor||[];for(const J of Object.keys(X))if(!L.has(J))throw new Error(`Unknown type option "${J}" on ${V}`);X.deprecatedAlias&&(l[X.deprecatedAlias]=V);for(const J of j.concat(R))N[J]=N[J]||{};for(const J of Object.keys(N)){const se=N[J];se.default!==void 0&&!R.includes(J)&&(se.optional=!0),se.default===void 0?se.default=null:!se.validate&&se.default!=null&&(se.validate=k(f(se.default)));for(const ie of Object.keys(se))if(!q.has(ie))throw new Error(`Unknown field key "${ie}" on ${V}.${J}`)}n[V]=X.visitor=j,o[V]=X.builder=R,s[V]=X.fields=N,i[V]=X.aliases=F,F.forEach(J=>{a[J]=a[J]||[],a[J].push(V)}),X.validate&&(c[V]=X.validate),X.unionShape&&(p[V]=X.unionShape),$[V]=X}return Nt}var bw;function Cm(){if(bw)return Tr;bw=1;var e={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.patternLikeCommon=Tr.importAttributes=Tr.functionTypeAnnotationCommon=Tr.functionDeclarationCommon=Tr.functionCommon=Tr.classMethodOrPropertyUnionShapeCommon=Tr.classMethodOrPropertyCommon=Tr.classMethodOrDeclareMethodCommon=void 0;var t=Qf(),r=Zf(),n=Om(),i=L7(),a=ep(),s=pa();const o=(y=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,s.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:y?(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});Tr.classMethodOrPropertyUnionShapeCommon=o;const l=(0,s.defineAliasedType)("Standardized");l("ArrayExpression",{fields:{elements:{validate:(0,s.arrayOf)((0,s.assertNodeOrValueType)("null","Expression","SpreadElement")),default:e.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),l("AssignmentExpression",{fields:{operator:{validate:e.BABEL_TYPES_8_BREAKING?Object.assign((function(){const y=(0,s.assertOneOf)(...a.ASSIGNMENT_OPERATORS),m=(0,s.assertOneOf)("=");return function(T,A,E){((0,t.default)("Pattern",T.left)?m:y)(T,A,E)}})(),{oneOf:a.ASSIGNMENT_OPERATORS}):(0,s.assertValueType)("string")},left:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,s.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),l("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,s.assertOneOf)(...a.BINARY_OPERATORS)},left:{validate:(function(){const y=(0,s.assertNodeType)("Expression"),m=(0,s.assertNodeType)("Expression","PrivateName");return Object.assign(function(A,E,P){(A.operator==="in"?m:y)(A,E,P)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,s.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),l("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}}),l("Directive",{visitor:["value"],fields:{value:{validate:(0,s.assertNodeType)("DirectiveLiteral")}}}),l("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}}),l("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,s.arrayOfType)("Directive"),default:[]},body:(0,s.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),l("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),l("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,s.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,s.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,s.assertNodeType)("TypeParameterInstantiation"),optional:!0}},e.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),l("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),l("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},consequent:{validate:(0,s.assertNodeType)("Expression")},alternate:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),l("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),l("DebuggerStatement",{aliases:["Statement"]}),l("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),l("EmptyStatement",{aliases:["Statement"]}),l("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),l("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,s.assertNodeType)("Program")},comments:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.assertEach)((0,s.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,s.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),l("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),l("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,s.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,s.assertNodeType)("Expression"),optional:!0},update:{validate:(0,s.assertNodeType)("Expression"),optional:!0},body:{validate:(0,s.assertNodeType)("Statement")}}});const c=()=>({params:(0,s.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});Tr.functionCommon=c;const p=()=>({returnType:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});Tr.functionTypeAnnotationCommon=p;const f=()=>Object.assign({},c(),{declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}});Tr.functionDeclarationCommon=f,l("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},f(),p(),{body:{validate:(0,s.assertNodeType)("BlockStatement")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:e.BABEL_TYPES_8_BREAKING?(function(){const y=(0,s.assertNodeType)("Identifier");return function(m,T,A){(0,t.default)("ExportDefaultDeclaration",m)||y(A,"id",A.id)}})():void 0}),l("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},c(),p(),{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const d=()=>({typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0}});Tr.patternLikeCommon=d,l("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},d(),{name:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("string"),Object.assign(function(y,m,T){if(!(0,r.default)(T,!1))throw new TypeError(`"${T}" is not a valid identifier name`)},{type:"string"})):(0,s.assertValueType)("string")}}),validate:e.BABEL_TYPES_8_BREAKING?function(y,m,T){const A=/\.(\w+)$/.exec(m.toString());if(!A)return;const[,E]=A,P={computed:!1};if(E==="property"){if((0,t.default)("MemberExpression",y,P)||(0,t.default)("OptionalMemberExpression",y,P))return}else if(E==="key"){if((0,t.default)("Property",y,P)||(0,t.default)("Method",y,P))return}else if(E==="exported"){if((0,t.default)("ExportSpecifier",y))return}else if(E==="imported"){if((0,t.default)("ImportSpecifier",y,{imported:T}))return}else if(E==="meta"&&(0,t.default)("MetaProperty",y,{meta:T}))return;if(((0,n.isKeyword)(T.name)||(0,n.isReservedWord)(T.name,!1))&&T.name!=="this")throw new TypeError(`"${T.name}" is not a valid identifier`)}:void 0}),l("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},consequent:{validate:(0,s.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,s.assertNodeType)("Statement")}}}),l("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,s.assertNodeType)("Identifier")},body:{validate:(0,s.assertNodeType)("Statement")}}}),l("StringLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),l("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,s.chain)((0,s.assertValueType)("number"),Object.assign(function(y,m,T){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),l("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),l("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),l("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,s.assertValueType)("string")},flags:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("string"),Object.assign(function(y,m,T){const A=/[^dgimsuvy]/.exec(T);if(A)throw new TypeError(`"${A[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,s.assertValueType)("string"),default:""}}}),l("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,s.assertOneOf)(...a.LOGICAL_OPERATORS)},left:{validate:(0,s.assertNodeType)("Expression")},right:{validate:(0,s.assertNodeType)("Expression")}}}),l("MemberExpression",{builder:["object","property","computed",...e.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,s.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,s.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,s.assertNodeType)("Expression","Super")},property:{validate:(function(){const y=(0,s.assertNodeType)("Identifier","PrivateName"),m=(0,s.assertNodeType)("Expression"),T=function(A,E,P){(A.computed?m:y)(A,E,P)};return T.oneOfNodeTypes=["Expression","Identifier","PrivateName"],T})()},computed:{default:!1}},e.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,s.assertValueType)("boolean"),optional:!0}})}),l("NewExpression",{inherits:"CallExpression"}),l("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,s.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,s.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,s.arrayOfType)("Directive"),default:[]},body:(0,s.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),l("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,s.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),l("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},o(),{fields:Object.assign({},c(),p(),{kind:Object.assign({validate:(0,s.assertOneOf)("method","get","set")},e.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(function(){const y=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),m=(0,s.assertNodeType)("Expression"),T=function(A,E,P){(A.computed?m:y)(A,E,P)};return T.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],T})()},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]})),l("ObjectProperty",{builder:["key","value","computed","shorthand",...e.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,s.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:(function(){const y=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),m=(0,s.assertNodeType)("Expression");return Object.assign(function(A,E,P){(A.computed?m:y)(A,E,P)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})})()},value:{validate:(0,s.assertNodeType)("Expression","PatternLike")},shorthand:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),Object.assign(function(y,m,T){if(T){if(y.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,t.default)("Identifier",y.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,s.assertValueType)("boolean"),default:!1},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:e.BABEL_TYPES_8_BREAKING?(function(){const y=(0,s.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),m=(0,s.assertNodeType)("Expression");return function(T,A,E){((0,t.default)("ObjectPattern",T)?y:m)(E,"value",E.value)}})():void 0}),l("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},d(),{argument:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:e.BABEL_TYPES_8_BREAKING?function(y,m){const T=/(\w+)\[(\d+)\]/.exec(m.toString());if(!T)throw new Error("Internal Babel error: malformed key.");const[,A,E]=T;if(y[A].length>+E+1)throw new TypeError(`RestElement must be last element of ${A}`)}:void 0}),l("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,s.assertNodeType)("Expression"),optional:!0}}}),l("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,s.validateArrayOfType)("Expression")},aliases:["Expression"]}),l("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}}}),l("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,s.assertNodeType)("Expression"),optional:!0},consequent:(0,s.validateArrayOfType)("Statement")}}),l("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,s.assertNodeType)("Expression")},cases:(0,s.validateArrayOfType)("SwitchCase")}}),l("ThisExpression",{aliases:["Expression"]}),l("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),l("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertNodeType)("BlockStatement"),Object.assign(function(y){if(!y.handler&&!y.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,s.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,s.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,s.assertNodeType)("BlockStatement")}}}),l("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,s.assertNodeType)("Expression")},operator:{validate:(0,s.assertOneOf)(...a.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),l("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","MemberExpression"):(0,s.assertNodeType)("Expression")},operator:{validate:(0,s.assertOneOf)(...a.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),l("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},kind:{validate:(0,s.assertOneOf)("var","let","const","using","await using")},declarations:(0,s.validateArrayOfType)("VariableDeclarator")},validate:e.BABEL_TYPES_8_BREAKING?(()=>{const y=(0,s.assertNodeType)("Identifier","Placeholder"),m=(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),T=(0,s.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(A,E,P){const{kind:_,declarations:I}=P,k=(0,t.default)("ForXStatement",A,{left:P});if(k&&I.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${A.type}`);for(const M of I)_==="const"||_==="let"||_==="var"?!k&&!M.init?y(M,"id",M.id):m(M,"id",M.id):T(M,"id",M.id)}})():void 0}),l("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,s.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,s.assertValueType)("boolean")},init:{optional:!0,validate:(0,s.assertNodeType)("Expression")}}}),l("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),l("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),l("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},d(),{left:{validate:(0,s.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,s.assertNodeType)("Expression")},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0}})}),l("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},d(),{elements:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeOrValueType)("null","PatternLike")))}})}),l("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},c(),p(),{expression:{validate:(0,s.assertValueType)("boolean")},body:{validate:(0,s.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),l("ClassBody",{visitor:["body"],fields:{body:(0,s.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),l("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,s.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,s.assertNodeType)("Expression")},superTypeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,s.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,s.assertNodeType)("InterfaceExtends"),optional:!0}}}),l("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,s.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,s.assertNodeType)("Expression")},superTypeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,s.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,s.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,s.assertValueType)("boolean"),optional:!0}},validate:e.BABEL_TYPES_8_BREAKING?(function(){const y=(0,s.assertNodeType)("Identifier");return function(m,T,A){(0,t.default)("ExportDefaultDeclaration",m)||y(A,"id",A.id)}})():void 0});const h=Tr.importAttributes={attributes:{optional:!0,validate:(0,s.arrayOfType)("ImportAttribute")}};h.assertions={deprecated:!0,optional:!0,validate:(0,s.arrayOfType)("ImportAttribute")},l("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,s.assertNodeType)("StringLiteral")},exportKind:(0,s.validateOptional)((0,s.assertOneOf)("type","value"))},h)}),l("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,s.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,s.validateOptional)((0,s.assertOneOf)("value"))}}),l("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:e.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertNodeType)("Declaration"),Object.assign(function(y,m,T){if(T&&y.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(T&&y.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,s.assertNodeType)("Declaration")}},h,{specifiers:{default:[],validate:(0,s.arrayOf)((function(){const y=(0,s.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),m=(0,s.assertNodeType)("ExportSpecifier");return e.BABEL_TYPES_8_BREAKING?Object.assign(function(T,A,E){(T.source?y:m)(T,A,E)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):y})())},source:{validate:(0,s.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,s.validateOptional)((0,s.assertOneOf)("type","value"))})}),l("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")},exported:{validate:(0,s.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,s.assertOneOf)("type","value"),optional:!0}}}),l("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(function(){if(!e.BABEL_TYPES_8_BREAKING)return(0,s.assertNodeType)("VariableDeclaration","LVal");const y=(0,s.assertNodeType)("VariableDeclaration"),m=(0,s.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(T,A,E){(0,t.default)("VariableDeclaration",E)?y(T,A,E):m(T,A,E)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})})()},right:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")},await:{default:!1}}}),l("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},h,{module:{optional:!0,validate:(0,s.assertValueType)("boolean")},phase:{default:null,validate:(0,s.assertOneOf)("source","defer")},specifiers:(0,s.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,s.assertNodeType)("StringLiteral")},importKind:{validate:(0,s.assertOneOf)("type","typeof","value"),optional:!0}})}),l("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")}}}),l("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")}}}),l("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")},imported:{validate:(0,s.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,s.assertOneOf)("type","typeof","value"),optional:!0}}}),l("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,s.assertOneOf)("source","defer")},source:{validate:(0,s.assertNodeType)("Expression")},options:{validate:(0,s.assertNodeType)("Expression"),optional:!0}}}),l("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertNodeType)("Identifier"),Object.assign(function(y,m,T){let A;switch(T.name){case"function":A="sent";break;case"new":A="target";break;case"import":A="meta";break}if(!(0,t.default)("Identifier",y.property,{name:A}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,s.assertNodeType)("Identifier")},property:{validate:(0,s.assertNodeType)("Identifier")}}});const v=()=>({abstract:{validate:(0,s.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,s.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},key:{validate:(0,s.chain)((function(){const y=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),m=(0,s.assertNodeType)("Expression");return function(T,A,E){(T.computed?m:y)(T,A,E)}})(),(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});Tr.classMethodOrPropertyCommon=v;const x=()=>Object.assign({},c(),v(),{params:(0,s.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,s.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,s.chain)((0,s.assertValueType)("string"),(0,s.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0}});return Tr.classMethodOrDeclareMethodCommon=x,l("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},o(),{fields:Object.assign({},x(),p(),{body:{validate:(0,s.assertNodeType)("BlockStatement")}})})),l("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},d(),{properties:(0,s.validateArrayOfType)("RestElement","ObjectProperty")})}),l("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),l("Super",{aliases:["Expression"]}),l("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,s.assertNodeType)("Expression")},quasi:{validate:(0,s.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),l("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,s.chain)((0,s.assertShape)({raw:{validate:(0,s.assertValueType)("string")},cooked:{validate:(0,s.assertValueType)("string"),optional:!0}}),function(m){const T=m.value.raw;let A=!1;const E=()=>{throw new Error("Internal @babel/types error.")},{str:P,firstInvalidLoc:_}=(0,i.readStringContents)("template",T,0,0,0,{unterminated(){A=!0},strictNumericEscape:E,invalidEscapeSequence:E,numericSeparatorInEscapeSequence:E,unexpectedNumericSeparator:E,invalidDigit:E,invalidCodePoint:E});if(!A)throw new Error("Invalid raw");m.value.cooked=_?null:P})},tail:{default:!1}}}),l("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,s.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Expression","TSType")),function(y,m,T){if(y.quasis.length!==T.length+1)throw new TypeError(`Number of ${y.type} quasis should be exactly one more than the number of expressions.
Expected ${T.length+1} quasis but got ${y.quasis.length}`)})}}}),l("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),Object.assign(function(y,m,T){if(T&&!y.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,s.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,s.assertNodeType)("Expression")}}}),l("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),l("Import",{aliases:["Expression"]}),l("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),l("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,s.assertNodeType)("Identifier")}}}),l("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,s.assertNodeType)("Expression")},property:{validate:(function(){const y=(0,s.assertNodeType)("Identifier"),m=(0,s.assertNodeType)("Expression");return Object.assign(function(A,E,P){(A.computed?m:y)(A,E,P)},{oneOfNodeTypes:["Expression","Identifier"]})})()},computed:{default:!1},optional:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),(0,s.assertOptionalChainStart)()):(0,s.assertValueType)("boolean")}}}),l("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,s.assertNodeType)("Expression")},arguments:(0,s.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:e.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),(0,s.assertOptionalChainStart)()):(0,s.assertValueType)("boolean")},typeArguments:{validate:(0,s.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),l("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},o(),{fields:Object.assign({},v(),{value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}})})),l("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},o(!0),{fields:Object.assign({},v(),{key:{validate:(0,s.chain)((function(){const y=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),m=(0,s.assertNodeType)("Expression");return function(T,A,E){(T.computed?m:y)(T,A,E)}})(),(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}})})),l("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,s.assertNodeType)("PrivateName")},value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,s.assertValueType)("boolean"),default:!1},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}}}),l("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},x(),p(),{kind:{validate:(0,s.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,s.assertNodeType)("PrivateName")},body:{validate:(0,s.assertNodeType)("BlockStatement")}})}),l("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,s.assertNodeType)("Identifier")}}}),l("StaticBlock",{visitor:["body"],fields:{body:(0,s.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),l("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,s.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,s.assertNodeType)("StringLiteral")}}}),Tr}var xw={},Tw;function j7(){if(Tw)return xw;Tw=1;var e=Cm(),t=pa();const r=(0,t.defineAliasedType)("Flow"),n=i=>{const a=i==="DeclareClass";r(i,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...a?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),extends:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends"))},a?{mixins:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends")),implements:(0,t.validateOptional)((0,t.arrayOfType)("ClassImplements"))}:{},{body:(0,t.validateType)("ObjectTypeAnnotation")})})};return r("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,t.validateType)("FlowType")}}),r("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),n("DeclareClass"),r("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),predicate:(0,t.validateOptionalType)("DeclaredPredicate")}}),n("DeclareInterface"),r("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier","StringLiteral"),body:(0,t.validateType)("BlockStatement"),kind:(0,t.validateOptional)((0,t.assertOneOf)("CommonJS","ES"))}}),r("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,t.validateType)("TypeAnnotation")}}),r("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),right:(0,t.validateType)("FlowType")}}),r("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,t.validateOptionalType)("FlowType"),impltype:(0,t.validateOptionalType)("FlowType")}}),r("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier")}}),r("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,t.validateOptionalType)("Flow"),specifiers:(0,t.validateOptional)((0,t.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,t.validateOptionalType)("StringLiteral"),default:(0,t.validateOptional)((0,t.assertValueType)("boolean"))},e.importAttributes)}),r("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,t.validateType)("StringLiteral"),exportKind:(0,t.validateOptional)((0,t.assertOneOf)("type","value"))},e.importAttributes)}),r("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,t.validateType)("Flow")}}),r("ExistsTypeAnnotation",{aliases:["FlowType"]}),r("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),params:(0,t.validateArrayOfType)("FunctionTypeParam"),rest:(0,t.validateOptionalType)("FunctionTypeParam"),this:(0,t.validateOptionalType)("FunctionTypeParam"),returnType:(0,t.validateType)("FlowType")}}),r("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,t.validateOptionalType)("Identifier"),typeAnnotation:(0,t.validateType)("FlowType"),optional:(0,t.validateOptional)((0,t.assertValueType)("boolean"))}}),r("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,t.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),r("InferredPredicate",{aliases:["FlowPredicate"]}),r("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,t.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),n("InterfaceDeclaration"),r("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends")),body:(0,t.validateType)("ObjectTypeAnnotation")}}),r("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,t.validateType)("FlowType")}}),r("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("number"))}}),r("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,t.validate)((0,t.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,t.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,t.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,t.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,t.assertValueType)("boolean"),default:!1},inexact:(0,t.validateOptional)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,t.validateType)("Identifier"),value:(0,t.validateType)("FlowType"),optional:(0,t.validate)((0,t.assertValueType)("boolean")),static:(0,t.validate)((0,t.assertValueType)("boolean")),method:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,t.validateType)("FlowType"),static:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,t.validateOptionalType)("Identifier"),key:(0,t.validateType)("FlowType"),value:(0,t.validateType)("FlowType"),static:(0,t.validate)((0,t.assertValueType)("boolean")),variance:(0,t.validateOptionalType)("Variance")}}),r("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,t.validateType)("Identifier","StringLiteral"),value:(0,t.validateType)("FlowType"),kind:(0,t.validate)((0,t.assertOneOf)("init","get","set")),static:(0,t.validate)((0,t.assertValueType)("boolean")),proto:(0,t.validate)((0,t.assertValueType)("boolean")),optional:(0,t.validate)((0,t.assertValueType)("boolean")),variance:(0,t.validateOptionalType)("Variance"),method:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,t.validateType)("FlowType")}}),r("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,t.validateOptionalType)("FlowType"),impltype:(0,t.validateType)("FlowType")}}),r("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,t.validateType)("Identifier"),qualification:(0,t.validateType)("Identifier","QualifiedTypeIdentifier")}}),r("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("string"))}}),r("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,t.validateType)("FlowType")}}),r("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),right:(0,t.validateType)("FlowType")}}),r("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,t.validateType)("FlowType")}}),r("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,t.validateType)("Expression"),typeAnnotation:(0,t.validateType)("TypeAnnotation")}}),r("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,t.validate)((0,t.assertValueType)("string")),bound:(0,t.validateOptionalType)("TypeAnnotation"),default:(0,t.validateOptionalType)("FlowType"),variance:(0,t.validateOptionalType)("Variance")}}),r("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,t.validate)((0,t.arrayOfType)("TypeParameter"))}}),r("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("Variance",{builder:["kind"],fields:{kind:(0,t.validate)((0,t.assertOneOf)("minus","plus"))}}),r("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,t.validateType)("Identifier"),body:(0,t.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),r("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,t.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("BooleanLiteral")}}),r("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("NumericLiteral")}}),r("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("StringLiteral")}}),r("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,t.validateType)("Identifier")}}),r("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,t.validateType)("FlowType"),indexType:(0,t.validateType)("FlowType")}}),r("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,t.validateType)("FlowType"),indexType:(0,t.validateType)("FlowType"),optional:(0,t.validate)((0,t.assertValueType)("boolean"))}}),xw}var Sw={},Ew;function R7(){if(Ew)return Sw;Ew=1;var e=pa();const t=(0,e.defineAliasedType)("JSX");return t("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,e.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),t("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),t("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,e.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,e.assertNodeType)("JSXClosingElement")},children:(0,e.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,e.assertValueType)("boolean"),optional:!0}})}),t("JSXEmptyExpression",{}),t("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression","JSXEmptyExpression")}}}),t("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}}),t("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,e.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,e.assertNodeType)("JSXIdentifier")},name:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,e.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,e.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,e.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),t("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}}}),t("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,e.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,e.assertNodeType)("JSXClosingFragment")},children:(0,e.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),t("JSXOpeningFragment",{aliases:["Immutable"]}),t("JSXClosingFragment",{aliases:["Immutable"]}),Sw}var Pw={},zi={},Aw;function Qj(){if(Aw)return zi;Aw=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.PLACEHOLDERS_FLIPPED_ALIAS=zi.PLACEHOLDERS_ALIAS=zi.PLACEHOLDERS=void 0;var e=pa();const t=zi.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],r=zi.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const i of t){const a=e.ALIAS_KEYS[i];a!=null&&a.length&&(r[i]=a)}const n=zi.PLACEHOLDERS_FLIPPED_ALIAS={};return Object.keys(r).forEach(i=>{r[i].forEach(a=>{hasOwnProperty.call(n,a)||(n[a]=[]),n[a].push(i)})}),zi}var ww;function B7(){if(ww)return Pw;ww=1;var e=pa(),t=Qj(),r=Cm();const n=(0,e.defineAliasedType)("Miscellaneous");return n("Noop",{visitor:[]}),n("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,e.assertNodeType)("Identifier")},expectedNode:{validate:(0,e.assertOneOf)(...t.PLACEHOLDERS)}},(0,r.patternLikeCommon)())}),n("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}}),Pw}var _w={},Ow;function F7(){if(Ow)return _w;Ow=1;var e={},t=pa();return(0,t.default)("ArgumentPlaceholder",{}),(0,t.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:e.BABEL_TYPES_8_BREAKING?{object:{validate:(0,t.assertNodeType)("Expression")},callee:{validate:(0,t.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,t.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,t.assertNodeType)("Expression")}}}),(0,t.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,t.assertNodeType)("BlockStatement")},async:{validate:(0,t.assertValueType)("boolean"),default:!1}}}),(0,t.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,t.assertNodeType)("Identifier")}}}),(0,t.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,t.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,t.default)("TupleExpression",{fields:{elements:{validate:(0,t.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,t.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,t.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,t.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,t.assertNodeType)("Program")}},aliases:["Expression"]}),(0,t.default)("TopicReference",{aliases:["Expression"]}),(0,t.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,t.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,t.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,t.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,t.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,t.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]}),_w}var Cw={},Iw;function q7(){if(Iw)return Cw;Iw=1;var e=pa(),t=Cm(),r=Qf();const n=(0,e.defineAliasedType)("TypeScript"),i=(0,e.assertValueType)("boolean"),a=()=>({returnType:{validate:(0,e.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,e.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});n("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,e.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,e.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,e.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,e.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,e.arrayOfType)("Decorator"),optional:!0}}}),n("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,t.functionDeclarationCommon)(),a())}),n("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,t.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,t.classMethodOrDeclareMethodCommon)(),a())})),n("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,e.validateType)("TSEntityName"),right:(0,e.validateType)("Identifier")}});const s=()=>({typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,e.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}),o={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:s()};n("TSCallSignatureDeclaration",o),n("TSConstructSignatureDeclaration",o);const l=()=>({key:(0,e.validateType)("Expression"),computed:{default:!1},optional:(0,e.validateOptional)(i)});n("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},l(),{readonly:(0,e.validateOptional)(i),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,e.assertOneOf)("get","set")}})}),n("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},s(),l(),{kind:{validate:(0,e.assertOneOf)("method","get","set")}})}),n("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,e.validateOptional)(i),static:(0,e.validateOptional)(i),parameters:(0,e.validateArrayOfType)("Identifier"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}});const c=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const h of c)n(h,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});n("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const p={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};n("TSFunctionType",Object.assign({},p,{fields:s()})),n("TSConstructorType",Object.assign({},p,{fields:Object.assign({},s(),{abstract:(0,e.validateOptional)(i)})})),n("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,e.validateType)("Identifier","TSThisType"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),asserts:(0,e.validateOptional)(i)}}),n("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,e.validateType)("TSEntityName","TSImportType"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,e.validateArrayOfType)("TSTypeElement")}}),n("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,e.validateType)("TSType")}}),n("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,e.validateArrayOfType)("TSType","TSNamedTupleMember")}}),n("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,e.validateType)("Identifier"),optional:{validate:i,default:!1},elementType:(0,e.validateType)("TSType")}});const f={aliases:["TSType"],visitor:["types"],fields:{types:(0,e.validateArrayOfType)("TSType")}};n("TSUnionType",f),n("TSIntersectionType",f),n("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,e.validateType)("TSType"),extendsType:(0,e.validateType)("TSType"),trueType:(0,e.validateType)("TSType"),falseType:(0,e.validateType)("TSType")}}),n("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,e.validateType)("TSTypeParameter")}}),n("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,e.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,e.validateType)("TSType")}}),n("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,e.validateType)("TSType"),indexType:(0,e.validateType)("TSType")}}),n("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,e.validateType)("TSTypeParameter")},{readonly:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),optional:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,e.validateOptionalType)("TSType"),nameType:(0,e.validateOptionalType)("TSType")})}),n("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,e.validateArrayOfType)("TemplateElement"),types:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("TSType")),function(h,v,x){if(h.quasis.length!==x.length+1)throw new TypeError(`Number of ${h.type} quasis should be exactly one more than the number of types.
Expected ${x.length+1} quasis but got ${h.quasis.length}`)})}}}),n("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){const h=(0,e.assertNodeType)("NumericLiteral","BigIntLiteral"),v=(0,e.assertOneOf)("-"),x=(0,e.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),y=function(T,A,E){(0,r.default)("UnaryExpression",E)?(v(E,"operator",E.operator),h(E,"argument",E.argument)):x(T,A,E)};return y.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],y})()}}}),n("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,e.validateOptional)((0,e.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,e.validateType)("TSInterfaceBody")}}),n("TSInterfaceBody",{visitor:["body"],fields:{body:(0,e.validateArrayOfType)("TSTypeElement")}}),n("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,e.validateType)("TSType")}}),n("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("Expression"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}});const d={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,e.validateType)("Expression"),typeAnnotation:(0,e.validateType)("TSType")}};return n("TSAsExpression",d),n("TSSatisfiesExpression",d),n("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,e.validateType)("TSType"),expression:(0,e.validateType)("Expression")}}),n("TSEnumBody",{visitor:["members"],fields:{members:(0,e.validateArrayOfType)("TSEnumMember")}}),n("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,e.validateOptional)(i),const:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),members:(0,e.validateArrayOfType)("TSEnumMember"),initializer:(0,e.validateOptionalType)("Expression"),body:(0,e.validateOptionalType)("TSEnumBody")}}),n("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,e.validateType)("Identifier","StringLiteral"),initializer:(0,e.validateOptionalType)("Expression")}}),n("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,e.assertOneOf)("global","module","namespace")},declare:(0,e.validateOptional)(i)},{global:(0,e.validateOptional)(i)},{id:(0,e.validateType)("Identifier","StringLiteral"),body:(0,e.validateType)("TSModuleBlock","TSModuleDeclaration")})}),n("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,e.validateArrayOfType)("Statement")}}),n("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,e.validateType)("StringLiteral")},{qualifier:(0,e.validateOptionalType)("TSEntityName")},{typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,e.assertNodeType)("ObjectExpression"),optional:!0}})}),n("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,e.validate)(i)},{id:(0,e.validateType)("Identifier"),moduleReference:(0,e.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,e.assertOneOf)("type","value"),optional:!0}})}),n("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,e.validateType)("StringLiteral")}}),n("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),n("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),n("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier")}}),n("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,e.assertNodeType)("TSType")}}}),n("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,e.validateArrayOfType)("TSType")}}),n("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,e.validateArrayOfType)("TSTypeParameter")}}),n("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,e.assertValueType)("string")},in:{validate:(0,e.assertValueType)("boolean"),optional:!0},out:{validate:(0,e.assertValueType)("boolean"),optional:!0},const:{validate:(0,e.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,e.assertNodeType)("TSType"),optional:!0},default:{validate:(0,e.assertNodeType)("TSType"),optional:!0}}}),Cw}var uc={},kw;function $7(){return kw||(kw=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.DEPRECATED_ALIASES=void 0,uc.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}),uc}var Nw;function si(){return Nw||(Nw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALIAS_KEYS",{enumerable:!0,get:function(){return t.ALIAS_KEYS}}),Object.defineProperty(e,"BUILDER_KEYS",{enumerable:!0,get:function(){return t.BUILDER_KEYS}}),Object.defineProperty(e,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return n.DEPRECATED_ALIASES}}),Object.defineProperty(e,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return t.DEPRECATED_KEYS}}),Object.defineProperty(e,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return t.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(e,"NODE_FIELDS",{enumerable:!0,get:function(){return t.NODE_FIELDS}}),Object.defineProperty(e,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return t.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(e,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return t.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(e,"PLACEHOLDERS",{enumerable:!0,get:function(){return r.PLACEHOLDERS}}),Object.defineProperty(e,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return r.PLACEHOLDERS_ALIAS}}),Object.defineProperty(e,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return r.PLACEHOLDERS_FLIPPED_ALIAS}}),e.TYPES=void 0,Object.defineProperty(e,"VISITOR_KEYS",{enumerable:!0,get:function(){return t.VISITOR_KEYS}}),Cm(),j7(),R7(),B7(),F7(),q7();var t=pa(),r=Qj(),n=$7();Object.keys(n.DEPRECATED_ALIASES).forEach(i=>{t.FLIPPED_ALIAS_KEYS[i]=t.FLIPPED_ALIAS_KEYS[n.DEPRECATED_ALIASES[i]]});for(const{types:i,set:a}of t.allExpandedTypes)for(const s of i){const o=t.FLIPPED_ALIAS_KEYS[s];o?o.forEach(a.add,a):a.add(s)}e.TYPES=[].concat(Object.keys(t.VISITOR_KEYS),Object.keys(t.FLIPPED_ALIAS_KEYS),Object.keys(t.DEPRECATED_KEYS))})(Bg)),Bg}var Dw;function w1(){if(Dw)return wo;Dw=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=t,wo.validateChild=i,wo.validateField=n,wo.validateInternal=r;var e=si();function t(a,s,o){if(!a)return;const l=e.NODE_FIELDS[a.type];if(!l)return;const c=l[s];n(a,s,o,c),i(a,s,o)}function r(a,s,o,l,c){if(a!=null&&a.validate&&!(a.optional&&l==null)&&(a.validate(s,o,l),c)){var p;const f=l.type;if(f==null)return;(p=e.NODE_PARENT_VALIDATIONS[f])==null||p.call(e.NODE_PARENT_VALIDATIONS,s,o,l)}}function n(a,s,o,l){l!=null&&l.validate&&(l.optional&&o==null||l.validate(a,s,o))}function i(a,s,o){var l;const c=o==null?void 0:o.type;c!=null&&((l=e.NODE_PARENT_VALIDATIONS[c])==null||l.call(e.NODE_PARENT_VALIDATIONS,a,s,o))}return wo}var Mw;function Zj(){if(Mw)return ye;Mw=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.anyTypeAnnotation=Hn,ye.argumentPlaceholder=bo,ye.arrayExpression=s,ye.arrayPattern=Oe,ye.arrayTypeAnnotation=Li,ye.arrowFunctionExpression=Me,ye.assignmentExpression=o,ye.assignmentPattern=ke,ye.awaitExpression=mt,ye.bigIntLiteral=a,ye.binaryExpression=l,ye.bindExpression=xo,ye.blockStatement=d,ye.booleanLiteral=V,ye.booleanLiteralTypeAnnotation=Yn,ye.booleanTypeAnnotation=ci,ye.breakStatement=h,ye.callExpression=v,ye.catchClause=x,ye.classAccessorProperty=yr,ye.classBody=Ke,ye.classDeclaration=pe,ye.classExpression=_e,ye.classImplements=Cn,ye.classMethod=qe,ye.classPrivateMethod=Gr,ye.classPrivateProperty=Mr,ye.classProperty=mr,ye.conditionalExpression=y,ye.continueStatement=m,ye.debuggerStatement=T,ye.decimalLiteral=Jn,ye.declareClass=fi,ye.declareExportAllDeclaration=In,ye.declareExportDeclaration=Jr,ye.declareFunction=fn,ye.declareInterface=Ur,ye.declareModule=ga,ye.declareModuleExports=ji,ye.declareOpaqueType=js,ye.declareTypeAlias=Ri,ye.declareVariable=pn,ye.declaredPredicate=Rs,ye.decorator=Da,ye.directive=p,ye.directiveLiteral=f,ye.doExpression=To,ye.doWhileStatement=A,ye.emptyStatement=E,ye.emptyTypeAnnotation=Bi,ye.enumBooleanBody=$i,ye.enumBooleanMember=Aa,ye.enumDeclaration=ro,ye.enumDefaultedMember=wa,ye.enumNumberBody=no,ye.enumNumberMember=ut,ye.enumStringBody=Ui,ye.enumStringMember=ao,ye.enumSymbolBody=io,ye.existsTypeAnnotation=Bs,ye.exportAllDeclaration=ne,ye.exportDefaultDeclaration=me,ye.exportDefaultSpecifier=So,ye.exportNamedDeclaration=Ie,ye.exportNamespaceSpecifier=Ut,ye.exportSpecifier=De,ye.expressionStatement=P,ye.file=_,ye.forInStatement=I,ye.forOfStatement=Ue,ye.forStatement=k,ye.functionDeclaration=M,ye.functionExpression=D,ye.functionTypeAnnotation=Fs,ye.functionTypeParam=qs,ye.genericTypeAnnotation=pi,ye.identifier=C,ye.ifStatement=L,ye.import=Tt,ye.importAttribute=Wn,ye.importDeclaration=We,ye.importDefaultSpecifier=lt,ye.importExpression=vt,ye.importNamespaceSpecifier=gt,ye.importSpecifier=Ge,ye.indexedAccessType=so,ye.inferredPredicate=$s,ye.interfaceDeclaration=Us,ye.interfaceExtends=va,ye.interfaceTypeAnnotation=Xn,ye.interpreterDirective=c,ye.intersectionTypeAnnotation=jr,ye.jSXAttribute=ye.jsxAttribute=lo,ye.jSXClosingElement=ye.jsxClosingElement=uo,ye.jSXClosingFragment=ye.jsxClosingFragment=Vi,ye.jSXElement=ye.jsxElement=_a,ye.jSXEmptyExpression=ye.jsxEmptyExpression=co,ye.jSXExpressionContainer=ye.jsxExpressionContainer=Oa,ye.jSXFragment=ye.jsxFragment=mo,ye.jSXIdentifier=ye.jsxIdentifier=fo,ye.jSXMemberExpression=ye.jsxMemberExpression=po,ye.jSXNamespacedName=ye.jsxNamespacedName=Ia,ye.jSXOpeningElement=ye.jsxOpeningElement=ka,ye.jSXOpeningFragment=ye.jsxOpeningFragment=yo,ye.jSXSpreadAttribute=ye.jsxSpreadAttribute=ho,ye.jSXSpreadChild=ye.jsxSpreadChild=Ca,ye.jSXText=ye.jsxText=Na,ye.labeledStatement=q,ye.logicalExpression=U,ye.memberExpression=N,ye.metaProperty=Le,ye.mixedTypeAnnotation=Vs,ye.moduleExpression=Ma,ye.newExpression=j,ye.noop=go,ye.nullLiteral=Q,ye.nullLiteralTypeAnnotation=$r,ye.nullableTypeAnnotation=Ks,ye.numberLiteral=Zu,ye.numberLiteralTypeAnnotation=ba,ye.numberTypeAnnotation=di,ye.numericLiteral=z,ye.objectExpression=R,ye.objectMethod=J,ye.objectPattern=he,ye.objectProperty=se,ye.objectTypeAnnotation=xa,ye.objectTypeCallProperty=Ws,ye.objectTypeIndexer=Fi,ye.objectTypeInternalSlot=zs,ye.objectTypeProperty=Ta,ye.objectTypeSpreadProperty=Sa,ye.opaqueType=Gn,ye.optionalCallExpression=hr,ye.optionalIndexedAccessType=oo,ye.optionalMemberExpression=lr,ye.parenthesizedExpression=de,ye.pipelineBareFunction=g,ye.pipelinePrimaryTopicReference=u,ye.pipelineTopicExpression=G,ye.placeholder=vo,ye.privateName=zn,ye.program=F,ye.qualifiedTypeIdentifier=Hs,ye.recordExpression=Eo,ye.regExpLiteral=X,ye.regexLiteral=ec,ye.restElement=ie,ye.restProperty=tc,ye.returnStatement=ae,ye.sequenceExpression=fe,ye.spreadElement=$e,ye.spreadProperty=rc,ye.staticBlock=ot,ye.stringLiteral=$,ye.stringLiteralTypeAnnotation=Qr,ye.stringTypeAnnotation=Ys,ye.super=Ze,ye.switchCase=Se,ye.switchStatement=Ce,ye.symbolTypeAnnotation=Xs,ye.taggedTemplateExpression=Ee,ye.templateElement=Xe,ye.templateLiteral=it,ye.thisExpression=xe,ye.thisTypeAnnotation=Gs,ye.throwStatement=Be,ye.topicReference=Ao,ye.tryStatement=Re,ye.tSAnyKeyword=ye.tsAnyKeyword=tt,ye.tSArrayType=ye.tsArrayType=Ha,ye.tSAsExpression=ye.tsAsExpression=Lu,ye.tSBigIntKeyword=ye.tsBigIntKeyword=Ct,ye.tSBooleanKeyword=ye.tsBooleanKeyword=ct,ye.tSCallSignatureDeclaration=ye.tsCallSignatureDeclaration=be,ye.tSConditionalType=ye.tsConditionalType=es,ye.tSConstructSignatureDeclaration=ye.tsConstructSignatureDeclaration=we,ye.tSConstructorType=ye.tsConstructorType=Ua,ye.tSDeclareFunction=ye.tsDeclareFunction=B,ye.tSDeclareMethod=ye.tsDeclareMethod=ee,ye.tSEnumBody=ye.tsEnumBody=Bu,ye.tSEnumDeclaration=ye.tsEnumDeclaration=Fu,ye.tSEnumMember=ye.tsEnumMember=qu,ye.tSExportAssignment=ye.tsExportAssignment=Hu,ye.tSExpressionWithTypeArguments=ye.tsExpressionWithTypeArguments=ls,ye.tSExternalModuleReference=ye.tsExternalModuleReference=zu,ye.tSFunctionType=ye.tsFunctionType=$a,ye.tSImportEqualsDeclaration=ye.tsImportEqualsDeclaration=Ku,ye.tSImportType=ye.tsImportType=Vu,ye.tSIndexSignature=ye.tsIndexSignature=Qe,ye.tSIndexedAccessType=ye.tsIndexedAccessType=is,ye.tSInferType=ye.tsInferType=ts,ye.tSInstantiationExpression=ye.tsInstantiationExpression=Mu,ye.tSInterfaceBody=ye.tsInterfaceBody=cs,ye.tSInterfaceDeclaration=ye.tsInterfaceDeclaration=us,ye.tSIntersectionType=ye.tsIntersectionType=Za,ye.tSIntrinsicKeyword=ye.tsIntrinsicKeyword=Rt,ye.tSLiteralType=ye.tsLiteralType=os,ye.tSMappedType=ye.tsMappedType=as,ye.tSMethodSignature=ye.tsMethodSignature=Ve,ye.tSModuleBlock=ye.tsModuleBlock=Uu,ye.tSModuleDeclaration=ye.tsModuleDeclaration=$u,ye.tSNamedTupleMember=ye.tsNamedTupleMember=Ja,ye.tSNamespaceExportDeclaration=ye.tsNamespaceExportDeclaration=Yu,ye.tSNeverKeyword=ye.tsNeverKeyword=bt,ye.tSNonNullExpression=ye.tsNonNullExpression=Wu,ye.tSNullKeyword=ye.tsNullKeyword=jt,ye.tSNumberKeyword=ye.tsNumberKeyword=dn,ye.tSObjectKeyword=ye.tsObjectKeyword=Zr,ye.tSOptionalType=ye.tsOptionalType=Xa,ye.tSParameterProperty=ye.tsParameterProperty=w,ye.tSParenthesizedType=ye.tsParenthesizedType=rs,ye.tSPropertySignature=ye.tsPropertySignature=Ne,ye.tSQualifiedName=ye.tsQualifiedName=le,ye.tSRestType=ye.tsRestType=Ga,ye.tSSatisfiesExpression=ye.tsSatisfiesExpression=ju,ye.tSStringKeyword=ye.tsStringKeyword=La,ye.tSSymbolKeyword=ye.tsSymbolKeyword=ja,ye.tSTemplateLiteralType=ye.tsTemplateLiteralType=ss,ye.tSThisType=ye.tsThisType=qa,ye.tSTupleType=ye.tsTupleType=Ya,ye.tSTypeAliasDeclaration=ye.tsTypeAliasDeclaration=Du,ye.tSTypeAnnotation=ye.tsTypeAnnotation=Xu,ye.tSTypeAssertion=ye.tsTypeAssertion=Ru,ye.tSTypeLiteral=ye.tsTypeLiteral=Wa,ye.tSTypeOperator=ye.tsTypeOperator=ns,ye.tSTypeParameter=ye.tsTypeParameter=Qu,ye.tSTypeParameterDeclaration=ye.tsTypeParameterDeclaration=Ju,ye.tSTypeParameterInstantiation=ye.tsTypeParameterInstantiation=Gu,ye.tSTypePredicate=ye.tsTypePredicate=Ka,ye.tSTypeQuery=ye.tsTypeQuery=za,ye.tSTypeReference=ye.tsTypeReference=Va,ye.tSUndefinedKeyword=ye.tsUndefinedKeyword=Ra,ye.tSUnionType=ye.tsUnionType=Qa,ye.tSUnknownKeyword=ye.tsUnknownKeyword=Ba,ye.tSVoidKeyword=ye.tsVoidKeyword=Fa,ye.tupleExpression=Po,ye.tupleTypeAnnotation=hi,ye.typeAlias=Js,ye.typeAnnotation=Qs,ye.typeCastExpression=Zs,ye.typeParameter=eo,ye.typeParameterDeclaration=Pa,ye.typeParameterInstantiation=to,ye.typeofTypeAnnotation=Ea,ye.unaryExpression=He,ye.unionTypeAnnotation=mi,ye.updateExpression=ze,ye.v8IntrinsicIdentifier=Ki,ye.variableDeclaration=je,ye.variableDeclarator=re,ye.variance=yi,ye.voidPattern=b,ye.voidTypeAnnotation=qi,ye.whileStatement=ue,ye.withStatement=Te,ye.yieldExpression=st;var e=w1(),t=Jf(),r=pa();const{validateInternal:n}=e,{NODE_FIELDS:i}=r;function a(K){typeof K=="bigint"&&(K=K.toString());const W={type:"BigIntLiteral",value:K},Y=i.BigIntLiteral;return n(Y.value,W,"value",K),W}function s(K=[]){const W={type:"ArrayExpression",elements:K},Y=i.ArrayExpression;return n(Y.elements,W,"elements",K,1),W}function o(K,W,Y){const oe={type:"AssignmentExpression",operator:K,left:W,right:Y},Ae=i.AssignmentExpression;return n(Ae.operator,oe,"operator",K),n(Ae.left,oe,"left",W,1),n(Ae.right,oe,"right",Y,1),oe}function l(K,W,Y){const oe={type:"BinaryExpression",operator:K,left:W,right:Y},Ae=i.BinaryExpression;return n(Ae.operator,oe,"operator",K),n(Ae.left,oe,"left",W,1),n(Ae.right,oe,"right",Y,1),oe}function c(K){const W={type:"InterpreterDirective",value:K},Y=i.InterpreterDirective;return n(Y.value,W,"value",K),W}function p(K){const W={type:"Directive",value:K},Y=i.Directive;return n(Y.value,W,"value",K,1),W}function f(K){const W={type:"DirectiveLiteral",value:K},Y=i.DirectiveLiteral;return n(Y.value,W,"value",K),W}function d(K,W=[]){const Y={type:"BlockStatement",body:K,directives:W},oe=i.BlockStatement;return n(oe.body,Y,"body",K,1),n(oe.directives,Y,"directives",W,1),Y}function h(K=null){const W={type:"BreakStatement",label:K},Y=i.BreakStatement;return n(Y.label,W,"label",K,1),W}function v(K,W){const Y={type:"CallExpression",callee:K,arguments:W},oe=i.CallExpression;return n(oe.callee,Y,"callee",K,1),n(oe.arguments,Y,"arguments",W,1),Y}function x(K=null,W){const Y={type:"CatchClause",param:K,body:W},oe=i.CatchClause;return n(oe.param,Y,"param",K,1),n(oe.body,Y,"body",W,1),Y}function y(K,W,Y){const oe={type:"ConditionalExpression",test:K,consequent:W,alternate:Y},Ae=i.ConditionalExpression;return n(Ae.test,oe,"test",K,1),n(Ae.consequent,oe,"consequent",W,1),n(Ae.alternate,oe,"alternate",Y,1),oe}function m(K=null){const W={type:"ContinueStatement",label:K},Y=i.ContinueStatement;return n(Y.label,W,"label",K,1),W}function T(){return{type:"DebuggerStatement"}}function A(K,W){const Y={type:"DoWhileStatement",test:K,body:W},oe=i.DoWhileStatement;return n(oe.test,Y,"test",K,1),n(oe.body,Y,"body",W,1),Y}function E(){return{type:"EmptyStatement"}}function P(K){const W={type:"ExpressionStatement",expression:K},Y=i.ExpressionStatement;return n(Y.expression,W,"expression",K,1),W}function _(K,W=null,Y=null){const oe={type:"File",program:K,comments:W,tokens:Y},Ae=i.File;return n(Ae.program,oe,"program",K,1),n(Ae.comments,oe,"comments",W,1),n(Ae.tokens,oe,"tokens",Y),oe}function I(K,W,Y){const oe={type:"ForInStatement",left:K,right:W,body:Y},Ae=i.ForInStatement;return n(Ae.left,oe,"left",K,1),n(Ae.right,oe,"right",W,1),n(Ae.body,oe,"body",Y,1),oe}function k(K=null,W=null,Y=null,oe){const Ae={type:"ForStatement",init:K,test:W,update:Y,body:oe},Fe=i.ForStatement;return n(Fe.init,Ae,"init",K,1),n(Fe.test,Ae,"test",W,1),n(Fe.update,Ae,"update",Y,1),n(Fe.body,Ae,"body",oe,1),Ae}function M(K=null,W,Y,oe=!1,Ae=!1){const Fe={type:"FunctionDeclaration",id:K,params:W,body:Y,generator:oe,async:Ae},pt=i.FunctionDeclaration;return n(pt.id,Fe,"id",K,1),n(pt.params,Fe,"params",W,1),n(pt.body,Fe,"body",Y,1),n(pt.generator,Fe,"generator",oe),n(pt.async,Fe,"async",Ae),Fe}function D(K=null,W,Y,oe=!1,Ae=!1){const Fe={type:"FunctionExpression",id:K,params:W,body:Y,generator:oe,async:Ae},pt=i.FunctionExpression;return n(pt.id,Fe,"id",K,1),n(pt.params,Fe,"params",W,1),n(pt.body,Fe,"body",Y,1),n(pt.generator,Fe,"generator",oe),n(pt.async,Fe,"async",Ae),Fe}function C(K){const W={type:"Identifier",name:K},Y=i.Identifier;return n(Y.name,W,"name",K),W}function L(K,W,Y=null){const oe={type:"IfStatement",test:K,consequent:W,alternate:Y},Ae=i.IfStatement;return n(Ae.test,oe,"test",K,1),n(Ae.consequent,oe,"consequent",W,1),n(Ae.alternate,oe,"alternate",Y,1),oe}function q(K,W){const Y={type:"LabeledStatement",label:K,body:W},oe=i.LabeledStatement;return n(oe.label,Y,"label",K,1),n(oe.body,Y,"body",W,1),Y}function $(K){const W={type:"StringLiteral",value:K},Y=i.StringLiteral;return n(Y.value,W,"value",K),W}function z(K){const W={type:"NumericLiteral",value:K},Y=i.NumericLiteral;return n(Y.value,W,"value",K),W}function Q(){return{type:"NullLiteral"}}function V(K){const W={type:"BooleanLiteral",value:K},Y=i.BooleanLiteral;return n(Y.value,W,"value",K),W}function X(K,W=""){const Y={type:"RegExpLiteral",pattern:K,flags:W},oe=i.RegExpLiteral;return n(oe.pattern,Y,"pattern",K),n(oe.flags,Y,"flags",W),Y}function U(K,W,Y){const oe={type:"LogicalExpression",operator:K,left:W,right:Y},Ae=i.LogicalExpression;return n(Ae.operator,oe,"operator",K),n(Ae.left,oe,"left",W,1),n(Ae.right,oe,"right",Y,1),oe}function N(K,W,Y=!1,oe=null){const Ae={type:"MemberExpression",object:K,property:W,computed:Y,optional:oe},Fe=i.MemberExpression;return n(Fe.object,Ae,"object",K,1),n(Fe.property,Ae,"property",W,1),n(Fe.computed,Ae,"computed",Y),n(Fe.optional,Ae,"optional",oe),Ae}function j(K,W){const Y={type:"NewExpression",callee:K,arguments:W},oe=i.NewExpression;return n(oe.callee,Y,"callee",K,1),n(oe.arguments,Y,"arguments",W,1),Y}function F(K,W=[],Y="script",oe=null){const Ae={type:"Program",body:K,directives:W,sourceType:Y,interpreter:oe},Fe=i.Program;return n(Fe.body,Ae,"body",K,1),n(Fe.directives,Ae,"directives",W,1),n(Fe.sourceType,Ae,"sourceType",Y),n(Fe.interpreter,Ae,"interpreter",oe,1),Ae}function R(K){const W={type:"ObjectExpression",properties:K},Y=i.ObjectExpression;return n(Y.properties,W,"properties",K,1),W}function J(K="method",W,Y,oe,Ae=!1,Fe=!1,pt=!1){const Vt={type:"ObjectMethod",kind:K,key:W,params:Y,body:oe,computed:Ae,generator:Fe,async:pt},ur=i.ObjectMethod;return n(ur.kind,Vt,"kind",K),n(ur.key,Vt,"key",W,1),n(ur.params,Vt,"params",Y,1),n(ur.body,Vt,"body",oe,1),n(ur.computed,Vt,"computed",Ae),n(ur.generator,Vt,"generator",Fe),n(ur.async,Vt,"async",pt),Vt}function se(K,W,Y=!1,oe=!1,Ae=null){const Fe={type:"ObjectProperty",key:K,value:W,computed:Y,shorthand:oe,decorators:Ae},pt=i.ObjectProperty;return n(pt.key,Fe,"key",K,1),n(pt.value,Fe,"value",W,1),n(pt.computed,Fe,"computed",Y),n(pt.shorthand,Fe,"shorthand",oe),n(pt.decorators,Fe,"decorators",Ae,1),Fe}function ie(K){const W={type:"RestElement",argument:K},Y=i.RestElement;return n(Y.argument,W,"argument",K,1),W}function ae(K=null){const W={type:"ReturnStatement",argument:K},Y=i.ReturnStatement;return n(Y.argument,W,"argument",K,1),W}function fe(K){const W={type:"SequenceExpression",expressions:K},Y=i.SequenceExpression;return n(Y.expressions,W,"expressions",K,1),W}function de(K){const W={type:"ParenthesizedExpression",expression:K},Y=i.ParenthesizedExpression;return n(Y.expression,W,"expression",K,1),W}function Se(K=null,W){const Y={type:"SwitchCase",test:K,consequent:W},oe=i.SwitchCase;return n(oe.test,Y,"test",K,1),n(oe.consequent,Y,"consequent",W,1),Y}function Ce(K,W){const Y={type:"SwitchStatement",discriminant:K,cases:W},oe=i.SwitchStatement;return n(oe.discriminant,Y,"discriminant",K,1),n(oe.cases,Y,"cases",W,1),Y}function xe(){return{type:"ThisExpression"}}function Be(K){const W={type:"ThrowStatement",argument:K},Y=i.ThrowStatement;return n(Y.argument,W,"argument",K,1),W}function Re(K,W=null,Y=null){const oe={type:"TryStatement",block:K,handler:W,finalizer:Y},Ae=i.TryStatement;return n(Ae.block,oe,"block",K,1),n(Ae.handler,oe,"handler",W,1),n(Ae.finalizer,oe,"finalizer",Y,1),oe}function He(K,W,Y=!0){const oe={type:"UnaryExpression",operator:K,argument:W,prefix:Y},Ae=i.UnaryExpression;return n(Ae.operator,oe,"operator",K),n(Ae.argument,oe,"argument",W,1),n(Ae.prefix,oe,"prefix",Y),oe}function ze(K,W,Y=!1){const oe={type:"UpdateExpression",operator:K,argument:W,prefix:Y},Ae=i.UpdateExpression;return n(Ae.operator,oe,"operator",K),n(Ae.argument,oe,"argument",W,1),n(Ae.prefix,oe,"prefix",Y),oe}function je(K,W){const Y={type:"VariableDeclaration",kind:K,declarations:W},oe=i.VariableDeclaration;return n(oe.kind,Y,"kind",K),n(oe.declarations,Y,"declarations",W,1),Y}function re(K,W=null){const Y={type:"VariableDeclarator",id:K,init:W},oe=i.VariableDeclarator;return n(oe.id,Y,"id",K,1),n(oe.init,Y,"init",W,1),Y}function ue(K,W){const Y={type:"WhileStatement",test:K,body:W},oe=i.WhileStatement;return n(oe.test,Y,"test",K,1),n(oe.body,Y,"body",W,1),Y}function Te(K,W){const Y={type:"WithStatement",object:K,body:W},oe=i.WithStatement;return n(oe.object,Y,"object",K,1),n(oe.body,Y,"body",W,1),Y}function ke(K,W){const Y={type:"AssignmentPattern",left:K,right:W},oe=i.AssignmentPattern;return n(oe.left,Y,"left",K,1),n(oe.right,Y,"right",W,1),Y}function Oe(K){const W={type:"ArrayPattern",elements:K},Y=i.ArrayPattern;return n(Y.elements,W,"elements",K,1),W}function Me(K,W,Y=!1){const oe={type:"ArrowFunctionExpression",params:K,body:W,async:Y,expression:null},Ae=i.ArrowFunctionExpression;return n(Ae.params,oe,"params",K,1),n(Ae.body,oe,"body",W,1),n(Ae.async,oe,"async",Y),oe}function Ke(K){const W={type:"ClassBody",body:K},Y=i.ClassBody;return n(Y.body,W,"body",K,1),W}function _e(K=null,W=null,Y,oe=null){const Ae={type:"ClassExpression",id:K,superClass:W,body:Y,decorators:oe},Fe=i.ClassExpression;return n(Fe.id,Ae,"id",K,1),n(Fe.superClass,Ae,"superClass",W,1),n(Fe.body,Ae,"body",Y,1),n(Fe.decorators,Ae,"decorators",oe,1),Ae}function pe(K=null,W=null,Y,oe=null){const Ae={type:"ClassDeclaration",id:K,superClass:W,body:Y,decorators:oe},Fe=i.ClassDeclaration;return n(Fe.id,Ae,"id",K,1),n(Fe.superClass,Ae,"superClass",W,1),n(Fe.body,Ae,"body",Y,1),n(Fe.decorators,Ae,"decorators",oe,1),Ae}function ne(K,W=null){const Y={type:"ExportAllDeclaration",source:K,attributes:W},oe=i.ExportAllDeclaration;return n(oe.source,Y,"source",K,1),n(oe.attributes,Y,"attributes",W,1),Y}function me(K){const W={type:"ExportDefaultDeclaration",declaration:K},Y=i.ExportDefaultDeclaration;return n(Y.declaration,W,"declaration",K,1),W}function Ie(K=null,W=[],Y=null,oe=null){const Ae={type:"ExportNamedDeclaration",declaration:K,specifiers:W,source:Y,attributes:oe},Fe=i.ExportNamedDeclaration;return n(Fe.declaration,Ae,"declaration",K,1),n(Fe.specifiers,Ae,"specifiers",W,1),n(Fe.source,Ae,"source",Y,1),n(Fe.attributes,Ae,"attributes",oe,1),Ae}function De(K,W){const Y={type:"ExportSpecifier",local:K,exported:W},oe=i.ExportSpecifier;return n(oe.local,Y,"local",K,1),n(oe.exported,Y,"exported",W,1),Y}function Ue(K,W,Y,oe=!1){const Ae={type:"ForOfStatement",left:K,right:W,body:Y,await:oe},Fe=i.ForOfStatement;return n(Fe.left,Ae,"left",K,1),n(Fe.right,Ae,"right",W,1),n(Fe.body,Ae,"body",Y,1),n(Fe.await,Ae,"await",oe),Ae}function We(K,W,Y=null){const oe={type:"ImportDeclaration",specifiers:K,source:W,attributes:Y},Ae=i.ImportDeclaration;return n(Ae.specifiers,oe,"specifiers",K,1),n(Ae.source,oe,"source",W,1),n(Ae.attributes,oe,"attributes",Y,1),oe}function lt(K){const W={type:"ImportDefaultSpecifier",local:K},Y=i.ImportDefaultSpecifier;return n(Y.local,W,"local",K,1),W}function gt(K){const W={type:"ImportNamespaceSpecifier",local:K},Y=i.ImportNamespaceSpecifier;return n(Y.local,W,"local",K,1),W}function Ge(K,W){const Y={type:"ImportSpecifier",local:K,imported:W},oe=i.ImportSpecifier;return n(oe.local,Y,"local",K,1),n(oe.imported,Y,"imported",W,1),Y}function vt(K,W=null){const Y={type:"ImportExpression",source:K,options:W},oe=i.ImportExpression;return n(oe.source,Y,"source",K,1),n(oe.options,Y,"options",W,1),Y}function Le(K,W){const Y={type:"MetaProperty",meta:K,property:W},oe=i.MetaProperty;return n(oe.meta,Y,"meta",K,1),n(oe.property,Y,"property",W,1),Y}function qe(K="method",W,Y,oe,Ae=!1,Fe=!1,pt=!1,Vt=!1){const ur={type:"ClassMethod",kind:K,key:W,params:Y,body:oe,computed:Ae,static:Fe,generator:pt,async:Vt},kn=i.ClassMethod;return n(kn.kind,ur,"kind",K),n(kn.key,ur,"key",W,1),n(kn.params,ur,"params",Y,1),n(kn.body,ur,"body",oe,1),n(kn.computed,ur,"computed",Ae),n(kn.static,ur,"static",Fe),n(kn.generator,ur,"generator",pt),n(kn.async,ur,"async",Vt),ur}function he(K){const W={type:"ObjectPattern",properties:K},Y=i.ObjectPattern;return n(Y.properties,W,"properties",K,1),W}function $e(K){const W={type:"SpreadElement",argument:K},Y=i.SpreadElement;return n(Y.argument,W,"argument",K,1),W}function Ze(){return{type:"Super"}}function Ee(K,W){const Y={type:"TaggedTemplateExpression",tag:K,quasi:W},oe=i.TaggedTemplateExpression;return n(oe.tag,Y,"tag",K,1),n(oe.quasi,Y,"quasi",W,1),Y}function Xe(K,W=!1){const Y={type:"TemplateElement",value:K,tail:W},oe=i.TemplateElement;return n(oe.value,Y,"value",K),n(oe.tail,Y,"tail",W),Y}function it(K,W){const Y={type:"TemplateLiteral",quasis:K,expressions:W},oe=i.TemplateLiteral;return n(oe.quasis,Y,"quasis",K,1),n(oe.expressions,Y,"expressions",W,1),Y}function st(K=null,W=!1){const Y={type:"YieldExpression",argument:K,delegate:W},oe=i.YieldExpression;return n(oe.argument,Y,"argument",K,1),n(oe.delegate,Y,"delegate",W),Y}function mt(K){const W={type:"AwaitExpression",argument:K},Y=i.AwaitExpression;return n(Y.argument,W,"argument",K,1),W}function Tt(){return{type:"Import"}}function Ut(K){const W={type:"ExportNamespaceSpecifier",exported:K},Y=i.ExportNamespaceSpecifier;return n(Y.exported,W,"exported",K,1),W}function lr(K,W,Y=!1,oe){const Ae={type:"OptionalMemberExpression",object:K,property:W,computed:Y,optional:oe},Fe=i.OptionalMemberExpression;return n(Fe.object,Ae,"object",K,1),n(Fe.property,Ae,"property",W,1),n(Fe.computed,Ae,"computed",Y),n(Fe.optional,Ae,"optional",oe),Ae}function hr(K,W,Y){const oe={type:"OptionalCallExpression",callee:K,arguments:W,optional:Y},Ae=i.OptionalCallExpression;return n(Ae.callee,oe,"callee",K,1),n(Ae.arguments,oe,"arguments",W,1),n(Ae.optional,oe,"optional",Y),oe}function mr(K,W=null,Y=null,oe=null,Ae=!1,Fe=!1){const pt={type:"ClassProperty",key:K,value:W,typeAnnotation:Y,decorators:oe,computed:Ae,static:Fe},Vt=i.ClassProperty;return n(Vt.key,pt,"key",K,1),n(Vt.value,pt,"value",W,1),n(Vt.typeAnnotation,pt,"typeAnnotation",Y,1),n(Vt.decorators,pt,"decorators",oe,1),n(Vt.computed,pt,"computed",Ae),n(Vt.static,pt,"static",Fe),pt}function yr(K,W=null,Y=null,oe=null,Ae=!1,Fe=!1){const pt={type:"ClassAccessorProperty",key:K,value:W,typeAnnotation:Y,decorators:oe,computed:Ae,static:Fe},Vt=i.ClassAccessorProperty;return n(Vt.key,pt,"key",K,1),n(Vt.value,pt,"value",W,1),n(Vt.typeAnnotation,pt,"typeAnnotation",Y,1),n(Vt.decorators,pt,"decorators",oe,1),n(Vt.computed,pt,"computed",Ae),n(Vt.static,pt,"static",Fe),pt}function Mr(K,W=null,Y=null,oe=!1){const Ae={type:"ClassPrivateProperty",key:K,value:W,decorators:Y,static:oe},Fe=i.ClassPrivateProperty;return n(Fe.key,Ae,"key",K,1),n(Fe.value,Ae,"value",W,1),n(Fe.decorators,Ae,"decorators",Y,1),n(Fe.static,Ae,"static",oe),Ae}function Gr(K="method",W,Y,oe,Ae=!1){const Fe={type:"ClassPrivateMethod",kind:K,key:W,params:Y,body:oe,static:Ae},pt=i.ClassPrivateMethod;return n(pt.kind,Fe,"kind",K),n(pt.key,Fe,"key",W,1),n(pt.params,Fe,"params",Y,1),n(pt.body,Fe,"body",oe,1),n(pt.static,Fe,"static",Ae),Fe}function zn(K){const W={type:"PrivateName",id:K},Y=i.PrivateName;return n(Y.id,W,"id",K,1),W}function ot(K){const W={type:"StaticBlock",body:K},Y=i.StaticBlock;return n(Y.body,W,"body",K,1),W}function Wn(K,W){const Y={type:"ImportAttribute",key:K,value:W},oe=i.ImportAttribute;return n(oe.key,Y,"key",K,1),n(oe.value,Y,"value",W,1),Y}function Hn(){return{type:"AnyTypeAnnotation"}}function Li(K){const W={type:"ArrayTypeAnnotation",elementType:K},Y=i.ArrayTypeAnnotation;return n(Y.elementType,W,"elementType",K,1),W}function ci(){return{type:"BooleanTypeAnnotation"}}function Yn(K){const W={type:"BooleanLiteralTypeAnnotation",value:K},Y=i.BooleanLiteralTypeAnnotation;return n(Y.value,W,"value",K),W}function $r(){return{type:"NullLiteralTypeAnnotation"}}function Cn(K,W=null){const Y={type:"ClassImplements",id:K,typeParameters:W},oe=i.ClassImplements;return n(oe.id,Y,"id",K,1),n(oe.typeParameters,Y,"typeParameters",W,1),Y}function fi(K,W=null,Y=null,oe){const Ae={type:"DeclareClass",id:K,typeParameters:W,extends:Y,body:oe},Fe=i.DeclareClass;return n(Fe.id,Ae,"id",K,1),n(Fe.typeParameters,Ae,"typeParameters",W,1),n(Fe.extends,Ae,"extends",Y,1),n(Fe.body,Ae,"body",oe,1),Ae}function fn(K){const W={type:"DeclareFunction",id:K},Y=i.DeclareFunction;return n(Y.id,W,"id",K,1),W}function Ur(K,W=null,Y=null,oe){const Ae={type:"DeclareInterface",id:K,typeParameters:W,extends:Y,body:oe},Fe=i.DeclareInterface;return n(Fe.id,Ae,"id",K,1),n(Fe.typeParameters,Ae,"typeParameters",W,1),n(Fe.extends,Ae,"extends",Y,1),n(Fe.body,Ae,"body",oe,1),Ae}function ga(K,W,Y=null){const oe={type:"DeclareModule",id:K,body:W,kind:Y},Ae=i.DeclareModule;return n(Ae.id,oe,"id",K,1),n(Ae.body,oe,"body",W,1),n(Ae.kind,oe,"kind",Y),oe}function ji(K){const W={type:"DeclareModuleExports",typeAnnotation:K},Y=i.DeclareModuleExports;return n(Y.typeAnnotation,W,"typeAnnotation",K,1),W}function Ri(K,W=null,Y){const oe={type:"DeclareTypeAlias",id:K,typeParameters:W,right:Y},Ae=i.DeclareTypeAlias;return n(Ae.id,oe,"id",K,1),n(Ae.typeParameters,oe,"typeParameters",W,1),n(Ae.right,oe,"right",Y,1),oe}function js(K,W=null,Y=null){const oe={type:"DeclareOpaqueType",id:K,typeParameters:W,supertype:Y},Ae=i.DeclareOpaqueType;return n(Ae.id,oe,"id",K,1),n(Ae.typeParameters,oe,"typeParameters",W,1),n(Ae.supertype,oe,"supertype",Y,1),oe}function pn(K){const W={type:"DeclareVariable",id:K},Y=i.DeclareVariable;return n(Y.id,W,"id",K,1),W}function Jr(K=null,W=null,Y=null,oe=null){const Ae={type:"DeclareExportDeclaration",declaration:K,specifiers:W,source:Y,attributes:oe},Fe=i.DeclareExportDeclaration;return n(Fe.declaration,Ae,"declaration",K,1),n(Fe.specifiers,Ae,"specifiers",W,1),n(Fe.source,Ae,"source",Y,1),n(Fe.attributes,Ae,"attributes",oe,1),Ae}function In(K,W=null){const Y={type:"DeclareExportAllDeclaration",source:K,attributes:W},oe=i.DeclareExportAllDeclaration;return n(oe.source,Y,"source",K,1),n(oe.attributes,Y,"attributes",W,1),Y}function Rs(K){const W={type:"DeclaredPredicate",value:K},Y=i.DeclaredPredicate;return n(Y.value,W,"value",K,1),W}function Bs(){return{type:"ExistsTypeAnnotation"}}function Fs(K=null,W,Y=null,oe){const Ae={type:"FunctionTypeAnnotation",typeParameters:K,params:W,rest:Y,returnType:oe},Fe=i.FunctionTypeAnnotation;return n(Fe.typeParameters,Ae,"typeParameters",K,1),n(Fe.params,Ae,"params",W,1),n(Fe.rest,Ae,"rest",Y,1),n(Fe.returnType,Ae,"returnType",oe,1),Ae}function qs(K=null,W){const Y={type:"FunctionTypeParam",name:K,typeAnnotation:W},oe=i.FunctionTypeParam;return n(oe.name,Y,"name",K,1),n(oe.typeAnnotation,Y,"typeAnnotation",W,1),Y}function pi(K,W=null){const Y={type:"GenericTypeAnnotation",id:K,typeParameters:W},oe=i.GenericTypeAnnotation;return n(oe.id,Y,"id",K,1),n(oe.typeParameters,Y,"typeParameters",W,1),Y}function $s(){return{type:"InferredPredicate"}}function va(K,W=null){const Y={type:"InterfaceExtends",id:K,typeParameters:W},oe=i.InterfaceExtends;return n(oe.id,Y,"id",K,1),n(oe.typeParameters,Y,"typeParameters",W,1),Y}function Us(K,W=null,Y=null,oe){const Ae={type:"InterfaceDeclaration",id:K,typeParameters:W,extends:Y,body:oe},Fe=i.InterfaceDeclaration;return n(Fe.id,Ae,"id",K,1),n(Fe.typeParameters,Ae,"typeParameters",W,1),n(Fe.extends,Ae,"extends",Y,1),n(Fe.body,Ae,"body",oe,1),Ae}function Xn(K=null,W){const Y={type:"InterfaceTypeAnnotation",extends:K,body:W},oe=i.InterfaceTypeAnnotation;return n(oe.extends,Y,"extends",K,1),n(oe.body,Y,"body",W,1),Y}function jr(K){const W={type:"IntersectionTypeAnnotation",types:K},Y=i.IntersectionTypeAnnotation;return n(Y.types,W,"types",K,1),W}function Vs(){return{type:"MixedTypeAnnotation"}}function Bi(){return{type:"EmptyTypeAnnotation"}}function Ks(K){const W={type:"NullableTypeAnnotation",typeAnnotation:K},Y=i.NullableTypeAnnotation;return n(Y.typeAnnotation,W,"typeAnnotation",K,1),W}function ba(K){const W={type:"NumberLiteralTypeAnnotation",value:K},Y=i.NumberLiteralTypeAnnotation;return n(Y.value,W,"value",K),W}function di(){return{type:"NumberTypeAnnotation"}}function xa(K,W=[],Y=[],oe=[],Ae=!1){const Fe={type:"ObjectTypeAnnotation",properties:K,indexers:W,callProperties:Y,internalSlots:oe,exact:Ae},pt=i.ObjectTypeAnnotation;return n(pt.properties,Fe,"properties",K,1),n(pt.indexers,Fe,"indexers",W,1),n(pt.callProperties,Fe,"callProperties",Y,1),n(pt.internalSlots,Fe,"internalSlots",oe,1),n(pt.exact,Fe,"exact",Ae),Fe}function zs(K,W,Y,oe,Ae){const Fe={type:"ObjectTypeInternalSlot",id:K,value:W,optional:Y,static:oe,method:Ae},pt=i.ObjectTypeInternalSlot;return n(pt.id,Fe,"id",K,1),n(pt.value,Fe,"value",W,1),n(pt.optional,Fe,"optional",Y),n(pt.static,Fe,"static",oe),n(pt.method,Fe,"method",Ae),Fe}function Ws(K){const W={type:"ObjectTypeCallProperty",value:K,static:null},Y=i.ObjectTypeCallProperty;return n(Y.value,W,"value",K,1),W}function Fi(K=null,W,Y,oe=null){const Ae={type:"ObjectTypeIndexer",id:K,key:W,value:Y,variance:oe,static:null},Fe=i.ObjectTypeIndexer;return n(Fe.id,Ae,"id",K,1),n(Fe.key,Ae,"key",W,1),n(Fe.value,Ae,"value",Y,1),n(Fe.variance,Ae,"variance",oe,1),Ae}function Ta(K,W,Y=null){const oe={type:"ObjectTypeProperty",key:K,value:W,variance:Y,kind:null,method:null,optional:null,proto:null,static:null},Ae=i.ObjectTypeProperty;return n(Ae.key,oe,"key",K,1),n(Ae.value,oe,"value",W,1),n(Ae.variance,oe,"variance",Y,1),oe}function Sa(K){const W={type:"ObjectTypeSpreadProperty",argument:K},Y=i.ObjectTypeSpreadProperty;return n(Y.argument,W,"argument",K,1),W}function Gn(K,W=null,Y=null,oe){const Ae={type:"OpaqueType",id:K,typeParameters:W,supertype:Y,impltype:oe},Fe=i.OpaqueType;return n(Fe.id,Ae,"id",K,1),n(Fe.typeParameters,Ae,"typeParameters",W,1),n(Fe.supertype,Ae,"supertype",Y,1),n(Fe.impltype,Ae,"impltype",oe,1),Ae}function Hs(K,W){const Y={type:"QualifiedTypeIdentifier",id:K,qualification:W},oe=i.QualifiedTypeIdentifier;return n(oe.id,Y,"id",K,1),n(oe.qualification,Y,"qualification",W,1),Y}function Qr(K){const W={type:"StringLiteralTypeAnnotation",value:K},Y=i.StringLiteralTypeAnnotation;return n(Y.value,W,"value",K),W}function Ys(){return{type:"StringTypeAnnotation"}}function Xs(){return{type:"SymbolTypeAnnotation"}}function Gs(){return{type:"ThisTypeAnnotation"}}function hi(K){const W={type:"TupleTypeAnnotation",types:K},Y=i.TupleTypeAnnotation;return n(Y.types,W,"types",K,1),W}function Ea(K){const W={type:"TypeofTypeAnnotation",argument:K},Y=i.TypeofTypeAnnotation;return n(Y.argument,W,"argument",K,1),W}function Js(K,W=null,Y){const oe={type:"TypeAlias",id:K,typeParameters:W,right:Y},Ae=i.TypeAlias;return n(Ae.id,oe,"id",K,1),n(Ae.typeParameters,oe,"typeParameters",W,1),n(Ae.right,oe,"right",Y,1),oe}function Qs(K){const W={type:"TypeAnnotation",typeAnnotation:K},Y=i.TypeAnnotation;return n(Y.typeAnnotation,W,"typeAnnotation",K,1),W}function Zs(K,W){const Y={type:"TypeCastExpression",expression:K,typeAnnotation:W},oe=i.TypeCastExpression;return n(oe.expression,Y,"expression",K,1),n(oe.typeAnnotation,Y,"typeAnnotation",W,1),Y}function eo(K=null,W=null,Y=null){const oe={type:"TypeParameter",bound:K,default:W,variance:Y,name:null},Ae=i.TypeParameter;return n(Ae.bound,oe,"bound",K,1),n(Ae.default,oe,"default",W,1),n(Ae.variance,oe,"variance",Y,1),oe}function Pa(K){const W={type:"TypeParameterDeclaration",params:K},Y=i.TypeParameterDeclaration;return n(Y.params,W,"params",K,1),W}function to(K){const W={type:"TypeParameterInstantiation",params:K},Y=i.TypeParameterInstantiation;return n(Y.params,W,"params",K,1),W}function mi(K){const W={type:"UnionTypeAnnotation",types:K},Y=i.UnionTypeAnnotation;return n(Y.types,W,"types",K,1),W}function yi(K){const W={type:"Variance",kind:K},Y=i.Variance;return n(Y.kind,W,"kind",K),W}function qi(){return{type:"VoidTypeAnnotation"}}function ro(K,W){const Y={type:"EnumDeclaration",id:K,body:W},oe=i.EnumDeclaration;return n(oe.id,Y,"id",K,1),n(oe.body,Y,"body",W,1),Y}function $i(K){const W={type:"EnumBooleanBody",members:K,explicitType:null,hasUnknownMembers:null},Y=i.EnumBooleanBody;return n(Y.members,W,"members",K,1),W}function no(K){const W={type:"EnumNumberBody",members:K,explicitType:null,hasUnknownMembers:null},Y=i.EnumNumberBody;return n(Y.members,W,"members",K,1),W}function Ui(K){const W={type:"EnumStringBody",members:K,explicitType:null,hasUnknownMembers:null},Y=i.EnumStringBody;return n(Y.members,W,"members",K,1),W}function io(K){const W={type:"EnumSymbolBody",members:K,hasUnknownMembers:null},Y=i.EnumSymbolBody;return n(Y.members,W,"members",K,1),W}function Aa(K){const W={type:"EnumBooleanMember",id:K,init:null},Y=i.EnumBooleanMember;return n(Y.id,W,"id",K,1),W}function ut(K,W){const Y={type:"EnumNumberMember",id:K,init:W},oe=i.EnumNumberMember;return n(oe.id,Y,"id",K,1),n(oe.init,Y,"init",W,1),Y}function ao(K,W){const Y={type:"EnumStringMember",id:K,init:W},oe=i.EnumStringMember;return n(oe.id,Y,"id",K,1),n(oe.init,Y,"init",W,1),Y}function wa(K){const W={type:"EnumDefaultedMember",id:K},Y=i.EnumDefaultedMember;return n(Y.id,W,"id",K,1),W}function so(K,W){const Y={type:"IndexedAccessType",objectType:K,indexType:W},oe=i.IndexedAccessType;return n(oe.objectType,Y,"objectType",K,1),n(oe.indexType,Y,"indexType",W,1),Y}function oo(K,W){const Y={type:"OptionalIndexedAccessType",objectType:K,indexType:W,optional:null},oe=i.OptionalIndexedAccessType;return n(oe.objectType,Y,"objectType",K,1),n(oe.indexType,Y,"indexType",W,1),Y}function lo(K,W=null){const Y={type:"JSXAttribute",name:K,value:W},oe=i.JSXAttribute;return n(oe.name,Y,"name",K,1),n(oe.value,Y,"value",W,1),Y}function uo(K){const W={type:"JSXClosingElement",name:K},Y=i.JSXClosingElement;return n(Y.name,W,"name",K,1),W}function _a(K,W=null,Y,oe=null){const Ae={type:"JSXElement",openingElement:K,closingElement:W,children:Y,selfClosing:oe},Fe=i.JSXElement;return n(Fe.openingElement,Ae,"openingElement",K,1),n(Fe.closingElement,Ae,"closingElement",W,1),n(Fe.children,Ae,"children",Y,1),n(Fe.selfClosing,Ae,"selfClosing",oe),Ae}function co(){return{type:"JSXEmptyExpression"}}function Oa(K){const W={type:"JSXExpressionContainer",expression:K},Y=i.JSXExpressionContainer;return n(Y.expression,W,"expression",K,1),W}function Ca(K){const W={type:"JSXSpreadChild",expression:K},Y=i.JSXSpreadChild;return n(Y.expression,W,"expression",K,1),W}function fo(K){const W={type:"JSXIdentifier",name:K},Y=i.JSXIdentifier;return n(Y.name,W,"name",K),W}function po(K,W){const Y={type:"JSXMemberExpression",object:K,property:W},oe=i.JSXMemberExpression;return n(oe.object,Y,"object",K,1),n(oe.property,Y,"property",W,1),Y}function Ia(K,W){const Y={type:"JSXNamespacedName",namespace:K,name:W},oe=i.JSXNamespacedName;return n(oe.namespace,Y,"namespace",K,1),n(oe.name,Y,"name",W,1),Y}function ka(K,W,Y=!1){const oe={type:"JSXOpeningElement",name:K,attributes:W,selfClosing:Y},Ae=i.JSXOpeningElement;return n(Ae.name,oe,"name",K,1),n(Ae.attributes,oe,"attributes",W,1),n(Ae.selfClosing,oe,"selfClosing",Y),oe}function ho(K){const W={type:"JSXSpreadAttribute",argument:K},Y=i.JSXSpreadAttribute;return n(Y.argument,W,"argument",K,1),W}function Na(K){const W={type:"JSXText",value:K},Y=i.JSXText;return n(Y.value,W,"value",K),W}function mo(K,W,Y){const oe={type:"JSXFragment",openingFragment:K,closingFragment:W,children:Y},Ae=i.JSXFragment;return n(Ae.openingFragment,oe,"openingFragment",K,1),n(Ae.closingFragment,oe,"closingFragment",W,1),n(Ae.children,oe,"children",Y,1),oe}function yo(){return{type:"JSXOpeningFragment"}}function Vi(){return{type:"JSXClosingFragment"}}function go(){return{type:"Noop"}}function vo(K,W){const Y={type:"Placeholder",expectedNode:K,name:W},oe=i.Placeholder;return n(oe.expectedNode,Y,"expectedNode",K),n(oe.name,Y,"name",W,1),Y}function Ki(K){const W={type:"V8IntrinsicIdentifier",name:K},Y=i.V8IntrinsicIdentifier;return n(Y.name,W,"name",K),W}function bo(){return{type:"ArgumentPlaceholder"}}function xo(K,W){const Y={type:"BindExpression",object:K,callee:W},oe=i.BindExpression;return n(oe.object,Y,"object",K,1),n(oe.callee,Y,"callee",W,1),Y}function Da(K){const W={type:"Decorator",expression:K},Y=i.Decorator;return n(Y.expression,W,"expression",K,1),W}function To(K,W=!1){const Y={type:"DoExpression",body:K,async:W},oe=i.DoExpression;return n(oe.body,Y,"body",K,1),n(oe.async,Y,"async",W),Y}function So(K){const W={type:"ExportDefaultSpecifier",exported:K},Y=i.ExportDefaultSpecifier;return n(Y.exported,W,"exported",K,1),W}function Eo(K){const W={type:"RecordExpression",properties:K},Y=i.RecordExpression;return n(Y.properties,W,"properties",K,1),W}function Po(K=[]){const W={type:"TupleExpression",elements:K},Y=i.TupleExpression;return n(Y.elements,W,"elements",K,1),W}function Jn(K){const W={type:"DecimalLiteral",value:K},Y=i.DecimalLiteral;return n(Y.value,W,"value",K),W}function Ma(K){const W={type:"ModuleExpression",body:K},Y=i.ModuleExpression;return n(Y.body,W,"body",K,1),W}function Ao(){return{type:"TopicReference"}}function G(K){const W={type:"PipelineTopicExpression",expression:K},Y=i.PipelineTopicExpression;return n(Y.expression,W,"expression",K,1),W}function g(K){const W={type:"PipelineBareFunction",callee:K},Y=i.PipelineBareFunction;return n(Y.callee,W,"callee",K,1),W}function u(){return{type:"PipelinePrimaryTopicReference"}}function b(){return{type:"VoidPattern"}}function w(K){const W={type:"TSParameterProperty",parameter:K},Y=i.TSParameterProperty;return n(Y.parameter,W,"parameter",K,1),W}function B(K=null,W=null,Y,oe=null){const Ae={type:"TSDeclareFunction",id:K,typeParameters:W,params:Y,returnType:oe},Fe=i.TSDeclareFunction;return n(Fe.id,Ae,"id",K,1),n(Fe.typeParameters,Ae,"typeParameters",W,1),n(Fe.params,Ae,"params",Y,1),n(Fe.returnType,Ae,"returnType",oe,1),Ae}function ee(K=null,W,Y=null,oe,Ae=null){const Fe={type:"TSDeclareMethod",decorators:K,key:W,typeParameters:Y,params:oe,returnType:Ae},pt=i.TSDeclareMethod;return n(pt.decorators,Fe,"decorators",K,1),n(pt.key,Fe,"key",W,1),n(pt.typeParameters,Fe,"typeParameters",Y,1),n(pt.params,Fe,"params",oe,1),n(pt.returnType,Fe,"returnType",Ae,1),Fe}function le(K,W){const Y={type:"TSQualifiedName",left:K,right:W},oe=i.TSQualifiedName;return n(oe.left,Y,"left",K,1),n(oe.right,Y,"right",W,1),Y}function be(K=null,W,Y=null){const oe={type:"TSCallSignatureDeclaration",typeParameters:K,parameters:W,typeAnnotation:Y},Ae=i.TSCallSignatureDeclaration;return n(Ae.typeParameters,oe,"typeParameters",K,1),n(Ae.parameters,oe,"parameters",W,1),n(Ae.typeAnnotation,oe,"typeAnnotation",Y,1),oe}function we(K=null,W,Y=null){const oe={type:"TSConstructSignatureDeclaration",typeParameters:K,parameters:W,typeAnnotation:Y},Ae=i.TSConstructSignatureDeclaration;return n(Ae.typeParameters,oe,"typeParameters",K,1),n(Ae.parameters,oe,"parameters",W,1),n(Ae.typeAnnotation,oe,"typeAnnotation",Y,1),oe}function Ne(K,W=null){const Y={type:"TSPropertySignature",key:K,typeAnnotation:W},oe=i.TSPropertySignature;return n(oe.key,Y,"key",K,1),n(oe.typeAnnotation,Y,"typeAnnotation",W,1),Y}function Ve(K,W=null,Y,oe=null){const Ae={type:"TSMethodSignature",key:K,typeParameters:W,parameters:Y,typeAnnotation:oe,kind:null},Fe=i.TSMethodSignature;return n(Fe.key,Ae,"key",K,1),n(Fe.typeParameters,Ae,"typeParameters",W,1),n(Fe.parameters,Ae,"parameters",Y,1),n(Fe.typeAnnotation,Ae,"typeAnnotation",oe,1),Ae}function Qe(K,W=null){const Y={type:"TSIndexSignature",parameters:K,typeAnnotation:W},oe=i.TSIndexSignature;return n(oe.parameters,Y,"parameters",K,1),n(oe.typeAnnotation,Y,"typeAnnotation",W,1),Y}function tt(){return{type:"TSAnyKeyword"}}function ct(){return{type:"TSBooleanKeyword"}}function Ct(){return{type:"TSBigIntKeyword"}}function Rt(){return{type:"TSIntrinsicKeyword"}}function bt(){return{type:"TSNeverKeyword"}}function jt(){return{type:"TSNullKeyword"}}function dn(){return{type:"TSNumberKeyword"}}function Zr(){return{type:"TSObjectKeyword"}}function La(){return{type:"TSStringKeyword"}}function ja(){return{type:"TSSymbolKeyword"}}function Ra(){return{type:"TSUndefinedKeyword"}}function Ba(){return{type:"TSUnknownKeyword"}}function Fa(){return{type:"TSVoidKeyword"}}function qa(){return{type:"TSThisType"}}function $a(K=null,W,Y=null){const oe={type:"TSFunctionType",typeParameters:K,parameters:W,typeAnnotation:Y},Ae=i.TSFunctionType;return n(Ae.typeParameters,oe,"typeParameters",K,1),n(Ae.parameters,oe,"parameters",W,1),n(Ae.typeAnnotation,oe,"typeAnnotation",Y,1),oe}function Ua(K=null,W,Y=null){const oe={type:"TSConstructorType",typeParameters:K,parameters:W,typeAnnotation:Y},Ae=i.TSConstructorType;return n(Ae.typeParameters,oe,"typeParameters",K,1),n(Ae.parameters,oe,"parameters",W,1),n(Ae.typeAnnotation,oe,"typeAnnotation",Y,1),oe}function Va(K,W=null){const Y={type:"TSTypeReference",typeName:K,typeParameters:W},oe=i.TSTypeReference;return n(oe.typeName,Y,"typeName",K,1),n(oe.typeParameters,Y,"typeParameters",W,1),Y}function Ka(K,W=null,Y=null){const oe={type:"TSTypePredicate",parameterName:K,typeAnnotation:W,asserts:Y},Ae=i.TSTypePredicate;return n(Ae.parameterName,oe,"parameterName",K,1),n(Ae.typeAnnotation,oe,"typeAnnotation",W,1),n(Ae.asserts,oe,"asserts",Y),oe}function za(K,W=null){const Y={type:"TSTypeQuery",exprName:K,typeParameters:W},oe=i.TSTypeQuery;return n(oe.exprName,Y,"exprName",K,1),n(oe.typeParameters,Y,"typeParameters",W,1),Y}function Wa(K){const W={type:"TSTypeLiteral",members:K},Y=i.TSTypeLiteral;return n(Y.members,W,"members",K,1),W}function Ha(K){const W={type:"TSArrayType",elementType:K},Y=i.TSArrayType;return n(Y.elementType,W,"elementType",K,1),W}function Ya(K){const W={type:"TSTupleType",elementTypes:K},Y=i.TSTupleType;return n(Y.elementTypes,W,"elementTypes",K,1),W}function Xa(K){const W={type:"TSOptionalType",typeAnnotation:K},Y=i.TSOptionalType;return n(Y.typeAnnotation,W,"typeAnnotation",K,1),W}function Ga(K){const W={type:"TSRestType",typeAnnotation:K},Y=i.TSRestType;return n(Y.typeAnnotation,W,"typeAnnotation",K,1),W}function Ja(K,W,Y=!1){const oe={type:"TSNamedTupleMember",label:K,elementType:W,optional:Y},Ae=i.TSNamedTupleMember;return n(Ae.label,oe,"label",K,1),n(Ae.elementType,oe,"elementType",W,1),n(Ae.optional,oe,"optional",Y),oe}function Qa(K){const W={type:"TSUnionType",types:K},Y=i.TSUnionType;return n(Y.types,W,"types",K,1),W}function Za(K){const W={type:"TSIntersectionType",types:K},Y=i.TSIntersectionType;return n(Y.types,W,"types",K,1),W}function es(K,W,Y,oe){const Ae={type:"TSConditionalType",checkType:K,extendsType:W,trueType:Y,falseType:oe},Fe=i.TSConditionalType;return n(Fe.checkType,Ae,"checkType",K,1),n(Fe.extendsType,Ae,"extendsType",W,1),n(Fe.trueType,Ae,"trueType",Y,1),n(Fe.falseType,Ae,"falseType",oe,1),Ae}function ts(K){const W={type:"TSInferType",typeParameter:K},Y=i.TSInferType;return n(Y.typeParameter,W,"typeParameter",K,1),W}function rs(K){const W={type:"TSParenthesizedType",typeAnnotation:K},Y=i.TSParenthesizedType;return n(Y.typeAnnotation,W,"typeAnnotation",K,1),W}function ns(K,W="keyof"){const Y={type:"TSTypeOperator",typeAnnotation:K,operator:W},oe=i.TSTypeOperator;return n(oe.typeAnnotation,Y,"typeAnnotation",K,1),n(oe.operator,Y,"operator",W),Y}function is(K,W){const Y={type:"TSIndexedAccessType",objectType:K,indexType:W},oe=i.TSIndexedAccessType;return n(oe.objectType,Y,"objectType",K,1),n(oe.indexType,Y,"indexType",W,1),Y}function as(K,W=null,Y=null){const oe={type:"TSMappedType",typeParameter:K,typeAnnotation:W,nameType:Y},Ae=i.TSMappedType;return n(Ae.typeParameter,oe,"typeParameter",K,1),n(Ae.typeAnnotation,oe,"typeAnnotation",W,1),n(Ae.nameType,oe,"nameType",Y,1),oe}function ss(K,W){const Y={type:"TSTemplateLiteralType",quasis:K,types:W},oe=i.TSTemplateLiteralType;return n(oe.quasis,Y,"quasis",K,1),n(oe.types,Y,"types",W,1),Y}function os(K){const W={type:"TSLiteralType",literal:K},Y=i.TSLiteralType;return n(Y.literal,W,"literal",K,1),W}function ls(K,W=null){const Y={type:"TSExpressionWithTypeArguments",expression:K,typeParameters:W},oe=i.TSExpressionWithTypeArguments;return n(oe.expression,Y,"expression",K,1),n(oe.typeParameters,Y,"typeParameters",W,1),Y}function us(K,W=null,Y=null,oe){const Ae={type:"TSInterfaceDeclaration",id:K,typeParameters:W,extends:Y,body:oe},Fe=i.TSInterfaceDeclaration;return n(Fe.id,Ae,"id",K,1),n(Fe.typeParameters,Ae,"typeParameters",W,1),n(Fe.extends,Ae,"extends",Y,1),n(Fe.body,Ae,"body",oe,1),Ae}function cs(K){const W={type:"TSInterfaceBody",body:K},Y=i.TSInterfaceBody;return n(Y.body,W,"body",K,1),W}function Du(K,W=null,Y){const oe={type:"TSTypeAliasDeclaration",id:K,typeParameters:W,typeAnnotation:Y},Ae=i.TSTypeAliasDeclaration;return n(Ae.id,oe,"id",K,1),n(Ae.typeParameters,oe,"typeParameters",W,1),n(Ae.typeAnnotation,oe,"typeAnnotation",Y,1),oe}function Mu(K,W=null){const Y={type:"TSInstantiationExpression",expression:K,typeParameters:W},oe=i.TSInstantiationExpression;return n(oe.expression,Y,"expression",K,1),n(oe.typeParameters,Y,"typeParameters",W,1),Y}function Lu(K,W){const Y={type:"TSAsExpression",expression:K,typeAnnotation:W},oe=i.TSAsExpression;return n(oe.expression,Y,"expression",K,1),n(oe.typeAnnotation,Y,"typeAnnotation",W,1),Y}function ju(K,W){const Y={type:"TSSatisfiesExpression",expression:K,typeAnnotation:W},oe=i.TSSatisfiesExpression;return n(oe.expression,Y,"expression",K,1),n(oe.typeAnnotation,Y,"typeAnnotation",W,1),Y}function Ru(K,W){const Y={type:"TSTypeAssertion",typeAnnotation:K,expression:W},oe=i.TSTypeAssertion;return n(oe.typeAnnotation,Y,"typeAnnotation",K,1),n(oe.expression,Y,"expression",W,1),Y}function Bu(K){const W={type:"TSEnumBody",members:K},Y=i.TSEnumBody;return n(Y.members,W,"members",K,1),W}function Fu(K,W){const Y={type:"TSEnumDeclaration",id:K,members:W},oe=i.TSEnumDeclaration;return n(oe.id,Y,"id",K,1),n(oe.members,Y,"members",W,1),Y}function qu(K,W=null){const Y={type:"TSEnumMember",id:K,initializer:W},oe=i.TSEnumMember;return n(oe.id,Y,"id",K,1),n(oe.initializer,Y,"initializer",W,1),Y}function $u(K,W){const Y={type:"TSModuleDeclaration",id:K,body:W,kind:null},oe=i.TSModuleDeclaration;return n(oe.id,Y,"id",K,1),n(oe.body,Y,"body",W,1),Y}function Uu(K){const W={type:"TSModuleBlock",body:K},Y=i.TSModuleBlock;return n(Y.body,W,"body",K,1),W}function Vu(K,W=null,Y=null){const oe={type:"TSImportType",argument:K,qualifier:W,typeParameters:Y},Ae=i.TSImportType;return n(Ae.argument,oe,"argument",K,1),n(Ae.qualifier,oe,"qualifier",W,1),n(Ae.typeParameters,oe,"typeParameters",Y,1),oe}function Ku(K,W){const Y={type:"TSImportEqualsDeclaration",id:K,moduleReference:W,isExport:null},oe=i.TSImportEqualsDeclaration;return n(oe.id,Y,"id",K,1),n(oe.moduleReference,Y,"moduleReference",W,1),Y}function zu(K){const W={type:"TSExternalModuleReference",expression:K},Y=i.TSExternalModuleReference;return n(Y.expression,W,"expression",K,1),W}function Wu(K){const W={type:"TSNonNullExpression",expression:K},Y=i.TSNonNullExpression;return n(Y.expression,W,"expression",K,1),W}function Hu(K){const W={type:"TSExportAssignment",expression:K},Y=i.TSExportAssignment;return n(Y.expression,W,"expression",K,1),W}function Yu(K){const W={type:"TSNamespaceExportDeclaration",id:K},Y=i.TSNamespaceExportDeclaration;return n(Y.id,W,"id",K,1),W}function Xu(K){const W={type:"TSTypeAnnotation",typeAnnotation:K},Y=i.TSTypeAnnotation;return n(Y.typeAnnotation,W,"typeAnnotation",K,1),W}function Gu(K){const W={type:"TSTypeParameterInstantiation",params:K},Y=i.TSTypeParameterInstantiation;return n(Y.params,W,"params",K,1),W}function Ju(K){const W={type:"TSTypeParameterDeclaration",params:K},Y=i.TSTypeParameterDeclaration;return n(Y.params,W,"params",K,1),W}function Qu(K=null,W=null,Y){const oe={type:"TSTypeParameter",constraint:K,default:W,name:Y},Ae=i.TSTypeParameter;return n(Ae.constraint,oe,"constraint",K,1),n(Ae.default,oe,"default",W,1),n(Ae.name,oe,"name",Y),oe}function Zu(K){return(0,t.default)("NumberLiteral","NumericLiteral","The node type "),z(K)}function ec(K,W=""){return(0,t.default)("RegexLiteral","RegExpLiteral","The node type "),X(K,W)}function tc(K){return(0,t.default)("RestProperty","RestElement","The node type "),ie(K)}function rc(K){return(0,t.default)("SpreadProperty","SpreadElement","The node type "),$e(K)}return ye}var Z={},Lw;function U7(){if(Lw)return Z;Lw=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.JSXIdentifier=Z.JSXFragment=Z.JSXExpressionContainer=Z.JSXEmptyExpression=Z.JSXElement=Z.JSXClosingFragment=Z.JSXClosingElement=Z.JSXAttribute=Z.IntersectionTypeAnnotation=Z.InterpreterDirective=Z.InterfaceTypeAnnotation=Z.InterfaceExtends=Z.InterfaceDeclaration=Z.InferredPredicate=Z.IndexedAccessType=Z.ImportSpecifier=Z.ImportNamespaceSpecifier=Z.ImportExpression=Z.ImportDefaultSpecifier=Z.ImportDeclaration=Z.ImportAttribute=Z.Import=Z.IfStatement=Z.Identifier=Z.GenericTypeAnnotation=Z.FunctionTypeParam=Z.FunctionTypeAnnotation=Z.FunctionExpression=Z.FunctionDeclaration=Z.ForStatement=Z.ForOfStatement=Z.ForInStatement=Z.File=Z.ExpressionStatement=Z.ExportSpecifier=Z.ExportNamespaceSpecifier=Z.ExportNamedDeclaration=Z.ExportDefaultSpecifier=Z.ExportDefaultDeclaration=Z.ExportAllDeclaration=Z.ExistsTypeAnnotation=Z.EnumSymbolBody=Z.EnumStringMember=Z.EnumStringBody=Z.EnumNumberMember=Z.EnumNumberBody=Z.EnumDefaultedMember=Z.EnumDeclaration=Z.EnumBooleanMember=Z.EnumBooleanBody=Z.EmptyTypeAnnotation=Z.EmptyStatement=Z.DoWhileStatement=Z.DoExpression=Z.DirectiveLiteral=Z.Directive=Z.Decorator=Z.DeclaredPredicate=Z.DeclareVariable=Z.DeclareTypeAlias=Z.DeclareOpaqueType=Z.DeclareModuleExports=Z.DeclareModule=Z.DeclareInterface=Z.DeclareFunction=Z.DeclareExportDeclaration=Z.DeclareExportAllDeclaration=Z.DeclareClass=Z.DecimalLiteral=Z.DebuggerStatement=Z.ContinueStatement=Z.ConditionalExpression=Z.ClassProperty=Z.ClassPrivateProperty=Z.ClassPrivateMethod=Z.ClassMethod=Z.ClassImplements=Z.ClassExpression=Z.ClassDeclaration=Z.ClassBody=Z.ClassAccessorProperty=Z.CatchClause=Z.CallExpression=Z.BreakStatement=Z.BooleanTypeAnnotation=Z.BooleanLiteralTypeAnnotation=Z.BooleanLiteral=Z.BlockStatement=Z.BindExpression=Z.BinaryExpression=Z.BigIntLiteral=Z.AwaitExpression=Z.AssignmentPattern=Z.AssignmentExpression=Z.ArrowFunctionExpression=Z.ArrayTypeAnnotation=Z.ArrayPattern=Z.ArrayExpression=Z.ArgumentPlaceholder=Z.AnyTypeAnnotation=void 0,Z.TSNumberKeyword=Z.TSNullKeyword=Z.TSNonNullExpression=Z.TSNeverKeyword=Z.TSNamespaceExportDeclaration=Z.TSNamedTupleMember=Z.TSModuleDeclaration=Z.TSModuleBlock=Z.TSMethodSignature=Z.TSMappedType=Z.TSLiteralType=Z.TSIntrinsicKeyword=Z.TSIntersectionType=Z.TSInterfaceDeclaration=Z.TSInterfaceBody=Z.TSInstantiationExpression=Z.TSInferType=Z.TSIndexedAccessType=Z.TSIndexSignature=Z.TSImportType=Z.TSImportEqualsDeclaration=Z.TSFunctionType=Z.TSExternalModuleReference=Z.TSExpressionWithTypeArguments=Z.TSExportAssignment=Z.TSEnumMember=Z.TSEnumDeclaration=Z.TSEnumBody=Z.TSDeclareMethod=Z.TSDeclareFunction=Z.TSConstructorType=Z.TSConstructSignatureDeclaration=Z.TSConditionalType=Z.TSCallSignatureDeclaration=Z.TSBooleanKeyword=Z.TSBigIntKeyword=Z.TSAsExpression=Z.TSArrayType=Z.TSAnyKeyword=Z.SymbolTypeAnnotation=Z.SwitchStatement=Z.SwitchCase=Z.Super=Z.StringTypeAnnotation=Z.StringLiteralTypeAnnotation=Z.StringLiteral=Z.StaticBlock=Z.SpreadProperty=Z.SpreadElement=Z.SequenceExpression=Z.ReturnStatement=Z.RestProperty=Z.RestElement=Z.RegexLiteral=Z.RegExpLiteral=Z.RecordExpression=Z.QualifiedTypeIdentifier=Z.Program=Z.PrivateName=Z.Placeholder=Z.PipelineTopicExpression=Z.PipelinePrimaryTopicReference=Z.PipelineBareFunction=Z.ParenthesizedExpression=Z.OptionalMemberExpression=Z.OptionalIndexedAccessType=Z.OptionalCallExpression=Z.OpaqueType=Z.ObjectTypeSpreadProperty=Z.ObjectTypeProperty=Z.ObjectTypeInternalSlot=Z.ObjectTypeIndexer=Z.ObjectTypeCallProperty=Z.ObjectTypeAnnotation=Z.ObjectProperty=Z.ObjectPattern=Z.ObjectMethod=Z.ObjectExpression=Z.NumericLiteral=Z.NumberTypeAnnotation=Z.NumberLiteralTypeAnnotation=Z.NumberLiteral=Z.NullableTypeAnnotation=Z.NullLiteralTypeAnnotation=Z.NullLiteral=Z.Noop=Z.NewExpression=Z.ModuleExpression=Z.MixedTypeAnnotation=Z.MetaProperty=Z.MemberExpression=Z.LogicalExpression=Z.LabeledStatement=Z.JSXText=Z.JSXSpreadChild=Z.JSXSpreadAttribute=Z.JSXOpeningFragment=Z.JSXOpeningElement=Z.JSXNamespacedName=Z.JSXMemberExpression=void 0,Z.YieldExpression=Z.WithStatement=Z.WhileStatement=Z.VoidTypeAnnotation=Z.VoidPattern=Z.Variance=Z.VariableDeclarator=Z.VariableDeclaration=Z.V8IntrinsicIdentifier=Z.UpdateExpression=Z.UnionTypeAnnotation=Z.UnaryExpression=Z.TypeofTypeAnnotation=Z.TypeParameterInstantiation=Z.TypeParameterDeclaration=Z.TypeParameter=Z.TypeCastExpression=Z.TypeAnnotation=Z.TypeAlias=Z.TupleTypeAnnotation=Z.TupleExpression=Z.TryStatement=Z.TopicReference=Z.ThrowStatement=Z.ThisTypeAnnotation=Z.ThisExpression=Z.TemplateLiteral=Z.TemplateElement=Z.TaggedTemplateExpression=Z.TSVoidKeyword=Z.TSUnknownKeyword=Z.TSUnionType=Z.TSUndefinedKeyword=Z.TSTypeReference=Z.TSTypeQuery=Z.TSTypePredicate=Z.TSTypeParameterInstantiation=Z.TSTypeParameterDeclaration=Z.TSTypeParameter=Z.TSTypeOperator=Z.TSTypeLiteral=Z.TSTypeAssertion=Z.TSTypeAnnotation=Z.TSTypeAliasDeclaration=Z.TSTupleType=Z.TSThisType=Z.TSTemplateLiteralType=Z.TSSymbolKeyword=Z.TSStringKeyword=Z.TSSatisfiesExpression=Z.TSRestType=Z.TSQualifiedName=Z.TSPropertySignature=Z.TSParenthesizedType=Z.TSParameterProperty=Z.TSOptionalType=Z.TSObjectKeyword=void 0;var e=Zj();Jf();function t(r){return e[r]}return Z.ArrayExpression=t("arrayExpression"),Z.AssignmentExpression=t("assignmentExpression"),Z.BinaryExpression=t("binaryExpression"),Z.InterpreterDirective=t("interpreterDirective"),Z.Directive=t("directive"),Z.DirectiveLiteral=t("directiveLiteral"),Z.BlockStatement=t("blockStatement"),Z.BreakStatement=t("breakStatement"),Z.CallExpression=t("callExpression"),Z.CatchClause=t("catchClause"),Z.ConditionalExpression=t("conditionalExpression"),Z.ContinueStatement=t("continueStatement"),Z.DebuggerStatement=t("debuggerStatement"),Z.DoWhileStatement=t("doWhileStatement"),Z.EmptyStatement=t("emptyStatement"),Z.ExpressionStatement=t("expressionStatement"),Z.File=t("file"),Z.ForInStatement=t("forInStatement"),Z.ForStatement=t("forStatement"),Z.FunctionDeclaration=t("functionDeclaration"),Z.FunctionExpression=t("functionExpression"),Z.Identifier=t("identifier"),Z.IfStatement=t("ifStatement"),Z.LabeledStatement=t("labeledStatement"),Z.StringLiteral=t("stringLiteral"),Z.NumericLiteral=t("numericLiteral"),Z.NullLiteral=t("nullLiteral"),Z.BooleanLiteral=t("booleanLiteral"),Z.RegExpLiteral=t("regExpLiteral"),Z.LogicalExpression=t("logicalExpression"),Z.MemberExpression=t("memberExpression"),Z.NewExpression=t("newExpression"),Z.Program=t("program"),Z.ObjectExpression=t("objectExpression"),Z.ObjectMethod=t("objectMethod"),Z.ObjectProperty=t("objectProperty"),Z.RestElement=t("restElement"),Z.ReturnStatement=t("returnStatement"),Z.SequenceExpression=t("sequenceExpression"),Z.ParenthesizedExpression=t("parenthesizedExpression"),Z.SwitchCase=t("switchCase"),Z.SwitchStatement=t("switchStatement"),Z.ThisExpression=t("thisExpression"),Z.ThrowStatement=t("throwStatement"),Z.TryStatement=t("tryStatement"),Z.UnaryExpression=t("unaryExpression"),Z.UpdateExpression=t("updateExpression"),Z.VariableDeclaration=t("variableDeclaration"),Z.VariableDeclarator=t("variableDeclarator"),Z.WhileStatement=t("whileStatement"),Z.WithStatement=t("withStatement"),Z.AssignmentPattern=t("assignmentPattern"),Z.ArrayPattern=t("arrayPattern"),Z.ArrowFunctionExpression=t("arrowFunctionExpression"),Z.ClassBody=t("classBody"),Z.ClassExpression=t("classExpression"),Z.ClassDeclaration=t("classDeclaration"),Z.ExportAllDeclaration=t("exportAllDeclaration"),Z.ExportDefaultDeclaration=t("exportDefaultDeclaration"),Z.ExportNamedDeclaration=t("exportNamedDeclaration"),Z.ExportSpecifier=t("exportSpecifier"),Z.ForOfStatement=t("forOfStatement"),Z.ImportDeclaration=t("importDeclaration"),Z.ImportDefaultSpecifier=t("importDefaultSpecifier"),Z.ImportNamespaceSpecifier=t("importNamespaceSpecifier"),Z.ImportSpecifier=t("importSpecifier"),Z.ImportExpression=t("importExpression"),Z.MetaProperty=t("metaProperty"),Z.ClassMethod=t("classMethod"),Z.ObjectPattern=t("objectPattern"),Z.SpreadElement=t("spreadElement"),Z.Super=t("super"),Z.TaggedTemplateExpression=t("taggedTemplateExpression"),Z.TemplateElement=t("templateElement"),Z.TemplateLiteral=t("templateLiteral"),Z.YieldExpression=t("yieldExpression"),Z.AwaitExpression=t("awaitExpression"),Z.Import=t("import"),Z.BigIntLiteral=t("bigIntLiteral"),Z.ExportNamespaceSpecifier=t("exportNamespaceSpecifier"),Z.OptionalMemberExpression=t("optionalMemberExpression"),Z.OptionalCallExpression=t("optionalCallExpression"),Z.ClassProperty=t("classProperty"),Z.ClassAccessorProperty=t("classAccessorProperty"),Z.ClassPrivateProperty=t("classPrivateProperty"),Z.ClassPrivateMethod=t("classPrivateMethod"),Z.PrivateName=t("privateName"),Z.StaticBlock=t("staticBlock"),Z.ImportAttribute=t("importAttribute"),Z.AnyTypeAnnotation=t("anyTypeAnnotation"),Z.ArrayTypeAnnotation=t("arrayTypeAnnotation"),Z.BooleanTypeAnnotation=t("booleanTypeAnnotation"),Z.BooleanLiteralTypeAnnotation=t("booleanLiteralTypeAnnotation"),Z.NullLiteralTypeAnnotation=t("nullLiteralTypeAnnotation"),Z.ClassImplements=t("classImplements"),Z.DeclareClass=t("declareClass"),Z.DeclareFunction=t("declareFunction"),Z.DeclareInterface=t("declareInterface"),Z.DeclareModule=t("declareModule"),Z.DeclareModuleExports=t("declareModuleExports"),Z.DeclareTypeAlias=t("declareTypeAlias"),Z.DeclareOpaqueType=t("declareOpaqueType"),Z.DeclareVariable=t("declareVariable"),Z.DeclareExportDeclaration=t("declareExportDeclaration"),Z.DeclareExportAllDeclaration=t("declareExportAllDeclaration"),Z.DeclaredPredicate=t("declaredPredicate"),Z.ExistsTypeAnnotation=t("existsTypeAnnotation"),Z.FunctionTypeAnnotation=t("functionTypeAnnotation"),Z.FunctionTypeParam=t("functionTypeParam"),Z.GenericTypeAnnotation=t("genericTypeAnnotation"),Z.InferredPredicate=t("inferredPredicate"),Z.InterfaceExtends=t("interfaceExtends"),Z.InterfaceDeclaration=t("interfaceDeclaration"),Z.InterfaceTypeAnnotation=t("interfaceTypeAnnotation"),Z.IntersectionTypeAnnotation=t("intersectionTypeAnnotation"),Z.MixedTypeAnnotation=t("mixedTypeAnnotation"),Z.EmptyTypeAnnotation=t("emptyTypeAnnotation"),Z.NullableTypeAnnotation=t("nullableTypeAnnotation"),Z.NumberLiteralTypeAnnotation=t("numberLiteralTypeAnnotation"),Z.NumberTypeAnnotation=t("numberTypeAnnotation"),Z.ObjectTypeAnnotation=t("objectTypeAnnotation"),Z.ObjectTypeInternalSlot=t("objectTypeInternalSlot"),Z.ObjectTypeCallProperty=t("objectTypeCallProperty"),Z.ObjectTypeIndexer=t("objectTypeIndexer"),Z.ObjectTypeProperty=t("objectTypeProperty"),Z.ObjectTypeSpreadProperty=t("objectTypeSpreadProperty"),Z.OpaqueType=t("opaqueType"),Z.QualifiedTypeIdentifier=t("qualifiedTypeIdentifier"),Z.StringLiteralTypeAnnotation=t("stringLiteralTypeAnnotation"),Z.StringTypeAnnotation=t("stringTypeAnnotation"),Z.SymbolTypeAnnotation=t("symbolTypeAnnotation"),Z.ThisTypeAnnotation=t("thisTypeAnnotation"),Z.TupleTypeAnnotation=t("tupleTypeAnnotation"),Z.TypeofTypeAnnotation=t("typeofTypeAnnotation"),Z.TypeAlias=t("typeAlias"),Z.TypeAnnotation=t("typeAnnotation"),Z.TypeCastExpression=t("typeCastExpression"),Z.TypeParameter=t("typeParameter"),Z.TypeParameterDeclaration=t("typeParameterDeclaration"),Z.TypeParameterInstantiation=t("typeParameterInstantiation"),Z.UnionTypeAnnotation=t("unionTypeAnnotation"),Z.Variance=t("variance"),Z.VoidTypeAnnotation=t("voidTypeAnnotation"),Z.EnumDeclaration=t("enumDeclaration"),Z.EnumBooleanBody=t("enumBooleanBody"),Z.EnumNumberBody=t("enumNumberBody"),Z.EnumStringBody=t("enumStringBody"),Z.EnumSymbolBody=t("enumSymbolBody"),Z.EnumBooleanMember=t("enumBooleanMember"),Z.EnumNumberMember=t("enumNumberMember"),Z.EnumStringMember=t("enumStringMember"),Z.EnumDefaultedMember=t("enumDefaultedMember"),Z.IndexedAccessType=t("indexedAccessType"),Z.OptionalIndexedAccessType=t("optionalIndexedAccessType"),Z.JSXAttribute=t("jsxAttribute"),Z.JSXClosingElement=t("jsxClosingElement"),Z.JSXElement=t("jsxElement"),Z.JSXEmptyExpression=t("jsxEmptyExpression"),Z.JSXExpressionContainer=t("jsxExpressionContainer"),Z.JSXSpreadChild=t("jsxSpreadChild"),Z.JSXIdentifier=t("jsxIdentifier"),Z.JSXMemberExpression=t("jsxMemberExpression"),Z.JSXNamespacedName=t("jsxNamespacedName"),Z.JSXOpeningElement=t("jsxOpeningElement"),Z.JSXSpreadAttribute=t("jsxSpreadAttribute"),Z.JSXText=t("jsxText"),Z.JSXFragment=t("jsxFragment"),Z.JSXOpeningFragment=t("jsxOpeningFragment"),Z.JSXClosingFragment=t("jsxClosingFragment"),Z.Noop=t("noop"),Z.Placeholder=t("placeholder"),Z.V8IntrinsicIdentifier=t("v8IntrinsicIdentifier"),Z.ArgumentPlaceholder=t("argumentPlaceholder"),Z.BindExpression=t("bindExpression"),Z.Decorator=t("decorator"),Z.DoExpression=t("doExpression"),Z.ExportDefaultSpecifier=t("exportDefaultSpecifier"),Z.RecordExpression=t("recordExpression"),Z.TupleExpression=t("tupleExpression"),Z.DecimalLiteral=t("decimalLiteral"),Z.ModuleExpression=t("moduleExpression"),Z.TopicReference=t("topicReference"),Z.PipelineTopicExpression=t("pipelineTopicExpression"),Z.PipelineBareFunction=t("pipelineBareFunction"),Z.PipelinePrimaryTopicReference=t("pipelinePrimaryTopicReference"),Z.VoidPattern=t("voidPattern"),Z.TSParameterProperty=t("tsParameterProperty"),Z.TSDeclareFunction=t("tsDeclareFunction"),Z.TSDeclareMethod=t("tsDeclareMethod"),Z.TSQualifiedName=t("tsQualifiedName"),Z.TSCallSignatureDeclaration=t("tsCallSignatureDeclaration"),Z.TSConstructSignatureDeclaration=t("tsConstructSignatureDeclaration"),Z.TSPropertySignature=t("tsPropertySignature"),Z.TSMethodSignature=t("tsMethodSignature"),Z.TSIndexSignature=t("tsIndexSignature"),Z.TSAnyKeyword=t("tsAnyKeyword"),Z.TSBooleanKeyword=t("tsBooleanKeyword"),Z.TSBigIntKeyword=t("tsBigIntKeyword"),Z.TSIntrinsicKeyword=t("tsIntrinsicKeyword"),Z.TSNeverKeyword=t("tsNeverKeyword"),Z.TSNullKeyword=t("tsNullKeyword"),Z.TSNumberKeyword=t("tsNumberKeyword"),Z.TSObjectKeyword=t("tsObjectKeyword"),Z.TSStringKeyword=t("tsStringKeyword"),Z.TSSymbolKeyword=t("tsSymbolKeyword"),Z.TSUndefinedKeyword=t("tsUndefinedKeyword"),Z.TSUnknownKeyword=t("tsUnknownKeyword"),Z.TSVoidKeyword=t("tsVoidKeyword"),Z.TSThisType=t("tsThisType"),Z.TSFunctionType=t("tsFunctionType"),Z.TSConstructorType=t("tsConstructorType"),Z.TSTypeReference=t("tsTypeReference"),Z.TSTypePredicate=t("tsTypePredicate"),Z.TSTypeQuery=t("tsTypeQuery"),Z.TSTypeLiteral=t("tsTypeLiteral"),Z.TSArrayType=t("tsArrayType"),Z.TSTupleType=t("tsTupleType"),Z.TSOptionalType=t("tsOptionalType"),Z.TSRestType=t("tsRestType"),Z.TSNamedTupleMember=t("tsNamedTupleMember"),Z.TSUnionType=t("tsUnionType"),Z.TSIntersectionType=t("tsIntersectionType"),Z.TSConditionalType=t("tsConditionalType"),Z.TSInferType=t("tsInferType"),Z.TSParenthesizedType=t("tsParenthesizedType"),Z.TSTypeOperator=t("tsTypeOperator"),Z.TSIndexedAccessType=t("tsIndexedAccessType"),Z.TSMappedType=t("tsMappedType"),Z.TSTemplateLiteralType=t("tsTemplateLiteralType"),Z.TSLiteralType=t("tsLiteralType"),Z.TSExpressionWithTypeArguments=t("tsExpressionWithTypeArguments"),Z.TSInterfaceDeclaration=t("tsInterfaceDeclaration"),Z.TSInterfaceBody=t("tsInterfaceBody"),Z.TSTypeAliasDeclaration=t("tsTypeAliasDeclaration"),Z.TSInstantiationExpression=t("tsInstantiationExpression"),Z.TSAsExpression=t("tsAsExpression"),Z.TSSatisfiesExpression=t("tsSatisfiesExpression"),Z.TSTypeAssertion=t("tsTypeAssertion"),Z.TSEnumBody=t("tsEnumBody"),Z.TSEnumDeclaration=t("tsEnumDeclaration"),Z.TSEnumMember=t("tsEnumMember"),Z.TSModuleDeclaration=t("tsModuleDeclaration"),Z.TSModuleBlock=t("tsModuleBlock"),Z.TSImportType=t("tsImportType"),Z.TSImportEqualsDeclaration=t("tsImportEqualsDeclaration"),Z.TSExternalModuleReference=t("tsExternalModuleReference"),Z.TSNonNullExpression=t("tsNonNullExpression"),Z.TSExportAssignment=t("tsExportAssignment"),Z.TSNamespaceExportDeclaration=t("tsNamespaceExportDeclaration"),Z.TSTypeAnnotation=t("tsTypeAnnotation"),Z.TSTypeParameterInstantiation=t("tsTypeParameterInstantiation"),Z.TSTypeParameterDeclaration=t("tsTypeParameterDeclaration"),Z.TSTypeParameter=t("tsTypeParameter"),Z.NumberLiteral=e.numberLiteral,Z.RegexLiteral=e.regexLiteral,Z.RestProperty=e.restProperty,Z.SpreadProperty=e.spreadProperty,Z}var jw;function _n(){return jw||(jw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Zj();Object.keys(t).forEach(function(n){n==="default"||n==="__esModule"||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var r=U7();Object.keys(r).forEach(function(n){n==="default"||n==="__esModule"||n in e&&e[n]===r[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[n]}})})})(Rg)),Rg}var Rw;function V7(){if(Rw)return Op;Rw=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.default=r;var e=_n(),t=It();function r(n,i){const a=n.value.split(/\r\n|\n|\r/);let s=0;for(let l=0;l<a.length;l++)/[^ \t]/.exec(a[l])&&(s=l);let o="";for(let l=0;l<a.length;l++){const c=a[l],p=l===0,f=l===a.length-1,d=l===s;let h=c.replace(/\t/g," ");p||(h=h.replace(/^ +/,"")),f||(h=h.replace(/ +$/,"")),h&&(d||(h+=" "),o+=h)}o&&i.push((0,t.inherits)((0,e.stringLiteral)(o),n))}return Op}var Bw;function K7(){if(Bw)return _p;Bw=1,Object.defineProperty(_p,"__esModule",{value:!0}),_p.default=r;var e=dr(),t=V7();function r(n){const i=[];for(let a=0;a<n.children.length;a++){let s=n.children[a];if((0,e.isJSXText)(s)){(0,t.default)(s,i);continue}(0,e.isJSXExpressionContainer)(s)&&(s=s.expression),!(0,e.isJSXEmptyExpression)(s)&&i.push(s)}return i}return _p}var Dp={},Mp={},Fw;function eR(){if(Fw)return Mp;Fw=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.default=t;var e=si();function t(r){return!!(r&&e.VISITOR_KEYS[r.type])}return Mp}var qw;function z7(){if(qw)return Dp;qw=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.default=t;var e=eR();function t(r){if(!(0,e.default)(r)){var n;const i=(n=r==null?void 0:r.type)!=null?n:JSON.stringify(r);throw new TypeError(`Not a valid node of type "${i}"`)}}return Dp}var ve={},$w;function W7(){if($w)return ve;$w=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.assertAccessor=ng,ve.assertAnyTypeAnnotation=ot,ve.assertArgumentPlaceholder=vo,ve.assertArrayExpression=n,ve.assertArrayPattern=ue,ve.assertArrayTypeAnnotation=Wn,ve.assertArrowFunctionExpression=Te,ve.assertAssignmentExpression=i,ve.assertAssignmentPattern=re,ve.assertAwaitExpression=Xe,ve.assertBigIntLiteral=st,ve.assertBinary=Zu,ve.assertBinaryExpression=a,ve.assertBindExpression=Ki,ve.assertBlock=rc,ve.assertBlockParent=tc,ve.assertBlockStatement=c,ve.assertBooleanLiteral=$,ve.assertBooleanLiteralTypeAnnotation=Li,ve.assertBooleanTypeAnnotation=Hn,ve.assertBreakStatement=p,ve.assertCallExpression=f,ve.assertCatchClause=d,ve.assertClass=vp,ve.assertClassAccessorProperty=hr,ve.assertClassBody=ke,ve.assertClassDeclaration=Me,ve.assertClassExpression=Oe,ve.assertClassImplements=Yn,ve.assertClassMethod=Ge,ve.assertClassPrivateMethod=yr,ve.assertClassPrivateProperty=mr,ve.assertClassProperty=lr,ve.assertCompletionStatement=Y,ve.assertConditional=oe,ve.assertConditionalExpression=h,ve.assertContinueStatement=v,ve.assertDebuggerStatement=x,ve.assertDecimalLiteral=Eo,ve.assertDeclaration=$y,ve.assertDeclareClass=$r,ve.assertDeclareExportAllDeclaration=pn,ve.assertDeclareExportDeclaration=js,ve.assertDeclareFunction=Cn,ve.assertDeclareInterface=fi,ve.assertDeclareModule=fn,ve.assertDeclareModuleExports=Ur,ve.assertDeclareOpaqueType=ji,ve.assertDeclareTypeAlias=ga,ve.assertDeclareVariable=Ri,ve.assertDeclaredPredicate=Jr,ve.assertDecorator=bo,ve.assertDirective=o,ve.assertDirectiveLiteral=l,ve.assertDoExpression=xo,ve.assertDoWhileStatement=y,ve.assertEmptyStatement=m,ve.assertEmptyTypeAnnotation=jr,ve.assertEnumBody=cg,ve.assertEnumBooleanBody=qi,ve.assertEnumBooleanMember=Ui,ve.assertEnumDeclaration=yi,ve.assertEnumDefaultedMember=ut,ve.assertEnumMember=fg,ve.assertEnumNumberBody=ro,ve.assertEnumNumberMember=io,ve.assertEnumStringBody=$i,ve.assertEnumStringMember=Aa,ve.assertEnumSymbolBody=no,ve.assertExistsTypeAnnotation=In,ve.assertExportAllDeclaration=Ke,ve.assertExportDeclaration=tg,ve.assertExportDefaultDeclaration=_e,ve.assertExportDefaultSpecifier=Da,ve.assertExportNamedDeclaration=pe,ve.assertExportNamespaceSpecifier=mt,ve.assertExportSpecifier=ne,ve.assertExpression=Qu,ve.assertExpressionStatement=T,ve.assertExpressionWrapper=pt,ve.assertFile=A,ve.assertFlow=ag,ve.assertFlowBaseAnnotation=og,ve.assertFlowDeclaration=lg,ve.assertFlowPredicate=ug,ve.assertFlowType=sg,ve.assertFor=Vt,ve.assertForInStatement=E,ve.assertForOfStatement=me,ve.assertForStatement=P,ve.assertForXStatement=ur,ve.assertFunction=kn,ve.assertFunctionDeclaration=_,ve.assertFunctionExpression=I,ve.assertFunctionParameter=Uy,ve.assertFunctionParent=Fy,ve.assertFunctionTypeAnnotation=Rs,ve.assertFunctionTypeParam=Bs,ve.assertGenericTypeAnnotation=Fs,ve.assertIdentifier=k,ve.assertIfStatement=M,ve.assertImmutable=Hy,ve.assertImport=it,ve.assertImportAttribute=zn,ve.assertImportDeclaration=Ie,ve.assertImportDefaultSpecifier=De,ve.assertImportExpression=lt,ve.assertImportNamespaceSpecifier=Ue,ve.assertImportOrExportDeclaration=eg,ve.assertImportSpecifier=We,ve.assertIndexedAccessType=ao,ve.assertInferredPredicate=qs,ve.assertInterfaceDeclaration=$s,ve.assertInterfaceExtends=pi,ve.assertInterfaceTypeAnnotation=va,ve.assertInterpreterDirective=s,ve.assertIntersectionTypeAnnotation=Us,ve.assertJSX=pg,ve.assertJSXAttribute=so,ve.assertJSXClosingElement=oo,ve.assertJSXClosingFragment=mo,ve.assertJSXElement=lo,ve.assertJSXEmptyExpression=uo,ve.assertJSXExpressionContainer=_a,ve.assertJSXFragment=ho,ve.assertJSXIdentifier=Oa,ve.assertJSXMemberExpression=Ca,ve.assertJSXNamespacedName=fo,ve.assertJSXOpeningElement=po,ve.assertJSXOpeningFragment=Na,ve.assertJSXSpreadAttribute=Ia,ve.assertJSXSpreadChild=co,ve.assertJSXText=ka,ve.assertLVal=Ky,ve.assertLabeledStatement=D,ve.assertLiteral=Wy,ve.assertLogicalExpression=Q,ve.assertLoop=Ae,ve.assertMemberExpression=V,ve.assertMetaProperty=gt,ve.assertMethod=Xy,ve.assertMiscellaneous=dg,ve.assertMixedTypeAnnotation=Xn,ve.assertModuleDeclaration=O,ve.assertModuleExpression=Po,ve.assertModuleSpecifier=rg,ve.assertNewExpression=X,ve.assertNoop=yo,ve.assertNullLiteral=q,ve.assertNullLiteralTypeAnnotation=ci,ve.assertNullableTypeAnnotation=Vs,ve.assertNumberLiteral=vg,ve.assertNumberLiteralTypeAnnotation=Bi,ve.assertNumberTypeAnnotation=Ks,ve.assertNumericLiteral=L,ve.assertObjectExpression=N,ve.assertObjectMember=Gy,ve.assertObjectMethod=j,ve.assertObjectPattern=vt,ve.assertObjectProperty=F,ve.assertObjectTypeAnnotation=ba,ve.assertObjectTypeCallProperty=xa,ve.assertObjectTypeIndexer=zs,ve.assertObjectTypeInternalSlot=di,ve.assertObjectTypeProperty=Ws,ve.assertObjectTypeSpreadProperty=Fi,ve.assertOpaqueType=Ta,ve.assertOptionalCallExpression=Ut,ve.assertOptionalIndexedAccessType=wa,ve.assertOptionalMemberExpression=Tt,ve.assertParenthesizedExpression=ie,ve.assertPattern=Zy,ve.assertPatternLike=Vy,ve.assertPipelineBareFunction=Ao,ve.assertPipelinePrimaryTopicReference=G,ve.assertPipelineTopicExpression=Ma,ve.assertPlaceholder=Vi,ve.assertPrivate=ig,ve.assertPrivateName=Mr,ve.assertProgram=U,ve.assertProperty=Jy,ve.assertPureish=qy,ve.assertQualifiedTypeIdentifier=Sa,ve.assertRecordExpression=To,ve.assertRegExpLiteral=z,ve.assertRegexLiteral=bg,ve.assertRestElement=R,ve.assertRestProperty=xg,ve.assertReturnStatement=J,ve.assertScopable=ec,ve.assertSequenceExpression=se,ve.assertSpreadElement=Le,ve.assertSpreadProperty=Tg,ve.assertStandardized=Ju,ve.assertStatement=K,ve.assertStaticBlock=Gr,ve.assertStringLiteral=C,ve.assertStringLiteralTypeAnnotation=Gn,ve.assertStringTypeAnnotation=Hs,ve.assertSuper=qe,ve.assertSwitchCase=ae,ve.assertSwitchStatement=fe,ve.assertSymbolTypeAnnotation=Qr,ve.assertTSAnyKeyword=Ve,ve.assertTSArrayType=za,ve.assertTSAsExpression=Du,ve.assertTSBaseType=gg,ve.assertTSBigIntKeyword=tt,ve.assertTSBooleanKeyword=Qe,ve.assertTSCallSignatureDeclaration=ee,ve.assertTSConditionalType=Qa,ve.assertTSConstructSignatureDeclaration=le,ve.assertTSConstructorType=qa,ve.assertTSDeclareFunction=b,ve.assertTSDeclareMethod=w,ve.assertTSEntityName=zy,ve.assertTSEnumBody=ju,ve.assertTSEnumDeclaration=Ru,ve.assertTSEnumMember=Bu,ve.assertTSExportAssignment=zu,ve.assertTSExpressionWithTypeArguments=ss,ve.assertTSExternalModuleReference=Vu,ve.assertTSFunctionType=Fa,ve.assertTSImportEqualsDeclaration=Uu,ve.assertTSImportType=$u,ve.assertTSIndexSignature=Ne,ve.assertTSIndexedAccessType=rs,ve.assertTSInferType=Za,ve.assertTSInstantiationExpression=cs,ve.assertTSInterfaceBody=ls,ve.assertTSInterfaceDeclaration=os,ve.assertTSIntersectionType=Ja,ve.assertTSIntrinsicKeyword=ct,ve.assertTSLiteralType=as,ve.assertTSMappedType=ns,ve.assertTSMethodSignature=we,ve.assertTSModuleBlock=qu,ve.assertTSModuleDeclaration=Fu,ve.assertTSNamedTupleMember=Xa,ve.assertTSNamespaceExportDeclaration=Wu,ve.assertTSNeverKeyword=Ct,ve.assertTSNonNullExpression=Ku,ve.assertTSNullKeyword=Rt,ve.assertTSNumberKeyword=bt,ve.assertTSObjectKeyword=jt,ve.assertTSOptionalType=Ha,ve.assertTSParameterProperty=u,ve.assertTSParenthesizedType=es,ve.assertTSPropertySignature=be,ve.assertTSQualifiedName=B,ve.assertTSRestType=Ya,ve.assertTSSatisfiesExpression=Mu,ve.assertTSStringKeyword=dn,ve.assertTSSymbolKeyword=Zr,ve.assertTSTemplateLiteralType=is,ve.assertTSThisType=Ba,ve.assertTSTupleType=Wa,ve.assertTSType=yg,ve.assertTSTypeAliasDeclaration=us,ve.assertTSTypeAnnotation=Hu,ve.assertTSTypeAssertion=Lu,ve.assertTSTypeElement=mg,ve.assertTSTypeLiteral=Ka,ve.assertTSTypeOperator=ts,ve.assertTSTypeParameter=Gu,ve.assertTSTypeParameterDeclaration=Xu,ve.assertTSTypeParameterInstantiation=Yu,ve.assertTSTypePredicate=Ua,ve.assertTSTypeQuery=Va,ve.assertTSTypeReference=$a,ve.assertTSUndefinedKeyword=La,ve.assertTSUnionType=Ga,ve.assertTSUnknownKeyword=ja,ve.assertTSVoidKeyword=Ra,ve.assertTaggedTemplateExpression=he,ve.assertTemplateElement=$e,ve.assertTemplateLiteral=Ze,ve.assertTerminatorless=W,ve.assertThisExpression=de,ve.assertThisTypeAnnotation=Ys,ve.assertThrowStatement=Se,ve.assertTopicReference=Jn,ve.assertTryStatement=Ce,ve.assertTupleExpression=So,ve.assertTupleTypeAnnotation=Xs,ve.assertTypeAlias=hi,ve.assertTypeAnnotation=Ea,ve.assertTypeCastExpression=Js,ve.assertTypeParameter=Qs,ve.assertTypeParameterDeclaration=Zs,ve.assertTypeParameterInstantiation=eo,ve.assertTypeScript=hg,ve.assertTypeofTypeAnnotation=Gs,ve.assertUnaryExpression=xe,ve.assertUnaryLike=Qy,ve.assertUnionTypeAnnotation=Pa,ve.assertUpdateExpression=Be,ve.assertUserWhitespacable=Yy,ve.assertV8IntrinsicIdentifier=go,ve.assertVariableDeclaration=Re,ve.assertVariableDeclarator=He,ve.assertVariance=to,ve.assertVoidPattern=g,ve.assertVoidTypeAnnotation=mi,ve.assertWhile=Fe,ve.assertWhileStatement=ze,ve.assertWithStatement=je,ve.assertYieldExpression=Ee;var e=Qf(),t=Jf();function r(S,H,kA){if(!(0,e.default)(S,H,kA))throw new Error(`Expected type "${S}" with option ${JSON.stringify(kA)}, but instead got "${H.type}".`)}function n(S,H){r("ArrayExpression",S,H)}function i(S,H){r("AssignmentExpression",S,H)}function a(S,H){r("BinaryExpression",S,H)}function s(S,H){r("InterpreterDirective",S,H)}function o(S,H){r("Directive",S,H)}function l(S,H){r("DirectiveLiteral",S,H)}function c(S,H){r("BlockStatement",S,H)}function p(S,H){r("BreakStatement",S,H)}function f(S,H){r("CallExpression",S,H)}function d(S,H){r("CatchClause",S,H)}function h(S,H){r("ConditionalExpression",S,H)}function v(S,H){r("ContinueStatement",S,H)}function x(S,H){r("DebuggerStatement",S,H)}function y(S,H){r("DoWhileStatement",S,H)}function m(S,H){r("EmptyStatement",S,H)}function T(S,H){r("ExpressionStatement",S,H)}function A(S,H){r("File",S,H)}function E(S,H){r("ForInStatement",S,H)}function P(S,H){r("ForStatement",S,H)}function _(S,H){r("FunctionDeclaration",S,H)}function I(S,H){r("FunctionExpression",S,H)}function k(S,H){r("Identifier",S,H)}function M(S,H){r("IfStatement",S,H)}function D(S,H){r("LabeledStatement",S,H)}function C(S,H){r("StringLiteral",S,H)}function L(S,H){r("NumericLiteral",S,H)}function q(S,H){r("NullLiteral",S,H)}function $(S,H){r("BooleanLiteral",S,H)}function z(S,H){r("RegExpLiteral",S,H)}function Q(S,H){r("LogicalExpression",S,H)}function V(S,H){r("MemberExpression",S,H)}function X(S,H){r("NewExpression",S,H)}function U(S,H){r("Program",S,H)}function N(S,H){r("ObjectExpression",S,H)}function j(S,H){r("ObjectMethod",S,H)}function F(S,H){r("ObjectProperty",S,H)}function R(S,H){r("RestElement",S,H)}function J(S,H){r("ReturnStatement",S,H)}function se(S,H){r("SequenceExpression",S,H)}function ie(S,H){r("ParenthesizedExpression",S,H)}function ae(S,H){r("SwitchCase",S,H)}function fe(S,H){r("SwitchStatement",S,H)}function de(S,H){r("ThisExpression",S,H)}function Se(S,H){r("ThrowStatement",S,H)}function Ce(S,H){r("TryStatement",S,H)}function xe(S,H){r("UnaryExpression",S,H)}function Be(S,H){r("UpdateExpression",S,H)}function Re(S,H){r("VariableDeclaration",S,H)}function He(S,H){r("VariableDeclarator",S,H)}function ze(S,H){r("WhileStatement",S,H)}function je(S,H){r("WithStatement",S,H)}function re(S,H){r("AssignmentPattern",S,H)}function ue(S,H){r("ArrayPattern",S,H)}function Te(S,H){r("ArrowFunctionExpression",S,H)}function ke(S,H){r("ClassBody",S,H)}function Oe(S,H){r("ClassExpression",S,H)}function Me(S,H){r("ClassDeclaration",S,H)}function Ke(S,H){r("ExportAllDeclaration",S,H)}function _e(S,H){r("ExportDefaultDeclaration",S,H)}function pe(S,H){r("ExportNamedDeclaration",S,H)}function ne(S,H){r("ExportSpecifier",S,H)}function me(S,H){r("ForOfStatement",S,H)}function Ie(S,H){r("ImportDeclaration",S,H)}function De(S,H){r("ImportDefaultSpecifier",S,H)}function Ue(S,H){r("ImportNamespaceSpecifier",S,H)}function We(S,H){r("ImportSpecifier",S,H)}function lt(S,H){r("ImportExpression",S,H)}function gt(S,H){r("MetaProperty",S,H)}function Ge(S,H){r("ClassMethod",S,H)}function vt(S,H){r("ObjectPattern",S,H)}function Le(S,H){r("SpreadElement",S,H)}function qe(S,H){r("Super",S,H)}function he(S,H){r("TaggedTemplateExpression",S,H)}function $e(S,H){r("TemplateElement",S,H)}function Ze(S,H){r("TemplateLiteral",S,H)}function Ee(S,H){r("YieldExpression",S,H)}function Xe(S,H){r("AwaitExpression",S,H)}function it(S,H){r("Import",S,H)}function st(S,H){r("BigIntLiteral",S,H)}function mt(S,H){r("ExportNamespaceSpecifier",S,H)}function Tt(S,H){r("OptionalMemberExpression",S,H)}function Ut(S,H){r("OptionalCallExpression",S,H)}function lr(S,H){r("ClassProperty",S,H)}function hr(S,H){r("ClassAccessorProperty",S,H)}function mr(S,H){r("ClassPrivateProperty",S,H)}function yr(S,H){r("ClassPrivateMethod",S,H)}function Mr(S,H){r("PrivateName",S,H)}function Gr(S,H){r("StaticBlock",S,H)}function zn(S,H){r("ImportAttribute",S,H)}function ot(S,H){r("AnyTypeAnnotation",S,H)}function Wn(S,H){r("ArrayTypeAnnotation",S,H)}function Hn(S,H){r("BooleanTypeAnnotation",S,H)}function Li(S,H){r("BooleanLiteralTypeAnnotation",S,H)}function ci(S,H){r("NullLiteralTypeAnnotation",S,H)}function Yn(S,H){r("ClassImplements",S,H)}function $r(S,H){r("DeclareClass",S,H)}function Cn(S,H){r("DeclareFunction",S,H)}function fi(S,H){r("DeclareInterface",S,H)}function fn(S,H){r("DeclareModule",S,H)}function Ur(S,H){r("DeclareModuleExports",S,H)}function ga(S,H){r("DeclareTypeAlias",S,H)}function ji(S,H){r("DeclareOpaqueType",S,H)}function Ri(S,H){r("DeclareVariable",S,H)}function js(S,H){r("DeclareExportDeclaration",S,H)}function pn(S,H){r("DeclareExportAllDeclaration",S,H)}function Jr(S,H){r("DeclaredPredicate",S,H)}function In(S,H){r("ExistsTypeAnnotation",S,H)}function Rs(S,H){r("FunctionTypeAnnotation",S,H)}function Bs(S,H){r("FunctionTypeParam",S,H)}function Fs(S,H){r("GenericTypeAnnotation",S,H)}function qs(S,H){r("InferredPredicate",S,H)}function pi(S,H){r("InterfaceExtends",S,H)}function $s(S,H){r("InterfaceDeclaration",S,H)}function va(S,H){r("InterfaceTypeAnnotation",S,H)}function Us(S,H){r("IntersectionTypeAnnotation",S,H)}function Xn(S,H){r("MixedTypeAnnotation",S,H)}function jr(S,H){r("EmptyTypeAnnotation",S,H)}function Vs(S,H){r("NullableTypeAnnotation",S,H)}function Bi(S,H){r("NumberLiteralTypeAnnotation",S,H)}function Ks(S,H){r("NumberTypeAnnotation",S,H)}function ba(S,H){r("ObjectTypeAnnotation",S,H)}function di(S,H){r("ObjectTypeInternalSlot",S,H)}function xa(S,H){r("ObjectTypeCallProperty",S,H)}function zs(S,H){r("ObjectTypeIndexer",S,H)}function Ws(S,H){r("ObjectTypeProperty",S,H)}function Fi(S,H){r("ObjectTypeSpreadProperty",S,H)}function Ta(S,H){r("OpaqueType",S,H)}function Sa(S,H){r("QualifiedTypeIdentifier",S,H)}function Gn(S,H){r("StringLiteralTypeAnnotation",S,H)}function Hs(S,H){r("StringTypeAnnotation",S,H)}function Qr(S,H){r("SymbolTypeAnnotation",S,H)}function Ys(S,H){r("ThisTypeAnnotation",S,H)}function Xs(S,H){r("TupleTypeAnnotation",S,H)}function Gs(S,H){r("TypeofTypeAnnotation",S,H)}function hi(S,H){r("TypeAlias",S,H)}function Ea(S,H){r("TypeAnnotation",S,H)}function Js(S,H){r("TypeCastExpression",S,H)}function Qs(S,H){r("TypeParameter",S,H)}function Zs(S,H){r("TypeParameterDeclaration",S,H)}function eo(S,H){r("TypeParameterInstantiation",S,H)}function Pa(S,H){r("UnionTypeAnnotation",S,H)}function to(S,H){r("Variance",S,H)}function mi(S,H){r("VoidTypeAnnotation",S,H)}function yi(S,H){r("EnumDeclaration",S,H)}function qi(S,H){r("EnumBooleanBody",S,H)}function ro(S,H){r("EnumNumberBody",S,H)}function $i(S,H){r("EnumStringBody",S,H)}function no(S,H){r("EnumSymbolBody",S,H)}function Ui(S,H){r("EnumBooleanMember",S,H)}function io(S,H){r("EnumNumberMember",S,H)}function Aa(S,H){r("EnumStringMember",S,H)}function ut(S,H){r("EnumDefaultedMember",S,H)}function ao(S,H){r("IndexedAccessType",S,H)}function wa(S,H){r("OptionalIndexedAccessType",S,H)}function so(S,H){r("JSXAttribute",S,H)}function oo(S,H){r("JSXClosingElement",S,H)}function lo(S,H){r("JSXElement",S,H)}function uo(S,H){r("JSXEmptyExpression",S,H)}function _a(S,H){r("JSXExpressionContainer",S,H)}function co(S,H){r("JSXSpreadChild",S,H)}function Oa(S,H){r("JSXIdentifier",S,H)}function Ca(S,H){r("JSXMemberExpression",S,H)}function fo(S,H){r("JSXNamespacedName",S,H)}function po(S,H){r("JSXOpeningElement",S,H)}function Ia(S,H){r("JSXSpreadAttribute",S,H)}function ka(S,H){r("JSXText",S,H)}function ho(S,H){r("JSXFragment",S,H)}function Na(S,H){r("JSXOpeningFragment",S,H)}function mo(S,H){r("JSXClosingFragment",S,H)}function yo(S,H){r("Noop",S,H)}function Vi(S,H){r("Placeholder",S,H)}function go(S,H){r("V8IntrinsicIdentifier",S,H)}function vo(S,H){r("ArgumentPlaceholder",S,H)}function Ki(S,H){r("BindExpression",S,H)}function bo(S,H){r("Decorator",S,H)}function xo(S,H){r("DoExpression",S,H)}function Da(S,H){r("ExportDefaultSpecifier",S,H)}function To(S,H){r("RecordExpression",S,H)}function So(S,H){r("TupleExpression",S,H)}function Eo(S,H){r("DecimalLiteral",S,H)}function Po(S,H){r("ModuleExpression",S,H)}function Jn(S,H){r("TopicReference",S,H)}function Ma(S,H){r("PipelineTopicExpression",S,H)}function Ao(S,H){r("PipelineBareFunction",S,H)}function G(S,H){r("PipelinePrimaryTopicReference",S,H)}function g(S,H){r("VoidPattern",S,H)}function u(S,H){r("TSParameterProperty",S,H)}function b(S,H){r("TSDeclareFunction",S,H)}function w(S,H){r("TSDeclareMethod",S,H)}function B(S,H){r("TSQualifiedName",S,H)}function ee(S,H){r("TSCallSignatureDeclaration",S,H)}function le(S,H){r("TSConstructSignatureDeclaration",S,H)}function be(S,H){r("TSPropertySignature",S,H)}function we(S,H){r("TSMethodSignature",S,H)}function Ne(S,H){r("TSIndexSignature",S,H)}function Ve(S,H){r("TSAnyKeyword",S,H)}function Qe(S,H){r("TSBooleanKeyword",S,H)}function tt(S,H){r("TSBigIntKeyword",S,H)}function ct(S,H){r("TSIntrinsicKeyword",S,H)}function Ct(S,H){r("TSNeverKeyword",S,H)}function Rt(S,H){r("TSNullKeyword",S,H)}function bt(S,H){r("TSNumberKeyword",S,H)}function jt(S,H){r("TSObjectKeyword",S,H)}function dn(S,H){r("TSStringKeyword",S,H)}function Zr(S,H){r("TSSymbolKeyword",S,H)}function La(S,H){r("TSUndefinedKeyword",S,H)}function ja(S,H){r("TSUnknownKeyword",S,H)}function Ra(S,H){r("TSVoidKeyword",S,H)}function Ba(S,H){r("TSThisType",S,H)}function Fa(S,H){r("TSFunctionType",S,H)}function qa(S,H){r("TSConstructorType",S,H)}function $a(S,H){r("TSTypeReference",S,H)}function Ua(S,H){r("TSTypePredicate",S,H)}function Va(S,H){r("TSTypeQuery",S,H)}function Ka(S,H){r("TSTypeLiteral",S,H)}function za(S,H){r("TSArrayType",S,H)}function Wa(S,H){r("TSTupleType",S,H)}function Ha(S,H){r("TSOptionalType",S,H)}function Ya(S,H){r("TSRestType",S,H)}function Xa(S,H){r("TSNamedTupleMember",S,H)}function Ga(S,H){r("TSUnionType",S,H)}function Ja(S,H){r("TSIntersectionType",S,H)}function Qa(S,H){r("TSConditionalType",S,H)}function Za(S,H){r("TSInferType",S,H)}function es(S,H){r("TSParenthesizedType",S,H)}function ts(S,H){r("TSTypeOperator",S,H)}function rs(S,H){r("TSIndexedAccessType",S,H)}function ns(S,H){r("TSMappedType",S,H)}function is(S,H){r("TSTemplateLiteralType",S,H)}function as(S,H){r("TSLiteralType",S,H)}function ss(S,H){r("TSExpressionWithTypeArguments",S,H)}function os(S,H){r("TSInterfaceDeclaration",S,H)}function ls(S,H){r("TSInterfaceBody",S,H)}function us(S,H){r("TSTypeAliasDeclaration",S,H)}function cs(S,H){r("TSInstantiationExpression",S,H)}function Du(S,H){r("TSAsExpression",S,H)}function Mu(S,H){r("TSSatisfiesExpression",S,H)}function Lu(S,H){r("TSTypeAssertion",S,H)}function ju(S,H){r("TSEnumBody",S,H)}function Ru(S,H){r("TSEnumDeclaration",S,H)}function Bu(S,H){r("TSEnumMember",S,H)}function Fu(S,H){r("TSModuleDeclaration",S,H)}function qu(S,H){r("TSModuleBlock",S,H)}function $u(S,H){r("TSImportType",S,H)}function Uu(S,H){r("TSImportEqualsDeclaration",S,H)}function Vu(S,H){r("TSExternalModuleReference",S,H)}function Ku(S,H){r("TSNonNullExpression",S,H)}function zu(S,H){r("TSExportAssignment",S,H)}function Wu(S,H){r("TSNamespaceExportDeclaration",S,H)}function Hu(S,H){r("TSTypeAnnotation",S,H)}function Yu(S,H){r("TSTypeParameterInstantiation",S,H)}function Xu(S,H){r("TSTypeParameterDeclaration",S,H)}function Gu(S,H){r("TSTypeParameter",S,H)}function Ju(S,H){r("Standardized",S,H)}function Qu(S,H){r("Expression",S,H)}function Zu(S,H){r("Binary",S,H)}function ec(S,H){r("Scopable",S,H)}function tc(S,H){r("BlockParent",S,H)}function rc(S,H){r("Block",S,H)}function K(S,H){r("Statement",S,H)}function W(S,H){r("Terminatorless",S,H)}function Y(S,H){r("CompletionStatement",S,H)}function oe(S,H){r("Conditional",S,H)}function Ae(S,H){r("Loop",S,H)}function Fe(S,H){r("While",S,H)}function pt(S,H){r("ExpressionWrapper",S,H)}function Vt(S,H){r("For",S,H)}function ur(S,H){r("ForXStatement",S,H)}function kn(S,H){r("Function",S,H)}function Fy(S,H){r("FunctionParent",S,H)}function qy(S,H){r("Pureish",S,H)}function $y(S,H){r("Declaration",S,H)}function Uy(S,H){r("FunctionParameter",S,H)}function Vy(S,H){r("PatternLike",S,H)}function Ky(S,H){r("LVal",S,H)}function zy(S,H){r("TSEntityName",S,H)}function Wy(S,H){r("Literal",S,H)}function Hy(S,H){r("Immutable",S,H)}function Yy(S,H){r("UserWhitespacable",S,H)}function Xy(S,H){r("Method",S,H)}function Gy(S,H){r("ObjectMember",S,H)}function Jy(S,H){r("Property",S,H)}function Qy(S,H){r("UnaryLike",S,H)}function Zy(S,H){r("Pattern",S,H)}function vp(S,H){r("Class",S,H)}function eg(S,H){r("ImportOrExportDeclaration",S,H)}function tg(S,H){r("ExportDeclaration",S,H)}function rg(S,H){r("ModuleSpecifier",S,H)}function ng(S,H){r("Accessor",S,H)}function ig(S,H){r("Private",S,H)}function ag(S,H){r("Flow",S,H)}function sg(S,H){r("FlowType",S,H)}function og(S,H){r("FlowBaseAnnotation",S,H)}function lg(S,H){r("FlowDeclaration",S,H)}function ug(S,H){r("FlowPredicate",S,H)}function cg(S,H){r("EnumBody",S,H)}function fg(S,H){r("EnumMember",S,H)}function pg(S,H){r("JSX",S,H)}function dg(S,H){r("Miscellaneous",S,H)}function hg(S,H){r("TypeScript",S,H)}function mg(S,H){r("TSTypeElement",S,H)}function yg(S,H){r("TSType",S,H)}function gg(S,H){r("TSBaseType",S,H)}function vg(S,H){(0,t.default)("assertNumberLiteral","assertNumericLiteral"),r("NumberLiteral",S,H)}function bg(S,H){(0,t.default)("assertRegexLiteral","assertRegExpLiteral"),r("RegexLiteral",S,H)}function xg(S,H){(0,t.default)("assertRestProperty","assertRestElement"),r("RestProperty",S,H)}function Tg(S,H){(0,t.default)("assertSpreadProperty","assertSpreadElement"),r("SpreadProperty",S,H)}function O(S,H){(0,t.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),r("ModuleDeclaration",S,H)}return ve}var cc={},Uw;function H7(){if(Uw)return cc;Uw=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.default=void 0;var e=_n();cc.default=t;function t(r){switch(r){case"string":return(0,e.stringTypeAnnotation)();case"number":return(0,e.numberTypeAnnotation)();case"undefined":return(0,e.voidTypeAnnotation)();case"boolean":return(0,e.booleanTypeAnnotation)();case"function":return(0,e.genericTypeAnnotation)((0,e.identifier)("Function"));case"object":return(0,e.genericTypeAnnotation)((0,e.identifier)("Object"));case"symbol":return(0,e.genericTypeAnnotation)((0,e.identifier)("Symbol"));case"bigint":return(0,e.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+r)}return cc}var Lp={},jp={},Vw;function tR(){if(Vw)return jp;Vw=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.default=r;var e=dr();function t(n){return(0,e.isIdentifier)(n)?n.name:`${n.id.name}.${t(n.qualification)}`}function r(n){const i=Array.from(n),a=new Map,s=new Map,o=new Set,l=[];for(let c=0;c<i.length;c++){const p=i[c];if(p&&!l.includes(p)){if((0,e.isAnyTypeAnnotation)(p))return[p];if((0,e.isFlowBaseAnnotation)(p)){s.set(p.type,p);continue}if((0,e.isUnionTypeAnnotation)(p)){o.has(p.types)||(i.push(...p.types),o.add(p.types));continue}if((0,e.isGenericTypeAnnotation)(p)){const f=t(p.id);if(a.has(f)){let d=a.get(f);d.typeParameters?p.typeParameters&&(d.typeParameters.params.push(...p.typeParameters.params),d.typeParameters.params=r(d.typeParameters.params)):d=p.typeParameters}else a.set(f,p);continue}l.push(p)}}for(const[,c]of s)l.push(c);for(const[,c]of a)l.push(c);return l}return jp}var Kw;function Y7(){if(Kw)return Lp;Kw=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.default=r;var e=_n(),t=tR();function r(n){const i=(0,t.default)(n);return i.length===1?i[0]:(0,e.unionTypeAnnotation)(i)}return Lp}var Rp={},Bp={},zw;function X7(){if(zw)return Bp;zw=1,Object.defineProperty(Bp,"__esModule",{value:!0}),Bp.default=r;var e=dr();function t(n){return(0,e.isIdentifier)(n)?n.name:(0,e.isThisExpression)(n)?"this":`${n.right.name}.${t(n.left)}`}function r(n){const i=Array.from(n),a=new Map,s=new Map,o=new Set,l=[];for(let c=0;c<i.length;c++){const p=i[c];if(!p||l.includes(p))continue;if((0,e.isTSAnyKeyword)(p))return[p];if((0,e.isTSBaseType)(p)){s.set(p.type,p);continue}if((0,e.isTSUnionType)(p)){o.has(p.types)||(i.push(...p.types),o.add(p.types));continue}const f="typeParameters";if((0,e.isTSTypeReference)(p)&&p[f]){const d=p[f],h=t(p.typeName);if(a.has(h)){let v=a.get(h);const x=v[f];x?(x.params.push(...d.params),x.params=r(x.params)):v=d}else a.set(h,p);continue}l.push(p)}for(const[,c]of s)l.push(c);for(const[,c]of a)l.push(c);return l}return Bp}var Ww;function G7(){if(Ww)return Rp;Ww=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.default=n;var e=_n(),t=X7(),r=dr();function n(i){const a=i.map(o=>(0,r.isTSTypeAnnotation)(o)?o.typeAnnotation:o),s=(0,t.default)(a);return s.length===1?s[0]:(0,e.tsUnionType)(s)}return Rp}var Fp={},Hw;function rR(){if(Hw)return Fp;Hw=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.buildUndefinedNode=t;var e=_n();function t(){return(0,e.unaryExpression)("void",(0,e.numericLiteral)(0),!0)}return Fp}var qp={},Yw;function el(){if(Yw)return qp;Yw=1,Object.defineProperty(qp,"__esModule",{value:!0}),qp.default=a;var e=si(),t=dr();const{hasOwn:r}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function n(l,c,p,f){return l&&typeof l.type=="string"?s(l,c,p,f):l}function i(l,c,p,f){return Array.isArray(l)?l.map(d=>n(d,c,p,f)):n(l,c,p,f)}function a(l,c=!0,p=!1){return s(l,c,p,new Map)}function s(l,c=!0,p=!1,f){if(!l)return l;const{type:d}=l,h={type:l.type};if((0,t.isIdentifier)(l))h.name=l.name,r(l,"optional")&&typeof l.optional=="boolean"&&(h.optional=l.optional),r(l,"typeAnnotation")&&(h.typeAnnotation=c?i(l.typeAnnotation,!0,p,f):l.typeAnnotation),r(l,"decorators")&&(h.decorators=c?i(l.decorators,!0,p,f):l.decorators);else if(r(e.NODE_FIELDS,d))for(const v of Object.keys(e.NODE_FIELDS[d]))r(l,v)&&(c?h[v]=(0,t.isFile)(l)&&v==="comments"?o(l.comments,c,p,f):i(l[v],!0,p,f):h[v]=l[v]);else throw new Error(`Unknown node type: "${d}"`);return r(l,"loc")&&(p?h.loc=null:h.loc=l.loc),r(l,"leadingComments")&&(h.leadingComments=o(l.leadingComments,c,p,f)),r(l,"innerComments")&&(h.innerComments=o(l.innerComments,c,p,f)),r(l,"trailingComments")&&(h.trailingComments=o(l.trailingComments,c,p,f)),r(l,"extra")&&(h.extra=Object.assign({},l.extra)),h}function o(l,c,p,f){return!l||!c?l:l.map(d=>{const h=f.get(d);if(h)return h;const{type:v,value:x,loc:y}=d,m={type:v,value:x,loc:y};return p&&(m.loc=null),f.set(d,m),m})}return qp}var $p={},Xw;function J7(){if(Xw)return $p;Xw=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.default=t;var e=el();function t(r){return(0,e.default)(r,!1)}return $p}var Up={},Gw;function Q7(){if(Gw)return Up;Gw=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.default=t;var e=el();function t(r){return(0,e.default)(r)}return Up}var Vp={},Jw;function Z7(){if(Jw)return Vp;Jw=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.default=t;var e=el();function t(r){return(0,e.default)(r,!0,!0)}return Vp}var Kp={},Qw;function e$(){if(Qw)return Kp;Qw=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.default=t;var e=el();function t(r){return(0,e.default)(r,!1,!0)}return Kp}var zp={},Wp={},Zw;function nR(){if(Zw)return Wp;Zw=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.default=e;function e(t,r,n){if(!n||!t)return t;const i=`${r}Comments`;return t[i]?r==="leading"?t[i]=n.concat(t[i]):t[i].push(...n):t[i]=n,t}return Wp}var e_;function t$(){if(e_)return zp;e_=1,Object.defineProperty(zp,"__esModule",{value:!0}),zp.default=t;var e=nR();function t(r,n,i,a){return(0,e.default)(r,n,[{type:a?"CommentLine":"CommentBlock",value:i}])}return zp}var Hp={},Yp={},t_;function _1(){if(t_)return Yp;t_=1,Object.defineProperty(Yp,"__esModule",{value:!0}),Yp.default=e;function e(t,r,n){r&&n&&(r[t]=Array.from(new Set([].concat(r[t],n[t]).filter(Boolean))))}return Yp}var r_;function iR(){if(r_)return Hp;r_=1,Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.default=t;var e=_1();function t(r,n){(0,e.default)("innerComments",r,n)}return Hp}var Xp={},n_;function aR(){if(n_)return Xp;n_=1,Object.defineProperty(Xp,"__esModule",{value:!0}),Xp.default=t;var e=_1();function t(r,n){(0,e.default)("leadingComments",r,n)}return Xp}var Gp={},Jp={},i_;function sR(){if(i_)return Jp;i_=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.default=t;var e=_1();function t(r,n){(0,e.default)("trailingComments",r,n)}return Jp}var a_;function oR(){if(a_)return Gp;a_=1,Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.default=n;var e=sR(),t=aR(),r=iR();function n(i,a){return(0,e.default)(i,a),(0,t.default)(i,a),(0,r.default)(i,a),i}return Gp}var Qp={},s_;function r$(){if(s_)return Qp;s_=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.default=t;var e=ep();function t(r){return e.COMMENT_KEYS.forEach(n=>{r[n]=null}),r}return Qp}var Je={},o_;function n$(){if(o_)return Je;o_=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.WHILE_TYPES=Je.USERWHITESPACABLE_TYPES=Je.UNARYLIKE_TYPES=Je.TYPESCRIPT_TYPES=Je.TSTYPE_TYPES=Je.TSTYPEELEMENT_TYPES=Je.TSENTITYNAME_TYPES=Je.TSBASETYPE_TYPES=Je.TERMINATORLESS_TYPES=Je.STATEMENT_TYPES=Je.STANDARDIZED_TYPES=Je.SCOPABLE_TYPES=Je.PUREISH_TYPES=Je.PROPERTY_TYPES=Je.PRIVATE_TYPES=Je.PATTERN_TYPES=Je.PATTERNLIKE_TYPES=Je.OBJECTMEMBER_TYPES=Je.MODULESPECIFIER_TYPES=Je.MODULEDECLARATION_TYPES=Je.MISCELLANEOUS_TYPES=Je.METHOD_TYPES=Je.LVAL_TYPES=Je.LOOP_TYPES=Je.LITERAL_TYPES=Je.JSX_TYPES=Je.IMPORTOREXPORTDECLARATION_TYPES=Je.IMMUTABLE_TYPES=Je.FUNCTION_TYPES=Je.FUNCTIONPARENT_TYPES=Je.FUNCTIONPARAMETER_TYPES=Je.FOR_TYPES=Je.FORXSTATEMENT_TYPES=Je.FLOW_TYPES=Je.FLOWTYPE_TYPES=Je.FLOWPREDICATE_TYPES=Je.FLOWDECLARATION_TYPES=Je.FLOWBASEANNOTATION_TYPES=Je.EXPRESSION_TYPES=Je.EXPRESSIONWRAPPER_TYPES=Je.EXPORTDECLARATION_TYPES=Je.ENUMMEMBER_TYPES=Je.ENUMBODY_TYPES=Je.DECLARATION_TYPES=Je.CONDITIONAL_TYPES=Je.COMPLETIONSTATEMENT_TYPES=Je.CLASS_TYPES=Je.BLOCK_TYPES=Je.BLOCKPARENT_TYPES=Je.BINARY_TYPES=Je.ACCESSOR_TYPES=void 0;var e=si();Je.STANDARDIZED_TYPES=e.FLIPPED_ALIAS_KEYS.Standardized,Je.EXPRESSION_TYPES=e.FLIPPED_ALIAS_KEYS.Expression,Je.BINARY_TYPES=e.FLIPPED_ALIAS_KEYS.Binary,Je.SCOPABLE_TYPES=e.FLIPPED_ALIAS_KEYS.Scopable,Je.BLOCKPARENT_TYPES=e.FLIPPED_ALIAS_KEYS.BlockParent,Je.BLOCK_TYPES=e.FLIPPED_ALIAS_KEYS.Block,Je.STATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.Statement,Je.TERMINATORLESS_TYPES=e.FLIPPED_ALIAS_KEYS.Terminatorless,Je.COMPLETIONSTATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.CompletionStatement,Je.CONDITIONAL_TYPES=e.FLIPPED_ALIAS_KEYS.Conditional,Je.LOOP_TYPES=e.FLIPPED_ALIAS_KEYS.Loop,Je.WHILE_TYPES=e.FLIPPED_ALIAS_KEYS.While,Je.EXPRESSIONWRAPPER_TYPES=e.FLIPPED_ALIAS_KEYS.ExpressionWrapper,Je.FOR_TYPES=e.FLIPPED_ALIAS_KEYS.For,Je.FORXSTATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.ForXStatement,Je.FUNCTION_TYPES=e.FLIPPED_ALIAS_KEYS.Function,Je.FUNCTIONPARENT_TYPES=e.FLIPPED_ALIAS_KEYS.FunctionParent,Je.PUREISH_TYPES=e.FLIPPED_ALIAS_KEYS.Pureish,Je.DECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.Declaration,Je.FUNCTIONPARAMETER_TYPES=e.FLIPPED_ALIAS_KEYS.FunctionParameter,Je.PATTERNLIKE_TYPES=e.FLIPPED_ALIAS_KEYS.PatternLike,Je.LVAL_TYPES=e.FLIPPED_ALIAS_KEYS.LVal,Je.TSENTITYNAME_TYPES=e.FLIPPED_ALIAS_KEYS.TSEntityName,Je.LITERAL_TYPES=e.FLIPPED_ALIAS_KEYS.Literal,Je.IMMUTABLE_TYPES=e.FLIPPED_ALIAS_KEYS.Immutable,Je.USERWHITESPACABLE_TYPES=e.FLIPPED_ALIAS_KEYS.UserWhitespacable,Je.METHOD_TYPES=e.FLIPPED_ALIAS_KEYS.Method,Je.OBJECTMEMBER_TYPES=e.FLIPPED_ALIAS_KEYS.ObjectMember,Je.PROPERTY_TYPES=e.FLIPPED_ALIAS_KEYS.Property,Je.UNARYLIKE_TYPES=e.FLIPPED_ALIAS_KEYS.UnaryLike,Je.PATTERN_TYPES=e.FLIPPED_ALIAS_KEYS.Pattern,Je.CLASS_TYPES=e.FLIPPED_ALIAS_KEYS.Class;const t=Je.IMPORTOREXPORTDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;return Je.EXPORTDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.ExportDeclaration,Je.MODULESPECIFIER_TYPES=e.FLIPPED_ALIAS_KEYS.ModuleSpecifier,Je.ACCESSOR_TYPES=e.FLIPPED_ALIAS_KEYS.Accessor,Je.PRIVATE_TYPES=e.FLIPPED_ALIAS_KEYS.Private,Je.FLOW_TYPES=e.FLIPPED_ALIAS_KEYS.Flow,Je.FLOWTYPE_TYPES=e.FLIPPED_ALIAS_KEYS.FlowType,Je.FLOWBASEANNOTATION_TYPES=e.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,Je.FLOWDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.FlowDeclaration,Je.FLOWPREDICATE_TYPES=e.FLIPPED_ALIAS_KEYS.FlowPredicate,Je.ENUMBODY_TYPES=e.FLIPPED_ALIAS_KEYS.EnumBody,Je.ENUMMEMBER_TYPES=e.FLIPPED_ALIAS_KEYS.EnumMember,Je.JSX_TYPES=e.FLIPPED_ALIAS_KEYS.JSX,Je.MISCELLANEOUS_TYPES=e.FLIPPED_ALIAS_KEYS.Miscellaneous,Je.TYPESCRIPT_TYPES=e.FLIPPED_ALIAS_KEYS.TypeScript,Je.TSTYPEELEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.TSTypeElement,Je.TSTYPE_TYPES=e.FLIPPED_ALIAS_KEYS.TSType,Je.TSBASETYPE_TYPES=e.FLIPPED_ALIAS_KEYS.TSBaseType,Je.MODULEDECLARATION_TYPES=t,Je}var Zp={},ed={},l_;function lR(){if(l_)return ed;l_=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.default=r;var e=dr(),t=_n();function r(n,i){if((0,e.isBlockStatement)(n))return n;let a=[];return(0,e.isEmptyStatement)(n)?a=[]:((0,e.isStatement)(n)||((0,e.isFunction)(i)?n=(0,t.returnStatement)(n):n=(0,t.expressionStatement)(n)),a=[n]),(0,t.blockStatement)(a)}return ed}var u_;function i$(){if(u_)return Zp;u_=1,Object.defineProperty(Zp,"__esModule",{value:!0}),Zp.default=t;var e=lR();function t(r,n="body"){const i=(0,e.default)(r[n],r);return r[n]=i,i}return Zp}var td={},rd={},c_;function uR(){if(c_)return rd;c_=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.default=r;var e=Zf(),t=Om();function r(n){n=n+"";let i="";for(const a of n)i+=(0,t.isIdentifierChar)(a.codePointAt(0))?a:"-";return i=i.replace(/^[-0-9]+/,""),i=i.replace(/[-\s]+(.)?/g,function(a,s){return s?s.toUpperCase():""}),(0,e.default)(i)||(i=`_${i}`),i||"_"}return rd}var f_;function a$(){if(f_)return td;f_=1,Object.defineProperty(td,"__esModule",{value:!0}),td.default=t;var e=uR();function t(r){return r=(0,e.default)(r),(r==="eval"||r==="arguments")&&(r="_"+r),r}return td}var nd={},p_;function s$(){if(p_)return nd;p_=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.default=r;var e=dr(),t=_n();function r(n,i=n.key||n.property){return!n.computed&&(0,e.isIdentifier)(i)&&(i=(0,t.stringLiteral)(i.name)),i}return nd}var fc={},d_;function o$(){if(d_)return fc;d_=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.default=void 0;var e=dr();fc.default=t;function t(r){if((0,e.isExpressionStatement)(r)&&(r=r.expression),(0,e.isExpression)(r))return r;if((0,e.isClass)(r)?(r.type="ClassExpression",r.abstract=!1):(0,e.isFunction)(r)&&(r.type="FunctionExpression"),!(0,e.isExpression)(r))throw new Error(`cannot turn ${r.type} to an expression`);return r}return fc}var id={},ad={},sd={},h_;function cR(){if(h_)return sd;h_=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.default=n;var e=si();const t=Symbol(),r=Symbol();function n(i,a,s){if(!i)return!1;const o=e.VISITOR_KEYS[i.type];if(!o)return!1;s=s||{};const l=a(i,s);if(l!==void 0)switch(l){case t:return!1;case r:return!0}for(const c of o){const p=i[c];if(p){if(Array.isArray(p)){for(const f of p)if(n(f,a,s))return!0}else if(n(p,a,s))return!0}}return!1}return n.skip=t,n.stop=r,sd}var od={},m_;function fR(){if(m_)return od;m_=1,Object.defineProperty(od,"__esModule",{value:!0}),od.default=n;var e=ep();const t=["tokens","start","end","loc","raw","rawValue"],r=[...e.COMMENT_KEYS,"comments",...t];function n(i,a={}){const s=a.preserveComments?t:r;for(const l of s)i[l]!=null&&(i[l]=void 0);for(const l of Object.keys(i))l.startsWith("_")&&i[l]!=null&&(i[l]=void 0);const o=Object.getOwnPropertySymbols(i);for(const l of o)i[l]=null}return od}var y_;function pR(){if(y_)return ad;y_=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.default=r;var e=cR(),t=fR();function r(n,i){return(0,e.default)(n,t.default,i),n}return ad}var g_;function l$(){if(g_)return id;g_=1,Object.defineProperty(id,"__esModule",{value:!0}),id.default=n;var e=dr(),t=el(),r=pR();function n(i,a=i.key){let s;return i.kind==="method"?n.increment()+"":((0,e.isIdentifier)(a)?s=a.name:(0,e.isStringLiteral)(a)?s=JSON.stringify(a.value):s=JSON.stringify((0,r.default)((0,t.default)(a))),i.computed&&(s=`[${s}]`),i.static&&(s=`static:${s}`),s)}return n.uid=0,n.increment=function(){return n.uid>=Number.MAX_SAFE_INTEGER?n.uid=0:n.uid++},id}var pc={},v_;function u$(){if(v_)return pc;v_=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.default=void 0;var e=dr(),t=_n();pc.default=r;function r(n,i){if((0,e.isStatement)(n))return n;let a=!1,s;if((0,e.isClass)(n))a=!0,s="ClassDeclaration";else if((0,e.isFunction)(n))a=!0,s="FunctionDeclaration";else if((0,e.isAssignmentExpression)(n))return(0,t.expressionStatement)(n);if(a&&!n.id&&(s=!1),!s){if(i)return!1;throw new Error(`cannot turn ${n.type} to a statement`)}return n.type=s,n}return pc}var dc={},b_;function c$(){if(b_)return dc;b_=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.default=void 0;var e=Zf(),t=_n();dc.default=a;const r=Function.call.bind(Object.prototype.toString);function n(s){return r(s)==="[object RegExp]"}function i(s){if(typeof s!="object"||s===null||Object.prototype.toString.call(s)!=="[object Object]")return!1;const o=Object.getPrototypeOf(s);return o===null||Object.getPrototypeOf(o)===null}function a(s){if(s===void 0)return(0,t.identifier)("undefined");if(s===!0||s===!1)return(0,t.booleanLiteral)(s);if(s===null)return(0,t.nullLiteral)();if(typeof s=="string")return(0,t.stringLiteral)(s);if(typeof s=="number"){let o;if(Number.isFinite(s))o=(0,t.numericLiteral)(Math.abs(s));else{let l;Number.isNaN(s)?l=(0,t.numericLiteral)(0):l=(0,t.numericLiteral)(1),o=(0,t.binaryExpression)("/",l,(0,t.numericLiteral)(0))}return(s<0||Object.is(s,-0))&&(o=(0,t.unaryExpression)("-",o)),o}if(typeof s=="bigint")return s<0?(0,t.unaryExpression)("-",(0,t.bigIntLiteral)(-s)):(0,t.bigIntLiteral)(s);if(n(s)){const o=s.source,l=/\/([a-z]*)$/.exec(s.toString())[1];return(0,t.regExpLiteral)(o,l)}if(Array.isArray(s))return(0,t.arrayExpression)(s.map(a));if(i(s)){const o=[];for(const l of Object.keys(s)){let c,p=!1;(0,e.default)(l)?l==="__proto__"?(p=!0,c=(0,t.stringLiteral)(l)):c=(0,t.identifier)(l):c=(0,t.stringLiteral)(l),o.push((0,t.objectProperty)(c,a(s[l]),p))}return(0,t.objectExpression)(o)}throw new Error("don't know how to turn this value into a node")}return dc}var ld={},x_;function f$(){if(x_)return ld;x_=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.default=t;var e=_n();function t(r,n,i=!1){return r.object=(0,e.memberExpression)(r.object,r.property,r.computed),r.property=n,r.computed=!!i,r}return ld}var ud={},T_;function p$(){if(T_)return ud;T_=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.default=r;var e=ep(),t=oR();function r(n,i){if(!n||!i)return n;for(const a of e.INHERIT_KEYS.optional)n[a]==null&&(n[a]=i[a]);for(const a of Object.keys(i))a.startsWith("_")&&a!=="__clone"&&(n[a]=i[a]);for(const a of e.INHERIT_KEYS.force)n[a]=i[a];return(0,t.default)(n,i),n}return ud}var cd={},S_;function d$(){if(S_)return cd;S_=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.default=r;var e=_n(),t=It();function r(n,i){if((0,t.isSuper)(n.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return n.object=(0,e.memberExpression)(i,n.object),n}return cd}var fd={},E_;function h$(){if(E_)return fd;E_=1,Object.defineProperty(fd,"__esModule",{value:!0}),fd.default=e;function e(t){const r=[].concat(t),n=Object.create(null);for(;r.length;){const i=r.pop();if(i)switch(i.type){case"ArrayPattern":r.push(...i.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":r.push(i.left);break;case"ObjectPattern":r.push(...i.properties);break;case"ObjectProperty":r.push(i.value);break;case"RestElement":case"UpdateExpression":r.push(i.argument);break;case"UnaryExpression":i.operator==="delete"&&r.push(i.argument);break;case"Identifier":n[i.name]=i;break}}return n}return fd}var pd={},P_;function Im(){if(P_)return pd;P_=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.default=t;var e=dr();function t(n,i,a,s){const o=[].concat(n),l=Object.create(null);for(;o.length;){const c=o.shift();if(!c||s&&((0,e.isAssignmentExpression)(c)||(0,e.isUnaryExpression)(c)||(0,e.isUpdateExpression)(c)))continue;if((0,e.isIdentifier)(c)){i?(l[c.name]=l[c.name]||[]).push(c):l[c.name]=c;continue}if((0,e.isExportDeclaration)(c)&&!(0,e.isExportAllDeclaration)(c)){(0,e.isDeclaration)(c.declaration)&&o.push(c.declaration);continue}if(a){if((0,e.isFunctionDeclaration)(c)){o.push(c.id);continue}if((0,e.isFunctionExpression)(c))continue}const p=t.keys[c.type];if(p)for(let f=0;f<p.length;f++){const d=p[f],h=c[d];h&&(Array.isArray(h)?o.push(...h):o.push(h))}}return l}const r={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};return t.keys=r,pd}var hc={},A_;function m$(){if(A_)return hc;A_=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.default=void 0;var e=Im();hc.default=t;function t(r,n){return(0,e.default)(r,n,!0)}return hc}var dd={},w_;function y$(){if(w_)return dd;w_=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.default=n;var e=dr();function t(i){return(0,e.isNullLiteral)(i)?"null":(0,e.isRegExpLiteral)(i)?`/${i.pattern}/${i.flags}`:(0,e.isTemplateLiteral)(i)?i.quasis.map(a=>a.value.raw).join(""):i.value!==void 0?String(i.value):null}function r(i){if(!i.computed||(0,e.isLiteral)(i.key))return i.key}function n(i,a){if("id"in i&&i.id)return{name:i.id.name,originalNode:i.id};let s="",o;if((0,e.isObjectProperty)(a,{value:i})?o=r(a):(0,e.isObjectMethod)(i)||(0,e.isClassMethod)(i)?(o=r(i),i.kind==="get"?s="get ":i.kind==="set"&&(s="set ")):(0,e.isVariableDeclarator)(a,{init:i})?o=a.id:(0,e.isAssignmentExpression)(a,{operator:"=",right:i})&&(o=a.left),!o)return null;const l=(0,e.isLiteral)(o)?t(o):(0,e.isIdentifier)(o)?o.name:(0,e.isPrivateName)(o)?o.id.name:null;return l==null?null:{name:s+l,originalNode:o}}return dd}var hd={},__;function g$(){if(__)return hd;__=1,Object.defineProperty(hd,"__esModule",{value:!0}),hd.default=t;var e=si();function t(n,i,a){typeof i=="function"&&(i={enter:i});const{enter:s,exit:o}=i;r(n,s,o,a,[])}function r(n,i,a,s,o){const l=e.VISITOR_KEYS[n.type];if(l){i&&i(n,o,s);for(const c of l){const p=n[c];if(Array.isArray(p))for(let f=0;f<p.length;f++){const d=p[f];d&&(o.push({node:n,key:c,index:f}),r(d,i,a,s,o),o.pop())}else p&&(o.push({node:n,key:c}),r(p,i,a,s,o),o.pop())}a&&a(n,o,s)}}return hd}var md={},O_;function v$(){if(O_)return md;O_=1,Object.defineProperty(md,"__esModule",{value:!0}),md.default=t;var e=Im();function t(r,n,i){if(i&&r.type==="Identifier"&&n.type==="ObjectProperty"&&i.type==="ObjectExpression")return!1;const a=e.default.keys[n.type];if(a)for(let s=0;s<a.length;s++){const o=a[s],l=n[o];if(Array.isArray(l)){if(l.includes(r))return!0}else if(l===r)return!0}return!1}return md}var yd={},gd={},C_;function dR(){if(C_)return gd;C_=1,Object.defineProperty(gd,"__esModule",{value:!0}),gd.default=r;var e=dr(),t=Symbol.for("var used to be block scoped");function r(n){return(0,e.isVariableDeclaration)(n)&&(n.kind!=="var"||n[t])}return gd}var I_;function b$(){if(I_)return yd;I_=1,Object.defineProperty(yd,"__esModule",{value:!0}),yd.default=r;var e=dr(),t=dR();function r(n){return(0,e.isFunctionDeclaration)(n)||(0,e.isClassDeclaration)(n)||(0,t.default)(n)}return yd}var vd={},k_;function x$(){if(k_)return vd;k_=1,Object.defineProperty(vd,"__esModule",{value:!0}),vd.default=r;var e=A1(),t=dr();function r(n){return(0,e.default)(n.type,"Immutable")?!0:(0,t.isIdentifier)(n)?n.name==="undefined":!1}return vd}var bd={},N_;function T$(){if(N_)return bd;N_=1,Object.defineProperty(bd,"__esModule",{value:!0}),bd.default=t;var e=si();function t(r,n){if(typeof r!="object"||typeof n!="object"||r==null||n==null)return r===n;if(r.type!==n.type)return!1;const i=Object.keys(e.NODE_FIELDS[r.type]||r.type),a=e.VISITOR_KEYS[r.type];for(const s of i){const o=r[s],l=n[s];if(typeof o!=typeof l)return!1;if(!(o==null&&l==null)){if(o==null||l==null)return!1;if(Array.isArray(o)){if(!Array.isArray(l)||o.length!==l.length)return!1;for(let c=0;c<o.length;c++)if(!t(o[c],l[c]))return!1;continue}if(typeof o=="object"&&!(a!=null&&a.includes(s))){for(const c of Object.keys(o))if(o[c]!==l[c])return!1;continue}if(!t(o,l))return!1}}return!0}return bd}var xd={},D_;function S$(){if(D_)return xd;D_=1,Object.defineProperty(xd,"__esModule",{value:!0}),xd.default=e;function e(t,r,n){switch(r.type){case"MemberExpression":case"OptionalMemberExpression":return r.property===t?!!r.computed:r.object===t;case"JSXMemberExpression":return r.object===t;case"VariableDeclarator":return r.init===t;case"ArrowFunctionExpression":return r.body===t;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return r.key===t?!!r.computed:!1;case"ObjectProperty":return r.key===t?!!r.computed:(n==null?void 0:n.type)!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return r.key===t?!!r.computed:!0;case"ClassPrivateProperty":return r.key!==t;case"ClassDeclaration":case"ClassExpression":return r.superClass===t;case"AssignmentExpression":return r.right===t;case"AssignmentPattern":return r.right===t;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return n!=null&&n.source?!1:r.local===t;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return r.key!==t;case"TSEnumMember":return r.id!==t;case"TSPropertySignature":return r.key===t?!!r.computed:!0}return!0}return xd}var Td={},M_;function E$(){if(M_)return Td;M_=1,Object.defineProperty(Td,"__esModule",{value:!0}),Td.default=t;var e=dr();function t(r,n){return(0,e.isBlockStatement)(r)&&((0,e.isFunction)(n)||(0,e.isCatchClause)(n))?!1:(0,e.isPattern)(r)&&((0,e.isFunction)(n)||(0,e.isCatchClause)(n))?!0:(0,e.isScopable)(r)}return Td}var Sd={},L_;function P$(){if(L_)return Sd;L_=1,Object.defineProperty(Sd,"__esModule",{value:!0}),Sd.default=t;var e=dr();function t(r){return(0,e.isImportDefaultSpecifier)(r)||(0,e.isIdentifier)(r.imported||r.exported,{name:"default"})}return Sd}var Ed={},j_;function A$(){if(j_)return Ed;j_=1,Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.default=r;var e=Zf();const t=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function r(n){return(0,e.default)(n)&&!t.has(n)}return Ed}var Pd={},R_;function w$(){if(R_)return Pd;R_=1,Object.defineProperty(Pd,"__esModule",{value:!0}),Pd.default=r;var e=dr(),t=Symbol.for("var used to be block scoped");function r(n){return(0,e.isVariableDeclaration)(n,{kind:"var"})&&!n[t]}return Pd}var Ad={},wd={},B_;function _$(){if(B_)return wd;B_=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.default=a;var e=Im(),t=dr(),r=_n(),n=rR(),i=el();function a(s,o){const l=[];let c=!0;for(const p of s)if((0,t.isEmptyStatement)(p)||(c=!1),(0,t.isExpression)(p))l.push(p);else if((0,t.isExpressionStatement)(p))l.push(p.expression);else if((0,t.isVariableDeclaration)(p)){if(p.kind!=="var")return;for(const f of p.declarations){const d=(0,e.default)(f);for(const h of Object.keys(d))o.push({kind:p.kind,id:(0,i.default)(d[h])});f.init&&l.push((0,r.assignmentExpression)("=",f.id,f.init))}c=!0}else if((0,t.isIfStatement)(p)){const f=p.consequent?a([p.consequent],o):(0,n.buildUndefinedNode)(),d=p.alternate?a([p.alternate],o):(0,n.buildUndefinedNode)();if(!f||!d)return;l.push((0,r.conditionalExpression)(p.test,f,d))}else if((0,t.isBlockStatement)(p)){const f=a(p.body,o);if(!f)return;l.push(f)}else if((0,t.isEmptyStatement)(p))s.indexOf(p)===0&&(c=!0);else return;return c&&l.push((0,n.buildUndefinedNode)()),l.length===1?l[0]:(0,r.sequenceExpression)(l)}return wd}var F_;function O$(){if(F_)return Ad;F_=1,Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.default=t;var e=_$();function t(r,n){if(!(r!=null&&r.length))return;const i=[],a=(0,e.default)(r,i);if(a){for(const s of i)n.push(s);return a}}return Ad}var q_;function It(){return q_||(q_=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0});var r={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(e,"__internal__deprecationWarning",{enumerable:!0,get:function(){return lt.default}}),Object.defineProperty(e,"addComment",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"addComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"appendToMemberExpression",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"assertNode",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"buildMatchMemberExpression",{enumerable:!0,get:function(){return Ue.default}}),Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"cloneNode",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"cloneWithoutLoc",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"createFlowUnionType",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"createTSUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"ensureBlock",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(e,"getBindingIdentifiers",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return Se.default}}),Object.defineProperty(e,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(e,"inheritInnerComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"inheritLeadingComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"inheritTrailingComments",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"inherits",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"inheritsComments",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return Re.default}}),Object.defineProperty(e,"isBinding",{enumerable:!0,get:function(){return He.default}}),Object.defineProperty(e,"isBlockScoped",{enumerable:!0,get:function(){return ze.default}}),Object.defineProperty(e,"isImmutable",{enumerable:!0,get:function(){return je.default}}),Object.defineProperty(e,"isLet",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"isNodesEquivalent",{enumerable:!0,get:function(){return Te.default}}),Object.defineProperty(e,"isPlaceholderType",{enumerable:!0,get:function(){return ke.default}}),Object.defineProperty(e,"isReferenced",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(e,"isScope",{enumerable:!0,get:function(){return Me.default}}),Object.defineProperty(e,"isSpecifierDefault",{enumerable:!0,get:function(){return Ke.default}}),Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return _e.default}}),Object.defineProperty(e,"isValidES3Identifier",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(e,"isValidIdentifier",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"isVar",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(e,"matchesPattern",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(e,"prependToMemberExpression",{enumerable:!0,get:function(){return R.default}}),e.react=void 0,Object.defineProperty(e,"removeComments",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"removeProperties",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"removePropertiesDeep",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(e,"removeTypeDuplicates",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"shallowEqual",{enumerable:!0,get:function(){return Be.default}}),Object.defineProperty(e,"toBindingIdentifierName",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"toBlock",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"toComputedKey",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"toExpression",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"toIdentifier",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"toKeyAlias",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"toStatement",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(e,"traverse",{enumerable:!0,get:function(){return Ce.default}}),Object.defineProperty(e,"traverseFast",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return De.default}}),Object.defineProperty(e,"valueToNode",{enumerable:!0,get:function(){return U.default}});var n=k7(),i=N7(),a=K7(),s=z7(),o=W7();Object.keys(o).forEach(function(Ge){Ge==="default"||Ge==="__esModule"||Object.prototype.hasOwnProperty.call(r,Ge)||Ge in e&&e[Ge]===o[Ge]||Object.defineProperty(e,Ge,{enumerable:!0,get:function(){return o[Ge]}})});var l=H7(),c=Y7(),p=G7(),f=rR();Object.keys(f).forEach(function(Ge){Ge==="default"||Ge==="__esModule"||Object.prototype.hasOwnProperty.call(r,Ge)||Ge in e&&e[Ge]===f[Ge]||Object.defineProperty(e,Ge,{enumerable:!0,get:function(){return f[Ge]}})});var d=_n();Object.keys(d).forEach(function(Ge){Ge==="default"||Ge==="__esModule"||Object.prototype.hasOwnProperty.call(r,Ge)||Ge in e&&e[Ge]===d[Ge]||Object.defineProperty(e,Ge,{enumerable:!0,get:function(){return d[Ge]}})});var h=el(),v=J7(),x=Q7(),y=Z7(),m=e$(),T=t$(),A=nR(),E=iR(),P=aR(),_=oR(),I=sR(),k=r$(),M=n$();Object.keys(M).forEach(function(Ge){Ge==="default"||Ge==="__esModule"||Object.prototype.hasOwnProperty.call(r,Ge)||Ge in e&&e[Ge]===M[Ge]||Object.defineProperty(e,Ge,{enumerable:!0,get:function(){return M[Ge]}})});var D=ep();Object.keys(D).forEach(function(Ge){Ge==="default"||Ge==="__esModule"||Object.prototype.hasOwnProperty.call(r,Ge)||Ge in e&&e[Ge]===D[Ge]||Object.defineProperty(e,Ge,{enumerable:!0,get:function(){return D[Ge]}})});var C=i$(),L=a$(),q=lR(),$=s$(),z=o$(),Q=uR(),V=l$(),X=u$(),U=c$(),N=si();Object.keys(N).forEach(function(Ge){Ge==="default"||Ge==="__esModule"||Object.prototype.hasOwnProperty.call(r,Ge)||Ge in e&&e[Ge]===N[Ge]||Object.defineProperty(e,Ge,{enumerable:!0,get:function(){return N[Ge]}})});var j=f$(),F=p$(),R=d$(),J=fR(),se=pR(),ie=tR(),ae=h$(),fe=Im(),de=m$(),Se=y$(),Ce=g$();Object.keys(Ce).forEach(function(Ge){Ge==="default"||Ge==="__esModule"||Object.prototype.hasOwnProperty.call(r,Ge)||Ge in e&&e[Ge]===Ce[Ge]||Object.defineProperty(e,Ge,{enumerable:!0,get:function(){return Ce[Ge]}})});var xe=cR(),Be=P1(),Re=Qf(),He=v$(),ze=b$(),je=x$(),re=dR(),ue=eR(),Te=T$(),ke=Jj(),Oe=S$(),Me=E$(),Ke=P$(),_e=A1(),pe=A$(),ne=Zf(),me=w$(),Ie=Xj(),De=w1(),Ue=Gj(),We=dr();Object.keys(We).forEach(function(Ge){Ge==="default"||Ge==="__esModule"||Object.prototype.hasOwnProperty.call(r,Ge)||Ge in e&&e[Ge]===We[Ge]||Object.defineProperty(e,Ge,{enumerable:!0,get:function(){return We[Ge]}})});var lt=Jf(),gt=O$();e.react={isReactComponent:n.default,isCompatTag:i.default,buildChildren:a.default},e.toSequenceExpression=gt.default,t.BABEL_TYPES_8_BREAKING})(jg)),jg}var ps={},cr={},$_;function hR(){if($_)return cr;$_=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.isBindingIdentifier=M,cr.isBlockScoped=$,cr.isExpression=C,cr.isFlow=U,cr.isForAwaitStatement=F,cr.isGenerated=V,cr.isPure=X,cr.isReferenced=q,cr.isReferencedIdentifier=I,cr.isReferencedMemberExpression=k,cr.isRestProperty=N,cr.isScope=L,cr.isSpreadProperty=j,cr.isStatement=D,cr.isUser=Q,cr.isVar=z;var e=It();const{isBinding:t,isBlockScoped:r,isExportDeclaration:n,isExpression:i,isFlow:a,isForStatement:s,isForXStatement:o,isIdentifier:l,isImportDeclaration:c,isImportSpecifier:p,isJSXIdentifier:f,isJSXMemberExpression:d,isMemberExpression:h,isRestElement:v,isReferenced:x,isScope:y,isStatement:m,isVar:T,isVariableDeclaration:A,react:E,isForOfStatement:P}=e,{isCompatTag:_}=E;function I(R){const{node:J,parent:se}=this;return l(J,R)?x(J,se,this.parentPath.parent):f(J,R)?!d(se)&&_(J.name)?!1:x(J,se,this.parentPath.parent):!1}function k(){const{node:R,parent:J}=this;return h(R)&&x(R,J)}function M(){const{node:R,parent:J}=this,se=this.parentPath.parent;return l(R)&&t(R,J,se)}function D(){const{node:R,parent:J}=this;return m(R)?!(A(R)&&(o(J,{left:R})||s(J,{init:R}))):!1}function C(){return this.isIdentifier()?this.isReferencedIdentifier():i(this.node)}function L(){return y(this.node,this.parent)}function q(){return x(this.node,this.parent)}function $(){return r(this.node)}function z(){return T(this.node)}function Q(){var R;return!!((R=this.node)!=null&&R.loc)}function V(){return!this.isUser()}function X(R){return this.scope.isPure(this.node,R)}function U(){const{node:R}=this;return a(R)?!0:c(R)?R.importKind==="type"||R.importKind==="typeof":n(R)?R.exportKind==="type":p(R)?R.importKind==="type"||R.importKind==="typeof":!1}function N(){var R;return v(this.node)&&((R=this.parentPath)==null?void 0:R.isObjectPattern())}function j(){var R;return v(this.node)&&((R=this.parentPath)==null?void 0:R.isObjectExpression())}function F(){return P(this.node,{await:!0})}return cr.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},cr.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")},cr}var U_;function km(){if(U_)return ps;U_=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.environmentVisitor=_,ps.explode=f,ps.isExplodedVisitor=p,ps.merge=v,ps.verify=d;var e=Yj(),t=hR(),r=It(),n=oi();const{DEPRECATED_KEYS:i,DEPRECATED_ALIASES:a,FLIPPED_ALIAS_KEYS:s,TYPES:o,__internal__deprecationWarning:l}=r;function c(I){return I in e}function p(I){return I==null?void 0:I._exploded}function f(I){if(p(I))return I;I._exploded=!0;for(const M of Object.keys(I)){if(A(M))continue;const D=M.split("|");if(D.length===1)continue;const C=I[M];delete I[M];for(const L of D)I[L]=C}d(I),delete I.__esModule,y(I),m(I);for(const M of Object.keys(I)){if(A(M)||!c(M))continue;const D=I[M];for(const L of Object.keys(D))D[L]=T(M,D[L]);delete I[M];const C=e[M];if(C!==null)for(const L of C){var k;(k=I[L])!=null||(I[L]={}),E(I[L],D)}else E(I,D)}for(const M of Object.keys(I)){if(A(M))continue;let D=s[M];if(M in i){const L=i[M];l(M,L,"Visitor "),D=[L]}else if(M in a){const L=a[M];l(M,L,"Visitor "),D=s[L]}if(!D)continue;const C=I[M];delete I[M];for(const L of D){const q=I[L];q?E(q,C):I[L]=Object.assign({},C)}}for(const M of Object.keys(I))A(M)||m(I[M]);return I}function d(I){if(!I._verified){if(typeof I=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const k of Object.keys(I)){if((k==="enter"||k==="exit")&&h(k,I[k]),A(k))continue;if(!o.includes(k))throw new Error(`You gave us a visitor for the node type ${k} but it's not a valid type in @babel/traverse 7.29.0`);const M=I[k];if(typeof M=="object")for(const D of Object.keys(M))if(D==="enter"||D==="exit")h(`${k}.${D}`,M[D]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${k} that has the invalid property ${D}`)}I._verified=!0}}function h(I,k){const M=[].concat(k);for(const D of M)if(typeof D!="function")throw new TypeError(`Non-function found defined in ${I} with type ${typeof D}`)}function v(I,k=[],M){const D={_verified:!0,_exploded:!0};Object.defineProperty(D,"_exploded",{enumerable:!1}),Object.defineProperty(D,"_verified",{enumerable:!1});for(let C=0;C<I.length;C++){const L=f(I[C]),q=k[C];let $=L;(q||M)&&($=x($,q,M)),E(D,$);for(const z of Object.keys(L)){if(A(z))continue;let Q=L[z];(q||M)&&(Q=x(Q,q,M));const V=D[z]||(D[z]={});E(V,Q)}}return D}function x(I,k,M){const D={};for(const C of["enter","exit"]){let L=I[C];Array.isArray(L)&&(L=L.map(function(q){let $=q;return k&&($=function(z){q.call(k,z,k)}),M&&($=M(k==null?void 0:k.key,C,$)),$!==q&&($.toString=()=>q.toString()),$}),D[C]=L)}return D}function y(I){for(const k of Object.keys(I)){if(A(k))continue;const M=I[k];typeof M=="function"&&(I[k]={enter:M})}}function m(I){I.enter&&!Array.isArray(I.enter)&&(I.enter=[I.enter]),I.exit&&!Array.isArray(I.exit)&&(I.exit=[I.exit])}function T(I,k){const M=`is${I}`,D=t[M],C=function(L){if(D.call(L))return k.apply(this,arguments)};return C.toString=()=>k.toString(),C}function A(I){return!!(I.startsWith("_")||I==="enter"||I==="exit"||I==="shouldSkip"||I==="denylist"||I==="noScope"||I==="skipKeys"||I==="blacklist")}function E(I,k){for(const M of["enter","exit"])k[M]&&(I[M]=[].concat(I[M]||[],k[M]))}const P={FunctionParent(I){I.isArrowFunctionExpression()||(I.skip(),I.isMethod()&&(I.requeueComputedKeyAndDecorators?I.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(I)))},Property(I){I.isObjectProperty()||(I.skip(),I.requeueComputedKeyAndDecorators?I.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(I))}};function _(I){return v([P,I])}return ps}var V_;function C$(){if(V_)return oc;V_=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.default=void 0;var e=It(),t=e,r=M1(),n=km(),i=oi();const{getAssignmentIdentifiers:a}=t,s={ReferencedIdentifier({node:l},c){l.name===c.oldName&&(l.name=c.newName)},Scope(l,c){l.scope.bindingIdentifierEquals(c.oldName,c.binding.identifier)||(l.skip(),l.isMethod()&&(l.requeueComputedKeyAndDecorators?l.requeueComputedKeyAndDecorators():i.requeueComputedKeyAndDecorators.call(l)),l.isSwitchStatement()&&l.context.maybeQueue(l.get("discriminant")))},ObjectProperty({node:l,scope:c},p){const{name:f}=l.key;if(l.shorthand&&(f===p.oldName||f===p.newName)&&c.getBindingIdentifier(f)===p.binding.identifier){var d;l.shorthand=!1,(d=l.extra)!=null&&d.shorthand&&(l.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(l,c){if(l.isVariableDeclaration())return;const p=l.isAssignmentExpression()?a(l.node):l.getOuterBindingIdentifiers();for(const f in p)f===c.oldName&&(p[f].name=c.newName)}};class o{constructor(c,p,f){this.newName=f,this.oldName=p,this.binding=c}maybeConvertFromExportDeclaration(c){const p=c.parentPath;if(p.isExportDeclaration()){if(p.isExportDefaultDeclaration()){const{declaration:f}=p.node;if(e.isDeclaration(f)&&!f.id)return}p.isExportAllDeclaration()||p.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(c){return c}maybeConvertFromClassFunctionExpression(c){return c}rename(){const{binding:c,oldName:p,newName:f}=this,{scope:d,path:h}=c,v=h.find(m=>m.isDeclaration()||m.isFunctionExpression()||m.isClassExpression());v&&v.getOuterBindingIdentifiers()[p]===c.identifier&&this.maybeConvertFromExportDeclaration(v);const x=arguments[0]||d.block,y={discriminant:!0};e.isMethod(x)&&(x.computed&&(y.key=!0),e.isObjectMethod(x)||(y.decorators=!0)),(0,r.traverseNode)(x,(0,n.explode)(s),d,this,d.path,y),arguments[0]||(d.removeOwnBinding(p),d.bindings[f]=c,this.binding.identifier.name=f),v&&(this.maybeConvertFromClassFunctionDeclaration(h),this.maybeConvertFromClassFunctionExpression(h))}}return oc.default=o,oc}var _d={},K_;function I$(){if(K_)return _d;K_=1,Object.defineProperty(_d,"__esModule",{value:!0}),_d.default=a;var e=It(),t=tp(),r=km(),n=oi();const{VISITOR_KEYS:i}=e;function a(s,o,l){const c=(0,r.explode)(o);if(c.enter||c.exit)throw new Error("Should not be used with enter/exit visitors.");p(s.parentPath,s.parent,s.node,s.container,s.key,s.listKey,s.hub,s);function p(f,d,h,v,x,y,m,T){if(!h)return;const A=T||t.NodePath.get({hub:m,parentPath:f,parent:d,container:v,listKey:y,key:x});n._forceSetScope.call(A);const E=c[h.type];if(E!=null&&E.enter)for(const _ of E.enter)_.call(l,A,l);if(A.shouldSkip)return;const P=i[h.type];if(P!=null&&P.length){for(const _ of P){const I=h[_];if(I)if(Array.isArray(I))for(let k=0;k<I.length;k++){const M=I[k];p(A,h,M,I,k,_)}else p(A,h,I,h,_,null)}if(E!=null&&E.exit)for(const _ of E.exit)_.call(l,A,l)}}}return _d}var mc={},z_;function k$(){if(z_)return mc;z_=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.default=void 0;class e{constructor({identifier:n,scope:i,path:a,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=n,this.scope=i,this.path=a,this.kind=s,(s==="var"||s==="hoisted")&&t(a)&&this.reassign(a),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(n){this.hasDeoptedValue||(this.hasValue=!0,this.value=n)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(n){this.constant=!1,!this.constantViolations.includes(n)&&this.constantViolations.push(n)}reference(n){this.referencePaths.includes(n)||(this.referenced=!0,this.references++,this.referencePaths.push(n))}dereference(){this.references--,this.referenced=!!this.references}}mc.default=e;function t(r){const n=!r.isVariableDeclarator()||r.node.init;for(let{parentPath:i,key:a}=r;i;{parentPath:i,key:a}=i){if(i.isFunctionParent())return!1;if(a==="left"&&i.isForXStatement()||n&&a==="body"&&i.isLoop())return!0}return!1}return mc}var en={},W_;function bu(){if(W_)return en;W_=1,Object.defineProperty(en,"__esModule",{value:!0}),en.clear=t,en.clearPath=r,en.clearScope=n,en.getCachedPaths=i,en.getOrCreateCachedPaths=a,en.scope=en.path=void 0;let e=en.path=new WeakMap;en.scope=new WeakMap;function t(){r(),n()}function r(){en.path=e=new WeakMap}function n(){en.scope=new WeakMap}function i(s){const{parent:o,parentPath:l}=s;return e.get(o)}function a(s,o){let l=e.get(s);return l||e.set(s,l=new Map),l}return en}const N$=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"],D$=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"];var H_;function mR(){if(H_)return sc;H_=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.default=void 0;var e=C$(),t=tp();I$();var r=k$(),n=It(),i=n,a=bu();const s=N$,o=D$,{assignmentExpression:l,callExpression:c,cloneNode:p,getBindingIdentifiers:f,identifier:d,isArrayExpression:h,isBinary:v,isCallExpression:x,isClass:y,isClassBody:m,isClassDeclaration:T,isExportAllDeclaration:A,isExportDefaultDeclaration:E,isExportNamedDeclaration:P,isFunctionDeclaration:_,isIdentifier:I,isImportDeclaration:k,isLiteral:M,isMemberExpression:D,isMethod:C,isModuleSpecifier:L,isNullLiteral:q,isObjectExpression:$,isProperty:z,isPureish:Q,isRegExpLiteral:V,isSuper:X,isTaggedTemplateExpression:U,isTemplateLiteral:N,isThisExpression:j,isUnaryExpression:F,isVariableDeclaration:R,expressionStatement:J,matchesPattern:se,memberExpression:ie,numericLiteral:ae,toIdentifier:fe,variableDeclaration:de,variableDeclarator:Se,isObjectProperty:Ce,isTopicReference:xe,isMetaProperty:Be,isPrivateName:Re,isExportDeclaration:He,buildUndefinedNode:ze,sequenceExpression:je}=n;function re(pe,ne){switch(pe==null?void 0:pe.type){default:if(k(pe)||He(pe)){var me;if((A(pe)||P(pe)||k(pe))&&pe.source)re(pe.source,ne);else if((P(pe)||k(pe))&&(me=pe.specifiers)!=null&&me.length)for(const Ie of pe.specifiers)re(Ie,ne);else(E(pe)||P(pe))&&pe.declaration&&re(pe.declaration,ne)}else L(pe)?re(pe.local,ne):M(pe)&&!q(pe)&&!V(pe)&&!N(pe)&&ne.push(pe.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":re(pe.object,ne),re(pe.property,ne);break;case"Identifier":case"JSXIdentifier":ne.push(pe.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":re(pe.callee,ne);break;case"ObjectExpression":case"ObjectPattern":for(const Ie of pe.properties)re(Ie,ne);break;case"SpreadElement":case"RestElement":re(pe.argument,ne);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":re(pe.key,ne);break;case"ThisExpression":ne.push("this");break;case"Super":ne.push("super");break;case"Import":case"ImportExpression":ne.push("import");break;case"DoExpression":ne.push("do");break;case"YieldExpression":ne.push("yield"),re(pe.argument,ne);break;case"AwaitExpression":ne.push("await"),re(pe.argument,ne);break;case"AssignmentExpression":re(pe.left,ne);break;case"VariableDeclarator":re(pe.id,ne);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":re(pe.id,ne);break;case"PrivateName":re(pe.id,ne);break;case"ParenthesizedExpression":re(pe.expression,ne);break;case"UnaryExpression":case"UpdateExpression":re(pe.argument,ne);break;case"MetaProperty":re(pe.meta,ne),re(pe.property,ne);break;case"JSXElement":re(pe.openingElement,ne);break;case"JSXOpeningElement":re(pe.name,ne);break;case"JSXFragment":re(pe.openingFragment,ne);break;case"JSXOpeningFragment":ne.push("Fragment");break;case"JSXNamespacedName":re(pe.namespace,ne),re(pe.name,ne);break}}function ue(pe){pe.references=Object.create(null),pe.uids=Object.create(null),pe.bindings=Object.create(null),pe.globals=Object.create(null)}function Te(pe){return pe.isFunctionExpression()&&!pe.node.id||pe.isArrowFunctionExpression()}var ke=Symbol.for("should not be considered a local binding");const Oe={ForStatement(pe){const ne=pe.get("init");if(ne.isVar()){const{scope:me}=pe;(me.getFunctionParent()||me.getProgramParent()).registerBinding("var",ne)}},Declaration(pe){if(pe.isBlockScoped()||pe.isImportDeclaration()||pe.isExportDeclaration())return;(pe.scope.getFunctionParent()||pe.scope.getProgramParent()).registerDeclaration(pe)},ImportDeclaration(pe){pe.scope.getBlockParent().registerDeclaration(pe)},TSImportEqualsDeclaration(pe){pe.scope.getBlockParent().registerDeclaration(pe)},ReferencedIdentifier(pe,ne){i.isTSQualifiedName(pe.parent)&&pe.parent.right===pe.node||pe.parentPath.isTSImportEqualsDeclaration()||ne.references.push(pe)},ForXStatement(pe,ne){const me=pe.get("left");if(me.isPattern()||me.isIdentifier())ne.constantViolations.push(pe);else if(me.isVar()){const{scope:Ie}=pe;(Ie.getFunctionParent()||Ie.getProgramParent()).registerBinding("var",me)}},ExportDeclaration:{exit(pe){const{node:ne,scope:me}=pe;if(A(ne))return;const Ie=ne.declaration;if(T(Ie)||_(Ie)){const De=Ie.id;if(!De)return;const Ue=me.getBinding(De.name);Ue==null||Ue.reference(pe)}else if(R(Ie))for(const De of Ie.declarations)for(const Ue of Object.keys(f(De))){const We=me.getBinding(Ue);We==null||We.reference(pe)}}},LabeledStatement(pe){pe.scope.getBlockParent().registerDeclaration(pe)},AssignmentExpression(pe,ne){ne.assignments.push(pe)},UpdateExpression(pe,ne){ne.constantViolations.push(pe)},UnaryExpression(pe,ne){pe.node.operator==="delete"&&ne.constantViolations.push(pe)},BlockScoped(pe){let ne=pe.scope;if(ne.path===pe&&(ne=ne.parent),ne.getBlockParent().registerDeclaration(pe),pe.isClassDeclaration()&&pe.node.id){const De=pe.node.id.name;pe.scope.bindings[De]=pe.scope.parent.getBinding(De)}},CatchClause(pe){pe.scope.registerBinding("let",pe)},Function(pe){const ne=pe.get("params");for(const me of ne)pe.scope.registerBinding("param",me);pe.isFunctionExpression()&&pe.node.id&&!pe.node.id[ke]&&pe.scope.registerBinding("local",pe.get("id"),pe)},ClassExpression(pe){pe.node.id&&!pe.node.id[ke]&&pe.scope.registerBinding("local",pe.get("id"),pe)},TSTypeAnnotation(pe){pe.skip()}};let Me,Ke=0;class _e{constructor(ne){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;const{node:me}=ne,Ie=a.scope.get(me);if((Ie==null?void 0:Ie.path)===ne)return Ie;a.scope.set(me,this),this.uid=Ke++,this.block=me,this.path=ne,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var ne;let me,Ie=this.path;do{var De;const Ue=Ie.key==="key"||Ie.listKey==="decorators";Ie=Ie.parentPath,Ue&&Ie.isMethod()&&(Ie=Ie.parentPath),(De=Ie)!=null&&De.isScope()&&(me=Ie)}while(Ie&&!me);return(ne=me)==null?void 0:ne.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(ne){const me=this.generateUidIdentifier(ne);return this.push({id:me}),p(me)}generateUidIdentifier(ne){return d(this.generateUid(ne))}generateUid(ne="temp"){ne=fe(ne).replace(/^_+/,"").replace(/\d+$/g,"");let me,Ie=0;do me=`_${ne}`,Ie>=11?me+=Ie-1:Ie>=9?me+=Ie-9:Ie>=1&&(me+=Ie+1),Ie++;while(this.hasLabel(me)||this.hasBinding(me)||this.hasGlobal(me)||this.hasReference(me));const De=this.getProgramParent();return De.references[me]=!0,De.uids[me]=!0,me}generateUidBasedOnNode(ne,me){const Ie=[];re(ne,Ie);let De=Ie.join("$");return De=De.replace(/^_/,"")||me||"ref",this.generateUid(De.slice(0,20))}generateUidIdentifierBasedOnNode(ne,me){return d(this.generateUidBasedOnNode(ne,me))}isStatic(ne){if(j(ne)||X(ne)||xe(ne))return!0;if(I(ne)){const me=this.getBinding(ne.name);return me?me.constant:this.hasBinding(ne.name)}return!1}maybeGenerateMemoised(ne,me){if(this.isStatic(ne))return null;{const Ie=this.generateUidIdentifierBasedOnNode(ne);return me?Ie:(this.push({id:Ie}),p(Ie))}}checkBlockScopedCollisions(ne,me,Ie,De){if(me==="param"||ne.kind==="local")return;if(me==="let"||ne.kind==="let"||ne.kind==="const"||ne.kind==="module"||ne.kind==="param"&&me==="const")throw this.path.hub.buildError(De,`Duplicate declaration "${Ie}"`,TypeError)}rename(ne,me){const Ie=this.getBinding(ne);Ie&&(me||(me=this.generateUidIdentifier(ne).name),new e.default(Ie,ne,me).rename(arguments[2]))}dump(){const ne="-".repeat(60);let me=this;do for(const Ie of Object.keys(me.bindings)){const De=me.bindings[Ie]}while(me=me.parent)}hasLabel(ne){return!!this.getLabel(ne)}getLabel(ne){return this.labels.get(ne)}registerLabel(ne){this.labels.set(ne.node.label.name,ne)}registerDeclaration(ne){if(ne.isLabeledStatement())this.registerLabel(ne);else if(ne.isFunctionDeclaration())this.registerBinding("hoisted",ne.get("id"),ne);else if(ne.isVariableDeclaration()){const me=ne.get("declarations"),{kind:Ie}=ne.node;for(const De of me)this.registerBinding(Ie==="using"||Ie==="await using"?"const":Ie,De)}else if(ne.isClassDeclaration()){if(ne.node.declare)return;this.registerBinding("let",ne)}else if(ne.isImportDeclaration()){const me=ne.node.importKind==="type"||ne.node.importKind==="typeof",Ie=ne.get("specifiers");for(const De of Ie){const Ue=me||De.isImportSpecifier()&&(De.node.importKind==="type"||De.node.importKind==="typeof");this.registerBinding(Ue?"unknown":"module",De)}}else if(ne.isExportDeclaration()){const me=ne.get("declaration");(me.isClassDeclaration()||me.isFunctionDeclaration()||me.isVariableDeclaration())&&this.registerDeclaration(me)}else this.registerBinding("unknown",ne)}buildUndefinedNode(){return ze()}registerConstantViolation(ne){const me=ne.getAssignmentIdentifiers();for(const De of Object.keys(me)){var Ie;(Ie=this.getBinding(De))==null||Ie.reassign(ne)}}registerBinding(ne,me,Ie=me){if(!ne)throw new ReferenceError("no `kind`");if(me.isVariableDeclaration()){const We=me.get("declarations");for(const lt of We)this.registerBinding(ne,lt);return}const De=this.getProgramParent(),Ue=me.getOuterBindingIdentifiers(!0);for(const We of Object.keys(Ue)){De.references[We]=!0;for(const lt of Ue[We]){const gt=this.getOwnBinding(We);if(gt){if(gt.identifier===lt)continue;this.checkBlockScopedCollisions(gt,ne,We,lt)}gt?gt.reassign(Ie):this.bindings[We]=new r.default({identifier:lt,scope:this,path:Ie,kind:ne})}}}addGlobal(ne){this.globals[ne.name]=ne}hasUid(ne){let me=this;do if(me.uids[ne])return!0;while(me=me.parent);return!1}hasGlobal(ne){let me=this;do if(me.globals[ne])return!0;while(me=me.parent);return!1}hasReference(ne){return!!this.getProgramParent().references[ne]}isPure(ne,me){if(I(ne)){const We=this.getBinding(ne.name);return We?me?We.constant:!0:!1}else{if(j(ne)||Be(ne)||xe(ne)||Re(ne))return!0;if(y(ne)){var Ie;return ne.superClass&&!this.isPure(ne.superClass,me)||((Ie=ne.decorators)==null?void 0:Ie.length)>0?!1:this.isPure(ne.body,me)}else if(m(ne)){for(const We of ne.body)if(!this.isPure(We,me))return!1;return!0}else{if(v(ne))return this.isPure(ne.left,me)&&this.isPure(ne.right,me);if(h(ne)||(ne==null?void 0:ne.type)==="TupleExpression"){for(const We of ne.elements)if(We!==null&&!this.isPure(We,me))return!1;return!0}else if($(ne)||(ne==null?void 0:ne.type)==="RecordExpression"){for(const We of ne.properties)if(!this.isPure(We,me))return!1;return!0}else if(C(ne)){var De;return!(ne.computed&&!this.isPure(ne.key,me)||((De=ne.decorators)==null?void 0:De.length)>0)}else if(z(ne)){var Ue;return!(ne.computed&&!this.isPure(ne.key,me)||((Ue=ne.decorators)==null?void 0:Ue.length)>0||(Ce(ne)||ne.static)&&ne.value!==null&&!this.isPure(ne.value,me))}else{if(F(ne))return this.isPure(ne.argument,me);if(N(ne)){for(const We of ne.expressions)if(!this.isPure(We,me))return!1;return!0}else return U(ne)?se(ne.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(ne.quasi,me):D(ne)?!ne.computed&&I(ne.object)&&ne.object.name==="Symbol"&&I(ne.property)&&ne.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):x(ne)?se(ne.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&ne.arguments.length===1&&i.isStringLiteral(ne.arguments[0]):Q(ne)}}}}setData(ne,me){return this.data[ne]=me}getData(ne){let me=this;do{const Ie=me.data[ne];if(Ie!=null)return Ie}while(me=me.parent)}removeData(ne){let me=this;do me.data[ne]!=null&&(me.data[ne]=null);while(me=me.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const ne=this.path;ue(this),this.data=Object.create(null);let me=this;do{if(me.crawling)return;if(me.path.isProgram())break}while(me=me.parent);const Ie=me,De={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,Me||(Me=t.default.visitors.merge([{Scope(Ue){ue(Ue.scope)}},Oe])),ne.type!=="Program"){const Ue=Me[ne.type];if(Ue)for(const We of Ue.enter)We.call(De,ne,De)}ne.traverse(Me,De),this.crawling=!1;for(const Ue of De.assignments){const We=Ue.getAssignmentIdentifiers();for(const lt of Object.keys(We))Ue.scope.getBinding(lt)||Ie.addGlobal(We[lt]);Ue.scope.registerConstantViolation(Ue)}for(const Ue of De.references){const We=Ue.scope.getBinding(Ue.node.name);We?We.reference(Ue):Ie.addGlobal(Ue.node)}for(const Ue of De.constantViolations)Ue.scope.registerConstantViolation(Ue)}push(ne){let me=this.path;me.isPattern()?me=this.getPatternParent().path:!me.isBlockStatement()&&!me.isProgram()&&(me=this.getBlockParent().path),me.isSwitchStatement()&&(me=(this.getFunctionParent()||this.getProgramParent()).path);const{init:Ie,unique:De,kind:Ue="var",id:We}=ne;if(!Ie&&!De&&(Ue==="var"||Ue==="let")&&Te(me)&&x(me.parent,{callee:me.node})&&me.parent.arguments.length<=me.node.params.length&&I(We)){me.pushContainer("params",We),me.scope.registerBinding("param",me.get("params")[me.node.params.length-1]);return}(me.isLoop()||me.isCatchClause()||me.isFunction())&&(me.ensureBlock(),me=me.get("body"));const lt=ne._blockHoist==null?2:ne._blockHoist,gt=`declaration:${Ue}:${lt}`;let Ge=!De&&me.getData(gt);if(!Ge){const qe=de(Ue,[]);qe._blockHoist=lt,[Ge]=me.unshiftContainer("body",[qe]),De||me.setData(gt,Ge)}const vt=Se(We,Ie),Le=Ge.node.declarations.push(vt);me.scope.registerBinding(Ue,Ge.get("declarations")[Le-1])}getProgramParent(){let ne=this;do if(ne.path.isProgram())return ne;while(ne=ne.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let ne=this;do if(ne.path.isFunctionParent())return ne;while(ne=ne.parent);return null}getBlockParent(){let ne=this;do if(ne.path.isBlockParent())return ne;while(ne=ne.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let ne=this;do if(!ne.path.isPattern())return ne.getBlockParent();while(ne=ne.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const ne=Object.create(null);let me=this;do{for(const Ie of Object.keys(me.bindings))Ie in ne||(ne[Ie]=me.bindings[Ie]);me=me.parent}while(me);return ne}bindingIdentifierEquals(ne,me){return this.getBindingIdentifier(ne)===me}getBinding(ne){let me=this,Ie;do{const Ue=me.getOwnBinding(ne);if(Ue){var De;if(!((De=Ie)!=null&&De.isPattern()&&Ue.kind!=="param"&&Ue.kind!=="local"))return Ue}else if(!Ue&&ne==="arguments"&&me.path.isFunction()&&!me.path.isArrowFunctionExpression())break;Ie=me.path}while(me=me.parent)}getOwnBinding(ne){return this.bindings[ne]}getBindingIdentifier(ne){var me;return(me=this.getBinding(ne))==null?void 0:me.identifier}getOwnBindingIdentifier(ne){const me=this.bindings[ne];return me==null?void 0:me.identifier}hasOwnBinding(ne){return!!this.getOwnBinding(ne)}hasBinding(ne,me){if(!ne)return!1;let Ie,De,Ue;typeof me=="object"?(Ie=me.noGlobals,De=me.noUids,Ue=me.upToScope):typeof me=="boolean"&&(Ie=me);let We=this;do{if(Ue===We)break;if(We.hasOwnBinding(ne))return!0}while(We=We.parent);return!!(!De&&this.hasUid(ne)||!Ie&&_e.globals.includes(ne)||!Ie&&_e.contextVariables.includes(ne))}parentHasBinding(ne,me){var Ie;return(Ie=this.parent)==null?void 0:Ie.hasBinding(ne,me)}moveBindingTo(ne,me){const Ie=this.getBinding(ne);Ie&&(Ie.scope.removeOwnBinding(ne),Ie.scope=me,me.bindings[ne]=Ie)}removeOwnBinding(ne){delete this.bindings[ne]}removeBinding(ne){var me;(me=this.getBinding(ne))==null||me.scope.removeOwnBinding(ne);let Ie=this;do Ie.uids[ne]&&(Ie.uids[ne]=!1);while(Ie=Ie.parent)}hoistVariables(ne=me=>this.push({id:me})){this.crawl();const me=new Set;for(const Ie of Object.keys(this.bindings)){const De=this.bindings[Ie];if(!De)continue;const{path:Ue}=De;if(!Ue.isVariableDeclarator())continue;const{parent:We,parentPath:lt}=Ue;if(We.kind!=="var"||me.has(We))continue;me.add(Ue.parent);let gt;const Ge=[];for(const vt of We.declarations){gt??(gt=vt.id),vt.init&&Ge.push(l("=",vt.id,vt.init));const Le=Object.keys(f(vt,!1,!0,!0));for(const qe of Le)ne(d(qe),vt.init!=null)}if(lt.parentPath.isForXStatement({left:We}))lt.replaceWith(gt);else if(Ge.length===0)lt.remove();else{const vt=Ge.length===1?Ge[0]:je(Ge);lt.parentPath.isForStatement({init:We})?lt.replaceWith(vt):lt.replaceWith(J(vt))}}}}return sc.default=_e,_e.globals=[...s,...o],_e.contextVariables=["arguments","undefined","Infinity","NaN"],_e.prototype._renameFromMap=function(ne,me,Ie,De){ne[me]&&(ne[Ie]=De,ne[me]=null)},_e.prototype.traverse=function(pe,ne,me){(0,t.default)(pe,ne,this,me,this.path)},_e.prototype._generateUid=function(ne,me){let Ie=ne;return me>1&&(Ie+=me),`_${Ie}`},_e.prototype.toArray=function(ne,me,Ie){if(I(ne)){const We=this.getBinding(ne.name);if(We!=null&&We.constant&&We.path.isGenericType("Array"))return ne}if(h(ne))return ne;if(I(ne,{name:"arguments"}))return c(ie(ie(ie(d("Array"),d("prototype")),d("slice")),d("call")),[ne]);let De;const Ue=[ne];return me===!0?De="toConsumableArray":typeof me=="number"?(Ue.push(ae(me)),De="slicedToArray"):De="toArray",Ie&&(Ue.unshift(this.path.hub.addHelper(De)),De="maybeArrayLike"),c(this.path.hub.addHelper(De),Ue)},_e.prototype.getAllBindingsOfKind=function(...ne){const me=Object.create(null);for(const Ie of ne){let De=this;do{for(const Ue of Object.keys(De.bindings)){const We=De.bindings[Ue];We.kind===Ie&&(me[Ue]=We)}De=De.parent}while(De)}return me},Object.defineProperties(_e.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}}),sc}var _o={},yc={},nh={exports:{}},ih={exports:{}},M$=ih.exports,Y_;function yR(){return Y_||(Y_=1,(function(e,t){(function(r,n){n(e),e.exports=i(e);function i(a){return"default"in a.exports?a.exports.default:a.exports}})(M$,(function(r){var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(U,N)=>{for(var j in N)n(U,j,{get:N[j],enumerable:!0})},l=(U,N,j,F)=>{if(N&&typeof N=="object"||typeof N=="function")for(let R of a(N))!s.call(U,R)&&R!==j&&n(U,R,{get:()=>N[R],enumerable:!(F=i(N,R))||F.enumerable});return U},c=U=>l(n({},"__esModule",{value:!0}),U),p={};o(p,{decode:()=>z,decodeGeneratedRanges:()=>C,decodeOriginalScopes:()=>k,encode:()=>X,encodeGeneratedRanges:()=>L,encodeOriginalScopes:()=>M}),r.exports=c(p);var f=44,d=59,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=new Uint8Array(64),x=new Uint8Array(128);for(let U=0;U<h.length;U++){const N=h.charCodeAt(U);v[U]=N,x[N]=U}function y(U,N){let j=0,F=0,R=0;do{const se=U.next();R=x[se],j|=(R&31)<<F,F+=5}while(R&32);const J=j&1;return j>>>=1,J&&(j=-2147483648|-j),N+j}function m(U,N,j){let F=N-j;F=F<0?-F<<1|1:F<<1;do{let R=F&31;F>>>=5,F>0&&(R|=32),U.write(v[R])}while(F>0);return N}function T(U,N){return U.pos>=N?!1:U.peek()!==f}var A=1024*16,E=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(U){return Buffer.from(U.buffer,U.byteOffset,U.byteLength).toString()}}:{decode(U){let N="";for(let j=0;j<U.length;j++)N+=String.fromCharCode(U[j]);return N}},P=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(A)}write(U){const{buffer:N}=this;N[this.pos++]=U,this.pos===A&&(this.out+=E.decode(N),this.pos=0)}flush(){const{buffer:U,out:N,pos:j}=this;return j>0?N+E.decode(U.subarray(0,j)):N}},_=class{constructor(U){this.pos=0,this.buffer=U}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(U){const{buffer:N,pos:j}=this,F=N.indexOf(U,j);return F===-1?N.length:F}},I=[];function k(U){const{length:N}=U,j=new _(U),F=[],R=[];let J=0;for(;j.pos<N;j.pos++){J=y(j,J);const se=y(j,0);if(!T(j,N)){const Ce=R.pop();Ce[2]=J,Ce[3]=se;continue}const ie=y(j,0),de=y(j,0)&1?[J,se,0,0,ie,y(j,0)]:[J,se,0,0,ie];let Se=I;if(T(j,N)){Se=[];do{const Ce=y(j,0);Se.push(Ce)}while(T(j,N))}de.vars=Se,F.push(de),R.push(de)}return F}function M(U){const N=new P;for(let j=0;j<U.length;)j=D(U,j,N,[0]);return N.flush()}function D(U,N,j,F){const R=U[N],{0:J,1:se,2:ie,3:ae,4:fe,vars:de}=R;N>0&&j.write(f),F[0]=m(j,J,F[0]),m(j,se,0),m(j,fe,0);const Se=R.length===6?1:0;m(j,Se,0),R.length===6&&m(j,R[5],0);for(const Ce of de)m(j,Ce,0);for(N++;N<U.length;){const Ce=U[N],{0:xe,1:Be}=Ce;if(xe>ie||xe===ie&&Be>=ae)break;N=D(U,N,j,F)}return j.write(f),F[0]=m(j,ie,F[0]),m(j,ae,0),N}function C(U){const{length:N}=U,j=new _(U),F=[],R=[];let J=0,se=0,ie=0,ae=0,fe=0,de=0,Se=0,Ce=0;do{const xe=j.indexOf(";");let Be=0;for(;j.pos<xe;j.pos++){if(Be=y(j,Be),!T(j,xe)){const ke=R.pop();ke[2]=J,ke[3]=Be;continue}const Re=y(j,0),He=Re&1,ze=Re&2,je=Re&4;let re=null,ue=I,Te;if(He){const ke=y(j,se);ie=y(j,se===ke?ie:0),se=ke,Te=[J,Be,0,0,ke,ie]}else Te=[J,Be,0,0];if(Te.isScope=!!je,ze){const ke=ae,Oe=fe;ae=y(j,ae);const Me=ke===ae;fe=y(j,Me?fe:0),de=y(j,Me&&Oe===fe?de:0),re=[ae,fe,de]}if(Te.callsite=re,T(j,xe)){ue=[];do{Se=J,Ce=Be;const ke=y(j,0);let Oe;if(ke<-1){Oe=[[y(j,0)]];for(let Me=-1;Me>ke;Me--){const Ke=Se;Se=y(j,Se),Ce=y(j,Se===Ke?Ce:0);const _e=y(j,0);Oe.push([_e,Se,Ce])}}else Oe=[[ke]];ue.push(Oe)}while(T(j,xe))}Te.bindings=ue,F.push(Te),R.push(Te)}J++,j.pos=xe+1}while(j.pos<N);return F}function L(U){if(U.length===0)return"";const N=new P;for(let j=0;j<U.length;)j=q(U,j,N,[0,0,0,0,0,0,0]);return N.flush()}function q(U,N,j,F){const R=U[N],{0:J,1:se,2:ie,3:ae,isScope:fe,callsite:de,bindings:Se}=R;F[0]<J?($(j,F[0],J),F[0]=J,F[1]=0):N>0&&j.write(f),F[1]=m(j,R[1],F[1]);const Ce=(R.length===6?1:0)|(de?2:0)|(fe?4:0);if(m(j,Ce,0),R.length===6){const{4:xe,5:Be}=R;xe!==F[2]&&(F[3]=0),F[2]=m(j,xe,F[2]),F[3]=m(j,Be,F[3])}if(de){const{0:xe,1:Be,2:Re}=R.callsite;xe!==F[4]?(F[5]=0,F[6]=0):Be!==F[5]&&(F[6]=0),F[4]=m(j,xe,F[4]),F[5]=m(j,Be,F[5]),F[6]=m(j,Re,F[6])}if(Se)for(const xe of Se){xe.length>1&&m(j,-xe.length,0);const Be=xe[0][0];m(j,Be,0);let Re=J,He=se;for(let ze=1;ze<xe.length;ze++){const je=xe[ze];Re=m(j,je[1],Re),He=m(j,je[2],He),m(j,je[0],0)}}for(N++;N<U.length;){const xe=U[N],{0:Be,1:Re}=xe;if(Be>ie||Be===ie&&Re>=ae)break;N=q(U,N,j,F)}return F[0]<ie?($(j,F[0],ie),F[0]=ie,F[1]=0):j.write(f),F[1]=m(j,ae,F[1]),N}function $(U,N,j){do U.write(d);while(++N<j)}function z(U){const{length:N}=U,j=new _(U),F=[];let R=0,J=0,se=0,ie=0,ae=0;do{const fe=j.indexOf(";"),de=[];let Se=!0,Ce=0;for(R=0;j.pos<fe;){let xe;R=y(j,R),R<Ce&&(Se=!1),Ce=R,T(j,fe)?(J=y(j,J),se=y(j,se),ie=y(j,ie),T(j,fe)?(ae=y(j,ae),xe=[R,J,se,ie,ae]):xe=[R,J,se,ie]):xe=[R],de.push(xe),j.pos++}Se||Q(de),F.push(de),j.pos=fe+1}while(j.pos<=N);return F}function Q(U){U.sort(V)}function V(U,N){return U[0]-N[0]}function X(U){const N=new P;let j=0,F=0,R=0,J=0;for(let se=0;se<U.length;se++){const ie=U[se];if(se>0&&N.write(d),ie.length===0)continue;let ae=0;for(let fe=0;fe<ie.length;fe++){const de=ie[fe];fe>0&&N.write(f),ae=m(N,de[0],ae),de.length!==1&&(j=m(N,de[1],j),F=m(N,de[2],F),R=m(N,de[3],R),de.length!==4&&(J=m(N,de[4],J)))}}return N.flush()}}))})(ih)),ih.exports}var ah={exports:{}},L$=ah.exports,X_;function gR(){return X_||(X_=1,(function(e,t){(function(r,n){n(e,_7(),yR()),e.exports=i(e);function i(a){return"default"in a.exports?a.exports.default:a.exports}})(L$,(function(r,n,i){var a=Object.create,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,f=(Le,qe)=>function(){return qe||(0,Le[l(Le)[0]])((qe={exports:{}}).exports,qe),qe.exports},d=(Le,qe)=>{for(var he in qe)s(Le,he,{get:qe[he],enumerable:!0})},h=(Le,qe,he,$e)=>{if(qe&&typeof qe=="object"||typeof qe=="function")for(let Ze of l(qe))!p.call(Le,Ze)&&Ze!==he&&s(Le,Ze,{get:()=>qe[Ze],enumerable:!($e=o(qe,Ze))||$e.enumerable});return Le},v=(Le,qe,he)=>(he=Le!=null?a(c(Le)):{},h(!Le||!Le.__esModule?s(he,"default",{value:Le,enumerable:!0}):he,Le)),x=Le=>h(s({},"__esModule",{value:!0}),Le),y=f({"umd:@jridgewell/sourcemap-codec"(Le,qe){qe.exports=i}}),m=f({"umd:@jridgewell/resolve-uri"(Le,qe){qe.exports=n}}),T={};d(T,{AnyMap:()=>ae,FlattenMap:()=>ae,GREATEST_LOWER_BOUND:()=>He,LEAST_UPPER_BOUND:()=>Re,TraceMap:()=>ze,allGeneratedPositionsFor:()=>Me,decodedMap:()=>Ie,decodedMappings:()=>ue,eachMapping:()=>Ke,encodedMap:()=>De,encodedMappings:()=>re,generatedPositionFor:()=>Oe,isIgnored:()=>ne,originalPositionFor:()=>ke,presortedDecodedMap:()=>me,sourceContentFor:()=>pe,traceSegment:()=>Te}),r.exports=x(T);var A=v(y()),E=v(m());function P(Le){if(!Le)return"";const qe=Le.lastIndexOf("/");return Le.slice(0,qe+1)}function _(Le,qe){const he=P(Le),$e=qe?qe+"/":"";return Ze=>(0,E.default)($e+(Ze||""),he)}var I=0,k=1,M=2,D=3,C=4,L=1,q=2;function $(Le,qe){const he=z(Le,0);if(he===Le.length)return Le;qe||(Le=Le.slice());for(let $e=he;$e<Le.length;$e=z(Le,$e+1))Le[$e]=V(Le[$e],qe);return Le}function z(Le,qe){for(let he=qe;he<Le.length;he++)if(!Q(Le[he]))return he;return Le.length}function Q(Le){for(let qe=1;qe<Le.length;qe++)if(Le[qe][I]<Le[qe-1][I])return!1;return!0}function V(Le,qe){return qe||(Le=Le.slice()),Le.sort(X)}function X(Le,qe){return Le[I]-qe[I]}function U(Le,qe){const he=qe.map(()=>[]);for(let $e=0;$e<Le.length;$e++){const Ze=Le[$e];for(let Ee=0;Ee<Ze.length;Ee++){const Xe=Ze[Ee];if(Xe.length===1)continue;const it=Xe[k],st=Xe[M],mt=Xe[D],Tt=he[it];(Tt[st]||(Tt[st]=[])).push([mt,$e,Xe[I]])}}for(let $e=0;$e<he.length;$e++){const Ze=he[$e];for(let Ee=0;Ee<Ze.length;Ee++){const Xe=Ze[Ee];Xe&&Xe.sort(X)}}return he}var N=!1;function j(Le,qe,he,$e){for(;he<=$e;){const Ze=he+($e-he>>1),Ee=Le[Ze][I]-qe;if(Ee===0)return N=!0,Ze;Ee<0?he=Ze+1:$e=Ze-1}return N=!1,he-1}function F(Le,qe,he){for(let $e=he+1;$e<Le.length&&Le[$e][I]===qe;he=$e++);return he}function R(Le,qe,he){for(let $e=he-1;$e>=0&&Le[$e][I]===qe;he=$e--);return he}function J(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function se(Le,qe,he,$e){const{lastKey:Ze,lastNeedle:Ee,lastIndex:Xe}=he;let it=0,st=Le.length-1;if($e===Ze){if(qe===Ee)return N=Xe!==-1&&Le[Xe][I]===qe,Xe;qe>=Ee?it=Xe===-1?0:Xe:st=Xe}return he.lastKey=$e,he.lastNeedle=qe,he.lastIndex=j(Le,qe,it,st)}function ie(Le){return typeof Le=="string"?JSON.parse(Le):Le}var ae=function(Le,qe){const he=ie(Le);if(!("sections"in he))return new ze(he,qe);const $e=[],Ze=[],Ee=[],Xe=[],it=[];fe(he,qe,$e,Ze,Ee,Xe,it,0,0,1/0,1/0);const st={version:3,file:he.file,names:Xe,sources:Ze,sourcesContent:Ee,mappings:$e,ignoreList:it};return me(st)};function fe(Le,qe,he,$e,Ze,Ee,Xe,it,st,mt,Tt){const{sections:Ut}=Le;for(let lr=0;lr<Ut.length;lr++){const{map:hr,offset:mr}=Ut[lr];let yr=mt,Mr=Tt;if(lr+1<Ut.length){const Gr=Ut[lr+1].offset;yr=Math.min(mt,it+Gr.line),yr===mt?Mr=Math.min(Tt,st+Gr.column):yr<mt&&(Mr=st+Gr.column)}de(hr,qe,he,$e,Ze,Ee,Xe,it+mr.line,st+mr.column,yr,Mr)}}function de(Le,qe,he,$e,Ze,Ee,Xe,it,st,mt,Tt){const Ut=ie(Le);if("sections"in Ut)return fe(...arguments);const lr=new ze(Ut,qe),hr=$e.length,mr=Ee.length,yr=ue(lr),{resolvedSources:Mr,sourcesContent:Gr,ignoreList:zn}=lr;if(Se($e,Mr),Se(Ee,lr.names),Gr)Se(Ze,Gr);else for(let ot=0;ot<Mr.length;ot++)Ze.push(null);if(zn)for(let ot=0;ot<zn.length;ot++)Xe.push(zn[ot]+hr);for(let ot=0;ot<yr.length;ot++){const Wn=it+ot;if(Wn>mt)return;const Hn=Ce(he,Wn),Li=ot===0?st:0,ci=yr[ot];for(let Yn=0;Yn<ci.length;Yn++){const $r=ci[Yn],Cn=Li+$r[I];if(Wn===mt&&Cn>=Tt)return;if($r.length===1){Hn.push([Cn]);continue}const fi=hr+$r[k],fn=$r[M],Ur=$r[D];Hn.push($r.length===4?[Cn,fi,fn,Ur]:[Cn,fi,fn,Ur,mr+$r[C]])}}}function Se(Le,qe){for(let he=0;he<qe.length;he++)Le.push(qe[he])}function Ce(Le,qe){for(let he=Le.length;he<=qe;he++)Le[he]=[];return Le[qe]}var xe="`line` must be greater than 0 (lines start at line 1)",Be="`column` must be greater than or equal to 0 (columns start at column 0)",Re=-1,He=1,ze=class{constructor(Le,qe){const he=typeof Le=="string";if(!he&&Le._decodedMemo)return Le;const $e=ie(Le),{version:Ze,file:Ee,names:Xe,sourceRoot:it,sources:st,sourcesContent:mt}=$e;this.version=Ze,this.file=Ee,this.names=Xe||[],this.sourceRoot=it,this.sources=st,this.sourcesContent=mt,this.ignoreList=$e.ignoreList||$e.x_google_ignoreList||void 0;const Tt=_(qe,it);this.resolvedSources=st.map(Tt);const{mappings:Ut}=$e;if(typeof Ut=="string")this._encoded=Ut,this._decoded=void 0;else if(Array.isArray(Ut))this._encoded=void 0,this._decoded=$(Ut,he);else throw $e.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify($e)}`);this._decodedMemo=J(),this._bySources=void 0,this._bySourceMemos=void 0}};function je(Le){return Le}function re(Le){var qe,he;return(he=(qe=Le)._encoded)!=null?he:qe._encoded=(0,A.encode)(Le._decoded)}function ue(Le){var qe;return(qe=Le)._decoded||(qe._decoded=(0,A.decode)(Le._encoded))}function Te(Le,qe,he){const $e=ue(Le);if(qe>=$e.length)return null;const Ze=$e[qe],Ee=gt(Ze,Le._decodedMemo,qe,he,He);return Ee===-1?null:Ze[Ee]}function ke(Le,qe){let{line:he,column:$e,bias:Ze}=qe;if(he--,he<0)throw new Error(xe);if($e<0)throw new Error(Be);const Ee=ue(Le);if(he>=Ee.length)return We(null,null,null,null);const Xe=Ee[he],it=gt(Xe,Le._decodedMemo,he,$e,Ze||He);if(it===-1)return We(null,null,null,null);const st=Xe[it];if(st.length===1)return We(null,null,null,null);const{names:mt,resolvedSources:Tt}=Le;return We(Tt[st[k]],st[M]+1,st[D],st.length===5?mt[st[C]]:null)}function Oe(Le,qe){const{source:he,line:$e,column:Ze,bias:Ee}=qe;return vt(Le,he,$e,Ze,Ee||He,!1)}function Me(Le,qe){const{source:he,line:$e,column:Ze,bias:Ee}=qe;return vt(Le,he,$e,Ze,Ee||Re,!0)}function Ke(Le,qe){const he=ue(Le),{names:$e,resolvedSources:Ze}=Le;for(let Ee=0;Ee<he.length;Ee++){const Xe=he[Ee];for(let it=0;it<Xe.length;it++){const st=Xe[it],mt=Ee+1,Tt=st[0];let Ut=null,lr=null,hr=null,mr=null;st.length!==1&&(Ut=Ze[st[1]],lr=st[2]+1,hr=st[3]),st.length===5&&(mr=$e[st[4]]),qe({generatedLine:mt,generatedColumn:Tt,source:Ut,originalLine:lr,originalColumn:hr,name:mr})}}}function _e(Le,qe){const{sources:he,resolvedSources:$e}=Le;let Ze=he.indexOf(qe);return Ze===-1&&(Ze=$e.indexOf(qe)),Ze}function pe(Le,qe){const{sourcesContent:he}=Le;if(he==null)return null;const $e=_e(Le,qe);return $e===-1?null:he[$e]}function ne(Le,qe){const{ignoreList:he}=Le;if(he==null)return!1;const $e=_e(Le,qe);return $e===-1?!1:he.includes($e)}function me(Le,qe){const he=new ze(Ue(Le,[]),qe);return he._decoded=Le.mappings,he}function Ie(Le){return Ue(Le,ue(Le))}function De(Le){return Ue(Le,re(Le))}function Ue(Le,qe){return{version:Le.version,file:Le.file,names:Le.names,sourceRoot:Le.sourceRoot,sources:Le.sources,sourcesContent:Le.sourcesContent,mappings:qe,ignoreList:Le.ignoreList||Le.x_google_ignoreList}}function We(Le,qe,he,$e){return{source:Le,line:qe,column:he,name:$e}}function lt(Le,qe){return{line:Le,column:qe}}function gt(Le,qe,he,$e,Ze){let Ee=se(Le,$e,qe,he);return N?Ee=(Ze===Re?F:R)(Le,$e,Ee):Ze===Re&&Ee++,Ee===-1||Ee===Le.length?-1:Ee}function Ge(Le,qe,he,$e,Ze){let Ee=gt(Le,qe,he,$e,He);if(!N&&Ze===Re&&Ee++,Ee===-1||Ee===Le.length)return[];const Xe=N?$e:Le[Ee][I];N||(Ee=R(Le,Xe,Ee));const it=F(Le,Xe,Ee),st=[];for(;Ee<=it;Ee++){const mt=Le[Ee];st.push(lt(mt[L]+1,mt[q]))}return st}function vt(Le,qe,he,$e,Ze,Ee){var Xe,it;if(he--,he<0)throw new Error(xe);if($e<0)throw new Error(Be);const{sources:st,resolvedSources:mt}=Le;let Tt=st.indexOf(qe);if(Tt===-1&&(Tt=mt.indexOf(qe)),Tt===-1)return Ee?[]:lt(null,null);const Ut=(Xe=Le)._bySourceMemos||(Xe._bySourceMemos=st.map(J)),hr=((it=Le)._bySources||(it._bySources=U(ue(Le),Ut)))[Tt][he];if(hr==null)return Ee?[]:lt(null,null);const mr=Ut[Tt];if(Ee)return Ge(hr,mr,he,$e,Ze);const yr=gt(hr,mr,he,$e,Ze);if(yr===-1)return lt(null,null);const Mr=hr[yr];return lt(Mr[L]+1,Mr[q])}}))})(ah)),ah.exports}var j$=nh.exports,G_;function R$(){return G_||(G_=1,(function(e,t){(function(r,n){n(e,yR(),gR()),e.exports=i(e);function i(a){return"default"in a.exports?a.exports.default:a.exports}})(j$,(function(r,n,i){var a=Object.create,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,f=(je,re)=>function(){return re||(0,je[l(je)[0]])((re={exports:{}}).exports,re),re.exports},d=(je,re)=>{for(var ue in re)s(je,ue,{get:re[ue],enumerable:!0})},h=(je,re,ue,Te)=>{if(re&&typeof re=="object"||typeof re=="function")for(let ke of l(re))!p.call(je,ke)&&ke!==ue&&s(je,ke,{get:()=>re[ke],enumerable:!(Te=o(re,ke))||Te.enumerable});return je},v=(je,re,ue)=>(ue=je!=null?a(c(je)):{},h(!je||!je.__esModule?s(ue,"default",{value:je,enumerable:!0}):ue,je)),x=je=>h(s({},"__esModule",{value:!0}),je),y=f({"umd:@jridgewell/sourcemap-codec"(je,re){re.exports=n}}),m=f({"umd:@jridgewell/trace-mapping"(je,re){re.exports=i}}),T={};d(T,{GenMapping:()=>Q,addMapping:()=>U,addSegment:()=>X,allMappings:()=>ae,fromMap:()=>ie,maybeAddMapping:()=>j,maybeAddSegment:()=>N,setIgnore:()=>R,setSourceContent:()=>F,toDecodedMap:()=>J,toEncodedMap:()=>se}),r.exports=x(T);var A=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function E(je){return je}function P(je,re){return je._indexes[re]}function _(je,re){const ue=P(je,re);if(ue!==void 0)return ue;const{array:Te,_indexes:ke}=je,Oe=Te.push(re);return ke[re]=Oe-1}function I(je,re){const ue=P(je,re);if(ue===void 0)return;const{array:Te,_indexes:ke}=je;for(let Oe=ue+1;Oe<Te.length;Oe++){const Me=Te[Oe];Te[Oe-1]=Me,ke[Me]--}ke[re]=void 0,Te.pop()}var k=v(y()),M=v(m()),D=0,C=1,L=2,q=3,$=4,z=-1,Q=class{constructor({file:je,sourceRoot:re}={}){this._names=new A,this._sources=new A,this._sourcesContent=[],this._mappings=[],this.file=je,this.sourceRoot=re,this._ignoreList=new A}};function V(je){return je}function X(je,re,ue,Te,ke,Oe,Me,Ke){return fe(!1,je,re,ue,Te,ke,Oe,Me,Ke)}function U(je,re){return ze(!1,je,re)}var N=(je,re,ue,Te,ke,Oe,Me,Ke)=>fe(!0,je,re,ue,Te,ke,Oe,Me,Ke),j=(je,re)=>ze(!0,je,re);function F(je,re,ue){const{_sources:Te,_sourcesContent:ke}=je,Oe=_(Te,re);ke[Oe]=ue}function R(je,re,ue=!0){const{_sources:Te,_sourcesContent:ke,_ignoreList:Oe}=je,Me=_(Te,re);Me===ke.length&&(ke[Me]=null),ue?_(Oe,Me):I(Oe,Me)}function J(je){const{_mappings:re,_sources:ue,_sourcesContent:Te,_names:ke,_ignoreList:Oe}=je;return xe(re),{version:3,file:je.file||void 0,names:ke.array,sourceRoot:je.sourceRoot||void 0,sources:ue.array,sourcesContent:Te,mappings:re,ignoreList:Oe.array}}function se(je){const re=J(je);return Object.assign({},re,{mappings:(0,k.encode)(re.mappings)})}function ie(je){const re=new M.TraceMap(je),ue=new Q({file:re.file,sourceRoot:re.sourceRoot});return Be(ue._names,re.names),Be(ue._sources,re.sources),ue._sourcesContent=re.sourcesContent||re.sources.map(()=>null),ue._mappings=(0,M.decodedMappings)(re),re.ignoreList&&Be(ue._ignoreList,re.ignoreList),ue}function ae(je){const re=[],{_mappings:ue,_sources:Te,_names:ke}=je;for(let Oe=0;Oe<ue.length;Oe++){const Me=ue[Oe];for(let Ke=0;Ke<Me.length;Ke++){const _e=Me[Ke],pe={line:Oe+1,column:_e[D]};let ne,me,Ie;_e.length!==1&&(ne=Te.array[_e[C]],me={line:_e[L]+1,column:_e[q]},_e.length===5&&(Ie=ke.array[_e[$]])),re.push({generated:pe,source:ne,original:me,name:Ie})}}return re}function fe(je,re,ue,Te,ke,Oe,Me,Ke,_e){const{_mappings:pe,_sources:ne,_sourcesContent:me,_names:Ie}=re,De=de(pe,ue),Ue=Se(De,Te);if(!ke)return je&&Re(De,Ue)?void 0:Ce(De,Ue,[Te]);const We=_(ne,ke),lt=Ke?_(Ie,Ke):z;if(We===me.length&&(me[We]=_e??null),!(je&&He(De,Ue,We,Oe,Me,lt)))return Ce(De,Ue,Ke?[Te,We,Oe,Me,lt]:[Te,We,Oe,Me])}function de(je,re){for(let ue=je.length;ue<=re;ue++)je[ue]=[];return je[re]}function Se(je,re){let ue=je.length;for(let Te=ue-1;Te>=0;ue=Te--){const ke=je[Te];if(re>=ke[D])break}return ue}function Ce(je,re,ue){for(let Te=je.length;Te>re;Te--)je[Te]=je[Te-1];je[re]=ue}function xe(je){const{length:re}=je;let ue=re;for(let Te=ue-1;Te>=0&&!(je[Te].length>0);ue=Te,Te--);ue<re&&(je.length=ue)}function Be(je,re){for(let ue=0;ue<re.length;ue++)_(je,re[ue])}function Re(je,re){return re===0?!0:je[re-1].length===1}function He(je,re,ue,Te,ke,Oe){if(re===0)return!1;const Me=je[re-1];return Me.length===1?!1:ue===Me[C]&&Te===Me[L]&&ke===Me[q]&&Oe===(Me.length===5?Me[$]:z)}function ze(je,re,ue){const{generated:Te,source:ke,original:Oe,name:Me,content:Ke}=ue;return ke?fe(je,re,Te.line-1,Te.column,ke,Oe.line-1,Oe.column,Me,Ke):fe(je,re,Te.line-1,Te.column,null,null,null,null,null)}}))})(nh)),nh.exports}var J_;function B$(){if(J_)return yc;J_=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.default=void 0;var e=R$(),t=gR();class r{constructor(i,a){var s;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;const o=this._map=new e.GenMapping({sourceRoot:i.sourceRoot});if(this._sourceFileName=(s=i.sourceFileName)==null?void 0:s.replace(/\\/g,"/"),this._rawMappings=void 0,i.inputSourceMap){this._inputMap=new t.TraceMap(i.inputSourceMap);const c=this._inputMap.resolvedSources;if(c.length)for(let p=0;p<c.length;p++){var l;(0,e.setSourceContent)(o,c[p],(l=this._inputMap.sourcesContent)==null?void 0:l[p])}}if(typeof a=="string"&&!i.inputSourceMap)(0,e.setSourceContent)(o,this._sourceFileName,a);else if(typeof a=="object")for(const c of Object.keys(a))(0,e.setSourceContent)(o,c.replace(/\\/g,"/"),a[c])}get(){return(0,e.toEncodedMap)(this._map)}getDecoded(){return(0,e.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,e.allMappings)(this._map))}mark(i,a,s,o,l,c){var p;this._rawMappings=void 0;let f;if(a!=null)if(this._inputMap){if(f=(0,t.originalPositionFor)(this._inputMap,{line:a,column:s}),!f.name&&l){const d=(0,t.originalPositionFor)(this._inputMap,l);d.name&&(o=d.name)}}else f={name:null,source:(c==null?void 0:c.replace(/\\/g,"/"))||this._sourceFileName,line:a,column:s};(0,e.maybeAddMapping)(this._map,{name:o,generated:i,source:(p=f)==null?void 0:p.source,original:f})}}return yc.default=r,yc}var gc={},vc={},Q_;function F$(){if(Q_)return vc;Q_=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.default=void 0;const e=[];for(let r=0;r<32;r++)e.push(" ".repeat(r*2));class t{constructor(n,i){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=n,this._indentChar=i}get(){const{_map:n,_last:i}=this;this._queuedChar!==32&&this._flush();const a=i===10?(this._buf+this._str).trimRight():this._buf+this._str;if(n===null)return{code:a,decodedMap:void 0,map:null,rawMappings:void 0};const s={code:a,decodedMap:n.getDecoded(),get __mergedMap(){return this.map},get map(){const o=n.get();return s.map=o,o},set map(o){Object.defineProperty(s,"map",{value:o,writable:!0})},get rawMappings(){const o=n.getRawMappings();return s.rawMappings=o,o},set rawMappings(o){Object.defineProperty(s,"rawMappings",{value:o,writable:!0})}};return s}append(n,i){this._flush(),this._append(n,i)}appendChar(n){this._flush(),this._appendChar(n,1,!0)}queue(n){this._flush(),this._queuedChar=n}_flush(){const n=this._queuedChar;n!==0&&(this._appendChar(n,1,!0),this._queuedChar=0)}_appendChar(n,i,a){if(this._last=n,n===-1){const l=i>=64?this._indentChar.repeat(i):e[i/2];this._str+=l}else this._str+=i>1?String.fromCharCode(n).repeat(i):String.fromCharCode(n);const s=n===32,o=this._position;if(n!==10){if(this._map){const l=this._sourcePosition;a&&l?(this._map.mark(o,l.line,l.column,s?void 0:l.identifierName,s?void 0:l.identifierNamePos,l.filename),!s&&this._canMarkIdName&&(l.identifierName=void 0,l.identifierNamePos=void 0)):this._map.mark(o)}o.column+=i}else o.line++,o.column=0}_append(n,i){const a=n.length,s=this._position,o=this._sourcePosition;this._last=-1,++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=n,this._appendCount=0):this._str+=n;const l=this._map!==null;if(!i&&!l){s.column+=a;return}const{column:c,identifierName:p,identifierNamePos:f,filename:d}=o;let h=o.line;(p!=null||f!=null)&&this._canMarkIdName&&(o.identifierName=void 0,o.identifierNamePos=void 0);let v=n.indexOf(`
`),x=0;for(l&&v!==0&&this._map.mark(s,h,c,p,f,d);v!==-1;)s.line++,s.column=0,x=v+1,x<a&&h!==void 0&&(h++,l&&this._map.mark(s,h,0,void 0,void 0,d)),v=n.indexOf(`
`,x);s.column+=a-x}removeLastSemicolon(){this._queuedChar===59&&(this._queuedChar=0)}getLastChar(n){if(!n)return this._last;const i=this._queuedChar;return i!==0?i:this._last}getNewlineCount(){return this._queuedChar===0&&this._last===10?1:0}hasContent(){return this._last!==0}exactSource(n,i){if(!this._map){i();return}this.source("start",n);const a=n.identifierName,s=this._sourcePosition;a!=null&&(this._canMarkIdName=!1,s.identifierName=a),i(),a!=null&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",n)}source(n,i){this._map&&this._normalizePosition(n,i,0)}sourceWithOffset(n,i,a){this._map&&this._normalizePosition(n,i,a)}_normalizePosition(n,i,a){this._flush();const s=i[n],o=this._sourcePosition;s&&(o.line=s.line,o.column=Math.max(s.column+a,0),o.filename=i.filename)}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}}return vc.default=t,vc}var Oo={},Dt={},Z_;function q$(){if(Z_)return Dt;Z_=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.AssignmentExpression=N,Dt.BinaryExpression=C,Dt.ClassExpression=z,Dt.ArrowFunctionExpression=Dt.ConditionalExpression=X,Dt.DoExpression=x,Dt.FunctionExpression=V,Dt.FunctionTypeAnnotation=f,Dt.Identifier=j,Dt.LogicalExpression=L,Dt.NullableTypeAnnotation=p,Dt.ObjectExpression=v,Dt.OptionalIndexedAccessType=T,Dt.OptionalCallExpression=Dt.OptionalMemberExpression=U,Dt.SequenceExpression=q,Dt.TSSatisfiesExpression=Dt.TSAsExpression=A,Dt.TSConditionalType=E,Dt.TSConstructorType=Dt.TSFunctionType=D,Dt.TSInferType=I,Dt.TSInstantiationExpression=M,Dt.TSIntersectionType=_,Dt.SpreadElement=Dt.UnaryExpression=Dt.TSTypeAssertion=Q,Dt.TSTypeOperator=k,Dt.TSUnionType=P,Dt.IntersectionTypeAnnotation=Dt.UnionTypeAnnotation=m,Dt.UpdateExpression=d,Dt.AwaitExpression=Dt.YieldExpression=$;var e=It(),t=tl();const{isMemberExpression:r,isOptionalMemberExpression:n,isYieldExpression:i,isStatement:a}=e,s=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function o(F){return F===156||F===201||F===209}const l=(F,R,J)=>(J===21||J===22)&&R.superClass===F,c=(F,R,J)=>{switch(J){case 108:case 132:return R.object===F;case 17:case 130:case 112:return R.callee===F;case 222:return R.tag===F;case 191:return!0}return!1};function p(F,R,J){return J===4}function f(F,R,J,se){return J===239||J===90||J===4||(se&t.TokenContext.arrowFlowReturnType)>0}function d(F,R,J){return c(F,R,J)||l(F,R,J)}function h(F){return(F&(t.TokenContext.expressionStatement|t.TokenContext.arrowBody))>0}function v(F,R,J,se){return h(se)}function x(F,R,J,se){return(se&t.TokenContext.expressionStatement)>0&&!F.async}function y(F,R,J,se){if(l(F,R,J)||c(F,R,J)||J===238||J===145||J===8)return!0;let ie;switch(J){case 10:case 107:ie=s.get(R.operator);break;case 156:case 201:ie=7}if(ie!==void 0){const ae=se===2?7:s.get(F.operator);if(ie>ae||ie===ae&&J===10&&(ae===11?R.left===F:R.right===F)||se===1&&J===107&&(ae===1&&ie!==1||ie===1&&ae!==1))return!0}return!1}function m(F,R,J){switch(J){case 4:case 115:case 90:case 239:return!0}return!1}function T(F,R,J){return J===84&&R.objectType===F}function A(F,R,J){return(J===6||J===7)&&R.left===F||J===10&&(R.operator==="|"||R.operator==="&")&&F===R.left?!0:y(F,R,J,2)}function E(F,R,J){switch(J){case 155:case 195:case 211:case 212:return!0;case 175:return R.objectType===F;case 181:case 219:return R.types[0]===F;case 161:return R.checkType===F||R.extendsType===F}return!1}function P(F,R,J){switch(J){case 181:case 211:case 155:case 195:return!0;case 175:return R.objectType===F}return!1}function _(F,R,J){return J===211||k(F,R,J)}function I(F,R,J){return!!(k(F,R,J)||(J===181||J===219)&&F.typeParameter.constraint&&R.types[0]===F)}function k(F,R,J){switch(J){case 155:case 195:return!0;case 175:if(R.objectType===F)return!0}return!1}function M(F,R,J){switch(J){case 17:case 130:case 112:case 177:return R.typeParameters!=null}return!1}function D(F,R,J){return P(F,R,J)?!0:J===219||J===161&&(R.checkType===F||R.extendsType===F)}function C(F,R,J,se){return y(F,R,J,0)?!0:(se&t.TokenContext.forInOrInitHeadAccumulate)>0&&F.operator==="in"}function L(F,R,J){return y(F,R,J,1)}function q(F,R,J){return J===144||J===133||J===108&&R.property===F||J===132&&R.property===F||J===224?!1:J===21?!0:J===68?R.right===F:J===60?!0:!a(R)}function $(F,R,J){return J===10||J===107||J===238||J===145||c(F,R,J)||J===8&&i(F)||J===28&&F===R.test||l(F,R,J)||o(J)}function z(F,R,J,se){return(se&(t.TokenContext.expressionStatement|t.TokenContext.exportDefault))>0}function Q(F,R,J){return c(F,R,J)||J===10&&R.operator==="**"&&R.left===F||l(F,R,J)}function V(F,R,J,se){return(se&(t.TokenContext.expressionStatement|t.TokenContext.exportDefault))>0}function X(F,R,J){switch(J){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(R.test===F)return!0}return o(J)?!0:Q(F,R,J)}function U(F,R,J){switch(J){case 17:return R.callee===F;case 108:return R.object===F}return!1}function N(F,R,J,se){return h(se)&&F.left.type==="ObjectPattern"?!0:X(F,R,J)}function j(F,R,J,se,ie){var ae;if(ie&&ie(F)!==F.name)return!1;if(J===6&&(ae=F.extra)!=null&&ae.parenthesized&&R.left===F){const fe=R.right.type;if((fe==="FunctionExpression"||fe==="ClassExpression")&&R.right.id==null)return!0}return(se&t.TokenContext.forOfHead||(J===108||J===132)&&se&(t.TokenContext.expressionStatement|t.TokenContext.forInitHead|t.TokenContext.forInHead))&&F.name==="let"?(r(R,{object:F,computed:!0})||n(R,{object:F,computed:!0,optional:!1}))&&se&(t.TokenContext.expressionStatement|t.TokenContext.forInitHead|t.TokenContext.forInHead)?!0:(se&t.TokenContext.forOfHead)>0:J===68&&R.left===F&&F.name==="async"&&!R.await}return Dt}var bc={},qg={},Co={},eO;function vR(){if(eO)return Co;eO=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.TaggedTemplateExpression=e,Co.TemplateElement=t,Co.TemplateLiteral=n,Co._printTemplate=r;function e(i){this.print(i.tag),this.print(i.typeParameters),this.print(i.quasi)}function t(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function r(i,a){const s=i.quasis;let o="`";for(let l=0;l<s.length-1;l++)if(o+=s[l].value.raw,this.token(o+"${",!0),this.print(a[l]),o="}",this.tokenMap){const c=this.tokenMap.findMatching(i,"}",l);c&&this._catchUpTo(c.loc.start)}o+=s[s.length-1].value.raw,this.token(o+"`",!0)}function n(i){r.call(this,i,i.expressions)}return Co}var Bt={},tO;function O1(){if(tO)return Bt;tO=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.LogicalExpression=Bt.AssignmentExpression=C,Bt.AssignmentPattern=D,Bt.AwaitExpression=_,Bt.BinaryExpression=L,Bt.BindExpression=q,Bt.CallExpression=E,Bt.ConditionalExpression=f,Bt.Decorator=m,Bt.DoExpression=l,Bt.EmptyStatement=k,Bt.ExpressionStatement=M,Bt.Import=P,Bt.MemberExpression=$,Bt.MetaProperty=z,Bt.ModuleExpression=X,Bt.NewExpression=d,Bt.OptionalCallExpression=A,Bt.OptionalMemberExpression=T,Bt.ParenthesizedExpression=c,Bt.PrivateName=Q,Bt.SequenceExpression=h,Bt.Super=x,Bt.ThisExpression=v,Bt.UnaryExpression=o,Bt.UpdateExpression=p,Bt.V8IntrinsicIdentifier=V,Bt.YieldExpression=I,Bt._shouldPrintDecoratorsBeforeExport=y;var e=It(),t=tl();const{isCallExpression:r,isLiteral:n,isMemberExpression:i,isNewExpression:a,isPattern:s}=e;function o(U){const{operator:N}=U,j=N.charCodeAt(0);j>=97&&j<=122?(this.word(N),this.space()):this.tokenChar(j),this.print(U.argument)}function l(U){U.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(U.body)}function c(U){this.tokenChar(40);const N=this.enterDelimited();this.print(U.expression,void 0,!0),this._noLineTerminatorAfterNode=N,this.rightParens(U)}function p(U){U.prefix?(this.token(U.operator,!1,0,!0),this.print(U.argument)):(this.print(U.argument,!0),this.token(U.operator,!1,0,!0))}function f(U){this.print(U.test),this.space(),this.tokenChar(63),this.space(),this.print(U.consequent),this.space(),this.tokenChar(58),this.space(),this.print(U.alternate)}function d(U,N){if(this.word("new"),this.space(),this.print(U.callee),this.format.minified&&U.arguments.length===0&&!U.optional&&!r(N,{callee:U})&&!i(N)&&!a(N)||(this.print(U.typeArguments),this.print(U.typeParameters),U.optional&&this.token("?."),U.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(U,")")))return;this.tokenChar(40);const j=this.enterDelimited();this.printList(U.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=j,this.rightParens(U)}function h(U){this.printList(U.expressions)}function v(){this.word("this")}function x(){this.word("super")}function y(U){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof U.start=="number"&&U.start===U.declaration.start}function m(U){this.tokenChar(64);const{expression:N}=U;this.print(N),this.newline()}function T(U){let{computed:N}=U;const{optional:j,property:F}=U;if(this.print(U.object),!N&&i(F))throw new TypeError("Got a MemberExpression for MemberExpression property");n(F)&&typeof F.value=="number"&&(N=!0),j&&this.token("?."),N?(this.tokenChar(91),this.print(F),this.tokenChar(93)):(j||this.tokenChar(46),this.print(F))}function A(U){this.print(U.callee),this.print(U.typeParameters),U.optional&&this.token("?."),this.print(U.typeArguments),this.tokenChar(40);const N=this.enterDelimited();this.printList(U.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=N,this.rightParens(U)}function E(U){this.print(U.callee),this.print(U.typeArguments),this.print(U.typeParameters),this.tokenChar(40);const N=this.enterDelimited();this.printList(U.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=N,this.rightParens(U)}function P(){this.word("import")}function _(U){this.word("await"),this.space(),this.print(U.argument)}function I(U){U.delegate?(this.word("yield",!0),this.tokenChar(42),U.argument&&(this.space(),this.print(U.argument))):U.argument?(this.word("yield",!0),this.space(),this.print(U.argument)):this.word("yield")}function k(){this.semicolon(!0)}function M(U){this.tokenContext|=t.TokenContext.expressionStatement,this.print(U.expression),this.semicolon()}function D(U){this.print(U.left),(U.left.type==="Identifier"||s(U.left))&&(U.left.optional&&this.tokenChar(63),this.print(U.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(U.right)}function C(U){this.print(U.left),this.space(),this.token(U.operator,!1,0,!0),this.space(),this.print(U.right)}function L(U){this.print(U.left),this.space();const{operator:N}=U;N.charCodeAt(0)===105?this.word(N):(this.token(N,!1,0,!0),this.setLastChar(N.charCodeAt(N.length-1))),this.space(),this.print(U.right)}function q(U){this.print(U.object),this.token("::"),this.print(U.callee)}function $(U){if(this.print(U.object),!U.computed&&i(U.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let N=U.computed;if(n(U.property)&&typeof U.property.value=="number"&&(N=!0),N){const j=this.enterDelimited();this.tokenChar(91),this.print(U.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=j}else this.tokenChar(46),this.print(U.property)}function z(U){this.print(U.meta),this.tokenChar(46),this.print(U.property)}function Q(U){this.tokenChar(35),this.print(U.id)}function V(U){this.tokenChar(37),this.word(U.name)}function X(U){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:N}=U;(N.body.length||N.directives.length)&&this.newline(),this.print(N),this.dedent(),this.rightBrace(U)}return Bt}var sr={},rO;function $$(){if(rO)return sr;rO=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.BreakStatement=v,sr.CatchClause=E,sr.ContinueStatement=x,sr.DebuggerStatement=I,sr.DoWhileStatement=d,sr.ForInStatement=p,sr.ForOfStatement=f,sr.ForStatement=l,sr.IfStatement=s,sr.LabeledStatement=T,sr.ReturnStatement=y,sr.SwitchCase=_,sr.SwitchStatement=P,sr.ThrowStatement=m,sr.TryStatement=A,sr.VariableDeclaration=M,sr.VariableDeclarator=D,sr.WhileStatement=c,sr.WithStatement=a;var e=It(),t=tl();const{isFor:r,isIfStatement:n,isStatement:i}=e;function a(C){this.word("with"),this.space(),this.tokenChar(40),this.print(C.object),this.tokenChar(41),this.printBlock(C.body)}function s(C){this.word("if"),this.space(),this.tokenChar(40),this.print(C.test),this.tokenChar(41),this.space();const L=C.alternate&&n(o(C.consequent));L&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(C.consequent),L&&(this.dedent(),this.newline(),this.tokenChar(125)),C.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(C.alternate))}function o(C){const{body:L}=C;return i(L)===!1?C:o(L)}function l(C){this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=t.TokenContext.forInitHead|t.TokenContext.forInOrInitHeadAccumulate,this.print(C.init),this.tokenContext=t.TokenContext.normal,this.tokenChar(59),C.test&&(this.space(),this.print(C.test)),this.tokenChar(59,1),C.update&&(this.space(),this.print(C.update)),this.tokenChar(41),this.printBlock(C.body)}function c(C){this.word("while"),this.space(),this.tokenChar(40),this.print(C.test),this.tokenChar(41),this.printBlock(C.body)}function p(C){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=t.TokenContext.forInHead|t.TokenContext.forInOrInitHeadAccumulate,this.print(C.left),this.tokenContext=t.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(C.right),this.tokenChar(41),this.printBlock(C.body)}function f(C){this.word("for"),this.space(),C.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=t.TokenContext.forOfHead,this.print(C.left),this.space(),this.word("of"),this.space(),this.print(C.right),this.tokenChar(41),this.printBlock(C.body)}function d(C){this.word("do"),this.space(),this.print(C.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(C.test),this.tokenChar(41),this.semicolon()}function h(C,L){L&&(C.space(),C.printTerminatorless(L)),C.semicolon()}function v(C){this.word("break"),h(this,C.label)}function x(C){this.word("continue"),h(this,C.label)}function y(C){this.word("return"),h(this,C.argument)}function m(C){this.word("throw"),h(this,C.argument)}function T(C){this.print(C.label),this.tokenChar(58),this.space(),this.print(C.body)}function A(C){this.word("try"),this.space(),this.print(C.block),this.space(),C.handlers?this.print(C.handlers[0]):this.print(C.handler),C.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(C.finalizer))}function E(C){this.word("catch"),this.space(),C.param&&(this.tokenChar(40),this.print(C.param),this.print(C.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(C.body)}function P(C){this.word("switch"),this.space(),this.tokenChar(40),this.print(C.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(C.cases,!0),this.rightBrace(C)}function _(C){C.test?(this.word("case"),this.space(),this.print(C.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),C.consequent.length&&(this.newline(),this.printSequence(C.consequent,!0))}function I(){this.word("debugger"),this.semicolon()}function k(C){this.tokenChar(44,C),this.newline()}function M(C,L){C.declare&&(this.word("declare"),this.space());const{kind:q}=C;switch(q){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(q)}this.space();let $=!1;if(!r(L)){for(const z of C.declarations)if(z.init){$=!0;break}}if(this.printList(C.declarations,void 0,void 0,C.declarations.length>1,$?k:void 0),L!=null)switch(L.type){case"ForStatement":if(L.init===C)return;break;case"ForInStatement":case"ForOfStatement":if(L.left===C)return}this.semicolon()}function D(C){this.print(C.id),C.definite&&this.tokenChar(33),this.print(C.id.typeAnnotation),C.init&&(this.space(),this.tokenChar(61),this.space(),this.print(C.init))}return sr}var hn={},ft={},mn={},nO;function Nm(){if(nO)return mn;nO=1,Object.defineProperty(mn,"__esModule",{value:!0}),mn.ArrowFunctionExpression=p,mn.FunctionDeclaration=mn.FunctionExpression=c,mn._functionHead=l,mn._methodHead=s,mn._param=a,mn._parameters=i,mn._params=n,mn._predicate=o,mn._shouldPrintArrowParamsParens=f;var e=It(),t=tl();const{isIdentifier:r}=e;function n(h,v,x,y){if(this.print(h.typeParameters),x!==void 0||y!==void 0){const m=d.call(this,x,y);m&&this.sourceIdentifierName(m.name,m.pos)}this.tokenChar(40),i.call(this,h.params,41),this.print(h.returnType,v),this._noLineTerminator=v}function i(h,v){const x=this.enterDelimited(),y=this.shouldPrintTrailingComma(v),m=h.length;for(let T=0;T<m;T++)a.call(this,h[T]),(y||T<m-1)&&(this.tokenChar(44,T),this.space());this.tokenChar(v),this._noLineTerminatorAfterNode=x}function a(h){this.printJoin(h.decorators,void 0,void 0,void 0,void 0,!0),this.print(h,void 0,!0),h.optional&&this.tokenChar(63),this.print(h.typeAnnotation,void 0,!0)}function s(h){const v=h.kind,x=h.key;(v==="get"||v==="set")&&(this.word(v),this.space()),h.async&&(this.word("async",!0),this.space()),(v==="method"||v==="init")&&h.generator&&this.tokenChar(42),h.computed?(this.tokenChar(91),this.print(x),this.tokenChar(93)):this.print(x),h.optional&&this.tokenChar(63),this._buf._map?n.call(this,h,!1,h.computed&&h.key.type!=="StringLiteral"?void 0:h.key):n.call(this,h,!1)}function o(h,v){h.predicate&&(h.returnType||this.tokenChar(58),this.space(),this.print(h.predicate,v))}function l(h,v,x){h.async&&(this.word("async"),this.format.preserveFormat||(this._innerCommentsState=0),this.space()),this.word("function"),h.generator&&(this.format.preserveFormat||(this._innerCommentsState=0),this.tokenChar(42)),this.space(),h.id&&this.print(h.id),this._buf._map?n.call(this,h,!1,h.id,v):n.call(this,h,!1),x&&o.call(this,h)}function c(h,v){l.call(this,h,v,!0),this.space(),this.print(h.body)}function p(h,v){h.async&&(this.word("async",!0),this.space()),f.call(this,h)?n.call(this,h,!0,void 0,this._buf._map?v:void 0):this.print(h.params[0],!0),o.call(this,h,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=t.TokenContext.arrowBody,this.print(h.body)}function f(h){var v,x;if(h.params.length!==1||h.typeParameters||h.returnType||h.predicate)return!0;const y=h.params[0];if(!r(y)||y.typeAnnotation||y.optional||(v=y.leadingComments)!=null&&v.length||(x=y.trailingComments)!=null&&x.length)return!0;if(this.tokenMap){if(h.loc==null||this.tokenMap.findMatching(h,"(")!==null)return!0;const m=this.tokenMap.findMatching(h,"=>");return(m==null?void 0:m.loc)==null?!0:m.loc.start.line!==h.loc.start.line}return!!this.format.retainLines}function d(h,v){let x=h;if(!x&&v){const P=v.type;P==="VariableDeclarator"?x=v.id:P==="AssignmentExpression"||P==="AssignmentPattern"?x=v.left:P==="ObjectProperty"||P==="ClassProperty"?(!v.computed||v.key.type==="StringLiteral")&&(x=v.key):(P==="ClassPrivateProperty"||P==="ClassAccessorProperty")&&(x=v.key)}if(!x)return;let y;if(x.type==="Identifier"){var m,T;y={pos:(m=x.loc)==null?void 0:m.start,name:((T=x.loc)==null?void 0:T.identifierName)||x.name}}else if(x.type==="PrivateName"){var A;y={pos:(A=x.loc)==null?void 0:A.start,name:"#"+x.id.name}}else if(x.type==="StringLiteral"){var E;y={pos:(E=x.loc)==null?void 0:E.start,name:x.value}}return y}return mn}var iO;function bR(){if(iO)return ft;iO=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.TSAnyKeyword=m,ft.TSArrayType=F,ft.TSAsExpression=Me,ft.TSBigIntKeyword=T,ft.TSBooleanKeyword=_,ft.TSCallSignatureDeclaration=p,ft.TSInterfaceHeritage=ft.TSClassImplements=ue,ft.TSConditionalType=Se,ft.TSConstructSignatureDeclaration=d,ft.TSConstructorType=Q,ft.TSDeclareFunction=o,ft.TSDeclareMethod=l,ft.TSEnumBody=me,ft.TSEnumDeclaration=ne,ft.TSEnumMember=Ie,ft.TSExportAssignment=vt,ft.TSExternalModuleReference=gt,ft.TSFunctionType=z,ft.TSImportEqualsDeclaration=lt,ft.TSImportType=We,ft.TSIndexSignature=y,ft.TSIndexedAccessType=Re,ft.TSInferType=Ce,ft.TSInstantiationExpression=pe,ft.TSInterfaceBody=ke,ft.TSInterfaceDeclaration=Te,ft.TSIntersectionType=fe,ft.TSIntrinsicKeyword=q,ft.TSLiteralType=re,ft.TSMappedType=He,ft.TSMethodSignature=x,ft.TSModuleBlock=Ue,ft.TSModuleDeclaration=De,ft.TSNamedTupleMember=ie,ft.TSNamespaceExportDeclaration=Le,ft.TSNeverKeyword=L,ft.TSNonNullExpression=Ge,ft.TSNullKeyword=C,ft.TSNumberKeyword=E,ft.TSObjectKeyword=P,ft.TSOptionalType=J,ft.TSParameterProperty=s,ft.TSParenthesizedType=xe,ft.TSPropertySignature=h,ft.TSQualifiedName=c,ft.TSRestType=se,ft.TSSatisfiesExpression=Ke,ft.TSStringKeyword=I,ft.TSSymbolKeyword=k,ft.TSTemplateLiteralType=je,ft.TSThisType=$,ft.TSTupleType=R,ft.TSTypeAliasDeclaration=Oe,ft.TSTypeAnnotation=n,ft.TSTypeAssertion=_e,ft.TSTypeLiteral=j,ft.TSTypeOperator=Be,ft.TSTypeParameter=a,ft.TSTypeParameterDeclaration=ft.TSTypeParameterInstantiation=i,ft.TSTypePredicate=U,ft.TSTypeQuery=N,ft.TSTypeReference=X,ft.TSUndefinedKeyword=D,ft.TSUnionType=ae,ft.TSUnknownKeyword=A,ft.TSVoidKeyword=M,ft._tsPrintClassMemberModifiers=he;var e=Nm(),t=SR(),r=vR();function n(Ee,Xe){this.token((Xe.type==="TSFunctionType"||Xe.type==="TSConstructorType")&&Xe.typeAnnotation===Ee?"=>":":"),this.space(),Ee.optional&&this.tokenChar(63),this.print(Ee.typeAnnotation)}function i(Ee,Xe){this.tokenChar(60);let it=Xe.type==="ArrowFunctionExpression"&&Ee.params.length===1;this.tokenMap&&Ee.start!=null&&Ee.end!=null&&(it&&(it=!!this.tokenMap.find(Ee,st=>this.tokenMap.matchesOriginal(st,","))),it||(it=this.shouldPrintTrailingComma(">"))),this.printList(Ee.params,it),this.tokenChar(62)}function a(Ee){Ee.const&&(this.word("const"),this.space()),Ee.in&&(this.word("in"),this.space()),Ee.out&&(this.word("out"),this.space()),this.word(Ee.name),Ee.constraint&&(this.space(),this.word("extends"),this.space(),this.print(Ee.constraint)),Ee.default&&(this.space(),this.tokenChar(61),this.space(),this.print(Ee.default))}function s(Ee){Ee.accessibility&&(this.word(Ee.accessibility),this.space()),Ee.readonly&&(this.word("readonly"),this.space()),e._param.call(this,Ee.parameter)}function o(Ee,Xe){Ee.declare&&(this.word("declare"),this.space()),e._functionHead.call(this,Ee,Xe,!1),this.semicolon()}function l(Ee){t._classMethodHead.call(this,Ee),this.semicolon()}function c(Ee){this.print(Ee.left),this.tokenChar(46),this.print(Ee.right)}function p(Ee){qe.call(this,Ee),f(this,Ee)}function f(Ee,Xe){if(!Ee.tokenMap||!Xe.start||!Xe.end){Ee.semicolon();return}Ee.tokenMap.endMatches(Xe,",")?Ee.token(","):Ee.tokenMap.endMatches(Xe,";")&&Ee.semicolon()}function d(Ee){this.word("new"),this.space(),qe.call(this,Ee),f(this,Ee)}function h(Ee){const{readonly:Xe}=Ee;Xe&&(this.word("readonly"),this.space()),v.call(this,Ee),this.print(Ee.typeAnnotation),f(this,Ee)}function v(Ee){Ee.computed&&this.tokenChar(91),this.print(Ee.key),Ee.computed&&this.tokenChar(93),Ee.optional&&this.tokenChar(63)}function x(Ee){const{kind:Xe}=Ee;(Xe==="set"||Xe==="get")&&(this.word(Xe),this.space()),v.call(this,Ee),qe.call(this,Ee),f(this,Ee)}function y(Ee){const{readonly:Xe,static:it}=Ee;it&&(this.word("static"),this.space()),Xe&&(this.word("readonly"),this.space()),this.tokenChar(91),e._parameters.call(this,Ee.parameters,93),this.print(Ee.typeAnnotation),f(this,Ee)}function m(){this.word("any")}function T(){this.word("bigint")}function A(){this.word("unknown")}function E(){this.word("number")}function P(){this.word("object")}function _(){this.word("boolean")}function I(){this.word("string")}function k(){this.word("symbol")}function M(){this.word("void")}function D(){this.word("undefined")}function C(){this.word("null")}function L(){this.word("never")}function q(){this.word("intrinsic")}function $(){this.word("this")}function z(Ee){V.call(this,Ee)}function Q(Ee){Ee.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),V.call(this,Ee)}function V(Ee){const{typeParameters:Xe}=Ee,it=Ee.parameters;this.print(Xe),this.tokenChar(40),e._parameters.call(this,it,41),this.space();const st=Ee.typeAnnotation;this.print(st)}function X(Ee){const Xe=Ee.typeParameters;this.print(Ee.typeName,!!Xe),this.print(Xe)}function U(Ee){Ee.asserts&&(this.word("asserts"),this.space()),this.print(Ee.parameterName),Ee.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(Ee.typeAnnotation.typeAnnotation))}function N(Ee){this.word("typeof"),this.space(),this.print(Ee.exprName);const Xe=Ee.typeParameters;Xe&&this.print(Xe)}function j(Ee){$e(this,Ee,()=>this.printJoin(Ee.members,!0,!0,void 0,void 0,!0))}function F(Ee){this.print(Ee.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function R(Ee){this.tokenChar(91),this.printList(Ee.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function J(Ee){this.print(Ee.typeAnnotation),this.tokenChar(63)}function se(Ee){this.token("..."),this.print(Ee.typeAnnotation)}function ie(Ee){this.print(Ee.label),Ee.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(Ee.elementType)}function ae(Ee){de(this,Ee,"|")}function fe(Ee){de(this,Ee,"&")}function de(Ee,Xe,it){var st;let mt=0;(st=Ee.tokenMap)!=null&&st.startMatches(Xe,it)&&(mt=1,Ee.token(it)),Ee.printJoin(Xe.types,void 0,void 0,function(Tt){this.space(),this.token(it,void 0,Tt+mt),this.space()})}function Se(Ee){this.print(Ee.checkType),this.space(),this.word("extends"),this.space(),this.print(Ee.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(Ee.trueType),this.space(),this.tokenChar(58),this.space(),this.print(Ee.falseType)}function Ce(Ee){this.word("infer"),this.print(Ee.typeParameter)}function xe(Ee){this.tokenChar(40),this.print(Ee.typeAnnotation),this.tokenChar(41)}function Be(Ee){this.word(Ee.operator),this.space(),this.print(Ee.typeAnnotation)}function Re(Ee){this.print(Ee.objectType,!0),this.tokenChar(91),this.print(Ee.indexType),this.tokenChar(93)}function He(Ee){const{nameType:Xe,optional:it,readonly:st,typeAnnotation:mt}=Ee;this.tokenChar(123);const Tt=this.enterDelimited();this.space(),st&&(ze(this,st),this.word("readonly"),this.space()),this.tokenChar(91),this.word(Ee.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(Ee.typeParameter.constraint,void 0,!0),Xe&&(this.space(),this.word("as"),this.space(),this.print(Xe,void 0,!0)),this.tokenChar(93),it&&(ze(this,it),this.tokenChar(63)),mt&&(this.tokenChar(58),this.space(),this.print(mt,void 0,!0)),this.space(),this._noLineTerminatorAfterNode=Tt,this.tokenChar(125)}function ze(Ee,Xe){Xe!==!0&&Ee.token(Xe)}function je(Ee){r._printTemplate.call(this,Ee,Ee.types)}function re(Ee){this.print(Ee.literal)}function ue(Ee){this.print(Ee.expression),this.print(Ee.typeArguments)}function Te(Ee){const{declare:Xe,id:it,typeParameters:st,extends:mt,body:Tt}=Ee;Xe&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(it),this.print(st),mt!=null&&mt.length&&(this.space(),this.word("extends"),this.space(),this.printList(mt)),this.space(),this.print(Tt)}function ke(Ee){$e(this,Ee,()=>this.printJoin(Ee.body,!0,!0,void 0,void 0,!0))}function Oe(Ee){const{declare:Xe,id:it,typeParameters:st,typeAnnotation:mt}=Ee;Xe&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(it),this.print(st),this.space(),this.tokenChar(61),this.space(),this.print(mt),this.semicolon()}function Me(Ee){const{expression:Xe,typeAnnotation:it}=Ee;this.print(Xe,!0),this.space(),this.word("as"),this.space(),this.print(it)}function Ke(Ee){const{expression:Xe,typeAnnotation:it}=Ee;this.print(Xe,!0),this.space(),this.word("satisfies"),this.space(),this.print(it)}function _e(Ee){const{typeAnnotation:Xe,expression:it}=Ee;this.tokenChar(60),this.print(Xe),this.tokenChar(62),this.space(),this.print(it)}function pe(Ee){this.print(Ee.expression),this.print(Ee.typeParameters)}function ne(Ee){const{declare:Xe,const:it,id:st}=Ee;Xe&&(this.word("declare"),this.space()),it&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(st),this.space(),me.call(this,Ee)}function me(Ee){$e(this,Ee,()=>{var Xe;return this.printList(Ee.members,(Xe=this.shouldPrintTrailingComma("}"))!=null?Xe:!0,!0,!0,void 0,!0)})}function Ie(Ee){const{id:Xe,initializer:it}=Ee;this.print(Xe),it&&(this.space(),this.tokenChar(61),this.space(),this.print(it))}function De(Ee){const{declare:Xe,id:it,kind:st}=Ee;if(Xe&&(this.word("declare"),this.space()),Ee.global||(this.word(st??(it.type==="Identifier"?"namespace":"module")),this.space()),this.print(it),!Ee.body){this.semicolon();return}let mt=Ee.body;for(;mt.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(mt.id),mt=mt.body;this.space(),this.print(mt)}function Ue(Ee){$e(this,Ee,()=>this.printSequence(Ee.body,!0,!0))}function We(Ee){const{qualifier:Xe,options:it}=Ee;this.word("import"),this.tokenChar(40),this.print(Ee.argument),it&&(this.tokenChar(44),this.print(it)),this.tokenChar(41),Xe&&(this.tokenChar(46),this.print(Xe));const st=Ee.typeParameters;st&&this.print(st)}function lt(Ee){const{id:Xe,moduleReference:it}=Ee;Ee.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(Xe),this.space(),this.tokenChar(61),this.space(),this.print(it),this.semicolon()}function gt(Ee){this.token("require("),this.print(Ee.expression),this.tokenChar(41)}function Ge(Ee){this.print(Ee.expression),this.tokenChar(33),this.setLastChar(33)}function vt(Ee){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(Ee.expression),this.semicolon()}function Le(Ee){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(Ee.id),this.semicolon()}function qe(Ee){const{typeParameters:Xe}=Ee,it=Ee.parameters;this.print(Xe),this.tokenChar(40),e._parameters.call(this,it,41);const st=Ee.typeAnnotation;this.print(st)}function he(Ee){const Xe=Ee.type==="ClassPrivateProperty",it=Ee.type==="ClassAccessorProperty"||Ee.type==="ClassProperty";Ze(this,Ee,[it&&Ee.declare&&"declare",!Xe&&Ee.accessibility]),Ee.static&&(this.word("static"),this.space()),Ze(this,Ee,[!Xe&&Ee.abstract&&"abstract",!Xe&&Ee.override&&"override",(it||Xe)&&Ee.readonly&&"readonly"])}function $e(Ee,Xe,it){Ee.token("{");const st=Ee.enterDelimited();it(),Ee._noLineTerminatorAfterNode=st,Ee.rightBrace(Xe)}function Ze(Ee,Xe,it){var st;const mt=new Set;for(const Tt of it)Tt&&mt.add(Tt);(st=Ee.tokenMap)==null||st.find(Xe,Tt=>mt.has(Tt.value)?(Ee.token(Tt.value),Ee.space(),mt.delete(Tt.value),mt.size===0):!1);for(const Tt of mt)Ee.word(Tt),Ee.space()}return ft}var $g={},Rr={},aO;function xR(){if(aO)return Rr;aO=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.ExportAllDeclaration=y,Rr.ExportDefaultDeclaration=A,Rr.ExportDefaultSpecifier=f,Rr.ExportNamedDeclaration=T,Rr.ExportNamespaceSpecifier=h,Rr.ExportSpecifier=d,Rr.ImportAttribute=P,Rr.ImportDeclaration=E,Rr.ImportDefaultSpecifier=p,Rr.ImportExpression=I,Rr.ImportNamespaceSpecifier=_,Rr.ImportSpecifier=c,Rr._printAttributes=x;var e=It(),t=tl(),r=O1();const{isClassDeclaration:n,isExportDefaultSpecifier:i,isExportNamespaceSpecifier:a,isImportDefaultSpecifier:s,isImportNamespaceSpecifier:o,isStatement:l}=e;function c(k){(k.importKind==="type"||k.importKind==="typeof")&&(this.word(k.importKind),this.space()),this.print(k.imported),k.local&&k.local.name!==k.imported.name&&(this.space(),this.word("as"),this.space(),this.print(k.local))}function p(k){this.print(k.local)}function f(k){this.print(k.exported)}function d(k){k.exportKind==="type"&&(this.word("type"),this.space()),this.print(k.local),k.exported&&k.local.name!==k.exported.name&&(this.space(),this.word("as"),this.space(),this.print(k.exported))}function h(k){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(k.exported)}let v=!1;function x(k,M){var D;const{attributes:C}=k;var{assertions:L}=k;const{importAttributesKeyword:q}=this.format;C&&!q&&k.extra&&(k.extra.deprecatedAssertSyntax||k.extra.deprecatedWithLegacySyntax)&&!v&&(v=!0);const $=q==="assert"||!q&&L;if(this.word($?"assert":"with"),this.space(),!$&&(q==="with-legacy"||!q&&(D=k.extra)!=null&&D.deprecatedWithLegacySyntax)){this.printList(C||L);return}const z=M?1:0;this.token("{",void 0,z),this.space(),this.printList(C||L,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,z)}function y(k){var M,D;this.word("export"),this.space(),k.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(M=k.attributes)!=null&&M.length||(D=k.assertions)!=null&&D.length?(this.print(k.source,!0),this.space(),x.call(this,k,!1)):this.print(k.source),this.semicolon()}function m(k,M){n(M.declaration)&&r._shouldPrintDecoratorsBeforeExport.call(k,M)&&k.printJoin(M.declaration.decorators)}function T(k){if(m(this,k),this.word("export"),this.space(),k.declaration){const C=k.declaration;this.print(C),l(C)||this.semicolon()}else{k.exportKind==="type"&&(this.word("type"),this.space());const C=k.specifiers.slice(0);let L=!1;for(;;){const $=C[0];if(i($)||a($))L=!0,this.print(C.shift()),C.length&&(this.tokenChar(44),this.space());else break}let q=!1;if((C.length||!C.length&&!L)&&(q=!0,this.tokenChar(123),C.length&&(this.space(),this.printList(C,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),k.source){var M,D;this.space(),this.word("from"),this.space(),(M=k.attributes)!=null&&M.length||(D=k.assertions)!=null&&D.length?(this.print(k.source,!0),this.space(),x.call(this,k,q)):this.print(k.source)}this.semicolon()}}function A(k){m(this,k),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=t.TokenContext.exportDefault;const M=k.declaration;this.print(M),l(M)||this.semicolon()}function E(k){var M,D;this.word("import"),this.space();const C=k.importKind==="type"||k.importKind==="typeof";C?(this.noIndentInnerCommentsHere(),this.word(k.importKind),this.space()):k.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):k.phase&&(this.noIndentInnerCommentsHere(),this.word(k.phase),this.space());const L=k.specifiers.slice(0),q=!!L.length;for(;q;){const z=L[0];if(s(z)||o(z))this.print(L.shift()),L.length&&(this.tokenChar(44),this.space());else break}let $=!1;L.length?($=!0,this.tokenChar(123),this.space(),this.printList(L,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):C&&!q&&($=!0,this.tokenChar(123),this.tokenChar(125)),(q||C)&&(this.space(),this.word("from"),this.space()),(M=k.attributes)!=null&&M.length||(D=k.assertions)!=null&&D.length?(this.print(k.source,!0),this.space(),x.call(this,k,$)):this.print(k.source),this.semicolon()}function P(k){this.print(k.key),this.tokenChar(58),this.space(),this.print(k.value)}function _(k){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(k.local)}function I(k){this.word("import"),k.phase&&(this.tokenChar(46),this.word(k.phase)),this.tokenChar(40);const M=this.shouldPrintTrailingComma(")");this.print(k.source),k.options!=null&&(this.tokenChar(44),this.space(),this.print(k.options)),M&&this.tokenChar(44),this.rightParens(k)}return Rr}var rr={},Ug,sO;function U$(){if(sO)return Ug;sO=1;const e={},t=e.hasOwnProperty,r=(k,M)=>{for(const D in k)t.call(k,D)&&M(D,k[D])},n=(k,M)=>(M&&r(M,(D,C)=>{k[D]=C}),k),i=(k,M)=>{const D=k.length;let C=-1;for(;++C<D;)M(k[C])},a=k=>"\\u"+("0000"+k).slice(-4),s=(k,M)=>{let D=k.toString(16);return M?D:D.toUpperCase()},o=e.toString,l=Array.isArray,c=k=>typeof Buffer=="function"&&Buffer.isBuffer(k),p=k=>o.call(k)=="[object Object]",f=k=>typeof k=="string"||o.call(k)=="[object String]",d=k=>typeof k=="number"||o.call(k)=="[object Number]",h=k=>typeof k=="bigint",v=k=>typeof k=="function",x=k=>o.call(k)=="[object Map]",y=k=>o.call(k)=="[object Set]",m={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},T=/[\\\b\f\n\r\t]/,A=/[0-9]/,E=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,P=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,_=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,I=(k,M)=>{const D=()=>{V=Q,++M.indentLevel,Q=M.indent.repeat(M.indentLevel)},C={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},L=M&&M.json;L&&(C.quotes="double",C.wrap=!0),M=n(C,M),M.quotes!="single"&&M.quotes!="double"&&M.quotes!="backtick"&&(M.quotes="single");const q=M.quotes=="double"?'"':M.quotes=="backtick"?"`":"'",$=M.compact,z=M.lowercaseHex;let Q=M.indent.repeat(M.indentLevel),V="";const X=M.__inline1__,U=M.__inline2__,N=$?"":`
`;let j,F=!0;const R=M.numbers=="binary",J=M.numbers=="octal",se=M.numbers=="decimal",ie=M.numbers=="hexadecimal";if(L&&k&&v(k.toJSON)&&(k=k.toJSON()),!f(k)){if(x(k))return k.size==0?"new Map()":($||(M.__inline1__=!0,M.__inline2__=!1),"new Map("+I(Array.from(k),M)+")");if(y(k))return k.size==0?"new Set()":"new Set("+I(Array.from(k),M)+")";if(c(k))return k.length==0?"Buffer.from([])":"Buffer.from("+I(Array.from(k),M)+")";if(l(k))return j=[],M.wrap=!0,X&&(M.__inline1__=!1,M.__inline2__=!0),U||D(),i(k,fe=>{F=!1,U&&(M.__inline2__=!1),j.push(($||U?"":Q)+I(fe,M))}),F?"[]":U?"["+j.join(", ")+"]":"["+N+j.join(","+N)+N+($?"":V)+"]";if(d(k)||h(k)){if(L)return JSON.stringify(Number(k));let fe;if(se)fe=String(k);else if(ie){let de=k.toString(16);z||(de=de.toUpperCase()),fe="0x"+de}else R?fe="0b"+k.toString(2):J&&(fe="0o"+k.toString(8));return h(k)?fe+"n":fe}else return h(k)?L?JSON.stringify(Number(k)):k+"n":p(k)?(j=[],M.wrap=!0,D(),r(k,(fe,de)=>{F=!1,j.push(($?"":Q)+I(fe,M)+":"+($?"":" ")+I(de,M))}),F?"{}":"{"+N+j.join(","+N)+N+($?"":V)+"}"):L?JSON.stringify(k)||"null":String(k)}const ae=M.escapeEverything?P:_;return j=k.replace(ae,(fe,de,Se,Ce,xe,Be)=>{if(de){if(M.minimal)return de;const He=de.charCodeAt(0),ze=de.charCodeAt(1);if(M.es6){const je=(He-55296)*1024+ze-56320+65536;return"\\u{"+s(je,z)+"}"}return a(s(He,z))+a(s(ze,z))}if(Se)return a(s(Se.charCodeAt(0),z));if(fe=="\0"&&!L&&!A.test(Be.charAt(xe+1)))return"\\0";if(Ce)return Ce==q||M.escapeEverything?"\\"+Ce:Ce;if(T.test(fe))return m[fe];if(M.minimal&&!E.test(fe))return fe;const Re=s(fe.charCodeAt(0),z);return L||Re.length>2?a(Re):"\\x"+("00"+Re).slice(-2)}),q=="`"&&(j=j.replace(/\$\{/g,"\\${")),M.isScriptContext&&(j=j.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,L?"\\u003C!--":"\\x3C!--")),M.wrap&&(j=q+j+q),j};return I.version="3.0.2",Ug=I,Ug}var oO;function C1(){if(oO)return rr;oO=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.ArgumentPlaceholder=l,rr.ArrayPattern=rr.ArrayExpression=h,rr.BigIntLiteral=A,rr.BooleanLiteral=x,rr.Identifier=o,rr.NullLiteral=y,rr.NumericLiteral=m,rr.ObjectPattern=rr.ObjectExpression=p,rr.ObjectMethod=f,rr.ObjectProperty=d,rr.PipelineBareFunction=I,rr.PipelinePrimaryTopicReference=k,rr.PipelineTopicExpression=_,rr.RegExpLiteral=v,rr.SpreadElement=rr.RestElement=c,rr.StringLiteral=T,rr.TopicReference=P,rr.VoidPattern=M,rr._getRawIdentifier=s;var e=It(),t=U$(),r=Nm();const{isAssignmentPattern:n,isIdentifier:i}=e;let a="";function s(D){const{name:C}=D,L=this.tokenMap.find(D,q=>q.value===C);return L?(a=this._originalCode.slice(L.start,L.end),a):a=D.name}function o(D){if(this._buf._map){var C;this.sourceIdentifierName(((C=D.loc)==null?void 0:C.identifierName)||D.name)}this.word(this.tokenMap?a:D.name)}function l(){this.tokenChar(63)}function c(D){this.token("..."),this.print(D.argument)}function p(D){const C=D.properties;if(this.tokenChar(123),C.length){const L=this.enterDelimited();this.space(),this.printList(C,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=L}this.rightBrace(D)}function f(D){this.printJoin(D.decorators),r._methodHead.call(this,D),this.space(),this.print(D.body)}function d(D){if(this.printJoin(D.decorators),D.computed)this.tokenChar(91),this.print(D.key),this.tokenChar(93);else{if(n(D.value)&&i(D.key)&&D.key.name===D.value.left.name){this.print(D.value);return}if(this.print(D.key),D.shorthand&&i(D.key)&&i(D.value)&&D.key.name===D.value.name)return}this.tokenChar(58),this.space(),this.print(D.value)}function h(D){const C=D.elements,L=C.length;this.tokenChar(91);const q=this.enterDelimited();for(let $=0;$<C.length;$++){const z=C[$];z?($>0&&this.space(),this.print(z,void 0,!0),($<L-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,$)):this.tokenChar(44,$)}this._noLineTerminatorAfterNode=q,this.tokenChar(93)}function v(D){this.word(`/${D.pattern}/${D.flags}`,!1)}function x(D){this.word(D.value?"true":"false")}function y(){this.word("null")}function m(D){const C=this.getPossibleRaw(D),L=this.format.jsescOption,q=D.value,$=q+"";L.numbers?this.number(t(q,L),q):C==null?this.number($,q):this.format.minified?this.number(C.length<$.length?C:$,q):this.number(C,q)}function T(D){const C=this.getPossibleRaw(D);if(!this.format.minified&&C!==void 0){this.token(C);return}const L=t(D.value,this.format.jsescOption);this.token(L)}function A(D){const C=this.getPossibleRaw(D);if(!this.format.minified&&C!==void 0){this.word(C);return}this.word(D.value+"n")}const E=new Set(["^^","@@","^","%","#"]);function P(){const{topicToken:D}=this.format;if(E.has(D))this.token(D);else{const C=JSON.stringify(D),L=Array.from(E,q=>JSON.stringify(q));throw new Error(`The "topicToken" generator option must be one of ${L.join(", ")} (${C} received instead).`)}}function _(D){this.print(D.expression)}function I(D){this.print(D.callee)}function k(){this.tokenChar(35)}function M(){this.word("void")}return rr}var lO;function TR(){return lO||(lO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnyTypeAnnotation=o,e.ArrayTypeAnnotation=l,e.BooleanLiteralTypeAnnotation=p,e.BooleanTypeAnnotation=c,e.DeclareClass=d,e.DeclareExportAllDeclaration=I,e.DeclareExportDeclaration=_,e.DeclareFunction=h,e.DeclareInterface=y,e.DeclareModule=m,e.DeclareModuleExports=T,e.DeclareOpaqueType=E,e.DeclareTypeAlias=A,e.DeclareVariable=P,e.DeclaredPredicate=x,e.EmptyTypeAnnotation=xe,e.EnumBooleanBody=C,e.EnumBooleanMember=V,e.EnumDeclaration=k,e.EnumDefaultedMember=z,e.EnumNumberBody=L,e.EnumNumberMember=X,e.EnumStringBody=q,e.EnumStringMember=U,e.EnumSymbolBody=$,e.ExistsTypeAnnotation=j,e.FunctionTypeAnnotation=F,e.FunctionTypeParam=R,e.IndexedAccessType=Le,e.InferredPredicate=v,e.InterfaceDeclaration=ae,e.GenericTypeAnnotation=e.ClassImplements=e.InterfaceExtends=J,e.InterfaceTypeAnnotation=de,e.IntersectionTypeAnnotation=Se,e.MixedTypeAnnotation=Ce,e.NullLiteralTypeAnnotation=f,e.NullableTypeAnnotation=Be,Object.defineProperty(e,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.NumericLiteral}}),e.NumberTypeAnnotation=Re,e.ObjectTypeAnnotation=Ke,e.ObjectTypeCallProperty=pe,e.ObjectTypeIndexer=ne,e.ObjectTypeInternalSlot=_e,e.ObjectTypeProperty=me,e.ObjectTypeSpreadProperty=Ie,e.OpaqueType=Me,e.OptionalIndexedAccessType=qe,e.QualifiedTypeIdentifier=De,Object.defineProperty(e,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.StringLiteral}}),e.StringTypeAnnotation=He,e.SymbolTypeAnnotation=Ue,e.ThisTypeAnnotation=ze,e.TupleTypeAnnotation=je,e.TypeAlias=ue,e.TypeAnnotation=Te,e.TypeCastExpression=gt,e.TypeParameter=Oe,e.TypeParameterDeclaration=e.TypeParameterInstantiation=ke,e.TypeofTypeAnnotation=re,e.UnionTypeAnnotation=lt,e.Variance=Ge,e.VoidTypeAnnotation=vt,e._interfaceish=se,e._variance=ie;var t=It(),r=xR(),n=tl(),i=C1();const{isDeclareExportDeclaration:a,isStatement:s}=t;function o(){this.word("any")}function l(he){this.print(he.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function c(){this.word("boolean")}function p(he){this.word(he.value?"true":"false")}function f(){this.word("null")}function d(he,$e){a($e)||(this.word("declare"),this.space()),this.word("class"),this.space(),se.call(this,he)}function h(he,$e){a($e)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(he.id),this.print(he.id.typeAnnotation.typeAnnotation),he.predicate&&(this.space(),this.print(he.predicate)),this.semicolon()}function v(){this.tokenChar(37),this.word("checks")}function x(he){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(he.value),this.tokenChar(41)}function y(he){this.word("declare"),this.space(),ae.call(this,he)}function m(he){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(he.id),this.space(),this.print(he.body)}function T(he){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(he.typeAnnotation)}function A(he){this.word("declare"),this.space(),ue.call(this,he)}function E(he,$e){a($e)||(this.word("declare"),this.space()),Me.call(this,he)}function P(he,$e){a($e)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(he.id),this.print(he.id.typeAnnotation),this.semicolon()}function _(he){this.word("declare"),this.space(),this.word("export"),this.space(),he.default&&(this.word("default"),this.space()),N.call(this,he)}function I(he){this.word("declare"),this.space(),r.ExportAllDeclaration.call(this,he)}function k(he){const{id:$e,body:Ze}=he;this.word("enum"),this.space(),this.print($e),this.print(Ze)}function M(he,$e,Ze){Ze&&(he.space(),he.word("of"),he.space(),he.word($e)),he.space()}function D(he,$e){const{members:Ze}=$e;he.token("{"),he.indent(),he.newline();for(const Ee of Ze)he.print(Ee),he.newline();$e.hasUnknownMembers&&(he.token("..."),he.newline()),he.dedent(),he.token("}")}function C(he){const{explicitType:$e}=he;M(this,"boolean",$e),D(this,he)}function L(he){const{explicitType:$e}=he;M(this,"number",$e),D(this,he)}function q(he){const{explicitType:$e}=he;M(this,"string",$e),D(this,he)}function $(he){M(this,"symbol",!0),D(this,he)}function z(he){const{id:$e}=he;this.print($e),this.tokenChar(44)}function Q(he,$e){he.print($e.id),he.space(),he.token("="),he.space(),he.print($e.init),he.token(",")}function V(he){Q(this,he)}function X(he){Q(this,he)}function U(he){Q(this,he)}function N(he){if(he.declaration){const $e=he.declaration;this.print($e),s($e)||this.semicolon()}else this.tokenChar(123),he.specifiers.length&&(this.space(),this.printList(he.specifiers),this.space()),this.tokenChar(125),he.source&&(this.space(),this.word("from"),this.space(),this.print(he.source)),this.semicolon()}function j(){this.tokenChar(42)}function F(he,$e){this.print(he.typeParameters),this.tokenChar(40),he.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(he.this.typeAnnotation),(he.params.length||he.rest)&&(this.tokenChar(44),this.space())),this.printList(he.params),he.rest&&(he.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(he.rest)),this.tokenChar(41);const Ze=$e==null?void 0:$e.type;Ze!=null&&(Ze==="ObjectTypeCallProperty"||Ze==="ObjectTypeInternalSlot"||Ze==="DeclareFunction"||Ze==="ObjectTypeProperty"&&$e.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(he.returnType)}function R(he){this.print(he.name),he.optional&&this.tokenChar(63),he.name&&(this.tokenChar(58),this.space()),this.print(he.typeAnnotation)}function J(he){this.print(he.id),this.print(he.typeParameters,!0)}function se(he){var $e;if(this.print(he.id),this.print(he.typeParameters),($e=he.extends)!=null&&$e.length&&(this.space(),this.word("extends"),this.space(),this.printList(he.extends)),he.type==="DeclareClass"){var Ze,Ee;(Ze=he.mixins)!=null&&Ze.length&&(this.space(),this.word("mixins"),this.space(),this.printList(he.mixins)),(Ee=he.implements)!=null&&Ee.length&&(this.space(),this.word("implements"),this.space(),this.printList(he.implements))}this.space(),this.print(he.body)}function ie(he){var $e;const Ze=($e=he.variance)==null?void 0:$e.kind;Ze!=null&&(Ze==="plus"?this.tokenChar(43):Ze==="minus"&&this.tokenChar(45))}function ae(he){this.word("interface"),this.space(),se.call(this,he)}function fe(he){this.space(),this.token("&",!1,he),this.space()}function de(he){var $e;this.word("interface"),($e=he.extends)!=null&&$e.length&&(this.space(),this.word("extends"),this.space(),this.printList(he.extends)),this.space(),this.print(he.body)}function Se(he){this.printJoin(he.types,void 0,void 0,fe)}function Ce(){this.word("mixed")}function xe(){this.word("empty")}function Be(he){this.tokenChar(63),this.print(he.typeAnnotation)}function Re(){this.word("number")}function He(){this.word("string")}function ze(){this.word("this")}function je(he){this.tokenChar(91),this.printList(he.types),this.tokenChar(93)}function re(he){this.word("typeof"),this.space(),this.print(he.argument)}function ue(he){this.word("type"),this.space(),this.print(he.id),this.print(he.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(he.right),this.semicolon()}function Te(he,$e){this.tokenChar(58),this.space(),$e.type==="ArrowFunctionExpression"?this.tokenContext|=n.TokenContext.arrowFlowReturnType:he.optional&&this.tokenChar(63),this.print(he.typeAnnotation)}function ke(he){this.tokenChar(60),this.printList(he.params),this.tokenChar(62)}function Oe(he){ie.call(this,he),this.word(he.name),he.bound&&this.print(he.bound),he.default&&(this.space(),this.tokenChar(61),this.space(),this.print(he.default))}function Me(he){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(he.id),this.print(he.typeParameters),he.supertype&&(this.tokenChar(58),this.space(),this.print(he.supertype)),he.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(he.impltype)),this.semicolon()}function Ke(he){he.exact?this.token("{|"):this.tokenChar(123);const $e=[...he.properties,...he.callProperties||[],...he.indexers||[],...he.internalSlots||[]];$e.length&&(this.newline(),this.space(),this.printJoin($e,!0,!0,()=>{($e.length!==1||he.inexact)&&(this.tokenChar(44),this.space())},!0),this.space()),he.inexact&&(this.indent(),this.token("..."),$e.length&&this.newline(),this.dedent()),he.exact?this.token("|}"):this.tokenChar(125)}function _e(he){he.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(he.id),this.tokenChar(93),this.tokenChar(93),he.optional&&this.tokenChar(63),he.method||(this.tokenChar(58),this.space()),this.print(he.value)}function pe(he){he.static&&(this.word("static"),this.space()),this.print(he.value)}function ne(he){he.static&&(this.word("static"),this.space()),ie.call(this,he),this.tokenChar(91),he.id&&(this.print(he.id),this.tokenChar(58),this.space()),this.print(he.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(he.value)}function me(he){he.proto&&(this.word("proto"),this.space()),he.static&&(this.word("static"),this.space()),(he.kind==="get"||he.kind==="set")&&(this.word(he.kind),this.space()),ie.call(this,he),this.print(he.key),he.optional&&this.tokenChar(63),he.method||(this.tokenChar(58),this.space()),this.print(he.value)}function Ie(he){this.token("..."),this.print(he.argument)}function De(he){this.print(he.qualification),this.tokenChar(46),this.print(he.id)}function Ue(){this.word("symbol")}function We(he){this.space(),this.token("|",!1,he),this.space()}function lt(he){this.printJoin(he.types,void 0,void 0,We)}function gt(he){this.tokenChar(40),this.print(he.expression),this.print(he.typeAnnotation),this.tokenChar(41)}function Ge(he){he.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function vt(){this.word("void")}function Le(he){this.print(he.objectType,!0),this.tokenChar(91),this.print(he.indexType),this.tokenChar(93)}function qe(he){this.print(he.objectType),he.optional&&this.token("?."),this.tokenChar(91),this.print(he.indexType),this.tokenChar(93)}})($g)),$g}var uO;function SR(){if(uO)return hn;uO=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.ClassAccessorProperty=f,hn.ClassBody=l,hn.ClassExpression=hn.ClassDeclaration=o,hn.ClassMethod=h,hn.ClassPrivateMethod=v,hn.ClassPrivateProperty=d,hn.ClassProperty=p,hn.StaticBlock=y,hn._classMethodHead=x;var e=It(),t=O1(),r=bR(),n=TR(),i=Nm();const{isExportDefaultDeclaration:a,isExportNamedDeclaration:s}=e;function o(m,T){(!(a(T)||s(T))||!t._shouldPrintDecoratorsBeforeExport.call(this,T))&&this.printJoin(m.decorators),m.declare&&(this.word("declare"),this.space()),m.abstract&&(this.word("abstract"),this.space()),this.word("class"),m.id&&(this.space(),this.print(m.id)),this.print(m.typeParameters),m.superClass&&(this.space(),this.word("extends"),this.space(),this.print(m.superClass),this.print(m.superTypeParameters)),m.implements&&(this.space(),this.word("implements"),this.space(),this.printList(m.implements)),this.space(),this.print(m.body)}function l(m){if(this.tokenChar(123),m.body.length===0)this.tokenChar(125);else{const T=c(this,m);T==null||T(-1);const A=this.enterDelimited();this.printJoin(m.body,!0,!0,T,!0,!0),this._noLineTerminatorAfterNode=A,this.endsWith(10)||this.newline(),this.rightBrace(m)}}function c(m,T){if(!m.tokenMap||T.start==null||T.end==null)return null;const A=m.tokenMap.getIndexes(T);if(!A)return null;let E=1,P=0,_=0;const I=()=>{for(;_<T.body.length&&T.body[_].start==null;)_++};return I(),k=>{_<=k&&(_=k+1,I());const M=_===T.body.length?T.end:T.body[_].start;let D;for(;E<A.length&&m.tokenMap.matchesOriginal(D=m._tokens[A[E]],";")&&D.start<M;)m.tokenChar(59,P++),E++}}function p(m){if(this.printJoin(m.decorators),!m.static&&!this.format.preserveFormat){var T;const A=(T=m.key.loc)==null||(T=T.end)==null?void 0:T.line;A&&this.catchUp(A)}r._tsPrintClassMemberModifiers.call(this,m),m.computed?(this.tokenChar(91),this.print(m.key),this.tokenChar(93)):(n._variance.call(this,m),this.print(m.key)),m.optional&&this.tokenChar(63),m.definite&&this.tokenChar(33),this.print(m.typeAnnotation),m.value&&(this.space(),this.tokenChar(61),this.space(),this.print(m.value)),this.semicolon()}function f(m){var T;this.printJoin(m.decorators);const A=(T=m.key.loc)==null||(T=T.end)==null?void 0:T.line;A&&this.catchUp(A),r._tsPrintClassMemberModifiers.call(this,m),this.word("accessor",!0),this.space(),m.computed?(this.tokenChar(91),this.print(m.key),this.tokenChar(93)):(n._variance.call(this,m),this.print(m.key)),m.optional&&this.tokenChar(63),m.definite&&this.tokenChar(33),this.print(m.typeAnnotation),m.value&&(this.space(),this.tokenChar(61),this.space(),this.print(m.value)),this.semicolon()}function d(m){this.printJoin(m.decorators),r._tsPrintClassMemberModifiers.call(this,m),this.print(m.key),m.optional&&this.tokenChar(63),m.definite&&this.tokenChar(33),this.print(m.typeAnnotation),m.value&&(this.space(),this.tokenChar(61),this.space(),this.print(m.value)),this.semicolon()}function h(m){x.call(this,m),this.space(),this.print(m.body)}function v(m){x.call(this,m),this.space(),this.print(m.body)}function x(m){if(this.printJoin(m.decorators),!this.format.preserveFormat){var T;const A=(T=m.key.loc)==null||(T=T.end)==null?void 0:T.line;A&&this.catchUp(A)}r._tsPrintClassMemberModifiers.call(this,m),i._methodHead.call(this,m)}function y(m){this.word("static"),this.space(),this.tokenChar(123),m.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(m.body,!0),this.rightBrace(m))}return hn}var gi={},cO;function V$(){if(cO)return gi;cO=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.BlockStatement=r,gi.Directive=n,gi.DirectiveLiteral=s,gi.File=e,gi.InterpreterDirective=o,gi.Placeholder=l,gi.Program=t;function e(c){c.program&&this.print(c.program.interpreter),this.print(c.program)}function t(c){var p;this.printInnerComments(!1);const f=(p=c.directives)==null?void 0:p.length;if(f){var d;const h=c.body.length?2:1;this.printSequence(c.directives,void 0,void 0,h),(d=c.directives[f-1].trailingComments)!=null&&d.length||this.newline(h)}this.printSequence(c.body)}function r(c){var p;this.tokenChar(123);const f=this.enterDelimited(),d=(p=c.directives)==null?void 0:p.length;if(d){var h;const v=c.body.length?2:1;this.printSequence(c.directives,!0,!0,v),(h=c.directives[d-1].trailingComments)!=null&&h.length||this.newline(v)}this.printSequence(c.body,!0,!0),this._noLineTerminatorAfterNode=f,this.rightBrace(c)}function n(c){this.print(c.value),this.semicolon()}const i=/(?:^|[^\\])(?:\\\\)*'/,a=/(?:^|[^\\])(?:\\\\)*"/;function s(c){const p=this.getPossibleRaw(c);if(!this.format.minified&&p!==void 0){this.token(p);return}const{value:f}=c;if(!a.test(f))this.token(`"${f}"`);else if(!i.test(f))this.token(`'${f}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function o(c){this.token(`#!${c.value}`),this._newline()}function l(c){this.token("%%"),this.print(c.name),this.token("%%"),c.expectedNode==="Statement"&&this.semicolon()}return gi}var Or={},fO;function K$(){if(fO)return Or;fO=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.JSXAttribute=e,Or.JSXClosingElement=f,Or.JSXClosingFragment=x,Or.JSXElement=l,Or.JSXEmptyExpression=d,Or.JSXExpressionContainer=a,Or.JSXFragment=h,Or.JSXIdentifier=t,Or.JSXMemberExpression=n,Or.JSXNamespacedName=r,Or.JSXOpeningElement=p,Or.JSXOpeningFragment=v,Or.JSXSpreadAttribute=i,Or.JSXSpreadChild=s,Or.JSXText=o;function e(y){this.print(y.name),y.value&&(this.tokenChar(61),this.print(y.value))}function t(y){this.word(y.name)}function r(y){this.print(y.namespace),this.tokenChar(58),this.print(y.name)}function n(y){this.print(y.object),this.tokenChar(46),this.print(y.property)}function i(y){this.tokenChar(123),this.token("..."),this.print(y.argument),this.rightBrace(y)}function a(y){this.tokenChar(123),this.print(y.expression),this.rightBrace(y)}function s(y){this.tokenChar(123),this.token("..."),this.print(y.expression),this.rightBrace(y)}function o(y){const m=this.getPossibleRaw(y);m!==void 0?this.token(m,!0):this.token(y.value,!0)}function l(y){const m=y.openingElement;if(this.print(m),!m.selfClosing){this.indent();for(const T of y.children)this.print(T);this.dedent(),this.print(y.closingElement)}}function c(){this.space()}function p(y){this.tokenChar(60),this.print(y.name),y.typeArguments&&this.print(y.typeArguments),this.print(y.typeParameters),y.attributes.length>0&&(this.space(),this.printJoin(y.attributes,void 0,void 0,c)),y.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function f(y){this.tokenChar(60),this.tokenChar(47),this.print(y.name),this.tokenChar(62)}function d(){this.printInnerComments()}function h(y){this.print(y.openingFragment),this.indent();for(const m of y.children)this.print(m);this.dedent(),this.print(y.closingFragment)}function v(){this.tokenChar(60),this.tokenChar(62)}function x(){this.token("</"),this.tokenChar(62)}return Or}var pO;function z$(){return pO||(pO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=vR();Object.keys(t).forEach(function(d){d==="default"||d==="__esModule"||d in e&&e[d]===t[d]||Object.defineProperty(e,d,{enumerable:!0,get:function(){return t[d]}})});var r=O1();Object.keys(r).forEach(function(d){d==="default"||d==="__esModule"||d in e&&e[d]===r[d]||Object.defineProperty(e,d,{enumerable:!0,get:function(){return r[d]}})});var n=$$();Object.keys(n).forEach(function(d){d==="default"||d==="__esModule"||d in e&&e[d]===n[d]||Object.defineProperty(e,d,{enumerable:!0,get:function(){return n[d]}})});var i=SR();Object.keys(i).forEach(function(d){d==="default"||d==="__esModule"||d in e&&e[d]===i[d]||Object.defineProperty(e,d,{enumerable:!0,get:function(){return i[d]}})});var a=Nm();Object.keys(a).forEach(function(d){d==="default"||d==="__esModule"||d in e&&e[d]===a[d]||Object.defineProperty(e,d,{enumerable:!0,get:function(){return a[d]}})});var s=xR();Object.keys(s).forEach(function(d){d==="default"||d==="__esModule"||d in e&&e[d]===s[d]||Object.defineProperty(e,d,{enumerable:!0,get:function(){return s[d]}})});var o=C1();Object.keys(o).forEach(function(d){d==="default"||d==="__esModule"||d in e&&e[d]===o[d]||Object.defineProperty(e,d,{enumerable:!0,get:function(){return o[d]}})});var l=TR();Object.keys(l).forEach(function(d){d==="default"||d==="__esModule"||d in e&&e[d]===l[d]||Object.defineProperty(e,d,{enumerable:!0,get:function(){return l[d]}})});var c=V$();Object.keys(c).forEach(function(d){d==="default"||d==="__esModule"||d in e&&e[d]===c[d]||Object.defineProperty(e,d,{enumerable:!0,get:function(){return c[d]}})});var p=K$();Object.keys(p).forEach(function(d){d==="default"||d==="__esModule"||d in e&&e[d]===p[d]||Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[d]}})});var f=bR();Object.keys(f).forEach(function(d){d==="default"||d==="__esModule"||d in e&&e[d]===f[d]||Object.defineProperty(e,d,{enumerable:!0,get:function(){return f[d]}})})})(qg)),qg}var ds={},dO;function W$(){if(dO)return ds;dO=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.DecimalLiteral=r,ds.Noop=e,ds.RecordExpression=n,ds.TSExpressionWithTypeArguments=t,ds.TupleExpression=i;function e(){}function t(a){this.print(a.expression),this.print(a.typeParameters)}function r(a){const s=this.getPossibleRaw(a);if(!this.format.minified&&s!==void 0){this.word(s);return}this.word(a.value+"m")}function n(a){const s=a.properties;let o,l;if(this.format.recordAndTupleSyntaxType==="bar")o="{|",l="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);o="#{",l="}"}this.token(o),s.length&&(this.space(),this.printList(s,this.shouldPrintTrailingComma(l),!0,!0),this.space()),this.token(l)}function i(a){const s=a.elements,o=s.length;let l,c;if(this.format.recordAndTupleSyntaxType==="bar")l="[|",c="|]";else if(this.format.recordAndTupleSyntaxType==="hash")l="#[",c="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(l);for(let p=0;p<s.length;p++){const f=s[p];f&&(p>0&&this.space(),this.print(f),(p<o-1||this.shouldPrintTrailingComma(c))&&this.token(",",!1,p))}this.token(c)}return ds}var hO;function ER(){if(hO)return bc;hO=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.generatorInfosMap=void 0;var e=z$(),t=W$();const r=bc.generatorInfosMap=new Map;let n=0;for(const i of Object.keys(e).sort())i.startsWith("_")||r.set(i,[e[i],n++,void 0]);for(const i of Object.keys(t))r.set(i,[t[i],n++,void 0]);return bc}var mO;function tl(){if(mO)return Oo;mO=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.TokenContext=void 0,Oo.isLastChild=o,Oo.parentNeedsParens=a;var e=q$(),t=It(),r=ER();const{VISITOR_KEYS:n}=t;Oo.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(const l of Object.keys(e)){const c=e[l];r.generatorInfosMap.has(l)&&(r.generatorInfosMap.get(l)[2]=c)}function i(l){switch(l.type){case"CallExpression":return!0;case"MemberExpression":return i(l.object)}return!1}function a(l,c,p){switch(p){case 112:if(c.callee===l&&i(l))return!0;break;case 42:return!s(l)&&!(l.type==="CallExpression"&&s(l.callee))&&l.type!=="ParenthesizedExpression"}return!1}function s(l){switch(l.type){case"Identifier":return!0;case"MemberExpression":return!l.computed&&l.property.type==="Identifier"&&s(l.object);default:return!1}}function o(l,c){const p=n[l.type];for(let f=p.length-1;f>=0;f--){const d=l[p[f]];if(d===c)return!0;if(Array.isArray(d)){let h=d.length-1;for(;h>=0&&d[h]===null;)h--;return h>=0&&d[h]===c}else if(d)return!1}return!1}return Oo}var xc={},yO;function H$(){if(yO)return xc;yO=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.TokenMap=void 0;var e=It();const{traverseFast:t,VISITOR_KEYS:r}=e;class n{constructor(s,o,l){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=o,this._source=l,t(s,c=>{const p=this._getTokensIndexesOfNode(c);p.length>0&&this._nodesToTokenIndexes.set(c,p)}),this._tokensCache.clear()}has(s){return this._nodesToTokenIndexes.has(s)}getIndexes(s){return this._nodesToTokenIndexes.get(s)}find(s,o){const l=this._nodesToTokenIndexes.get(s);if(l)for(let c=0;c<l.length;c++){const p=l[c],f=this._tokens[p];if(o(f,p))return f}return null}findLastIndex(s,o){const l=this._nodesToTokenIndexes.get(s);if(l)for(let c=l.length-1;c>=0;c--){const p=l[c],f=this._tokens[p];if(o(f,p))return p}return-1}findMatching(s,o,l=0){const c=this._nodesToTokenIndexes.get(s);if(c){typeof o=="number"&&(o=String.fromCharCode(o));let p=0;const f=l;if(f>1){const d=this._nodesOccurrencesCountCache.get(s);(d==null?void 0:d.test)===o&&d.count<f&&(p=d.i+1,l-=d.count+1)}for(;p<c.length;p++){const d=this._tokens[c[p]];if(this.matchesOriginal(d,o)){if(l===0)return f>0&&this._nodesOccurrencesCountCache.set(s,{test:o,count:f,i:p}),d;l--}}}return null}matchesOriginal(s,o){return s.end-s.start!==o.length?!1:s.value!=null?s.value===o:this._source.startsWith(o,s.start)}startMatches(s,o){const l=this._nodesToTokenIndexes.get(s);if(!l)return!1;const c=this._tokens[l[0]];return c.start!==s.start?!1:this.matchesOriginal(c,o)}endMatches(s,o){const l=this._nodesToTokenIndexes.get(s);if(!l)return!1;const c=this._tokens[l[l.length-1]];return c.end!==s.end?!1:this.matchesOriginal(c,o)}_getTokensIndexesOfNode(s){var o;if(s.start==null||s.end==null)return[];const{first:l,last:c}=this._findTokensOfNode(s,0,this._tokens.length-1);let p=l;const f=i(s);(s.type==="ExportNamedDeclaration"||s.type==="ExportDefaultDeclaration")&&((o=s.declaration)==null?void 0:o.type)==="ClassDeclaration"&&f.next();const d=[];for(const h of f){if(h==null||h.start==null||h.end==null)continue;const v=this._findTokensOfNode(h,p,c),x=v.first;for(let y=p;y<x;y++)d.push(y);p=v.last+1}for(let h=p;h<=c;h++)d.push(h);return d}_findTokensOfNode(s,o,l){const c=this._tokensCache.get(s);if(c)return c;const p=this._findFirstTokenOfNode(s.start,o,l),f=this._findLastTokenOfNode(s.end,p,l);return this._tokensCache.set(s,{first:p,last:f}),{first:p,last:f}}_findFirstTokenOfNode(s,o,l){for(;o<=l;){const c=l+o>>1;if(s<this._tokens[c].start)l=c-1;else if(s>this._tokens[c].start)o=c+1;else return c}return o}_findLastTokenOfNode(s,o,l){for(;o<=l;){const c=l+o>>1;if(s<this._tokens[c].end)l=c-1;else if(s>this._tokens[c].end)o=c+1;else return c}return l}}xc.TokenMap=n;function*i(a){if(a.type==="TemplateLiteral"){yield a.quasis[0];for(let o=1;o<a.quasis.length;o++)yield a.expressions[o-1],yield a.quasis[o];return}const s=r[a.type];for(const o of s){const l=a[o];l&&(Array.isArray(l)?yield*l:yield l)}}return xc}var gO;function Y$(){if(gO)return gc;gO=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.default=void 0;var e=F$(),t=tl(),r=ER(),n=It(),i=H$(),a=C1();const{isExpression:s,isFunction:o,isStatement:l,isClassBody:c,isTSInterfaceBody:p,isTSEnumMember:f}=n,d=/e/i,h=/\.0+$/,v=/[\n\r\u2028\u2029]/,x=/[\n\r\u2028\u2029]|\*\//;function y(A){return A.type==="CommentLine"||v.test(A.value)}class m{constructor(E,P,_=null,I=null){this.tokenContext=t.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=E,this._tokens=_,this._originalCode=I,this._indentRepeat=E.indent.style.length,this._inputMap=(P==null?void 0:P._inputMap)||null,this._buf=new e.default(P,E.indent.style[0]);const{preserveFormat:k,compact:M,concise:D,retainLines:C,retainFunctionParens:L}=E;k&&(this._flags|=1),M&&(this._flags|=2),D&&(this._flags|=4),C&&(this._flags|=8),L&&(this._flags|=16),(E.auxiliaryCommentBefore||E.auxiliaryCommentAfter)&&(this._flags|=32)}enterDelimited(){const E=this._noLineTerminatorAfterNode;return E!==null&&(this._noLineTerminatorAfterNode=null),E}generate(E){return this.format.preserveFormat&&(this.tokenMap=new i.TokenMap(E,this._tokens,this._originalCode),this._boundGetRawIdentifier=a._getRawIdentifier.bind(this)),this.print(E),this._maybeAddAuxComment(),this._buf.get()}indent(E=this._flags){E&7||(this._indent+=this._indentRepeat)}dedent(E=this._flags){E&7||(this._indent-=this._indentRepeat)}semicolon(E=!1){const P=this._flags;if(P&32&&this._maybeAddAuxComment(),P&1){const _=this._currentNode;if(_.start!=null&&_.end!=null){if(!this.tokenMap.endMatches(_,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}const I=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[I[I.length-1]].loc.start)}}E?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(E){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",E.loc,-1),this.tokenChar(125)}rightParens(E){this.sourceWithOffset("end",E.loc,-1),this.tokenChar(41)}space(E=!1){if(!(this._flags&3))if(E)this._space();else{const P=this.getLastChar(!0);P!==0&&P!==32&&P!==10&&this._space()}}word(E,P=!1){this.tokenContext&=t.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(E);const _=this._flags;_&32&&this._maybeAddAuxComment(),_&1&&this._catchUpToCurrentToken(E);const I=this.getLastChar();(I===-2||I===-3||I===47&&E.charCodeAt(0)===47)&&this._space(),this._append(E,!1),this.setLastChar(-3),this._noLineTerminator=P}number(E,P){function _(I){if(I.length>2&&I.charCodeAt(0)===48){const k=I.charCodeAt(1);return k===98||k===111||k===120}return!1}this.word(E),Number.isInteger(P)&&!_(E)&&!d.test(E)&&!h.test(E)&&E.charCodeAt(E.length-1)!==46&&this.setLastChar(-2)}token(E,P=!1,_=0,I=!1){this.tokenContext&=t.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(E,_);const k=this._flags;if(k&32&&this._maybeAddAuxComment(),k&1&&this._catchUpToCurrentToken(E,_),I){const M=E.charCodeAt(0);((M===45&&E==="--"||M===61)&&this.getLastChar()===33||M===43&&this.getLastChar()===43||M===45&&this.getLastChar()===45||M===46&&this.getLastChar()===-2)&&this._space()}this._append(E,P),this._noLineTerminator=!1}tokenChar(E,P=0){this.tokenContext&=t.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(E,P);const _=this._flags;_&32&&this._maybeAddAuxComment(),_&1&&this._catchUpToCurrentToken(E,P),(E===43&&this.getLastChar()===43||E===45&&this.getLastChar()===45||E===46&&this.getLastChar()===-2)&&this._space(),this._appendChar(E),this._noLineTerminator=!1}newline(E=1,P=this._flags){if(!(E<=0)&&!(P&10)){if(P&4){this.space();return}E>2&&(E=2),E-=this._buf.getNewlineCount();for(let _=0;_<E;_++)this._newline()}}endsWith(E){return this.getLastChar(!0)===E}getLastChar(E){return this._buf.getLastChar(E)}setLastChar(E){this._buf._last=E}exactSource(E,P){if(!E){P();return}this._catchUp("start",E),this._buf.exactSource(E,P)}source(E,P){P&&(this._catchUp(E,P),this._buf.source(E,P))}sourceWithOffset(E,P,_){!P||this.format.preserveFormat||(this._catchUp(E,P),this._buf.sourceWithOffset(E,P,_))}sourceIdentifierName(E,P){if(!this._buf._canMarkIdName)return;const _=this._buf._sourcePosition;_.identifierNamePos=P,_.identifierName=E}_space(){this._queue(32)}_newline(){this._buf._queuedChar===32&&(this._buf._queuedChar=0),this._appendChar(10,!0)}_catchUpToCurrentToken(E,P=0){const _=this.tokenMap.findMatching(this._currentNode,E,P);_&&this._catchUpTo(_.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&this._appendChar(59,!0),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(E,P){this._maybeIndent(),this._buf.append(E,P)}_appendChar(E,P){P||this._maybeIndent(),this._buf.appendChar(E)}_queue(E){this._buf.queue(E),this.setLastChar(-1)}_maybeIndent(){const E=this._shouldIndent();E>0&&this._buf._appendChar(-1,E,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(E){if(!this.format.retainLines)return;const P=E-this._buf.getCurrentLine();for(let _=0;_<P;_++)this._newline()}_catchUp(E,P){const _=this._flags;if((_&1)===0){_&8&&P!=null&&P[E]&&this.catchUp(P[E].line);return}const I=P==null?void 0:P[E];I!=null&&this._catchUpTo(I)}_catchUpTo({line:E,column:P,index:_}){const I=E-this._buf.getCurrentLine();if(I>0&&this._noLineTerminator)return;for(let M=0;M<I;M++)this._newline();const k=I>0?P:P-this._buf.getCurrentColumn();if(k>0){const M=this._originalCode?this._originalCode.slice(_-k,_).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(k);this._append(M,!1),this.setLastChar(32)}}printTerminatorless(E){this._noLineTerminator=!0,this.print(E)}print(E,P=!1,_=!1,I){var k,M;if(!E)return;this._innerCommentsState=0;const{type:D,loc:C,extra:L}=E,q=this._flags;let $=!1;E._compact&&(this._flags|=4,$=!0);const z=r.generatorInfosMap.get(D);if(z===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(D)} with constructor ${JSON.stringify(E.constructor.name)}`);const[Q,V,X]=z,U=this._currentNode,N=this._currentTypeId;this._currentNode=E,this._currentTypeId=V,q&1&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let j;q&32&&(j=this._insideAux,this._insideAux=C==null,this._maybeAddAuxComment(this._insideAux&&!j));let F=0;_&&(F=this.tokenContext,F&t.TokenContext.forInOrInitHeadAccumulate?this.tokenContext=0:F=0);const R=L!=null&&L.parenthesized;let J=R&&q&1||R&&q&16&&V===71||U&&((0,t.parentNeedsParens)(E,U,N)||X!=null&&X(E,U,N,this.tokenContext,q&1?this._boundGetRawIdentifier:void 0));if(!J&&R&&(k=E.leadingComments)!=null&&k.length&&E.leadingComments[0].type==="CommentBlock")switch(N){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(U.callee!==E)break;default:J=!0}let se=!1;!J&&this._noLineTerminator&&((M=E.leadingComments)!=null&&M.some(y)||q&8&&C&&C.start.line>this._buf.getCurrentLine())&&(J=!0,se=!0);let ie;if(!J&&(P||(P=!!U&&this._noLineTerminatorAfterNode===U&&(0,t.isLastChild)(U,E)),P)){var ae;(ae=E.trailingComments)!=null&&ae.some(y)?s(E)&&(J=!0):(ie=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=E)}J&&(this.tokenChar(40),se&&this.indent(),this._innerCommentsState=0,_||(F=this.tokenContext),F&t.TokenContext.forInOrInitHeadAccumulate&&(this.tokenContext=0),ie=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(E,U),this.exactSource(V===139||V===66?null:C,Q.bind(this,E,U)),J?(this._printTrailingComments(E,U),se&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=P):P&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(E,U)):this._printTrailingComments(E,U,I),F&&(this.tokenContext=F),this._currentNode=U,this._currentTypeId=N,$&&(this._flags=q),q&32&&(this._insideAux=j),ie!=null&&(this._noLineTerminatorAfterNode=ie),this._innerCommentsState=0}_maybeAddAuxComment(E){E&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const E=this.format.auxiliaryCommentBefore;E&&this._printComment({type:"CommentBlock",value:E},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const E=this.format.auxiliaryCommentAfter;E&&this._printComment({type:"CommentBlock",value:E},0)}getPossibleRaw(E){const P=E.extra;if((P==null?void 0:P.raw)!=null&&P.rawValue!=null&&E.value===P.rawValue)return P.raw}printJoin(E,P,_,I,k,M,D){if(!(E!=null&&E.length))return;const C=this._flags;if(_==null&&C&8){var L;const z=(L=E[0].loc)==null?void 0:L.start.line;z!=null&&z!==this._buf.getCurrentLine()&&(_=!0)}_&&this.indent(C);const q=E.length;for(let z=0;z<q;z++){const Q=E[z];if(Q&&(P&&z===0&&this._buf.hasContent()&&this.newline(1,C),this.print(Q,!1,M,D||0),I!=null&&(z<q-1?I.call(this,z,!1):k&&I.call(this,z,!0)),P))if(z+1===q)this.newline(1,C);else{const V=this._lastCommentLine;if(V>0){var $;const X=((($=E[z+1].loc)==null?void 0:$.start.line)||0)-V;if(X>=0){this.newline(X||1,C);continue}}this.newline(1,C)}}_&&this.dedent(C)}printAndIndentOnComments(E){const P=E.leadingComments&&E.leadingComments.length>0;P&&this.indent(),this.print(E),P&&this.dedent()}printBlock(E){E.type!=="EmptyStatement"&&this.space(),this.print(E)}_printTrailingComments(E,P,_){const{innerComments:I,trailingComments:k}=E;I!=null&&I.length&&this._printComments(2,I,E,P,_),k!=null&&k.length?this._printComments(2,k,E,P,_):this._lastCommentLine=0}_printLeadingComments(E,P){const _=E.leadingComments;_!=null&&_.length&&this._printComments(0,_,E,P)}_maybePrintInnerComments(E,P){var _;const I=this._innerCommentsState;switch(I&3){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((I&4)>0,(_=this.tokenMap)==null?void 0:_.findMatching(this._currentNode,E,P))}}printInnerComments(E=!0,P){const _=this._currentNode,I=_.innerComments;if(!(I!=null&&I.length)){this._innerCommentsState=2;return}const k=this.endsWith(32);switch(E&&this.indent(),this._printComments(1,I,_,void 0,void 0,P)){case 2:this._innerCommentsState=2;case 1:k&&this.space()}E&&this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(E,P,_,I){this.printJoin(E,!0,P??!1,void 0,void 0,_,I)}printList(E,P,_,I,k,M){this.printJoin(E,_,I,k??T,P,M)}shouldPrintTrailingComma(E){if(!this.tokenMap)return null;const P=this.tokenMap.findLastIndex(this._currentNode,_=>this.tokenMap.matchesOriginal(_,typeof E=="number"?String.fromCharCode(E):E));return P<=0?null:this.tokenMap.matchesOriginal(this._tokens[P-1],",")}_shouldPrintComment(E,P){if(E.ignore||this._printedComments.has(E))return 0;if(this._noLineTerminator&&x.test(E.value))return 2;if(P&&this.tokenMap){const _=this.tokenMap.find(this._currentNode,I=>I.value===E.value);if(_&&_.start>P.start)return 2}return this._printedComments.add(E),this.format.shouldPrintComment(E.value)?1:0}_printComment(E,P){const _=this._noLineTerminator,I=E.type==="CommentBlock",k=I&&P!==1&&!_;switch(k&&this._buf.hasContent()&&P!==2&&this.newline(1),this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let M;if(I){if(M=`/*${E.value}*/`,this.format.indent.adjustMultilineComment){var D;const C=(D=E.loc)==null?void 0:D.start.column;if(C){const L=new RegExp("\\n\\s{1,"+C+"}","g");M=M.replace(L,`
`)}if(this._flags&4)M=M.replace(/\n(?!$)/g,`
`);else{let L=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent()||this.format.retainLines)&&(L+=this._indent),M=M.replace(/\n(?!$)/g,`
${" ".repeat(L)}`)}}}else _?M=`/*${E.value}*/`:M=`//${E.value}`;this.source("start",E.loc),this._append(M,I),!I&&!_&&this._newline(),k&&P!==3&&this.newline(1)}_printComments(E,P,_,I,k=0,M){const D=_.loc,C=P.length;let L=!!D;const q=L?D.start.line:0,$=L?D.end.line:0;let z=0,Q=0;const{_noLineTerminator:V,_flags:X}=this;for(let U=0;U<C;U++){const N=P[U],j=this._shouldPrintComment(N,M);if(j===2)return U===0?0:1;if(L&&N.loc&&j===1){const F=N.loc.start.line,R=N.loc.end.line;if(E===0){let J=0;if(U===0?this._buf.hasContent()&&(N.type==="CommentLine"||F!==R)&&(J=Q=1):J=F-z,z=R,J>0&&!V&&this.newline(J,X),this._printComment(N,1),U+1===C){const se=Math.max(q-z,Q);se>0&&!V&&this.newline(se,X),z=q}}else if(E===1){const J=F-(U===0?q:z);if(z=R,J>0&&!V&&this.newline(J,X),this._printComment(N,1),U+1===C){const se=Math.min(1,$-z);se>0&&!V&&this.newline(se,X),z=$}}else{const J=F-(U===0?$-k:z);z=R,J>0&&!V&&this.newline(J,X),this._printComment(N,1)}}else{if(L=!1,j!==1)continue;if(C===1){const F=N.loc?N.loc.start.line===N.loc.end.line:!v.test(N.value),R=F&&!l(_)&&!c(I)&&!p(I)&&!f(_);E===0?this._printComment(N,R&&_.type!=="ObjectExpression"||F&&o(I)&&I.body===_?1:0):R&&E===2?this._printComment(N,1):this._printComment(N,0)}else E===1&&!(_.type==="ObjectExpression"&&_.properties.length>1)&&_.type!=="ClassBody"&&_.type!=="TSInterfaceBody"?this._printComment(N,U===0?2:U===C-1?3:0):this._printComment(N,0)}}return E===2&&L&&z&&(this._lastCommentLine=z),2}}gc.default=m;function T(A,E){this.tokenChar(44,A),E||this.space()}return gc}var vO;function PR(){if(vO)return _o;vO=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=void 0,_o.generate=n;var e=B$(),t=Y$();function r(i,a,s){var o;if(a.experimental_preserveFormat){if(typeof i!="string")throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!a.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(a.compact&&a.compact!=="auto")throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(a.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(a.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(s.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}const l={auxiliaryCommentBefore:a.auxiliaryCommentBefore,auxiliaryCommentAfter:a.auxiliaryCommentAfter,shouldPrintComment:a.shouldPrintComment,preserveFormat:a.experimental_preserveFormat,retainLines:a.retainLines,retainFunctionParens:a.retainFunctionParens,comments:a.comments==null||a.comments,compact:a.compact,minified:a.minified,concise:a.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},a.jsescOption),topicToken:a.topicToken};l.decoratorsBeforeExport=a.decoratorsBeforeExport,l.jsescOption.json=a.jsonCompatibleStrings,l.recordAndTupleSyntaxType=(o=a.recordAndTupleSyntaxType)!=null?o:"hash",l.importAttributesKeyword=a.importAttributesKeyword,l.minified?(l.compact=!0,l.shouldPrintComment=l.shouldPrintComment||(()=>l.comments)):l.shouldPrintComment=l.shouldPrintComment||(d=>l.comments||d.includes("@license")||d.includes("@preserve")),l.compact==="auto"&&(l.compact=typeof i=="string"&&i.length>5e5,l.compact),(l.compact||l.preserveFormat)&&(l.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:c,auxiliaryCommentAfter:p,shouldPrintComment:f}=l;return c&&!f(c)&&(l.auxiliaryCommentBefore=void 0),p&&!f(p)&&(l.auxiliaryCommentAfter=void 0),l}_o.CodeGenerator=class{constructor(a,s={},o){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=a,this._format=r(o,s,a),this._map=s.sourceMaps?new e.default(s,o):null}generate(){return new t.default(this._format,this._map).generate(this._ast)}};function n(i,a={},s){const o=r(s,a,i),l=a.sourceMaps?new e.default(a,s):null;return new t.default(o,l,i.tokens,typeof s=="string"?s:null).generate(i)}return _o.default=n,_o}var yn={},bO;function X$(){if(bO)return yn;bO=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.find=n,yn.findParent=r,yn.getAncestry=l,yn.getDeepestCommonAncestorFrom=o,yn.getEarliestCommonAncestorFrom=s,yn.getFunctionParent=i,yn.getStatementParent=a,yn.inType=f,yn.isAncestor=c,yn.isDescendant=p;var e=It();const{VISITOR_KEYS:t}=e;function r(d){let h=this;for(;h=h.parentPath;)if(d(h))return h;return null}function n(d){let h=this;do if(d(h))return h;while(h=h.parentPath);return null}function i(){return this.findParent(d=>d.isFunction())}function a(){let d=this;do{if(!d.parentPath||Array.isArray(d.container)&&d.isStatement())break;d=d.parentPath}while(d);if(d&&(d.isProgram()||d.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return d}function s(d){return this.getDeepestCommonAncestorFrom(d,function(h,v,x){let y;const m=t[h.type];for(const T of x){const A=T[v+1];if(!y){y=A;continue}if(A.listKey&&y.listKey===A.listKey&&A.key<y.key){y=A;continue}const E=m.indexOf(y.parentKey),P=m.indexOf(A.parentKey);E>P&&(y=A)}return y})}function o(d,h){if(!d.length)return this;if(d.length===1)return d[0];let v=1/0,x,y;const m=d.map(A=>{const E=[];do E.unshift(A);while((A=A.parentPath)&&A!==this);return E.length<v&&(v=E.length),E}),T=m[0];e:for(let A=0;A<v;A++){const E=T[A];for(const P of m)if(P[A]!==E)break e;x=A,y=E}if(y)return h?h(y,x,m):y;throw new Error("Couldn't find intersection")}function l(){let d=this;const h=[];do h.push(d);while(d=d.parentPath);return h}function c(d){return d.isDescendant(this)}function p(d){return!!this.findParent(h=>h===d)}function f(...d){let h=this;for(;h;){if(d.includes(h.node.type))return!0;h=h.parentPath}return!1}return yn}var Wi={},Vg={},Od={},Cd={},xO;function AR(){if(xO)return Cd;xO=1,Object.defineProperty(Cd,"__esModule",{value:!0}),Cd.createUnionType=s;var e=It();const{createFlowUnionType:t,createTSUnionType:r,createUnionTypeAnnotation:n,isFlowType:i,isTSType:a}=e;function s(o){if(o.every(l=>i(l)))return t?t(o):n(o);if(o.every(l=>a(l))&&r)return r(o)}return Cd}var TO;function G$(){if(TO)return Od;TO=1,Object.defineProperty(Od,"__esModule",{value:!0}),Od.default=s;var e=It(),t=AR();const{BOOLEAN_NUMBER_BINARY_OPERATORS:r,createTypeAnnotationBasedOnTypeof:n,numberTypeAnnotation:i,voidTypeAnnotation:a}=e;function s(d){if(!this.isReferenced())return;const h=this.scope.getBinding(d.name);if(h)return h.identifier.typeAnnotation?h.identifier.typeAnnotation:o(h,this,d.name);if(d.name==="undefined")return a();if(d.name==="NaN"||d.name==="Infinity")return i();d.name}function o(d,h,v){const x=[],y=[];let m=l(d,h,y);const T=f(d,h,v);if(T){const A=l(d,T.ifStatement);m=m.filter(E=>!A.includes(E)),x.push(T.typeAnnotation)}if(m.length){m.push(...y);for(const A of m)x.push(A.getTypeAnnotation())}if(x.length)return(0,t.createUnionType)(x)}function l(d,h,v){const x=d.constantViolations.slice();return x.unshift(d.path),x.filter(y=>{y=y.resolve();const m=y._guessExecutionStatusRelativeTo(h);return v&&m==="unknown"&&v.push(y),m==="before"})}function c(d,h){const v=h.node.operator,x=h.get("right").resolve(),y=h.get("left").resolve();let m;if(y.isIdentifier({name:d})?m=x:x.isIdentifier({name:d})&&(m=y),m)return v==="==="?m.getTypeAnnotation():r.includes(v)?i():void 0;if(v!=="==="&&v!=="==")return;let T,A;if(y.isUnaryExpression({operator:"typeof"})?(T=y,A=x):x.isUnaryExpression({operator:"typeof"})&&(T=x,A=y),!T||!T.get("argument").isIdentifier({name:d})||(A=A.resolve(),!A.isLiteral()))return;const E=A.node.value;if(typeof E=="string")return n(E)}function p(d,h,v){let x;for(;x=h.parentPath;){if(x.isIfStatement()||x.isConditionalExpression())return h.key==="test"?void 0:x;if(x.isFunction()&&(v==null||x.parentPath.scope.getBinding(v)!==d))return;h=x}}function f(d,h,v){const x=p(d,h,v);if(!x)return;const m=[x.get("test")],T=[];for(let A=0;A<m.length;A++){const E=m[A];if(E.isLogicalExpression())E.node.operator==="&&"&&(m.push(E.get("left")),m.push(E.get("right")));else if(E.isBinaryExpression()){const P=c(v,E);P&&T.push(P)}}return T.length?{typeAnnotation:(0,t.createUnionType)(T),ifStatement:x}:f(d,x,v)}return Od}var SO;function J$(){return SO||(SO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayExpression=ie,e.AssignmentExpression=X,e.BinaryExpression=q,e.BooleanLiteral=F,e.CallExpression=Be,e.ConditionalExpression=z,e.ClassDeclaration=e.ClassExpression=e.FunctionDeclaration=e.ArrowFunctionExpression=e.FunctionExpression=fe,Object.defineProperty(e,"Identifier",{enumerable:!0,get:function(){return r.default}}),e.LogicalExpression=$,e.NewExpression=D,e.NullLiteral=R,e.NumericLiteral=j,e.ObjectExpression=se,e.ParenthesizedExpression=V,e.RegExpLiteral=J,e.RestElement=ae,e.SequenceExpression=Q,e.StringLiteral=N,e.TSAsExpression=k,e.TSNonNullExpression=M,e.TaggedTemplateExpression=Re,e.TemplateLiteral=C,e.TypeCastExpression=I,e.UnaryExpression=L,e.UpdateExpression=U,e.VariableDeclarator=_;var t=It(),r=G$(),n=AR();const{BOOLEAN_BINARY_OPERATORS:i,BOOLEAN_UNARY_OPERATORS:a,NUMBER_BINARY_OPERATORS:s,NUMBER_UNARY_OPERATORS:o,STRING_UNARY_OPERATORS:l,anyTypeAnnotation:c,arrayTypeAnnotation:p,booleanTypeAnnotation:f,buildMatchMemberExpression:d,genericTypeAnnotation:h,identifier:v,nullLiteralTypeAnnotation:x,numberTypeAnnotation:y,stringTypeAnnotation:m,tupleTypeAnnotation:T,unionTypeAnnotation:A,voidTypeAnnotation:E,isIdentifier:P}=t;function _(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function I(ze){return ze.typeAnnotation}I.validParent=!0;function k(ze){return ze.typeAnnotation}k.validParent=!0;function M(){return this.get("expression").getTypeAnnotation()}function D(ze){if(ze.callee.type==="Identifier")return h(ze.callee)}function C(){return m()}function L(ze){const je=ze.operator;if(je==="void")return E();if(o.includes(je))return y();if(l.includes(je))return m();if(a.includes(je))return f()}function q(ze){const je=ze.operator;if(s.includes(je))return y();if(i.includes(je))return f();if(je==="+"){const re=this.get("right"),ue=this.get("left");return ue.isBaseType("number")&&re.isBaseType("number")?y():ue.isBaseType("string")||re.isBaseType("string")?m():A([m(),y()])}}function $(){const ze=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,n.createUnionType)(ze)}function z(){const ze=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,n.createUnionType)(ze)}function Q(){return this.get("expressions").pop().getTypeAnnotation()}function V(){return this.get("expression").getTypeAnnotation()}function X(){return this.get("right").getTypeAnnotation()}function U(ze){const je=ze.operator;if(je==="++"||je==="--")return y()}function N(){return m()}function j(){return y()}function F(){return f()}function R(){return x()}function J(){return h(v("RegExp"))}function se(){return h(v("Object"))}function ie(){return h(v("Array"))}function ae(){return ie()}ae.validParent=!0;function fe(){return h(v("Function"))}const de=d("Array.from"),Se=d("Object.keys"),Ce=d("Object.values"),xe=d("Object.entries");function Be(){const{callee:ze}=this.node;return Se(ze)?p(m()):de(ze)||Ce(ze)||P(ze,{name:"Array"})?p(c()):xe(ze)?p(T([m(),c()])):He(this.get("callee"))}function Re(){return He(this.get("tag"))}function He(ze){if(ze=ze.resolve(),ze.isFunction()){const{node:je}=ze;if(je.async)return je.generator?h(v("AsyncIterator")):h(v("Promise"));if(je.generator)return h(v("Iterator"));if(ze.node.returnType)return ze.node.returnType}}})(Vg)),Vg}var EO;function Q$(){if(EO)return Wi;EO=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi._getTypeAnnotation=k,Wi.baseTypeStrictlyMatches=L,Wi.couldBeBaseType=C,Wi.getTypeAnnotation=_,Wi.isBaseType=M,Wi.isGenericType=q;var e=J$(),t=It();const{anyTypeAnnotation:r,isAnyTypeAnnotation:n,isArrayTypeAnnotation:i,isBooleanTypeAnnotation:a,isEmptyTypeAnnotation:s,isFlowBaseAnnotation:o,isGenericTypeAnnotation:l,isIdentifier:c,isMixedTypeAnnotation:p,isNumberTypeAnnotation:f,isStringTypeAnnotation:d,isTSArrayType:h,isTSTypeAnnotation:v,isTSTypeReference:x,isTupleTypeAnnotation:y,isTypeAnnotation:m,isUnionTypeAnnotation:T,isVoidTypeAnnotation:A,stringTypeAnnotation:E,voidTypeAnnotation:P}=t;function _(){let $=this.getData("typeAnnotation");return $!=null||($=k.call(this)||r(),(m($)||v($))&&($=$.typeAnnotation),this.setData("typeAnnotation",$)),$}const I=new WeakSet;function k(){const $=this.node;if(!$)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){const Q=this.parentPath.parentPath,V=Q.parentPath;return Q.key==="left"&&V.isForInStatement()?E():Q.key==="left"&&V.isForOfStatement()?r():P()}else return;if($.typeAnnotation)return $.typeAnnotation;if(!I.has($)){I.add($);try{var z;let Q=e[$.type];if(Q)return Q.call(this,$);if(Q=e[this.parentPath.type],(z=Q)!=null&&z.validParent)return this.parentPath.getTypeAnnotation()}finally{I.delete($)}}}function M($,z){return D($,this.getTypeAnnotation(),z)}function D($,z,Q){if($==="string")return d(z);if($==="number")return f(z);if($==="boolean")return a(z);if($==="any")return n(z);if($==="mixed")return p(z);if($==="empty")return s(z);if($==="void")return A(z);if(Q)return!1;throw new Error(`Unknown base type ${$}`)}function C($){const z=this.getTypeAnnotation();if(n(z))return!0;if(T(z)){for(const Q of z.types)if(n(Q)||D($,Q,!0))return!0;return!1}else return D($,z,!0)}function L($){const z=this.getTypeAnnotation(),Q=$.getTypeAnnotation();return!n(z)&&o(z)?Q.type===z.type:!1}function q($){const z=this.getTypeAnnotation();return $==="Array"&&(h(z)||i(z)||y(z))?!0:l(z)&&c(z.id,{name:$})||x(z)&&c(z.typeName,{name:$})}return Wi}var Hi={},fl={},Id={exports:{}},PO;function Z$(){if(PO)return Id.exports;PO=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return Id.exports=t(),Id.exports.createColors=t,Id.exports}var Tc={},AO;function eU(){return AO||(AO=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,Tc.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}),Tc}var wO;function wR(){if(wO)return fl;wO=1;var e={};Object.defineProperty(fl,"__esModule",{value:!0});var t=Z$(),r=eU(),n=Om();function i(){return typeof process=="object"&&(e.FORCE_COLOR==="0"||e.FORCE_COLOR==="false")?!1:t.isColorSupported}const a=(_,I)=>k=>_(I(k));function s(_){return{keyword:_.cyan,capitalized:_.yellow,jsxIdentifier:_.yellow,punctuator:_.yellow,number:_.magenta,string:_.green,regex:_.magenta,comment:_.gray,invalid:a(a(_.white,_.bgRed),_.bold),gutter:_.gray,marker:a(_.red,_.bold),message:a(_.red,_.bold),reset:_.reset}}const o=s(t.createColors(!0)),l=s(t.createColors(!1));function c(_){return _?o:l}const p=new Set(["as","async","from","get","of","set"]),f=/\r\n|[\n\r\u2028\u2029]/,d=/^[()[\]{}]$/;let h;const v=/^[a-z][\w-]*$/i,x=function(_,I,k){if(_.type==="name"){const M=_.value;if(n.isKeyword(M)||n.isStrictReservedWord(M,!0)||p.has(M))return"keyword";if(v.test(M)&&(k[I-1]==="<"||k.slice(I-2,I)==="</"))return"jsxIdentifier";const D=String.fromCodePoint(M.codePointAt(0));if(D!==D.toLowerCase())return"capitalized"}return _.type==="punctuator"&&d.test(_.value)?"bracket":_.type==="invalid"&&(_.value==="@"||_.value==="#")?"punctuator":_.type};h=function*(_){let I;for(;I=r.default.exec(_);){const k=r.matchToToken(I);yield{type:x(k,I.index,_),value:k.value}}};function y(_){if(_==="")return"";const I=c(!0);let k="";for(const{type:M,value:D}of h(_))M in I?k+=D.split(f).map(C=>I[M](C)).join(`
`):k+=D;return k}let m=!1;const T=/\r\n|[\n\r\u2028\u2029]/;function A(_,I,k,M){const D=Object.assign({column:0,line:-1},_.start),C=Object.assign({},D,_.end),{linesAbove:L=2,linesBelow:q=3}=k||{},$=D.line-M,z=D.column,Q=C.line-M,V=C.column;let X=Math.max($-(L+1),0),U=Math.min(I.length,Q+q);$===-1&&(X=0),Q===-1&&(U=I.length);const N=Q-$,j={};if(N)for(let F=0;F<=N;F++){const R=F+$;if(!z)j[R]=!0;else if(F===0){const J=I[R-1].length;j[R]=[z,J-z+1]}else if(F===N)j[R]=[0,V];else{const J=I[R-F].length;j[R]=[0,J]}}else z===V?z?j[$]=[z,0]:j[$]=!0:j[$]=[z,V-z];return{start:X,end:U,markerLines:j}}function E(_,I,k={}){const M=k.forceColor||i()&&k.highlightCode,D=(k.startLine||1)-1,C=c(M),L=_.split(T),{start:q,end:$,markerLines:z}=A(I,L,k,D),Q=I.start&&typeof I.start.column=="number",V=String($+D).length;let U=(M?y(_):_).split(T,$).slice(q,$).map((N,j)=>{const F=q+1+j,J=` ${` ${F+D}`.slice(-V)} |`,se=z[F],ie=!z[F+1];if(se){let ae="";if(Array.isArray(se)){const fe=N.slice(0,Math.max(se[0]-1,0)).replace(/[^\t]/g," "),de=se[1]||1;ae=[`
`,C.gutter(J.replace(/\d/g," "))," ",fe,C.marker("^").repeat(de)].join(""),ie&&k.message&&(ae+=" "+C.message(k.message))}return[C.marker(">"),C.gutter(J),N.length>0?` ${N}`:"",ae].join("")}else return` ${C.gutter(J)}${N.length>0?` ${N}`:""}`}).join(`
`);return k.message&&!Q&&(U=`${" ".repeat(V+1)}${k.message}
${U}`),M?C.reset(U):U}function P(_,I,k,M={}){if(!m){m=!0;const C="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(C,"DeprecationWarning");else{const L=new Error(C);L.name="DeprecationWarning"}}return k=Math.max(k,0),E(_,{start:{column:k,line:I}},M)}return fl.codeFrameColumns=E,fl.default=P,fl.highlight=y,fl}var gn={},Yi={},Sc={},_O;function tU(){return _O||(_O=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.hooks=void 0,Sc.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]),Sc}var OO;function I1(){if(OO)return Yi;OO=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi._assertUnremoved=d,Yi._callRemovalHooks=c,Yi._markRemoved=f,Yi._remove=p,Yi._removeFromScope=l,Yi.remove=o;var e=tU(),t=bu(),r=_R(),n=Cs(),i=It(),a=k1(),s=oi();function o(){var h;if(d.call(this),s.resync.call(this),c.call(this)){f.call(this);return}(h=this.opts)!=null&&h.noScope||l.call(this),this.shareCommentsWithSiblings(),p.call(this),f.call(this)}function l(){const h=i.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(h).forEach(v=>this.scope.removeBinding(v))}function c(){if(this.parentPath){for(const h of e.hooks)if(h(this,this.parentPath))return!0}}function p(){Array.isArray(this.container)?(this.container.splice(this.key,1),a.updateSiblingKeys.call(this,this.key,-1)):r._replaceWith.call(this,null)}function f(){if(this._traverseFlags|=n.SHOULD_SKIP|n.REMOVED,this.parent){var h;(h=(0,t.getCachedPaths)(this))==null||h.delete(this.node)}this.node=null}function d(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}return Yi}var Ec={},CO;function rU(){if(CO)return Ec;CO=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.default=void 0;var e=It(),t=e;const{react:r}=e,{cloneNode:n,jsxExpressionContainer:i,variableDeclaration:a,variableDeclarator:s}=t,o={ReferencedIdentifier(c,p){if(c.isJSXIdentifier()&&r.isCompatTag(c.node.name)&&!c.parentPath.isJSXMemberExpression())return;if(c.node.name==="this"){let d=c.scope;do if(d.path.isFunction()&&!d.path.isArrowFunctionExpression())break;while(d=d.parent);d&&p.breakOnScopePaths.push(d.path)}const f=c.scope.getBinding(c.node.name);if(f){for(const d of f.constantViolations)if(d.scope!==f.path.scope){p.mutableBinding=!0,c.stop();return}f===p.scope.getBinding(c.node.name)&&(p.bindings[c.node.name]=f)}}};class l{constructor(p,f){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=f,this.path=p,this.attachAfter=!1}isCompatibleScope(p){for(const f of Object.keys(this.bindings)){const d=this.bindings[f];if(!p.bindingIdentifierEquals(f,d.identifier))return!1}return!0}getCompatibleScopes(){let p=this.path.scope;do{if(this.isCompatibleScope(p))this.scopes.push(p);else break;if(this.breakOnScopePaths.includes(p.path))break}while(p=p.parent)}getAttachmentPath(){let p=this._getAttachmentPath();if(!p)return;let f=p.scope;if(f.path===p&&(f=p.scope.parent),f.path.isProgram()||f.path.isFunction())for(const d of Object.keys(this.bindings)){if(!f.hasOwnBinding(d))continue;const h=this.bindings[d];if(h.kind==="param"||h.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(h.path).key>=p.key){this.attachAfter=!0,p=h.path;for(const x of h.constantViolations)this.getAttachmentParentForPath(x).key>p.key&&(p=x)}}return p}_getAttachmentPath(){const f=this.scopes.pop();if(f){if(f.path.isFunction())if(this.hasOwnParamBindings(f)){if(this.scope===f)return;const d=f.path.get("body").get("body");for(let h=0;h<d.length;h++)if(!d[h].node._blockHoist)return d[h]}else return this.getNextScopeAttachmentParent();else if(f.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){const p=this.scopes.pop();if(p)return this.getAttachmentParentForPath(p.path)}getAttachmentParentForPath(p){do if(!p.parentPath||Array.isArray(p.container)&&p.isStatement())return p;while(p=p.parentPath);return p}hasOwnParamBindings(p){for(const f of Object.keys(this.bindings)){if(!p.hasOwnBinding(f))continue;const d=this.bindings[f];if(d.kind==="param"&&d.constant)return!0}return!1}run(){if(this.path.traverse(o,this),this.mutableBinding)return;this.getCompatibleScopes();const p=this.getAttachmentPath();if(!p||p.getFunctionParent()===this.path.getFunctionParent())return;let f=p.scope.generateUidIdentifier("ref");const d=s(f,this.path.node),h=this.attachAfter?"insertAfter":"insertBefore",[v]=p[h]([p.isVariableDeclarator()?d:a("var",[d])]),x=this.path.parentPath;return x.isJSXElement()&&this.path.container===x.node.children&&(f=i(f)),this.path.replaceWith(n(f)),v.isVariableDeclarator()?v.get("init"):v.get("declarations.0.init")}}return Ec.default=l,Ec}var IO;function k1(){if(IO)return gn;IO=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn._containerInsert=_,gn._containerInsertAfter=k,gn._containerInsertBefore=I,gn._verifyNodeList=$,gn.insertAfter=L,gn.insertBefore=P,gn.pushContainer=Q,gn.unshiftContainer=z,gn.updateSiblingKeys=q;var e=bu(),t=Cs(),r=oi(),n=I1(),i=It(),a=rU();const{arrowFunctionExpression:s,assertExpression:o,assignmentExpression:l,blockStatement:c,callExpression:p,cloneNode:f,expressionStatement:d,isAssignmentExpression:h,isCallExpression:v,isExportNamedDeclaration:x,isExpression:y,isIdentifier:m,isSequenceExpression:T,isSuper:A,thisExpression:E}=i;function P(V){n._assertUnremoved.call(this);const X=$.call(this,V),{parentPath:U,parent:N}=this;if(U.isExpressionStatement()||U.isLabeledStatement()||x(N)||U.isExportDefaultDeclaration()&&this.isDeclaration())return U.insertBefore(X);if(this.isNodeType("Expression")&&!this.isJSXElement()||U.isForStatement()&&this.key==="init")return this.node&&X.push(this.node),this.replaceExpressionWithStatements(X);if(Array.isArray(this.container))return I.call(this,X);if(this.isStatementOrBlock()){const j=this.node,F=j&&(!this.isExpressionStatement()||j.expression!=null),[R]=this.replaceWith(c(F?[j]:[]));return R.unshiftContainer("body",X)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function _(V,X){q.call(this,V,X.length);const U=[];this.container.splice(V,0,...X);for(let F=0;F<X.length;F++){var N;const R=V+F,J=this.getSibling(R);U.push(J),(N=this.context)!=null&&N.queue&&r.pushContext.call(J,this.context)}const j=r._getQueueContexts.call(this);for(const F of U){r.setScope.call(F),F.debug("Inserted.");for(const R of j)R.maybeQueue(F,!0)}return U}function I(V){return _.call(this,this.key,V)}function k(V){return _.call(this,this.key+1,V)}const M=V=>V[V.length-1];function D(V){return T(V.parent)&&(M(V.parent.expressions)!==V.node||D(V.parentPath))}function C(V,X){if(!h(V)||!m(V.left))return!1;const U=X.getBlockParent();return U.hasOwnBinding(V.left.name)&&U.getOwnBinding(V.left.name).constantViolations.length<=1}function L(V){if(n._assertUnremoved.call(this),this.isSequenceExpression())return M(this.get("expressions")).insertAfter(V);const X=$.call(this,V),{parentPath:U,parent:N}=this;if(U.isExpressionStatement()||U.isLabeledStatement()||x(N)||U.isExportDefaultDeclaration()&&this.isDeclaration())return U.insertAfter(X.map(j=>y(j)?d(j):j));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!U.isJSXElement()||U.isForStatement()&&this.key==="init"){const j=this;if(j.node){const F=j.node;let{scope:R}=this;if(R.path.isPattern())return o(F),j.replaceWith(p(s([],F),[])),j.get("callee.body").insertAfter(X),[j];if(D(j))X.unshift(F);else if(v(F)&&A(F.callee))X.unshift(F),X.push(E());else if(C(F,R))X.unshift(F),X.push(f(F.left));else if(R.isPure(F,!0))X.push(F);else{U.isMethod({computed:!0,key:F})&&(R=R.parent);const J=R.generateDeclaredUidIdentifier();X.unshift(d(l("=",f(J),F))),X.push(d(f(J)))}}return this.replaceExpressionWithStatements(X)}else{if(Array.isArray(this.container))return k.call(this,X);if(this.isStatementOrBlock()){const j=this.node,F=j&&(!this.isExpressionStatement()||j.expression!=null),[R]=this.replaceWith(c(F?[j]:[]));return R.pushContainer("body",X)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function q(V,X){if(!this.parent)return;const U=(0,e.getCachedPaths)(this);if(U)for(const[,N]of U)typeof N.key=="number"&&N.container===this.container&&N.key>=V&&(N.key+=X)}function $(V){if(!V)return[];Array.isArray(V)||(V=[V]);for(let X=0;X<V.length;X++){const U=V[X];let N;if(U?typeof U!="object"?N="contains a non-object node":U.type?U instanceof t.default&&(N="has a NodePath when it expected a raw object"):N="without a type":N="has falsy node",N){const j=Array.isArray(U)?"array":typeof U;throw new Error(`Node list ${N} with the index of ${X} and type of ${j}`)}}return V}function z(V,X){n._assertUnremoved.call(this);const U=$.call(this,X),N=this.node[V],j=t.default.get({parentPath:this,parent:this.node,container:N,listKey:V,key:0}).setContext(this.context);return I.call(j,U)}function Q(V,X){n._assertUnremoved.call(this);const U=$.call(this,X),N=this.node[V];return t.default.get({parentPath:this,parent:this.node,container:N,listKey:V,key:N.length}).setContext(this.context).replaceWithMultiple(U)}return gn.hoist=function(X=this.scope){return new a.default(this,X).run()},gn}var pl={},kO;function N1(){if(kO)return pl;kO=1,Object.defineProperty(pl,"__esModule",{value:!0});function e(G,g){if(G==null)return{};var u={};for(var b in G)if({}.hasOwnProperty.call(G,b)){if(g.indexOf(b)!==-1)continue;u[b]=G[b]}return u}class t{constructor(g,u,b){this.line=void 0,this.column=void 0,this.index=void 0,this.line=g,this.column=u,this.index=b}}class r{constructor(g,u){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=g,this.end=u}}function n(G,g){const{line:u,column:b,index:w}=G;return new t(u,b+g,w+g)}const i="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var a={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:i},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:i}};const s={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},o=G=>G.type==="UpdateExpression"?s.UpdateExpression[`${G.prefix}`]:s[G.type];var l={AccessorIsGenerator:({kind:G})=>`A ${G}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:G})=>`Missing initializer in ${G} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:G})=>`\`${G}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:G,exportName:g})=>`A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${G}' as '${g}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:G})=>`'${G==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:G})=>`Unsyntactic ${G==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:G})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${G}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:G})=>`Expected number in radix ${G}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:G})=>`Escape sequence in keyword ${G}.`,InvalidIdentifier:({identifierName:G})=>`Invalid identifier ${G}.`,InvalidLhs:({ancestor:G})=>`Invalid left-hand side in ${o(G)}.`,InvalidLhsBinding:({ancestor:G})=>`Binding invalid left-hand side in ${o(G)}.`,InvalidLhsOptionalChaining:({ancestor:G})=>`Invalid optional chaining in the left-hand side of ${o(G)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:G})=>`Unexpected character '${G}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:G})=>`Private name #${G} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:G})=>`Label '${G}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:G})=>`This experimental syntax requires enabling the parser plugin: ${G.map(g=>JSON.stringify(g)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:G})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${G.map(g=>JSON.stringify(g)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:G})=>`Duplicate key "${G}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:G})=>`An export name cannot include a lone surrogate, found '\\u${G.toString(16)}'.`,ModuleExportUndefined:({localName:G})=>`Export '${G}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:G})=>`Private names are only allowed in property accesses (\`obj.#${G}\`) or in \`in\` expressions (\`#${G} in obj\`).`,PrivateNameRedeclaration:({identifierName:G})=>`Duplicate private name #${G}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:G})=>`Unexpected keyword '${G}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:G})=>`Unexpected reserved word '${G}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:G,unexpected:g})=>`Unexpected token${g?` '${g}'.`:""}${G?`, expected "${G}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:G,onlyValidPropertyName:g})=>`The only valid meta property for ${G} is ${G}.${g}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:G})=>`Identifier '${G}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},c={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:G})=>`Assigning to '${G}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:G})=>`Binding '${G}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},p={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:G})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(G)}\`.`};const f=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var d=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:G})=>`Invalid topic token ${G}. In order to use ${G} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${G}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:G})=>`Hack-style pipe body cannot be an unparenthesized ${o({type:G})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const h=["message"];function v(G,g,u){Object.defineProperty(G,g,{enumerable:!1,configurable:!0,value:u})}function x({toMessage:G,code:g,reasonCode:u,syntaxPlugin:b}){const w=u==="MissingPlugin"||u==="MissingOneOfPlugins",B={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return B[u]&&(u=B[u]),function ee(le,be){const we=new SyntaxError;return we.code=g,we.reasonCode=u,we.loc=le,we.pos=le.index,we.syntaxPlugin=b,w&&(we.missingPlugin=be.missingPlugin),v(we,"clone",function(Ve={}){var Qe;const{line:tt,column:ct,index:Ct}=(Qe=Ve.loc)!=null?Qe:le;return ee(new t(tt,ct,Ct),Object.assign({},be,Ve.details))}),v(we,"details",be),Object.defineProperty(we,"message",{configurable:!0,get(){const Ne=`${G(be)} (${le.line}:${le.column})`;return this.message=Ne,Ne},set(Ne){Object.defineProperty(this,"message",{value:Ne,writable:!0})}}),we}}function y(G,g){if(Array.isArray(G))return b=>y(b,G[0]);const u={};for(const b of Object.keys(G)){const w=G[b],B=typeof w=="string"?{message:()=>w}:typeof w=="function"?{message:w}:w,{message:ee}=B,le=e(B,h),be=typeof ee=="string"?()=>ee:ee;u[b]=x(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:b,toMessage:be},g?{syntaxPlugin:g}:{},le))}return u}const m=Object.assign({},y(a),y(l),y(c),y(p),y`pipelineOperator`(d));function T(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function A(G){const g=T();if(G==null)return g;if(G.annexB!=null&&G.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(const u of Object.keys(g))G[u]!=null&&(g[u]=G[u]);if(g.startLine===1)G.startIndex==null&&g.startColumn>0?g.startIndex=g.startColumn:G.startColumn==null&&g.startIndex>0&&(g.startColumn=g.startIndex);else if((G.startColumn==null||G.startIndex==null)&&G.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(g.sourceType==="commonjs"){if(G.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(G.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(G.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return g}const{defineProperty:E}=Object,P=(G,g)=>{G&&E(G,g,{enumerable:!1,value:G[g]})};function _(G){return P(G.loc.start,"index"),P(G.loc.end,"index"),G}var I=G=>class extends G{parse(){const u=_(super.parse());return this.optionFlags&256&&(u.tokens=u.tokens.map(_)),u}parseRegExpLiteral({pattern:u,flags:b}){let w=null;try{w=new RegExp(u,b)}catch{}const B=this.estreeParseLiteral(w);return B.regex={pattern:u,flags:b},B}parseBigIntLiteral(u){let b;try{b=BigInt(u)}catch{b=null}const w=this.estreeParseLiteral(b);return w.bigint=String(w.value||u),w}parseDecimalLiteral(u){const w=this.estreeParseLiteral(null);return w.decimal=String(w.value||u),w}estreeParseLiteral(u){return this.parseLiteral(u,"Literal")}parseStringLiteral(u){return this.estreeParseLiteral(u)}parseNumericLiteral(u){return this.estreeParseLiteral(u)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(u){return this.estreeParseLiteral(u)}estreeParseChainExpression(u,b){const w=this.startNodeAtNode(u);return w.expression=u,this.finishNodeAt(w,"ChainExpression",b)}directiveToStmt(u){const b=u.value;delete u.value,this.castNodeTo(b,"Literal"),b.raw=b.extra.raw,b.value=b.extra.expressionValue;const w=this.castNodeTo(u,"ExpressionStatement");return w.expression=b,w.directive=b.extra.rawValue,delete b.extra,w}fillOptionalPropertiesForTSESLint(u){}cloneEstreeStringLiteral(u){const{start:b,end:w,loc:B,range:ee,raw:le,value:be}=u,we=Object.create(u.constructor.prototype);return we.type="Literal",we.start=b,we.end=w,we.loc=B,we.range=ee,we.raw=le,we.value=be,we}initFunction(u,b){super.initFunction(u,b),u.expression=!1}checkDeclaration(u){u!=null&&this.isObjectProperty(u)?this.checkDeclaration(u.value):super.checkDeclaration(u)}getObjectOrClassMethodParams(u){return u.value.params}isValidDirective(u){var b;return u.type==="ExpressionStatement"&&u.expression.type==="Literal"&&typeof u.expression.value=="string"&&!((b=u.expression.extra)!=null&&b.parenthesized)}parseBlockBody(u,b,w,B,ee){super.parseBlockBody(u,b,w,B,ee);const le=u.directives.map(be=>this.directiveToStmt(be));u.body=le.concat(u.body),delete u.directives}parsePrivateName(){const u=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(u):u}convertPrivateNameToPrivateIdentifier(u){const b=super.getPrivateNameSV(u);return delete u.id,u.name=b,this.castNodeTo(u,"PrivateIdentifier")}isPrivateName(u){return this.getPluginOption("estree","classFeatures")?u.type==="PrivateIdentifier":super.isPrivateName(u)}getPrivateNameSV(u){return this.getPluginOption("estree","classFeatures")?u.name:super.getPrivateNameSV(u)}parseLiteral(u,b){const w=super.parseLiteral(u,b);return w.raw=w.extra.raw,delete w.extra,w}parseFunctionBody(u,b,w=!1){super.parseFunctionBody(u,b,w),u.expression=u.body.type!=="BlockStatement"}parseMethod(u,b,w,B,ee,le,be=!1){let we=this.startNode();we.kind=u.kind,we=super.parseMethod(we,b,w,B,ee,le,be),delete we.kind;const{typeParameters:Ne}=u;Ne&&(delete u.typeParameters,we.typeParameters=Ne,this.resetStartLocationFromNode(we,Ne));const Ve=this.castNodeTo(we,"FunctionExpression");return u.value=Ve,le==="ClassPrivateMethod"&&(u.computed=!1),le==="ObjectMethod"?(u.kind==="method"&&(u.kind="init"),u.shorthand=!1,this.finishNode(u,"Property")):this.finishNode(u,"MethodDefinition")}nameIsConstructor(u){return u.type==="Literal"?u.value==="constructor":super.nameIsConstructor(u)}parseClassProperty(...u){const b=super.parseClassProperty(...u);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(b,"PropertyDefinition"),b}parseClassPrivateProperty(...u){const b=super.parseClassPrivateProperty(...u);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(b,"PropertyDefinition"),b.computed=!1),b}parseClassAccessorProperty(u){const b=super.parseClassAccessorProperty(u);return this.getPluginOption("estree","classFeatures")&&(b.abstract&&this.hasPlugin("typescript")?(delete b.abstract,this.castNodeTo(b,"TSAbstractAccessorProperty")):this.castNodeTo(b,"AccessorProperty")),b}parseObjectProperty(u,b,w,B){const ee=super.parseObjectProperty(u,b,w,B);return ee&&(ee.kind="init",this.castNodeTo(ee,"Property")),ee}finishObjectProperty(u){return u.kind="init",this.finishNode(u,"Property")}isValidLVal(u,b,w,B){return u==="Property"?"value":super.isValidLVal(u,b,w,B)}isAssignable(u,b){return u!=null&&this.isObjectProperty(u)?this.isAssignable(u.value,b):super.isAssignable(u,b)}toAssignable(u,b=!1){if(u!=null&&this.isObjectProperty(u)){const{key:w,value:B}=u;this.isPrivateName(w)&&this.classScope.usePrivateName(this.getPrivateNameSV(w),w.loc.start),this.toAssignable(B,b)}else super.toAssignable(u,b)}toAssignableObjectExpressionProp(u,b,w){u.type==="Property"&&(u.kind==="get"||u.kind==="set")?this.raise(m.PatternHasAccessor,u.key):u.type==="Property"&&u.method?this.raise(m.PatternHasMethod,u.key):super.toAssignableObjectExpressionProp(u,b,w)}finishCallExpression(u,b){const w=super.finishCallExpression(u,b);if(w.callee.type==="Import"){var B,ee;this.castNodeTo(w,"ImportExpression"),w.source=w.arguments[0],w.options=(B=w.arguments[1])!=null?B:null,w.attributes=(ee=w.arguments[1])!=null?ee:null,delete w.arguments,delete w.callee}else w.type==="OptionalCallExpression"?this.castNodeTo(w,"CallExpression"):w.optional=!1;return w}toReferencedArguments(u){u.type!=="ImportExpression"&&super.toReferencedArguments(u)}parseExport(u,b){const w=this.state.lastTokStartLoc,B=super.parseExport(u,b);switch(B.type){case"ExportAllDeclaration":B.exported=null;break;case"ExportNamedDeclaration":B.specifiers.length===1&&B.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(B,"ExportAllDeclaration"),B.exported=B.specifiers[0].exported,delete B.specifiers);case"ExportDefaultDeclaration":{var ee;const{declaration:le}=B;(le==null?void 0:le.type)==="ClassDeclaration"&&((ee=le.decorators)==null?void 0:ee.length)>0&&le.start===B.start&&this.resetStartLocation(B,w)}break}return B}stopParseSubscript(u,b){const w=super.stopParseSubscript(u,b);return b.optionalChainMember?this.estreeParseChainExpression(w,u.loc.end):w}parseMember(u,b,w,B,ee){const le=super.parseMember(u,b,w,B,ee);return le.type==="OptionalMemberExpression"?this.castNodeTo(le,"MemberExpression"):le.optional=!1,le}isOptionalMemberExpression(u){return u.type==="ChainExpression"?u.expression.type==="MemberExpression":super.isOptionalMemberExpression(u)}hasPropertyAsPrivateName(u){return u.type==="ChainExpression"&&(u=u.expression),super.hasPropertyAsPrivateName(u)}isObjectProperty(u){return u.type==="Property"&&u.kind==="init"&&!u.method}isObjectMethod(u){return u.type==="Property"&&(u.method||u.kind==="get"||u.kind==="set")}castNodeTo(u,b){const w=super.castNodeTo(u,b);return this.fillOptionalPropertiesForTSESLint(w),w}cloneIdentifier(u){const b=super.cloneIdentifier(u);return this.fillOptionalPropertiesForTSESLint(b),b}cloneStringLiteral(u){return u.type==="Literal"?this.cloneEstreeStringLiteral(u):super.cloneStringLiteral(u)}finishNodeAt(u,b,w){return _(super.finishNodeAt(u,b,w))}finishNode(u,b){const w=super.finishNode(u,b);return this.fillOptionalPropertiesForTSESLint(w),w}resetStartLocation(u,b){super.resetStartLocation(u,b),_(u)}resetEndLocation(u,b=this.state.lastTokEndLoc){super.resetEndLocation(u,b),_(u)}};class k{constructor(g,u){this.token=void 0,this.preserveSpace=void 0,this.token=g,this.preserveSpace=!!u}}const M={brace:new k("{"),j_oTag:new k("<tag"),j_cTag:new k("</tag"),j_expr:new k("<tag>...</tag>",!0)};M.template=new k("`",!0);const D=!0,C=!0,L=!0,q=!0,$=!0,z=!0;class Q{constructor(g,u={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=g,this.keyword=u.keyword,this.beforeExpr=!!u.beforeExpr,this.startsExpr=!!u.startsExpr,this.rightAssociative=!!u.rightAssociative,this.isLoop=!!u.isLoop,this.isAssign=!!u.isAssign,this.prefix=!!u.prefix,this.postfix=!!u.postfix,this.binop=u.binop!=null?u.binop:null,this.updateContext=null}}const V=new Map;function X(G,g={}){g.keyword=G;const u=ae(G,g);return V.set(G,u),u}function U(G,g){return ae(G,{beforeExpr:D,binop:g})}let N=-1;const j=[],F=[],R=[],J=[],se=[],ie=[];function ae(G,g={}){var u,b,w,B;return++N,F.push(G),R.push((u=g.binop)!=null?u:-1),J.push((b=g.beforeExpr)!=null?b:!1),se.push((w=g.startsExpr)!=null?w:!1),ie.push((B=g.prefix)!=null?B:!1),j.push(new Q(G,g)),N}function fe(G,g={}){var u,b,w,B;return++N,V.set(G,N),F.push(G),R.push((u=g.binop)!=null?u:-1),J.push((b=g.beforeExpr)!=null?b:!1),se.push((w=g.startsExpr)!=null?w:!1),ie.push((B=g.prefix)!=null?B:!1),j.push(new Q("name",g)),N}const de={bracketL:ae("[",{beforeExpr:D,startsExpr:C}),bracketHashL:ae("#[",{beforeExpr:D,startsExpr:C}),bracketBarL:ae("[|",{beforeExpr:D,startsExpr:C}),bracketR:ae("]"),bracketBarR:ae("|]"),braceL:ae("{",{beforeExpr:D,startsExpr:C}),braceBarL:ae("{|",{beforeExpr:D,startsExpr:C}),braceHashL:ae("#{",{beforeExpr:D,startsExpr:C}),braceR:ae("}"),braceBarR:ae("|}"),parenL:ae("(",{beforeExpr:D,startsExpr:C}),parenR:ae(")"),comma:ae(",",{beforeExpr:D}),semi:ae(";",{beforeExpr:D}),colon:ae(":",{beforeExpr:D}),doubleColon:ae("::",{beforeExpr:D}),dot:ae("."),question:ae("?",{beforeExpr:D}),questionDot:ae("?."),arrow:ae("=>",{beforeExpr:D}),template:ae("template"),ellipsis:ae("...",{beforeExpr:D}),backQuote:ae("`",{startsExpr:C}),dollarBraceL:ae("${",{beforeExpr:D,startsExpr:C}),templateTail:ae("...`",{startsExpr:C}),templateNonTail:ae("...${",{beforeExpr:D,startsExpr:C}),at:ae("@"),hash:ae("#",{startsExpr:C}),interpreterDirective:ae("#!..."),eq:ae("=",{beforeExpr:D,isAssign:q}),assign:ae("_=",{beforeExpr:D,isAssign:q}),slashAssign:ae("_=",{beforeExpr:D,isAssign:q}),xorAssign:ae("_=",{beforeExpr:D,isAssign:q}),moduloAssign:ae("_=",{beforeExpr:D,isAssign:q}),incDec:ae("++/--",{prefix:$,postfix:z,startsExpr:C}),bang:ae("!",{beforeExpr:D,prefix:$,startsExpr:C}),tilde:ae("~",{beforeExpr:D,prefix:$,startsExpr:C}),doubleCaret:ae("^^",{startsExpr:C}),doubleAt:ae("@@",{startsExpr:C}),pipeline:U("|>",0),nullishCoalescing:U("??",1),logicalOR:U("||",1),logicalAND:U("&&",2),bitwiseOR:U("|",3),bitwiseXOR:U("^",4),bitwiseAND:U("&",5),equality:U("==/!=/===/!==",6),lt:U("</>/<=/>=",7),gt:U("</>/<=/>=",7),relational:U("</>/<=/>=",7),bitShift:U("<</>>/>>>",8),bitShiftL:U("<</>>/>>>",8),bitShiftR:U("<</>>/>>>",8),plusMin:ae("+/-",{beforeExpr:D,binop:9,prefix:$,startsExpr:C}),modulo:ae("%",{binop:10,startsExpr:C}),star:ae("*",{binop:10}),slash:U("/",10),exponent:ae("**",{beforeExpr:D,binop:11,rightAssociative:!0}),_in:X("in",{beforeExpr:D,binop:7}),_instanceof:X("instanceof",{beforeExpr:D,binop:7}),_break:X("break"),_case:X("case",{beforeExpr:D}),_catch:X("catch"),_continue:X("continue"),_debugger:X("debugger"),_default:X("default",{beforeExpr:D}),_else:X("else",{beforeExpr:D}),_finally:X("finally"),_function:X("function",{startsExpr:C}),_if:X("if"),_return:X("return",{beforeExpr:D}),_switch:X("switch"),_throw:X("throw",{beforeExpr:D,prefix:$,startsExpr:C}),_try:X("try"),_var:X("var"),_const:X("const"),_with:X("with"),_new:X("new",{beforeExpr:D,startsExpr:C}),_this:X("this",{startsExpr:C}),_super:X("super",{startsExpr:C}),_class:X("class",{startsExpr:C}),_extends:X("extends",{beforeExpr:D}),_export:X("export"),_import:X("import",{startsExpr:C}),_null:X("null",{startsExpr:C}),_true:X("true",{startsExpr:C}),_false:X("false",{startsExpr:C}),_typeof:X("typeof",{beforeExpr:D,prefix:$,startsExpr:C}),_void:X("void",{beforeExpr:D,prefix:$,startsExpr:C}),_delete:X("delete",{beforeExpr:D,prefix:$,startsExpr:C}),_do:X("do",{isLoop:L,beforeExpr:D}),_for:X("for",{isLoop:L}),_while:X("while",{isLoop:L}),_as:fe("as",{startsExpr:C}),_assert:fe("assert",{startsExpr:C}),_async:fe("async",{startsExpr:C}),_await:fe("await",{startsExpr:C}),_defer:fe("defer",{startsExpr:C}),_from:fe("from",{startsExpr:C}),_get:fe("get",{startsExpr:C}),_let:fe("let",{startsExpr:C}),_meta:fe("meta",{startsExpr:C}),_of:fe("of",{startsExpr:C}),_sent:fe("sent",{startsExpr:C}),_set:fe("set",{startsExpr:C}),_source:fe("source",{startsExpr:C}),_static:fe("static",{startsExpr:C}),_using:fe("using",{startsExpr:C}),_yield:fe("yield",{startsExpr:C}),_asserts:fe("asserts",{startsExpr:C}),_checks:fe("checks",{startsExpr:C}),_exports:fe("exports",{startsExpr:C}),_global:fe("global",{startsExpr:C}),_implements:fe("implements",{startsExpr:C}),_intrinsic:fe("intrinsic",{startsExpr:C}),_infer:fe("infer",{startsExpr:C}),_is:fe("is",{startsExpr:C}),_mixins:fe("mixins",{startsExpr:C}),_proto:fe("proto",{startsExpr:C}),_require:fe("require",{startsExpr:C}),_satisfies:fe("satisfies",{startsExpr:C}),_keyof:fe("keyof",{startsExpr:C}),_readonly:fe("readonly",{startsExpr:C}),_unique:fe("unique",{startsExpr:C}),_abstract:fe("abstract",{startsExpr:C}),_declare:fe("declare",{startsExpr:C}),_enum:fe("enum",{startsExpr:C}),_module:fe("module",{startsExpr:C}),_namespace:fe("namespace",{startsExpr:C}),_interface:fe("interface",{startsExpr:C}),_type:fe("type",{startsExpr:C}),_opaque:fe("opaque",{startsExpr:C}),name:ae("name",{startsExpr:C}),placeholder:ae("%%",{startsExpr:C}),string:ae("string",{startsExpr:C}),num:ae("num",{startsExpr:C}),bigint:ae("bigint",{startsExpr:C}),decimal:ae("decimal",{startsExpr:C}),regexp:ae("regexp",{startsExpr:C}),privateName:ae("#name",{startsExpr:C}),eof:ae("eof"),jsxName:ae("jsxName"),jsxText:ae("jsxText",{beforeExpr:D}),jsxTagStart:ae("jsxTagStart",{startsExpr:C}),jsxTagEnd:ae("jsxTagEnd")};function Se(G){return G>=93&&G<=133}function Ce(G){return G<=92}function xe(G){return G>=58&&G<=133}function Be(G){return G>=58&&G<=137}function Re(G){return J[G]}function He(G){return se[G]}function ze(G){return G>=29&&G<=33}function je(G){return G>=129&&G<=131}function re(G){return G>=90&&G<=92}function ue(G){return G>=58&&G<=92}function Te(G){return G>=39&&G<=59}function ke(G){return G===34}function Oe(G){return ie[G]}function Me(G){return G>=121&&G<=123}function Ke(G){return G>=124&&G<=130}function _e(G){return F[G]}function pe(G){return R[G]}function ne(G){return G===57}function me(G){return G>=24&&G<=25}function Ie(G){return j[G]}j[8].updateContext=G=>{G.pop()},j[5].updateContext=j[7].updateContext=j[23].updateContext=G=>{G.push(M.brace)},j[22].updateContext=G=>{G[G.length-1]===M.template?G.pop():G.push(M.template)},j[143].updateContext=G=>{G.push(M.j_expr,M.j_oTag)};let De="ªµºÀ-ÖØ-öø-ˈ-Ë‘Ë -ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ÒÒŠ-Ô¯Ô±-Õ–Õ™Õ -Öˆ×-תׯ-×²Ø -يٮٯٱ-Û“Û•Û¥Û¦Û®Û¯Ûº-Û¼Û¿ÜÜ’-ܯÝ-ޥޱߊ-ßªß´ßµßºà €-à •à šà ¤à ¨à¡€-ࡘࡠ-ࡪࡰ-ࢇࢉ-à¢à¢ -ࣉऄ-हऽà¥à¥˜-ॡॱ-ঀঅ-ঌà¦à¦à¦“-নপ-রলশ-হঽৎড়à§à§Ÿ-ৡৰৱৼਅ-ਊà¨à¨à¨“-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-àªàª-ઑઓ-નપ-રલળવ-હઽà«à« ૡૹଅ-ଌà¬à¬à¬“-ନପ-ରଲଳଵ-ହଽàœààŸ-à¡à±à®ƒà®…-ஊஎ-à®à®’-கஙசஜஞடணதந-பம-ஹà¯à°…-ఌఎ-à°à°’-నప-హఽౘ-ౚ౜à±à± ౡಀಅ-ಌಎ-à²à²’-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-à´à´’-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-à¶–à¶š-නඳ-රලව-à·†à¸-ะาำเ-ๆàºàº‚ຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿá-á•áš-áá¡á¥á¦á®-á°áµ-á‚ႎႠ-ჅჇáƒáƒ-ჺჼ-ቈቊ-á‰á‰-ቖቘቚ-á‰á‰ -ኈኊ-áŠáŠ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-áŒáŒ’-ጕጘ-ášáŽ€-áŽáŽ -áµá¸-á½á-ᙬᙯ-ᙿáš-áššáš -ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱá€-á‘á -á¬á®-á°áž€-ឳៗៜá -ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞá¥-á¥á¥°-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳá…-áŒá®ƒ-ᮠᮮᮯᮺ-ᯥᰀ-á°£á±-á±á±š-ᱽᲀ-ᲊá²-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-á¼á¼ -ὅὈ-á½á½-ὗὙὛá½á½Ÿ-ώᾀ-á¾´á¾¶-ᾼιῂ-ῄῆ-ῌá¿-á¿“á¿–-Ίῠ-Ῥῲ-á¿´á¿¶-ῼâ±â¿â‚-ₜℂℇℊ-ℓℕ℘-â„ℤΩℨK-ℹℼ-â„¿â……-â…‰â…Žâ… -ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧâ´â´°-ⵧⵯⶀ-â¶–â¶ -ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-â·Žâ·-â·–â·˜-ⷞ々-〇〡-〩〱-〵〸-〼ã-ã‚–ã‚›-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿã€-䶿一-ê’Œê“-ꓽꔀ-ꘌê˜-ꘟꘪꘫꙀ-ꙮꙿ-êšêš -ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ê ê ƒ-ê …ê ‡-ê Šê Œ-ê ¢ê¡€-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ê¥†ê¥ -ꥼꦄ-ꦲê§ê§ -ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ê©‚ê©„-ê©‹ê© -ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ê«ê« -ꫪꫲ-ê«´ê¬-ꬆꬉ-ꬎꬑ-ê¬–ê¬ -ꬦꬨ-ꬮꬰ-êšêœ-ê©ê°-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-ï©ï©°-龎ff-stﬓ-ﬗï¬ï¬Ÿ-ﬨשׁ-זּטּ-לּמּï€ïïƒï„ï†-ﮱﯓ-ï´½ïµ-ï¶ï¶’-ﷇﷰ-ﷻﹰ-ï¹´ï¹¶-ﻼA-Zï½-zヲ-하-ᅦᅧ-ï¿ï¿’-ᅲᅳ-ᅵ",Ue="·̀-ͯ·҃-Ò‡Ö‘-Ö½Ö¿×ׇׂׅׄØ-ØšÙ‹-٩ٰۖ-ۜ۟-Û¤Û§Û¨Ûª-ÛÛ°-۹ܑܰ-ÝŠÞ¦-ް߀-߉߫-ß³ß½à –-à ™à ›-à £à ¥-à §à ©-à à¡™-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-à¥à¥‘-ॗॢॣ०-९à¦-ঃ়া-ৄেৈো-à§à§—ৢৣ০-৯৾à¨-ਃ਼ਾ-ੂੇੈੋ-à©à©‘੦-ੱੵàª-ઃ઼ા-ૅે-ૉો-à«à«¢à«£à«¦-૯ૺ-à«¿à¬-ଃ଼ା-à„à‡àˆà‹-àà•-à—à¢à£à¦-à¯à®‚ா-ூெ-ைொ-à¯à¯—௦-௯ఀ-ఄ఼ా-ౄె-ైొ-à±à±•ౖౢౣ౦-౯à²-ಃ಼ಾ-ೄೆ-ೈೊ-à³à³•ೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-àµàµ—ൢൣ൦-൯à¶-ඃ්à·-ුූෘ-à·Ÿà·¦-෯ෲෳัิ-ฺ็-๎à¹-๙ັິ-ຼ່-໎à»-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇à¾-ྗྙ-ྼ࿆ါ-ှá€-á‰á–-á™áž-á á¢-á¤á§-áá±-á´á‚‚-á‚á‚-á‚á-áŸá©-á±áœ’-᜕ᜲ-᜴á’á“á²á³áž´-៓áŸáŸ -áŸ©á ‹-á á -á ™á¢©á¤ -ᤫᤰ-᤻᥆-á¥á§-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉áª-᪙᪰-᪽ᪿ-á«á« -᫫ᬀ-ᬄ᬴-á„á-á™á«-á³á®€-ᮂᮡ-á®á®°-᮹᯦-᯳ᰤ-á°·á±€-᱉á±-á±™á³-á³’á³”-᳨á³á³´á³·-᳹᷀-᷿‌â€â€¿â€â”âƒ-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-ã€¯ã‚™ã‚šãƒ»ê˜ -꘩꙯ꙴ-ê™½êšžêšŸê›°ê›±ê ‚ê †ê ‹ê £-ê §ê ¬ê¢€ê¢ê¢´-ꣅê£-ê£™ê£ -꣱ꣿ-꤉ꤦ-ê¤ê¥‡-꥓ꦀ-ꦃ꦳-ê§€ê§-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌê©ê©-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿ê«ê««-ꫯꫵ꫶ꯣ-ꯪ꯬ê¯ê¯°-꯹ﬞ︀-ï¸ï¸ -︯︳︴ï¹-ï¹ï¼-9_・";const We=new RegExp("["+De+"]"),lt=new RegExp("["+De+Ue+"]");De=Ue=null;const gt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Ge=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function vt(G,g){let u=65536;for(let b=0,w=g.length;b<w;b+=2){if(u+=g[b],u>G)return!1;if(u+=g[b+1],u>=G)return!0}return!1}function Le(G){return G<65?G===36:G<=90?!0:G<97?G===95:G<=122?!0:G<=65535?G>=170&&We.test(String.fromCharCode(G)):vt(G,gt)}function qe(G){return G<48?G===36:G<58?!0:G<65?!1:G<=90?!0:G<97?G===95:G<=122?!0:G<=65535?G>=170&<.test(String.fromCharCode(G)):vt(G,gt)||vt(G,Ge)}const he={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},$e=new Set(he.keyword),Ze=new Set(he.strict),Ee=new Set(he.strictBind);function Xe(G,g){return g&&G==="await"||G==="enum"}function it(G,g){return Xe(G,g)||Ze.has(G)}function st(G){return Ee.has(G)}function mt(G,g){return it(G,g)||st(G)}function Tt(G){return $e.has(G)}function Ut(G,g,u){return G===64&&g===64&&Le(u)}const lr=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function hr(G){return lr.has(G)}class mr{constructor(g){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=g}}class yr{constructor(g,u){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=g,this.inModule=u}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const g=this.currentThisScopeFlags();return(g&64)>0&&(g&2)===0}get inStaticBlock(){for(let g=this.scopeStack.length-1;;g--){const{flags:u}=this.scopeStack[g];if(u&128)return!0;if(u&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(g){return new mr(g)}enter(g){this.scopeStack.push(this.createScope(g))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(g){return!!(g.flags&130||!this.parser.inModule&&g.flags&1)}declareName(g,u,b){let w=this.currentScope();if(u&8||u&16){this.checkRedeclarationInScope(w,g,u,b);let B=w.names.get(g)||0;u&16?B=B|4:(w.firstLexicalName||(w.firstLexicalName=g),B=B|2),w.names.set(g,B),u&8&&this.maybeExportDefined(w,g)}else if(u&4)for(let B=this.scopeStack.length-1;B>=0&&(w=this.scopeStack[B],this.checkRedeclarationInScope(w,g,u,b),w.names.set(g,(w.names.get(g)||0)|1),this.maybeExportDefined(w,g),!(w.flags&1667));--B);this.parser.inModule&&w.flags&1&&this.undefinedExports.delete(g)}maybeExportDefined(g,u){this.parser.inModule&&g.flags&1&&this.undefinedExports.delete(u)}checkRedeclarationInScope(g,u,b,w){this.isRedeclaredInScope(g,u,b)&&this.parser.raise(m.VarRedeclaration,w,{identifierName:u})}isRedeclaredInScope(g,u,b){if(!(b&1))return!1;if(b&8)return g.names.has(u);const w=g.names.get(u)||0;return b&16?(w&2)>0||!this.treatFunctionsAsVarInScope(g)&&(w&1)>0:(w&2)>0&&!(g.flags&8&&g.firstLexicalName===u)||!this.treatFunctionsAsVarInScope(g)&&(w&4)>0}checkLocalExport(g){const{name:u}=g;this.scopeStack[0].names.has(u)||this.undefinedExports.set(u,g.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let g=this.scopeStack.length-1;;g--){const{flags:u}=this.scopeStack[g];if(u&1667)return u}}currentThisScopeFlags(){for(let g=this.scopeStack.length-1;;g--){const{flags:u}=this.scopeStack[g];if(u&1731&&!(u&4))return u}}}class Mr extends mr{constructor(...g){super(...g),this.declareFunctions=new Set}}class Gr extends yr{createScope(g){return new Mr(g)}declareName(g,u,b){const w=this.currentScope();if(u&2048){this.checkRedeclarationInScope(w,g,u,b),this.maybeExportDefined(w,g),w.declareFunctions.add(g);return}super.declareName(g,u,b)}isRedeclaredInScope(g,u,b){if(super.isRedeclaredInScope(g,u,b))return!0;if(b&2048&&!g.declareFunctions.has(u)){const w=g.names.get(u);return(w&4)>0||(w&2)>0}return!1}checkLocalExport(g){this.scopeStack[0].declareFunctions.has(g.name)||super.checkLocalExport(g)}}const zn=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ot=y`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:G})=>`Cannot overwrite reserved type ${G}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:G,enumName:g})=>`Boolean enum members need to be initialized. Use either \`${G} = true,\` or \`${G} = false,\` in enum \`${g}\`.`,EnumDuplicateMemberName:({memberName:G,enumName:g})=>`Enum member names need to be unique, but the name \`${G}\` has already been used before in enum \`${g}\`.`,EnumInconsistentMemberValues:({enumName:G})=>`Enum \`${G}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:G,enumName:g})=>`Enum type \`${G}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${g}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:G})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${G}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:G,memberName:g,explicitType:u})=>`Enum \`${G}\` has type \`${u}\`, so the initializer of \`${g}\` needs to be a ${u} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:G,memberName:g})=>`Symbol enum members cannot be initialized. Use \`${g},\` in enum \`${G}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:G,memberName:g})=>`The enum member initializer for \`${g}\` needs to be a literal (either a boolean, number, or string) in enum \`${G}\`.`,EnumInvalidMemberName:({enumName:G,memberName:g,suggestion:u})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${g}\`, consider using \`${u}\`, in enum \`${G}\`.`,EnumNumberMemberNotInitialized:({enumName:G,memberName:g})=>`Number enum members need to be initialized, e.g. \`${g} = 1\` in enum \`${G}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:G})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${G}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:G})=>`Unexpected reserved type ${G}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:G,suggestion:g})=>`\`declare export ${G}\` is not supported. Use \`${g}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Wn(G){return G.type==="DeclareExportAllDeclaration"||G.type==="DeclareExportDeclaration"&&(!G.declaration||G.declaration.type!=="TypeAlias"&&G.declaration.type!=="InterfaceDeclaration")}function Hn(G){return G.importKind==="type"||G.importKind==="typeof"}const Li={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function ci(G,g){const u=[],b=[];for(let w=0;w<G.length;w++)(g(G[w],w,G)?u:b).push(G[w]);return[u,b]}const Yn=/\*?\s*@((?:no)?flow)\b/;var $r=G=>class extends G{constructor(...u){super(...u),this.flowPragma=void 0}getScopeHandler(){return Gr}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(u,b){u!==134&&u!==13&&u!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(u,b)}addComment(u){if(this.flowPragma===void 0){const b=Yn.exec(u.value);if(b)if(b[1]==="flow")this.flowPragma="flow";else if(b[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(u)}flowParseTypeInitialiser(u){const b=this.state.inType;this.state.inType=!0,this.expect(u||14);const w=this.flowParseType();return this.state.inType=b,w}flowParsePredicate(){const u=this.startNode(),b=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>b.index+1&&this.raise(ot.UnexpectedSpaceBetweenModuloChecks,b),this.eat(10)?(u.value=super.parseExpression(),this.expect(11),this.finishNode(u,"DeclaredPredicate")):this.finishNode(u,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const u=this.state.inType;this.state.inType=!0,this.expect(14);let b=null,w=null;return this.match(54)?(this.state.inType=u,w=this.flowParsePredicate()):(b=this.flowParseType(),this.state.inType=u,this.match(54)&&(w=this.flowParsePredicate())),[b,w]}flowParseDeclareClass(u){return this.next(),this.flowParseInterfaceish(u,!0),this.finishNode(u,"DeclareClass")}flowParseDeclareFunction(u){this.next();const b=u.id=this.parseIdentifier(),w=this.startNode(),B=this.startNode();this.match(47)?w.typeParameters=this.flowParseTypeParameterDeclaration():w.typeParameters=null,this.expect(10);const ee=this.flowParseFunctionTypeParams();return w.params=ee.params,w.rest=ee.rest,w.this=ee._this,this.expect(11),[w.returnType,u.predicate]=this.flowParseTypeAndPredicateInitialiser(),B.typeAnnotation=this.finishNode(w,"FunctionTypeAnnotation"),b.typeAnnotation=this.finishNode(B,"TypeAnnotation"),this.resetEndLocation(b),this.semicolon(),this.scope.declareName(u.id.name,2048,u.id.loc.start),this.finishNode(u,"DeclareFunction")}flowParseDeclare(u,b){if(this.match(80))return this.flowParseDeclareClass(u);if(this.match(68))return this.flowParseDeclareFunction(u);if(this.match(74))return this.flowParseDeclareVariable(u);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(u):(b&&this.raise(ot.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(u));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(u);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(u);if(this.isContextual(129))return this.flowParseDeclareInterface(u);if(this.match(82))return this.flowParseDeclareExportDeclaration(u,b);throw this.unexpected()}flowParseDeclareVariable(u){return this.next(),u.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(u.id.name,5,u.id.loc.start),this.semicolon(),this.finishNode(u,"DeclareVariable")}flowParseDeclareModule(u){this.scope.enter(0),this.match(134)?u.id=super.parseExprAtom():u.id=this.parseIdentifier();const b=u.body=this.startNode(),w=b.body=[];for(this.expect(5);!this.match(8);){const le=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ot.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),w.push(super.parseImport(le))):(this.expectContextual(125,ot.UnsupportedStatementInDeclareModule),w.push(this.flowParseDeclare(le,!0)))}this.scope.exit(),this.expect(8),this.finishNode(b,"BlockStatement");let B=null,ee=!1;return w.forEach(le=>{Wn(le)?(B==="CommonJS"&&this.raise(ot.AmbiguousDeclareModuleKind,le),B="ES"):le.type==="DeclareModuleExports"&&(ee&&this.raise(ot.DuplicateDeclareModuleExports,le),B==="ES"&&this.raise(ot.AmbiguousDeclareModuleKind,le),B="CommonJS",ee=!0)}),u.kind=B||"CommonJS",this.finishNode(u,"DeclareModule")}flowParseDeclareExportDeclaration(u,b){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?u.declaration=this.flowParseDeclare(this.startNode()):(u.declaration=this.flowParseType(),this.semicolon()),u.default=!0,this.finishNode(u,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!b){const w=this.state.value;throw this.raise(ot.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:w,suggestion:Li[w]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return u.declaration=this.flowParseDeclare(this.startNode()),u.default=!1,this.finishNode(u,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return u=this.parseExport(u,null),u.type==="ExportNamedDeclaration"?(u.default=!1,delete u.exportKind,this.castNodeTo(u,"DeclareExportDeclaration")):this.castNodeTo(u,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(u){return this.next(),this.expectContextual(111),u.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(u,"DeclareModuleExports")}flowParseDeclareTypeAlias(u){this.next();const b=this.flowParseTypeAlias(u);return this.castNodeTo(b,"DeclareTypeAlias"),b}flowParseDeclareOpaqueType(u){this.next();const b=this.flowParseOpaqueType(u,!0);return this.castNodeTo(b,"DeclareOpaqueType"),b}flowParseDeclareInterface(u){return this.next(),this.flowParseInterfaceish(u,!1),this.finishNode(u,"DeclareInterface")}flowParseInterfaceish(u,b){if(u.id=this.flowParseRestrictedIdentifier(!b,!0),this.scope.declareName(u.id.name,b?17:8201,u.id.loc.start),this.match(47)?u.typeParameters=this.flowParseTypeParameterDeclaration():u.typeParameters=null,u.extends=[],this.eat(81))do u.extends.push(this.flowParseInterfaceExtends());while(!b&&this.eat(12));if(b){if(u.implements=[],u.mixins=[],this.eatContextual(117))do u.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do u.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}u.body=this.flowParseObjectType({allowStatic:b,allowExact:!1,allowSpread:!1,allowProto:b,allowInexact:!1})}flowParseInterfaceExtends(){const u=this.startNode();return u.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?u.typeParameters=this.flowParseTypeParameterInstantiation():u.typeParameters=null,this.finishNode(u,"InterfaceExtends")}flowParseInterface(u){return this.flowParseInterfaceish(u,!1),this.finishNode(u,"InterfaceDeclaration")}checkNotUnderscore(u){u==="_"&&this.raise(ot.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(u,b,w){zn.has(u)&&this.raise(w?ot.AssignReservedType:ot.UnexpectedReservedType,b,{reservedType:u})}flowParseRestrictedIdentifier(u,b){return this.checkReservedType(this.state.value,this.state.startLoc,b),this.parseIdentifier(u)}flowParseTypeAlias(u){return u.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(u.id.name,8201,u.id.loc.start),this.match(47)?u.typeParameters=this.flowParseTypeParameterDeclaration():u.typeParameters=null,u.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(u,"TypeAlias")}flowParseOpaqueType(u,b){return this.expectContextual(130),u.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(u.id.name,8201,u.id.loc.start),this.match(47)?u.typeParameters=this.flowParseTypeParameterDeclaration():u.typeParameters=null,u.supertype=null,this.match(14)&&(u.supertype=this.flowParseTypeInitialiser(14)),u.impltype=null,b||(u.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(u,"OpaqueType")}flowParseTypeParameter(u=!1){const b=this.state.startLoc,w=this.startNode(),B=this.flowParseVariance(),ee=this.flowParseTypeAnnotatableIdentifier();return w.name=ee.name,w.variance=B,w.bound=ee.typeAnnotation,this.match(29)?(this.eat(29),w.default=this.flowParseType()):u&&this.raise(ot.MissingTypeParamDefault,b),this.finishNode(w,"TypeParameter")}flowParseTypeParameterDeclaration(){const u=this.state.inType,b=this.startNode();b.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let w=!1;do{const B=this.flowParseTypeParameter(w);b.params.push(B),B.default&&(w=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=u,this.finishNode(b,"TypeParameterDeclaration")}flowInTopLevelContext(u){if(this.curContext()!==M.brace){const b=this.state.context;this.state.context=[b[0]];try{return u()}finally{this.state.context=b}}else return u()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const u=this.startNode(),b=this.state.inType;return this.state.inType=!0,u.params=[],this.flowInTopLevelContext(()=>{this.expect(47);const w=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)u.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=w}),this.state.inType=b,!this.state.inType&&this.curContext()===M.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(u,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;const u=this.startNode(),b=this.state.inType;for(u.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)u.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=b,this.finishNode(u,"TypeParameterInstantiation")}flowParseInterfaceType(){const u=this.startNode();if(this.expectContextual(129),u.extends=[],this.eat(81))do u.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return u.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(u,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(u,b,w){return u.static=b,this.lookahead().type===14?(u.id=this.flowParseObjectPropertyKey(),u.key=this.flowParseTypeInitialiser()):(u.id=null,u.key=this.flowParseType()),this.expect(3),u.value=this.flowParseTypeInitialiser(),u.variance=w,this.finishNode(u,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(u,b){return u.static=b,u.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(u.method=!0,u.optional=!1,u.value=this.flowParseObjectTypeMethodish(this.startNodeAt(u.loc.start))):(u.method=!1,this.eat(17)&&(u.optional=!0),u.value=this.flowParseTypeInitialiser()),this.finishNode(u,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(u){for(u.params=[],u.rest=null,u.typeParameters=null,u.this=null,this.match(47)&&(u.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(u.this=this.flowParseFunctionTypeParam(!0),u.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)u.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(u.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),u.returnType=this.flowParseTypeInitialiser(),this.finishNode(u,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(u,b){const w=this.startNode();return u.static=b,u.value=this.flowParseObjectTypeMethodish(w),this.finishNode(u,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:u,allowExact:b,allowSpread:w,allowProto:B,allowInexact:ee}){const le=this.state.inType;this.state.inType=!0;const be=this.startNode();be.callProperties=[],be.properties=[],be.indexers=[],be.internalSlots=[];let we,Ne,Ve=!1;for(b&&this.match(6)?(this.expect(6),we=9,Ne=!0):(this.expect(5),we=8,Ne=!1),be.exact=Ne;!this.match(we);){let tt=!1,ct=null,Ct=null;const Rt=this.startNode();if(B&&this.isContextual(118)){const jt=this.lookahead();jt.type!==14&&jt.type!==17&&(this.next(),ct=this.state.startLoc,u=!1)}if(u&&this.isContextual(106)){const jt=this.lookahead();jt.type!==14&&jt.type!==17&&(this.next(),tt=!0)}const bt=this.flowParseVariance();if(this.eat(0))ct!=null&&this.unexpected(ct),this.eat(0)?(bt&&this.unexpected(bt.loc.start),be.internalSlots.push(this.flowParseObjectTypeInternalSlot(Rt,tt))):be.indexers.push(this.flowParseObjectTypeIndexer(Rt,tt,bt));else if(this.match(10)||this.match(47))ct!=null&&this.unexpected(ct),bt&&this.unexpected(bt.loc.start),be.callProperties.push(this.flowParseObjectTypeCallProperty(Rt,tt));else{let jt="init";if(this.isContextual(99)||this.isContextual(104)){const Zr=this.lookahead();Be(Zr.type)&&(jt=this.state.value,this.next())}const dn=this.flowParseObjectTypeProperty(Rt,tt,ct,bt,jt,w,ee??!Ne);dn===null?(Ve=!0,Ct=this.state.lastTokStartLoc):be.properties.push(dn)}this.flowObjectTypeSemicolon(),Ct&&!this.match(8)&&!this.match(9)&&this.raise(ot.UnexpectedExplicitInexactInObject,Ct)}this.expect(we),w&&(be.inexact=Ve);const Qe=this.finishNode(be,"ObjectTypeAnnotation");return this.state.inType=le,Qe}flowParseObjectTypeProperty(u,b,w,B,ee,le,be){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(le?be||this.raise(ot.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ot.InexactInsideNonObject,this.state.lastTokStartLoc),B&&this.raise(ot.InexactVariance,B),null):(le||this.raise(ot.UnexpectedSpreadType,this.state.lastTokStartLoc),w!=null&&this.unexpected(w),B&&this.raise(ot.SpreadVariance,B),u.argument=this.flowParseType(),this.finishNode(u,"ObjectTypeSpreadProperty"));{u.key=this.flowParseObjectPropertyKey(),u.static=b,u.proto=w!=null,u.kind=ee;let we=!1;return this.match(47)||this.match(10)?(u.method=!0,w!=null&&this.unexpected(w),B&&this.unexpected(B.loc.start),u.value=this.flowParseObjectTypeMethodish(this.startNodeAt(u.loc.start)),(ee==="get"||ee==="set")&&this.flowCheckGetterSetterParams(u),!le&&u.key.name==="constructor"&&u.value.this&&this.raise(ot.ThisParamBannedInConstructor,u.value.this)):(ee!=="init"&&this.unexpected(),u.method=!1,this.eat(17)&&(we=!0),u.value=this.flowParseTypeInitialiser(),u.variance=B),u.optional=we,this.finishNode(u,"ObjectTypeProperty")}}flowCheckGetterSetterParams(u){const b=u.kind==="get"?0:1,w=u.value.params.length+(u.value.rest?1:0);u.value.this&&this.raise(u.kind==="get"?ot.GetterMayNotHaveThisParam:ot.SetterMayNotHaveThisParam,u.value.this),w!==b&&this.raise(u.kind==="get"?m.BadGetterArity:m.BadSetterArity,u),u.kind==="set"&&u.value.rest&&this.raise(m.BadSetterRestParameter,u)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(u,b){u??(u=this.state.startLoc);let w=b||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const B=this.startNodeAt(u);B.qualification=w,B.id=this.flowParseRestrictedIdentifier(!0),w=this.finishNode(B,"QualifiedTypeIdentifier")}return w}flowParseGenericType(u,b){const w=this.startNodeAt(u);return w.typeParameters=null,w.id=this.flowParseQualifiedTypeIdentifier(u,b),this.match(47)&&(w.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(w,"GenericTypeAnnotation")}flowParseTypeofType(){const u=this.startNode();return this.expect(87),u.argument=this.flowParsePrimaryType(),this.finishNode(u,"TypeofTypeAnnotation")}flowParseTupleType(){const u=this.startNode();for(u.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(u.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(u,"TupleTypeAnnotation")}flowParseFunctionTypeParam(u){let b=null,w=!1,B=null;const ee=this.startNode(),le=this.lookahead(),be=this.state.type===78;return le.type===14||le.type===17?(be&&!u&&this.raise(ot.ThisParamMustBeFirst,ee),b=this.parseIdentifier(be),this.eat(17)&&(w=!0,be&&this.raise(ot.ThisParamMayNotBeOptional,ee)),B=this.flowParseTypeInitialiser()):B=this.flowParseType(),ee.name=b,ee.optional=w,ee.typeAnnotation=B,this.finishNode(ee,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(u){const b=this.startNodeAt(u.loc.start);return b.name=null,b.optional=!1,b.typeAnnotation=u,this.finishNode(b,"FunctionTypeParam")}flowParseFunctionTypeParams(u=[]){let b=null,w=null;for(this.match(78)&&(w=this.flowParseFunctionTypeParam(!0),w.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)u.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(b=this.flowParseFunctionTypeParam(!1)),{params:u,rest:b,_this:w}}flowIdentToTypeAnnotation(u,b,w){switch(w.name){case"any":return this.finishNode(b,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(b,"BooleanTypeAnnotation");case"mixed":return this.finishNode(b,"MixedTypeAnnotation");case"empty":return this.finishNode(b,"EmptyTypeAnnotation");case"number":return this.finishNode(b,"NumberTypeAnnotation");case"string":return this.finishNode(b,"StringTypeAnnotation");case"symbol":return this.finishNode(b,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(w.name),this.flowParseGenericType(u,w)}}flowParsePrimaryType(){const u=this.state.startLoc,b=this.startNode();let w,B,ee=!1;const le=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,B=this.flowParseTupleType(),this.state.noAnonFunctionType=le,B;case 47:{const be=this.startNode();return be.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),w=this.flowParseFunctionTypeParams(),be.params=w.params,be.rest=w.rest,be.this=w._this,this.expect(11),this.expect(19),be.returnType=this.flowParseType(),this.finishNode(be,"FunctionTypeAnnotation")}case 10:{const be=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Se(this.state.type)||this.match(78)){const we=this.lookahead().type;ee=we!==17&&we!==14}else ee=!0;if(ee){if(this.state.noAnonFunctionType=!1,B=this.flowParseType(),this.state.noAnonFunctionType=le,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),B;this.eat(12)}return B?w=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(B)]):w=this.flowParseFunctionTypeParams(),be.params=w.params,be.rest=w.rest,be.this=w._this,this.expect(11),this.expect(19),be.returnType=this.flowParseType(),be.typeParameters=null,this.finishNode(be,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return b.value=this.match(85),this.next(),this.finishNode(b,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",b);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",b);throw this.raise(ot.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(b,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(b,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(b,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(b,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(ue(this.state.type)){const be=_e(this.state.type);return this.next(),super.createIdentifier(b,be)}else if(Se(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(u,b,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){const u=this.state.startLoc;let b=this.flowParsePrimaryType(),w=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const B=this.startNodeAt(u),ee=this.eat(18);w=w||ee,this.expect(0),!ee&&this.match(3)?(B.elementType=b,this.next(),b=this.finishNode(B,"ArrayTypeAnnotation")):(B.objectType=b,B.indexType=this.flowParseType(),this.expect(3),w?(B.optional=ee,b=this.finishNode(B,"OptionalIndexedAccessType")):b=this.finishNode(B,"IndexedAccessType"))}return b}flowParsePrefixType(){const u=this.startNode();return this.eat(17)?(u.typeAnnotation=this.flowParsePrefixType(),this.finishNode(u,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const u=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const b=this.startNodeAt(u.loc.start);return b.params=[this.reinterpretTypeAsFunctionTypeParam(u)],b.rest=null,b.this=null,b.returnType=this.flowParseType(),b.typeParameters=null,this.finishNode(b,"FunctionTypeAnnotation")}return u}flowParseIntersectionType(){const u=this.startNode();this.eat(45);const b=this.flowParseAnonFunctionWithoutParens();for(u.types=[b];this.eat(45);)u.types.push(this.flowParseAnonFunctionWithoutParens());return u.types.length===1?b:this.finishNode(u,"IntersectionTypeAnnotation")}flowParseUnionType(){const u=this.startNode();this.eat(43);const b=this.flowParseIntersectionType();for(u.types=[b];this.eat(43);)u.types.push(this.flowParseIntersectionType());return u.types.length===1?b:this.finishNode(u,"UnionTypeAnnotation")}flowParseType(){const u=this.state.inType;this.state.inType=!0;const b=this.flowParseUnionType();return this.state.inType=u,b}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const u=this.state.startLoc,b=this.parseIdentifier();return this.flowParseGenericType(u,b)}else return this.flowParseType()}flowParseTypeAnnotation(){const u=this.startNode();return u.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(u,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(u){const b=u?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(b.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(b)),b}typeCastToParameter(u){return u.expression.typeAnnotation=u.typeAnnotation,this.resetEndLocation(u.expression,u.typeAnnotation.loc.end),u.expression}flowParseVariance(){let u=null;return this.match(53)?(u=this.startNode(),this.state.value==="+"?u.kind="plus":u.kind="minus",this.next(),this.finishNode(u,"Variance")):u}parseFunctionBody(u,b,w=!1){if(b){this.forwardNoArrowParamsConversionAt(u,()=>super.parseFunctionBody(u,!0,w));return}super.parseFunctionBody(u,!1,w)}parseFunctionBodyAndFinish(u,b,w=!1){if(this.match(14)){const B=this.startNode();[B.typeAnnotation,u.predicate]=this.flowParseTypeAndPredicateInitialiser(),u.returnType=B.typeAnnotation?this.finishNode(B,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(u,b,w)}parseStatementLike(u){if(this.state.strict&&this.isContextual(129)){const w=this.lookahead();if(xe(w.type)){const B=this.startNode();return this.next(),this.flowParseInterface(B)}}else if(this.isContextual(126)){const w=this.startNode();return this.next(),this.flowParseEnumDeclaration(w)}const b=super.parseStatementLike(u);return this.flowPragma===void 0&&!this.isValidDirective(b)&&(this.flowPragma=null),b}parseExpressionStatement(u,b,w){if(b.type==="Identifier"){if(b.name==="declare"){if(this.match(80)||Se(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(u)}else if(Se(this.state.type)){if(b.name==="interface")return this.flowParseInterface(u);if(b.name==="type")return this.flowParseTypeAlias(u);if(b.name==="opaque")return this.flowParseOpaqueType(u,!1)}}return super.parseExpressionStatement(u,b,w)}shouldParseExportDeclaration(){const{type:u}=this.state;return u===126||je(u)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:u}=this.state;return u===126||je(u)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const u=this.startNode();return this.next(),this.flowParseEnumDeclaration(u)}return super.parseExportDefaultExpression()}parseConditional(u,b,w){if(!this.match(17))return u;if(this.state.maybeInArrowParameters){const Qe=this.lookaheadCharCode();if(Qe===44||Qe===61||Qe===58||Qe===41)return this.setOptionalParametersError(w),u}this.expect(17);const B=this.state.clone(),ee=this.state.noArrowAt,le=this.startNodeAt(b);let{consequent:be,failed:we}=this.tryParseConditionalConsequent(),[Ne,Ve]=this.getArrowLikeExpressions(be);if(we||Ve.length>0){const Qe=[...ee];if(Ve.length>0){this.state=B,this.state.noArrowAt=Qe;for(let tt=0;tt<Ve.length;tt++)Qe.push(Ve[tt].start);({consequent:be,failed:we}=this.tryParseConditionalConsequent()),[Ne,Ve]=this.getArrowLikeExpressions(be)}we&&Ne.length>1&&this.raise(ot.AmbiguousConditionalArrow,B.startLoc),we&&Ne.length===1&&(this.state=B,Qe.push(Ne[0].start),this.state.noArrowAt=Qe,{consequent:be,failed:we}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(be,!0),this.state.noArrowAt=ee,this.expect(14),le.test=u,le.consequent=be,le.alternate=this.forwardNoArrowParamsConversionAt(le,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(le,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const u=this.parseMaybeAssignAllowIn(),b=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:u,failed:b}}getArrowLikeExpressions(u,b){const w=[u],B=[];for(;w.length!==0;){const ee=w.pop();ee.type==="ArrowFunctionExpression"&&ee.body.type!=="BlockStatement"?(ee.typeParameters||!ee.returnType?this.finishArrowValidation(ee):B.push(ee),w.push(ee.body)):ee.type==="ConditionalExpression"&&(w.push(ee.consequent),w.push(ee.alternate))}return b?(B.forEach(ee=>this.finishArrowValidation(ee)),[B,[]]):ci(B,ee=>ee.params.every(le=>this.isAssignable(le,!0)))}finishArrowValidation(u){var b;this.toAssignableList(u.params,(b=u.extra)==null?void 0:b.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(u,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(u,b){let w;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(u.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),w=b(),this.state.noArrowParamsConversionAt.pop()):w=b(),w}parseParenItem(u,b){const w=super.parseParenItem(u,b);if(this.eat(17)&&(w.optional=!0,this.resetEndLocation(u)),this.match(14)){const B=this.startNodeAt(b);return B.expression=w,B.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(B,"TypeCastExpression")}return w}assertModuleNodeAllowed(u){u.type==="ImportDeclaration"&&(u.importKind==="type"||u.importKind==="typeof")||u.type==="ExportNamedDeclaration"&&u.exportKind==="type"||u.type==="ExportAllDeclaration"&&u.exportKind==="type"||super.assertModuleNodeAllowed(u)}parseExportDeclaration(u){if(this.isContextual(130)){u.exportKind="type";const b=this.startNode();return this.next(),this.match(5)?(u.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(u),null):this.flowParseTypeAlias(b)}else if(this.isContextual(131)){u.exportKind="type";const b=this.startNode();return this.next(),this.flowParseOpaqueType(b,!1)}else if(this.isContextual(129)){u.exportKind="type";const b=this.startNode();return this.next(),this.flowParseInterface(b)}else if(this.isContextual(126)){u.exportKind="value";const b=this.startNode();return this.next(),this.flowParseEnumDeclaration(b)}else return super.parseExportDeclaration(u)}eatExportStar(u){return super.eatExportStar(u)?!0:this.isContextual(130)&&this.lookahead().type===55?(u.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(u){const{startLoc:b}=this.state,w=super.maybeParseExportNamespaceSpecifier(u);return w&&u.exportKind==="type"&&this.unexpected(b),w}parseClassId(u,b,w){super.parseClassId(u,b,w),this.match(47)&&(u.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(u,b,w){const{startLoc:B}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(u,b))return;b.declare=!0}super.parseClassMember(u,b,w),b.declare&&(b.type!=="ClassProperty"&&b.type!=="ClassPrivateProperty"&&b.type!=="PropertyDefinition"?this.raise(ot.DeclareClassElement,B):b.value&&this.raise(ot.DeclareClassFieldInitializer,b.value))}isIterator(u){return u==="iterator"||u==="asyncIterator"}readIterator(){const u=super.readWord1(),b="@@"+u;(!this.isIterator(u)||!this.state.inType)&&this.raise(m.InvalidIdentifier,this.state.curPosition(),{identifierName:b}),this.finishToken(132,b)}getTokenFromCode(u){const b=this.input.charCodeAt(this.state.pos+1);u===123&&b===124?this.finishOp(6,2):this.state.inType&&(u===62||u===60)?this.finishOp(u===62?48:47,1):this.state.inType&&u===63?b===46?this.finishOp(18,2):this.finishOp(17,1):Ut(u,b,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(u)}isAssignable(u,b){return u.type==="TypeCastExpression"?this.isAssignable(u.expression,b):super.isAssignable(u,b)}toAssignable(u,b=!1){!b&&u.type==="AssignmentExpression"&&u.left.type==="TypeCastExpression"&&(u.left=this.typeCastToParameter(u.left)),super.toAssignable(u,b)}toAssignableList(u,b,w){for(let B=0;B<u.length;B++){const ee=u[B];(ee==null?void 0:ee.type)==="TypeCastExpression"&&(u[B]=this.typeCastToParameter(ee))}super.toAssignableList(u,b,w)}toReferencedList(u,b){for(let B=0;B<u.length;B++){var w;const ee=u[B];ee&&ee.type==="TypeCastExpression"&&!((w=ee.extra)!=null&&w.parenthesized)&&(u.length>1||!b)&&this.raise(ot.TypeCastInPattern,ee.typeAnnotation)}return u}parseArrayLike(u,b,w){const B=super.parseArrayLike(u,b,w);return w!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(B.elements),B}isValidLVal(u,b,w,B){return u==="TypeCastExpression"||super.isValidLVal(u,b,w,B)}parseClassProperty(u){return this.match(14)&&(u.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(u)}parseClassPrivateProperty(u){return this.match(14)&&(u.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(u)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(u){return!this.match(14)&&super.isNonstaticConstructor(u)}pushClassMethod(u,b,w,B,ee,le){if(b.variance&&this.unexpected(b.variance.loc.start),delete b.variance,this.match(47)&&(b.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(u,b,w,B,ee,le),b.params&&ee){const be=b.params;be.length>0&&this.isThisParam(be[0])&&this.raise(ot.ThisParamBannedInConstructor,b)}else if(b.type==="MethodDefinition"&&ee&&b.value.params){const be=b.value.params;be.length>0&&this.isThisParam(be[0])&&this.raise(ot.ThisParamBannedInConstructor,b)}}pushClassPrivateMethod(u,b,w,B){b.variance&&this.unexpected(b.variance.loc.start),delete b.variance,this.match(47)&&(b.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(u,b,w,B)}parseClassSuper(u){if(super.parseClassSuper(u),u.superClass&&(this.match(47)||this.match(51))&&(u.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const b=u.implements=[];do{const w=this.startNode();w.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?w.typeParameters=this.flowParseTypeParameterInstantiation():w.typeParameters=null,b.push(this.finishNode(w,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(u){super.checkGetterSetterParams(u);const b=this.getObjectOrClassMethodParams(u);if(b.length>0){const w=b[0];this.isThisParam(w)&&u.kind==="get"?this.raise(ot.GetterMayNotHaveThisParam,w):this.isThisParam(w)&&this.raise(ot.SetterMayNotHaveThisParam,w)}}parsePropertyNamePrefixOperator(u){u.variance=this.flowParseVariance()}parseObjPropValue(u,b,w,B,ee,le,be){u.variance&&this.unexpected(u.variance.loc.start),delete u.variance;let we;this.match(47)&&!le&&(we=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const Ne=super.parseObjPropValue(u,b,w,B,ee,le,be);return we&&((Ne.value||Ne).typeParameters=we),Ne}parseFunctionParamType(u){return this.eat(17)&&(u.type!=="Identifier"&&this.raise(ot.PatternIsOptional,u),this.isThisParam(u)&&this.raise(ot.ThisParamMayNotBeOptional,u),u.optional=!0),this.match(14)?u.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(u)&&this.raise(ot.ThisParamAnnotationRequired,u),this.match(29)&&this.isThisParam(u)&&this.raise(ot.ThisParamNoDefault,u),this.resetEndLocation(u),u}parseMaybeDefault(u,b){const w=super.parseMaybeDefault(u,b);return w.type==="AssignmentPattern"&&w.typeAnnotation&&w.right.start<w.typeAnnotation.start&&this.raise(ot.TypeBeforeInitializer,w.typeAnnotation),w}checkImportReflection(u){super.checkImportReflection(u),u.module&&u.importKind!=="value"&&this.raise(ot.ImportReflectionHasImportType,u.specifiers[0].loc.start)}parseImportSpecifierLocal(u,b,w){b.local=Hn(u)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),u.specifiers.push(this.finishImportSpecifier(b,w))}isPotentialImportPhase(u){if(super.isPotentialImportPhase(u))return!0;if(this.isContextual(130)){if(!u)return!0;const b=this.lookaheadCharCode();return b===123||b===42}return!u&&this.isContextual(87)}applyImportPhase(u,b,w,B){if(super.applyImportPhase(u,b,w,B),b){if(!w&&this.match(65))return;u.exportKind=w==="type"?w:"value"}else w==="type"&&this.match(55)&&this.unexpected(),u.importKind=w==="type"||w==="typeof"?w:"value"}parseImportSpecifier(u,b,w,B,ee){const le=u.imported;let be=null;le.type==="Identifier"&&(le.name==="type"?be="type":le.name==="typeof"&&(be="typeof"));let we=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const Ve=this.parseIdentifier(!0);be!==null&&!xe(this.state.type)?(u.imported=Ve,u.importKind=be,u.local=this.cloneIdentifier(Ve)):(u.imported=le,u.importKind=null,u.local=this.parseIdentifier())}else{if(be!==null&&xe(this.state.type))u.imported=this.parseIdentifier(!0),u.importKind=be;else{if(b)throw this.raise(m.ImportBindingIsString,u,{importName:le.value});u.imported=le,u.importKind=null}this.eatContextual(93)?u.local=this.parseIdentifier():(we=!0,u.local=this.cloneIdentifier(u.imported))}const Ne=Hn(u);return w&&Ne&&this.raise(ot.ImportTypeShorthandOnlyInPureImport,u),(w||Ne)&&this.checkReservedType(u.local.name,u.local.loc.start,!0),we&&!w&&!Ne&&this.checkReservedWord(u.local.name,u.loc.start,!0,!0),this.finishImportSpecifier(u,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(u,b){const w=u.kind;w!=="get"&&w!=="set"&&this.match(47)&&(u.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(u,b)}parseVarId(u,b){super.parseVarId(u,b),this.match(14)&&(u.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(u.id))}parseAsyncArrowFromCallExpression(u,b){if(this.match(14)){const w=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,u.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=w}return super.parseAsyncArrowFromCallExpression(u,b)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(u,b){var w;let B=null,ee;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(B=this.state.clone(),ee=this.tryParse(()=>super.parseMaybeAssign(u,b),B),!ee.error)return ee.node;const{context:we}=this.state,Ne=we[we.length-1];(Ne===M.j_oTag||Ne===M.j_expr)&&we.pop()}if((w=ee)!=null&&w.error||this.match(47)){var le,be;B=B||this.state.clone();let we;const Ne=this.tryParse(Qe=>{var tt;we=this.flowParseTypeParameterDeclaration();const ct=this.forwardNoArrowParamsConversionAt(we,()=>{const Rt=super.parseMaybeAssign(u,b);return this.resetStartLocationFromNode(Rt,we),Rt});(tt=ct.extra)!=null&&tt.parenthesized&&Qe();const Ct=this.maybeUnwrapTypeCastExpression(ct);return Ct.type!=="ArrowFunctionExpression"&&Qe(),Ct.typeParameters=we,this.resetStartLocationFromNode(Ct,we),ct},B);let Ve=null;if(Ne.node&&this.maybeUnwrapTypeCastExpression(Ne.node).type==="ArrowFunctionExpression"){if(!Ne.error&&!Ne.aborted)return Ne.node.async&&this.raise(ot.UnexpectedTypeParameterBeforeAsyncArrowFunction,we),Ne.node;Ve=Ne.node}if((le=ee)!=null&&le.node)return this.state=ee.failState,ee.node;if(Ve)return this.state=Ne.failState,Ve;throw(be=ee)!=null&&be.thrown?ee.error:Ne.thrown?Ne.error:this.raise(ot.UnexpectedTokenAfterTypeParameter,we)}return super.parseMaybeAssign(u,b)}parseArrow(u){if(this.match(14)){const b=this.tryParse(()=>{const w=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const B=this.startNode();return[B.typeAnnotation,u.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=w,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),B});if(b.thrown)return null;b.error&&(this.state=b.failState),u.returnType=b.node.typeAnnotation?this.finishNode(b.node,"TypeAnnotation"):null}return super.parseArrow(u)}shouldParseArrow(u){return this.match(14)||super.shouldParseArrow(u)}setArrowFunctionParameters(u,b){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(u.start))?u.params=b:super.setArrowFunctionParameters(u,b)}checkParams(u,b,w,B=!0){if(!(w&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(u.start)))){for(let ee=0;ee<u.params.length;ee++)this.isThisParam(u.params[ee])&&ee>0&&this.raise(ot.ThisParamMustBeFirst,u.params[ee]);super.checkParams(u,b,w,B)}}parseParenAndDistinguishExpression(u){return super.parseParenAndDistinguishExpression(u&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(u,b,w){if(u.type==="Identifier"&&u.name==="async"&&this.state.noArrowAt.includes(b.index)){this.next();const B=this.startNodeAt(b);B.callee=u,B.arguments=super.parseCallExpressionArguments(),u=this.finishNode(B,"CallExpression")}else if(u.type==="Identifier"&&u.name==="async"&&this.match(47)){const B=this.state.clone(),ee=this.tryParse(be=>this.parseAsyncArrowWithTypeParameters(b)||be(),B);if(!ee.error&&!ee.aborted)return ee.node;const le=this.tryParse(()=>super.parseSubscripts(u,b,w),B);if(le.node&&!le.error)return le.node;if(ee.node)return this.state=ee.failState,ee.node;if(le.node)return this.state=le.failState,le.node;throw ee.error||le.error}return super.parseSubscripts(u,b,w)}parseSubscript(u,b,w,B){if(this.match(18)&&this.isLookaheadToken_lt()){if(B.optionalChainMember=!0,w)return B.stop=!0,u;this.next();const ee=this.startNodeAt(b);return ee.callee=u,ee.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),ee.arguments=this.parseCallExpressionArguments(),ee.optional=!0,this.finishCallExpression(ee,!0)}else if(!w&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const ee=this.startNodeAt(b);ee.callee=u;const le=this.tryParse(()=>(ee.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),ee.arguments=super.parseCallExpressionArguments(),B.optionalChainMember&&(ee.optional=!1),this.finishCallExpression(ee,B.optionalChainMember)));if(le.node)return le.error&&(this.state=le.failState),le.node}return super.parseSubscript(u,b,w,B)}parseNewCallee(u){super.parseNewCallee(u);let b=null;this.shouldParseTypes()&&this.match(47)&&(b=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),u.typeArguments=b}parseAsyncArrowWithTypeParameters(u){const b=this.startNodeAt(u);if(this.parseFunctionParams(b,!1),!!this.parseArrow(b))return super.parseArrowExpression(b,void 0,!0)}readToken_mult_modulo(u){const b=this.input.charCodeAt(this.state.pos+1);if(u===42&&b===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(u)}readToken_pipe_amp(u){const b=this.input.charCodeAt(this.state.pos+1);if(u===124&&b===125){this.finishOp(9,2);return}super.readToken_pipe_amp(u)}parseTopLevel(u,b){const w=super.parseTopLevel(u,b);return this.state.hasFlowComment&&this.raise(ot.UnterminatedFlowComment,this.state.curPosition()),w}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ot.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const u=this.skipFlowComment();u&&(this.state.pos+=u,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:u}=this.state;let b=2;for(;[32,9].includes(this.input.charCodeAt(u+b));)b++;const w=this.input.charCodeAt(b+u),B=this.input.charCodeAt(b+u+1);return w===58&&B===58?b+2:this.input.slice(b+u,b+u+12)==="flow-include"?b+12:w===58&&B!==58?b:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(m.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(u,{enumName:b,memberName:w}){this.raise(ot.EnumBooleanMemberNotInitialized,u,{memberName:w,enumName:b})}flowEnumErrorInvalidMemberInitializer(u,b){return this.raise(b.explicitType?b.explicitType==="symbol"?ot.EnumInvalidMemberInitializerSymbolType:ot.EnumInvalidMemberInitializerPrimaryType:ot.EnumInvalidMemberInitializerUnknownType,u,b)}flowEnumErrorNumberMemberNotInitialized(u,b){this.raise(ot.EnumNumberMemberNotInitialized,u,b)}flowEnumErrorStringMemberInconsistentlyInitialized(u,b){this.raise(ot.EnumStringMemberInconsistentlyInitialized,u,b)}flowEnumMemberInit(){const u=this.state.startLoc,b=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const w=this.parseNumericLiteral(this.state.value);return b()?{type:"number",loc:w.loc.start,value:w}:{type:"invalid",loc:u}}case 134:{const w=this.parseStringLiteral(this.state.value);return b()?{type:"string",loc:w.loc.start,value:w}:{type:"invalid",loc:u}}case 85:case 86:{const w=this.parseBooleanLiteral(this.match(85));return b()?{type:"boolean",loc:w.loc.start,value:w}:{type:"invalid",loc:u}}default:return{type:"invalid",loc:u}}}flowEnumMemberRaw(){const u=this.state.startLoc,b=this.parseIdentifier(!0),w=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:u};return{id:b,init:w}}flowEnumCheckExplicitTypeMismatch(u,b,w){const{explicitType:B}=b;B!==null&&B!==w&&this.flowEnumErrorInvalidMemberInitializer(u,b)}flowEnumMembers({enumName:u,explicitType:b}){const w=new Set,B={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let ee=!1;for(;!this.match(8);){if(this.eat(21)){ee=!0;break}const le=this.startNode(),{id:be,init:we}=this.flowEnumMemberRaw(),Ne=be.name;if(Ne==="")continue;/^[a-z]/.test(Ne)&&this.raise(ot.EnumInvalidMemberName,be,{memberName:Ne,suggestion:Ne[0].toUpperCase()+Ne.slice(1),enumName:u}),w.has(Ne)&&this.raise(ot.EnumDuplicateMemberName,be,{memberName:Ne,enumName:u}),w.add(Ne);const Ve={enumName:u,explicitType:b,memberName:Ne};switch(le.id=be,we.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(we.loc,Ve,"boolean"),le.init=we.value,B.booleanMembers.push(this.finishNode(le,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(we.loc,Ve,"number"),le.init=we.value,B.numberMembers.push(this.finishNode(le,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(we.loc,Ve,"string"),le.init=we.value,B.stringMembers.push(this.finishNode(le,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(we.loc,Ve);case"none":switch(b){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(we.loc,Ve);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(we.loc,Ve);break;default:B.defaultedMembers.push(this.finishNode(le,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:B,hasUnknownMembers:ee}}flowEnumStringMembers(u,b,{enumName:w}){if(u.length===0)return b;if(b.length===0)return u;if(b.length>u.length){for(const B of u)this.flowEnumErrorStringMemberInconsistentlyInitialized(B,{enumName:w});return b}else{for(const B of b)this.flowEnumErrorStringMemberInconsistentlyInitialized(B,{enumName:w});return u}}flowEnumParseExplicitType({enumName:u}){if(!this.eatContextual(102))return null;if(!Se(this.state.type))throw this.raise(ot.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:u});const{value:b}=this.state;return this.next(),b!=="boolean"&&b!=="number"&&b!=="string"&&b!=="symbol"&&this.raise(ot.EnumInvalidExplicitType,this.state.startLoc,{enumName:u,invalidEnumType:b}),b}flowEnumBody(u,b){const w=b.name,B=b.loc.start,ee=this.flowEnumParseExplicitType({enumName:w});this.expect(5);const{members:le,hasUnknownMembers:be}=this.flowEnumMembers({enumName:w,explicitType:ee});switch(u.hasUnknownMembers=be,ee){case"boolean":return u.explicitType=!0,u.members=le.booleanMembers,this.expect(8),this.finishNode(u,"EnumBooleanBody");case"number":return u.explicitType=!0,u.members=le.numberMembers,this.expect(8),this.finishNode(u,"EnumNumberBody");case"string":return u.explicitType=!0,u.members=this.flowEnumStringMembers(le.stringMembers,le.defaultedMembers,{enumName:w}),this.expect(8),this.finishNode(u,"EnumStringBody");case"symbol":return u.members=le.defaultedMembers,this.expect(8),this.finishNode(u,"EnumSymbolBody");default:{const we=()=>(u.members=[],this.expect(8),this.finishNode(u,"EnumStringBody"));u.explicitType=!1;const Ne=le.booleanMembers.length,Ve=le.numberMembers.length,Qe=le.stringMembers.length,tt=le.defaultedMembers.length;if(!Ne&&!Ve&&!Qe&&!tt)return we();if(!Ne&&!Ve)return u.members=this.flowEnumStringMembers(le.stringMembers,le.defaultedMembers,{enumName:w}),this.expect(8),this.finishNode(u,"EnumStringBody");if(!Ve&&!Qe&&Ne>=tt){for(const ct of le.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(ct.loc.start,{enumName:w,memberName:ct.id.name});return u.members=le.booleanMembers,this.expect(8),this.finishNode(u,"EnumBooleanBody")}else if(!Ne&&!Qe&&Ve>=tt){for(const ct of le.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(ct.loc.start,{enumName:w,memberName:ct.id.name});return u.members=le.numberMembers,this.expect(8),this.finishNode(u,"EnumNumberBody")}else return this.raise(ot.EnumInconsistentMemberValues,B,{enumName:w}),we()}}}flowParseEnumDeclaration(u){const b=this.parseIdentifier();return u.id=b,u.body=this.flowEnumBody(this.startNode(),b),this.finishNode(u,"EnumDeclaration")}jsxParseOpeningElementAfterName(u){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(u.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(u)}isLookaheadToken_lt(){const u=this.nextTokenStart();if(this.input.charCodeAt(u)===60){const b=this.input.charCodeAt(u+1);return b!==60&&b!==61}return!1}reScan_lt_gt(){const{type:u}=this.state;u===47?(this.state.pos-=1,this.readToken_lt()):u===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:u}=this.state;return u===51?(this.state.pos-=2,this.finishOp(47,1),47):u}maybeUnwrapTypeCastExpression(u){return u.type==="TypeCastExpression"?u.expression:u}};const Cn={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"Â¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"Â",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Ã",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Ã…",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"ÃŒ",Iacute:"Ã",Icirc:"ÃŽ",Iuml:"Ã",ETH:"Ã",Ntilde:"Ñ",Ograve:"Ã’",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ã",THORN:"Þ",szlig:"ß",agrave:"à ",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"Ã¥",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"Ã",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Å’",oelig:"Å“",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",fnof:"Æ’",circ:"ˆ",tilde:"Ëœ",Alpha:"Α",Beta:"Î’",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Î",Xi:"Ξ",Omicron:"Ο",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï€",rho:"Ï",sigmaf:"Ï‚",sigma:"σ",tau:"Ï„",upsilon:"Ï…",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"Ï‘",upsih:"Ï’",piv:"Ï–",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"â€",lrm:"‎",rlm:"â€",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"â€",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"â„",euro:"€",image:"â„‘",weierp:"℘",real:"ℜ",trade:"â„¢",alefsym:"ℵ",larr:"â†",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"â‡",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"âˆ",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"âˆ",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"â‹…",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"â—Š",spades:"â™ ",clubs:"♣",hearts:"♥",diams:"♦"},fi=/\r\n|[\r\n\u2028\u2029]/,fn=new RegExp(fi.source,"g");function Ur(G){switch(G){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function ga(G,g,u){for(let b=g;b<u;b++)if(Ur(G.charCodeAt(b)))return!0;return!1}const ji=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ri=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function js(G){switch(G){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}const pn=y`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:G})=>`Expected corresponding JSX closing tag for <${G}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:G,HTMLEntity:g})=>`Unexpected token \`${G}\`. Did you mean \`${g}\` or \`{'${G}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Jr(G){return G?G.type==="JSXOpeningFragment"||G.type==="JSXClosingFragment":!1}function In(G){if(G.type==="JSXIdentifier")return G.name;if(G.type==="JSXNamespacedName")return G.namespace.name+":"+G.name.name;if(G.type==="JSXMemberExpression")return In(G.object)+"."+In(G.property);throw new Error("Node had unexpected type: "+G.type)}var Rs=G=>class extends G{jsxReadToken(){let u="",b=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(pn.UnterminatedJsxContent,this.state.startLoc);const w=this.input.charCodeAt(this.state.pos);switch(w){case 60:case 123:if(this.state.pos===this.state.start){w===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(w);return}u+=this.input.slice(b,this.state.pos),this.finishToken(142,u);return;case 38:u+=this.input.slice(b,this.state.pos),u+=this.jsxReadEntity(),b=this.state.pos;break;case 62:case 125:default:Ur(w)?(u+=this.input.slice(b,this.state.pos),u+=this.jsxReadNewLine(!0),b=this.state.pos):++this.state.pos}}}jsxReadNewLine(u){const b=this.input.charCodeAt(this.state.pos);let w;return++this.state.pos,b===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,w=u?`
`:`\r
`):w=String.fromCharCode(b),++this.state.curLine,this.state.lineStart=this.state.pos,w}jsxReadString(u){let b="",w=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(m.UnterminatedString,this.state.startLoc);const B=this.input.charCodeAt(this.state.pos);if(B===u)break;B===38?(b+=this.input.slice(w,this.state.pos),b+=this.jsxReadEntity(),w=this.state.pos):Ur(B)?(b+=this.input.slice(w,this.state.pos),b+=this.jsxReadNewLine(!1),w=this.state.pos):++this.state.pos}b+=this.input.slice(w,this.state.pos++),this.finishToken(134,b)}jsxReadEntity(){const u=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let b=10;this.codePointAtPos(this.state.pos)===120&&(b=16,++this.state.pos);const w=this.readInt(b,void 0,!1,"bail");if(w!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(w)}else{let b=0,w=!1;for(;b++<10&&this.state.pos<this.length&&!(w=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(w){const B=this.input.slice(u,this.state.pos),ee=Cn[B];if(++this.state.pos,ee)return ee}}return this.state.pos=u,"&"}jsxReadWord(){let u;const b=this.state.pos;do u=this.input.charCodeAt(++this.state.pos);while(qe(u)||u===45);this.finishToken(141,this.input.slice(b,this.state.pos))}jsxParseIdentifier(){const u=this.startNode();return this.match(141)?u.name=this.state.value:ue(this.state.type)?u.name=_e(this.state.type):this.unexpected(),this.next(),this.finishNode(u,"JSXIdentifier")}jsxParseNamespacedName(){const u=this.state.startLoc,b=this.jsxParseIdentifier();if(!this.eat(14))return b;const w=this.startNodeAt(u);return w.namespace=b,w.name=this.jsxParseIdentifier(),this.finishNode(w,"JSXNamespacedName")}jsxParseElementName(){const u=this.state.startLoc;let b=this.jsxParseNamespacedName();if(b.type==="JSXNamespacedName")return b;for(;this.eat(16);){const w=this.startNodeAt(u);w.object=b,w.property=this.jsxParseIdentifier(),b=this.finishNode(w,"JSXMemberExpression")}return b}jsxParseAttributeValue(){let u;switch(this.state.type){case 5:return u=this.startNode(),this.setContext(M.brace),this.next(),u=this.jsxParseExpressionContainer(u,M.j_oTag),u.expression.type==="JSXEmptyExpression"&&this.raise(pn.AttributeIsEmpty,u),u;case 143:case 134:return this.parseExprAtom();default:throw this.raise(pn.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const u=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(u,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(u){return this.next(),u.expression=this.parseExpression(),this.setContext(M.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(u,"JSXSpreadChild")}jsxParseExpressionContainer(u,b){if(this.match(8))u.expression=this.jsxParseEmptyExpression();else{const w=this.parseExpression();u.expression=w}return this.setContext(b),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(u,"JSXExpressionContainer")}jsxParseAttribute(){const u=this.startNode();return this.match(5)?(this.setContext(M.brace),this.next(),this.expect(21),u.argument=this.parseMaybeAssignAllowIn(),this.setContext(M.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(u,"JSXSpreadAttribute")):(u.name=this.jsxParseNamespacedName(),u.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(u,"JSXAttribute"))}jsxParseOpeningElementAt(u){const b=this.startNodeAt(u);return this.eat(144)?this.finishNode(b,"JSXOpeningFragment"):(b.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(b))}jsxParseOpeningElementAfterName(u){const b=[];for(;!this.match(56)&&!this.match(144);)b.push(this.jsxParseAttribute());return u.attributes=b,u.selfClosing=this.eat(56),this.expect(144),this.finishNode(u,"JSXOpeningElement")}jsxParseClosingElementAt(u){const b=this.startNodeAt(u);return this.eat(144)?this.finishNode(b,"JSXClosingFragment"):(b.name=this.jsxParseElementName(),this.expect(144),this.finishNode(b,"JSXClosingElement"))}jsxParseElementAt(u){const b=this.startNodeAt(u),w=[],B=this.jsxParseOpeningElementAt(u);let ee=null;if(!B.selfClosing){e:for(;;)switch(this.state.type){case 143:if(u=this.state.startLoc,this.next(),this.eat(56)){ee=this.jsxParseClosingElementAt(u);break e}w.push(this.jsxParseElementAt(u));break;case 142:w.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const le=this.startNode();this.setContext(M.brace),this.next(),this.match(21)?w.push(this.jsxParseSpreadChild(le)):w.push(this.jsxParseExpressionContainer(le,M.j_expr));break}default:this.unexpected()}Jr(B)&&!Jr(ee)&&ee!==null?this.raise(pn.MissingClosingTagFragment,ee):!Jr(B)&&Jr(ee)?this.raise(pn.MissingClosingTagElement,ee,{openingTagName:In(B.name)}):!Jr(B)&&!Jr(ee)&&In(ee.name)!==In(B.name)&&this.raise(pn.MissingClosingTagElement,ee,{openingTagName:In(B.name)})}if(Jr(B)?(b.openingFragment=B,b.closingFragment=ee):(b.openingElement=B,b.closingElement=ee),b.children=w,this.match(47))throw this.raise(pn.UnwrappedAdjacentJSXElements,this.state.startLoc);return Jr(B)?this.finishNode(b,"JSXFragment"):this.finishNode(b,"JSXElement")}jsxParseElement(){const u=this.state.startLoc;return this.next(),this.jsxParseElementAt(u)}setContext(u){const{context:b}=this.state;b[b.length-1]=u}parseExprAtom(u){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(u)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(u){const b=this.curContext();if(b===M.j_expr){this.jsxReadToken();return}if(b===M.j_oTag||b===M.j_cTag){if(Le(u)){this.jsxReadWord();return}if(u===62){++this.state.pos,this.finishToken(144);return}if((u===34||u===39)&&b===M.j_oTag){this.jsxReadString(u);return}}if(u===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(u)}updateContext(u){const{context:b,type:w}=this.state;if(w===56&&u===143)b.splice(-2,2,M.j_cTag),this.state.canStartJSXElement=!1;else if(w===143)b.push(M.j_oTag);else if(w===144){const B=b[b.length-1];B===M.j_oTag&&u===56||B===M.j_cTag?(b.pop(),this.state.canStartJSXElement=b[b.length-1]===M.j_expr):(this.setContext(M.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=Re(w)}};class Bs extends mr{constructor(...g){super(...g),this.tsNames=new Map}}class Fs extends yr{constructor(...g){super(...g),this.importsStack=[]}createScope(g){return this.importsStack.push(new Set),new Bs(g)}enter(g){g===1024&&this.importsStack.push(new Set),super.enter(g)}exit(){const g=super.exit();return g===1024&&this.importsStack.pop(),g}hasImport(g,u){const b=this.importsStack.length;if(this.importsStack[b-1].has(g))return!0;if(!u&&b>1){for(let w=0;w<b-1;w++)if(this.importsStack[w].has(g))return!0}return!1}declareName(g,u,b){if(u&4096){this.hasImport(g,!0)&&this.parser.raise(m.VarRedeclaration,b,{identifierName:g}),this.importsStack[this.importsStack.length-1].add(g);return}const w=this.currentScope();let B=w.tsNames.get(g)||0;if(u&1024){this.maybeExportDefined(w,g),w.tsNames.set(g,B|16);return}super.declareName(g,u,b),u&2&&(u&1||(this.checkRedeclarationInScope(w,g,u,b),this.maybeExportDefined(w,g)),B=B|1),u&256&&(B=B|2),u&512&&(B=B|4),u&128&&(B=B|8),B&&w.tsNames.set(g,B)}isRedeclaredInScope(g,u,b){const w=g.tsNames.get(u);if((w&2)>0){if(b&256){const B=!!(b&512),ee=(w&4)>0;return B!==ee}return!0}return b&128&&(w&8)>0?g.names.get(u)&2?!!(b&1):!1:b&2&&(w&1)>0?!0:super.isRedeclaredInScope(g,u,b)}checkLocalExport(g){const{name:u}=g;if(this.hasImport(u))return;const b=this.scopeStack.length;for(let w=b-1;w>=0;w--){const ee=this.scopeStack[w].tsNames.get(u);if((ee&1)>0||(ee&16)>0)return}super.checkLocalExport(g)}}class qs{constructor(){this.stacks=[]}enter(g){this.stacks.push(g)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function pi(G,g){return(G?2:0)|(g?1:0)}class $s{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(g){return g+this.startIndex}offsetToSourcePos(g){return g-this.startIndex}hasPlugin(g){if(typeof g=="string")return this.plugins.has(g);{const[u,b]=g;if(!this.hasPlugin(u))return!1;const w=this.plugins.get(u);for(const B of Object.keys(b))if((w==null?void 0:w[B])!==b[B])return!1;return!0}}getPluginOption(g,u){var b;return(b=this.plugins.get(g))==null?void 0:b[u]}}function va(G,g){G.trailingComments===void 0?G.trailingComments=g:G.trailingComments.unshift(...g)}function Us(G,g){G.leadingComments===void 0?G.leadingComments=g:G.leadingComments.unshift(...g)}function Xn(G,g){G.innerComments===void 0?G.innerComments=g:G.innerComments.unshift(...g)}function jr(G,g,u){let b=null,w=g.length;for(;b===null&&w>0;)b=g[--w];b===null||b.start>u.start?Xn(G,u.comments):va(b,u.comments)}class Vs extends $s{addComment(g){this.filename&&(g.loc.filename=this.filename);const{commentsLen:u}=this.state;this.comments.length!==u&&(this.comments.length=u),this.comments.push(g),this.state.commentsLen++}processComment(g){const{commentStack:u}=this.state,b=u.length;if(b===0)return;let w=b-1;const B=u[w];B.start===g.end&&(B.leadingNode=g,w--);const{start:ee}=g;for(;w>=0;w--){const le=u[w],be=le.end;if(be>ee)le.containingNode=g,this.finalizeComment(le),u.splice(w,1);else{be===ee&&(le.trailingNode=g);break}}}finalizeComment(g){var u;const{comments:b}=g;if(g.leadingNode!==null||g.trailingNode!==null)g.leadingNode!==null&&va(g.leadingNode,b),g.trailingNode!==null&&Us(g.trailingNode,b);else{const w=g.containingNode,B=g.start;if(this.input.charCodeAt(this.offsetToSourcePos(B)-1)===44)switch(w.type){case"ObjectExpression":case"ObjectPattern":jr(w,w.properties,g);break;case"CallExpression":case"OptionalCallExpression":jr(w,w.arguments,g);break;case"ImportExpression":jr(w,[w.source,(u=w.options)!=null?u:null],g);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":jr(w,w.params,g);break;case"ArrayExpression":case"ArrayPattern":jr(w,w.elements,g);break;case"ExportNamedDeclaration":case"ImportDeclaration":jr(w,w.specifiers,g);break;case"TSEnumDeclaration":jr(w,w.members,g);break;case"TSEnumBody":jr(w,w.members,g);break;default:{if(w.type==="RecordExpression"){jr(w,w.properties,g);break}if(w.type==="TupleExpression"){jr(w,w.elements,g);break}Xn(w,b)}}else Xn(w,b)}}finalizeRemainingComments(){const{commentStack:g}=this.state;for(let u=g.length-1;u>=0;u--)this.finalizeComment(g[u]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(g){const{commentStack:u}=this.state,{length:b}=u;if(b===0)return;const w=u[b-1];w.leadingNode===g&&(w.leadingNode=null)}takeSurroundingComments(g,u,b){const{commentStack:w}=this.state,B=w.length;if(B===0)return;let ee=B-1;for(;ee>=0;ee--){const le=w[ee],be=le.end;if(le.start===b)le.leadingNode=g;else if(be===u)le.trailingNode=g;else if(be<u)break}}}class Bi{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[M.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(g){g?this.flags|=1:this.flags&=-2}init({strictMode:g,sourceType:u,startIndex:b,startLine:w,startColumn:B}){this.strict=g===!1?!1:g===!0?!0:u==="module",this.startIndex=b,this.curLine=w,this.lineStart=-B,this.startLoc=this.endLoc=new t(w,B,b)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(g){g?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(g){g?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(g){g?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(g){g?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(g){g?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(g){g?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(g){g?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(g){g?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(g){g?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(g){g?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(g){g?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(g){g?this.flags|=4096:this.flags&=-4097}curPosition(){return new t(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const g=new Bi;return g.flags=this.flags,g.startIndex=this.startIndex,g.curLine=this.curLine,g.lineStart=this.lineStart,g.startLoc=this.startLoc,g.endLoc=this.endLoc,g.errors=this.errors.slice(),g.potentialArrowAt=this.potentialArrowAt,g.noArrowAt=this.noArrowAt.slice(),g.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),g.topicContext=this.topicContext,g.labels=this.labels.slice(),g.commentsLen=this.commentsLen,g.commentStack=this.commentStack.slice(),g.pos=this.pos,g.type=this.type,g.value=this.value,g.start=this.start,g.end=this.end,g.lastTokEndLoc=this.lastTokEndLoc,g.lastTokStartLoc=this.lastTokStartLoc,g.context=this.context.slice(),g.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,g.strictErrors=this.strictErrors,g.tokensLength=this.tokensLength,g}}var Ks=function(g){return g>=48&&g<=57};const ba={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},di={bin:G=>G===48||G===49,oct:G=>G>=48&&G<=55,dec:G=>G>=48&&G<=57,hex:G=>G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102};function xa(G,g,u,b,w,B){const ee=u,le=b,be=w;let we="",Ne=null,Ve=u;const{length:Qe}=g;for(;;){if(u>=Qe){B.unterminated(ee,le,be),we+=g.slice(Ve,u);break}const tt=g.charCodeAt(u);if(zs(G,tt,g,u)){we+=g.slice(Ve,u);break}if(tt===92){we+=g.slice(Ve,u);const ct=Ws(g,u,b,w,G==="template",B);ct.ch===null&&!Ne?Ne={pos:u,lineStart:b,curLine:w}:we+=ct.ch,{pos:u,lineStart:b,curLine:w}=ct,Ve=u}else tt===8232||tt===8233?(++u,++w,b=u):tt===10||tt===13?G==="template"?(we+=g.slice(Ve,u)+`
`,++u,tt===13&&g.charCodeAt(u)===10&&++u,++w,Ve=b=u):B.unterminated(ee,le,be):++u}return{pos:u,str:we,firstInvalidLoc:Ne,lineStart:b,curLine:w,containsInvalid:!!Ne}}function zs(G,g,u,b){return G==="template"?g===96||g===36&&u.charCodeAt(b+1)===123:g===(G==="double"?34:39)}function Ws(G,g,u,b,w,B){const ee=!w;g++;const le=we=>({pos:g,ch:we,lineStart:u,curLine:b}),be=G.charCodeAt(g++);switch(be){case 110:return le(`
`);case 114:return le("\r");case 120:{let we;return{code:we,pos:g}=Fi(G,g,u,b,2,!1,ee,B),le(we===null?null:String.fromCharCode(we))}case 117:{let we;return{code:we,pos:g}=Sa(G,g,u,b,ee,B),le(we===null?null:String.fromCodePoint(we))}case 116:return le(" ");case 98:return le("\b");case 118:return le("\v");case 102:return le("\f");case 13:G.charCodeAt(g)===10&&++g;case 10:u=g,++b;case 8232:case 8233:return le("");case 56:case 57:if(w)return le(null);B.strictNumericEscape(g-1,u,b);default:if(be>=48&&be<=55){const we=g-1;let Ve=/^[0-7]+/.exec(G.slice(we,g+2))[0],Qe=parseInt(Ve,8);Qe>255&&(Ve=Ve.slice(0,-1),Qe=parseInt(Ve,8)),g+=Ve.length-1;const tt=G.charCodeAt(g);if(Ve!=="0"||tt===56||tt===57){if(w)return le(null);B.strictNumericEscape(we,u,b)}return le(String.fromCharCode(Qe))}return le(String.fromCharCode(be))}}function Fi(G,g,u,b,w,B,ee,le){const be=g;let we;return{n:we,pos:g}=Ta(G,g,u,b,16,w,B,!1,le,!ee),we===null&&(ee?le.invalidEscapeSequence(be,u,b):g=be-1),{code:we,pos:g}}function Ta(G,g,u,b,w,B,ee,le,be,we){const Ne=g,Ve=w===16?ba.hex:ba.decBinOct,Qe=w===16?di.hex:w===10?di.dec:w===8?di.oct:di.bin;let tt=!1,ct=0;for(let Ct=0,Rt=B??1/0;Ct<Rt;++Ct){const bt=G.charCodeAt(g);let jt;if(bt===95&&le!=="bail"){const dn=G.charCodeAt(g-1),Zr=G.charCodeAt(g+1);if(le){if(Number.isNaN(Zr)||!Qe(Zr)||Ve.has(dn)||Ve.has(Zr)){if(we)return{n:null,pos:g};be.unexpectedNumericSeparator(g,u,b)}}else{if(we)return{n:null,pos:g};be.numericSeparatorInEscapeSequence(g,u,b)}++g;continue}if(bt>=97?jt=bt-97+10:bt>=65?jt=bt-65+10:Ks(bt)?jt=bt-48:jt=1/0,jt>=w){if(jt<=9&&we)return{n:null,pos:g};if(jt<=9&&be.invalidDigit(g,u,b,w))jt=0;else if(ee)jt=0,tt=!0;else break}++g,ct=ct*w+jt}return g===Ne||B!=null&&g-Ne!==B||tt?{n:null,pos:g}:{n:ct,pos:g}}function Sa(G,g,u,b,w,B){const ee=G.charCodeAt(g);let le;if(ee===123){if(++g,{code:le,pos:g}=Fi(G,g,u,b,G.indexOf("}",g)-g,!0,w,B),++g,le!==null&&le>1114111)if(w)B.invalidCodePoint(g,u,b);else return{code:null,pos:g}}else({code:le,pos:g}=Fi(G,g,u,b,4,!1,w,B));return{code:le,pos:g}}function Gn(G,g,u){return new t(u,G-g,G)}const Hs=new Set([103,109,115,105,121,117,100,118]);class Qr{constructor(g){const u=g.startIndex||0;this.type=g.type,this.value=g.value,this.start=u+g.start,this.end=u+g.end,this.loc=new r(g.startLoc,g.endLoc)}}class Ys extends Vs{constructor(g,u){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(b,w,B,ee)=>this.optionFlags&2048?(this.raise(m.InvalidDigit,Gn(b,w,B),{radix:ee}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(m.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(m.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(m.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(m.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(b,w,B)=>{this.recordStrictModeErrors(m.StrictNumericEscape,Gn(b,w,B))},unterminated:(b,w,B)=>{throw this.raise(m.UnterminatedString,Gn(b-1,w,B))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(m.StrictNumericEscape),unterminated:(b,w,B)=>{throw this.raise(m.UnterminatedTemplate,Gn(b,w,B))}}),this.state=new Bi,this.state.init(g),this.input=u,this.length=u.length,this.comments=[],this.isLookahead=!1}pushToken(g){this.tokens.length=this.state.tokensLength,this.tokens.push(g),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Qr(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(g){return this.match(g)?(this.next(),!0):!1}match(g){return this.state.type===g}createLookaheadState(g){return{pos:g.pos,value:null,type:g.type,start:g.start,end:g.end,context:[this.curContext()],inType:g.inType,startLoc:g.startLoc,lastTokEndLoc:g.lastTokEndLoc,curLine:g.curLine,lineStart:g.lineStart,curPosition:g.curPosition}}lookahead(){const g=this.state;this.state=this.createLookaheadState(g),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const u=this.state;return this.state=g,u}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(g){return ji.lastIndex=g,ji.test(this.input)?ji.lastIndex:g}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(g){return this.input.charCodeAt(this.nextTokenStartSince(g))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(g){return Ri.lastIndex=g,Ri.test(this.input)?Ri.lastIndex:g}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(g){let u=this.input.charCodeAt(g);if((u&64512)===55296&&++g<this.input.length){const b=this.input.charCodeAt(g);(b&64512)===56320&&(u=65536+((u&1023)<<10)+(b&1023))}return u}setStrict(g){this.state.strict=g,g&&(this.state.strictErrors.forEach(([u,b])=>this.raise(u,b)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(g){let u;this.isLookahead||(u=this.state.curPosition());const b=this.state.pos,w=this.input.indexOf(g,b+2);if(w===-1)throw this.raise(m.UnterminatedComment,this.state.curPosition());for(this.state.pos=w+g.length,fn.lastIndex=b+2;fn.test(this.input)&&fn.lastIndex<=w;)++this.state.curLine,this.state.lineStart=fn.lastIndex;if(this.isLookahead)return;const B={type:"CommentBlock",value:this.input.slice(b+2,w),start:this.sourceToOffsetPos(b),end:this.sourceToOffsetPos(w+g.length),loc:new r(u,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(B),B}skipLineComment(g){const u=this.state.pos;let b;this.isLookahead||(b=this.state.curPosition());let w=this.input.charCodeAt(this.state.pos+=g);if(this.state.pos<this.length)for(;!Ur(w)&&++this.state.pos<this.length;)w=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const B=this.state.pos,le={type:"CommentLine",value:this.input.slice(u+g,B),start:this.sourceToOffsetPos(u),end:this.sourceToOffsetPos(B),loc:new r(b,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(le),le}skipSpace(){const g=this.state.pos,u=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){const b=this.input.charCodeAt(this.state.pos);switch(b){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const w=this.skipBlockComment("*/");w!==void 0&&(this.addComment(w),u==null||u.push(w));break}case 47:{const w=this.skipLineComment(2);w!==void 0&&(this.addComment(w),u==null||u.push(w));break}default:break e}break;default:if(js(b))++this.state.pos;else if(b===45&&!this.inModule&&this.optionFlags&8192){const w=this.state.pos;if(this.input.charCodeAt(w+1)===45&&this.input.charCodeAt(w+2)===62&&(g===0||this.state.lineStart>g)){const B=this.skipLineComment(3);B!==void 0&&(this.addComment(B),u==null||u.push(B))}else break e}else if(b===60&&!this.inModule&&this.optionFlags&8192){const w=this.state.pos;if(this.input.charCodeAt(w+1)===33&&this.input.charCodeAt(w+2)===45&&this.input.charCodeAt(w+3)===45){const B=this.skipLineComment(4);B!==void 0&&(this.addComment(B),u==null||u.push(B))}else break e}else break e}}if((u==null?void 0:u.length)>0){const b=this.state.pos,w={start:this.sourceToOffsetPos(g),end:this.sourceToOffsetPos(b),comments:u,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(w)}}finishToken(g,u){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const b=this.state.type;this.state.type=g,this.state.value=u,this.isLookahead||this.updateContext(b)}replaceToken(g){this.state.type=g,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;const g=this.state.pos+1,u=this.codePointAtPos(g);if(u>=48&&u<=57)throw this.raise(m.UnexpectedDigitAfterHash,this.state.curPosition());if(u===123||u===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(u===123?m.RecordExpressionHashIncorrectStartSyntaxType:m.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,u===123?this.finishToken(7):this.finishToken(1)}else Le(u)?(++this.state.pos,this.finishToken(139,this.readWord1(u))):u===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const g=this.input.charCodeAt(this.state.pos+1);if(g>=48&&g<=57){this.readNumber(!0);return}g===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let g=this.input.charCodeAt(this.state.pos+1);if(g!==33)return!1;const u=this.state.pos;for(this.state.pos+=1;!Ur(g)&&++this.state.pos<this.length;)g=this.input.charCodeAt(this.state.pos);const b=this.input.slice(u+2,this.state.pos);return this.finishToken(28,b),!0}readToken_mult_modulo(g){let u=g===42?55:54,b=1,w=this.input.charCodeAt(this.state.pos+1);g===42&&w===42&&(b++,w=this.input.charCodeAt(this.state.pos+2),u=57),w===61&&!this.state.inType&&(b++,u=g===37?33:30),this.finishOp(u,b)}readToken_pipe_amp(g){const u=this.input.charCodeAt(this.state.pos+1);if(u===g){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(g===124?41:42,2);return}if(g===124){if(u===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&u===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(m.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&u===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(m.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(u===61){this.finishOp(30,2);return}this.finishOp(g===124?43:45,1)}readToken_caret(){const g=this.input.charCodeAt(this.state.pos+1);g===61&&!this.state.inType?this.finishOp(32,2):g===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(g){const u=this.input.charCodeAt(this.state.pos+1);if(u===g){this.finishOp(34,2);return}u===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){const{pos:g}=this.state,u=this.input.charCodeAt(g+1);if(u===60){if(this.input.charCodeAt(g+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(u===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:g}=this.state,u=this.input.charCodeAt(g+1);if(u===62){const b=this.input.charCodeAt(g+2)===62?3:2;if(this.input.charCodeAt(g+b)===61){this.finishOp(30,b+1);return}this.finishOp(52,b);return}if(u===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(g){const u=this.input.charCodeAt(this.state.pos+1);if(u===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(g===61&&u===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(g===61?29:35,1)}readToken_question(){const g=this.input.charCodeAt(this.state.pos+1),u=this.input.charCodeAt(this.state.pos+2);g===63?u===61?this.finishOp(30,3):this.finishOp(40,2):g===46&&!(u>=48&&u<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(g){switch(g){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(m.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(m.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{const u=this.input.charCodeAt(this.state.pos+1);if(u===120||u===88){this.readRadixNumber(16);return}if(u===111||u===79){this.readRadixNumber(8);return}if(u===98||u===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(g);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(g);return;case 124:case 38:this.readToken_pipe_amp(g);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(g);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(g);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Le(g)){this.readWord(g);return}}throw this.raise(m.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(g)})}finishOp(g,u){const b=this.input.slice(this.state.pos,this.state.pos+u);this.state.pos+=u,this.finishToken(g,b)}readRegexp(){const g=this.state.startLoc,u=this.state.start+1;let b,w,{pos:B}=this.state;for(;;++B){if(B>=this.length)throw this.raise(m.UnterminatedRegExp,n(g,1));const we=this.input.charCodeAt(B);if(Ur(we))throw this.raise(m.UnterminatedRegExp,n(g,1));if(b)b=!1;else{if(we===91)w=!0;else if(we===93&&w)w=!1;else if(we===47&&!w)break;b=we===92}}const ee=this.input.slice(u,B);++B;let le="";const be=()=>n(g,B+2-u);for(;B<this.length;){const we=this.codePointAtPos(B),Ne=String.fromCharCode(we);if(Hs.has(we))we===118?le.includes("u")&&this.raise(m.IncompatibleRegExpUVFlags,be()):we===117&&le.includes("v")&&this.raise(m.IncompatibleRegExpUVFlags,be()),le.includes(Ne)&&this.raise(m.DuplicateRegExpFlags,be());else if(qe(we)||we===92)this.raise(m.MalformedRegExpFlags,be());else break;++B,le+=Ne}this.state.pos=B,this.finishToken(138,{pattern:ee,flags:le})}readInt(g,u,b=!1,w=!0){const{n:B,pos:ee}=Ta(this.input,this.state.pos,this.state.lineStart,this.state.curLine,g,u,b,w,this.errorHandlers_readInt,!1);return this.state.pos=ee,B}readRadixNumber(g){const u=this.state.pos,b=this.state.curPosition();let w=!1;this.state.pos+=2;const B=this.readInt(g);B==null&&this.raise(m.InvalidDigit,n(b,2),{radix:g});const ee=this.input.charCodeAt(this.state.pos);if(ee===110)++this.state.pos,w=!0;else if(ee===109)throw this.raise(m.InvalidDecimal,b);if(Le(this.codePointAtPos(this.state.pos)))throw this.raise(m.NumberIdentifier,this.state.curPosition());if(w){const le=this.input.slice(u,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,le);return}this.finishToken(135,B)}readNumber(g){const u=this.state.pos,b=this.state.curPosition();let w=!1,B=!1,ee=!1,le=!1;!g&&this.readInt(10)===null&&this.raise(m.InvalidNumber,this.state.curPosition());const be=this.state.pos-u>=2&&this.input.charCodeAt(u)===48;if(be){const tt=this.input.slice(u,this.state.pos);if(this.recordStrictModeErrors(m.StrictOctalLiteral,b),!this.state.strict){const ct=tt.indexOf("_");ct>0&&this.raise(m.ZeroDigitNumericSeparator,n(b,ct))}le=be&&!/[89]/.test(tt)}let we=this.input.charCodeAt(this.state.pos);if(we===46&&!le&&(++this.state.pos,this.readInt(10),w=!0,we=this.input.charCodeAt(this.state.pos)),(we===69||we===101)&&!le&&(we=this.input.charCodeAt(++this.state.pos),(we===43||we===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(m.InvalidOrMissingExponent,b),w=!0,ee=!0,we=this.input.charCodeAt(this.state.pos)),we===110&&((w||be)&&this.raise(m.InvalidBigIntLiteral,b),++this.state.pos,B=!0),we===109){this.expectPlugin("decimal",this.state.curPosition()),(ee||be)&&this.raise(m.InvalidDecimal,b),++this.state.pos;var Ne=!0}if(Le(this.codePointAtPos(this.state.pos)))throw this.raise(m.NumberIdentifier,this.state.curPosition());const Ve=this.input.slice(u,this.state.pos).replace(/[_mn]/g,"");if(B){this.finishToken(136,Ve);return}if(Ne){this.finishToken(137,Ve);return}const Qe=le?parseInt(Ve,8):parseFloat(Ve);this.finishToken(135,Qe)}readCodePoint(g){const{code:u,pos:b}=Sa(this.input,this.state.pos,this.state.lineStart,this.state.curLine,g,this.errorHandlers_readCodePoint);return this.state.pos=b,u}readString(g){const{str:u,pos:b,curLine:w,lineStart:B}=xa(g===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=b+1,this.state.lineStart=B,this.state.curLine=w,this.finishToken(134,u)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const g=this.input[this.state.pos],{str:u,firstInvalidLoc:b,pos:w,curLine:B,lineStart:ee}=xa("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=w+1,this.state.lineStart=ee,this.state.curLine=B,b&&(this.state.firstInvalidTemplateEscapePos=new t(b.curLine,b.pos-b.lineStart,this.sourceToOffsetPos(b.pos))),this.input.codePointAt(w)===96?this.finishToken(24,b?null:g+u+"`"):(this.state.pos++,this.finishToken(25,b?null:g+u+"${"))}recordStrictModeErrors(g,u){const b=u.index;this.state.strict&&!this.state.strictErrors.has(b)?this.raise(g,u):this.state.strictErrors.set(b,[g,u])}readWord1(g){this.state.containsEsc=!1;let u="";const b=this.state.pos;let w=this.state.pos;for(g!==void 0&&(this.state.pos+=g<=65535?1:2);this.state.pos<this.length;){const B=this.codePointAtPos(this.state.pos);if(qe(B))this.state.pos+=B<=65535?1:2;else if(B===92){this.state.containsEsc=!0,u+=this.input.slice(w,this.state.pos);const ee=this.state.curPosition(),le=this.state.pos===b?Le:qe;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(m.MissingUnicodeEscape,this.state.curPosition()),w=this.state.pos-1;continue}++this.state.pos;const be=this.readCodePoint(!0);be!==null&&(le(be)||this.raise(m.EscapedCharNotAnIdentifier,ee),u+=String.fromCodePoint(be)),w=this.state.pos}else break}return u+this.input.slice(w,this.state.pos)}readWord(g){const u=this.readWord1(g),b=V.get(u);b!==void 0?this.finishToken(b,_e(b)):this.finishToken(132,u)}checkKeywordEscapes(){const{type:g}=this.state;ue(g)&&this.state.containsEsc&&this.raise(m.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:_e(g)})}raise(g,u,b={}){const w=u instanceof t?u:u.loc.start,B=g(w,b);if(!(this.optionFlags&2048))throw B;return this.isLookahead||this.state.errors.push(B),B}raiseOverwrite(g,u,b={}){const w=u instanceof t?u:u.loc.start,B=w.index,ee=this.state.errors;for(let le=ee.length-1;le>=0;le--){const be=ee[le];if(be.loc.index===B)return ee[le]=g(w,b);if(be.loc.index<B)break}return this.raise(g,u,b)}updateContext(g){}unexpected(g,u){throw this.raise(m.UnexpectedToken,g??this.state.startLoc,{expected:u?_e(u):null})}expectPlugin(g,u){if(this.hasPlugin(g))return!0;throw this.raise(m.MissingPlugin,u??this.state.startLoc,{missingPlugin:[g]})}expectOnePlugin(g){if(!g.some(u=>this.hasPlugin(u)))throw this.raise(m.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:g})}errorBuilder(g){return(u,b,w)=>{this.raise(g,Gn(u,b,w))}}}class Xs{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Gs{constructor(g){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=g}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Xs)}exit(){const g=this.stack.pop(),u=this.current();for(const[b,w]of Array.from(g.undefinedPrivateNames))u?u.undefinedPrivateNames.has(b)||u.undefinedPrivateNames.set(b,w):this.parser.raise(m.InvalidPrivateFieldResolution,w,{identifierName:b})}declarePrivateName(g,u,b){const{privateNames:w,loneAccessors:B,undefinedPrivateNames:ee}=this.current();let le=w.has(g);if(u&3){const be=le&&B.get(g);if(be){const we=be&4,Ne=u&4,Ve=be&3,Qe=u&3;le=Ve===Qe||we!==Ne,le||B.delete(g)}else le||B.set(g,u)}le&&this.parser.raise(m.PrivateNameRedeclaration,b,{identifierName:g}),w.add(g),ee.delete(g)}usePrivateName(g,u){let b;for(b of this.stack)if(b.privateNames.has(g))return;b?b.undefinedPrivateNames.set(g,u):this.parser.raise(m.InvalidPrivateFieldResolution,u,{identifierName:g})}}class hi{constructor(g=0){this.type=g}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class Ea extends hi{constructor(g){super(g),this.declarationErrors=new Map}recordDeclarationError(g,u){const b=u.index;this.declarationErrors.set(b,[g,u])}clearDeclarationError(g){this.declarationErrors.delete(g)}iterateErrors(g){this.declarationErrors.forEach(g)}}class Js{constructor(g){this.parser=void 0,this.stack=[new hi],this.parser=g}enter(g){this.stack.push(g)}exit(){this.stack.pop()}recordParameterInitializerError(g,u){const b=u.loc.start,{stack:w}=this;let B=w.length-1,ee=w[B];for(;!ee.isCertainlyParameterDeclaration();){if(ee.canBeArrowParameterDeclaration())ee.recordDeclarationError(g,b);else return;ee=w[--B]}this.parser.raise(g,b)}recordArrowParameterBindingError(g,u){const{stack:b}=this,w=b[b.length-1],B=u.loc.start;if(w.isCertainlyParameterDeclaration())this.parser.raise(g,B);else if(w.canBeArrowParameterDeclaration())w.recordDeclarationError(g,B);else return}recordAsyncArrowParametersError(g){const{stack:u}=this;let b=u.length-1,w=u[b];for(;w.canBeArrowParameterDeclaration();)w.type===2&&w.recordDeclarationError(m.AwaitBindingIdentifier,g),w=u[--b]}validateAsPattern(){const{stack:g}=this,u=g[g.length-1];u.canBeArrowParameterDeclaration()&&u.iterateErrors(([b,w])=>{this.parser.raise(b,w);let B=g.length-2,ee=g[B];for(;ee.canBeArrowParameterDeclaration();)ee.clearDeclarationError(w.index),ee=g[--B]})}}function Qs(){return new hi(3)}function Zs(){return new Ea(1)}function eo(){return new Ea(2)}function Pa(){return new hi}class to extends Ys{addExtra(g,u,b,w=!0){if(!g)return;let{extra:B}=g;B==null&&(B={},g.extra=B),w?B[u]=b:Object.defineProperty(B,u,{enumerable:w,value:b})}isContextual(g){return this.state.type===g&&!this.state.containsEsc}isUnparsedContextual(g,u){if(this.input.startsWith(u,g)){const b=this.input.charCodeAt(g+u.length);return!(qe(b)||(b&64512)===55296)}return!1}isLookaheadContextual(g){const u=this.nextTokenStart();return this.isUnparsedContextual(u,g)}eatContextual(g){return this.isContextual(g)?(this.next(),!0):!1}expectContextual(g,u){if(!this.eatContextual(g)){if(u!=null)throw this.raise(u,this.state.startLoc);this.unexpected(null,g)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return ga(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return ga(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(g=!0){(g?this.isLineTerminator():this.eat(13))||this.raise(m.MissingSemicolon,this.state.lastTokEndLoc)}expect(g,u){this.eat(g)||this.unexpected(u,g)}tryParse(g,u=this.state.clone()){const b={node:null};try{const w=g((B=null)=>{throw b.node=B,b});if(this.state.errors.length>u.errors.length){const B=this.state;return this.state=u,this.state.tokensLength=B.tokensLength,{node:w,error:B.errors[u.errors.length],thrown:!1,aborted:!1,failState:B}}return{node:w,error:null,thrown:!1,aborted:!1,failState:null}}catch(w){const B=this.state;if(this.state=u,w instanceof SyntaxError)return{node:null,error:w,thrown:!0,aborted:!1,failState:B};if(w===b)return{node:b.node,error:null,thrown:!1,aborted:!0,failState:B};throw w}}checkExpressionErrors(g,u){if(!g)return!1;const{shorthandAssignLoc:b,doubleProtoLoc:w,privateKeyLoc:B,optionalParametersLoc:ee,voidPatternLoc:le}=g,be=!!b||!!w||!!ee||!!B||!!le;if(!u)return be;b!=null&&this.raise(m.InvalidCoverInitializedName,b),w!=null&&this.raise(m.DuplicateProto,w),B!=null&&this.raise(m.UnexpectedPrivateField,B),ee!=null&&this.unexpected(ee),le!=null&&this.raise(m.InvalidCoverDiscardElement,le)}isLiteralPropertyName(){return Be(this.state.type)}isPrivateName(g){return g.type==="PrivateName"}getPrivateNameSV(g){return g.id.name}hasPropertyAsPrivateName(g){return(g.type==="MemberExpression"||g.type==="OptionalMemberExpression")&&this.isPrivateName(g.property)}isObjectProperty(g){return g.type==="ObjectProperty"}isObjectMethod(g){return g.type==="ObjectMethod"}initializeScopes(g=this.options.sourceType==="module"){const u=this.state.labels;this.state.labels=[];const b=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const w=this.inModule;this.inModule=g;const B=this.scope,ee=this.getScopeHandler();this.scope=new ee(this,g);const le=this.prodParam;this.prodParam=new qs;const be=this.classScope;this.classScope=new Gs(this);const we=this.expressionScope;return this.expressionScope=new Js(this),()=>{this.state.labels=u,this.exportedIdentifiers=b,this.inModule=w,this.scope=B,this.prodParam=le,this.classScope=be,this.expressionScope=we}}enterInitialScopes(){let g=0;(this.inModule||this.optionFlags&1)&&(g|=2),this.optionFlags&32&&(g|=1);const u=!this.inModule&&this.options.sourceType==="commonjs";(u||this.optionFlags&2)&&(g|=4),this.prodParam.enter(g);let b=u?514:1;this.optionFlags&4&&(b|=512),this.scope.enter(b)}checkDestructuringPrivate(g){const{privateKeyLoc:u}=g;u!==null&&this.expectPlugin("destructuringPrivate",u)}}class mi{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class yi{constructor(g,u,b){this.type="",this.start=u,this.end=0,this.loc=new r(b),(g==null?void 0:g.optionFlags)&128&&(this.range=[u,0]),g!=null&&g.filename&&(this.loc.filename=g.filename)}}const qi=yi.prototype;qi.__clone=function(){const G=new yi(void 0,this.start,this.loc.start),g=Object.keys(this);for(let u=0,b=g.length;u<b;u++){const w=g[u];w!=="leadingComments"&&w!=="trailingComments"&&w!=="innerComments"&&(G[w]=this[w])}return G};class ro extends to{startNode(){const g=this.state.startLoc;return new yi(this,g.index,g)}startNodeAt(g){return new yi(this,g.index,g)}startNodeAtNode(g){return this.startNodeAt(g.loc.start)}finishNode(g,u){return this.finishNodeAt(g,u,this.state.lastTokEndLoc)}finishNodeAt(g,u,b){return g.type=u,g.end=b.index,g.loc.end=b,this.optionFlags&128&&(g.range[1]=b.index),this.optionFlags&4096&&this.processComment(g),g}resetStartLocation(g,u){g.start=u.index,g.loc.start=u,this.optionFlags&128&&(g.range[0]=u.index)}resetEndLocation(g,u=this.state.lastTokEndLoc){g.end=u.index,g.loc.end=u,this.optionFlags&128&&(g.range[1]=u.index)}resetStartLocationFromNode(g,u){this.resetStartLocation(g,u.loc.start)}castNodeTo(g,u){return g.type=u,g}cloneIdentifier(g){const{type:u,start:b,end:w,loc:B,range:ee,name:le}=g,be=Object.create(qi);return be.type=u,be.start=b,be.end=w,be.loc=B,be.range=ee,be.name=le,g.extra&&(be.extra=g.extra),be}cloneStringLiteral(g){const{type:u,start:b,end:w,loc:B,range:ee,extra:le}=g,be=Object.create(qi);return be.type=u,be.start=b,be.end=w,be.loc=B,be.range=ee,be.extra=le,be.value=g.value,be}}const $i=G=>G.type==="ParenthesizedExpression"?$i(G.expression):G;class no extends ro{toAssignable(g,u=!1){var b,w;let B;switch((g.type==="ParenthesizedExpression"||(b=g.extra)!=null&&b.parenthesized)&&(B=$i(g),u?B.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(m.InvalidParenthesizedAssignment,g):B.type!=="CallExpression"&&B.type!=="MemberExpression"&&!this.isOptionalMemberExpression(B)&&this.raise(m.InvalidParenthesizedAssignment,g):this.raise(m.InvalidParenthesizedAssignment,g)),g.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(g,"ObjectPattern");for(let le=0,be=g.properties.length,we=be-1;le<be;le++){var ee;const Ne=g.properties[le],Ve=le===we;this.toAssignableObjectExpressionProp(Ne,Ve,u),Ve&&Ne.type==="RestElement"&&(ee=g.extra)!=null&&ee.trailingCommaLoc&&this.raise(m.RestTrailingComma,g.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:le,value:be}=g;this.isPrivateName(le)&&this.classScope.usePrivateName(this.getPrivateNameSV(le),le.loc.start),this.toAssignable(be,u);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(g,"ArrayPattern"),this.toAssignableList(g.elements,(w=g.extra)==null?void 0:w.trailingCommaLoc,u);break;case"AssignmentExpression":g.operator!=="="&&this.raise(m.MissingEqInAssignment,g.left.loc.end),this.castNodeTo(g,"AssignmentPattern"),delete g.operator,g.left.type==="VoidPattern"&&this.raise(m.VoidPatternInitializer,g.left),this.toAssignable(g.left,u);break;case"ParenthesizedExpression":this.toAssignable(B,u);break}}toAssignableObjectExpressionProp(g,u,b){if(g.type==="ObjectMethod")this.raise(g.kind==="get"||g.kind==="set"?m.PatternHasAccessor:m.PatternHasMethod,g.key);else if(g.type==="SpreadElement"){this.castNodeTo(g,"RestElement");const w=g.argument;this.checkToRestConversion(w,!1),this.toAssignable(w,b),u||this.raise(m.RestTrailingComma,g)}else this.toAssignable(g,b)}toAssignableList(g,u,b){const w=g.length-1;for(let B=0;B<=w;B++){const ee=g[B];ee&&(this.toAssignableListItem(g,B,b),ee.type==="RestElement"&&(B<w?this.raise(m.RestTrailingComma,ee):u&&this.raise(m.RestTrailingComma,u)))}}toAssignableListItem(g,u,b){const w=g[u];if(w.type==="SpreadElement"){this.castNodeTo(w,"RestElement");const B=w.argument;this.checkToRestConversion(B,!0),this.toAssignable(B,b)}else this.toAssignable(w,b)}isAssignable(g,u){switch(g.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{const b=g.properties.length-1;return g.properties.every((w,B)=>w.type!=="ObjectMethod"&&(B===b||w.type!=="SpreadElement")&&this.isAssignable(w))}case"ObjectProperty":return this.isAssignable(g.value);case"SpreadElement":return this.isAssignable(g.argument);case"ArrayExpression":return g.elements.every(b=>b===null||this.isAssignable(b));case"AssignmentExpression":return g.operator==="=";case"ParenthesizedExpression":return this.isAssignable(g.expression);case"MemberExpression":case"OptionalMemberExpression":return!u;default:return!1}}toReferencedList(g,u){return g}toReferencedListDeep(g,u){this.toReferencedList(g,u);for(const b of g)(b==null?void 0:b.type)==="ArrayExpression"&&this.toReferencedListDeep(b.elements)}parseSpread(g){const u=this.startNode();return this.next(),u.argument=this.parseMaybeAssignAllowIn(g,void 0),this.finishNode(u,"SpreadElement")}parseRestBinding(){const g=this.startNode();this.next();const u=this.parseBindingAtom();return u.type==="VoidPattern"&&this.raise(m.UnexpectedVoidPattern,u),g.argument=u,this.finishNode(g,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const g=this.startNode();return this.next(),g.elements=this.parseBindingList(3,93,1),this.finishNode(g,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(g,u,b){const w=b&1,B=[];let ee=!0;for(;!this.eat(g);)if(ee?ee=!1:this.expect(12),w&&this.match(12))B.push(null);else{if(this.eat(g))break;if(this.match(21)){let le=this.parseRestBinding();if((this.hasPlugin("flow")||b&2)&&(le=this.parseFunctionParamType(le)),B.push(le),!this.checkCommaAfterRest(u)){this.expect(g);break}}else{const le=[];if(b&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(m.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)le.push(this.parseDecorator());B.push(this.parseBindingElement(b,le))}}return B}parseBindingRestProperty(g){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(g.argument=this.parseVoidPattern(null),this.raise(m.UnexpectedVoidPattern,g.argument)):g.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(g,"RestElement")}parseBindingProperty(){const{type:g,startLoc:u}=this.state;if(g===21)return this.parseBindingRestProperty(this.startNode());const b=this.startNode();return g===139?(this.expectPlugin("destructuringPrivate",u),this.classScope.usePrivateName(this.state.value,u),b.key=this.parsePrivateName()):this.parsePropertyName(b),b.method=!1,this.parseObjPropValue(b,u,!1,!1,!0,!1)}parseBindingElement(g,u){const b=this.parseMaybeDefault();return(this.hasPlugin("flow")||g&2)&&this.parseFunctionParamType(b),u.length&&(b.decorators=u,this.resetStartLocationFromNode(b,u[0])),this.parseMaybeDefault(b.loc.start,b)}parseFunctionParamType(g){return g}parseMaybeDefault(g,u){if(g??(g=this.state.startLoc),u=u??this.parseBindingAtom(),!this.eat(29))return u;const b=this.startNodeAt(g);return u.type==="VoidPattern"&&this.raise(m.VoidPatternInitializer,u),b.left=u,b.right=this.parseMaybeAssignAllowIn(),this.finishNode(b,"AssignmentPattern")}isValidLVal(g,u,b,w){switch(g){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!u&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(g){return g.type==="OptionalMemberExpression"}checkLVal(g,u,b=64,w=!1,B=!1,ee=!1,le=!1){var be;const we=g.type;if(this.isObjectMethod(g))return;const Ne=this.isOptionalMemberExpression(g);if(Ne||we==="MemberExpression"){Ne&&(this.expectPlugin("optionalChainingAssign",g.loc.start),u.type!=="AssignmentExpression"&&this.raise(m.InvalidLhsOptionalChaining,g,{ancestor:u})),b!==64&&this.raise(m.InvalidPropertyBindingPattern,g);return}if(we==="Identifier"){this.checkIdentifier(g,b,B);const{name:bt}=g;w&&(w.has(bt)?this.raise(m.ParamDupe,g):w.add(bt));return}else we==="VoidPattern"&&u.type==="CatchClause"&&this.raise(m.VoidPatternCatchClauseParam,g);const Ve=$i(g);le||(le=Ve.type==="CallExpression"&&(Ve.callee.type==="Import"||Ve.callee.type==="Super"));const Qe=this.isValidLVal(we,le,!(ee||(be=g.extra)!=null&&be.parenthesized)&&u.type==="AssignmentExpression",b);if(Qe===!0)return;if(Qe===!1){const bt=b===64?m.InvalidLhs:m.InvalidLhsBinding;this.raise(bt,g,{ancestor:u});return}let tt,ct;typeof Qe=="string"?(tt=Qe,ct=we==="ParenthesizedExpression"):[tt,ct]=Qe;const Ct=we==="ArrayPattern"||we==="ObjectPattern"?{type:we}:u,Rt=g[tt];if(Array.isArray(Rt))for(const bt of Rt)bt&&this.checkLVal(bt,Ct,b,w,B,ct,!0);else Rt&&this.checkLVal(Rt,Ct,b,w,B,ct,le)}checkIdentifier(g,u,b=!1){this.state.strict&&(b?mt(g.name,this.inModule):st(g.name))&&(u===64?this.raise(m.StrictEvalArguments,g,{referenceName:g.name}):this.raise(m.StrictEvalArgumentsBinding,g,{bindingName:g.name})),u&8192&&g.name==="let"&&this.raise(m.LetInLexicalBinding,g),u&64||this.declareNameFromIdentifier(g,u)}declareNameFromIdentifier(g,u){this.scope.declareName(g.name,u,g.loc.start)}checkToRestConversion(g,u){switch(g.type){case"ParenthesizedExpression":this.checkToRestConversion(g.expression,u);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(u)break;default:this.raise(m.InvalidRestAssignmentPattern,g)}}checkCommaAfterRest(g){return this.match(12)?(this.raise(this.lookaheadCharCode()===g?m.RestTrailingComma:m.ElementAfterRest,this.state.startLoc),!0):!1}}const Ui=/in(?:stanceof)?|as|satisfies/y;function io(G){if(G==null)throw new Error(`Unexpected ${G} value.`);return G}function Aa(G){if(!G)throw new Error("Assert fail")}const ut=y`typescript`({AbstractMethodHasImplementation:({methodName:G})=>`Method '${G}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:G})=>`Property '${G}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:G})=>`'declare' is not allowed in ${G}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:G})=>`Accessibility modifier already seen: '${G}'.`,DuplicateModifier:({modifier:G})=>`Duplicate modifier: '${G}'.`,EmptyHeritageClauseType:({token:G})=>`'${G}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:G})=>`'${G[0]}' modifier cannot be used with '${G[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:G})=>`Index signatures cannot have an accessibility modifier ('${G}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:G})=>`'${G}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:G=>`'${G}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:G})=>`'${G}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:G})=>`'${G}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:G})=>`'${G}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:G=>`'${G}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:G})=>`'${G[0]}' modifier must precede '${G[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:G})=>`Private elements cannot have an accessibility modifier ('${G}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:G})=>`Single type parameter ${G} should have a trailing comma. Example usage: <${G},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:G})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${G}.`,UsingDeclarationInAmbientContext:G=>`'${G}' declarations are not allowed in ambient contexts.`});function ao(G){switch(G){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function wa(G){return G==="private"||G==="public"||G==="protected"}function so(G){return G==="in"||G==="out"}var oo=G=>class extends G{constructor(...u){super(...u),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:ut.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:ut.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:ut.InvalidModifierOnTypeParameter})}getScopeHandler(){return Fs}tsIsIdentifier(){return Se(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(u,b,w){if(!Se(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;const B=this.state.value;if(u.includes(B)){if(w&&this.match(106)||b&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return B}}tsParseModifiers({allowedModifiers:u,disallowedModifiers:b,stopOnStartOfClassStaticBlock:w,errorTemplate:B=ut.InvalidModifierOnTypeMember},ee){const le=(we,Ne,Ve,Qe)=>{Ne===Ve&&ee[Qe]&&this.raise(ut.InvalidModifiersOrder,we,{orderedModifiers:[Ve,Qe]})},be=(we,Ne,Ve,Qe)=>{(ee[Ve]&&Ne===Qe||ee[Qe]&&Ne===Ve)&&this.raise(ut.IncompatibleModifiers,we,{modifiers:[Ve,Qe]})};for(;;){const{startLoc:we}=this.state,Ne=this.tsParseModifier(u.concat(b??[]),w,ee.static);if(!Ne)break;wa(Ne)?ee.accessibility?this.raise(ut.DuplicateAccessibilityModifier,we,{modifier:Ne}):(le(we,Ne,Ne,"override"),le(we,Ne,Ne,"static"),le(we,Ne,Ne,"readonly"),ee.accessibility=Ne):so(Ne)?(ee[Ne]&&this.raise(ut.DuplicateModifier,we,{modifier:Ne}),ee[Ne]=!0,le(we,Ne,"in","out")):(hasOwnProperty.call(ee,Ne)?this.raise(ut.DuplicateModifier,we,{modifier:Ne}):(le(we,Ne,"static","readonly"),le(we,Ne,"static","override"),le(we,Ne,"override","readonly"),le(we,Ne,"abstract","override"),be(we,Ne,"declare","override"),be(we,Ne,"static","abstract")),ee[Ne]=!0),b!=null&&b.includes(Ne)&&this.raise(B,we,{modifier:Ne})}}tsIsListTerminator(u){switch(u){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(u,b){const w=[];for(;!this.tsIsListTerminator(u);)w.push(b());return w}tsParseDelimitedList(u,b,w){return io(this.tsParseDelimitedListWorker(u,b,!0,w))}tsParseDelimitedListWorker(u,b,w,B){const ee=[];let le=-1;for(;!this.tsIsListTerminator(u);){le=-1;const be=b();if(be==null)return;if(ee.push(be),this.eat(12)){le=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(u))break;w&&this.expect(12);return}return B&&(B.value=le),ee}tsParseBracketedList(u,b,w,B,ee){B||(w?this.expect(0):this.expect(47));const le=this.tsParseDelimitedList(u,b,ee);return w?this.expect(3):this.expect(48),le}tsParseImportType(){const u=this.startNode();return this.expect(83),this.expect(10),this.match(134)?u.argument=this.parseStringLiteral(this.state.value):(this.raise(ut.UnsupportedImportTypeArgument,this.state.startLoc),u.argument=super.parseExprAtom()),this.eat(12)?u.options=this.tsParseImportTypeOptions():u.options=null,this.expect(11),this.eat(16)&&(u.qualifier=this.tsParseEntityName(3)),this.match(47)&&(u.typeParameters=this.tsParseTypeArguments()),this.finishNode(u,"TSImportType")}tsParseImportTypeOptions(){const u=this.startNode();this.expect(5);const b=this.startNode();return this.isContextual(76)?(b.method=!1,b.key=this.parseIdentifier(!0),b.computed=!1,b.shorthand=!1):this.unexpected(null,76),this.expect(14),b.value=this.tsParseImportTypeWithPropertyValue(),u.properties=[this.finishObjectProperty(b)],this.eat(12),this.expect(8),this.finishNode(u,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const u=this.startNode(),b=[];for(this.expect(5);!this.match(8);){const w=this.state.type;Se(w)||w===134?b.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return u.properties=b,this.next(),this.finishNode(u,"ObjectExpression")}tsParseEntityName(u){let b;if(u&1&&this.match(78))if(u&2)b=this.parseIdentifier(!0);else{const w=this.startNode();this.next(),b=this.finishNode(w,"ThisExpression")}else b=this.parseIdentifier(!!(u&1));for(;this.eat(16);){const w=this.startNodeAtNode(b);w.left=b,w.right=this.parseIdentifier(!!(u&1)),b=this.finishNode(w,"TSQualifiedName")}return b}tsParseTypeReference(){const u=this.startNode();return u.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(u.typeParameters=this.tsParseTypeArguments()),this.finishNode(u,"TSTypeReference")}tsParseThisTypePredicate(u){this.next();const b=this.startNodeAtNode(u);return b.parameterName=u,b.typeAnnotation=this.tsParseTypeAnnotation(!1),b.asserts=!1,this.finishNode(b,"TSTypePredicate")}tsParseThisTypeNode(){const u=this.startNode();return this.next(),this.finishNode(u,"TSThisType")}tsParseTypeQuery(){const u=this.startNode();return this.expect(87),this.match(83)?u.exprName=this.tsParseImportType():u.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(u.typeParameters=this.tsParseTypeArguments()),this.finishNode(u,"TSTypeQuery")}tsParseTypeParameter(u){const b=this.startNode();return u(b),b.name=this.tsParseTypeParameterName(),b.constraint=this.tsEatThenParseType(81),b.default=this.tsEatThenParseType(29),this.finishNode(b,"TSTypeParameter")}tsTryParseTypeParameters(u){if(this.match(47))return this.tsParseTypeParameters(u)}tsParseTypeParameters(u){const b=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();const w={value:-1};return b.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,u),!1,!0,w),b.params.length===0&&this.raise(ut.EmptyTypeParameters,b),w.value!==-1&&this.addExtra(b,"trailingComma",w.value),this.finishNode(b,"TSTypeParameterDeclaration")}tsFillSignature(u,b){const w=u===19,B="parameters",ee="typeAnnotation";b.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),b[B]=this.tsParseBindingListForSignature(),w?b[ee]=this.tsParseTypeOrTypePredicateAnnotation(u):this.match(u)&&(b[ee]=this.tsParseTypeOrTypePredicateAnnotation(u))}tsParseBindingListForSignature(){const u=super.parseBindingList(11,41,2);for(const b of u){const{type:w}=b;(w==="AssignmentPattern"||w==="TSParameterProperty")&&this.raise(ut.UnsupportedSignatureParameterKind,b,{type:w})}return u}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(u,b){return this.tsFillSignature(14,b),this.tsParseTypeMemberSemicolon(),this.finishNode(b,u)}tsIsUnambiguouslyIndexSignature(){return this.next(),Se(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(u){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);const b=this.parseIdentifier();b.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(b),this.expect(3),u.parameters=[b];const w=this.tsTryParseTypeAnnotation();return w&&(u.typeAnnotation=w),this.tsParseTypeMemberSemicolon(),this.finishNode(u,"TSIndexSignature")}tsParsePropertyOrMethodSignature(u,b){if(this.eat(17)&&(u.optional=!0),this.match(10)||this.match(47)){b&&this.raise(ut.ReadonlyForMethodSignature,u);const w=u;w.kind&&this.match(47)&&this.raise(ut.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,w),this.tsParseTypeMemberSemicolon();const B="parameters",ee="typeAnnotation";if(w.kind==="get")w[B].length>0&&(this.raise(m.BadGetterArity,this.state.curPosition()),this.isThisParam(w[B][0])&&this.raise(ut.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(w.kind==="set"){if(w[B].length!==1)this.raise(m.BadSetterArity,this.state.curPosition());else{const le=w[B][0];this.isThisParam(le)&&this.raise(ut.AccessorCannotDeclareThisParameter,this.state.curPosition()),le.type==="Identifier"&&le.optional&&this.raise(ut.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),le.type==="RestElement"&&this.raise(ut.SetAccessorCannotHaveRestParameter,this.state.curPosition())}w[ee]&&this.raise(ut.SetAccessorCannotHaveReturnType,w[ee])}else w.kind="method";return this.finishNode(w,"TSMethodSignature")}else{const w=u;b&&(w.readonly=!0);const B=this.tsTryParseTypeAnnotation();return B&&(w.typeAnnotation=B),this.tsParseTypeMemberSemicolon(),this.finishNode(w,"TSPropertySignature")}}tsParseTypeMember(){const u=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",u);if(this.match(77)){const w=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",u):(u.key=this.createIdentifier(w,"new"),this.tsParsePropertyOrMethodSignature(u,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},u);const b=this.tsTryParseIndexSignature(u);return b||(super.parsePropertyName(u),!u.computed&&u.key.type==="Identifier"&&(u.key.name==="get"||u.key.name==="set")&&this.tsTokenCanFollowModifier()&&(u.kind=u.key.name,super.parsePropertyName(u),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(u,!!u.readonly))}tsParseTypeLiteral(){const u=this.startNode();return u.members=this.tsParseObjectTypeMembers(),this.finishNode(u,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const u=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),u}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){const u=this.startNode();this.expect(5),this.match(53)?(u.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(u.readonly=!0),this.expect(0);const b=this.startNode();return b.name=this.tsParseTypeParameterName(),b.constraint=this.tsExpectThenParseType(58),u.typeParameter=this.finishNode(b,"TSTypeParameter"),u.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(u.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(u.optional=!0),u.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(u,"TSMappedType")}tsParseTupleType(){const u=this.startNode();u.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let b=!1;return u.elementTypes.forEach(w=>{const{type:B}=w;b&&B!=="TSRestType"&&B!=="TSOptionalType"&&!(B==="TSNamedTupleMember"&&w.optional)&&this.raise(ut.OptionalTypeBeforeRequired,w),b||(b=B==="TSNamedTupleMember"&&w.optional||B==="TSOptionalType")}),this.finishNode(u,"TSTupleType")}tsParseTupleElementType(){const u=this.state.startLoc,b=this.eat(21),{startLoc:w}=this.state;let B,ee,le,be;const Ne=xe(this.state.type)?this.lookaheadCharCode():null;if(Ne===58)B=!0,le=!1,ee=this.parseIdentifier(!0),this.expect(14),be=this.tsParseType();else if(Ne===63){le=!0;const Ve=this.state.value,Qe=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(B=!0,ee=this.createIdentifier(this.startNodeAt(w),Ve),this.expect(17),this.expect(14),be=this.tsParseType()):(B=!1,be=Qe,this.expect(17))}else be=this.tsParseType(),le=this.eat(17),B=this.eat(14);if(B){let Ve;ee?(Ve=this.startNodeAt(w),Ve.optional=le,Ve.label=ee,Ve.elementType=be,this.eat(17)&&(Ve.optional=!0,this.raise(ut.TupleOptionalAfterType,this.state.lastTokStartLoc))):(Ve=this.startNodeAt(w),Ve.optional=le,this.raise(ut.InvalidTupleMemberLabel,be),Ve.label=be,Ve.elementType=this.tsParseType()),be=this.finishNode(Ve,"TSNamedTupleMember")}else if(le){const Ve=this.startNodeAt(w);Ve.typeAnnotation=be,be=this.finishNode(Ve,"TSOptionalType")}if(b){const Ve=this.startNodeAt(u);Ve.typeAnnotation=be,be=this.finishNode(Ve,"TSRestType")}return be}tsParseParenthesizedType(){const u=this.startNode();return this.expect(10),u.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(u,"TSParenthesizedType")}tsParseFunctionOrConstructorType(u,b){const w=this.startNode();return u==="TSConstructorType"&&(w.abstract=!!b,b&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,w)),this.finishNode(w,u)}tsParseLiteralTypeNode(){const u=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:u.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(u,"TSLiteralType")}tsParseTemplateLiteralType(){const u=this.startNode();return u.literal=super.parseTemplate(!1),this.finishNode(u,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const u=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(u):u}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){const u=this.startNode(),b=this.lookahead();return b.type!==135&&b.type!==136&&this.unexpected(),u.literal=this.parseMaybeUnary(),this.finishNode(u,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:u}=this.state;if(Se(u)||u===88||u===84){const b=u===88?"TSVoidKeyword":u===84?"TSNullKeyword":ao(this.state.value);if(b!==void 0&&this.lookaheadCharCode()!==46){const w=this.startNode();return this.next(),this.finishNode(w,b)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:u}=this.state;let b=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const w=this.startNodeAt(u);w.elementType=b,this.expect(3),b=this.finishNode(w,"TSArrayType")}else{const w=this.startNodeAt(u);w.objectType=b,w.indexType=this.tsParseType(),this.expect(3),b=this.finishNode(w,"TSIndexedAccessType")}return b}tsParseTypeOperator(){const u=this.startNode(),b=this.state.value;return this.next(),u.operator=b,u.typeAnnotation=this.tsParseTypeOperatorOrHigher(),b==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(u),this.finishNode(u,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(u){switch(u.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(ut.UnexpectedReadonly,u)}}tsParseInferType(){const u=this.startNode();this.expectContextual(115);const b=this.startNode();return b.name=this.tsParseTypeParameterName(),b.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),u.typeParameter=this.finishNode(b,"TSTypeParameter"),this.finishNode(u,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const u=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return u}}tsParseTypeOperatorOrHigher(){return Me(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(u,b,w){const B=this.startNode(),ee=this.eat(w),le=[];do le.push(b());while(this.eat(w));return le.length===1&&!ee?le[0]:(B.types=le,this.finishNode(B,u))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Se(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:u}=this.state,b=u.length;try{return this.parseObjectLike(8,!0),u.length===b}catch{return!1}}if(this.match(0)){this.next();const{errors:u}=this.state,b=u.length;try{return super.parseBindingList(3,93,1),u.length===b}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(u){return this.tsInType(()=>{const b=this.startNode();this.expect(u);const w=this.startNode(),B=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(B&&this.match(78)){let be=this.tsParseThisTypeOrThisTypePredicate();return be.type==="TSThisType"?(w.parameterName=be,w.asserts=!0,w.typeAnnotation=null,be=this.finishNode(w,"TSTypePredicate")):(this.resetStartLocationFromNode(be,w),be.asserts=!0),b.typeAnnotation=be,this.finishNode(b,"TSTypeAnnotation")}const ee=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!ee)return B?(w.parameterName=this.parseIdentifier(),w.asserts=B,w.typeAnnotation=null,b.typeAnnotation=this.finishNode(w,"TSTypePredicate"),this.finishNode(b,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,b);const le=this.tsParseTypeAnnotation(!1);return w.parameterName=ee,w.typeAnnotation=le,w.asserts=B,b.typeAnnotation=this.finishNode(w,"TSTypePredicate"),this.finishNode(b,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const u=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),u}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;const u=this.state.containsEsc;return this.next(),!Se(this.state.type)&&!this.match(78)?!1:(u&&this.raise(m.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(u=!0,b=this.startNode()){return this.tsInType(()=>{u&&this.expect(14),b.typeAnnotation=this.tsParseType()}),this.finishNode(b,"TSTypeAnnotation")}tsParseType(){Aa(this.state.inType);const u=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return u;const b=this.startNodeAtNode(u);return b.checkType=u,b.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),b.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),b.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(b,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(ut.ReservedTypeAssertion,this.state.startLoc);const u=this.startNode();return u.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),u.expression=this.parseMaybeUnary(),this.finishNode(u,"TSTypeAssertion")}tsParseHeritageClause(u){const b=this.state.startLoc,w=this.tsParseDelimitedList("HeritageClauseElement",()=>{const B=this.startNode();return B.expression=this.tsParseEntityName(3),this.match(47)&&(B.typeParameters=this.tsParseTypeArguments()),this.finishNode(B,"TSExpressionWithTypeArguments")});return w.length||this.raise(ut.EmptyHeritageClauseType,b,{token:u}),w}tsParseInterfaceDeclaration(u,b={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),b.declare&&(u.declare=!0),Se(this.state.type)?(u.id=this.parseIdentifier(),this.checkIdentifier(u.id,130)):(u.id=null,this.raise(ut.MissingInterfaceName,this.state.startLoc)),u.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(u.extends=this.tsParseHeritageClause("extends"));const w=this.startNode();return w.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),u.body=this.finishNode(w,"TSInterfaceBody"),this.finishNode(u,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(u){return u.id=this.parseIdentifier(),this.checkIdentifier(u.id,2),u.typeAnnotation=this.tsInType(()=>{if(u.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){const b=this.startNode();return this.next(),this.finishNode(b,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(u,"TSTypeAliasDeclaration")}tsInTopLevelContext(u){if(this.curContext()!==M.brace){const b=this.state.context;this.state.context=[b[0]];try{return u()}finally{this.state.context=b}}else return u()}tsInType(u){const b=this.state.inType;this.state.inType=!0;try{return u()}finally{this.state.inType=b}}tsInDisallowConditionalTypesContext(u){const b=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return u()}finally{this.state.inDisallowConditionalTypesContext=b}}tsInAllowConditionalTypesContext(u){const b=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return u()}finally{this.state.inDisallowConditionalTypesContext=b}}tsEatThenParseType(u){if(this.match(u))return this.tsNextThenParseType()}tsExpectThenParseType(u){return this.tsInType(()=>(this.expect(u),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){const u=this.startNode();return u.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(u.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(u,"TSEnumMember")}tsParseEnumDeclaration(u,b={}){return b.const&&(u.const=!0),b.declare&&(u.declare=!0),this.expectContextual(126),u.id=this.parseIdentifier(),this.checkIdentifier(u.id,u.const?8971:8459),this.expect(5),u.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(u,"TSEnumDeclaration")}tsParseEnumBody(){const u=this.startNode();return this.expect(5),u.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(u,"TSEnumBody")}tsParseModuleBlock(){const u=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(u.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(u,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(u,b=!1){if(u.id=this.parseIdentifier(),b||this.checkIdentifier(u.id,1024),this.eat(16)){const w=this.startNode();this.tsParseModuleOrNamespaceDeclaration(w,!0),u.body=w}else this.scope.enter(1024),this.prodParam.enter(0),u.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(u,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(u){return this.isContextual(112)?(u.kind="global",u.global=!0,u.id=this.parseIdentifier()):this.match(134)?(u.kind="module",u.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),u.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(u,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(u,b,w){u.isExport=w||!1,u.id=b||this.parseIdentifier(),this.checkIdentifier(u.id,4096),this.expect(29);const B=this.tsParseModuleReference();return u.importKind==="type"&&B.type!=="TSExternalModuleReference"&&this.raise(ut.ImportAliasHasImportType,B),u.moduleReference=B,this.semicolon(),this.finishNode(u,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const u=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),u.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(u,"TSExternalModuleReference")}tsLookAhead(u){const b=this.state.clone(),w=u();return this.state=b,w}tsTryParseAndCatch(u){const b=this.tryParse(w=>u()||w());if(!(b.aborted||!b.node))return b.error&&(this.state=b.failState),b.node}tsTryParse(u){const b=this.state.clone(),w=u();if(w!==void 0&&w!==!1)return w;this.state=b}tsTryParseDeclare(u){if(this.isLineTerminator())return;const b=this.state.type;return this.tsInAmbientContext(()=>{switch(b){case 68:return u.declare=!0,super.parseFunctionStatement(u,!1,!1);case 80:return u.declare=!0,this.parseClass(u,!0,!1);case 126:return this.tsParseEnumDeclaration(u,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(u);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(u.declare=!0,this.parseVarStatement(u,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(u,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(ut.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),u.declare=!0,this.parseVarStatement(u,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(ut.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),u.declare=!0,this.next(),this.parseVarStatement(u,"await using",!0);break;case 129:{const w=this.tsParseInterfaceDeclaration(u,{declare:!0});if(w)return w}default:if(Se(b))return this.tsParseDeclaration(u,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(u,b,w,B){switch(b){case 124:if(this.tsCheckLineTerminator(w)&&(this.match(80)||Se(this.state.type)))return this.tsParseAbstractDeclaration(u,B);break;case 127:if(this.tsCheckLineTerminator(w)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(u);if(Se(this.state.type))return u.kind="module",this.tsParseModuleOrNamespaceDeclaration(u)}break;case 128:if(this.tsCheckLineTerminator(w)&&Se(this.state.type))return u.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(u);break;case 130:if(this.tsCheckLineTerminator(w)&&Se(this.state.type))return this.tsParseTypeAliasDeclaration(u);break}}tsCheckLineTerminator(u){return u?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(u){if(!this.match(47))return;const b=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const w=this.tsTryParseAndCatch(()=>{const B=this.startNodeAt(u);return B.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(B),B.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),B});if(this.state.maybeInArrowParameters=b,!!w)return super.parseArrowExpression(w,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){const u=this.startNode();return u.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),u.params.length===0?this.raise(ut.EmptyTypeArguments,u):!this.state.inType&&this.curContext()===M.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(u,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Ke(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(u,b){const w=b.length?b[0].loc.start:this.state.startLoc,B={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},B);const ee=B.accessibility,le=B.override,be=B.readonly;!(u&4)&&(ee||be||le)&&this.raise(ut.UnexpectedParameterModifier,w);const we=this.parseMaybeDefault();u&2&&this.parseFunctionParamType(we);const Ne=this.parseMaybeDefault(we.loc.start,we);if(ee||be||le){const Ve=this.startNodeAt(w);return b.length&&(Ve.decorators=b),ee&&(Ve.accessibility=ee),be&&(Ve.readonly=be),le&&(Ve.override=le),Ne.type!=="Identifier"&&Ne.type!=="AssignmentPattern"&&this.raise(ut.UnsupportedParameterPropertyKind,Ve),Ve.parameter=Ne,this.finishNode(Ve,"TSParameterProperty")}return b.length&&(we.decorators=b),Ne}isSimpleParameter(u){return u.type==="TSParameterProperty"&&super.isSimpleParameter(u.parameter)||super.isSimpleParameter(u)}tsDisallowOptionalPattern(u){for(const b of u.params)b.type!=="Identifier"&&b.optional&&!this.state.isAmbientContext&&this.raise(ut.PatternIsOptional,b)}setArrowFunctionParameters(u,b,w){super.setArrowFunctionParameters(u,b,w),this.tsDisallowOptionalPattern(u)}parseFunctionBodyAndFinish(u,b,w=!1){this.match(14)&&(u.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const B=b==="FunctionDeclaration"?"TSDeclareFunction":b==="ClassMethod"||b==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return B&&!this.match(5)&&this.isLineTerminator()?this.finishNode(u,B):B==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(ut.DeclareFunctionHasImplementation,u),u.declare)?super.parseFunctionBodyAndFinish(u,B,w):(this.tsDisallowOptionalPattern(u),super.parseFunctionBodyAndFinish(u,b,w))}registerFunctionStatementId(u){!u.body&&u.id?this.checkIdentifier(u.id,1024):super.registerFunctionStatementId(u)}tsCheckForInvalidTypeCasts(u){u.forEach(b=>{(b==null?void 0:b.type)==="TSTypeCastExpression"&&this.raise(ut.UnexpectedTypeAnnotation,b.typeAnnotation)})}toReferencedList(u,b){return this.tsCheckForInvalidTypeCasts(u),u}parseArrayLike(u,b,w){const B=super.parseArrayLike(u,b,w);return B.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(B.elements),B}parseSubscript(u,b,w,B){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const le=this.startNodeAt(b);return le.expression=u,this.finishNode(le,"TSNonNullExpression")}let ee=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(w)return B.stop=!0,u;B.optionalChainMember=ee=!0,this.next()}if(this.match(47)||this.match(51)){let le;const be=this.tsTryParseAndCatch(()=>{if(!w&&this.atPossibleAsyncArrow(u)){const Qe=this.tsTryParseGenericAsyncArrowFunction(b);if(Qe)return B.stop=!0,Qe}const we=this.tsParseTypeArgumentsInExpression();if(!we)return;if(ee&&!this.match(10)){le=this.state.curPosition();return}if(me(this.state.type)){const Qe=super.parseTaggedTemplateExpression(u,b,B);return Qe.typeParameters=we,Qe}if(!w&&this.eat(10)){const Qe=this.startNodeAt(b);return Qe.callee=u,Qe.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(Qe.arguments),Qe.typeParameters=we,B.optionalChainMember&&(Qe.optional=ee),this.finishCallExpression(Qe,B.optionalChainMember)}const Ne=this.state.type;if(Ne===48||Ne===52||Ne!==10&&Ne!==93&&Ne!==120&&He(Ne)&&!this.hasPrecedingLineBreak())return;const Ve=this.startNodeAt(b);return Ve.expression=u,Ve.typeParameters=we,this.finishNode(Ve,"TSInstantiationExpression")});if(le&&this.unexpected(le,10),be)return be.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(ut.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(be.expression=super.stopParseSubscript(u,B))),be}return super.parseSubscript(u,b,w,B)}parseNewCallee(u){var b;super.parseNewCallee(u);const{callee:w}=u;w.type==="TSInstantiationExpression"&&!((b=w.extra)!=null&&b.parenthesized)&&(u.typeParameters=w.typeParameters,u.callee=w.expression)}parseExprOp(u,b,w){let B;if(pe(58)>w&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(B=this.isContextual(120)))){const ee=this.startNodeAt(b);return ee.expression=u,ee.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(B&&this.raise(m.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(ee,B?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(ee,b,w)}return super.parseExprOp(u,b,w)}checkReservedWord(u,b,w,B){this.state.isAmbientContext||super.checkReservedWord(u,b,w,B)}checkImportReflection(u){super.checkImportReflection(u),u.module&&u.importKind!=="value"&&this.raise(ut.ImportReflectionHasImportType,u.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(u){if(super.isPotentialImportPhase(u))return!0;if(this.isContextual(130)){const b=this.lookaheadCharCode();return u?b===123||b===42:b!==61}return!u&&this.isContextual(87)}applyImportPhase(u,b,w,B){super.applyImportPhase(u,b,w,B),b?u.exportKind=w==="type"?"type":"value":u.importKind=w==="type"||w==="typeof"?w:"value"}parseImport(u){if(this.match(134))return u.importKind="value",super.parseImport(u);let b;if(Se(this.state.type)&&this.lookaheadCharCode()===61)return u.importKind="value",this.tsParseImportEqualsDeclaration(u);if(this.isContextual(130)){const w=this.parseMaybeImportPhase(u,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(u,w);b=super.parseImportSpecifiersAndAfter(u,w)}else b=super.parseImport(u);return b.importKind==="type"&&b.specifiers.length>1&&b.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(ut.TypeImportCannotSpecifyDefaultAndNamed,b),b}parseExport(u,b){if(this.match(83)){const w=u;this.next();let B=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?B=this.parseMaybeImportPhase(w,!1):w.importKind="value",this.tsParseImportEqualsDeclaration(w,B,!0)}else if(this.eat(29)){const w=u;return w.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(w,"TSExportAssignment")}else if(this.eatContextual(93)){const w=u;return this.expectContextual(128),w.id=this.parseIdentifier(),this.semicolon(),this.finishNode(w,"TSNamespaceExportDeclaration")}else return super.parseExport(u,b)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){const u=this.startNode();return this.next(),u.abstract=!0,this.parseClass(u,!0,!0)}if(this.match(129)){const u=this.tsParseInterfaceDeclaration(this.startNode());if(u)return u}return super.parseExportDefaultExpression()}parseVarStatement(u,b,w=!1){const{isAmbientContext:B}=this.state,ee=super.parseVarStatement(u,b,w||B);if(!B)return ee;if(!u.declare&&(b==="using"||b==="await using"))return this.raiseOverwrite(ut.UsingDeclarationInAmbientContext,u,b),ee;for(const{id:le,init:be}of ee.declarations)be&&(b==="var"||b==="let"||le.typeAnnotation?this.raise(ut.InitializerNotAllowedInAmbientContext,be):uo(be,this.hasPlugin("estree"))||this.raise(ut.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,be));return ee}parseStatementContent(u,b){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){const w=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(w,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){const w=this.state.type,B=this.startNode();this.next();const ee=w===125?this.tsTryParseDeclare(B):this.tsParseAbstractDeclaration(B,b);return ee?(w===125&&(ee.declare=!0),ee):(B.expression=this.createIdentifier(this.startNodeAt(B.loc.start),w===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(B,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){const B=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(B)}break}case 129:{const w=this.tsParseInterfaceDeclaration(this.startNode());if(w)return w;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){const w=this.startNode();return this.next(),this.tsParseDeclaration(w,127,!1,b)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){const w=this.startNode();return this.next(),this.tsParseDeclaration(w,128,!1,b)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){const w=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(w)}break}}return super.parseStatementContent(u,b)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(u,b){return b.some(w=>wa(w)?u.accessibility===w:!!u[w])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(u,b,w){const B=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:B,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:ut.InvalidModifierOnTypeParameterPositions},b);const ee=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(b,B)&&this.raise(ut.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(u,b)):this.parseClassMemberWithIsStatic(u,b,w,!!b.static)};b.declare?this.tsInAmbientContext(ee):ee()}parseClassMemberWithIsStatic(u,b,w,B){const ee=this.tsTryParseIndexSignature(b);if(ee){u.body.push(ee),b.abstract&&this.raise(ut.IndexSignatureHasAbstract,b),b.accessibility&&this.raise(ut.IndexSignatureHasAccessibility,b,{modifier:b.accessibility}),b.declare&&this.raise(ut.IndexSignatureHasDeclare,b),b.override&&this.raise(ut.IndexSignatureHasOverride,b);return}!this.state.inAbstractClass&&b.abstract&&this.raise(ut.NonAbstractClassHasAbstractMethod,b),b.override&&(w.hadSuperClass||this.raise(ut.OverrideNotInSubClass,b)),super.parseClassMemberWithIsStatic(u,b,w,B)}parsePostMemberNameModifiers(u){this.eat(17)&&(u.optional=!0),u.readonly&&this.match(10)&&this.raise(ut.ClassMethodHasReadonly,u),u.declare&&this.match(10)&&this.raise(ut.ClassMethodHasDeclare,u)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(u,b,w){if(!this.match(17))return u;if(this.state.maybeInArrowParameters){const B=this.lookaheadCharCode();if(B===44||B===61||B===58||B===41)return this.setOptionalParametersError(w),u}return super.parseConditional(u,b,w)}parseParenItem(u,b){const w=super.parseParenItem(u,b);if(this.eat(17)&&(w.optional=!0,this.resetEndLocation(u)),this.match(14)){const B=this.startNodeAt(b);return B.expression=u,B.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(B,"TSTypeCastExpression")}return u}parseExportDeclaration(u){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(u));const b=this.state.startLoc,w=this.eatContextual(125);if(w&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(ut.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const ee=Se(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(u);return ee?((ee.type==="TSInterfaceDeclaration"||ee.type==="TSTypeAliasDeclaration"||w)&&(u.exportKind="type"),w&&ee.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(ee,b),ee.declare=!0),ee):null}parseClassId(u,b,w,B){if((!b||w)&&this.isContextual(113))return;super.parseClassId(u,b,w,u.declare?1024:8331);const ee=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);ee&&(u.typeParameters=ee)}parseClassPropertyAnnotation(u){u.optional||(this.eat(35)?u.definite=!0:this.eat(17)&&(u.optional=!0));const b=this.tsTryParseTypeAnnotation();b&&(u.typeAnnotation=b)}parseClassProperty(u){if(this.parseClassPropertyAnnotation(u),this.state.isAmbientContext&&!(u.readonly&&!u.typeAnnotation)&&this.match(29)&&this.raise(ut.DeclareClassFieldHasInitializer,this.state.startLoc),u.abstract&&this.match(29)){const{key:b}=u;this.raise(ut.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:b.type==="Identifier"&&!u.computed?b.name:`[${this.input.slice(this.offsetToSourcePos(b.start),this.offsetToSourcePos(b.end))}]`})}return super.parseClassProperty(u)}parseClassPrivateProperty(u){return u.abstract&&this.raise(ut.PrivateElementHasAbstract,u),u.accessibility&&this.raise(ut.PrivateElementHasAccessibility,u,{modifier:u.accessibility}),this.parseClassPropertyAnnotation(u),super.parseClassPrivateProperty(u)}parseClassAccessorProperty(u){return this.parseClassPropertyAnnotation(u),u.optional&&this.raise(ut.AccessorCannotBeOptional,u),super.parseClassAccessorProperty(u)}pushClassMethod(u,b,w,B,ee,le){const be=this.tsTryParseTypeParameters(this.tsParseConstModifier);be&&ee&&this.raise(ut.ConstructorHasTypeParameters,be);const{declare:we=!1,kind:Ne}=b;we&&(Ne==="get"||Ne==="set")&&this.raise(ut.DeclareAccessor,b,{kind:Ne}),be&&(b.typeParameters=be),super.pushClassMethod(u,b,w,B,ee,le)}pushClassPrivateMethod(u,b,w,B){const ee=this.tsTryParseTypeParameters(this.tsParseConstModifier);ee&&(b.typeParameters=ee),super.pushClassPrivateMethod(u,b,w,B)}declareClassPrivateMethodInScope(u,b){u.type!=="TSDeclareMethod"&&(u.type==="MethodDefinition"&&u.value.body==null||super.declareClassPrivateMethodInScope(u,b))}parseClassSuper(u){if(super.parseClassSuper(u),u.superClass)if(u.superClass.type==="TSInstantiationExpression"){const b=u.superClass,w=b.expression;this.takeSurroundingComments(w,w.start,w.end);const B=b.typeParameters;this.takeSurroundingComments(B,B.start,B.end),u.superClass=w,u.superTypeParameters=B}else(this.match(47)||this.match(51))&&(u.superTypeParameters=this.tsParseTypeArgumentsInExpression());this.eatContextual(113)&&(u.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(u,b,w,B,ee,le,be){const we=this.tsTryParseTypeParameters(this.tsParseConstModifier);return we&&(u.typeParameters=we),super.parseObjPropValue(u,b,w,B,ee,le,be)}parseFunctionParams(u,b){const w=this.tsTryParseTypeParameters(this.tsParseConstModifier);w&&(u.typeParameters=w),super.parseFunctionParams(u,b)}parseVarId(u,b){super.parseVarId(u,b),u.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(u.definite=!0);const w=this.tsTryParseTypeAnnotation();w&&(u.id.typeAnnotation=w,this.resetEndLocation(u.id))}parseAsyncArrowFromCallExpression(u,b){return this.match(14)&&(u.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(u,b)}parseMaybeAssign(u,b){var w,B,ee,le,be;let we,Ne,Ve;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(we=this.state.clone(),Ne=this.tryParse(()=>super.parseMaybeAssign(u,b),we),!Ne.error)return Ne.node;const{context:ct}=this.state,Ct=ct[ct.length-1];(Ct===M.j_oTag||Ct===M.j_expr)&&ct.pop()}if(!((w=Ne)!=null&&w.error)&&!this.match(47))return super.parseMaybeAssign(u,b);(!we||we===this.state)&&(we=this.state.clone());let Qe;const tt=this.tryParse(ct=>{var Ct,Rt;Qe=this.tsParseTypeParameters(this.tsParseConstModifier);const bt=super.parseMaybeAssign(u,b);return(bt.type!=="ArrowFunctionExpression"||(Ct=bt.extra)!=null&&Ct.parenthesized)&&ct(),((Rt=Qe)==null?void 0:Rt.params.length)!==0&&this.resetStartLocationFromNode(bt,Qe),bt.typeParameters=Qe,bt},we);if(!tt.error&&!tt.aborted)return Qe&&this.reportReservedArrowTypeParam(Qe),tt.node;if(!Ne&&(Aa(!this.hasPlugin("jsx")),Ve=this.tryParse(()=>super.parseMaybeAssign(u,b),we),!Ve.error))return Ve.node;if((B=Ne)!=null&&B.node)return this.state=Ne.failState,Ne.node;if(tt.node)return this.state=tt.failState,Qe&&this.reportReservedArrowTypeParam(Qe),tt.node;if((ee=Ve)!=null&&ee.node)return this.state=Ve.failState,Ve.node;throw((le=Ne)==null?void 0:le.error)||tt.error||((be=Ve)==null?void 0:be.error)}reportReservedArrowTypeParam(u){var b;u.params.length===1&&!u.params[0].constraint&&!((b=u.extra)!=null&&b.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(ut.ReservedArrowTypeParam,u)}parseMaybeUnary(u,b){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(u,b)}parseArrow(u){if(this.match(14)){const b=this.tryParse(w=>{const B=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&w(),B});if(b.aborted)return;b.thrown||(b.error&&(this.state=b.failState),u.returnType=b.node)}return super.parseArrow(u)}parseFunctionParamType(u){this.eat(17)&&(u.optional=!0);const b=this.tsTryParseTypeAnnotation();return b&&(u.typeAnnotation=b),this.resetEndLocation(u),u}isAssignable(u,b){switch(u.type){case"TSTypeCastExpression":return this.isAssignable(u.expression,b);case"TSParameterProperty":return!0;default:return super.isAssignable(u,b)}}toAssignable(u,b=!1){switch(u.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(u,b);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":b?this.expressionScope.recordArrowParameterBindingError(ut.UnexpectedTypeCastInParameter,u):this.raise(ut.UnexpectedTypeCastInParameter,u),this.toAssignable(u.expression,b);break;case"AssignmentExpression":!b&&u.left.type==="TSTypeCastExpression"&&(u.left=this.typeCastToParameter(u.left));default:super.toAssignable(u,b)}}toAssignableParenthesizedExpression(u,b){switch(u.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(u.expression,b);break;default:super.toAssignable(u,b)}}checkToRestConversion(u,b){switch(u.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(u.expression,!1);break;default:super.checkToRestConversion(u,b)}}isValidLVal(u,b,w,B){switch(u){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(B!==64||!w)&&["expression",!0];default:return super.isValidLVal(u,b,w,B)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(u,b){if(this.match(47)||this.match(51)){const w=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const B=super.parseMaybeDecoratorArguments(u,b);return B.typeParameters=w,B}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(u,b)}checkCommaAfterRest(u){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===u?(this.next(),!1):super.checkCommaAfterRest(u)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(u,b){const w=super.parseMaybeDefault(u,b);return w.type==="AssignmentPattern"&&w.typeAnnotation&&w.right.start<w.typeAnnotation.start&&this.raise(ut.TypeAnnotationAfterAssign,w.typeAnnotation),w}getTokenFromCode(u){if(this.state.inType){if(u===62){this.finishOp(48,1);return}if(u===60){this.finishOp(47,1);return}}super.getTokenFromCode(u)}reScan_lt_gt(){const{type:u}=this.state;u===47?(this.state.pos-=1,this.readToken_lt()):u===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:u}=this.state;return u===51?(this.state.pos-=2,this.finishOp(47,1),47):u}toAssignableListItem(u,b,w){const B=u[b];B.type==="TSTypeCastExpression"&&(u[b]=this.typeCastToParameter(B)),super.toAssignableListItem(u,b,w)}typeCastToParameter(u){return u.expression.typeAnnotation=u.typeAnnotation,this.resetEndLocation(u.expression,u.typeAnnotation.loc.end),u.expression}shouldParseArrow(u){return this.match(14)?u.every(b=>this.isAssignable(b,!0)):super.shouldParseArrow(u)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(u){if(this.match(47)||this.match(51)){const b=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());b&&(u.typeParameters=b)}return super.jsxParseOpeningElementAfterName(u)}getGetterSetterExpectedParamCount(u){const b=super.getGetterSetterExpectedParamCount(u),B=this.getObjectOrClassMethodParams(u)[0];return B&&this.isThisParam(B)?b+1:b}parseCatchClauseParam(){const u=super.parseCatchClauseParam(),b=this.tsTryParseTypeAnnotation();return b&&(u.typeAnnotation=b,this.resetEndLocation(u)),u}tsInAmbientContext(u){const{isAmbientContext:b,strict:w}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return u()}finally{this.state.isAmbientContext=b,this.state.strict=w}}parseClass(u,b,w){const B=this.state.inAbstractClass;this.state.inAbstractClass=!!u.abstract;try{return super.parseClass(u,b,w)}finally{this.state.inAbstractClass=B}}tsParseAbstractDeclaration(u,b){if(this.match(80))return u.abstract=!0,this.maybeTakeDecorators(b,this.parseClass(u,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(u.abstract=!0,this.raise(ut.NonClassMethodPropertyHasAbstractModifier,u),this.tsParseInterfaceDeclaration(u));throw this.unexpected(null,80)}parseMethod(u,b,w,B,ee,le,be){const we=super.parseMethod(u,b,w,B,ee,le,be);if((we.abstract||we.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?we.value:we).body){const{key:Qe}=we;this.raise(ut.AbstractMethodHasImplementation,we,{methodName:Qe.type==="Identifier"&&!we.computed?Qe.name:`[${this.input.slice(this.offsetToSourcePos(Qe.start),this.offsetToSourcePos(Qe.end))}]`})}return we}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(u,b,w,B){return!b&&B?(this.parseTypeOnlyImportExportSpecifier(u,!1,w),this.finishNode(u,"ExportSpecifier")):(u.exportKind="value",super.parseExportSpecifier(u,b,w,B))}parseImportSpecifier(u,b,w,B,ee){return!b&&B?(this.parseTypeOnlyImportExportSpecifier(u,!0,w),this.finishNode(u,"ImportSpecifier")):(u.importKind="value",super.parseImportSpecifier(u,b,w,B,w?4098:4096))}parseTypeOnlyImportExportSpecifier(u,b,w){const B=b?"imported":"local",ee=b?"local":"exported";let le=u[B],be,we=!1,Ne=!0;const Ve=le.loc.start;if(this.isContextual(93)){const tt=this.parseIdentifier();if(this.isContextual(93)){const ct=this.parseIdentifier();xe(this.state.type)?(we=!0,le=tt,be=b?this.parseIdentifier():this.parseModuleExportName(),Ne=!1):(be=ct,Ne=!1)}else xe(this.state.type)?(Ne=!1,be=b?this.parseIdentifier():this.parseModuleExportName()):(we=!0,le=tt)}else xe(this.state.type)&&(we=!0,b?(le=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(le.name,le.loc.start,!0,!0)):le=this.parseModuleExportName());we&&w&&this.raise(b?ut.TypeModifierIsUsedInTypeImports:ut.TypeModifierIsUsedInTypeExports,Ve),u[B]=le,u[ee]=be;const Qe=b?"importKind":"exportKind";u[Qe]=we?"type":"value",Ne&&this.eatContextual(93)&&(u[ee]=b?this.parseIdentifier():this.parseModuleExportName()),u[ee]||(u[ee]=this.cloneIdentifier(u[B])),b&&this.checkIdentifier(u[ee],we?4098:4096)}fillOptionalPropertiesForTSESLint(u){var b,w,B,ee,le,be,we,Ne,Ve,Qe,tt,ct,Ct,Rt,bt,jt,dn,Zr,La,ja,Ra,Ba,Fa,qa,$a,Ua,Va,Ka,za,Wa,Ha,Ya,Xa,Ga,Ja,Qa,Za,es,ts,rs,ns,is,as,ss,os,ls,us,cs;switch(u.type){case"ExpressionStatement":(b=u.directive)!=null||(u.directive=void 0);return;case"RestElement":u.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(w=u.decorators)!=null||(u.decorators=[]),(B=u.optional)!=null||(u.optional=!1),(ee=u.typeAnnotation)!=null||(u.typeAnnotation=void 0);return;case"TSParameterProperty":(le=u.accessibility)!=null||(u.accessibility=void 0),(be=u.decorators)!=null||(u.decorators=[]),(we=u.override)!=null||(u.override=!1),(Ne=u.readonly)!=null||(u.readonly=!1),(Ve=u.static)!=null||(u.static=!1);return;case"TSEmptyBodyFunctionExpression":u.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(Qe=u.declare)!=null||(u.declare=!1),(tt=u.returnType)!=null||(u.returnType=void 0),(ct=u.typeParameters)!=null||(u.typeParameters=void 0);return;case"Property":(Ct=u.optional)!=null||(u.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(Rt=u.optional)!=null||(u.optional=!1);case"TSIndexSignature":(bt=u.accessibility)!=null||(u.accessibility=void 0),(jt=u.readonly)!=null||(u.readonly=!1),(dn=u.static)!=null||(u.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(Zr=u.declare)!=null||(u.declare=!1),(La=u.definite)!=null||(u.definite=!1),(ja=u.readonly)!=null||(u.readonly=!1),(Ra=u.typeAnnotation)!=null||(u.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(Ba=u.accessibility)!=null||(u.accessibility=void 0),(Fa=u.decorators)!=null||(u.decorators=[]),(qa=u.override)!=null||(u.override=!1),($a=u.optional)!=null||(u.optional=!1);return;case"ClassExpression":(Ua=u.id)!=null||(u.id=null);case"ClassDeclaration":(Va=u.abstract)!=null||(u.abstract=!1),(Ka=u.declare)!=null||(u.declare=!1),(za=u.decorators)!=null||(u.decorators=[]),(Wa=u.implements)!=null||(u.implements=[]),(Ha=u.superTypeArguments)!=null||(u.superTypeArguments=void 0),(Ya=u.typeParameters)!=null||(u.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(Xa=u.declare)!=null||(u.declare=!1);return;case"VariableDeclarator":(Ga=u.definite)!=null||(u.definite=!1);return;case"TSEnumDeclaration":(Ja=u.const)!=null||(u.const=!1),(Qa=u.declare)!=null||(u.declare=!1);return;case"TSEnumMember":(Za=u.computed)!=null||(u.computed=!1);return;case"TSImportType":(es=u.qualifier)!=null||(u.qualifier=null),(ts=u.options)!=null||(u.options=null);return;case"TSInterfaceDeclaration":(rs=u.declare)!=null||(u.declare=!1),(ns=u.extends)!=null||(u.extends=[]);return;case"TSMappedType":(is=u.optional)!=null||(u.optional=!1),(as=u.readonly)!=null||(u.readonly=void 0);return;case"TSModuleDeclaration":(ss=u.declare)!=null||(u.declare=!1),(os=u.global)!=null||(u.global=u.kind==="global");return;case"TSTypeParameter":(ls=u.const)!=null||(u.const=!1),(us=u.in)!=null||(u.in=!1),(cs=u.out)!=null||(u.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(u,b){if(Le(u)){if(Ui.lastIndex=b,Ui.test(this.input)){const w=this.codePointAtPos(Ui.lastIndex);if(!qe(w)&&w!==92)return!1}return!0}else return u===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){const u=this.nextTokenInLineStart(),b=this.codePointAtPos(u);return this.chStartsBindingIdentifierAndNotRelationalOperator(b,u)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){const u=this.nextTokenInLineStart(),b=this.codePointAtPos(u);return this.chStartsBindingIdentifier(b,u)||b===34||b===39}};function lo(G){if(G.type!=="MemberExpression")return!1;const{computed:g,property:u}=G;return g&&u.type!=="StringLiteral"&&(u.type!=="TemplateLiteral"||u.expressions.length>0)?!1:Oa(G.object)}function uo(G,g){var u;const{type:b}=G;if((u=G.extra)!=null&&u.parenthesized)return!1;if(g){if(b==="Literal"){const{value:w}=G;if(typeof w=="string"||typeof w=="boolean")return!0}}else if(b==="StringLiteral"||b==="BooleanLiteral")return!0;return!!(_a(G,g)||co(G,g)||b==="TemplateLiteral"&&G.expressions.length===0||lo(G))}function _a(G,g){return g?G.type==="Literal"&&(typeof G.value=="number"||"bigint"in G):G.type==="NumericLiteral"||G.type==="BigIntLiteral"}function co(G,g){if(G.type==="UnaryExpression"){const{operator:u,argument:b}=G;if(u==="-"&&_a(b,g))return!0}return!1}function Oa(G){return G.type==="Identifier"?!0:G.type!=="MemberExpression"||G.computed?!1:Oa(G.object)}const Ca=y`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});var fo=G=>class extends G{parsePlaceholder(u){if(this.match(133)){const b=this.startNode();return this.next(),this.assertNoSpace(),b.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(b,u)}}finishPlaceholder(u,b){let w=u;return(!w.expectedNode||!w.type)&&(w=this.finishNode(w,"Placeholder")),w.expectedNode=b,w}getTokenFromCode(u){u===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(u)}parseExprAtom(u){return this.parsePlaceholder("Expression")||super.parseExprAtom(u)}parseIdentifier(u){return this.parsePlaceholder("Identifier")||super.parseIdentifier(u)}checkReservedWord(u,b,w,B){u!==void 0&&super.checkReservedWord(u,b,w,B)}cloneIdentifier(u){const b=super.cloneIdentifier(u);return b.type==="Placeholder"&&(b.expectedNode=u.expectedNode),b}cloneStringLiteral(u){return u.type==="Placeholder"?this.cloneIdentifier(u):super.cloneStringLiteral(u)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(u,b,w,B){return u==="Placeholder"||super.isValidLVal(u,b,w,B)}toAssignable(u,b){u&&u.type==="Placeholder"&&u.expectedNode==="Expression"?u.expectedNode="Pattern":super.toAssignable(u,b)}chStartsBindingIdentifier(u,b){if(super.chStartsBindingIdentifier(u,b))return!0;const w=this.nextTokenStart();return this.input.charCodeAt(w)===37&&this.input.charCodeAt(w+1)===37}verifyBreakContinue(u,b){var w;((w=u.label)==null?void 0:w.type)!=="Placeholder"&&super.verifyBreakContinue(u,b)}parseExpressionStatement(u,b){var w;if(b.type!=="Placeholder"||(w=b.extra)!=null&&w.parenthesized)return super.parseExpressionStatement(u,b);if(this.match(14)){const ee=u;return ee.label=this.finishPlaceholder(b,"Identifier"),this.next(),ee.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(ee,"LabeledStatement")}this.semicolon();const B=u;return B.name=b.name,this.finishPlaceholder(B,"Statement")}parseBlock(u,b,w){return this.parsePlaceholder("BlockStatement")||super.parseBlock(u,b,w)}parseFunctionId(u){return this.parsePlaceholder("Identifier")||super.parseFunctionId(u)}parseClass(u,b,w){const B=b?"ClassDeclaration":"ClassExpression";this.next();const ee=this.state.strict,le=this.parsePlaceholder("Identifier");if(le)if(this.match(81)||this.match(133)||this.match(5))u.id=le;else{if(w||!b)return u.id=null,u.body=this.finishPlaceholder(le,"ClassBody"),this.finishNode(u,B);throw this.raise(Ca.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(u,b,w);return super.parseClassSuper(u),u.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!u.superClass,ee),this.finishNode(u,B)}parseExport(u,b){const w=this.parsePlaceholder("Identifier");if(!w)return super.parseExport(u,b);const B=u;if(!this.isContextual(98)&&!this.match(12))return B.specifiers=[],B.source=null,B.declaration=this.finishPlaceholder(w,"Declaration"),this.finishNode(B,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const ee=this.startNode();return ee.exported=w,B.specifiers=[this.finishNode(ee,"ExportDefaultSpecifier")],super.parseExport(B,b)}isExportDefaultSpecifier(){if(this.match(65)){const u=this.nextTokenStart();if(this.isUnparsedContextual(u,"from")&&this.input.startsWith(_e(133),this.nextTokenStartSince(u+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(u,b){var w;return(w=u.specifiers)!=null&&w.length?!0:super.maybeParseExportDefaultSpecifier(u,b)}checkExport(u){const{specifiers:b}=u;b!=null&&b.length&&(u.specifiers=b.filter(w=>w.exported.type==="Placeholder")),super.checkExport(u),u.specifiers=b}parseImport(u){const b=this.parsePlaceholder("Identifier");if(!b)return super.parseImport(u);if(u.specifiers=[],!this.isContextual(98)&&!this.match(12))return u.source=this.finishPlaceholder(b,"StringLiteral"),this.semicolon(),this.finishNode(u,"ImportDeclaration");const w=this.startNodeAtNode(b);return w.local=b,u.specifiers.push(this.finishNode(w,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(u)||this.parseNamedImportSpecifiers(u)),this.expectContextual(98),u.source=this.parseImportSource(),this.semicolon(),this.finishNode(u,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Ca.UnexpectedSpace,this.state.lastTokEndLoc)}},po=G=>class extends G{parseV8Intrinsic(){if(this.match(54)){const u=this.state.startLoc,b=this.startNode();if(this.next(),Se(this.state.type)){const w=this.parseIdentifierName(),B=this.createIdentifier(b,w);if(this.castNodeTo(B,"V8IntrinsicIdentifier"),this.match(10))return B}this.unexpected(u)}}parseExprAtom(u){return this.parseV8Intrinsic()||super.parseExprAtom(u)}};const Ia=["minimal","fsharp","hack","smart"],ka=["^^","@@","^","%","#"];function ho(G){if(G.has("decorators")){if(G.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const b=G.get("decorators").decoratorsBeforeExport;if(b!=null&&typeof b!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const w=G.get("decorators").allowCallParenthesized;if(w!=null&&typeof w!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(G.has("flow")&&G.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(G.has("placeholders")&&G.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(G.has("pipelineOperator")){var g;const b=G.get("pipelineOperator").proposal;if(!Ia.includes(b)){const w=Ia.map(B=>`"${B}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${w}.`)}if(b==="hack"){var u;if(G.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(G.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const w=G.get("pipelineOperator").topicToken;if(!ka.includes(w)){const B=ka.map(ee=>`"${ee}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${B}.`)}if(w==="#"&&((u=G.get("recordAndTuple"))==null?void 0:u.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",G.get("recordAndTuple")])}\`.`)}else if(b==="smart"&&((g=G.get("recordAndTuple"))==null?void 0:g.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",G.get("recordAndTuple")])}\`.`)}if(G.has("moduleAttributes")){if(G.has("deprecatedImportAssert")||G.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(G.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(G.has("importAssertions")&&G.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(G.has("deprecatedImportAssert")||G.has("importAttributes")&&G.get("importAttributes").deprecatedAssertSyntax&&G.set("deprecatedImportAssert",{}),G.has("recordAndTuple")){const b=G.get("recordAndTuple").syntaxType;if(b!=null){const w=["hash","bar"];if(!w.includes(b))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+w.map(B=>`'${B}'`).join(", "))}}if(G.has("asyncDoExpressions")&&!G.has("doExpressions")){const b=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw b.missingPlugins="doExpressions",b}if(G.has("optionalChainingAssign")&&G.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(G.has("discardBinding")&&G.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}const Na={estree:I,jsx:Rs,flow:$r,typescript:oo,v8intrinsic:po,placeholders:fo},mo=Object.keys(Na);class yo extends no{checkProto(g,u,b,w){if(g.type==="SpreadElement"||this.isObjectMethod(g)||g.computed||g.shorthand)return b;const B=g.key;return(B.type==="Identifier"?B.name:B.value)==="__proto__"?u?(this.raise(m.RecordNoProto,B),!0):(b&&(w?w.doubleProtoLoc===null&&(w.doubleProtoLoc=B.loc.start):this.raise(m.DuplicateProto,B)),!0):b}shouldExitDescending(g,u){return g.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(g.start)===u}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(m.ParseExpressionEmptyInput,this.state.startLoc);const g=this.parseExpression();if(!this.match(140))throw this.raise(m.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),g.comments=this.comments,g.errors=this.state.errors,this.optionFlags&256&&(g.tokens=this.tokens),g}parseExpression(g,u){return g?this.disallowInAnd(()=>this.parseExpressionBase(u)):this.allowInAnd(()=>this.parseExpressionBase(u))}parseExpressionBase(g){const u=this.state.startLoc,b=this.parseMaybeAssign(g);if(this.match(12)){const w=this.startNodeAt(u);for(w.expressions=[b];this.eat(12);)w.expressions.push(this.parseMaybeAssign(g));return this.toReferencedList(w.expressions),this.finishNode(w,"SequenceExpression")}return b}parseMaybeAssignDisallowIn(g,u){return this.disallowInAnd(()=>this.parseMaybeAssign(g,u))}parseMaybeAssignAllowIn(g,u){return this.allowInAnd(()=>this.parseMaybeAssign(g,u))}setOptionalParametersError(g){g.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(g,u){const b=this.state.startLoc,w=this.isContextual(108);if(w&&this.prodParam.hasYield){this.next();let be=this.parseYield(b);return u&&(be=u.call(this,be,b)),be}let B;g?B=!1:(g=new mi,B=!0);const{type:ee}=this.state;(ee===10||Se(ee))&&(this.state.potentialArrowAt=this.state.start);let le=this.parseMaybeConditional(g);if(u&&(le=u.call(this,le,b)),ze(this.state.type)){const be=this.startNodeAt(b),we=this.state.value;if(be.operator=we,this.match(29)){this.toAssignable(le,!0),be.left=le;const Ne=b.index;g.doubleProtoLoc!=null&&g.doubleProtoLoc.index>=Ne&&(g.doubleProtoLoc=null),g.shorthandAssignLoc!=null&&g.shorthandAssignLoc.index>=Ne&&(g.shorthandAssignLoc=null),g.privateKeyLoc!=null&&g.privateKeyLoc.index>=Ne&&(this.checkDestructuringPrivate(g),g.privateKeyLoc=null),g.voidPatternLoc!=null&&g.voidPatternLoc.index>=Ne&&(g.voidPatternLoc=null)}else be.left=le;return this.next(),be.right=this.parseMaybeAssign(),this.checkLVal(le,this.finishNode(be,"AssignmentExpression"),void 0,void 0,void 0,void 0,we==="||="||we==="&&="||we==="??="),be}else B&&this.checkExpressionErrors(g,!0);if(w){const{type:be}=this.state;if((this.hasPlugin("v8intrinsic")?He(be):He(be)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(m.YieldNotInGeneratorFunction,b),this.parseYield(b)}return le}parseMaybeConditional(g){const u=this.state.startLoc,b=this.state.potentialArrowAt,w=this.parseExprOps(g);return this.shouldExitDescending(w,b)?w:this.parseConditional(w,u,g)}parseConditional(g,u,b){if(this.eat(17)){const w=this.startNodeAt(u);return w.test=g,w.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),w.alternate=this.parseMaybeAssign(),this.finishNode(w,"ConditionalExpression")}return g}parseMaybeUnaryOrPrivate(g){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(g)}parseExprOps(g){const u=this.state.startLoc,b=this.state.potentialArrowAt,w=this.parseMaybeUnaryOrPrivate(g);return this.shouldExitDescending(w,b)?w:this.parseExprOp(w,u,-1)}parseExprOp(g,u,b){if(this.isPrivateName(g)){const B=this.getPrivateNameSV(g);(b>=pe(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(m.PrivateInExpectedIn,g,{identifierName:B}),this.classScope.usePrivateName(B,g.loc.start)}const w=this.state.type;if(Te(w)&&(this.prodParam.hasIn||!this.match(58))){let B=pe(w);if(B>b){if(w===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return g;this.checkPipelineAtInfixOperator(g,u)}const ee=this.startNodeAt(u);ee.left=g,ee.operator=this.state.value;const le=w===41||w===42,be=w===40;if(be&&(B=pe(42)),this.next(),w===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(m.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);ee.right=this.parseExprOpRightExpr(w,B);const we=this.finishNode(ee,le||be?"LogicalExpression":"BinaryExpression"),Ne=this.state.type;if(be&&(Ne===41||Ne===42)||le&&Ne===40)throw this.raise(m.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(we,u,b)}}return g}parseExprOpRightExpr(g,u){const b=this.state.startLoc;switch(g){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(u))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(m.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(g,u),b)});default:return this.parseExprOpBaseRightExpr(g,u)}}parseExprOpBaseRightExpr(g,u){const b=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),b,ne(g)?u-1:u)}parseHackPipeBody(){var g;const{startLoc:u}=this.state,b=this.parseMaybeAssign();return f.has(b.type)&&!((g=b.extra)!=null&&g.parenthesized)&&this.raise(m.PipeUnparenthesizedBody,u,{type:b.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(m.PipeTopicUnused,u),b}checkExponentialAfterUnary(g){this.match(57)&&this.raise(m.UnexpectedTokenUnaryExponentiation,g.argument)}parseMaybeUnary(g,u){const b=this.state.startLoc,w=this.isContextual(96);if(w&&this.recordAwaitIfAllowed()){this.next();const be=this.parseAwait(b);return u||this.checkExponentialAfterUnary(be),be}const B=this.match(34),ee=this.startNode();if(Oe(this.state.type)){ee.operator=this.state.value,ee.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const be=this.match(89);if(this.next(),ee.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(g,!0),this.state.strict&&be){const we=ee.argument;we.type==="Identifier"?this.raise(m.StrictDelete,ee):this.hasPropertyAsPrivateName(we)&&this.raise(m.DeletePrivateField,ee)}if(!B)return u||this.checkExponentialAfterUnary(ee),this.finishNode(ee,"UnaryExpression")}const le=this.parseUpdate(ee,B,g);if(w){const{type:be}=this.state;if((this.hasPlugin("v8intrinsic")?He(be):He(be)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(m.AwaitNotInAsyncContext,b),this.parseAwait(b)}return le}parseUpdate(g,u,b){if(u){const ee=g;return this.checkLVal(ee.argument,this.finishNode(ee,"UpdateExpression")),g}const w=this.state.startLoc;let B=this.parseExprSubscripts(b);if(this.checkExpressionErrors(b,!1))return B;for(;ke(this.state.type)&&!this.canInsertSemicolon();){const ee=this.startNodeAt(w);ee.operator=this.state.value,ee.prefix=!1,ee.argument=B,this.next(),this.checkLVal(B,B=this.finishNode(ee,"UpdateExpression"))}return B}parseExprSubscripts(g){const u=this.state.startLoc,b=this.state.potentialArrowAt,w=this.parseExprAtom(g);return this.shouldExitDescending(w,b)?w:this.parseSubscripts(w,u)}parseSubscripts(g,u,b){const w={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(g),stop:!1};do g=this.parseSubscript(g,u,b,w),w.maybeAsyncArrow=!1;while(!w.stop);return g}parseSubscript(g,u,b,w){const{type:B}=this.state;if(!b&&B===15)return this.parseBind(g,u,b,w);if(me(B))return this.parseTaggedTemplateExpression(g,u,w);let ee=!1;if(B===18){if(b&&(this.raise(m.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(g,w);w.optionalChainMember=ee=!0,this.next()}if(!b&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(g,u,w,ee);{const le=this.eat(0);return le||ee||this.eat(16)?this.parseMember(g,u,w,le,ee):this.stopParseSubscript(g,w)}}stopParseSubscript(g,u){return u.stop=!0,g}parseMember(g,u,b,w,B){const ee=this.startNodeAt(u);return ee.object=g,ee.computed=w,w?(ee.property=this.parseExpression(),this.expect(3)):this.match(139)?(g.type==="Super"&&this.raise(m.SuperPrivateField,u),this.classScope.usePrivateName(this.state.value,this.state.startLoc),ee.property=this.parsePrivateName()):ee.property=this.parseIdentifier(!0),b.optionalChainMember?(ee.optional=B,this.finishNode(ee,"OptionalMemberExpression")):this.finishNode(ee,"MemberExpression")}parseBind(g,u,b,w){const B=this.startNodeAt(u);return B.object=g,this.next(),B.callee=this.parseNoCallExpr(),w.stop=!0,this.parseSubscripts(this.finishNode(B,"BindExpression"),u,b)}parseCoverCallAndAsyncArrowHead(g,u,b,w){const B=this.state.maybeInArrowParameters;let ee=null;this.state.maybeInArrowParameters=!0,this.next();const le=this.startNodeAt(u);le.callee=g;const{maybeAsyncArrow:be,optionalChainMember:we}=b;be&&(this.expressionScope.enter(eo()),ee=new mi),we&&(le.optional=w),w?le.arguments=this.parseCallExpressionArguments():le.arguments=this.parseCallExpressionArguments(g.type!=="Super",le,ee);let Ne=this.finishCallExpression(le,we);return be&&this.shouldParseAsyncArrow()&&!w?(b.stop=!0,this.checkDestructuringPrivate(ee),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),Ne=this.parseAsyncArrowFromCallExpression(this.startNodeAt(u),Ne)):(be&&(this.checkExpressionErrors(ee,!0),this.expressionScope.exit()),this.toReferencedArguments(Ne)),this.state.maybeInArrowParameters=B,Ne}toReferencedArguments(g,u){this.toReferencedListDeep(g.arguments,u)}parseTaggedTemplateExpression(g,u,b){const w=this.startNodeAt(u);return w.tag=g,w.quasi=this.parseTemplate(!0),b.optionalChainMember&&this.raise(m.OptionalChainingNoTemplate,u),this.finishNode(w,"TaggedTemplateExpression")}atPossibleAsyncArrow(g){return g.type==="Identifier"&&g.name==="async"&&this.state.lastTokEndLoc.index===g.end&&!this.canInsertSemicolon()&&g.end-g.start===5&&this.offsetToSourcePos(g.start)===this.state.potentialArrowAt}finishCallExpression(g,u){if(g.callee.type==="Import")if(g.arguments.length===0||g.arguments.length>2)this.raise(m.ImportCallArity,g);else for(const b of g.arguments)b.type==="SpreadElement"&&this.raise(m.ImportCallSpreadArgument,b);return this.finishNode(g,u?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(g,u,b){const w=[];let B=!0;const ee=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(B)B=!1;else if(this.expect(12),this.match(11)){u&&this.addTrailingCommaExtraToNode(u),this.next();break}w.push(this.parseExprListItem(11,!1,b,g))}return this.state.inFSharpPipelineDirectBody=ee,w}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(g,u){var b;return this.resetPreviousNodeTrailingComments(u),this.expect(19),this.parseArrowExpression(g,u.arguments,!0,(b=u.extra)==null?void 0:b.trailingCommaLoc),u.innerComments&&Xn(g,u.innerComments),u.callee.trailingComments&&Xn(g,u.callee.trailingComments),g}parseNoCallExpr(){const g=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),g,!0)}parseExprAtom(g){let u,b=null;const{type:w}=this.state;switch(w){case 79:return this.parseSuper();case 83:return u=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(u):this.match(10)?this.optionFlags&512?this.parseImportCall(u):this.finishNode(u,"Import"):(this.raise(m.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(u,"Import"));case 78:return u=this.startNode(),this.next(),this.finishNode(u,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const B=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(B)}case 0:return this.parseArrayLike(3,!1,g);case 5:return this.parseObjectLike(8,!1,!1,g);case 68:return this.parseFunctionOrFunctionSent();case 26:b=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(b,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{u=this.startNode(),this.next(),u.object=null;const B=u.callee=this.parseNoCallExpr();if(B.type==="MemberExpression")return this.finishNode(u,"BindExpression");throw this.raise(m.UnsupportedBind,B)}case 139:return this.raise(m.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const B=this.getPluginOption("pipelineOperator","proposal");if(B)return this.parseTopicReference(B);throw this.unexpected()}case 47:{const B=this.input.codePointAt(this.nextTokenStart());throw Le(B)||B===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(w===137)return this.parseDecimalLiteral(this.state.value);if(w===2||w===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(w===6||w===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(Se(w)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();const B=this.state.potentialArrowAt===this.state.start,ee=this.state.containsEsc,le=this.parseIdentifier();if(!ee&&le.name==="async"&&!this.canInsertSemicolon()){const{type:be}=this.state;if(be===68)return this.resetPreviousNodeTrailingComments(le),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(le));if(Se(be))return B&&this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(le)):le;if(be===90)return this.resetPreviousNodeTrailingComments(le),this.parseDo(this.startNodeAtNode(le),!0)}return B&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(le),[le],!1)):le}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(g,u){const b=this.getPluginOption("pipelineOperator","proposal");if(b)return this.state.type=g,this.state.value=u,this.state.pos--,this.state.end--,this.state.endLoc=n(this.state.endLoc,-1),this.parseTopicReference(b);throw this.unexpected()}parseTopicReference(g){const u=this.startNode(),b=this.state.startLoc,w=this.state.type;return this.next(),this.finishTopicReference(u,b,g,w)}finishTopicReference(g,u,b,w){if(this.testTopicReferenceConfiguration(b,u,w))return b==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(m.PipeTopicUnbound,u),this.registerTopicReference(),this.finishNode(g,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(m.PrimaryTopicNotAllowed,u),this.registerTopicReference(),this.finishNode(g,"PipelinePrimaryTopicReference"));throw this.raise(m.PipeTopicUnconfiguredToken,u,{token:_e(w)})}testTopicReferenceConfiguration(g,u,b){switch(g){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:_e(b)}]);case"smart":return b===27;default:throw this.raise(m.PipeTopicRequiresHackPipes,u)}}parseAsyncArrowUnaryFunction(g){this.prodParam.enter(pi(!0,this.prodParam.hasYield));const u=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(m.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(g,u,!0)}parseDo(g,u){this.expectPlugin("doExpressions"),u&&this.expectPlugin("asyncDoExpressions"),g.async=u,this.next();const b=this.state.labels;return this.state.labels=[],u?(this.prodParam.enter(2),g.body=this.parseBlock(),this.prodParam.exit()):g.body=this.parseBlock(),this.state.labels=b,this.finishNode(g,"DoExpression")}parseSuper(){const g=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(m.SuperNotAllowed,g):this.scope.allowSuper||this.optionFlags&16||this.raise(m.UnexpectedSuper,g),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(m.UnsupportedSuper,g),this.finishNode(g,"Super")}parsePrivateName(){const g=this.startNode(),u=this.startNodeAt(n(this.state.startLoc,1)),b=this.state.value;return this.next(),g.id=this.createIdentifier(u,b),this.finishNode(g,"PrivateName")}parseFunctionOrFunctionSent(){const g=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const u=this.createIdentifier(this.startNodeAtNode(g),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(g,u,"sent")}return this.parseFunction(g)}parseMetaProperty(g,u,b){g.meta=u;const w=this.state.containsEsc;return g.property=this.parseIdentifier(!0),(g.property.name!==b||w)&&this.raise(m.UnsupportedMetaProperty,g.property,{target:u.name,onlyValidPropertyName:b}),this.finishNode(g,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(g){if(this.next(),this.isContextual(105)||this.isContextual(97)){const u=this.isContextual(105);return this.expectPlugin(u?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),g.phase=u?"source":"defer",this.parseImportCall(g)}else{const u=this.createIdentifierAt(this.startNodeAtNode(g),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(m.ImportMetaOutsideModule,u),this.sawUnambiguousESM=!0),this.parseMetaProperty(g,u,"meta")}}parseLiteralAtNode(g,u,b){return this.addExtra(b,"rawValue",g),this.addExtra(b,"raw",this.input.slice(this.offsetToSourcePos(b.start),this.state.end)),b.value=g,this.next(),this.finishNode(b,u)}parseLiteral(g,u){const b=this.startNode();return this.parseLiteralAtNode(g,u,b)}parseStringLiteral(g){return this.parseLiteral(g,"StringLiteral")}parseNumericLiteral(g){return this.parseLiteral(g,"NumericLiteral")}parseBigIntLiteral(g){return this.parseLiteral(g,"BigIntLiteral")}parseDecimalLiteral(g){return this.parseLiteral(g,"DecimalLiteral")}parseRegExpLiteral(g){const u=this.startNode();return this.addExtra(u,"raw",this.input.slice(this.offsetToSourcePos(u.start),this.state.end)),u.pattern=g.pattern,u.flags=g.flags,this.next(),this.finishNode(u,"RegExpLiteral")}parseBooleanLiteral(g){const u=this.startNode();return u.value=g,this.next(),this.finishNode(u,"BooleanLiteral")}parseNullLiteral(){const g=this.startNode();return this.next(),this.finishNode(g,"NullLiteral")}parseParenAndDistinguishExpression(g){const u=this.state.startLoc;let b;this.next(),this.expressionScope.enter(Zs());const w=this.state.maybeInArrowParameters,B=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const ee=this.state.startLoc,le=[],be=new mi;let we=!0,Ne,Ve;for(;!this.match(11);){if(we)we=!1;else if(this.expect(12,be.optionalParametersLoc===null?null:be.optionalParametersLoc),this.match(11)){Ve=this.state.startLoc;break}if(this.match(21)){const ct=this.state.startLoc;if(Ne=this.state.startLoc,le.push(this.parseParenItem(this.parseRestBinding(),ct)),!this.checkCommaAfterRest(41))break}else le.push(this.parseMaybeAssignAllowInOrVoidPattern(11,be,this.parseParenItem))}const Qe=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=w,this.state.inFSharpPipelineDirectBody=B;let tt=this.startNodeAt(u);return g&&this.shouldParseArrow(le)&&(tt=this.parseArrow(tt))?(this.checkDestructuringPrivate(be),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(tt,le,!1),tt):(this.expressionScope.exit(),le.length||this.unexpected(this.state.lastTokStartLoc),Ve&&this.unexpected(Ve),Ne&&this.unexpected(Ne),this.checkExpressionErrors(be,!0),this.toReferencedListDeep(le,!0),le.length>1?(b=this.startNodeAt(ee),b.expressions=le,this.finishNode(b,"SequenceExpression"),this.resetEndLocation(b,Qe)):b=le[0],this.wrapParenthesis(u,b))}wrapParenthesis(g,u){if(!(this.optionFlags&1024))return this.addExtra(u,"parenthesized",!0),this.addExtra(u,"parenStart",g.index),this.takeSurroundingComments(u,g.index,this.state.lastTokEndLoc.index),u;const b=this.startNodeAt(g);return b.expression=u,this.finishNode(b,"ParenthesizedExpression")}shouldParseArrow(g){return!this.canInsertSemicolon()}parseArrow(g){if(this.eat(19))return g}parseParenItem(g,u){return g}parseNewOrNewTarget(){const g=this.startNode();if(this.next(),this.match(16)){const u=this.createIdentifier(this.startNodeAtNode(g),"new");this.next();const b=this.parseMetaProperty(g,u,"target");return this.scope.allowNewTarget||this.raise(m.UnexpectedNewTarget,b),b}return this.parseNew(g)}parseNew(g){if(this.parseNewCallee(g),this.eat(10)){const u=this.parseExprList(11);this.toReferencedList(u),g.arguments=u}else g.arguments=[];return this.finishNode(g,"NewExpression")}parseNewCallee(g){const u=this.match(83),b=this.parseNoCallExpr();g.callee=b,u&&(b.type==="Import"||b.type==="ImportExpression")&&this.raise(m.ImportCallNotNewExpression,b)}parseTemplateElement(g){const{start:u,startLoc:b,end:w,value:B}=this.state,ee=u+1,le=this.startNodeAt(n(b,1));B===null&&(g||this.raise(m.InvalidEscapeSequenceTemplate,n(this.state.firstInvalidTemplateEscapePos,1)));const be=this.match(24),we=be?-1:-2,Ne=w+we;le.value={raw:this.input.slice(ee,Ne).replace(/\r\n?/g,`
`),cooked:B===null?null:B.slice(1,we)},le.tail=be,this.next();const Ve=this.finishNode(le,"TemplateElement");return this.resetEndLocation(Ve,n(this.state.lastTokEndLoc,we)),Ve}parseTemplate(g){const u=this.startNode();let b=this.parseTemplateElement(g);const w=[b],B=[];for(;!b.tail;)B.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),w.push(b=this.parseTemplateElement(g));return u.expressions=B,u.quasis=w,this.finishNode(u,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(g,u,b,w){b&&this.expectPlugin("recordAndTuple");const B=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let ee=!1,le=!0;const be=this.startNode();for(be.properties=[],this.next();!this.match(g);){if(le)le=!1;else if(this.expect(12),this.match(g)){this.addTrailingCommaExtraToNode(be);break}let Ne;u?Ne=this.parseBindingProperty():(Ne=this.parsePropertyDefinition(w),ee=this.checkProto(Ne,b,ee,w)),b&&!this.isObjectProperty(Ne)&&Ne.type!=="SpreadElement"&&this.raise(m.InvalidRecordProperty,Ne),Ne.shorthand&&this.addExtra(Ne,"shorthand",!0),be.properties.push(Ne)}this.next(),this.state.inFSharpPipelineDirectBody=B;let we="ObjectExpression";return u?we="ObjectPattern":b&&(we="RecordExpression"),this.finishNode(be,we)}addTrailingCommaExtraToNode(g){this.addExtra(g,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(g,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(g){return!g.computed&&g.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(g){let u=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(m.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)u.push(this.parseDecorator());const b=this.startNode();let w=!1,B=!1,ee;if(this.match(21))return u.length&&this.unexpected(),this.parseSpread();u.length&&(b.decorators=u,u=[]),b.method=!1,g&&(ee=this.state.startLoc);let le=this.eat(55);this.parsePropertyNamePrefixOperator(b);const be=this.state.containsEsc;if(this.parsePropertyName(b,g),!le&&!be&&this.maybeAsyncOrAccessorProp(b)){const{key:we}=b,Ne=we.name;Ne==="async"&&!this.hasPrecedingLineBreak()&&(w=!0,this.resetPreviousNodeTrailingComments(we),le=this.eat(55),this.parsePropertyName(b)),(Ne==="get"||Ne==="set")&&(B=!0,this.resetPreviousNodeTrailingComments(we),b.kind=Ne,this.match(55)&&(le=!0,this.raise(m.AccessorIsGenerator,this.state.curPosition(),{kind:Ne}),this.next()),this.parsePropertyName(b))}return this.parseObjPropValue(b,ee,le,w,!1,B,g)}getGetterSetterExpectedParamCount(g){return g.kind==="get"?0:1}getObjectOrClassMethodParams(g){return g.params}checkGetterSetterParams(g){var u;const b=this.getGetterSetterExpectedParamCount(g),w=this.getObjectOrClassMethodParams(g);w.length!==b&&this.raise(g.kind==="get"?m.BadGetterArity:m.BadSetterArity,g),g.kind==="set"&&((u=w[w.length-1])==null?void 0:u.type)==="RestElement"&&this.raise(m.BadSetterRestParameter,g)}parseObjectMethod(g,u,b,w,B){if(B){const ee=this.parseMethod(g,u,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(ee),ee}if(b||u||this.match(10))return w&&this.unexpected(),g.kind="method",g.method=!0,this.parseMethod(g,u,b,!1,!1,"ObjectMethod")}parseObjectProperty(g,u,b,w){if(g.shorthand=!1,this.eat(14))return g.value=b?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,w),this.finishObjectProperty(g);if(!g.computed&&g.key.type==="Identifier"){if(this.checkReservedWord(g.key.name,g.key.loc.start,!0,!1),b)g.value=this.parseMaybeDefault(u,this.cloneIdentifier(g.key));else if(this.match(29)){const B=this.state.startLoc;w!=null?w.shorthandAssignLoc===null&&(w.shorthandAssignLoc=B):this.raise(m.InvalidCoverInitializedName,B),g.value=this.parseMaybeDefault(u,this.cloneIdentifier(g.key))}else g.value=this.cloneIdentifier(g.key);return g.shorthand=!0,this.finishObjectProperty(g)}}finishObjectProperty(g){return this.finishNode(g,"ObjectProperty")}parseObjPropValue(g,u,b,w,B,ee,le){const be=this.parseObjectMethod(g,b,w,B,ee)||this.parseObjectProperty(g,u,B,le);return be||this.unexpected(),be}parsePropertyName(g,u){if(this.eat(0))g.computed=!0,g.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:b,value:w}=this.state;let B;if(xe(b))B=this.parseIdentifier(!0);else switch(b){case 135:B=this.parseNumericLiteral(w);break;case 134:B=this.parseStringLiteral(w);break;case 136:B=this.parseBigIntLiteral(w);break;case 139:{const ee=this.state.startLoc;u!=null?u.privateKeyLoc===null&&(u.privateKeyLoc=ee):this.raise(m.UnexpectedPrivateField,ee),B=this.parsePrivateName();break}default:if(b===137){B=this.parseDecimalLiteral(w);break}this.unexpected()}g.key=B,b!==139&&(g.computed=!1)}}initFunction(g,u){g.id=null,g.generator=!1,g.async=u}parseMethod(g,u,b,w,B,ee,le=!1){this.initFunction(g,b),g.generator=u,this.scope.enter(530|(le?576:0)|(B?32:0)),this.prodParam.enter(pi(b,g.generator)),this.parseFunctionParams(g,w);const be=this.parseFunctionBodyAndFinish(g,ee,!0);return this.prodParam.exit(),this.scope.exit(),be}parseArrayLike(g,u,b){u&&this.expectPlugin("recordAndTuple");const w=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const B=this.startNode();return this.next(),B.elements=this.parseExprList(g,!u,b,B),this.state.inFSharpPipelineDirectBody=w,this.finishNode(B,u?"TupleExpression":"ArrayExpression")}parseArrowExpression(g,u,b,w){this.scope.enter(518);let B=pi(b,!1);!this.match(5)&&this.prodParam.hasIn&&(B|=8),this.prodParam.enter(B),this.initFunction(g,b);const ee=this.state.maybeInArrowParameters;return u&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(g,u,w)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(g,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=ee,this.finishNode(g,"ArrowFunctionExpression")}setArrowFunctionParameters(g,u,b){this.toAssignableList(u,b,!1),g.params=u}parseFunctionBodyAndFinish(g,u,b=!1){return this.parseFunctionBody(g,!1,b),this.finishNode(g,u)}parseFunctionBody(g,u,b=!1){const w=u&&!this.match(5);if(this.expressionScope.enter(Pa()),w)g.body=this.parseMaybeAssign(),this.checkParams(g,!1,u,!1);else{const B=this.state.strict,ee=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),g.body=this.parseBlock(!0,!1,le=>{const be=!this.isSimpleParamList(g.params);le&&be&&this.raise(m.IllegalLanguageModeDirective,(g.kind==="method"||g.kind==="constructor")&&g.key?g.key.loc.end:g);const we=!B&&this.state.strict;this.checkParams(g,!this.state.strict&&!u&&!b&&!be,u,we),this.state.strict&&g.id&&this.checkIdentifier(g.id,65,we)}),this.prodParam.exit(),this.state.labels=ee}this.expressionScope.exit()}isSimpleParameter(g){return g.type==="Identifier"}isSimpleParamList(g){for(let u=0,b=g.length;u<b;u++)if(!this.isSimpleParameter(g[u]))return!1;return!0}checkParams(g,u,b,w=!0){const B=!u&&new Set,ee={type:"FormalParameters"};for(const le of g.params)this.checkLVal(le,ee,5,B,w)}parseExprList(g,u,b,w){const B=[];let ee=!0;for(;!this.eat(g);){if(ee)ee=!1;else if(this.expect(12),this.match(g)){w&&this.addTrailingCommaExtraToNode(w),this.next();break}B.push(this.parseExprListItem(g,u,b))}return B}parseExprListItem(g,u,b,w){let B;if(this.match(12))u||this.raise(m.UnexpectedToken,this.state.curPosition(),{unexpected:","}),B=null;else if(this.match(21)){const ee=this.state.startLoc;B=this.parseParenItem(this.parseSpread(b),ee)}else if(this.match(17)){this.expectPlugin("partialApplication"),w||this.raise(m.UnexpectedArgumentPlaceholder,this.state.startLoc);const ee=this.startNode();this.next(),B=this.finishNode(ee,"ArgumentPlaceholder")}else B=this.parseMaybeAssignAllowInOrVoidPattern(g,b,this.parseParenItem);return B}parseIdentifier(g){const u=this.startNode(),b=this.parseIdentifierName(g);return this.createIdentifier(u,b)}createIdentifier(g,u){return g.name=u,g.loc.identifierName=u,this.finishNode(g,"Identifier")}createIdentifierAt(g,u,b){return g.name=u,g.loc.identifierName=u,this.finishNodeAt(g,"Identifier",b)}parseIdentifierName(g){let u;const{startLoc:b,type:w}=this.state;xe(w)?u=this.state.value:this.unexpected();const B=Ce(w);return g?B&&this.replaceToken(132):this.checkReservedWord(u,b,B,!1),this.next(),u}checkReservedWord(g,u,b,w){if(g.length>10||!hr(g))return;if(b&&Tt(g)){this.raise(m.UnexpectedKeyword,u,{keyword:g});return}if((this.state.strict?w?mt:it:Xe)(g,this.inModule)){this.raise(m.UnexpectedReservedWord,u,{reservedWord:g});return}else if(g==="yield"){if(this.prodParam.hasYield){this.raise(m.YieldBindingIdentifier,u);return}}else if(g==="await"){if(this.prodParam.hasAwait){this.raise(m.AwaitBindingIdentifier,u);return}if(this.scope.inStaticBlock){this.raise(m.AwaitBindingIdentifierInStaticBlock,u);return}this.expressionScope.recordAsyncArrowParametersError(u)}else if(g==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(m.ArgumentsInClass,u);return}}recordAwaitIfAllowed(){const g=this.prodParam.hasAwait;return g&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),g}parseAwait(g){const u=this.startNodeAt(g);return this.expressionScope.recordParameterInitializerError(m.AwaitExpressionFormalParameter,u),this.eat(55)&&this.raise(m.ObsoleteAwaitStar,u),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(u.argument=this.parseMaybeUnary(null,!0)),this.finishNode(u,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;const{type:g}=this.state;return g===53||g===10||g===0||me(g)||g===102&&!this.state.containsEsc||g===138||g===56||this.hasPlugin("v8intrinsic")&&g===54}parseYield(g){const u=this.startNodeAt(g);this.expressionScope.recordParameterInitializerError(m.YieldInParameter,u);let b=!1,w=null;if(!this.hasPrecedingLineBreak())switch(b=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!b)break;default:w=this.parseMaybeAssign()}return u.delegate=b,u.argument=w,this.finishNode(u,"YieldExpression")}parseImportCall(g){if(this.next(),g.source=this.parseMaybeAssignAllowIn(),g.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(g.source);else if(g.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(g.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(m.ImportCallArity,g)}}return this.expect(11),this.finishNode(g,"ImportExpression")}checkPipelineAtInfixOperator(g,u){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&g.type==="SequenceExpression"&&this.raise(m.PipelineHeadSequenceExpression,u)}parseSmartPipelineBodyInStyle(g,u){if(this.isSimpleReference(g)){const b=this.startNodeAt(u);return b.callee=g,this.finishNode(b,"PipelineBareFunction")}else{const b=this.startNodeAt(u);return this.checkSmartPipeTopicBodyEarlyErrors(u),b.expression=g,this.finishNode(b,"PipelineTopicExpression")}}isSimpleReference(g){switch(g.type){case"MemberExpression":return!g.computed&&this.isSimpleReference(g.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(g){if(this.match(19))throw this.raise(m.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(m.PipelineTopicUnused,g)}withTopicBindingContext(g){const u=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return g()}finally{this.state.topicContext=u}}withSmartMixTopicForbiddingContext(g){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const u=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return g()}finally{this.state.topicContext=u}}else return g()}withSoloAwaitPermittingContext(g){const u=this.state.soloAwait;this.state.soloAwait=!0;try{return g()}finally{this.state.soloAwait=u}}allowInAnd(g){const u=this.prodParam.currentFlags();if(8&~u){this.prodParam.enter(u|8);try{return g()}finally{this.prodParam.exit()}}return g()}disallowInAnd(g){const u=this.prodParam.currentFlags();if(8&u){this.prodParam.enter(u&-9);try{return g()}finally{this.prodParam.exit()}}return g()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(g){const u=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const b=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const w=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),u,g);return this.state.inFSharpPipelineDirectBody=b,w}parseModuleExpression(){this.expectPlugin("moduleBlocks");const g=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const u=this.startNodeAt(this.state.endLoc);this.next();const b=this.initializeScopes(!0);this.enterInitialScopes();try{g.body=this.parseProgram(u,8,"module")}finally{b()}return this.finishNode(g,"ModuleExpression")}parseVoidPattern(g){this.expectPlugin("discardBinding");const u=this.startNode();return g!=null&&(g.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(u,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(g,u,b){if(u!=null&&this.match(88)){const w=this.lookaheadCharCode();if(w===44||w===(g===3?93:g===8?125:41)||w===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(u))}return this.parseMaybeAssignAllowIn(u,b)}parsePropertyNamePrefixOperator(g){}}const Vi={kind:1},go={kind:2},vo=/[\uD800-\uDFFF]/u,Ki=/in(?:stanceof)?/y;function bo(G,g,u){for(let b=0;b<G.length;b++){const w=G[b],{type:B}=w;if(typeof B=="number"){if(B===139){const{loc:ee,start:le,value:be,end:we}=w,Ne=le+1,Ve=n(ee.start,1);G.splice(b,1,new Qr({type:Ie(27),value:"#",start:le,end:Ne,startLoc:ee.start,endLoc:Ve}),new Qr({type:Ie(132),value:be,start:Ne,end:we,startLoc:Ve,endLoc:ee.end})),b++;continue}if(me(B)){const{loc:ee,start:le,value:be,end:we}=w,Ne=le+1,Ve=n(ee.start,1);let Qe;g.charCodeAt(le-u)===96?Qe=new Qr({type:Ie(22),value:"`",start:le,end:Ne,startLoc:ee.start,endLoc:Ve}):Qe=new Qr({type:Ie(8),value:"}",start:le,end:Ne,startLoc:ee.start,endLoc:Ve});let tt,ct,Ct,Rt;B===24?(ct=we-1,Ct=n(ee.end,-1),tt=be===null?null:be.slice(1,-1),Rt=new Qr({type:Ie(22),value:"`",start:ct,end:we,startLoc:Ct,endLoc:ee.end})):(ct=we-2,Ct=n(ee.end,-2),tt=be===null?null:be.slice(1,-2),Rt=new Qr({type:Ie(23),value:"${",start:ct,end:we,startLoc:Ct,endLoc:ee.end})),G.splice(b,1,Qe,new Qr({type:Ie(20),value:tt,start:Ne,end:ct,startLoc:Ve,endLoc:Ct}),Rt),b+=2;continue}w.type=Ie(B)}}return G}class xo extends yo{parseTopLevel(g,u){return g.program=this.parseProgram(u,140,this.options.sourceType==="module"?"module":"script"),g.comments=this.comments,this.optionFlags&256&&(g.tokens=bo(this.tokens,this.input,this.startIndex)),this.finishNode(g,"File")}parseProgram(g,u,b){if(g.sourceType=b,g.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(g,!0,!0,u),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(const[B,ee]of Array.from(this.scope.undefinedExports))this.raise(m.ModuleExportUndefined,ee,{localName:B});this.addExtra(g,"topLevelAwait",this.state.hasTopLevelAwait)}let w;return u===140?w=this.finishNode(g,"Program"):w=this.finishNodeAt(g,"Program",n(this.state.startLoc,-1)),w}stmtToDirective(g){const u=this.castNodeTo(g,"Directive"),b=this.castNodeTo(g.expression,"DirectiveLiteral"),w=b.value,B=this.input.slice(this.offsetToSourcePos(b.start),this.offsetToSourcePos(b.end)),ee=b.value=B.slice(1,-1);return this.addExtra(b,"raw",B),this.addExtra(b,"rawValue",ee),this.addExtra(b,"expressionValue",w),u.value=b,delete g.expression,u}parseInterpreterDirective(){if(!this.match(28))return null;const g=this.startNode();return g.value=this.state.value,this.next(),this.finishNode(g,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;const g=this.nextTokenInLineStart(),u=this.codePointAtPos(g);if(this.isUnparsedContextual(g,"of")){const b=this.lookaheadCharCodeSince(g+2);if(b!==61&&b!==58&&b!==59)return!1}return!!(this.chStartsBindingIdentifier(u,g)||this.isUnparsedContextual(g,"void"))}nextTokenIsIdentifierOnSameLine(){const g=this.nextTokenInLineStart(),u=this.codePointAtPos(g);return this.chStartsBindingIdentifier(u,g)}isAwaitUsing(){if(!this.isContextual(96))return!1;let g=this.nextTokenInLineStart();if(this.isUnparsedContextual(g,"using")){g=this.nextTokenInLineStartSince(g+5);const u=this.codePointAtPos(g);if(this.chStartsBindingIdentifier(u,g))return!0}return!1}chStartsBindingIdentifier(g,u){if(Le(g)){if(Ki.lastIndex=u,Ki.test(this.input)){const b=this.codePointAtPos(Ki.lastIndex);if(!qe(b)&&b!==92)return!1}return!0}else return g===92}chStartsBindingPattern(g){return g===91||g===123}hasFollowingBindingAtom(){const g=this.nextTokenStart(),u=this.codePointAtPos(g);return this.chStartsBindingPattern(u)||this.chStartsBindingIdentifier(u,g)}hasInLineFollowingBindingIdentifierOrBrace(){const g=this.nextTokenInLineStart(),u=this.codePointAtPos(g);return u===123||this.chStartsBindingIdentifier(u,g)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(g=!1){let u=0;return this.options.annexB&&!this.state.strict&&(u|=4,g&&(u|=8)),this.parseStatementLike(u)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(g){let u=null;return this.match(26)&&(u=this.parseDecorators(!0)),this.parseStatementContent(g,u)}parseStatementContent(g,u){const b=this.state.type,w=this.startNode(),B=!!(g&2),ee=!!(g&4),le=g&1;switch(b){case 60:return this.parseBreakContinueStatement(w,!0);case 63:return this.parseBreakContinueStatement(w,!1);case 64:return this.parseDebuggerStatement(w);case 90:return this.parseDoWhileStatement(w);case 91:return this.parseForStatement(w);case 68:if(this.lookaheadCharCode()===46)break;return ee||this.raise(this.state.strict?m.StrictFunction:this.options.annexB?m.SloppyFunctionAnnexB:m.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(w,!1,!B&&ee);case 80:return B||this.unexpected(),this.parseClass(this.maybeTakeDecorators(u,w),!0);case 69:return this.parseIfStatement(w);case 70:return this.parseReturnStatement(w);case 71:return this.parseSwitchStatement(w);case 72:return this.parseThrowStatement(w);case 73:return this.parseTryStatement(w);case 96:if(this.isAwaitUsing())return this.allowsUsing()?B?this.recordAwaitIfAllowed()||this.raise(m.AwaitUsingNotInAsyncContext,w):this.raise(m.UnexpectedLexicalDeclaration,w):this.raise(m.UnexpectedUsingDeclaration,w),this.next(),this.parseVarStatement(w,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?B||this.raise(m.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(m.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(w,"using");case 100:{if(this.state.containsEsc)break;const Ne=this.nextTokenStart(),Ve=this.codePointAtPos(Ne);if(Ve!==91&&(!B&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(Ve,Ne)&&Ve!==123))break}case 75:B||this.raise(m.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const Ne=this.state.value;return this.parseVarStatement(w,Ne)}case 92:return this.parseWhileStatement(w);case 76:return this.parseWithStatement(w);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(w);case 83:{const Ne=this.lookaheadCharCode();if(Ne===40||Ne===46)break}case 82:{!(this.optionFlags&8)&&!le&&this.raise(m.UnexpectedImportExport,this.state.startLoc),this.next();let Ne;return b===83?Ne=this.parseImport(w):Ne=this.parseExport(w,u),this.assertModuleNodeAllowed(Ne),Ne}default:if(this.isAsyncFunction())return B||this.raise(m.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(w,!0,!B&&ee)}const be=this.state.value,we=this.parseExpression();return Se(b)&&we.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(w,be,we,g):this.parseExpressionStatement(w,we,u)}assertModuleNodeAllowed(g){!(this.optionFlags&8)&&!this.inModule&&this.raise(m.ImportOutsideModule,g)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(g,u,b){if(g){var w;(w=u.decorators)!=null&&w.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(m.DecoratorsBeforeAfterExport,u.decorators[0]),u.decorators.unshift(...g)):u.decorators=g,this.resetStartLocationFromNode(u,g[0]),b&&this.resetStartLocationFromNode(b,u)}return u}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(g){const u=[];do u.push(this.parseDecorator());while(this.match(26));if(this.match(82))g||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(m.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(m.UnexpectedLeadingDecorator,this.state.startLoc);return u}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const g=this.startNode();if(this.next(),this.hasPlugin("decorators")){const u=this.state.startLoc;let b;if(this.match(10)){const w=this.state.startLoc;this.next(),b=this.parseExpression(),this.expect(11),b=this.wrapParenthesis(w,b);const B=this.state.startLoc;g.expression=this.parseMaybeDecoratorArguments(b,w),this.getPluginOption("decorators","allowCallParenthesized")===!1&&g.expression!==b&&this.raise(m.DecoratorArgumentsOutsideParentheses,B)}else{for(b=this.parseIdentifier(!1);this.eat(16);){const w=this.startNodeAt(u);w.object=b,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),w.property=this.parsePrivateName()):w.property=this.parseIdentifier(!0),w.computed=!1,b=this.finishNode(w,"MemberExpression")}g.expression=this.parseMaybeDecoratorArguments(b,u)}}else g.expression=this.parseExprSubscripts();return this.finishNode(g,"Decorator")}parseMaybeDecoratorArguments(g,u){if(this.eat(10)){const b=this.startNodeAt(u);return b.callee=g,b.arguments=this.parseCallExpressionArguments(),this.toReferencedList(b.arguments),this.finishNode(b,"CallExpression")}return g}parseBreakContinueStatement(g,u){return this.next(),this.isLineTerminator()?g.label=null:(g.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(g,u),this.finishNode(g,u?"BreakStatement":"ContinueStatement")}verifyBreakContinue(g,u){let b;for(b=0;b<this.state.labels.length;++b){const w=this.state.labels[b];if((g.label==null||w.name===g.label.name)&&(w.kind!=null&&(u||w.kind===1)||g.label&&u))break}if(b===this.state.labels.length){const w=u?"BreakStatement":"ContinueStatement";this.raise(m.IllegalBreakContinue,g,{type:w})}}parseDebuggerStatement(g){return this.next(),this.semicolon(),this.finishNode(g,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const g=this.parseExpression();return this.expect(11),g}parseDoWhileStatement(g){return this.next(),this.state.labels.push(Vi),g.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),g.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(g,"DoWhileStatement")}parseForStatement(g){this.next(),this.state.labels.push(Vi);let u=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(u=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return u!==null&&this.unexpected(u),this.parseFor(g,null);const b=this.isContextual(100);{const be=this.isAwaitUsing(),we=be||this.isForUsing(),Ne=b&&this.hasFollowingBindingAtom()||we;if(this.match(74)||this.match(75)||Ne){const Ve=this.startNode();let Qe;be?(Qe="await using",this.recordAwaitIfAllowed()||this.raise(m.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):Qe=this.state.value,this.next(),this.parseVar(Ve,!0,Qe);const tt=this.finishNode(Ve,"VariableDeclaration"),ct=this.match(58);return ct&&we&&this.raise(m.ForInUsing,tt),(ct||this.isContextual(102))&&tt.declarations.length===1?this.parseForIn(g,tt,u):(u!==null&&this.unexpected(u),this.parseFor(g,tt))}}const w=this.isContextual(95),B=new mi,ee=this.parseExpression(!0,B),le=this.isContextual(102);if(le&&(b&&this.raise(m.ForOfLet,ee),u===null&&w&&ee.type==="Identifier"&&this.raise(m.ForOfAsync,ee)),le||this.match(58)){this.checkDestructuringPrivate(B),this.toAssignable(ee,!0);const be=le?"ForOfStatement":"ForInStatement";return this.checkLVal(ee,{type:be}),this.parseForIn(g,ee,u)}else this.checkExpressionErrors(B,!0);return u!==null&&this.unexpected(u),this.parseFor(g,ee)}parseFunctionStatement(g,u,b){return this.next(),this.parseFunction(g,1|(b?2:0)|(u?8:0))}parseIfStatement(g){return this.next(),g.test=this.parseHeaderExpression(),g.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),g.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(g,"IfStatement")}parseReturnStatement(g){return this.prodParam.hasReturn||this.raise(m.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?g.argument=null:(g.argument=this.parseExpression(),this.semicolon()),this.finishNode(g,"ReturnStatement")}parseSwitchStatement(g){this.next(),g.discriminant=this.parseHeaderExpression();const u=g.cases=[];this.expect(5),this.state.labels.push(go),this.scope.enter(256);let b;for(let w;!this.match(8);)if(this.match(61)||this.match(65)){const B=this.match(61);b&&this.finishNode(b,"SwitchCase"),u.push(b=this.startNode()),b.consequent=[],this.next(),B?b.test=this.parseExpression():(w&&this.raise(m.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),w=!0,b.test=null),this.expect(14)}else b?b.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),b&&this.finishNode(b,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(g,"SwitchStatement")}parseThrowStatement(g){return this.next(),this.hasPrecedingLineBreak()&&this.raise(m.NewlineAfterThrow,this.state.lastTokEndLoc),g.argument=this.parseExpression(),this.semicolon(),this.finishNode(g,"ThrowStatement")}parseCatchClauseParam(){const g=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&g.type==="Identifier"?8:0),this.checkLVal(g,{type:"CatchClause"},9),g}parseTryStatement(g){if(this.next(),g.block=this.parseBlock(),g.handler=null,this.match(62)){const u=this.startNode();this.next(),this.match(10)?(this.expect(10),u.param=this.parseCatchClauseParam(),this.expect(11)):(u.param=null,this.scope.enter(0)),u.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),g.handler=this.finishNode(u,"CatchClause")}return g.finalizer=this.eat(67)?this.parseBlock():null,!g.handler&&!g.finalizer&&this.raise(m.NoCatchOrFinally,g),this.finishNode(g,"TryStatement")}parseVarStatement(g,u,b=!1){return this.next(),this.parseVar(g,!1,u,b),this.semicolon(),this.finishNode(g,"VariableDeclaration")}parseWhileStatement(g){return this.next(),g.test=this.parseHeaderExpression(),this.state.labels.push(Vi),g.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(g,"WhileStatement")}parseWithStatement(g){return this.state.strict&&this.raise(m.StrictWith,this.state.startLoc),this.next(),g.object=this.parseHeaderExpression(),g.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(g,"WithStatement")}parseEmptyStatement(g){return this.next(),this.finishNode(g,"EmptyStatement")}parseLabeledStatement(g,u,b,w){for(const ee of this.state.labels)ee.name===u&&this.raise(m.LabelRedeclaration,b,{labelName:u});const B=re(this.state.type)?1:this.match(71)?2:null;for(let ee=this.state.labels.length-1;ee>=0;ee--){const le=this.state.labels[ee];if(le.statementStart===g.start)le.statementStart=this.sourceToOffsetPos(this.state.start),le.kind=B;else break}return this.state.labels.push({name:u,kind:B,statementStart:this.sourceToOffsetPos(this.state.start)}),g.body=w&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),g.label=b,this.finishNode(g,"LabeledStatement")}parseExpressionStatement(g,u,b){return g.expression=u,this.semicolon(),this.finishNode(g,"ExpressionStatement")}parseBlock(g=!1,u=!0,b){const w=this.startNode();return g&&this.state.strictErrors.clear(),this.expect(5),u&&this.scope.enter(0),this.parseBlockBody(w,g,!1,8,b),u&&this.scope.exit(),this.finishNode(w,"BlockStatement")}isValidDirective(g){return g.type==="ExpressionStatement"&&g.expression.type==="StringLiteral"&&!g.expression.extra.parenthesized}parseBlockBody(g,u,b,w,B){const ee=g.body=[],le=g.directives=[];this.parseBlockOrModuleBlockBody(ee,u?le:void 0,b,w,B)}parseBlockOrModuleBlockBody(g,u,b,w,B){const ee=this.state.strict;let le=!1,be=!1;for(;!this.match(w);){const we=b?this.parseModuleItem():this.parseStatementListItem();if(u&&!be){if(this.isValidDirective(we)){const Ne=this.stmtToDirective(we);u.push(Ne),!le&&Ne.value.value==="use strict"&&(le=!0,this.setStrict(!0));continue}be=!0,this.state.strictErrors.clear()}g.push(we)}B==null||B.call(this,le),ee||this.setStrict(!1),this.next()}parseFor(g,u){return g.init=u,this.semicolon(!1),g.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),g.update=this.match(11)?null:this.parseExpression(),this.expect(11),g.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(g,"ForStatement")}parseForIn(g,u,b){const w=this.match(58);return this.next(),w?b!==null&&this.unexpected(b):g.await=b!==null,u.type==="VariableDeclaration"&&u.declarations[0].init!=null&&(!w||!this.options.annexB||this.state.strict||u.kind!=="var"||u.declarations[0].id.type!=="Identifier")&&this.raise(m.ForInOfLoopInitializer,u,{type:w?"ForInStatement":"ForOfStatement"}),u.type==="AssignmentPattern"&&this.raise(m.InvalidLhs,u,{ancestor:{type:"ForStatement"}}),g.left=u,g.right=w?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),g.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(g,w?"ForInStatement":"ForOfStatement")}parseVar(g,u,b,w=!1){const B=g.declarations=[];for(g.kind=b;;){const ee=this.startNode();if(this.parseVarId(ee,b),ee.init=this.eat(29)?u?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,ee.init===null&&!w&&(ee.id.type!=="Identifier"&&!(u&&(this.match(58)||this.isContextual(102)))?this.raise(m.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(b==="const"||b==="using"||b==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(m.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:b})),B.push(this.finishNode(ee,"VariableDeclarator")),!this.eat(12))break}return g}parseVarId(g,u){const b=this.parseBindingAtom();u==="using"||u==="await using"?(b.type==="ArrayPattern"||b.type==="ObjectPattern")&&this.raise(m.UsingDeclarationHasBindingPattern,b.loc.start):b.type==="VoidPattern"&&this.raise(m.UnexpectedVoidPattern,b.loc.start),this.checkLVal(b,{type:"VariableDeclarator"},u==="var"?5:8201),g.id=b}parseAsyncFunctionExpression(g){return this.parseFunction(g,8)}parseFunction(g,u=0){const b=u&2,w=!!(u&1),B=w&&!(u&4),ee=!!(u&8);this.initFunction(g,ee),this.match(55)&&(b&&this.raise(m.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),g.generator=!0),w&&(g.id=this.parseFunctionId(B));const le=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(pi(ee,g.generator)),w||(g.id=this.parseFunctionId()),this.parseFunctionParams(g,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(g,w?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),w&&!b&&this.registerFunctionStatementId(g),this.state.maybeInArrowParameters=le,g}parseFunctionId(g){return g||Se(this.state.type)?this.parseIdentifier():null}parseFunctionParams(g,u){this.expect(10),this.expressionScope.enter(Qs()),g.params=this.parseBindingList(11,41,2|(u?4:0)),this.expressionScope.exit()}registerFunctionStatementId(g){g.id&&this.scope.declareName(g.id.name,!this.options.annexB||this.state.strict||g.generator||g.async?this.scope.treatFunctionsAsVar?5:8201:17,g.id.loc.start)}parseClass(g,u,b){this.next();const w=this.state.strict;return this.state.strict=!0,this.parseClassId(g,u,b),this.parseClassSuper(g),g.body=this.parseClassBody(!!g.superClass,w),this.finishNode(g,u?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(g){return g.type==="Identifier"&&g.name==="constructor"||g.type==="StringLiteral"&&g.value==="constructor"}isNonstaticConstructor(g){return!g.computed&&!g.static&&this.nameIsConstructor(g.key)}parseClassBody(g,u){this.classScope.enter();const b={hadConstructor:!1,hadSuperClass:g};let w=[];const B=this.startNode();if(B.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(w.length>0)throw this.raise(m.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){w.push(this.parseDecorator());continue}const ee=this.startNode();w.length&&(ee.decorators=w,this.resetStartLocationFromNode(ee,w[0]),w=[]),this.parseClassMember(B,ee,b),ee.kind==="constructor"&&ee.decorators&&ee.decorators.length>0&&this.raise(m.DecoratorConstructor,ee)}}),this.state.strict=u,this.next(),w.length)throw this.raise(m.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(B,"ClassBody")}parseClassMemberFromModifier(g,u){const b=this.parseIdentifier(!0);if(this.isClassMethod()){const w=u;return w.kind="method",w.computed=!1,w.key=b,w.static=!1,this.pushClassMethod(g,w,!1,!1,!1,!1),!0}else if(this.isClassProperty()){const w=u;return w.computed=!1,w.key=b,w.static=!1,g.body.push(this.parseClassProperty(w)),!0}return this.resetPreviousNodeTrailingComments(b),!1}parseClassMember(g,u,b){const w=this.isContextual(106);if(w){if(this.parseClassMemberFromModifier(g,u))return;if(this.eat(5)){this.parseClassStaticBlock(g,u);return}}this.parseClassMemberWithIsStatic(g,u,b,w)}parseClassMemberWithIsStatic(g,u,b,w){const B=u,ee=u,le=u,be=u,we=u,Ne=B,Ve=B;if(u.static=w,this.parsePropertyNamePrefixOperator(u),this.eat(55)){Ne.kind="method";const bt=this.match(139);if(this.parseClassElementName(Ne),this.parsePostMemberNameModifiers(Ne),bt){this.pushClassPrivateMethod(g,ee,!0,!1);return}this.isNonstaticConstructor(B)&&this.raise(m.ConstructorIsGenerator,B.key),this.pushClassMethod(g,B,!0,!1,!1,!1);return}const Qe=!this.state.containsEsc&&Se(this.state.type),tt=this.parseClassElementName(u),ct=Qe?tt.name:null,Ct=this.isPrivateName(tt),Rt=this.state.startLoc;if(this.parsePostMemberNameModifiers(Ve),this.isClassMethod()){if(Ne.kind="method",Ct){this.pushClassPrivateMethod(g,ee,!1,!1);return}const bt=this.isNonstaticConstructor(B);let jt=!1;bt&&(B.kind="constructor",b.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(m.DuplicateConstructor,tt),bt&&this.hasPlugin("typescript")&&u.override&&this.raise(m.OverrideOnConstructor,tt),b.hadConstructor=!0,jt=b.hadSuperClass),this.pushClassMethod(g,B,!1,!1,bt,jt)}else if(this.isClassProperty())Ct?this.pushClassPrivateProperty(g,be):this.pushClassProperty(g,le);else if(ct==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(tt);const bt=this.eat(55);Ve.optional&&this.unexpected(Rt),Ne.kind="method";const jt=this.match(139);this.parseClassElementName(Ne),this.parsePostMemberNameModifiers(Ve),jt?this.pushClassPrivateMethod(g,ee,bt,!0):(this.isNonstaticConstructor(B)&&this.raise(m.ConstructorIsAsync,B.key),this.pushClassMethod(g,B,bt,!0,!1,!1))}else if((ct==="get"||ct==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(tt),Ne.kind=ct;const bt=this.match(139);this.parseClassElementName(B),bt?this.pushClassPrivateMethod(g,ee,!1,!1):(this.isNonstaticConstructor(B)&&this.raise(m.ConstructorIsAccessor,B.key),this.pushClassMethod(g,B,!1,!1,!1,!1)),this.checkGetterSetterParams(B)}else if(ct==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(tt);const bt=this.match(139);this.parseClassElementName(le),this.pushClassAccessorProperty(g,we,bt)}else this.isLineTerminator()?Ct?this.pushClassPrivateProperty(g,be):this.pushClassProperty(g,le):this.unexpected()}parseClassElementName(g){const{type:u,value:b}=this.state;if((u===132||u===134)&&g.static&&b==="prototype"&&this.raise(m.StaticPrototype,this.state.startLoc),u===139){b==="constructor"&&this.raise(m.ConstructorClassPrivateField,this.state.startLoc);const w=this.parsePrivateName();return g.key=w,w}return this.parsePropertyName(g),g.key}parseClassStaticBlock(g,u){var b;this.scope.enter(720);const w=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const B=u.body=[];this.parseBlockOrModuleBlockBody(B,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=w,g.body.push(this.finishNode(u,"StaticBlock")),(b=u.decorators)!=null&&b.length&&this.raise(m.DecoratorStaticBlock,u)}pushClassProperty(g,u){!u.computed&&this.nameIsConstructor(u.key)&&this.raise(m.ConstructorClassField,u.key),g.body.push(this.parseClassProperty(u))}pushClassPrivateProperty(g,u){const b=this.parseClassPrivateProperty(u);g.body.push(b),this.classScope.declarePrivateName(this.getPrivateNameSV(b.key),0,b.key.loc.start)}pushClassAccessorProperty(g,u,b){!b&&!u.computed&&this.nameIsConstructor(u.key)&&this.raise(m.ConstructorClassField,u.key);const w=this.parseClassAccessorProperty(u);g.body.push(w),b&&this.classScope.declarePrivateName(this.getPrivateNameSV(w.key),0,w.key.loc.start)}pushClassMethod(g,u,b,w,B,ee){g.body.push(this.parseMethod(u,b,w,B,ee,"ClassMethod",!0))}pushClassPrivateMethod(g,u,b,w){const B=this.parseMethod(u,b,w,!1,!1,"ClassPrivateMethod",!0);g.body.push(B);const ee=B.kind==="get"?B.static?6:2:B.kind==="set"?B.static?5:1:0;this.declareClassPrivateMethodInScope(B,ee)}declareClassPrivateMethodInScope(g,u){this.classScope.declarePrivateName(this.getPrivateNameSV(g.key),u,g.key.loc.start)}parsePostMemberNameModifiers(g){}parseClassPrivateProperty(g){return this.parseInitializer(g),this.semicolon(),this.finishNode(g,"ClassPrivateProperty")}parseClassProperty(g){return this.parseInitializer(g),this.semicolon(),this.finishNode(g,"ClassProperty")}parseClassAccessorProperty(g){return this.parseInitializer(g),this.semicolon(),this.finishNode(g,"ClassAccessorProperty")}parseInitializer(g){this.scope.enter(592),this.expressionScope.enter(Pa()),this.prodParam.enter(0),g.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(g,u,b,w=8331){if(Se(this.state.type))g.id=this.parseIdentifier(),u&&this.declareNameFromIdentifier(g.id,w);else if(b||!u)g.id=null;else throw this.raise(m.MissingClassName,this.state.startLoc)}parseClassSuper(g){g.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(g,u){const b=this.parseMaybeImportPhase(g,!0),w=this.maybeParseExportDefaultSpecifier(g,b),B=!w||this.eat(12),ee=B&&this.eatExportStar(g),le=ee&&this.maybeParseExportNamespaceSpecifier(g),be=B&&(!le||this.eat(12)),we=w||ee;if(ee&&!le){if(w&&this.unexpected(),u)throw this.raise(m.UnsupportedDecoratorExport,g);return this.parseExportFrom(g,!0),this.sawUnambiguousESM=!0,this.finishNode(g,"ExportAllDeclaration")}const Ne=this.maybeParseExportNamedSpecifiers(g);w&&B&&!ee&&!Ne&&this.unexpected(null,5),le&&be&&this.unexpected(null,98);let Ve;if(we||Ne){if(Ve=!1,u)throw this.raise(m.UnsupportedDecoratorExport,g);this.parseExportFrom(g,we)}else Ve=this.maybeParseExportDeclaration(g);if(we||Ne||Ve){var Qe;const tt=g;if(this.checkExport(tt,!0,!1,!!tt.source),((Qe=tt.declaration)==null?void 0:Qe.type)==="ClassDeclaration")this.maybeTakeDecorators(u,tt.declaration,tt);else if(u)throw this.raise(m.UnsupportedDecoratorExport,g);return this.sawUnambiguousESM=!0,this.finishNode(tt,"ExportNamedDeclaration")}if(this.eat(65)){const tt=g,ct=this.parseExportDefaultExpression();if(tt.declaration=ct,ct.type==="ClassDeclaration")this.maybeTakeDecorators(u,ct,tt);else if(u)throw this.raise(m.UnsupportedDecoratorExport,g);return this.checkExport(tt,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(tt,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(g){return this.eat(55)}maybeParseExportDefaultSpecifier(g,u){if(u||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",u==null?void 0:u.loc.start);const b=u||this.parseIdentifier(!0),w=this.startNodeAtNode(b);return w.exported=b,g.specifiers=[this.finishNode(w,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(g){if(this.isContextual(93)){var u,b;(b=(u=g).specifiers)!=null||(u.specifiers=[]);const w=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),w.exported=this.parseModuleExportName(),g.specifiers.push(this.finishNode(w,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(g){if(this.match(5)){const u=g;u.specifiers||(u.specifiers=[]);const b=u.exportKind==="type";return u.specifiers.push(...this.parseExportSpecifiers(b)),u.source=null,this.hasPlugin("importAssertions")?u.assertions=[]:u.attributes=[],u.declaration=null,!0}return!1}maybeParseExportDeclaration(g){return this.shouldParseExportDeclaration()?(g.specifiers=[],g.source=null,this.hasPlugin("importAssertions")?g.assertions=[]:g.attributes=[],g.declaration=this.parseExportDeclaration(g),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;const g=this.nextTokenInLineStart();return this.isUnparsedContextual(g,"function")}parseExportDefaultExpression(){const g=this.startNode();if(this.match(68))return this.next(),this.parseFunction(g,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(g,13);if(this.match(80))return this.parseClass(g,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(m.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(m.UnsupportedDefaultExport,this.state.startLoc);const u=this.parseMaybeAssignAllowIn();return this.semicolon(),u}parseExportDeclaration(g){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:g}=this.state;if(Se(g)){if(g===95&&!this.state.containsEsc||g===100)return!1;if((g===130||g===129)&&!this.state.containsEsc){const w=this.nextTokenStart(),B=this.input.charCodeAt(w);if(B===123||this.chStartsBindingIdentifier(B,w)&&!this.input.startsWith("from",w))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const u=this.nextTokenStart(),b=this.isUnparsedContextual(u,"from");if(this.input.charCodeAt(u)===44||Se(this.state.type)&&b)return!0;if(this.match(65)&&b){const w=this.input.charCodeAt(this.nextTokenStartSince(u+4));return w===34||w===39}return!1}parseExportFrom(g,u){this.eatContextual(98)?(g.source=this.parseImportSource(),this.checkExport(g),this.maybeParseImportAttributes(g),this.checkJSONModuleImport(g)):u&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:g}=this.state;return g===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(m.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(m.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(m.UsingDeclarationExport,this.state.startLoc),!0):g===74||g===75||g===68||g===80||this.isLet()||this.isAsyncFunction()}checkExport(g,u,b,w){if(u){var B;if(b){if(this.checkDuplicateExports(g,"default"),this.hasPlugin("exportDefaultFrom")){var ee;const le=g.declaration;le.type==="Identifier"&&le.name==="from"&&le.end-le.start===4&&!((ee=le.extra)!=null&&ee.parenthesized)&&this.raise(m.ExportDefaultFromAsIdentifier,le)}}else if((B=g.specifiers)!=null&&B.length)for(const le of g.specifiers){const{exported:be}=le,we=be.type==="Identifier"?be.name:be.value;if(this.checkDuplicateExports(le,we),!w&&le.local){const{local:Ne}=le;Ne.type!=="Identifier"?this.raise(m.ExportBindingIsString,le,{localName:Ne.value,exportName:we}):(this.checkReservedWord(Ne.name,Ne.loc.start,!0,!1),this.scope.checkLocalExport(Ne))}}else if(g.declaration){const le=g.declaration;if(le.type==="FunctionDeclaration"||le.type==="ClassDeclaration"){const{id:be}=le;if(!be)throw new Error("Assertion failure");this.checkDuplicateExports(g,be.name)}else if(le.type==="VariableDeclaration")for(const be of le.declarations)this.checkDeclaration(be.id)}}}checkDeclaration(g){if(g.type==="Identifier")this.checkDuplicateExports(g,g.name);else if(g.type==="ObjectPattern")for(const u of g.properties)this.checkDeclaration(u);else if(g.type==="ArrayPattern")for(const u of g.elements)u&&this.checkDeclaration(u);else g.type==="ObjectProperty"?this.checkDeclaration(g.value):g.type==="RestElement"?this.checkDeclaration(g.argument):g.type==="AssignmentPattern"&&this.checkDeclaration(g.left)}checkDuplicateExports(g,u){this.exportedIdentifiers.has(u)&&(u==="default"?this.raise(m.DuplicateDefaultExport,g):this.raise(m.DuplicateExport,g,{exportName:u})),this.exportedIdentifiers.add(u)}parseExportSpecifiers(g){const u=[];let b=!0;for(this.expect(5);!this.eat(8);){if(b)b=!1;else if(this.expect(12),this.eat(8))break;const w=this.isContextual(130),B=this.match(134),ee=this.startNode();ee.local=this.parseModuleExportName(),u.push(this.parseExportSpecifier(ee,B,g,w))}return u}parseExportSpecifier(g,u,b,w){return this.eatContextual(93)?g.exported=this.parseModuleExportName():u?g.exported=this.cloneStringLiteral(g.local):g.exported||(g.exported=this.cloneIdentifier(g.local)),this.finishNode(g,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const g=this.parseStringLiteral(this.state.value),u=vo.exec(g.value);return u&&this.raise(m.ModuleExportNameHasLoneSurrogate,g,{surrogateCharCode:u[0].charCodeAt(0)}),g}return this.parseIdentifier(!0)}isJSONModuleImport(g){return g.assertions!=null?g.assertions.some(({key:u,value:b})=>b.value==="json"&&(u.type==="Identifier"?u.name==="type":u.value==="type")):!1}checkImportReflection(g){const{specifiers:u}=g,b=u.length===1?u[0].type:null;if(g.phase==="source")b!=="ImportDefaultSpecifier"&&this.raise(m.SourcePhaseImportRequiresDefault,u[0].loc.start);else if(g.phase==="defer")b!=="ImportNamespaceSpecifier"&&this.raise(m.DeferImportRequiresNamespace,u[0].loc.start);else if(g.module){var w;b!=="ImportDefaultSpecifier"&&this.raise(m.ImportReflectionNotBinding,u[0].loc.start),((w=g.assertions)==null?void 0:w.length)>0&&this.raise(m.ImportReflectionHasAssertion,u[0].loc.start)}}checkJSONModuleImport(g){if(this.isJSONModuleImport(g)&&g.type!=="ExportAllDeclaration"){const{specifiers:u}=g;if(u!=null){const b=u.find(w=>{let B;if(w.type==="ExportSpecifier"?B=w.local:w.type==="ImportSpecifier"&&(B=w.imported),B!==void 0)return B.type==="Identifier"?B.name!=="default":B.value!=="default"});b!==void 0&&this.raise(m.ImportJSONBindingNotDefault,b.loc.start)}}}isPotentialImportPhase(g){return g?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(g,u,b,w){u||(b==="module"?(this.expectPlugin("importReflection",w),g.module=!0):this.hasPlugin("importReflection")&&(g.module=!1),b==="source"?(this.expectPlugin("sourcePhaseImports",w),g.phase="source"):b==="defer"?(this.expectPlugin("deferredImportEvaluation",w),g.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(g.phase=null))}parseMaybeImportPhase(g,u){if(!this.isPotentialImportPhase(u))return this.applyImportPhase(g,u,null),null;const b=this.startNode(),w=this.parseIdentifierName(!0),{type:B}=this.state;return(xe(B)?B!==98||this.lookaheadCharCode()===102:B!==12)?(this.applyImportPhase(g,u,w,b.loc.start),null):(this.applyImportPhase(g,u,null),this.createIdentifier(b,w))}isPrecedingIdImportPhase(g){const{type:u}=this.state;return Se(u)?u!==98||this.lookaheadCharCode()===102:u!==12}parseImport(g){return this.match(134)?this.parseImportSourceAndAttributes(g):this.parseImportSpecifiersAndAfter(g,this.parseMaybeImportPhase(g,!1))}parseImportSpecifiersAndAfter(g,u){g.specifiers=[];const w=!this.maybeParseDefaultImportSpecifier(g,u)||this.eat(12),B=w&&this.maybeParseStarImportSpecifier(g);return w&&!B&&this.parseNamedImportSpecifiers(g),this.expectContextual(98),this.parseImportSourceAndAttributes(g)}parseImportSourceAndAttributes(g){var u;return(u=g.specifiers)!=null||(g.specifiers=[]),g.source=this.parseImportSource(),this.maybeParseImportAttributes(g),this.checkImportReflection(g),this.checkJSONModuleImport(g),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(g,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(g,u,b){u.local=this.parseIdentifier(),g.specifiers.push(this.finishImportSpecifier(u,b))}finishImportSpecifier(g,u,b=8201){return this.checkLVal(g.local,{type:u},b),this.finishNode(g,u)}parseImportAttributes(){this.expect(5);const g=[],u=new Set;do{if(this.match(8))break;const b=this.startNode(),w=this.state.value;if(u.has(w)&&this.raise(m.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:w}),u.add(w),this.match(134)?b.key=this.parseStringLiteral(w):b.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(m.ModuleAttributeInvalidValue,this.state.startLoc);b.value=this.parseStringLiteral(this.state.value),g.push(this.finishNode(b,"ImportAttribute"))}while(this.eat(12));return this.expect(8),g}parseModuleAttributes(){const g=[],u=new Set;do{const b=this.startNode();if(b.key=this.parseIdentifier(!0),b.key.name!=="type"&&this.raise(m.ModuleAttributeDifferentFromType,b.key),u.has(b.key.name)&&this.raise(m.ModuleAttributesWithDuplicateKeys,b.key,{key:b.key.name}),u.add(b.key.name),this.expect(14),!this.match(134))throw this.raise(m.ModuleAttributeInvalidValue,this.state.startLoc);b.value=this.parseStringLiteral(this.state.value),g.push(this.finishNode(b,"ImportAttribute"))}while(this.eat(12));return g}maybeParseImportAttributes(g){let u;var b=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(u=this.parseModuleAttributes(),this.addExtra(g,"deprecatedWithLegacySyntax",!0)):u=this.parseImportAttributes(),b=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(m.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(g,"deprecatedAssertSyntax",!0),this.next(),u=this.parseImportAttributes()):u=[];!b&&this.hasPlugin("importAssertions")?g.assertions=u:g.attributes=u}maybeParseDefaultImportSpecifier(g,u){if(u){const b=this.startNodeAtNode(u);return b.local=u,g.specifiers.push(this.finishImportSpecifier(b,"ImportDefaultSpecifier")),!0}else if(xe(this.state.type))return this.parseImportSpecifierLocal(g,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(g){if(this.match(55)){const u=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(g,u,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(g){let u=!0;for(this.expect(5);!this.eat(8);){if(u)u=!1;else{if(this.eat(14))throw this.raise(m.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const b=this.startNode(),w=this.match(134),B=this.isContextual(130);b.imported=this.parseModuleExportName();const ee=this.parseImportSpecifier(b,w,g.importKind==="type"||g.importKind==="typeof",B,void 0);g.specifiers.push(ee)}}parseImportSpecifier(g,u,b,w,B){if(this.eatContextual(93))g.local=this.parseIdentifier();else{const{imported:ee}=g;if(u)throw this.raise(m.ImportBindingIsString,g,{importName:ee.value});this.checkReservedWord(ee.name,g.loc.start,!0,!0),g.local||(g.local=this.cloneIdentifier(ee))}return this.finishImportSpecifier(g,"ImportSpecifier",B)}isThisParam(g){return g.type==="Identifier"&&g.name==="this"}}class Da extends xo{constructor(g,u,b){const w=A(g);super(w,u),this.options=w,this.initializeScopes(),this.plugins=b,this.filename=w.sourceFilename,this.startIndex=w.startIndex;let B=0;w.allowAwaitOutsideFunction&&(B|=1),w.allowReturnOutsideFunction&&(B|=2),w.allowImportExportEverywhere&&(B|=8),w.allowSuperOutsideMethod&&(B|=16),w.allowUndeclaredExports&&(B|=64),w.allowNewTargetOutsideFunction&&(B|=4),w.allowYieldOutsideFunction&&(B|=32),w.ranges&&(B|=128),w.tokens&&(B|=256),w.createImportExpressions&&(B|=512),w.createParenthesizedExpressions&&(B|=1024),w.errorRecovery&&(B|=2048),w.attachComment&&(B|=4096),w.annexB&&(B|=8192),this.optionFlags=B}getScopeHandler(){return yr}parse(){this.enterInitialScopes();const g=this.startNode(),u=this.startNode();this.nextToken(),g.errors=null;const b=this.parseTopLevel(g,u);return b.errors=this.state.errors,b.comments.length=this.state.commentsLen,b}}function To(G,g){var u;if(((u=g)==null?void 0:u.sourceType)==="unambiguous"){g=Object.assign({},g);try{g.sourceType="module";const b=Jn(g,G),w=b.parse();if(b.sawUnambiguousESM)return w;if(b.ambiguousScriptDifferentAst)try{return g.sourceType="script",Jn(g,G).parse()}catch{}else w.program.sourceType="script";return w}catch(b){try{return g.sourceType="script",Jn(g,G).parse()}catch{}throw b}}else return Jn(g,G).parse()}function So(G,g){const u=Jn(g,G);return u.options.strictMode&&(u.state.strict=!0),u.getExpression()}function Eo(G){const g={};for(const u of Object.keys(G))g[u]=Ie(G[u]);return g}const Po=Eo(de);function Jn(G,g){let u=Da;const b=new Map;if(G!=null&&G.plugins){for(const w of G.plugins){let B,ee;typeof w=="string"?B=w:[B,ee]=w,b.has(B)||b.set(B,ee||{})}ho(b),u=Ao(b)}return new u(G,g,b)}const Ma=new Map;function Ao(G){const g=[];for(const w of mo)G.has(w)&&g.push(w);const u=g.join("|");let b=Ma.get(u);if(!b){b=Da;for(const w of g)b=Na[w](b);Ma.set(u,b)}return b}return pl.parse=To,pl.parseExpression=So,pl.tokTypes=Po,pl}var NO;function _R(){if(NO)return Hi;NO=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi._replaceWith=R,Hi.replaceExpressionWithStatements=J,Hi.replaceInline=ie,Hi.replaceWith=F,Hi.replaceWithMultiple=N,Hi.replaceWithSourceString=j;var e=wR(),t=tp(),r=Cs(),n=bu(),i=k1(),a=N1(),s=It(),o=oi();const{FUNCTION_TYPES:l,arrowFunctionExpression:c,assignmentExpression:p,awaitExpression:f,blockStatement:d,buildUndefinedNode:h,callExpression:v,cloneNode:x,conditionalExpression:y,expressionStatement:m,getBindingIdentifiers:T,identifier:A,inheritLeadingComments:E,inheritTrailingComments:P,inheritsComments:_,isBlockStatement:I,isEmptyStatement:k,isExpression:M,isExpressionStatement:D,isIfStatement:C,isProgram:L,isStatement:q,isVariableDeclaration:$,removeComments:z,returnStatement:Q,sequenceExpression:V,validate:X,yieldExpression:U}=s;function N(ae){var fe;o.resync.call(this);const de=i._verifyNodeList.call(this,ae);E(de[0],this.node),P(de[de.length-1],this.node),(fe=(0,n.getCachedPaths)(this))==null||fe.delete(this.node),this.node=this.container[this.key]=null;const Se=this.insertAfter(ae);return this.node?this.requeue():this.remove(),Se}function j(ae){o.resync.call(this);let fe;try{ae=`(${ae})`,fe=(0,a.parse)(ae)}catch(Se){const Ce=Se.loc;throw Ce&&(Se.message+=` - make sure this is an expression.
`+(0,e.codeFrameColumns)(ae,{start:{line:Ce.line,column:Ce.column+1}}),Se.code="BABEL_REPLACE_SOURCE_ERROR"),Se}const de=fe.program.body[0].expression;return t.default.removeProperties(de),this.replaceWith(de)}function F(ae){if(o.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let fe=ae instanceof r.default?ae.node:ae;if(!fe)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===fe)return[this];if(this.isProgram()&&!L(fe))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(fe))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof fe=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let de="";if(this.isNodeType("Statement")&&M(fe)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(fe)&&!this.parentPath.isExportDefaultDeclaration()&&(fe=m(fe),de="expression"),this.isNodeType("Expression")&&q(fe)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(fe))return this.replaceExpressionWithStatements([fe]);const Se=this.node;return Se&&(_(fe,Se),z(Se)),R.call(this,fe),this.type=fe.type,o.setScope.call(this),this.requeue(),[de?this.get(de):this]}function R(ae){var fe;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?X(this.parent,this.key,[ae]):X(this.parent,this.key,ae),this.debug(`Replace with ${ae==null?void 0:ae.type}`),(fe=(0,n.getCachedPaths)(this))==null||fe.set(ae,this).delete(this.node),this.node=ae,this.container[this.key]=ae}function J(ae){o.resync.call(this);const fe=[],de=se(ae,fe);if(de){for(const ue of fe)this.scope.push({id:ue});return this.replaceWith(de)[0].get("expressions")}const Se=this.getFunctionParent(),Ce=Se==null?void 0:Se.node.async,xe=Se==null?void 0:Se.node.generator,Be=c([],d(ae));this.replaceWith(v(Be,[]));const Re=this.get("callee");Re.get("body").scope.hoistVariables(ue=>this.scope.push({id:ue}));const He=Re.getCompletionRecords();for(const ue of He){if(!ue.isExpressionStatement())continue;const Te=ue.findParent(ke=>ke.isLoop());if(Te){let ke=Te.getData("expressionReplacementReturnUid");ke?ke=A(ke.name):(ke=Re.scope.generateDeclaredUidIdentifier("ret"),Re.get("body").pushContainer("body",Q(x(ke))),Te.setData("expressionReplacementReturnUid",ke)),ue.get("expression").replaceWith(p("=",x(ke),ue.node.expression))}else ue.replaceWith(Q(ue.node.expression))}Re.arrowFunctionToExpression();const ze=Re,je=Ce&&t.default.hasType(ze.node.body,"AwaitExpression",l),re=xe&&t.default.hasType(ze.node.body,"YieldExpression",l);return je&&(ze.set("async",!0),re||this.replaceWith(f(this.node))),re&&(ze.set("generator",!0),this.replaceWith(U(this.node,!0))),ze.get("body.body")}function se(ae,fe){const de=[];let Se=!0;for(const Ce of ae)if(k(Ce)||(Se=!1),M(Ce))de.push(Ce);else if(D(Ce))de.push(Ce.expression);else if($(Ce)){if(Ce.kind!=="var")return;for(const xe of Ce.declarations){const Be=T(xe);for(const Re of Object.keys(Be))fe.push(x(Be[Re]));xe.init&&de.push(p("=",xe.id,xe.init))}Se=!0}else if(C(Ce)){const xe=Ce.consequent?se([Ce.consequent],fe):h(),Be=Ce.alternate?se([Ce.alternate],fe):h();if(!xe||!Be)return;de.push(y(Ce.test,xe,Be))}else if(I(Ce)){const xe=se(Ce.body,fe);if(!xe)return;de.push(xe)}else if(k(Ce))ae.indexOf(Ce)===0&&(Se=!0);else return;return Se&&de.push(h()),de.length===1?de[0]:V(de)}function ie(ae){if(o.resync.call(this),Array.isArray(ae))if(Array.isArray(this.container)){ae=i._verifyNodeList.call(this,ae);const fe=i._containerInsertAfter.call(this,ae);return this.remove(),fe}else return this.replaceWithMultiple(ae);else return this.replaceWith(ae)}return Hi}var Pc={},DO;function nU(){if(DO)return Pc;DO=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.evaluate=d,Pc.evaluateTruthy=s;const e=["Number","String","Math"],t=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],r=["random"];function n(h){return e.includes(h)}function i(h){return t.includes(h)}function a(h){return r.includes(h)}function s(){const h=this.evaluate();if(h.confident)return!!h.value}function o(h,v){v.confident&&(v.deoptPath=h,v.confident=!1)}const l=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function c(h,v){const{node:x}=h,{seen:y}=v;if(y.has(x)){const m=y.get(x);if(m.resolved)return m.value;o(h,v);return}else{const m={resolved:!1};y.set(x,m);const T=p(h,v);return v.confident&&(m.resolved=!0,m.value=T),T}}function p(h,v){if(v.confident){if(h.isSequenceExpression()){const y=h.get("expressions");return c(y[y.length-1],v)}if(h.isStringLiteral()||h.isNumericLiteral()||h.isBooleanLiteral())return h.node.value;if(h.isNullLiteral())return null;if(h.isTemplateLiteral())return f(h,h.node.quasis,v);if(h.isTaggedTemplateExpression()&&h.get("tag").isMemberExpression()){const y=h.get("tag.object"),{node:{name:m}}=y,T=h.get("tag.property");if(y.isIdentifier()&&m==="String"&&!h.scope.getBinding(m)&&T.isIdentifier()&&T.node.name==="raw")return f(h,h.node.quasi.quasis,v,!0)}if(h.isConditionalExpression()){const y=c(h.get("test"),v);return v.confident?c(y?h.get("consequent"):h.get("alternate"),v):void 0}if(h.isExpressionWrapper())return c(h.get("expression"),v);if(h.isMemberExpression()&&!h.parentPath.isCallExpression({callee:h.node})){const y=h.get("property"),m=h.get("object");if(m.isLiteral()){const T=m.node.value,A=typeof T;let E=null;if(h.node.computed){if(E=c(y,v),!v.confident)return}else y.isIdentifier()&&(E=y.node.name);if((A==="number"||A==="string")&&E!=null&&(typeof E=="number"||typeof E=="string"))return T[E]}}if(h.isReferencedIdentifier()){const y=h.scope.getBinding(h.node.name);if(y){if(y.constantViolations.length>0||h.node.start<y.path.node.end){o(y.path,v);return}const P=y.path.scope;if(y.kind==="var"&&P!==y.scope){let _=!P.path.parentPath.isBlockStatement();for(let I=P.parent;I;I=I.parent){var x;if(I===h.scope){if(_){o(y.path,v);return}break}(x=I.path.parentPath)!=null&&x.isBlockStatement()&&(_=!0)}}if(y.hasValue)return y.value}const m=h.node.name;if(l.has(m)){if(!y)return l.get(m);o(y.path,v);return}if(!y){o(h,v);return}const T=y.path;if(!T.isVariableDeclarator()){o(T,v);return}const A=T.get("init"),E=c(A,v);if(typeof E=="object"&&E!==null&&y.references>1){o(A,v);return}return E}if(h.isUnaryExpression({prefix:!0})){if(h.node.operator==="void")return;const y=h.get("argument");if(h.node.operator==="typeof"&&(y.isFunction()||y.isClass()))return"function";const m=c(y,v);if(!v.confident)return;switch(h.node.operator){case"!":return!m;case"+":return+m;case"-":return-m;case"~":return~m;case"typeof":return typeof m}}if(h.isArrayExpression()){const y=[],m=h.get("elements");for(const T of m){const A=T.evaluate();if(A.confident)y.push(A.value);else{o(A.deopt,v);return}}return y}if(h.isObjectExpression()){const y={},m=h.get("properties");for(const T of m){if(T.isObjectMethod()||T.isSpreadElement()){o(T,v);return}const A=T.get("key");let E;if(T.node.computed){if(E=A.evaluate(),!E.confident){o(E.deopt,v);return}E=E.value}else A.isIdentifier()?E=A.node.name:E=A.node.value;let _=T.get("value").evaluate();if(!_.confident){o(_.deopt,v);return}_=_.value,y[E]=_}return y}if(h.isLogicalExpression()){const y=v.confident,m=c(h.get("left"),v),T=v.confident;v.confident=y;const A=c(h.get("right"),v),E=v.confident;switch(h.node.operator){case"||":return v.confident=T&&(!!m||E),v.confident?m||A:void 0;case"&&":return v.confident=T&&(!m||E),v.confident?m&&A:void 0;case"??":return v.confident=T&&(m!=null||E),v.confident?m??A:void 0}}if(h.isBinaryExpression()){const y=c(h.get("left"),v);if(!v.confident)return;const m=c(h.get("right"),v);if(!v.confident)return;switch(h.node.operator){case"-":return y-m;case"+":return y+m;case"/":return y/m;case"*":return y*m;case"%":return y%m;case"**":return Math.pow(y,m);case"<":return y<m;case">":return y>m;case"<=":return y<=m;case">=":return y>=m;case"==":return y==m;case"!=":return y!=m;case"===":return y===m;case"!==":return y!==m;case"|":return y|m;case"&":return y&m;case"^":return y^m;case"<<":return y<<m;case">>":return y>>m;case">>>":return y>>>m}}if(h.isCallExpression()){const y=h.get("callee");let m,T;if(y.isIdentifier()&&!h.scope.getBinding(y.node.name)&&(n(y.node.name)||i(y.node.name))&&(T=Pl[y.node.name]),y.isMemberExpression()){const A=y.get("object"),E=y.get("property");if(A.isIdentifier()&&E.isIdentifier()&&n(A.node.name)&&!a(E.node.name)){m=Pl[A.node.name];const P=E.node.name;hasOwnProperty.call(m,P)&&(T=m[P])}if(A.isLiteral()&&E.isIdentifier()){const P=typeof A.node.value;(P==="string"||P==="number")&&(m=A.node.value,T=m[E.node.name])}}if(T){const A=h.get("arguments").map(E=>c(E,v));return v.confident?T.apply(m,A):void 0}}o(h,v)}}function f(h,v,x,y=!1){let m="",T=0;const A=h.isTemplateLiteral()?h.get("expressions"):h.get("quasi.expressions");for(const E of v){if(!x.confident)break;m+=y?E.value.raw:E.value.cooked;const P=A[T++];P&&(m+=String(c(P,x)))}if(x.confident)return m}function d(){const h={confident:!0,deoptPath:null,seen:new Map};let v=c(this,h);return h.confident||(v=void 0),{confident:h.confident,deopt:h.deoptPath,value:v}}return Pc}var vi={},Vr={},vn={},MO;function iU(){if(MO)return vn;MO=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.statements=vn.statement=vn.smart=vn.program=vn.expression=void 0;var e=It();const{assertExpressionStatement:t}=e;function r(i){return{code:a=>`/* @babel/template */;
${a}`,validate:()=>{},unwrap:a=>i(a.program.body.slice(1))}}vn.smart=r(i=>i.length>1?i:i[0]),vn.statements=r(i=>i),vn.statement=r(i=>{if(i.length===0)throw new Error("Found nothing to return.");if(i.length>1)throw new Error("Found multiple statements but wanted one");return i[0]});const n=vn.expression={code:i=>`(
${i}
)`,validate:i=>{if(i.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(n.unwrap(i).start===0)throw new Error("Parse result included parens.")},unwrap:({program:i})=>{const[a]=i.body;return t(a),a.expression}};return vn.program={code:i=>i,validate:()=>{},unwrap:i=>i.program},vn}var kd={},dl={},LO;function D1(){if(LO)return dl;LO=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.merge=r,dl.normalizeReplacements=i,dl.validate=n;const e=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function t(a,s){if(a==null)return{};var o={};for(var l in a)if({}.hasOwnProperty.call(a,l)){if(s.indexOf(l)!==-1)continue;o[l]=a[l]}return o}function r(a,s){const{placeholderWhitelist:o=a.placeholderWhitelist,placeholderPattern:l=a.placeholderPattern,preserveComments:c=a.preserveComments,syntacticPlaceholders:p=a.syntacticPlaceholders}=s;return{parser:Object.assign({},a.parser,s.parser),placeholderWhitelist:o,placeholderPattern:l,preserveComments:c,syntacticPlaceholders:p}}function n(a){if(a!=null&&typeof a!="object")throw new Error("Unknown template options.");const s=a||{},{placeholderWhitelist:o,placeholderPattern:l,preserveComments:c,syntacticPlaceholders:p}=s,f=t(s,e);if(o!=null&&!(o instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(l!=null&&!(l instanceof RegExp)&&l!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(c!=null&&typeof c!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(p!=null&&typeof p!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(p===!0&&(o!=null||l!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:f,placeholderWhitelist:o||void 0,placeholderPattern:l??void 0,preserveComments:c??void 0,syntacticPlaceholders:p??void 0}}function i(a){if(Array.isArray(a))return a.reduce((s,o,l)=>(s["$"+l]=o,s),{});if(typeof a=="object"||a==null)return a||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}return dl}var Nd={},Dd={},jO;function OR(){if(jO)return Dd;jO=1,Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.default=x;var e=It(),t=N1(),r=wR();const{isCallExpression:n,isExpressionStatement:i,isFunction:a,isIdentifier:s,isJSXIdentifier:o,isNewExpression:l,isPlaceholder:c,isStatement:p,isStringLiteral:f,removePropertiesDeep:d,traverse:h}=e,v=/^[_$A-Z0-9]+$/;function x(A,E,P){const{placeholderWhitelist:_,placeholderPattern:I,preserveComments:k,syntacticPlaceholders:M}=P,D=T(E,P.parser,M);d(D,{preserveComments:k}),A.validate(D);const C={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:_,placeholderPattern:I,syntacticPlaceholders:M};return h(D,y,C),Object.assign({ast:D},C.syntactic.placeholders.length?C.syntactic:C.legacy)}function y(A,E,P){var _;let I,k=P.syntactic.placeholders.length>0;if(c(A)){if(P.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");I=A.name.name,k=!0}else{if(k||P.syntacticPlaceholders)return;if(s(A)||o(A))I=A.name;else if(f(A))I=A.value;else return}if(k&&(P.placeholderPattern!=null||P.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!k&&(P.placeholderPattern===!1||!(P.placeholderPattern||v).test(I))&&!((_=P.placeholderWhitelist)!=null&&_.has(I)))return;E=E.slice();const{node:M,key:D}=E[E.length-1];let C;f(A)||c(A,{expectedNode:"StringLiteral"})?C="string":l(M)&&D==="arguments"||n(M)&&D==="arguments"||a(M)&&D==="params"?C="param":i(M)&&!c(A)?(C="statement",E=E.slice(0,-1)):p(A)&&c(A)?C="statement":C="other";const{placeholders:L,placeholderNames:q}=k?P.syntactic:P.legacy;L.push({name:I,type:C,resolve:$=>m($,E),isDuplicate:q.has(I)}),q.add(I)}function m(A,E){let P=A;for(let k=0;k<E.length-1;k++){const{key:M,index:D}=E[k];D===void 0?P=P[M]:P=P[M][D]}const{key:_,index:I}=E[E.length-1];return{parent:P,key:_,index:I}}function T(A,E,P){const _=(E.plugins||[]).slice();P!==!1&&_.push("placeholders"),E=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},E,{plugins:_});try{return(0,t.parse)(A,E)}catch(I){const k=I.loc;throw k&&(I.message+=`
`+(0,r.codeFrameColumns)(A,{start:k}),I.code="BABEL_TEMPLATE_PARSE_ERROR"),I}}return Dd}var Md={},RO;function CR(){if(RO)return Md;RO=1,Object.defineProperty(Md,"__esModule",{value:!0}),Md.default=p;var e=It();const{blockStatement:t,cloneNode:r,emptyStatement:n,expressionStatement:i,identifier:a,isStatement:s,isStringLiteral:o,stringLiteral:l,validate:c}=e;function p(d,h){const v=r(d.ast);return h&&(d.placeholders.forEach(x=>{if(!hasOwnProperty.call(h,x.name)){const y=x.name;throw new Error(`Error: No substitution given for "${y}". If this is not meant to be a
placeholder you may want to consider passing one of the following options to @babel/template:
- { placeholderPattern: false, placeholderWhitelist: new Set(['${y}'])}
- { placeholderPattern: /^${y}$/ }`)}}),Object.keys(h).forEach(x=>{if(!d.placeholderNames.has(x))throw new Error(`Unknown substitution "${x}" given`)})),d.placeholders.slice().reverse().forEach(x=>{try{var y;f(x,v,(y=h&&h[x.name])!=null?y:null)}catch(m){throw m.message=`@babel/template placeholder "${x.name}": ${m.message}`,m}}),v}function f(d,h,v){d.isDuplicate&&(Array.isArray(v)?v=v.map(A=>r(A)):typeof v=="object"&&(v=r(v)));const{parent:x,key:y,index:m}=d.resolve(h);if(d.type==="string"){if(typeof v=="string"&&(v=l(v)),!v||!o(v))throw new Error("Expected string substitution")}else if(d.type==="statement")m===void 0?v?Array.isArray(v)?v=t(v):typeof v=="string"?v=i(a(v)):s(v)||(v=i(v)):v=n():v&&!Array.isArray(v)&&(typeof v=="string"&&(v=a(v)),s(v)||(v=i(v)));else if(d.type==="param"){if(typeof v=="string"&&(v=a(v)),m===void 0)throw new Error("Assertion failure.")}else if(typeof v=="string"&&(v=a(v)),Array.isArray(v))throw new Error("Cannot replace single expression with an array.");function T(A,E,P){const _=A[E];A[E]=P,(_.type==="Identifier"||_.type==="Placeholder")&&(_.typeAnnotation&&(P.typeAnnotation=_.typeAnnotation),_.optional&&(P.optional=_.optional),_.decorators&&(P.decorators=_.decorators))}if(m===void 0)c(x,y,v),T(x,y,v);else{const A=x[y].slice();d.type==="statement"||d.type==="param"?v==null?A.splice(m,1):Array.isArray(v)?A.splice(m,1,...v):T(A,m,v):T(A,m,v),c(x,y,A),x[y]=A}}return Md}var BO;function aU(){if(BO)return Nd;BO=1,Object.defineProperty(Nd,"__esModule",{value:!0}),Nd.default=n;var e=D1(),t=OR(),r=CR();function n(i,a,s){a=i.code(a);let o;return l=>{const c=(0,e.normalizeReplacements)(l);return o||(o=(0,t.default)(i,a,s)),i.unwrap((0,r.default)(o,c))}}return Nd}var Ld={},FO;function sU(){if(FO)return Ld;FO=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.default=n;var e=D1(),t=OR(),r=CR();function n(s,o,l){const{metadata:c,names:p}=i(s,o,l);return f=>{const d={};return f.forEach((h,v)=>{d[p[v]]=h}),h=>{const v=(0,e.normalizeReplacements)(h);return v&&Object.keys(v).forEach(x=>{if(hasOwnProperty.call(d,x))throw new Error("Unexpected replacement overlap.")}),s.unwrap((0,r.default)(c,v?Object.assign(v,d):d))}}}function i(s,o,l){let c="BABEL_TPL$";const p=o.join("");do c="$$"+c;while(p.includes(c));const{names:f,code:d}=a(o,c);return{metadata:(0,t.default)(s,s.code(d),{parser:l.parser,placeholderWhitelist:new Set(f.concat(l.placeholderWhitelist?Array.from(l.placeholderWhitelist):[])),placeholderPattern:l.placeholderPattern,preserveComments:l.preserveComments,syntacticPlaceholders:l.syntacticPlaceholders}),names:f}}function a(s,o){const l=[];let c=s[0];for(let p=1;p<s.length;p++){const f=`${o}${p-1}`;l.push(f),c+=f+s[p]}return{names:l,code:c}}return Ld}var qO;function oU(){if(qO)return kd;qO=1,Object.defineProperty(kd,"__esModule",{value:!0}),kd.default=i;var e=D1(),t=aU(),r=sU();const n=(0,e.validate)({placeholderPattern:!1});function i(s,o){const l=new WeakMap,c=new WeakMap,p=o||(0,e.validate)(null);return Object.assign((f,...d)=>{if(typeof f=="string"){if(d.length>1)throw new Error("Unexpected extra params.");return a((0,t.default)(s,f,(0,e.merge)(p,(0,e.validate)(d[0]))))}else if(Array.isArray(f)){let h=l.get(f);return h||(h=(0,r.default)(s,f,p),l.set(f,h)),a(h(d))}else if(typeof f=="object"&&f){if(d.length>0)throw new Error("Unexpected extra params.");return i(s,(0,e.merge)(p,(0,e.validate)(f)))}throw new Error(`Unexpected template param ${typeof f}`)},{ast:(f,...d)=>{if(typeof f=="string"){if(d.length>1)throw new Error("Unexpected extra params.");return(0,t.default)(s,f,(0,e.merge)((0,e.merge)(p,(0,e.validate)(d[0])),n))()}else if(Array.isArray(f)){let h=c.get(f);return h||(h=(0,r.default)(s,f,(0,e.merge)(p,n)),c.set(f,h)),h(d)()}throw new Error(`Unexpected template param ${typeof f}`)}})}function a(s){let o="";try{throw new Error}catch(l){l.stack&&(o=l.stack.split(`
`).slice(3).join(`
`))}return l=>{try{return s(l)}catch(c){throw c.stack+=`
=============
${o}`,c}}}return kd}var $O;function lU(){if($O)return Vr;$O=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.statements=Vr.statement=Vr.smart=Vr.program=Vr.expression=Vr.default=void 0;var e=iU(),t=oU();const r=Vr.smart=(0,t.default)(e.smart),n=Vr.statement=(0,t.default)(e.statement),i=Vr.statements=(0,t.default)(e.statements),a=Vr.expression=(0,t.default)(e.expression),s=Vr.program=(0,t.default)(e.program);return Vr.default=Object.assign(r.bind(void 0),{smart:r,statement:n,statements:i,expression:a,program:s,ast:r.ast}),Vr}var UO;function uU(){if(UO)return vi;UO=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.arrowFunctionToExpression=fe,vi.ensureBlock=se,vi.ensureFunctionName=Me,vi.splitExportDeclaration=ke,vi.toComputedKey=J,vi.unwrapFunctionEnvironment=ie;var e=It(),t=lU(),r=km(),n=oi();const{arrowFunctionExpression:i,assignmentExpression:a,binaryExpression:s,blockStatement:o,callExpression:l,conditionalExpression:c,expressionStatement:p,identifier:f,isIdentifier:d,jsxIdentifier:h,logicalExpression:v,LOGICAL_OPERATORS:x,memberExpression:y,metaProperty:m,numericLiteral:T,objectExpression:A,restElement:E,returnStatement:P,sequenceExpression:_,spreadElement:I,stringLiteral:k,super:M,thisExpression:D,toExpression:C,unaryExpression:L,toBindingIdentifierName:q,isFunction:$,isAssignmentPattern:z,isRestElement:Q,getFunctionName:V,cloneNode:X,variableDeclaration:U,variableDeclarator:N,exportNamedDeclaration:j,exportSpecifier:F,inherits:R}=e;function J(){let _e;if(this.isMemberExpression())_e=this.node.property;else if(this.isProperty()||this.isMethod())_e=this.node.key;else throw new ReferenceError("todo");return this.node.computed||d(_e)&&(_e=k(_e.name)),_e}function se(){const _e=this.get("body"),pe=_e.node;if(Array.isArray(_e))throw new Error("Can't convert array path to a block statement");if(!pe)throw new Error("Can't convert node without a body");if(_e.isBlockStatement())return pe;const ne=[];let me="body",Ie,De;_e.isStatement()?(De="body",Ie=0,ne.push(_e.node)):(me+=".body.0",this.isFunction()?(Ie="argument",ne.push(P(_e.node))):(Ie="expression",ne.push(p(_e.node)))),this.node.body=o(ne);const Ue=this.get(me);return n.setup.call(_e,Ue,De?Ue.node[De]:Ue.node,De,Ie),this.node}vi.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function ie(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");Se(this)}function ae(_e,pe){_e.node.type=pe}function fe({allowInsertArrow:_e=!0,allowInsertArrowWithRest:pe=_e,noNewArrows:ne=!(me=>(me=arguments[0])==null?void 0:me.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let me=this;if(!ne){var Ie;me=(Ie=me.ensureFunctionName(!1))!=null?Ie:me}const{thisBinding:De,fnPath:Ue}=Se(me,ne,_e,pe);if(Ue.ensureBlock(),ae(Ue,"FunctionExpression"),!ne){const We=De?null:Ue.scope.generateUidIdentifier("arrowCheckId");return We&&Ue.parentPath.scope.push({id:We,init:A([])}),Ue.get("body").unshiftContainer("body",p(l(this.hub.addHelper("newArrowCheck"),[D(),f(We?We.name:De)]))),Ue.replaceWith(l(y(Ue.node,f("bind")),[We?f(We.name):D()])),Ue.get("callee.object")}return Ue}const de=(0,r.environmentVisitor)({CallExpression(_e,{allSuperCalls:pe}){_e.get("callee").isSuper()&&pe.push(_e)}});function Se(_e,pe=!0,ne=!0,me=!0){let Ie,De=_e.findParent(qe=>qe.isArrowFunctionExpression()?(Ie??(Ie=qe),!1):qe.isFunction()||qe.isProgram()||qe.isClassProperty({static:!1})||qe.isClassPrivateProperty({static:!1}));const Ue=De.isClassMethod({kind:"constructor"});if(De.isClassProperty()||De.isClassPrivateProperty())if(Ie)De=Ie;else if(ne)_e.replaceWith(l(i([],C(_e.node)),[])),De=_e.get("callee"),_e=De.get("body");else throw _e.buildCodeFrameError("Unable to transform arrow inside class property");const{thisPaths:We,argumentsPaths:lt,newTargetPaths:gt,superProps:Ge,superCalls:vt}=Te(_e);if(Ue&&vt.length>0){if(!ne)throw vt[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!me)throw vt[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const qe=[];De.traverse(de,{allSuperCalls:qe});const he=ze(De);qe.forEach($e=>{const Ze=f(he);Ze.loc=$e.node.callee.loc,$e.get("callee").replaceWith(Ze)})}if(lt.length>0){const qe=re(De,"arguments",()=>{const he=()=>f("arguments");return De.scope.path.isProgram()?c(s("===",L("typeof",he()),k("undefined")),De.scope.buildUndefinedNode(),he()):he()});lt.forEach(he=>{const $e=f(qe);$e.loc=he.node.loc,he.replaceWith($e)})}if(gt.length>0){const qe=re(De,"newtarget",()=>m(f("new"),f("target")));gt.forEach(he=>{const $e=f(qe);$e.loc=he.node.loc,he.replaceWith($e)})}if(Ge.length>0){if(!ne)throw Ge[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");Ge.reduce((he,$e)=>he.concat(xe($e)),[]).forEach(he=>{const $e=he.node.computed?"":he.get("property").node.name,Ze=he.parentPath,Ee=Ze.isAssignmentExpression({left:he.node}),Xe=Ze.isCallExpression({callee:he.node}),it=Ze.isTaggedTemplateExpression({tag:he.node}),st=je(De,Ee,$e),mt=[];if(he.node.computed&&mt.push(he.get("property").node),Ee){const Ut=Ze.node.right;mt.push(Ut)}const Tt=l(f(st),mt);Xe?(Ze.unshiftContainer("arguments",D()),he.replaceWith(y(Tt,f("call"))),We.push(Ze.get("arguments.0"))):Ee?Ze.replaceWith(Tt):it?(he.replaceWith(l(y(Tt,f("bind"),!1),[D()])),We.push(he.get("arguments.0"))):he.replaceWith(Tt)})}let Le;return(We.length>0||!pe)&&(Le=He(De,Ue),(pe||Ue&&Be(De))&&(We.forEach(qe=>{const he=qe.isJSX()?h(Le):f(Le);he.loc=qe.node.loc,qe.replaceWith(he)}),pe||(Le=null))),{thisBinding:Le,fnPath:_e}}function Ce(_e){return x.includes(_e)}function xe(_e){if(_e.parentPath.isAssignmentExpression()&&_e.parentPath.node.operator!=="="){const ne=_e.parentPath,me=ne.node.operator.slice(0,-1),Ie=ne.node.right,De=Ce(me);if(_e.node.computed){const Ue=_e.scope.generateDeclaredUidIdentifier("tmp"),{object:We,property:lt}=_e.node;ne.get("left").replaceWith(y(We,a("=",Ue,lt),!0)),ne.get("right").replaceWith(pe(De?"=":me,y(We,f(Ue.name),!0),Ie))}else{const Ue=_e.node.object,We=_e.node.property;ne.get("left").replaceWith(y(Ue,We)),ne.get("right").replaceWith(pe(De?"=":me,y(Ue,f(We.name)),Ie))}return De?ne.replaceWith(v(me,ne.node.left,ne.node.right)):ne.node.operator="=",[ne.get("left"),ne.get("right").get("left")]}else if(_e.parentPath.isUpdateExpression()){const ne=_e.parentPath,me=_e.scope.generateDeclaredUidIdentifier("tmp"),Ie=_e.node.computed?_e.scope.generateDeclaredUidIdentifier("prop"):null,De=[a("=",me,y(_e.node.object,Ie?a("=",Ie,_e.node.property):_e.node.property,_e.node.computed)),a("=",y(_e.node.object,Ie?f(Ie.name):_e.node.property,_e.node.computed),s(_e.parentPath.node.operator[0],f(me.name),T(1)))];_e.parentPath.node.prefix||De.push(f(me.name)),ne.replaceWith(_(De));const Ue=ne.get("expressions.0.right"),We=ne.get("expressions.1.left");return[Ue,We]}return[_e];function pe(ne,me,Ie){return ne==="="?a("=",me,Ie):s(ne,me,Ie)}}function Be(_e){return _e.isClassMethod()&&!!_e.parentPath.parentPath.node.superClass}const Re=(0,r.environmentVisitor)({CallExpression(_e,{supers:pe,thisBinding:ne}){_e.get("callee").isSuper()&&(pe.has(_e.node)||(pe.add(_e.node),_e.replaceWithMultiple([_e.node,a("=",f(ne),f("this"))])))}});function He(_e,pe){return re(_e,"this",ne=>{if(!pe||!Be(_e))return D();_e.traverse(Re,{supers:new WeakSet,thisBinding:ne})})}function ze(_e){return re(_e,"supercall",()=>{const pe=_e.scope.generateUidIdentifier("args");return i([E(pe)],l(M(),[I(f(pe.name))]))})}function je(_e,pe,ne){return re(_e,`superprop_${pe?"set":"get"}:${ne||""}`,()=>{const Ie=[];let De;if(ne)De=y(M(),f(ne));else{const Ue=_e.scope.generateUidIdentifier("prop");Ie.unshift(Ue),De=y(M(),f(Ue.name),!0)}if(pe){const Ue=_e.scope.generateUidIdentifier("value");Ie.push(Ue),De=a("=",De,f(Ue.name))}return i(Ie,De)})}function re(_e,pe,ne){const me="binding:"+pe;let Ie=_e.getData(me);if(!Ie){const De=_e.scope.generateUidIdentifier(pe);Ie=De.name,_e.setData(me,Ie),_e.scope.push({id:De,init:ne(Ie)})}return Ie}const ue=(0,r.environmentVisitor)({ThisExpression(_e,{thisPaths:pe}){pe.push(_e)},JSXIdentifier(_e,{thisPaths:pe}){_e.node.name==="this"&&(!_e.parentPath.isJSXMemberExpression({object:_e.node})&&!_e.parentPath.isJSXOpeningElement({name:_e.node})||pe.push(_e))},CallExpression(_e,{superCalls:pe}){_e.get("callee").isSuper()&&pe.push(_e)},MemberExpression(_e,{superProps:pe}){_e.get("object").isSuper()&&pe.push(_e)},Identifier(_e,{argumentsPaths:pe}){if(!_e.isReferencedIdentifier({name:"arguments"}))return;let ne=_e.scope;do{if(ne.hasOwnBinding("arguments")){ne.rename("arguments");return}if(ne.path.isFunction()&&!ne.path.isArrowFunctionExpression())break}while(ne=ne.parent);pe.push(_e)},MetaProperty(_e,{newTargetPaths:pe}){_e.get("meta").isIdentifier({name:"new"})&&_e.get("property").isIdentifier({name:"target"})&&pe.push(_e)}});function Te(_e){const pe=[],ne=[],me=[],Ie=[],De=[];return _e.traverse(ue,{thisPaths:pe,argumentsPaths:ne,newTargetPaths:me,superProps:Ie,superCalls:De}),{thisPaths:pe,argumentsPaths:ne,newTargetPaths:me,superProps:Ie,superCalls:De}}function ke(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const _e=this.get("declaration");if(this.isExportDefaultDeclaration()){const Ie=_e.isFunctionDeclaration()||_e.isClassDeclaration(),De=_e.isFunctionExpression()||_e.isClassExpression(),Ue=_e.isScope()?_e.scope.parent:_e.scope;let We=_e.node.id,lt=!1;We?De&&Ue.hasBinding(We.name)&&(lt=!0,We=Ue.generateUidIdentifier(We.name)):(lt=!0,We=Ue.generateUidIdentifier("default"),(Ie||De)&&(_e.node.id=X(We)));const gt=Ie?_e.node:U("var",[N(X(We),_e.node)]),Ge=j(null,[F(X(We),f("default"))]);return this.insertAfter(Ge),this.replaceWith(gt),lt&&Ue.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const pe=_e.getOuterBindingIdentifiers(),ne=Object.keys(pe).map(Ie=>F(f(Ie),f(Ie))),me=j(null,ne);return this.insertAfter(me),this.replaceWith(_e.node),this}const Oe={"ReferencedIdentifier|BindingIdentifier"(_e,pe){_e.node.name===pe.name&&(pe.needsRename=!0,_e.stop())},Scope(_e,pe){_e.scope.hasOwnBinding(pe.name)&&_e.skip()}};function Me(_e){if(this.node.id)return this;const pe=V(this.node,this.parent);if(pe==null)return this;let{name:ne}=pe;if(!_e&&/[\uD800-\uDFFF]/.test(ne)||ne.startsWith("get ")||ne.startsWith("set "))return null;ne=q(ne.replace(/[/ ]/g,"_"));const me=f(ne);R(me,pe.originalNode);const Ie={needsRename:!1,name:ne},{scope:De}=this,Ue=De.getOwnBinding(ne);if(Ue?Ue.kind==="param"&&(Ie.needsRename=!0):(De.parent.hasBinding(ne)||De.hasGlobal(ne))&&this.traverse(Oe,Ie),!Ie.needsRename)return this.node.id=me,De.getProgramParent().references[me.name]=!0,this;if(De.hasBinding(me.name)&&!De.hasGlobal(me.name))return De.rename(me.name),this.node.id=me,De.getProgramParent().references[me.name]=!0,this;if(!$(this.node))return null;const We=De.generateUidIdentifier(me.name),lt=[];for(let Ge=0,vt=Ke(this.node);Ge<vt;Ge++)lt.push(De.generateUidIdentifier("x"));const gt=t.default.expression.ast`
(function (${We}) {
function ${me}(${lt}) {
return ${X(We)}.apply(this, arguments);
}
${X(me)}.toString = function () {
return ${X(We)}.toString();
}
return ${X(me)};
})(${C(this.node)})
`;return this.replaceWith(gt)[0].get("arguments.0")}function Ke(_e){const pe=_e.params.findIndex(ne=>z(ne)||Q(ne));return pe===-1?_e.params.length:pe}return vi}var Kg={},VO;function cU(){return VO||(VO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._guessExecutionStatusRelativeTo=M,e._resolve=$,e.canHaveVariableDeclarationOrExpression=v,e.canSwapBetweenExpressionAndStatement=x,e.getSource=A,e.isCompletionRecord=y,e.isConstantExpression=z,e.isInStrictMode=Q,e.isNodeType=h,e.isStatementOrBlock=m,e.isStatic=d,e.matchesPattern=f,e.referencesImport=T,e.resolve=q,e.willIMaybeExecuteBefore=E;var t=It();const{STATEMENT_OR_BLOCK_KEYS:r,VISITOR_KEYS:n,isBlockStatement:i,isExpression:a,isIdentifier:s,isLiteral:o,isStringLiteral:l,isType:c,matchesPattern:p}=t;function f(V,X){return p(this.node,V,X)}e.has=function(X){var U;const N=(U=this.node)==null?void 0:U[X];return N&&Array.isArray(N)?!!N.length:!!N};function d(){return this.scope.isStatic(this.node)}e.is=e.has,e.isnt=function(X){return!this.has(X)},e.equals=function(X,U){return this.node[X]===U};function h(V){return c(this.type,V)}function v(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function x(V){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?i(V):this.isBlockStatement()?a(V):!1}function y(V){let X=this,U=!0;do{const{type:N,container:j}=X;if(!U&&(X.isFunction()||N==="StaticBlock"))return!!V;if(U=!1,Array.isArray(j)&&X.key!==j.length-1)return!1}while((X=X.parentPath)&&!X.isProgram()&&!X.isDoExpression());return!0}function m(){return this.parentPath.isLabeledStatement()||i(this.container)?!1:r.includes(this.key)}function T(V,X){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===X||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?l(this.node.property,{value:X}):this.node.property.name===X)){const F=this.get("object");return F.isReferencedIdentifier()&&F.referencesImport(V,"*")}return!1}const U=this.scope.getBinding(this.node.name);if((U==null?void 0:U.kind)!=="module")return!1;const N=U.path,j=N.parentPath;if(!j.isImportDeclaration())return!1;if(j.node.source.value===V){if(!X)return!0}else return!1;return!!(N.isImportDefaultSpecifier()&&X==="default"||N.isImportNamespaceSpecifier()&&X==="*"||N.isImportSpecifier()&&s(N.node.imported,{name:X}))}function A(){const V=this.node;if(V.end){const X=this.hub.getCode();if(X)return X.slice(V.start,V.end)}return""}function E(V){return this._guessExecutionStatusRelativeTo(V)!=="after"}function P(V){return V.isProgram()?V:(V.parentPath.scope.getFunctionParent()||V.parentPath.scope.getProgramParent()).path}function _(V,X){switch(V){case"LogicalExpression":return X==="right";case"ConditionalExpression":case"IfStatement":return X==="consequent"||X==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return X==="body";case"ForStatement":return X==="body"||X==="update";case"SwitchStatement":return X==="cases";case"TryStatement":return X==="handler";case"AssignmentPattern":return X==="right";case"OptionalMemberExpression":return X==="property";case"OptionalCallExpression":return X==="arguments";default:return!1}}function I(V,X){for(let U=0;U<X;U++){const N=V[U];if(_(N.parent.type,N.parentKey))return!0}return!1}const k=Symbol();function M(V){return D(this,V,new Map)}function D(V,X,U){const N={this:P(V),target:P(X)};if(N.target.node!==N.this.node)return L(V,N.target,U);const j={target:X.getAncestry(),this:V.getAncestry()};if(j.target.includes(V))return"after";if(j.this.includes(X))return"before";let F;const R={target:0,this:0};for(;!F&&R.this<j.this.length;){const ae=j.this[R.this];R.target=j.target.indexOf(ae),R.target>=0?F=ae:R.this++}if(!F)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(I(j.this,R.this-1)||I(j.target,R.target-1))return"unknown";const J={this:j.this[R.this-1],target:j.target[R.target-1]};if(J.target.listKey&&J.this.listKey&&J.target.container===J.this.container)return J.target.key>J.this.key?"before":"after";const se=n[F.type],ie={this:se.indexOf(J.this.parentKey),target:se.indexOf(J.target.parentKey)};return ie.target>ie.this?"before":"after"}function C(V,X,U){if(X.isFunctionDeclaration()){if(X.parentPath.isExportDeclaration())return"unknown"}else return D(V,X,U)==="before"?"before":"unknown";const N=X.scope.getBinding(X.node.id.name);if(!N.references)return"before";const j=N.referencePaths;let F;for(const R of j){if(!!R.find(ie=>ie.node===X.node))continue;if(R.key!=="callee"||!R.parentPath.isCallExpression())return"unknown";const se=D(V,R,U);if(F&&F!==se)return"unknown";F=se}return F}function L(V,X,U){let N=U.get(V.node),j;if(!N)U.set(V.node,N=new Map);else if(j=N.get(X.node))return j===k?"unknown":j;N.set(X.node,k);const F=C(V,X,U);return N.set(X.node,F),F}function q(V,X){return $.call(this,V,X)||this}function $(V,X){var U;if(!((U=X)!=null&&U.includes(this)))if(X=X||[],X.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(V,X)}else if(this.isReferencedIdentifier()){const N=this.scope.getBinding(this.node.name);if(!N||!N.constant||N.kind==="module")return;if(N.path!==this){const j=N.path.resolve(V,X);return this.find(F=>F.node===j.node)?void 0:j}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(V,X);if(V&&this.isMemberExpression()){const N=this.toComputedKey();if(!o(N))return;const j=N.value,F=this.get("object").resolve(V,X);if(F.isObjectExpression()){const R=F.get("properties");for(const J of R){if(!J.isProperty())continue;const se=J.get("key");let ie=J.isnt("computed")&&se.isIdentifier({name:j});if(ie=ie||se.isLiteral({value:j}),ie)return J.get("value").resolve(V,X)}}else if(F.isArrayExpression()&&!isNaN(+j)){const J=F.get("elements")[j];if(J)return J.resolve(V,X)}}}}function z(){if(this.isIdentifier()){const V=this.scope.getBinding(this.node.name);return V?V.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(V=>V.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:V}=this.node;return V!=="in"&&V!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function Q(){return!!(this.isProgram()?this:this.parentPath).find(U=>{if(U.isProgram({sourceType:"module"})||U.isClass())return!0;if(U.isArrowFunctionExpression()&&!U.get("body").isBlockStatement())return!1;let N;if(U.isFunction())N=U.node.body;else if(U.isProgram())N=U.node;else return!1;for(const j of N.directives)if(j.value.value==="use strict")return!0;return!1})}})(Kg)),Kg}var Cr={},KO;function fU(){if(KO)return Cr;KO=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr._getKey=M,Cr._getPattern=D,Cr.get=k,Cr.getAllNextSiblings=_,Cr.getAllPrevSiblings=I,Cr.getAssignmentIdentifiers=C,Cr.getBindingIdentifierPaths=$,Cr.getBindingIdentifiers=L,Cr.getCompletionRecords=T,Cr.getNextSibling=P,Cr.getOpposite=f,Cr.getOuterBindingIdentifierPaths=z,Cr.getOuterBindingIdentifiers=q,Cr.getPrevSibling=E,Cr.getSibling=A;var e=Cs(),t=It();const{getAssignmentIdentifiers:r,getBindingIdentifiers:n,getOuterBindingIdentifiers:i,numericLiteral:a,unaryExpression:s}=t,o=0,l=1;function c(Q){return{type:o,path:Q}}function p(Q){return{type:l,path:Q}}function f(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function d(Q,V,X){return Q&&V.push(...m(Q,X)),V}function h(Q,V,X){let U=[];for(let N=0;N<Q.length;N++){const j=Q[N],F=m(j,X),R=[],J=[];for(const se of F)se.type===o&&R.push(se),se.type===l&&J.push(se);R.length&&(U=R),V.push(...J)}return V.push(...U),V}function v(Q){Q.forEach(V=>{V.type=l})}function x(Q,V){Q.forEach(X=>{X.path.isBreakStatement({label:null})&&(V?X.path.replaceWith(s("void",a(0))):X.path.remove())})}function y(Q,V){const X=[];if(V.canHaveBreak){let U=[];for(let N=0;N<Q.length;N++){const j=Q[N],F=Object.assign({},V,{inCaseClause:!1});j.isBlockStatement()&&(V.inCaseClause||V.shouldPopulateBreak)?F.shouldPopulateBreak=!0:F.shouldPopulateBreak=!1;const R=m(j,F);if(R.length>0&&R.every(J=>J.type===l)){U.length>0&&R.every(J=>J.path.isBreakStatement({label:null}))?(v(U),X.push(...U),U.some(J=>J.path.isDeclaration())&&(X.push(...R),V.shouldPreserveBreak||x(R,!0)),V.shouldPreserveBreak||x(R,!1)):(X.push(...R),!V.shouldPopulateBreak&&!V.shouldPreserveBreak&&x(R,!0));break}if(N===Q.length-1)X.push(...R);else{U=[];for(let J=0;J<R.length;J++){const se=R[J];se.type===l&&X.push(se),se.type===o&&U.push(se)}}}}else if(Q.length)for(let U=Q.length-1;U>=0;U--){const N=m(Q[U],V);if(N.length>1||N.length===1&&!N[0].path.isVariableDeclaration()&&!N[0].path.isEmptyStatement()){X.push(...N);break}}return X}function m(Q,V){let X=[];if(Q.isIfStatement())X=d(Q.get("consequent"),X,V),X=d(Q.get("alternate"),X,V);else{if(Q.isDoExpression()||Q.isFor()||Q.isWhile()||Q.isLabeledStatement())return d(Q.get("body"),X,V);if(Q.isProgram()||Q.isBlockStatement())return y(Q.get("body"),V);if(Q.isFunction())return m(Q.get("body"),V);if(Q.isTryStatement())X=d(Q.get("block"),X,V),X=d(Q.get("handler"),X,V);else{if(Q.isCatchClause())return d(Q.get("body"),X,V);if(Q.isSwitchStatement())return h(Q.get("cases"),X,V);if(Q.isSwitchCase())return y(Q.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:V.shouldPreserveBreak});Q.isBreakStatement()?X.push(p(Q)):X.push(c(Q))}}return X}function T(Q=!1){return m(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:Q}).map(X=>X.path)}function A(Q){return e.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:Q}).setContext(this.context)}function E(){return this.getSibling(this.key-1)}function P(){return this.getSibling(this.key+1)}function _(){let Q=this.key,V=this.getSibling(++Q);const X=[];for(;V.node;)X.push(V),V=this.getSibling(++Q);return X}function I(){let Q=this.key,V=this.getSibling(--Q);const X=[];for(;V.node;)X.push(V),V=this.getSibling(--Q);return X}function k(Q,V=!0){V===!0&&(V=this.context);const X=Q.split(".");return X.length===1?M.call(this,Q,V):D.call(this,X,V)}function M(Q,V){const X=this.node,U=X[Q];return Array.isArray(U)?U.map((N,j)=>e.default.get({listKey:Q,parentPath:this,parent:X,container:U,key:j}).setContext(V)):e.default.get({parentPath:this,parent:X,container:X,key:Q}).setContext(V)}function D(Q,V){let X=this;for(const U of Q)U==="."?X=X.parentPath:Array.isArray(X)?X=X[U]:X=X.get(U,V);return X}function C(){return r(this.node)}function L(Q){return n(this.node,Q)}function q(Q){return i(this.node,Q)}function $(Q=!1,V=!1){const U=[this],N=Object.create(null);for(;U.length;){const j=U.shift();if(!j||!j.node)continue;const F=n.keys[j.node.type];if(j.isIdentifier()){Q?(N[j.node.name]=N[j.node.name]||[]).push(j):N[j.node.name]=j;continue}if(j.isExportDeclaration()){const R=j.get("declaration");R.isDeclaration()&&U.push(R);continue}if(V){if(j.isFunctionDeclaration()){U.push(j.get("id"));continue}if(j.isFunctionExpression())continue}if(F)for(let R=0;R<F.length;R++){const J=F[R],se=j.get(J);Array.isArray(se)?U.push(...se):se.node&&U.push(se)}}return N}function z(Q=!1){return this.getBindingIdentifierPaths(Q,!0)}return Cr}var hl={},zO;function pU(){if(zO)return hl;zO=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.addComment=a,hl.addComments=s,hl.shareCommentsWithSiblings=n;var e=It();const{addComment:t,addComments:r}=e;function n(){if(typeof this.key=="string")return;const o=this.node;if(!o)return;const l=o.trailingComments,c=o.leadingComments;if(!l&&!c)return;const p=this.getSibling(this.key-1),f=this.getSibling(this.key+1),d=!!p.node,h=!!f.node;d&&(c&&p.addComments("trailing",i(c,p.node.trailingComments)),l&&!h&&p.addComments("trailing",l)),h&&(l&&f.addComments("leading",i(l,f.node.leadingComments)),c&&!d&&f.addComments("leading",c))}function i(o,l){if(!(l!=null&&l.length))return o;const c=new Set(l);return o.filter(p=>!c.has(p))}function a(o,l,c){t(this.node,o,l,c)}function s(o,l){r(this.node,o,l)}return hl}var WO;function Cs(){if(WO)return Qn;WO=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.default=Qn.SHOULD_STOP=Qn.SHOULD_SKIP=Qn.REMOVED=void 0;var e=Yj(),t=I7(),r=tp(),n=mR(),i=It(),a=i,s=bu(),o=PR(),l=X$(),c=Q$(),p=_R(),f=nU(),d=uU(),h=cU(),v=oi(),x=v,y=I1(),m=k1(),T=fU(),A=pU(),E=hR();const{validate:P}=i,_=t("babel");Qn.REMOVED=1,Qn.SHOULD_STOP=2,Qn.SHOULD_SKIP=4;const I=Qn.default=class IR{constructor(D,C){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=C,this.hub=D,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(D){D?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(D){D?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(D){D?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:D,parentPath:C,parent:L,container:q,listKey:$,key:z}){if(!D&&C&&(D=C.hub),!L)throw new Error("To get a node path the parent needs to exist");const Q=q[z],V=s.getOrCreateCachedPaths(L,C);let X=V.get(Q);return X||(X=new IR(D,L),Q&&V.set(Q,X)),v.setup.call(X,C,q,$,z),X}getScope(D){return this.isScope()?new n.default(this):D}setData(D,C){return this.data==null&&(this.data=Object.create(null)),this.data[D]=C}getData(D,C){this.data==null&&(this.data=Object.create(null));let L=this.data[D];return L===void 0&&C!==void 0&&(L=this.data[D]=C),L}hasNode(){return this.node!=null}buildCodeFrameError(D,C=SyntaxError){return this.hub.buildError(this.node,D,C)}traverse(D,C){(0,r.default)(this.node,D,this.scope,C,this)}set(D,C){P(this.node,D,C),this.node[D]=C}getPathLocation(){const D=[];let C=this;do{let L=C.key;C.inList&&(L=`${C.listKey}[${L}]`),D.unshift(L)}while(C=C.parentPath);return D.join(".")}debug(D){_.enabled&&_(`${this.getPathLocation()} ${this.type}: ${D}`)}toString(){return(0,o.default)(this.node).code}get inList(){return!!this.listKey}set inList(D){D||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},k={findParent:l.findParent,find:l.find,getFunctionParent:l.getFunctionParent,getStatementParent:l.getStatementParent,getEarliestCommonAncestorFrom:l.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:l.getDeepestCommonAncestorFrom,getAncestry:l.getAncestry,isAncestor:l.isAncestor,isDescendant:l.isDescendant,inType:l.inType,getTypeAnnotation:c.getTypeAnnotation,isBaseType:c.isBaseType,couldBeBaseType:c.couldBeBaseType,baseTypeStrictlyMatches:c.baseTypeStrictlyMatches,isGenericType:c.isGenericType,replaceWithMultiple:p.replaceWithMultiple,replaceWithSourceString:p.replaceWithSourceString,replaceWith:p.replaceWith,replaceExpressionWithStatements:p.replaceExpressionWithStatements,replaceInline:p.replaceInline,evaluateTruthy:f.evaluateTruthy,evaluate:f.evaluate,toComputedKey:d.toComputedKey,ensureBlock:d.ensureBlock,unwrapFunctionEnvironment:d.unwrapFunctionEnvironment,arrowFunctionToExpression:d.arrowFunctionToExpression,splitExportDeclaration:d.splitExportDeclaration,ensureFunctionName:d.ensureFunctionName,matchesPattern:h.matchesPattern,isStatic:h.isStatic,isNodeType:h.isNodeType,canHaveVariableDeclarationOrExpression:h.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:h.canSwapBetweenExpressionAndStatement,isCompletionRecord:h.isCompletionRecord,isStatementOrBlock:h.isStatementOrBlock,referencesImport:h.referencesImport,getSource:h.getSource,willIMaybeExecuteBefore:h.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:h._guessExecutionStatusRelativeTo,resolve:h.resolve,isConstantExpression:h.isConstantExpression,isInStrictMode:h.isInStrictMode,isDenylisted:x.isDenylisted,visit:x.visit,skip:x.skip,skipKey:x.skipKey,stop:x.stop,setContext:x.setContext,requeue:x.requeue,requeueComputedKeyAndDecorators:x.requeueComputedKeyAndDecorators,remove:y.remove,insertBefore:m.insertBefore,insertAfter:m.insertAfter,unshiftContainer:m.unshiftContainer,pushContainer:m.pushContainer,getOpposite:T.getOpposite,getCompletionRecords:T.getCompletionRecords,getSibling:T.getSibling,getPrevSibling:T.getPrevSibling,getNextSibling:T.getNextSibling,getAllNextSiblings:T.getAllNextSiblings,getAllPrevSiblings:T.getAllPrevSiblings,get:T.get,getAssignmentIdentifiers:T.getAssignmentIdentifiers,getBindingIdentifiers:T.getBindingIdentifiers,getOuterBindingIdentifiers:T.getOuterBindingIdentifiers,getBindingIdentifierPaths:T.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:T.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:A.shareCommentsWithSiblings,addComment:A.addComment,addComments:A.addComments};Object.assign(I.prototype,k),I.prototype.arrowFunctionToShadowed=d.arrowFunctionToShadowed,Object.assign(I.prototype,{has:h.has,is:h.is,isnt:h.isnt,equals:h.equals,hoist:m.hoist,updateSiblingKeys:m.updateSiblingKeys,call:x.call,isBlacklisted:x.isBlacklisted,setScope:x.setScope,resync:x.resync,popContext:x.popContext,pushContext:x.pushContext,setup:x.setup,setKey:x.setKey}),I.prototype._guessExecutionStatusRelativeToDifferentFunctions=h._guessExecutionStatusRelativeTo,I.prototype._guessExecutionStatusRelativeToDifferentFunctions=h._guessExecutionStatusRelativeTo,Object.assign(I.prototype,{_getTypeAnnotation:c._getTypeAnnotation,_replaceWith:p._replaceWith,_resolve:h._resolve,_call:x._call,_resyncParent:x._resyncParent,_resyncKey:x._resyncKey,_resyncList:x._resyncList,_resyncRemoved:x._resyncRemoved,_getQueueContexts:x._getQueueContexts,_removeFromScope:y._removeFromScope,_callRemovalHooks:y._callRemovalHooks,_remove:y._remove,_markRemoved:y._markRemoved,_assertUnremoved:y._assertUnremoved,_containerInsert:m._containerInsert,_containerInsertBefore:m._containerInsertBefore,_containerInsertAfter:m._containerInsertAfter,_verifyNodeList:m._verifyNodeList,_getKey:T._getKey,_getPattern:T._getPattern});for(const M of a.TYPES){const D=`is${M}`,C=a[D];I.prototype[D]=function(L){return C(this.node,L)},I.prototype[`assert${M}`]=function(L){if(!C(this.node,L))throw new TypeError(`Expected node path of type ${M}`)}}Object.assign(I.prototype,E);for(const M of Object.keys(e))M.startsWith("_")||a.TYPES.includes(M)||a.TYPES.push(M);return Qn}var Ac={},HO;function kR(){if(HO)return Ac;HO=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.default=void 0;class e{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(r,n,i=TypeError){return new i(n)}}return Ac.default=e,Ac}var YO;function dU(){if(YO)return ac;YO=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.default=void 0;var e=Cs(),t=It(),r=oi(),n=kR();const{VISITOR_KEYS:i}=t;class a{constructor(o,l,c,p){this.queue=null,this.priorityQueue=null,this.parentPath=p,this.scope=o,this.state=c,this.opts=l}shouldVisit(o){const l=this.opts;if(l.enter||l.exit||l[o.type])return!0;const c=i[o.type];if(!(c!=null&&c.length))return!1;for(const p of c)if(o[p])return!0;return!1}create(o,l,c,p){const{parentPath:f}=this,d=f==null?o.type==="Program"||o.type==="File"?new n.default:void 0:f.hub;return e.default.get({parentPath:f,parent:o,container:l,key:c,listKey:p,hub:d})}maybeQueue(o,l){this.queue&&(l?this.queue.push(o):this.priorityQueue.push(o))}visitMultiple(o,l,c){if(o.length===0)return!1;const p=[];for(let f=0;f<o.length;f++){const d=o[f];d&&this.shouldVisit(d)&&p.push(this.create(l,o,f,c))}return this.visitQueue(p)}visitSingle(o,l){return this.shouldVisit(o[l])?this.visitQueue([this.create(o,o,l)]):!1}visitQueue(o){this.queue=o,this.priorityQueue=[];const l=new WeakSet;let c=!1,p=0;for(;p<o.length;){const f=o[p];if(p++,r.resync.call(f),(f.contexts.length===0||f.contexts[f.contexts.length-1]!==this)&&r.pushContext.call(f,this),f.key===null)continue;const{node:d}=f;if(!l.has(d)){if(d&&l.add(d),f.visit()){c=!0;break}if(this.priorityQueue.length&&(c=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=o,c))break}}for(let f=0;f<p;f++)r.popContext.call(o[f]);return this.queue=null,c}visit(o,l){const c=o[l];return c?Array.isArray(c)?this.visitMultiple(c,o,l):this.visitSingle(o,l):!1}}return ac.default=a,ac}var XO;function M1(){if(XO)return xp;XO=1,Object.defineProperty(xp,"__esModule",{value:!0}),xp.traverseNode=n;var e=dU();Cs();var t=It();oi();const{VISITOR_KEYS:r}=t;function n(i,a,s,o,l,c,p){const f=r[i.type];if(!f)return!1;const d=new e.default(s,a,o,l);if(p)return c!=null&&c[l.parentKey]?!1:d.visitQueue([l]);for(const h of f)if(!(c!=null&&c[h])&&d.visit(i,h))return!0;return!1}return xp}var GO;function oi(){if(GO)return Ht;GO=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht._call=a,Ht._forceSetScope=d,Ht._getQueueContexts=D,Ht._resyncKey=m,Ht._resyncList=T,Ht._resyncParent=y,Ht._resyncRemoved=A,Ht.call=i,Ht.isDenylisted=s,Ht.popContext=E,Ht.pushContext=P,Ht.requeue=k,Ht.requeueComputedKeyAndDecorators=M,Ht.resync=x,Ht.setContext=v,Ht.setKey=I,Ht.setScope=h,Ht.setup=_,Ht.skip=c,Ht.skipKey=p,Ht.stop=f,Ht.visit=l;var e=M1(),t=Cs(),r=I1(),n=It();function i(C){const L=this.opts;if(this.debug(C),this.node&&a.call(this,L[C]))return!0;if(this.node){var q;return a.call(this,(q=L[this.node.type])==null?void 0:q[C])}return!1}function a(C){if(!C)return!1;for(const L of C){if(!L)continue;const q=this.node;if(!q)return!0;const $=L.call(this.state,this,this.state);if($&&typeof $=="object"&&typeof $.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if($)throw new Error(`Unexpected return value from visitor method ${L}`);if(this.node!==q||this._traverseFlags>0)return!0}return!1}function s(){var C;const L=(C=this.opts.denylist)!=null?C:this.opts.blacklist;return L==null?void 0:L.includes(this.node.type)}Ht.isBlacklisted=s;function o(C,L){C.context!==L&&(C.context=L,C.state=L.state,C.opts=L.opts)}function l(){var C,L;if(!this.node||this.isDenylisted()||(C=(L=this.opts).shouldSkip)!=null&&C.call(L,this))return!1;const q=this.context;return this.shouldSkip||i.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(o(this,q),this.debug("Recursing into..."),this.shouldStop=(0,e.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),o(this,q),i.call(this,"exit"),this.shouldStop)}function c(){this.shouldSkip=!0}function p(C){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[C]=!0}function f(){this._traverseFlags|=t.SHOULD_SKIP|t.SHOULD_STOP}function d(){var C;let L=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&L.isMethod()||this.key==="discriminant"&&L.isSwitchStatement())&&(L=L.parentPath);let q;for(;L&&!q;)q=L.scope,L=L.parentPath;this.scope=this.getScope(q),(C=this.scope)==null||C.init()}function h(){var C,L;if((C=this.opts)!=null&&C.noScope)return;let q=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&q.isMethod()||this.key==="discriminant"&&q.isSwitchStatement())&&(q=q.parentPath);let $;for(;q&&!$;){var z;if((z=q.opts)!=null&&z.noScope)return;$=q.scope,q=q.parentPath}this.scope=this.getScope($),(L=this.scope)==null||L.init()}function v(C){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,C&&(this.context=C,this.state=C.state,this.opts=C.opts),h.call(this),this}function x(){this.removed||(y.call(this),T.call(this),m.call(this))}function y(){this.parentPath&&(this.parent=this.parentPath.node)}function m(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let C=0;C<this.container.length;C++)if(this.container[C]===this.node){I.call(this,C);return}}else for(const C of Object.keys(this.container))if(this.container[C]===this.node){I.call(this,C);return}this.key=null}}function T(){if(!this.parent||!this.inList)return;const C=this.parent[this.listKey];this.container!==C&&(this.container=C||null)}function A(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&r._markRemoved.call(this)}function E(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function P(C){this.contexts.push(C),this.setContext(C)}function _(C,L,q,$){this.listKey=q,this.container=L,this.parentPath=C||this.parentPath,I.call(this,$)}function I(C){var L;this.key=C,this.node=this.container[this.key],this.type=(L=this.node)==null?void 0:L.type}function k(C=this){if(C.removed)return;const L=this.contexts;for(const q of L)q.maybeQueue(C)}function M(){const{context:C,node:L}=this;if(!n.isPrivate(L)&&L.computed&&C.maybeQueue(this.get("key")),L.decorators)for(const q of this.get("decorators"))C.maybeQueue(q)}function D(){let C=this,L=this.contexts;for(;!L.length&&(C=C.parentPath,!!C);)L=C.contexts;return L}return Ht}var JO;function tp(){return JO||(JO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Hub",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"NodePath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.default}}),e.visitors=e.default=void 0,oi();var t=km();e.visitors=t;var r=It(),n=bu(),i=M1(),a=Cs(),s=mR(),o=kR();const{VISITOR_KEYS:l,removeProperties:c,traverseFast:p}=r;function f(d,h={},v,x,y,m){if(d){if(!h.noScope&&!v&&d.type!=="Program"&&d.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${d.type} node without passing scope and parentPath.`);if(!y&&m)throw new Error("visitSelf can only be used when providing a NodePath.");l[d.type]&&(t.explode(h),(0,i.traverseNode)(d,h,v,x,y,void 0,m))}}e.default=f,f.visitors=t,f.verify=t.verify,f.explode=t.explode,f.cheap=function(d,h){p(d,h)},f.node=function(d,h,v,x,y,m){(0,i.traverseNode)(d,h,v,x,y,m)},f.clearNode=function(d,h){c(d,h)},f.removeProperties=function(d,h){return p(d,f.clearNode,h),d},f.hasType=function(d,h,v){return v!=null&&v.includes(d.type)?!1:d.type===h?!0:p(d,function(x){if(v!=null&&v.includes(x.type))return p.skip;if(x.type===h)return p.stop})},f.cache=n})(Dg)),Dg}var hU=tp();const pye=Mt(hU);var mU=PR();const dye=Mt(mU);var hye=It(),yU=N1();function mye(e){return yU.parse(e,{sourceType:"module",plugins:["jsx","typescript","decorators-legacy","classProperties","objectRestSpread","functionBind","exportDefaultFrom","exportNamespaceFrom","dynamicImport","nullishCoalescingOperator","optionalChaining","asyncGenerators","bigInt","optionalCatchBinding","throwExpressions"]})}var zg,QO;function ln(){if(QO)return zg;QO=1;var e=Array.isArray;return zg=e,zg}var Wg,ZO;function NR(){if(ZO)return Wg;ZO=1;var e=typeof Pl=="object"&&Pl&&Pl.Object===Object&&Pl;return Wg=e,Wg}var Hg,eC;function Ni(){if(eC)return Hg;eC=1;var e=NR(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Hg=r,Hg}var Yg,tC;function rp(){if(tC)return Yg;tC=1;var e=Ni(),t=e.Symbol;return Yg=t,Yg}var Xg,rC;function gU(){if(rC)return Xg;rC=1;var e=rp(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(s){var o=r.call(s,i),l=s[i];try{s[i]=void 0;var c=!0}catch{}var p=n.call(s);return c&&(o?s[i]=l:delete s[i]),p}return Xg=a,Xg}var Gg,nC;function vU(){if(nC)return Gg;nC=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Gg=r,Gg}var Jg,iC;function da(){if(iC)return Jg;iC=1;var e=rp(),t=gU(),r=vU(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function s(o){return o==null?o===void 0?i:n:a&&a in Object(o)?t(o):r(o)}return Jg=s,Jg}var Qg,aC;function ha(){if(aC)return Qg;aC=1;function e(t){return t!=null&&typeof t=="object"}return Qg=e,Qg}var Zg,sC;function xu(){if(sC)return Zg;sC=1;var e=da(),t=ha(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Zg=n,Zg}var ev,oC;function L1(){if(oC)return ev;oC=1;var e=ln(),t=xu(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,s){if(e(a))return!1;var o=typeof a;return o=="number"||o=="symbol"||o=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||s!=null&&a in Object(s)}return ev=i,ev}var tv,lC;function Is(){if(lC)return tv;lC=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return tv=e,tv}var rv,uC;function j1(){if(uC)return rv;uC=1;var e=da(),t=Is(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function s(o){if(!t(o))return!1;var l=e(o);return l==n||l==i||l==r||l==a}return rv=s,rv}var nv,cC;function bU(){if(cC)return nv;cC=1;var e=Ni(),t=e["__core-js_shared__"];return nv=t,nv}var iv,fC;function xU(){if(fC)return iv;fC=1;var e=bU(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return iv=r,iv}var av,pC;function DR(){if(pC)return av;pC=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return av=r,av}var sv,dC;function TU(){if(dC)return sv;dC=1;var e=j1(),t=xU(),r=Is(),n=DR(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,l=s.toString,c=o.hasOwnProperty,p=RegExp("^"+l.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?p:a;return h.test(n(d))}return sv=f,sv}var ov,hC;function SU(){if(hC)return ov;hC=1;function e(t,r){return t==null?void 0:t[r]}return ov=e,ov}var lv,mC;function rl(){if(mC)return lv;mC=1;var e=TU(),t=SU();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return lv=r,lv}var uv,yC;function Dm(){if(yC)return uv;yC=1;var e=rl(),t=e(Object,"create");return uv=t,uv}var cv,gC;function EU(){if(gC)return cv;gC=1;var e=Dm();function t(){this.__data__=e?e(null):{},this.size=0}return cv=t,cv}var fv,vC;function PU(){if(vC)return fv;vC=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return fv=e,fv}var pv,bC;function AU(){if(bC)return pv;bC=1;var e=Dm(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var s=this.__data__;if(e){var o=s[a];return o===t?void 0:o}return n.call(s,a)?s[a]:void 0}return pv=i,pv}var dv,xC;function wU(){if(xC)return dv;xC=1;var e=Dm(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return dv=n,dv}var hv,TC;function _U(){if(TC)return hv;TC=1;var e=Dm(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return hv=r,hv}var mv,SC;function OU(){if(SC)return mv;SC=1;var e=EU(),t=PU(),r=AU(),n=wU(),i=_U();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var c=s[o];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,mv=a,mv}var yv,EC;function CU(){if(EC)return yv;EC=1;function e(){this.__data__=[],this.size=0}return yv=e,yv}var gv,PC;function R1(){if(PC)return gv;PC=1;function e(t,r){return t===r||t!==t&&r!==r}return gv=e,gv}var vv,AC;function Mm(){if(AC)return vv;AC=1;var e=R1();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return vv=t,vv}var bv,wC;function IU(){if(wC)return bv;wC=1;var e=Mm(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,s=e(a,i);if(s<0)return!1;var o=a.length-1;return s==o?a.pop():r.call(a,s,1),--this.size,!0}return bv=n,bv}var xv,_C;function kU(){if(_C)return xv;_C=1;var e=Mm();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return xv=t,xv}var Tv,OC;function NU(){if(OC)return Tv;OC=1;var e=Mm();function t(r){return e(this.__data__,r)>-1}return Tv=t,Tv}var Sv,CC;function DU(){if(CC)return Sv;CC=1;var e=Mm();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Sv=t,Sv}var Ev,IC;function Lm(){if(IC)return Ev;IC=1;var e=CU(),t=IU(),r=kU(),n=NU(),i=DU();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var c=s[o];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ev=a,Ev}var Pv,kC;function B1(){if(kC)return Pv;kC=1;var e=rl(),t=Ni(),r=e(t,"Map");return Pv=r,Pv}var Av,NC;function MU(){if(NC)return Av;NC=1;var e=OU(),t=Lm(),r=B1();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Av=n,Av}var wv,DC;function LU(){if(DC)return wv;DC=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return wv=e,wv}var _v,MC;function jm(){if(MC)return _v;MC=1;var e=LU();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return _v=t,_v}var Ov,LC;function jU(){if(LC)return Ov;LC=1;var e=jm();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ov=t,Ov}var Cv,jC;function RU(){if(jC)return Cv;jC=1;var e=jm();function t(r){return e(this,r).get(r)}return Cv=t,Cv}var Iv,RC;function BU(){if(RC)return Iv;RC=1;var e=jm();function t(r){return e(this,r).has(r)}return Iv=t,Iv}var kv,BC;function FU(){if(BC)return kv;BC=1;var e=jm();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return kv=t,kv}var Nv,FC;function F1(){if(FC)return Nv;FC=1;var e=MU(),t=jU(),r=RU(),n=BU(),i=FU();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var c=s[o];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Nv=a,Nv}var Dv,qC;function MR(){if(qC)return Dv;qC=1;var e=F1(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var s=arguments,o=i?i.apply(this,s):s[0],l=a.cache;if(l.has(o))return l.get(o);var c=n.apply(this,s);return a.cache=l.set(o,c)||l,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Dv=r,Dv}var Mv,$C;function qU(){if($C)return Mv;$C=1;var e=MR(),t=500;function r(n){var i=e(n,function(s){return a.size===t&&a.clear(),s}),a=i.cache;return i}return Mv=r,Mv}var Lv,UC;function $U(){if(UC)return Lv;UC=1;var e=qU(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(s,o,l,c){a.push(l?c.replace(r,"$1"):o||s)}),a});return Lv=n,Lv}var jv,VC;function q1(){if(VC)return jv;VC=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return jv=e,jv}var Rv,KC;function UU(){if(KC)return Rv;KC=1;var e=rp(),t=q1(),r=ln(),n=xu(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function s(o){if(typeof o=="string")return o;if(r(o))return t(o,s)+"";if(n(o))return a?a.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return Rv=s,Rv}var Bv,zC;function LR(){if(zC)return Bv;zC=1;var e=UU();function t(r){return r==null?"":e(r)}return Bv=t,Bv}var Fv,WC;function jR(){if(WC)return Fv;WC=1;var e=ln(),t=L1(),r=$U(),n=LR();function i(a,s){return e(a)?a:t(a,s)?[a]:r(n(a))}return Fv=i,Fv}var qv,HC;function Rm(){if(HC)return qv;HC=1;var e=xu();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return qv=t,qv}var $v,YC;function $1(){if(YC)return $v;YC=1;var e=jR(),t=Rm();function r(n,i){i=e(i,n);for(var a=0,s=i.length;n!=null&&a<s;)n=n[t(i[a++])];return a&&a==s?n:void 0}return $v=r,$v}var Uv,XC;function RR(){if(XC)return Uv;XC=1;var e=$1();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Uv=t,Uv}var VU=RR();const wn=Mt(VU);var Vv,GC;function KU(){if(GC)return Vv;GC=1;function e(t){return t==null}return Vv=e,Vv}var zU=KU();const At=Mt(zU);var Kv,JC;function WU(){if(JC)return Kv;JC=1;var e=da(),t=ln(),r=ha(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Kv=i,Kv}var HU=WU();const zo=Mt(HU);var YU=j1();const St=Mt(YU);var XU=Is();const Tu=Mt(XU);var zv={exports:{}},$t={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var QC;function GU(){if(QC)return $t;QC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function x(y){if(typeof y=="object"&&y!==null){var m=y.$$typeof;switch(m){case e:switch(y=y.type,y){case r:case i:case n:case c:case p:return y;default:switch(y=y&&y.$$typeof,y){case o:case s:case l:case d:case f:case a:return y;default:return m}}case t:return m}}}return $t.ContextConsumer=s,$t.ContextProvider=a,$t.Element=e,$t.ForwardRef=l,$t.Fragment=r,$t.Lazy=d,$t.Memo=f,$t.Portal=t,$t.Profiler=i,$t.StrictMode=n,$t.Suspense=c,$t.SuspenseList=p,$t.isAsyncMode=function(){return!1},$t.isConcurrentMode=function(){return!1},$t.isContextConsumer=function(y){return x(y)===s},$t.isContextProvider=function(y){return x(y)===a},$t.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},$t.isForwardRef=function(y){return x(y)===l},$t.isFragment=function(y){return x(y)===r},$t.isLazy=function(y){return x(y)===d},$t.isMemo=function(y){return x(y)===f},$t.isPortal=function(y){return x(y)===t},$t.isProfiler=function(y){return x(y)===i},$t.isStrictMode=function(y){return x(y)===n},$t.isSuspense=function(y){return x(y)===c},$t.isSuspenseList=function(y){return x(y)===p},$t.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===c||y===p||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===f||y.$$typeof===a||y.$$typeof===s||y.$$typeof===l||y.$$typeof===v||y.getModuleId!==void 0)},$t.typeOf=x,$t}var ZC;function JU(){return ZC||(ZC=1,zv.exports=GU()),zv.exports}var QU=JU(),Wv,eI;function BR(){if(eI)return Wv;eI=1;var e=da(),t=ha(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Wv=n,Wv}var Hv,tI;function ZU(){if(tI)return Hv;tI=1;var e=BR();function t(r){return e(r)&&r!=+r}return Hv=t,Hv}var eV=ZU();const Su=Mt(eV);var tV=BR();const rV=Mt(tV);var Hr=function(t){return t===0?0:t>0?1:-1},Ro=function(t){return zo(t)&&t.indexOf("%")===t.length-1},rt=function(t){return rV(t)&&!Su(t)},nV=function(t){return At(t)},wr=function(t){return rt(t)||zo(t)},iV=0,Eu=function(t){var r=++iV;return"".concat(t||"").concat(r)},Yr=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!rt(t)&&!zo(t))return n;var a;if(Ro(t)){var s=t.indexOf("%");a=r*parseFloat(t.slice(0,s))/100}else a=+t;return Su(a)&&(a=n),i&&a>r&&(a=r),a},bs=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},aV=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},rn=function(t,r){return rt(t)&&rt(r)?function(n){return t+n*(r-t)}:function(){return r}};function ph(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):wn(n,t))===r})}var yye=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,s=0,o=1/0,l=-1/0,c=0,p=0,f=0;f<r;f++)c=t[f].cx||0,p=t[f].cy||0,n+=c,i+=p,a+=c*p,s+=c*c,o=Math.min(o,c),l=Math.max(l,c);var d=r*s!==n*n?(r*a-n*i)/(r*s-n*n):0;return{xmin:o,xmax:l,a:d,b:(i-d*n)/r}},sV=function(t,r){return rt(t)&&rt(r)?t-r:zo(t)&&zo(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Nl(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function _T(e){"@babel/helpers - typeof";return _T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_T(e)}var oV=["viewBox","children"],lV=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],rI=["points","pathLength"],Yv={svg:oV,polygon:rI,polyline:rI},U1=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],dh=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(te.isValidElement(t)&&(n=t.props),!Tu(n))return null;var i={};return Object.keys(n).forEach(function(a){U1.includes(a)&&(i[a]=r||function(s){return n[a](n,s)})}),i},uV=function(t,r,n){return function(i){return t(r,n,i),null}},Wo=function(t,r,n){if(!Tu(t)||_T(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var s=t[a];U1.includes(a)&&typeof s=="function"&&(i||(i={}),i[a]=uV(s,r,n))}),i},cV=["children"],fV=["children"];function nI(e,t){if(e==null)return{};var r=pV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function OT(e){"@babel/helpers - typeof";return OT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OT(e)}var iI={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ia=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},aI=null,Xv=null,Bm=function e(t){if(t===aI&&Array.isArray(Xv))return Xv;var r=[];return te.Children.forEach(t,function(n){At(n)||(QU.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Xv=r,aI=t,r};function $n(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ia(i)}):n=[ia(t)],Bm(e).forEach(function(i){var a=wn(i,"type.displayName")||wn(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Sn(e,t){var r=$n(e,t);return r&&r[0]}var sI=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!rt(n)||n<=0||!rt(i)||i<=0)},dV=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],FR=function(t){return t&&t.type&&zo(t.type)&&dV.indexOf(t.type)>=0},hV=function(t){return t&&OT(t)==="object"&&"clipDot"in t},mV=function(t,r,n,i){var a,s=(a=Yv==null?void 0:Yv[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!St(t)&&(i&&s.includes(r)||lV.includes(r))||n&&U1.includes(r)},gye=function(t){var r=[];return Bm(t).forEach(function(n){FR(n)&&r.push(n)}),r},yt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(te.isValidElement(t)&&(i=t.props),!Tu(i))return null;var a={};return Object.keys(i).forEach(function(s){var o;mV((o=i)===null||o===void 0?void 0:o[s],s,r,n)&&(a[s]=i[s])}),a},CT=function e(t,r){if(t===r)return!0;var n=te.Children.count(t);if(n!==te.Children.count(r))return!1;if(n===0)return!0;if(n===1)return oI(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],s=r[i];if(Array.isArray(a)||Array.isArray(s)){if(!e(a,s))return!1}else if(!oI(a,s))return!1}return!0},oI=function(t,r){if(At(t)&&At(r))return!0;if(!At(t)&&!At(r)){var n=t.props||{},i=n.children,a=nI(n,cV),s=r.props||{},o=s.children,l=nI(s,fV);return i&&o?Nl(a,l)&&CT(i,o):!i&&!o?Nl(a,l):!1}return!1},lI=function(t,r){var n=[],i={};return Bm(t).forEach(function(a,s){if(FR(a))n.push(a);else if(a){var o=ia(a.type),l=r[o]||{},c=l.handler,p=l.once;if(c&&(!p||!i[o])){var f=c(a,o,s);n.push(f),i[o]=!0}}}),n},yV=function(t){var r=t&&t.type;return r&&iI[r]?iI[r]:null},gV=function(t,r){return Bm(r).indexOf(t)},vV=["children","width","height","viewBox","className","style","title","desc"];function IT(){return IT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IT.apply(this,arguments)}function bV(e,t){if(e==null)return{};var r=xV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kT(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,s=e.style,o=e.title,l=e.desc,c=bV(e,vV),p=i||{width:r,height:n,x:0,y:0},f=Ot("recharts-surface",a);return Pe.createElement("svg",IT({},yt(c,!0,"svg"),{className:f,width:r,height:n,style:s,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),Pe.createElement("title",null,o),Pe.createElement("desc",null,l),t)}var TV=["children","className"];function NT(){return NT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},NT.apply(this,arguments)}function SV(e,t){if(e==null)return{};var r=EV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Lt=Pe.forwardRef(function(e,t){var r=e.children,n=e.className,i=SV(e,TV),a=Ot("recharts-layer",n);return Pe.createElement("g",NT({className:a},yt(i,!0),{ref:t}),r)}),ni=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},Gv,uI;function PV(){if(uI)return Gv;uI=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var s=Array(a);++i<a;)s[i]=t[i+r];return s}return Gv=e,Gv}var Jv,cI;function AV(){if(cI)return Jv;cI=1;var e=PV();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Jv=t,Jv}var Qv,fI;function qR(){if(fI)return Qv;fI=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",s="\\u200d",o=RegExp("["+s+e+i+a+"]");function l(c){return o.test(c)}return Qv=l,Qv}var Zv,pI;function wV(){if(pI)return Zv;pI=1;function e(t){return t.split("")}return Zv=e,Zv}var eb,dI;function _V(){if(dI)return eb;dI=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",s="["+e+"]",o="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+o+"|"+l+")",p="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",v=c+"?",x="["+a+"]?",y="(?:"+h+"(?:"+[p,f,d].join("|")+")"+x+v+")*",m=x+v+y,T="(?:"+[p+o+"?",o,f,d,s].join("|")+")",A=RegExp(l+"(?="+l+")|"+T+m,"g");function E(P){return P.match(A)||[]}return eb=E,eb}var tb,hI;function OV(){if(hI)return tb;hI=1;var e=wV(),t=qR(),r=_V();function n(i){return t(i)?r(i):e(i)}return tb=n,tb}var rb,mI;function CV(){if(mI)return rb;mI=1;var e=AV(),t=qR(),r=OV(),n=LR();function i(a){return function(s){s=n(s);var o=t(s)?r(s):void 0,l=o?o[0]:s.charAt(0),c=o?e(o,1).join(""):s.slice(1);return l[a]()+c}}return rb=i,rb}var nb,yI;function IV(){if(yI)return nb;yI=1;var e=CV(),t=e("toUpperCase");return nb=t,nb}var kV=IV();const Fm=Mt(kV);function Gt(e){return function(){return e}}const $R=Math.cos,hh=Math.sin,li=Math.sqrt,mh=Math.PI,qm=2*mh,DT=Math.PI,MT=2*DT,Do=1e-6,NV=MT-Do;function UR(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function DV(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return UR;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class MV{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?UR:DV(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,s){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,o=this._y1,l=n-t,c=i-r,p=s-t,f=o-r,d=p*p+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Do)if(!(Math.abs(f*l-c*p)>Do)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-s,v=i-o,x=l*l+c*c,y=h*h+v*v,m=Math.sqrt(x),T=Math.sqrt(d),A=a*Math.tan((DT-Math.acos((x+d-y)/(2*m*T)))/2),E=A/T,P=A/m;Math.abs(E-1)>Do&&this._append`L${t+E*p},${r+E*f}`,this._append`A${a},${a},0,0,${+(f*h>p*v)},${this._x1=t+P*l},${this._y1=r+P*c}`}}arc(t,r,n,i,a,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(i),l=n*Math.sin(i),c=t+o,p=r+l,f=1^s,d=s?i-a:a-i;this._x1===null?this._append`M${c},${p}`:(Math.abs(this._x1-c)>Do||Math.abs(this._y1-p)>Do)&&this._append`L${c},${p}`,n&&(d<0&&(d=d%MT+MT),d>NV?this._append`A${n},${n},0,1,${f},${t-o},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=p}`:d>Do&&this._append`A${n},${n},0,${+(d>=DT)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function V1(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new MV(t)}function K1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function VR(e){this._context=e}VR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function $m(e){return new VR(e)}function KR(e){return e[0]}function zR(e){return e[1]}function WR(e,t){var r=Gt(!0),n=null,i=$m,a=null,s=V1(o);e=typeof e=="function"?e:e===void 0?KR:Gt(e),t=typeof t=="function"?t:t===void 0?zR:Gt(t);function o(l){var c,p=(l=K1(l)).length,f,d=!1,h;for(n==null&&(a=i(h=s())),c=0;c<=p;++c)!(c<p&&r(f=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,l),+t(f,c,l));if(h)return a=null,h+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Gt(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:Gt(+l),o):t},o.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Gt(!!l),o):r},o.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),o):i},o.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),o):n},o}function jd(e,t,r){var n=null,i=Gt(!0),a=null,s=$m,o=null,l=V1(c);e=typeof e=="function"?e:e===void 0?KR:Gt(+e),t=typeof t=="function"?t:Gt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?zR:Gt(+r);function c(f){var d,h,v,x=(f=K1(f)).length,y,m=!1,T,A=new Array(x),E=new Array(x);for(a==null&&(o=s(T=l())),d=0;d<=x;++d){if(!(d<x&&i(y=f[d],d,f))===m)if(m=!m)h=d,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),v=d-1;v>=h;--v)o.point(A[v],E[v]);o.lineEnd(),o.areaEnd()}m&&(A[d]=+e(y,d,f),E[d]=+t(y,d,f),o.point(n?+n(y,d,f):A[d],r?+r(y,d,f):E[d]))}if(T)return o=null,T+""||null}function p(){return WR().defined(i).curve(s).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Gt(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Gt(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Gt(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Gt(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Gt(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Gt(+f),c):r},c.lineX0=c.lineY0=function(){return p().x(e).y(t)},c.lineY1=function(){return p().x(e).y(r)},c.lineX1=function(){return p().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Gt(!!f),c):i},c.curve=function(f){return arguments.length?(s=f,a!=null&&(o=s(a)),c):s},c.context=function(f){return arguments.length?(f==null?a=o=null:o=s(a=f),c):a},c}class HR{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function LV(e){return new HR(e,!0)}function jV(e){return new HR(e,!1)}const z1={draw(e,t){const r=li(t/mh);e.moveTo(r,0),e.arc(0,0,r,0,qm)}},RV={draw(e,t){const r=li(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},YR=li(1/3),BV=YR*2,FV={draw(e,t){const r=li(t/BV),n=r*YR;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},qV={draw(e,t){const r=li(t),n=-r/2;e.rect(n,n,r,r)}},$V=.8908130915292852,XR=hh(mh/10)/hh(7*mh/10),UV=hh(qm/10)*XR,VV=-$R(qm/10)*XR,KV={draw(e,t){const r=li(t*$V),n=UV*r,i=VV*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const s=qm*a/5,o=$R(s),l=hh(s);e.lineTo(l*r,-o*r),e.lineTo(o*n-l*i,l*n+o*i)}e.closePath()}},ib=li(3),zV={draw(e,t){const r=-li(t/(ib*3));e.moveTo(0,r*2),e.lineTo(-ib*r,-r),e.lineTo(ib*r,-r),e.closePath()}},Nn=-.5,Dn=li(3)/2,LT=1/li(12),WV=(LT/2+1)*3,HV={draw(e,t){const r=li(t/WV),n=r/2,i=r*LT,a=n,s=r*LT+r,o=-a,l=s;e.moveTo(n,i),e.lineTo(a,s),e.lineTo(o,l),e.lineTo(Nn*n-Dn*i,Dn*n+Nn*i),e.lineTo(Nn*a-Dn*s,Dn*a+Nn*s),e.lineTo(Nn*o-Dn*l,Dn*o+Nn*l),e.lineTo(Nn*n+Dn*i,Nn*i-Dn*n),e.lineTo(Nn*a+Dn*s,Nn*s-Dn*a),e.lineTo(Nn*o+Dn*l,Nn*l-Dn*o),e.closePath()}};function YV(e,t){let r=null,n=V1(i);e=typeof e=="function"?e:Gt(e||z1),t=typeof t=="function"?t:Gt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Gt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Gt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function yh(){}function gh(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function GR(e){this._context=e}GR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:gh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function XV(e){return new GR(e)}function JR(e){this._context=e}JR.prototype={areaStart:yh,areaEnd:yh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:gh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function GV(e){return new JR(e)}function QR(e){this._context=e}QR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:gh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function JV(e){return new QR(e)}function ZR(e){this._context=e}ZR.prototype={areaStart:yh,areaEnd:yh,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function QV(e){return new ZR(e)}function gI(e){return e<0?-1:1}function vI(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),s=(r-e._y1)/(i||n<0&&-0),o=(a*i+s*n)/(n+i);return(gI(a)+gI(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function bI(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ab(e,t,r){var n=e._x0,i=e._y0,a=e._x1,s=e._y1,o=(a-n)/3;e._context.bezierCurveTo(n+o,i+o*t,a-o,s-o*r,a,s)}function vh(e){this._context=e}vh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ab(this,this._t0,bI(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ab(this,bI(this,r=vI(this,e,t)),r);break;default:ab(this,this._t0,r=vI(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function e3(e){this._context=new t3(e)}(e3.prototype=Object.create(vh.prototype)).point=function(e,t){vh.prototype.point.call(this,t,e)};function t3(e){this._context=e}t3.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function ZV(e){return new vh(e)}function eK(e){return new e3(e)}function r3(e){this._context=e}r3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=xI(e),i=xI(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function xI(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),s=new Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function tK(e){return new r3(e)}function Um(e,t){this._context=e,this._t=t}Um.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function rK(e){return new Um(e,.5)}function nK(e){return new Um(e,0)}function iK(e){return new Um(e,1)}function Ul(e,t){if((s=e.length)>1)for(var r=1,n,i,a=e[t[0]],s,o=a.length;r<s;++r)for(i=a,a=e[t[r]],n=0;n<o;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function jT(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function aK(e,t){return e[t]}function sK(e){const t=[];return t.key=e,t}function oK(){var e=Gt([]),t=jT,r=Ul,n=aK;function i(a){var s=Array.from(e.apply(this,arguments),sK),o,l=s.length,c=-1,p;for(const f of a)for(o=0,++c;o<l;++o)(s[o][c]=[0,+n(f,s[o].key,c,a)]).data=f;for(o=0,p=K1(t(s));o<l;++o)s[p[o]].index=o;return r(s,p),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Gt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Gt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?jT:typeof a=="function"?a:Gt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ul,i):r},i}function lK(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,s;i<a;++i){for(s=r=0;r<n;++r)s+=e[r][i][1]||0;if(s)for(r=0;r<n;++r)e[r][i][1]/=s}Ul(e,t)}}function uK(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var s=0,o=0;s<i;++s)o+=e[s][r][1]||0;n[r][1]+=n[r][0]=-o/2}Ul(e,t)}}function cK(e,t){if(!(!((s=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,s;n<a;++n){for(var o=0,l=0,c=0;o<s;++o){for(var p=e[t[o]],f=p[n][1]||0,d=p[n-1][1]||0,h=(f-d)/2,v=0;v<o;++v){var x=e[t[v]],y=x[n][1]||0,m=x[n-1][1]||0;h+=y-m}l+=f,c+=h*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=c/l)}i[n-1][1]+=i[n-1][0]=r,Ul(e,t)}}function cf(e){"@babel/helpers - typeof";return cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cf(e)}var fK=["type","size","sizeType"];function RT(){return RT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RT.apply(this,arguments)}function TI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TI(Object(r),!0).forEach(function(n){pK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pK(e,t,r){return t=dK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dK(e){var t=hK(e,"string");return cf(t)=="symbol"?t:t+""}function hK(e,t){if(cf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mK(e,t){if(e==null)return{};var r=yK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var n3={symbolCircle:z1,symbolCross:RV,symbolDiamond:FV,symbolSquare:qV,symbolStar:KV,symbolTriangle:zV,symbolWye:HV},gK=Math.PI/180,vK=function(t){var r="symbol".concat(Fm(t));return n3[r]||z1},bK=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*gK;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},xK=function(t,r){n3["symbol".concat(Fm(t))]=r},W1=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,s=t.sizeType,o=s===void 0?"area":s,l=mK(t,fK),c=SI(SI({},l),{},{type:n,size:a,sizeType:o}),p=function(){var y=vK(n),m=YV().type(y).size(bK(a,o,n));return m()},f=c.className,d=c.cx,h=c.cy,v=yt(c,!0);return d===+d&&h===+h&&a===+a?Pe.createElement("path",RT({},v,{className:Ot("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:p()})):null};W1.registerSymbol=xK;function Vl(e){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vl(e)}function BT(){return BT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BT.apply(this,arguments)}function EI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TK(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EI(Object(r),!0).forEach(function(n){ff(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a3(n.key),n)}}function PK(e,t,r){return t&&EK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AK(e,t,r){return t=bh(t),wK(e,i3()?Reflect.construct(t,r||[],bh(e).constructor):t.apply(e,r))}function wK(e,t){if(t&&(Vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _K(e)}function _K(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i3=function(){return!!e})()}function bh(e){return bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bh(e)}function OK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&FT(e,t)}function FT(e,t){return FT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},FT(e,t)}function ff(e,t,r){return t=a3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a3(e){var t=CK(e,"string");return Vl(t)=="symbol"?t:t+""}function CK(e,t){if(Vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Mn=32,H1=(function(e){function t(){return SK(this,t),AK(this,t,arguments)}return OK(t,e),PK(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Mn/2,s=Mn/6,o=Mn/3,l=n.inactive?i:n.color;if(n.type==="plainline")return Pe.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Mn,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return Pe.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(o,`
A`).concat(s,",").concat(s,",0,1,1,").concat(2*o,",").concat(a,`
H`).concat(Mn,"M").concat(2*o,",").concat(a,`
A`).concat(s,",").concat(s,",0,1,1,").concat(o,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return Pe.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Mn/8,"h").concat(Mn,"v").concat(Mn*3/4,"h").concat(-Mn,"z"),className:"recharts-legend-icon"});if(Pe.isValidElement(n.legendIcon)){var c=TK({},n);return delete c.legendIcon,Pe.cloneElement(n.legendIcon,c)}return Pe.createElement(W1,{fill:l,cx:a,cy:a,size:Mn,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,s=i.iconSize,o=i.layout,l=i.formatter,c=i.inactiveColor,p={x:0,y:0,width:Mn,height:Mn},f={display:o==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,v){var x=h.formatter||l,y=Ot(ff(ff({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",h.inactive));if(h.type==="none")return null;var m=St(h.value)?null:h.value;ni(!St(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var T=h.inactive?c:h.color;return Pe.createElement("li",BT({className:y,style:f,key:"legend-item-".concat(v)},Wo(n.props,h,v)),Pe.createElement(kT,{width:s,height:s,viewBox:p,style:d},n.renderIcon(h)),Pe.createElement("span",{className:"recharts-legend-item-text",style:{color:T}},x?x(m,h,v):m))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,s=n.align;if(!i||!i.length)return null;var o={padding:0,margin:0,textAlign:a==="horizontal"?s:"left"};return Pe.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])})(te.PureComponent);ff(H1,"displayName","Legend");ff(H1,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var sb,PI;function IK(){if(PI)return sb;PI=1;var e=Lm();function t(){this.__data__=new e,this.size=0}return sb=t,sb}var ob,AI;function kK(){if(AI)return ob;AI=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ob=e,ob}var lb,wI;function NK(){if(wI)return lb;wI=1;function e(t){return this.__data__.get(t)}return lb=e,lb}var ub,_I;function DK(){if(_I)return ub;_I=1;function e(t){return this.__data__.has(t)}return ub=e,ub}var cb,OI;function MK(){if(OI)return cb;OI=1;var e=Lm(),t=B1(),r=F1(),n=200;function i(a,s){var o=this.__data__;if(o instanceof e){var l=o.__data__;if(!t||l.length<n-1)return l.push([a,s]),this.size=++o.size,this;o=this.__data__=new r(l)}return o.set(a,s),this.size=o.size,this}return cb=i,cb}var fb,CI;function s3(){if(CI)return fb;CI=1;var e=Lm(),t=IK(),r=kK(),n=NK(),i=DK(),a=MK();function s(o){var l=this.__data__=new e(o);this.size=l.size}return s.prototype.clear=t,s.prototype.delete=r,s.prototype.get=n,s.prototype.has=i,s.prototype.set=a,fb=s,fb}var pb,II;function LK(){if(II)return pb;II=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return pb=t,pb}var db,kI;function jK(){if(kI)return db;kI=1;function e(t){return this.__data__.has(t)}return db=e,db}var hb,NI;function o3(){if(NI)return hb;NI=1;var e=F1(),t=LK(),r=jK();function n(i){var a=-1,s=i==null?0:i.length;for(this.__data__=new e;++a<s;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,hb=n,hb}var mb,DI;function l3(){if(DI)return mb;DI=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return mb=e,mb}var yb,MI;function u3(){if(MI)return yb;MI=1;function e(t,r){return t.has(r)}return yb=e,yb}var gb,LI;function c3(){if(LI)return gb;LI=1;var e=o3(),t=l3(),r=u3(),n=1,i=2;function a(s,o,l,c,p,f){var d=l&n,h=s.length,v=o.length;if(h!=v&&!(d&&v>h))return!1;var x=f.get(s),y=f.get(o);if(x&&y)return x==o&&y==s;var m=-1,T=!0,A=l&i?new e:void 0;for(f.set(s,o),f.set(o,s);++m<h;){var E=s[m],P=o[m];if(c)var _=d?c(P,E,m,o,s,f):c(E,P,m,s,o,f);if(_!==void 0){if(_)continue;T=!1;break}if(A){if(!t(o,function(I,k){if(!r(A,k)&&(E===I||p(E,I,l,c,f)))return A.push(k)})){T=!1;break}}else if(!(E===P||p(E,P,l,c,f))){T=!1;break}}return f.delete(s),f.delete(o),T}return gb=a,gb}var vb,jI;function RK(){if(jI)return vb;jI=1;var e=Ni(),t=e.Uint8Array;return vb=t,vb}var bb,RI;function BK(){if(RI)return bb;RI=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return bb=e,bb}var xb,BI;function Y1(){if(BI)return xb;BI=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return xb=e,xb}var Tb,FI;function FK(){if(FI)return Tb;FI=1;var e=rp(),t=RK(),r=R1(),n=c3(),i=BK(),a=Y1(),s=1,o=2,l="[object Boolean]",c="[object Date]",p="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",v="[object Set]",x="[object String]",y="[object Symbol]",m="[object ArrayBuffer]",T="[object DataView]",A=e?e.prototype:void 0,E=A?A.valueOf:void 0;function P(_,I,k,M,D,C,L){switch(k){case T:if(_.byteLength!=I.byteLength||_.byteOffset!=I.byteOffset)return!1;_=_.buffer,I=I.buffer;case m:return!(_.byteLength!=I.byteLength||!C(new t(_),new t(I)));case l:case c:case d:return r(+_,+I);case p:return _.name==I.name&&_.message==I.message;case h:case x:return _==I+"";case f:var q=i;case v:var $=M&s;if(q||(q=a),_.size!=I.size&&!$)return!1;var z=L.get(_);if(z)return z==I;M|=o,L.set(_,I);var Q=n(q(_),q(I),M,D,C,L);return L.delete(_),Q;case y:if(E)return E.call(_)==E.call(I)}return!1}return Tb=P,Tb}var Sb,qI;function f3(){if(qI)return Sb;qI=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Sb=e,Sb}var Eb,$I;function qK(){if($I)return Eb;$I=1;var e=f3(),t=ln();function r(n,i,a){var s=i(n);return t(n)?s:e(s,a(n))}return Eb=r,Eb}var Pb,UI;function $K(){if(UI)return Pb;UI=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,s=[];++n<i;){var o=t[n];r(o,n,t)&&(s[a++]=o)}return s}return Pb=e,Pb}var Ab,VI;function UK(){if(VI)return Ab;VI=1;function e(){return[]}return Ab=e,Ab}var wb,KI;function VK(){if(KI)return wb;KI=1;var e=$K(),t=UK(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(o){return n.call(s,o)}))}:t;return wb=a,wb}var _b,zI;function KK(){if(zI)return _b;zI=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return _b=e,_b}var Ob,WI;function zK(){if(WI)return Ob;WI=1;var e=da(),t=ha(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Ob=n,Ob}var Cb,HI;function X1(){if(HI)return Cb;HI=1;var e=zK(),t=ha(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(s){return t(s)&&n.call(s,"callee")&&!i.call(s,"callee")};return Cb=a,Cb}var Kc={exports:{}},Ib,YI;function WK(){if(YI)return Ib;YI=1;function e(){return!1}return Ib=e,Ib}Kc.exports;var XI;function p3(){return XI||(XI=1,(function(e,t){var r=Ni(),n=WK(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,o=s?r.Buffer:void 0,l=o?o.isBuffer:void 0,c=l||n;e.exports=c})(Kc,Kc.exports)),Kc.exports}var kb,GI;function G1(){if(GI)return kb;GI=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return kb=r,kb}var Nb,JI;function J1(){if(JI)return Nb;JI=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Nb=t,Nb}var Db,QI;function HK(){if(QI)return Db;QI=1;var e=da(),t=J1(),r=ha(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",s="[object Date]",o="[object Error]",l="[object Function]",c="[object Map]",p="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",v="[object String]",x="[object WeakMap]",y="[object ArrayBuffer]",m="[object DataView]",T="[object Float32Array]",A="[object Float64Array]",E="[object Int8Array]",P="[object Int16Array]",_="[object Int32Array]",I="[object Uint8Array]",k="[object Uint8ClampedArray]",M="[object Uint16Array]",D="[object Uint32Array]",C={};C[T]=C[A]=C[E]=C[P]=C[_]=C[I]=C[k]=C[M]=C[D]=!0,C[n]=C[i]=C[y]=C[a]=C[m]=C[s]=C[o]=C[l]=C[c]=C[p]=C[f]=C[d]=C[h]=C[v]=C[x]=!1;function L(q){return r(q)&&t(q.length)&&!!C[e(q)]}return Db=L,Db}var Mb,ZI;function d3(){if(ZI)return Mb;ZI=1;function e(t){return function(r){return t(r)}}return Mb=e,Mb}var zc={exports:{}};zc.exports;var ek;function YK(){return ek||(ek=1,(function(e,t){var r=NR(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,s=a&&r.process,o=(function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}})();e.exports=o})(zc,zc.exports)),zc.exports}var Lb,tk;function h3(){if(tk)return Lb;tk=1;var e=HK(),t=d3(),r=YK(),n=r&&r.isTypedArray,i=n?t(n):e;return Lb=i,Lb}var jb,rk;function XK(){if(rk)return jb;rk=1;var e=KK(),t=X1(),r=ln(),n=p3(),i=G1(),a=h3(),s=Object.prototype,o=s.hasOwnProperty;function l(c,p){var f=r(c),d=!f&&t(c),h=!f&&!d&&n(c),v=!f&&!d&&!h&&a(c),x=f||d||h||v,y=x?e(c.length,String):[],m=y.length;for(var T in c)(p||o.call(c,T))&&!(x&&(T=="length"||h&&(T=="offset"||T=="parent")||v&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||i(T,m)))&&y.push(T);return y}return jb=l,jb}var Rb,nk;function GK(){if(nk)return Rb;nk=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Rb=t,Rb}var Bb,ik;function m3(){if(ik)return Bb;ik=1;function e(t,r){return function(n){return t(r(n))}}return Bb=e,Bb}var Fb,ak;function JK(){if(ak)return Fb;ak=1;var e=m3(),t=e(Object.keys,Object);return Fb=t,Fb}var qb,sk;function QK(){if(sk)return qb;sk=1;var e=GK(),t=JK(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var s=[];for(var o in Object(a))n.call(a,o)&&o!="constructor"&&s.push(o);return s}return qb=i,qb}var $b,ok;function np(){if(ok)return $b;ok=1;var e=j1(),t=J1();function r(n){return n!=null&&t(n.length)&&!e(n)}return $b=r,$b}var Ub,lk;function Vm(){if(lk)return Ub;lk=1;var e=XK(),t=QK(),r=np();function n(i){return r(i)?e(i):t(i)}return Ub=n,Ub}var Vb,uk;function ZK(){if(uk)return Vb;uk=1;var e=qK(),t=VK(),r=Vm();function n(i){return e(i,r,t)}return Vb=n,Vb}var Kb,ck;function ez(){if(ck)return Kb;ck=1;var e=ZK(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,s,o,l,c,p){var f=o&t,d=e(a),h=d.length,v=e(s),x=v.length;if(h!=x&&!f)return!1;for(var y=h;y--;){var m=d[y];if(!(f?m in s:n.call(s,m)))return!1}var T=p.get(a),A=p.get(s);if(T&&A)return T==s&&A==a;var E=!0;p.set(a,s),p.set(s,a);for(var P=f;++y<h;){m=d[y];var _=a[m],I=s[m];if(l)var k=f?l(I,_,m,s,a,p):l(_,I,m,a,s,p);if(!(k===void 0?_===I||c(_,I,o,l,p):k)){E=!1;break}P||(P=m=="constructor")}if(E&&!P){var M=a.constructor,D=s.constructor;M!=D&&"constructor"in a&&"constructor"in s&&!(typeof M=="function"&&M instanceof M&&typeof D=="function"&&D instanceof D)&&(E=!1)}return p.delete(a),p.delete(s),E}return Kb=i,Kb}var zb,fk;function tz(){if(fk)return zb;fk=1;var e=rl(),t=Ni(),r=e(t,"DataView");return zb=r,zb}var Wb,pk;function rz(){if(pk)return Wb;pk=1;var e=rl(),t=Ni(),r=e(t,"Promise");return Wb=r,Wb}var Hb,dk;function y3(){if(dk)return Hb;dk=1;var e=rl(),t=Ni(),r=e(t,"Set");return Hb=r,Hb}var Yb,hk;function nz(){if(hk)return Yb;hk=1;var e=rl(),t=Ni(),r=e(t,"WeakMap");return Yb=r,Yb}var Xb,mk;function iz(){if(mk)return Xb;mk=1;var e=tz(),t=B1(),r=rz(),n=y3(),i=nz(),a=da(),s=DR(),o="[object Map]",l="[object Object]",c="[object Promise]",p="[object Set]",f="[object WeakMap]",d="[object DataView]",h=s(e),v=s(t),x=s(r),y=s(n),m=s(i),T=a;return(e&&T(new e(new ArrayBuffer(1)))!=d||t&&T(new t)!=o||r&&T(r.resolve())!=c||n&&T(new n)!=p||i&&T(new i)!=f)&&(T=function(A){var E=a(A),P=E==l?A.constructor:void 0,_=P?s(P):"";if(_)switch(_){case h:return d;case v:return o;case x:return c;case y:return p;case m:return f}return E}),Xb=T,Xb}var Gb,yk;function az(){if(yk)return Gb;yk=1;var e=s3(),t=c3(),r=FK(),n=ez(),i=iz(),a=ln(),s=p3(),o=h3(),l=1,c="[object Arguments]",p="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function v(x,y,m,T,A,E){var P=a(x),_=a(y),I=P?p:i(x),k=_?p:i(y);I=I==c?f:I,k=k==c?f:k;var M=I==f,D=k==f,C=I==k;if(C&&s(x)){if(!s(y))return!1;P=!0,M=!1}if(C&&!M)return E||(E=new e),P||o(x)?t(x,y,m,T,A,E):r(x,y,I,m,T,A,E);if(!(m&l)){var L=M&&h.call(x,"__wrapped__"),q=D&&h.call(y,"__wrapped__");if(L||q){var $=L?x.value():x,z=q?y.value():y;return E||(E=new e),A($,z,m,T,E)}}return C?(E||(E=new e),n(x,y,m,T,A,E)):!1}return Gb=v,Gb}var Jb,gk;function Q1(){if(gk)return Jb;gk=1;var e=az(),t=ha();function r(n,i,a,s,o){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,s,r,o)}return Jb=r,Jb}var Qb,vk;function sz(){if(vk)return Qb;vk=1;var e=s3(),t=Q1(),r=1,n=2;function i(a,s,o,l){var c=o.length,p=c,f=!l;if(a==null)return!p;for(a=Object(a);c--;){var d=o[c];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<p;){d=o[c];var h=d[0],v=a[h],x=d[1];if(f&&d[2]){if(v===void 0&&!(h in a))return!1}else{var y=new e;if(l)var m=l(v,x,h,a,s,y);if(!(m===void 0?t(x,v,r|n,l,y):m))return!1}}return!0}return Qb=i,Qb}var Zb,bk;function g3(){if(bk)return Zb;bk=1;var e=Is();function t(r){return r===r&&!e(r)}return Zb=t,Zb}var e0,xk;function oz(){if(xk)return e0;xk=1;var e=g3(),t=Vm();function r(n){for(var i=t(n),a=i.length;a--;){var s=i[a],o=n[s];i[a]=[s,o,e(o)]}return i}return e0=r,e0}var t0,Tk;function v3(){if(Tk)return t0;Tk=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return t0=e,t0}var r0,Sk;function lz(){if(Sk)return r0;Sk=1;var e=sz(),t=oz(),r=v3();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(s){return s===i||e(s,i,a)}}return r0=n,r0}var n0,Ek;function uz(){if(Ek)return n0;Ek=1;function e(t,r){return t!=null&&r in Object(t)}return n0=e,n0}var i0,Pk;function cz(){if(Pk)return i0;Pk=1;var e=jR(),t=X1(),r=ln(),n=G1(),i=J1(),a=Rm();function s(o,l,c){l=e(l,o);for(var p=-1,f=l.length,d=!1;++p<f;){var h=a(l[p]);if(!(d=o!=null&&c(o,h)))break;o=o[h]}return d||++p!=f?d:(f=o==null?0:o.length,!!f&&i(f)&&n(h,f)&&(r(o)||t(o)))}return i0=s,i0}var a0,Ak;function fz(){if(Ak)return a0;Ak=1;var e=uz(),t=cz();function r(n,i){return n!=null&&t(n,i,e)}return a0=r,a0}var s0,wk;function pz(){if(wk)return s0;wk=1;var e=Q1(),t=RR(),r=fz(),n=L1(),i=g3(),a=v3(),s=Rm(),o=1,l=2;function c(p,f){return n(p)&&i(f)?a(s(p),f):function(d){var h=t(d,p);return h===void 0&&h===f?r(d,p):e(f,h,o|l)}}return s0=c,s0}var o0,_k;function Pu(){if(_k)return o0;_k=1;function e(t){return t}return o0=e,o0}var l0,Ok;function dz(){if(Ok)return l0;Ok=1;function e(t){return function(r){return r==null?void 0:r[t]}}return l0=e,l0}var u0,Ck;function hz(){if(Ck)return u0;Ck=1;var e=$1();function t(r){return function(n){return e(n,r)}}return u0=t,u0}var c0,Ik;function mz(){if(Ik)return c0;Ik=1;var e=dz(),t=hz(),r=L1(),n=Rm();function i(a){return r(a)?e(n(a)):t(a)}return c0=i,c0}var f0,kk;function Di(){if(kk)return f0;kk=1;var e=lz(),t=pz(),r=Pu(),n=ln(),i=mz();function a(s){return typeof s=="function"?s:s==null?r:typeof s=="object"?n(s)?t(s[0],s[1]):e(s):i(s)}return f0=a,f0}var p0,Nk;function b3(){if(Nk)return p0;Nk=1;function e(t,r,n,i){for(var a=t.length,s=n+(i?1:-1);i?s--:++s<a;)if(r(t[s],s,t))return s;return-1}return p0=e,p0}var d0,Dk;function yz(){if(Dk)return d0;Dk=1;function e(t){return t!==t}return d0=e,d0}var h0,Mk;function gz(){if(Mk)return h0;Mk=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return h0=e,h0}var m0,Lk;function vz(){if(Lk)return m0;Lk=1;var e=b3(),t=yz(),r=gz();function n(i,a,s){return a===a?r(i,a,s):e(i,t,s)}return m0=n,m0}var y0,jk;function bz(){if(jk)return y0;jk=1;var e=vz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return y0=t,y0}var g0,Rk;function xz(){if(Rk)return g0;Rk=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return g0=e,g0}var v0,Bk;function Tz(){if(Bk)return v0;Bk=1;function e(){}return v0=e,v0}var b0,Fk;function Sz(){if(Fk)return b0;Fk=1;var e=y3(),t=Tz(),r=Y1(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return b0=i,b0}var x0,qk;function Ez(){if(qk)return x0;qk=1;var e=o3(),t=bz(),r=xz(),n=u3(),i=Sz(),a=Y1(),s=200;function o(l,c,p){var f=-1,d=t,h=l.length,v=!0,x=[],y=x;if(p)v=!1,d=r;else if(h>=s){var m=c?null:i(l);if(m)return a(m);v=!1,d=n,y=new e}else y=c?[]:x;e:for(;++f<h;){var T=l[f],A=c?c(T):T;if(T=p||T!==0?T:0,v&&A===A){for(var E=y.length;E--;)if(y[E]===A)continue e;c&&y.push(A),x.push(T)}else d(y,A,p)||(y!==x&&y.push(A),x.push(T))}return x}return x0=o,x0}var T0,$k;function Pz(){if($k)return T0;$k=1;var e=Di(),t=Ez();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return T0=r,T0}var Az=Pz();const Uk=Mt(Az);function x3(e,t,r){return t===!0?Uk(e,r):St(t)?Uk(e,t):e}function Kl(e){"@babel/helpers - typeof";return Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kl(e)}var wz=["ref"];function Vk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vk(Object(r),!0).forEach(function(n){Km(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S3(n.key),n)}}function Oz(e,t,r){return t&&Kk(e.prototype,t),r&&Kk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cz(e,t,r){return t=xh(t),Iz(e,T3()?Reflect.construct(t,r||[],xh(e).constructor):t.apply(e,r))}function Iz(e,t){if(t&&(Kl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kz(e)}function kz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T3=function(){return!!e})()}function xh(e){return xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xh(e)}function Nz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qT(e,t)}function qT(e,t){return qT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qT(e,t)}function Km(e,t,r){return t=S3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S3(e){var t=Dz(e,"string");return Kl(t)=="symbol"?t:t+""}function Dz(e,t){if(Kl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Mz(e,t){if(e==null)return{};var r=Lz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function jz(e){return e.value}function Rz(e,t){if(Pe.isValidElement(e))return Pe.cloneElement(e,t);if(typeof e=="function")return Pe.createElement(e,t);t.ref;var r=Mz(t,wz);return Pe.createElement(H1,r)}var zk=1,Dl=(function(e){function t(){var r;_z(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Cz(this,t,[].concat(i)),Km(r,"lastBoundingBox",{width:-1,height:-1}),r}return Nz(t,e),Oz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>zk||Math.abs(i.height-this.lastBoundingBox.height)>zk)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Xi({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,s=i.align,o=i.verticalAlign,l=i.margin,c=i.chartWidth,p=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(s==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();f={left:((c||0)-h.width)/2}}else f=s==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(o==="middle"){var v=this.getBBoxSnapshot();d={top:((p||0)-v.height)/2}}else d=o==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Xi(Xi({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,s=i.width,o=i.height,l=i.wrapperStyle,c=i.payloadUniqBy,p=i.payload,f=Xi(Xi({position:"absolute",width:s||"auto",height:o||"auto"},this.getDefaultPosition(l)),l);return Pe.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},Rz(a,Xi(Xi({},this.props),{},{payload:x3(p,c,jz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Xi(Xi({},this.defaultProps),n.props),s=a.layout;return s==="vertical"&&rt(n.props.height)?{height:n.props.height}:s==="horizontal"?{width:n.props.width||i}:null}}])})(te.PureComponent);Km(Dl,"displayName","Legend");Km(Dl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var S0,Wk;function Bz(){if(Wk)return S0;Wk=1;var e=rp(),t=X1(),r=ln(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return S0=i,S0}var E0,Hk;function E3(){if(Hk)return E0;Hk=1;var e=f3(),t=Bz();function r(n,i,a,s,o){var l=-1,c=n.length;for(a||(a=t),o||(o=[]);++l<c;){var p=n[l];i>0&&a(p)?i>1?r(p,i-1,a,s,o):e(o,p):s||(o[o.length]=p)}return o}return E0=r,E0}var P0,Yk;function Fz(){if(Yk)return P0;Yk=1;function e(t){return function(r,n,i){for(var a=-1,s=Object(r),o=i(r),l=o.length;l--;){var c=o[t?l:++a];if(n(s[c],c,s)===!1)break}return r}}return P0=e,P0}var A0,Xk;function qz(){if(Xk)return A0;Xk=1;var e=Fz(),t=e();return A0=t,A0}var w0,Gk;function P3(){if(Gk)return w0;Gk=1;var e=qz(),t=Vm();function r(n,i){return n&&e(n,i,t)}return w0=r,w0}var _0,Jk;function $z(){if(Jk)return _0;Jk=1;var e=np();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var s=i.length,o=n?s:-1,l=Object(i);(n?o--:++o<s)&&a(l[o],o,l)!==!1;);return i}}return _0=t,_0}var O0,Qk;function Z1(){if(Qk)return O0;Qk=1;var e=P3(),t=$z(),r=t(e);return O0=r,O0}var C0,Zk;function A3(){if(Zk)return C0;Zk=1;var e=Z1(),t=np();function r(n,i){var a=-1,s=t(n)?Array(n.length):[];return e(n,function(o,l,c){s[++a]=i(o,l,c)}),s}return C0=r,C0}var I0,eN;function Uz(){if(eN)return I0;eN=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return I0=e,I0}var k0,tN;function Vz(){if(tN)return k0;tN=1;var e=xu();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,s=r===r,o=e(r),l=n!==void 0,c=n===null,p=n===n,f=e(n);if(!c&&!f&&!o&&r>n||o&&l&&p&&!c&&!f||a&&l&&p||!i&&p||!s)return 1;if(!a&&!o&&!f&&r<n||f&&i&&s&&!a&&!o||c&&i&&s||!l&&s||!p)return-1}return 0}return k0=t,k0}var N0,rN;function Kz(){if(rN)return N0;rN=1;var e=Vz();function t(r,n,i){for(var a=-1,s=r.criteria,o=n.criteria,l=s.length,c=i.length;++a<l;){var p=e(s[a],o[a]);if(p){if(a>=c)return p;var f=i[a];return p*(f=="desc"?-1:1)}}return r.index-n.index}return N0=t,N0}var D0,nN;function zz(){if(nN)return D0;nN=1;var e=q1(),t=$1(),r=Di(),n=A3(),i=Uz(),a=d3(),s=Kz(),o=Pu(),l=ln();function c(p,f,d){f.length?f=e(f,function(x){return l(x)?function(y){return t(y,x.length===1?x[0]:x)}:x}):f=[o];var h=-1;f=e(f,a(r));var v=n(p,function(x,y,m){var T=e(f,function(A){return A(x)});return{criteria:T,index:++h,value:x}});return i(v,function(x,y){return s(x,y,d)})}return D0=c,D0}var M0,iN;function Wz(){if(iN)return M0;iN=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return M0=e,M0}var L0,aN;function Hz(){if(aN)return L0;aN=1;var e=Wz(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var s=arguments,o=-1,l=t(s.length-i,0),c=Array(l);++o<l;)c[o]=s[i+o];o=-1;for(var p=Array(i+1);++o<i;)p[o]=s[o];return p[i]=a(c),e(n,this,p)}}return L0=r,L0}var j0,sN;function Yz(){if(sN)return j0;sN=1;function e(t){return function(){return t}}return j0=e,j0}var R0,oN;function w3(){if(oN)return R0;oN=1;var e=rl(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return R0=t,R0}var B0,lN;function Xz(){if(lN)return B0;lN=1;var e=Yz(),t=w3(),r=Pu(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return B0=n,B0}var F0,uN;function Gz(){if(uN)return F0;uN=1;var e=800,t=16,r=Date.now;function n(i){var a=0,s=0;return function(){var o=r(),l=t-(o-s);if(s=o,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return F0=n,F0}var q0,cN;function Jz(){if(cN)return q0;cN=1;var e=Xz(),t=Gz(),r=t(e);return q0=r,q0}var $0,fN;function Qz(){if(fN)return $0;fN=1;var e=Pu(),t=Hz(),r=Jz();function n(i,a){return r(t(i,a,e),i+"")}return $0=n,$0}var U0,pN;function zm(){if(pN)return U0;pN=1;var e=R1(),t=np(),r=G1(),n=Is();function i(a,s,o){if(!n(o))return!1;var l=typeof s;return(l=="number"?t(o)&&r(s,o.length):l=="string"&&s in o)?e(o[s],a):!1}return U0=i,U0}var V0,dN;function Zz(){if(dN)return V0;dN=1;var e=E3(),t=zz(),r=Qz(),n=zm(),i=r(function(a,s){if(a==null)return[];var o=s.length;return o>1&&n(a,s[0],s[1])?s=[]:o>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),t(a,e(s,1),[])});return V0=i,V0}var eW=Zz();const eE=Mt(eW);function pf(e){"@babel/helpers - typeof";return pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pf(e)}function $T(){return $T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$T.apply(this,arguments)}function tW(e,t){return aW(e)||iW(e,t)||nW(e,t)||rW()}function rW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nW(e,t){if(e){if(typeof e=="string")return hN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hN(e,t)}}function hN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function aW(e){if(Array.isArray(e))return e}function mN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function K0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mN(Object(r),!0).forEach(function(n){sW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sW(e,t,r){return t=oW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oW(e){var t=lW(e,"string");return pf(t)=="symbol"?t:t+""}function lW(e,t){if(pf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uW(e){return Array.isArray(e)&&wr(e[0])&&wr(e[1])?e.join(" ~ "):e}var cW=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,s=t.itemStyle,o=s===void 0?{}:s,l=t.labelStyle,c=l===void 0?{}:l,p=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,v=t.labelClassName,x=t.label,y=t.labelFormatter,m=t.accessibilityLayer,T=m===void 0?!1:m,A=function(){if(p&&p.length){var L={padding:0,margin:0},q=(d?eE(p,d):p).map(function($,z){if($.type==="none")return null;var Q=K0({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},o),V=$.formatter||f||uW,X=$.value,U=$.name,N=X,j=U;if(V&&N!=null&&j!=null){var F=V(X,U,$,z,p);if(Array.isArray(F)){var R=tW(F,2);N=R[0],j=R[1]}else N=F}return Pe.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(z),style:Q},wr(j)?Pe.createElement("span",{className:"recharts-tooltip-item-name"},j):null,wr(j)?Pe.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,Pe.createElement("span",{className:"recharts-tooltip-item-value"},N),Pe.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return Pe.createElement("ul",{className:"recharts-tooltip-item-list",style:L},q)}return null},E=K0({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),P=K0({margin:0},c),_=!At(x),I=_?x:"",k=Ot("recharts-default-tooltip",h),M=Ot("recharts-tooltip-label",v);_&&y&&p!==void 0&&p!==null&&(I=y(x,p));var D=T?{role:"status","aria-live":"assertive"}:{};return Pe.createElement("div",$T({className:k,style:E},D),Pe.createElement("p",{className:M,style:P},Pe.isValidElement(I)?I:"".concat(I)),A())};function df(e){"@babel/helpers - typeof";return df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},df(e)}function Rd(e,t,r){return t=fW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fW(e){var t=pW(e,"string");return df(t)=="symbol"?t:t+""}function pW(e,t){if(df(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(df(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wc="recharts-tooltip-wrapper",dW={visibility:"hidden"};function hW(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Ot(wc,Rd(Rd(Rd(Rd({},"".concat(wc,"-right"),rt(r)&&t&&rt(t.x)&&r>=t.x),"".concat(wc,"-left"),rt(r)&&t&&rt(t.x)&&r<t.x),"".concat(wc,"-bottom"),rt(n)&&t&&rt(t.y)&&n>=t.y),"".concat(wc,"-top"),rt(n)&&t&&rt(t.y)&&n<t.y))}function yN(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,s=e.reverseDirection,o=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(a&&rt(a[n]))return a[n];var p=r[n]-o-i,f=r[n]+i;if(t[n])return s[n]?p:f;if(s[n]){var d=p,h=l[n];return d<h?Math.max(f,l[n]):Math.max(p,l[n])}var v=f+o,x=l[n]+c;return v>x?Math.max(p,l[n]):Math.max(f,l[n])}function mW(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function yW(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipBox,o=e.useTranslate3d,l=e.viewBox,c,p,f;return s.height>0&&s.width>0&&r?(p=yN({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),f=yN({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),c=mW({translateX:p,translateY:f,useTranslate3d:o})):c=dW,{cssProperties:c,cssClasses:hW({translateX:p,translateY:f,coordinate:r})}}function zl(e){"@babel/helpers - typeof";return zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zl(e)}function gN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gN(Object(r),!0).forEach(function(n){VT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O3(n.key),n)}}function bW(e,t,r){return t&&vW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xW(e,t,r){return t=Th(t),TW(e,_3()?Reflect.construct(t,r||[],Th(e).constructor):t.apply(e,r))}function TW(e,t){if(t&&(zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SW(e)}function SW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_3=function(){return!!e})()}function Th(e){return Th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Th(e)}function EW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UT(e,t)}function UT(e,t){return UT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},UT(e,t)}function VT(e,t,r){return t=O3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O3(e){var t=PW(e,"string");return zl(t)=="symbol"?t:t+""}function PW(e,t){if(zl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bN=1,AW=(function(e){function t(){var r;gW(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=xW(this,t,[].concat(i)),VT(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),VT(r,"handleKeyDown",function(s){if(s.key==="Escape"){var o,l,c,p;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(o=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&o!==void 0?o:0,y:(c=(p=r.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&c!==void 0?c:0}})}}),r}return EW(t,e),bW(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>bN||Math.abs(n.height-this.state.lastBoundingBox.height)>bN)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,s=i.allowEscapeViewBox,o=i.animationDuration,l=i.animationEasing,c=i.children,p=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,v=i.position,x=i.reverseDirection,y=i.useTranslate3d,m=i.viewBox,T=i.wrapperStyle,A=yW({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:h,position:v,reverseDirection:x,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:m}),E=A.cssClasses,P=A.cssProperties,_=vN(vN({transition:d&&a?"transform ".concat(o,"ms ").concat(l):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},T);return Pe.createElement("div",{tabIndex:-1,className:E,style:_,ref:function(k){n.wrapperNode=k}},c)}}])})(te.PureComponent),wW=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ai={isSsr:wW(),get:function(t){return Ai[t]},set:function(t,r){if(typeof t=="string")Ai[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){Ai[i]=t[i]})}}};function Wl(e){"@babel/helpers - typeof";return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wl(e)}function xN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xN(Object(r),!0).forEach(function(n){tE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I3(n.key),n)}}function CW(e,t,r){return t&&OW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IW(e,t,r){return t=Sh(t),kW(e,C3()?Reflect.construct(t,r||[],Sh(e).constructor):t.apply(e,r))}function kW(e,t){if(t&&(Wl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NW(e)}function NW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C3=function(){return!!e})()}function Sh(e){return Sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sh(e)}function DW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KT(e,t)}function KT(e,t){return KT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},KT(e,t)}function tE(e,t,r){return t=I3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I3(e){var t=MW(e,"string");return Wl(t)=="symbol"?t:t+""}function MW(e,t){if(Wl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function LW(e){return e.dataKey}function jW(e,t){return Pe.isValidElement(e)?Pe.cloneElement(e,t):typeof e=="function"?Pe.createElement(e,t):Pe.createElement(cW,t)}var Qi=(function(e){function t(){return _W(this,t),IW(this,t,arguments)}return DW(t,e),CW(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,s=i.allowEscapeViewBox,o=i.animationDuration,l=i.animationEasing,c=i.content,p=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,v=i.payload,x=i.payloadUniqBy,y=i.position,m=i.reverseDirection,T=i.useTranslate3d,A=i.viewBox,E=i.wrapperStyle,P=v??[];f&&P.length&&(P=x3(v.filter(function(I){return I.value!=null&&(I.hide!==!0||n.props.includeHidden)}),x,LW));var _=P.length>0;return Pe.createElement(AW,{allowEscapeViewBox:s,animationDuration:o,animationEasing:l,isAnimationActive:d,active:a,coordinate:p,hasPayload:_,offset:h,position:y,reverseDirection:m,useTranslate3d:T,viewBox:A,wrapperStyle:E},jW(c,TN(TN({},this.props),{},{payload:P})))}}])})(te.PureComponent);tE(Qi,"displayName","Tooltip");tE(Qi,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ai.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var z0,SN;function RW(){if(SN)return z0;SN=1;var e=Ni(),t=function(){return e.Date.now()};return z0=t,z0}var W0,EN;function BW(){if(EN)return W0;EN=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return W0=t,W0}var H0,PN;function FW(){if(PN)return H0;PN=1;var e=BW(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return H0=r,H0}var Y0,AN;function k3(){if(AN)return Y0;AN=1;var e=FW(),t=Is(),r=xu(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function l(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var p=typeof c.valueOf=="function"?c.valueOf():c;c=t(p)?p+"":p}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=a.test(c);return f||s.test(c)?o(c.slice(2),f?2:8):i.test(c)?n:+c}return Y0=l,Y0}var X0,wN;function qW(){if(wN)return X0;wN=1;var e=Is(),t=RW(),r=k3(),n="Expected a function",i=Math.max,a=Math.min;function s(o,l,c){var p,f,d,h,v,x,y=0,m=!1,T=!1,A=!0;if(typeof o!="function")throw new TypeError(n);l=r(l)||0,e(c)&&(m=!!c.leading,T="maxWait"in c,d=T?i(r(c.maxWait)||0,l):d,A="trailing"in c?!!c.trailing:A);function E(q){var $=p,z=f;return p=f=void 0,y=q,h=o.apply(z,$),h}function P(q){return y=q,v=setTimeout(k,l),m?E(q):h}function _(q){var $=q-x,z=q-y,Q=l-$;return T?a(Q,d-z):Q}function I(q){var $=q-x,z=q-y;return x===void 0||$>=l||$<0||T&&z>=d}function k(){var q=t();if(I(q))return M(q);v=setTimeout(k,_(q))}function M(q){return v=void 0,A&&p?E(q):(p=f=void 0,h)}function D(){v!==void 0&&clearTimeout(v),y=0,p=x=f=v=void 0}function C(){return v===void 0?h:M(t())}function L(){var q=t(),$=I(q);if(p=arguments,f=this,x=q,$){if(v===void 0)return P(x);if(T)return clearTimeout(v),v=setTimeout(k,l),E(x)}return v===void 0&&(v=setTimeout(k,l)),h}return L.cancel=D,L.flush=C,L}return X0=s,X0}var G0,_N;function $W(){if(_N)return G0;_N=1;var e=qW(),t=Is(),r="Expected a function";function n(i,a,s){var o=!0,l=!0;if(typeof i!="function")throw new TypeError(r);return t(s)&&(o="leading"in s?!!s.leading:o,l="trailing"in s?!!s.trailing:l),e(i,a,{leading:o,maxWait:a,trailing:l})}return G0=n,G0}var UW=$W();const N3=Mt(UW);function hf(e){"@babel/helpers - typeof";return hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hf(e)}function ON(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ON(Object(r),!0).forEach(function(n){VW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ON(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VW(e,t,r){return t=KW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KW(e){var t=zW(e,"string");return hf(t)=="symbol"?t:t+""}function zW(e,t){if(hf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WW(e,t){return GW(e)||XW(e,t)||YW(e,t)||HW()}function HW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YW(e,t){if(e){if(typeof e=="string")return CN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return CN(e,t)}}function CN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function GW(e){if(Array.isArray(e))return e}var vye=te.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,s=a===void 0?"100%":a,o=e.height,l=o===void 0?"100%":o,c=e.minWidth,p=c===void 0?0:c,f=e.minHeight,d=e.maxHeight,h=e.children,v=e.debounce,x=v===void 0?0:v,y=e.id,m=e.className,T=e.onResize,A=e.style,E=A===void 0?{}:A,P=te.useRef(null),_=te.useRef();_.current=T,te.useImperativeHandle(t,function(){return Object.defineProperty(P.current,"current",{get:function(){return P.current},configurable:!0})});var I=te.useState({containerWidth:i.width,containerHeight:i.height}),k=WW(I,2),M=k[0],D=k[1],C=te.useCallback(function(q,$){D(function(z){var Q=Math.round(q),V=Math.round($);return z.containerWidth===Q&&z.containerHeight===V?z:{containerWidth:Q,containerHeight:V}})},[]);te.useEffect(function(){var q=function(U){var N,j=U[0].contentRect,F=j.width,R=j.height;C(F,R),(N=_.current)===null||N===void 0||N.call(_,F,R)};x>0&&(q=N3(q,x,{trailing:!0,leading:!1}));var $=new ResizeObserver(q),z=P.current.getBoundingClientRect(),Q=z.width,V=z.height;return C(Q,V),$.observe(P.current),function(){$.disconnect()}},[C,x]);var L=te.useMemo(function(){var q=M.containerWidth,$=M.containerHeight;if(q<0||$<0)return null;ni(Ro(s)||Ro(l),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,s,l),ni(!r||r>0,"The aspect(%s) must be greater than zero.",r);var z=Ro(s)?q:s,Q=Ro(l)?$:l;r&&r>0&&(z?Q=z/r:Q&&(z=Q*r),d&&Q>d&&(Q=d)),ni(z>0||Q>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
height and width.`,z,Q,s,l,p,f,r);var V=!Array.isArray(h)&&ia(h.type).endsWith("Chart");return Pe.Children.map(h,function(X){return Pe.isValidElement(X)?te.cloneElement(X,Bd({width:z,height:Q},V?{style:Bd({height:"100%",width:"100%",maxHeight:Q,maxWidth:z},X.props.style)}:{})):X})},[r,h,l,d,f,p,M,s]);return Pe.createElement("div",{id:y?"".concat(y):void 0,className:Ot("recharts-responsive-container",m),style:Bd(Bd({},E),{},{width:s,height:l,minWidth:p,minHeight:f,maxHeight:d}),ref:P},L)}),rE=function(t){return null};rE.displayName="Cell";function mf(e){"@babel/helpers - typeof";return mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mf(e)}function IN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IN(Object(r),!0).forEach(function(n){JW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JW(e,t,r){return t=QW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QW(e){var t=ZW(e,"string");return mf(t)=="symbol"?t:t+""}function ZW(e,t){if(mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ml={widthCache:{},cacheCount:0},eH=2e3,tH={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},kN="recharts_measurement_span";function rH(e){var t=zT({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Xc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ai.isSsr)return{width:0,height:0};var n=rH(r),i=JSON.stringify({text:t,copyStyle:n});if(ml.widthCache[i])return ml.widthCache[i];try{var a=document.getElementById(kN);a||(a=document.createElement("span"),a.setAttribute("id",kN),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var s=zT(zT({},tH),n);Object.assign(a.style,s),a.textContent="".concat(t);var o=a.getBoundingClientRect(),l={width:o.width,height:o.height};return ml.widthCache[i]=l,++ml.cacheCount>eH&&(ml.cacheCount=0,ml.widthCache={}),l}catch{return{width:0,height:0}}},nH=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function yf(e){"@babel/helpers - typeof";return yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yf(e)}function Eh(e,t){return oH(e)||sH(e,t)||aH(e,t)||iH()}function iH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aH(e,t){if(e){if(typeof e=="string")return NN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NN(e,t)}}function NN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function oH(e){if(Array.isArray(e))return e}function lH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cH(n.key),n)}}function uH(e,t,r){return t&&DN(e.prototype,t),r&&DN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cH(e){var t=fH(e,"string");return yf(t)=="symbol"?t:t+""}function fH(e,t){if(yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var MN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,LN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pH=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,dH=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,D3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},hH=Object.keys(D3),_l="NaN";function mH(e,t){return e*D3[t]}var Fd=(function(){function e(t,r){lH(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!pH.test(r)&&(this.num=NaN,this.unit=""),hH.includes(r)&&(this.num=mH(t,r),this.unit="px")}return uH(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=dH.exec(r))!==null&&n!==void 0?n:[],a=Eh(i,3),s=a[1],o=a[2];return new e(parseFloat(s),o??"")}}])})();function M3(e){if(e.includes(_l))return _l;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=MN.exec(t))!==null&&r!==void 0?r:[],i=Eh(n,4),a=i[1],s=i[2],o=i[3],l=Fd.parse(a??""),c=Fd.parse(o??""),p=s==="*"?l.multiply(c):l.divide(c);if(p.isNaN())return _l;t=t.replace(MN,p.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=LN.exec(t))!==null&&f!==void 0?f:[],h=Eh(d,4),v=h[1],x=h[2],y=h[3],m=Fd.parse(v??""),T=Fd.parse(y??""),A=x==="+"?m.add(T):m.subtract(T);if(A.isNaN())return _l;t=t.replace(LN,A.toString())}return t}var jN=/\(([^()]*)\)/;function yH(e){for(var t=e;t.includes("(");){var r=jN.exec(t),n=Eh(r,2),i=n[1];t=t.replace(jN,M3(i))}return t}function gH(e){var t=e.replace(/\s+/g,"");return t=yH(t),t=M3(t),t}function vH(e){try{return gH(e)}catch{return _l}}function J0(e){var t=vH(e.slice(5,-1));return t===_l?"":t}var bH=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],xH=["dx","dy","angle","className","breakAll"];function WT(){return WT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},WT.apply(this,arguments)}function RN(e,t){if(e==null)return{};var r=TH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function BN(e,t){return AH(e)||PH(e,t)||EH(e,t)||SH()}function SH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EH(e,t){if(e){if(typeof e=="string")return FN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FN(e,t)}}function FN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function AH(e){if(Array.isArray(e))return e}var L3=/[ \f\n\r\t\v\u2028\u2029]+/,j3=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];At(r)||(n?a=r.toString().split(""):a=r.toString().split(L3));var s=a.map(function(l){return{word:l,width:Xc(l,i).width}}),o=n?0:Xc(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:o}}catch{return null}},wH=function(t,r,n,i,a){var s=t.maxLines,o=t.children,l=t.style,c=t.breakAll,p=rt(s),f=o,d=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return z.reduce(function(Q,V){var X=V.word,U=V.width,N=Q[Q.length-1];if(N&&(i==null||a||N.width+U+n<Number(i)))N.words.push(X),N.width+=U+n;else{var j={words:[X],width:U};Q.push(j)}return Q},[])},h=d(r),v=function(z){return z.reduce(function(Q,V){return Q.width>V.width?Q:V})};if(!p)return h;for(var x="…",y=function(z){var Q=f.slice(0,z),V=j3({breakAll:c,style:l,children:Q+x}).wordsWithComputedWidth,X=d(V),U=X.length>s||v(X).width>Number(i);return[U,X]},m=0,T=f.length-1,A=0,E;m<=T&&A<=f.length-1;){var P=Math.floor((m+T)/2),_=P-1,I=y(_),k=BN(I,2),M=k[0],D=k[1],C=y(P),L=BN(C,1),q=L[0];if(!M&&!q&&(m=P+1),M&&q&&(T=P-1),!M&&q){E=D;break}A++}return E||h},qN=function(t){var r=At(t)?[]:t.toString().split(L3);return[{words:r}]},_H=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,s=t.breakAll,o=t.maxLines;if((r||n)&&!Ai.isSsr){var l,c,p=j3({breakAll:s,children:i,style:a});if(p){var f=p.wordsWithComputedWidth,d=p.spaceWidth;l=f,c=d}else return qN(i);return wH({breakAll:s,children:i,maxLines:o,style:a},l,c,r,n)}return qN(i)},$N="#808080",Ho=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,s=t.lineHeight,o=s===void 0?"1em":s,l=t.capHeight,c=l===void 0?"0.71em":l,p=t.scaleToFit,f=p===void 0?!1:p,d=t.textAnchor,h=d===void 0?"start":d,v=t.verticalAnchor,x=v===void 0?"end":v,y=t.fill,m=y===void 0?$N:y,T=RN(t,bH),A=te.useMemo(function(){return _H({breakAll:T.breakAll,children:T.children,maxLines:T.maxLines,scaleToFit:f,style:T.style,width:T.width})},[T.breakAll,T.children,T.maxLines,f,T.style,T.width]),E=T.dx,P=T.dy,_=T.angle,I=T.className,k=T.breakAll,M=RN(T,xH);if(!wr(n)||!wr(a))return null;var D=n+(rt(E)?E:0),C=a+(rt(P)?P:0),L;switch(x){case"start":L=J0("calc(".concat(c,")"));break;case"middle":L=J0("calc(".concat((A.length-1)/2," * -").concat(o," + (").concat(c," / 2))"));break;default:L=J0("calc(".concat(A.length-1," * -").concat(o,")"));break}var q=[];if(f){var $=A[0].width,z=T.width;q.push("scale(".concat((rt(z)?z/$:1)/$,")"))}return _&&q.push("rotate(".concat(_,", ").concat(D,", ").concat(C,")")),q.length&&(M.transform=q.join(" ")),Pe.createElement("text",WT({},yt(M,!0),{x:D,y:C,className:Ot("recharts-text",I),textAnchor:h,fill:m.includes("url")?$N:m}),A.map(function(Q,V){var X=Q.words.join(k?"":" ");return Pe.createElement("tspan",{x:D,dy:V===0?L:o,key:"".concat(X,"-").concat(V)},X)}))};function Ps(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function OH(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nE(e){let t,r,n;e.length!==2?(t=Ps,r=(o,l)=>Ps(e(o),l),n=(o,l)=>e(o)-l):(t=e===Ps||e===OH?e:CH,r=e,n=e);function i(o,l,c=0,p=o.length){if(c<p){if(t(l,l)!==0)return p;do{const f=c+p>>>1;r(o[f],l)<0?c=f+1:p=f}while(c<p)}return c}function a(o,l,c=0,p=o.length){if(c<p){if(t(l,l)!==0)return p;do{const f=c+p>>>1;r(o[f],l)<=0?c=f+1:p=f}while(c<p)}return c}function s(o,l,c=0,p=o.length){const f=i(o,l,c,p-1);return f>c&&n(o[f-1],l)>-n(o[f],l)?f-1:f}return{left:i,center:s,right:a}}function CH(){return 0}function R3(e){return e===null?NaN:+e}function*IH(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const kH=nE(Ps),ip=kH.right;nE(R3).center;class UN extends Map{constructor(t,r=MH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(VN(this,t))}has(t){return super.has(VN(this,t))}set(t,r){return super.set(NH(this,t),r)}delete(t){return super.delete(DH(this,t))}}function VN({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function NH({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function DH({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function MH(e){return e!==null&&typeof e=="object"?e.valueOf():e}function LH(e=Ps){if(e===Ps)return B3;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function B3(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const jH=Math.sqrt(50),RH=Math.sqrt(10),BH=Math.sqrt(2);function Ph(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=jH?10:a>=RH?5:a>=BH?2:1;let o,l,c;return i<0?(c=Math.pow(10,-i)/s,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*s,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=r&&r<2?Ph(e,t,r*2):[o,l,c]}function HT(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,s]=n?Ph(t,e,r):Ph(e,t,r);if(!(a>=i))return[];const o=a-i+1,l=new Array(o);if(n)if(s<0)for(let c=0;c<o;++c)l[c]=(a-c)/-s;else for(let c=0;c<o;++c)l[c]=(a-c)*s;else if(s<0)for(let c=0;c<o;++c)l[c]=(i+c)/-s;else for(let c=0;c<o;++c)l[c]=(i+c)*s;return l}function YT(e,t,r){return t=+t,e=+e,r=+r,Ph(e,t,r)[2]}function XT(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?YT(t,e,r):YT(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function KN(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function zN(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function F3(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?B3:LH(i);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,p=Math.log(l),f=.5*Math.exp(2*p/3),d=.5*Math.sqrt(p*f*(l-f)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/l+d)),v=Math.min(n,Math.floor(t+(l-c)*f/l+d));F3(e,t,h,v,i)}const a=e[t];let s=r,o=n;for(_c(e,r,t),i(e[n],a)>0&&_c(e,r,n);s<o;){for(_c(e,s,o),++s,--o;i(e[s],a)<0;)++s;for(;i(e[o],a)>0;)--o}i(e[r],a)===0?_c(e,r,o):(++o,_c(e,o,n)),o<=t&&(r=o+1),t<=o&&(n=o-1)}return e}function _c(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function FH(e,t,r){if(e=Float64Array.from(IH(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return zN(e);if(t>=1)return KN(e);var n,i=(n-1)*t,a=Math.floor(i),s=KN(F3(e,a).subarray(0,a+1)),o=zN(e.subarray(a+1));return s+(o-s)*(i-a)}}function qH(e,t,r=R3){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),s=+r(e[a],a,e),o=+r(e[a+1],a+1,e);return s+(o-s)*(i-a)}}function $H(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Vn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ma(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const GT=Symbol("implicit");function iE(){var e=new UN,t=[],r=[],n=GT;function i(a){let s=e.get(a);if(s===void 0){if(n!==GT)return n;e.set(a,s=t.push(a)-1)}return r[s%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new UN;for(const s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return iE(t,r).unknown(n)},Vn.apply(i,arguments),i}function gf(){var e=iE().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,s,o=!1,l=0,c=0,p=.5;delete e.unknown;function f(){var d=t().length,h=i<n,v=h?i:n,x=h?n:i;a=(x-v)/Math.max(1,d-l+c*2),o&&(a=Math.floor(a)),v+=(x-v-a*(d-l))*p,s=a*(1-l),o&&(v=Math.round(v),s=Math.round(s));var y=$H(d).map(function(m){return v+a*m});return r(h?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,o=!0,f()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(d){return arguments.length?(o=!!d,f()):o},e.padding=function(d){return arguments.length?(l=Math.min(1,c=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(p=Math.max(0,Math.min(1,d)),f()):p},e.copy=function(){return gf(t(),[n,i]).round(o).paddingInner(l).paddingOuter(c).align(p)},Vn.apply(f(),arguments)}function q3(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return q3(t())},e}function Gc(){return q3(gf.apply(null,arguments).paddingInner(1))}function aE(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function $3(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ap(){}var vf=.7,Ah=1/vf,Ml="\\s*([+-]?\\d+)\\s*",bf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",UH=/^#([0-9a-f]{3,8})$/,VH=new RegExp(`^rgb\\(${Ml},${Ml},${Ml}\\)$`),KH=new RegExp(`^rgb\\(${wi},${wi},${wi}\\)$`),zH=new RegExp(`^rgba\\(${Ml},${Ml},${Ml},${bf}\\)$`),WH=new RegExp(`^rgba\\(${wi},${wi},${wi},${bf}\\)$`),HH=new RegExp(`^hsl\\(${bf},${wi},${wi}\\)$`),YH=new RegExp(`^hsla\\(${bf},${wi},${wi},${bf}\\)$`),WN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};aE(ap,xf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:HN,formatHex:HN,formatHex8:XH,formatHsl:GH,formatRgb:YN,toString:YN});function HN(){return this.rgb().formatHex()}function XH(){return this.rgb().formatHex8()}function GH(){return U3(this).formatHsl()}function YN(){return this.rgb().formatRgb()}function xf(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=UH.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?XN(t):r===3?new an(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?qd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?qd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=VH.exec(e))?new an(t[1],t[2],t[3],1):(t=KH.exec(e))?new an(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zH.exec(e))?qd(t[1],t[2],t[3],t[4]):(t=WH.exec(e))?qd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=HH.exec(e))?QN(t[1],t[2]/100,t[3]/100,1):(t=YH.exec(e))?QN(t[1],t[2]/100,t[3]/100,t[4]):WN.hasOwnProperty(e)?XN(WN[e]):e==="transparent"?new an(NaN,NaN,NaN,0):null}function XN(e){return new an(e>>16&255,e>>8&255,e&255,1)}function qd(e,t,r,n){return n<=0&&(e=t=r=NaN),new an(e,t,r,n)}function JH(e){return e instanceof ap||(e=xf(e)),e?(e=e.rgb(),new an(e.r,e.g,e.b,e.opacity)):new an}function JT(e,t,r,n){return arguments.length===1?JH(e):new an(e,t,r,n??1)}function an(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}aE(an,JT,$3(ap,{brighter(e){return e=e==null?Ah:Math.pow(Ah,e),new an(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vf:Math.pow(vf,e),new an(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new an(Vo(this.r),Vo(this.g),Vo(this.b),wh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:GN,formatHex:GN,formatHex8:QH,formatRgb:JN,toString:JN}));function GN(){return`#${Bo(this.r)}${Bo(this.g)}${Bo(this.b)}`}function QH(){return`#${Bo(this.r)}${Bo(this.g)}${Bo(this.b)}${Bo((isNaN(this.opacity)?1:this.opacity)*255)}`}function JN(){const e=wh(this.opacity);return`${e===1?"rgb(":"rgba("}${Vo(this.r)}, ${Vo(this.g)}, ${Vo(this.b)}${e===1?")":`, ${e})`}`}function wh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bo(e){return e=Vo(e),(e<16?"0":"")+e.toString(16)}function QN(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ri(e,t,r,n)}function U3(e){if(e instanceof ri)return new ri(e.h,e.s,e.l,e.opacity);if(e instanceof ap||(e=xf(e)),!e)return new ri;if(e instanceof ri)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,o=a-i,l=(a+i)/2;return o?(t===a?s=(r-n)/o+(r<n)*6:r===a?s=(n-t)/o+2:s=(t-r)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new ri(s,o,l,e.opacity)}function ZH(e,t,r,n){return arguments.length===1?U3(e):new ri(e,t,r,n??1)}function ri(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}aE(ri,ZH,$3(ap,{brighter(e){return e=e==null?Ah:Math.pow(Ah,e),new ri(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vf:Math.pow(vf,e),new ri(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new an(Q0(e>=240?e-240:e+120,i,n),Q0(e,i,n),Q0(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ri(ZN(this.h),$d(this.s),$d(this.l),wh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=wh(this.opacity);return`${e===1?"hsl(":"hsla("}${ZN(this.h)}, ${$d(this.s)*100}%, ${$d(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ZN(e){return e=(e||0)%360,e<0?e+360:e}function $d(e){return Math.max(0,Math.min(1,e||0))}function Q0(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const sE=e=>()=>e;function eY(e,t){return function(r){return e+r*t}}function tY(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function rY(e){return(e=+e)==1?V3:function(t,r){return r-t?tY(t,r,e):sE(isNaN(t)?r:t)}}function V3(e,t){var r=t-e;return r?eY(e,r):sE(isNaN(e)?t:e)}const e2=(function e(t){var r=rY(t);function n(i,a){var s=r((i=JT(i)).r,(a=JT(a)).r),o=r(i.g,a.g),l=r(i.b,a.b),c=V3(i.opacity,a.opacity);return function(p){return i.r=s(p),i.g=o(p),i.b=l(p),i.opacity=c(p),i+""}}return n.gamma=e,n})(1);function nY(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function iY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function aY(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),s;for(s=0;s<n;++s)i[s]=Au(e[s],t[s]);for(;s<r;++s)a[s]=t[s];return function(o){for(s=0;s<n;++s)a[s]=i[s](o);return a}}function sY(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function _h(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function oY(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Au(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var QT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Z0=new RegExp(QT.source,"g");function lY(e){return function(){return e}}function uY(e){return function(t){return e(t)+""}}function cY(e,t){var r=QT.lastIndex=Z0.lastIndex=0,n,i,a,s=-1,o=[],l=[];for(e=e+"",t=t+"";(n=QT.exec(e))&&(i=Z0.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:_h(n,i)})),r=Z0.lastIndex;return r<t.length&&(a=t.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?uY(l[0].x):lY(t):(t=l.length,function(c){for(var p=0,f;p<t;++p)o[(f=l[p]).i]=f.x(c);return o.join("")})}function Au(e,t){var r=typeof t,n;return t==null||r==="boolean"?sE(t):(r==="number"?_h:r==="string"?(n=xf(t))?(t=n,e2):cY:t instanceof xf?e2:t instanceof Date?sY:iY(t)?nY:Array.isArray(t)?aY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?oY:_h)(e,t)}function oE(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function fY(e,t){t===void 0&&(t=e,e=Au);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(s){var o=Math.max(0,Math.min(n-1,Math.floor(s*=n)));return a[o](s-o)}}function pY(e){return function(){return e}}function Oh(e){return+e}var t2=[0,1];function Xr(e){return e}function ZT(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:pY(isNaN(t)?NaN:.5)}function dY(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function hY(e,t,r){var n=e[0],i=e[1],a=t[0],s=t[1];return i<n?(n=ZT(i,n),a=r(s,a)):(n=ZT(n,i),a=r(a,s)),function(o){return a(n(o))}}function mY(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),s=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<n;)i[s]=ZT(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(o){var l=ip(e,o,1,n)-1;return a[l](i[l](o))}}function sp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Wm(){var e=t2,t=t2,r=Au,n,i,a,s=Xr,o,l,c;function p(){var d=Math.min(e.length,t.length);return s!==Xr&&(s=dY(e[0],e[d-1])),o=d>2?mY:hY,l=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=o(e.map(n),t,r)))(n(s(d)))}return f.invert=function(d){return s(i((c||(c=o(t,e.map(n),_h)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Oh),p()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),p()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=oE,p()},f.clamp=function(d){return arguments.length?(s=d?!0:Xr,p()):s!==Xr},f.interpolate=function(d){return arguments.length?(r=d,p()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,p()}}function lE(){return Wm()(Xr,Xr)}function yY(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ch(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Hl(e){return e=Ch(Math.abs(e)),e?e[1]:NaN}function gY(e,t){return function(r,n){for(var i=r.length,a=[],s=0,o=e[0],l=0;i>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),a.push(r.substring(i-=o,i+o)),!((l+=o+1)>n));)o=e[s=(s+1)%e.length];return a.reverse().join(t)}}function vY(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var bY=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tf(e){if(!(t=bY.exec(e)))throw new Error("invalid format: "+e);var t;return new uE({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Tf.prototype=uE.prototype;function uE(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}uE.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function xY(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Ih;function TY(e,t){var r=Ch(e,t);if(!r)return Ih=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Ih=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ch(e,Math.max(0,t+a-1))[0]}function r2(e,t){var r=Ch(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const n2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:yY,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>r2(e*100,t),r:r2,s:TY,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function i2(e){return e}var a2=Array.prototype.map,s2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function SY(e){var t=e.grouping===void 0||e.thousands===void 0?i2:gY(a2.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?i2:vY(a2.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f,d){f=Tf(f);var h=f.fill,v=f.align,x=f.sign,y=f.symbol,m=f.zero,T=f.width,A=f.comma,E=f.precision,P=f.trim,_=f.type;_==="n"?(A=!0,_="g"):n2[_]||(E===void 0&&(E=12),P=!0,_="g"),(m||h==="0"&&v==="=")&&(m=!0,h="0",v="=");var I=(d&&d.prefix!==void 0?d.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():""),k=(y==="$"?n:/[%p]/.test(_)?s:"")+(d&&d.suffix!==void 0?d.suffix:""),M=n2[_],D=/[defgprs%]/.test(_);E=E===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function C(L){var q=I,$=k,z,Q,V;if(_==="c")$=M(L)+$,L="";else{L=+L;var X=L<0||1/L<0;if(L=isNaN(L)?l:M(Math.abs(L),E),P&&(L=xY(L)),X&&+L==0&&x!=="+"&&(X=!1),q=(X?x==="("?x:o:x==="-"||x==="("?"":x)+q,$=(_==="s"&&!isNaN(L)&&Ih!==void 0?s2[8+Ih/3]:"")+$+(X&&x==="("?")":""),D){for(z=-1,Q=L.length;++z<Q;)if(V=L.charCodeAt(z),48>V||V>57){$=(V===46?i+L.slice(z+1):L.slice(z))+$,L=L.slice(0,z);break}}}A&&!m&&(L=t(L,1/0));var U=q.length+L.length+$.length,N=U<T?new Array(T-U+1).join(h):"";switch(A&&m&&(L=t(N+L,N.length?T-$.length:1/0),N=""),v){case"<":L=q+L+$+N;break;case"=":L=q+N+L+$;break;case"^":L=N.slice(0,U=N.length>>1)+q+L+$+N.slice(U);break;default:L=N+q+L+$;break}return a(L)}return C.toString=function(){return f+""},C}function p(f,d){var h=Math.max(-8,Math.min(8,Math.floor(Hl(d)/3)))*3,v=Math.pow(10,-h),x=c((f=Tf(f),f.type="f",f),{suffix:s2[8+h/3]});return function(y){return x(v*y)}}return{format:c,formatPrefix:p}}var Ud,cE,K3;EY({thousands:",",grouping:[3],currency:["$",""]});function EY(e){return Ud=SY(e),cE=Ud.format,K3=Ud.formatPrefix,Ud}function PY(e){return Math.max(0,-Hl(Math.abs(e)))}function AY(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Hl(t)/3)))*3-Hl(Math.abs(e)))}function wY(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Hl(t)-Hl(e))+1}function z3(e,t,r,n){var i=XT(e,t,r),a;switch(n=Tf(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=AY(i,s))&&(n.precision=a),K3(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=wY(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=PY(i))&&(n.precision=a-(n.type==="%")*2);break}}return cE(n)}function ks(e){var t=e.domain;return e.ticks=function(r){var n=t();return HT(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return z3(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,s=n[i],o=n[a],l,c,p=10;for(o<s&&(c=s,s=o,o=c,c=i,i=a,a=c);p-- >0;){if(c=YT(s,o,r),c===l)return n[i]=s,n[a]=o,t(n);if(c>0)s=Math.floor(s/c)*c,o=Math.ceil(o/c)*c;else if(c<0)s=Math.ceil(s*c)/c,o=Math.floor(o*c)/c;else break;l=c}return e},e}function kh(){var e=lE();return e.copy=function(){return sp(e,kh())},Vn.apply(e,arguments),ks(e)}function W3(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Oh),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return W3(e).unknown(t)},e=arguments.length?Array.from(e,Oh):[0,1],ks(r)}function H3(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],s;return a<i&&(s=r,r=n,n=s,s=i,i=a,a=s),e[r]=t.floor(i),e[n]=t.ceil(a),e}function o2(e){return Math.log(e)}function l2(e){return Math.exp(e)}function _Y(e){return-Math.log(-e)}function OY(e){return-Math.exp(-e)}function CY(e){return isFinite(e)?+("1e"+e):e<0?0:e}function IY(e){return e===10?CY:e===Math.E?Math.exp:t=>Math.pow(e,t)}function kY(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function u2(e){return(t,r)=>-e(-t,r)}function fE(e){const t=e(o2,l2),r=t.domain;let n=10,i,a;function s(){return i=kY(n),a=IY(n),r()[0]<0?(i=u2(i),a=u2(a),e(_Y,OY)):e(o2,l2),t}return t.base=function(o){return arguments.length?(n=+o,s()):n},t.domain=function(o){return arguments.length?(r(o),s()):r()},t.ticks=o=>{const l=r();let c=l[0],p=l[l.length-1];const f=p<c;f&&([c,p]=[p,c]);let d=i(c),h=i(p),v,x;const y=o==null?10:+o;let m=[];if(!(n%1)&&h-d<y){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(v=1;v<n;++v)if(x=d<0?v/a(-d):v*a(d),!(x<c)){if(x>p)break;m.push(x)}}else for(;d<=h;++d)for(v=n-1;v>=1;--v)if(x=d>0?v/a(-d):v*a(d),!(x<c)){if(x>p)break;m.push(x)}m.length*2<y&&(m=HT(c,p,y))}else m=HT(d,h,Math.min(h-d,y)).map(a);return f?m.reverse():m},t.tickFormat=(o,l)=>{if(o==null&&(o=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Tf(l)).precision==null&&(l.trim=!0),l=cE(l)),o===1/0)return l;const c=Math.max(1,n*o/t.ticks().length);return p=>{let f=p/a(Math.round(i(p)));return f*n<n-.5&&(f*=n),f<=c?l(p):""}},t.nice=()=>r(H3(r(),{floor:o=>a(Math.floor(i(o))),ceil:o=>a(Math.ceil(i(o)))})),t}function Y3(){const e=fE(Wm()).domain([1,10]);return e.copy=()=>sp(e,Y3()).base(e.base()),Vn.apply(e,arguments),e}function c2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function f2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function pE(e){var t=1,r=e(c2(t),f2(t));return r.constant=function(n){return arguments.length?e(c2(t=+n),f2(t)):t},ks(r)}function X3(){var e=pE(Wm());return e.copy=function(){return sp(e,X3()).constant(e.constant())},Vn.apply(e,arguments)}function p2(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function NY(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function DY(e){return e<0?-e*e:e*e}function dE(e){var t=e(Xr,Xr),r=1;function n(){return r===1?e(Xr,Xr):r===.5?e(NY,DY):e(p2(r),p2(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},ks(t)}function hE(){var e=dE(Wm());return e.copy=function(){return sp(e,hE()).exponent(e.exponent())},Vn.apply(e,arguments),e}function MY(){return hE.apply(null,arguments).exponent(.5)}function d2(e){return Math.sign(e)*e*e}function LY(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function G3(){var e=lE(),t=[0,1],r=!1,n;function i(a){var s=LY(e(a));return isNaN(s)?n:r?Math.round(s):s}return i.invert=function(a){return e.invert(d2(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Oh)).map(d2)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return G3(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Vn.apply(i,arguments),ks(i)}function J3(){var e=[],t=[],r=[],n;function i(){var s=0,o=Math.max(1,t.length);for(r=new Array(o-1);++s<o;)r[s-1]=qH(e,s/o);return a}function a(s){return s==null||isNaN(s=+s)?n:t[ip(r,s)]}return a.invertExtent=function(s){var o=t.indexOf(s);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},a.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let o of s)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Ps),i()},a.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},a.unknown=function(s){return arguments.length?(n=s,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return J3().domain(e).range(t).unknown(n)},Vn.apply(a,arguments)}function Q3(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function s(l){return l!=null&&l<=l?i[ip(n,l,0,r)]:a}function o(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return s}return s.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},s.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,o()):i.slice()},s.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},s.unknown=function(l){return arguments.length&&(a=l),s},s.thresholds=function(){return n.slice()},s.copy=function(){return Q3().domain([e,t]).range(i).unknown(a)},Vn.apply(ks(s),arguments)}function Z3(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[ip(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var s=t.indexOf(a);return[e[s-1],e[s]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Z3().domain(e).range(t).unknown(r)},Vn.apply(i,arguments)}const ex=new Date,tx=new Date;function _r(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),o=i.ceil(a);return a-s<o-a?s:o},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,o)=>{const l=[];if(a=i.ceil(a),o=o==null?1:Math.floor(o),!(a<s)||!(o>0))return l;let c;do l.push(c=new Date(+a)),t(a,o),e(a);while(c<a&&a<s);return l},i.filter=a=>_r(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;t(s,-1),!a(s););else for(;--o>=0;)for(;t(s,1),!a(s););}),r&&(i.count=(a,s)=>(ex.setTime(+a),tx.setTime(+s),e(ex),e(tx),Math.floor(r(ex,tx))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const Nh=_r(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Nh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_r(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Nh);Nh.range;const ta=1e3,Fn=ta*60,ra=Fn*60,oa=ra*24,mE=oa*7,h2=oa*30,rx=oa*365,Fo=_r(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ta)},(e,t)=>(t-e)/ta,e=>e.getUTCSeconds());Fo.range;const yE=_r(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ta)},(e,t)=>{e.setTime(+e+t*Fn)},(e,t)=>(t-e)/Fn,e=>e.getMinutes());yE.range;const gE=_r(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Fn)},(e,t)=>(t-e)/Fn,e=>e.getUTCMinutes());gE.range;const vE=_r(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ta-e.getMinutes()*Fn)},(e,t)=>{e.setTime(+e+t*ra)},(e,t)=>(t-e)/ra,e=>e.getHours());vE.range;const bE=_r(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ra)},(e,t)=>(t-e)/ra,e=>e.getUTCHours());bE.range;const op=_r(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Fn)/oa,e=>e.getDate()-1);op.range;const Hm=_r(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/oa,e=>e.getUTCDate()-1);Hm.range;const eB=_r(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/oa,e=>Math.floor(e/oa));eB.range;function nl(e){return _r(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Fn)/mE)}const Ym=nl(0),Dh=nl(1),jY=nl(2),RY=nl(3),Yl=nl(4),BY=nl(5),FY=nl(6);Ym.range;Dh.range;jY.range;RY.range;Yl.range;BY.range;FY.range;function il(e){return _r(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/mE)}const Xm=il(0),Mh=il(1),qY=il(2),$Y=il(3),Xl=il(4),UY=il(5),VY=il(6);Xm.range;Mh.range;qY.range;$Y.range;Xl.range;UY.range;VY.range;const xE=_r(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());xE.range;const TE=_r(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());TE.range;const la=_r(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());la.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_r(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});la.range;const ua=_r(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ua.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_r(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});ua.range;function tB(e,t,r,n,i,a){const s=[[Fo,1,ta],[Fo,5,5*ta],[Fo,15,15*ta],[Fo,30,30*ta],[a,1,Fn],[a,5,5*Fn],[a,15,15*Fn],[a,30,30*Fn],[i,1,ra],[i,3,3*ra],[i,6,6*ra],[i,12,12*ra],[n,1,oa],[n,2,2*oa],[r,1,mE],[t,1,h2],[t,3,3*h2],[e,1,rx]];function o(c,p,f){const d=p<c;d&&([c,p]=[p,c]);const h=f&&typeof f.range=="function"?f:l(c,p,f),v=h?h.range(c,+p+1):[];return d?v.reverse():v}function l(c,p,f){const d=Math.abs(p-c)/f,h=nE(([,,y])=>y).right(s,d);if(h===s.length)return e.every(XT(c/rx,p/rx,f));if(h===0)return Nh.every(Math.max(XT(c,p,f),1));const[v,x]=s[d/s[h-1][2]<s[h][2]/d?h-1:h];return v.every(x)}return[o,l]}const[KY,zY]=tB(ua,TE,Xm,eB,bE,gE),[WY,HY]=tB(la,xE,Ym,op,vE,yE);function nx(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ix(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Oc(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function YY(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,c=Cc(i),p=Ic(i),f=Cc(a),d=Ic(a),h=Cc(s),v=Ic(s),x=Cc(o),y=Ic(o),m=Cc(l),T=Ic(l),A={a:V,A:X,b:U,B:N,c:null,d:x2,e:x2,f:gX,g:_X,G:CX,H:hX,I:mX,j:yX,L:rB,m:vX,M:bX,p:j,q:F,Q:E2,s:P2,S:xX,u:TX,U:SX,V:EX,w:PX,W:AX,x:null,X:null,y:wX,Y:OX,Z:IX,"%":S2},E={a:R,A:J,b:se,B:ie,c:null,d:T2,e:T2,f:MX,g:KX,G:WX,H:kX,I:NX,j:DX,L:iB,m:LX,M:jX,p:ae,q:fe,Q:E2,s:P2,S:RX,u:BX,U:FX,V:qX,w:$X,W:UX,x:null,X:null,y:VX,Y:zX,Z:HX,"%":S2},P={a:D,A:C,b:L,B:q,c:$,d:v2,e:v2,f:cX,g:g2,G:y2,H:b2,I:b2,j:sX,L:uX,m:aX,M:oX,p:M,q:iX,Q:pX,s:dX,S:lX,u:ZY,U:eX,V:tX,w:QY,W:rX,x:z,X:Q,y:g2,Y:y2,Z:nX,"%":fX};A.x=_(r,A),A.X=_(n,A),A.c=_(t,A),E.x=_(r,E),E.X=_(n,E),E.c=_(t,E);function _(de,Se){return function(Ce){var xe=[],Be=-1,Re=0,He=de.length,ze,je,re;for(Ce instanceof Date||(Ce=new Date(+Ce));++Be<He;)de.charCodeAt(Be)===37&&(xe.push(de.slice(Re,Be)),(je=m2[ze=de.charAt(++Be)])!=null?ze=de.charAt(++Be):je=ze==="e"?" ":"0",(re=Se[ze])&&(ze=re(Ce,je)),xe.push(ze),Re=Be+1);return xe.push(de.slice(Re,Be)),xe.join("")}}function I(de,Se){return function(Ce){var xe=Oc(1900,void 0,1),Be=k(xe,de,Ce+="",0),Re,He;if(Be!=Ce.length)return null;if("Q"in xe)return new Date(xe.Q);if("s"in xe)return new Date(xe.s*1e3+("L"in xe?xe.L:0));if(Se&&!("Z"in xe)&&(xe.Z=0),"p"in xe&&(xe.H=xe.H%12+xe.p*12),xe.m===void 0&&(xe.m="q"in xe?xe.q:0),"V"in xe){if(xe.V<1||xe.V>53)return null;"w"in xe||(xe.w=1),"Z"in xe?(Re=ix(Oc(xe.y,0,1)),He=Re.getUTCDay(),Re=He>4||He===0?Mh.ceil(Re):Mh(Re),Re=Hm.offset(Re,(xe.V-1)*7),xe.y=Re.getUTCFullYear(),xe.m=Re.getUTCMonth(),xe.d=Re.getUTCDate()+(xe.w+6)%7):(Re=nx(Oc(xe.y,0,1)),He=Re.getDay(),Re=He>4||He===0?Dh.ceil(Re):Dh(Re),Re=op.offset(Re,(xe.V-1)*7),xe.y=Re.getFullYear(),xe.m=Re.getMonth(),xe.d=Re.getDate()+(xe.w+6)%7)}else("W"in xe||"U"in xe)&&("w"in xe||(xe.w="u"in xe?xe.u%7:"W"in xe?1:0),He="Z"in xe?ix(Oc(xe.y,0,1)).getUTCDay():nx(Oc(xe.y,0,1)).getDay(),xe.m=0,xe.d="W"in xe?(xe.w+6)%7+xe.W*7-(He+5)%7:xe.w+xe.U*7-(He+6)%7);return"Z"in xe?(xe.H+=xe.Z/100|0,xe.M+=xe.Z%100,ix(xe)):nx(xe)}}function k(de,Se,Ce,xe){for(var Be=0,Re=Se.length,He=Ce.length,ze,je;Be<Re;){if(xe>=He)return-1;if(ze=Se.charCodeAt(Be++),ze===37){if(ze=Se.charAt(Be++),je=P[ze in m2?Se.charAt(Be++):ze],!je||(xe=je(de,Ce,xe))<0)return-1}else if(ze!=Ce.charCodeAt(xe++))return-1}return xe}function M(de,Se,Ce){var xe=c.exec(Se.slice(Ce));return xe?(de.p=p.get(xe[0].toLowerCase()),Ce+xe[0].length):-1}function D(de,Se,Ce){var xe=h.exec(Se.slice(Ce));return xe?(de.w=v.get(xe[0].toLowerCase()),Ce+xe[0].length):-1}function C(de,Se,Ce){var xe=f.exec(Se.slice(Ce));return xe?(de.w=d.get(xe[0].toLowerCase()),Ce+xe[0].length):-1}function L(de,Se,Ce){var xe=m.exec(Se.slice(Ce));return xe?(de.m=T.get(xe[0].toLowerCase()),Ce+xe[0].length):-1}function q(de,Se,Ce){var xe=x.exec(Se.slice(Ce));return xe?(de.m=y.get(xe[0].toLowerCase()),Ce+xe[0].length):-1}function $(de,Se,Ce){return k(de,t,Se,Ce)}function z(de,Se,Ce){return k(de,r,Se,Ce)}function Q(de,Se,Ce){return k(de,n,Se,Ce)}function V(de){return s[de.getDay()]}function X(de){return a[de.getDay()]}function U(de){return l[de.getMonth()]}function N(de){return o[de.getMonth()]}function j(de){return i[+(de.getHours()>=12)]}function F(de){return 1+~~(de.getMonth()/3)}function R(de){return s[de.getUTCDay()]}function J(de){return a[de.getUTCDay()]}function se(de){return l[de.getUTCMonth()]}function ie(de){return o[de.getUTCMonth()]}function ae(de){return i[+(de.getUTCHours()>=12)]}function fe(de){return 1+~~(de.getUTCMonth()/3)}return{format:function(de){var Se=_(de+="",A);return Se.toString=function(){return de},Se},parse:function(de){var Se=I(de+="",!1);return Se.toString=function(){return de},Se},utcFormat:function(de){var Se=_(de+="",E);return Se.toString=function(){return de},Se},utcParse:function(de){var Se=I(de+="",!0);return Se.toString=function(){return de},Se}}}var m2={"-":"",_:" ",0:"0"},Dr=/^\s*\d+/,XY=/^%/,GY=/[\\^$*+?|[\]().{}]/g;function Ft(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function JY(e){return e.replace(GY,"\\$&")}function Cc(e){return new RegExp("^(?:"+e.map(JY).join("|")+")","i")}function Ic(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function QY(e,t,r){var n=Dr.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ZY(e,t,r){var n=Dr.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function eX(e,t,r){var n=Dr.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function tX(e,t,r){var n=Dr.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rX(e,t,r){var n=Dr.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function y2(e,t,r){var n=Dr.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function g2(e,t,r){var n=Dr.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nX(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iX(e,t,r){var n=Dr.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function aX(e,t,r){var n=Dr.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function v2(e,t,r){var n=Dr.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function sX(e,t,r){var n=Dr.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function b2(e,t,r){var n=Dr.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function oX(e,t,r){var n=Dr.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lX(e,t,r){var n=Dr.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function uX(e,t,r){var n=Dr.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function cX(e,t,r){var n=Dr.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fX(e,t,r){var n=XY.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function pX(e,t,r){var n=Dr.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function dX(e,t,r){var n=Dr.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function x2(e,t){return Ft(e.getDate(),t,2)}function hX(e,t){return Ft(e.getHours(),t,2)}function mX(e,t){return Ft(e.getHours()%12||12,t,2)}function yX(e,t){return Ft(1+op.count(la(e),e),t,3)}function rB(e,t){return Ft(e.getMilliseconds(),t,3)}function gX(e,t){return rB(e,t)+"000"}function vX(e,t){return Ft(e.getMonth()+1,t,2)}function bX(e,t){return Ft(e.getMinutes(),t,2)}function xX(e,t){return Ft(e.getSeconds(),t,2)}function TX(e){var t=e.getDay();return t===0?7:t}function SX(e,t){return Ft(Ym.count(la(e)-1,e),t,2)}function nB(e){var t=e.getDay();return t>=4||t===0?Yl(e):Yl.ceil(e)}function EX(e,t){return e=nB(e),Ft(Yl.count(la(e),e)+(la(e).getDay()===4),t,2)}function PX(e){return e.getDay()}function AX(e,t){return Ft(Dh.count(la(e)-1,e),t,2)}function wX(e,t){return Ft(e.getFullYear()%100,t,2)}function _X(e,t){return e=nB(e),Ft(e.getFullYear()%100,t,2)}function OX(e,t){return Ft(e.getFullYear()%1e4,t,4)}function CX(e,t){var r=e.getDay();return e=r>=4||r===0?Yl(e):Yl.ceil(e),Ft(e.getFullYear()%1e4,t,4)}function IX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ft(t/60|0,"0",2)+Ft(t%60,"0",2)}function T2(e,t){return Ft(e.getUTCDate(),t,2)}function kX(e,t){return Ft(e.getUTCHours(),t,2)}function NX(e,t){return Ft(e.getUTCHours()%12||12,t,2)}function DX(e,t){return Ft(1+Hm.count(ua(e),e),t,3)}function iB(e,t){return Ft(e.getUTCMilliseconds(),t,3)}function MX(e,t){return iB(e,t)+"000"}function LX(e,t){return Ft(e.getUTCMonth()+1,t,2)}function jX(e,t){return Ft(e.getUTCMinutes(),t,2)}function RX(e,t){return Ft(e.getUTCSeconds(),t,2)}function BX(e){var t=e.getUTCDay();return t===0?7:t}function FX(e,t){return Ft(Xm.count(ua(e)-1,e),t,2)}function aB(e){var t=e.getUTCDay();return t>=4||t===0?Xl(e):Xl.ceil(e)}function qX(e,t){return e=aB(e),Ft(Xl.count(ua(e),e)+(ua(e).getUTCDay()===4),t,2)}function $X(e){return e.getUTCDay()}function UX(e,t){return Ft(Mh.count(ua(e)-1,e),t,2)}function VX(e,t){return Ft(e.getUTCFullYear()%100,t,2)}function KX(e,t){return e=aB(e),Ft(e.getUTCFullYear()%100,t,2)}function zX(e,t){return Ft(e.getUTCFullYear()%1e4,t,4)}function WX(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Xl(e):Xl.ceil(e),Ft(e.getUTCFullYear()%1e4,t,4)}function HX(){return"+0000"}function S2(){return"%"}function E2(e){return+e}function P2(e){return Math.floor(+e/1e3)}var yl,sB,oB;YX({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function YX(e){return yl=YY(e),sB=yl.format,yl.parse,oB=yl.utcFormat,yl.utcParse,yl}function XX(e){return new Date(e)}function GX(e){return e instanceof Date?+e:+new Date(+e)}function SE(e,t,r,n,i,a,s,o,l,c){var p=lE(),f=p.invert,d=p.domain,h=c(".%L"),v=c(":%S"),x=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),T=c("%b %d"),A=c("%B"),E=c("%Y");function P(_){return(l(_)<_?h:o(_)<_?v:s(_)<_?x:a(_)<_?y:n(_)<_?i(_)<_?m:T:r(_)<_?A:E)(_)}return p.invert=function(_){return new Date(f(_))},p.domain=function(_){return arguments.length?d(Array.from(_,GX)):d().map(XX)},p.ticks=function(_){var I=d();return e(I[0],I[I.length-1],_??10)},p.tickFormat=function(_,I){return I==null?P:c(I)},p.nice=function(_){var I=d();return(!_||typeof _.range!="function")&&(_=t(I[0],I[I.length-1],_??10)),_?d(H3(I,_)):p},p.copy=function(){return sp(p,SE(e,t,r,n,i,a,s,o,l,c))},p}function JX(){return Vn.apply(SE(WY,HY,la,xE,Ym,op,vE,yE,Fo,sB).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function QX(){return Vn.apply(SE(KY,zY,ua,TE,Xm,Hm,bE,gE,Fo,oB).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gm(){var e=0,t=1,r,n,i,a,s=Xr,o=!1,l;function c(f){return f==null||isNaN(f=+f)?l:s(i===0?.5:(f=(a(f)-r)*i,o?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(o=!!f,c):o},c.interpolator=function(f){return arguments.length?(s=f,c):s};function p(f){return function(d){var h,v;return arguments.length?([h,v]=d,s=f(h,v),c):[s(0),s(1)]}}return c.range=p(Au),c.rangeRound=p(oE),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function Ns(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function lB(){var e=ks(Gm()(Xr));return e.copy=function(){return Ns(e,lB())},ma.apply(e,arguments)}function uB(){var e=fE(Gm()).domain([1,10]);return e.copy=function(){return Ns(e,uB()).base(e.base())},ma.apply(e,arguments)}function cB(){var e=pE(Gm());return e.copy=function(){return Ns(e,cB()).constant(e.constant())},ma.apply(e,arguments)}function EE(){var e=dE(Gm());return e.copy=function(){return Ns(e,EE()).exponent(e.exponent())},ma.apply(e,arguments)}function ZX(){return EE.apply(null,arguments).exponent(.5)}function fB(){var e=[],t=Xr;function r(n){if(n!=null&&!isNaN(n=+n))return t((ip(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ps),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>FH(e,a/n))},r.copy=function(){return fB(t).domain(e)},ma.apply(r,arguments)}function Jm(){var e=0,t=.5,r=1,n=1,i,a,s,o,l,c=Xr,p,f=!1,d;function h(x){return isNaN(x=+x)?d:(x=.5+((x=+p(x))-a)*(n*x<n*a?o:l),c(f?Math.max(0,Math.min(1,x)):x))}h.domain=function(x){return arguments.length?([e,t,r]=x,i=p(e=+e),a=p(t=+t),s=p(r=+r),o=i===a?0:.5/(a-i),l=a===s?0:.5/(s-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(x){return arguments.length?(f=!!x,h):f},h.interpolator=function(x){return arguments.length?(c=x,h):c};function v(x){return function(y){var m,T,A;return arguments.length?([m,T,A]=y,c=fY(x,[m,T,A]),h):[c(0),c(.5),c(1)]}}return h.range=v(Au),h.rangeRound=v(oE),h.unknown=function(x){return arguments.length?(d=x,h):d},function(x){return p=x,i=x(e),a=x(t),s=x(r),o=i===a?0:.5/(a-i),l=a===s?0:.5/(s-a),n=a<i?-1:1,h}}function pB(){var e=ks(Jm()(Xr));return e.copy=function(){return Ns(e,pB())},ma.apply(e,arguments)}function dB(){var e=fE(Jm()).domain([.1,1,10]);return e.copy=function(){return Ns(e,dB()).base(e.base())},ma.apply(e,arguments)}function hB(){var e=pE(Jm());return e.copy=function(){return Ns(e,hB()).constant(e.constant())},ma.apply(e,arguments)}function PE(){var e=dE(Jm());return e.copy=function(){return Ns(e,PE()).exponent(e.exponent())},ma.apply(e,arguments)}function eG(){return PE.apply(null,arguments).exponent(.5)}const A2=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:gf,scaleDiverging:pB,scaleDivergingLog:dB,scaleDivergingPow:PE,scaleDivergingSqrt:eG,scaleDivergingSymlog:hB,scaleIdentity:W3,scaleImplicit:GT,scaleLinear:kh,scaleLog:Y3,scaleOrdinal:iE,scalePoint:Gc,scalePow:hE,scaleQuantile:J3,scaleQuantize:Q3,scaleRadial:G3,scaleSequential:lB,scaleSequentialLog:uB,scaleSequentialPow:EE,scaleSequentialQuantile:fB,scaleSequentialSqrt:ZX,scaleSequentialSymlog:cB,scaleSqrt:MY,scaleSymlog:X3,scaleThreshold:Z3,scaleTime:JX,scaleUtc:QX,tickFormat:z3},Symbol.toStringTag,{value:"Module"}));var ax,w2;function Qm(){if(w2)return ax;w2=1;var e=xu();function t(r,n,i){for(var a=-1,s=r.length;++a<s;){var o=r[a],l=n(o);if(l!=null&&(c===void 0?l===l&&!e(l):i(l,c)))var c=l,p=o}return p}return ax=t,ax}var sx,_2;function mB(){if(_2)return sx;_2=1;function e(t,r){return t>r}return sx=e,sx}var ox,O2;function tG(){if(O2)return ox;O2=1;var e=Qm(),t=mB(),r=Pu();function n(i){return i&&i.length?e(i,r,t):void 0}return ox=n,ox}var rG=tG();const Ts=Mt(rG);var lx,C2;function yB(){if(C2)return lx;C2=1;function e(t,r){return t<r}return lx=e,lx}var ux,I2;function nG(){if(I2)return ux;I2=1;var e=Qm(),t=yB(),r=Pu();function n(i){return i&&i.length?e(i,r,t):void 0}return ux=n,ux}var iG=nG();const Zm=Mt(iG);var cx,k2;function aG(){if(k2)return cx;k2=1;var e=q1(),t=Di(),r=A3(),n=ln();function i(a,s){var o=n(a)?e:r;return o(a,t(s,3))}return cx=i,cx}var fx,N2;function sG(){if(N2)return fx;N2=1;var e=E3(),t=aG();function r(n,i){return e(t(n,i),1)}return fx=r,fx}var oG=sG();const lG=Mt(oG);var px,D2;function gB(){if(D2)return px;D2=1;var e=Q1();function t(r,n){return e(r,n)}return px=t,px}var uG=gB();const Gl=Mt(uG);var wu=1e9,cG={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},wE,ir=!0,Un="[DecimalError] ",Ko=Un+"Invalid argument: ",AE=Un+"Exponent out of range: ",_u=Math.floor,Mo=Math.pow,fG=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,En,Ir=1e7,nr=7,vB=9007199254740991,Lh=_u(vB/nr),dt={};dt.absoluteValue=dt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};dt.comparedTo=dt.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};dt.decimalPlaces=dt.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*nr;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};dt.dividedBy=dt.div=function(e){return aa(this,new this.constructor(e))};dt.dividedToIntegerBy=dt.idiv=function(e){var t=this,r=t.constructor;return Wt(aa(t,new r(e),0,1),r.precision)};dt.equals=dt.eq=function(e){return!this.cmp(e)};dt.exponent=function(){return xr(this)};dt.greaterThan=dt.gt=function(e){return this.cmp(e)>0};dt.greaterThanOrEqualTo=dt.gte=function(e){return this.cmp(e)>=0};dt.isInteger=dt.isint=function(){return this.e>this.d.length-2};dt.isNegative=dt.isneg=function(){return this.s<0};dt.isPositive=dt.ispos=function(){return this.s>0};dt.isZero=function(){return this.s===0};dt.lessThan=dt.lt=function(e){return this.cmp(e)<0};dt.lessThanOrEqualTo=dt.lte=function(e){return this.cmp(e)<1};dt.logarithm=dt.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(En))throw Error(Un+"NaN");if(r.s<1)throw Error(Un+(r.s?"NaN":"-Infinity"));return r.eq(En)?new n(0):(ir=!1,t=aa(Sf(r,a),Sf(e,a),a),ir=!0,Wt(t,i))};dt.minus=dt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?TB(t,e):bB(t,(e.s=-e.s,e))};dt.modulo=dt.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Un+"NaN");return r.s?(ir=!1,t=aa(r,e,0,1).times(e),ir=!0,r.minus(t)):Wt(new n(r),i)};dt.naturalExponential=dt.exp=function(){return xB(this)};dt.naturalLogarithm=dt.ln=function(){return Sf(this)};dt.negated=dt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};dt.plus=dt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?bB(t,e):TB(t,(e.s=-e.s,e))};dt.precision=dt.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ko+e);if(t=xr(i)+1,n=i.d.length-1,r=n*nr+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};dt.squareRoot=dt.sqrt=function(){var e,t,r,n,i,a,s,o=this,l=o.constructor;if(o.s<1){if(!o.s)return new l(0);throw Error(Un+"NaN")}for(e=xr(o),ir=!1,i=Math.sqrt(+o),i==0||i==1/0?(t=Si(o.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=_u((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=s=r+3;;)if(a=n,n=a.plus(aa(o,a,s+2)).times(.5),Si(a.d).slice(0,s)===(t=Si(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(Wt(a,r+1,0),a.times(a).eq(o)){n=a;break}}else if(t!="9999")break;s+=4}return ir=!0,Wt(n,r)};dt.times=dt.mul=function(e){var t,r,n,i,a,s,o,l,c,p=this,f=p.constructor,d=p.d,h=(e=new f(e)).d;if(!p.s||!e.s)return new f(0);for(e.s*=p.s,r=p.e+e.e,l=d.length,c=h.length,l<c&&(a=d,d=h,h=a,s=l,l=c,c=s),a=[],s=l+c,n=s;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)o=a[i]+h[n]*d[i-n-1]+t,a[i--]=o%Ir|0,t=o/Ir|0;a[i]=(a[i]+t)%Ir|0}for(;!a[--s];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ir?Wt(e,f.precision):e};dt.toDecimalPlaces=dt.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Ci(e,0,wu),t===void 0?t=n.rounding:Ci(t,0,8),Wt(r,e+xr(r)+1,t))};dt.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Yo(n,!0):(Ci(e,0,wu),t===void 0?t=i.rounding:Ci(t,0,8),n=Wt(new i(n),e+1,t),r=Yo(n,!0,e+1)),r};dt.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Yo(i):(Ci(e,0,wu),t===void 0?t=a.rounding:Ci(t,0,8),n=Wt(new a(i),e+xr(i)+1,t),r=Yo(n.abs(),!1,e+xr(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};dt.toInteger=dt.toint=function(){var e=this,t=e.constructor;return Wt(new t(e),xr(e)+1,t.rounding)};dt.toNumber=function(){return+this};dt.toPower=dt.pow=function(e){var t,r,n,i,a,s,o=this,l=o.constructor,c=12,p=+(e=new l(e));if(!e.s)return new l(En);if(o=new l(o),!o.s){if(e.s<1)throw Error(Un+"Infinity");return o}if(o.eq(En))return o;if(n=l.precision,e.eq(En))return Wt(o,n);if(t=e.e,r=e.d.length-1,s=t>=r,a=o.s,s){if((r=p<0?-p:p)<=vB){for(i=new l(En),t=Math.ceil(n/nr+4),ir=!1;r%2&&(i=i.times(o),L2(i.d,t)),r=_u(r/2),r!==0;)o=o.times(o),L2(o.d,t);return ir=!0,e.s<0?new l(En).div(i):Wt(i,n)}}else if(a<0)throw Error(Un+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,o.s=1,ir=!1,i=e.times(Sf(o,n+c)),ir=!0,i=xB(i),i.s=a,i};dt.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=xr(i),n=Yo(i,r<=a.toExpNeg||r>=a.toExpPos)):(Ci(e,1,wu),t===void 0?t=a.rounding:Ci(t,0,8),i=Wt(new a(i),e,t),r=xr(i),n=Yo(i,e<=r||r<=a.toExpNeg,e)),n};dt.toSignificantDigits=dt.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ci(e,1,wu),t===void 0?t=n.rounding:Ci(t,0,8)),Wt(new n(r),e,t)};dt.toString=dt.valueOf=dt.val=dt.toJSON=dt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=xr(e),r=e.constructor;return Yo(e,t<=r.toExpNeg||t>=r.toExpPos)};function bB(e,t){var r,n,i,a,s,o,l,c,p=e.constructor,f=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),ir?Wt(t,f):t;if(l=e.d,c=t.d,s=e.e,i=t.e,l=l.slice(),a=s-i,a){for(a<0?(n=l,a=-a,o=c.length):(n=c,i=s,o=l.length),s=Math.ceil(f/nr),o=s>o?s+1:o+1,a>o&&(a=o,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(o=l.length,a=c.length,o-a<0&&(a=o,n=c,c=l,l=n),r=0;a;)r=(l[--a]=l[a]+c[a]+r)/Ir|0,l[a]%=Ir;for(r&&(l.unshift(r),++i),o=l.length;l[--o]==0;)l.pop();return t.d=l,t.e=i,ir?Wt(t,f):t}function Ci(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ko+e)}function Si(e){var t,r,n,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)n=e[t]+"",r=nr-n.length,r&&(a+=gs(r)),a+=n;s=e[t],n=s+"",r=nr-n.length,r&&(a+=gs(r))}else if(s===0)return"0";for(;s%10===0;)s/=10;return a+s}var aa=(function(){function e(n,i){var a,s=0,o=n.length;for(n=n.slice();o--;)a=n[o]*i+s,n[o]=a%Ir|0,s=a/Ir|0;return s&&n.unshift(s),n}function t(n,i,a,s){var o,l;if(a!=s)l=a>s?1:-1;else for(o=l=0;o<a;o++)if(n[o]!=i[o]){l=n[o]>i[o]?1:-1;break}return l}function r(n,i,a){for(var s=0;a--;)n[a]-=s,s=n[a]<i[a]?1:0,n[a]=s*Ir+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,s){var o,l,c,p,f,d,h,v,x,y,m,T,A,E,P,_,I,k,M=n.constructor,D=n.s==i.s?1:-1,C=n.d,L=i.d;if(!n.s)return new M(n);if(!i.s)throw Error(Un+"Division by zero");for(l=n.e-i.e,I=L.length,P=C.length,h=new M(D),v=h.d=[],c=0;L[c]==(C[c]||0);)++c;if(L[c]>(C[c]||0)&&--l,a==null?T=a=M.precision:s?T=a+(xr(n)-xr(i))+1:T=a,T<0)return new M(0);if(T=T/nr+2|0,c=0,I==1)for(p=0,L=L[0],T++;(c<P||p)&&T--;c++)A=p*Ir+(C[c]||0),v[c]=A/L|0,p=A%L|0;else{for(p=Ir/(L[0]+1)|0,p>1&&(L=e(L,p),C=e(C,p),I=L.length,P=C.length),E=I,x=C.slice(0,I),y=x.length;y<I;)x[y++]=0;k=L.slice(),k.unshift(0),_=L[0],L[1]>=Ir/2&&++_;do p=0,o=t(L,x,I,y),o<0?(m=x[0],I!=y&&(m=m*Ir+(x[1]||0)),p=m/_|0,p>1?(p>=Ir&&(p=Ir-1),f=e(L,p),d=f.length,y=x.length,o=t(f,x,d,y),o==1&&(p--,r(f,I<d?k:L,d))):(p==0&&(o=p=1),f=L.slice()),d=f.length,d<y&&f.unshift(0),r(x,f,y),o==-1&&(y=x.length,o=t(L,x,I,y),o<1&&(p++,r(x,I<y?k:L,y))),y=x.length):o===0&&(p++,x=[0]),v[c++]=p,o&&x[0]?x[y++]=C[E]||0:(x=[C[E]],y=1);while((E++<P||x[0]!==void 0)&&T--)}return v[0]||v.shift(),h.e=l,Wt(h,s?a+xr(h)+1:a)}})();function xB(e,t){var r,n,i,a,s,o,l=0,c=0,p=e.constructor,f=p.precision;if(xr(e)>16)throw Error(AE+xr(e));if(!e.s)return new p(En);for(ir=!1,o=f,s=new p(.03125);e.abs().gte(.1);)e=e.times(s),c+=5;for(n=Math.log(Mo(2,c))/Math.LN10*2+5|0,o+=n,r=i=a=new p(En),p.precision=o;;){if(i=Wt(i.times(e),o),r=r.times(++l),s=a.plus(aa(i,r,o)),Si(s.d).slice(0,o)===Si(a.d).slice(0,o)){for(;c--;)a=Wt(a.times(a),o);return p.precision=f,t==null?(ir=!0,Wt(a,f)):a}a=s}}function xr(e){for(var t=e.e*nr,r=e.d[0];r>=10;r/=10)t++;return t}function dx(e,t,r){if(t>e.LN10.sd())throw ir=!0,r&&(e.precision=r),Error(Un+"LN10 precision limit exceeded");return Wt(new e(e.LN10),t)}function gs(e){for(var t="";e--;)t+="0";return t}function Sf(e,t){var r,n,i,a,s,o,l,c,p,f=1,d=10,h=e,v=h.d,x=h.constructor,y=x.precision;if(h.s<1)throw Error(Un+(h.s?"NaN":"-Infinity"));if(h.eq(En))return new x(0);if(t==null?(ir=!1,c=y):c=t,h.eq(10))return t==null&&(ir=!0),dx(x,c);if(c+=d,x.precision=c,r=Si(v),n=r.charAt(0),a=xr(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Si(h.d),n=r.charAt(0),f++;a=xr(h),n>1?(h=new x("0."+r),a++):h=new x(n+"."+r.slice(1))}else return l=dx(x,c+2,y).times(a+""),h=Sf(new x(n+"."+r.slice(1)),c-d).plus(l),x.precision=y,t==null?(ir=!0,Wt(h,y)):h;for(o=s=h=aa(h.minus(En),h.plus(En),c),p=Wt(h.times(h),c),i=3;;){if(s=Wt(s.times(p),c),l=o.plus(aa(s,new x(i),c)),Si(l.d).slice(0,c)===Si(o.d).slice(0,c))return o=o.times(2),a!==0&&(o=o.plus(dx(x,c+2,y).times(a+""))),o=aa(o,new x(f),c),x.precision=y,t==null?(ir=!0,Wt(o,y)):o;o=l,i+=2}}function M2(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=_u(r/nr),e.d=[],n=(r+1)%nr,r<0&&(n+=nr),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=nr;n<i;)e.d.push(+t.slice(n,n+=nr));t=t.slice(n),n=nr-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ir&&(e.e>Lh||e.e<-Lh))throw Error(AE+r)}else e.s=0,e.e=0,e.d=[0];return e}function Wt(e,t,r){var n,i,a,s,o,l,c,p,f=e.d;for(s=1,a=f[0];a>=10;a/=10)s++;if(n=t-s,n<0)n+=nr,i=t,c=f[p=0];else{if(p=Math.ceil((n+1)/nr),a=f.length,p>=a)return e;for(c=a=f[p],s=1;a>=10;a/=10)s++;n%=nr,i=n-nr+s}if(r!==void 0&&(a=Mo(10,s-i-1),o=c/a%10|0,l=t<0||f[p+1]!==void 0||c%a,l=r<4?(o||l)&&(r==0||r==(e.s<0?3:2)):o>5||o==5&&(r==4||l||r==6&&(n>0?i>0?c/Mo(10,s-i):0:f[p-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=xr(e),f.length=1,t=t-a-1,f[0]=Mo(10,(nr-t%nr)%nr),e.e=_u(-t/nr)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=p,a=1,p--):(f.length=p+1,a=Mo(10,nr-n),f[p]=i>0?(c/Mo(10,s-i)%Mo(10,i)|0)*a:0),l)for(;;)if(p==0){(f[0]+=a)==Ir&&(f[0]=1,++e.e);break}else{if(f[p]+=a,f[p]!=Ir)break;f[p--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ir&&(e.e>Lh||e.e<-Lh))throw Error(AE+xr(e));return e}function TB(e,t){var r,n,i,a,s,o,l,c,p,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ir?Wt(t,h):t;if(l=e.d,f=t.d,n=t.e,c=e.e,l=l.slice(),s=c-n,s){for(p=s<0,p?(r=l,s=-s,o=f.length):(r=f,n=c,o=l.length),i=Math.max(Math.ceil(h/nr),o)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=l.length,o=f.length,p=i<o,p&&(o=i),i=0;i<o;i++)if(l[i]!=f[i]){p=l[i]<f[i];break}s=0}for(p&&(r=l,l=f,f=r,t.s=-t.s),o=l.length,i=f.length-o;i>0;--i)l[o++]=0;for(i=f.length;i>s;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=Ir-1;--l[a],l[i]+=Ir}l[i]-=f[i]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,ir?Wt(t,h):t):new d(0)}function Yo(e,t,r){var n,i=xr(e),a=Si(e.d),s=a.length;return t?(r&&(n=r-s)>0?a=a.charAt(0)+"."+a.slice(1)+gs(n):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+gs(-i-1)+a,r&&(n=r-s)>0&&(a+=gs(n))):i>=s?(a+=gs(i+1-s),r&&(n=r-i-1)>0&&(a=a+"."+gs(n))):((n=i+1)<s&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-s)>0&&(i+1===s&&(a+="."),a+=gs(n))),e.s<0?"-"+a:a}function L2(e,t){if(e.length>t)return e.length=t,!0}function SB(e){var t,r,n;function i(a){var s=this;if(!(s instanceof i))return new i(a);if(s.constructor=i,a instanceof i){s.s=a.s,s.e=a.e,s.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Ko+a);if(a>0)s.s=1;else if(a<0)a=-a,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(a===~~a&&a<1e7){s.e=0,s.d=[a];return}return M2(s,a.toString())}else if(typeof a!="string")throw Error(Ko+a);if(a.charCodeAt(0)===45?(a=a.slice(1),s.s=-1):s.s=1,fG.test(a))M2(s,a);else throw Error(Ko+a)}if(i.prototype=dt,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=SB,i.config=i.set=pG,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function pG(e){if(!e||typeof e!="object")throw Error(Un+"Object expected");var t,r,n,i=["precision",1,wu,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(_u(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ko+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ko+r+": "+n);return this}var wE=SB(cG);En=new wE(1);const zt=wE;function dG(e){return gG(e)||yG(e)||mG(e)||hG()}function hG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mG(e,t){if(e){if(typeof e=="string")return eS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eS(e,t)}}function yG(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function gG(e){if(Array.isArray(e))return eS(e)}function eS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var vG=function(t){return t},EB={},PB=function(t){return t===EB},j2=function(t){return function r(){return arguments.length===0||arguments.length===1&&PB(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},bG=function e(t,r){return t===1?r:j2(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var s=i.filter(function(o){return o!==EB}).length;return s>=t?r.apply(void 0,i):e(t-s,j2(function(){for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];var p=i.map(function(f){return PB(f)?l.shift():f});return r.apply(void 0,dG(p).concat(l))}))})},ey=function(t){return bG(t.length,t)},tS=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},xG=ey(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),TG=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return vG;var i=r.reverse(),a=i[0],s=i.slice(1);return function(){return s.reduce(function(o,l){return l(o)},a.apply(void 0,arguments))}},rS=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},AB=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r&&a.every(function(o,l){return o===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function SG(e){var t;return e===0?t=1:t=Math.floor(new zt(e).abs().log(10).toNumber())+1,t}function EG(e,t,r){for(var n=new zt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var PG=ey(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),AG=ey(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),wG=ey(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const ty={rangeStep:EG,getDigitCount:SG,interpolateNumber:PG,uninterpolateNumber:AG,uninterpolateTruncation:wG};function nS(e){return CG(e)||OG(e)||wB(e)||_G()}function _G(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OG(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function CG(e){if(Array.isArray(e))return iS(e)}function Ef(e,t){return NG(e)||kG(e,t)||wB(e,t)||IG()}function IG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wB(e,t){if(e){if(typeof e=="string")return iS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iS(e,t)}}function iS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kG(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var s=e[Symbol.iterator](),o;!(n=(o=s.next()).done)&&(r.push(o.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&s.return!=null&&s.return()}finally{if(i)throw a}}return r}}function NG(e){if(Array.isArray(e))return e}function _B(e){var t=Ef(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function OB(e,t,r){if(e.lte(0))return new zt(0);var n=ty.getDigitCount(e.toNumber()),i=new zt(10).pow(n),a=e.div(i),s=n!==1?.05:.1,o=new zt(Math.ceil(a.div(s).toNumber())).add(r).mul(s),l=o.mul(i);return t?l:new zt(Math.ceil(l))}function DG(e,t,r){var n=1,i=new zt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new zt(10).pow(ty.getDigitCount(e)-1),i=new zt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new zt(Math.floor(e)))}else e===0?i=new zt(Math.floor((t-1)/2)):r||(i=new zt(Math.floor(e)));var s=Math.floor((t-1)/2),o=TG(xG(function(l){return i.add(new zt(l-s).mul(n)).toNumber()}),tS);return o(0,t)}function CB(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new zt(0),tickMin:new zt(0),tickMax:new zt(0)};var a=OB(new zt(t).sub(e).div(r-1),n,i),s;e<=0&&t>=0?s=new zt(0):(s=new zt(e).add(t).div(2),s=s.sub(new zt(s).mod(a)));var o=Math.ceil(s.sub(e).div(a).toNumber()),l=Math.ceil(new zt(t).sub(s).div(a).toNumber()),c=o+l+1;return c>r?CB(e,t,r,n,i+1):(c<r&&(l=t>0?l+(r-c):l,o=t>0?o:o+(r-c)),{step:a,tickMin:s.sub(new zt(o).mul(a)),tickMax:s.add(new zt(l).mul(a))})}function MG(e){var t=Ef(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),o=_B([r,n]),l=Ef(o,2),c=l[0],p=l[1];if(c===-1/0||p===1/0){var f=p===1/0?[c].concat(nS(tS(0,i-1).map(function(){return 1/0}))):[].concat(nS(tS(0,i-1).map(function(){return-1/0})),[p]);return r>n?rS(f):f}if(c===p)return DG(c,i,a);var d=CB(c,p,s,a),h=d.step,v=d.tickMin,x=d.tickMax,y=ty.rangeStep(v,x.add(new zt(.1).mul(h)),h);return r>n?rS(y):y}function LG(e,t){var r=Ef(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=_B([n,i]),o=Ef(s,2),l=o[0],c=o[1];if(l===-1/0||c===1/0)return[n,i];if(l===c)return[l];var p=Math.max(t,2),f=OB(new zt(c).sub(l).div(p-1),a,0),d=[].concat(nS(ty.rangeStep(new zt(l),new zt(c).sub(new zt(.99).mul(f)),f)),[c]);return n>i?rS(d):d}var jG=AB(MG),RG=AB(LG),BG="Invariant failed";function Xo(e,t){throw new Error(BG)}var FG=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Jl(e){"@babel/helpers - typeof";return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jl(e)}function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jh.apply(this,arguments)}function qG(e,t){return KG(e)||VG(e,t)||UG(e,t)||$G()}function $G(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UG(e,t){if(e){if(typeof e=="string")return R2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R2(e,t)}}function R2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function VG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function KG(e){if(Array.isArray(e))return e}function zG(e,t){if(e==null)return{};var r=WG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function HG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,NB(n.key),n)}}function XG(e,t,r){return t&&YG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GG(e,t,r){return t=Rh(t),JG(e,IB()?Reflect.construct(t,r||[],Rh(e).constructor):t.apply(e,r))}function JG(e,t){if(t&&(Jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QG(e)}function QG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IB=function(){return!!e})()}function Rh(e){return Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rh(e)}function ZG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aS(e,t)}function aS(e,t){return aS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},aS(e,t)}function kB(e,t,r){return t=NB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NB(e){var t=eJ(e,"string");return Jl(t)=="symbol"?t:t+""}function eJ(e,t){if(Jl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ry=(function(e){function t(){return HG(this,t),GG(this,t,arguments)}return ZG(t,e),XG(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,s=n.width,o=n.dataKey,l=n.data,c=n.dataPointFormatter,p=n.xAxis,f=n.yAxis,d=zG(n,FG),h=yt(d,!1);this.props.direction==="x"&&p.type!=="number"&&Xo();var v=l.map(function(x){var y=c(x,o),m=y.x,T=y.y,A=y.value,E=y.errorVal;if(!E)return null;var P=[],_,I;if(Array.isArray(E)){var k=qG(E,2);_=k[0],I=k[1]}else _=I=E;if(a==="vertical"){var M=p.scale,D=T+i,C=D+s,L=D-s,q=M(A-_),$=M(A+I);P.push({x1:$,y1:C,x2:$,y2:L}),P.push({x1:q,y1:D,x2:$,y2:D}),P.push({x1:q,y1:C,x2:q,y2:L})}else if(a==="horizontal"){var z=f.scale,Q=m+i,V=Q-s,X=Q+s,U=z(A-_),N=z(A+I);P.push({x1:V,y1:N,x2:X,y2:N}),P.push({x1:Q,y1:U,x2:Q,y2:N}),P.push({x1:V,y1:U,x2:X,y2:U})}return Pe.createElement(Lt,jh({className:"recharts-errorBar",key:"bar-".concat(P.map(function(j){return"".concat(j.x1,"-").concat(j.x2,"-").concat(j.y1,"-").concat(j.y2)}))},h),P.map(function(j){return Pe.createElement("line",jh({},j,{key:"line-".concat(j.x1,"-").concat(j.x2,"-").concat(j.y1,"-").concat(j.y2)}))}))});return Pe.createElement(Lt,{className:"recharts-errorBars"},v)}}])})(Pe.Component);kB(ry,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});kB(ry,"displayName","ErrorBar");function Pf(e){"@babel/helpers - typeof";return Pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pf(e)}function B2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Io(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B2(Object(r),!0).forEach(function(n){tJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tJ(e,t,r){return t=rJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rJ(e){var t=nJ(e,"string");return Pf(t)=="symbol"?t:t+""}function nJ(e,t){if(Pf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DB=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,s=Sn(r,Dl);if(!s)return null;var o=Dl.defaultProps,l=o!==void 0?Io(Io({},o),s.props):{},c;return s.props&&s.props.payload?c=s.props&&s.props.payload:a==="children"?c=(n||[]).reduce(function(p,f){var d=f.item,h=f.props,v=h.sectors||h.data||[];return p.concat(v.map(function(x){return{type:s.props.iconType||d.props.legendType,value:x.name,color:x.fill,payload:x}}))},[]):c=(n||[]).map(function(p){var f=p.item,d=f.type.defaultProps,h=d!==void 0?Io(Io({},d),f.props):{},v=h.dataKey,x=h.name,y=h.legendType,m=h.hide;return{inactive:m,dataKey:v,type:l.iconType||y||"square",color:_E(f),value:x||v,payload:h}}),Io(Io(Io({},l),Dl.getWithHeight(s,i)),{},{payload:c,item:s})};function Af(e){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Af(e)}function F2(e){return oJ(e)||sJ(e)||aJ(e)||iJ()}function iJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aJ(e,t){if(e){if(typeof e=="string")return sS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sS(e,t)}}function sJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oJ(e){if(Array.isArray(e))return sS(e)}function sS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function q2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q2(Object(r),!0).forEach(function(n){Ll(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ll(e,t,r){return t=lJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lJ(e){var t=uJ(e,"string");return Af(t)=="symbol"?t:t+""}function uJ(e,t){if(Af(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Af(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ar(e,t,r){return At(e)||At(t)?r:wr(t)?wn(e,t,r):St(t)?t(e):r}function Jc(e,t,r,n){var i=lG(e,function(o){return Ar(o,t)});if(r==="number"){var a=i.filter(function(o){return rt(o)||parseFloat(o)});return a.length?[Zm(a),Ts(a)]:[1/0,-1/0]}var s=n?i.filter(function(o){return!At(o)}):i;return s.map(function(o){return wr(o)||o instanceof Date?o:""})}var cJ=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=-1,o=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(o<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,c=0;c<o;c++){var p=c>0?i[c-1].coordinate:i[o-1].coordinate,f=i[c].coordinate,d=c>=o-1?i[0].coordinate:i[c+1].coordinate,h=void 0;if(Hr(f-p)!==Hr(d-f)){var v=[];if(Hr(d-f)===Hr(l[1]-l[0])){h=d;var x=f+l[1]-l[0];v[0]=Math.min(x,(x+p)/2),v[1]=Math.max(x,(x+p)/2)}else{h=p;var y=d+l[1]-l[0];v[0]=Math.min(f,(y+f)/2),v[1]=Math.max(f,(y+f)/2)}var m=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>m[0]&&t<=m[1]||t>=v[0]&&t<=v[1]){s=i[c].index;break}}else{var T=Math.min(p,d),A=Math.max(p,d);if(t>(T+f)/2&&t<=(A+f)/2){s=i[c].index;break}}}else for(var E=0;E<o;E++)if(E===0&&t<=(n[E].coordinate+n[E+1].coordinate)/2||E>0&&E<o-1&&t>(n[E].coordinate+n[E-1].coordinate)/2&&t<=(n[E].coordinate+n[E+1].coordinate)/2||E===o-1&&t>(n[E].coordinate+n[E-1].coordinate)/2){s=n[E].index;break}return s},_E=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?or(or({},t.type.defaultProps),t.props):t.props,s=a.stroke,o=a.fill,l;switch(i){case"Line":l=s;break;case"Area":case"Radar":l=s&&s!=="none"?s:o;break;default:l=o;break}return l},fJ=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var s={},o=Object.keys(a),l=0,c=o.length;l<c;l++)for(var p=a[o[l]].stackGroups,f=Object.keys(p),d=0,h=f.length;d<h;d++){var v=p[f[d]],x=v.items,y=v.cateAxisId,m=x.filter(function(I){return ia(I.type).indexOf("Bar")>=0});if(m&&m.length){var T=m[0].type.defaultProps,A=T!==void 0?or(or({},T),m[0].props):m[0].props,E=A.barSize,P=A[y];s[P]||(s[P]=[]);var _=At(E)?r:E;s[P].push({item:m[0],stackList:m.slice(1),barSize:At(_)?void 0:Yr(_,n,0)})}}return s},pJ=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,s=a===void 0?[]:a,o=t.maxBarSize,l=s.length;if(l<1)return null;var c=Yr(r,i,0,!0),p,f=[];if(s[0].barSize===+s[0].barSize){var d=!1,h=i/l,v=s.reduce(function(E,P){return E+P.barSize||0},0);v+=(l-1)*c,v>=i&&(v-=(l-1)*c,c=0),v>=i&&h>0&&(d=!0,h*=.9,v=l*h);var x=(i-v)/2>>0,y={offset:x-c,size:0};p=s.reduce(function(E,P){var _={item:P.item,position:{offset:y.offset+y.size+c,size:d?h:P.barSize}},I=[].concat(F2(E),[_]);return y=I[I.length-1].position,P.stackList&&P.stackList.length&&P.stackList.forEach(function(k){I.push({item:k,position:y})}),I},f)}else{var m=Yr(n,i,0,!0);i-2*m-(l-1)*c<=0&&(c=0);var T=(i-2*m-(l-1)*c)/l;T>1&&(T>>=0);var A=o===+o?Math.min(T,o):T;p=s.reduce(function(E,P,_){var I=[].concat(F2(E),[{item:P.item,position:{offset:m+(T+c)*_+(T-A)/2,size:A}}]);return P.stackList&&P.stackList.length&&P.stackList.forEach(function(k){I.push({item:k,position:I[I.length-1].position})}),I},f)}return p},dJ=function(t,r,n,i){var a=n.children,s=n.width,o=n.margin,l=s-(o.left||0)-(o.right||0),c=DB({children:a,legendWidth:l});if(c){var p=i||{},f=p.width,d=p.height,h=c.align,v=c.verticalAlign,x=c.layout;if((x==="vertical"||x==="horizontal"&&v==="middle")&&h!=="center"&&rt(t[h]))return or(or({},t),{},Ll({},h,t[h]+(f||0)));if((x==="horizontal"||x==="vertical"&&h==="center")&&v!=="middle"&&rt(t[v]))return or(or({},t),{},Ll({},v,t[v]+(d||0)))}return t},hJ=function(t,r,n){return At(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},MB=function(t,r,n,i,a){var s=r.props.children,o=$n(s,ry).filter(function(c){return hJ(i,a,c.props.direction)});if(o&&o.length){var l=o.map(function(c){return c.props.dataKey});return t.reduce(function(c,p){var f=Ar(p,n);if(At(f))return c;var d=Array.isArray(f)?[Zm(f),Ts(f)]:[f,f],h=l.reduce(function(v,x){var y=Ar(p,x,0),m=d[0]-Math.abs(Array.isArray(y)?y[0]:y),T=d[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(m,v[0]),Math.max(T,v[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},mJ=function(t,r,n,i,a){var s=r.map(function(o){return MB(t,o,n,a,i)}).filter(function(o){return!At(o)});return s&&s.length?s.reduce(function(o,l){return[Math.min(o[0],l[0]),Math.max(o[1],l[1])]},[1/0,-1/0]):null},LB=function(t,r,n,i,a){var s=r.map(function(l){var c=l.props.dataKey;return n==="number"&&c&&MB(t,l,c,i)||Jc(t,c,n,a)});if(n==="number")return s.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var o={};return s.reduce(function(l,c){for(var p=0,f=c.length;p<f;p++)o[c[p]]||(o[c[p]]=!0,l.push(c[p]));return l},[])},jB=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},RB=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,s,o=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(s=!0),l.coordinate});return a||o.push(r),s||o.push(n),o},na=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,s=t.type,o=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&s==="category"&&i.bandwidth?i.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(o==null?void 0:o.length)>=2?Hr(o[0]-o[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var p=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+c,value:f,offset:c}});return p.filter(function(f){return!Su(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+c,value:f,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+c,value:f,offset:c}}):i.domain().map(function(f,d){return{coordinate:i(f)+c,value:a?a[f]:f,index:d,offset:c}})},hx=new WeakMap,Vd=function(t,r){if(typeof r!="function")return t;hx.has(t)||hx.set(t,new WeakMap);var n=hx.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},BB=function(t,r,n){var i=t.scale,a=t.type,s=t.layout,o=t.axisType;if(i==="auto")return s==="radial"&&o==="radiusAxis"?{scale:gf(),realScaleType:"band"}:s==="radial"&&o==="angleAxis"?{scale:kh(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Gc(),realScaleType:"point"}:a==="category"?{scale:gf(),realScaleType:"band"}:{scale:kh(),realScaleType:"linear"};if(zo(i)){var l="scale".concat(Fm(i));return{scale:(A2[l]||Gc)(),realScaleType:A2[l]?l:"point"}}return St(i)?{scale:i}:{scale:Gc(),realScaleType:"point"}},$2=1e-4,FB=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-$2,s=Math.max(i[0],i[1])+$2,o=t(r[0]),l=t(r[n-1]);(o<a||o>s||l<a||l>s)&&t.domain([r[0],r[n-1]])}},yJ=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},gJ=function(t,r){if(!r||r.length!==2||!rt(r[0])||!rt(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!rt(t[0])||t[0]<n)&&(a[0]=n),(!rt(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},vJ=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,s=0,o=0;o<r;++o){var l=Su(t[o][n][1])?t[o][n][0]:t[o][n][1];l>=0?(t[o][n][0]=a,t[o][n][1]=a+l,a=t[o][n][1]):(t[o][n][0]=s,t[o][n][1]=s+l,s=t[o][n][1])}},bJ=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,s=0;s<r;++s){var o=Su(t[s][n][1])?t[s][n][0]:t[s][n][1];o>=0?(t[s][n][0]=a,t[s][n][1]=a+o,a=t[s][n][1]):(t[s][n][0]=0,t[s][n][1]=0)}},xJ={sign:vJ,expand:lK,none:Ul,silhouette:uK,wiggle:cK,positive:bJ},TJ=function(t,r,n){var i=r.map(function(o){return o.props.dataKey}),a=xJ[n],s=oK().keys(i).value(function(o,l){return+Ar(o,l,0)}).order(jT).offset(a);return s(t)},SJ=function(t,r,n,i,a,s){if(!t)return null;var o=s?r.reverse():r,l={},c=o.reduce(function(f,d){var h,v=(h=d.type)!==null&&h!==void 0&&h.defaultProps?or(or({},d.type.defaultProps),d.props):d.props,x=v.stackId,y=v.hide;if(y)return f;var m=v[n],T=f[m]||{hasStack:!1,stackGroups:{}};if(wr(x)){var A=T.stackGroups[x]||{numericAxisId:n,cateAxisId:i,items:[]};A.items.push(d),T.hasStack=!0,T.stackGroups[x]=A}else T.stackGroups[Eu("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return or(or({},f),{},Ll({},m,T))},l),p={};return Object.keys(c).reduce(function(f,d){var h=c[d];if(h.hasStack){var v={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(x,y){var m=h.stackGroups[y];return or(or({},x),{},Ll({},y,{numericAxisId:n,cateAxisId:i,items:m.items,stackedData:TJ(t,m.items,a)}))},v)}return or(or({},f),{},Ll({},d,h))},p)},qB=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,s=r.originalDomain,o=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var c=t.domain();if(!c.length)return null;var p=jG(c,a,o);return t.domain([Zm(p),Ts(p)]),{niceTicks:p}}if(a&&i==="number"){var f=t.domain(),d=RG(f,a,o);return{niceTicks:d}}return null};function U2(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!At(i[t.dataKey])){var o=ph(r,"value",i[t.dataKey]);if(o)return o.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=Ar(i,At(s)?t.dataKey:s);return At(l)?null:t.scale(l)}var V2=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,s=t.entry,o=t.index;if(r.type==="category")return n[o]?n[o].coordinate+i:null;var l=Ar(s,r.dataKey,r.domain[o]);return At(l)?null:r.scale(l)-a/2+i},EJ=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},PJ=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?or(or({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(wr(a)){var s=r[a];if(s){var o=s.items.indexOf(t);return o>=0?s.stackedData[o]:null}}return null},AJ=function(t){return t.reduce(function(r,n){return[Zm(n.concat([r[0]]).filter(rt)),Ts(n.concat([r[1]]).filter(rt))]},[1/0,-1/0])},$B=function(t,r,n){return Object.keys(t).reduce(function(i,a){var s=t[a],o=s.stackedData,l=o.reduce(function(c,p){var f=AJ(p.slice(r,n+1));return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},K2=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,z2=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oS=function(t,r,n){if(St(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(rt(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(K2.test(t[0])){var a=+K2.exec(t[0])[1];i[0]=r[0]-a}else St(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(rt(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(z2.test(t[1])){var s=+z2.exec(t[1])[1];i[1]=r[1]+s}else St(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Bh=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=eE(r,function(f){return f.coordinate}),s=1/0,o=1,l=a.length;o<l;o++){var c=a[o],p=a[o-1];s=Math.min((c.coordinate||0)-(p.coordinate||0),s)}return s===1/0?0:s}return n?void 0:0},W2=function(t,r,n){return!t||!t.length||Gl(t,wn(n,"type.defaultProps.domain"))?r:t},UB=function(t,r){var n=t.type.defaultProps?or(or({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,s=n.unit,o=n.formatter,l=n.tooltipType,c=n.chartType,p=n.hide;return or(or({},yt(t,!1)),{},{dataKey:i,unit:s,formatter:o,name:a||i,color:_E(t),value:Ar(r,i),type:l,payload:r,chartType:c,hide:p})};function wf(e){"@babel/helpers - typeof";return wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wf(e)}function H2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H2(Object(r),!0).forEach(function(n){VB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VB(e,t,r){return t=wJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wJ(e){var t=_J(e,"string");return wf(t)=="symbol"?t:t+""}function _J(e,t){if(wf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OJ(e,t){return NJ(e)||kJ(e,t)||IJ(e,t)||CJ()}function CJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IJ(e,t){if(e){if(typeof e=="string")return Y2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y2(e,t)}}function Y2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kJ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function NJ(e){if(Array.isArray(e))return e}var Fh=Math.PI/180,DJ=function(t){return t*180/Math.PI},er=function(t,r,n,i){return{x:t+Math.cos(-Fh*i)*n,y:r+Math.sin(-Fh*i)*n}},KB=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},MJ=function(t,r,n,i,a){var s=t.width,o=t.height,l=t.startAngle,c=t.endAngle,p=Yr(t.cx,s,s/2),f=Yr(t.cy,o,o/2),d=KB(s,o,n),h=Yr(t.innerRadius,d,0),v=Yr(t.outerRadius,d,d*.8),x=Object.keys(r);return x.reduce(function(y,m){var T=r[m],A=T.domain,E=T.reversed,P;if(At(T.range))i==="angleAxis"?P=[l,c]:i==="radiusAxis"&&(P=[h,v]),E&&(P=[P[1],P[0]]);else{P=T.range;var _=P,I=OJ(_,2);l=I[0],c=I[1]}var k=BB(T,a),M=k.realScaleType,D=k.scale;D.domain(A).range(P),FB(D);var C=qB(D,Zi(Zi({},T),{},{realScaleType:M})),L=Zi(Zi(Zi({},T),C),{},{range:P,radius:v,realScaleType:M,scale:D,cx:p,cy:f,innerRadius:h,outerRadius:v,startAngle:l,endAngle:c});return Zi(Zi({},y),{},VB({},m,L))},{})},LJ=function(t,r){var n=t.x,i=t.y,a=r.x,s=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-s,2))},jJ=function(t,r){var n=t.x,i=t.y,a=r.cx,s=r.cy,o=LJ({x:n,y:i},{x:a,y:s});if(o<=0)return{radius:o};var l=(n-a)/o,c=Math.acos(l);return i>s&&(c=2*Math.PI-c),{radius:o,angle:DJ(c),angleInRadian:c}},RJ=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),s=Math.min(i,a);return{startAngle:r-s*360,endAngle:n-s*360}},BJ=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),s=Math.floor(i/360),o=Math.min(a,s);return t+o*360},X2=function(t,r){var n=t.x,i=t.y,a=jJ({x:n,y:i},r),s=a.radius,o=a.angle,l=r.innerRadius,c=r.outerRadius;if(s<l||s>c)return!1;if(s===0)return!0;var p=RJ(r),f=p.startAngle,d=p.endAngle,h=o,v;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;v=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;v=h>=d&&h<=f}return v?Zi(Zi({},r),{},{radius:s,angle:BJ(h,r)}):null},zB=function(t){return!te.isValidElement(t)&&!St(t)&&typeof t!="boolean"?t.className:""};function _f(e){"@babel/helpers - typeof";return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(e)}var FJ=["offset"];function qJ(e){return KJ(e)||VJ(e)||UJ(e)||$J()}function $J(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UJ(e,t){if(e){if(typeof e=="string")return lS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lS(e,t)}}function VJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KJ(e){if(Array.isArray(e))return lS(e)}function lS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zJ(e,t){if(e==null)return{};var r=WJ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function G2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G2(Object(r),!0).forEach(function(n){HJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HJ(e,t,r){return t=YJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YJ(e){var t=XJ(e,"string");return _f(t)=="symbol"?t:t+""}function XJ(e,t){if(_f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Of(){return Of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Of.apply(this,arguments)}var GJ=function(t){var r=t.value,n=t.formatter,i=At(t.children)?r:t.children;return St(n)?n(i):i},JJ=function(t,r){var n=Hr(r-t),i=Math.min(Math.abs(r-t),360);return n*i},QJ=function(t,r,n){var i=t.position,a=t.viewBox,s=t.offset,o=t.className,l=a,c=l.cx,p=l.cy,f=l.innerRadius,d=l.outerRadius,h=l.startAngle,v=l.endAngle,x=l.clockWise,y=(f+d)/2,m=JJ(h,v),T=m>=0?1:-1,A,E;i==="insideStart"?(A=h+T*s,E=x):i==="insideEnd"?(A=v-T*s,E=!x):i==="end"&&(A=v+T*s,E=x),E=m<=0?E:!E;var P=er(c,p,y,A),_=er(c,p,y,A+(E?1:-1)*359),I="M".concat(P.x,",").concat(P.y,`
A`).concat(y,",").concat(y,",0,1,").concat(E?0:1,`,
`).concat(_.x,",").concat(_.y),k=At(t.id)?Eu("recharts-radial-line-"):t.id;return Pe.createElement("text",Of({},n,{dominantBaseline:"central",className:Ot("recharts-radial-bar-label",o)}),Pe.createElement("defs",null,Pe.createElement("path",{id:k,d:I})),Pe.createElement("textPath",{xlinkHref:"#".concat(k)},r))},ZJ=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,s=a.cx,o=a.cy,l=a.innerRadius,c=a.outerRadius,p=a.startAngle,f=a.endAngle,d=(p+f)/2;if(i==="outside"){var h=er(s,o,c+n,d),v=h.x,x=h.y;return{x:v,y:x,textAnchor:v>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"end"};var y=(l+c)/2,m=er(s,o,y,d),T=m.x,A=m.y;return{x:T,y:A,textAnchor:"middle",verticalAnchor:"middle"}},eQ=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,s=r,o=s.x,l=s.y,c=s.width,p=s.height,f=p>=0?1:-1,d=f*i,h=f>0?"end":"start",v=f>0?"start":"end",x=c>=0?1:-1,y=x*i,m=x>0?"end":"start",T=x>0?"start":"end";if(a==="top"){var A={x:o+c/2,y:l-f*i,textAnchor:"middle",verticalAnchor:h};return Er(Er({},A),n?{height:Math.max(l-n.y,0),width:c}:{})}if(a==="bottom"){var E={x:o+c/2,y:l+p+d,textAnchor:"middle",verticalAnchor:v};return Er(Er({},E),n?{height:Math.max(n.y+n.height-(l+p),0),width:c}:{})}if(a==="left"){var P={x:o-y,y:l+p/2,textAnchor:m,verticalAnchor:"middle"};return Er(Er({},P),n?{width:Math.max(P.x-n.x,0),height:p}:{})}if(a==="right"){var _={x:o+c+y,y:l+p/2,textAnchor:T,verticalAnchor:"middle"};return Er(Er({},_),n?{width:Math.max(n.x+n.width-_.x,0),height:p}:{})}var I=n?{width:c,height:p}:{};return a==="insideLeft"?Er({x:o+y,y:l+p/2,textAnchor:T,verticalAnchor:"middle"},I):a==="insideRight"?Er({x:o+c-y,y:l+p/2,textAnchor:m,verticalAnchor:"middle"},I):a==="insideTop"?Er({x:o+c/2,y:l+d,textAnchor:"middle",verticalAnchor:v},I):a==="insideBottom"?Er({x:o+c/2,y:l+p-d,textAnchor:"middle",verticalAnchor:h},I):a==="insideTopLeft"?Er({x:o+y,y:l+d,textAnchor:T,verticalAnchor:v},I):a==="insideTopRight"?Er({x:o+c-y,y:l+d,textAnchor:m,verticalAnchor:v},I):a==="insideBottomLeft"?Er({x:o+y,y:l+p-d,textAnchor:T,verticalAnchor:h},I):a==="insideBottomRight"?Er({x:o+c-y,y:l+p-d,textAnchor:m,verticalAnchor:h},I):Tu(a)&&(rt(a.x)||Ro(a.x))&&(rt(a.y)||Ro(a.y))?Er({x:o+Yr(a.x,c),y:l+Yr(a.y,p),textAnchor:"end",verticalAnchor:"end"},I):Er({x:o+c/2,y:l+p/2,textAnchor:"middle",verticalAnchor:"middle"},I)},tQ=function(t){return"cx"in t&&rt(t.cx)};function kr(e){var t=e.offset,r=t===void 0?5:t,n=zJ(e,FJ),i=Er({offset:r},n),a=i.viewBox,s=i.position,o=i.value,l=i.children,c=i.content,p=i.className,f=p===void 0?"":p,d=i.textBreakAll;if(!a||At(o)&&At(l)&&!te.isValidElement(c)&&!St(c))return null;if(te.isValidElement(c))return te.cloneElement(c,i);var h;if(St(c)){if(h=te.createElement(c,i),te.isValidElement(h))return h}else h=GJ(i);var v=tQ(a),x=yt(i,!0);if(v&&(s==="insideStart"||s==="insideEnd"||s==="end"))return QJ(i,h,x);var y=v?ZJ(i):eQ(i);return Pe.createElement(Ho,Of({className:Ot("recharts-label",f)},x,y,{breakAll:d}),h)}kr.displayName="Label";var WB=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,s=t.endAngle,o=t.r,l=t.radius,c=t.innerRadius,p=t.outerRadius,f=t.x,d=t.y,h=t.top,v=t.left,x=t.width,y=t.height,m=t.clockWise,T=t.labelViewBox;if(T)return T;if(rt(x)&&rt(y)){if(rt(f)&&rt(d))return{x:f,y:d,width:x,height:y};if(rt(h)&&rt(v))return{x:h,y:v,width:x,height:y}}return rt(f)&&rt(d)?{x:f,y:d,width:0,height:0}:rt(r)&&rt(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:s||i||0,innerRadius:c||0,outerRadius:p||l||o||0,clockWise:m}:t.viewBox?t.viewBox:{}},rQ=function(t,r){return t?t===!0?Pe.createElement(kr,{key:"label-implicit",viewBox:r}):wr(t)?Pe.createElement(kr,{key:"label-implicit",viewBox:r,value:t}):te.isValidElement(t)?t.type===kr?te.cloneElement(t,{key:"label-implicit",viewBox:r}):Pe.createElement(kr,{key:"label-implicit",content:t,viewBox:r}):St(t)?Pe.createElement(kr,{key:"label-implicit",content:t,viewBox:r}):Tu(t)?Pe.createElement(kr,Of({viewBox:r},t,{key:"label-implicit"})):null:null},nQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=WB(t),s=$n(i,kr).map(function(l,c){return te.cloneElement(l,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return s;var o=rQ(t.label,r||a);return[o].concat(qJ(s))};kr.parseViewBox=WB;kr.renderCallByParent=nQ;var mx,J2;function iQ(){if(J2)return mx;J2=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return mx=e,mx}var aQ=iQ();const sQ=Mt(aQ);function Cf(e){"@babel/helpers - typeof";return Cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cf(e)}var oQ=["valueAccessor"],lQ=["data","dataKey","clockWise","id","textBreakAll"];function uQ(e){return dQ(e)||pQ(e)||fQ(e)||cQ()}function cQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fQ(e,t){if(e){if(typeof e=="string")return uS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uS(e,t)}}function pQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dQ(e){if(Array.isArray(e))return uS(e)}function uS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qh(){return qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qh.apply(this,arguments)}function Q2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Z2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q2(Object(r),!0).forEach(function(n){hQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hQ(e,t,r){return t=mQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mQ(e){var t=yQ(e,"string");return Cf(t)=="symbol"?t:t+""}function yQ(e,t){if(Cf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eD(e,t){if(e==null)return{};var r=gQ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var vQ=function(t){return Array.isArray(t.value)?sQ(t.value):t.value};function sa(e){var t=e.valueAccessor,r=t===void 0?vQ:t,n=eD(e,oQ),i=n.data,a=n.dataKey,s=n.clockWise,o=n.id,l=n.textBreakAll,c=eD(n,lQ);return!i||!i.length?null:Pe.createElement(Lt,{className:"recharts-label-list"},i.map(function(p,f){var d=At(a)?r(p,f):Ar(p&&p.payload,a),h=At(o)?{}:{id:"".concat(o,"-").concat(f)};return Pe.createElement(kr,qh({},yt(p,!0),c,h,{parentViewBox:p.parentViewBox,value:d,textBreakAll:l,viewBox:kr.parseViewBox(At(s)?p:Z2(Z2({},p),{},{clockWise:s})),key:"label-".concat(f),index:f}))}))}sa.displayName="LabelList";function bQ(e,t){return e?e===!0?Pe.createElement(sa,{key:"labelList-implicit",data:t}):Pe.isValidElement(e)||St(e)?Pe.createElement(sa,{key:"labelList-implicit",data:t,content:e}):Tu(e)?Pe.createElement(sa,qh({data:t},e,{key:"labelList-implicit"})):null:null}function xQ(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=$n(n,sa).map(function(s,o){return te.cloneElement(s,{data:t,key:"labelList-".concat(o)})});if(!r)return i;var a=bQ(e.label,t);return[a].concat(uQ(i))}sa.renderCallByParent=xQ;function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}function cS(){return cS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cS.apply(this,arguments)}function tD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tD(Object(r),!0).forEach(function(n){TQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TQ(e,t,r){return t=SQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SQ(e){var t=EQ(e,"string");return If(t)=="symbol"?t:t+""}function EQ(e,t){if(If(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(If(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PQ=function(t,r){var n=Hr(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Kd=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,s=t.sign,o=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,p=l*(o?1:-1)+i,f=Math.asin(l/p)/Fh,d=c?a:a+s*f,h=er(r,n,p,d),v=er(r,n,i,d),x=c?a-s*f:a,y=er(r,n,p*Math.cos(f*Fh),x);return{center:h,circleTangency:v,lineTangency:y,theta:f}},HB=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,s=t.startAngle,o=t.endAngle,l=PQ(s,o),c=s+l,p=er(r,n,a,s),f=er(r,n,a,c),d="M ".concat(p.x,",").concat(p.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(s>c),`,
`).concat(f.x,",").concat(f.y,`
`);if(i>0){var h=er(r,n,i,s),v=er(r,n,i,c);d+="L ".concat(v.x,",").concat(v.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(s<=c),`,
`).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},AQ=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,s=t.cornerRadius,o=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,p=t.endAngle,f=Hr(p-c),d=Kd({cx:r,cy:n,radius:a,angle:c,sign:f,cornerRadius:s,cornerIsExternal:l}),h=d.circleTangency,v=d.lineTangency,x=d.theta,y=Kd({cx:r,cy:n,radius:a,angle:p,sign:-f,cornerRadius:s,cornerIsExternal:l}),m=y.circleTangency,T=y.lineTangency,A=y.theta,E=l?Math.abs(c-p):Math.abs(c-p)-x-A;if(E<0)return o?"M ".concat(v.x,",").concat(v.y,`
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
`):HB({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:p});var P="M ".concat(v.x,",").concat(v.y,`
A`).concat(s,",").concat(s,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
A`).concat(a,",").concat(a,",0,").concat(+(E>180),",").concat(+(f<0),",").concat(m.x,",").concat(m.y,`
A`).concat(s,",").concat(s,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,`
`);if(i>0){var _=Kd({cx:r,cy:n,radius:i,angle:c,sign:f,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),I=_.circleTangency,k=_.lineTangency,M=_.theta,D=Kd({cx:r,cy:n,radius:i,angle:p,sign:-f,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),C=D.circleTangency,L=D.lineTangency,q=D.theta,$=l?Math.abs(c-p):Math.abs(c-p)-M-q;if($<0&&s===0)return"".concat(P,"L").concat(r,",").concat(n,"Z");P+="L".concat(L.x,",").concat(L.y,`
A`).concat(s,",").concat(s,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,`
A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(f>0),",").concat(I.x,",").concat(I.y,`
A`).concat(s,",").concat(s,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"Z")}else P+="L".concat(r,",").concat(n,"Z");return P},wQ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},YB=function(t){var r=rD(rD({},wQ),t),n=r.cx,i=r.cy,a=r.innerRadius,s=r.outerRadius,o=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,p=r.startAngle,f=r.endAngle,d=r.className;if(s<a||p===f)return null;var h=Ot("recharts-sector",d),v=s-a,x=Yr(o,v,0,!0),y;return x>0&&Math.abs(p-f)<360?y=AQ({cx:n,cy:i,innerRadius:a,outerRadius:s,cornerRadius:Math.min(x,v/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:p,endAngle:f}):y=HB({cx:n,cy:i,innerRadius:a,outerRadius:s,startAngle:p,endAngle:f}),Pe.createElement("path",cS({},yt(r,!0),{className:h,d:y,role:"img"}))};function kf(e){"@babel/helpers - typeof";return kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kf(e)}function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fS.apply(this,arguments)}function nD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nD(Object(r),!0).forEach(function(n){_Q(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _Q(e,t,r){return t=OQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OQ(e){var t=CQ(e,"string");return kf(t)=="symbol"?t:t+""}function CQ(e,t){if(kf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aD={curveBasisClosed:GV,curveBasisOpen:JV,curveBasis:XV,curveBumpX:LV,curveBumpY:jV,curveLinearClosed:QV,curveLinear:$m,curveMonotoneX:ZV,curveMonotoneY:eK,curveNatural:tK,curveStep:rK,curveStepAfter:iK,curveStepBefore:nK},zd=function(t){return t.x===+t.x&&t.y===+t.y},kc=function(t){return t.x},Nc=function(t){return t.y},IQ=function(t,r){if(St(t))return t;var n="curve".concat(Fm(t));return(n==="curveMonotone"||n==="curveBump")&&r?aD["".concat(n).concat(r==="vertical"?"Y":"X")]:aD[n]||$m},kQ=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,s=t.baseLine,o=t.layout,l=t.connectNulls,c=l===void 0?!1:l,p=IQ(n,o),f=c?a.filter(function(x){return zd(x)}):a,d;if(Array.isArray(s)){var h=c?s.filter(function(x){return zd(x)}):s,v=f.map(function(x,y){return iD(iD({},x),{},{base:h[y]})});return o==="vertical"?d=jd().y(Nc).x1(kc).x0(function(x){return x.base.x}):d=jd().x(kc).y1(Nc).y0(function(x){return x.base.y}),d.defined(zd).curve(p),d(v)}return o==="vertical"&&rt(s)?d=jd().y(Nc).x1(kc).x0(s):rt(s)?d=jd().x(kc).y1(Nc).y0(s):d=WR().x(kc).y(Nc),d.defined(zd).curve(p),d(f)},jl=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var s=n&&n.length?kQ(t):i;return te.createElement("path",fS({},yt(t,!1),dh(t),{className:Ot("recharts-curve",r),d:s,ref:a}))};const{getOwnPropertyNames:NQ,getOwnPropertySymbols:DQ}=Object,{hasOwnProperty:MQ}=Object.prototype;function yx(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Wd(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,s=a.get(r),o=a.get(n);if(s&&o)return s===n&&o===r;a.set(r,n),a.set(n,r);const l=e(r,n,i);return a.delete(r),a.delete(n),l}}function LQ(e){return e!=null?e[Symbol.toStringTag]:void 0}function sD(e){return NQ(e).concat(DQ(e))}const jQ=Object.hasOwn||((e,t)=>MQ.call(e,t));function al(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const RQ="__v",BQ="__o",FQ="_owner",{getOwnPropertyDescriptor:oD,keys:lD}=Object;function qQ(e,t){return e.byteLength===t.byteLength&&$h(new Uint8Array(e),new Uint8Array(t))}function $Q(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function UQ(e,t){return e.byteLength===t.byteLength&&$h(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function VQ(e,t){return al(e.getTime(),t.getTime())}function KQ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function zQ(e,t){return e===t}function uD(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let s,o,l=0;for(;(s=a.next())&&!s.done;){const c=t.entries();let p=!1,f=0;for(;(o=c.next())&&!o.done;){if(i[f]){f++;continue}const d=s.value,h=o.value;if(r.equals(d[0],h[0],l,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){p=i[f]=!0;break}f++}if(!p)return!1;l++}return!0}const WQ=al;function HQ(e,t,r){const n=lD(e);let i=n.length;if(lD(t).length!==i)return!1;for(;i-- >0;)if(!XB(e,t,r,n[i]))return!1;return!0}function Dc(e,t,r){const n=sD(e);let i=n.length;if(sD(t).length!==i)return!1;let a,s,o;for(;i-- >0;)if(a=n[i],!XB(e,t,r,a)||(s=oD(e,a),o=oD(t,a),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function YQ(e,t){return al(e.valueOf(),t.valueOf())}function XQ(e,t){return e.source===t.source&&e.flags===t.flags}function cD(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let s,o;for(;(s=a.next())&&!s.done;){const l=t.values();let c=!1,p=0;for(;(o=l.next())&&!o.done;){if(!i[p]&&r.equals(s.value,o.value,s.value,o.value,e,t,r)){c=i[p]=!0;break}p++}if(!c)return!1}return!0}function $h(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function GQ(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function XB(e,t,r,n){return(n===FQ||n===BQ||n===RQ)&&(e.$$typeof||t.$$typeof)?!0:jQ(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const JQ="[object ArrayBuffer]",QQ="[object Arguments]",ZQ="[object Boolean]",eZ="[object DataView]",tZ="[object Date]",rZ="[object Error]",nZ="[object Map]",iZ="[object Number]",aZ="[object Object]",sZ="[object RegExp]",oZ="[object Set]",lZ="[object String]",uZ={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},cZ="[object URL]",fZ=Object.prototype.toString;function pZ({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:p,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:v}){return function(y,m,T){if(y===m)return!0;if(y==null||m==null)return!1;const A=typeof y;if(A!==typeof m)return!1;if(A!=="object")return A==="number"?o(y,m,T):A==="function"?a(y,m,T):!1;const E=y.constructor;if(E!==m.constructor)return!1;if(E===Object)return l(y,m,T);if(Array.isArray(y))return t(y,m,T);if(E===Date)return n(y,m,T);if(E===RegExp)return p(y,m,T);if(E===Map)return s(y,m,T);if(E===Set)return f(y,m,T);const P=fZ.call(y);if(P===tZ)return n(y,m,T);if(P===sZ)return p(y,m,T);if(P===nZ)return s(y,m,T);if(P===oZ)return f(y,m,T);if(P===aZ)return typeof y.then!="function"&&typeof m.then!="function"&&l(y,m,T);if(P===cZ)return h(y,m,T);if(P===rZ)return i(y,m,T);if(P===QQ)return l(y,m,T);if(uZ[P])return d(y,m,T);if(P===JQ)return e(y,m,T);if(P===eZ)return r(y,m,T);if(P===ZQ||P===iZ||P===lZ)return c(y,m,T);if(v){let _=v[P];if(!_){const I=LQ(y);I&&(_=v[I])}if(_)return _(y,m,T)}return!1}}function dZ({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:qQ,areArraysEqual:r?Dc:$Q,areDataViewsEqual:UQ,areDatesEqual:VQ,areErrorsEqual:KQ,areFunctionsEqual:zQ,areMapsEqual:r?yx(uD,Dc):uD,areNumbersEqual:WQ,areObjectsEqual:r?Dc:HQ,arePrimitiveWrappersEqual:YQ,areRegExpsEqual:XQ,areSetsEqual:r?yx(cD,Dc):cD,areTypedArraysEqual:r?yx($h,Dc):$h,areUrlsEqual:GQ,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Wd(n.areArraysEqual),a=Wd(n.areMapsEqual),s=Wd(n.areObjectsEqual),o=Wd(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:o})}return n}function hZ(e){return function(t,r,n,i,a,s,o){return e(t,r,o)}}function mZ({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(o,l){const{cache:c=e?new WeakMap:void 0,meta:p}=r();return t(o,l,{cache:c,equals:n,meta:p,strict:i})};if(e)return function(o,l){return t(o,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(o,l){return t(o,l,a)}}const yZ=Ds();Ds({strict:!0});Ds({circular:!0});Ds({circular:!0,strict:!0});Ds({createInternalComparator:()=>al});Ds({strict:!0,createInternalComparator:()=>al});Ds({circular:!0,createInternalComparator:()=>al});Ds({circular:!0,createInternalComparator:()=>al,strict:!0});function Ds(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=dZ(e),s=pZ(a),o=r?r(s):hZ(s);return mZ({circular:t,comparator:s,createState:n,equals:o,strict:i})}function gZ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function fD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):gZ(i)};requestAnimationFrame(n)}function pS(e){"@babel/helpers - typeof";return pS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pS(e)}function vZ(e){return SZ(e)||TZ(e)||xZ(e)||bZ()}function bZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xZ(e,t){if(e){if(typeof e=="string")return pD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pD(e,t)}}function pD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function TZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SZ(e){if(Array.isArray(e))return e}function EZ(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var s=a,o=vZ(s),l=o[0],c=o.slice(1);if(typeof l=="number"){fD(i.bind(null,c),l);return}i(l),fD(i.bind(null,c));return}pS(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Nf(e){"@babel/helpers - typeof";return Nf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nf(e)}function dD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dD(Object(r),!0).forEach(function(n){GB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GB(e,t,r){return t=PZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PZ(e){var t=AZ(e,"string");return Nf(t)==="symbol"?t:String(t)}function AZ(e,t){if(Nf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wZ=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},_Z=function(t){return t},OZ=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Qc=function(t,r){return Object.keys(r).reduce(function(n,i){return hD(hD({},n),{},GB({},i,t(i,r[i])))},{})},mD=function(t,r,n){return t.map(function(i){return"".concat(OZ(i)," ").concat(r,"ms ").concat(n)}).join(",")};function CZ(e,t){return NZ(e)||kZ(e,t)||JB(e,t)||IZ()}function IZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function NZ(e){if(Array.isArray(e))return e}function DZ(e){return jZ(e)||LZ(e)||JB(e)||MZ()}function MZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JB(e,t){if(e){if(typeof e=="string")return dS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dS(e,t)}}function LZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jZ(e){if(Array.isArray(e))return dS(e)}function dS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Uh=1e-4,QB=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},ZB=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},yD=function(t,r){return function(n){var i=QB(t,r);return ZB(i,n)}},RZ=function(t,r){return function(n){var i=QB(t,r),a=[].concat(DZ(i.map(function(s,o){return s*o}).slice(1)),[0]);return ZB(a,n)}},gD=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],s=r[2],o=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,s=1,o=1;break;case"ease":i=.25,a=.1,s=.25,o=1;break;case"ease-in":i=.42,a=0,s=1,o=1;break;case"ease-out":i=.42,a=0,s=.58,o=1;break;case"ease-in-out":i=0,a=0,s=.58,o=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),p=CZ(c,4);i=p[0],a=p[1],s=p[2],o=p[3]}}}var f=yD(i,s),d=yD(a,o),h=RZ(i,s),v=function(m){return m>1?1:m<0?0:m},x=function(m){for(var T=m>1?1:m,A=T,E=0;E<8;++E){var P=f(A)-T,_=h(A);if(Math.abs(P-T)<Uh||_<Uh)return d(A);A=v(A-P/_)}return d(A)};return x.isStepper=!1,x},BZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,s=t.dt,o=s===void 0?17:s,l=function(p,f,d){var h=-(p-f)*n,v=d*a,x=d+(h-v)*o/1e3,y=d*o/1e3+p;return Math.abs(y-f)<Uh&&Math.abs(x)<Uh?[f,0]:[y,x]};return l.isStepper=!0,l.dt=o,l},FZ=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return gD(i);case"spring":return BZ();default:if(i.split("(")[0]==="cubic-bezier")return gD(i)}return typeof i=="function"?i:null};function Df(e){"@babel/helpers - typeof";return Df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Df(e)}function vD(e){return UZ(e)||$Z(e)||eF(e)||qZ()}function qZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Z(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UZ(e){if(Array.isArray(e))return mS(e)}function bD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bD(Object(r),!0).forEach(function(n){hS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hS(e,t,r){return t=VZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VZ(e){var t=KZ(e,"string");return Df(t)==="symbol"?t:String(t)}function KZ(e,t){if(Df(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Df(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zZ(e,t){return YZ(e)||HZ(e,t)||eF(e,t)||WZ()}function WZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eF(e,t){if(e){if(typeof e=="string")return mS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mS(e,t)}}function mS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function YZ(e){if(Array.isArray(e))return e}var Vh=function(t,r,n){return t+(r-t)*n},yS=function(t){var r=t.from,n=t.to;return r!==n},XZ=function e(t,r,n){var i=Qc(function(a,s){if(yS(s)){var o=t(s.from,s.to,s.velocity),l=zZ(o,2),c=l[0],p=l[1];return Lr(Lr({},s),{},{from:c,velocity:p})}return s},r);return n<1?Qc(function(a,s){return yS(s)?Lr(Lr({},s),{},{velocity:Vh(s.velocity,i[a].velocity,n),from:Vh(s.from,i[a].from,n)}):s},r):e(t,i,n-1)};const GZ=(function(e,t,r,n,i){var a=wZ(e,t),s=a.reduce(function(y,m){return Lr(Lr({},y),{},hS({},m,[e[m],t[m]]))},{}),o=a.reduce(function(y,m){return Lr(Lr({},y),{},hS({},m,{from:e[m],velocity:0,to:t[m]}))},{}),l=-1,c,p,f=function(){return null},d=function(){return Qc(function(m,T){return T.from},o)},h=function(){return!Object.values(o).filter(yS).length},v=function(m){c||(c=m);var T=m-c,A=T/r.dt;o=XZ(r,o,A),i(Lr(Lr(Lr({},e),t),d())),c=m,h()||(l=requestAnimationFrame(f))},x=function(m){p||(p=m);var T=(m-p)/n,A=Qc(function(P,_){return Vh.apply(void 0,vD(_).concat([r(T)]))},s);if(i(Lr(Lr(Lr({},e),t),A)),T<1)l=requestAnimationFrame(f);else{var E=Qc(function(P,_){return Vh.apply(void 0,vD(_).concat([r(1)]))},s);i(Lr(Lr(Lr({},e),t),E))}};return f=r.isStepper?v:x,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function Ql(e){"@babel/helpers - typeof";return Ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ql(e)}var JZ=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function QZ(e,t){if(e==null)return{};var r=ZZ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZZ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function gx(e){return nee(e)||ree(e)||tee(e)||eee()}function eee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tee(e,t){if(e){if(typeof e=="string")return gS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gS(e,t)}}function ree(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nee(e){if(Array.isArray(e))return gS(e)}function gS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xD(Object(r),!0).forEach(function(n){Wc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wc(e,t,r){return t=tF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tF(n.key),n)}}function see(e,t,r){return t&&aee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tF(e){var t=oee(e,"string");return Ql(t)==="symbol"?t:String(t)}function oee(e,t){if(Ql(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ql(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vS(e,t)}function vS(e,t){return vS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vS(e,t)}function uee(e){var t=cee();return function(){var n=Kh(e),i;if(t){var a=Kh(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return bS(this,i)}}function bS(e,t){if(t&&(Ql(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xS(e)}function xS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kh(e)}var Ii=(function(e){lee(r,e);var t=uee(r);function r(n,i){var a;iee(this,r),a=t.call(this,n,i);var s=a.props,o=s.isActive,l=s.attributeName,c=s.from,p=s.to,f=s.steps,d=s.children,h=s.duration;if(a.handleStyleChange=a.handleStyleChange.bind(xS(a)),a.changeStyle=a.changeStyle.bind(xS(a)),!o||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:p}),bS(a);if(f&&f.length)a.state={style:f[0].style};else if(c){if(typeof d=="function")return a.state={style:c},bS(a);a.state={style:l?Wc({},l,c):c}}else a.state={style:{}};return a}return see(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,s=i.canBegin;this.mounted=!0,!(!a||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,s=a.isActive,o=a.canBegin,l=a.attributeName,c=a.shouldReAnimate,p=a.to,f=a.from,d=this.state.style;if(o){if(!s){var h={style:l?Wc({},l,p):p};this.state&&d&&(l&&d[l]!==p||!l&&d!==p)&&this.setState(h);return}if(!(yZ(i.to,p)&&i.canBegin&&i.isActive)){var v=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var x=v||c?f:i.to;if(this.state&&d){var y={style:l?Wc({},l,x):x};(l&&d[l]!==x||!l&&d!==x)&&this.setState(y)}this.runAnimation(Zn(Zn({},this.props),{},{from:x,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,s=i.from,o=i.to,l=i.duration,c=i.easing,p=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=GZ(s,o,FZ(c),l,this.changeStyle),v=function(){a.stopJSAnimation=h()};this.manager.start([d,p,v,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,s=i.steps,o=i.begin,l=i.onAnimationStart,c=s[0],p=c.style,f=c.duration,d=f===void 0?0:f,h=function(x,y,m){if(m===0)return x;var T=y.duration,A=y.easing,E=A===void 0?"ease":A,P=y.style,_=y.properties,I=y.onAnimationEnd,k=m>0?s[m-1]:y,M=_||Object.keys(P);if(typeof E=="function"||E==="spring")return[].concat(gx(x),[a.runJSAnimation.bind(a,{from:k.style,to:P,duration:T,easing:E}),T]);var D=mD(M,T,E),C=Zn(Zn(Zn({},k.style),P),{},{transition:D});return[].concat(gx(x),[C,T,I]).filter(_Z)};return this.manager.start([l].concat(gx(s.reduce(h,[p,Math.max(d,o)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=EZ());var a=i.begin,s=i.duration,o=i.attributeName,l=i.to,c=i.easing,p=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var x=o?Wc({},o,l):l,y=mD(Object.keys(x),s,c);v.start([p,a,Zn(Zn({},x),{},{transition:y}),s,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var o=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=QZ(i,JZ),c=te.Children.count(a),p=this.state.style;if(typeof a=="function")return a(p);if(!o||c===0||s<=0)return a;var f=function(h){var v=h.props,x=v.style,y=x===void 0?{}:x,m=v.className,T=te.cloneElement(h,Zn(Zn({},l),{},{style:Zn(Zn({},y),p),className:m}));return T};return c===1?f(te.Children.only(a)):Pe.createElement("div",null,te.Children.map(a,function(d){return f(d)}))}}]),r})(te.PureComponent);Ii.displayName="Animate";Ii.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ii.propTypes={from:ht.oneOfType([ht.object,ht.string]),to:ht.oneOfType([ht.object,ht.string]),attributeName:ht.string,duration:ht.number,begin:ht.number,easing:ht.oneOfType([ht.string,ht.func]),steps:ht.arrayOf(ht.shape({duration:ht.number.isRequired,style:ht.object.isRequired,easing:ht.oneOfType([ht.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ht.func]),properties:ht.arrayOf("string"),onAnimationEnd:ht.func})),children:ht.oneOfType([ht.node,ht.func]),isActive:ht.bool,canBegin:ht.bool,onAnimationEnd:ht.func,shouldReAnimate:ht.bool,onAnimationStart:ht.func,onAnimationReStart:ht.func};function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(e)}function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zh.apply(this,arguments)}function fee(e,t){return mee(e)||hee(e,t)||dee(e,t)||pee()}function pee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dee(e,t){if(e){if(typeof e=="string")return TD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TD(e,t)}}function TD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function mee(e){if(Array.isArray(e))return e}function SD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ED(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SD(Object(r),!0).forEach(function(n){yee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yee(e,t,r){return t=gee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gee(e){var t=vee(e,"string");return Mf(t)=="symbol"?t:t+""}function vee(e,t){if(Mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PD=function(t,r,n,i,a){var s=Math.min(Math.abs(n)/2,Math.abs(i)/2),o=i>=0?1:-1,l=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,p;if(s>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=a[d]>s?s:a[d];p="M".concat(t,",").concat(r+o*f[0]),f[0]>0&&(p+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(c,",").concat(t+l*f[0],",").concat(r)),p+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(p+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(c,`,
`).concat(t+n,",").concat(r+o*f[1])),p+="L ".concat(t+n,",").concat(r+i-o*f[2]),f[2]>0&&(p+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(c,`,
`).concat(t+n-l*f[2],",").concat(r+i)),p+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(p+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(c,`,
`).concat(t,",").concat(r+i-o*f[3])),p+="Z"}else if(s>0&&a===+a&&a>0){var v=Math.min(s,a);p="M ".concat(t,",").concat(r+o*v,`
A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+l*v,",").concat(r,`
L `).concat(t+n-l*v,",").concat(r,`
A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+n,",").concat(r+o*v,`
L `).concat(t+n,",").concat(r+i-o*v,`
A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+n-l*v,",").concat(r+i,`
L `).concat(t+l*v,",").concat(r+i,`
A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t,",").concat(r+i-o*v," Z")}else p="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return p},bee=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,s=r.y,o=r.width,l=r.height;if(Math.abs(o)>0&&Math.abs(l)>0){var c=Math.min(a,a+o),p=Math.max(a,a+o),f=Math.min(s,s+l),d=Math.max(s,s+l);return n>=c&&n<=p&&i>=f&&i<=d}return!1},xee={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},OE=function(t){var r=ED(ED({},xee),t),n=te.useRef(),i=te.useState(-1),a=fee(i,2),s=a[0],o=a[1];te.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var E=n.current.getTotalLength();E&&o(E)}catch{}},[]);var l=r.x,c=r.y,p=r.width,f=r.height,d=r.radius,h=r.className,v=r.animationEasing,x=r.animationDuration,y=r.animationBegin,m=r.isAnimationActive,T=r.isUpdateAnimationActive;if(l!==+l||c!==+c||p!==+p||f!==+f||p===0||f===0)return null;var A=Ot("recharts-rectangle",h);return T?Pe.createElement(Ii,{canBegin:s>0,from:{width:p,height:f,x:l,y:c},to:{width:p,height:f,x:l,y:c},duration:x,animationEasing:v,isActive:T},function(E){var P=E.width,_=E.height,I=E.x,k=E.y;return Pe.createElement(Ii,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:x,isActive:m,easing:v},Pe.createElement("path",zh({},yt(r,!0),{className:A,d:PD(I,k,P,_,d),ref:n})))}):Pe.createElement("path",zh({},yt(r,!0),{className:A,d:PD(l,c,p,f,d)}))},Tee=["points","className","baseLinePoints","connectNulls"];function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ol.apply(this,arguments)}function See(e,t){if(e==null)return{};var r=Eee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Eee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function AD(e){return _ee(e)||wee(e)||Aee(e)||Pee()}function Pee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aee(e,t){if(e){if(typeof e=="string")return TS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TS(e,t)}}function wee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _ee(e){if(Array.isArray(e))return TS(e)}function TS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var wD=function(t){return t&&t.x===+t.x&&t.y===+t.y},Oee=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){wD(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),wD(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Zc=function(t,r){var n=Oee(t);r&&(n=[n.reduce(function(a,s){return[].concat(AD(a),AD(s))},[])]);var i=n.map(function(a){return a.reduce(function(s,o,l){return"".concat(s).concat(l===0?"M":"L").concat(o.x,",").concat(o.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},Cee=function(t,r,n){var i=Zc(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Zc(r.reverse(),n).slice(1))},Iee=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,s=See(t,Tee);if(!r||!r.length)return null;var o=Ot("recharts-polygon",n);if(i&&i.length){var l=s.stroke&&s.stroke!=="none",c=Cee(r,i,a);return Pe.createElement("g",{className:o},Pe.createElement("path",Ol({},yt(s,!0),{fill:c.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:c})),l?Pe.createElement("path",Ol({},yt(s,!0),{fill:"none",d:Zc(r,a)})):null,l?Pe.createElement("path",Ol({},yt(s,!0),{fill:"none",d:Zc(i,a)})):null)}var p=Zc(r,a);return Pe.createElement("path",Ol({},yt(s,!0),{fill:p.slice(-1)==="Z"?s.fill:"none",className:o,d:p}))};function SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},SS.apply(this,arguments)}var ny=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,s=Ot("recharts-dot",a);return r===+r&&n===+n&&i===+i?te.createElement("circle",SS({},yt(t,!1),dh(t),{className:s,cx:r,cy:n,r:i})):null};function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}var kee=["x","y","top","left","width","height","className"];function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ES.apply(this,arguments)}function _D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_D(Object(r),!0).forEach(function(n){Dee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_D(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dee(e,t,r){return t=Mee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mee(e){var t=Lee(e,"string");return Lf(t)=="symbol"?t:t+""}function Lee(e,t){if(Lf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jee(e,t){if(e==null)return{};var r=Ree(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ree(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Bee=function(t,r,n,i,a,s){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(s,",").concat(r,"h").concat(n)},Fee=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,s=t.top,o=s===void 0?0:s,l=t.left,c=l===void 0?0:l,p=t.width,f=p===void 0?0:p,d=t.height,h=d===void 0?0:d,v=t.className,x=jee(t,kee),y=Nee({x:n,y:a,top:o,left:c,width:f,height:h},x);return!rt(n)||!rt(a)||!rt(f)||!rt(h)||!rt(o)||!rt(c)?null:Pe.createElement("path",ES({},yt(y,!0),{className:Ot("recharts-cross",v),d:Bee(n,a,f,h,o,c)}))},vx,OD;function qee(){if(OD)return vx;OD=1;var e=Qm(),t=mB(),r=Di();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return vx=n,vx}var $ee=qee();const Uee=Mt($ee);var bx,CD;function Vee(){if(CD)return bx;CD=1;var e=Qm(),t=Di(),r=yB();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return bx=n,bx}var Kee=Vee();const zee=Mt(Kee);var Wee=["cx","cy","angle","ticks","axisLine"],Hee=["ticks","tick","angle","tickFormatter","stroke"];function Zl(e){"@babel/helpers - typeof";return Zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zl(e)}function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ef.apply(this,arguments)}function ID(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ko(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ID(Object(r),!0).forEach(function(n){iy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ID(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kD(e,t){if(e==null)return{};var r=Yee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Xee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ND(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nF(n.key),n)}}function Gee(e,t,r){return t&&ND(e.prototype,t),r&&ND(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jee(e,t,r){return t=Wh(t),Qee(e,rF()?Reflect.construct(t,r||[],Wh(e).constructor):t.apply(e,r))}function Qee(e,t){if(t&&(Zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zee(e)}function Zee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rF=function(){return!!e})()}function Wh(e){return Wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wh(e)}function ete(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PS(e,t)}function PS(e,t){return PS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},PS(e,t)}function iy(e,t,r){return t=nF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nF(e){var t=tte(e,"string");return Zl(t)=="symbol"?t:t+""}function tte(e,t){if(Zl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ay=(function(e){function t(){return Xee(this,t),Jee(this,t,arguments)}return ete(t,e),Gee(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,s=a.angle,o=a.cx,l=a.cy;return er(o,l,i,s)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,s=n.angle,o=n.ticks,l=Uee(o,function(p){return p.coordinate||0}),c=zee(o,function(p){return p.coordinate||0});return{cx:i,cy:a,startAngle:s,endAngle:s,innerRadius:c.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,s=n.angle,o=n.ticks,l=n.axisLine,c=kD(n,Wee),p=o.reduce(function(v,x){return[Math.min(v[0],x.coordinate),Math.max(v[1],x.coordinate)]},[1/0,-1/0]),f=er(i,a,p[0],s),d=er(i,a,p[1],s),h=ko(ko(ko({},yt(c,!1)),{},{fill:"none"},yt(l,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return Pe.createElement("line",ef({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,s=i.tick,o=i.angle,l=i.tickFormatter,c=i.stroke,p=kD(i,Hee),f=this.getTickTextAnchor(),d=yt(p,!1),h=yt(s,!1),v=a.map(function(x,y){var m=n.getTickValueCoord(x),T=ko(ko(ko(ko({textAnchor:f,transform:"rotate(".concat(90-o,", ").concat(m.x,", ").concat(m.y,")")},d),{},{stroke:"none",fill:c},h),{},{index:y},m),{},{payload:x});return Pe.createElement(Lt,ef({className:Ot("recharts-polar-radius-axis-tick",zB(s)),key:"tick-".concat(x.coordinate)},Wo(n.props,x,y)),t.renderTickItem(s,T,l?l(x.value,y):x.value))});return Pe.createElement(Lt,{className:"recharts-polar-radius-axis-ticks"},v)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,s=n.tick;return!i||!i.length?null:Pe.createElement(Lt,{className:Ot("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),s&&this.renderTicks(),kr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var s;return Pe.isValidElement(n)?s=Pe.cloneElement(n,i):St(n)?s=n(i):s=Pe.createElement(Ho,ef({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),s}}])})(te.PureComponent);iy(ay,"displayName","PolarRadiusAxis");iy(ay,"axisType","radiusAxis");iy(ay,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function eu(e){"@babel/helpers - typeof";return eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eu(e)}function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lo.apply(this,arguments)}function DD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function No(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DD(Object(r),!0).forEach(function(n){sy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aF(n.key),n)}}function nte(e,t,r){return t&&MD(e.prototype,t),r&&MD(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ite(e,t,r){return t=Hh(t),ate(e,iF()?Reflect.construct(t,r||[],Hh(e).constructor):t.apply(e,r))}function ate(e,t){if(t&&(eu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ste(e)}function ste(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iF=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hh(e)}function ote(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AS(e,t)}function AS(e,t){return AS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},AS(e,t)}function sy(e,t,r){return t=aF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aF(e){var t=lte(e,"string");return eu(t)=="symbol"?t:t+""}function lte(e,t){if(eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ute=Math.PI/180,LD=1e-5,oy=(function(e){function t(){return rte(this,t),ite(this,t,arguments)}return ote(t,e),nte(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,s=i.cy,o=i.radius,l=i.orientation,c=i.tickSize,p=c||8,f=er(a,s,o,n.coordinate),d=er(a,s,o+(l==="inner"?-1:1)*p,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*ute),s;return a>LD?s=i==="outer"?"start":"end":a<-LD?s=i==="outer"?"end":"start":s="middle",s}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,s=n.radius,o=n.axisLine,l=n.axisLineType,c=No(No({},yt(this.props,!1)),{},{fill:"none"},yt(o,!1));if(l==="circle")return Pe.createElement(ny,Lo({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:s}));var p=this.props.ticks,f=p.map(function(d){return er(i,a,s,d.coordinate)});return Pe.createElement(Iee,Lo({className:"recharts-polar-angle-axis-line"},c,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,s=i.tick,o=i.tickLine,l=i.tickFormatter,c=i.stroke,p=yt(this.props,!1),f=yt(s,!1),d=No(No({},p),{},{fill:"none"},yt(o,!1)),h=a.map(function(v,x){var y=n.getTickLineCoord(v),m=n.getTickTextAnchor(v),T=No(No(No({textAnchor:m},p),{},{stroke:"none",fill:c},f),{},{index:x,payload:v,x:y.x2,y:y.y2});return Pe.createElement(Lt,Lo({className:Ot("recharts-polar-angle-axis-tick",zB(s)),key:"tick-".concat(v.coordinate)},Wo(n.props,v,x)),o&&Pe.createElement("line",Lo({className:"recharts-polar-angle-axis-tick-line"},d,y)),s&&t.renderTickItem(s,T,l?l(v.value,x):v.value))});return Pe.createElement(Lt,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,s=n.axisLine;return a<=0||!i||!i.length?null:Pe.createElement(Lt,{className:Ot("recharts-polar-angle-axis",this.props.className)},s&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var s;return Pe.isValidElement(n)?s=Pe.cloneElement(n,i):St(n)?s=n(i):s=Pe.createElement(Ho,Lo({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),s}}])})(te.PureComponent);sy(oy,"displayName","PolarAngleAxis");sy(oy,"axisType","angleAxis");sy(oy,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var xx,jD;function cte(){if(jD)return xx;jD=1;var e=m3(),t=e(Object.getPrototypeOf,Object);return xx=t,xx}var Tx,RD;function fte(){if(RD)return Tx;RD=1;var e=da(),t=cte(),r=ha(),n="[object Object]",i=Function.prototype,a=Object.prototype,s=i.toString,o=a.hasOwnProperty,l=s.call(Object);function c(p){if(!r(p)||e(p)!=n)return!1;var f=t(p);if(f===null)return!0;var d=o.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&s.call(d)==l}return Tx=c,Tx}var pte=fte();const dte=Mt(pte);var Sx,BD;function hte(){if(BD)return Sx;BD=1;var e=da(),t=ha(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Sx=n,Sx}var mte=hte();const yte=Mt(mte);function jf(e){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(e)}function Yh(){return Yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yh.apply(this,arguments)}function gte(e,t){return Tte(e)||xte(e,t)||bte(e,t)||vte()}function vte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bte(e,t){if(e){if(typeof e=="string")return FD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FD(e,t)}}function FD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xte(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function Tte(e){if(Array.isArray(e))return e}function qD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qD(Object(r),!0).forEach(function(n){Ste(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ste(e,t,r){return t=Ete(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ete(e){var t=Pte(e,"string");return jf(t)=="symbol"?t:t+""}function Pte(e,t){if(jf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UD=function(t,r,n,i,a){var s=n-i,o;return o="M ".concat(t,",").concat(r),o+="L ".concat(t+n,",").concat(r),o+="L ".concat(t+n-s/2,",").concat(r+a),o+="L ".concat(t+n-s/2-i,",").concat(r+a),o+="L ".concat(t,",").concat(r," Z"),o},Ate={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},wte=function(t){var r=$D($D({},Ate),t),n=te.useRef(),i=te.useState(-1),a=gte(i,2),s=a[0],o=a[1];te.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&o(A)}catch{}},[]);var l=r.x,c=r.y,p=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,v=r.animationEasing,x=r.animationDuration,y=r.animationBegin,m=r.isUpdateAnimationActive;if(l!==+l||c!==+c||p!==+p||f!==+f||d!==+d||p===0&&f===0||d===0)return null;var T=Ot("recharts-trapezoid",h);return m?Pe.createElement(Ii,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:c},to:{upperWidth:p,lowerWidth:f,height:d,x:l,y:c},duration:x,animationEasing:v,isActive:m},function(A){var E=A.upperWidth,P=A.lowerWidth,_=A.height,I=A.x,k=A.y;return Pe.createElement(Ii,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:x,easing:v},Pe.createElement("path",Yh({},yt(r,!0),{className:T,d:UD(I,k,E,P,_),ref:n})))}):Pe.createElement("g",null,Pe.createElement("path",Yh({},yt(r,!0),{className:T,d:UD(l,c,p,f,d)})))},_te=["option","shapeType","propTransformer","activeClassName","isActive"];function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}function Ote(e,t){if(e==null)return{};var r=Cte(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VD(Object(r),!0).forEach(function(n){Ite(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ite(e,t,r){return t=kte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kte(e){var t=Nte(e,"string");return Rf(t)=="symbol"?t:t+""}function Nte(e,t){if(Rf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dte(e,t){return Xh(Xh({},t),e)}function Mte(e,t){return e==="symbols"}function KD(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return Pe.createElement(OE,r);case"trapezoid":return Pe.createElement(wte,r);case"sector":return Pe.createElement(YB,r);case"symbols":if(Mte(t))return Pe.createElement(W1,r);break;default:return null}}function Lte(e){return te.isValidElement(e)?e.props:e}function sF(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?Dte:n,a=e.activeClassName,s=a===void 0?"recharts-active-shape":a,o=e.isActive,l=Ote(e,_te),c;if(te.isValidElement(t))c=te.cloneElement(t,Xh(Xh({},l),Lte(t)));else if(St(t))c=t(l);else if(dte(t)&&!yte(t)){var p=i(t,l);c=Pe.createElement(KD,{shapeType:r,elementProps:p})}else{var f=l;c=Pe.createElement(KD,{shapeType:r,elementProps:f})}return o?Pe.createElement(Lt,{className:s},c):c}function ly(e,t){return t!=null&&"trapezoids"in e.props}function uy(e,t){return t!=null&&"sectors"in e.props}function Bf(e,t){return t!=null&&"points"in e.props}function jte(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function Rte(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Bte(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Fte(e,t){var r;return ly(e,t)?r=jte:uy(e,t)?r=Rte:Bf(e,t)&&(r=Bte),r}function qte(e,t){var r;return ly(e,t)?r="trapezoids":uy(e,t)?r="sectors":Bf(e,t)&&(r="points"),r}function $te(e,t){if(ly(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(uy(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Bf(e,t)?t.payload:{}}function Ute(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=qte(r,t),a=$te(r,t),s=n.filter(function(l,c){var p=Gl(a,l),f=r.props[i].filter(function(v){var x=Fte(r,t);return x(v,t)}),d=r.props[i].indexOf(f[f.length-1]),h=c===d;return p&&h}),o=n.indexOf(s[s.length-1]);return o}var sh;function tu(e){"@babel/helpers - typeof";return tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tu(e)}function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cl.apply(this,arguments)}function zD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zD(Object(r),!0).forEach(function(n){Rn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lF(n.key),n)}}function Kte(e,t,r){return t&&WD(e.prototype,t),r&&WD(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zte(e,t,r){return t=Gh(t),Wte(e,oF()?Reflect.construct(t,r||[],Gh(e).constructor):t.apply(e,r))}function Wte(e,t){if(t&&(tu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hte(e)}function Hte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oF=function(){return!!e})()}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gh(e)}function Yte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wS(e,t)}function wS(e,t){return wS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wS(e,t)}function Rn(e,t,r){return t=lF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lF(e){var t=Xte(e,"string");return tu(t)=="symbol"?t:t+""}function Xte(e,t){if(tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ms=(function(e){function t(r){var n;return Vte(this,t),n=zte(this,t,[r]),Rn(n,"pieRef",null),Rn(n,"sectorRefs",[]),Rn(n,"id",Eu("recharts-pie-")),Rn(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),St(i)&&i()}),Rn(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),St(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return Yte(t,e),Kte(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,s=a.label,o=a.labelLine,l=a.dataKey,c=a.valueKey,p=yt(this.props,!1),f=yt(s,!1),d=yt(o,!1),h=s&&s.offsetRadius||20,v=n.map(function(x,y){var m=(x.startAngle+x.endAngle)/2,T=er(x.cx,x.cy,x.outerRadius+h,m),A=Xt(Xt(Xt(Xt({},p),x),{},{stroke:"none"},f),{},{index:y,textAnchor:t.getTextAnchor(T.x,x.cx)},T),E=Xt(Xt(Xt(Xt({},p),x),{},{fill:"none",stroke:x.fill},d),{},{index:y,points:[er(x.cx,x.cy,x.outerRadius,m),T]}),P=l;return At(l)&&At(c)?P="value":At(l)&&(P=c),Pe.createElement(Lt,{key:"label-".concat(x.startAngle,"-").concat(x.endAngle,"-").concat(x.midAngle,"-").concat(y)},o&&t.renderLabelLineItem(o,E,"line"),t.renderLabelItem(s,A,Ar(x,P)))});return Pe.createElement(Lt,{className:"recharts-pie-labels"},v)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,s=a.activeShape,o=a.blendStroke,l=a.inactiveShape;return n.map(function(c,p){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&n.length!==1)return null;var f=i.isActiveIndex(p),d=l&&i.hasActiveIndex()?l:null,h=f?s:d,v=Xt(Xt({},c),{},{stroke:o?c.fill:c.stroke,tabIndex:-1});return Pe.createElement(Lt,Cl({ref:function(y){y&&!i.sectorRefs.includes(y)&&i.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},Wo(i.props,c,p),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(p)}),Pe.createElement(sF,Cl({option:h,isActive:f,shapeType:"sector"},v)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,s=i.isAnimationActive,o=i.animationBegin,l=i.animationDuration,c=i.animationEasing,p=i.animationId,f=this.state,d=f.prevSectors,h=f.prevIsAnimationActive;return Pe.createElement(Ii,{begin:o,duration:l,isActive:s,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(p,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(v){var x=v.t,y=[],m=a&&a[0],T=m.startAngle;return a.forEach(function(A,E){var P=d&&d[E],_=E>0?wn(A,"paddingAngle",0):0;if(P){var I=rn(P.endAngle-P.startAngle,A.endAngle-A.startAngle),k=Xt(Xt({},A),{},{startAngle:T+_,endAngle:T+I(x)+_});y.push(k),T=k.endAngle}else{var M=A.endAngle,D=A.startAngle,C=rn(0,M-D),L=C(x),q=Xt(Xt({},A),{},{startAngle:T+_,endAngle:T+L+_});y.push(q),T=q.endAngle}}),Pe.createElement(Lt,null,n.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var s=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"ArrowRight":{var o=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,s=this.state.prevSectors;return a&&i&&i.length&&(!s||!Gl(s,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,s=i.sectors,o=i.className,l=i.label,c=i.cx,p=i.cy,f=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,v=this.state.isAnimationFinished;if(a||!s||!s.length||!rt(c)||!rt(p)||!rt(f)||!rt(d))return null;var x=Ot("recharts-pie",o);return Pe.createElement(Lt,{tabIndex:this.props.rootTabIndex,className:x,ref:function(m){n.pieRef=m}},this.renderSectors(),l&&this.renderLabels(s),kr.renderCallByParent(this.props,null,!1),(!h||v)&&sa.renderCallByParent(this.props,s,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(Pe.isValidElement(n))return Pe.cloneElement(n,i);if(St(n))return n(i);var s=Ot("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return Pe.createElement(jl,Cl({},i,{key:a,type:"linear",className:s}))}},{key:"renderLabelItem",value:function(n,i,a){if(Pe.isValidElement(n))return Pe.cloneElement(n,i);var s=a;if(St(n)&&(s=n(i),Pe.isValidElement(s)))return s;var o=Ot("recharts-pie-label-text",typeof n!="boolean"&&!St(n)?n.className:"");return Pe.createElement(Ho,Cl({},i,{alignmentBaseline:"middle",className:o}),s)}}])})(te.PureComponent);sh=Ms;Rn(Ms,"displayName","Pie");Rn(Ms,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ai.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Rn(Ms,"parseDeltaAngle",function(e,t){var r=Hr(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Rn(Ms,"getRealPieData",function(e){var t=e.data,r=e.children,n=yt(e,!1),i=$n(r,rE);return t&&t.length?t.map(function(a,s){return Xt(Xt(Xt({payload:a},n),a),i&&i[s]&&i[s].props)}):i&&i.length?i.map(function(a){return Xt(Xt({},n),a.props)}):[]});Rn(Ms,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,s=KB(i,a),o=n+Yr(e.cx,i,i/2),l=r+Yr(e.cy,a,a/2),c=Yr(e.innerRadius,s,0),p=Yr(e.outerRadius,s,s*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:o,cy:l,innerRadius:c,outerRadius:p,maxRadius:f}});Rn(Ms,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Xt(Xt({},t.type.defaultProps),t.props):t.props,i=sh.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,s=n.startAngle,o=n.endAngle,l=n.paddingAngle,c=n.dataKey,p=n.nameKey,f=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),v=sh.parseCoordinateOfPie(n,r),x=sh.parseDeltaAngle(s,o),y=Math.abs(x),m=c;At(c)&&At(f)?(ni(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),m="value"):At(c)&&(ni(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),m=f);var T=i.filter(function(k){return Ar(k,m,0)!==0}).length,A=(y>=360?T:T-1)*l,E=y-T*h-A,P=i.reduce(function(k,M){var D=Ar(M,m,0);return k+(rt(D)?D:0)},0),_;if(P>0){var I;_=i.map(function(k,M){var D=Ar(k,m,0),C=Ar(k,p,M),L=(rt(D)?D:0)/P,q;M?q=I.endAngle+Hr(x)*l*(D!==0?1:0):q=s;var $=q+Hr(x)*((D!==0?h:0)+L*E),z=(q+$)/2,Q=(v.innerRadius+v.outerRadius)/2,V=[{name:C,value:D,payload:k,dataKey:m,type:d}],X=er(v.cx,v.cy,Q,z);return I=Xt(Xt(Xt({percent:L,cornerRadius:a,name:C,tooltipPayload:V,midAngle:z,middleRadius:Q,tooltipPosition:X},k),v),{},{value:Ar(k,m),startAngle:q,endAngle:$,payload:k,paddingAngle:Hr(x)*l}),I})}return Xt(Xt({},v),{},{sectors:_,data:i})});var Ex,HD;function Gte(){if(HD)return Ex;HD=1;var e=Math.ceil,t=Math.max;function r(n,i,a,s){for(var o=-1,l=t(e((i-n)/(a||1)),0),c=Array(l);l--;)c[s?l:++o]=n,n+=a;return c}return Ex=r,Ex}var Px,YD;function uF(){if(YD)return Px;YD=1;var e=k3(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Px=n,Px}var Ax,XD;function Jte(){if(XD)return Ax;XD=1;var e=Gte(),t=zm(),r=uF();function n(i){return function(a,s,o){return o&&typeof o!="number"&&t(a,s,o)&&(s=o=void 0),a=r(a),s===void 0?(s=a,a=0):s=r(s),o=o===void 0?a<s?1:-1:r(o),e(a,s,o,i)}}return Ax=n,Ax}var wx,GD;function Qte(){if(GD)return wx;GD=1;var e=Jte(),t=e();return wx=t,wx}var Zte=Qte();const Jh=Mt(Zte);function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}function JD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JD(Object(r),!0).forEach(function(n){cF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cF(e,t,r){return t=ere(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ere(e){var t=tre(e,"string");return Ff(t)=="symbol"?t:t+""}function tre(e,t){if(Ff(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rre=["Webkit","Moz","O","ms"],nre=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=rre.reduce(function(a,s){return QD(QD({},a),{},cF({},s+n,r))},{});return i[t]=r,i};function ru(e){"@babel/helpers - typeof";return ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}function Qh(){return Qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qh.apply(this,arguments)}function ZD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _x(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZD(Object(r),!0).forEach(function(n){xn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ire(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pF(n.key),n)}}function are(e,t,r){return t&&eM(e.prototype,t),r&&eM(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sre(e,t,r){return t=Zh(t),ore(e,fF()?Reflect.construct(t,r||[],Zh(e).constructor):t.apply(e,r))}function ore(e,t){if(t&&(ru(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lre(e)}function lre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fF=function(){return!!e})()}function Zh(e){return Zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zh(e)}function ure(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_S(e,t)}function _S(e,t){return _S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_S(e,t)}function xn(e,t,r){return t=pF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pF(e){var t=cre(e,"string");return ru(t)=="symbol"?t:t+""}function cre(e,t){if(ru(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ru(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fre=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,s=t.width,o=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=Gc().domain(Jh(0,l)).range([a,a+s-o]),p=c.domain().map(function(f){return c(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:p}},tM=function(t){return t.changedTouches&&!!t.changedTouches.length},nu=(function(e){function t(r){var n;return ire(this,t),n=sre(this,t,[r]),xn(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),xn(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),xn(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,s=i.onDragEnd,o=i.startIndex;s==null||s({endIndex:a,startIndex:o})}),n.detachDragEndListener()}),xn(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),xn(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),xn(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),xn(n,"handleSlideDragStart",function(i){var a=tM(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return ure(t,e),are(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,s=this.state.scaleValues,o=this.props,l=o.gap,c=o.data,p=c.length-1,f=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(s,f),v=t.getIndexInRange(s,d);return{startIndex:h-h%l,endIndex:v===p?p:v-v%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,s=i.tickFormatter,o=i.dataKey,l=Ar(a[n],o,n);return St(s)?s(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,s=i.startX,o=i.endX,l=this.props,c=l.x,p=l.width,f=l.travellerWidth,d=l.startIndex,h=l.endIndex,v=l.onChange,x=n.pageX-a;x>0?x=Math.min(x,c+p-f-o,c+p-f-s):x<0&&(x=Math.max(x,c-s,c-o));var y=this.getIndex({startX:s+x,endX:o+x});(y.startIndex!==d||y.endIndex!==h)&&v&&v(y),this.setState({startX:s+x,endX:o+x,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=tM(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,s=i.movingTravellerId,o=i.endX,l=i.startX,c=this.state[s],p=this.props,f=p.x,d=p.width,h=p.travellerWidth,v=p.onChange,x=p.gap,y=p.data,m={startX:this.state.startX,endX:this.state.endX},T=n.pageX-a;T>0?T=Math.min(T,f+d-h-c):T<0&&(T=Math.max(T,f-c)),m[s]=c+T;var A=this.getIndex(m),E=A.startIndex,P=A.endIndex,_=function(){var k=y.length-1;return s==="startX"&&(o>l?E%x===0:P%x===0)||o<l&&P===k||s==="endX"&&(o>l?P%x===0:E%x===0)||o>l&&P===k};this.setState(xn(xn({},s,c+T),"brushMoveStartX",n.pageX),function(){v&&_()&&v(A)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,s=this.state,o=s.scaleValues,l=s.startX,c=s.endX,p=this.state[i],f=o.indexOf(p);if(f!==-1){var d=f+n;if(!(d===-1||d>=o.length)){var h=o[d];i==="startX"&&h>=c||i==="endX"&&h<=l||this.setState(xn({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,s=n.width,o=n.height,l=n.fill,c=n.stroke;return Pe.createElement("rect",{stroke:c,fill:l,x:i,y:a,width:s,height:o})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,s=n.width,o=n.height,l=n.data,c=n.children,p=n.padding,f=te.Children.only(c);return f?Pe.cloneElement(f,{x:i,y:a,width:s,height:o,margin:p,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,s,o=this,l=this.props,c=l.y,p=l.travellerWidth,f=l.height,d=l.traveller,h=l.ariaLabel,v=l.data,x=l.startIndex,y=l.endIndex,m=Math.max(n,this.props.x),T=_x(_x({},yt(this.props,!1)),{},{x:m,y:c,width:p,height:f}),A=h||"Min value: ".concat((a=v[x])===null||a===void 0?void 0:a.name,", Max value: ").concat((s=v[y])===null||s===void 0?void 0:s.name);return Pe.createElement(Lt,{tabIndex:0,role:"slider","aria-label":A,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),o.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,T))}},{key:"renderSlide",value:function(n,i){var a=this.props,s=a.y,o=a.height,l=a.stroke,c=a.travellerWidth,p=Math.min(n,i)+c,f=Math.max(Math.abs(i-n)-c,0);return Pe.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:p,y:s,width:f,height:o})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,s=n.y,o=n.height,l=n.travellerWidth,c=n.stroke,p=this.state,f=p.startX,d=p.endX,h=5,v={pointerEvents:"none",fill:c};return Pe.createElement(Lt,{className:"recharts-brush-texts"},Pe.createElement(Ho,Qh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:s+o/2},v),this.getTextOfTick(i)),Pe.createElement(Ho,Qh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+h,y:s+o/2},v),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,s=n.children,o=n.x,l=n.y,c=n.width,p=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,v=d.endX,x=d.isTextActive,y=d.isSlideMoving,m=d.isTravellerMoving,T=d.isTravellerFocused;if(!i||!i.length||!rt(o)||!rt(l)||!rt(c)||!rt(p)||c<=0||p<=0)return null;var A=Ot("recharts-brush",a),E=Pe.Children.count(s)===1,P=nre("userSelect","none");return Pe.createElement(Lt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:P},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(h,v),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(v,"endX"),(x||y||m||T||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,s=n.width,o=n.height,l=n.stroke,c=Math.floor(a+o/2)-1;return Pe.createElement(Pe.Fragment,null,Pe.createElement("rect",{x:i,y:a,width:s,height:o,fill:l,stroke:"none"}),Pe.createElement("line",{x1:i+1,y1:c,x2:i+s-1,y2:c,fill:"none",stroke:"#fff"}),Pe.createElement("line",{x1:i+1,y1:c+2,x2:i+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return Pe.isValidElement(n)?a=Pe.cloneElement(n,i):St(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,s=n.width,o=n.x,l=n.travellerWidth,c=n.updateId,p=n.startIndex,f=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return _x({prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:o,prevWidth:s},a&&a.length?fre({data:a,width:s,x:o,travellerWidth:l,startIndex:p,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||o!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([o,o+s-l]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:o,prevWidth:s,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,s=0,o=a-1;o-s>1;){var l=Math.floor((s+o)/2);n[l]>i?o=l:s=l}return i>=n[o]?o:s}}])})(te.PureComponent);xn(nu,"displayName","Brush");xn(nu,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Ox,rM;function pre(){if(rM)return Ox;rM=1;var e=Z1();function t(r,n){var i;return e(r,function(a,s,o){return i=n(a,s,o),!i}),!!i}return Ox=t,Ox}var Cx,nM;function dre(){if(nM)return Cx;nM=1;var e=l3(),t=Di(),r=pre(),n=ln(),i=zm();function a(s,o,l){var c=n(s)?e:r;return l&&i(s,o,l)&&(o=void 0),c(s,t(o,3))}return Cx=a,Cx}var hre=dre();const mre=Mt(hre);var _i=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Ix,iM;function yre(){if(iM)return Ix;iM=1;var e=w3();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Ix=t,Ix}var kx,aM;function gre(){if(aM)return kx;aM=1;var e=yre(),t=P3(),r=Di();function n(i,a){var s={};return a=r(a,3),t(i,function(o,l,c){e(s,l,a(o,l,c))}),s}return kx=n,kx}var vre=gre();const bre=Mt(vre);var Nx,sM;function xre(){if(sM)return Nx;sM=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Nx=e,Nx}var Dx,oM;function Tre(){if(oM)return Dx;oM=1;var e=Z1();function t(r,n){var i=!0;return e(r,function(a,s,o){return i=!!n(a,s,o),i}),i}return Dx=t,Dx}var Mx,lM;function Sre(){if(lM)return Mx;lM=1;var e=xre(),t=Tre(),r=Di(),n=ln(),i=zm();function a(s,o,l){var c=n(s)?e:t;return l&&i(s,o,l)&&(o=void 0),c(s,r(o,3))}return Mx=a,Mx}var Ere=Sre();const dF=Mt(Ere);var Pre=["x","y"];function qf(e){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(e)}function OS(){return OS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OS.apply(this,arguments)}function uM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uM(Object(r),!0).forEach(function(n){Are(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Are(e,t,r){return t=wre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wre(e){var t=_re(e,"string");return qf(t)=="symbol"?t:t+""}function _re(e,t){if(qf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ore(e,t){if(e==null)return{};var r=Cre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ire(e,t){var r=e.x,n=e.y,i=Ore(e,Pre),a="".concat(r),s=parseInt(a,10),o="".concat(n),l=parseInt(o,10),c="".concat(t.height||i.height),p=parseInt(c,10),f="".concat(t.width||i.width),d=parseInt(f,10);return Mc(Mc(Mc(Mc(Mc({},t),i),s?{x:s}:{}),l?{y:l}:{}),{},{height:p,width:d,name:t.name,radius:t.radius})}function cM(e){return Pe.createElement(sF,OS({shapeType:"rectangle",propTransformer:Ire,activeClassName:"recharts-active-bar"},e))}var kre=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=rt(n)||nV(n);return a?t(n,i):(a||Xo(),r)}},Nre=["value","background"],hF;function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function Dre(e,t){if(e==null)return{};var r=Mre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},em.apply(this,arguments)}function fM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fM(Object(r),!0).forEach(function(n){Ss(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yF(n.key),n)}}function jre(e,t,r){return t&&pM(e.prototype,t),r&&pM(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rre(e,t,r){return t=tm(t),Bre(e,mF()?Reflect.construct(t,r||[],tm(e).constructor):t.apply(e,r))}function Bre(e,t){if(t&&(iu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fre(e)}function Fre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mF=function(){return!!e})()}function tm(e){return tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tm(e)}function qre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CS(e,t)}function CS(e,t){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},CS(e,t)}function Ss(e,t,r){return t=yF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yF(e){var t=$re(e,"string");return iu(t)=="symbol"?t:t+""}function $re(e,t){if(iu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ou=(function(e){function t(){var r;Lre(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Rre(this,t,[].concat(i)),Ss(r,"state",{isAnimationFinished:!1}),Ss(r,"id",Eu("recharts-bar-")),Ss(r,"handleAnimationEnd",function(){var s=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),s&&s()}),Ss(r,"handleAnimationStart",function(){var s=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),s&&s()}),r}return qre(t,e),jre(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,s=a.shape,o=a.dataKey,l=a.activeIndex,c=a.activeBar,p=yt(this.props,!1);return n&&n.map(function(f,d){var h=d===l,v=h?c:s,x=vr(vr(vr({},p),f),{},{isActive:h,option:v,index:d,dataKey:o,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return Pe.createElement(Lt,em({className:"recharts-bar-rectangle"},Wo(i.props,f,d),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(d)}),Pe.createElement(cM,x))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,s=i.layout,o=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,p=i.animationEasing,f=i.animationId,d=this.state.prevData;return Pe.createElement(Ii,{begin:l,duration:c,isActive:o,easing:p,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var v=h.t,x=a.map(function(y,m){var T=d&&d[m];if(T){var A=rn(T.x,y.x),E=rn(T.y,y.y),P=rn(T.width,y.width),_=rn(T.height,y.height);return vr(vr({},y),{},{x:A(v),y:E(v),width:P(v),height:_(v)})}if(s==="horizontal"){var I=rn(0,y.height),k=I(v);return vr(vr({},y),{},{y:y.y+y.height-k,height:k})}var M=rn(0,y.width),D=M(v);return vr(vr({},y),{},{width:D})});return Pe.createElement(Lt,null,n.renderRectanglesStatically(x))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,s=this.state.prevData;return a&&i&&i.length&&(!s||!Gl(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,s=i.dataKey,o=i.activeIndex,l=yt(this.props.background,!1);return a.map(function(c,p){c.value;var f=c.background,d=Dre(c,Nre);if(!f)return null;var h=vr(vr(vr(vr(vr({},d),{},{fill:"#eee"},f),l),Wo(n.props,c,p)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:s,index:p,className:"recharts-bar-background-rectangle"});return Pe.createElement(cM,em({key:"background-bar-".concat(p),option:n.props.background,isActive:p===o},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,s=a.data,o=a.xAxis,l=a.yAxis,c=a.layout,p=a.children,f=$n(p,ry);if(!f)return null;var d=c==="vertical"?s[0].height/2:s[0].width/2,h=function(y,m){var T=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:T,errorVal:Ar(y,m)}},v={clipPath:n?"url(#clipPath-".concat(i,")"):null};return Pe.createElement(Lt,v,f.map(function(x){return Pe.cloneElement(x,{key:"error-bar-".concat(i,"-").concat(x.props.dataKey),data:s,xAxis:o,yAxis:l,layout:c,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,s=n.className,o=n.xAxis,l=n.yAxis,c=n.left,p=n.top,f=n.width,d=n.height,h=n.isAnimationActive,v=n.background,x=n.id;if(i||!a||!a.length)return null;var y=this.state.isAnimationFinished,m=Ot("recharts-bar",s),T=o&&o.allowDataOverflow,A=l&&l.allowDataOverflow,E=T||A,P=At(x)?this.id:x;return Pe.createElement(Lt,{className:m},T||A?Pe.createElement("defs",null,Pe.createElement("clipPath",{id:"clipPath-".concat(P)},Pe.createElement("rect",{x:T?c:c-f/2,y:A?p:p-d/2,width:T?f:f*2,height:A?d:d*2}))):null,Pe.createElement(Lt,{className:"recharts-bar-rectangles",clipPath:E?"url(#clipPath-".concat(P,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(E,P),(!h||y)&&sa.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(te.PureComponent);hF=Ou;Ss(Ou,"displayName","Bar");Ss(Ou,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ai.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ss(Ou,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,s=e.yAxis,o=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,p=e.dataStartIndex,f=e.displayedData,d=e.offset,h=yJ(n,r);if(!h)return null;var v=t.layout,x=r.type.defaultProps,y=x!==void 0?vr(vr({},x),r.props):r.props,m=y.dataKey,T=y.children,A=y.minPointSize,E=v==="horizontal"?s:a,P=c?E.scale.domain():null,_=EJ({numericAxis:E}),I=$n(T,rE),k=f.map(function(M,D){var C,L,q,$,z,Q;c?C=gJ(c[p+D],P):(C=Ar(M,m),Array.isArray(C)||(C=[_,C]));var V=kre(A,hF.defaultProps.minPointSize)(C[1],D);if(v==="horizontal"){var X,U=[s.scale(C[0]),s.scale(C[1])],N=U[0],j=U[1];L=V2({axis:a,ticks:o,bandSize:i,offset:h.offset,entry:M,index:D}),q=(X=j??N)!==null&&X!==void 0?X:void 0,$=h.size;var F=N-j;if(z=Number.isNaN(F)?0:F,Q={x:L,y:s.y,width:$,height:s.height},Math.abs(V)>0&&Math.abs(z)<Math.abs(V)){var R=Hr(z||V)*(Math.abs(V)-Math.abs(z));q-=R,z+=R}}else{var J=[a.scale(C[0]),a.scale(C[1])],se=J[0],ie=J[1];if(L=se,q=V2({axis:s,ticks:l,bandSize:i,offset:h.offset,entry:M,index:D}),$=ie-se,z=h.size,Q={x:a.x,y:q,width:a.width,height:z},Math.abs(V)>0&&Math.abs($)<Math.abs(V)){var ae=Hr($||V)*(Math.abs(V)-Math.abs($));$+=ae}}return vr(vr(vr({},M),{},{x:L,y:q,width:$,height:z,value:c?C:C[1],payload:M,background:Q},I&&I[D]&&I[D].props),{},{tooltipPayload:[UB(r,M)],tooltipPosition:{x:L+$/2,y:q+z/2}})});return vr({data:k,layout:v},d)});function $f(e){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$f(e)}function Ure(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gF(n.key),n)}}function Vre(e,t,r){return t&&dM(e.prototype,t),r&&dM(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ti(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hM(Object(r),!0).forEach(function(n){cy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cy(e,t,r){return t=gF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gF(e){var t=Kre(e,"string");return $f(t)=="symbol"?t:t+""}function Kre(e,t){if($f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vF=function(t,r,n,i,a){var s=t.width,o=t.height,l=t.layout,c=t.children,p=Object.keys(r),f={left:n.left,leftMirror:n.left,right:s-n.right,rightMirror:s-n.right,top:n.top,topMirror:n.top,bottom:o-n.bottom,bottomMirror:o-n.bottom},d=!!Sn(c,Ou);return p.reduce(function(h,v){var x=r[v],y=x.orientation,m=x.domain,T=x.padding,A=T===void 0?{}:T,E=x.mirror,P=x.reversed,_="".concat(y).concat(E?"Mirror":""),I,k,M,D,C;if(x.type==="number"&&(x.padding==="gap"||x.padding==="no-gap")){var L=m[1]-m[0],q=1/0,$=x.categoricalDomain.sort(sV);if($.forEach(function(J,se){se>0&&(q=Math.min((J||0)-($[se-1]||0),q))}),Number.isFinite(q)){var z=q/L,Q=x.layout==="vertical"?n.height:n.width;if(x.padding==="gap"&&(I=z*Q/2),x.padding==="no-gap"){var V=Yr(t.barCategoryGap,z*Q),X=z*Q/2;I=X-V-(X-V)/Q*V}}}i==="xAxis"?k=[n.left+(A.left||0)+(I||0),n.left+n.width-(A.right||0)-(I||0)]:i==="yAxis"?k=l==="horizontal"?[n.top+n.height-(A.bottom||0),n.top+(A.top||0)]:[n.top+(A.top||0)+(I||0),n.top+n.height-(A.bottom||0)-(I||0)]:k=x.range,P&&(k=[k[1],k[0]]);var U=BB(x,a,d),N=U.scale,j=U.realScaleType;N.domain(m).range(k),FB(N);var F=qB(N,ti(ti({},x),{},{realScaleType:j}));i==="xAxis"?(C=y==="top"&&!E||y==="bottom"&&E,M=n.left,D=f[_]-C*x.height):i==="yAxis"&&(C=y==="left"&&!E||y==="right"&&E,M=f[_]-C*x.width,D=n.top);var R=ti(ti(ti({},x),F),{},{realScaleType:j,x:M,y:D,scale:N,width:i==="xAxis"?n.width:x.width,height:i==="yAxis"?n.height:x.height});return R.bandSize=Bh(R,F),!x.hide&&i==="xAxis"?f[_]+=(C?-1:1)*R.height:x.hide||(f[_]+=(C?-1:1)*R.width),ti(ti({},h),{},cy({},v,R))},{})},bF=function(t,r){var n=t.x,i=t.y,a=r.x,s=r.y;return{x:Math.min(n,a),y:Math.min(i,s),width:Math.abs(a-n),height:Math.abs(s-i)}},zre=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return bF({x:r,y:n},{x:i,y:a})},xF=(function(){function e(t){Ure(this,e),this.scale=t}return Vre(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(r)+o}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();cy(xF,"EPS",1e-4);var CE=function(t){var r=Object.keys(t).reduce(function(n,i){return ti(ti({},n),{},cy({},i,xF.create(t[i])))},{});return ti(ti({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.bandAware,o=a.position;return bre(i,function(l,c){return r[c].apply(l,{bandAware:s,position:o})})},isInRange:function(i){return dF(i,function(a,s){return r[s].isInRange(a)})}})};function Wre(e){return(e%180+180)%180}var Hre=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Wre(i),s=a*Math.PI/180,o=Math.atan(n/r),l=s>o&&s<Math.PI-o?n/Math.sin(s):r/Math.cos(s);return Math.abs(l)},Lx,mM;function Yre(){if(mM)return Lx;mM=1;var e=Di(),t=np(),r=Vm();function n(i){return function(a,s,o){var l=Object(a);if(!t(a)){var c=e(s,3);a=r(a),s=function(f){return c(l[f],f,l)}}var p=i(a,s,o);return p>-1?l[c?a[p]:p]:void 0}}return Lx=n,Lx}var jx,yM;function Xre(){if(yM)return jx;yM=1;var e=uF();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return jx=t,jx}var Rx,gM;function Gre(){if(gM)return Rx;gM=1;var e=b3(),t=Di(),r=Xre(),n=Math.max;function i(a,s,o){var l=a==null?0:a.length;if(!l)return-1;var c=o==null?0:r(o);return c<0&&(c=n(l+c,0)),e(a,t(s,3),c)}return Rx=i,Rx}var Bx,vM;function Jre(){if(vM)return Bx;vM=1;var e=Yre(),t=Gre(),r=e(t);return Bx=r,Bx}var Qre=Jre();const Zre=Mt(Qre);var ene=MR();const tne=Mt(ene);var rne=tne(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),IE=te.createContext(void 0),kE=te.createContext(void 0),TF=te.createContext(void 0),SF=te.createContext({}),EF=te.createContext(void 0),PF=te.createContext(0),AF=te.createContext(0),bM=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=t.clipPathId,o=t.children,l=t.width,c=t.height,p=rne(a);return Pe.createElement(IE.Provider,{value:n},Pe.createElement(kE.Provider,{value:i},Pe.createElement(SF.Provider,{value:a},Pe.createElement(TF.Provider,{value:p},Pe.createElement(EF.Provider,{value:s},Pe.createElement(PF.Provider,{value:c},Pe.createElement(AF.Provider,{value:l},o)))))))},nne=function(){return te.useContext(EF)},wF=function(t){var r=te.useContext(IE);r==null&&Xo();var n=r[t];return n==null&&Xo(),n},ine=function(){var t=te.useContext(IE);return bs(t)},ane=function(){var t=te.useContext(kE),r=Zre(t,function(n){return dF(n.domain,Number.isFinite)});return r||bs(t)},_F=function(t){var r=te.useContext(kE);r==null&&Xo();var n=r[t];return n==null&&Xo(),n},sne=function(){var t=te.useContext(TF);return t},one=function(){return te.useContext(SF)},NE=function(){return te.useContext(AF)},DE=function(){return te.useContext(PF)};function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function lne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function une(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CF(n.key),n)}}function cne(e,t,r){return t&&une(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fne(e,t,r){return t=rm(t),pne(e,OF()?Reflect.construct(t,r||[],rm(e).constructor):t.apply(e,r))}function pne(e,t){if(t&&(au(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dne(e)}function dne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OF=function(){return!!e})()}function rm(e){return rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rm(e)}function hne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IS(e,t)}function IS(e,t){return IS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},IS(e,t)}function xM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xM(Object(r),!0).forEach(function(n){ME(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ME(e,t,r){return t=CF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CF(e){var t=mne(e,"string");return au(t)=="symbol"?t:t+""}function mne(e,t){if(au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yne(e,t){return xne(e)||bne(e,t)||vne(e,t)||gne()}function gne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vne(e,t){if(e){if(typeof e=="string")return SM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SM(e,t)}}function SM(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bne(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function xne(e){if(Array.isArray(e))return e}function kS(){return kS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kS.apply(this,arguments)}var Tne=function(t,r){var n;return Pe.isValidElement(t)?n=Pe.cloneElement(t,r):St(t)?n=t(r):n=Pe.createElement("line",kS({},r,{className:"recharts-reference-line-line"})),n},Sne=function(t,r,n,i,a,s,o,l,c){var p=a.x,f=a.y,d=a.width,h=a.height;if(n){var v=c.y,x=t.y.apply(v,{position:s});if(_i(c,"discard")&&!t.y.isInRange(x))return null;var y=[{x:p+d,y:x},{x:p,y:x}];return l==="left"?y.reverse():y}if(r){var m=c.x,T=t.x.apply(m,{position:s});if(_i(c,"discard")&&!t.x.isInRange(T))return null;var A=[{x:T,y:f+h},{x:T,y:f}];return o==="top"?A.reverse():A}if(i){var E=c.segment,P=E.map(function(_){return t.apply(_,{position:s})});return _i(c,"discard")&&mre(P,function(_){return!t.isInRange(_)})?null:P}return null};function Ene(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,s=e.shape,o=e.className,l=e.alwaysShow,c=nne(),p=wF(i),f=_F(a),d=sne();if(!c||!d)return null;ni(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=CE({x:p.scale,y:f.scale}),v=wr(t),x=wr(r),y=n&&n.length===2,m=Sne(h,v,x,y,d,e.position,p.orientation,f.orientation,e);if(!m)return null;var T=yne(m,2),A=T[0],E=A.x,P=A.y,_=T[1],I=_.x,k=_.y,M=_i(e,"hidden")?"url(#".concat(c,")"):void 0,D=TM(TM({clipPath:M},yt(e,!0)),{},{x1:E,y1:P,x2:I,y2:k});return Pe.createElement(Lt,{className:Ot("recharts-reference-line",o)},Tne(s,D),kr.renderCallByParent(e,zre({x1:E,y1:P,x2:I,y2:k})))}var LE=(function(e){function t(){return lne(this,t),fne(this,t,arguments)}return hne(t,e),cne(t,[{key:"render",value:function(){return Pe.createElement(Ene,this.props)}}])})(Pe.Component);ME(LE,"displayName","ReferenceLine");ME(LE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function NS(){return NS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},NS.apply(this,arguments)}function su(e){"@babel/helpers - typeof";return su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}function EM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(r),!0).forEach(function(n){fy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ane(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kF(n.key),n)}}function wne(e,t,r){return t&&Ane(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ne(e,t,r){return t=nm(t),One(e,IF()?Reflect.construct(t,r||[],nm(e).constructor):t.apply(e,r))}function One(e,t){if(t&&(su(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cne(e)}function Cne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IF=function(){return!!e})()}function nm(e){return nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nm(e)}function Ine(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DS(e,t)}function DS(e,t){return DS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},DS(e,t)}function fy(e,t,r){return t=kF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kF(e){var t=kne(e,"string");return su(t)=="symbol"?t:t+""}function kne(e,t){if(su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nne=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,s=CE({x:i.scale,y:a.scale}),o=s.apply({x:r,y:n},{bandAware:!0});return _i(t,"discard")&&!s.isInRange(o)?null:o},py=(function(e){function t(){return Pne(this,t),_ne(this,t,arguments)}return Ine(t,e),wne(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,s=n.r,o=n.alwaysShow,l=n.clipPathId,c=wr(i),p=wr(a);if(ni(o===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!p)return null;var f=Nne(this.props);if(!f)return null;var d=f.x,h=f.y,v=this.props,x=v.shape,y=v.className,m=_i(this.props,"hidden")?"url(#".concat(l,")"):void 0,T=PM(PM({clipPath:m},yt(this.props,!0)),{},{cx:d,cy:h});return Pe.createElement(Lt,{className:Ot("recharts-reference-dot",y)},t.renderDot(x,T),kr.renderCallByParent(this.props,{x:d-s,y:h-s,width:2*s,height:2*s}))}}])})(Pe.Component);fy(py,"displayName","ReferenceDot");fy(py,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});fy(py,"renderDot",function(e,t){var r;return Pe.isValidElement(e)?r=Pe.cloneElement(e,t):St(e)?r=e(t):r=Pe.createElement(ny,NS({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function MS(){return MS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},MS.apply(this,arguments)}function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function AM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AM(Object(r),!0).forEach(function(n){dy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DF(n.key),n)}}function Lne(e,t,r){return t&&Mne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jne(e,t,r){return t=im(t),Rne(e,NF()?Reflect.construct(t,r||[],im(e).constructor):t.apply(e,r))}function Rne(e,t){if(t&&(ou(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bne(e)}function Bne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NF=function(){return!!e})()}function im(e){return im=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},im(e)}function Fne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LS(e,t)}function LS(e,t){return LS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},LS(e,t)}function dy(e,t,r){return t=DF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DF(e){var t=qne(e,"string");return ou(t)=="symbol"?t:t+""}function qne(e,t){if(ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $ne=function(t,r,n,i,a){var s=a.x1,o=a.x2,l=a.y1,c=a.y2,p=a.xAxis,f=a.yAxis;if(!p||!f)return null;var d=CE({x:p.scale,y:f.scale}),h={x:t?d.x.apply(s,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},v={x:r?d.x.apply(o,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return _i(a,"discard")&&(!d.isInRange(h)||!d.isInRange(v))?null:bF(h,v)},hy=(function(e){function t(){return Dne(this,t),jne(this,t,arguments)}return Fne(t,e),Lne(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,s=n.y1,o=n.y2,l=n.className,c=n.alwaysShow,p=n.clipPathId;ni(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=wr(i),d=wr(a),h=wr(s),v=wr(o),x=this.props.shape;if(!f&&!d&&!h&&!v&&!x)return null;var y=$ne(f,d,h,v,this.props);if(!y&&!x)return null;var m=_i(this.props,"hidden")?"url(#".concat(p,")"):void 0;return Pe.createElement(Lt,{className:Ot("recharts-reference-area",l)},t.renderRect(x,wM(wM({clipPath:m},yt(this.props,!0)),y)),kr.renderCallByParent(this.props,y))}}])})(Pe.Component);dy(hy,"displayName","ReferenceArea");dy(hy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});dy(hy,"renderRect",function(e,t){var r;return Pe.isValidElement(e)?r=Pe.cloneElement(e,t):St(e)?r=e(t):r=Pe.createElement(OE,MS({},t,{className:"recharts-reference-area-rect"})),r});function MF(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function Une(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Hre(n,r)}function Vne(e,t,r){var n=r==="width",i=e.x,a=e.y,s=e.width,o=e.height;return t===1?{start:n?i:a,end:n?i+s:a+o}:{start:n?i+s:a+o,end:n?i:a}}function am(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Kne(e,t){return MF(e,t+1)}function zne(e,t,r,n,i){for(var a=(n||[]).slice(),s=t.start,o=t.end,l=0,c=1,p=s,f=function(){var v=n==null?void 0:n[l];if(v===void 0)return{v:MF(n,c)};var x=l,y,m=function(){return y===void 0&&(y=r(v,x)),y},T=v.coordinate,A=l===0||am(e,T,m,p,o);A||(l=0,p=s,c+=1),A&&(p=T+e*(m()/2+i),l+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function _M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_M(Object(r),!0).forEach(function(n){Wne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_M(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wne(e,t,r){return t=Hne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hne(e){var t=Yne(e,"string");return Uf(t)=="symbol"?t:t+""}function Yne(e,t){if(Uf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xne(e,t,r,n,i){for(var a=(n||[]).slice(),s=a.length,o=t.start,l=t.end,c=function(d){var h=a[d],v,x=function(){return v===void 0&&(v=r(h,d)),v};if(d===s-1){var y=e*(h.coordinate+e*x()/2-l);a[d]=h=Br(Br({},h),{},{tickCoord:y>0?h.coordinate-y*e:h.coordinate})}else a[d]=h=Br(Br({},h),{},{tickCoord:h.coordinate});var m=am(e,h.tickCoord,x,o,l);m&&(l=h.tickCoord-e*(x()/2+i),a[d]=Br(Br({},h),{},{isShow:!0}))},p=s-1;p>=0;p--)c(p);return a}function Gne(e,t,r,n,i,a){var s=(n||[]).slice(),o=s.length,l=t.start,c=t.end;if(a){var p=n[o-1],f=r(p,o-1),d=e*(p.coordinate+e*f/2-c);s[o-1]=p=Br(Br({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate});var h=am(e,p.tickCoord,function(){return f},l,c);h&&(c=p.tickCoord-e*(f/2+i),s[o-1]=Br(Br({},p),{},{isShow:!0}))}for(var v=a?o-1:o,x=function(T){var A=s[T],E,P=function(){return E===void 0&&(E=r(A,T)),E};if(T===0){var _=e*(A.coordinate-e*P()/2-l);s[T]=A=Br(Br({},A),{},{tickCoord:_<0?A.coordinate-_*e:A.coordinate})}else s[T]=A=Br(Br({},A),{},{tickCoord:A.coordinate});var I=am(e,A.tickCoord,P,l,c);I&&(l=A.tickCoord+e*(P()/2+i),s[T]=Br(Br({},A),{},{isShow:!0}))},y=0;y<v;y++)x(y);return s}function jE(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,s=e.minTickGap,o=e.orientation,l=e.interval,c=e.tickFormatter,p=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(rt(l)||Ai.isSsr)return Kne(i,typeof l=="number"&&rt(l)?l:0);var d=[],h=o==="top"||o==="bottom"?"width":"height",v=p&&h==="width"?Xc(p,{fontSize:t,letterSpacing:r}):{width:0,height:0},x=function(A,E){var P=St(c)?c(A.value,E):A.value;return h==="width"?Une(Xc(P,{fontSize:t,letterSpacing:r}),v,f):Xc(P,{fontSize:t,letterSpacing:r})[h]},y=i.length>=2?Hr(i[1].coordinate-i[0].coordinate):1,m=Vne(a,y,h);return l==="equidistantPreserveStart"?zne(y,m,x,i,s):(l==="preserveStart"||l==="preserveStartEnd"?d=Gne(y,m,x,i,s,l==="preserveStartEnd"):d=Xne(y,m,x,i,s),d.filter(function(T){return T.isShow}))}var Jne=["viewBox"],Qne=["viewBox"],Zne=["ticks"];function lu(e){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Il.apply(this,arguments)}function OM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OM(Object(r),!0).forEach(function(n){RE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fx(e,t){if(e==null)return{};var r=eie(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eie(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function tie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jF(n.key),n)}}function rie(e,t,r){return t&&CM(e.prototype,t),r&&CM(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nie(e,t,r){return t=sm(t),iie(e,LF()?Reflect.construct(t,r||[],sm(e).constructor):t.apply(e,r))}function iie(e,t){if(t&&(lu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aie(e)}function aie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LF=function(){return!!e})()}function sm(e){return sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sm(e)}function sie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jS(e,t)}function jS(e,t){return jS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jS(e,t)}function RE(e,t,r){return t=jF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jF(e){var t=oie(e,"string");return lu(t)=="symbol"?t:t+""}function oie(e,t){if(lu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cu=(function(e){function t(r){var n;return tie(this,t),n=nie(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return sie(t,e),rie(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,s=Fx(n,Jne),o=this.props,l=o.viewBox,c=Fx(o,Qne);return!Nl(a,l)||!Nl(s,c)||!Nl(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,s=i.y,o=i.width,l=i.height,c=i.orientation,p=i.tickSize,f=i.mirror,d=i.tickMargin,h,v,x,y,m,T,A=f?-1:1,E=n.tickSize||p,P=rt(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=v=n.coordinate,y=s+ +!f*l,x=y-A*E,T=x-A*d,m=P;break;case"left":x=y=n.coordinate,v=a+ +!f*o,h=v-A*E,m=h-A*d,T=P;break;case"right":x=y=n.coordinate,v=a+ +f*o,h=v+A*E,m=h+A*d,T=P;break;default:h=v=n.coordinate,y=s+ +f*l,x=y+A*E,T=x+A*d,m=P;break}return{line:{x1:h,y1:x,x2:v,y2:y},tick:{x:m,y:T}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,s;switch(i){case"left":s=a?"start":"end";break;case"right":s=a?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=a?"start":"end";break;default:s=a?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,s=n.width,o=n.height,l=n.orientation,c=n.mirror,p=n.axisLine,f=Sr(Sr(Sr({},yt(this.props,!1)),yt(p,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!c||l==="bottom"&&c);f=Sr(Sr({},f),{},{x1:i,y1:a+d*o,x2:i+s,y2:a+d*o})}else{var h=+(l==="left"&&!c||l==="right"&&c);f=Sr(Sr({},f),{},{x1:i+h*s,y1:a,x2:i+h*s,y2:a+o})}return Pe.createElement("line",Il({},f,{className:Ot("recharts-cartesian-axis-line",wn(p,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var s=this,o=this.props,l=o.tickLine,c=o.stroke,p=o.tick,f=o.tickFormatter,d=o.unit,h=jE(Sr(Sr({},this.props),{},{ticks:n}),i,a),v=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),y=yt(this.props,!1),m=yt(p,!1),T=Sr(Sr({},y),{},{fill:"none"},yt(l,!1)),A=h.map(function(E,P){var _=s.getTickLineCoord(E),I=_.line,k=_.tick,M=Sr(Sr(Sr(Sr({textAnchor:v,verticalAnchor:x},y),{},{stroke:"none",fill:c},m),k),{},{index:P,payload:E,visibleTicksCount:h.length,tickFormatter:f});return Pe.createElement(Lt,Il({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},Wo(s.props,E,P)),l&&Pe.createElement("line",Il({},T,I,{className:Ot("recharts-cartesian-axis-tick-line",wn(l,"className"))})),p&&t.renderTickItem(p,M,"".concat(St(f)?f(E.value,P):E.value).concat(d||"")))});return Pe.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,s=i.width,o=i.height,l=i.ticksGenerator,c=i.className,p=i.hide;if(p)return null;var f=this.props,d=f.ticks,h=Fx(f,Zne),v=d;return St(l)&&(v=d&&d.length>0?l(this.props):l(h)),s<=0||o<=0||!v||!v.length?null:Pe.createElement(Lt,{className:Ot("recharts-cartesian-axis",c),ref:function(y){n.layerReference=y}},a&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),kr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var s,o=Ot(i.className,"recharts-cartesian-axis-tick-value");return Pe.isValidElement(n)?s=Pe.cloneElement(n,Sr(Sr({},i),{},{className:o})):St(n)?s=n(Sr(Sr({},i),{},{className:o})):s=Pe.createElement(Ho,Il({},i,{className:"recharts-cartesian-axis-tick-value"}),a),s}}])})(te.Component);RE(Cu,"displayName","CartesianAxis");RE(Cu,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var lie=["x1","y1","x2","y2","key"],uie=["offset"];function Go(e){"@babel/helpers - typeof";return Go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Go(e)}function IM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IM(Object(r),!0).forEach(function(n){cie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cie(e,t,r){return t=fie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fie(e){var t=pie(e,"string");return Go(t)=="symbol"?t:t+""}function pie(e,t){if(Go(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Go(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qo.apply(this,arguments)}function kM(e,t){if(e==null)return{};var r=die(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function die(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var hie=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,s=t.width,o=t.height,l=t.ry;return Pe.createElement("rect",{x:i,y:a,ry:l,width:s,height:o,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function RF(e,t){var r;if(Pe.isValidElement(e))r=Pe.cloneElement(e,t);else if(St(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,s=t.y2,o=t.key,l=kM(t,lie),c=yt(l,!1);c.offset;var p=kM(c,uie);r=Pe.createElement("line",qo({},p,{x1:n,y1:i,x2:a,y2:s,fill:"none",key:o}))}return r}function mie(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var s=a.map(function(o,l){var c=Fr(Fr({},e),{},{x1:t,y1:o,x2:t+r,y2:o,key:"line-".concat(l),index:l});return RF(i,c)});return Pe.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function yie(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var s=a.map(function(o,l){var c=Fr(Fr({},e),{},{x1:o,y1:t,x2:o,y2:t+r,key:"line-".concat(l),index:l});return RF(i,c)});return Pe.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function gie(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,s=e.height,o=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var p=o.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==p[0]&&p.unshift(0);var f=p.map(function(d,h){var v=!p[h+1],x=v?i+s-d:p[h+1]-d;if(x<=0)return null;var y=h%t.length;return Pe.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:x,width:a,stroke:"none",fill:t[y],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return Pe.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function vie(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,s=e.y,o=e.width,l=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var p=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==p[0]&&p.unshift(0);var f=p.map(function(d,h){var v=!p[h+1],x=v?a+o-d:p[h+1]-d;if(x<=0)return null;var y=h%n.length;return Pe.createElement("rect",{key:"react-".concat(h),x:d,y:s,width:x,height:l,stroke:"none",fill:n[y],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return Pe.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var bie=function(t,r){var n=t.xAxis,i=t.width,a=t.height,s=t.offset;return RB(jE(Fr(Fr(Fr({},Cu.defaultProps),n),{},{ticks:na(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),s.left,s.left+s.width,r)},xie=function(t,r){var n=t.yAxis,i=t.width,a=t.height,s=t.offset;return RB(jE(Fr(Fr(Fr({},Cu.defaultProps),n),{},{ticks:na(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),s.top,s.top+s.height,r)},gl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Tie(e){var t,r,n,i,a,s,o=NE(),l=DE(),c=one(),p=Fr(Fr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:gl.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:gl.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:gl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:gl.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:gl.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:gl.verticalFill,x:rt(e.x)?e.x:c.left,y:rt(e.y)?e.y:c.top,width:rt(e.width)?e.width:c.width,height:rt(e.height)?e.height:c.height}),f=p.x,d=p.y,h=p.width,v=p.height,x=p.syncWithTicks,y=p.horizontalValues,m=p.verticalValues,T=ine(),A=ane();if(!rt(h)||h<=0||!rt(v)||v<=0||!rt(f)||f!==+f||!rt(d)||d!==+d)return null;var E=p.verticalCoordinatesGenerator||bie,P=p.horizontalCoordinatesGenerator||xie,_=p.horizontalPoints,I=p.verticalPoints;if((!_||!_.length)&&St(P)){var k=y&&y.length,M=P({yAxis:A?Fr(Fr({},A),{},{ticks:k?y:A.ticks}):void 0,width:o,height:l,offset:c},k?!0:x);ni(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Go(M),"]")),Array.isArray(M)&&(_=M)}if((!I||!I.length)&&St(E)){var D=m&&m.length,C=E({xAxis:T?Fr(Fr({},T),{},{ticks:D?m:T.ticks}):void 0,width:o,height:l,offset:c},D?!0:x);ni(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Go(C),"]")),Array.isArray(C)&&(I=C)}return Pe.createElement("g",{className:"recharts-cartesian-grid"},Pe.createElement(hie,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height,ry:p.ry}),Pe.createElement(mie,qo({},p,{offset:c,horizontalPoints:_,xAxis:T,yAxis:A})),Pe.createElement(yie,qo({},p,{offset:c,verticalPoints:I,xAxis:T,yAxis:A})),Pe.createElement(gie,qo({},p,{horizontalPoints:_})),Pe.createElement(vie,qo({},p,{verticalPoints:I})))}Tie.displayName="CartesianGrid";var Sie=["layout","type","stroke","connectNulls","isRange","ref"],Eie=["key"],BF;function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}function FF(e,t){if(e==null)return{};var r=Pie(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Pie(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$o.apply(this,arguments)}function NM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ys(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NM(Object(r),!0).forEach(function(n){Ei(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Aie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$F(n.key),n)}}function wie(e,t,r){return t&&DM(e.prototype,t),r&&DM(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ie(e,t,r){return t=om(t),Oie(e,qF()?Reflect.construct(t,r||[],om(e).constructor):t.apply(e,r))}function Oie(e,t){if(t&&(uu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cie(e)}function Cie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qF=function(){return!!e})()}function om(e){return om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},om(e)}function Iie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RS(e,t)}function RS(e,t){return RS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},RS(e,t)}function Ei(e,t,r){return t=$F(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $F(e){var t=kie(e,"string");return uu(t)=="symbol"?t:t+""}function kie(e,t){if(uu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sl=(function(e){function t(){var r;Aie(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=_ie(this,t,[].concat(i)),Ei(r,"state",{isAnimationFinished:!0}),Ei(r,"id",Eu("recharts-area-")),Ei(r,"handleAnimationEnd",function(){var s=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),St(s)&&s()}),Ei(r,"handleAnimationStart",function(){var s=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),St(s)&&s()}),r}return Iie(t,e),wie(t,[{key:"renderDots",value:function(n,i,a){var s=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(s&&!o)return null;var l=this.props,c=l.dot,p=l.points,f=l.dataKey,d=yt(this.props,!1),h=yt(c,!0),v=p.map(function(y,m){var T=ys(ys(ys({key:"dot-".concat(m),r:3},d),h),{},{index:m,cx:y.x,cy:y.y,dataKey:f,value:y.value,payload:y.payload,points:p});return t.renderDotItem(c,T)}),x={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return Pe.createElement(Lt,$o({className:"recharts-area-dots"},x),v)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,s=i.points,o=i.strokeWidth,l=s[0].x,c=s[s.length-1].x,p=n*Math.abs(l-c),f=Ts(s.map(function(d){return d.y||0}));return rt(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Ts(a.map(function(d){return d.y||0})),f)),rt(f)?Pe.createElement("rect",{x:l<c?l:l-p,y:0,width:p,height:Math.floor(f+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,s=i.points,o=i.strokeWidth,l=s[0].y,c=s[s.length-1].y,p=n*Math.abs(l-c),f=Ts(s.map(function(d){return d.x||0}));return rt(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Ts(a.map(function(d){return d.x||0})),f)),rt(f)?Pe.createElement("rect",{x:0,y:l<c?l:l-p,width:f+(o?parseInt("".concat(o),10):1),height:Math.floor(p)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,s){var o=this.props,l=o.layout,c=o.type,p=o.stroke,f=o.connectNulls,d=o.isRange;o.ref;var h=FF(o,Sie);return Pe.createElement(Lt,{clipPath:a?"url(#clipPath-".concat(s,")"):null},Pe.createElement(jl,$o({},yt(h,!0),{points:n,connectNulls:f,type:c,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),p!=="none"&&Pe.createElement(jl,$o({},yt(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:f,fill:"none",points:n})),p!=="none"&&d&&Pe.createElement(jl,$o({},yt(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,s=this.props,o=s.points,l=s.baseLine,c=s.isAnimationActive,p=s.animationBegin,f=s.animationDuration,d=s.animationEasing,h=s.animationId,v=this.state,x=v.prevPoints,y=v.prevBaseLine;return Pe.createElement(Ii,{begin:p,duration:f,isActive:c,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var T=m.t;if(x){var A=x.length/o.length,E=o.map(function(k,M){var D=Math.floor(M*A);if(x[D]){var C=x[D],L=rn(C.x,k.x),q=rn(C.y,k.y);return ys(ys({},k),{},{x:L(T),y:q(T)})}return k}),P;if(rt(l)&&typeof l=="number"){var _=rn(y,l);P=_(T)}else if(At(l)||Su(l)){var I=rn(y,0);P=I(T)}else P=l.map(function(k,M){var D=Math.floor(M*A);if(y[D]){var C=y[D],L=rn(C.x,k.x),q=rn(C.y,k.y);return ys(ys({},k),{},{x:L(T),y:q(T)})}return k});return a.renderAreaStatically(E,P,n,i)}return Pe.createElement(Lt,null,Pe.createElement("defs",null,Pe.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(T))),Pe.createElement(Lt,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(o,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,s=a.points,o=a.baseLine,l=a.isAnimationActive,c=this.state,p=c.prevPoints,f=c.prevBaseLine,d=c.totalLength;return l&&s&&s.length&&(!p&&d>0||!Gl(p,s)||!Gl(f,o))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(s,o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,s=i.dot,o=i.points,l=i.className,c=i.top,p=i.left,f=i.xAxis,d=i.yAxis,h=i.width,v=i.height,x=i.isAnimationActive,y=i.id;if(a||!o||!o.length)return null;var m=this.state.isAnimationFinished,T=o.length===1,A=Ot("recharts-area",l),E=f&&f.allowDataOverflow,P=d&&d.allowDataOverflow,_=E||P,I=At(y)?this.id:y,k=(n=yt(s,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},M=k.r,D=M===void 0?3:M,C=k.strokeWidth,L=C===void 0?2:C,q=hV(s)?s:{},$=q.clipDot,z=$===void 0?!0:$,Q=D*2+L;return Pe.createElement(Lt,{className:A},E||P?Pe.createElement("defs",null,Pe.createElement("clipPath",{id:"clipPath-".concat(I)},Pe.createElement("rect",{x:E?p:p-h/2,y:P?c:c-v/2,width:E?h:h*2,height:P?v:v*2})),!z&&Pe.createElement("clipPath",{id:"clipPath-dots-".concat(I)},Pe.createElement("rect",{x:p-Q/2,y:c-Q/2,width:h+Q,height:v+Q}))):null,T?null:this.renderArea(_,I),(s||T)&&this.renderDots(_,z,I),(!x||m)&&sa.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(te.PureComponent);BF=sl;Ei(sl,"displayName","Area");Ei(sl,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ai.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ei(sl,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,s=t.props.baseValue,o=s??a;if(rt(o)&&typeof o=="number")return o;var l=i==="horizontal"?n:r,c=l.scale.domain();if(l.type==="number"){var p=Math.max(c[0],c[1]),f=Math.min(c[0],c[1]);return o==="dataMin"?f:o==="dataMax"||p<0?p:Math.max(Math.min(c[0],c[1]),0)}return o==="dataMin"?c[0]:o==="dataMax"?c[1]:c[0]});Ei(sl,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,o=e.bandSize,l=e.dataKey,c=e.stackedData,p=e.dataStartIndex,f=e.displayedData,d=e.offset,h=t.layout,v=c&&c.length,x=BF.getBaseValue(t,r,n,i),y=h==="horizontal",m=!1,T=f.map(function(E,P){var _;v?_=c[p+P]:(_=Ar(E,l),Array.isArray(_)?m=!0:_=[x,_]);var I=_[1]==null||v&&Ar(E,l)==null;return y?{x:U2({axis:n,ticks:a,bandSize:o,entry:E,index:P}),y:I?null:i.scale(_[1]),value:_,payload:E}:{x:I?null:n.scale(_[1]),y:U2({axis:i,ticks:s,bandSize:o,entry:E,index:P}),value:_,payload:E}}),A;return v||m?A=T.map(function(E){var P=Array.isArray(E.value)?E.value[0]:null;return y?{x:E.x,y:P!=null&&E.y!=null?i.scale(P):null}:{x:P!=null?n.scale(P):null,y:E.y}}):A=y?i.scale(x):n.scale(x),ys({points:T,baseLine:A,layout:h,isRange:m},d)});Ei(sl,"renderDotItem",function(e,t){var r;if(Pe.isValidElement(e))r=Pe.cloneElement(e,t);else if(St(e))r=e(t);else{var n=Ot("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=FF(t,Eie);r=Pe.createElement(ny,$o({},a,{key:i,className:n}))}return r});function cu(e){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}function Nie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Die(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KF(n.key),n)}}function Mie(e,t,r){return t&&Die(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lie(e,t,r){return t=lm(t),jie(e,UF()?Reflect.construct(t,r||[],lm(e).constructor):t.apply(e,r))}function jie(e,t){if(t&&(cu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rie(e)}function Rie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UF=function(){return!!e})()}function lm(e){return lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lm(e)}function Bie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BS(e,t)}function BS(e,t){return BS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},BS(e,t)}function VF(e,t,r){return t=KF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KF(e){var t=Fie(e,"string");return cu(t)=="symbol"?t:t+""}function Fie(e,t){if(cu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function FS(){return FS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},FS.apply(this,arguments)}function qie(e){var t=e.xAxisId,r=NE(),n=DE(),i=wF(t);return i==null?null:te.createElement(Cu,FS({},i,{className:Ot("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(s){return na(s,!0)}}))}var my=(function(e){function t(){return Nie(this,t),Lie(this,t,arguments)}return Bie(t,e),Mie(t,[{key:"render",value:function(){return te.createElement(qie,this.props)}}])})(te.Component);VF(my,"displayName","XAxis");VF(my,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function $ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,HF(n.key),n)}}function Vie(e,t,r){return t&&Uie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kie(e,t,r){return t=um(t),zie(e,zF()?Reflect.construct(t,r||[],um(e).constructor):t.apply(e,r))}function zie(e,t){if(t&&(fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wie(e)}function Wie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zF=function(){return!!e})()}function um(e){return um=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},um(e)}function Hie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qS(e,t)}function qS(e,t){return qS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qS(e,t)}function WF(e,t,r){return t=HF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HF(e){var t=Yie(e,"string");return fu(t)=="symbol"?t:t+""}function Yie(e,t){if(fu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $S(){return $S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$S.apply(this,arguments)}var Xie=function(t){var r=t.yAxisId,n=NE(),i=DE(),a=_F(r);return a==null?null:te.createElement(Cu,$S({},a,{className:Ot("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(o){return na(o,!0)}}))},yy=(function(e){function t(){return $ie(this,t),Kie(this,t,arguments)}return Hie(t,e),Vie(t,[{key:"render",value:function(){return te.createElement(Xie,this.props)}}])})(te.Component);WF(yy,"displayName","YAxis");WF(yy,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function MM(e){return Zie(e)||Qie(e)||Jie(e)||Gie()}function Gie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jie(e,t){if(e){if(typeof e=="string")return US(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return US(e,t)}}function Qie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zie(e){if(Array.isArray(e))return US(e)}function US(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var VS=function(t,r,n,i,a){var s=$n(t,LE),o=$n(t,py),l=[].concat(MM(s),MM(o)),c=$n(t,hy),p="".concat(i,"Id"),f=i[0],d=r;if(l.length&&(d=l.reduce(function(x,y){if(y.props[p]===n&&_i(y.props,"extendDomain")&&rt(y.props[f])){var m=y.props[f];return[Math.min(x[0],m),Math.max(x[1],m)]}return x},d)),c.length){var h="".concat(f,"1"),v="".concat(f,"2");d=c.reduce(function(x,y){if(y.props[p]===n&&_i(y.props,"extendDomain")&&rt(y.props[h])&&rt(y.props[v])){var m=y.props[h],T=y.props[v];return[Math.min(x[0],m,T),Math.max(x[1],m,T)]}return x},d)}return a&&a.length&&(d=a.reduce(function(x,y){return rt(y)?[Math.min(x[0],y),Math.max(x[1],y)]:x},d)),d},qx={exports:{}},LM;function eae(){return LM||(LM=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,c,p){this.fn=l,this.context=c,this.once=p||!1}function a(l,c,p,f,d){if(typeof p!="function")throw new TypeError("The listener must be a function");var h=new i(p,f||l,d),v=r?r+c:c;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],h]:l._events[v].push(h):(l._events[v]=h,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],p,f;if(this._eventsCount===0)return c;for(f in p=this._events)t.call(p,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(p)):c},o.prototype.listeners=function(c){var p=r?r+c:c,f=this._events[p];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,v=new Array(h);d<h;d++)v[d]=f[d].fn;return v},o.prototype.listenerCount=function(c){var p=r?r+c:c,f=this._events[p];return f?f.fn?1:f.length:0},o.prototype.emit=function(c,p,f,d,h,v){var x=r?r+c:c;if(!this._events[x])return!1;var y=this._events[x],m=arguments.length,T,A;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),m){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,p),!0;case 3:return y.fn.call(y.context,p,f),!0;case 4:return y.fn.call(y.context,p,f,d),!0;case 5:return y.fn.call(y.context,p,f,d,h),!0;case 6:return y.fn.call(y.context,p,f,d,h,v),!0}for(A=1,T=new Array(m-1);A<m;A++)T[A-1]=arguments[A];y.fn.apply(y.context,T)}else{var E=y.length,P;for(A=0;A<E;A++)switch(y[A].once&&this.removeListener(c,y[A].fn,void 0,!0),m){case 1:y[A].fn.call(y[A].context);break;case 2:y[A].fn.call(y[A].context,p);break;case 3:y[A].fn.call(y[A].context,p,f);break;case 4:y[A].fn.call(y[A].context,p,f,d);break;default:if(!T)for(P=1,T=new Array(m-1);P<m;P++)T[P-1]=arguments[P];y[A].fn.apply(y[A].context,T)}}return!0},o.prototype.on=function(c,p,f){return a(this,c,p,f,!1)},o.prototype.once=function(c,p,f){return a(this,c,p,f,!0)},o.prototype.removeListener=function(c,p,f,d){var h=r?r+c:c;if(!this._events[h])return this;if(!p)return s(this,h),this;var v=this._events[h];if(v.fn)v.fn===p&&(!d||v.once)&&(!f||v.context===f)&&s(this,h);else{for(var x=0,y=[],m=v.length;x<m;x++)(v[x].fn!==p||d&&!v[x].once||f&&v[x].context!==f)&&y.push(v[x]);y.length?this._events[h]=y.length===1?y[0]:y:s(this,h)}return this},o.prototype.removeAllListeners=function(c){var p;return c?(p=r?r+c:c,this._events[p]&&s(this,p)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o})(qx)),qx.exports}var tae=eae();const rae=Mt(tae);var $x=new rae,Ux="recharts.syncMouseEvents";function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}function nae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YF(n.key),n)}}function aae(e,t,r){return t&&iae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vx(e,t,r){return t=YF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YF(e){var t=sae(e,"string");return Vf(t)=="symbol"?t:t+""}function sae(e,t){if(Vf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oae=(function(){function e(){nae(this,e),Vx(this,"activeIndex",0),Vx(this,"coordinateList",[]),Vx(this,"layout","horizontal")}return aae(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,s=r.container,o=s===void 0?null:s,l=r.layout,c=l===void 0?null:l,p=r.offset,f=p===void 0?null:p,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=o??this.container,this.layout=c??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,s=i.y,o=i.height,l=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,p=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+c,d=s+this.offset.top+o/2+p;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])})();function lae(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&rt(n)&&rt(i))return!0}return!1}function uae(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function XF(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,s=er(t,r,n,i),o=er(t,r,n,a);return{points:[s,o],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function cae(e,t,r){var n,i,a,s;if(e==="horizontal")n=t.x,a=n,i=r.top,s=r.top+r.height;else if(e==="vertical")i=t.y,s=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var o=t.cx,l=t.cy,c=t.innerRadius,p=t.outerRadius,f=t.angle,d=er(o,l,c,f),h=er(o,l,p,f);n=d.x,i=d.y,a=h.x,s=h.y}else return XF(t);return[{x:n,y:i},{x:a,y:s}]}function Kf(e){"@babel/helpers - typeof";return Kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kf(e)}function jM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jM(Object(r),!0).forEach(function(n){fae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fae(e,t,r){return t=pae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pae(e){var t=dae(e,"string");return Kf(t)=="symbol"?t:t+""}function dae(e,t){if(Kf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hae(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,s=e.activeCoordinate,o=e.activePayload,l=e.offset,c=e.activeTooltipIndex,p=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!s||d!=="ScatterChart"&&i!=="axis")return null;var v,x=jl;if(d==="ScatterChart")v=s,x=Fee;else if(d==="BarChart")v=uae(f,s,l,p),x=OE;else if(f==="radial"){var y=XF(s),m=y.cx,T=y.cy,A=y.radius,E=y.startAngle,P=y.endAngle;v={cx:m,cy:T,startAngle:E,endAngle:P,innerRadius:A,outerRadius:A},x=YB}else v={points:cae(f,s,l)},x=jl;var _=Hd(Hd(Hd(Hd({stroke:"#ccc",pointerEvents:"none"},l),v),yt(h,!1)),{},{payload:o,payloadIndex:c,className:Ot("recharts-tooltip-cursor",h.className)});return te.isValidElement(h)?te.cloneElement(h,_):te.createElement(x,_)}var mae=["item"],yae=["children","className","width","height","style","compact","title","desc"];function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kl.apply(this,arguments)}function RM(e,t){return bae(e)||vae(e,t)||JF(e,t)||gae()}function gae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vae(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(p){c=!0,i=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function bae(e){if(Array.isArray(e))return e}function BM(e,t){if(e==null)return{};var r=xae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Tae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,QF(n.key),n)}}function Eae(e,t,r){return t&&Sae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pae(e,t,r){return t=cm(t),Aae(e,GF()?Reflect.construct(t,r||[],cm(e).constructor):t.apply(e,r))}function Aae(e,t){if(t&&(pu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wae(e)}function wae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GF=function(){return!!e})()}function cm(e){return cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cm(e)}function _ae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KS(e,t)}function KS(e,t){return KS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},KS(e,t)}function du(e){return Iae(e)||Cae(e)||JF(e)||Oae()}function Oae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JF(e,t){if(e){if(typeof e=="string")return zS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zS(e,t)}}function Cae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Iae(e){if(Array.isArray(e))return zS(e)}function zS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FM(Object(r),!0).forEach(function(n){xt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xt(e,t,r){return t=QF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QF(e){var t=kae(e,"string");return pu(t)=="symbol"?t:t+""}function kae(e,t){if(pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nae={xAxis:["bottom","top"],yAxis:["left","right"]},Dae={width:"100%",height:"100%"},ZF={x:0,y:0};function Yd(e){return e}var Mae=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Lae=function(t,r,n,i){var a=r.find(function(p){return p&&p.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var s=a.coordinate,o=i.radius;return Ye(Ye(Ye({},i),er(i.cx,i.cy,o,s)),{},{angle:s,radius:o})}var l=a.coordinate,c=i.angle;return Ye(Ye(Ye({},i),er(i.cx,i.cy,l,c)),{},{angle:c,radius:l})}return ZF},gy=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,s=(n??[]).reduce(function(o,l){var c=l.props.data;return c&&c.length?[].concat(du(o),du(c)):o},[]);return s.length>0?s:t&&t.length&&rt(i)&&rt(a)?t.slice(i,a+1):[]};function e4(e){return e==="number"?[0,"auto"]:void 0}var WS=function(t,r,n,i){var a=t.graphicalItems,s=t.tooltipAxis,o=gy(r,t);return n<0||!a||!a.length||n>=o.length?null:a.reduce(function(l,c){var p,f=(p=c.props.data)!==null&&p!==void 0?p:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(s.dataKey&&!s.allowDuplicatedCategory){var h=f===void 0?o:f;d=ph(h,s.dataKey,i)}else d=f&&f[n]||o[n];return d?[].concat(du(l),[UB(c,d)]):l},[])},qM=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},s=Mae(a,n),o=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,p=cJ(s,o,c,l);if(p>=0&&c){var f=c[p]&&c[p].value,d=WS(t,r,p,f),h=Lae(n,o,p,a);return{activeTooltipIndex:p,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},jae=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,s=r.axisIdKey,o=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,p=t.layout,f=t.children,d=t.stackOffset,h=jB(p,a);return n.reduce(function(v,x){var y,m=x.type.defaultProps!==void 0?Ye(Ye({},x.type.defaultProps),x.props):x.props,T=m.type,A=m.dataKey,E=m.allowDataOverflow,P=m.allowDuplicatedCategory,_=m.scale,I=m.ticks,k=m.includeHidden,M=m[s];if(v[M])return v;var D=gy(t.data,{graphicalItems:i.filter(function(F){var R,J=s in F.props?F.props[s]:(R=F.type.defaultProps)===null||R===void 0?void 0:R[s];return J===M}),dataStartIndex:l,dataEndIndex:c}),C=D.length,L,q,$;lae(m.domain,E,T)&&(L=oS(m.domain,null,E),h&&(T==="number"||_!=="auto")&&($=Jc(D,A,"category")));var z=e4(T);if(!L||L.length===0){var Q,V=(Q=m.domain)!==null&&Q!==void 0?Q:z;if(A){if(L=Jc(D,A,T),T==="category"&&h){var X=aV(L);P&&X?(q=L,L=Jh(0,C)):P||(L=W2(V,L,x).reduce(function(F,R){return F.indexOf(R)>=0?F:[].concat(du(F),[R])},[]))}else if(T==="category")P?L=L.filter(function(F){return F!==""&&!At(F)}):L=W2(V,L,x).reduce(function(F,R){return F.indexOf(R)>=0||R===""||At(R)?F:[].concat(du(F),[R])},[]);else if(T==="number"){var U=mJ(D,i.filter(function(F){var R,J,se=s in F.props?F.props[s]:(R=F.type.defaultProps)===null||R===void 0?void 0:R[s],ie="hide"in F.props?F.props.hide:(J=F.type.defaultProps)===null||J===void 0?void 0:J.hide;return se===M&&(k||!ie)}),A,a,p);U&&(L=U)}h&&(T==="number"||_!=="auto")&&($=Jc(D,A,"category"))}else h?L=Jh(0,C):o&&o[M]&&o[M].hasStack&&T==="number"?L=d==="expand"?[0,1]:$B(o[M].stackGroups,l,c):L=LB(D,i.filter(function(F){var R=s in F.props?F.props[s]:F.type.defaultProps[s],J="hide"in F.props?F.props.hide:F.type.defaultProps.hide;return R===M&&(k||!J)}),T,p,!0);if(T==="number")L=VS(f,L,M,a,I),V&&(L=oS(V,L,E));else if(T==="category"&&V){var N=V,j=L.every(function(F){return N.indexOf(F)>=0});j&&(L=N)}}return Ye(Ye({},v),{},xt({},M,Ye(Ye({},m),{},{axisType:a,domain:L,categoricalDomain:$,duplicateDomain:q,originalDomain:(y=m.domain)!==null&&y!==void 0?y:z,isCategorical:h,layout:p})))},{})},Rae=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,s=r.axisIdKey,o=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,p=t.layout,f=t.children,d=gy(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:c}),h=d.length,v=jB(p,a),x=-1;return n.reduce(function(y,m){var T=m.type.defaultProps!==void 0?Ye(Ye({},m.type.defaultProps),m.props):m.props,A=T[s],E=e4("number");if(!y[A]){x++;var P;return v?P=Jh(0,h):o&&o[A]&&o[A].hasStack?(P=$B(o[A].stackGroups,l,c),P=VS(f,P,A,a)):(P=oS(E,LB(d,n.filter(function(_){var I,k,M=s in _.props?_.props[s]:(I=_.type.defaultProps)===null||I===void 0?void 0:I[s],D="hide"in _.props?_.props.hide:(k=_.type.defaultProps)===null||k===void 0?void 0:k.hide;return M===A&&!D}),"number",p),i.defaultProps.allowDataOverflow),P=VS(f,P,A,a)),Ye(Ye({},y),{},xt({},A,Ye(Ye({axisType:a},i.defaultProps),{},{hide:!0,orientation:wn(Nae,"".concat(a,".").concat(x%2),null),domain:P,originalDomain:E,isCategorical:v,layout:p})))}return y},{})},Bae=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,s=r.graphicalItems,o=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,p=t.children,f="".concat(i,"Id"),d=$n(p,a),h={};return d&&d.length?h=jae(t,{axes:d,graphicalItems:s,axisType:i,axisIdKey:f,stackGroups:o,dataStartIndex:l,dataEndIndex:c}):s&&s.length&&(h=Rae(t,{Axis:a,graphicalItems:s,axisType:i,axisIdKey:f,stackGroups:o,dataStartIndex:l,dataEndIndex:c})),h},Fae=function(t){var r=bs(t),n=na(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:eE(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Bh(r,n)}},$M=function(t){var r=t.children,n=t.defaultShowTooltip,i=Sn(r,nu),a=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!n}},qae=function(t){return!t||!t.length?!1:t.some(function(r){var n=ia(r&&r.type);return n&&n.indexOf("Bar")>=0})},UM=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},$ae=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,s=a===void 0?{}:a,o=t.yAxisMap,l=o===void 0?{}:o,c=n.width,p=n.height,f=n.children,d=n.margin||{},h=Sn(f,nu),v=Sn(f,Dl),x=Object.keys(l).reduce(function(P,_){var I=l[_],k=I.orientation;return!I.mirror&&!I.hide?Ye(Ye({},P),{},xt({},k,P[k]+I.width)):P},{left:d.left||0,right:d.right||0}),y=Object.keys(s).reduce(function(P,_){var I=s[_],k=I.orientation;return!I.mirror&&!I.hide?Ye(Ye({},P),{},xt({},k,wn(P,"".concat(k))+I.height)):P},{top:d.top||0,bottom:d.bottom||0}),m=Ye(Ye({},y),x),T=m.bottom;h&&(m.bottom+=h.props.height||nu.defaultProps.height),v&&r&&(m=dJ(m,i,n,r));var A=c-m.left-m.right,E=p-m.top-m.bottom;return Ye(Ye({brushBottom:T},m),{},{width:Math.max(A,0),height:Math.max(E,0)})},Uae=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},BE=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,s=t.validateTooltipEventTypes,o=s===void 0?["axis"]:s,l=t.axisComponents,c=t.legendContent,p=t.formatAxisMap,f=t.defaultProps,d=function(m,T){var A=T.graphicalItems,E=T.stackGroups,P=T.offset,_=T.updateId,I=T.dataStartIndex,k=T.dataEndIndex,M=m.barSize,D=m.layout,C=m.barGap,L=m.barCategoryGap,q=m.maxBarSize,$=UM(D),z=$.numericAxisName,Q=$.cateAxisName,V=qae(A),X=[];return A.forEach(function(U,N){var j=gy(m.data,{graphicalItems:[U],dataStartIndex:I,dataEndIndex:k}),F=U.type.defaultProps!==void 0?Ye(Ye({},U.type.defaultProps),U.props):U.props,R=F.dataKey,J=F.maxBarSize,se=F["".concat(z,"Id")],ie=F["".concat(Q,"Id")],ae={},fe=l.reduce(function(ke,Oe){var Me=T["".concat(Oe.axisType,"Map")],Ke=F["".concat(Oe.axisType,"Id")];Me&&Me[Ke]||Oe.axisType==="zAxis"||Xo();var _e=Me[Ke];return Ye(Ye({},ke),{},xt(xt({},Oe.axisType,_e),"".concat(Oe.axisType,"Ticks"),na(_e)))},ae),de=fe[Q],Se=fe["".concat(Q,"Ticks")],Ce=E&&E[se]&&E[se].hasStack&&PJ(U,E[se].stackGroups),xe=ia(U.type).indexOf("Bar")>=0,Be=Bh(de,Se),Re=[],He=V&&fJ({barSize:M,stackGroups:E,totalSize:Uae(fe,Q)});if(xe){var ze,je,re=At(J)?q:J,ue=(ze=(je=Bh(de,Se,!0))!==null&&je!==void 0?je:re)!==null&&ze!==void 0?ze:0;Re=pJ({barGap:C,barCategoryGap:L,bandSize:ue!==Be?ue:Be,sizeList:He[ie],maxBarSize:re}),ue!==Be&&(Re=Re.map(function(ke){return Ye(Ye({},ke),{},{position:Ye(Ye({},ke.position),{},{offset:ke.position.offset-ue/2})})}))}var Te=U&&U.type&&U.type.getComposedData;Te&&X.push({props:Ye(Ye({},Te(Ye(Ye({},fe),{},{displayedData:j,props:m,dataKey:R,item:U,bandSize:Be,barPosition:Re,offset:P,stackedData:Ce,layout:D,dataStartIndex:I,dataEndIndex:k}))),{},xt(xt(xt({key:U.key||"item-".concat(N)},z,fe[z]),Q,fe[Q]),"animationId",_)),childIndex:gV(U,m.children),item:U})}),X},h=function(m,T){var A=m.props,E=m.dataStartIndex,P=m.dataEndIndex,_=m.updateId;if(!sI({props:A}))return null;var I=A.children,k=A.layout,M=A.stackOffset,D=A.data,C=A.reverseStackOrder,L=UM(k),q=L.numericAxisName,$=L.cateAxisName,z=$n(I,n),Q=SJ(D,z,"".concat(q,"Id"),"".concat($,"Id"),M,C),V=l.reduce(function(F,R){var J="".concat(R.axisType,"Map");return Ye(Ye({},F),{},xt({},J,Bae(A,Ye(Ye({},R),{},{graphicalItems:z,stackGroups:R.axisType===q&&Q,dataStartIndex:E,dataEndIndex:P}))))},{}),X=$ae(Ye(Ye({},V),{},{props:A,graphicalItems:z}),T==null?void 0:T.legendBBox);Object.keys(V).forEach(function(F){V[F]=p(A,V[F],X,F.replace("Map",""),r)});var U=V["".concat($,"Map")],N=Fae(U),j=d(A,Ye(Ye({},V),{},{dataStartIndex:E,dataEndIndex:P,updateId:_,graphicalItems:z,stackGroups:Q,offset:X}));return Ye(Ye({formattedGraphicalItems:j,graphicalItems:z,offset:X,stackGroups:Q},N),V)},v=(function(y){function m(T){var A,E,P;return Tae(this,m),P=Pae(this,m,[T]),xt(P,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),xt(P,"accessibilityManager",new oae),xt(P,"handleLegendBBoxUpdate",function(_){if(_){var I=P.state,k=I.dataStartIndex,M=I.dataEndIndex,D=I.updateId;P.setState(Ye({legendBBox:_},h({props:P.props,dataStartIndex:k,dataEndIndex:M,updateId:D},Ye(Ye({},P.state),{},{legendBBox:_}))))}}),xt(P,"handleReceiveSyncEvent",function(_,I,k){if(P.props.syncId===_){if(k===P.eventEmitterSymbol&&typeof P.props.syncMethod!="function")return;P.applySyncEvent(I)}}),xt(P,"handleBrushChange",function(_){var I=_.startIndex,k=_.endIndex;if(I!==P.state.dataStartIndex||k!==P.state.dataEndIndex){var M=P.state.updateId;P.setState(function(){return Ye({dataStartIndex:I,dataEndIndex:k},h({props:P.props,dataStartIndex:I,dataEndIndex:k,updateId:M},P.state))}),P.triggerSyncEvent({dataStartIndex:I,dataEndIndex:k})}}),xt(P,"handleMouseEnter",function(_){var I=P.getMouseInfo(_);if(I){var k=Ye(Ye({},I),{},{isTooltipActive:!0});P.setState(k),P.triggerSyncEvent(k);var M=P.props.onMouseEnter;St(M)&&M(k,_)}}),xt(P,"triggeredAfterMouseMove",function(_){var I=P.getMouseInfo(_),k=I?Ye(Ye({},I),{},{isTooltipActive:!0}):{isTooltipActive:!1};P.setState(k),P.triggerSyncEvent(k);var M=P.props.onMouseMove;St(M)&&M(k,_)}),xt(P,"handleItemMouseEnter",function(_){P.setState(function(){return{isTooltipActive:!0,activeItem:_,activePayload:_.tooltipPayload,activeCoordinate:_.tooltipPosition||{x:_.cx,y:_.cy}}})}),xt(P,"handleItemMouseLeave",function(){P.setState(function(){return{isTooltipActive:!1}})}),xt(P,"handleMouseMove",function(_){_.persist(),P.throttleTriggeredAfterMouseMove(_)}),xt(P,"handleMouseLeave",function(_){P.throttleTriggeredAfterMouseMove.cancel();var I={isTooltipActive:!1};P.setState(I),P.triggerSyncEvent(I);var k=P.props.onMouseLeave;St(k)&&k(I,_)}),xt(P,"handleOuterEvent",function(_){var I=yV(_),k=wn(P.props,"".concat(I));if(I&&St(k)){var M,D;/.*touch.*/i.test(I)?D=P.getMouseInfo(_.changedTouches[0]):D=P.getMouseInfo(_),k((M=D)!==null&&M!==void 0?M:{},_)}}),xt(P,"handleClick",function(_){var I=P.getMouseInfo(_);if(I){var k=Ye(Ye({},I),{},{isTooltipActive:!0});P.setState(k),P.triggerSyncEvent(k);var M=P.props.onClick;St(M)&&M(k,_)}}),xt(P,"handleMouseDown",function(_){var I=P.props.onMouseDown;if(St(I)){var k=P.getMouseInfo(_);I(k,_)}}),xt(P,"handleMouseUp",function(_){var I=P.props.onMouseUp;if(St(I)){var k=P.getMouseInfo(_);I(k,_)}}),xt(P,"handleTouchMove",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&P.throttleTriggeredAfterMouseMove(_.changedTouches[0])}),xt(P,"handleTouchStart",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&P.handleMouseDown(_.changedTouches[0])}),xt(P,"handleTouchEnd",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&P.handleMouseUp(_.changedTouches[0])}),xt(P,"handleDoubleClick",function(_){var I=P.props.onDoubleClick;if(St(I)){var k=P.getMouseInfo(_);I(k,_)}}),xt(P,"handleContextMenu",function(_){var I=P.props.onContextMenu;if(St(I)){var k=P.getMouseInfo(_);I(k,_)}}),xt(P,"triggerSyncEvent",function(_){P.props.syncId!==void 0&&$x.emit(Ux,P.props.syncId,_,P.eventEmitterSymbol)}),xt(P,"applySyncEvent",function(_){var I=P.props,k=I.layout,M=I.syncMethod,D=P.state.updateId,C=_.dataStartIndex,L=_.dataEndIndex;if(_.dataStartIndex!==void 0||_.dataEndIndex!==void 0)P.setState(Ye({dataStartIndex:C,dataEndIndex:L},h({props:P.props,dataStartIndex:C,dataEndIndex:L,updateId:D},P.state)));else if(_.activeTooltipIndex!==void 0){var q=_.chartX,$=_.chartY,z=_.activeTooltipIndex,Q=P.state,V=Q.offset,X=Q.tooltipTicks;if(!V)return;if(typeof M=="function")z=M(X,_);else if(M==="value"){z=-1;for(var U=0;U<X.length;U++)if(X[U].value===_.activeLabel){z=U;break}}var N=Ye(Ye({},V),{},{x:V.left,y:V.top}),j=Math.min(q,N.x+N.width),F=Math.min($,N.y+N.height),R=X[z]&&X[z].value,J=WS(P.state,P.props.data,z),se=X[z]?{x:k==="horizontal"?X[z].coordinate:j,y:k==="horizontal"?F:X[z].coordinate}:ZF;P.setState(Ye(Ye({},_),{},{activeLabel:R,activeCoordinate:se,activePayload:J,activeTooltipIndex:z}))}else P.setState(_)}),xt(P,"renderCursor",function(_){var I,k=P.state,M=k.isTooltipActive,D=k.activeCoordinate,C=k.activePayload,L=k.offset,q=k.activeTooltipIndex,$=k.tooltipAxisBandSize,z=P.getTooltipEventType(),Q=(I=_.props.active)!==null&&I!==void 0?I:M,V=P.props.layout,X=_.key||"_recharts-cursor";return Pe.createElement(hae,{key:X,activeCoordinate:D,activePayload:C,activeTooltipIndex:q,chartName:r,element:_,isActive:Q,layout:V,offset:L,tooltipAxisBandSize:$,tooltipEventType:z})}),xt(P,"renderPolarAxis",function(_,I,k){var M=wn(_,"type.axisType"),D=wn(P.state,"".concat(M,"Map")),C=_.type.defaultProps,L=C!==void 0?Ye(Ye({},C),_.props):_.props,q=D&&D[L["".concat(M,"Id")]];return te.cloneElement(_,Ye(Ye({},q),{},{className:Ot(M,q.className),key:_.key||"".concat(I,"-").concat(k),ticks:na(q,!0)}))}),xt(P,"renderPolarGrid",function(_){var I=_.props,k=I.radialLines,M=I.polarAngles,D=I.polarRadius,C=P.state,L=C.radiusAxisMap,q=C.angleAxisMap,$=bs(L),z=bs(q),Q=z.cx,V=z.cy,X=z.innerRadius,U=z.outerRadius;return te.cloneElement(_,{polarAngles:Array.isArray(M)?M:na(z,!0).map(function(N){return N.coordinate}),polarRadius:Array.isArray(D)?D:na($,!0).map(function(N){return N.coordinate}),cx:Q,cy:V,innerRadius:X,outerRadius:U,key:_.key||"polar-grid",radialLines:k})}),xt(P,"renderLegend",function(){var _=P.state.formattedGraphicalItems,I=P.props,k=I.children,M=I.width,D=I.height,C=P.props.margin||{},L=M-(C.left||0)-(C.right||0),q=DB({children:k,formattedGraphicalItems:_,legendWidth:L,legendContent:c});if(!q)return null;var $=q.item,z=BM(q,mae);return te.cloneElement($,Ye(Ye({},z),{},{chartWidth:M,chartHeight:D,margin:C,onBBoxUpdate:P.handleLegendBBoxUpdate}))}),xt(P,"renderTooltip",function(){var _,I=P.props,k=I.children,M=I.accessibilityLayer,D=Sn(k,Qi);if(!D)return null;var C=P.state,L=C.isTooltipActive,q=C.activeCoordinate,$=C.activePayload,z=C.activeLabel,Q=C.offset,V=(_=D.props.active)!==null&&_!==void 0?_:L;return te.cloneElement(D,{viewBox:Ye(Ye({},Q),{},{x:Q.left,y:Q.top}),active:V,label:z,payload:V?$:[],coordinate:q,accessibilityLayer:M})}),xt(P,"renderBrush",function(_){var I=P.props,k=I.margin,M=I.data,D=P.state,C=D.offset,L=D.dataStartIndex,q=D.dataEndIndex,$=D.updateId;return te.cloneElement(_,{key:_.key||"_recharts-brush",onChange:Vd(P.handleBrushChange,_.props.onChange),data:M,x:rt(_.props.x)?_.props.x:C.left,y:rt(_.props.y)?_.props.y:C.top+C.height+C.brushBottom-(k.bottom||0),width:rt(_.props.width)?_.props.width:C.width,startIndex:L,endIndex:q,updateId:"brush-".concat($)})}),xt(P,"renderReferenceElement",function(_,I,k){if(!_)return null;var M=P,D=M.clipPathId,C=P.state,L=C.xAxisMap,q=C.yAxisMap,$=C.offset,z=_.type.defaultProps||{},Q=_.props,V=Q.xAxisId,X=V===void 0?z.xAxisId:V,U=Q.yAxisId,N=U===void 0?z.yAxisId:U;return te.cloneElement(_,{key:_.key||"".concat(I,"-").concat(k),xAxis:L[X],yAxis:q[N],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:D})}),xt(P,"renderActivePoints",function(_){var I=_.item,k=_.activePoint,M=_.basePoint,D=_.childIndex,C=_.isRange,L=[],q=I.props.key,$=I.item.type.defaultProps!==void 0?Ye(Ye({},I.item.type.defaultProps),I.item.props):I.item.props,z=$.activeDot,Q=$.dataKey,V=Ye(Ye({index:D,dataKey:Q,cx:k.x,cy:k.y,r:4,fill:_E(I.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},yt(z,!1)),dh(z));return L.push(m.renderActiveDot(z,V,"".concat(q,"-activePoint-").concat(D))),M?L.push(m.renderActiveDot(z,Ye(Ye({},V),{},{cx:M.x,cy:M.y}),"".concat(q,"-basePoint-").concat(D))):C&&L.push(null),L}),xt(P,"renderGraphicChild",function(_,I,k){var M=P.filterFormatItem(_,I,k);if(!M)return null;var D=P.getTooltipEventType(),C=P.state,L=C.isTooltipActive,q=C.tooltipAxis,$=C.activeTooltipIndex,z=C.activeLabel,Q=P.props.children,V=Sn(Q,Qi),X=M.props,U=X.points,N=X.isRange,j=X.baseLine,F=M.item.type.defaultProps!==void 0?Ye(Ye({},M.item.type.defaultProps),M.item.props):M.item.props,R=F.activeDot,J=F.hide,se=F.activeBar,ie=F.activeShape,ae=!!(!J&&L&&V&&(R||se||ie)),fe={};D!=="axis"&&V&&V.props.trigger==="click"?fe={onClick:Vd(P.handleItemMouseEnter,_.props.onClick)}:D!=="axis"&&(fe={onMouseLeave:Vd(P.handleItemMouseLeave,_.props.onMouseLeave),onMouseEnter:Vd(P.handleItemMouseEnter,_.props.onMouseEnter)});var de=te.cloneElement(_,Ye(Ye({},M.props),fe));function Se(Oe){return typeof q.dataKey=="function"?q.dataKey(Oe.payload):null}if(ae)if($>=0){var Ce,xe;if(q.dataKey&&!q.allowDuplicatedCategory){var Be=typeof q.dataKey=="function"?Se:"payload.".concat(q.dataKey.toString());Ce=ph(U,Be,z),xe=N&&j&&ph(j,Be,z)}else Ce=U==null?void 0:U[$],xe=N&&j&&j[$];if(ie||se){var Re=_.props.activeIndex!==void 0?_.props.activeIndex:$;return[te.cloneElement(_,Ye(Ye(Ye({},M.props),fe),{},{activeIndex:Re})),null,null]}if(!At(Ce))return[de].concat(du(P.renderActivePoints({item:M,activePoint:Ce,basePoint:xe,childIndex:$,isRange:N})))}else{var He,ze=(He=P.getItemByXY(P.state.activeCoordinate))!==null&&He!==void 0?He:{graphicalItem:de},je=ze.graphicalItem,re=je.item,ue=re===void 0?_:re,Te=je.childIndex,ke=Ye(Ye(Ye({},M.props),fe),{},{activeIndex:Te});return[te.cloneElement(ue,ke),null,null]}return N?[de,null,null]:[de,null]}),xt(P,"renderCustomized",function(_,I,k){return te.cloneElement(_,Ye(Ye({key:"recharts-customized-".concat(k)},P.props),P.state))}),xt(P,"renderMap",{CartesianGrid:{handler:Yd,once:!0},ReferenceArea:{handler:P.renderReferenceElement},ReferenceLine:{handler:Yd},ReferenceDot:{handler:P.renderReferenceElement},XAxis:{handler:Yd},YAxis:{handler:Yd},Brush:{handler:P.renderBrush,once:!0},Bar:{handler:P.renderGraphicChild},Line:{handler:P.renderGraphicChild},Area:{handler:P.renderGraphicChild},Radar:{handler:P.renderGraphicChild},RadialBar:{handler:P.renderGraphicChild},Scatter:{handler:P.renderGraphicChild},Pie:{handler:P.renderGraphicChild},Funnel:{handler:P.renderGraphicChild},Tooltip:{handler:P.renderCursor,once:!0},PolarGrid:{handler:P.renderPolarGrid,once:!0},PolarAngleAxis:{handler:P.renderPolarAxis},PolarRadiusAxis:{handler:P.renderPolarAxis},Customized:{handler:P.renderCustomized}}),P.clipPathId="".concat((A=T.id)!==null&&A!==void 0?A:Eu("recharts"),"-clip"),P.throttleTriggeredAfterMouseMove=N3(P.triggeredAfterMouseMove,(E=T.throttleDelay)!==null&&E!==void 0?E:1e3/60),P.state={},P}return _ae(m,y),Eae(m,[{key:"componentDidMount",value:function(){var A,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var A=this.props,E=A.children,P=A.data,_=A.height,I=A.layout,k=Sn(E,Qi);if(k){var M=k.props.defaultIndex;if(!(typeof M!="number"||M<0||M>this.state.tooltipTicks.length-1)){var D=this.state.tooltipTicks[M]&&this.state.tooltipTicks[M].value,C=WS(this.state,P,M,D),L=this.state.tooltipTicks[M].coordinate,q=(this.state.offset.top+_)/2,$=I==="horizontal",z=$?{x:L,y:q}:{y:L,x:q},Q=this.state.formattedGraphicalItems.find(function(X){var U=X.item;return U.type.name==="Scatter"});Q&&(z=Ye(Ye({},z),Q.props.points[M].tooltipPosition),C=Q.props.points[M].tooltipPayload);var V={activeTooltipIndex:M,isTooltipActive:!0,activeLabel:D,activePayload:C,activeCoordinate:z};this.setState(V),this.renderCursor(k),this.accessibilityManager.setIndex(M)}}}},{key:"getSnapshotBeforeUpdate",value:function(A,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==A.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==A.margin){var P,_;this.accessibilityManager.setDetails({offset:{left:(P=this.props.margin.left)!==null&&P!==void 0?P:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(A){CT([Sn(A.children,Qi)],[Sn(this.props.children,Qi)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var A=Sn(this.props.children,Qi);if(A&&typeof A.props.shared=="boolean"){var E=A.props.shared?"axis":"item";return o.indexOf(E)>=0?E:a}return a}},{key:"getMouseInfo",value:function(A){if(!this.container)return null;var E=this.container,P=E.getBoundingClientRect(),_=nH(P),I={chartX:Math.round(A.pageX-_.left),chartY:Math.round(A.pageY-_.top)},k=P.width/E.offsetWidth||1,M=this.inRange(I.chartX,I.chartY,k);if(!M)return null;var D=this.state,C=D.xAxisMap,L=D.yAxisMap,q=this.getTooltipEventType(),$=qM(this.state,this.props.data,this.props.layout,M);if(q!=="axis"&&C&&L){var z=bs(C).scale,Q=bs(L).scale,V=z&&z.invert?z.invert(I.chartX):null,X=Q&&Q.invert?Q.invert(I.chartY):null;return Ye(Ye({},I),{},{xValue:V,yValue:X},$)}return $?Ye(Ye({},I),$):null}},{key:"inRange",value:function(A,E){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,I=A/P,k=E/P;if(_==="horizontal"||_==="vertical"){var M=this.state.offset,D=I>=M.left&&I<=M.left+M.width&&k>=M.top&&k<=M.top+M.height;return D?{x:I,y:k}:null}var C=this.state,L=C.angleAxisMap,q=C.radiusAxisMap;if(L&&q){var $=bs(L);return X2({x:I,y:k},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var A=this.props.children,E=this.getTooltipEventType(),P=Sn(A,Qi),_={};P&&E==="axis"&&(P.props.trigger==="click"?_={onClick:this.handleClick}:_={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var I=dh(this.props,this.handleOuterEvent);return Ye(Ye({},I),_)}},{key:"addListener",value:function(){$x.on(Ux,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){$x.removeListener(Ux,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(A,E,P){for(var _=this.state.formattedGraphicalItems,I=0,k=_.length;I<k;I++){var M=_[I];if(M.item===A||M.props.key===A.key||E===ia(M.item.type)&&P===M.childIndex)return M}return null}},{key:"renderClipPath",value:function(){var A=this.clipPathId,E=this.state.offset,P=E.left,_=E.top,I=E.height,k=E.width;return Pe.createElement("defs",null,Pe.createElement("clipPath",{id:A},Pe.createElement("rect",{x:P,y:_,height:I,width:k})))}},{key:"getXScales",value:function(){var A=this.state.xAxisMap;return A?Object.entries(A).reduce(function(E,P){var _=RM(P,2),I=_[0],k=_[1];return Ye(Ye({},E),{},xt({},I,k.scale))},{}):null}},{key:"getYScales",value:function(){var A=this.state.yAxisMap;return A?Object.entries(A).reduce(function(E,P){var _=RM(P,2),I=_[0],k=_[1];return Ye(Ye({},E),{},xt({},I,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(A){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[A])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(A){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[A])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(A){var E=this.state,P=E.formattedGraphicalItems,_=E.activeItem;if(P&&P.length)for(var I=0,k=P.length;I<k;I++){var M=P[I],D=M.props,C=M.item,L=C.type.defaultProps!==void 0?Ye(Ye({},C.type.defaultProps),C.props):C.props,q=ia(C.type);if(q==="Bar"){var $=(D.data||[]).find(function(X){return bee(A,X)});if($)return{graphicalItem:M,payload:$}}else if(q==="RadialBar"){var z=(D.data||[]).find(function(X){return X2(A,X)});if(z)return{graphicalItem:M,payload:z}}else if(ly(M,_)||uy(M,_)||Bf(M,_)){var Q=Ute({graphicalItem:M,activeTooltipItem:_,itemData:L.data}),V=L.activeIndex===void 0?Q:L.activeIndex;return{graphicalItem:Ye(Ye({},M),{},{childIndex:V}),payload:Bf(M,_)?L.data[Q]:M.props.data[Q]}}}return null}},{key:"render",value:function(){var A=this;if(!sI(this))return null;var E=this.props,P=E.children,_=E.className,I=E.width,k=E.height,M=E.style,D=E.compact,C=E.title,L=E.desc,q=BM(E,yae),$=yt(q,!1);if(D)return Pe.createElement(bM,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Pe.createElement(kT,kl({},$,{width:I,height:k,title:C,desc:L}),this.renderClipPath(),lI(P,this.renderMap)));if(this.props.accessibilityLayer){var z,Q;$.tabIndex=(z=this.props.tabIndex)!==null&&z!==void 0?z:0,$.role=(Q=this.props.role)!==null&&Q!==void 0?Q:"application",$.onKeyDown=function(X){A.accessibilityManager.keyboardEvent(X)},$.onFocus=function(){A.accessibilityManager.focus()}}var V=this.parseEventsOfWrapper();return Pe.createElement(bM,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Pe.createElement("div",kl({className:Ot("recharts-wrapper",_),style:Ye({position:"relative",cursor:"default",width:I,height:k},M)},V,{ref:function(U){A.container=U}}),Pe.createElement(kT,kl({},$,{width:I,height:k,title:C,desc:L,style:Dae}),this.renderClipPath(),lI(P,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(te.Component);xt(v,"displayName",r),xt(v,"defaultProps",Ye({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),xt(v,"getDerivedStateFromProps",function(y,m){var T=y.dataKey,A=y.data,E=y.children,P=y.width,_=y.height,I=y.layout,k=y.stackOffset,M=y.margin,D=m.dataStartIndex,C=m.dataEndIndex;if(m.updateId===void 0){var L=$M(y);return Ye(Ye(Ye({},L),{},{updateId:0},h(Ye(Ye({props:y},L),{},{updateId:0}),m)),{},{prevDataKey:T,prevData:A,prevWidth:P,prevHeight:_,prevLayout:I,prevStackOffset:k,prevMargin:M,prevChildren:E})}if(T!==m.prevDataKey||A!==m.prevData||P!==m.prevWidth||_!==m.prevHeight||I!==m.prevLayout||k!==m.prevStackOffset||!Nl(M,m.prevMargin)){var q=$M(y),$={chartX:m.chartX,chartY:m.chartY,isTooltipActive:m.isTooltipActive},z=Ye(Ye({},qM(m,A,I)),{},{updateId:m.updateId+1}),Q=Ye(Ye(Ye({},q),$),z);return Ye(Ye(Ye({},Q),h(Ye({props:y},Q),m)),{},{prevDataKey:T,prevData:A,prevWidth:P,prevHeight:_,prevLayout:I,prevStackOffset:k,prevMargin:M,prevChildren:E})}if(!CT(E,m.prevChildren)){var V,X,U,N,j=Sn(E,nu),F=j&&(V=(X=j.props)===null||X===void 0?void 0:X.startIndex)!==null&&V!==void 0?V:D,R=j&&(U=(N=j.props)===null||N===void 0?void 0:N.endIndex)!==null&&U!==void 0?U:C,J=F!==D||R!==C,se=!At(A),ie=se&&!J?m.updateId:m.updateId+1;return Ye(Ye({updateId:ie},h(Ye(Ye({props:y},m),{},{updateId:ie,dataStartIndex:F,dataEndIndex:R}),m)),{},{prevChildren:E,dataStartIndex:F,dataEndIndex:R})}return null}),xt(v,"renderActiveDot",function(y,m,T){var A;return te.isValidElement(y)?A=te.cloneElement(y,m):St(y)?A=y(m):A=Pe.createElement(ny,m),Pe.createElement(Lt,{className:"recharts-active-dot",key:T},A)});var x=te.forwardRef(function(m,T){return Pe.createElement(v,kl({},m,{ref:T}))});return x.displayName=v.displayName,x},bye=BE({chartName:"BarChart",GraphicalChild:Ou,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:my},{axisType:"yAxis",AxisComp:yy}],formatAxisMap:vF}),xye=BE({chartName:"PieChart",GraphicalChild:Ms,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:oy},{axisType:"radiusAxis",AxisComp:ay}],formatAxisMap:MJ,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Tye=BE({chartName:"AreaChart",GraphicalChild:sl,axisComponents:[{axisType:"xAxis",AxisComp:my},{axisType:"yAxis",AxisComp:yy}],formatAxisMap:vF}),oh={exports:{}};/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/var Vae=oh.exports,VM;function Kae(){return VM||(VM=1,(function(e,t){(function(n,i){e.exports=i()})(typeof self<"u"?self:Vae,function(){return(function(r){var n={};function i(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:!1,exports:{}};return r[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=n,i.d=function(a,s,o){i.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:o})},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=109)})([(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(17),s=i(18),o=i(19),l=i(45),c=i(46),p=i(47),f=i(48),d=i(49),h=i(12),v=i(32),x=i(33),y=i(31),m=i(1),T={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:a.default,Format:s.default,Leaf:o.default,Embed:f.default,Scroll:l.default,Block:p.default,Inline:c.default,Text:d.default,Attributor:{Attribute:h.default,Class:v.default,Style:x.default,Store:y.default}};n.default=T}),(function(r,n,i){var a=this&&this.__extends||(function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,T){m.__proto__=T}||function(m,T){for(var A in T)T.hasOwnProperty(A)&&(m[A]=T[A])};return function(m,T){y(m,T);function A(){this.constructor=m}m.prototype=T===null?Object.create(T):(A.prototype=T.prototype,new A)}})();Object.defineProperty(n,"__esModule",{value:!0});var s=(function(y){a(m,y);function m(T){var A=this;return T="[Parchment] "+T,A=y.call(this,T)||this,A.message=T,A.name=A.constructor.name,A}return m})(Error);n.ParchmentError=s;var o={},l={},c={},p={};n.DATA_KEY="__blot";var f;(function(y){y[y.TYPE=3]="TYPE",y[y.LEVEL=12]="LEVEL",y[y.ATTRIBUTE=13]="ATTRIBUTE",y[y.BLOT=14]="BLOT",y[y.INLINE=7]="INLINE",y[y.BLOCK=11]="BLOCK",y[y.BLOCK_BLOT=10]="BLOCK_BLOT",y[y.INLINE_BLOT=6]="INLINE_BLOT",y[y.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",y[y.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",y[y.ANY=15]="ANY"})(f=n.Scope||(n.Scope={}));function d(y,m){var T=v(y);if(T==null)throw new s("Unable to create "+y+" blot");var A=T,E=y instanceof Node||y.nodeType===Node.TEXT_NODE?y:A.create(m);return new A(E,m)}n.create=d;function h(y,m){return m===void 0&&(m=!1),y==null?null:y[n.DATA_KEY]!=null?y[n.DATA_KEY].blot:m?h(y.parentNode,m):null}n.find=h;function v(y,m){m===void 0&&(m=f.ANY);var T;if(typeof y=="string")T=p[y]||o[y];else if(y instanceof Text||y.nodeType===Node.TEXT_NODE)T=p.text;else if(typeof y=="number")y&f.LEVEL&f.BLOCK?T=p.block:y&f.LEVEL&f.INLINE&&(T=p.inline);else if(y instanceof HTMLElement){var A=(y.getAttribute("class")||"").split(/\s+/);for(var E in A)if(T=l[A[E]],T)break;T=T||c[y.tagName]}return T==null?null:m&f.LEVEL&T.scope&&m&f.TYPE&T.scope?T:null}n.query=v;function x(){for(var y=[],m=0;m<arguments.length;m++)y[m]=arguments[m];if(y.length>1)return y.map(function(E){return x(E)});var T=y[0];if(typeof T.blotName!="string"&&typeof T.attrName!="string")throw new s("Invalid definition");if(T.blotName==="abstract")throw new s("Cannot register abstract class");if(p[T.blotName||T.attrName]=T,typeof T.keyName=="string")o[T.keyName]=T;else if(T.className!=null&&(l[T.className]=T),T.tagName!=null){Array.isArray(T.tagName)?T.tagName=T.tagName.map(function(E){return E.toUpperCase()}):T.tagName=T.tagName.toUpperCase();var A=Array.isArray(T.tagName)?T.tagName:[T.tagName];A.forEach(function(E){(c[E]==null||T.className==null)&&(c[E]=T)})}return T}n.register=x}),(function(r,n,i){var a=i(51),s=i(11),o=i(3),l=i(20),c="\0",p=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};p.prototype.insert=function(f,d){var h={};return f.length===0?this:(h.insert=f,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h))},p.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},p.prototype.retain=function(f,d){if(f<=0)return this;var h={retain:f};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h)},p.prototype.push=function(f){var d=this.ops.length,h=this.ops[d-1];if(f=o(!0,{},f),typeof h=="object"){if(typeof f.delete=="number"&&typeof h.delete=="number")return this.ops[d-1]={delete:h.delete+f.delete},this;if(typeof h.delete=="number"&&f.insert!=null&&(d-=1,h=this.ops[d-1],typeof h!="object"))return this.ops.unshift(f),this;if(s(f.attributes,h.attributes)){if(typeof f.insert=="string"&&typeof h.insert=="string")return this.ops[d-1]={insert:h.insert+f.insert},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof h.retain=="number")return this.ops[d-1]={retain:h.retain+f.retain},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this}}return d===this.ops.length?this.ops.push(f):this.ops.splice(d,0,f),this},p.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},p.prototype.filter=function(f){return this.ops.filter(f)},p.prototype.forEach=function(f){this.ops.forEach(f)},p.prototype.map=function(f){return this.ops.map(f)},p.prototype.partition=function(f){var d=[],h=[];return this.forEach(function(v){var x=f(v)?d:h;x.push(v)}),[d,h]},p.prototype.reduce=function(f,d){return this.ops.reduce(f,d)},p.prototype.changeLength=function(){return this.reduce(function(f,d){return d.insert?f+l.length(d):d.delete?f-d.delete:f},0)},p.prototype.length=function(){return this.reduce(function(f,d){return f+l.length(d)},0)},p.prototype.slice=function(f,d){f=f||0,typeof d!="number"&&(d=1/0);for(var h=[],v=l.iterator(this.ops),x=0;x<d&&v.hasNext();){var y;x<f?y=v.next(f-x):(y=v.next(d-x),h.push(y)),x+=l.length(y)}return new p(h)},p.prototype.compose=function(f){var d=l.iterator(this.ops),h=l.iterator(f.ops),v=[],x=h.peek();if(x!=null&&typeof x.retain=="number"&&x.attributes==null){for(var y=x.retain;d.peekType()==="insert"&&d.peekLength()<=y;)y-=d.peekLength(),v.push(d.next());x.retain-y>0&&h.next(x.retain-y)}for(var m=new p(v);d.hasNext()||h.hasNext();)if(h.peekType()==="insert")m.push(h.next());else if(d.peekType()==="delete")m.push(d.next());else{var T=Math.min(d.peekLength(),h.peekLength()),A=d.next(T),E=h.next(T);if(typeof E.retain=="number"){var P={};typeof A.retain=="number"?P.retain=T:P.insert=A.insert;var _=l.attributes.compose(A.attributes,E.attributes,typeof A.retain=="number");if(_&&(P.attributes=_),m.push(P),!h.hasNext()&&s(m.ops[m.ops.length-1],P)){var I=new p(d.rest());return m.concat(I).chop()}}else typeof E.delete=="number"&&typeof A.retain=="number"&&m.push(E)}return m.chop()},p.prototype.concat=function(f){var d=new p(this.ops.slice());return f.ops.length>0&&(d.push(f.ops[0]),d.ops=d.ops.concat(f.ops.slice(1))),d},p.prototype.diff=function(f,d){if(this.ops===f.ops)return new p;var h=[this,f].map(function(T){return T.map(function(A){if(A.insert!=null)return typeof A.insert=="string"?A.insert:c;var E=T===f?"on":"with";throw new Error("diff() called "+E+" non-document")}).join("")}),v=new p,x=a(h[0],h[1],d),y=l.iterator(this.ops),m=l.iterator(f.ops);return x.forEach(function(T){for(var A=T[1].length;A>0;){var E=0;switch(T[0]){case a.INSERT:E=Math.min(m.peekLength(),A),v.push(m.next(E));break;case a.DELETE:E=Math.min(A,y.peekLength()),y.next(E),v.delete(E);break;case a.EQUAL:E=Math.min(y.peekLength(),m.peekLength(),A);var P=y.next(E),_=m.next(E);s(P.insert,_.insert)?v.retain(E,l.attributes.diff(P.attributes,_.attributes)):v.push(_).delete(E);break}A-=E}}),v.chop()},p.prototype.eachLine=function(f,d){d=d||`
`;for(var h=l.iterator(this.ops),v=new p,x=0;h.hasNext();){if(h.peekType()!=="insert")return;var y=h.peek(),m=l.length(y)-h.peekLength(),T=typeof y.insert=="string"?y.insert.indexOf(d,m)-m:-1;if(T<0)v.push(h.next());else if(T>0)v.push(h.next(T));else{if(f(v,h.next(1).attributes||{},x)===!1)return;x+=1,v=new p}}v.length()>0&&f(v,{},x)},p.prototype.transform=function(f,d){if(d=!!d,typeof f=="number")return this.transformPosition(f,d);for(var h=l.iterator(this.ops),v=l.iterator(f.ops),x=new p;h.hasNext()||v.hasNext();)if(h.peekType()==="insert"&&(d||v.peekType()!=="insert"))x.retain(l.length(h.next()));else if(v.peekType()==="insert")x.push(v.next());else{var y=Math.min(h.peekLength(),v.peekLength()),m=h.next(y),T=v.next(y);if(m.delete)continue;T.delete?x.push(T):x.retain(y,l.attributes.transform(m.attributes,T.attributes,d))}return x.chop()},p.prototype.transformPosition=function(f,d){d=!!d;for(var h=l.iterator(this.ops),v=0;h.hasNext()&&v<=f;){var x=h.peekLength(),y=h.peekType();if(h.next(),y==="delete"){f-=Math.min(x,f-v);continue}else y==="insert"&&(v<f||!d)&&(f+=x);v+=x}return f},r.exports=p}),(function(r,n){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=function(h){return typeof Array.isArray=="function"?Array.isArray(h):a.call(h)==="[object Array]"},c=function(h){if(!h||a.call(h)!=="[object Object]")return!1;var v=i.call(h,"constructor"),x=h.constructor&&h.constructor.prototype&&i.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!v&&!x)return!1;var y;for(y in h);return typeof y>"u"||i.call(h,y)},p=function(h,v){s&&v.name==="__proto__"?s(h,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):h[v.name]=v.newValue},f=function(h,v){if(v==="__proto__")if(i.call(h,v)){if(o)return o(h,v).value}else return;return h[v]};r.exports=function d(){var h,v,x,y,m,T,A=arguments[0],E=1,P=arguments.length,_=!1;for(typeof A=="boolean"&&(_=A,A=arguments[1]||{},E=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});E<P;++E)if(h=arguments[E],h!=null)for(v in h)x=f(A,v),y=f(h,v),A!==y&&(_&&y&&(c(y)||(m=l(y)))?(m?(m=!1,T=x&&l(x)?x:[]):T=x&&c(x)?x:{},p(A,{name:v,newValue:d(_,T,y)})):typeof y<"u"&&p(A,{name:v,newValue:y}));return A}}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BlockEmbed=n.bubbleFormats=void 0;var a=(function(){function C(L,q){for(var $=0;$<q.length;$++){var z=q[$];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(L,z.key,z)}}return function(L,q,$){return q&&C(L.prototype,q),$&&C(L,$),L}})(),s=function C(L,q,$){L===null&&(L=Function.prototype);var z=Object.getOwnPropertyDescriptor(L,q);if(z===void 0){var Q=Object.getPrototypeOf(L);return Q===null?void 0:C(Q,q,$)}else{if("value"in z)return z.value;var V=z.get;return V===void 0?void 0:V.call($)}},o=i(3),l=A(o),c=i(2),p=A(c),f=i(0),d=A(f),h=i(16),v=A(h),x=i(6),y=A(x),m=i(7),T=A(m);function A(C){return C&&C.__esModule?C:{default:C}}function E(C,L){if(!(C instanceof L))throw new TypeError("Cannot call a class as a function")}function P(C,L){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:C}function _(C,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);C.prototype=Object.create(L&&L.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(C,L):C.__proto__=L)}var I=1,k=(function(C){_(L,C);function L(){return E(this,L),P(this,(L.__proto__||Object.getPrototypeOf(L)).apply(this,arguments))}return a(L,[{key:"attach",value:function(){s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"attach",this).call(this),this.attributes=new d.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new p.default().insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function($,z){var Q=d.default.query($,d.default.Scope.BLOCK_ATTRIBUTE);Q!=null&&this.attributes.attribute(Q,z)}},{key:"formatAt",value:function($,z,Q,V){this.format(Q,V)}},{key:"insertAt",value:function($,z,Q){if(typeof z=="string"&&z.endsWith(`
`)){var V=d.default.create(M.blotName);this.parent.insertBefore(V,$===0?this:this.next),V.insertAt(0,z.slice(0,-1))}else s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"insertAt",this).call(this,$,z,Q)}}]),L})(d.default.Embed);k.scope=d.default.Scope.BLOCK_BLOT;var M=(function(C){_(L,C);function L(q){E(this,L);var $=P(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,q));return $.cache={},$}return a(L,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(d.default.Leaf).reduce(function($,z){return z.length()===0?$:$.insert(z.value(),D(z))},new p.default).insert(`
`,D(this))),this.cache.delta}},{key:"deleteAt",value:function($,z){s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"deleteAt",this).call(this,$,z),this.cache={}}},{key:"formatAt",value:function($,z,Q,V){z<=0||(d.default.query(Q,d.default.Scope.BLOCK)?$+z===this.length()&&this.format(Q,V):s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"formatAt",this).call(this,$,Math.min(z,this.length()-$-1),Q,V),this.cache={})}},{key:"insertAt",value:function($,z,Q){if(Q!=null)return s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"insertAt",this).call(this,$,z,Q);if(z.length!==0){var V=z.split(`
`),X=V.shift();X.length>0&&($<this.length()-1||this.children.tail==null?s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"insertAt",this).call(this,Math.min($,this.length()-1),X):this.children.tail.insertAt(this.children.tail.length(),X),this.cache={});var U=this;V.reduce(function(N,j){return U=U.split(N,!0),U.insertAt(0,j),j.length},$+X.length)}}},{key:"insertBefore",value:function($,z){var Q=this.children.head;s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"insertBefore",this).call(this,$,z),Q instanceof v.default&&Q.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"length",this).call(this)+I),this.cache.length}},{key:"moveChildren",value:function($,z){s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"moveChildren",this).call(this,$,z),this.cache={}}},{key:"optimize",value:function($){s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"optimize",this).call(this,$),this.cache={}}},{key:"path",value:function($){return s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"path",this).call(this,$,!0)}},{key:"removeChild",value:function($){s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"removeChild",this).call(this,$),this.cache={}}},{key:"split",value:function($){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(z&&($===0||$>=this.length()-I)){var Q=this.clone();return $===0?(this.parent.insertBefore(Q,this),this):(this.parent.insertBefore(Q,this.next),Q)}else{var V=s(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"split",this).call(this,$,z);return this.cache={},V}}}]),L})(d.default.Block);M.blotName="block",M.tagName="P",M.defaultChild="break",M.allowedChildren=[y.default,d.default.Embed,T.default];function D(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(L=(0,l.default)(L,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?L:D(C.parent,L)}n.bubbleFormats=D,n.BlockEmbed=k,n.default=M}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.overload=n.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},s=(function(){function U(N,j){var F=[],R=!0,J=!1,se=void 0;try{for(var ie=N[Symbol.iterator](),ae;!(R=(ae=ie.next()).done)&&(F.push(ae.value),!(j&&F.length===j));R=!0);}catch(fe){J=!0,se=fe}finally{try{!R&&ie.return&&ie.return()}finally{if(J)throw se}}return F}return function(N,j){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return U(N,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function U(N,j){for(var F=0;F<j.length;F++){var R=j[F];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(N,R.key,R)}}return function(N,j,F){return j&&U(N.prototype,j),F&&U(N,F),N}})();i(50);var l=i(2),c=D(l),p=i(14),f=D(p),d=i(8),h=D(d),v=i(9),x=D(v),y=i(0),m=D(y),T=i(15),A=D(T),E=i(3),P=D(E),_=i(10),I=D(_),k=i(34),M=D(k);function D(U){return U&&U.__esModule?U:{default:U}}function C(U,N,j){return N in U?Object.defineProperty(U,N,{value:j,enumerable:!0,configurable:!0,writable:!0}):U[N]=j,U}function L(U,N){if(!(U instanceof N))throw new TypeError("Cannot call a class as a function")}var q=(0,I.default)("quill"),$=(function(){o(U,null,[{key:"debug",value:function(j){j===!0&&(j="log"),I.default.level(j)}},{key:"find",value:function(j){return j.__quill||m.default.find(j)}},{key:"import",value:function(j){return this.imports[j]==null&&q.error("Cannot import "+j+". Are you sure it was registered?"),this.imports[j]}},{key:"register",value:function(j,F){var R=this,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof j!="string"){var se=j.attrName||j.blotName;typeof se=="string"?this.register("formats/"+se,j,F):Object.keys(j).forEach(function(ie){R.register(ie,j[ie],F)})}else this.imports[j]!=null&&!J&&q.warn("Overwriting "+j+" with",F),this.imports[j]=F,(j.startsWith("blots/")||j.startsWith("formats/"))&&F.blotName!=="abstract"?m.default.register(F):j.startsWith("modules")&&typeof F.register=="function"&&F.register()}}]);function U(N){var j=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(L(this,U),this.options=z(N,F),this.container=this.options.container,this.container==null)return q.error("Invalid Quill container",N);this.options.debug&&U.debug(this.options.debug);var R=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new A.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(se){se===h.default.events.TEXT_CHANGE&&j.root.classList.toggle("ql-blank",j.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(se,ie){var ae=j.selection.lastRange,fe=ae&&ae.length===0?ae.index:void 0;Q.call(j,function(){return j.editor.update(null,ie,fe)},se)});var J=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+R+"<p><br></p></div>");this.setContents(J),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(U,[{key:"addContainer",value:function(j){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof j=="string"){var R=j;j=document.createElement("div"),j.classList.add(R)}return this.container.insertBefore(j,F),j}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(j,F,R){var J=this,se=V(j,F,R),ie=s(se,4);return j=ie[0],F=ie[1],R=ie[3],Q.call(this,function(){return J.editor.deleteText(j,F)},R,j,-1*F)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(j),this.container.classList.toggle("ql-disabled",!j)}},{key:"focus",value:function(){var j=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=j,this.scrollIntoView()}},{key:"format",value:function(j,F){var R=this,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return Q.call(this,function(){var se=R.getSelection(!0),ie=new c.default;if(se==null)return ie;if(m.default.query(j,m.default.Scope.BLOCK))ie=R.editor.formatLine(se.index,se.length,C({},j,F));else{if(se.length===0)return R.selection.format(j,F),ie;ie=R.editor.formatText(se.index,se.length,C({},j,F))}return R.setSelection(se,h.default.sources.SILENT),ie},J)}},{key:"formatLine",value:function(j,F,R,J,se){var ie=this,ae=void 0,fe=V(j,F,R,J,se),de=s(fe,4);return j=de[0],F=de[1],ae=de[2],se=de[3],Q.call(this,function(){return ie.editor.formatLine(j,F,ae)},se,j,0)}},{key:"formatText",value:function(j,F,R,J,se){var ie=this,ae=void 0,fe=V(j,F,R,J,se),de=s(fe,4);return j=de[0],F=de[1],ae=de[2],se=de[3],Q.call(this,function(){return ie.editor.formatText(j,F,ae)},se,j,0)}},{key:"getBounds",value:function(j){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=void 0;typeof j=="number"?R=this.selection.getBounds(j,F):R=this.selection.getBounds(j.index,j.length);var J=this.container.getBoundingClientRect();return{bottom:R.bottom-J.top,height:R.height,left:R.left-J.left,right:R.right-J.left,top:R.top-J.top,width:R.width}}},{key:"getContents",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-j,R=V(j,F),J=s(R,2);return j=J[0],F=J[1],this.editor.getContents(j,F)}},{key:"getFormat",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof j=="number"?this.editor.getFormat(j,F):this.editor.getFormat(j.index,j.length)}},{key:"getIndex",value:function(j){return j.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(j){return this.scroll.leaf(j)}},{key:"getLine",value:function(j){return this.scroll.line(j)}},{key:"getLines",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof j!="number"?this.scroll.lines(j.index,j.length):this.scroll.lines(j,F)}},{key:"getModule",value:function(j){return this.theme.modules[j]}},{key:"getSelection",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return j&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-j,R=V(j,F),J=s(R,2);return j=J[0],F=J[1],this.editor.getText(j,F)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(j,F,R){var J=this,se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:U.sources.API;return Q.call(this,function(){return J.editor.insertEmbed(j,F,R)},se,j)}},{key:"insertText",value:function(j,F,R,J,se){var ie=this,ae=void 0,fe=V(j,0,R,J,se),de=s(fe,4);return j=de[0],ae=de[2],se=de[3],Q.call(this,function(){return ie.editor.insertText(j,F,ae)},se,j,F.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(j,F,R){this.clipboard.dangerouslyPasteHTML(j,F,R)}},{key:"removeFormat",value:function(j,F,R){var J=this,se=V(j,F,R),ie=s(se,4);return j=ie[0],F=ie[1],R=ie[3],Q.call(this,function(){return J.editor.removeFormat(j,F)},R,j)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(j){var F=this,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return Q.call(this,function(){j=new c.default(j);var J=F.getLength(),se=F.editor.deleteText(0,J),ie=F.editor.applyDelta(j),ae=ie.ops[ie.ops.length-1];ae!=null&&typeof ae.insert=="string"&&ae.insert[ae.insert.length-1]===`
`&&(F.editor.deleteText(F.getLength()-1,1),ie.delete(1));var fe=se.compose(ie);return fe},R)}},{key:"setSelection",value:function(j,F,R){if(j==null)this.selection.setRange(null,F||U.sources.API);else{var J=V(j,F,R),se=s(J,4);j=se[0],F=se[1],R=se[3],this.selection.setRange(new T.Range(j,F),R),R!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(j){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,R=new c.default().insert(j);return this.setContents(R,F)}},{key:"update",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,F=this.scroll.update(j);return this.selection.update(j),F}},{key:"updateContents",value:function(j){var F=this,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return Q.call(this,function(){return j=new c.default(j),F.editor.applyDelta(j,R)},R,!0)}}]),U})();$.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},$.events=h.default.events,$.sources=h.default.sources,$.version="1.3.7",$.imports={delta:c.default,parchment:m.default,"core/module":x.default,"core/theme":M.default};function z(U,N){if(N=(0,P.default)(!0,{container:U,modules:{clipboard:!0,keyboard:!0,history:!0}},N),!N.theme||N.theme===$.DEFAULTS.theme)N.theme=M.default;else if(N.theme=$.import("themes/"+N.theme),N.theme==null)throw new Error("Invalid theme "+N.theme+". Did you register it?");var j=(0,P.default)(!0,{},N.theme.DEFAULTS);[j,N].forEach(function(J){J.modules=J.modules||{},Object.keys(J.modules).forEach(function(se){J.modules[se]===!0&&(J.modules[se]={})})});var F=Object.keys(j.modules).concat(Object.keys(N.modules)),R=F.reduce(function(J,se){var ie=$.import("modules/"+se);return ie==null?q.error("Cannot load "+se+" module. Are you sure you registered it?"):J[se]=ie.DEFAULTS||{},J},{});return N.modules!=null&&N.modules.toolbar&&N.modules.toolbar.constructor!==Object&&(N.modules.toolbar={container:N.modules.toolbar}),N=(0,P.default)(!0,{},$.DEFAULTS,{modules:R},j,N),["bounds","container","scrollingContainer"].forEach(function(J){typeof N[J]=="string"&&(N[J]=document.querySelector(N[J]))}),N.modules=Object.keys(N.modules).reduce(function(J,se){return N.modules[se]&&(J[se]=N.modules[se]),J},{}),N}function Q(U,N,j,F){if(this.options.strict&&!this.isEnabled()&&N===h.default.sources.USER)return new c.default;var R=j==null?null:this.getSelection(),J=this.editor.delta,se=U();if(R!=null&&(j===!0&&(j=R.index),F==null?R=X(R,se,N):F!==0&&(R=X(R,j,F,N)),this.setSelection(R,h.default.sources.SILENT)),se.length()>0){var ie,ae=[h.default.events.TEXT_CHANGE,se,J,N];if((ie=this.emitter).emit.apply(ie,[h.default.events.EDITOR_CHANGE].concat(ae)),N!==h.default.sources.SILENT){var fe;(fe=this.emitter).emit.apply(fe,ae)}}return se}function V(U,N,j,F,R){var J={};return typeof U.index=="number"&&typeof U.length=="number"?typeof N!="number"?(R=F,F=j,j=N,N=U.length,U=U.index):(N=U.length,U=U.index):typeof N!="number"&&(R=F,F=j,j=N,N=0),(typeof j>"u"?"undefined":a(j))==="object"?(J=j,R=F):typeof j=="string"&&(F!=null?J[j]=F:R=j),R=R||h.default.sources.API,[U,N,J,R]}function X(U,N,j,F){if(U==null)return null;var R=void 0,J=void 0;if(N instanceof c.default){var se=[U.index,U.index+U.length].map(function(de){return N.transformPosition(de,F!==h.default.sources.USER)}),ie=s(se,2);R=ie[0],J=ie[1]}else{var ae=[U.index,U.index+U.length].map(function(de){return de<N||de===N&&F===h.default.sources.USER?de:j>=0?de+j:Math.max(N,de+j)}),fe=s(ae,2);R=fe[0],J=fe[1]}return new T.Range(R,J-R)}n.expandConfig=z,n.overload=V,n.default=$}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function y(m,T){for(var A=0;A<T.length;A++){var E=T[A];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,T,A){return T&&y(m.prototype,T),A&&y(m,A),m}})(),s=function y(m,T,A){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,T);if(E===void 0){var P=Object.getPrototypeOf(m);return P===null?void 0:y(P,T,A)}else{if("value"in E)return E.value;var _=E.get;return _===void 0?void 0:_.call(A)}},o=i(7),l=f(o),c=i(0),p=f(c);function f(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function h(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function v(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var x=(function(y){v(m,y);function m(){return d(this,m),h(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"formatAt",value:function(A,E,P,_){if(m.compare(this.statics.blotName,P)<0&&p.default.query(P,p.default.Scope.BLOT)){var I=this.isolate(A,E);_&&I.wrap(P,_)}else s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,A,E,P,_)}},{key:"optimize",value:function(A){if(s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,A),this.parent instanceof m&&m.compare(this.statics.blotName,this.parent.statics.blotName)>0){var E=this.parent.isolate(this.offset(),this.length());this.moveChildren(E),E.wrap(this)}}}],[{key:"compare",value:function(A,E){var P=m.order.indexOf(A),_=m.order.indexOf(E);return P>=0||_>=0?P-_:A===E?0:A<E?-1:1}}]),m})(p.default.Inline);x.allowedChildren=[x,p.default.Embed,l.default],x.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],n.default=x}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(0),s=o(a);function o(d){return d&&d.__esModule?d:{default:d}}function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function c(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=(function(d){p(h,d);function h(){return l(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(s.default.Text);n.default=f}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function T(A,E){for(var P=0;P<E.length;P++){var _=E[P];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(A,_.key,_)}}return function(A,E,P){return E&&T(A.prototype,E),P&&T(A,P),A}})(),s=function T(A,E,P){A===null&&(A=Function.prototype);var _=Object.getOwnPropertyDescriptor(A,E);if(_===void 0){var I=Object.getPrototypeOf(A);return I===null?void 0:T(I,E,P)}else{if("value"in _)return _.value;var k=_.get;return k===void 0?void 0:k.call(P)}},o=i(54),l=f(o),c=i(10),p=f(c);function f(T){return T&&T.__esModule?T:{default:T}}function d(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function h(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T}function v(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)}var x=(0,p.default)("quill:events"),y=["selectionchange","mousedown","mouseup","click"];y.forEach(function(T){document.addEventListener(T,function(){for(var A=arguments.length,E=Array(A),P=0;P<A;P++)E[P]=arguments[P];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(_){if(_.__quill&&_.__quill.emitter){var I;(I=_.__quill.emitter).handleDOM.apply(I,E)}})})});var m=(function(T){v(A,T);function A(){d(this,A);var E=h(this,(A.__proto__||Object.getPrototypeOf(A)).call(this));return E.listeners={},E.on("error",x.error),E}return a(A,[{key:"emit",value:function(){x.log.apply(x,arguments),s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(P){for(var _=arguments.length,I=Array(_>1?_-1:0),k=1;k<_;k++)I[k-1]=arguments[k];(this.listeners[P.type]||[]).forEach(function(M){var D=M.node,C=M.handler;(P.target===D||D.contains(P.target))&&C.apply(void 0,[P].concat(I))})}},{key:"listenDOM",value:function(P,_,I){this.listeners[P]||(this.listeners[P]=[]),this.listeners[P].push({node:_,handler:I})}}]),A})(l.default);m.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},m.sources={API:"api",SILENT:"silent",USER:"user"},n.default=m}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});function a(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}var s=function o(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(this,o),this.quill=l,this.options=c};s.DEFAULTS={},n.default=s}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=["error","warn","log","info"],s="warn";function o(c){if(a.indexOf(c)<=a.indexOf(s)){for(var p,f=arguments.length,d=Array(f>1?f-1:0),h=1;h<f;h++)d[h-1]=arguments[h];(p=console)[c].apply(p,d)}}function l(c){return a.reduce(function(p,f){return p[f]=o.bind(console,f,c),p},{})}o.level=l.level=function(c){s=c},n.default=l}),(function(r,n,i){var a=Array.prototype.slice,s=i(52),o=i(53),l=r.exports=function(d,h,v){return v||(v={}),d===h?!0:d instanceof Date&&h instanceof Date?d.getTime()===h.getTime():!d||!h||typeof d!="object"&&typeof h!="object"?v.strict?d===h:d==h:f(d,h,v)};function c(d){return d==null}function p(d){return!(!d||typeof d!="object"||typeof d.length!="number"||typeof d.copy!="function"||typeof d.slice!="function"||d.length>0&&typeof d[0]!="number")}function f(d,h,v){var x,y;if(c(d)||c(h)||d.prototype!==h.prototype)return!1;if(o(d))return o(h)?(d=a.call(d),h=a.call(h),l(d,h,v)):!1;if(p(d)){if(!p(h)||d.length!==h.length)return!1;for(x=0;x<d.length;x++)if(d[x]!==h[x])return!1;return!0}try{var m=s(d),T=s(h)}catch{return!1}if(m.length!=T.length)return!1;for(m.sort(),T.sort(),x=m.length-1;x>=0;x--)if(m[x]!=T[x])return!1;for(x=m.length-1;x>=0;x--)if(y=m[x],!l(d[y],h[y],v))return!1;return typeof d==typeof h}}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(1),s=(function(){function o(l,c,p){p===void 0&&(p={}),this.attrName=l,this.keyName=c;var f=a.Scope.TYPE&a.Scope.ATTRIBUTE;p.scope!=null?this.scope=p.scope&a.Scope.LEVEL|f:this.scope=a.Scope.ATTRIBUTE,p.whitelist!=null&&(this.whitelist=p.whitelist)}return o.keys=function(l){return[].map.call(l.attributes,function(c){return c.name})},o.prototype.add=function(l,c){return this.canAdd(l,c)?(l.setAttribute(this.keyName,c),!0):!1},o.prototype.canAdd=function(l,c){var p=a.query(l,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return p==null?!1:this.whitelist==null?!0:typeof c=="string"?this.whitelist.indexOf(c.replace(/["']/g,""))>-1:this.whitelist.indexOf(c)>-1},o.prototype.remove=function(l){l.removeAttribute(this.keyName)},o.prototype.value=function(l){var c=l.getAttribute(this.keyName);return this.canAdd(l,c)&&c?c:""},o})();n.default=s}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Code=void 0;var a=(function(){function k(M,D){var C=[],L=!0,q=!1,$=void 0;try{for(var z=M[Symbol.iterator](),Q;!(L=(Q=z.next()).done)&&(C.push(Q.value),!(D&&C.length===D));L=!0);}catch(V){q=!0,$=V}finally{try{!L&&z.return&&z.return()}finally{if(q)throw $}}return C}return function(M,D){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return k(M,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function k(M,D){for(var C=0;C<D.length;C++){var L=D[C];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(M,L.key,L)}}return function(M,D,C){return D&&k(M.prototype,D),C&&k(M,C),M}})(),o=function k(M,D,C){M===null&&(M=Function.prototype);var L=Object.getOwnPropertyDescriptor(M,D);if(L===void 0){var q=Object.getPrototypeOf(M);return q===null?void 0:k(q,D,C)}else{if("value"in L)return L.value;var $=L.get;return $===void 0?void 0:$.call(C)}},l=i(2),c=T(l),p=i(0),f=T(p),d=i(4),h=T(d),v=i(6),x=T(v),y=i(7),m=T(y);function T(k){return k&&k.__esModule?k:{default:k}}function A(k,M){if(!(k instanceof M))throw new TypeError("Cannot call a class as a function")}function E(k,M){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:k}function P(k,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);k.prototype=Object.create(M&&M.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(k,M):k.__proto__=M)}var _=(function(k){P(M,k);function M(){return A(this,M),E(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return M})(x.default);_.blotName="code",_.tagName="CODE";var I=(function(k){P(M,k);function M(){return A(this,M),E(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return s(M,[{key:"delta",value:function(){var C=this,L=this.domNode.textContent;return L.endsWith(`
`)&&(L=L.slice(0,-1)),L.split(`
`).reduce(function(q,$){return q.insert($).insert(`
`,C.formats())},new c.default)}},{key:"format",value:function(C,L){if(!(C===this.statics.blotName&&L)){var q=this.descendant(m.default,this.length()-1),$=a(q,1),z=$[0];z!=null&&z.deleteAt(z.length()-1,1),o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"format",this).call(this,C,L)}}},{key:"formatAt",value:function(C,L,q,$){if(L!==0&&!(f.default.query(q,f.default.Scope.BLOCK)==null||q===this.statics.blotName&&$===this.statics.formats(this.domNode))){var z=this.newlineIndex(C);if(!(z<0||z>=C+L)){var Q=this.newlineIndex(C,!0)+1,V=z-Q+1,X=this.isolate(Q,V),U=X.next;X.format(q,$),U instanceof M&&U.formatAt(0,C-Q+L-V,q,$)}}}},{key:"insertAt",value:function(C,L,q){if(q==null){var $=this.descendant(m.default,C),z=a($,2),Q=z[0],V=z[1];Q.insertAt(V,L)}}},{key:"length",value:function(){var C=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?C:C+1}},{key:"newlineIndex",value:function(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(L)return this.domNode.textContent.slice(0,C).lastIndexOf(`
`);var q=this.domNode.textContent.slice(C).indexOf(`
`);return q>-1?C+q:-1}},{key:"optimize",value:function(C){this.domNode.textContent.endsWith(`
`)||this.appendChild(f.default.create("text",`
`)),o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,C);var L=this.next;L!=null&&L.prev===this&&L.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===L.statics.formats(L.domNode)&&(L.optimize(C),L.moveChildren(this),L.remove())}},{key:"replace",value:function(C){o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(L){var q=f.default.find(L);q==null?L.parentNode.removeChild(L):q instanceof f.default.Embed?q.remove():q.unwrap()})}}],[{key:"create",value:function(C){var L=o(M.__proto__||Object.getPrototypeOf(M),"create",this).call(this,C);return L.setAttribute("spellcheck",!1),L}},{key:"formats",value:function(){return!0}}]),M})(h.default);I.blotName="code-block",I.tagName="PRE",I.TAB=" ",n.Code=_,n.default=I}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},s=(function(){function U(N,j){var F=[],R=!0,J=!1,se=void 0;try{for(var ie=N[Symbol.iterator](),ae;!(R=(ae=ie.next()).done)&&(F.push(ae.value),!(j&&F.length===j));R=!0);}catch(fe){J=!0,se=fe}finally{try{!R&&ie.return&&ie.return()}finally{if(J)throw se}}return F}return function(N,j){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return U(N,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function U(N,j){for(var F=0;F<j.length;F++){var R=j[F];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(N,R.key,R)}}return function(N,j,F){return j&&U(N.prototype,j),F&&U(N,F),N}})(),l=i(2),c=L(l),p=i(20),f=L(p),d=i(0),h=L(d),v=i(13),x=L(v),y=i(24),m=L(y),T=i(4),A=L(T),E=i(16),P=L(E),_=i(21),I=L(_),k=i(11),M=L(k),D=i(3),C=L(D);function L(U){return U&&U.__esModule?U:{default:U}}function q(U,N,j){return N in U?Object.defineProperty(U,N,{value:j,enumerable:!0,configurable:!0,writable:!0}):U[N]=j,U}function $(U,N){if(!(U instanceof N))throw new TypeError("Cannot call a class as a function")}var z=/^[ -~]*$/,Q=(function(){function U(N){$(this,U),this.scroll=N,this.delta=this.getDelta()}return o(U,[{key:"applyDelta",value:function(j){var F=this,R=!1;this.scroll.update();var J=this.scroll.length();return this.scroll.batchStart(),j=X(j),j.reduce(function(se,ie){var ae=ie.retain||ie.delete||ie.insert.length||1,fe=ie.attributes||{};if(ie.insert!=null){if(typeof ie.insert=="string"){var de=ie.insert;de.endsWith(`
`)&&R&&(R=!1,de=de.slice(0,-1)),se>=J&&!de.endsWith(`
`)&&(R=!0),F.scroll.insertAt(se,de);var Se=F.scroll.line(se),Ce=s(Se,2),xe=Ce[0],Be=Ce[1],Re=(0,C.default)({},(0,T.bubbleFormats)(xe));if(xe instanceof A.default){var He=xe.descendant(h.default.Leaf,Be),ze=s(He,1),je=ze[0];Re=(0,C.default)(Re,(0,T.bubbleFormats)(je))}fe=f.default.attributes.diff(Re,fe)||{}}else if(a(ie.insert)==="object"){var re=Object.keys(ie.insert)[0];if(re==null)return se;F.scroll.insertAt(se,re,ie.insert[re])}J+=ae}return Object.keys(fe).forEach(function(ue){F.scroll.formatAt(se,ae,ue,fe[ue])}),se+ae},0),j.reduce(function(se,ie){return typeof ie.delete=="number"?(F.scroll.deleteAt(se,ie.delete),se):se+(ie.retain||ie.insert.length||1)},0),this.scroll.batchEnd(),this.update(j)}},{key:"deleteText",value:function(j,F){return this.scroll.deleteAt(j,F),this.update(new c.default().retain(j).delete(F))}},{key:"formatLine",value:function(j,F){var R=this,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(J).forEach(function(se){if(!(R.scroll.whitelist!=null&&!R.scroll.whitelist[se])){var ie=R.scroll.lines(j,Math.max(F,1)),ae=F;ie.forEach(function(fe){var de=fe.length();if(!(fe instanceof x.default))fe.format(se,J[se]);else{var Se=j-fe.offset(R.scroll),Ce=fe.newlineIndex(Se+ae)-Se+1;fe.formatAt(Se,Ce,se,J[se])}ae-=de})}}),this.scroll.optimize(),this.update(new c.default().retain(j).retain(F,(0,I.default)(J)))}},{key:"formatText",value:function(j,F){var R=this,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(J).forEach(function(se){R.scroll.formatAt(j,F,se,J[se])}),this.update(new c.default().retain(j).retain(F,(0,I.default)(J)))}},{key:"getContents",value:function(j,F){return this.delta.slice(j,j+F)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(j,F){return j.concat(F.delta())},new c.default)}},{key:"getFormat",value:function(j){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=[],J=[];F===0?this.scroll.path(j).forEach(function(ie){var ae=s(ie,1),fe=ae[0];fe instanceof A.default?R.push(fe):fe instanceof h.default.Leaf&&J.push(fe)}):(R=this.scroll.lines(j,F),J=this.scroll.descendants(h.default.Leaf,j,F));var se=[R,J].map(function(ie){if(ie.length===0)return{};for(var ae=(0,T.bubbleFormats)(ie.shift());Object.keys(ae).length>0;){var fe=ie.shift();if(fe==null)return ae;ae=V((0,T.bubbleFormats)(fe),ae)}return ae});return C.default.apply(C.default,se)}},{key:"getText",value:function(j,F){return this.getContents(j,F).filter(function(R){return typeof R.insert=="string"}).map(function(R){return R.insert}).join("")}},{key:"insertEmbed",value:function(j,F,R){return this.scroll.insertAt(j,F,R),this.update(new c.default().retain(j).insert(q({},F,R)))}},{key:"insertText",value:function(j,F){var R=this,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F=F.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(j,F),Object.keys(J).forEach(function(se){R.scroll.formatAt(j,F.length,se,J[se])}),this.update(new c.default().retain(j).insert(F,(0,I.default)(J)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var j=this.scroll.children.head;return j.statics.blotName!==A.default.blotName||j.children.length>1?!1:j.children.head instanceof P.default}},{key:"removeFormat",value:function(j,F){var R=this.getText(j,F),J=this.scroll.line(j+F),se=s(J,2),ie=se[0],ae=se[1],fe=0,de=new c.default;ie!=null&&(ie instanceof x.default?fe=ie.newlineIndex(ae)-ae+1:fe=ie.length()-ae,de=ie.delta().slice(ae,ae+fe-1).insert(`
`));var Se=this.getContents(j,F+fe),Ce=Se.diff(new c.default().insert(R).concat(de)),xe=new c.default().retain(j).concat(Ce);return this.applyDelta(xe)}},{key:"update",value:function(j){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,J=this.delta;if(F.length===1&&F[0].type==="characterData"&&F[0].target.data.match(z)&&h.default.find(F[0].target)){var se=h.default.find(F[0].target),ie=(0,T.bubbleFormats)(se),ae=se.offset(this.scroll),fe=F[0].oldValue.replace(m.default.CONTENTS,""),de=new c.default().insert(fe),Se=new c.default().insert(se.value()),Ce=new c.default().retain(ae).concat(de.diff(Se,R));j=Ce.reduce(function(xe,Be){return Be.insert?xe.insert(Be.insert,ie):xe.push(Be)},new c.default),this.delta=J.compose(j)}else this.delta=this.getDelta(),(!j||!(0,M.default)(J.compose(j),this.delta))&&(j=J.diff(this.delta,R));return j}}]),U})();function V(U,N){return Object.keys(N).reduce(function(j,F){return U[F]==null||(N[F]===U[F]?j[F]=N[F]:Array.isArray(N[F])?N[F].indexOf(U[F])<0&&(j[F]=N[F].concat([U[F]])):j[F]=[N[F],U[F]]),j},{})}function X(U){return U.reduce(function(N,j){if(j.insert===1){var F=(0,I.default)(j.attributes);return delete F.image,N.insert({image:j.attributes.image},F)}if(j.attributes!=null&&(j.attributes.list===!0||j.attributes.bullet===!0)&&(j=(0,I.default)(j),j.attributes.list?j.attributes.list="ordered":(j.attributes.list="bullet",delete j.attributes.bullet)),typeof j.insert=="string"){var R=j.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return N.insert(R,j.attributes)}return N.push(j)},new c.default)}n.default=Q}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Range=void 0;var a=(function(){function k(M,D){var C=[],L=!0,q=!1,$=void 0;try{for(var z=M[Symbol.iterator](),Q;!(L=(Q=z.next()).done)&&(C.push(Q.value),!(D&&C.length===D));L=!0);}catch(V){q=!0,$=V}finally{try{!L&&z.return&&z.return()}finally{if(q)throw $}}return C}return function(M,D){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return k(M,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function k(M,D){for(var C=0;C<D.length;C++){var L=D[C];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(M,L.key,L)}}return function(M,D,C){return D&&k(M.prototype,D),C&&k(M,C),M}})(),o=i(0),l=m(o),c=i(21),p=m(c),f=i(11),d=m(f),h=i(8),v=m(h),x=i(10),y=m(x);function m(k){return k&&k.__esModule?k:{default:k}}function T(k){if(Array.isArray(k)){for(var M=0,D=Array(k.length);M<k.length;M++)D[M]=k[M];return D}else return Array.from(k)}function A(k,M){if(!(k instanceof M))throw new TypeError("Cannot call a class as a function")}var E=(0,y.default)("quill:selection"),P=function k(M){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;A(this,k),this.index=M,this.length=D},_=(function(){function k(M,D){var C=this;A(this,k),this.emitter=D,this.scroll=M,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new P(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(L,q){L===v.default.events.TEXT_CHANGE&&q.length()>0&&C.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var L=C.getNativeRange();L!=null&&L.start.node!==C.cursor.textNode&&C.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(L.start.node,L.start.offset,L.end.node,L.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(L,q){if(q.range){var $=q.range,z=$.startNode,Q=$.startOffset,V=$.endNode,X=$.endOffset;C.setNativeRange(z,Q,V,X)}}),this.update(v.default.sources.SILENT)}return s(k,[{key:"handleComposition",value:function(){var D=this;this.root.addEventListener("compositionstart",function(){D.composing=!0}),this.root.addEventListener("compositionend",function(){if(D.composing=!1,D.cursor.parent){var C=D.cursor.restore();if(!C)return;setTimeout(function(){D.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var D=this;this.emitter.listenDOM("mousedown",document.body,function(){D.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){D.mouseDown=!1,D.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(D,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[D])){this.scroll.update();var L=this.getNativeRange();if(!(L==null||!L.native.collapsed||l.default.query(D,l.default.Scope.BLOCK))){if(L.start.node!==this.cursor.textNode){var q=l.default.find(L.start.node,!1);if(q==null)return;if(q instanceof l.default.Leaf){var $=q.split(L.start.offset);q.parent.insertBefore(this.cursor,$)}else q.insertBefore(this.cursor,L.start.node);this.cursor.attach()}this.cursor.format(D,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(D){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=this.scroll.length();D=Math.min(D,L-1),C=Math.min(D+C,L-1)-D;var q=void 0,$=this.scroll.leaf(D),z=a($,2),Q=z[0],V=z[1];if(Q==null)return null;var X=Q.position(V,!0),U=a(X,2);q=U[0],V=U[1];var N=document.createRange();if(C>0){N.setStart(q,V);var j=this.scroll.leaf(D+C),F=a(j,2);if(Q=F[0],V=F[1],Q==null)return null;var R=Q.position(V,!0),J=a(R,2);return q=J[0],V=J[1],N.setEnd(q,V),N.getBoundingClientRect()}else{var se="left",ie=void 0;return q instanceof Text?(V<q.data.length?(N.setStart(q,V),N.setEnd(q,V+1)):(N.setStart(q,V-1),N.setEnd(q,V),se="right"),ie=N.getBoundingClientRect()):(ie=Q.domNode.getBoundingClientRect(),V>0&&(se="right")),{bottom:ie.top+ie.height,height:ie.height,left:ie[se],right:ie[se],top:ie.top,width:0}}}},{key:"getNativeRange",value:function(){var D=document.getSelection();if(D==null||D.rangeCount<=0)return null;var C=D.getRangeAt(0);if(C==null)return null;var L=this.normalizeNative(C);return E.info("getNativeRange",L),L}},{key:"getRange",value:function(){var D=this.getNativeRange();if(D==null)return[null,null];var C=this.normalizedToRange(D);return[C,D]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(D){var C=this,L=[[D.start.node,D.start.offset]];D.native.collapsed||L.push([D.end.node,D.end.offset]);var q=L.map(function(Q){var V=a(Q,2),X=V[0],U=V[1],N=l.default.find(X,!0),j=N.offset(C.scroll);return U===0?j:N instanceof l.default.Container?j+N.length():j+N.index(X,U)}),$=Math.min(Math.max.apply(Math,T(q)),this.scroll.length()-1),z=Math.min.apply(Math,[$].concat(T(q)));return new P(z,$-z)}},{key:"normalizeNative",value:function(D){if(!I(this.root,D.startContainer)||!D.collapsed&&!I(this.root,D.endContainer))return null;var C={start:{node:D.startContainer,offset:D.startOffset},end:{node:D.endContainer,offset:D.endOffset},native:D};return[C.start,C.end].forEach(function(L){for(var q=L.node,$=L.offset;!(q instanceof Text)&&q.childNodes.length>0;)if(q.childNodes.length>$)q=q.childNodes[$],$=0;else if(q.childNodes.length===$)q=q.lastChild,$=q instanceof Text?q.data.length:q.childNodes.length+1;else break;L.node=q,L.offset=$}),C}},{key:"rangeToNative",value:function(D){var C=this,L=D.collapsed?[D.index]:[D.index,D.index+D.length],q=[],$=this.scroll.length();return L.forEach(function(z,Q){z=Math.min($-1,z);var V=void 0,X=C.scroll.leaf(z),U=a(X,2),N=U[0],j=U[1],F=N.position(j,Q!==0),R=a(F,2);V=R[0],j=R[1],q.push(V,j)}),q.length<2&&(q=q.concat(q)),q}},{key:"scrollIntoView",value:function(D){var C=this.lastRange;if(C!=null){var L=this.getBounds(C.index,C.length);if(L!=null){var q=this.scroll.length()-1,$=this.scroll.line(Math.min(C.index,q)),z=a($,1),Q=z[0],V=Q;if(C.length>0){var X=this.scroll.line(Math.min(C.index+C.length,q)),U=a(X,1);V=U[0]}if(!(Q==null||V==null)){var N=D.getBoundingClientRect();L.top<N.top?D.scrollTop-=N.top-L.top:L.bottom>N.bottom&&(D.scrollTop+=L.bottom-N.bottom)}}}}},{key:"setNativeRange",value:function(D,C){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:D,q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(E.info("setNativeRange",D,C,L,q),!(D!=null&&(this.root.parentNode==null||D.parentNode==null||L.parentNode==null))){var z=document.getSelection();if(z!=null)if(D!=null){this.hasFocus()||this.root.focus();var Q=(this.getNativeRange()||{}).native;if(Q==null||$||D!==Q.startContainer||C!==Q.startOffset||L!==Q.endContainer||q!==Q.endOffset){D.tagName=="BR"&&(C=[].indexOf.call(D.parentNode.childNodes,D),D=D.parentNode),L.tagName=="BR"&&(q=[].indexOf.call(L.parentNode.childNodes,L),L=L.parentNode);var V=document.createRange();V.setStart(D,C),V.setEnd(L,q),z.removeAllRanges(),z.addRange(V)}}else z.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(D){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof C=="string"&&(L=C,C=!1),E.info("setRange",D),D!=null){var q=this.rangeToNative(D);this.setNativeRange.apply(this,T(q).concat([C]))}else this.setNativeRange(null);this.update(L)}},{key:"update",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,C=this.lastRange,L=this.getRange(),q=a(L,2),$=q[0],z=q[1];if(this.lastRange=$,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,d.default)(C,this.lastRange)){var Q;!this.composing&&z!=null&&z.native.collapsed&&z.start.node!==this.cursor.textNode&&this.cursor.restore();var V=[v.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(C),D];if((Q=this.emitter).emit.apply(Q,[v.default.events.EDITOR_CHANGE].concat(V)),D!==v.default.sources.SILENT){var X;(X=this.emitter).emit.apply(X,V)}}}}]),k})();function I(k,M){try{M.parentNode}catch{return!1}return M instanceof Text&&(M=M.parentNode),k.contains(M)}n.Range=P,n.default=_}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function v(x,y){for(var m=0;m<y.length;m++){var T=y[m];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(x,T.key,T)}}return function(x,y,m){return y&&v(x.prototype,y),m&&v(x,m),x}})(),s=function v(x,y,m){x===null&&(x=Function.prototype);var T=Object.getOwnPropertyDescriptor(x,y);if(T===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,y,m)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(m)}},o=i(0),l=c(o);function c(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function f(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function d(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var h=(function(v){d(x,v);function x(){return p(this,x),f(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"insertInto",value:function(m,T){m.children.length===0?s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertInto",this).call(this,m,T):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),x})(l.default.Embed);h.blotName="break",h.tagName="BR",n.default=h}),(function(r,n,i){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])};return function(d,h){f(d,h);function v(){this.constructor=d}d.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(n,"__esModule",{value:!0});var s=i(44),o=i(30),l=i(1),c=(function(f){a(d,f);function d(h){var v=f.call(this,h)||this;return v.build(),v}return d.prototype.appendChild=function(h){this.insertBefore(h)},d.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},d.prototype.build=function(){var h=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var x=p(v);h.insertBefore(x,h.children.head||void 0)}catch(y){if(y instanceof l.ParchmentError)return;throw y}})},d.prototype.deleteAt=function(h,v){if(h===0&&v===this.length())return this.remove();this.children.forEachAt(h,v,function(x,y,m){x.deleteAt(y,m)})},d.prototype.descendant=function(h,v){var x=this.children.find(v),y=x[0],m=x[1];return h.blotName==null&&h(y)||h.blotName!=null&&y instanceof h?[y,m]:y instanceof d?y.descendant(h,m):[null,-1]},d.prototype.descendants=function(h,v,x){v===void 0&&(v=0),x===void 0&&(x=Number.MAX_VALUE);var y=[],m=x;return this.children.forEachAt(v,x,function(T,A,E){(h.blotName==null&&h(T)||h.blotName!=null&&T instanceof h)&&y.push(T),T instanceof d&&(y=y.concat(T.descendants(h,A,m))),m-=E}),y},d.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),f.prototype.detach.call(this)},d.prototype.formatAt=function(h,v,x,y){this.children.forEachAt(h,v,function(m,T,A){m.formatAt(T,A,x,y)})},d.prototype.insertAt=function(h,v,x){var y=this.children.find(h),m=y[0],T=y[1];if(m)m.insertAt(T,v,x);else{var A=x==null?l.create("text",v):l.create(v,x);this.appendChild(A)}},d.prototype.insertBefore=function(h,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(x){return h instanceof x}))throw new l.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,v)},d.prototype.length=function(){return this.children.reduce(function(h,v){return h+v.length()},0)},d.prototype.moveChildren=function(h,v){this.children.forEach(function(x){h.insertBefore(x,v)})},d.prototype.optimize=function(h){if(f.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var v=l.create(this.statics.defaultChild);this.appendChild(v),v.optimize(h)}else this.remove()},d.prototype.path=function(h,v){v===void 0&&(v=!1);var x=this.children.find(h,v),y=x[0],m=x[1],T=[[this,h]];return y instanceof d?T.concat(y.path(m,v)):(y!=null&&T.push([y,m]),T)},d.prototype.removeChild=function(h){this.children.remove(h)},d.prototype.replace=function(h){h instanceof d&&h.moveChildren(this),f.prototype.replace.call(this,h)},d.prototype.split=function(h,v){if(v===void 0&&(v=!1),!v){if(h===0)return this;if(h===this.length())return this.next}var x=this.clone();return this.parent.insertBefore(x,this.next),this.children.forEachAt(h,this.length(),function(y,m,T){y=y.split(m,v),x.appendChild(y)}),x},d.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},d.prototype.update=function(h,v){var x=this,y=[],m=[];h.forEach(function(T){T.target===x.domNode&&T.type==="childList"&&(y.push.apply(y,T.addedNodes),m.push.apply(m,T.removedNodes))}),m.forEach(function(T){if(!(T.parentNode!=null&&T.tagName!=="IFRAME"&&document.body.compareDocumentPosition(T)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var A=l.find(T);A!=null&&(A.domNode.parentNode==null||A.domNode.parentNode===x.domNode)&&A.detach()}}),y.filter(function(T){return T.parentNode==x.domNode}).sort(function(T,A){return T===A?0:T.compareDocumentPosition(A)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(T){var A=null;T.nextSibling!=null&&(A=l.find(T.nextSibling));var E=p(T);(E.next!=A||E.next==null)&&(E.parent!=null&&E.parent.removeChild(x),x.insertBefore(E,A||void 0))})},d})(o.default);function p(f){var d=l.find(f);if(d==null)try{d=l.create(f)}catch{d=l.create(l.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(v){d.domNode.appendChild(v)}),f.parentNode&&f.parentNode.replaceChild(d.domNode,f),d.attach()}return d}n.default=c}),(function(r,n,i){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])};return function(d,h){f(d,h);function v(){this.constructor=d}d.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(n,"__esModule",{value:!0});var s=i(12),o=i(31),l=i(17),c=i(1),p=(function(f){a(d,f);function d(h){var v=f.call(this,h)||this;return v.attributes=new o.default(v.domNode),v}return d.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},d.prototype.format=function(h,v){var x=c.query(h);x instanceof s.default?this.attributes.attribute(x,v):v&&x!=null&&(h!==this.statics.blotName||this.formats()[h]!==v)&&this.replaceWith(h,v)},d.prototype.formats=function(){var h=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(h[this.statics.blotName]=v),h},d.prototype.replaceWith=function(h,v){var x=f.prototype.replaceWith.call(this,h,v);return this.attributes.copy(x),x},d.prototype.update=function(h,v){var x=this;f.prototype.update.call(this,h,v),h.some(function(y){return y.target===x.domNode&&y.type==="attributes"})&&this.attributes.build()},d.prototype.wrap=function(h,v){var x=f.prototype.wrap.call(this,h,v);return x instanceof d&&x.statics.scope===this.statics.scope&&this.attributes.move(x),x},d})(l.default);n.default=p}),(function(r,n,i){var a=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){c(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})();Object.defineProperty(n,"__esModule",{value:!0});var s=i(30),o=i(1),l=(function(c){a(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.value=function(f){return!0},p.prototype.index=function(f,d){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(d,1):-1},p.prototype.position=function(f,d){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(h+=1),[this.parent.domNode,h]},p.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},p.scope=o.Scope.INLINE_BLOT,p})(s.default);n.default=l}),(function(r,n,i){var a=i(11),s=i(3),o={attributes:{compose:function(c,p,f){typeof c!="object"&&(c={}),typeof p!="object"&&(p={});var d=s(!0,{},p);f||(d=Object.keys(d).reduce(function(v,x){return d[x]!=null&&(v[x]=d[x]),v},{}));for(var h in c)c[h]!==void 0&&p[h]===void 0&&(d[h]=c[h]);return Object.keys(d).length>0?d:void 0},diff:function(c,p){typeof c!="object"&&(c={}),typeof p!="object"&&(p={});var f=Object.keys(c).concat(Object.keys(p)).reduce(function(d,h){return a(c[h],p[h])||(d[h]=p[h]===void 0?null:p[h]),d},{});return Object.keys(f).length>0?f:void 0},transform:function(c,p,f){if(typeof c!="object")return p;if(typeof p=="object"){if(!f)return p;var d=Object.keys(p).reduce(function(h,v){return c[v]===void 0&&(h[v]=p[v]),h},{});return Object.keys(d).length>0?d:void 0}}},iterator:function(c){return new l(c)},length:function(c){return typeof c.delete=="number"?c.delete:typeof c.retain=="number"?c.retain:typeof c.insert=="string"?c.insert.length:1}};function l(c){this.ops=c,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(c){c||(c=1/0);var p=this.ops[this.index];if(p){var f=this.offset,d=o.length(p);if(c>=d-f?(c=d-f,this.index+=1,this.offset=0):this.offset+=c,typeof p.delete=="number")return{delete:c};var h={};return p.attributes&&(h.attributes=p.attributes),typeof p.retain=="number"?h.retain=c:typeof p.insert=="string"?h.insert=p.insert.substr(f,c):h.insert=p.insert,h}else return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var c=this.offset,p=this.index,f=this.next(),d=this.ops.slice(this.index);return this.offset=c,this.index=p,[f].concat(d)}else return[]},r.exports=o}),(function(r,n){var i=(function(){function a(x,y){return y!=null&&x instanceof y}var s;try{s=Map}catch{s=function(){}}var o;try{o=Set}catch{o=function(){}}var l;try{l=Promise}catch{l=function(){}}function c(x,y,m,T,A){typeof y=="object"&&(m=y.depth,T=y.prototype,A=y.includeNonEnumerable,y=y.circular);var E=[],P=[],_=typeof Buffer<"u";typeof y>"u"&&(y=!0),typeof m>"u"&&(m=1/0);function I(k,M){if(k===null)return null;if(M===0)return k;var D,C;if(typeof k!="object")return k;if(a(k,s))D=new s;else if(a(k,o))D=new o;else if(a(k,l))D=new l(function(N,j){k.then(function(F){N(I(F,M-1))},function(F){j(I(F,M-1))})});else if(c.__isArray(k))D=[];else if(c.__isRegExp(k))D=new RegExp(k.source,v(k)),k.lastIndex&&(D.lastIndex=k.lastIndex);else if(c.__isDate(k))D=new Date(k.getTime());else{if(_&&Buffer.isBuffer(k))return Buffer.allocUnsafe?D=Buffer.allocUnsafe(k.length):D=new Buffer(k.length),k.copy(D),D;a(k,Error)?D=Object.create(k):typeof T>"u"?(C=Object.getPrototypeOf(k),D=Object.create(C)):(D=Object.create(T),C=T)}if(y){var L=E.indexOf(k);if(L!=-1)return P[L];E.push(k),P.push(D)}a(k,s)&&k.forEach(function(N,j){var F=I(j,M-1),R=I(N,M-1);D.set(F,R)}),a(k,o)&&k.forEach(function(N){var j=I(N,M-1);D.add(j)});for(var q in k){var $;C&&($=Object.getOwnPropertyDescriptor(C,q)),!($&&$.set==null)&&(D[q]=I(k[q],M-1))}if(Object.getOwnPropertySymbols)for(var z=Object.getOwnPropertySymbols(k),q=0;q<z.length;q++){var Q=z[q],V=Object.getOwnPropertyDescriptor(k,Q);V&&!V.enumerable&&!A||(D[Q]=I(k[Q],M-1),V.enumerable||Object.defineProperty(D,Q,{enumerable:!1}))}if(A)for(var X=Object.getOwnPropertyNames(k),q=0;q<X.length;q++){var U=X[q],V=Object.getOwnPropertyDescriptor(k,U);V&&V.enumerable||(D[U]=I(k[U],M-1),Object.defineProperty(D,U,{enumerable:!1}))}return D}return I(x,m)}c.clonePrototype=function(y){if(y===null)return null;var m=function(){};return m.prototype=y,new m};function p(x){return Object.prototype.toString.call(x)}c.__objToStr=p;function f(x){return typeof x=="object"&&p(x)==="[object Date]"}c.__isDate=f;function d(x){return typeof x=="object"&&p(x)==="[object Array]"}c.__isArray=d;function h(x){return typeof x=="object"&&p(x)==="[object RegExp]"}c.__isRegExp=h;function v(x){var y="";return x.global&&(y+="g"),x.ignoreCase&&(y+="i"),x.multiline&&(y+="m"),y}return c.__getRegExpFlags=v,c})();typeof r=="object"&&r.exports&&(r.exports=i)}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function D(C,L){var q=[],$=!0,z=!1,Q=void 0;try{for(var V=C[Symbol.iterator](),X;!($=(X=V.next()).done)&&(q.push(X.value),!(L&&q.length===L));$=!0);}catch(U){z=!0,Q=U}finally{try{!$&&V.return&&V.return()}finally{if(z)throw Q}}return q}return function(C,L){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return D(C,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function D(C,L){for(var q=0;q<L.length;q++){var $=L[q];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(C,$.key,$)}}return function(C,L,q){return L&&D(C.prototype,L),q&&D(C,q),C}})(),o=function D(C,L,q){C===null&&(C=Function.prototype);var $=Object.getOwnPropertyDescriptor(C,L);if($===void 0){var z=Object.getPrototypeOf(C);return z===null?void 0:D(z,L,q)}else{if("value"in $)return $.value;var Q=$.get;return Q===void 0?void 0:Q.call(q)}},l=i(0),c=E(l),p=i(8),f=E(p),d=i(4),h=E(d),v=i(16),x=E(v),y=i(13),m=E(y),T=i(25),A=E(T);function E(D){return D&&D.__esModule?D:{default:D}}function P(D,C){if(!(D instanceof C))throw new TypeError("Cannot call a class as a function")}function _(D,C){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:D}function I(D,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);D.prototype=Object.create(C&&C.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(D,C):D.__proto__=C)}function k(D){return D instanceof h.default||D instanceof d.BlockEmbed}var M=(function(D){I(C,D);function C(L,q){P(this,C);var $=_(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,L));return $.emitter=q.emitter,Array.isArray(q.whitelist)&&($.whitelist=q.whitelist.reduce(function(z,Q){return z[Q]=!0,z},{})),$.domNode.addEventListener("DOMNodeInserted",function(){}),$.optimize(),$.enable(),$}return s(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(q,$){var z=this.line(q),Q=a(z,2),V=Q[0],X=Q[1],U=this.line(q+$),N=a(U,1),j=N[0];if(o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,q,$),j!=null&&V!==j&&X>0){if(V instanceof d.BlockEmbed||j instanceof d.BlockEmbed){this.optimize();return}if(V instanceof m.default){var F=V.newlineIndex(V.length(),!0);if(F>-1&&(V=V.split(F+1),V===j)){this.optimize();return}}else if(j instanceof m.default){var R=j.newlineIndex(0);R>-1&&j.split(R+1)}var J=j.children.head instanceof x.default?null:j.children.head;V.moveChildren(j,J),V.remove()}this.optimize()}},{key:"enable",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",q)}},{key:"formatAt",value:function(q,$,z,Q){this.whitelist!=null&&!this.whitelist[z]||(o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,q,$,z,Q),this.optimize())}},{key:"insertAt",value:function(q,$,z){if(!(z!=null&&this.whitelist!=null&&!this.whitelist[$])){if(q>=this.length())if(z==null||c.default.query($,c.default.Scope.BLOCK)==null){var Q=c.default.create(this.statics.defaultChild);this.appendChild(Q),z==null&&$.endsWith(`
`)&&($=$.slice(0,-1)),Q.insertAt(0,$,z)}else{var V=c.default.create($,z);this.appendChild(V)}else o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,q,$,z);this.optimize()}}},{key:"insertBefore",value:function(q,$){if(q.statics.scope===c.default.Scope.INLINE_BLOT){var z=c.default.create(this.statics.defaultChild);z.appendChild(q),q=z}o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,q,$)}},{key:"leaf",value:function(q){return this.path(q).pop()||[null,-1]}},{key:"line",value:function(q){return q===this.length()?this.line(q-1):this.descendant(k,q)}},{key:"lines",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,z=function Q(V,X,U){var N=[],j=U;return V.children.forEachAt(X,U,function(F,R,J){k(F)?N.push(F):F instanceof c.default.Container&&(N=N.concat(Q(F,R,j))),j-=J}),N};return z(this,q,$)}},{key:"optimize",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,q,$),q.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,q,$))}},{key:"path",value:function(q){return o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,q).slice(1)}},{key:"update",value:function(q){if(this.batch!==!0){var $=f.default.sources.USER;typeof q=="string"&&($=q),Array.isArray(q)||(q=this.observer.takeRecords()),q.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,$,q),o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,q.concat([])),q.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,$,q)}}}]),C})(c.default.Scroll);M.blotName="scroll",M.className="ql-editor",M.tagName="DIV",M.defaultChild="block",M.allowedChildren=[h.default,d.BlockEmbed,A.default],n.default=M}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},s=(function(){function ie(ae,fe){var de=[],Se=!0,Ce=!1,xe=void 0;try{for(var Be=ae[Symbol.iterator](),Re;!(Se=(Re=Be.next()).done)&&(de.push(Re.value),!(fe&&de.length===fe));Se=!0);}catch(He){Ce=!0,xe=He}finally{try{!Se&&Be.return&&Be.return()}finally{if(Ce)throw xe}}return de}return function(ae,fe){if(Array.isArray(ae))return ae;if(Symbol.iterator in Object(ae))return ie(ae,fe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function ie(ae,fe){for(var de=0;de<fe.length;de++){var Se=fe[de];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(ae,Se.key,Se)}}return function(ae,fe,de){return fe&&ie(ae.prototype,fe),de&&ie(ae,de),ae}})(),l=i(21),c=D(l),p=i(11),f=D(p),d=i(3),h=D(d),v=i(2),x=D(v),y=i(20),m=D(y),T=i(0),A=D(T),E=i(5),P=D(E),_=i(10),I=D(_),k=i(9),M=D(k);function D(ie){return ie&&ie.__esModule?ie:{default:ie}}function C(ie,ae,fe){return ae in ie?Object.defineProperty(ie,ae,{value:fe,enumerable:!0,configurable:!0,writable:!0}):ie[ae]=fe,ie}function L(ie,ae){if(!(ie instanceof ae))throw new TypeError("Cannot call a class as a function")}function q(ie,ae){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:ie}function $(ie,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);ie.prototype=Object.create(ae&&ae.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,ae):ie.__proto__=ae)}var z=(0,I.default)("quill:keyboard"),Q=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",V=(function(ie){$(ae,ie),o(ae,null,[{key:"match",value:function(de,Se){return Se=se(Se),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ce){return!!Se[Ce]!==de[Ce]&&Se[Ce]!==null})?!1:Se.key===(de.which||de.keyCode)}}]);function ae(fe,de){L(this,ae);var Se=q(this,(ae.__proto__||Object.getPrototypeOf(ae)).call(this,fe,de));return Se.bindings={},Object.keys(Se.options.bindings).forEach(function(Ce){Ce==="list autofill"&&fe.scroll.whitelist!=null&&!fe.scroll.whitelist.list||Se.options.bindings[Ce]&&Se.addBinding(Se.options.bindings[Ce])}),Se.addBinding({key:ae.keys.ENTER,shiftKey:null},F),Se.addBinding({key:ae.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Se.addBinding({key:ae.keys.BACKSPACE},{collapsed:!0},U),Se.addBinding({key:ae.keys.DELETE},{collapsed:!0},N)):(Se.addBinding({key:ae.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},U),Se.addBinding({key:ae.keys.DELETE},{collapsed:!0,suffix:/^.?$/},N)),Se.addBinding({key:ae.keys.BACKSPACE},{collapsed:!1},j),Se.addBinding({key:ae.keys.DELETE},{collapsed:!1},j),Se.addBinding({key:ae.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},U),Se.listen(),Se}return o(ae,[{key:"addBinding",value:function(de){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xe=se(de);if(xe==null||xe.key==null)return z.warn("Attempted to add invalid keyboard binding",xe);typeof Se=="function"&&(Se={handler:Se}),typeof Ce=="function"&&(Ce={handler:Ce}),xe=(0,h.default)(xe,Se,Ce),this.bindings[xe.key]=this.bindings[xe.key]||[],this.bindings[xe.key].push(xe)}},{key:"listen",value:function(){var de=this;this.quill.root.addEventListener("keydown",function(Se){if(!Se.defaultPrevented){var Ce=Se.which||Se.keyCode,xe=(de.bindings[Ce]||[]).filter(function(De){return ae.match(Se,De)});if(xe.length!==0){var Be=de.quill.getSelection();if(!(Be==null||!de.quill.hasFocus())){var Re=de.quill.getLine(Be.index),He=s(Re,2),ze=He[0],je=He[1],re=de.quill.getLeaf(Be.index),ue=s(re,2),Te=ue[0],ke=ue[1],Oe=Be.length===0?[Te,ke]:de.quill.getLeaf(Be.index+Be.length),Me=s(Oe,2),Ke=Me[0],_e=Me[1],pe=Te instanceof A.default.Text?Te.value().slice(0,ke):"",ne=Ke instanceof A.default.Text?Ke.value().slice(_e):"",me={collapsed:Be.length===0,empty:Be.length===0&&ze.length()<=1,format:de.quill.getFormat(Be),offset:je,prefix:pe,suffix:ne},Ie=xe.some(function(De){if(De.collapsed!=null&&De.collapsed!==me.collapsed||De.empty!=null&&De.empty!==me.empty||De.offset!=null&&De.offset!==me.offset)return!1;if(Array.isArray(De.format)){if(De.format.every(function(Ue){return me.format[Ue]==null}))return!1}else if(a(De.format)==="object"&&!Object.keys(De.format).every(function(Ue){return De.format[Ue]===!0?me.format[Ue]!=null:De.format[Ue]===!1?me.format[Ue]==null:(0,f.default)(De.format[Ue],me.format[Ue])}))return!1;return De.prefix!=null&&!De.prefix.test(me.prefix)||De.suffix!=null&&!De.suffix.test(me.suffix)?!1:De.handler.call(de,Be,me)!==!0});Ie&&Se.preventDefault()}}}})}}]),ae})(M.default);V.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},V.DEFAULTS={bindings:{bold:J("bold"),italic:J("italic"),underline:J("underline"),indent:{key:V.keys.TAB,format:["blockquote","indent","list"],handler:function(ae,fe){if(fe.collapsed&&fe.offset!==0)return!0;this.quill.format("indent","+1",P.default.sources.USER)}},outdent:{key:V.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(ae,fe){if(fe.collapsed&&fe.offset!==0)return!0;this.quill.format("indent","-1",P.default.sources.USER)}},"outdent backspace":{key:V.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(ae,fe){fe.format.indent!=null?this.quill.format("indent","-1",P.default.sources.USER):fe.format.list!=null&&this.quill.format("list",!1,P.default.sources.USER)}},"indent code-block":R(!0),"outdent code-block":R(!1),"remove tab":{key:V.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(ae){this.quill.deleteText(ae.index-1,1,P.default.sources.USER)}},tab:{key:V.keys.TAB,handler:function(ae){this.quill.history.cutoff();var fe=new x.default().retain(ae.index).delete(ae.length).insert(" ");this.quill.updateContents(fe,P.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(ae.index+1,P.default.sources.SILENT)}},"list empty enter":{key:V.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(ae,fe){this.quill.format("list",!1,P.default.sources.USER),fe.format.indent&&this.quill.format("indent",!1,P.default.sources.USER)}},"checklist enter":{key:V.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(ae){var fe=this.quill.getLine(ae.index),de=s(fe,2),Se=de[0],Ce=de[1],xe=(0,h.default)({},Se.formats(),{list:"checked"}),Be=new x.default().retain(ae.index).insert(`
`,xe).retain(Se.length()-Ce-1).retain(1,{list:"unchecked"});this.quill.updateContents(Be,P.default.sources.USER),this.quill.setSelection(ae.index+1,P.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:V.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(ae,fe){var de=this.quill.getLine(ae.index),Se=s(de,2),Ce=Se[0],xe=Se[1],Be=new x.default().retain(ae.index).insert(`
`,fe.format).retain(Ce.length()-xe-1).retain(1,{header:null});this.quill.updateContents(Be,P.default.sources.USER),this.quill.setSelection(ae.index+1,P.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(ae,fe){var de=fe.prefix.length,Se=this.quill.getLine(ae.index),Ce=s(Se,2),xe=Ce[0],Be=Ce[1];if(Be>de)return!0;var Re=void 0;switch(fe.prefix.trim()){case"[]":case"[ ]":Re="unchecked";break;case"[x]":Re="checked";break;case"-":case"*":Re="bullet";break;default:Re="ordered"}this.quill.insertText(ae.index," ",P.default.sources.USER),this.quill.history.cutoff();var He=new x.default().retain(ae.index-Be).delete(de+1).retain(xe.length()-2-Be).retain(1,{list:Re});this.quill.updateContents(He,P.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(ae.index-de,P.default.sources.SILENT)}},"code exit":{key:V.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(ae){var fe=this.quill.getLine(ae.index),de=s(fe,2),Se=de[0],Ce=de[1],xe=new x.default().retain(ae.index+Se.length()-Ce-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(xe,P.default.sources.USER)}},"embed left":X(V.keys.LEFT,!1),"embed left shift":X(V.keys.LEFT,!0),"embed right":X(V.keys.RIGHT,!1),"embed right shift":X(V.keys.RIGHT,!0)}};function X(ie,ae){var fe,de=ie===V.keys.LEFT?"prefix":"suffix";return fe={key:ie,shiftKey:ae,altKey:null},C(fe,de,/^$/),C(fe,"handler",function(Ce){var xe=Ce.index;ie===V.keys.RIGHT&&(xe+=Ce.length+1);var Be=this.quill.getLeaf(xe),Re=s(Be,1),He=Re[0];return He instanceof A.default.Embed?(ie===V.keys.LEFT?ae?this.quill.setSelection(Ce.index-1,Ce.length+1,P.default.sources.USER):this.quill.setSelection(Ce.index-1,P.default.sources.USER):ae?this.quill.setSelection(Ce.index,Ce.length+1,P.default.sources.USER):this.quill.setSelection(Ce.index+Ce.length+1,P.default.sources.USER),!1):!0}),fe}function U(ie,ae){if(!(ie.index===0||this.quill.getLength()<=1)){var fe=this.quill.getLine(ie.index),de=s(fe,1),Se=de[0],Ce={};if(ae.offset===0){var xe=this.quill.getLine(ie.index-1),Be=s(xe,1),Re=Be[0];if(Re!=null&&Re.length()>1){var He=Se.formats(),ze=this.quill.getFormat(ie.index-1,1);Ce=m.default.attributes.diff(He,ze)||{}}}var je=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(ae.prefix)?2:1;this.quill.deleteText(ie.index-je,je,P.default.sources.USER),Object.keys(Ce).length>0&&this.quill.formatLine(ie.index-je,je,Ce,P.default.sources.USER),this.quill.focus()}}function N(ie,ae){var fe=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(ae.suffix)?2:1;if(!(ie.index>=this.quill.getLength()-fe)){var de={},Se=0,Ce=this.quill.getLine(ie.index),xe=s(Ce,1),Be=xe[0];if(ae.offset>=Be.length()-1){var Re=this.quill.getLine(ie.index+1),He=s(Re,1),ze=He[0];if(ze){var je=Be.formats(),re=this.quill.getFormat(ie.index,1);de=m.default.attributes.diff(je,re)||{},Se=ze.length()}}this.quill.deleteText(ie.index,fe,P.default.sources.USER),Object.keys(de).length>0&&this.quill.formatLine(ie.index+Se-1,fe,de,P.default.sources.USER)}}function j(ie){var ae=this.quill.getLines(ie),fe={};if(ae.length>1){var de=ae[0].formats(),Se=ae[ae.length-1].formats();fe=m.default.attributes.diff(Se,de)||{}}this.quill.deleteText(ie,P.default.sources.USER),Object.keys(fe).length>0&&this.quill.formatLine(ie.index,1,fe,P.default.sources.USER),this.quill.setSelection(ie.index,P.default.sources.SILENT),this.quill.focus()}function F(ie,ae){var fe=this;ie.length>0&&this.quill.scroll.deleteAt(ie.index,ie.length);var de=Object.keys(ae.format).reduce(function(Se,Ce){return A.default.query(Ce,A.default.Scope.BLOCK)&&!Array.isArray(ae.format[Ce])&&(Se[Ce]=ae.format[Ce]),Se},{});this.quill.insertText(ie.index,`
`,de,P.default.sources.USER),this.quill.setSelection(ie.index+1,P.default.sources.SILENT),this.quill.focus(),Object.keys(ae.format).forEach(function(Se){de[Se]==null&&(Array.isArray(ae.format[Se])||Se!=="link"&&fe.quill.format(Se,ae.format[Se],P.default.sources.USER))})}function R(ie){return{key:V.keys.TAB,shiftKey:!ie,format:{"code-block":!0},handler:function(fe){var de=A.default.query("code-block"),Se=fe.index,Ce=fe.length,xe=this.quill.scroll.descendant(de,Se),Be=s(xe,2),Re=Be[0],He=Be[1];if(Re!=null){var ze=this.quill.getIndex(Re),je=Re.newlineIndex(He,!0)+1,re=Re.newlineIndex(ze+He+Ce),ue=Re.domNode.textContent.slice(je,re).split(`
`);He=0,ue.forEach(function(Te,ke){ie?(Re.insertAt(je+He,de.TAB),He+=de.TAB.length,ke===0?Se+=de.TAB.length:Ce+=de.TAB.length):Te.startsWith(de.TAB)&&(Re.deleteAt(je+He,de.TAB.length),He-=de.TAB.length,ke===0?Se-=de.TAB.length:Ce-=de.TAB.length),He+=Te.length+1}),this.quill.update(P.default.sources.USER),this.quill.setSelection(Se,Ce,P.default.sources.SILENT)}}}}function J(ie){return{key:ie[0].toUpperCase(),shortKey:!0,handler:function(fe,de){this.quill.format(ie,!de.format[ie],P.default.sources.USER)}}}function se(ie){if(typeof ie=="string"||typeof ie=="number")return se({key:ie});if((typeof ie>"u"?"undefined":a(ie))==="object"&&(ie=(0,c.default)(ie,!1)),typeof ie.key=="string")if(V.keys[ie.key.toUpperCase()]!=null)ie.key=V.keys[ie.key.toUpperCase()];else if(ie.key.length===1)ie.key=ie.key.toUpperCase().charCodeAt(0);else return null;return ie.shortKey&&(ie[Q]=ie.shortKey,delete ie.shortKey),ie}n.default=V,n.SHORTKEY=Q}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function m(T,A){var E=[],P=!0,_=!1,I=void 0;try{for(var k=T[Symbol.iterator](),M;!(P=(M=k.next()).done)&&(E.push(M.value),!(A&&E.length===A));P=!0);}catch(D){_=!0,I=D}finally{try{!P&&k.return&&k.return()}finally{if(_)throw I}}return E}return function(T,A){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return m(T,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=function m(T,A,E){T===null&&(T=Function.prototype);var P=Object.getOwnPropertyDescriptor(T,A);if(P===void 0){var _=Object.getPrototypeOf(T);return _===null?void 0:m(_,A,E)}else{if("value"in P)return P.value;var I=P.get;return I===void 0?void 0:I.call(E)}},o=(function(){function m(T,A){for(var E=0;E<A.length;E++){var P=A[E];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}return function(T,A,E){return A&&m(T.prototype,A),E&&m(T,E),T}})(),l=i(0),c=d(l),p=i(7),f=d(p);function d(m){return m&&m.__esModule?m:{default:m}}function h(m,T){if(!(m instanceof T))throw new TypeError("Cannot call a class as a function")}function v(m,T){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:m}function x(m,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);m.prototype=Object.create(T&&T.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(m,T):m.__proto__=T)}var y=(function(m){x(T,m),o(T,null,[{key:"value",value:function(){}}]);function T(A,E){h(this,T);var P=v(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A));return P.selection=E,P.textNode=document.createTextNode(T.CONTENTS),P.domNode.appendChild(P.textNode),P._length=0,P}return o(T,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(E,P){if(this._length!==0)return s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"format",this).call(this,E,P);for(var _=this,I=0;_!=null&&_.statics.scope!==c.default.Scope.BLOCK_BLOT;)I+=_.offset(_.parent),_=_.parent;_!=null&&(this._length=T.CONTENTS.length,_.optimize(),_.formatAt(I,T.CONTENTS.length,E,P),this._length=0)}},{key:"index",value:function(E,P){return E===this.textNode?0:s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"index",this).call(this,E,P)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var E=this.textNode,P=this.selection.getNativeRange(),_=void 0,I=void 0,k=void 0;if(P!=null&&P.start.node===E&&P.end.node===E){var M=[E,P.start.offset,P.end.offset];_=M[0],I=M[1],k=M[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==T.CONTENTS){var D=this.textNode.data.split(T.CONTENTS).join("");this.next instanceof f.default?(_=this.next.domNode,this.next.insertAt(0,D),this.textNode.data=T.CONTENTS):(this.textNode.data=D,this.parent.insertBefore(c.default.create(this.textNode),this),this.textNode=document.createTextNode(T.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),I!=null){var C=[I,k].map(function(q){return Math.max(0,Math.min(_.data.length,q-1))}),L=a(C,2);return I=L[0],k=L[1],{startNode:_,startOffset:I,endNode:_,endOffset:k}}}}},{key:"update",value:function(E,P){var _=this;if(E.some(function(k){return k.type==="characterData"&&k.target===_.textNode})){var I=this.restore();I&&(P.range=I)}}},{key:"value",value:function(){return""}}]),T})(c.default.Embed);y.blotName="cursor",y.className="ql-cursor",y.tagName="span",y.CONTENTS="\uFEFF",n.default=y}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(0),s=c(a),o=i(4),l=c(o);function c(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function f(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function d(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var h=(function(v){d(x,v);function x(){return p(this,x),f(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return x})(s.default.Container);h.allowedChildren=[l.default,o.BlockEmbed,h],n.default=h}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorStyle=n.ColorClass=n.ColorAttributor=void 0;var a=(function(){function y(m,T){for(var A=0;A<T.length;A++){var E=T[A];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,T,A){return T&&y(m.prototype,T),A&&y(m,A),m}})(),s=function y(m,T,A){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,T);if(E===void 0){var P=Object.getPrototypeOf(m);return P===null?void 0:y(P,T,A)}else{if("value"in E)return E.value;var _=E.get;return _===void 0?void 0:_.call(A)}},o=i(0),l=c(o);function c(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function f(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function d(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var h=(function(y){d(m,y);function m(){return p(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"value",value:function(A){var E=s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,A);return E.startsWith("rgb(")?(E=E.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+E.split(",").map(function(P){return("00"+parseInt(P).toString(16)).slice(-2)}).join("")):E}}]),m})(l.default.Attributor.Style),v=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),x=new h("color","color",{scope:l.default.Scope.INLINE});n.ColorAttributor=h,n.ColorClass=v,n.ColorStyle=x}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.sanitize=n.default=void 0;var a=(function(){function x(y,m){for(var T=0;T<m.length;T++){var A=m[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(y,A.key,A)}}return function(y,m,T){return m&&x(y.prototype,m),T&&x(y,T),y}})(),s=function x(y,m,T){y===null&&(y=Function.prototype);var A=Object.getOwnPropertyDescriptor(y,m);if(A===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:x(E,m,T)}else{if("value"in A)return A.value;var P=A.get;return P===void 0?void 0:P.call(T)}},o=i(6),l=c(o);function c(x){return x&&x.__esModule?x:{default:x}}function p(x,y){if(!(x instanceof y))throw new TypeError("Cannot call a class as a function")}function f(x,y){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:x}function d(x,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}var h=(function(x){d(y,x);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"format",value:function(T,A){if(T!==this.statics.blotName||!A)return s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,T,A);A=this.constructor.sanitize(A),this.domNode.setAttribute("href",A)}}],[{key:"create",value:function(T){var A=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,T);return T=this.sanitize(T),A.setAttribute("href",T),A.setAttribute("rel","noopener noreferrer"),A.setAttribute("target","_blank"),A}},{key:"formats",value:function(T){return T.getAttribute("href")}},{key:"sanitize",value:function(T){return v(T,this.PROTOCOL_WHITELIST)?T:this.SANITIZED_URL}}]),y})(l.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(x,y){var m=document.createElement("a");m.href=x;var T=m.href.slice(0,m.href.indexOf(":"));return y.indexOf(T)>-1}n.default=h,n.sanitize=v}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},s=(function(){function y(m,T){for(var A=0;A<T.length;A++){var E=T[A];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,T,A){return T&&y(m.prototype,T),A&&y(m,A),m}})(),o=i(23),l=f(o),c=i(107),p=f(c);function f(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}var h=0;function v(y,m){y.setAttribute(m,y.getAttribute(m)!=="true")}var x=(function(){function y(m){var T=this;d(this,y),this.select=m,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){T.togglePicker()}),this.label.addEventListener("keydown",function(A){switch(A.keyCode){case l.default.keys.ENTER:T.togglePicker();break;case l.default.keys.ESCAPE:T.escape(),A.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return s(y,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(T){var A=this,E=document.createElement("span");return E.tabIndex="0",E.setAttribute("role","button"),E.classList.add("ql-picker-item"),T.hasAttribute("value")&&E.setAttribute("data-value",T.getAttribute("value")),T.textContent&&E.setAttribute("data-label",T.textContent),E.addEventListener("click",function(){A.selectItem(E,!0)}),E.addEventListener("keydown",function(P){switch(P.keyCode){case l.default.keys.ENTER:A.selectItem(E,!0),P.preventDefault();break;case l.default.keys.ESCAPE:A.escape(),P.preventDefault();break}}),E}},{key:"buildLabel",value:function(){var T=document.createElement("span");return T.classList.add("ql-picker-label"),T.innerHTML=p.default,T.tabIndex="0",T.setAttribute("role","button"),T.setAttribute("aria-expanded","false"),this.container.appendChild(T),T}},{key:"buildOptions",value:function(){var T=this,A=document.createElement("span");A.classList.add("ql-picker-options"),A.setAttribute("aria-hidden","true"),A.tabIndex="-1",A.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",A.id),this.options=A,[].slice.call(this.select.options).forEach(function(E){var P=T.buildItem(E);A.appendChild(P),E.selected===!0&&T.selectItem(P)}),this.container.appendChild(A)}},{key:"buildPicker",value:function(){var T=this;[].slice.call(this.select.attributes).forEach(function(A){T.container.setAttribute(A.name,A.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var T=this;this.close(),setTimeout(function(){return T.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(T){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=this.container.querySelector(".ql-selected");if(T!==E&&(E!=null&&E.classList.remove("ql-selected"),T!=null&&(T.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(T.parentNode.children,T),T.hasAttribute("data-value")?this.label.setAttribute("data-value",T.getAttribute("data-value")):this.label.removeAttribute("data-value"),T.hasAttribute("data-label")?this.label.setAttribute("data-label",T.getAttribute("data-label")):this.label.removeAttribute("data-label"),A))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var P=document.createEvent("Event");P.initEvent("change",!0,!0),this.select.dispatchEvent(P)}this.close()}}},{key:"update",value:function(){var T=void 0;if(this.select.selectedIndex>-1){var A=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];T=this.select.options[this.select.selectedIndex],this.selectItem(A)}else this.selectItem(null);var E=T!=null&&T!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",E)}}]),y})();n.default=x}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(0),s=z(a),o=i(5),l=z(o),c=i(4),p=z(c),f=i(16),d=z(f),h=i(25),v=z(h),x=i(24),y=z(x),m=i(35),T=z(m),A=i(6),E=z(A),P=i(22),_=z(P),I=i(7),k=z(I),M=i(55),D=z(M),C=i(42),L=z(C),q=i(23),$=z(q);function z(Q){return Q&&Q.__esModule?Q:{default:Q}}l.default.register({"blots/block":p.default,"blots/block/embed":c.BlockEmbed,"blots/break":d.default,"blots/container":v.default,"blots/cursor":y.default,"blots/embed":T.default,"blots/inline":E.default,"blots/scroll":_.default,"blots/text":k.default,"modules/clipboard":D.default,"modules/history":L.default,"modules/keyboard":$.default}),s.default.register(p.default,d.default,y.default,E.default,_.default,k.default),n.default=l.default}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(1),s=(function(){function o(l){this.domNode=l,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(o.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),o.create=function(l){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var c;return Array.isArray(this.tagName)?(typeof l=="string"&&(l=l.toUpperCase(),parseInt(l).toString()===l&&(l=parseInt(l))),typeof l=="number"?c=document.createElement(this.tagName[l-1]):this.tagName.indexOf(l)>-1?c=document.createElement(l):c=document.createElement(this.tagName[0])):c=document.createElement(this.tagName),this.className&&c.classList.add(this.className),c},o.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},o.prototype.clone=function(){var l=this.domNode.cloneNode(!1);return a.create(l)},o.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},o.prototype.deleteAt=function(l,c){var p=this.isolate(l,c);p.remove()},o.prototype.formatAt=function(l,c,p,f){var d=this.isolate(l,c);if(a.query(p,a.Scope.BLOT)!=null&&f)d.wrap(p,f);else if(a.query(p,a.Scope.ATTRIBUTE)!=null){var h=a.create(this.statics.scope);d.wrap(h),h.format(p,f)}},o.prototype.insertAt=function(l,c,p){var f=p==null?a.create("text",c):a.create(c,p),d=this.split(l);this.parent.insertBefore(f,d)},o.prototype.insertInto=function(l,c){c===void 0&&(c=null),this.parent!=null&&this.parent.children.remove(this);var p=null;l.children.insertBefore(this,c),c!=null&&(p=c.domNode),(this.domNode.parentNode!=l.domNode||this.domNode.nextSibling!=p)&&l.domNode.insertBefore(this.domNode,p),this.parent=l,this.attach()},o.prototype.isolate=function(l,c){var p=this.split(l);return p.split(c),p},o.prototype.length=function(){return 1},o.prototype.offset=function(l){return l===void 0&&(l=this.parent),this.parent==null||this==l?0:this.parent.children.offset(this)+this.parent.offset(l)},o.prototype.optimize=function(l){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},o.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},o.prototype.replace=function(l){l.parent!=null&&(l.parent.insertBefore(this,l.next),l.remove())},o.prototype.replaceWith=function(l,c){var p=typeof l=="string"?a.create(l,c):l;return p.replace(this),p},o.prototype.split=function(l,c){return l===0?this:this.next},o.prototype.update=function(l,c){},o.prototype.wrap=function(l,c){var p=typeof l=="string"?a.create(l,c):l;return this.parent!=null&&this.parent.insertBefore(p,this.next),p.appendChild(this),p},o.blotName="abstract",o})();n.default=s}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(12),s=i(32),o=i(33),l=i(1),c=(function(){function p(f){this.attributes={},this.domNode=f,this.build()}return p.prototype.attribute=function(f,d){d?f.add(this.domNode,d)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},p.prototype.build=function(){var f=this;this.attributes={};var d=a.default.keys(this.domNode),h=s.default.keys(this.domNode),v=o.default.keys(this.domNode);d.concat(h).concat(v).forEach(function(x){var y=l.query(x,l.Scope.ATTRIBUTE);y instanceof a.default&&(f.attributes[y.attrName]=y)})},p.prototype.copy=function(f){var d=this;Object.keys(this.attributes).forEach(function(h){var v=d.attributes[h].value(d.domNode);f.format(h,v)})},p.prototype.move=function(f){var d=this;this.copy(f),Object.keys(this.attributes).forEach(function(h){d.attributes[h].remove(d.domNode)}),this.attributes={}},p.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(d,h){return d[h]=f.attributes[h].value(f.domNode),d},{})},p})();n.default=c}),(function(r,n,i){var a=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){c(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})();Object.defineProperty(n,"__esModule",{value:!0});var s=i(12);function o(c,p){var f=c.getAttribute("class")||"";return f.split(/\s+/).filter(function(d){return d.indexOf(p+"-")===0})}var l=(function(c){a(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(d){return d.split("-").slice(0,-1).join("-")})},p.prototype.add=function(f,d){return this.canAdd(f,d)?(this.remove(f),f.classList.add(this.keyName+"-"+d),!0):!1},p.prototype.remove=function(f){var d=o(f,this.keyName);d.forEach(function(h){f.classList.remove(h)}),f.classList.length===0&&f.removeAttribute("class")},p.prototype.value=function(f){var d=o(f,this.keyName)[0]||"",h=d.slice(this.keyName.length+1);return this.canAdd(f,h)?h:""},p})(s.default);n.default=l}),(function(r,n,i){var a=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){c(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})();Object.defineProperty(n,"__esModule",{value:!0});var s=i(12);function o(c){var p=c.split("-"),f=p.slice(1).map(function(d){return d[0].toUpperCase()+d.slice(1)}).join("");return p[0]+f}var l=(function(c){a(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(d){var h=d.split(":");return h[0].trim()})},p.prototype.add=function(f,d){return this.canAdd(f,d)?(f.style[o(this.keyName)]=d,!0):!1},p.prototype.remove=function(f){f.style[o(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},p.prototype.value=function(f){var d=f.style[o(this.keyName)];return this.canAdd(f,d)?d:""},p})(s.default);n.default=l}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function l(c,p){for(var f=0;f<p.length;f++){var d=p[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}return function(c,p,f){return p&&l(c.prototype,p),f&&l(c,f),c}})();function s(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}var o=(function(){function l(c,p){s(this,l),this.quill=c,this.options=p,this.modules={}}return a(l,[{key:"init",value:function(){var p=this;Object.keys(this.options.modules).forEach(function(f){p.modules[f]==null&&p.addModule(f)})}},{key:"addModule",value:function(p){var f=this.quill.constructor.import("modules/"+p);return this.modules[p]=new f(this.quill,this.options.modules[p]||{}),this.modules[p]}}]),l})();o.DEFAULTS={modules:{}},o.themes={default:o},n.default=o}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function m(T,A){for(var E=0;E<A.length;E++){var P=A[E];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}return function(T,A,E){return A&&m(T.prototype,A),E&&m(T,E),T}})(),s=function m(T,A,E){T===null&&(T=Function.prototype);var P=Object.getOwnPropertyDescriptor(T,A);if(P===void 0){var _=Object.getPrototypeOf(T);return _===null?void 0:m(_,A,E)}else{if("value"in P)return P.value;var I=P.get;return I===void 0?void 0:I.call(E)}},o=i(0),l=f(o),c=i(7),p=f(c);function f(m){return m&&m.__esModule?m:{default:m}}function d(m,T){if(!(m instanceof T))throw new TypeError("Cannot call a class as a function")}function h(m,T){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:m}function v(m,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);m.prototype=Object.create(T&&T.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(m,T):m.__proto__=T)}var x="\uFEFF",y=(function(m){v(T,m);function T(A){d(this,T);var E=h(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A));return E.contentNode=document.createElement("span"),E.contentNode.setAttribute("contenteditable",!1),[].slice.call(E.domNode.childNodes).forEach(function(P){E.contentNode.appendChild(P)}),E.leftGuard=document.createTextNode(x),E.rightGuard=document.createTextNode(x),E.domNode.appendChild(E.leftGuard),E.domNode.appendChild(E.contentNode),E.domNode.appendChild(E.rightGuard),E}return a(T,[{key:"index",value:function(E,P){return E===this.leftGuard?0:E===this.rightGuard?1:s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"index",this).call(this,E,P)}},{key:"restore",value:function(E){var P=void 0,_=void 0,I=E.data.split(x).join("");if(E===this.leftGuard)if(this.prev instanceof p.default){var k=this.prev.length();this.prev.insertAt(k,I),P={startNode:this.prev.domNode,startOffset:k+I.length}}else _=document.createTextNode(I),this.parent.insertBefore(l.default.create(_),this),P={startNode:_,startOffset:I.length};else E===this.rightGuard&&(this.next instanceof p.default?(this.next.insertAt(0,I),P={startNode:this.next.domNode,startOffset:I.length}):(_=document.createTextNode(I),this.parent.insertBefore(l.default.create(_),this.next),P={startNode:_,startOffset:I.length}));return E.data=x,P}},{key:"update",value:function(E,P){var _=this;E.forEach(function(I){if(I.type==="characterData"&&(I.target===_.leftGuard||I.target===_.rightGuard)){var k=_.restore(I.target);k&&(P.range=k)}})}}]),T})(l.default.Embed);n.default=y}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.AlignStyle=n.AlignClass=n.AlignAttribute=void 0;var a=i(0),s=o(a);function o(d){return d&&d.__esModule?d:{default:d}}var l={scope:s.default.Scope.BLOCK,whitelist:["right","center","justify"]},c=new s.default.Attributor.Attribute("align","align",l),p=new s.default.Attributor.Class("align","ql-align",l),f=new s.default.Attributor.Style("align","text-align",l);n.AlignAttribute=c,n.AlignClass=p,n.AlignStyle=f}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.BackgroundStyle=n.BackgroundClass=void 0;var a=i(0),s=l(a),o=i(26);function l(f){return f&&f.__esModule?f:{default:f}}var c=new s.default.Attributor.Class("background","ql-bg",{scope:s.default.Scope.INLINE}),p=new o.ColorAttributor("background","background-color",{scope:s.default.Scope.INLINE});n.BackgroundClass=c,n.BackgroundStyle=p}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectionStyle=n.DirectionClass=n.DirectionAttribute=void 0;var a=i(0),s=o(a);function o(d){return d&&d.__esModule?d:{default:d}}var l={scope:s.default.Scope.BLOCK,whitelist:["rtl"]},c=new s.default.Attributor.Attribute("direction","dir",l),p=new s.default.Attributor.Class("direction","ql-direction",l),f=new s.default.Attributor.Style("direction","direction",l);n.DirectionAttribute=c,n.DirectionClass=p,n.DirectionStyle=f}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.FontClass=n.FontStyle=void 0;var a=(function(){function m(T,A){for(var E=0;E<A.length;E++){var P=A[E];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}return function(T,A,E){return A&&m(T.prototype,A),E&&m(T,E),T}})(),s=function m(T,A,E){T===null&&(T=Function.prototype);var P=Object.getOwnPropertyDescriptor(T,A);if(P===void 0){var _=Object.getPrototypeOf(T);return _===null?void 0:m(_,A,E)}else{if("value"in P)return P.value;var I=P.get;return I===void 0?void 0:I.call(E)}},o=i(0),l=c(o);function c(m){return m&&m.__esModule?m:{default:m}}function p(m,T){if(!(m instanceof T))throw new TypeError("Cannot call a class as a function")}function f(m,T){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:m}function d(m,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);m.prototype=Object.create(T&&T.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(m,T):m.__proto__=T)}var h={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new l.default.Attributor.Class("font","ql-font",h),x=(function(m){d(T,m);function T(){return p(this,T),f(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return a(T,[{key:"value",value:function(E){return s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"value",this).call(this,E).replace(/["']/g,"")}}]),T})(l.default.Attributor.Style),y=new x("font","font-family",h);n.FontStyle=y,n.FontClass=v}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SizeStyle=n.SizeClass=void 0;var a=i(0),s=o(a);function o(p){return p&&p.__esModule?p:{default:p}}var l=new s.default.Attributor.Class("size","ql-size",{scope:s.default.Scope.INLINE,whitelist:["small","large","huge"]}),c=new s.default.Attributor.Style("size","font-size",{scope:s.default.Scope.INLINE,whitelist:["10px","18px","32px"]});n.SizeClass=l,n.SizeStyle=c}),(function(r,n,i){r.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.getLastChangeIndex=n.default=void 0;var a=(function(){function A(E,P){for(var _=0;_<P.length;_++){var I=P[_];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(E,I.key,I)}}return function(E,P,_){return P&&A(E.prototype,P),_&&A(E,_),E}})(),s=i(0),o=d(s),l=i(5),c=d(l),p=i(9),f=d(p);function d(A){return A&&A.__esModule?A:{default:A}}function h(A,E){if(!(A instanceof E))throw new TypeError("Cannot call a class as a function")}function v(A,E){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:A}function x(A,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);A.prototype=Object.create(E&&E.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(A,E):A.__proto__=E)}var y=(function(A){x(E,A);function E(P,_){h(this,E);var I=v(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,P,_));return I.lastRecorded=0,I.ignoreChange=!1,I.clear(),I.quill.on(c.default.events.EDITOR_CHANGE,function(k,M,D,C){k!==c.default.events.TEXT_CHANGE||I.ignoreChange||(!I.options.userOnly||C===c.default.sources.USER?I.record(M,D):I.transform(M))}),I.quill.keyboard.addBinding({key:"Z",shortKey:!0},I.undo.bind(I)),I.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},I.redo.bind(I)),/Win/i.test(navigator.platform)&&I.quill.keyboard.addBinding({key:"Y",shortKey:!0},I.redo.bind(I)),I}return a(E,[{key:"change",value:function(_,I){if(this.stack[_].length!==0){var k=this.stack[_].pop();this.stack[I].push(k),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(k[_],c.default.sources.USER),this.ignoreChange=!1;var M=T(k[_]);this.quill.setSelection(M)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(_,I){if(_.ops.length!==0){this.stack.redo=[];var k=this.quill.getContents().diff(I),M=Date.now();if(this.lastRecorded+this.options.delay>M&&this.stack.undo.length>0){var D=this.stack.undo.pop();k=k.compose(D.undo),_=D.redo.compose(_)}else this.lastRecorded=M;this.stack.undo.push({redo:_,undo:k}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(_){this.stack.undo.forEach(function(I){I.undo=_.transform(I.undo,!0),I.redo=_.transform(I.redo,!0)}),this.stack.redo.forEach(function(I){I.undo=_.transform(I.undo,!0),I.redo=_.transform(I.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),E})(f.default);y.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function m(A){var E=A.ops[A.ops.length-1];return E==null?!1:E.insert!=null?typeof E.insert=="string"&&E.insert.endsWith(`
`):E.attributes!=null?Object.keys(E.attributes).some(function(P){return o.default.query(P,o.default.Scope.BLOCK)!=null}):!1}function T(A){var E=A.reduce(function(_,I){return _+=I.delete||0,_},0),P=A.length()-E;return m(A)&&(P-=1),P}n.default=y,n.getLastChangeIndex=T}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var a=(function(){function F(R,J){for(var se=0;se<J.length;se++){var ie=J[se];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(R,ie.key,ie)}}return function(R,J,se){return J&&F(R.prototype,J),se&&F(R,se),R}})(),s=function F(R,J,se){R===null&&(R=Function.prototype);var ie=Object.getOwnPropertyDescriptor(R,J);if(ie===void 0){var ae=Object.getPrototypeOf(R);return ae===null?void 0:F(ae,J,se)}else{if("value"in ie)return ie.value;var fe=ie.get;return fe===void 0?void 0:fe.call(se)}},o=i(3),l=M(o),c=i(2),p=M(c),f=i(8),d=M(f),h=i(23),v=M(h),x=i(34),y=M(x),m=i(59),T=M(m),A=i(60),E=M(A),P=i(28),_=M(P),I=i(61),k=M(I);function M(F){return F&&F.__esModule?F:{default:F}}function D(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}function C(F,R){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:F}function L(F,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);F.prototype=Object.create(R&&R.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(F,R):F.__proto__=R)}var q=[!1,"center","right","justify"],$=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],z=[!1,"serif","monospace"],Q=["1","2","3",!1],V=["small",!1,"large","huge"],X=(function(F){L(R,F);function R(J,se){D(this,R);var ie=C(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,J,se)),ae=function fe(de){if(!document.body.contains(J.root))return document.body.removeEventListener("click",fe);ie.tooltip!=null&&!ie.tooltip.root.contains(de.target)&&document.activeElement!==ie.tooltip.textbox&&!ie.quill.hasFocus()&&ie.tooltip.hide(),ie.pickers!=null&&ie.pickers.forEach(function(Se){Se.container.contains(de.target)||Se.close()})};return J.emitter.listenDOM("click",document.body,ae),ie}return a(R,[{key:"addModule",value:function(se){var ie=s(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"addModule",this).call(this,se);return se==="toolbar"&&this.extendToolbar(ie),ie}},{key:"buildButtons",value:function(se,ie){se.forEach(function(ae){var fe=ae.getAttribute("class")||"";fe.split(/\s+/).forEach(function(de){if(de.startsWith("ql-")&&(de=de.slice(3),ie[de]!=null))if(de==="direction")ae.innerHTML=ie[de][""]+ie[de].rtl;else if(typeof ie[de]=="string")ae.innerHTML=ie[de];else{var Se=ae.value||"";Se!=null&&ie[de][Se]&&(ae.innerHTML=ie[de][Se])}})})}},{key:"buildPickers",value:function(se,ie){var ae=this;this.pickers=se.map(function(de){if(de.classList.contains("ql-align"))return de.querySelector("option")==null&&j(de,q),new E.default(de,ie.align);if(de.classList.contains("ql-background")||de.classList.contains("ql-color")){var Se=de.classList.contains("ql-background")?"background":"color";return de.querySelector("option")==null&&j(de,$,Se==="background"?"#ffffff":"#000000"),new T.default(de,ie[Se])}else return de.querySelector("option")==null&&(de.classList.contains("ql-font")?j(de,z):de.classList.contains("ql-header")?j(de,Q):de.classList.contains("ql-size")&&j(de,V)),new _.default(de)});var fe=function(){ae.pickers.forEach(function(Se){Se.update()})};this.quill.on(d.default.events.EDITOR_CHANGE,fe)}}]),R})(y.default);X.DEFAULTS=(0,l.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var R=this,J=this.container.querySelector("input.ql-image[type=file]");J==null&&(J=document.createElement("input"),J.setAttribute("type","file"),J.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),J.classList.add("ql-image"),J.addEventListener("change",function(){if(J.files!=null&&J.files[0]!=null){var se=new FileReader;se.onload=function(ie){var ae=R.quill.getSelection(!0);R.quill.updateContents(new p.default().retain(ae.index).delete(ae.length).insert({image:ie.target.result}),d.default.sources.USER),R.quill.setSelection(ae.index+1,d.default.sources.SILENT),J.value=""},se.readAsDataURL(J.files[0])}}),this.container.appendChild(J)),J.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var U=(function(F){L(R,F);function R(J,se){D(this,R);var ie=C(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,J,se));return ie.textbox=ie.root.querySelector('input[type="text"]'),ie.listen(),ie}return a(R,[{key:"listen",value:function(){var se=this;this.textbox.addEventListener("keydown",function(ie){v.default.match(ie,"enter")?(se.save(),ie.preventDefault()):v.default.match(ie,"escape")&&(se.cancel(),ie.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),ie!=null?this.textbox.value=ie:se!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+se)||""),this.root.setAttribute("data-mode",se)}},{key:"restoreFocus",value:function(){var se=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=se}},{key:"save",value:function(){var se=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var ie=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",se,d.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",se,d.default.sources.USER)),this.quill.root.scrollTop=ie;break}case"video":se=N(se);case"formula":{if(!se)break;var ae=this.quill.getSelection(!0);if(ae!=null){var fe=ae.index+ae.length;this.quill.insertEmbed(fe,this.root.getAttribute("data-mode"),se,d.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(fe+1," ",d.default.sources.USER),this.quill.setSelection(fe+2,d.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),R})(k.default);function N(F){var R=F.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||F.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return R?(R[1]||"https")+"://www.youtube.com/embed/"+R[2]+"?showinfo=0":(R=F.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(R[1]||"https")+"://player.vimeo.com/video/"+R[2]+"/":F}function j(F,R){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;R.forEach(function(se){var ie=document.createElement("option");se===J?ie.setAttribute("selected","selected"):ie.setAttribute("value",se),F.appendChild(ie)})}n.BaseTooltip=U,n.default=X}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];this.insertBefore(o[0],null),o.length>1&&this.append.apply(this,o.slice(1))},s.prototype.contains=function(o){for(var l,c=this.iterator();l=c();)if(l===o)return!0;return!1},s.prototype.insertBefore=function(o,l){o&&(o.next=l,l!=null?(o.prev=l.prev,l.prev!=null&&(l.prev.next=o),l.prev=o,l===this.head&&(this.head=o)):this.tail!=null?(this.tail.next=o,o.prev=this.tail,this.tail=o):(o.prev=null,this.head=this.tail=o),this.length+=1)},s.prototype.offset=function(o){for(var l=0,c=this.head;c!=null;){if(c===o)return l;l+=c.length(),c=c.next}return-1},s.prototype.remove=function(o){this.contains(o)&&(o.prev!=null&&(o.prev.next=o.next),o.next!=null&&(o.next.prev=o.prev),o===this.head&&(this.head=o.next),o===this.tail&&(this.tail=o.prev),this.length-=1)},s.prototype.iterator=function(o){return o===void 0&&(o=this.head),function(){var l=o;return o!=null&&(o=o.next),l}},s.prototype.find=function(o,l){l===void 0&&(l=!1);for(var c,p=this.iterator();c=p();){var f=c.length();if(o<f||l&&o===f&&(c.next==null||c.next.length()!==0))return[c,o];o-=f}return[null,0]},s.prototype.forEach=function(o){for(var l,c=this.iterator();l=c();)o(l)},s.prototype.forEachAt=function(o,l,c){if(!(l<=0))for(var p=this.find(o),f=p[0],d=p[1],h,v=o-d,x=this.iterator(f);(h=x())&&v<o+l;){var y=h.length();o>v?c(h,o-v,Math.min(l,v+y-o)):c(h,0,Math.min(y,o+l-v)),v+=y}},s.prototype.map=function(o){return this.reduce(function(l,c){return l.push(o(c)),l},[])},s.prototype.reduce=function(o,l){for(var c,p=this.iterator();c=p();)l=o(l,c);return l},s})();n.default=a}),(function(r,n,i){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])};return function(d,h){f(d,h);function v(){this.constructor=d}d.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(n,"__esModule",{value:!0});var s=i(17),o=i(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=100,p=(function(f){a(d,f);function d(h){var v=f.call(this,h)||this;return v.scroll=v,v.observer=new MutationObserver(function(x){v.update(x)}),v.observer.observe(v.domNode,l),v.attach(),v}return d.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},d.prototype.deleteAt=function(h,v){this.update(),h===0&&v===this.length()?this.children.forEach(function(x){x.remove()}):f.prototype.deleteAt.call(this,h,v)},d.prototype.formatAt=function(h,v,x,y){this.update(),f.prototype.formatAt.call(this,h,v,x,y)},d.prototype.insertAt=function(h,v,x){this.update(),f.prototype.insertAt.call(this,h,v,x)},d.prototype.optimize=function(h,v){var x=this;h===void 0&&(h=[]),v===void 0&&(v={}),f.prototype.optimize.call(this,v);for(var y=[].slice.call(this.observer.takeRecords());y.length>0;)h.push(y.pop());for(var m=function(P,_){_===void 0&&(_=!0),!(P==null||P===x)&&P.domNode.parentNode!=null&&(P.domNode[o.DATA_KEY].mutations==null&&(P.domNode[o.DATA_KEY].mutations=[]),_&&m(P.parent))},T=function(P){P.domNode[o.DATA_KEY]==null||P.domNode[o.DATA_KEY].mutations==null||(P instanceof s.default&&P.children.forEach(T),P.optimize(v))},A=h,E=0;A.length>0;E+=1){if(E>=c)throw new Error("[Parchment] Maximum optimize iterations reached");for(A.forEach(function(P){var _=o.find(P.target,!0);_!=null&&(_.domNode===P.target&&(P.type==="childList"?(m(o.find(P.previousSibling,!1)),[].forEach.call(P.addedNodes,function(I){var k=o.find(I,!1);m(k,!1),k instanceof s.default&&k.children.forEach(function(M){m(M,!1)})})):P.type==="attributes"&&m(_.prev)),m(_))}),this.children.forEach(T),A=[].slice.call(this.observer.takeRecords()),y=A.slice();y.length>0;)h.push(y.pop())}},d.prototype.update=function(h,v){var x=this;v===void 0&&(v={}),h=h||this.observer.takeRecords(),h.map(function(y){var m=o.find(y.target,!0);return m==null?null:m.domNode[o.DATA_KEY].mutations==null?(m.domNode[o.DATA_KEY].mutations=[y],m):(m.domNode[o.DATA_KEY].mutations.push(y),null)}).forEach(function(y){y==null||y===x||y.domNode[o.DATA_KEY]==null||y.update(y.domNode[o.DATA_KEY].mutations||[],v)}),this.domNode[o.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,v),this.optimize(h,v)},d.blotName="scroll",d.defaultChild="block",d.scope=o.Scope.BLOCK_BLOT,d.tagName="DIV",d})(s.default);n.default=p}),(function(r,n,i){var a=this&&this.__extends||(function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var h in d)d.hasOwnProperty(h)&&(f[h]=d[h])};return function(f,d){p(f,d);function h(){this.constructor=f}f.prototype=d===null?Object.create(d):(h.prototype=d.prototype,new h)}})();Object.defineProperty(n,"__esModule",{value:!0});var s=i(18),o=i(1);function l(p,f){if(Object.keys(p).length!==Object.keys(f).length)return!1;for(var d in p)if(p[d]!==f[d])return!1;return!0}var c=(function(p){a(f,p);function f(){return p!==null&&p.apply(this,arguments)||this}return f.formats=function(d){if(d.tagName!==f.tagName)return p.formats.call(this,d)},f.prototype.format=function(d,h){var v=this;d===this.statics.blotName&&!h?(this.children.forEach(function(x){x instanceof s.default||(x=x.wrap(f.blotName,!0)),v.attributes.copy(x)}),this.unwrap()):p.prototype.format.call(this,d,h)},f.prototype.formatAt=function(d,h,v,x){if(this.formats()[v]!=null||o.query(v,o.Scope.ATTRIBUTE)){var y=this.isolate(d,h);y.format(v,x)}else p.prototype.formatAt.call(this,d,h,v,x)},f.prototype.optimize=function(d){p.prototype.optimize.call(this,d);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var v=this.next;v instanceof f&&v.prev===this&&l(h,v.formats())&&(v.moveChildren(this),v.remove())},f.blotName="inline",f.scope=o.Scope.INLINE_BLOT,f.tagName="SPAN",f})(s.default);n.default=c}),(function(r,n,i){var a=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){c(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})();Object.defineProperty(n,"__esModule",{value:!0});var s=i(18),o=i(1),l=(function(c){a(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.formats=function(f){var d=o.query(p.blotName).tagName;if(f.tagName!==d)return c.formats.call(this,f)},p.prototype.format=function(f,d){o.query(f,o.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!d?this.replaceWith(p.blotName):c.prototype.format.call(this,f,d))},p.prototype.formatAt=function(f,d,h,v){o.query(h,o.Scope.BLOCK)!=null?this.format(h,v):c.prototype.formatAt.call(this,f,d,h,v)},p.prototype.insertAt=function(f,d,h){if(h==null||o.query(d,o.Scope.INLINE)!=null)c.prototype.insertAt.call(this,f,d,h);else{var v=this.split(f),x=o.create(d,h);v.parent.insertBefore(x,v)}},p.prototype.update=function(f,d){navigator.userAgent.match(/Trident/)?this.build():c.prototype.update.call(this,f,d)},p.blotName="block",p.scope=o.Scope.BLOCK_BLOT,p.tagName="P",p})(s.default);n.default=l}),(function(r,n,i){var a=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,p){c.__proto__=p}||function(c,p){for(var f in p)p.hasOwnProperty(f)&&(c[f]=p[f])};return function(c,p){l(c,p);function f(){this.constructor=c}c.prototype=p===null?Object.create(p):(f.prototype=p.prototype,new f)}})();Object.defineProperty(n,"__esModule",{value:!0});var s=i(19),o=(function(l){a(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.formats=function(p){},c.prototype.format=function(p,f){l.prototype.formatAt.call(this,0,this.length(),p,f)},c.prototype.formatAt=function(p,f,d,h){p===0&&f===this.length()?this.format(d,h):l.prototype.formatAt.call(this,p,f,d,h)},c.prototype.formats=function(){return this.statics.formats(this.domNode)},c})(s.default);n.default=o}),(function(r,n,i){var a=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){c(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}})();Object.defineProperty(n,"__esModule",{value:!0});var s=i(19),o=i(1),l=(function(c){a(p,c);function p(f){var d=c.call(this,f)||this;return d.text=d.statics.value(d.domNode),d}return p.create=function(f){return document.createTextNode(f)},p.value=function(f){var d=f.data;return d.normalize&&(d=d.normalize()),d},p.prototype.deleteAt=function(f,d){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+d)},p.prototype.index=function(f,d){return this.domNode===f?d:-1},p.prototype.insertAt=function(f,d,h){h==null?(this.text=this.text.slice(0,f)+d+this.text.slice(f),this.domNode.data=this.text):c.prototype.insertAt.call(this,f,d,h)},p.prototype.length=function(){return this.text.length},p.prototype.optimize=function(f){c.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof p&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},p.prototype.position=function(f,d){return[this.domNode,f]},p.prototype.split=function(f,d){if(d===void 0&&(d=!1),!d){if(f===0)return this;if(f===this.length())return this.next}var h=o.create(this.domNode.splitText(f));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},p.prototype.update=function(f,d){var h=this;f.some(function(v){return v.type==="characterData"&&v.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},p.prototype.value=function(){return this.text},p.blotName="text",p.scope=o.Scope.INLINE_BLOT,p})(s.default);n.default=l}),(function(r,n,i){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(o,l){return arguments.length>1&&!this.contains(o)==!l?l:s.call(this,o)}}String.prototype.startsWith||(String.prototype.startsWith=function(o,l){return l=l||0,this.substr(l,o.length)===o}),String.prototype.endsWith||(String.prototype.endsWith=function(o,l){var c=this.toString();(typeof l!="number"||!isFinite(l)||Math.floor(l)!==l||l>c.length)&&(l=c.length),l-=o.length;var p=c.indexOf(o,l);return p!==-1&&p===l}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(l){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof l!="function")throw new TypeError("predicate must be a function");for(var c=Object(this),p=c.length>>>0,f=arguments[1],d,h=0;h<p;h++)if(d=c[h],l.call(f,d,h,c))return d}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(r,n){var i=-1,a=1,s=0;function o(E,P,_){if(E==P)return E?[[s,E]]:[];(_<0||E.length<_)&&(_=null);var I=f(E,P),k=E.substring(0,I);E=E.substring(I),P=P.substring(I),I=d(E,P);var M=E.substring(E.length-I);E=E.substring(0,E.length-I),P=P.substring(0,P.length-I);var D=l(E,P);return k&&D.unshift([s,k]),M&&D.push([s,M]),v(D),_!=null&&(D=m(D,_)),D=T(D),D}function l(E,P){var _;if(!E)return[[a,P]];if(!P)return[[i,E]];var I=E.length>P.length?E:P,k=E.length>P.length?P:E,M=I.indexOf(k);if(M!=-1)return _=[[a,I.substring(0,M)],[s,k],[a,I.substring(M+k.length)]],E.length>P.length&&(_[0][0]=_[2][0]=i),_;if(k.length==1)return[[i,E],[a,P]];var D=h(E,P);if(D){var C=D[0],L=D[1],q=D[2],$=D[3],z=D[4],Q=o(C,q),V=o(L,$);return Q.concat([[s,z]],V)}return c(E,P)}function c(E,P){for(var _=E.length,I=P.length,k=Math.ceil((_+I)/2),M=k,D=2*k,C=new Array(D),L=new Array(D),q=0;q<D;q++)C[q]=-1,L[q]=-1;C[M+1]=0,L[M+1]=0;for(var $=_-I,z=$%2!=0,Q=0,V=0,X=0,U=0,N=0;N<k;N++){for(var j=-N+Q;j<=N-V;j+=2){var F=M+j,R;j==-N||j!=N&&C[F-1]<C[F+1]?R=C[F+1]:R=C[F-1]+1;for(var J=R-j;R<_&&J<I&&E.charAt(R)==P.charAt(J);)R++,J++;if(C[F]=R,R>_)V+=2;else if(J>I)Q+=2;else if(z){var se=M+$-j;if(se>=0&&se<D&&L[se]!=-1){var ie=_-L[se];if(R>=ie)return p(E,P,R,J)}}}for(var ae=-N+X;ae<=N-U;ae+=2){var se=M+ae,ie;ae==-N||ae!=N&&L[se-1]<L[se+1]?ie=L[se+1]:ie=L[se-1]+1;for(var fe=ie-ae;ie<_&&fe<I&&E.charAt(_-ie-1)==P.charAt(I-fe-1);)ie++,fe++;if(L[se]=ie,ie>_)U+=2;else if(fe>I)X+=2;else if(!z){var F=M+$-ae;if(F>=0&&F<D&&C[F]!=-1){var R=C[F],J=M+R-F;if(ie=_-ie,R>=ie)return p(E,P,R,J)}}}}return[[i,E],[a,P]]}function p(E,P,_,I){var k=E.substring(0,_),M=P.substring(0,I),D=E.substring(_),C=P.substring(I),L=o(k,M),q=o(D,C);return L.concat(q)}function f(E,P){if(!E||!P||E.charAt(0)!=P.charAt(0))return 0;for(var _=0,I=Math.min(E.length,P.length),k=I,M=0;_<k;)E.substring(M,k)==P.substring(M,k)?(_=k,M=_):I=k,k=Math.floor((I-_)/2+_);return k}function d(E,P){if(!E||!P||E.charAt(E.length-1)!=P.charAt(P.length-1))return 0;for(var _=0,I=Math.min(E.length,P.length),k=I,M=0;_<k;)E.substring(E.length-k,E.length-M)==P.substring(P.length-k,P.length-M)?(_=k,M=_):I=k,k=Math.floor((I-_)/2+_);return k}function h(E,P){var _=E.length>P.length?E:P,I=E.length>P.length?P:E;if(_.length<4||I.length*2<_.length)return null;function k(V,X,U){for(var N=V.substring(U,U+Math.floor(V.length/4)),j=-1,F="",R,J,se,ie;(j=X.indexOf(N,j+1))!=-1;){var ae=f(V.substring(U),X.substring(j)),fe=d(V.substring(0,U),X.substring(0,j));F.length<fe+ae&&(F=X.substring(j-fe,j)+X.substring(j,j+ae),R=V.substring(0,U-fe),J=V.substring(U+ae),se=X.substring(0,j-fe),ie=X.substring(j+ae))}return F.length*2>=V.length?[R,J,se,ie,F]:null}var M=k(_,I,Math.ceil(_.length/4)),D=k(_,I,Math.ceil(_.length/2)),C;if(!M&&!D)return null;D?M?C=M[4].length>D[4].length?M:D:C=D:C=M;var L,q,$,z;E.length>P.length?(L=C[0],q=C[1],$=C[2],z=C[3]):($=C[0],z=C[1],L=C[2],q=C[3]);var Q=C[4];return[L,q,$,z,Q]}function v(E){E.push([s,""]);for(var P=0,_=0,I=0,k="",M="",D;P<E.length;)switch(E[P][0]){case a:I++,M+=E[P][1],P++;break;case i:_++,k+=E[P][1],P++;break;case s:_+I>1?(_!==0&&I!==0&&(D=f(M,k),D!==0&&(P-_-I>0&&E[P-_-I-1][0]==s?E[P-_-I-1][1]+=M.substring(0,D):(E.splice(0,0,[s,M.substring(0,D)]),P++),M=M.substring(D),k=k.substring(D)),D=d(M,k),D!==0&&(E[P][1]=M.substring(M.length-D)+E[P][1],M=M.substring(0,M.length-D),k=k.substring(0,k.length-D))),_===0?E.splice(P-I,_+I,[a,M]):I===0?E.splice(P-_,_+I,[i,k]):E.splice(P-_-I,_+I,[i,k],[a,M]),P=P-_-I+(_?1:0)+(I?1:0)+1):P!==0&&E[P-1][0]==s?(E[P-1][1]+=E[P][1],E.splice(P,1)):P++,I=0,_=0,k="",M="";break}E[E.length-1][1]===""&&E.pop();var C=!1;for(P=1;P<E.length-1;)E[P-1][0]==s&&E[P+1][0]==s&&(E[P][1].substring(E[P][1].length-E[P-1][1].length)==E[P-1][1]?(E[P][1]=E[P-1][1]+E[P][1].substring(0,E[P][1].length-E[P-1][1].length),E[P+1][1]=E[P-1][1]+E[P+1][1],E.splice(P-1,1),C=!0):E[P][1].substring(0,E[P+1][1].length)==E[P+1][1]&&(E[P-1][1]+=E[P+1][1],E[P][1]=E[P][1].substring(E[P+1][1].length)+E[P+1][1],E.splice(P+1,1),C=!0)),P++;C&&v(E)}var x=o;x.INSERT=a,x.DELETE=i,x.EQUAL=s,r.exports=x;function y(E,P){if(P===0)return[s,E];for(var _=0,I=0;I<E.length;I++){var k=E[I];if(k[0]===i||k[0]===s){var M=_+k[1].length;if(P===M)return[I+1,E];if(P<M){E=E.slice();var D=P-_,C=[k[0],k[1].slice(0,D)],L=[k[0],k[1].slice(D)];return E.splice(I,1,C,L),[I+1,E]}else _=M}}throw new Error("cursor_pos is out of bounds!")}function m(E,P){var _=y(E,P),I=_[1],k=_[0],M=I[k],D=I[k+1];if(M==null)return E;if(M[0]!==s)return E;if(D!=null&&M[1]+D[1]===D[1]+M[1])return I.splice(k,2,D,M),A(I,k,2);if(D!=null&&D[1].indexOf(M[1])===0){I.splice(k,2,[D[0],M[1]],[0,M[1]]);var C=D[1].slice(M[1].length);return C.length>0&&I.splice(k+2,0,[D[0],C]),A(I,k,3)}else return E}function T(E){for(var P=!1,_=function(D){return D.charCodeAt(0)>=56320&&D.charCodeAt(0)<=57343},I=function(D){return D.charCodeAt(D.length-1)>=55296&&D.charCodeAt(D.length-1)<=56319},k=2;k<E.length;k+=1)E[k-2][0]===s&&I(E[k-2][1])&&E[k-1][0]===i&&_(E[k-1][1])&&E[k][0]===a&&_(E[k][1])&&(P=!0,E[k-1][1]=E[k-2][1].slice(-1)+E[k-1][1],E[k][1]=E[k-2][1].slice(-1)+E[k][1],E[k-2][1]=E[k-2][1].slice(0,-1));if(!P)return E;for(var M=[],k=0;k<E.length;k+=1)E[k][1].length>0&&M.push(E[k]);return M}function A(E,P,_){for(var I=P+_-1;I>=0&&I>=P-1;I--)if(I+1<E.length){var k=E[I],M=E[I+1];k[0]===M[1]&&E.splice(I,2,[k[0],k[1]+M[1]])}return E}}),(function(r,n){n=r.exports=typeof Object.keys=="function"?Object.keys:i,n.shim=i;function i(a){var s=[];for(var o in a)s.push(o);return s}}),(function(r,n){var i=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";n=r.exports=i?a:s,n.supported=a;function a(o){return Object.prototype.toString.call(o)=="[object Arguments]"}n.unsupported=s;function s(o){return o&&typeof o=="object"&&typeof o.length=="number"&&Object.prototype.hasOwnProperty.call(o,"callee")&&!Object.prototype.propertyIsEnumerable.call(o,"callee")||!1}}),(function(r,n){var i=Object.prototype.hasOwnProperty,a="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(a=!1));function o(c,p,f){this.fn=c,this.context=p,this.once=f||!1}function l(){this._events=new s,this._eventsCount=0}l.prototype.eventNames=function(){var p=[],f,d;if(this._eventsCount===0)return p;for(d in f=this._events)i.call(f,d)&&p.push(a?d.slice(1):d);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(f)):p},l.prototype.listeners=function(p,f){var d=a?a+p:p,h=this._events[d];if(f)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var v=0,x=h.length,y=new Array(x);v<x;v++)y[v]=h[v].fn;return y},l.prototype.emit=function(p,f,d,h,v,x){var y=a?a+p:p;if(!this._events[y])return!1;var m=this._events[y],T=arguments.length,A,E;if(m.fn){switch(m.once&&this.removeListener(p,m.fn,void 0,!0),T){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,f),!0;case 3:return m.fn.call(m.context,f,d),!0;case 4:return m.fn.call(m.context,f,d,h),!0;case 5:return m.fn.call(m.context,f,d,h,v),!0;case 6:return m.fn.call(m.context,f,d,h,v,x),!0}for(E=1,A=new Array(T-1);E<T;E++)A[E-1]=arguments[E];m.fn.apply(m.context,A)}else{var P=m.length,_;for(E=0;E<P;E++)switch(m[E].once&&this.removeListener(p,m[E].fn,void 0,!0),T){case 1:m[E].fn.call(m[E].context);break;case 2:m[E].fn.call(m[E].context,f);break;case 3:m[E].fn.call(m[E].context,f,d);break;case 4:m[E].fn.call(m[E].context,f,d,h);break;default:if(!A)for(_=1,A=new Array(T-1);_<T;_++)A[_-1]=arguments[_];m[E].fn.apply(m[E].context,A)}}return!0},l.prototype.on=function(p,f,d){var h=new o(f,d||this),v=a?a+p:p;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],h]:this._events[v].push(h):(this._events[v]=h,this._eventsCount++),this},l.prototype.once=function(p,f,d){var h=new o(f,d||this,!0),v=a?a+p:p;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],h]:this._events[v].push(h):(this._events[v]=h,this._eventsCount++),this},l.prototype.removeListener=function(p,f,d,h){var v=a?a+p:p;if(!this._events[v])return this;if(!f)return--this._eventsCount===0?this._events=new s:delete this._events[v],this;var x=this._events[v];if(x.fn)x.fn===f&&(!h||x.once)&&(!d||x.context===d)&&(--this._eventsCount===0?this._events=new s:delete this._events[v]);else{for(var y=0,m=[],T=x.length;y<T;y++)(x[y].fn!==f||h&&!x[y].once||d&&x[y].context!==d)&&m.push(x[y]);m.length?this._events[v]=m.length===1?m[0]:m:--this._eventsCount===0?this._events=new s:delete this._events[v]}return this},l.prototype.removeAllListeners=function(p){var f;return p?(f=a?a+p:p,this._events[f]&&(--this._eventsCount===0?this._events=new s:delete this._events[f])):(this._events=new s,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=a,l.EventEmitter=l,typeof r<"u"&&(r.exports=l)}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.matchText=n.matchSpacing=n.matchNewline=n.matchBlot=n.matchAttributor=n.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(re){return typeof re}:function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},s=(function(){function re(ue,Te){var ke=[],Oe=!0,Me=!1,Ke=void 0;try{for(var _e=ue[Symbol.iterator](),pe;!(Oe=(pe=_e.next()).done)&&(ke.push(pe.value),!(Te&&ke.length===Te));Oe=!0);}catch(ne){Me=!0,Ke=ne}finally{try{!Oe&&_e.return&&_e.return()}finally{if(Me)throw Ke}}return ke}return function(ue,Te){if(Array.isArray(ue))return ue;if(Symbol.iterator in Object(ue))return re(ue,Te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function re(ue,Te){for(var ke=0;ke<Te.length;ke++){var Oe=Te[ke];Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,"value"in Oe&&(Oe.writable=!0),Object.defineProperty(ue,Oe.key,Oe)}}return function(ue,Te,ke){return Te&&re(ue.prototype,Te),ke&&re(ue,ke),ue}})(),l=i(3),c=L(l),p=i(2),f=L(p),d=i(0),h=L(d),v=i(5),x=L(v),y=i(10),m=L(y),T=i(9),A=L(T),E=i(36),P=i(37),_=i(13),I=L(_),k=i(26),M=i(38),D=i(39),C=i(40);function L(re){return re&&re.__esModule?re:{default:re}}function q(re,ue,Te){return ue in re?Object.defineProperty(re,ue,{value:Te,enumerable:!0,configurable:!0,writable:!0}):re[ue]=Te,re}function $(re,ue){if(!(re instanceof ue))throw new TypeError("Cannot call a class as a function")}function z(re,ue){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue&&(typeof ue=="object"||typeof ue=="function")?ue:re}function Q(re,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ue);re.prototype=Object.create(ue&&ue.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),ue&&(Object.setPrototypeOf?Object.setPrototypeOf(re,ue):re.__proto__=ue)}var V=(0,m.default)("quill:clipboard"),X="__ql-matcher",U=[[Node.TEXT_NODE,je],[Node.TEXT_NODE,Re],["br",Ce],[Node.ELEMENT_NODE,Re],[Node.ELEMENT_NODE,Se],[Node.ELEMENT_NODE,He],[Node.ELEMENT_NODE,de],[Node.ELEMENT_NODE,ze],["li",Be],["b",fe.bind(fe,"bold")],["i",fe.bind(fe,"italic")],["style",xe]],N=[E.AlignAttribute,M.DirectionAttribute].reduce(function(re,ue){return re[ue.keyName]=ue,re},{}),j=[E.AlignStyle,P.BackgroundStyle,k.ColorStyle,M.DirectionStyle,D.FontStyle,C.SizeStyle].reduce(function(re,ue){return re[ue.keyName]=ue,re},{}),F=(function(re){Q(ue,re);function ue(Te,ke){$(this,ue);var Oe=z(this,(ue.__proto__||Object.getPrototypeOf(ue)).call(this,Te,ke));return Oe.quill.root.addEventListener("paste",Oe.onPaste.bind(Oe)),Oe.container=Oe.quill.addContainer("ql-clipboard"),Oe.container.setAttribute("contenteditable",!0),Oe.container.setAttribute("tabindex",-1),Oe.matchers=[],U.concat(Oe.options.matchers).forEach(function(Me){var Ke=s(Me,2),_e=Ke[0],pe=Ke[1];!ke.matchVisual&&pe===He||Oe.addMatcher(_e,pe)}),Oe}return o(ue,[{key:"addMatcher",value:function(ke,Oe){this.matchers.push([ke,Oe])}},{key:"convert",value:function(ke){if(typeof ke=="string")return this.container.innerHTML=ke.replace(/\>\r?\n +\</g,"><"),this.convert();var Oe=this.quill.getFormat(this.quill.selection.savedRange.index);if(Oe[I.default.blotName]){var Me=this.container.innerText;return this.container.innerHTML="",new f.default().insert(Me,q({},I.default.blotName,Oe[I.default.blotName]))}var Ke=this.prepareMatching(),_e=s(Ke,2),pe=_e[0],ne=_e[1],me=ae(this.container,pe,ne);return se(me,`
`)&&me.ops[me.ops.length-1].attributes==null&&(me=me.compose(new f.default().retain(me.length()-1).delete(1))),V.log("convert",this.container.innerHTML,me),this.container.innerHTML="",me}},{key:"dangerouslyPasteHTML",value:function(ke,Oe){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x.default.sources.API;if(typeof ke=="string")this.quill.setContents(this.convert(ke),Oe),this.quill.setSelection(0,x.default.sources.SILENT);else{var Ke=this.convert(Oe);this.quill.updateContents(new f.default().retain(ke).concat(Ke),Me),this.quill.setSelection(ke+Ke.length(),x.default.sources.SILENT)}}},{key:"onPaste",value:function(ke){var Oe=this;if(!(ke.defaultPrevented||!this.quill.isEnabled())){var Me=this.quill.getSelection(),Ke=new f.default().retain(Me.index),_e=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(x.default.sources.SILENT),setTimeout(function(){Ke=Ke.concat(Oe.convert()).delete(Me.length),Oe.quill.updateContents(Ke,x.default.sources.USER),Oe.quill.setSelection(Ke.length()-Me.length,x.default.sources.SILENT),Oe.quill.scrollingContainer.scrollTop=_e,Oe.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ke=this,Oe=[],Me=[];return this.matchers.forEach(function(Ke){var _e=s(Ke,2),pe=_e[0],ne=_e[1];switch(pe){case Node.TEXT_NODE:Me.push(ne);break;case Node.ELEMENT_NODE:Oe.push(ne);break;default:[].forEach.call(ke.container.querySelectorAll(pe),function(me){me[X]=me[X]||[],me[X].push(ne)});break}}),[Oe,Me]}}]),ue})(A.default);F.DEFAULTS={matchers:[],matchVisual:!0};function R(re,ue,Te){return(typeof ue>"u"?"undefined":a(ue))==="object"?Object.keys(ue).reduce(function(ke,Oe){return R(ke,Oe,ue[Oe])},re):re.reduce(function(ke,Oe){return Oe.attributes&&Oe.attributes[ue]?ke.push(Oe):ke.insert(Oe.insert,(0,c.default)({},q({},ue,Te),Oe.attributes))},new f.default)}function J(re){if(re.nodeType!==Node.ELEMENT_NODE)return{};var ue="__ql-computed-style";return re[ue]||(re[ue]=window.getComputedStyle(re))}function se(re,ue){for(var Te="",ke=re.ops.length-1;ke>=0&&Te.length<ue.length;--ke){var Oe=re.ops[ke];if(typeof Oe.insert!="string")break;Te=Oe.insert+Te}return Te.slice(-1*ue.length)===ue}function ie(re){if(re.childNodes.length===0)return!1;var ue=J(re);return["block","list-item"].indexOf(ue.display)>-1}function ae(re,ue,Te){return re.nodeType===re.TEXT_NODE?Te.reduce(function(ke,Oe){return Oe(re,ke)},new f.default):re.nodeType===re.ELEMENT_NODE?[].reduce.call(re.childNodes||[],function(ke,Oe){var Me=ae(Oe,ue,Te);return Oe.nodeType===re.ELEMENT_NODE&&(Me=ue.reduce(function(Ke,_e){return _e(Oe,Ke)},Me),Me=(Oe[X]||[]).reduce(function(Ke,_e){return _e(Oe,Ke)},Me)),ke.concat(Me)},new f.default):new f.default}function fe(re,ue,Te){return R(Te,re,!0)}function de(re,ue){var Te=h.default.Attributor.Attribute.keys(re),ke=h.default.Attributor.Class.keys(re),Oe=h.default.Attributor.Style.keys(re),Me={};return Te.concat(ke).concat(Oe).forEach(function(Ke){var _e=h.default.query(Ke,h.default.Scope.ATTRIBUTE);_e!=null&&(Me[_e.attrName]=_e.value(re),Me[_e.attrName])||(_e=N[Ke],_e!=null&&(_e.attrName===Ke||_e.keyName===Ke)&&(Me[_e.attrName]=_e.value(re)||void 0),_e=j[Ke],_e!=null&&(_e.attrName===Ke||_e.keyName===Ke)&&(_e=j[Ke],Me[_e.attrName]=_e.value(re)||void 0))}),Object.keys(Me).length>0&&(ue=R(ue,Me)),ue}function Se(re,ue){var Te=h.default.query(re);if(Te==null)return ue;if(Te.prototype instanceof h.default.Embed){var ke={},Oe=Te.value(re);Oe!=null&&(ke[Te.blotName]=Oe,ue=new f.default().insert(ke,Te.formats(re)))}else typeof Te.formats=="function"&&(ue=R(ue,Te.blotName,Te.formats(re)));return ue}function Ce(re,ue){return se(ue,`
`)||ue.insert(`
`),ue}function xe(){return new f.default}function Be(re,ue){var Te=h.default.query(re);if(Te==null||Te.blotName!=="list-item"||!se(ue,`
`))return ue;for(var ke=-1,Oe=re.parentNode;!Oe.classList.contains("ql-clipboard");)(h.default.query(Oe)||{}).blotName==="list"&&(ke+=1),Oe=Oe.parentNode;return ke<=0?ue:ue.compose(new f.default().retain(ue.length()-1).retain(1,{indent:ke}))}function Re(re,ue){return se(ue,`
`)||(ie(re)||ue.length()>0&&re.nextSibling&&ie(re.nextSibling))&&ue.insert(`
`),ue}function He(re,ue){if(ie(re)&&re.nextElementSibling!=null&&!se(ue,`
`)){var Te=re.offsetHeight+parseFloat(J(re).marginTop)+parseFloat(J(re).marginBottom);re.nextElementSibling.offsetTop>re.offsetTop+Te*1.5&&ue.insert(`
`)}return ue}function ze(re,ue){var Te={},ke=re.style||{};return ke.fontStyle&&J(re).fontStyle==="italic"&&(Te.italic=!0),ke.fontWeight&&(J(re).fontWeight.startsWith("bold")||parseInt(J(re).fontWeight)>=700)&&(Te.bold=!0),Object.keys(Te).length>0&&(ue=R(ue,Te)),parseFloat(ke.textIndent||0)>0&&(ue=new f.default().insert(" ").concat(ue)),ue}function je(re,ue){var Te=re.data;if(re.parentNode.tagName==="O:P")return ue.insert(Te.trim());if(Te.trim().length===0&&re.parentNode.classList.contains("ql-clipboard"))return ue;if(!J(re.parentNode).whiteSpace.startsWith("pre")){var ke=function(Me,Ke){return Ke=Ke.replace(/[^\u00a0]/g,""),Ke.length<1&&Me?" ":Ke};Te=Te.replace(/\r\n/g," ").replace(/\n/g," "),Te=Te.replace(/\s\s+/g,ke.bind(ke,!0)),(re.previousSibling==null&&ie(re.parentNode)||re.previousSibling!=null&&ie(re.previousSibling))&&(Te=Te.replace(/^\s+/,ke.bind(ke,!1))),(re.nextSibling==null&&ie(re.parentNode)||re.nextSibling!=null&&ie(re.nextSibling))&&(Te=Te.replace(/\s+$/,ke.bind(ke,!1)))}return ue.insert(Te)}n.default=F,n.matchAttributor=de,n.matchBlot=Se,n.matchNewline=Re,n.matchSpacing=He,n.matchText=je}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function v(x,y){for(var m=0;m<y.length;m++){var T=y[m];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(x,T.key,T)}}return function(x,y,m){return y&&v(x.prototype,y),m&&v(x,m),x}})(),s=function v(x,y,m){x===null&&(x=Function.prototype);var T=Object.getOwnPropertyDescriptor(x,y);if(T===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,y,m)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(m)}},o=i(6),l=c(o);function c(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function f(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function d(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var h=(function(v){d(x,v);function x(){return p(this,x),f(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"optimize",value:function(m){s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),x})(l.default);h.blotName="bold",h.tagName=["STRONG","B"],n.default=h}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var a=(function(){function C(L,q){var $=[],z=!0,Q=!1,V=void 0;try{for(var X=L[Symbol.iterator](),U;!(z=(U=X.next()).done)&&($.push(U.value),!(q&&$.length===q));z=!0);}catch(N){Q=!0,V=N}finally{try{!z&&X.return&&X.return()}finally{if(Q)throw V}}return $}return function(L,q){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return C(L,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function C(L,q){for(var $=0;$<q.length;$++){var z=q[$];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(L,z.key,z)}}return function(L,q,$){return q&&C(L.prototype,q),$&&C(L,$),L}})(),o=i(2),l=m(o),c=i(0),p=m(c),f=i(5),d=m(f),h=i(10),v=m(h),x=i(9),y=m(x);function m(C){return C&&C.__esModule?C:{default:C}}function T(C,L,q){return L in C?Object.defineProperty(C,L,{value:q,enumerable:!0,configurable:!0,writable:!0}):C[L]=q,C}function A(C,L){if(!(C instanceof L))throw new TypeError("Cannot call a class as a function")}function E(C,L){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:C}function P(C,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);C.prototype=Object.create(L&&L.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(C,L):C.__proto__=L)}var _=(0,v.default)("quill:toolbar"),I=(function(C){P(L,C);function L(q,$){A(this,L);var z=E(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,q,$));if(Array.isArray(z.options.container)){var Q=document.createElement("div");M(Q,z.options.container),q.container.parentNode.insertBefore(Q,q.container),z.container=Q}else typeof z.options.container=="string"?z.container=document.querySelector(z.options.container):z.container=z.options.container;if(!(z.container instanceof HTMLElement)){var V;return V=_.error("Container required for toolbar",z.options),E(z,V)}return z.container.classList.add("ql-toolbar"),z.controls=[],z.handlers={},Object.keys(z.options.handlers).forEach(function(X){z.addHandler(X,z.options.handlers[X])}),[].forEach.call(z.container.querySelectorAll("button, select"),function(X){z.attach(X)}),z.quill.on(d.default.events.EDITOR_CHANGE,function(X,U){X===d.default.events.SELECTION_CHANGE&&z.update(U)}),z.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){var X=z.quill.selection.getRange(),U=a(X,1),N=U[0];z.update(N)}),z}return s(L,[{key:"addHandler",value:function($,z){this.handlers[$]=z}},{key:"attach",value:function($){var z=this,Q=[].find.call($.classList,function(X){return X.indexOf("ql-")===0});if(Q){if(Q=Q.slice(3),$.tagName==="BUTTON"&&$.setAttribute("type","button"),this.handlers[Q]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Q]==null){_.warn("ignoring attaching to disabled format",Q,$);return}if(p.default.query(Q)==null){_.warn("ignoring attaching to nonexistent format",Q,$);return}}var V=$.tagName==="SELECT"?"change":"click";$.addEventListener(V,function(X){var U=void 0;if($.tagName==="SELECT"){if($.selectedIndex<0)return;var N=$.options[$.selectedIndex];N.hasAttribute("selected")?U=!1:U=N.value||!1}else $.classList.contains("ql-active")?U=!1:U=$.value||!$.hasAttribute("value"),X.preventDefault();z.quill.focus();var j=z.quill.selection.getRange(),F=a(j,1),R=F[0];if(z.handlers[Q]!=null)z.handlers[Q].call(z,U);else if(p.default.query(Q).prototype instanceof p.default.Embed){if(U=prompt("Enter "+Q),!U)return;z.quill.updateContents(new l.default().retain(R.index).delete(R.length).insert(T({},Q,U)),d.default.sources.USER)}else z.quill.format(Q,U,d.default.sources.USER);z.update(R)}),this.controls.push([Q,$])}}},{key:"update",value:function($){var z=$==null?{}:this.quill.getFormat($);this.controls.forEach(function(Q){var V=a(Q,2),X=V[0],U=V[1];if(U.tagName==="SELECT"){var N=void 0;if($==null)N=null;else if(z[X]==null)N=U.querySelector("option[selected]");else if(!Array.isArray(z[X])){var j=z[X];typeof j=="string"&&(j=j.replace(/\"/g,'\\"')),N=U.querySelector('option[value="'+j+'"]')}N==null?(U.value="",U.selectedIndex=-1):N.selected=!0}else if($==null)U.classList.remove("ql-active");else if(U.hasAttribute("value")){var F=z[X]===U.getAttribute("value")||z[X]!=null&&z[X].toString()===U.getAttribute("value")||z[X]==null&&!U.getAttribute("value");U.classList.toggle("ql-active",F)}else U.classList.toggle("ql-active",z[X]!=null)})}}]),L})(y.default);I.DEFAULTS={};function k(C,L,q){var $=document.createElement("button");$.setAttribute("type","button"),$.classList.add("ql-"+L),q!=null&&($.value=q),C.appendChild($)}function M(C,L){Array.isArray(L[0])||(L=[L]),L.forEach(function(q){var $=document.createElement("span");$.classList.add("ql-formats"),q.forEach(function(z){if(typeof z=="string")k($,z);else{var Q=Object.keys(z)[0],V=z[Q];Array.isArray(V)?D($,Q,V):k($,Q,V)}}),C.appendChild($)})}function D(C,L,q){var $=document.createElement("select");$.classList.add("ql-"+L),q.forEach(function(z){var Q=document.createElement("option");z!==!1?Q.setAttribute("value",z):Q.setAttribute("selected","selected"),$.appendChild(Q)}),C.appendChild($)}I.DEFAULTS={container:null,handlers:{clean:function(){var L=this,q=this.quill.getSelection();if(q!=null)if(q.length==0){var $=this.quill.getFormat();Object.keys($).forEach(function(z){p.default.query(z,p.default.Scope.INLINE)!=null&&L.quill.format(z,!1)})}else this.quill.removeFormat(q,d.default.sources.USER)},direction:function(L){var q=this.quill.getFormat().align;L==="rtl"&&q==null?this.quill.format("align","right",d.default.sources.USER):!L&&q==="right"&&this.quill.format("align",!1,d.default.sources.USER),this.quill.format("direction",L,d.default.sources.USER)},indent:function(L){var q=this.quill.getSelection(),$=this.quill.getFormat(q),z=parseInt($.indent||0);if(L==="+1"||L==="-1"){var Q=L==="+1"?1:-1;$.direction==="rtl"&&(Q*=-1),this.quill.format("indent",z+Q,d.default.sources.USER)}},link:function(L){L===!0&&(L=prompt("Enter link URL:")),this.quill.format("link",L,d.default.sources.USER)},list:function(L){var q=this.quill.getSelection(),$=this.quill.getFormat(q);L==="check"?$.list==="checked"||$.list==="unchecked"?this.quill.format("list",!1,d.default.sources.USER):this.quill.format("list","unchecked",d.default.sources.USER):this.quill.format("list",L,d.default.sources.USER)}}},n.default=I,n.addControls=M}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function v(x,y){for(var m=0;m<y.length;m++){var T=y[m];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(x,T.key,T)}}return function(x,y,m){return y&&v(x.prototype,y),m&&v(x,m),x}})(),s=function v(x,y,m){x===null&&(x=Function.prototype);var T=Object.getOwnPropertyDescriptor(x,y);if(T===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,y,m)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(m)}},o=i(28),l=c(o);function c(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function f(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function d(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var h=(function(v){d(x,v);function x(y,m){p(this,x);var T=f(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,y));return T.label.innerHTML=m,T.container.classList.add("ql-color-picker"),[].slice.call(T.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(A){A.classList.add("ql-primary")}),T}return a(x,[{key:"buildItem",value:function(m){var T=s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"buildItem",this).call(this,m);return T.style.backgroundColor=m.getAttribute("value")||"",T}},{key:"selectItem",value:function(m,T){s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"selectItem",this).call(this,m,T);var A=this.label.querySelector(".ql-color-label"),E=m&&m.getAttribute("data-value")||"";A&&(A.tagName==="line"?A.style.stroke=E:A.style.fill=E)}}]),x})(l.default);n.default=h}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function v(x,y){for(var m=0;m<y.length;m++){var T=y[m];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(x,T.key,T)}}return function(x,y,m){return y&&v(x.prototype,y),m&&v(x,m),x}})(),s=function v(x,y,m){x===null&&(x=Function.prototype);var T=Object.getOwnPropertyDescriptor(x,y);if(T===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,y,m)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(m)}},o=i(28),l=c(o);function c(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function f(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function d(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var h=(function(v){d(x,v);function x(y,m){p(this,x);var T=f(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,y));return T.container.classList.add("ql-icon-picker"),[].forEach.call(T.container.querySelectorAll(".ql-picker-item"),function(A){A.innerHTML=m[A.getAttribute("data-value")||""]}),T.defaultItem=T.container.querySelector(".ql-selected"),T.selectItem(T.defaultItem),T}return a(x,[{key:"selectItem",value:function(m,T){s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"selectItem",this).call(this,m,T),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),x})(l.default);n.default=h}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function l(c,p){for(var f=0;f<p.length;f++){var d=p[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}return function(c,p,f){return p&&l(c.prototype,p),f&&l(c,f),c}})();function s(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}var o=(function(){function l(c,p){var f=this;s(this,l),this.quill=c,this.boundsContainer=p||document.body,this.root=c.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return a(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var f=p.left+p.width/2-this.root.offsetWidth/2,d=p.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=d+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),x=0;if(v.right>h.right&&(x=h.right-v.right,this.root.style.left=f+x+"px"),v.left<h.left&&(x=h.left-v.left,this.root.style.left=f+x+"px"),v.bottom>h.bottom){var y=v.bottom-v.top,m=p.bottom-p.top+y;this.root.style.top=d-m+"px",this.root.classList.add("ql-flip")}return x}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l})();n.default=o}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function D(C,L){var q=[],$=!0,z=!1,Q=void 0;try{for(var V=C[Symbol.iterator](),X;!($=(X=V.next()).done)&&(q.push(X.value),!(L&&q.length===L));$=!0);}catch(U){z=!0,Q=U}finally{try{!$&&V.return&&V.return()}finally{if(z)throw Q}}return q}return function(C,L){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return D(C,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=function D(C,L,q){C===null&&(C=Function.prototype);var $=Object.getOwnPropertyDescriptor(C,L);if($===void 0){var z=Object.getPrototypeOf(C);return z===null?void 0:D(z,L,q)}else{if("value"in $)return $.value;var Q=$.get;return Q===void 0?void 0:Q.call(q)}},o=(function(){function D(C,L){for(var q=0;q<L.length;q++){var $=L[q];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(C,$.key,$)}}return function(C,L,q){return L&&D(C.prototype,L),q&&D(C,q),C}})(),l=i(3),c=A(l),p=i(8),f=A(p),d=i(43),h=A(d),v=i(27),x=A(v),y=i(15),m=i(41),T=A(m);function A(D){return D&&D.__esModule?D:{default:D}}function E(D,C){if(!(D instanceof C))throw new TypeError("Cannot call a class as a function")}function P(D,C){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:D}function _(D,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);D.prototype=Object.create(C&&C.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(D,C):D.__proto__=C)}var I=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],k=(function(D){_(C,D);function C(L,q){E(this,C),q.modules.toolbar!=null&&q.modules.toolbar.container==null&&(q.modules.toolbar.container=I);var $=P(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,L,q));return $.quill.container.classList.add("ql-snow"),$}return o(C,[{key:"extendToolbar",value:function(q){q.container.classList.add("ql-snow"),this.buildButtons([].slice.call(q.container.querySelectorAll("button")),T.default),this.buildPickers([].slice.call(q.container.querySelectorAll("select")),T.default),this.tooltip=new M(this.quill,this.options.bounds),q.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function($,z){q.handlers.link.call(q,!z.format.link)})}}]),C})(h.default);k.DEFAULTS=(0,c.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var L=this.quill.getSelection();if(L==null||L.length==0)return;var q=this.quill.getText(L);/^\S+@\S+\.\S+$/.test(q)&&q.indexOf("mailto:")!==0&&(q="mailto:"+q);var $=this.quill.theme.tooltip;$.edit("link",q)}else this.quill.format("link",!1)}}}}});var M=(function(D){_(C,D);function C(L,q){E(this,C);var $=P(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,L,q));return $.preview=$.root.querySelector("a.ql-preview"),$}return o(C,[{key:"listen",value:function(){var q=this;s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function($){q.root.classList.contains("ql-editing")?q.save():q.edit("link",q.preview.textContent),$.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function($){if(q.linkRange!=null){var z=q.linkRange;q.restoreFocus(),q.quill.formatText(z,"link",!1,f.default.sources.USER),delete q.linkRange}$.preventDefault(),q.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function($,z,Q){if($!=null){if($.length===0&&Q===f.default.sources.USER){var V=q.quill.scroll.descendant(x.default,$.index),X=a(V,2),U=X[0],N=X[1];if(U!=null){q.linkRange=new y.Range($.index-N,U.length());var j=x.default.formats(U.domNode);q.preview.textContent=j,q.preview.setAttribute("href",j),q.show(),q.position(q.quill.getBounds(q.linkRange));return}}else delete q.linkRange;q.hide()}})}},{key:"show",value:function(){s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C})(d.BaseTooltip);M.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),n.default=k}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(29),s=Oe(a),o=i(36),l=i(38),c=i(64),p=i(65),f=Oe(p),d=i(66),h=Oe(d),v=i(67),x=Oe(v),y=i(37),m=i(26),T=i(39),A=i(40),E=i(56),P=Oe(E),_=i(68),I=Oe(_),k=i(27),M=Oe(k),D=i(69),C=Oe(D),L=i(70),q=Oe(L),$=i(71),z=Oe($),Q=i(72),V=Oe(Q),X=i(73),U=Oe(X),N=i(13),j=Oe(N),F=i(74),R=Oe(F),J=i(75),se=Oe(J),ie=i(57),ae=Oe(ie),fe=i(41),de=Oe(fe),Se=i(28),Ce=Oe(Se),xe=i(59),Be=Oe(xe),Re=i(60),He=Oe(Re),ze=i(61),je=Oe(ze),re=i(108),ue=Oe(re),Te=i(62),ke=Oe(Te);function Oe(Me){return Me&&Me.__esModule?Me:{default:Me}}s.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":T.FontClass,"attributors/class/size":A.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":T.FontStyle,"attributors/style/size":A.SizeStyle},!0),s.default.register({"formats/align":o.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":c.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":T.FontClass,"formats/size":A.SizeClass,"formats/blockquote":f.default,"formats/code-block":j.default,"formats/header":h.default,"formats/list":x.default,"formats/bold":P.default,"formats/code":N.Code,"formats/italic":I.default,"formats/link":M.default,"formats/script":C.default,"formats/strike":q.default,"formats/underline":z.default,"formats/image":V.default,"formats/video":U.default,"formats/list/item":v.ListItem,"modules/formula":R.default,"modules/syntax":se.default,"modules/toolbar":ae.default,"themes/bubble":ue.default,"themes/snow":ke.default,"ui/icons":de.default,"ui/picker":Ce.default,"ui/icon-picker":He.default,"ui/color-picker":Be.default,"ui/tooltip":je.default},!0),n.default=s.default}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var a=(function(){function x(y,m){for(var T=0;T<m.length;T++){var A=m[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(y,A.key,A)}}return function(y,m,T){return m&&x(y.prototype,m),T&&x(y,T),y}})(),s=function x(y,m,T){y===null&&(y=Function.prototype);var A=Object.getOwnPropertyDescriptor(y,m);if(A===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:x(E,m,T)}else{if("value"in A)return A.value;var P=A.get;return P===void 0?void 0:P.call(T)}},o=i(0),l=c(o);function c(x){return x&&x.__esModule?x:{default:x}}function p(x,y){if(!(x instanceof y))throw new TypeError("Cannot call a class as a function")}function f(x,y){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:x}function d(x,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}var h=(function(x){d(y,x);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"add",value:function(T,A){if(A==="+1"||A==="-1"){var E=this.value(T)||0;A=A==="+1"?E+1:E-1}return A===0?(this.remove(T),!0):s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,T,A)}},{key:"canAdd",value:function(T,A){return s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,T,A)||s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,T,parseInt(A))}},{key:"value",value:function(T){return parseInt(s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,T))||void 0}}]),y})(l.default.Attributor.Class),v=new h("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=v}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(4),s=o(a);function o(d){return d&&d.__esModule?d:{default:d}}function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function c(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=(function(d){p(h,d);function h(){return l(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(s.default);f.blotName="blockquote",f.tagName="blockquote",n.default=f}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function h(v,x){for(var y=0;y<x.length;y++){var m=x[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,x,y){return x&&h(v.prototype,x),y&&h(v,y),v}})(),s=i(4),o=l(s);function l(h){return h&&h.__esModule?h:{default:h}}function c(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function p(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function f(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var d=(function(h){f(v,h);function v(){return c(this,v),p(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),v})(o.default);d.blotName="header",d.tagName=["H1","H2","H3","H4","H5","H6"],n.default=d}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var a=(function(){function E(P,_){for(var I=0;I<_.length;I++){var k=_[I];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(P,k.key,k)}}return function(P,_,I){return _&&E(P.prototype,_),I&&E(P,I),P}})(),s=function E(P,_,I){P===null&&(P=Function.prototype);var k=Object.getOwnPropertyDescriptor(P,_);if(k===void 0){var M=Object.getPrototypeOf(P);return M===null?void 0:E(M,_,I)}else{if("value"in k)return k.value;var D=k.get;return D===void 0?void 0:D.call(I)}},o=i(0),l=h(o),c=i(4),p=h(c),f=i(25),d=h(f);function h(E){return E&&E.__esModule?E:{default:E}}function v(E,P,_){return P in E?Object.defineProperty(E,P,{value:_,enumerable:!0,configurable:!0,writable:!0}):E[P]=_,E}function x(E,P){if(!(E instanceof P))throw new TypeError("Cannot call a class as a function")}function y(E,P){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:E}function m(E,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);E.prototype=Object.create(P&&P.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(E,P):E.__proto__=P)}var T=(function(E){m(P,E);function P(){return x(this,P),y(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return a(P,[{key:"format",value:function(I,k){I===A.blotName&&!k?this.replaceWith(l.default.create(this.statics.scope)):s(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,I,k)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(I,k){return this.parent.isolate(this.offset(this.parent),this.length()),I===this.parent.statics.blotName?(this.parent.replaceWith(I,k),this):(this.parent.unwrap(),s(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replaceWith",this).call(this,I,k))}}],[{key:"formats",value:function(I){return I.tagName===this.tagName?void 0:s(P.__proto__||Object.getPrototypeOf(P),"formats",this).call(this,I)}}]),P})(p.default);T.blotName="list-item",T.tagName="LI";var A=(function(E){m(P,E),a(P,null,[{key:"create",value:function(I){var k=I==="ordered"?"OL":"UL",M=s(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,k);return(I==="checked"||I==="unchecked")&&M.setAttribute("data-checked",I==="checked"),M}},{key:"formats",value:function(I){if(I.tagName==="OL")return"ordered";if(I.tagName==="UL")return I.hasAttribute("data-checked")?I.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function P(_){x(this,P);var I=y(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,_)),k=function(D){if(D.target.parentNode===_){var C=I.statics.formats(_),L=l.default.find(D.target);C==="checked"?L.format("list","unchecked"):C==="unchecked"&&L.format("list","checked")}};return _.addEventListener("touchstart",k),_.addEventListener("mousedown",k),I}return a(P,[{key:"format",value:function(I,k){this.children.length>0&&this.children.tail.format(I,k)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(I,k){if(I instanceof T)s(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertBefore",this).call(this,I,k);else{var M=k==null?this.length():k.offset(this),D=this.split(M);D.parent.insertBefore(I,D)}}},{key:"optimize",value:function(I){s(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,I);var k=this.next;k!=null&&k.prev===this&&k.statics.blotName===this.statics.blotName&&k.domNode.tagName===this.domNode.tagName&&k.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(k.moveChildren(this),k.remove())}},{key:"replace",value:function(I){if(I.statics.blotName!==this.statics.blotName){var k=l.default.create(this.statics.defaultChild);I.moveChildren(k),this.appendChild(k)}s(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,I)}}]),P})(d.default);A.blotName="list",A.scope=l.default.Scope.BLOCK_BLOT,A.tagName=["OL","UL"],A.defaultChild="list-item",A.allowedChildren=[T],n.ListItem=T,n.default=A}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(56),s=o(a);function o(d){return d&&d.__esModule?d:{default:d}}function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function c(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=(function(d){p(h,d);function h(){return l(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(s.default);f.blotName="italic",f.tagName=["EM","I"],n.default=f}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function v(x,y){for(var m=0;m<y.length;m++){var T=y[m];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(x,T.key,T)}}return function(x,y,m){return y&&v(x.prototype,y),m&&v(x,m),x}})(),s=function v(x,y,m){x===null&&(x=Function.prototype);var T=Object.getOwnPropertyDescriptor(x,y);if(T===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,y,m)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(m)}},o=i(6),l=c(o);function c(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function f(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function d(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var h=(function(v){d(x,v);function x(){return p(this,x),f(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):s(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),x})(l.default);h.blotName="script",h.tagName=["SUB","SUP"],n.default=h}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(6),s=o(a);function o(d){return d&&d.__esModule?d:{default:d}}function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function c(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=(function(d){p(h,d);function h(){return l(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(s.default);f.blotName="strike",f.tagName="S",n.default=f}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(6),s=o(a);function o(d){return d&&d.__esModule?d:{default:d}}function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function c(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=(function(d){p(h,d);function h(){return l(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(s.default);f.blotName="underline",f.tagName="U",n.default=f}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function y(m,T){for(var A=0;A<T.length;A++){var E=T[A];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,T,A){return T&&y(m.prototype,T),A&&y(m,A),m}})(),s=function y(m,T,A){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,T);if(E===void 0){var P=Object.getPrototypeOf(m);return P===null?void 0:y(P,T,A)}else{if("value"in E)return E.value;var _=E.get;return _===void 0?void 0:_.call(A)}},o=i(0),l=p(o),c=i(27);function p(y){return y&&y.__esModule?y:{default:y}}function f(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function d(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function h(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=["alt","height","width"],x=(function(y){h(m,y);function m(){return f(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"format",value:function(A,E){v.indexOf(A)>-1?E?this.domNode.setAttribute(A,E):this.domNode.removeAttribute(A):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,A,E)}}],[{key:"create",value:function(A){var E=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,A);return typeof A=="string"&&E.setAttribute("src",this.sanitize(A)),E}},{key:"formats",value:function(A){return v.reduce(function(E,P){return A.hasAttribute(P)&&(E[P]=A.getAttribute(P)),E},{})}},{key:"match",value:function(A){return/\.(jpe?g|gif|png)$/.test(A)||/^data:image\/.+;base64/.test(A)}},{key:"sanitize",value:function(A){return(0,c.sanitize)(A,["http","https","data"])?A:"//:0"}},{key:"value",value:function(A){return A.getAttribute("src")}}]),m})(l.default.Embed);x.blotName="image",x.tagName="IMG",n.default=x}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function y(m,T){for(var A=0;A<T.length;A++){var E=T[A];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,T,A){return T&&y(m.prototype,T),A&&y(m,A),m}})(),s=function y(m,T,A){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,T);if(E===void 0){var P=Object.getPrototypeOf(m);return P===null?void 0:y(P,T,A)}else{if("value"in E)return E.value;var _=E.get;return _===void 0?void 0:_.call(A)}},o=i(4),l=i(27),c=p(l);function p(y){return y&&y.__esModule?y:{default:y}}function f(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function d(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function h(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=["height","width"],x=(function(y){h(m,y);function m(){return f(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"format",value:function(A,E){v.indexOf(A)>-1?E?this.domNode.setAttribute(A,E):this.domNode.removeAttribute(A):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,A,E)}}],[{key:"create",value:function(A){var E=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,A);return E.setAttribute("frameborder","0"),E.setAttribute("allowfullscreen",!0),E.setAttribute("src",this.sanitize(A)),E}},{key:"formats",value:function(A){return v.reduce(function(E,P){return A.hasAttribute(P)&&(E[P]=A.getAttribute(P)),E},{})}},{key:"sanitize",value:function(A){return c.default.sanitize(A)}},{key:"value",value:function(A){return A.getAttribute("src")}}]),m})(o.BlockEmbed);x.blotName="video",x.className="ql-video",x.tagName="IFRAME",n.default=x}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var a=(function(){function A(E,P){for(var _=0;_<P.length;_++){var I=P[_];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(E,I.key,I)}}return function(E,P,_){return P&&A(E.prototype,P),_&&A(E,_),E}})(),s=function A(E,P,_){E===null&&(E=Function.prototype);var I=Object.getOwnPropertyDescriptor(E,P);if(I===void 0){var k=Object.getPrototypeOf(E);return k===null?void 0:A(k,P,_)}else{if("value"in I)return I.value;var M=I.get;return M===void 0?void 0:M.call(_)}},o=i(35),l=h(o),c=i(5),p=h(c),f=i(9),d=h(f);function h(A){return A&&A.__esModule?A:{default:A}}function v(A,E){if(!(A instanceof E))throw new TypeError("Cannot call a class as a function")}function x(A,E){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:A}function y(A,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);A.prototype=Object.create(E&&E.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(A,E):A.__proto__=E)}var m=(function(A){y(E,A);function E(){return v(this,E),x(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return a(E,null,[{key:"create",value:function(_){var I=s(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,_);return typeof _=="string"&&(window.katex.render(_,I,{throwOnError:!1,errorColor:"#f00"}),I.setAttribute("data-value",_)),I}},{key:"value",value:function(_){return _.getAttribute("data-value")}}]),E})(l.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var T=(function(A){y(E,A),a(E,null,[{key:"register",value:function(){p.default.register(m,!0)}}]);function E(){v(this,E);var P=x(this,(E.__proto__||Object.getPrototypeOf(E)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return P}return E})(d.default);n.FormulaBlot=m,n.default=T}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var a=(function(){function _(I,k){for(var M=0;M<k.length;M++){var D=k[M];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(I,D.key,D)}}return function(I,k,M){return k&&_(I.prototype,k),M&&_(I,M),I}})(),s=function _(I,k,M){I===null&&(I=Function.prototype);var D=Object.getOwnPropertyDescriptor(I,k);if(D===void 0){var C=Object.getPrototypeOf(I);return C===null?void 0:_(C,k,M)}else{if("value"in D)return D.value;var L=D.get;return L===void 0?void 0:L.call(M)}},o=i(0),l=x(o),c=i(5),p=x(c),f=i(9),d=x(f),h=i(13),v=x(h);function x(_){return _&&_.__esModule?_:{default:_}}function y(_,I){if(!(_ instanceof I))throw new TypeError("Cannot call a class as a function")}function m(_,I){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:_}function T(_,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);_.prototype=Object.create(I&&I.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(_,I):_.__proto__=I)}var A=(function(_){T(I,_);function I(){return y(this,I),m(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return a(I,[{key:"replaceWith",value:function(M){this.domNode.textContent=this.domNode.textContent,this.attach(),s(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replaceWith",this).call(this,M)}},{key:"highlight",value:function(M){var D=this.domNode.textContent;this.cachedText!==D&&((D.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=M(D),this.domNode.normalize(),this.attach()),this.cachedText=D)}}]),I})(v.default);A.className="ql-syntax";var E=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),P=(function(_){T(I,_),a(I,null,[{key:"register",value:function(){p.default.register(E,!0),p.default.register(A,!0)}}]);function I(k,M){y(this,I);var D=m(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,k,M));if(typeof D.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return D.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){D.highlight(),C=null},D.options.interval)}),D.highlight(),D}return a(I,[{key:"highlight",value:function(){var M=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var D=this.quill.getSelection();this.quill.scroll.descendants(A).forEach(function(C){C.highlight(M.options.highlight)}),this.quill.update(p.default.sources.SILENT),D!=null&&this.quill.setSelection(D,p.default.sources.SILENT)}}}]),I})(d.default);P.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(_){var I=window.hljs.highlightAuto(_);return I.value}})(),interval:1e3},n.CodeBlock=A,n.CodeToken=E,n.default=P}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var a=function I(k,M,D){k===null&&(k=Function.prototype);var C=Object.getOwnPropertyDescriptor(k,M);if(C===void 0){var L=Object.getPrototypeOf(k);return L===null?void 0:I(L,M,D)}else{if("value"in C)return C.value;var q=C.get;return q===void 0?void 0:q.call(D)}},s=(function(){function I(k,M){for(var D=0;D<M.length;D++){var C=M[D];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(k,C.key,C)}}return function(k,M,D){return M&&I(k.prototype,M),D&&I(k,D),k}})(),o=i(3),l=y(o),c=i(8),p=y(c),f=i(43),d=y(f),h=i(15),v=i(41),x=y(v);function y(I){return I&&I.__esModule?I:{default:I}}function m(I,k){if(!(I instanceof k))throw new TypeError("Cannot call a class as a function")}function T(I,k){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:I}function A(I,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);I.prototype=Object.create(k&&k.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(I,k):I.__proto__=k)}var E=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],P=(function(I){A(k,I);function k(M,D){m(this,k),D.modules.toolbar!=null&&D.modules.toolbar.container==null&&(D.modules.toolbar.container=E);var C=T(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,M,D));return C.quill.container.classList.add("ql-bubble"),C}return s(k,[{key:"extendToolbar",value:function(D){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(D.container),this.buildButtons([].slice.call(D.container.querySelectorAll("button")),x.default),this.buildPickers([].slice.call(D.container.querySelectorAll("select")),x.default)}}]),k})(d.default);P.DEFAULTS=(0,l.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(k){k?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=(function(I){A(k,I);function k(M,D){m(this,k);var C=T(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,M,D));return C.quill.on(p.default.events.EDITOR_CHANGE,function(L,q,$,z){if(L===p.default.events.SELECTION_CHANGE)if(q!=null&&q.length>0&&z===p.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var Q=C.quill.getLines(q.index,q.length);if(Q.length===1)C.position(C.quill.getBounds(q));else{var V=Q[Q.length-1],X=C.quill.getIndex(V),U=Math.min(V.length()-1,q.index+q.length-X),N=C.quill.getBounds(new h.Range(X,U));C.position(N)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return s(k,[{key:"listen",value:function(){var D=this;a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){D.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!D.root.classList.contains("ql-hidden")){var C=D.quill.getSelection();C!=null&&D.position(D.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(D){var C=a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"position",this).call(this,D),L=this.root.querySelector(".ql-tooltip-arrow");if(L.style.marginLeft="",C===0)return C;L.style.marginLeft=-1*C-L.offsetWidth/2+"px"}}]),k})(f.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=_,n.default=P}),(function(r,n,i){r.exports=i(63)})]).default})})(oh)),oh.exports}var ei,KM;function zae(){if(KM)return ei;KM=1;var e=ei&&ei.__extends||(function(){var p=function(f,d){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])},p(f,d)};return function(f,d){p(f,d);function h(){this.constructor=f}f.prototype=d===null?Object.create(d):(h.prototype=d.prototype,new h)}})(),t=ei&&ei.__assign||function(){return t=Object.assign||function(p){for(var f,d=1,h=arguments.length;d<h;d++){f=arguments[d];for(var v in f)Object.prototype.hasOwnProperty.call(f,v)&&(p[v]=f[v])}return p},t.apply(this,arguments)},r=ei&&ei.__spreadArrays||function(){for(var p=0,f=0,d=arguments.length;f<d;f++)p+=arguments[f].length;for(var h=Array(p),v=0,f=0;f<d;f++)for(var x=arguments[f],y=0,m=x.length;y<m;y++,v++)h[v]=x[y];return h},n=ei&&ei.__importDefault||function(p){return p&&p.__esModule?p:{default:p}},i=n(tj()),a=n(_q()),s=n(gB()),o=n(Kae()),l=(function(p){e(f,p);function f(d){var h=p.call(this,d)||this;h.dirtyProps=["modules","formats","bounds","theme","children"],h.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],h.state={generation:0},h.selection=null,h.onEditorChange=function(x,y,m,T){var A,E,P,_;x==="text-change"?(E=(A=h).onEditorChangeText)===null||E===void 0||E.call(A,h.editor.root.innerHTML,y,T,h.unprivilegedEditor):x==="selection-change"&&((_=(P=h).onEditorChangeSelection)===null||_===void 0||_.call(P,y,T,h.unprivilegedEditor))};var v=h.isControlled()?d.value:d.defaultValue;return h.value=v??"",h}return f.prototype.validateProps=function(d){var h;if(i.default.Children.count(d.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(i.default.Children.count(d.children)){var v=i.default.Children.only(d.children);if(((h=v)===null||h===void 0?void 0:h.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&d.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},f.prototype.shouldComponentUpdate=function(d,h){var v=this,x;if(this.validateProps(d),!this.editor||this.state.generation!==h.generation)return!0;if("value"in d){var y=this.getEditorContents(),m=(x=d.value,x??"");this.isEqualValue(m,y)||this.setEditorContents(this.editor,m)}return d.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,d.readOnly),r(this.cleanProps,this.dirtyProps).some(function(T){return!s.default(d[T],v.props[T])})},f.prototype.shouldComponentRegenerate=function(d){var h=this;return this.dirtyProps.some(function(v){return!s.default(d[v],h.props[v])})},f.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},f.prototype.componentWillUnmount=function(){this.destroyEditor()},f.prototype.componentDidUpdate=function(d,h){var v=this;if(this.editor&&this.shouldComponentRegenerate(d)){var x=this.editor.getContents(),y=this.editor.getSelection();this.regenerationSnapshot={delta:x,selection:y},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==h.generation){var m=this.regenerationSnapshot,x=m.delta,T=m.selection;delete this.regenerationSnapshot,this.instantiateEditor();var A=this.editor;A.setContents(x),c(function(){return v.setEditorSelection(A,T)})}},f.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},f.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},f.prototype.isControlled=function(){return"value"in this.props},f.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},f.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},f.prototype.createEditor=function(d,h){var v=new o.default(d,h);return h.tabIndex!=null&&this.setEditorTabIndex(v,h.tabIndex),this.hookEditor(v),v},f.prototype.hookEditor=function(d){this.unprivilegedEditor=this.makeUnprivilegedEditor(d),d.on("editor-change",this.onEditorChange)},f.prototype.unhookEditor=function(d){d.off("editor-change",this.onEditorChange)},f.prototype.getEditorContents=function(){return this.value},f.prototype.getEditorSelection=function(){return this.selection},f.prototype.isDelta=function(d){return d&&d.ops},f.prototype.isEqualValue=function(d,h){return this.isDelta(d)&&this.isDelta(h)?s.default(d.ops,h.ops):s.default(d,h)},f.prototype.setEditorContents=function(d,h){var v=this;this.value=h;var x=this.getEditorSelection();typeof h=="string"?d.setContents(d.clipboard.convert(h)):d.setContents(h),c(function(){return v.setEditorSelection(d,x)})},f.prototype.setEditorSelection=function(d,h){if(this.selection=h,h){var v=d.getLength();h.index=Math.max(0,Math.min(h.index,v-1)),h.length=Math.max(0,Math.min(h.length,v-1-h.index)),d.setSelection(h)}},f.prototype.setEditorTabIndex=function(d,h){var v,x;!((x=(v=d)===null||v===void 0?void 0:v.scroll)===null||x===void 0)&&x.domNode&&(d.scroll.domNode.tabIndex=h)},f.prototype.setEditorReadOnly=function(d,h){h?d.disable():d.enable()},f.prototype.makeUnprivilegedEditor=function(d){var h=d;return{getHTML:function(){return h.root.innerHTML},getLength:h.getLength.bind(h),getText:h.getText.bind(h),getContents:h.getContents.bind(h),getSelection:h.getSelection.bind(h),getBounds:h.getBounds.bind(h)}},f.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var d=a.default.findDOMNode(this.editingArea);if(!d)throw new Error("Cannot find element for editing area");if(d.nodeType===3)throw new Error("Editing area cannot be a text node");return d},f.prototype.renderEditingArea=function(){var d=this,h=this.props,v=h.children,x=h.preserveWhitespace,y=this.state.generation,m={key:y,ref:function(T){d.editingArea=T}};return i.default.Children.count(v)?i.default.cloneElement(i.default.Children.only(v),m):x?i.default.createElement("pre",t({},m)):i.default.createElement("div",t({},m))},f.prototype.render=function(){var d;return i.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(d=this.props.className,d??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},f.prototype.onEditorChangeText=function(d,h,v,x){var y,m;if(this.editor){var T=this.isDelta(this.value)?x.getContents():x.getHTML();T!==this.getEditorContents()&&(this.lastDeltaChangeSet=h,this.value=T,(m=(y=this.props).onChange)===null||m===void 0||m.call(y,d,h,v,x))}},f.prototype.onEditorChangeSelection=function(d,h,v){var x,y,m,T,A,E;if(this.editor){var P=this.getEditorSelection(),_=!P&&d,I=P&&!d;s.default(d,P)||(this.selection=d,(y=(x=this.props).onChangeSelection)===null||y===void 0||y.call(x,d,h,v),_?(T=(m=this.props).onFocus)===null||T===void 0||T.call(m,d,h,v):I&&((E=(A=this.props).onBlur)===null||E===void 0||E.call(A,P,h,v)))}},f.prototype.focus=function(){this.editor&&this.editor.focus()},f.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},f.displayName="React Quill",f.Quill=o.default,f.defaultProps={theme:"snow",modules:{},readOnly:!1},f})(i.default.Component);function c(p){Promise.resolve().then(p)}return ei=l,ei}var t4=zae();const Wae=Mt(t4),Sye=S9({__proto__:null,default:Wae},[t4]);var Hae=Symbol.for("react.lazy"),fm=Oq[" use ".trim().toString()];function Yae(e){return typeof e=="object"&&e!==null&&"then"in e}function r4(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Hae&&"_payload"in e&&Yae(e._payload)}function FE(e){const t=Xae(e),r=te.forwardRef((n,i)=>{let{children:a,...s}=n;r4(a)&&typeof fm=="function"&&(a=fm(a._payload));const o=te.Children.toArray(a),l=o.find(Jae);if(l){const c=l.props.children,p=o.map(f=>f===l?te.Children.count(c)>1?te.Children.only(null):te.isValidElement(c)?c.props.children:null:f);return ce.jsx(t,{...s,ref:i,children:te.isValidElement(c)?te.cloneElement(c,void 0,p):null})}return ce.jsx(t,{...s,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var pm=FE("Slot");function Xae(e){const t=te.forwardRef((r,n)=>{let{children:i,...a}=r;if(r4(i)&&typeof fm=="function"&&(i=fm(i._payload)),te.isValidElement(i)){const s=Zae(i),o=Qae(a,i.props);return i.type!==te.Fragment&&(o.ref=n?$l(n,s):s),te.cloneElement(i,o)}return te.Children.count(i)>1?te.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var n4=Symbol("radix.slottable");function i4(e){const t=({children:r})=>ce.jsx(ce.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=n4,t}var Gae=i4("Slottable");function Jae(e){return te.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===n4}function Qae(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...o)=>{const l=a(...o);return i(...o),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function Zae(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Eye=Object.freeze(Object.defineProperty({__proto__:null,Root:pm,Slot:pm,Slottable:Gae,createSlot:FE,createSlottable:i4},Symbol.toStringTag,{value:"Module"}));var ese=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],On=ese.reduce((e,t)=>{const r=FE(`Primitive.${t}`),n=te.forwardRef((i,a)=>{const{asChild:s,...o}=i,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ce.jsx(l,{...o,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),tse="Separator",zM="horizontal",rse=["horizontal","vertical"],qE=te.forwardRef((e,t)=>{const{decorative:r,orientation:n=zM,...i}=e,a=nse(n)?n:zM,o=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return ce.jsx(On.div,{"data-orientation":a,...o,...i,ref:t})});qE.displayName=tse;function nse(e){return rse.includes(e)}var $E=qE;const Pye=Object.freeze(Object.defineProperty({__proto__:null,Root:$E,Separator:qE},Symbol.toStringTag,{value:"Module"}));var Kx,vy="HoverCard",[a4,ise]=fa(vy,[rj]),by=rj(),[ase,xy]=a4(vy),UE=e=>{const{__scopeHoverCard:t,children:r,open:n,defaultOpen:i,onOpenChange:a,openDelay:s=700,closeDelay:o=300}=e,l=by(t),c=te.useRef(0),p=te.useRef(0),f=te.useRef(!1),d=te.useRef(!1),[h,v]=Os({prop:n,defaultProp:i??!1,onChange:a,caller:vy}),x=te.useCallback(()=>{clearTimeout(p.current),c.current=window.setTimeout(()=>v(!0),s)},[s,v]),y=te.useCallback(()=>{clearTimeout(c.current),!f.current&&!d.current&&(p.current=window.setTimeout(()=>v(!1),o))},[o,v]),m=te.useCallback(()=>v(!1),[v]);return te.useEffect(()=>()=>{clearTimeout(c.current),clearTimeout(p.current)},[]),ce.jsx(ase,{scope:t,open:h,onOpenChange:v,onOpen:x,onClose:y,onDismiss:m,hasSelectionRef:f,isPointerDownOnContentRef:d,children:ce.jsx(Cq,{...l,children:r})})};UE.displayName=vy;var s4="HoverCardTrigger",VE=te.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=xy(s4,r),a=by(r);return ce.jsx(Iq,{asChild:!0,...a,children:ce.jsx(pr.a,{"data-state":i.open?"open":"closed",...n,ref:t,onPointerEnter:Qt(e.onPointerEnter,hm(i.onOpen)),onPointerLeave:Qt(e.onPointerLeave,hm(i.onClose)),onFocus:Qt(e.onFocus,i.onOpen),onBlur:Qt(e.onBlur,i.onClose),onTouchStart:Qt(e.onTouchStart,s=>s.preventDefault())})})});VE.displayName=s4;var KE="HoverCardPortal",[sse,ose]=a4(KE,{forceMount:void 0}),zE=e=>{const{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,a=xy(KE,t);return ce.jsx(sse,{scope:t,forceMount:r,children:ce.jsx(ca,{present:r||a.open,children:ce.jsx(Nq,{asChild:!0,container:i,children:n})})})};zE.displayName=KE;var dm="HoverCardContent",WE=te.forwardRef((e,t)=>{const r=ose(dm,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,a=xy(dm,e.__scopeHoverCard);return ce.jsx(ca,{present:n||a.open,children:ce.jsx(lse,{"data-state":a.open?"open":"closed",...i,onPointerEnter:Qt(e.onPointerEnter,hm(a.onOpen)),onPointerLeave:Qt(e.onPointerLeave,hm(a.onClose)),ref:t})})});WE.displayName=dm;var lse=te.forwardRef((e,t)=>{const{__scopeHoverCard:r,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,...o}=e,l=xy(dm,r),c=by(r),p=te.useRef(null),f=Nr(t,p),[d,h]=te.useState(!1);return te.useEffect(()=>{if(d){const v=document.body;return Kx=v.style.userSelect||v.style.webkitUserSelect,v.style.userSelect="none",v.style.webkitUserSelect="none",()=>{v.style.userSelect=Kx,v.style.webkitUserSelect=Kx}}},[d]),te.useEffect(()=>{if(p.current){const v=()=>{h(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var y;((y=document.getSelection())==null?void 0:y.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",v),()=>{document.removeEventListener("pointerup",v),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),te.useEffect(()=>{p.current&&cse(p.current).forEach(x=>x.setAttribute("tabindex","-1"))}),ce.jsx(Dq,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:Qt(a,v=>{v.preventDefault()}),onDismiss:l.onDismiss,children:ce.jsx(Mq,{...c,...o,onPointerDown:Qt(o.onPointerDown,v=>{v.currentTarget.contains(v.target)&&h(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:f,style:{...o.style,userSelect:d?"text":void 0,WebkitUserSelect:d?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),use="HoverCardArrow",HE=te.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=by(r);return ce.jsx(kq,{...i,...n,ref:t})});HE.displayName=use;function hm(e){return t=>t.pointerType==="touch"?void 0:e()}function cse(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}var o4=UE,l4=VE,fse=zE,YE=WE,pse=HE;const Aye=Object.freeze(Object.defineProperty({__proto__:null,Arrow:pse,Content:YE,HoverCard:UE,HoverCardArrow:HE,HoverCardContent:WE,HoverCardPortal:zE,HoverCardTrigger:VE,Portal:fse,Root:o4,Trigger:l4,createHoverCardScope:ise},Symbol.toStringTag,{value:"Module"}));var u4="AlertDialog",[dse,hse]=fa(u4,[nj]),ya=nj(),XE=e=>{const{__scopeAlertDialog:t,...r}=e,n=ya(t);return ce.jsx(wm,{...n,...r,modal:!0})};XE.displayName=u4;var mse="AlertDialogTrigger",GE=te.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=ya(r);return ce.jsx(m1,{...i,...n,ref:t})});GE.displayName=mse;var yse="AlertDialogPortal",JE=e=>{const{__scopeAlertDialog:t,...r}=e,n=ya(t);return ce.jsx(_m,{...n,...r})};JE.displayName=yse;var gse="AlertDialogOverlay",QE=te.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=ya(r);return ce.jsx(vu,{...i,...n,ref:t})});QE.displayName=gse;var Rl="AlertDialogContent",[vse,bse]=dse(Rl),xse=jq("AlertDialogContent"),ZE=te.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...i}=e,a=ya(r),s=te.useRef(null),o=Nr(t,s),l=te.useRef(null);return ce.jsx(Lq,{contentName:Rl,titleName:c4,docsSlug:"alert-dialog",children:ce.jsx(vse,{scope:r,cancelRef:l,children:ce.jsxs(gu,{role:"alertdialog",...a,...i,ref:o,onOpenAutoFocus:Qt(i.onOpenAutoFocus,c=>{var p;c.preventDefault(),(p=l.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[ce.jsx(xse,{children:n}),ce.jsx(Sse,{contentRef:s})]})})})});ZE.displayName=Rl;var c4="AlertDialogTitle",eP=te.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=ya(r);return ce.jsx(Gf,{...i,...n,ref:t})});eP.displayName=c4;var f4="AlertDialogDescription",tP=te.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=ya(r);return ce.jsx(Xf,{...i,...n,ref:t})});tP.displayName=f4;var Tse="AlertDialogAction",rP=te.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=ya(r);return ce.jsx(yu,{...i,...n,ref:t})});rP.displayName=Tse;var p4="AlertDialogCancel",nP=te.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:i}=bse(p4,r),a=ya(r),s=Nr(t,i);return ce.jsx(yu,{...a,...n,ref:s})});nP.displayName=p4;var Sse=({contentRef:e})=>{const t=`\`${Rl}\` requires a description for the component to be accessible for screen reader users.
You can add a description to the \`${Rl}\` by passing a \`${f4}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Rl}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return te.useEffect(()=>{var n;const r=document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))},[t,e]),null},d4=XE,h4=GE,m4=JE,iP=QE,aP=ZE,sP=rP,oP=nP,lP=eP,uP=tP;const wye=Object.freeze(Object.defineProperty({__proto__:null,Action:sP,AlertDialog:XE,AlertDialogAction:rP,AlertDialogCancel:nP,AlertDialogContent:ZE,AlertDialogDescription:tP,AlertDialogOverlay:QE,AlertDialogPortal:JE,AlertDialogTitle:eP,AlertDialogTrigger:GE,Cancel:oP,Content:aP,Description:uP,Overlay:iP,Portal:m4,Root:d4,Title:lP,Trigger:h4,createAlertDialogScope:hse},Symbol.toStringTag,{value:"Module"}));var Ese="Label",cP=te.forwardRef((e,t)=>ce.jsx(On.label,{...e,ref:t,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));cP.displayName=Ese;var fP=cP;const _ye=Object.freeze(Object.defineProperty({__proto__:null,Label:cP,Root:fP},Symbol.toStringTag,{value:"Module"}));var Ty="Switch",[Pse,Ase]=fa(Ty),[wse,_se]=Pse(Ty),pP=te.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:i,defaultChecked:a,required:s,disabled:o,value:l="on",onCheckedChange:c,form:p,...f}=e,[d,h]=te.useState(null),v=Nr(t,A=>h(A)),x=te.useRef(!1),y=d?p||!!d.closest("form"):!0,[m,T]=Os({prop:i,defaultProp:a??!1,onChange:c,caller:Ty});return ce.jsxs(wse,{scope:r,checked:m,disabled:o,children:[ce.jsx(pr.button,{type:"button",role:"switch","aria-checked":m,"aria-required":s,"data-state":v4(m),"data-disabled":o?"":void 0,disabled:o,value:l,...f,ref:v,onClick:Qt(e.onClick,A=>{T(E=>!E),y&&(x.current=A.isPropagationStopped(),x.current||A.stopPropagation())})}),y&&ce.jsx(g4,{control:d,bubbles:!x.current,name:n,value:l,checked:m,required:s,disabled:o,form:p,style:{transform:"translateX(-100%)"}})]})});pP.displayName=Ty;var y4="SwitchThumb",dP=te.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,i=_se(y4,r);return ce.jsx(pr.span,{"data-state":v4(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t})});dP.displayName=y4;var Ose="SwitchBubbleInput",g4=te.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...i},a)=>{const s=te.useRef(null),o=Nr(s,a),l=y1(r),c=g1(t);return te.useEffect(()=>{const p=s.current;if(!p)return;const f=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==r&&h){const v=new Event("click",{bubbles:n});h.call(p,r),p.dispatchEvent(v)}},[l,r,n]),ce.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:o,style:{...i.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});g4.displayName=Ose;function v4(e){return e?"checked":"unchecked"}var hP=pP,b4=dP;const Oye=Object.freeze(Object.defineProperty({__proto__:null,Root:hP,Switch:pP,SwitchThumb:dP,Thumb:b4,createSwitchScope:Ase},Symbol.toStringTag,{value:"Module"}));function Cse(e,t){return te.useReducer((r,n)=>t[r][n]??r,e)}var mP="ScrollArea",[x4,Ise]=fa(mP),[kse,Kn]=x4(mP),yP=te.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:i,scrollHideDelay:a=600,...s}=e,[o,l]=te.useState(null),[c,p]=te.useState(null),[f,d]=te.useState(null),[h,v]=te.useState(null),[x,y]=te.useState(null),[m,T]=te.useState(0),[A,E]=te.useState(0),[P,_]=te.useState(!1),[I,k]=te.useState(!1),M=Nr(t,C=>l(C)),D=v1(i);return ce.jsx(kse,{scope:r,type:n,dir:D,scrollHideDelay:a,scrollArea:o,viewport:c,onViewportChange:p,content:f,onContentChange:d,scrollbarX:h,onScrollbarXChange:v,scrollbarXEnabled:P,onScrollbarXEnabledChange:_,scrollbarY:x,onScrollbarYChange:y,scrollbarYEnabled:I,onScrollbarYEnabledChange:k,onCornerWidthChange:T,onCornerHeightChange:E,children:ce.jsx(pr.div,{dir:D,...s,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":A+"px",...e.style}})})});yP.displayName=mP;var T4="ScrollAreaViewport",gP=te.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:i,...a}=e,s=Kn(T4,r),o=te.useRef(null),l=Nr(t,o,s.onViewportChange);return ce.jsxs(ce.Fragment,{children:[ce.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),ce.jsx(pr.div,{"data-radix-scroll-area-viewport":"",...a,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:ce.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});gP.displayName=T4;var Mi="ScrollAreaScrollbar",lp=te.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Kn(Mi,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=i,o=e.orientation==="horizontal";return te.useEffect(()=>(o?a(!0):s(!0),()=>{o?a(!1):s(!1)}),[o,a,s]),i.type==="hover"?ce.jsx(Nse,{...n,ref:t,forceMount:r}):i.type==="scroll"?ce.jsx(Dse,{...n,ref:t,forceMount:r}):i.type==="auto"?ce.jsx(S4,{...n,ref:t,forceMount:r}):i.type==="always"?ce.jsx(vP,{...n,ref:t}):null});lp.displayName=Mi;var Nse=te.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Kn(Mi,e.__scopeScrollArea),[a,s]=te.useState(!1);return te.useEffect(()=>{const o=i.scrollArea;let l=0;if(o){const c=()=>{window.clearTimeout(l),s(!0)},p=()=>{l=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return o.addEventListener("pointerenter",c),o.addEventListener("pointerleave",p),()=>{window.clearTimeout(l),o.removeEventListener("pointerenter",c),o.removeEventListener("pointerleave",p)}}},[i.scrollArea,i.scrollHideDelay]),ce.jsx(ca,{present:r||a,children:ce.jsx(S4,{"data-state":a?"visible":"hidden",...n,ref:t})})}),Dse=te.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Kn(Mi,e.__scopeScrollArea),a=e.orientation==="horizontal",s=Py(()=>l("SCROLL_END"),100),[o,l]=Cse("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return te.useEffect(()=>{if(o==="idle"){const c=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(c)}},[o,i.scrollHideDelay,l]),te.useEffect(()=>{const c=i.viewport,p=a?"scrollLeft":"scrollTop";if(c){let f=c[p];const d=()=>{const h=c[p];f!==h&&(l("SCROLL"),s()),f=h};return c.addEventListener("scroll",d),()=>c.removeEventListener("scroll",d)}},[i.viewport,a,l,s]),ce.jsx(ca,{present:r||o!=="hidden",children:ce.jsx(vP,{"data-state":o==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Qt(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Qt(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),S4=te.forwardRef((e,t)=>{const r=Kn(Mi,e.__scopeScrollArea),{forceMount:n,...i}=e,[a,s]=te.useState(!1),o=e.orientation==="horizontal",l=Py(()=>{if(r.viewport){const c=r.viewport.offsetWidth<r.viewport.scrollWidth,p=r.viewport.offsetHeight<r.viewport.scrollHeight;s(o?c:p)}},10);return hu(r.viewport,l),hu(r.content,l),ce.jsx(ca,{present:n||a,children:ce.jsx(vP,{"data-state":a?"visible":"hidden",...i,ref:t})})}),vP=te.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,i=Kn(Mi,e.__scopeScrollArea),a=te.useRef(null),s=te.useRef(0),[o,l]=te.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=A4(o.viewport,o.content),p={...n,sizes:o,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:d=>a.current=d,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:d=>s.current=d};function f(d,h){return Fse(d,s.current,o,h)}return r==="horizontal"?ce.jsx(Mse,{...p,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const d=i.viewport.scrollLeft,h=WM(d,o,i.dir);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:d=>{i.viewport&&(i.viewport.scrollLeft=d)},onDragScroll:d=>{i.viewport&&(i.viewport.scrollLeft=f(d,i.dir))}}):r==="vertical"?ce.jsx(Lse,{...p,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const d=i.viewport.scrollTop,h=WM(d,o);a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:d=>{i.viewport&&(i.viewport.scrollTop=d)},onDragScroll:d=>{i.viewport&&(i.viewport.scrollTop=f(d))}}):null}),Mse=te.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...i}=e,a=Kn(Mi,e.__scopeScrollArea),[s,o]=te.useState(),l=te.useRef(null),c=Nr(t,l,a.onScrollbarXChange);return te.useEffect(()=>{l.current&&o(getComputedStyle(l.current))},[l]),ce.jsx(P4,{"data-orientation":"horizontal",...i,ref:c,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ey(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,f)=>{if(a.viewport){const d=a.viewport.scrollLeft+p.deltaX;e.onWheelScroll(d),_4(d,f)&&p.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:ym(s.paddingLeft),paddingEnd:ym(s.paddingRight)}})}})}),Lse=te.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...i}=e,a=Kn(Mi,e.__scopeScrollArea),[s,o]=te.useState(),l=te.useRef(null),c=Nr(t,l,a.onScrollbarYChange);return te.useEffect(()=>{l.current&&o(getComputedStyle(l.current))},[l]),ce.jsx(P4,{"data-orientation":"vertical",...i,ref:c,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ey(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,f)=>{if(a.viewport){const d=a.viewport.scrollTop+p.deltaY;e.onWheelScroll(d),_4(d,f)&&p.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:ym(s.paddingTop),paddingEnd:ym(s.paddingBottom)}})}})}),[jse,E4]=x4(Mi),P4=te.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:i,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:o,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:p,onResize:f,...d}=e,h=Kn(Mi,r),[v,x]=te.useState(null),y=Nr(t,M=>x(M)),m=te.useRef(null),T=te.useRef(""),A=h.viewport,E=n.content-n.viewport,P=vs(p),_=vs(l),I=Py(f,10);function k(M){if(m.current){const D=M.clientX-m.current.left,C=M.clientY-m.current.top;c({x:D,y:C})}}return te.useEffect(()=>{const M=D=>{const C=D.target;(v==null?void 0:v.contains(C))&&P(D,E)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[A,v,E,P]),te.useEffect(_,[n,_]),hu(v,I),hu(h.content,I),ce.jsx(jse,{scope:r,scrollbar:v,hasThumb:i,onThumbChange:vs(a),onThumbPointerUp:vs(s),onThumbPositionChange:_,onThumbPointerDown:vs(o),children:ce.jsx(pr.div,{...d,ref:y,style:{position:"absolute",...d.style},onPointerDown:Qt(e.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),m.current=v.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),k(M))}),onPointerMove:Qt(e.onPointerMove,k),onPointerUp:Qt(e.onPointerUp,M=>{const D=M.target;D.hasPointerCapture(M.pointerId)&&D.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=T.current,h.viewport&&(h.viewport.style.scrollBehavior=""),m.current=null})})})}),mm="ScrollAreaThumb",Sy=te.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=E4(mm,e.__scopeScrollArea);return ce.jsx(ca,{present:r||i.hasThumb,children:ce.jsx(Rse,{ref:t,...n})})}),Rse=te.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...i}=e,a=Kn(mm,r),s=E4(mm,r),{onThumbPositionChange:o}=s,l=Nr(t,f=>s.onThumbChange(f)),c=te.useRef(void 0),p=Py(()=>{c.current&&(c.current(),c.current=void 0)},100);return te.useEffect(()=>{const f=a.viewport;if(f){const d=()=>{if(p(),!c.current){const h=qse(f,o);c.current=h,o()}};return o(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[a.viewport,p,o]),ce.jsx(pr.div,{"data-state":s.hasThumb?"visible":"hidden",...i,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Qt(e.onPointerDownCapture,f=>{const h=f.target.getBoundingClientRect(),v=f.clientX-h.left,x=f.clientY-h.top;s.onThumbPointerDown({x:v,y:x})}),onPointerUp:Qt(e.onPointerUp,s.onThumbPointerUp)})});Sy.displayName=mm;var bP="ScrollAreaCorner",xP=te.forwardRef((e,t)=>{const r=Kn(bP,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?ce.jsx(Bse,{...e,ref:t}):null});xP.displayName=bP;var Bse=te.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,i=Kn(bP,r),[a,s]=te.useState(0),[o,l]=te.useState(0),c=!!(a&&o);return hu(i.scrollbarX,()=>{var f;const p=((f=i.scrollbarX)==null?void 0:f.offsetHeight)||0;i.onCornerHeightChange(p),l(p)}),hu(i.scrollbarY,()=>{var f;const p=((f=i.scrollbarY)==null?void 0:f.offsetWidth)||0;i.onCornerWidthChange(p),s(p)}),c?ce.jsx(pr.div,{...n,ref:t,style:{width:a,height:o,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function ym(e){return e?parseInt(e,10):0}function A4(e,t){const r=e/t;return isNaN(r)?0:r}function Ey(e){const t=A4(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Fse(e,t,r,n="ltr"){const i=Ey(r),a=i/2,s=t||a,o=i-s,l=r.scrollbar.paddingStart+s,c=r.scrollbar.size-r.scrollbar.paddingEnd-o,p=r.content-r.viewport,f=n==="ltr"?[0,p]:[p*-1,0];return w4([l,c],f)(e)}function WM(e,t,r="ltr"){const n=Ey(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,s=t.content-t.viewport,o=a-n,l=r==="ltr"?[0,s]:[s*-1,0],c=Rq(e,l);return w4([0,s],[0,o])(c)}function w4(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function _4(e,t){return e>0&&e<t}var qse=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function i(){const a={left:e.scrollLeft,top:e.scrollTop},s=r.left!==a.left,o=r.top!==a.top;(s||o)&&t(),r=a,n=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(n)};function Py(e,t){const r=vs(e),n=te.useRef(0);return te.useEffect(()=>()=>window.clearTimeout(n.current),[]),te.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function hu(e,t){const r=vs(t);of(()=>{let n=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return i.observe(e),()=>{window.cancelAnimationFrame(n),i.unobserve(e)}}},[e,r])}var TP=yP,O4=gP,$se=lp,Use=Sy,C4=xP;const Cye=Object.freeze(Object.defineProperty({__proto__:null,Corner:C4,Root:TP,ScrollArea:yP,ScrollAreaCorner:xP,ScrollAreaScrollbar:lp,ScrollAreaThumb:Sy,ScrollAreaViewport:gP,Scrollbar:$se,Thumb:Use,Viewport:O4,createScrollAreaScope:Ise},Symbol.toStringTag,{value:"Module"}));var Ay="Collapsible",[Vse,SP]=fa(Ay),[Kse,EP]=Vse(Ay),PP=te.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:a,onOpenChange:s,...o}=e,[l,c]=Os({prop:n,defaultProp:i??!1,onChange:s,caller:Ay});return ce.jsx(Kse,{scope:r,disabled:a,contentId:Es(),open:l,onOpenToggle:te.useCallback(()=>c(p=>!p),[c]),children:ce.jsx(pr.div,{"data-state":wP(l),"data-disabled":a?"":void 0,...o,ref:t})})});PP.displayName=Ay;var I4="CollapsibleTrigger",wy=te.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,i=EP(I4,r);return ce.jsx(pr.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":wP(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:Qt(e.onClick,i.onOpenToggle)})});wy.displayName=I4;var AP="CollapsibleContent",_y=te.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=EP(AP,e.__scopeCollapsible);return ce.jsx(ca,{present:r||i.open,children:({present:a})=>ce.jsx(zse,{...n,ref:t,present:a})})});_y.displayName=AP;var zse=te.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:i,...a}=e,s=EP(AP,r),[o,l]=te.useState(n),c=te.useRef(null),p=Nr(t,c),f=te.useRef(0),d=f.current,h=te.useRef(0),v=h.current,x=s.open||o,y=te.useRef(x),m=te.useRef(void 0);return te.useEffect(()=>{const T=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(T)},[]),of(()=>{const T=c.current;if(T){m.current=m.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const A=T.getBoundingClientRect();f.current=A.height,h.current=A.width,y.current||(T.style.transitionDuration=m.current.transitionDuration,T.style.animationName=m.current.animationName),l(n)}},[s.open,n]),ce.jsx(pr.div,{"data-state":wP(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!x,...a,ref:p,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:x&&i})});function wP(e){return e?"open":"closed"}var _P=PP,k4=wy,N4=_y;const Iye=Object.freeze(Object.defineProperty({__proto__:null,Collapsible:PP,CollapsibleContent:_y,CollapsibleTrigger:wy,Content:N4,Root:_P,Trigger:k4,createCollapsibleScope:SP},Symbol.toStringTag,{value:"Module"}));function Wse(e,t=[]){let r=[];function n(a,s){const o=te.createContext(s);o.displayName=a+"Context";const l=r.length;r=[...r,s];const c=f=>{var m;const{scope:d,children:h,...v}=f,x=((m=d==null?void 0:d[e])==null?void 0:m[l])||o,y=te.useMemo(()=>v,Object.values(v));return ce.jsx(x.Provider,{value:y,children:h})};c.displayName=a+"Provider";function p(f,d){var x;const h=((x=d==null?void 0:d[e])==null?void 0:x[l])||o,v=te.useContext(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,p]}const i=()=>{const a=r.map(s=>te.createContext(s));return function(o){const l=(o==null?void 0:o[e])||a;return te.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[n,Hse(i,...t)]}function Hse(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=n.reduce((o,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...o,...f}},{});return te.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var zx={exports:{}},Wx={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var HM;function Yse(){if(HM)return Wx;HM=1;var e=tj();function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function o(f,d){var h=d(),v=n({inst:{value:h,getSnapshot:d}}),x=v[0].inst,y=v[1];return a(function(){x.value=h,x.getSnapshot=d,l(x)&&y({inst:x})},[f,h,d]),i(function(){return l(x)&&y({inst:x}),f(function(){l(x)&&y({inst:x})})},[f]),s(h),h}function l(f){var d=f.getSnapshot;f=f.value;try{var h=d();return!r(f,h)}catch{return!0}}function c(f,d){return d()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:o;return Wx.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Wx}var YM;function Xse(){return YM||(YM=1,zx.exports=Yse()),zx.exports}var Gse=Xse();function Jse(){return Gse.useSyncExternalStore(Qse,()=>!0,()=>!1)}function Qse(){return()=>{}}var OP="Avatar",[Zse,eoe]=Wse(OP),[toe,D4]=Zse(OP),CP=te.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[i,a]=te.useState("idle");return ce.jsx(toe,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:ce.jsx(On.span,{...n,ref:t})})});CP.displayName=OP;var M4="AvatarImage",IP=te.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...a}=e,s=D4(M4,r),o=roe(n,a),l=vs(c=>{i(c),s.onImageLoadingStatusChange(c)});return of(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?ce.jsx(On.img,{...a,ref:t,src:n}):null});IP.displayName=M4;var L4="AvatarFallback",kP=te.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...i}=e,a=D4(L4,r),[s,o]=te.useState(n===void 0);return te.useEffect(()=>{if(n!==void 0){const l=window.setTimeout(()=>o(!0),n);return()=>window.clearTimeout(l)}},[n]),s&&a.imageLoadingStatus!=="loaded"?ce.jsx(On.span,{...i,ref:t}):null});kP.displayName=L4;function XM(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function roe(e,{referrerPolicy:t,crossOrigin:r}){const n=Jse(),i=te.useRef(null),a=n?(i.current||(i.current=new window.Image),i.current):null,[s,o]=te.useState(()=>XM(a,e));return of(()=>{o(XM(a,e))},[a,e]),of(()=>{const l=f=>()=>{o(f)};if(!a)return;const c=l("loaded"),p=l("error");return a.addEventListener("load",c),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",c),a.removeEventListener("error",p)}},[a,r,t]),s}var NP=CP,DP=IP,MP=kP;const kye=Object.freeze(Object.defineProperty({__proto__:null,Avatar:CP,AvatarFallback:kP,AvatarImage:IP,Fallback:MP,Image:DP,Root:NP,createAvatarScope:eoe},Symbol.toStringTag,{value:"Module"}));var noe="v3",ioe=function(t){return t===3?"v3":t},j4="https://js.stripe.com",aoe="".concat(j4,"/v3"),soe=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,ooe=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;var loe=function(t){return soe.test(t)||ooe.test(t)},uoe=function(){for(var t=document.querySelectorAll('script[src^="'.concat(j4,'"]')),r=0;r<t.length;r++){var n=t[r];if(loe(n.src))return n}return null},GM=function(t){var r="",n=document.createElement("script");n.src="".concat(aoe).concat(r);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(n),n},coe=function(t,r){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"5.10.0",startTime:r})},Lc=null,Xd=null,Gd=null,foe=function(t){return function(r){t(new Error("Failed to load Stripe.js",{cause:r}))}},poe=function(t,r){return function(){window.Stripe?t(window.Stripe):r(new Error("Stripe.js not available"))}},doe=function(t){return Lc!==null?Lc:(Lc=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var i=uoe();if(!(i&&t)){if(!i)i=GM(t);else if(i&&Gd!==null&&Xd!==null){var a;i.removeEventListener("load",Gd),i.removeEventListener("error",Xd),(a=i.parentNode)===null||a===void 0||a.removeChild(i),i=GM(t)}}Gd=poe(r,n),Xd=foe(n),i.addEventListener("load",Gd),i.addEventListener("error",Xd)}catch(s){n(s);return}}),Lc.catch(function(r){return Lc=null,Promise.reject(r)}))},hoe=function(t,r,n){if(t===null)return null;var i=r[0],a=i.match(/^pk_test/),s=ioe(t.version),o=noe,l=t.apply(void 0,r);return coe(l,n),l},jc,R4=!1,B4=function(){return jc||(jc=doe(null).catch(function(t){return jc=null,Promise.reject(t)}),jc)};Promise.resolve().then(function(){return B4()}).catch(function(e){});var Nye=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];R4=!0;var i=Date.now();return B4().then(function(a){return hoe(a,r,i)})},up=e=>e.type==="checkbox",Uo=e=>e instanceof Date,Wr=e=>e==null;const LP=e=>typeof e=="object";var fr=e=>!Wr(e)&&!Array.isArray(e)&&LP(e)&&!Uo(e),F4=e=>fr(e)&&e.target?up(e.target)?e.target.checked:e.target.value:e,moe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,q4=(e,t)=>e.has(moe(t)),yoe=e=>{const t=e.constructor&&e.constructor.prototype;return fr(t)&&t.hasOwnProperty("isPrototypeOf")},jP=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Pr(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(jP&&(e instanceof Blob||e instanceof FileList))&&(r||fr(e)))if(t=r?[]:{},!r&&!yoe(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Pr(e[n]));else return e;return t}var cp=e=>Array.isArray(e)?e.filter(Boolean):[],Jt=e=>e===void 0,at=(e,t,r)=>{if(!t||!fr(e))return r;const n=cp(t.split(/[,[\].]+?/)).reduce((i,a)=>Wr(i)?i:i[a],e);return Jt(n)||n===e?Jt(e[t])?r:e[t]:n},Ln=e=>typeof e=="boolean",RP=e=>/^\w*$/.test(e),$4=e=>cp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Kt=(e,t,r)=>{let n=-1;const i=RP(t)?[t]:$4(t),a=i.length,s=a-1;for(;++n<a;){const o=i[n];let l=r;if(n!==s){const c=e[o];l=fr(c)||Array.isArray(c)?c:isNaN(+i[n+1])?{}:[]}if(o==="__proto__")return;e[o]=l,e=e[o]}return e};const gm={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Bn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Gi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},U4=Pe.createContext(null),Iu=()=>Pe.useContext(U4),goe=e=>{const{children:t,...r}=e;return Pe.createElement(U4.Provider,{value:r},t)};var V4=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Bn.all&&(t._proxyFormState[s]=!n||Bn.all),r&&(r[s]=!0),e[s]}});return i},zr=e=>fr(e)&&!Object.keys(e).length,K4=(e,t,r,n)=>{r(e);const{name:i,...a}=e;return zr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!n||Bn.all))},sn=e=>Array.isArray(e)?e:[e],z4=(e,t,r)=>!e||!t||e===t||sn(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Oy(e){const t=Pe.useRef(e);t.current=e,Pe.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function W4(e){const t=Iu(),{control:r=t.control,disabled:n,name:i,exact:a}=e||{},[s,o]=Pe.useState(r._formState),l=Pe.useRef(!0),c=Pe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),p=Pe.useRef(i);return p.current=i,Oy({disabled:n,next:f=>l.current&&z4(p.current,f.name,a)&&K4(f,c.current,r._updateFormState)&&o({...r._formState,...f}),subject:r._subjects.state}),Pe.useEffect(()=>(l.current=!0,c.current.isValid&&r._updateValid(!0),()=>{l.current=!1}),[r]),V4(s,r,c.current,!1)}var Pi=e=>typeof e=="string",H4=(e,t,r,n,i)=>Pi(e)?(n&&t.watch.add(e),at(r,e,i)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),at(r,a))):(n&&(t.watchAll=!0),r);function Y4(e){const t=Iu(),{control:r=t.control,name:n,defaultValue:i,disabled:a,exact:s}=e||{},o=Pe.useRef(n);o.current=n,Oy({disabled:a,subject:r._subjects.values,next:p=>{z4(o.current,p.name,s)&&c(Pr(H4(o.current,r._names,p.values||r._formValues,!1,i)))}});const[l,c]=Pe.useState(r._getWatch(n,i));return Pe.useEffect(()=>r._removeUnmounted()),l}function X4(e){const t=Iu(),{name:r,disabled:n,control:i=t.control,shouldUnregister:a}=e,s=q4(i._names.array,r),o=Y4({control:i,name:r,defaultValue:at(i._formValues,r,at(i._defaultValues,r,e.defaultValue)),exact:!0}),l=W4({control:i,name:r,exact:!0}),c=Pe.useRef(i.register(r,{...e.rules,value:o,...Ln(e.disabled)?{disabled:e.disabled}:{}}));return Pe.useEffect(()=>{const p=i._options.shouldUnregister||a,f=(d,h)=>{const v=at(i._fields,d);v&&v._f&&(v._f.mount=h)};if(f(r,!0),p){const d=Pr(at(i._options.defaultValues,r));Kt(i._defaultValues,r,d),Jt(at(i._formValues,r))&&Kt(i._formValues,r,d)}return()=>{(s?p&&!i._state.action:p)?i.unregister(r):f(r,!1)}},[r,i,s,a]),Pe.useEffect(()=>{at(i._fields,r)&&i._updateDisabledField({disabled:n,fields:i._fields,name:r,value:at(i._fields,r)._f.value})},[n,r,i]),{field:{name:r,value:o,...Ln(n)||l.disabled?{disabled:l.disabled||n}:{},onChange:Pe.useCallback(p=>c.current.onChange({target:{value:F4(p),name:r},type:gm.CHANGE}),[r]),onBlur:Pe.useCallback(()=>c.current.onBlur({target:{value:at(i._formValues,r),name:r},type:gm.BLUR}),[r,i]),ref:Pe.useCallback(p=>{const f=at(i._fields,r);f&&p&&(f._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:d=>p.setCustomValidity(d),reportValidity:()=>p.reportValidity()})},[i._fields,r])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!at(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!at(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!at(l.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!at(l.validatingFields,r)},error:{enumerable:!0,get:()=>at(l.errors,r)}})}}const voe=e=>e.render(X4(e)),G4=e=>{const t={};for(const r of Object.keys(e))if(LP(e[r])){const n=G4(e[r]);for(const i of Object.keys(n))t[`${r}.${i}`]=n[i]}else t[r]=e[r];return t},boe="post";function xoe(e){const t=Iu(),[r,n]=Pe.useState(!1),{control:i=t.control,onSubmit:a,children:s,action:o,method:l=boe,headers:c,encType:p,onError:f,render:d,onSuccess:h,validateStatus:v,...x}=e,y=async m=>{let T=!1,A="";await i.handleSubmit(async E=>{const P=new FormData;let _="";try{_=JSON.stringify(E)}catch{}const I=G4(i._formValues);for(const k in I)P.append(k,I[k]);if(a&&await a({data:E,event:m,method:l,formData:P,formDataJson:_}),o)try{const k=[c&&c["Content-Type"],p].some(D=>D&&D.includes("json")),M=await fetch(o,{method:l,headers:{...c,...p?{"Content-Type":p}:{}},body:k?_:P});M&&(v?!v(M.status):M.status<200||M.status>=300)?(T=!0,f&&f({response:M}),A=String(M.status)):h&&h({response:M})}catch(k){T=!0,f&&f({error:k})}})(m),T&&e.control&&(e.control._subjects.state.next({isSubmitSuccessful:!1}),e.control.setError("root.server",{type:A}))};return Pe.useEffect(()=>{n(!0)},[]),d?Pe.createElement(Pe.Fragment,null,d({submit:y})):Pe.createElement("form",{noValidate:r,action:o,method:l,encType:p,onSubmit:y,...x},s)}var J4=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},hs=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=(Math.random()*16+e)%16|0;return(t=="x"?r:r&3|8).toString(16)})},Hx=(e,t,r={})=>r.shouldFocus||Jt(r.shouldFocus)?r.focusName||`${e}.${Jt(r.focusIndex)?t:r.focusIndex}.`:"",tf=e=>({isOnSubmit:!e||e===Bn.onSubmit,isOnBlur:e===Bn.onBlur,isOnChange:e===Bn.onChange,isOnAll:e===Bn.all,isOnTouch:e===Bn.onTouched}),HS=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Bl=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const a=at(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!n)return!0;if(s.ref&&t(s.ref,s.name)&&!n)return!0;if(Bl(o,t))break}else if(fr(o)&&Bl(o,t))break}}};var Q4=(e,t,r)=>{const n=sn(at(e,r));return Kt(n,"root",t[r]),Kt(e,r,n),e},BP=e=>e.type==="file",xi=e=>typeof e=="function",vm=e=>{if(!jP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},lh=e=>Pi(e),FP=e=>e.type==="radio",bm=e=>e instanceof RegExp;const JM={value:!1,isValid:!1},QM={value:!0,isValid:!0};var Z4=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Jt(e[0].attributes.value)?Jt(e[0].value)||e[0].value===""?QM:{value:e[0].value,isValid:!0}:QM:JM}return JM};const ZM={isValid:!1,value:null};var e5=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,ZM):ZM;function eL(e,t,r="validate"){if(lh(e)||Array.isArray(e)&&e.every(lh)||Ln(e)&&!e)return{type:r,message:lh(e)?e:"",ref:t}}var vl=e=>fr(e)&&!bm(e)?e:{value:e,message:""},YS=async(e,t,r,n,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:c,min:p,max:f,pattern:d,validate:h,name:v,valueAsNumber:x,mount:y,disabled:m}=e._f,T=at(t,v);if(!y||m)return{};const A=s?s[0]:a,E=L=>{n&&A.reportValidity&&(A.setCustomValidity(Ln(L)?"":L||""),A.reportValidity())},P={},_=FP(a),I=up(a),k=_||I,M=(x||BP(a))&&Jt(a.value)&&Jt(T)||vm(a)&&a.value===""||T===""||Array.isArray(T)&&!T.length,D=J4.bind(null,v,r,P),C=(L,q,$,z=Gi.maxLength,Q=Gi.minLength)=>{const V=L?q:$;P[v]={type:L?z:Q,message:V,ref:a,...D(L?z:Q,V)}};if(i?!Array.isArray(T)||!T.length:o&&(!k&&(M||Wr(T))||Ln(T)&&!T||I&&!Z4(s).isValid||_&&!e5(s).isValid)){const{value:L,message:q}=lh(o)?{value:!!o,message:o}:vl(o);if(L&&(P[v]={type:Gi.required,message:q,ref:A,...D(Gi.required,q)},!r))return E(q),P}if(!M&&(!Wr(p)||!Wr(f))){let L,q;const $=vl(f),z=vl(p);if(!Wr(T)&&!isNaN(T)){const Q=a.valueAsNumber||T&&+T;Wr($.value)||(L=Q>$.value),Wr(z.value)||(q=Q<z.value)}else{const Q=a.valueAsDate||new Date(T),V=N=>new Date(new Date().toDateString()+" "+N),X=a.type=="time",U=a.type=="week";Pi($.value)&&T&&(L=X?V(T)>V($.value):U?T>$.value:Q>new Date($.value)),Pi(z.value)&&T&&(q=X?V(T)<V(z.value):U?T<z.value:Q<new Date(z.value))}if((L||q)&&(C(!!L,$.message,z.message,Gi.max,Gi.min),!r))return E(P[v].message),P}if((l||c)&&!M&&(Pi(T)||i&&Array.isArray(T))){const L=vl(l),q=vl(c),$=!Wr(L.value)&&T.length>+L.value,z=!Wr(q.value)&&T.length<+q.value;if(($||z)&&(C($,L.message,q.message),!r))return E(P[v].message),P}if(d&&!M&&Pi(T)){const{value:L,message:q}=vl(d);if(bm(L)&&!T.match(L)&&(P[v]={type:Gi.pattern,message:q,ref:a,...D(Gi.pattern,q)},!r))return E(q),P}if(h){if(xi(h)){const L=await h(T,t),q=eL(L,A);if(q&&(P[v]={...q,...D(Gi.validate,q.message)},!r))return E(q.message),P}else if(fr(h)){let L={};for(const q in h){if(!zr(L)&&!r)break;const $=eL(await h[q](T,t),A,q);$&&(L={...$,...D(q,$.message)},E($.message),r&&(P[v]=L))}if(!zr(L)&&(P[v]={ref:A,...L},!r))return P}}return E(!0),P},Yx=(e,t)=>[...e,...sn(t)],Xx=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Gx(e,t,r){return[...e.slice(0,t),...sn(r),...e.slice(t)]}var Jx=(e,t,r)=>Array.isArray(e)?(Jt(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],Qx=(e,t)=>[...sn(t),...sn(e)];function Toe(e,t){let r=0;const n=[...e];for(const i of t)n.splice(i-r,1),r++;return cp(n).length?n:[]}var Zx=(e,t)=>Jt(t)?[]:Toe(e,sn(t).sort((r,n)=>r-n)),eT=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function Soe(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=Jt(e)?n++:e[t[n++]];return e}function Eoe(e){for(const t in e)if(e.hasOwnProperty(t)&&!Jt(e[t]))return!1;return!0}function gr(e,t){const r=Array.isArray(t)?t:RP(t)?[t]:$4(t),n=r.length===1?e:Soe(e,r),i=r.length-1,a=r[i];return n&&delete n[a],i!==0&&(fr(n)&&zr(n)||Array.isArray(n)&&Eoe(n))&&gr(e,r.slice(0,-1)),e}var tL=(e,t,r)=>(e[t]=r,e);function Poe(e){const t=Iu(),{control:r=t.control,name:n,keyName:i="id",shouldUnregister:a}=e,[s,o]=Pe.useState(r._getFieldArray(n)),l=Pe.useRef(r._getFieldArray(n).map(hs)),c=Pe.useRef(s),p=Pe.useRef(n),f=Pe.useRef(!1);p.current=n,c.current=s,r._names.array.add(n),e.rules&&r.register(n,e.rules),Oy({next:({values:P,name:_})=>{if(_===p.current||!_){const I=at(P,p.current);Array.isArray(I)&&(o(I),l.current=I.map(hs))}},subject:r._subjects.array});const d=Pe.useCallback(P=>{f.current=!0,r._updateFieldArray(n,P)},[r,n]),h=(P,_)=>{const I=sn(Pr(P)),k=Yx(r._getFieldArray(n),I);r._names.focus=Hx(n,k.length-1,_),l.current=Yx(l.current,I.map(hs)),d(k),o(k),r._updateFieldArray(n,k,Yx,{argA:Xx(P)})},v=(P,_)=>{const I=sn(Pr(P)),k=Qx(r._getFieldArray(n),I);r._names.focus=Hx(n,0,_),l.current=Qx(l.current,I.map(hs)),d(k),o(k),r._updateFieldArray(n,k,Qx,{argA:Xx(P)})},x=P=>{const _=Zx(r._getFieldArray(n),P);l.current=Zx(l.current,P),d(_),o(_),r._updateFieldArray(n,_,Zx,{argA:P})},y=(P,_,I)=>{const k=sn(Pr(_)),M=Gx(r._getFieldArray(n),P,k);r._names.focus=Hx(n,P,I),l.current=Gx(l.current,P,k.map(hs)),d(M),o(M),r._updateFieldArray(n,M,Gx,{argA:P,argB:Xx(_)})},m=(P,_)=>{const I=r._getFieldArray(n);eT(I,P,_),eT(l.current,P,_),d(I),o(I),r._updateFieldArray(n,I,eT,{argA:P,argB:_},!1)},T=(P,_)=>{const I=r._getFieldArray(n);Jx(I,P,_),Jx(l.current,P,_),d(I),o(I),r._updateFieldArray(n,I,Jx,{argA:P,argB:_},!1)},A=(P,_)=>{const I=Pr(_),k=tL(r._getFieldArray(n),P,I);l.current=[...k].map((M,D)=>!M||D===P?hs():l.current[D]),d(k),o([...k]),r._updateFieldArray(n,k,tL,{argA:P,argB:I},!0,!1)},E=P=>{const _=sn(Pr(P));l.current=_.map(hs),d([..._]),o([..._]),r._updateFieldArray(n,[..._],I=>I,{},!0,!1)};return Pe.useEffect(()=>{if(r._state.action=!1,HS(n,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!tf(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(P=>{const _=at(P.errors,n),I=at(r._formState.errors,n);(I?!_&&I.type||_&&(I.type!==_.type||I.message!==_.message):_&&_.type)&&(_?Kt(r._formState.errors,n,_):gr(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const P=at(r._fields,n);P&&P._f&&!(tf(r._options.reValidateMode).isOnSubmit&&tf(r._options.mode).isOnSubmit)&&YS(P,r._formValues,r._options.criteriaMode===Bn.all,r._options.shouldUseNativeValidation,!0).then(_=>!zr(_)&&r._subjects.state.next({errors:Q4(r._formState.errors,_,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&Bl(r._fields,(P,_)=>{if(r._names.focus&&_.startsWith(r._names.focus)&&P.focus)return P.focus(),1}),r._names.focus="",r._updateValid(),f.current=!1},[s,n,r]),Pe.useEffect(()=>(!at(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||a)&&r.unregister(n)}),[n,r,i,a]),{swap:Pe.useCallback(m,[d,n,r]),move:Pe.useCallback(T,[d,n,r]),prepend:Pe.useCallback(v,[d,n,r]),append:Pe.useCallback(h,[d,n,r]),remove:Pe.useCallback(x,[d,n,r]),insert:Pe.useCallback(y,[d,n,r]),update:Pe.useCallback(A,[d,n,r]),replace:Pe.useCallback(E,[d,n,r]),fields:Pe.useMemo(()=>s.map((P,_)=>({...P,[i]:l.current[_]||hs()})),[s,i])}}var tT=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},XS=e=>Wr(e)||!LP(e);function xs(e,t){if(XS(e)||XS(t))return e===t;if(Uo(e)&&Uo(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const a=e[i];if(!n.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Uo(a)&&Uo(s)||fr(a)&&fr(s)||Array.isArray(a)&&Array.isArray(s)?!xs(a,s):a!==s)return!1}}return!0}var t5=e=>e.type==="select-multiple",Aoe=e=>FP(e)||up(e),rT=e=>vm(e)&&e.isConnected,r5=e=>{for(const t in e)if(xi(e[t]))return!0;return!1};function xm(e,t={}){const r=Array.isArray(e);if(fr(e)||r)for(const n in e)Array.isArray(e[n])||fr(e[n])&&!r5(e[n])?(t[n]=Array.isArray(e[n])?[]:{},xm(e[n],t[n])):Wr(e[n])||(t[n]=!0);return t}function n5(e,t,r){const n=Array.isArray(e);if(fr(e)||n)for(const i in e)Array.isArray(e[i])||fr(e[i])&&!r5(e[i])?Jt(t)||XS(r[i])?r[i]=Array.isArray(e[i])?xm(e[i],[]):{...xm(e[i])}:n5(e[i],Wr(t)?{}:t[i],r[i]):r[i]=!xs(e[i],t[i]);return r}var Rc=(e,t)=>n5(e,t,xm(t)),i5=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Jt(e)?e:t?e===""?NaN:e&&+e:r&&Pi(e)?new Date(e):n?n(e):e;function nT(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return BP(t)?t.files:FP(t)?e5(e.refs).value:t5(t)?[...t.selectedOptions].map(({value:r})=>r):up(t)?Z4(e.refs).value:i5(Jt(t.value)?e.ref.value:t.value,e)}var woe=(e,t,r,n)=>{const i={};for(const a of e){const s=at(t,a);s&&Kt(i,a,s._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},Bc=e=>Jt(e)?e:bm(e)?e.source:fr(e)?bm(e.value)?e.value.source:e.value:e;const rL="AsyncFunction";var _oe=e=>(!e||!e.validate)&&!!(xi(e.validate)&&e.validate.constructor.name===rL||fr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===rL)),Ooe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function nL(e,t,r){const n=at(e,r);if(n||RP(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const a=i.join("."),s=at(t,a),o=at(e,a);if(s&&!Array.isArray(s)&&r!==a)return{name:r};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:r}}var Coe=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,Ioe=(e,t)=>!cp(at(e,t)).length&&gr(e,t);const koe={mode:Bn.onSubmit,reValidateMode:Bn.onChange,shouldFocusError:!0};function Noe(e={}){let t={...koe,...e},r={submitCount:0,isDirty:!1,isLoading:xi(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=fr(t.defaultValues)||fr(t.values)?Pr(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Pr(i),s={action:!1,mount:!1,watch:!1},o={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:tT(),array:tT(),state:tT()},d=tf(t.mode),h=tf(t.reValidateMode),v=t.criteriaMode===Bn.all,x=re=>ue=>{clearTimeout(c),c=setTimeout(re,ue)},y=async re=>{if(!t.disabled&&(p.isValid||re)){const ue=t.resolver?zr((await k()).errors):await D(n,!0);ue!==r.isValid&&f.state.next({isValid:ue})}},m=(re,ue)=>{!t.disabled&&(p.isValidating||p.validatingFields)&&((re||Array.from(o.mount)).forEach(Te=>{Te&&(ue?Kt(r.validatingFields,Te,ue):gr(r.validatingFields,Te))}),f.state.next({validatingFields:r.validatingFields,isValidating:!zr(r.validatingFields)}))},T=(re,ue=[],Te,ke,Oe=!0,Me=!0)=>{if(ke&&Te&&!t.disabled){if(s.action=!0,Me&&Array.isArray(at(n,re))){const Ke=Te(at(n,re),ke.argA,ke.argB);Oe&&Kt(n,re,Ke)}if(Me&&Array.isArray(at(r.errors,re))){const Ke=Te(at(r.errors,re),ke.argA,ke.argB);Oe&&Kt(r.errors,re,Ke),Ioe(r.errors,re)}if(p.touchedFields&&Me&&Array.isArray(at(r.touchedFields,re))){const Ke=Te(at(r.touchedFields,re),ke.argA,ke.argB);Oe&&Kt(r.touchedFields,re,Ke)}p.dirtyFields&&(r.dirtyFields=Rc(i,a)),f.state.next({name:re,isDirty:L(re,ue),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Kt(a,re,ue)},A=(re,ue)=>{Kt(r.errors,re,ue),f.state.next({errors:r.errors})},E=re=>{r.errors=re,f.state.next({errors:r.errors,isValid:!1})},P=(re,ue,Te,ke)=>{const Oe=at(n,re);if(Oe){const Me=at(a,re,Jt(Te)?at(i,re):Te);Jt(Me)||ke&&ke.defaultChecked||ue?Kt(a,re,ue?Me:nT(Oe._f)):z(re,Me),s.mount&&y()}},_=(re,ue,Te,ke,Oe)=>{let Me=!1,Ke=!1;const _e={name:re};if(!t.disabled){const pe=!!(at(n,re)&&at(n,re)._f&&at(n,re)._f.disabled);if(!Te||ke){p.isDirty&&(Ke=r.isDirty,r.isDirty=_e.isDirty=L(),Me=Ke!==_e.isDirty);const ne=pe||xs(at(i,re),ue);Ke=!!(!pe&&at(r.dirtyFields,re)),ne||pe?gr(r.dirtyFields,re):Kt(r.dirtyFields,re,!0),_e.dirtyFields=r.dirtyFields,Me=Me||p.dirtyFields&&Ke!==!ne}if(Te){const ne=at(r.touchedFields,re);ne||(Kt(r.touchedFields,re,Te),_e.touchedFields=r.touchedFields,Me=Me||p.touchedFields&&ne!==Te)}Me&&Oe&&f.state.next(_e)}return Me?_e:{}},I=(re,ue,Te,ke)=>{const Oe=at(r.errors,re),Me=p.isValid&&Ln(ue)&&r.isValid!==ue;if(e.delayError&&Te?(l=x(()=>A(re,Te)),l(e.delayError)):(clearTimeout(c),l=null,Te?Kt(r.errors,re,Te):gr(r.errors,re)),(Te?!xs(Oe,Te):Oe)||!zr(ke)||Me){const Ke={...ke,...Me&&Ln(ue)?{isValid:ue}:{},errors:r.errors,name:re};r={...r,...Ke},f.state.next(Ke)}},k=async re=>{m(re,!0);const ue=await t.resolver(a,t.context,woe(re||o.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return m(re),ue},M=async re=>{const{errors:ue}=await k(re);if(re)for(const Te of re){const ke=at(ue,Te);ke?Kt(r.errors,Te,ke):gr(r.errors,Te)}else r.errors=ue;return ue},D=async(re,ue,Te={valid:!0})=>{for(const ke in re){const Oe=re[ke];if(Oe){const{_f:Me,...Ke}=Oe;if(Me){const _e=o.array.has(Me.name),pe=Oe._f&&_oe(Oe._f);pe&&p.validatingFields&&m([ke],!0);const ne=await YS(Oe,a,v,t.shouldUseNativeValidation&&!ue,_e);if(pe&&p.validatingFields&&m([ke]),ne[Me.name]&&(Te.valid=!1,ue))break;!ue&&(at(ne,Me.name)?_e?Q4(r.errors,ne,Me.name):Kt(r.errors,Me.name,ne[Me.name]):gr(r.errors,Me.name))}!zr(Ke)&&await D(Ke,ue,Te)}}return Te.valid},C=()=>{for(const re of o.unMount){const ue=at(n,re);ue&&(ue._f.refs?ue._f.refs.every(Te=>!rT(Te)):!rT(ue._f.ref))&&ie(re)}o.unMount=new Set},L=(re,ue)=>!t.disabled&&(re&&ue&&Kt(a,re,ue),!xs(j(),i)),q=(re,ue,Te)=>H4(re,o,{...s.mount?a:Jt(ue)?i:Pi(re)?{[re]:ue}:ue},Te,ue),$=re=>cp(at(s.mount?a:i,re,e.shouldUnregister?at(i,re,[]):[])),z=(re,ue,Te={})=>{const ke=at(n,re);let Oe=ue;if(ke){const Me=ke._f;Me&&(!Me.disabled&&Kt(a,re,i5(ue,Me)),Oe=vm(Me.ref)&&Wr(ue)?"":ue,t5(Me.ref)?[...Me.ref.options].forEach(Ke=>Ke.selected=Oe.includes(Ke.value)):Me.refs?up(Me.ref)?Me.refs.length>1?Me.refs.forEach(Ke=>(!Ke.defaultChecked||!Ke.disabled)&&(Ke.checked=Array.isArray(Oe)?!!Oe.find(_e=>_e===Ke.value):Oe===Ke.value)):Me.refs[0]&&(Me.refs[0].checked=!!Oe):Me.refs.forEach(Ke=>Ke.checked=Ke.value===Oe):BP(Me.ref)?Me.ref.value="":(Me.ref.value=Oe,Me.ref.type||f.values.next({name:re,values:{...a}})))}(Te.shouldDirty||Te.shouldTouch)&&_(re,Oe,Te.shouldTouch,Te.shouldDirty,!0),Te.shouldValidate&&N(re)},Q=(re,ue,Te)=>{for(const ke in ue){const Oe=ue[ke],Me=`${re}.${ke}`,Ke=at(n,Me);(o.array.has(re)||fr(Oe)||Ke&&!Ke._f)&&!Uo(Oe)?Q(Me,Oe,Te):z(Me,Oe,Te)}},V=(re,ue,Te={})=>{const ke=at(n,re),Oe=o.array.has(re),Me=Pr(ue);Kt(a,re,Me),Oe?(f.array.next({name:re,values:{...a}}),(p.isDirty||p.dirtyFields)&&Te.shouldDirty&&f.state.next({name:re,dirtyFields:Rc(i,a),isDirty:L(re,Me)})):ke&&!ke._f&&!Wr(Me)?Q(re,Me,Te):z(re,Me,Te),HS(re,o)&&f.state.next({...r}),f.values.next({name:s.mount?re:void 0,values:{...a}})},X=async re=>{s.mount=!0;const ue=re.target;let Te=ue.name,ke=!0;const Oe=at(n,Te),Me=()=>ue.type?nT(Oe._f):F4(re),Ke=_e=>{ke=Number.isNaN(_e)||Uo(_e)&&isNaN(_e.getTime())||xs(_e,at(a,Te,_e))};if(Oe){let _e,pe;const ne=Me(),me=re.type===gm.BLUR||re.type===gm.FOCUS_OUT,Ie=!Ooe(Oe._f)&&!t.resolver&&!at(r.errors,Te)&&!Oe._f.deps||Coe(me,at(r.touchedFields,Te),r.isSubmitted,h,d),De=HS(Te,o,me);Kt(a,Te,ne),me?(Oe._f.onBlur&&Oe._f.onBlur(re),l&&l(0)):Oe._f.onChange&&Oe._f.onChange(re);const Ue=_(Te,ne,me,!1),We=!zr(Ue)||De;if(!me&&f.values.next({name:Te,type:re.type,values:{...a}}),Ie)return p.isValid&&(e.mode==="onBlur"?me&&y():y()),We&&f.state.next({name:Te,...De?{}:Ue});if(!me&&De&&f.state.next({...r}),t.resolver){const{errors:lt}=await k([Te]);if(Ke(ne),ke){const gt=nL(r.errors,n,Te),Ge=nL(lt,n,gt.name||Te);_e=Ge.error,Te=Ge.name,pe=zr(lt)}}else m([Te],!0),_e=(await YS(Oe,a,v,t.shouldUseNativeValidation))[Te],m([Te]),Ke(ne),ke&&(_e?pe=!1:p.isValid&&(pe=await D(n,!0)));ke&&(Oe._f.deps&&N(Oe._f.deps),I(Te,pe,_e,Ue))}},U=(re,ue)=>{if(at(r.errors,ue)&&re.focus)return re.focus(),1},N=async(re,ue={})=>{let Te,ke;const Oe=sn(re);if(t.resolver){const Me=await M(Jt(re)?re:Oe);Te=zr(Me),ke=re?!Oe.some(Ke=>at(Me,Ke)):Te}else re?(ke=(await Promise.all(Oe.map(async Me=>{const Ke=at(n,Me);return await D(Ke&&Ke._f?{[Me]:Ke}:Ke)}))).every(Boolean),!(!ke&&!r.isValid)&&y()):ke=Te=await D(n);return f.state.next({...!Pi(re)||p.isValid&&Te!==r.isValid?{}:{name:re},...t.resolver||!re?{isValid:Te}:{},errors:r.errors}),ue.shouldFocus&&!ke&&Bl(n,U,re?Oe:o.mount),ke},j=re=>{const ue={...s.mount?a:i};return Jt(re)?ue:Pi(re)?at(ue,re):re.map(Te=>at(ue,Te))},F=(re,ue)=>({invalid:!!at((ue||r).errors,re),isDirty:!!at((ue||r).dirtyFields,re),error:at((ue||r).errors,re),isValidating:!!at(r.validatingFields,re),isTouched:!!at((ue||r).touchedFields,re)}),R=re=>{re&&sn(re).forEach(ue=>gr(r.errors,ue)),f.state.next({errors:re?r.errors:{}})},J=(re,ue,Te)=>{const ke=(at(n,re,{_f:{}})._f||{}).ref,Oe=at(r.errors,re)||{},{ref:Me,message:Ke,type:_e,...pe}=Oe;Kt(r.errors,re,{...pe,...ue,ref:ke}),f.state.next({name:re,errors:r.errors,isValid:!1}),Te&&Te.shouldFocus&&ke&&ke.focus&&ke.focus()},se=(re,ue)=>xi(re)?f.values.subscribe({next:Te=>re(q(void 0,ue),Te)}):q(re,ue,!0),ie=(re,ue={})=>{for(const Te of re?sn(re):o.mount)o.mount.delete(Te),o.array.delete(Te),ue.keepValue||(gr(n,Te),gr(a,Te)),!ue.keepError&&gr(r.errors,Te),!ue.keepDirty&&gr(r.dirtyFields,Te),!ue.keepTouched&&gr(r.touchedFields,Te),!ue.keepIsValidating&&gr(r.validatingFields,Te),!t.shouldUnregister&&!ue.keepDefaultValue&&gr(i,Te);f.values.next({values:{...a}}),f.state.next({...r,...ue.keepDirty?{isDirty:L()}:{}}),!ue.keepIsValid&&y()},ae=({disabled:re,name:ue,field:Te,fields:ke,value:Oe})=>{if(Ln(re)&&s.mount||re){const Me=re?void 0:Jt(Oe)?nT(Te?Te._f:at(ke,ue)._f):Oe;Kt(a,ue,Me),_(ue,Me,!1,!1,!0)}},fe=(re,ue={})=>{let Te=at(n,re);const ke=Ln(ue.disabled)||Ln(t.disabled);return Kt(n,re,{...Te||{},_f:{...Te&&Te._f?Te._f:{ref:{name:re}},name:re,mount:!0,...ue}}),o.mount.add(re),Te?ae({field:Te,disabled:Ln(ue.disabled)?ue.disabled:t.disabled,name:re,value:ue.value}):P(re,!0,ue.value),{...ke?{disabled:ue.disabled||t.disabled}:{},...t.progressive?{required:!!ue.required,min:Bc(ue.min),max:Bc(ue.max),minLength:Bc(ue.minLength),maxLength:Bc(ue.maxLength),pattern:Bc(ue.pattern)}:{},name:re,onChange:X,onBlur:X,ref:Oe=>{if(Oe){fe(re,ue),Te=at(n,re);const Me=Jt(Oe.value)&&Oe.querySelectorAll&&Oe.querySelectorAll("input,select,textarea")[0]||Oe,Ke=Aoe(Me),_e=Te._f.refs||[];if(Ke?_e.find(pe=>pe===Me):Me===Te._f.ref)return;Kt(n,re,{_f:{...Te._f,...Ke?{refs:[..._e.filter(rT),Me,...Array.isArray(at(i,re))?[{}]:[]],ref:{type:Me.type,name:re}}:{ref:Me}}}),P(re,!1,void 0,Me)}else Te=at(n,re,{}),Te._f&&(Te._f.mount=!1),(t.shouldUnregister||ue.shouldUnregister)&&!(q4(o.array,re)&&s.action)&&o.unMount.add(re)}}},de=()=>t.shouldFocusError&&Bl(n,U,o.mount),Se=re=>{Ln(re)&&(f.state.next({disabled:re}),Bl(n,(ue,Te)=>{const ke=at(n,Te);ke&&(ue.disabled=ke._f.disabled||re,Array.isArray(ke._f.refs)&&ke._f.refs.forEach(Oe=>{Oe.disabled=ke._f.disabled||re}))},0,!1))},Ce=(re,ue)=>async Te=>{let ke;if(Te&&(Te.preventDefault&&Te.preventDefault(),Te.persist&&Te.persist()),t.disabled){ue&&await ue({...r.errors},Te);return}let Oe=Pr(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:Me,values:Ke}=await k();r.errors=Me,Oe=Ke}else await D(n);if(gr(r.errors,"root"),zr(r.errors)){f.state.next({errors:{}});try{await re(Oe,Te)}catch(Me){ke=Me}}else ue&&await ue({...r.errors},Te),de(),setTimeout(de);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:zr(r.errors)&&!ke,submitCount:r.submitCount+1,errors:r.errors}),ke)throw ke},xe=(re,ue={})=>{at(n,re)&&(Jt(ue.defaultValue)?V(re,Pr(at(i,re))):(V(re,ue.defaultValue),Kt(i,re,Pr(ue.defaultValue))),ue.keepTouched||gr(r.touchedFields,re),ue.keepDirty||(gr(r.dirtyFields,re),r.isDirty=ue.defaultValue?L(re,Pr(at(i,re))):L()),ue.keepError||(gr(r.errors,re),p.isValid&&y()),f.state.next({...r}))},Be=(re,ue={})=>{const Te=re?Pr(re):i,ke=Pr(Te),Oe=zr(re),Me=Oe?i:ke;if(ue.keepDefaultValues||(i=Te),!ue.keepValues){if(ue.keepDirtyValues){const Ke=new Set([...o.mount,...Object.keys(Rc(i,a))]);for(const _e of Array.from(Ke))at(r.dirtyFields,_e)?Kt(Me,_e,at(a,_e)):V(_e,at(Me,_e))}else{if(jP&&Jt(re))for(const Ke of o.mount){const _e=at(n,Ke);if(_e&&_e._f){const pe=Array.isArray(_e._f.refs)?_e._f.refs[0]:_e._f.ref;if(vm(pe)){const ne=pe.closest("form");if(ne){ne.reset();break}}}}n={}}a=e.shouldUnregister?ue.keepDefaultValues?Pr(i):{}:Pr(Me),f.array.next({values:{...Me}}),f.values.next({values:{...Me}})}o={mount:ue.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!p.isValid||!!ue.keepIsValid||!!ue.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:ue.keepSubmitCount?r.submitCount:0,isDirty:Oe?!1:ue.keepDirty?r.isDirty:!!(ue.keepDefaultValues&&!xs(re,i)),isSubmitted:ue.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:Oe?{}:ue.keepDirtyValues?ue.keepDefaultValues&&a?Rc(i,a):r.dirtyFields:ue.keepDefaultValues&&re?Rc(i,re):ue.keepDirty?r.dirtyFields:{},touchedFields:ue.keepTouched?r.touchedFields:{},errors:ue.keepErrors?r.errors:{},isSubmitSuccessful:ue.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Re=(re,ue)=>Be(xi(re)?re(a):re,ue);return{control:{register:fe,unregister:ie,getFieldState:F,handleSubmit:Ce,setError:J,_executeSchema:k,_getWatch:q,_getDirty:L,_updateValid:y,_removeUnmounted:C,_updateFieldArray:T,_updateDisabledField:ae,_getFieldArray:$,_reset:Be,_resetDefaultValues:()=>xi(t.defaultValues)&&t.defaultValues().then(re=>{Re(re,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:re=>{r={...r,...re}},_disableForm:Se,_subjects:f,_proxyFormState:p,_setErrors:E,get _fields(){return n},get _formValues(){return a},get _state(){return s},set _state(re){s=re},get _defaultValues(){return i},get _names(){return o},set _names(re){o=re},get _formState(){return r},set _formState(re){r=re},get _options(){return t},set _options(re){t={...t,...re}}},trigger:N,register:fe,handleSubmit:Ce,watch:se,setValue:V,getValues:j,reset:Re,resetField:xe,clearErrors:R,unregister:ie,setError:J,setFocus:(re,ue={})=>{const Te=at(n,re),ke=Te&&Te._f;if(ke){const Oe=ke.refs?ke.refs[0]:ke.ref;Oe.focus&&(Oe.focus(),ue.shouldSelect&&xi(Oe.select)&&Oe.select())}},getFieldState:F}}function Doe(e={}){const t=Pe.useRef(),r=Pe.useRef(),[n,i]=Pe.useState({isDirty:!1,isValidating:!1,isLoading:xi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:xi(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Noe(e),formState:n});const a=t.current.control;return a._options=e,Oy({subject:a._subjects.state,next:s=>{K4(s,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),Pe.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),Pe.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==n.isDirty&&a._subjects.state.next({isDirty:s})}},[a,n.isDirty]),Pe.useEffect(()=>{e.values&&!xs(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),Pe.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),Pe.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),Pe.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=V4(n,a),t.current}const Dye=Object.freeze(Object.defineProperty({__proto__:null,Controller:voe,Form:xoe,FormProvider:goe,appendErrors:J4,get:at,set:Kt,useController:X4,useFieldArray:Poe,useForm:Doe,useFormContext:Iu,useFormState:W4,useWatch:Y4},Symbol.toStringTag,{value:"Module"}));var ui="Accordion",Moe=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[qP,Loe,joe]=Bq(ui),[Cy]=fa(ui,[joe,SP]),$P=SP(),a5=Pe.forwardRef((e,t)=>{const{type:r,...n}=e,i=n,a=n;return ce.jsx(qP.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?ce.jsx(qoe,{...a,ref:t}):ce.jsx(Foe,{...i,ref:t})})});a5.displayName=ui;var[s5,Roe]=Cy(ui),[o5,Boe]=Cy(ui,{collapsible:!1}),Foe=Pe.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:a=!1,...s}=e,[o,l]=Os({prop:r,defaultProp:n??"",onChange:i,caller:ui});return ce.jsx(s5,{scope:e.__scopeAccordion,value:Pe.useMemo(()=>o?[o]:[],[o]),onItemOpen:l,onItemClose:Pe.useCallback(()=>a&&l(""),[a,l]),children:ce.jsx(o5,{scope:e.__scopeAccordion,collapsible:a,children:ce.jsx(l5,{...s,ref:t})})})}),qoe=Pe.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},...a}=e,[s,o]=Os({prop:r,defaultProp:n??[],onChange:i,caller:ui}),l=Pe.useCallback(p=>o((f=[])=>[...f,p]),[o]),c=Pe.useCallback(p=>o((f=[])=>f.filter(d=>d!==p)),[o]);return ce.jsx(s5,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:c,children:ce.jsx(o5,{scope:e.__scopeAccordion,collapsible:!0,children:ce.jsx(l5,{...a,ref:t})})})}),[$oe,Iy]=Cy(ui),l5=Pe.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:i,orientation:a="vertical",...s}=e,o=Pe.useRef(null),l=Nr(o,t),c=Loe(r),f=v1(i)==="ltr",d=Qt(e.onKeyDown,h=>{var k;if(!Moe.includes(h.key))return;const v=h.target,x=c().filter(M=>{var D;return!((D=M.ref.current)!=null&&D.disabled)}),y=x.findIndex(M=>M.ref.current===v),m=x.length;if(y===-1)return;h.preventDefault();let T=y;const A=0,E=m-1,P=()=>{T=y+1,T>E&&(T=A)},_=()=>{T=y-1,T<A&&(T=E)};switch(h.key){case"Home":T=A;break;case"End":T=E;break;case"ArrowRight":a==="horizontal"&&(f?P():_());break;case"ArrowDown":a==="vertical"&&P();break;case"ArrowLeft":a==="horizontal"&&(f?_():P());break;case"ArrowUp":a==="vertical"&&_();break}const I=T%m;(k=x[I].ref.current)==null||k.focus()});return ce.jsx($oe,{scope:r,disabled:n,direction:i,orientation:a,children:ce.jsx(qP.Slot,{scope:r,children:ce.jsx(pr.div,{...s,"data-orientation":a,ref:l,onKeyDown:n?void 0:d})})})}),Tm="AccordionItem",[Uoe,UP]=Cy(Tm),u5=Pe.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...i}=e,a=Iy(Tm,r),s=Roe(Tm,r),o=$P(r),l=Es(),c=n&&s.value.includes(n)||!1,p=a.disabled||e.disabled;return ce.jsx(Uoe,{scope:r,open:c,disabled:p,triggerId:l,children:ce.jsx(_P,{"data-orientation":a.orientation,"data-state":m5(c),...o,...i,ref:t,disabled:p,open:c,onOpenChange:f=>{f?s.onItemOpen(n):s.onItemClose(n)}})})});u5.displayName=Tm;var c5="AccordionHeader",f5=Pe.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Iy(ui,r),a=UP(c5,r);return ce.jsx(pr.h3,{"data-orientation":i.orientation,"data-state":m5(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});f5.displayName=c5;var GS="AccordionTrigger",p5=Pe.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Iy(ui,r),a=UP(GS,r),s=Boe(GS,r),o=$P(r);return ce.jsx(qP.ItemSlot,{scope:r,children:ce.jsx(k4,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...o,...n,ref:t})})});p5.displayName=GS;var d5="AccordionContent",h5=Pe.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Iy(ui,r),a=UP(d5,r),s=$P(r);return ce.jsx(N4,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});h5.displayName=d5;function m5(e){return e?"open":"closed"}var Mye=a5,Lye=u5,jye=f5,Rye=p5,Bye=h5;const Voe=_s("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),y5=te.forwardRef(({className:e,variant:t,...r},n)=>ce.jsx("div",{ref:n,role:"alert",className:et(Voe({variant:t}),e),...r}));y5.displayName="Alert";const g5=te.forwardRef(({className:e,...t},r)=>ce.jsx("h5",{ref:r,className:et("mb-1 font-medium leading-none tracking-tight",e),...t}));g5.displayName="AlertTitle";const v5=te.forwardRef(({className:e,...t},r)=>ce.jsx("div",{ref:r,className:et("text-sm [&_p]:leading-relaxed",e),...t}));v5.displayName="AlertDescription";const Fye=Object.freeze(Object.defineProperty({__proto__:null,Alert:y5,AlertDescription:v5,AlertTitle:g5},Symbol.toStringTag,{value:"Module"})),mu=_s("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-3 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),b5=te.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const s=n?pm:"button";return ce.jsx(s,{className:et(mu({variant:t,size:r,className:e})),ref:a,...i})});b5.displayName="Button";const qye=Object.freeze(Object.defineProperty({__proto__:null,Button:b5,buttonVariants:mu},Symbol.toStringTag,{value:"Module"})),Koe=d4,zoe=h4,x5=m4,VP=te.forwardRef(({className:e,...t},r)=>ce.jsx(iP,{className:et("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));VP.displayName=iP.displayName;const T5=te.forwardRef(({className:e,...t},r)=>ce.jsxs(x5,{children:[ce.jsx(VP,{}),ce.jsx(aP,{ref:r,className:et("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));T5.displayName=aP.displayName;const S5=({className:e,...t})=>ce.jsx("div",{className:et("flex flex-col space-y-2 text-center sm:text-left",e),...t});S5.displayName="AlertDialogHeader";const E5=({className:e,...t})=>ce.jsx("div",{className:et("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});E5.displayName="AlertDialogFooter";const P5=te.forwardRef(({className:e,...t},r)=>ce.jsx(lP,{ref:r,className:et("text-lg font-semibold",e),...t}));P5.displayName=lP.displayName;const A5=te.forwardRef(({className:e,...t},r)=>ce.jsx(uP,{ref:r,className:et("text-sm text-muted-foreground",e),...t}));A5.displayName=uP.displayName;const w5=te.forwardRef(({className:e,...t},r)=>ce.jsx(sP,{ref:r,className:et(mu(),e),...t}));w5.displayName=sP.displayName;const _5=te.forwardRef(({className:e,...t},r)=>ce.jsx(oP,{ref:r,className:et(mu({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));_5.displayName=oP.displayName;const $ye=Object.freeze(Object.defineProperty({__proto__:null,AlertDialog:Koe,AlertDialogAction:w5,AlertDialogCancel:_5,AlertDialogContent:T5,AlertDialogDescription:A5,AlertDialogFooter:E5,AlertDialogHeader:S5,AlertDialogOverlay:VP,AlertDialogPortal:x5,AlertDialogTitle:P5,AlertDialogTrigger:zoe},Symbol.toStringTag,{value:"Module"})),O5=te.forwardRef(({className:e,...t},r)=>ce.jsx(NP,{ref:r,className:et("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));O5.displayName=NP.displayName;const C5=te.forwardRef(({className:e,...t},r)=>ce.jsx(DP,{ref:r,className:et("aspect-square h-full w-full",e),...t}));C5.displayName=DP.displayName;const I5=te.forwardRef(({className:e,...t},r)=>ce.jsx(MP,{ref:r,className:et("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));I5.displayName=MP.displayName;const Uye=Object.freeze(Object.defineProperty({__proto__:null,Avatar:O5,AvatarFallback:I5,AvatarImage:C5},Symbol.toStringTag,{value:"Module"})),k5=_s("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Woe({className:e,variant:t,...r}){return ce.jsx("div",{className:et(k5({variant:t}),e),...r})}const Vye=Object.freeze(Object.defineProperty({__proto__:null,Badge:Woe,badgeVariants:k5},Symbol.toStringTag,{value:"Module"}));var Et=function(){return Et=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Et.apply(this,arguments)};function Hoe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function N5(e,t,r){for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function fp(e){return e.mode==="multiple"}function pp(e){return e.mode==="range"}function ky(e){return e.mode==="single"}var Yoe={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function Xoe(e,t){return Zo(e,"LLLL y",t)}function Goe(e,t){return Zo(e,"d",t)}function Joe(e,t){return Zo(e,"LLLL",t)}function Qoe(e){return"".concat(e)}function Zoe(e,t){return Zo(e,"cccccc",t)}function ele(e,t){return Zo(e,"yyyy",t)}var tle=Object.freeze({__proto__:null,formatCaption:Xoe,formatDay:Goe,formatMonthCaption:Joe,formatWeekNumber:Qoe,formatWeekdayName:Zoe,formatYearCaption:ele}),rle=function(e,t,r){return Zo(e,"do MMMM (EEEE)",r)},nle=function(){return"Month: "},ile=function(){return"Go to next month"},ale=function(){return"Go to previous month"},sle=function(e,t){return Zo(e,"cccc",t)},ole=function(e){return"Week n. ".concat(e)},lle=function(){return"Year: "},ule=Object.freeze({__proto__:null,labelDay:rle,labelMonthDropdown:nle,labelNext:ile,labelPrevious:ale,labelWeekNumber:ole,labelWeekday:sle,labelYearDropdown:lle});function cle(){var e="buttons",t=Yoe,r=f9,n={},i={},a=1,s={},o=new Date;return{captionLayout:e,classNames:t,formatters:tle,labels:ule,locale:r,modifiersClassNames:n,modifiers:i,numberOfMonths:a,styles:s,today:o,mode:"default"}}function fle(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,i=e.toMonth,a=e.fromDate,s=e.toDate;return n?a=An(n):t&&(a=new Date(t,0,1)),i?s=x1(i):r&&(s=new Date(r,11,31)),{fromDate:a?DA(a):void 0,toDate:s?DA(s):void 0}}var D5=te.createContext(void 0);function ple(e){var t,r=e.initialProps,n=cle(),i=fle(r),a=i.fromDate,s=i.toDate,o=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;o!=="buttons"&&(!a||!s)&&(o="buttons");var l;(ky(r)||fp(r)||pp(r))&&(l=r.onSelect);var c=Et(Et(Et({},n),r),{captionLayout:o,classNames:Et(Et({},n.classNames),r.classNames),components:Et({},r.components),formatters:Et(Et({},n.formatters),r.formatters),fromDate:a,labels:Et(Et({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:Et(Et({},n.modifiers),r.modifiers),modifiersClassNames:Et(Et({},n.modifiersClassNames),r.modifiersClassNames),onSelect:l,styles:Et(Et({},n.styles),r.styles),toDate:s});return ce.jsx(D5.Provider,{value:c,children:e.children})}function tr(){var e=te.useContext(D5);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function M5(e){var t=tr(),r=t.locale,n=t.classNames,i=t.styles,a=t.formatters.formatCaption;return ce.jsx("div",{className:n.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:r})})}function dle(e){return ce.jsx("svg",Et({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:ce.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function L5(e){var t,r,n=e.onChange,i=e.value,a=e.children,s=e.caption,o=e.className,l=e.style,c=tr(),p=(r=(t=c.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:dle;return ce.jsxs("div",{className:o,style:l,children:[ce.jsx("span",{className:c.classNames.vhidden,children:e["aria-label"]}),ce.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:n,children:a}),ce.jsxs("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[s,ce.jsx(p,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function hle(e){var t,r=tr(),n=r.fromDate,i=r.toDate,a=r.styles,s=r.locale,o=r.formatters.formatMonthCaption,l=r.classNames,c=r.components,p=r.labels.labelMonthDropdown;if(!n)return ce.jsx(ce.Fragment,{});if(!i)return ce.jsx(ce.Fragment,{});var f=[];if(g9(n,i))for(var d=An(n),h=n.getMonth();h<=i.getMonth();h++)f.push(Eg(d,h));else for(var d=An(new Date),h=0;h<=11;h++)f.push(Eg(d,h));var v=function(y){var m=Number(y.target.value),T=Eg(An(e.displayMonth),m);e.onChange(T)},x=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:L5;return ce.jsx(x,{name:"months","aria-label":p(),className:l.dropdown_month,style:a.dropdown_month,onChange:v,value:e.displayMonth.getMonth(),caption:o(e.displayMonth,{locale:s}),children:f.map(function(y){return ce.jsx("option",{value:y.getMonth(),children:o(y,{locale:s})},y.getMonth())})})}function mle(e){var t,r=e.displayMonth,n=tr(),i=n.fromDate,a=n.toDate,s=n.locale,o=n.styles,l=n.classNames,c=n.components,p=n.formatters.formatYearCaption,f=n.labels.labelYearDropdown,d=[];if(!i)return ce.jsx(ce.Fragment,{});if(!a)return ce.jsx(ce.Fragment,{});for(var h=i.getFullYear(),v=a.getFullYear(),x=h;x<=v;x++)d.push(MA(v9(new Date),x));var y=function(T){var A=MA(An(r),Number(T.target.value));e.onChange(A)},m=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:L5;return ce.jsx(m,{name:"years","aria-label":f(),className:l.dropdown_year,style:o.dropdown_year,onChange:y,value:r.getFullYear(),caption:p(r,{locale:s}),children:d.map(function(T){return ce.jsx("option",{value:T.getFullYear(),children:p(T,{locale:s})},T.getFullYear())})})}function yle(e,t){var r=te.useState(e),n=r[0],i=r[1],a=t===void 0?n:t;return[a,i]}function gle(e){var t=e.month,r=e.defaultMonth,n=e.today,i=t||r||n||new Date,a=e.toDate,s=e.fromDate,o=e.numberOfMonths,l=o===void 0?1:o;if(a&&lf(a,i)<0){var c=-1*(l-1);i=Oi(a,c)}return s&&lf(i,s)<0&&(i=s),An(i)}function vle(){var e=tr(),t=gle(e),r=yle(t,e.month),n=r[0],i=r[1],a=function(s){var o;if(!e.disableNavigation){var l=An(s);i(l),(o=e.onMonthChange)===null||o===void 0||o.call(e,l)}};return[n,a]}function ble(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,i=An(e),a=An(Oi(i,n)),s=lf(a,i),o=[],l=0;l<s;l++){var c=Oi(i,l);o.push(c)}return r&&(o=o.reverse()),o}function xle(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,i=t.numberOfMonths,a=i===void 0?1:i,s=n?a:1,o=An(e);if(!r)return Oi(o,s);var l=lf(r,e);if(!(l<a))return Oi(o,s)}}function Tle(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,i=t.numberOfMonths,a=i===void 0?1:i,s=n?a:1,o=An(e);if(!r)return Oi(o,-s);var l=lf(o,r);if(!(l<=0))return Oi(o,-s)}}var j5=te.createContext(void 0);function Sle(e){var t=tr(),r=vle(),n=r[0],i=r[1],a=ble(n,t),s=xle(n,t),o=Tle(n,t),l=function(f){return a.some(function(d){return T1(f,d)})},c=function(f,d){l(f)||(d&&Nj(f,d)?i(Oi(f,1+t.numberOfMonths*-1)):i(f))},p={currentMonth:n,displayMonths:a,goToMonth:i,goToDate:c,previousMonth:o,nextMonth:s,isDateDisplayed:l};return ce.jsx(j5.Provider,{value:p,children:e.children})}function dp(){var e=te.useContext(j5);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function iL(e){var t,r=tr(),n=r.classNames,i=r.styles,a=r.components,s=dp().goToMonth,o=function(p){s(Oi(p,e.displayIndex?-e.displayIndex:0))},l=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:M5,c=ce.jsx(l,{id:e.id,displayMonth:e.displayMonth});return ce.jsxs("div",{className:n.caption_dropdowns,style:i.caption_dropdowns,children:[ce.jsx("div",{className:n.vhidden,children:c}),ce.jsx(hle,{onChange:o,displayMonth:e.displayMonth}),ce.jsx(mle,{onChange:o,displayMonth:e.displayMonth})]})}function Ele(e){return ce.jsx("svg",Et({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:ce.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Ple(e){return ce.jsx("svg",Et({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:ce.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Sm=te.forwardRef(function(e,t){var r=tr(),n=r.classNames,i=r.styles,a=[n.button_reset,n.button];e.className&&a.push(e.className);var s=a.join(" "),o=Et(Et({},i.button_reset),i.button);return e.style&&Object.assign(o,e.style),ce.jsx("button",Et({},e,{ref:t,type:"button",className:s,style:o}))});function Ale(e){var t,r,n=tr(),i=n.dir,a=n.locale,s=n.classNames,o=n.styles,l=n.labels,c=l.labelPrevious,p=l.labelNext,f=n.components;if(!e.nextMonth&&!e.previousMonth)return ce.jsx(ce.Fragment,{});var d=c(e.previousMonth,{locale:a}),h=[s.nav_button,s.nav_button_previous].join(" "),v=p(e.nextMonth,{locale:a}),x=[s.nav_button,s.nav_button_next].join(" "),y=(t=f==null?void 0:f.IconRight)!==null&&t!==void 0?t:Ple,m=(r=f==null?void 0:f.IconLeft)!==null&&r!==void 0?r:Ele;return ce.jsxs("div",{className:s.nav,style:o.nav,children:[!e.hidePrevious&&ce.jsx(Sm,{name:"previous-month","aria-label":d,className:h,style:o.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:i==="rtl"?ce.jsx(y,{className:s.nav_icon,style:o.nav_icon}):ce.jsx(m,{className:s.nav_icon,style:o.nav_icon})}),!e.hideNext&&ce.jsx(Sm,{name:"next-month","aria-label":v,className:x,style:o.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:i==="rtl"?ce.jsx(m,{className:s.nav_icon,style:o.nav_icon}):ce.jsx(y,{className:s.nav_icon,style:o.nav_icon})})]})}function aL(e){var t=tr().numberOfMonths,r=dp(),n=r.previousMonth,i=r.nextMonth,a=r.goToMonth,s=r.displayMonths,o=s.findIndex(function(v){return T1(e.displayMonth,v)}),l=o===0,c=o===s.length-1,p=t>1&&(l||!c),f=t>1&&(c||!l),d=function(){n&&a(n)},h=function(){i&&a(i)};return ce.jsx(Ale,{displayMonth:e.displayMonth,hideNext:p,hidePrevious:f,nextMonth:i,previousMonth:n,onPreviousClick:d,onNextClick:h})}function wle(e){var t,r=tr(),n=r.classNames,i=r.disableNavigation,a=r.styles,s=r.captionLayout,o=r.components,l=(t=o==null?void 0:o.CaptionLabel)!==null&&t!==void 0?t:M5,c;return i?c=ce.jsx(l,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?c=ce.jsx(iL,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?c=ce.jsxs(ce.Fragment,{children:[ce.jsx(iL,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),ce.jsx(aL,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=ce.jsxs(ce.Fragment,{children:[ce.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),ce.jsx(aL,{displayMonth:e.displayMonth,id:e.id})]}),ce.jsx("div",{className:n.caption,style:a.caption,children:c})}function _le(e){var t=tr(),r=t.footer,n=t.styles,i=t.classNames.tfoot;return r?ce.jsx("tfoot",{className:i,style:n.tfoot,children:ce.jsx("tr",{children:ce.jsx("td",{colSpan:8,children:r})})}):ce.jsx(ce.Fragment,{})}function Ole(e,t,r){for(var n=r?S1(new Date):E1(new Date,{locale:e,weekStartsOn:t}),i=[],a=0;a<7;a++){var s=Tn(n,a);i.push(s)}return i}function Cle(){var e=tr(),t=e.classNames,r=e.styles,n=e.showWeekNumber,i=e.locale,a=e.weekStartsOn,s=e.ISOWeek,o=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=Ole(i,a,s);return ce.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&ce.jsx("td",{style:r.head_cell,className:t.head_cell}),c.map(function(p,f){return ce.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(p,{locale:i}),children:o(p,{locale:i})},f)})]})}function Ile(){var e,t=tr(),r=t.classNames,n=t.styles,i=t.components,a=(e=i==null?void 0:i.HeadRow)!==null&&e!==void 0?e:Cle;return ce.jsx("thead",{style:n.head,className:r.head,children:ce.jsx(a,{})})}function kle(e){var t=tr(),r=t.locale,n=t.formatters.formatDay;return ce.jsx(ce.Fragment,{children:n(e.date,{locale:r})})}var KP=te.createContext(void 0);function Nle(e){if(!fp(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return ce.jsx(KP.Provider,{value:t,children:e.children})}return ce.jsx(Dle,{initialProps:e.initialProps,children:e.children})}function Dle(e){var t=e.initialProps,r=e.children,n=t.selected,i=t.min,a=t.max,s=function(c,p,f){var d,h;(d=t.onDayClick)===null||d===void 0||d.call(t,c,p,f);var v=!!(p.selected&&i&&(n==null?void 0:n.length)===i);if(!v){var x=!!(!p.selected&&a&&(n==null?void 0:n.length)===a);if(!x){var y=n?N5([],n):[];if(p.selected){var m=y.findIndex(function(T){return nn(c,T)});y.splice(m,1)}else y.push(c);(h=t.onSelect)===null||h===void 0||h.call(t,y,c,p,f)}}},o={disabled:[]};n&&o.disabled.push(function(c){var p=a&&n.length>a-1,f=n.some(function(d){return nn(d,c)});return!!(p&&!f)});var l={selected:n,onDayClick:s,modifiers:o};return ce.jsx(KP.Provider,{value:l,children:r})}function zP(){var e=te.useContext(KP);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Mle(e,t){var r=t||{},n=r.from,i=r.to;return n&&i?nn(i,e)&&nn(n,e)?void 0:nn(i,e)?{from:i,to:void 0}:nn(n,e)?void 0:AT(n,e)?{from:e,to:i}:{from:n,to:e}:i?AT(e,i)?{from:i,to:e}:{from:e,to:i}:n?Nj(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var WP=te.createContext(void 0);function Lle(e){if(!pp(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return ce.jsx(WP.Provider,{value:t,children:e.children})}return ce.jsx(jle,{initialProps:e.initialProps,children:e.children})}function jle(e){var t=e.initialProps,r=e.children,n=t.selected,i=n||{},a=i.from,s=i.to,o=t.min,l=t.max,c=function(h,v,x){var y,m;(y=t.onDayClick)===null||y===void 0||y.call(t,h,v,x);var T=Mle(h,n);(m=t.onSelect)===null||m===void 0||m.call(t,T,h,v,x)},p={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(p.range_start=[a],s?(p.range_end=[s],nn(a,s)||(p.range_middle=[{after:a,before:s}])):p.range_end=[a]):s&&(p.range_start=[s],p.range_end=[s]),o&&(a&&!s&&p.disabled.push({after:Sg(a,o-1),before:Tn(a,o-1)}),a&&s&&p.disabled.push({after:a,before:Tn(a,o-1)}),!a&&s&&p.disabled.push({after:Sg(s,o-1),before:Tn(s,o-1)})),l){if(a&&!s&&(p.disabled.push({before:Tn(a,-l+1)}),p.disabled.push({after:Tn(a,l-1)})),a&&s){var f=ea(s,a)+1,d=l-f;p.disabled.push({before:Sg(a,d)}),p.disabled.push({after:Tn(s,d)})}!a&&s&&(p.disabled.push({before:Tn(s,-l+1)}),p.disabled.push({after:Tn(s,l-1)}))}return ce.jsx(WP.Provider,{value:{selected:n,onDayClick:c,modifiers:p},children:r})}function HP(){var e=te.useContext(WP);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function uh(e){return Array.isArray(e)?N5([],e):e!==void 0?[e]:[]}function Rle(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],i=r[1];t[n]=uh(i)}),t}var ai;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(ai||(ai={}));var Ble=ai.Selected,Ji=ai.Disabled,Fle=ai.Hidden,qle=ai.Today,iT=ai.RangeEnd,aT=ai.RangeMiddle,sT=ai.RangeStart,$le=ai.Outside;function Ule(e,t,r){var n,i=(n={},n[Ble]=uh(e.selected),n[Ji]=uh(e.disabled),n[Fle]=uh(e.hidden),n[qle]=[e.today],n[iT]=[],n[aT]=[],n[sT]=[],n[$le]=[],n);return e.fromDate&&i[Ji].push({before:e.fromDate}),e.toDate&&i[Ji].push({after:e.toDate}),fp(e)?i[Ji]=i[Ji].concat(t.modifiers[Ji]):pp(e)&&(i[Ji]=i[Ji].concat(r.modifiers[Ji]),i[sT]=r.modifiers[sT],i[aT]=r.modifiers[aT],i[iT]=r.modifiers[iT]),i}var R5=te.createContext(void 0);function Vle(e){var t=tr(),r=zP(),n=HP(),i=Ule(t,r,n),a=Rle(t.modifiers),s=Et(Et({},i),a);return ce.jsx(R5.Provider,{value:s,children:e.children})}function B5(){var e=te.useContext(R5);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Kle(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function zle(e){return!!(e&&typeof e=="object"&&"from"in e)}function Wle(e){return!!(e&&typeof e=="object"&&"after"in e)}function Hle(e){return!!(e&&typeof e=="object"&&"before"in e)}function Yle(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Xle(e,t){var r,n=t.from,i=t.to;if(n&&i){var a=ea(i,n)<0;a&&(r=[i,n],n=r[0],i=r[1]);var s=ea(e,n)>=0&&ea(i,e)>=0;return s}return i?nn(i,e):n?nn(n,e):!1}function Gle(e){return Lj(e)}function Jle(e){return Array.isArray(e)&&e.every(Lj)}function Qle(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(Gle(r))return nn(e,r);if(Jle(r))return r.includes(e);if(zle(r))return Xle(e,r);if(Yle(r))return r.dayOfWeek.includes(e.getDay());if(Kle(r)){var n=ea(r.before,e),i=ea(r.after,e),a=n>0,s=i<0,o=AT(r.before,r.after);return o?s&&a:a||s}return Wle(r)?ea(e,r.after)>0:Hle(r)?ea(r.before,e)>0:typeof r=="function"?r(e):!1})}function YP(e,t,r){var n=Object.keys(t).reduce(function(a,s){var o=t[s];return Qle(e,o)&&a.push(s),a},[]),i={};return n.forEach(function(a){return i[a]=!0}),r&&!T1(e,r)&&(i.outside=!0),i}function Zle(e,t){for(var r=An(e[0]),n=x1(e[e.length-1]),i,a,s=r;s<=n;){var o=YP(s,t),l=!o.disabled&&!o.hidden;if(!l){s=Tn(s,1);continue}if(o.selected)return s;o.today&&!a&&(a=s),i||(i=s),s=Tn(s,1)}return a||i}var eue=365;function F5(e,t){var r=t.moveBy,n=t.direction,i=t.context,a=t.modifiers,s=t.retry,o=s===void 0?{count:0,lastFocused:e}:s,l=i.weekStartsOn,c=i.fromDate,p=i.toDate,f=i.locale,d={day:Tn,week:PT,month:Oi,year:h9,startOfWeek:function(y){return i.ISOWeek?S1(y):E1(y,{locale:f,weekStartsOn:l})},endOfWeek:function(y){return i.ISOWeek?Dj(y):Mj(y,{locale:f,weekStartsOn:l})}},h=d[r](e,n==="after"?1:-1);n==="before"&&c?h=m9([c,h]):n==="after"&&p&&(h=y9([p,h]));var v=!0;if(a){var x=YP(h,a);v=!x.disabled&&!x.hidden}return v?h:o.count>eue?o.lastFocused:F5(h,{moveBy:r,direction:n,context:i,modifiers:a,retry:Et(Et({},o),{count:o.count+1})})}var q5=te.createContext(void 0);function tue(e){var t=dp(),r=B5(),n=te.useState(),i=n[0],a=n[1],s=te.useState(),o=s[0],l=s[1],c=Zle(t.displayMonths,r),p=i??(o&&t.isDateDisplayed(o))?o:c,f=function(){l(i),a(void 0)},d=function(y){a(y)},h=tr(),v=function(y,m){if(i){var T=F5(i,{moveBy:y,direction:m,context:h,modifiers:r});nn(i,T)||(t.goToDate(T,i),d(T))}},x={focusedDay:i,focusTarget:p,blur:f,focus:d,focusDayAfter:function(){return v("day","after")},focusDayBefore:function(){return v("day","before")},focusWeekAfter:function(){return v("week","after")},focusWeekBefore:function(){return v("week","before")},focusMonthBefore:function(){return v("month","before")},focusMonthAfter:function(){return v("month","after")},focusYearBefore:function(){return v("year","before")},focusYearAfter:function(){return v("year","after")},focusStartOfWeek:function(){return v("startOfWeek","before")},focusEndOfWeek:function(){return v("endOfWeek","after")}};return ce.jsx(q5.Provider,{value:x,children:e.children})}function XP(){var e=te.useContext(q5);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function rue(e,t){var r=B5(),n=YP(e,r,t);return n}var GP=te.createContext(void 0);function nue(e){if(!ky(e.initialProps)){var t={selected:void 0};return ce.jsx(GP.Provider,{value:t,children:e.children})}return ce.jsx(iue,{initialProps:e.initialProps,children:e.children})}function iue(e){var t=e.initialProps,r=e.children,n=function(a,s,o){var l,c,p;if((l=t.onDayClick)===null||l===void 0||l.call(t,a,s,o),s.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,a,s,o);return}(p=t.onSelect)===null||p===void 0||p.call(t,a,a,s,o)},i={selected:t.selected,onDayClick:n};return ce.jsx(GP.Provider,{value:i,children:r})}function $5(){var e=te.useContext(GP);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function aue(e,t){var r=tr(),n=$5(),i=zP(),a=HP(),s=XP(),o=s.focusDayAfter,l=s.focusDayBefore,c=s.focusWeekAfter,p=s.focusWeekBefore,f=s.blur,d=s.focus,h=s.focusMonthBefore,v=s.focusMonthAfter,x=s.focusYearBefore,y=s.focusYearAfter,m=s.focusStartOfWeek,T=s.focusEndOfWeek,A=function(V){var X,U,N,j;ky(r)?(X=n.onDayClick)===null||X===void 0||X.call(n,e,t,V):fp(r)?(U=i.onDayClick)===null||U===void 0||U.call(i,e,t,V):pp(r)?(N=a.onDayClick)===null||N===void 0||N.call(a,e,t,V):(j=r.onDayClick)===null||j===void 0||j.call(r,e,t,V)},E=function(V){var X;d(e),(X=r.onDayFocus)===null||X===void 0||X.call(r,e,t,V)},P=function(V){var X;f(),(X=r.onDayBlur)===null||X===void 0||X.call(r,e,t,V)},_=function(V){var X;(X=r.onDayMouseEnter)===null||X===void 0||X.call(r,e,t,V)},I=function(V){var X;(X=r.onDayMouseLeave)===null||X===void 0||X.call(r,e,t,V)},k=function(V){var X;(X=r.onDayPointerEnter)===null||X===void 0||X.call(r,e,t,V)},M=function(V){var X;(X=r.onDayPointerLeave)===null||X===void 0||X.call(r,e,t,V)},D=function(V){var X;(X=r.onDayTouchCancel)===null||X===void 0||X.call(r,e,t,V)},C=function(V){var X;(X=r.onDayTouchEnd)===null||X===void 0||X.call(r,e,t,V)},L=function(V){var X;(X=r.onDayTouchMove)===null||X===void 0||X.call(r,e,t,V)},q=function(V){var X;(X=r.onDayTouchStart)===null||X===void 0||X.call(r,e,t,V)},$=function(V){var X;(X=r.onDayKeyUp)===null||X===void 0||X.call(r,e,t,V)},z=function(V){var X;switch(V.key){case"ArrowLeft":V.preventDefault(),V.stopPropagation(),r.dir==="rtl"?o():l();break;case"ArrowRight":V.preventDefault(),V.stopPropagation(),r.dir==="rtl"?l():o();break;case"ArrowDown":V.preventDefault(),V.stopPropagation(),c();break;case"ArrowUp":V.preventDefault(),V.stopPropagation(),p();break;case"PageUp":V.preventDefault(),V.stopPropagation(),V.shiftKey?x():h();break;case"PageDown":V.preventDefault(),V.stopPropagation(),V.shiftKey?y():v();break;case"Home":V.preventDefault(),V.stopPropagation(),m();break;case"End":V.preventDefault(),V.stopPropagation(),T();break}(X=r.onDayKeyDown)===null||X===void 0||X.call(r,e,t,V)},Q={onClick:A,onFocus:E,onBlur:P,onKeyDown:z,onKeyUp:$,onMouseEnter:_,onMouseLeave:I,onPointerEnter:k,onPointerLeave:M,onTouchCancel:D,onTouchEnd:C,onTouchMove:L,onTouchStart:q};return Q}function sue(){var e=tr(),t=$5(),r=zP(),n=HP(),i=ky(e)?t.selected:fp(e)?r.selected:pp(e)?n.selected:void 0;return i}function oue(e){return Object.values(ai).includes(e)}function lue(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var i=e.modifiersClassNames[n];if(i)r.push(i);else if(oue(n)){var a=e.classNames["day_".concat(n)];a&&r.push(a)}}),r}function uue(e,t){var r=Et({},e.styles.day);return Object.keys(t).forEach(function(n){var i;r=Et(Et({},r),(i=e.modifiersStyles)===null||i===void 0?void 0:i[n])}),r}function cue(e,t,r){var n,i,a,s=tr(),o=XP(),l=rue(e,t),c=aue(e,l),p=sue(),f=!!(s.onDayClick||s.mode!=="default");te.useEffect(function(){var _;l.outside||o.focusedDay&&f&&nn(o.focusedDay,e)&&((_=r.current)===null||_===void 0||_.focus())},[o.focusedDay,e,r,f,l.outside]);var d=lue(s,l).join(" "),h=uue(s,l),v=!!(l.outside&&!s.showOutsideDays||l.hidden),x=(a=(i=s.components)===null||i===void 0?void 0:i.DayContent)!==null&&a!==void 0?a:kle,y=ce.jsx(x,{date:e,displayMonth:t,activeModifiers:l}),m={style:h,className:d,children:y,role:"gridcell"},T=o.focusTarget&&nn(o.focusTarget,e)&&!l.outside,A=o.focusedDay&&nn(o.focusedDay,e),E=Et(Et(Et({},m),(n={disabled:l.disabled,role:"gridcell"},n["aria-selected"]=l.selected,n.tabIndex=A||T?0:-1,n)),c),P={isButton:f,isHidden:v,activeModifiers:l,selectedDays:p,buttonProps:E,divProps:m};return P}function fue(e){var t=te.useRef(null),r=cue(e.date,e.displayMonth,t);return r.isHidden?ce.jsx("div",{role:"gridcell"}):r.isButton?ce.jsx(Sm,Et({name:"day",ref:t},r.buttonProps)):ce.jsx("div",Et({},r.divProps))}function pue(e){var t=e.number,r=e.dates,n=tr(),i=n.onWeekNumberClick,a=n.styles,s=n.classNames,o=n.locale,l=n.labels.labelWeekNumber,c=n.formatters.formatWeekNumber,p=c(Number(t),{locale:o});if(!i)return ce.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:p});var f=l(Number(t),{locale:o}),d=function(h){i(t,r,h)};return ce.jsx(Sm,{name:"week-number","aria-label":f,className:s.weeknumber,style:a.weeknumber,onClick:d,children:p})}function due(e){var t,r,n=tr(),i=n.styles,a=n.classNames,s=n.showWeekNumber,o=n.components,l=(t=o==null?void 0:o.Day)!==null&&t!==void 0?t:fue,c=(r=o==null?void 0:o.WeekNumber)!==null&&r!==void 0?r:pue,p;return s&&(p=ce.jsx("td",{className:a.cell,style:i.cell,children:ce.jsx(c,{number:e.weekNumber,dates:e.dates})})),ce.jsxs("tr",{className:a.row,style:i.row,children:[p,e.dates.map(function(f){return ce.jsx("td",{className:a.cell,style:i.cell,role:"presentation",children:ce.jsx(l,{displayMonth:e.displayMonth,date:f})},d9(f))})]})}function sL(e,t,r){for(var n=r!=null&&r.ISOWeek?Dj(t):Mj(t,r),i=r!=null&&r.ISOWeek?S1(e):E1(e,r),a=ea(n,i),s=[],o=0;o<=a;o++)s.push(Tn(i,o));var l=s.reduce(function(c,p){var f=r!=null&&r.ISOWeek?b9(p):x9(p,r),d=c.find(function(h){return h.weekNumber===f});return d?(d.dates.push(p),c):(c.push({weekNumber:f,dates:[p]}),c)},[]);return l}function hue(e,t){var r=sL(An(e),x1(e),t);if(t!=null&&t.useFixedWeeks){var n=p9(e,t);if(n<6){var i=r[r.length-1],a=i.dates[i.dates.length-1],s=PT(a,6-n),o=sL(PT(a,1),s,t);r.push.apply(r,o)}}return r}function mue(e){var t,r,n,i=tr(),a=i.locale,s=i.classNames,o=i.styles,l=i.hideHead,c=i.fixedWeeks,p=i.components,f=i.weekStartsOn,d=i.firstWeekContainsDate,h=i.ISOWeek,v=hue(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:a,weekStartsOn:f,firstWeekContainsDate:d}),x=(t=p==null?void 0:p.Head)!==null&&t!==void 0?t:Ile,y=(r=p==null?void 0:p.Row)!==null&&r!==void 0?r:due,m=(n=p==null?void 0:p.Footer)!==null&&n!==void 0?n:_le;return ce.jsxs("table",{id:e.id,className:s.table,style:o.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&ce.jsx(x,{}),ce.jsx("tbody",{className:s.tbody,style:o.tbody,children:v.map(function(T){return ce.jsx(y,{displayMonth:e.displayMonth,dates:T.dates,weekNumber:T.weekNumber},T.weekNumber)})}),ce.jsx(m,{displayMonth:e.displayMonth})]})}function yue(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var gue=yue()?te.useLayoutEffect:te.useEffect,oT=!1,vue=0;function oL(){return"react-day-picker-".concat(++vue)}function bue(e){var t,r=e??(oT?oL():null),n=te.useState(r),i=n[0],a=n[1];return gue(function(){i===null&&a(oL())},[]),te.useEffect(function(){oT===!1&&(oT=!0)},[]),(t=e??i)!==null&&t!==void 0?t:void 0}function xue(e){var t,r,n=tr(),i=n.dir,a=n.classNames,s=n.styles,o=n.components,l=dp().displayMonths,c=bue(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),p=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,f=[a.month],d=s.month,h=e.displayIndex===0,v=e.displayIndex===l.length-1,x=!h&&!v;i==="rtl"&&(t=[h,v],v=t[0],h=t[1]),h&&(f.push(a.caption_start),d=Et(Et({},d),s.caption_start)),v&&(f.push(a.caption_end),d=Et(Et({},d),s.caption_end)),x&&(f.push(a.caption_between),d=Et(Et({},d),s.caption_between));var y=(r=o==null?void 0:o.Caption)!==null&&r!==void 0?r:wle;return ce.jsxs("div",{className:f.join(" "),style:d,children:[ce.jsx(y,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),ce.jsx(mue,{id:p,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function Tue(e){var t=tr(),r=t.classNames,n=t.styles;return ce.jsx("div",{className:r.months,style:n.months,children:e.children})}function Sue(e){var t,r,n=e.initialProps,i=tr(),a=XP(),s=dp(),o=te.useState(!1),l=o[0],c=o[1];te.useEffect(function(){i.initialFocus&&a.focusTarget&&(l||(a.focus(a.focusTarget),c(!0)))},[i.initialFocus,l,a.focus,a.focusTarget,a]);var p=[i.classNames.root,i.className];i.numberOfMonths>1&&p.push(i.classNames.multiple_months),i.showWeekNumber&&p.push(i.classNames.with_weeknumber);var f=Et(Et({},i.styles.root),i.style),d=Object.keys(n).filter(function(v){return v.startsWith("data-")}).reduce(function(v,x){var y;return Et(Et({},v),(y={},y[x]=n[x],y))},{}),h=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:Tue;return ce.jsx("div",Et({className:p.join(" "),style:f,dir:i.dir,id:i.id,nonce:n.nonce,title:n.title,lang:n.lang},d,{children:ce.jsx(h,{children:s.displayMonths.map(function(v,x){return ce.jsx(xue,{displayIndex:x,displayMonth:v},x)})})}))}function Eue(e){var t=e.children,r=Hoe(e,["children"]);return ce.jsx(ple,{initialProps:r,children:ce.jsx(Sle,{children:ce.jsx(nue,{initialProps:r,children:ce.jsx(Nle,{initialProps:r,children:ce.jsx(Lle,{initialProps:r,children:ce.jsx(Vle,{children:ce.jsx(tue,{children:t})})})})})})})}function Pue(e){return ce.jsx(Eue,Et({},e,{children:ce.jsx(Sue,{initialProps:e})}))}function U5({className:e,classNames:t,showOutsideDays:r=!0,...n}){return ce.jsx(Pue,{showOutsideDays:r,className:et("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:et(mu({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:et(mu({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...i})=>ce.jsx(Fq,{className:"h-4 w-4"}),IconRight:({...i})=>ce.jsx(ij,{className:"h-4 w-4"})},...n})}U5.displayName="Calendar";const Kye=Object.freeze(Object.defineProperty({__proto__:null,Calendar:U5},Symbol.toStringTag,{value:"Module"})),V5=te.forwardRef(({className:e,...t},r)=>ce.jsx("div",{ref:r,className:et("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));V5.displayName="Card";const K5=te.forwardRef(({className:e,...t},r)=>ce.jsx("div",{ref:r,className:et("flex flex-col space-y-1.5 p-6",e),...t}));K5.displayName="CardHeader";const z5=te.forwardRef(({className:e,...t},r)=>ce.jsx("h3",{ref:r,className:et("text-2xl font-semibold leading-none tracking-tight",e),...t}));z5.displayName="CardTitle";const W5=te.forwardRef(({className:e,...t},r)=>ce.jsx("p",{ref:r,className:et("text-sm text-muted-foreground",e),...t}));W5.displayName="CardDescription";const H5=te.forwardRef(({className:e,...t},r)=>ce.jsx("div",{ref:r,className:et("p-6 pt-0",e),...t}));H5.displayName="CardContent";const Y5=te.forwardRef(({className:e,...t},r)=>ce.jsx("div",{ref:r,className:et("flex items-center p-6 pt-0",e),...t}));Y5.displayName="CardFooter";const zye=Object.freeze(Object.defineProperty({__proto__:null,Card:V5,CardContent:H5,CardDescription:W5,CardFooter:Y5,CardHeader:K5,CardTitle:z5},Symbol.toStringTag,{value:"Module"}));var Ny="Checkbox",[Aue]=fa(Ny),[wue,JP]=Aue(Ny);function _ue(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:i,disabled:a,form:s,name:o,onCheckedChange:l,required:c,value:p="on",internal_do_not_use_render:f}=e,[d,h]=Os({prop:r,defaultProp:i??!1,onChange:l,caller:Ny}),[v,x]=te.useState(null),[y,m]=te.useState(null),T=te.useRef(!1),A=v?!!s||!!v.closest("form"):!0,E={checked:d,disabled:a,setChecked:h,control:v,setControl:x,name:o,form:s,value:p,hasConsumerStoppedPropagationRef:T,required:c,defaultChecked:As(i)?!1:i,isFormControl:A,bubbleInput:y,setBubbleInput:m};return ce.jsx(wue,{scope:t,...E,children:Oue(f)?f(E):n})}var X5="CheckboxTrigger",G5=te.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},i)=>{const{control:a,value:s,disabled:o,checked:l,required:c,setControl:p,setChecked:f,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:v}=JP(X5,e),x=Nr(i,p),y=te.useRef(l);return te.useEffect(()=>{const m=a==null?void 0:a.form;if(m){const T=()=>f(y.current);return m.addEventListener("reset",T),()=>m.removeEventListener("reset",T)}},[a,f]),ce.jsx(pr.button,{type:"button",role:"checkbox","aria-checked":As(l)?"mixed":l,"aria-required":c,"data-state":t6(l),"data-disabled":o?"":void 0,disabled:o,value:s,...n,ref:x,onKeyDown:Qt(t,m=>{m.key==="Enter"&&m.preventDefault()}),onClick:Qt(r,m=>{f(T=>As(T)?!0:!T),v&&h&&(d.current=m.isPropagationStopped(),d.current||m.stopPropagation())})})});G5.displayName=X5;var QP=te.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:a,required:s,disabled:o,value:l,onCheckedChange:c,form:p,...f}=e;return ce.jsx(_ue,{__scopeCheckbox:r,checked:i,defaultChecked:a,disabled:o,required:s,onCheckedChange:c,name:n,form:p,value:l,internal_do_not_use_render:({isFormControl:d})=>ce.jsxs(ce.Fragment,{children:[ce.jsx(G5,{...f,ref:t,__scopeCheckbox:r}),d&&ce.jsx(e6,{__scopeCheckbox:r})]})})});QP.displayName=Ny;var J5="CheckboxIndicator",Q5=te.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,a=JP(J5,r);return ce.jsx(ca,{present:n||As(a.checked)||a.checked===!0,children:ce.jsx(pr.span,{"data-state":t6(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});Q5.displayName=J5;var Z5="CheckboxBubbleInput",e6=te.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:s,required:o,disabled:l,name:c,value:p,form:f,bubbleInput:d,setBubbleInput:h}=JP(Z5,e),v=Nr(r,h),x=y1(a),y=g1(n);te.useEffect(()=>{const T=d;if(!T)return;const A=window.HTMLInputElement.prototype,P=Object.getOwnPropertyDescriptor(A,"checked").set,_=!i.current;if(x!==a&&P){const I=new Event("click",{bubbles:_});T.indeterminate=As(a),P.call(T,As(a)?!1:a),T.dispatchEvent(I)}},[d,x,a,i]);const m=te.useRef(As(a)?!1:a);return ce.jsx(pr.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??m.current,required:o,disabled:l,name:c,value:p,form:f,...t,tabIndex:-1,ref:v,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});e6.displayName=Z5;function Oue(e){return typeof e=="function"}function As(e){return e==="indeterminate"}function t6(e){return As(e)?"indeterminate":e?"checked":"unchecked"}const r6=te.forwardRef(({className:e,...t},r)=>ce.jsx(QP,{ref:r,className:et("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:ce.jsx(Q5,{className:et("flex items-center justify-center text-current"),children:ce.jsx(b1,{className:"h-4 w-4"})})}));r6.displayName=QP.displayName;const Wye=Object.freeze(Object.defineProperty({__proto__:null,Checkbox:r6},Symbol.toStringTag,{value:"Module"})),Cue=_P,Iue=wy,kue=_y,Hye=Object.freeze(Object.defineProperty({__proto__:null,Collapsible:Cue,CollapsibleContent:kue,CollapsibleTrigger:Iue},Symbol.toStringTag,{value:"Module"}));function Nue(e){return Object.prototype.toString.call(e)==="[object Object]"}function lL(e){return Nue(e)||Array.isArray(e)}function Due(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ZP(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==a?!1:r.every(s=>{const o=e[s],l=t[s];return typeof o=="function"?`${o}`==`${l}`:!lL(o)||!lL(l)?o===l:ZP(o,l)})}function uL(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function Mue(e,t){if(e.length!==t.length)return!1;const r=uL(e),n=uL(t);return r.every((i,a)=>{const s=n[a];return ZP(i,s)})}function eA(e){return typeof e=="number"}function JS(e){return typeof e=="string"}function Dy(e){return typeof e=="boolean"}function cL(e){return Object.prototype.toString.call(e)==="[object Object]"}function ar(e){return Math.abs(e)}function tA(e){return Math.sign(e)}function rf(e,t){return ar(e-t)}function Lue(e,t){if(e===0||t===0||ar(e)<=ar(t))return 0;const r=rf(ar(e),ar(t));return ar(r/e)}function jue(e){return Math.round(e*100)/100}function zf(e){return Wf(e).map(Number)}function ii(e){return e[hp(e)]}function hp(e){return Math.max(0,e.length-1)}function rA(e,t){return t===hp(e)}function fL(e,t=0){return Array.from(Array(e),(r,n)=>t+n)}function Wf(e){return Object.keys(e)}function n6(e,t){return[e,t].reduce((r,n)=>(Wf(n).forEach(i=>{const a=r[i],s=n[i],o=cL(a)&&cL(s);r[i]=o?n6(a,s):s}),r),{})}function QS(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Rue(e,t){const r={start:n,center:i,end:a};function n(){return 0}function i(l){return a(l)/2}function a(l){return t-l}function s(l,c){return JS(e)?r[e](l):e(t,l,c)}return{measure:s}}function Hf(){let e=[];function t(i,a,s,o={passive:!0}){let l;if("addEventListener"in i)i.addEventListener(a,s,o),l=()=>i.removeEventListener(a,s,o);else{const c=i;c.addListener(s),l=()=>c.removeListener(s)}return e.push(l),n}function r(){e=e.filter(i=>i())}const n={add:t,clear:r};return n}function Bue(e,t,r,n){const i=Hf(),a=1e3/60;let s=null,o=0,l=0;function c(){i.add(e,"visibilitychange",()=>{e.hidden&&v()})}function p(){h(),i.clear()}function f(y){if(!l)return;s||(s=y,r(),r());const m=y-s;for(s=y,o+=m;o>=a;)r(),o-=a;const T=o/a;n(T),l&&(l=t.requestAnimationFrame(f))}function d(){l||(l=t.requestAnimationFrame(f))}function h(){t.cancelAnimationFrame(l),s=null,o=0,l=0}function v(){s=null,o=0}return{init:c,destroy:p,start:d,stop:h,update:r,render:n}}function Fue(e,t){const r=t==="rtl",n=e==="y",i=n?"y":"x",a=n?"x":"y",s=!n&&r?-1:1,o=p(),l=f();function c(v){const{height:x,width:y}=v;return n?x:y}function p(){return n?"top":r?"right":"left"}function f(){return n?"bottom":r?"left":"right"}function d(v){return v*s}return{scroll:i,cross:a,startEdge:o,endEdge:l,measureSize:c,direction:d}}function Jo(e=0,t=0){const r=ar(e-t);function n(c){return c<e}function i(c){return c>t}function a(c){return n(c)||i(c)}function s(c){return a(c)?n(c)?e:t:c}function o(c){return r?c-r*Math.ceil((c-t)/r):c}return{length:r,max:t,min:e,constrain:s,reachedAny:a,reachedMax:i,reachedMin:n,removeOffset:o}}function i6(e,t,r){const{constrain:n}=Jo(0,e),i=e+1;let a=s(t);function s(d){return r?ar((i+d)%i):n(d)}function o(){return a}function l(d){return a=s(d),f}function c(d){return p().set(o()+d)}function p(){return i6(e,o(),r)}const f={get:o,set:l,add:c,clone:p};return f}function que(e,t,r,n,i,a,s,o,l,c,p,f,d,h,v,x,y,m,T){const{cross:A,direction:E}=e,P=["INPUT","SELECT","TEXTAREA"],_={passive:!1},I=Hf(),k=Hf(),M=Jo(50,225).constrain(h.measure(20)),D={mouse:300,touch:400},C={mouse:500,touch:600},L=v?43:25;let q=!1,$=0,z=0,Q=!1,V=!1,X=!1,U=!1;function N(xe){if(!T)return;function Be(He){(Dy(T)||T(xe,He))&&ie(He)}const Re=t;I.add(Re,"dragstart",He=>He.preventDefault(),_).add(Re,"touchmove",()=>{},_).add(Re,"touchend",()=>{}).add(Re,"touchstart",Be).add(Re,"mousedown",Be).add(Re,"touchcancel",fe).add(Re,"contextmenu",fe).add(Re,"click",de,!0)}function j(){I.clear(),k.clear()}function F(){const xe=U?r:t;k.add(xe,"touchmove",ae,_).add(xe,"touchend",fe).add(xe,"mousemove",ae,_).add(xe,"mouseup",fe)}function R(xe){const Be=xe.nodeName||"";return P.includes(Be)}function J(){return(v?C:D)[U?"mouse":"touch"]}function se(xe,Be){const Re=f.add(tA(xe)*-1),He=p.byDistance(xe,!v).distance;return v||ar(xe)<M?He:y&&Be?He*.5:p.byIndex(Re.get(),0).distance}function ie(xe){const Be=QS(xe,n);U=Be,X=v&&Be&&!xe.buttons&&q,q=rf(i.get(),s.get())>=2,!(Be&&xe.button!==0)&&(R(xe.target)||(Q=!0,a.pointerDown(xe),c.useFriction(0).useDuration(0),i.set(s),F(),$=a.readPoint(xe),z=a.readPoint(xe,A),d.emit("pointerDown")))}function ae(xe){if(!QS(xe,n)&&xe.touches.length>=2)return fe(xe);const Re=a.readPoint(xe),He=a.readPoint(xe,A),ze=rf(Re,$),je=rf(He,z);if(!V&&!U&&(!xe.cancelable||(V=ze>je,!V)))return fe(xe);const re=a.pointerMove(xe);ze>x&&(X=!0),c.useFriction(.3).useDuration(.75),o.start(),i.add(E(re)),xe.preventDefault()}function fe(xe){const Re=p.byDistance(0,!1).index!==f.get(),He=a.pointerUp(xe)*J(),ze=se(E(He),Re),je=Lue(He,ze),re=L-10*je,ue=m+je/50;V=!1,Q=!1,k.clear(),c.useDuration(re).useFriction(ue),l.distance(ze,!v),U=!1,d.emit("pointerUp")}function de(xe){X&&(xe.stopPropagation(),xe.preventDefault(),X=!1)}function Se(){return Q}return{init:N,destroy:j,pointerDown:Se}}function $ue(e,t){let n,i;function a(f){return f.timeStamp}function s(f,d){const v=`client${(d||e.scroll)==="x"?"X":"Y"}`;return(QS(f,t)?f:f.touches[0])[v]}function o(f){return n=f,i=f,s(f)}function l(f){const d=s(f)-s(i),h=a(f)-a(n)>170;return i=f,h&&(n=f),d}function c(f){if(!n||!i)return 0;const d=s(i)-s(n),h=a(f)-a(n),v=a(f)-a(i)>170,x=d/h;return h&&!v&&ar(x)>.1?x:0}return{pointerDown:o,pointerMove:l,pointerUp:c,readPoint:s}}function Uue(){function e(r){const{offsetTop:n,offsetLeft:i,offsetWidth:a,offsetHeight:s}=r;return{top:n,right:i+a,bottom:n+s,left:i,width:a,height:s}}return{measure:e}}function Vue(e){function t(n){return e*(n/100)}return{measure:t}}function Kue(e,t,r,n,i,a,s){const o=[e].concat(n);let l,c,p=[],f=!1;function d(y){return i.measureSize(s.measure(y))}function h(y){if(!a)return;c=d(e),p=n.map(d);function m(T){for(const A of T){if(f)return;const E=A.target===e,P=n.indexOf(A.target),_=E?c:p[P],I=d(E?e:n[P]);if(ar(I-_)>=.5){y.reInit(),t.emit("resize");break}}}l=new ResizeObserver(T=>{(Dy(a)||a(y,T))&&m(T)}),r.requestAnimationFrame(()=>{o.forEach(T=>l.observe(T))})}function v(){f=!0,l&&l.disconnect()}return{init:h,destroy:v}}function zue(e,t,r,n,i,a){let s=0,o=0,l=i,c=a,p=e.get(),f=0;function d(){const _=n.get()-e.get(),I=!l;let k=0;return I?(s=0,r.set(n),e.set(n),k=_):(r.set(e),s+=_/l,s*=c,p+=s,e.add(s),k=p-f),o=tA(k),f=p,P}function h(){const _=n.get()-t.get();return ar(_)<.001}function v(){return l}function x(){return o}function y(){return s}function m(){return A(i)}function T(){return E(a)}function A(_){return l=_,P}function E(_){return c=_,P}const P={direction:x,duration:v,velocity:y,seek:d,settled:h,useBaseFriction:T,useBaseDuration:m,useFriction:E,useDuration:A};return P}function Wue(e,t,r,n,i){const a=i.measure(10),s=i.measure(50),o=Jo(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function p(h){if(!c())return;const v=e.reachedMin(t.get())?"min":"max",x=ar(e[v]-t.get()),y=r.get()-t.get(),m=o.constrain(x/s);r.subtract(y*m),!h&&ar(y)<a&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}function f(h){l=!h}return{shouldConstrain:c,constrain:p,toggleActive:f}}function Hue(e,t,r,n,i){const a=Jo(-t+e,0),s=f(),o=p(),l=d();function c(v,x){return rf(v,x)<=1}function p(){const v=s[0],x=ii(s),y=s.lastIndexOf(v),m=s.indexOf(x)+1;return Jo(y,m)}function f(){return r.map((v,x)=>{const{min:y,max:m}=a,T=a.constrain(v),A=!x,E=rA(r,x);return A?m:E||c(y,T)?y:c(m,T)?m:T}).map(v=>parseFloat(v.toFixed(3)))}function d(){if(t<=e+i)return[a.max];if(n==="keepSnaps")return s;const{min:v,max:x}=o;return s.slice(v,x)}return{snapsContained:l,scrollContainLimit:o}}function Yue(e,t,r){const n=t[0],i=r?n-e:ii(t);return{limit:Jo(i,n)}}function Xue(e,t,r,n){const a=t.min+.1,s=t.max+.1,{reachedMin:o,reachedMax:l}=Jo(a,s);function c(d){return d===1?l(r.get()):d===-1?o(r.get()):!1}function p(d){if(!c(d))return;const h=e*(d*-1);n.forEach(v=>v.add(h))}return{loop:p}}function Gue(e){const{max:t,length:r}=e;function n(a){const s=a-t;return r?s/-r:0}return{get:n}}function Jue(e,t,r,n,i){const{startEdge:a,endEdge:s}=e,{groupSlides:o}=i,l=f().map(t.measure),c=d(),p=h();function f(){return o(n).map(x=>ii(x)[s]-x[0][a]).map(ar)}function d(){return n.map(x=>r[a]-x[a]).map(x=>-ar(x))}function h(){return o(c).map(x=>x[0]).map((x,y)=>x+l[y])}return{snaps:c,snapsAligned:p}}function Que(e,t,r,n,i,a){const{groupSlides:s}=i,{min:o,max:l}=n,c=p();function p(){const d=s(a),h=!e||t==="keepSnaps";return r.length===1?[a]:h?d:d.slice(o,l).map((v,x,y)=>{const m=!x,T=rA(y,x);if(m){const A=ii(y[0])+1;return fL(A)}if(T){const A=hp(a)-ii(y)[0]+1;return fL(A,ii(y)[0])}return v})}return{slideRegistry:c}}function Zue(e,t,r,n,i){const{reachedAny:a,removeOffset:s,constrain:o}=n;function l(v){return v.concat().sort((x,y)=>ar(x)-ar(y))[0]}function c(v){const x=e?s(v):o(v),y=t.map((T,A)=>({diff:p(T-x,0),index:A})).sort((T,A)=>ar(T.diff)-ar(A.diff)),{index:m}=y[0];return{index:m,distance:x}}function p(v,x){const y=[v,v+r,v-r];if(!e)return v;if(!x)return l(y);const m=y.filter(T=>tA(T)===x);return m.length?l(m):ii(y)-r}function f(v,x){const y=t[v]-i.get(),m=p(y,x);return{index:v,distance:m}}function d(v,x){const y=i.get()+v,{index:m,distance:T}=c(y),A=!e&&a(y);if(!x||A)return{index:m,distance:v};const E=t[m]-T,P=v+p(E,0);return{index:m,distance:P}}return{byDistance:d,byIndex:f,shortcut:p}}function ece(e,t,r,n,i,a,s){function o(f){const d=f.distance,h=f.index!==t.get();a.add(d),d&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),h&&(r.set(t.get()),t.set(f.index),s.emit("select"))}function l(f,d){const h=i.byDistance(f,d);o(h)}function c(f,d){const h=t.clone().set(f),v=i.byIndex(h.get(),d);o(v)}return{distance:l,index:c}}function tce(e,t,r,n,i,a,s,o){const l={passive:!0,capture:!0};let c=0;function p(h){if(!o)return;function v(x){if(new Date().getTime()-c>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;const T=r.findIndex(A=>A.includes(x));eA(T)&&(i.useDuration(0),n.index(T,0),s.emit("slideFocus"))}a.add(document,"keydown",f,!1),t.forEach((x,y)=>{a.add(x,"focus",m=>{(Dy(o)||o(h,m))&&v(y)},l)})}function f(h){h.code==="Tab"&&(c=new Date().getTime())}return{init:p}}function Hc(e){let t=e;function r(){return t}function n(l){t=s(l)}function i(l){t+=s(l)}function a(l){t-=s(l)}function s(l){return eA(l)?l:l.get()}return{get:r,set:n,add:i,subtract:a}}function a6(e,t){const r=e.scroll==="x"?s:o,n=t.style;let i=null,a=!1;function s(d){return`translate3d(${d}px,0px,0px)`}function o(d){return`translate3d(0px,${d}px,0px)`}function l(d){if(a)return;const h=jue(e.direction(d));h!==i&&(n.transform=r(h),i=h)}function c(d){a=!d}function p(){a||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:p,to:l,toggleActive:c}}function rce(e,t,r,n,i,a,s,o,l){const p=zf(i),f=zf(i).reverse(),d=m().concat(T());function h(I,k){return I.reduce((M,D)=>M-i[D],k)}function v(I,k){return I.reduce((M,D)=>h(M,k)>0?M.concat([D]):M,[])}function x(I){return a.map((k,M)=>({start:k-n[M]+.5+I,end:k+t-.5+I}))}function y(I,k,M){const D=x(k);return I.map(C=>{const L=M?0:-r,q=M?r:0,$=M?"end":"start",z=D[C][$];return{index:C,loopPoint:z,slideLocation:Hc(-1),translate:a6(e,l[C]),target:()=>o.get()>z?L:q}})}function m(){const I=s[0],k=v(f,I);return y(k,r,!1)}function T(){const I=t-s[0]-1,k=v(p,I);return y(k,-r,!0)}function A(){return d.every(({index:I})=>{const k=p.filter(M=>M!==I);return h(k,t)<=.1})}function E(){d.forEach(I=>{const{target:k,translate:M,slideLocation:D}=I,C=k();C!==D.get()&&(M.to(C),D.set(C))})}function P(){d.forEach(I=>I.translate.clear())}return{canLoop:A,clear:P,loop:E,loopPoints:d}}function nce(e,t,r){let n,i=!1;function a(l){if(!r)return;function c(p){for(const f of p)if(f.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}n=new MutationObserver(p=>{i||(Dy(r)||r(l,p))&&c(p)}),n.observe(e,{childList:!0})}function s(){n&&n.disconnect(),i=!0}return{init:a,destroy:s}}function ice(e,t,r,n){const i={};let a=null,s=null,o,l=!1;function c(){o=new IntersectionObserver(v=>{l||(v.forEach(x=>{const y=t.indexOf(x.target);i[y]=x}),a=null,s=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(v=>o.observe(v))}function p(){o&&o.disconnect(),l=!0}function f(v){return Wf(i).reduce((x,y)=>{const m=parseInt(y),{isIntersecting:T}=i[m];return(v&&T||!v&&!T)&&x.push(m),x},[])}function d(v=!0){if(v&&a)return a;if(!v&&s)return s;const x=f(v);return v&&(a=x),v||(s=x),x}return{init:c,destroy:p,get:d}}function ace(e,t,r,n,i,a){const{measureSize:s,startEdge:o,endEdge:l}=e,c=r[0]&&i,p=v(),f=x(),d=r.map(s),h=y();function v(){if(!c)return 0;const T=r[0];return ar(t[o]-T[o])}function x(){if(!c)return 0;const T=a.getComputedStyle(ii(n));return parseFloat(T.getPropertyValue(`margin-${l}`))}function y(){return r.map((T,A,E)=>{const P=!A,_=rA(E,A);return P?d[A]+p:_?d[A]+f:E[A+1][o]-T[o]}).map(ar)}return{slideSizes:d,slideSizesWithGaps:h,startGap:p,endGap:f}}function sce(e,t,r,n,i,a,s,o,l){const{startEdge:c,endEdge:p,direction:f}=e,d=eA(r);function h(m,T){return zf(m).filter(A=>A%T===0).map(A=>m.slice(A,A+T))}function v(m){return m.length?zf(m).reduce((T,A,E)=>{const P=ii(T)||0,_=P===0,I=A===hp(m),k=i[c]-a[P][c],M=i[c]-a[A][p],D=!n&&_?f(s):0,C=!n&&I?f(o):0,L=ar(M-C-(k+D));return E&&L>t+l&&T.push(A),I&&T.push(m.length),T},[]).map((T,A,E)=>{const P=Math.max(E[A-1]||0);return m.slice(P,T)}):[]}function x(m){return d?h(m,r):v(m)}return{groupSlides:x}}function oce(e,t,r,n,i,a,s){const{align:o,axis:l,direction:c,startIndex:p,loop:f,duration:d,dragFree:h,dragThreshold:v,inViewThreshold:x,slidesToScroll:y,skipSnaps:m,containScroll:T,watchResize:A,watchSlides:E,watchDrag:P,watchFocus:_}=a,I=2,k=Uue(),M=k.measure(t),D=r.map(k.measure),C=Fue(l,c),L=C.measureSize(M),q=Vue(L),$=Rue(o,L),z=!f&&!!T,Q=f||!!T,{slideSizes:V,slideSizesWithGaps:X,startGap:U,endGap:N}=ace(C,M,D,r,Q,i),j=sce(C,L,y,f,M,D,U,N,I),{snaps:F,snapsAligned:R}=Jue(C,$,M,D,j),J=-ii(F)+ii(X),{snapsContained:se,scrollContainLimit:ie}=Hue(L,J,R,T,I),ae=z?se:R,{limit:fe}=Yue(J,ae,f),de=i6(hp(ae),p,f),Se=de.clone(),Ce=zf(r),xe=({dragHandler:De,scrollBody:Ue,scrollBounds:We,options:{loop:lt}})=>{lt||We.constrain(De.pointerDown()),Ue.seek()},Be=({scrollBody:De,translate:Ue,location:We,offsetLocation:lt,previousLocation:gt,scrollLooper:Ge,slideLooper:vt,dragHandler:Le,animation:qe,eventHandler:he,scrollBounds:$e,options:{loop:Ze}},Ee)=>{const Xe=De.settled(),it=!$e.shouldConstrain(),st=Ze?Xe:Xe&&it,mt=st&&!Le.pointerDown();mt&&qe.stop();const Tt=We.get()*Ee+gt.get()*(1-Ee);lt.set(Tt),Ze&&(Ge.loop(De.direction()),vt.loop()),Ue.to(lt.get()),mt&&he.emit("settle"),st||he.emit("scroll")},Re=Bue(n,i,()=>xe(Ie),De=>Be(Ie,De)),He=.68,ze=ae[de.get()],je=Hc(ze),re=Hc(ze),ue=Hc(ze),Te=Hc(ze),ke=zue(je,ue,re,Te,d,He),Oe=Zue(f,ae,J,fe,Te),Me=ece(Re,de,Se,ke,Oe,Te,s),Ke=Gue(fe),_e=Hf(),pe=ice(t,r,s,x),{slideRegistry:ne}=Que(z,T,ae,ie,j,Ce),me=tce(e,r,ne,Me,ke,_e,s,_),Ie={ownerDocument:n,ownerWindow:i,eventHandler:s,containerRect:M,slideRects:D,animation:Re,axis:C,dragHandler:que(C,e,n,i,Te,$ue(C,i),je,Re,Me,ke,Oe,de,s,q,h,v,m,He,P),eventStore:_e,percentOfView:q,index:de,indexPrevious:Se,limit:fe,location:je,offsetLocation:ue,previousLocation:re,options:a,resizeHandler:Kue(t,s,i,r,C,A,k),scrollBody:ke,scrollBounds:Wue(fe,ue,Te,ke,q),scrollLooper:Xue(J,fe,ue,[je,ue,re,Te]),scrollProgress:Ke,scrollSnapList:ae.map(Ke.get),scrollSnaps:ae,scrollTarget:Oe,scrollTo:Me,slideLooper:rce(C,L,J,V,X,F,ae,ue,r),slideFocus:me,slidesHandler:nce(t,s,E),slidesInView:pe,slideIndexes:Ce,slideRegistry:ne,slidesToScroll:j,target:Te,translate:a6(C,t)};return Ie}function lce(){let e={},t;function r(c){t=c}function n(c){return e[c]||[]}function i(c){return n(c).forEach(p=>p(t,c)),l}function a(c,p){return e[c]=n(c).concat([p]),l}function s(c,p){return e[c]=n(c).filter(f=>f!==p),l}function o(){e={}}const l={init:r,emit:i,off:s,on:a,clear:o};return l}const uce={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function cce(e){function t(a,s){return n6(a,s||{})}function r(a){const s=a.breakpoints||{},o=Wf(s).filter(l=>e.matchMedia(l).matches).map(l=>s[l]).reduce((l,c)=>t(l,c),{});return t(a,o)}function n(a){return a.map(s=>Wf(s.breakpoints||{})).reduce((s,o)=>s.concat(o),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:n}}function fce(e){let t=[];function r(a,s){return t=s.filter(({options:o})=>e.optionsAtMedia(o).active!==!1),t.forEach(o=>o.init(a,e)),s.reduce((o,l)=>Object.assign(o,{[l.name]:l}),{})}function n(){t=t.filter(a=>a.destroy())}return{init:r,destroy:n}}function Em(e,t,r){const n=e.ownerDocument,i=n.defaultView,a=cce(i),s=fce(a),o=Hf(),l=lce(),{mergeOptions:c,optionsAtMedia:p,optionsMediaQueries:f}=a,{on:d,off:h,emit:v}=l,x=C;let y=!1,m,T=c(uce,Em.globalOptions),A=c(T),E=[],P,_,I;function k(){const{container:Ce,slides:xe}=A;_=(JS(Ce)?e.querySelector(Ce):Ce)||e.children[0];const Re=JS(xe)?_.querySelectorAll(xe):xe;I=[].slice.call(Re||_.children)}function M(Ce){const xe=oce(e,_,I,n,i,Ce,l);if(Ce.loop&&!xe.slideLooper.canLoop()){const Be=Object.assign({},Ce,{loop:!1});return M(Be)}return xe}function D(Ce,xe){y||(T=c(T,Ce),A=p(T),E=xe||E,k(),m=M(A),f([T,...E.map(({options:Be})=>Be)]).forEach(Be=>o.add(Be,"change",C)),A.active&&(m.translate.to(m.location.get()),m.animation.init(),m.slidesInView.init(),m.slideFocus.init(Se),m.eventHandler.init(Se),m.resizeHandler.init(Se),m.slidesHandler.init(Se),m.options.loop&&m.slideLooper.loop(),_.offsetParent&&I.length&&m.dragHandler.init(Se),P=s.init(Se,E)))}function C(Ce,xe){const Be=j();L(),D(c({startIndex:Be},Ce),xe),l.emit("reInit")}function L(){m.dragHandler.destroy(),m.eventStore.clear(),m.translate.clear(),m.slideLooper.clear(),m.resizeHandler.destroy(),m.slidesHandler.destroy(),m.slidesInView.destroy(),m.animation.destroy(),s.destroy(),o.clear()}function q(){y||(y=!0,o.clear(),L(),l.emit("destroy"),l.clear())}function $(Ce,xe,Be){!A.active||y||(m.scrollBody.useBaseFriction().useDuration(xe===!0?0:A.duration),m.scrollTo.index(Ce,Be||0))}function z(Ce){const xe=m.index.add(1).get();$(xe,Ce,-1)}function Q(Ce){const xe=m.index.add(-1).get();$(xe,Ce,1)}function V(){return m.index.add(1).get()!==j()}function X(){return m.index.add(-1).get()!==j()}function U(){return m.scrollSnapList}function N(){return m.scrollProgress.get(m.offsetLocation.get())}function j(){return m.index.get()}function F(){return m.indexPrevious.get()}function R(){return m.slidesInView.get()}function J(){return m.slidesInView.get(!1)}function se(){return P}function ie(){return m}function ae(){return e}function fe(){return _}function de(){return I}const Se={canScrollNext:V,canScrollPrev:X,containerNode:fe,internalEngine:ie,destroy:q,off:h,on:d,emit:v,plugins:se,previousScrollSnap:F,reInit:x,rootNode:ae,scrollNext:z,scrollPrev:Q,scrollProgress:N,scrollSnapList:U,scrollTo:$,selectedScrollSnap:j,slideNodes:de,slidesInView:R,slidesNotInView:J};return D(t,r),setTimeout(()=>l.emit("init"),0),Se}Em.globalOptions=void 0;function s6(e={},t=[]){const r=te.useRef(e),n=te.useRef(t),[i,a]=te.useState(),[s,o]=te.useState(),l=te.useCallback(()=>{i&&i.reInit(r.current,n.current)},[i]);return te.useEffect(()=>{ZP(r.current,e)||(r.current=e,l())},[e,l]),te.useEffect(()=>{Mue(n.current,t)||(n.current=t,l())},[t,l]),te.useEffect(()=>{if(Due()&&s){Em.globalOptions=s6.globalOptions;const c=Em(s,r.current,n.current);return a(c),()=>c.destroy()}else a(void 0)},[s,a]),[o,i]}s6.globalOptions=void 0;var pL=1,pce=.9,dce=.8,hce=.17,lT=.1,uT=.999,mce=.9999,yce=.99,gce=/[\\\/_+.#"@\[\(\{&]/,vce=/[\\\/_+.#"@\[\(\{&]/g,bce=/[\s-]/,o6=/[\s-]/g;function ZS(e,t,r,n,i,a,s){if(a===t.length)return i===e.length?pL:yce;var o=`${i},${a}`;if(s[o]!==void 0)return s[o];for(var l=n.charAt(a),c=r.indexOf(l,i),p=0,f,d,h,v;c>=0;)f=ZS(e,t,r,n,c+1,a+1,s),f>p&&(c===i?f*=pL:gce.test(e.charAt(c-1))?(f*=dce,h=e.slice(i,c-1).match(vce),h&&i>0&&(f*=Math.pow(uT,h.length))):bce.test(e.charAt(c-1))?(f*=pce,v=e.slice(i,c-1).match(o6),v&&i>0&&(f*=Math.pow(uT,v.length))):(f*=hce,i>0&&(f*=Math.pow(uT,c-i))),e.charAt(c)!==t.charAt(a)&&(f*=mce)),(f<lT&&r.charAt(c-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(c-1)!==n.charAt(a))&&(d=ZS(e,t,r,n,c+1,a+2,s),d*lT>f&&(f=d*lT)),f>p&&(p=f),c=r.indexOf(l,c+1);return s[o]=p,p}function dL(e){return e.toLowerCase().replace(o6," ")}function xce(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,ZS(e,t,dL(e),dL(t),0,0,{})}var Fc='[cmdk-group=""]',cT='[cmdk-group-items=""]',Tce='[cmdk-group-heading=""]',l6='[cmdk-item=""]',hL=`${l6}:not([aria-disabled="true"])`,e1="cmdk-item-select",Sl="data-value",Sce=(e,t,r)=>xce(e,t,r),u6=te.createContext(void 0),mp=()=>te.useContext(u6),c6=te.createContext(void 0),nA=()=>te.useContext(c6),f6=te.createContext(void 0),p6=te.forwardRef((e,t)=>{let r=El(()=>{var F,R;return{search:"",value:(R=(F=e.value)!=null?F:e.defaultValue)!=null?R:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=El(()=>new Set),i=El(()=>new Map),a=El(()=>new Map),s=El(()=>new Set),o=d6(e),{label:l,children:c,value:p,onValueChange:f,filter:d,shouldFilter:h,loop:v,disablePointerSelection:x=!1,vimBindings:y=!0,...m}=e,T=Es(),A=Es(),E=Es(),P=te.useRef(null),_=Dce();Qo(()=>{if(p!==void 0){let F=p.trim();r.current.value=F,I.emit()}},[p]),Qo(()=>{_(6,q)},[]);let I=te.useMemo(()=>({subscribe:F=>(s.current.add(F),()=>s.current.delete(F)),snapshot:()=>r.current,setState:(F,R,J)=>{var se,ie,ae,fe;if(!Object.is(r.current[F],R)){if(r.current[F]=R,F==="search")L(),D(),_(1,C);else if(F==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let de=document.getElementById(E);de?de.focus():(se=document.getElementById(T))==null||se.focus()}if(_(7,()=>{var de;r.current.selectedItemId=(de=$())==null?void 0:de.id,I.emit()}),J||_(5,q),((ie=o.current)==null?void 0:ie.value)!==void 0){let de=R??"";(fe=(ae=o.current).onValueChange)==null||fe.call(ae,de);return}}I.emit()}},emit:()=>{s.current.forEach(F=>F())}}),[]),k=te.useMemo(()=>({value:(F,R,J)=>{var se;R!==((se=a.current.get(F))==null?void 0:se.value)&&(a.current.set(F,{value:R,keywords:J}),r.current.filtered.items.set(F,M(R,J)),_(2,()=>{D(),I.emit()}))},item:(F,R)=>(n.current.add(F),R&&(i.current.has(R)?i.current.get(R).add(F):i.current.set(R,new Set([F]))),_(3,()=>{L(),D(),r.current.value||C(),I.emit()}),()=>{a.current.delete(F),n.current.delete(F),r.current.filtered.items.delete(F);let J=$();_(4,()=>{L(),(J==null?void 0:J.getAttribute("id"))===F&&C(),I.emit()})}),group:F=>(i.current.has(F)||i.current.set(F,new Set),()=>{a.current.delete(F),i.current.delete(F)}),filter:()=>o.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:T,inputId:E,labelId:A,listInnerRef:P}),[]);function M(F,R){var J,se;let ie=(se=(J=o.current)==null?void 0:J.filter)!=null?se:Sce;return F?ie(F,r.current.search,R):0}function D(){if(!r.current.search||o.current.shouldFilter===!1)return;let F=r.current.filtered.items,R=[];r.current.filtered.groups.forEach(se=>{let ie=i.current.get(se),ae=0;ie.forEach(fe=>{let de=F.get(fe);ae=Math.max(de,ae)}),R.push([se,ae])});let J=P.current;z().sort((se,ie)=>{var ae,fe;let de=se.getAttribute("id"),Se=ie.getAttribute("id");return((ae=F.get(Se))!=null?ae:0)-((fe=F.get(de))!=null?fe:0)}).forEach(se=>{let ie=se.closest(cT);ie?ie.appendChild(se.parentElement===ie?se:se.closest(`${cT} > *`)):J.appendChild(se.parentElement===J?se:se.closest(`${cT} > *`))}),R.sort((se,ie)=>ie[1]-se[1]).forEach(se=>{var ie;let ae=(ie=P.current)==null?void 0:ie.querySelector(`${Fc}[${Sl}="${encodeURIComponent(se[0])}"]`);ae==null||ae.parentElement.appendChild(ae)})}function C(){let F=z().find(J=>J.getAttribute("aria-disabled")!=="true"),R=F==null?void 0:F.getAttribute(Sl);I.setState("value",R||void 0)}function L(){var F,R,J,se;if(!r.current.search||o.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let ie=0;for(let ae of n.current){let fe=(R=(F=a.current.get(ae))==null?void 0:F.value)!=null?R:"",de=(se=(J=a.current.get(ae))==null?void 0:J.keywords)!=null?se:[],Se=M(fe,de);r.current.filtered.items.set(ae,Se),Se>0&&ie++}for(let[ae,fe]of i.current)for(let de of fe)if(r.current.filtered.items.get(de)>0){r.current.filtered.groups.add(ae);break}r.current.filtered.count=ie}function q(){var F,R,J;let se=$();se&&(((F=se.parentElement)==null?void 0:F.firstChild)===se&&((J=(R=se.closest(Fc))==null?void 0:R.querySelector(Tce))==null||J.scrollIntoView({block:"nearest"})),se.scrollIntoView({block:"nearest"}))}function $(){var F;return(F=P.current)==null?void 0:F.querySelector(`${l6}[aria-selected="true"]`)}function z(){var F;return Array.from(((F=P.current)==null?void 0:F.querySelectorAll(hL))||[])}function Q(F){let R=z()[F];R&&I.setState("value",R.getAttribute(Sl))}function V(F){var R;let J=$(),se=z(),ie=se.findIndex(fe=>fe===J),ae=se[ie+F];(R=o.current)!=null&&R.loop&&(ae=ie+F<0?se[se.length-1]:ie+F===se.length?se[0]:se[ie+F]),ae&&I.setState("value",ae.getAttribute(Sl))}function X(F){let R=$(),J=R==null?void 0:R.closest(Fc),se;for(;J&&!se;)J=F>0?kce(J,Fc):Nce(J,Fc),se=J==null?void 0:J.querySelector(hL);se?I.setState("value",se.getAttribute(Sl)):V(F)}let U=()=>Q(z().length-1),N=F=>{F.preventDefault(),F.metaKey?U():F.altKey?X(1):V(1)},j=F=>{F.preventDefault(),F.metaKey?Q(0):F.altKey?X(-1):V(-1)};return te.createElement(On.div,{ref:t,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:F=>{var R;(R=m.onKeyDown)==null||R.call(m,F);let J=F.nativeEvent.isComposing||F.keyCode===229;if(!(F.defaultPrevented||J))switch(F.key){case"n":case"j":{y&&F.ctrlKey&&N(F);break}case"ArrowDown":{N(F);break}case"p":case"k":{y&&F.ctrlKey&&j(F);break}case"ArrowUp":{j(F);break}case"Home":{F.preventDefault(),Q(0);break}case"End":{F.preventDefault(),U();break}case"Enter":{F.preventDefault();let se=$();if(se){let ie=new Event(e1);se.dispatchEvent(ie)}}}}},te.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:Lce},l),My(e,F=>te.createElement(c6.Provider,{value:I},te.createElement(u6.Provider,{value:k},F))))}),Ece=te.forwardRef((e,t)=>{var r,n;let i=Es(),a=te.useRef(null),s=te.useContext(f6),o=mp(),l=d6(e),c=(n=(r=l.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Qo(()=>{if(!c)return o.item(i,s==null?void 0:s.id)},[c]);let p=h6(i,a,[e.value,e.children,a],e.keywords),f=nA(),d=ws(_=>_.value&&_.value===p.current),h=ws(_=>c||o.filter()===!1?!0:_.search?_.filtered.items.get(i)>0:!0);te.useEffect(()=>{let _=a.current;if(!(!_||e.disabled))return _.addEventListener(e1,v),()=>_.removeEventListener(e1,v)},[h,e.onSelect,e.disabled]);function v(){var _,I;x(),(I=(_=l.current).onSelect)==null||I.call(_,p.current)}function x(){f.setState("value",p.current,!0)}if(!h)return null;let{disabled:y,value:m,onSelect:T,forceMount:A,keywords:E,...P}=e;return te.createElement(On.div,{ref:$l(a,t),...P,id:i,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!d,"data-disabled":!!y,"data-selected":!!d,onPointerMove:y||o.getDisablePointerSelection()?void 0:x,onClick:y?void 0:v},e.children)}),Pce=te.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:i,...a}=e,s=Es(),o=te.useRef(null),l=te.useRef(null),c=Es(),p=mp(),f=ws(h=>i||p.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Qo(()=>p.group(s),[]),h6(s,o,[e.value,e.heading,l]);let d=te.useMemo(()=>({id:s,forceMount:i}),[i]);return te.createElement(On.div,{ref:$l(o,t),...a,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},r&&te.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),My(e,h=>te.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},te.createElement(f6.Provider,{value:d},h))))}),Ace=te.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,i=te.useRef(null),a=ws(s=>!s.search);return!r&&!a?null:te.createElement(On.div,{ref:$l(i,t),...n,"cmdk-separator":"",role:"separator"})}),wce=te.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,i=e.value!=null,a=nA(),s=ws(c=>c.search),o=ws(c=>c.selectedItemId),l=mp();return te.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),te.createElement(On.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":o,id:l.inputId,type:"text",value:i?e.value:s,onChange:c=>{i||a.setState("search",c.target.value),r==null||r(c.target.value)}})}),_ce=te.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...i}=e,a=te.useRef(null),s=te.useRef(null),o=ws(c=>c.selectedItemId),l=mp();return te.useEffect(()=>{if(s.current&&a.current){let c=s.current,p=a.current,f,d=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let h=c.offsetHeight;p.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return d.observe(c),()=>{cancelAnimationFrame(f),d.unobserve(c)}}},[]),te.createElement(On.div,{ref:$l(a,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":n,id:l.listId},My(e,c=>te.createElement("div",{ref:$l(s,l.listInnerRef),"cmdk-list-sizer":""},c)))}),Oce=te.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:i,contentClassName:a,container:s,...o}=e;return te.createElement(wm,{open:r,onOpenChange:n},te.createElement(_m,{container:s},te.createElement(vu,{"cmdk-overlay":"",className:i}),te.createElement(gu,{"aria-label":e.label,"cmdk-dialog":"",className:a},te.createElement(p6,{ref:t,...o}))))}),Cce=te.forwardRef((e,t)=>ws(r=>r.filtered.count===0)?te.createElement(On.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Ice=te.forwardRef((e,t)=>{let{progress:r,children:n,label:i="Loading...",...a}=e;return te.createElement(On.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},My(e,s=>te.createElement("div",{"aria-hidden":!0},s)))}),un=Object.assign(p6,{List:_ce,Item:Ece,Input:wce,Group:Pce,Separator:Ace,Dialog:Oce,Empty:Cce,Loading:Ice});function kce(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Nce(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function d6(e){let t=te.useRef(e);return Qo(()=>{t.current=e}),t}var Qo=typeof window>"u"?te.useEffect:te.useLayoutEffect;function El(e){let t=te.useRef();return t.current===void 0&&(t.current=e()),t}function ws(e){let t=nA(),r=()=>e(t.snapshot());return te.useSyncExternalStore(t.subscribe,r,r)}function h6(e,t,r,n=[]){let i=te.useRef(),a=mp();return Qo(()=>{var s;let o=(()=>{var c;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(c=p.current.textContent)==null?void 0:c.trim():i.current}})(),l=n.map(c=>c.trim());a.value(e,o,l),(s=t.current)==null||s.setAttribute(Sl,o),i.current=o}),i}var Dce=()=>{let[e,t]=te.useState(),r=El(()=>new Map);return Qo(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,i)=>{r.current.set(n,i),t({})}};function Mce(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function My({asChild:e,children:t},r){return e&&te.isValidElement(t)?te.cloneElement(Mce(t),{ref:t.ref},r(t.props.children)):r(t)}var Lce={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const m6=wm,jce=m1,y6=_m,Rce=yu,iA=te.forwardRef(({className:e,...t},r)=>ce.jsx(vu,{ref:r,className:et("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));iA.displayName=vu.displayName;const aA=te.forwardRef(({className:e,children:t,...r},n)=>ce.jsxs(y6,{children:[ce.jsx(iA,{}),ce.jsxs(gu,{ref:n,className:et("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,ce.jsxs(yu,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[ce.jsx(aj,{className:"h-4 w-4"}),ce.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));aA.displayName=gu.displayName;const g6=({className:e="",...t})=>ce.jsx("div",{className:et("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});g6.displayName="DialogHeader";const v6=({className:e,...t})=>ce.jsx("div",{className:et("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});v6.displayName="DialogFooter";const b6=te.forwardRef(({className:e,...t},r)=>ce.jsx(Gf,{ref:r,className:et("text-lg font-semibold leading-none tracking-tight",e),...t}));b6.displayName=Gf.displayName;const x6=te.forwardRef(({className:e,...t},r)=>ce.jsx(Xf,{ref:r,className:et("text-sm text-muted-foreground",e),...t}));x6.displayName=Xf.displayName;const Yye=Object.freeze(Object.defineProperty({__proto__:null,Dialog:m6,DialogClose:Rce,DialogContent:aA,DialogDescription:x6,DialogFooter:v6,DialogHeader:g6,DialogOverlay:iA,DialogPortal:y6,DialogTitle:b6,DialogTrigger:jce},Symbol.toStringTag,{value:"Module"})),sA=te.forwardRef(({className:e,...t},r)=>ce.jsx(un,{ref:r,className:et("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));sA.displayName=un.displayName;const Bce=({children:e,...t})=>ce.jsx(m6,{...t,children:ce.jsx(aA,{className:"overflow-hidden p-0 shadow-lg",children:ce.jsx(sA,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),T6=te.forwardRef(({className:e,...t},r)=>ce.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[ce.jsx(qq,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),ce.jsx(un.Input,{ref:r,className:et("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));T6.displayName=un.Input.displayName;const S6=te.forwardRef(({className:e,...t},r)=>ce.jsx(un.List,{ref:r,className:et("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));S6.displayName=un.List.displayName;const E6=te.forwardRef((e,t)=>ce.jsx(un.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));E6.displayName=un.Empty.displayName;const P6=te.forwardRef(({className:e,...t},r)=>ce.jsx(un.Group,{ref:r,className:et("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));P6.displayName=un.Group.displayName;const A6=te.forwardRef(({className:e,...t},r)=>ce.jsx(un.Separator,{ref:r,className:et("-mx-1 h-px bg-border",e),...t}));A6.displayName=un.Separator.displayName;const w6=te.forwardRef(({className:e,...t},r)=>ce.jsx(un.Item,{ref:r,className:et("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}));w6.displayName=un.Item.displayName;const _6=({className:e,...t})=>ce.jsx("span",{className:et("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});_6.displayName="CommandShortcut";const Xye=Object.freeze(Object.defineProperty({__proto__:null,Command:sA,CommandDialog:Bce,CommandEmpty:E6,CommandGroup:P6,CommandInput:T6,CommandItem:w6,CommandList:S6,CommandSeparator:A6,CommandShortcut:_6},Symbol.toStringTag,{value:"Module"})),Fce=$q,qce=zq,$ce=Uq,Uce=sj,Vce=Kq,Kce=Vq,O6=te.forwardRef(({className:e,inset:t,children:r,...n},i)=>ce.jsxs(yj,{ref:i,className:et("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[r,ce.jsx(ij,{className:"ml-auto h-4 w-4"})]}));O6.displayName=yj.displayName;const C6=te.forwardRef(({className:e,...t},r)=>ce.jsx(mj,{ref:r,className:et("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));C6.displayName=mj.displayName;const I6=te.forwardRef(({className:e,sideOffset:t=4,...r},n)=>ce.jsx(sj,{children:ce.jsx(uj,{ref:n,sideOffset:t,className:et("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));I6.displayName=uj.displayName;const k6=te.forwardRef(({className:e,inset:t,...r},n)=>ce.jsx(cj,{ref:n,className:et("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));k6.displayName=cj.displayName;const N6=te.forwardRef(({className:e,children:t,checked:r,...n},i)=>ce.jsxs(oj,{ref:i,className:et("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[ce.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:ce.jsx(lj,{children:ce.jsx(b1,{className:"h-4 w-4"})})}),t]}));N6.displayName=oj.displayName;const D6=te.forwardRef(({className:e,children:t,...r},n)=>ce.jsxs(pj,{ref:n,className:et("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[ce.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:ce.jsx(lj,{children:ce.jsx(dj,{className:"h-2 w-2 fill-current"})})}),t]}));D6.displayName=pj.displayName;const M6=te.forwardRef(({className:e,inset:t,...r},n)=>ce.jsx(fj,{ref:n,className:et("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));M6.displayName=fj.displayName;const L6=te.forwardRef(({className:e,...t},r)=>ce.jsx(hj,{ref:r,className:et("-mx-1 my-1 h-px bg-muted",e),...t}));L6.displayName=hj.displayName;const j6=({className:e,...t})=>ce.jsx("span",{className:et("ml-auto text-xs tracking-widest opacity-60",e),...t});j6.displayName="DropdownMenuShortcut";const Gye=Object.freeze(Object.defineProperty({__proto__:null,DropdownMenu:Fce,DropdownMenuCheckboxItem:N6,DropdownMenuContent:I6,DropdownMenuGroup:$ce,DropdownMenuItem:k6,DropdownMenuLabel:M6,DropdownMenuPortal:Uce,DropdownMenuRadioGroup:Kce,DropdownMenuRadioItem:D6,DropdownMenuSeparator:L6,DropdownMenuShortcut:j6,DropdownMenuSub:Vce,DropdownMenuSubContent:C6,DropdownMenuSubTrigger:O6,DropdownMenuTrigger:qce},Symbol.toStringTag,{value:"Module"})),zce=_s("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),R6=te.forwardRef(({className:e,...t},r)=>ce.jsx(fP,{ref:r,className:et(zce(),e),...t}));R6.displayName=fP.displayName;const Jye=Object.freeze(Object.defineProperty({__proto__:null,Label:R6},Symbol.toStringTag,{value:"Module"})),Wce=o4,Hce=l4,B6=te.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},i)=>ce.jsx(YE,{ref:i,align:t,sideOffset:r,className:et("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));B6.displayName=YE.displayName;const Qye=Object.freeze(Object.defineProperty({__proto__:null,HoverCard:Wce,HoverCardContent:B6,HoverCardTrigger:Hce},Symbol.toStringTag,{value:"Module"})),F6=te.forwardRef(({className:e,type:t,...r},n)=>ce.jsx("input",{type:t,className:et("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));F6.displayName="Input";const Zye=Object.freeze(Object.defineProperty({__proto__:null,Input:F6},Symbol.toStringTag,{value:"Module"})),Yce=Wq,Xce=Hq,q6=te.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},i)=>ce.jsx(Yq,{children:ce.jsx(gj,{ref:i,align:t,sideOffset:r,className:et("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));q6.displayName=gj.displayName;const ege=Object.freeze(Object.defineProperty({__proto__:null,Popover:Yce,PopoverContent:q6,PopoverTrigger:Xce},Symbol.toStringTag,{value:"Module"}));var oA="Radio",[Gce,$6]=fa(oA),[Jce,Qce]=Gce(oA),U6=te.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:a,disabled:s,value:o="on",onCheck:l,form:c,...p}=e,[f,d]=te.useState(null),h=Nr(t,y=>d(y)),v=te.useRef(!1),x=f?c||!!f.closest("form"):!0;return ce.jsxs(Jce,{scope:r,checked:i,disabled:s,children:[ce.jsx(pr.button,{type:"button",role:"radio","aria-checked":i,"data-state":W6(i),"data-disabled":s?"":void 0,disabled:s,value:o,...p,ref:h,onClick:Qt(e.onClick,y=>{i||l==null||l(),x&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})}),x&&ce.jsx(z6,{control:f,bubbles:!v.current,name:n,value:o,checked:i,required:a,disabled:s,form:c,style:{transform:"translateX(-100%)"}})]})});U6.displayName=oA;var V6="RadioIndicator",K6=te.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...i}=e,a=Qce(V6,r);return ce.jsx(ca,{present:n||a.checked,children:ce.jsx(pr.span,{"data-state":W6(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t})})});K6.displayName=V6;var Zce="RadioBubbleInput",z6=te.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...i},a)=>{const s=te.useRef(null),o=Nr(s,a),l=y1(r),c=g1(t);return te.useEffect(()=>{const p=s.current;if(!p)return;const f=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==r&&h){const v=new Event("click",{bubbles:n});h.call(p,r),p.dispatchEvent(v)}},[l,r,n]),ce.jsx(pr.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:o,style:{...i.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});z6.displayName=Zce;function W6(e){return e?"checked":"unchecked"}var efe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ly="RadioGroup",[tfe]=fa(Ly,[vj,$6]),H6=vj(),Y6=$6(),[rfe,nfe]=tfe(Ly),X6=te.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:i,value:a,required:s=!1,disabled:o=!1,orientation:l,dir:c,loop:p=!0,onValueChange:f,...d}=e,h=H6(r),v=v1(c),[x,y]=Os({prop:a,defaultProp:i??null,onChange:f,caller:Ly});return ce.jsx(rfe,{scope:r,name:n,required:s,disabled:o,value:x,onValueChange:y,children:ce.jsx(Xq,{asChild:!0,...h,orientation:l,dir:v,loop:p,children:ce.jsx(pr.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":o?"":void 0,dir:v,...d,ref:t})})})});X6.displayName=Ly;var G6="RadioGroupItem",J6=te.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...i}=e,a=nfe(G6,r),s=a.disabled||n,o=H6(r),l=Y6(r),c=te.useRef(null),p=Nr(t,c),f=a.value===i.value,d=te.useRef(!1);return te.useEffect(()=>{const h=x=>{efe.includes(x.key)&&(d.current=!0)},v=()=>d.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),ce.jsx(Gq,{asChild:!0,...o,focusable:!s,active:f,children:ce.jsx(U6,{disabled:s,required:a.required,checked:f,...l,...i,name:a.name,ref:p,onCheck:()=>a.onValueChange(i.value),onKeyDown:Qt(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:Qt(i.onFocus,()=>{var h;d.current&&((h=c.current)==null||h.click())})})})});J6.displayName=G6;var ife="RadioGroupIndicator",Q6=te.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,i=Y6(r);return ce.jsx(K6,{...i,...n,ref:t})});Q6.displayName=ife;var Z6=X6,e8=J6,afe=Q6;const t8=te.forwardRef(({className:e,...t},r)=>ce.jsx(Z6,{className:et("grid gap-2",e),...t,ref:r}));t8.displayName=Z6.displayName;const r8=te.forwardRef(({className:e,...t},r)=>ce.jsx(e8,{ref:r,className:et("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:ce.jsx(afe,{className:"flex items-center justify-center",children:ce.jsx(dj,{className:"h-2.5 w-2.5 fill-current text-current"})})}));r8.displayName=e8.displayName;const tge=Object.freeze(Object.defineProperty({__proto__:null,RadioGroup:t8,RadioGroupItem:r8},Symbol.toStringTag,{value:"Module"})),n8=te.forwardRef(({className:e,children:t,...r},n)=>ce.jsxs(TP,{ref:n,className:et("relative overflow-hidden",e),...r,children:[ce.jsx(O4,{className:"h-full w-full rounded-[inherit]",children:t}),ce.jsx(lA,{}),ce.jsx(C4,{})]}));n8.displayName=TP.displayName;const lA=te.forwardRef(({className:e,orientation:t="vertical",...r},n)=>ce.jsx(lp,{ref:n,orientation:t,className:et("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:ce.jsx(Sy,{className:"relative flex-1 rounded-full bg-border"})}));lA.displayName=lp.displayName;const rge=Object.freeze(Object.defineProperty({__proto__:null,ScrollArea:n8,ScrollBar:lA},Symbol.toStringTag,{value:"Module"})),sfe=Jq,ofe=Qq,lfe=Zq,i8=te.forwardRef(({className:e,children:t,advancedDropdown:r=!1,...n},i)=>ce.jsxs(wj,{ref:i,className:et(`flex h-10 w-full items-center justify-between ${r?"rounded-lg":"rounded-md"} border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1`,e),...n,children:[r?ce.jsx("div",{className:"flex-1 min-w-0",children:t}):t,ce.jsx(a9,{asChild:!0,children:ce.jsx(Ej,{className:et("h-4 w-4 opacity-50",r?"flex-shrink-0 ml-2":"")})})]}));i8.displayName=wj.displayName;const uA=te.forwardRef(({className:e,...t},r)=>ce.jsx(Pj,{ref:r,className:et("flex cursor-default items-center justify-center py-1",e),...t,children:ce.jsx(i9,{className:"h-4 w-4"})}));uA.displayName=Pj.displayName;const cA=te.forwardRef(({className:e,...t},r)=>ce.jsx(Sj,{ref:r,className:et("flex cursor-default items-center justify-center py-1",e),...t,children:ce.jsx(Ej,{className:"h-4 w-4"})}));cA.displayName=Sj.displayName;const a8=te.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>ce.jsx(e9,{children:ce.jsxs(bj,{ref:i,className:et("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[ce.jsx(uA,{}),ce.jsx(t9,{className:et("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),ce.jsx(cA,{})]})}));a8.displayName=bj.displayName;const s8=te.forwardRef(({className:e,...t},r)=>ce.jsx(Tj,{ref:r,className:et("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));s8.displayName=Tj.displayName;const o8=te.forwardRef(({className:e,children:t,hideCheckIcon:r=!1,...n},i)=>ce.jsxs(xj,{ref:i,className:et("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r?"pl-2 pr-2":"pl-8 pr-2",e),...n,children:[!r&&ce.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:ce.jsx(r9,{children:ce.jsx(b1,{className:"h-4 w-4"})})}),ce.jsx(n9,{children:t})]}));o8.displayName=xj.displayName;const l8=te.forwardRef(({className:e,...t},r)=>ce.jsx(Aj,{ref:r,className:et("-mx-1 my-1 h-px bg-muted",e),...t}));l8.displayName=Aj.displayName;const nge=Object.freeze(Object.defineProperty({__proto__:null,Select:sfe,SelectContent:a8,SelectGroup:ofe,SelectItem:o8,SelectLabel:s8,SelectScrollDownButton:cA,SelectScrollUpButton:uA,SelectSeparator:l8,SelectTrigger:i8,SelectValue:lfe},Symbol.toStringTag,{value:"Module"})),u8=te.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},i)=>ce.jsx($E,{ref:i,decorative:r,orientation:t,className:et("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));u8.displayName=$E.displayName;const ige=Object.freeze(Object.defineProperty({__proto__:null,Separator:u8},Symbol.toStringTag,{value:"Module"})),ufe=wm,cfe=m1,ffe=yu,c8=_m,fA=te.forwardRef(({className:e,...t},r)=>ce.jsx(vu,{className:et("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));fA.displayName=vu.displayName;const pfe=_s("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),f8=te.forwardRef(({side:e="right",className:t,children:r,...n},i)=>ce.jsxs(c8,{children:[ce.jsx(fA,{}),ce.jsxs(gu,{ref:i,className:et(pfe({side:e}),t),...n,children:[r,ce.jsxs(yu,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[ce.jsx(aj,{className:"h-4 w-4"}),ce.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));f8.displayName=gu.displayName;const p8=({className:e,...t})=>ce.jsx("div",{className:et("flex flex-col space-y-2 text-center sm:text-left",e),...t});p8.displayName="SheetHeader";const d8=({className:e,...t})=>ce.jsx("div",{className:et("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});d8.displayName="SheetFooter";const h8=te.forwardRef(({className:e,...t},r)=>ce.jsx(Gf,{ref:r,className:et("text-lg font-semibold text-foreground",e),...t}));h8.displayName=Gf.displayName;const m8=te.forwardRef(({className:e,...t},r)=>ce.jsx(Xf,{ref:r,className:et("text-sm text-muted-foreground",e),...t}));m8.displayName=Xf.displayName;const age=Object.freeze(Object.defineProperty({__proto__:null,Sheet:ufe,SheetClose:ffe,SheetContent:f8,SheetDescription:m8,SheetFooter:d8,SheetHeader:p8,SheetOverlay:fA,SheetPortal:c8,SheetTitle:h8,SheetTrigger:cfe},Symbol.toStringTag,{value:"Module"}));function dfe({className:e,...t}){return ce.jsx("div",{className:et("animate-pulse rounded-md bg-muted",e),...t})}const sge=Object.freeze(Object.defineProperty({__proto__:null,Skeleton:dfe},Symbol.toStringTag,{value:"Module"})),y8=te.forwardRef(({className:e,...t},r)=>ce.jsx(hP,{className:et("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:ce.jsx(b4,{className:et("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));y8.displayName=hP.displayName;const oge=Object.freeze(Object.defineProperty({__proto__:null,Switch:y8},Symbol.toStringTag,{value:"Module"})),g8=te.forwardRef(({className:e,...t},r)=>ce.jsx("div",{className:"relative w-full overflow-auto",children:ce.jsx("table",{ref:r,className:et("w-full caption-bottom text-sm",e),...t})}));g8.displayName="Table";const v8=te.forwardRef(({className:e,...t},r)=>ce.jsx("thead",{ref:r,className:et("[&_tr]:border-b",e),...t}));v8.displayName="TableHeader";const b8=te.forwardRef(({className:e,...t},r)=>ce.jsx("tbody",{ref:r,className:et("[&_tr:last-child]:border-0",e),...t}));b8.displayName="TableBody";const x8=te.forwardRef(({className:e,...t},r)=>ce.jsx("tfoot",{ref:r,className:et("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));x8.displayName="TableFooter";const T8=te.forwardRef(({className:e,...t},r)=>ce.jsx("tr",{ref:r,className:et("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));T8.displayName="TableRow";const S8=te.forwardRef(({className:e,...t},r)=>ce.jsx("th",{ref:r,className:et("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));S8.displayName="TableHead";const E8=te.forwardRef(({className:e,...t},r)=>ce.jsx("td",{ref:r,className:et("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));E8.displayName="TableCell";const P8=te.forwardRef(({className:e,...t},r)=>ce.jsx("caption",{ref:r,className:et("mt-4 text-sm text-muted-foreground",e),...t}));P8.displayName="TableCaption";const lge=Object.freeze(Object.defineProperty({__proto__:null,Table:g8,TableBody:b8,TableCaption:P8,TableCell:E8,TableFooter:x8,TableHead:S8,TableHeader:v8,TableRow:T8},Symbol.toStringTag,{value:"Module"})),hfe=s9,A8=te.forwardRef(({className:e,...t},r)=>ce.jsx(Oj,{ref:r,className:et("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));A8.displayName=Oj.displayName;const w8=te.forwardRef(({className:e,...t},r)=>ce.jsx(Cj,{ref:r,className:et("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));w8.displayName=Cj.displayName;const _8=te.forwardRef(({className:e,...t},r)=>ce.jsx(_j,{ref:r,className:et("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));_8.displayName=_j.displayName;const uge=Object.freeze(Object.defineProperty({__proto__:null,Tabs:hfe,TabsContent:_8,TabsList:A8,TabsTrigger:w8},Symbol.toStringTag,{value:"Module"})),O8=te.forwardRef(({className:e,...t},r)=>ce.jsx("textarea",{className:et("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));O8.displayName="Textarea";const cge=Object.freeze(Object.defineProperty({__proto__:null,Textarea:O8},Symbol.toStringTag,{value:"Module"}));var C8="Toggle",I8=te.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:i,...a}=e,[s,o]=Os({prop:r,onChange:i,defaultProp:n??!1,caller:C8});return ce.jsx(pr.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:Qt(e.onClick,()=>{e.disabled||o(!s)})})});I8.displayName=C8;var k8=I8;const N8=_s("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),D8=te.forwardRef(({className:e,variant:t,size:r,...n},i)=>ce.jsx(k8,{ref:i,className:et(N8({variant:t,size:r,className:e})),...n}));D8.displayName=k8.displayName;const fge=Object.freeze(Object.defineProperty({__proto__:null,Toggle:D8,toggleVariants:N8},Symbol.toStringTag,{value:"Module"}));function pge(){}function dge(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const s=r.slice(i,n).trim();(s||!a)&&t.push(s),i=n+1,n=r.indexOf(",",i)}return t}function mfe(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const yfe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gfe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vfe={};function mL(e,t){return(vfe.jsx?gfe:yfe).test(e)}const bfe=/[ \t\n\f\r]/g;function xfe(e){return typeof e=="object"?e.type==="text"?yL(e.value):!1:yL(e)}function yL(e){return e.replace(bfe,"")===""}class yp{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}yp.prototype.normal={};yp.prototype.property={};yp.prototype.space=void 0;function M8(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new yp(r,n,t)}function t1(e){return e.toLowerCase()}class cn{constructor(t,r){this.attribute=r,this.property=t}}cn.prototype.attribute="";cn.prototype.booleanish=!1;cn.prototype.boolean=!1;cn.prototype.commaOrSpaceSeparated=!1;cn.prototype.commaSeparated=!1;cn.prototype.defined=!1;cn.prototype.mustUseProperty=!1;cn.prototype.number=!1;cn.prototype.overloadedBoolean=!1;cn.prototype.property="";cn.prototype.spaceSeparated=!1;cn.prototype.space=void 0;let Tfe=0;const _t=ol(),br=ol(),r1=ol(),nt=ol(),Yt=ol(),Fl=ol(),bn=ol();function ol(){return 2**++Tfe}const n1=Object.freeze(Object.defineProperty({__proto__:null,boolean:_t,booleanish:br,commaOrSpaceSeparated:bn,commaSeparated:Fl,number:nt,overloadedBoolean:r1,spaceSeparated:Yt},Symbol.toStringTag,{value:"Module"})),fT=Object.keys(n1);class pA extends cn{constructor(t,r,n,i){let a=-1;if(super(t,r),gL(this,"space",i),typeof n=="number")for(;++a<fT.length;){const s=fT[a];gL(this,fT[a],(n&n1[s])===n1[s])}}}pA.prototype.defined=!0;function gL(e,t,r){r&&(e[t]=r)}function ku(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new pA(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[t1(n)]=n,r[t1(a.attribute)]=n}return new yp(t,r,e.space)}const L8=ku({properties:{ariaActiveDescendant:null,ariaAtomic:br,ariaAutoComplete:null,ariaBusy:br,ariaChecked:br,ariaColCount:nt,ariaColIndex:nt,ariaColSpan:nt,ariaControls:Yt,ariaCurrent:null,ariaDescribedBy:Yt,ariaDetails:null,ariaDisabled:br,ariaDropEffect:Yt,ariaErrorMessage:null,ariaExpanded:br,ariaFlowTo:Yt,ariaGrabbed:br,ariaHasPopup:null,ariaHidden:br,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Yt,ariaLevel:nt,ariaLive:null,ariaModal:br,ariaMultiLine:br,ariaMultiSelectable:br,ariaOrientation:null,ariaOwns:Yt,ariaPlaceholder:null,ariaPosInSet:nt,ariaPressed:br,ariaReadOnly:br,ariaRelevant:null,ariaRequired:br,ariaRoleDescription:Yt,ariaRowCount:nt,ariaRowIndex:nt,ariaRowSpan:nt,ariaSelected:br,ariaSetSize:nt,ariaSort:null,ariaValueMax:nt,ariaValueMin:nt,ariaValueNow:nt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function j8(e,t){return t in e?e[t]:t}function R8(e,t){return j8(e,t.toLowerCase())}const Sfe=ku({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fl,acceptCharset:Yt,accessKey:Yt,action:null,allow:null,allowFullScreen:_t,allowPaymentRequest:_t,allowUserMedia:_t,alt:null,as:null,async:_t,autoCapitalize:null,autoComplete:Yt,autoFocus:_t,autoPlay:_t,blocking:Yt,capture:null,charSet:null,checked:_t,cite:null,className:Yt,cols:nt,colSpan:null,content:null,contentEditable:br,controls:_t,controlsList:Yt,coords:nt|Fl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_t,defer:_t,dir:null,dirName:null,disabled:_t,download:r1,draggable:br,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_t,formTarget:null,headers:Yt,height:nt,hidden:r1,high:nt,href:null,hrefLang:null,htmlFor:Yt,httpEquiv:Yt,id:null,imageSizes:null,imageSrcSet:null,inert:_t,inputMode:null,integrity:null,is:null,isMap:_t,itemId:null,itemProp:Yt,itemRef:Yt,itemScope:_t,itemType:Yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_t,low:nt,manifest:null,max:null,maxLength:nt,media:null,method:null,min:null,minLength:nt,multiple:_t,muted:_t,name:null,nonce:null,noModule:_t,noValidate:_t,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_t,optimum:nt,pattern:null,ping:Yt,placeholder:null,playsInline:_t,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_t,referrerPolicy:null,rel:Yt,required:_t,reversed:_t,rows:nt,rowSpan:nt,sandbox:Yt,scope:null,scoped:_t,seamless:_t,selected:_t,shadowRootClonable:_t,shadowRootDelegatesFocus:_t,shadowRootMode:null,shape:null,size:nt,sizes:null,slot:null,span:nt,spellCheck:br,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nt,step:null,style:null,tabIndex:nt,target:null,title:null,translate:null,type:null,typeMustMatch:_t,useMap:null,value:br,width:nt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Yt,axis:null,background:null,bgColor:null,border:nt,borderColor:null,bottomMargin:nt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_t,declare:_t,event:null,face:null,frame:null,frameBorder:null,hSpace:nt,leftMargin:nt,link:null,longDesc:null,lowSrc:null,marginHeight:nt,marginWidth:nt,noResize:_t,noHref:_t,noShade:_t,noWrap:_t,object:null,profile:null,prompt:null,rev:null,rightMargin:nt,rules:null,scheme:null,scrolling:br,standby:null,summary:null,text:null,topMargin:nt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_t,disableRemotePlayback:_t,prefix:null,property:null,results:nt,security:null,unselectable:null},space:"html",transform:R8}),Efe=ku({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:bn,accentHeight:nt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nt,amplitude:nt,arabicForm:null,ascent:nt,attributeName:null,attributeType:null,azimuth:nt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nt,by:null,calcMode:null,capHeight:nt,className:Yt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:nt,diffuseConstant:nt,direction:null,display:null,dur:null,divisor:nt,dominantBaseline:null,download:_t,dx:null,dy:null,edgeMode:null,editable:null,elevation:nt,enableBackground:null,end:null,event:null,exponent:nt,externalResourcesRequired:null,fill:null,fillOpacity:nt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fl,g2:Fl,glyphName:Fl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nt,horizOriginX:nt,horizOriginY:nt,id:null,ideographic:nt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nt,k:nt,k1:nt,k2:nt,k3:nt,k4:nt,kernelMatrix:bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:nt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nt,overlineThickness:nt,paintOrder:null,panose1:null,path:null,pathLength:nt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nt,pointsAtY:nt,pointsAtZ:nt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bn,rev:bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bn,requiredFeatures:bn,requiredFonts:bn,requiredFormats:bn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:nt,specularExponent:nt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nt,strikethroughThickness:nt,string:null,stroke:null,strokeDashArray:bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nt,strokeOpacity:nt,strokeWidth:null,style:null,surfaceScale:nt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bn,tabIndex:nt,tableValues:null,target:null,targetX:nt,targetY:nt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nt,underlineThickness:nt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nt,values:null,vAlphabetic:nt,vMathematical:nt,vectorEffect:null,vHanging:nt,vIdeographic:nt,version:null,vertAdvY:nt,vertOriginX:nt,vertOriginY:nt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:j8}),B8=ku({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),F8=ku({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:R8}),q8=ku({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Pfe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Afe=/[A-Z]/g,vL=/-[a-z]/g,wfe=/^data[-\w.:]+$/i;function _fe(e,t){const r=t1(t);let n=t,i=cn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&wfe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(vL,Cfe);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!vL.test(a)){let s=a.replace(Afe,Ofe);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=pA}return new i(n,t)}function Ofe(e){return"-"+e.toLowerCase()}function Cfe(e){return e.charAt(1).toUpperCase()}const Ife=M8([L8,Sfe,B8,F8,q8],"html"),dA=M8([L8,Efe,B8,F8,q8],"svg");function hge(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function kfe(e){return e.join(" ").trim()}var bl={},pT,bL;function Nfe(){if(bL)return pT;bL=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
`,c="/",p="*",f="",d="comment",h="declaration";function v(y,m){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];m=m||{};var T=1,A=1;function E($){var z=$.match(t);z&&(T+=z.length);var Q=$.lastIndexOf(l);A=~Q?$.length-Q:A+$.length}function P(){var $={line:T,column:A};return function(z){return z.position=new _($),M(),z}}function _($){this.start=$,this.end={line:T,column:A},this.source=m.source}_.prototype.content=y;function I($){var z=new Error(m.source+":"+T+":"+A+": "+$);if(z.reason=$,z.filename=m.source,z.line=T,z.column=A,z.source=y,!m.silent)throw z}function k($){var z=$.exec(y);if(z){var Q=z[0];return E(Q),y=y.slice(Q.length),z}}function M(){k(r)}function D($){var z;for($=$||[];z=C();)z!==!1&&$.push(z);return $}function C(){var $=P();if(!(c!=y.charAt(0)||p!=y.charAt(1))){for(var z=2;f!=y.charAt(z)&&(p!=y.charAt(z)||c!=y.charAt(z+1));)++z;if(z+=2,f===y.charAt(z-1))return I("End of comment missing");var Q=y.slice(2,z-2);return A+=2,E(Q),y=y.slice(z),A+=2,$({type:d,comment:Q})}}function L(){var $=P(),z=k(n);if(z){if(C(),!k(i))return I("property missing ':'");var Q=k(a),V=$({type:h,property:x(z[0].replace(e,f)),value:Q?x(Q[0].replace(e,f)):f});return k(s),V}}function q(){var $=[];D($);for(var z;z=L();)z!==!1&&($.push(z),D($));return $}return M(),q()}function x(y){return y?y.replace(o,f):f}return pT=v,pT}var xL;function Dfe(){if(xL)return bl;xL=1;var e=bl&&bl.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(bl,"__esModule",{value:!0}),bl.default=r;const t=e(Nfe());function r(n,i){let a=null;if(!n||typeof n!="string")return a;const s=(0,t.default)(n),o=typeof i=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:p}=l;o?i(c,p,l):p&&(a=a||{},a[c]=p)}),a}return bl}var qc={},TL;function Mfe(){if(TL)return qc;TL=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(c){return!c||r.test(c)||e.test(c)},s=function(c,p){return p.toUpperCase()},o=function(c,p){return"".concat(p,"-")},l=function(c,p){return p===void 0&&(p={}),a(c)?c:(c=c.toLowerCase(),p.reactCompat?c=c.replace(i,o):c=c.replace(n,o),c.replace(t,s))};return qc.camelCase=l,qc}var $c,SL;function Lfe(){if(SL)return $c;SL=1;var e=$c&&$c.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Dfe()),r=Mfe();function n(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,l){o&&l&&(s[(0,r.camelCase)(o,a)]=l)}),s}return n.default=n,$c=n,$c}var jfe=Lfe();const Rfe=Mt(jfe),$8=U8("end"),hA=U8("start");function U8(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Bfe(e){const t=hA(e),r=$8(e);if(t&&r)return{start:t,end:r}}function nf(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?EL(e.position):"start"in e||"end"in e?EL(e):"line"in e||"column"in e?i1(e):""}function i1(e){return PL(e&&e.line)+":"+PL(e&&e.column)}function EL(e){return i1(e&&e.start)+"-"+i1(e&&e.end)}function PL(e){return e&&typeof e=="number"?e:1}class qr extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=nf(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qr.prototype.file="";qr.prototype.name="";qr.prototype.reason="";qr.prototype.message="";qr.prototype.stack="";qr.prototype.column=void 0;qr.prototype.line=void 0;qr.prototype.ancestors=void 0;qr.prototype.cause=void 0;qr.prototype.fatal=void 0;qr.prototype.place=void 0;qr.prototype.ruleId=void 0;qr.prototype.source=void 0;const mA={}.hasOwnProperty,Ffe=new Map,qfe=/[A-Z]/g,$fe=new Set(["table","tbody","thead","tfoot","tr"]),Ufe=new Set(["td","th"]),V8="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Vfe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=Jfe(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=Gfe(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?dA:Ife,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=K8(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function K8(e,t,r){if(t.type==="element")return Kfe(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return zfe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Hfe(e,t,r);if(t.type==="mdxjsEsm")return Wfe(e,t);if(t.type==="root")return Yfe(e,t,r);if(t.type==="text")return Xfe(e,t)}function Kfe(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=dA,e.schema=i),e.ancestors.push(t);const a=W8(e,t.tagName,!1),s=Qfe(e,t);let o=gA(e,t);return $fe.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!xfe(l):!0})),z8(e,s,a,t),yA(s,o),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}function zfe(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Yf(e,t.position)}function Wfe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Yf(e,t.position)}function Hfe(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=dA,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:W8(e,t.name,!0),s=Zfe(e,t),o=gA(e,t);return z8(e,s,a,t),yA(s,o),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}function Yfe(e,t,r){const n={};return yA(n,gA(e,t)),e.create(t,e.Fragment,n,r)}function Xfe(e,t){return t.value}function z8(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function yA(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Gfe(e,t,r){return n;function n(i,a,s,o){const c=Array.isArray(s.children)?r:t;return o?c(a,s,o):c(a,s)}}function Jfe(e,t){return r;function r(n,i,a,s){const o=Array.isArray(a.children),l=hA(n);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Qfe(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&mA.call(t.properties,i)){const a=epe(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Ufe.has(t.tagName)?n=o:r[s]=o}}if(n){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function Zfe(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else Yf(e,t.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const o=n.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Yf(e,t.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function gA(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Ffe;for(;++n<t.children.length;){const a=t.children[n];let s;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const c=i.get(l)||0;s=l+"-"+c,i.set(l,c+1)}}const o=K8(e,a,s);o!==void 0&&r.push(o)}return r}function epe(e,t,r){const n=_fe(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?mfe(r):kfe(r)),n.property==="style"){let i=typeof r=="object"?r:tpe(e,String(r));return e.stylePropertyNameCase==="css"&&(i=rpe(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?Pfe[n.property]||n.property:n.attribute,r]}}function tpe(e,t){try{return Rfe(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,i=new qr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=V8+"#cannot-parse-style-attribute",i}}function W8(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=mL(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}n=s}else n=mL(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return mA.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);Yf(e)}function Yf(e,t){const r=new qr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=V8+"#cannot-handle-mdx-estrees-without-createevaluater",r}function rpe(e){const t={};let r;for(r in e)mA.call(e,r)&&(t[npe(r)]=e[r]);return t}function npe(e){let t=e.replace(qfe,ipe);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function ipe(e){return"-"+e.toLowerCase()}const dT={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},ape={};function spe(e,t){const r=ape,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return H8(e,n,i)}function H8(e,t,r){if(ope(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return AL(e.children,t,r)}return Array.isArray(e)?AL(e,t,r):""}function AL(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=H8(e[i],t,r);return n.join("")}function ope(e){return!!(e&&typeof e=="object")}const wL=document.createElement("i");function vA(e){const t="&"+e+";";wL.innerHTML=t;const r=wL.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ki(e,t,r,n){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);a<n.length;)s=n.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function jn(e,t){return e.length>0?(ki(e,e.length,0,t),e):t}const _L={}.hasOwnProperty;function lpe(e){const t={};let r=-1;for(;++r<e.length;)upe(t,e[r]);return t}function upe(e,t){let r;for(r in t){const i=(_L.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let s;if(a)for(s in a){_L.call(i,s)||(i[s]=[]);const o=a[s];cpe(i[s],Array.isArray(o)?o:o?[o]:[])}}}function cpe(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);ki(e,0,0,n)}function Y8(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function ql(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ti=Ls(/[A-Za-z]/),Pn=Ls(/[\dA-Za-z]/),fpe=Ls(/[#-'*+\--9=?A-Z^-~]/);function a1(e){return e!==null&&(e<32||e===127)}const s1=Ls(/\d/),ppe=Ls(/[\dA-Fa-f]/),dpe=Ls(/[!-/:-@[-`{-~]/);function Pt(e){return e!==null&&e<-2}function on(e){return e!==null&&(e<0||e===32)}function qt(e){return e===-2||e===-1||e===32}const hpe=Ls(new RegExp("\\p{P}|\\p{S}","u")),mpe=Ls(/\s/);function Ls(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Nu(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let s="";if(a===37&&Pn(e.charCodeAt(r+1))&&Pn(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(r+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function Zt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return qt(l)?(e.enter(r),o(l)):t(l)}function o(l){return qt(l)&&a++<i?(e.consume(l),o):(e.exit(r),t(l))}}const ype={tokenize:gpe};function gpe(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Zt(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Pt(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const vpe={tokenize:bpe},OL={tokenize:xpe};function bpe(e){const t=this,r=[];let n=0,i,a,s;return o;function o(A){if(n<r.length){const E=r[n];return t.containerState=E[1],e.attempt(E[0].continuation,l,c)(A)}return c(A)}function l(A){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&T();const E=t.events.length;let P=E,_;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){_=t.events[P][1].end;break}m(n);let I=E;for(;I<t.events.length;)t.events[I][1].end={..._},I++;return ki(t.events,P+1,0,t.events.slice(E)),t.events.length=I,c(A)}return o(A)}function c(A){if(n===r.length){if(!i)return d(A);if(i.currentConstruct&&i.currentConstruct.concrete)return v(A);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(OL,p,f)(A)}function p(A){return i&&T(),m(n),d(A)}function f(A){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,v(A)}function d(A){return t.containerState={},e.attempt(OL,h,v)(A)}function h(A){return n++,r.push([t.currentConstruct,t.containerState]),d(A)}function v(A){if(A===null){i&&T(),m(0),e.consume(A);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),x(A)}function x(A){if(A===null){y(e.exit("chunkFlow"),!0),m(0),e.consume(A);return}return Pt(A)?(e.consume(A),y(e.exit("chunkFlow")),n=0,t.interrupt=void 0,o):(e.consume(A),x)}function y(A,E){const P=t.sliceStream(A);if(E&&P.push(null),A.previous=a,a&&(a.next=A),a=A,i.defineSkip(A.start),i.write(P),t.parser.lazy[A.start.line]){let _=i.events.length;for(;_--;)if(i.events[_][1].start.offset<s&&(!i.events[_][1].end||i.events[_][1].end.offset>s))return;const I=t.events.length;let k=I,M,D;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(M){D=t.events[k][1].end;break}M=!0}for(m(n),_=I;_<t.events.length;)t.events[_][1].end={...D},_++;ki(t.events,k+1,0,t.events.slice(I)),t.events.length=_}}function m(A){let E=r.length;for(;E-- >A;){const P=r[E];t.containerState=P[1],P[0].exit.call(t,e)}r.length=A}function T(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function xpe(e,t,r){return Zt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function CL(e){if(e===null||on(e)||mpe(e))return 1;if(hpe(e))return 2}function bA(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const o1={name:"attention",resolveAll:Tpe,tokenize:Spe};function Tpe(e,t){let r=-1,n,i,a,s,o,l,c,p;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[n][1].end},d={...e[r][1].start};IL(f,-l),IL(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:d},a={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[r][1].start={...o.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=jn(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=jn(c,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),c=jn(c,bA(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=jn(c,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(p=2,c=jn(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):p=0,ki(e,n-1,r-n+3,c),r=n+c.length-p-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Spe(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=CL(n);let a;return s;function s(l){return a=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===a)return e.consume(l),o;const c=e.exit("attentionSequence"),p=CL(l),f=!p||p===2&&i||r.includes(l),d=!i||i===2&&p||r.includes(n);return c._open=!!(a===42?f:f&&(i||!d)),c._close=!!(a===42?d:d&&(p||!f)),t(l)}}function IL(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Epe={name:"autolink",tokenize:Ppe};function Ppe(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return Ti(h)?(e.consume(h),s):h===64?r(h):c(h)}function s(h){return h===43||h===45||h===46||Pn(h)?(n=1,o(h)):c(h)}function o(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Pn(h))&&n++<32?(e.consume(h),o):(n=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||a1(h)?r(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),p):fpe(h)?(e.consume(h),c):r(h)}function p(h){return Pn(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,p):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||Pn(h))&&n++<63){const v=h===45?d:f;return e.consume(h),v}return r(h)}}const jy={partial:!0,tokenize:Ape};function Ape(e,t,r){return n;function n(a){return qt(a)?Zt(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Pt(a)?t(a):r(a)}}const X8={continuation:{tokenize:_pe},exit:Ope,name:"blockQuote",tokenize:wpe};function wpe(e,t,r){const n=this;return i;function i(s){if(s===62){const o=n.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return r(s)}function a(s){return qt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function _pe(e,t,r){const n=this;return i;function i(s){return qt(s)?Zt(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(X8,t,r)(s)}}function Ope(e){e.exit("blockQuote")}const G8={name:"characterEscape",tokenize:Cpe};function Cpe(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return dpe(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const J8={name:"characterReference",tokenize:Ipe};function Ipe(e,t,r){const n=this;let i=0,a,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,s=Pn,p(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=ppe,p):(e.enter("characterReferenceValue"),a=7,s=s1,p(f))}function p(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return s===Pn&&!vA(n.sliceSerialize(d))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<a?(e.consume(f),p):r(f)}}const kL={partial:!0,tokenize:Npe},NL={concrete:!0,name:"codeFenced",tokenize:kpe};function kpe(e,t,r){const n=this,i={partial:!0,tokenize:P};let a=0,s=0,o;return l;function l(_){return c(_)}function c(_){const I=n.events[n.events.length-1];return a=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,o=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(_)}function p(_){return _===o?(s++,e.consume(_),p):s<3?r(_):(e.exit("codeFencedFenceSequence"),qt(_)?Zt(e,f,"whitespace")(_):f(_))}function f(_){return _===null||Pt(_)?(e.exit("codeFencedFence"),n.interrupt?t(_):e.check(kL,x,E)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(_))}function d(_){return _===null||Pt(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(_)):qt(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Zt(e,h,"whitespace")(_)):_===96&&_===o?r(_):(e.consume(_),d)}function h(_){return _===null||Pt(_)?f(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===null||Pt(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(_)):_===96&&_===o?r(_):(e.consume(_),v)}function x(_){return e.attempt(i,E,y)(_)}function y(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),m}function m(_){return a>0&&qt(_)?Zt(e,T,"linePrefix",a+1)(_):T(_)}function T(_){return _===null||Pt(_)?e.check(kL,x,E)(_):(e.enter("codeFlowValue"),A(_))}function A(_){return _===null||Pt(_)?(e.exit("codeFlowValue"),T(_)):(e.consume(_),A)}function E(_){return e.exit("codeFenced"),t(_)}function P(_,I,k){let M=0;return D;function D(z){return _.enter("lineEnding"),_.consume(z),_.exit("lineEnding"),C}function C(z){return _.enter("codeFencedFence"),qt(z)?Zt(_,L,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):L(z)}function L(z){return z===o?(_.enter("codeFencedFenceSequence"),q(z)):k(z)}function q(z){return z===o?(M++,_.consume(z),q):M>=s?(_.exit("codeFencedFenceSequence"),qt(z)?Zt(_,$,"whitespace")(z):$(z)):k(z)}function $(z){return z===null||Pt(z)?(_.exit("codeFencedFence"),I(z)):k(z)}}}function Npe(e,t,r){const n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}const hT={name:"codeIndented",tokenize:Mpe},Dpe={partial:!0,tokenize:Lpe};function Mpe(e,t,r){const n=this;return i;function i(c){return e.enter("codeIndented"),Zt(e,a,"linePrefix",5)(c)}function a(c){const p=n.events[n.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?s(c):r(c)}function s(c){return c===null?l(c):Pt(c)?e.attempt(Dpe,s,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||Pt(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function Lpe(e,t,r){const n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):Pt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Zt(e,a,"linePrefix",5)(s)}function a(s){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Pt(s)?i(s):r(s)}}const jpe={name:"codeText",previous:Bpe,resolve:Rpe,tokenize:Fpe};function Rpe(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function Bpe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Fpe(e,t,r){let n=0,i,a;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),n++,o):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(a=e.enter("codeTextSequence"),i=0,p(f)):Pt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||Pt(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),i++,p):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",c(f))}}class qpe{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Uc(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Uc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Uc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Uc(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Uc(this.left,r.reverse())}}}function Uc(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Q8(e){const t={};let r=-1,n,i,a,s,o,l,c;const p=new qpe(e);for(;++r<p.length;){for(;r in t;)r=t[r];if(n=p.get(r),r&&n[1].type==="chunkFlow"&&p.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,$pe(p,r)),r=t[r],c=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(s=p.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(p.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(n[1].end={...p.get(i)[1].start},o=p.slice(i,r),o.unshift(n),p.splice(i,r-i+1,o))}}return ki(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}function $pe(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],c={};let p,f,d=-1,h=r,v=0,x=0;const y=[x];for(;h;){for(;e.get(++i)[1]!==h;);a.push(i),h._tokenizer||(p=n.sliceStream(h),h.next||p.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(p),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++d<o.length;)o[d][0]==="exit"&&o[d-1][0]==="enter"&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(x=d+1,y.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):y.pop(),d=y.length;d--;){const m=o.slice(y[d],y[d+1]),T=a.pop();l.push([T,T+m.length-1]),e.splice(T,2,m)}for(l.reverse(),d=-1;++d<l.length;)c[v+l[d][0]]=v+l[d][1],v+=l[d][1]-l[d][0]-1;return c}const Upe={resolve:Kpe,tokenize:zpe},Vpe={partial:!0,tokenize:Wpe};function Kpe(e){return Q8(e),e}function zpe(e,t){let r;return n;function n(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):Pt(o)?e.check(Vpe,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function Wpe(e,t,r){const n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Zt(e,a,"linePrefix")}function a(s){if(s===null||Pt(s))return r(s);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function Z8(e,t,r,n,i,a,s,o,l){const c=l||Number.POSITIVE_INFINITY;let p=0;return f;function f(m){return m===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||a1(m)?r(m):(e.enter(n),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),x(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(o),d(m)):m===null||m===60||Pt(m)?r(m):(e.consume(m),m===92?v:h)}function v(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function x(m){return!p&&(m===null||m===41||on(m))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(n),t(m)):p<c&&m===40?(e.consume(m),p++,x):m===41?(e.consume(m),p--,x):m===null||m===32||m===40||a1(m)?r(m):(e.consume(m),m===92?y:x)}function y(m){return m===40||m===41||m===92?(e.consume(m),x):x(m)}}function eq(e,t,r,n,i,a){const s=this;let o=0,l;return c;function c(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(a),p}function p(h){return o>999||h===null||h===91||h===93&&!l||h===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):Pt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||Pt(h)||o++>999?(e.exit("chunkString"),p(h)):(e.consume(h),l||(l=!qt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}function tq(e,t,r,n,i,a){let s;return o;function o(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),s=d===40?41:d,l):r(d)}function l(d){return d===s?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),c(d))}function c(d){return d===s?(e.exit(a),l(s)):d===null?r(d):Pt(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Zt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(d))}function p(d){return d===s||d===null||Pt(d)?(e.exit("chunkString"),c(d)):(e.consume(d),d===92?f:p)}function f(d){return d===s||d===92?(e.consume(d),p):p(d)}}function af(e,t){let r;return n;function n(i){return Pt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):qt(i)?Zt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Hpe={name:"definition",tokenize:Xpe},Ype={partial:!0,tokenize:Gpe};function Xpe(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),s(h)}function s(h){return eq.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return i=ql(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return on(h)?af(e,c)(h):c(h)}function c(h){return Z8(e,p,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return e.attempt(Ype,f,f)(h)}function f(h){return qt(h)?Zt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Pt(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function Gpe(e,t,r){return n;function n(o){return on(o)?af(e,i)(o):r(o)}function i(o){return tq(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return qt(o)?Zt(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Pt(o)?t(o):r(o)}}const Jpe={name:"hardBreakEscape",tokenize:Qpe};function Qpe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Pt(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Zpe={name:"headingAtx",resolve:ede,tokenize:tde};function ede(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},ki(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function tde(e,t,r){let n=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),s(p)}function s(p){return p===35&&n++<6?(e.consume(p),s):p===null||on(p)?(e.exit("atxHeadingSequence"),o(p)):r(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),l(p)):p===null||Pt(p)?(e.exit("atxHeading"),t(p)):qt(p)?Zt(e,o,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function l(p){return p===35?(e.consume(p),l):(e.exit("atxHeadingSequence"),o(p))}function c(p){return p===null||p===35||on(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),c)}}const rde=["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"],DL=["pre","script","style","textarea"],nde={concrete:!0,name:"htmlFlow",resolveTo:sde,tokenize:ode},ide={partial:!0,tokenize:ude},ade={partial:!0,tokenize:lde};function sde(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ode(e,t,r){const n=this;let i,a,s,o,l;return c;function c(R){return p(R)}function p(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),f}function f(R){return R===33?(e.consume(R),d):R===47?(e.consume(R),a=!0,x):R===63?(e.consume(R),i=3,n.interrupt?t:N):Ti(R)?(e.consume(R),s=String.fromCharCode(R),y):r(R)}function d(R){return R===45?(e.consume(R),i=2,h):R===91?(e.consume(R),i=5,o=0,v):Ti(R)?(e.consume(R),i=4,n.interrupt?t:N):r(R)}function h(R){return R===45?(e.consume(R),n.interrupt?t:N):r(R)}function v(R){const J="CDATA[";return R===J.charCodeAt(o++)?(e.consume(R),o===J.length?n.interrupt?t:L:v):r(R)}function x(R){return Ti(R)?(e.consume(R),s=String.fromCharCode(R),y):r(R)}function y(R){if(R===null||R===47||R===62||on(R)){const J=R===47,se=s.toLowerCase();return!J&&!a&&DL.includes(se)?(i=1,n.interrupt?t(R):L(R)):rde.includes(s.toLowerCase())?(i=6,J?(e.consume(R),m):n.interrupt?t(R):L(R)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(R):a?T(R):A(R))}return R===45||Pn(R)?(e.consume(R),s+=String.fromCharCode(R),y):r(R)}function m(R){return R===62?(e.consume(R),n.interrupt?t:L):r(R)}function T(R){return qt(R)?(e.consume(R),T):D(R)}function A(R){return R===47?(e.consume(R),D):R===58||R===95||Ti(R)?(e.consume(R),E):qt(R)?(e.consume(R),A):D(R)}function E(R){return R===45||R===46||R===58||R===95||Pn(R)?(e.consume(R),E):P(R)}function P(R){return R===61?(e.consume(R),_):qt(R)?(e.consume(R),P):A(R)}function _(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),l=R,I):qt(R)?(e.consume(R),_):k(R)}function I(R){return R===l?(e.consume(R),l=null,M):R===null||Pt(R)?r(R):(e.consume(R),I)}function k(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||on(R)?P(R):(e.consume(R),k)}function M(R){return R===47||R===62||qt(R)?A(R):r(R)}function D(R){return R===62?(e.consume(R),C):r(R)}function C(R){return R===null||Pt(R)?L(R):qt(R)?(e.consume(R),C):r(R)}function L(R){return R===45&&i===2?(e.consume(R),Q):R===60&&i===1?(e.consume(R),V):R===62&&i===4?(e.consume(R),j):R===63&&i===3?(e.consume(R),N):R===93&&i===5?(e.consume(R),U):Pt(R)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ide,F,q)(R)):R===null||Pt(R)?(e.exit("htmlFlowData"),q(R)):(e.consume(R),L)}function q(R){return e.check(ade,$,F)(R)}function $(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),z}function z(R){return R===null||Pt(R)?q(R):(e.enter("htmlFlowData"),L(R))}function Q(R){return R===45?(e.consume(R),N):L(R)}function V(R){return R===47?(e.consume(R),s="",X):L(R)}function X(R){if(R===62){const J=s.toLowerCase();return DL.includes(J)?(e.consume(R),j):L(R)}return Ti(R)&&s.length<8?(e.consume(R),s+=String.fromCharCode(R),X):L(R)}function U(R){return R===93?(e.consume(R),N):L(R)}function N(R){return R===62?(e.consume(R),j):R===45&&i===2?(e.consume(R),N):L(R)}function j(R){return R===null||Pt(R)?(e.exit("htmlFlowData"),F(R)):(e.consume(R),j)}function F(R){return e.exit("htmlFlow"),t(R)}}function lde(e,t,r){const n=this;return i;function i(s){return Pt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):r(s)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function ude(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(jy,t,r)}}const cde={name:"htmlText",tokenize:fde};function fde(e,t,r){const n=this;let i,a,s;return o;function o(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),c):N===47?(e.consume(N),P):N===63?(e.consume(N),A):Ti(N)?(e.consume(N),k):r(N)}function c(N){return N===45?(e.consume(N),p):N===91?(e.consume(N),a=0,v):Ti(N)?(e.consume(N),T):r(N)}function p(N){return N===45?(e.consume(N),h):r(N)}function f(N){return N===null?r(N):N===45?(e.consume(N),d):Pt(N)?(s=f,V(N)):(e.consume(N),f)}function d(N){return N===45?(e.consume(N),h):f(N)}function h(N){return N===62?Q(N):N===45?d(N):f(N)}function v(N){const j="CDATA[";return N===j.charCodeAt(a++)?(e.consume(N),a===j.length?x:v):r(N)}function x(N){return N===null?r(N):N===93?(e.consume(N),y):Pt(N)?(s=x,V(N)):(e.consume(N),x)}function y(N){return N===93?(e.consume(N),m):x(N)}function m(N){return N===62?Q(N):N===93?(e.consume(N),m):x(N)}function T(N){return N===null||N===62?Q(N):Pt(N)?(s=T,V(N)):(e.consume(N),T)}function A(N){return N===null?r(N):N===63?(e.consume(N),E):Pt(N)?(s=A,V(N)):(e.consume(N),A)}function E(N){return N===62?Q(N):A(N)}function P(N){return Ti(N)?(e.consume(N),_):r(N)}function _(N){return N===45||Pn(N)?(e.consume(N),_):I(N)}function I(N){return Pt(N)?(s=I,V(N)):qt(N)?(e.consume(N),I):Q(N)}function k(N){return N===45||Pn(N)?(e.consume(N),k):N===47||N===62||on(N)?M(N):r(N)}function M(N){return N===47?(e.consume(N),Q):N===58||N===95||Ti(N)?(e.consume(N),D):Pt(N)?(s=M,V(N)):qt(N)?(e.consume(N),M):Q(N)}function D(N){return N===45||N===46||N===58||N===95||Pn(N)?(e.consume(N),D):C(N)}function C(N){return N===61?(e.consume(N),L):Pt(N)?(s=C,V(N)):qt(N)?(e.consume(N),C):M(N)}function L(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),i=N,q):Pt(N)?(s=L,V(N)):qt(N)?(e.consume(N),L):(e.consume(N),$)}function q(N){return N===i?(e.consume(N),i=void 0,z):N===null?r(N):Pt(N)?(s=q,V(N)):(e.consume(N),q)}function $(N){return N===null||N===34||N===39||N===60||N===61||N===96?r(N):N===47||N===62||on(N)?M(N):(e.consume(N),$)}function z(N){return N===47||N===62||on(N)?M(N):r(N)}function Q(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):r(N)}function V(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),X}function X(N){return qt(N)?Zt(e,U,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):U(N)}function U(N){return e.enter("htmlTextData"),s(N)}}const xA={name:"labelEnd",resolveAll:mde,resolveTo:yde,tokenize:gde},pde={tokenize:vde},dde={tokenize:bde},hde={tokenize:xde};function mde(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&ki(e,0,e.length,r),e}function yde(e,t){let r=e.length,n=0,i,a,s,o;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},p={type:"labelText",start:{...e[a+n+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=jn(o,e.slice(a+1,a+n+3)),o=jn(o,[["enter",p,t]]),o=jn(o,bA(t.parser.constructs.insideSpan.null,e.slice(a+n+4,s-3),t)),o=jn(o,[["exit",p,t],e[s-2],e[s-1],["exit",c,t]]),o=jn(o,e.slice(s+1)),o=jn(o,[["exit",l,t]]),ki(e,a,e.length,o),e}function gde(e,t,r){const n=this;let i=n.events.length,a,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return o;function o(d){return a?a._inactive?f(d):(s=n.parser.defined.includes(ql(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):r(d)}function l(d){return d===40?e.attempt(pde,p,s?p:f)(d):d===91?e.attempt(dde,p,s?c:f)(d):s?p(d):f(d)}function c(d){return e.attempt(hde,p,f)(d)}function p(d){return t(d)}function f(d){return a._balanced=!0,r(d)}}function vde(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return on(f)?af(e,a)(f):a(f)}function a(f){return f===41?p(f):Z8(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return on(f)?af(e,l)(f):p(f)}function o(f){return r(f)}function l(f){return f===34||f===39||f===40?tq(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return on(f)?af(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function bde(e,t,r){const n=this;return i;function i(o){return eq.call(n,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return n.parser.defined.includes(ql(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function xde(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const Tde={name:"labelStartImage",resolveAll:xA.resolveAll,tokenize:Sde};function Sde(e,t,r){const n=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const Ede={name:"labelStartLink",resolveAll:xA.resolveAll,tokenize:Pde};function Pde(e,t,r){const n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const mT={name:"lineEnding",tokenize:Ade};function Ade(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Zt(e,t,"linePrefix")}}const ch={name:"thematicBreak",tokenize:wde};function wde(e,t,r){let n=0,i;return a;function a(c){return e.enter("thematicBreak"),s(c)}function s(c){return i=c,o(c)}function o(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):n>=3&&(c===null||Pt(c))?(e.exit("thematicBreak"),t(c)):r(c)}function l(c){return c===i?(e.consume(c),n++,l):(e.exit("thematicBreakSequence"),qt(c)?Zt(e,o,"whitespace")(c):o(c))}}const tn={continuation:{tokenize:Ide},exit:Nde,name:"list",tokenize:Cde},_de={partial:!0,tokenize:Dde},Ode={partial:!0,tokenize:kde};function Cde(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(h){const v=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:s1(h)){if(n.containerState.type||(n.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ch,r,c)(h):c(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return s1(h)&&++s<10?(e.consume(h),l):(!n.interrupt||s<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):r(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(jy,n.interrupt?r:p,e.attempt(_de,d,f))}function p(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return qt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ide(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(jy,i,a);function i(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Zt(e,t,"listItemIndent",n.containerState.size+1)(o)}function a(o){return n.containerState.furtherBlankLines||!qt(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Ode,t,s)(o))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,Zt(e,e.attempt(tn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function kde(e,t,r){const n=this;return Zt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(a):r(a)}}function Nde(e){e.exit(this.containerState.type)}function Dde(e,t,r){const n=this;return Zt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=n.events[n.events.length-1];return!qt(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const ML={name:"setextUnderline",resolveTo:Mde,tokenize:Lde};function Mde(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function Lde(e,t,r){const n=this;let i;return a;function a(c){let p=n.events.length,f;for(;p--;)if(n.events[p][1].type!=="lineEnding"&&n.events[p][1].type!=="linePrefix"&&n.events[p][1].type!=="content"){f=n.events[p][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=c,s(c)):r(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),qt(c)?Zt(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Pt(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}const jde={tokenize:Rde};function Rde(e){const t=this,r=e.attempt(jy,n,e.attempt(this.parser.constructs.flowInitial,i,Zt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Upe,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Bde={resolveAll:nq()},Fde=rq("string"),qde=rq("text");function rq(e){return{resolveAll:nq(e==="text"?$de:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,s,o);return s;function s(p){return c(p)?a(p):o(p)}function o(p){if(p===null){r.consume(p);return}return r.enter("data"),r.consume(p),l}function l(p){return c(p)?(r.exit("data"),a(p)):(r.consume(p),l)}function c(p){if(p===null)return!0;const f=i[p];let d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function nq(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function $de(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,s=-1,o=0,l;for(;a--;){const c=i[a];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(c===-2)l=!0,o++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const c={type:r===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:n.start._bufferIndex+s,_index:n.start._index+a,line:n.end.line,column:n.end.column-o,offset:n.end.offset-o},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}const Ude={42:tn,43:tn,45:tn,48:tn,49:tn,50:tn,51:tn,52:tn,53:tn,54:tn,55:tn,56:tn,57:tn,62:X8},Vde={91:Hpe},Kde={[-2]:hT,[-1]:hT,32:hT},zde={35:Zpe,42:ch,45:[ML,ch],60:nde,61:ML,95:ch,96:NL,126:NL},Wde={38:J8,92:G8},Hde={[-5]:mT,[-4]:mT,[-3]:mT,33:Tde,38:J8,42:o1,60:[Epe,cde],91:Ede,92:[Jpe,G8],93:xA,95:o1,96:jpe},Yde={null:[o1,Bde]},Xde={null:[42,95]},Gde={null:[]},Jde=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Xde,contentInitial:Vde,disable:Gde,document:Ude,flow:zde,flowInitial:Kde,insideSpan:Yde,string:Wde,text:Hde},Symbol.toStringTag,{value:"Module"}));function Qde(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let s=[],o=[];const l={attempt:I(P),check:I(_),consume:T,enter:A,exit:E,interrupt:I(_,{interrupt:!0})},c={code:null,containerState:{},defineSkip:x,events:[],now:v,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:f};let p=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function f(C){return s=jn(s,C),y(),s[s.length-1]!==null?[]:(k(t,0),c.events=bA(a,c.events,c),c.events)}function d(C,L){return ehe(h(C),L)}function h(C){return Zde(s,C)}function v(){const{_bufferIndex:C,_index:L,line:q,column:$,offset:z}=n;return{_bufferIndex:C,_index:L,line:q,column:$,offset:z}}function x(C){i[C.line]=C.column,D()}function y(){let C;for(;n._index<s.length;){const L=s[n._index];if(typeof L=="string")for(C=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===C&&n._bufferIndex<L.length;)m(L.charCodeAt(n._bufferIndex));else m(L)}}function m(C){p=p(C)}function T(C){Pt(C)?(n.line++,n.column=1,n.offset+=C===-3?2:1,D()):C!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=C}function A(C,L){const q=L||{};return q.type=C,q.start=v(),c.events.push(["enter",q,c]),o.push(q),q}function E(C){const L=o.pop();return L.end=v(),c.events.push(["exit",L,c]),L}function P(C,L){k(C,L.from)}function _(C,L){L.restore()}function I(C,L){return q;function q($,z,Q){let V,X,U,N;return Array.isArray($)?F($):"tokenize"in $?F([$]):j($);function j(ie){return ae;function ae(fe){const de=fe!==null&&ie[fe],Se=fe!==null&&ie.null,Ce=[...Array.isArray(de)?de:de?[de]:[],...Array.isArray(Se)?Se:Se?[Se]:[]];return F(Ce)(fe)}}function F(ie){return V=ie,X=0,ie.length===0?Q:R(ie[X])}function R(ie){return ae;function ae(fe){return N=M(),U=ie,ie.partial||(c.currentConstruct=ie),ie.name&&c.parser.constructs.disable.null.includes(ie.name)?se():ie.tokenize.call(L?Object.assign(Object.create(c),L):c,l,J,se)(fe)}}function J(ie){return C(U,N),z}function se(ie){return N.restore(),++X<V.length?R(V[X]):Q}}}function k(C,L){C.resolveAll&&!a.includes(C)&&a.push(C),C.resolve&&ki(c.events,L,c.events.length-L,C.resolve(c.events.slice(L),c)),C.resolveTo&&(c.events=C.resolveTo(c.events,c))}function M(){const C=v(),L=c.previous,q=c.currentConstruct,$=c.events.length,z=Array.from(o);return{from:$,restore:Q};function Q(){n=C,c.previous=L,c.currentConstruct=q,c.events.length=$,o=z,D()}}function D(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function Zde(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(r===i)s=[e[r].slice(n,a)];else{if(s=e.slice(r,i),n>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(n):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function ehe(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
`;break}case-3:{s=`\r
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,n.push(s)}return n.join("")}function the(e){const n={constructs:lpe([Jde,...(e||{}).extensions||[]]),content:i(ype),defined:[],document:i(vpe),flow:i(jde),lazy:{},string:i(Fde),text:i(qde)};return n;function i(a){return s;function s(o){return Qde(n,a,o)}}}function rhe(e){for(;!Q8(e););return e}const LL=/[\0\t\n\r]/g;function nhe(){let e=1,t="",r=!0,n;return i;function i(a,s,o){const l=[];let c,p,f,d,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),f=0,t="",r&&(a.charCodeAt(0)===65279&&f++,r=void 0);f<a.length;){if(LL.lastIndex=f,c=LL.exec(a),d=c&&c.index!==void 0?c.index:a.length,h=a.charCodeAt(d),!c){t=a.slice(f);break}if(h===10&&f===d&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<d&&(l.push(a.slice(f,d)),e+=d-f),h){case 0:{l.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,l.push(-2);e++<p;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=d+1}return o&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const ihe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ahe(e){return e.replace(ihe,she)}function she(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return Y8(r.slice(a?2:1),a?16:10)}return vA(r)||e}const iq={}.hasOwnProperty;function ohe(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),lhe(r)(rhe(the(r).document().write(nhe()(e,t,!0))))}function lhe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ue),autolinkProtocol:M,autolinkEmail:M,atxHeading:a(He),blockQuote:a(Se),characterEscape:M,characterReference:M,codeFenced:a(Ce),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Ce,s),codeText:a(xe,s),codeTextData:M,data:M,codeFlowValue:M,definition:a(Be),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Re),hardBreakEscape:a(ze),hardBreakTrailing:a(ze),htmlFlow:a(je,s),htmlFlowData:M,htmlText:a(je,s),htmlTextData:M,image:a(re),label:s,link:a(ue),listItem:a(ke),listItemValue:d,listOrdered:a(Te,f),listUnordered:a(Te),paragraph:a(Oe),reference:R,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(He),strong:a(Me),thematicBreak:a(_e)},exit:{atxHeading:l(),atxHeadingSequence:P,autolink:l(),autolinkEmail:de,autolinkProtocol:fe,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:ie,characterReference:ae,codeFenced:l(y),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:v,codeFlowValue:D,codeIndented:l(m),codeText:l(z),codeTextData:D,data:D,definition:l(),definitionDestinationString:E,definitionLabelString:T,definitionTitleString:A,emphasis:l(),hardBreakEscape:l(L),hardBreakTrailing:l(L),htmlFlow:l(q),htmlFlowData:D,htmlText:l($),htmlTextData:D,image:l(V),label:U,labelText:X,lineEnding:C,link:l(Q),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:J,resourceDestinationString:N,resourceTitleString:j,resource:F,setextHeading:l(k),setextHeadingLineSequence:I,setextHeadingText:_,strong:l(),thematicBreak:l()}};aq(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(pe){let ne={type:"root",children:[]};const me={stack:[ne],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:p,data:r},Ie=[];let De=-1;for(;++De<pe.length;)if(pe[De][1].type==="listOrdered"||pe[De][1].type==="listUnordered")if(pe[De][0]==="enter")Ie.push(De);else{const Ue=Ie.pop();De=i(pe,Ue,De)}for(De=-1;++De<pe.length;){const Ue=t[pe[De][0]];iq.call(Ue,pe[De][1].type)&&Ue[pe[De][1].type].call(Object.assign({sliceSerialize:pe[De][2].sliceSerialize},me),pe[De][1])}if(me.tokenStack.length>0){const Ue=me.tokenStack[me.tokenStack.length-1];(Ue[1]||jL).call(me,void 0,Ue[0])}for(ne.position={start:ms(pe.length>0?pe[0][1].start:{line:1,column:1,offset:0}),end:ms(pe.length>0?pe[pe.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<t.transforms.length;)ne=t.transforms[De](ne)||ne;return ne}function i(pe,ne,me){let Ie=ne-1,De=-1,Ue=!1,We,lt,gt,Ge;for(;++Ie<=me;){const vt=pe[Ie];switch(vt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{vt[0]==="enter"?De++:De--,Ge=void 0;break}case"lineEndingBlank":{vt[0]==="enter"&&(We&&!Ge&&!De&&!gt&&(gt=Ie),Ge=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ge=void 0}if(!De&&vt[0]==="enter"&&vt[1].type==="listItemPrefix"||De===-1&&vt[0]==="exit"&&(vt[1].type==="listUnordered"||vt[1].type==="listOrdered")){if(We){let Le=Ie;for(lt=void 0;Le--;){const qe=pe[Le];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;lt&&(pe[lt][1].type="lineEndingBlank",Ue=!0),qe[1].type="lineEnding",lt=Le}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}gt&&(!lt||gt<lt)&&(We._spread=!0),We.end=Object.assign({},lt?pe[lt][1].start:vt[1].end),pe.splice(lt||Ie,0,["exit",We,vt[2]]),Ie++,me++}if(vt[1].type==="listItemPrefix"){const Le={type:"listItem",_spread:!1,start:Object.assign({},vt[1].start),end:void 0};We=Le,pe.splice(Ie,0,["enter",Le,vt[2]]),Ie++,me++,gt=void 0,Ge=!0}}}return pe[ne][1]._spread=Ue,me}function a(pe,ne){return me;function me(Ie){o.call(this,pe(Ie),Ie),ne&&ne.call(this,Ie)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(pe,ne,me){this.stack[this.stack.length-1].children.push(pe),this.stack.push(pe),this.tokenStack.push([ne,me||void 0]),pe.position={start:ms(ne.start),end:void 0}}function l(pe){return ne;function ne(me){pe&&pe.call(this,me),c.call(this,me)}}function c(pe,ne){const me=this.stack.pop(),Ie=this.tokenStack.pop();if(Ie)Ie[0].type!==pe.type&&(ne?ne.call(this,pe,Ie[0]):(Ie[1]||jL).call(this,pe,Ie[0]));else throw new Error("Cannot close `"+pe.type+"` ("+nf({start:pe.start,end:pe.end})+"): it’s not open");me.position.end=ms(pe.end)}function p(){return spe(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(pe){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(pe),10),this.data.expectingFirstListItemValue=void 0}}function h(){const pe=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=pe}function v(){const pe=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=pe}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const pe=this.resume(),ne=this.stack[this.stack.length-1];ne.value=pe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const pe=this.resume(),ne=this.stack[this.stack.length-1];ne.value=pe.replace(/(\r?\n|\r)$/g,"")}function T(pe){const ne=this.resume(),me=this.stack[this.stack.length-1];me.label=ne,me.identifier=ql(this.sliceSerialize(pe)).toLowerCase()}function A(){const pe=this.resume(),ne=this.stack[this.stack.length-1];ne.title=pe}function E(){const pe=this.resume(),ne=this.stack[this.stack.length-1];ne.url=pe}function P(pe){const ne=this.stack[this.stack.length-1];if(!ne.depth){const me=this.sliceSerialize(pe).length;ne.depth=me}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function I(pe){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(pe).codePointAt(0)===61?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function M(pe){const me=this.stack[this.stack.length-1].children;let Ie=me[me.length-1];(!Ie||Ie.type!=="text")&&(Ie=Ke(),Ie.position={start:ms(pe.start),end:void 0},me.push(Ie)),this.stack.push(Ie)}function D(pe){const ne=this.stack.pop();ne.value+=this.sliceSerialize(pe),ne.position.end=ms(pe.end)}function C(pe){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=ne.children[ne.children.length-1];me.position.end=ms(pe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ne.type)&&(M.call(this,pe),D.call(this,pe))}function L(){this.data.atHardBreak=!0}function q(){const pe=this.resume(),ne=this.stack[this.stack.length-1];ne.value=pe}function $(){const pe=this.resume(),ne=this.stack[this.stack.length-1];ne.value=pe}function z(){const pe=this.resume(),ne=this.stack[this.stack.length-1];ne.value=pe}function Q(){const pe=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";pe.type+="Reference",pe.referenceType=ne,delete pe.url,delete pe.title}else delete pe.identifier,delete pe.label;this.data.referenceType=void 0}function V(){const pe=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";pe.type+="Reference",pe.referenceType=ne,delete pe.url,delete pe.title}else delete pe.identifier,delete pe.label;this.data.referenceType=void 0}function X(pe){const ne=this.sliceSerialize(pe),me=this.stack[this.stack.length-2];me.label=ahe(ne),me.identifier=ql(ne).toLowerCase()}function U(){const pe=this.stack[this.stack.length-1],ne=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const Ie=pe.children;me.children=Ie}else me.alt=ne}function N(){const pe=this.resume(),ne=this.stack[this.stack.length-1];ne.url=pe}function j(){const pe=this.resume(),ne=this.stack[this.stack.length-1];ne.title=pe}function F(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function J(pe){const ne=this.resume(),me=this.stack[this.stack.length-1];me.label=ne,me.identifier=ql(this.sliceSerialize(pe)).toLowerCase(),this.data.referenceType="full"}function se(pe){this.data.characterReferenceType=pe.type}function ie(pe){const ne=this.sliceSerialize(pe),me=this.data.characterReferenceType;let Ie;me?(Ie=Y8(ne,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ie=vA(ne);const De=this.stack[this.stack.length-1];De.value+=Ie}function ae(pe){const ne=this.stack.pop();ne.position.end=ms(pe.end)}function fe(pe){D.call(this,pe);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(pe)}function de(pe){D.call(this,pe);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(pe)}function Se(){return{type:"blockquote",children:[]}}function Ce(){return{type:"code",lang:null,meta:null,value:""}}function xe(){return{type:"inlineCode",value:""}}function Be(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Re(){return{type:"emphasis",children:[]}}function He(){return{type:"heading",depth:0,children:[]}}function ze(){return{type:"break"}}function je(){return{type:"html",value:""}}function re(){return{type:"image",title:null,url:"",alt:null}}function ue(){return{type:"link",title:null,url:"",children:[]}}function Te(pe){return{type:"list",ordered:pe.type==="listOrdered",start:null,spread:pe._spread,children:[]}}function ke(pe){return{type:"listItem",spread:pe._spread,checked:null,children:[]}}function Oe(){return{type:"paragraph",children:[]}}function Me(){return{type:"strong",children:[]}}function Ke(){return{type:"text",value:""}}function _e(){return{type:"thematicBreak"}}}function ms(e){return{line:e.line,column:e.column,offset:e.offset}}function aq(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?aq(e,n):uhe(e,n)}}function uhe(e,t){let r;for(r in t)if(iq.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function jL(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nf({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nf({start:t.start,end:t.end})+") is still open")}function che(e){const t=this;t.parser=r;function r(n){return ohe(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function fhe(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function phe(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
`}]}function dhe(e,t){const r=t.value?t.value+`
`:"",n={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function hhe(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mhe(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yhe(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Nu(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let s,o=e.footnoteCounts.get(n);o===void 0?(o=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(n,o);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function ghe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vhe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function sq(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function bhe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return sq(e,t);const i={src:Nu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function xhe(e,t){const r={src:Nu(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function The(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function She(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return sq(e,t);const i={href:Nu(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Ehe(e,t){const r={href:Nu(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Phe(e,t,r){const n=e.all(t),i=r?Ahe(r):oq(t),a={},s=[];if(typeof t.checked=="boolean"){const p=n[0];let f;p&&p.type==="element"&&p.tagName==="p"?f=p:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<n.length;){const p=n[o];(i||o!==0||p.type!=="element"||p.tagName!=="p")&&s.push({type:"text",value:`
`}),p.type==="element"&&p.tagName==="p"&&!i?s.push(...p.children):s.push(p)}const l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,c),e.applyData(t,c)}function Ahe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=oq(r[n])}return t}function oq(e){const t=e.spread;return t??e.children.length>1}function whe(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function _he(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ohe(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function Che(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ihe(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=hA(t.children[1]),l=$8(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function khe(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let l=-1;const c=[];for(;++l<o;){const f=t.children[l],d={},h=s?s[l]:void 0;h&&(d.align=h);let v={type:"element",tagName:a,properties:d,children:[]};f&&(v.children=e.all(f),e.patch(f,v),v=e.applyData(f,v)),c.push(v)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,p),e.applyData(t,p)}function Nhe(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const RL=9,BL=32;function Dhe(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(FL(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(FL(t.slice(i),i>0,!1)),a.join("")}function FL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===RL||a===BL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===RL||a===BL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Mhe(e,t){const r={type:"text",value:Dhe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Lhe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const jhe={blockquote:fhe,break:phe,code:dhe,delete:hhe,emphasis:mhe,footnoteReference:yhe,heading:ghe,html:vhe,imageReference:bhe,image:xhe,inlineCode:The,linkReference:She,link:Ehe,listItem:Phe,list:whe,paragraph:_he,root:Ohe,strong:Che,table:Ihe,tableCell:Nhe,tableRow:khe,text:Mhe,thematicBreak:Lhe,toml:Jd,yaml:Jd,definition:Jd,footnoteDefinition:Jd};function Jd(){}const lq=-1,Ry=0,sf=1,Pm=2,TA=3,SA=4,EA=5,PA=6,uq=7,cq=8,qL=typeof self=="object"?self:globalThis,Rhe=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Ry:case lq:return r(s,i);case sf:{const o=r([],i);for(const l of s)o.push(n(l));return o}case Pm:{const o=r({},i);for(const[l,c]of s)o[n(l)]=n(c);return o}case TA:return r(new Date(s),i);case SA:{const{source:o,flags:l}=s;return r(new RegExp(o,l),i)}case EA:{const o=r(new Map,i);for(const[l,c]of s)o.set(n(l),n(c));return o}case PA:{const o=r(new Set,i);for(const l of s)o.add(n(l));return o}case uq:{const{name:o,message:l}=s;return r(new qL[o](l),i)}case cq:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(new qL[a](s),i)};return n},$L=e=>Rhe(new Map,e)(0),xl="",{toString:Bhe}={},{keys:Fhe}=Object,Vc=e=>{const t=typeof e;if(t!=="object"||!e)return[Ry,t];const r=Bhe.call(e).slice(8,-1);switch(r){case"Array":return[sf,xl];case"Object":return[Pm,xl];case"Date":return[TA,xl];case"RegExp":return[SA,xl];case"Map":return[EA,xl];case"Set":return[PA,xl];case"DataView":return[sf,r]}return r.includes("Array")?[sf,r]:r.includes("Error")?[uq,r]:[Pm,r]},Qd=([e,t])=>e===Ry&&(t==="function"||t==="symbol"),qhe=(e,t,r,n)=>{const i=(s,o)=>{const l=n.push(s)-1;return r.set(o,l),l},a=s=>{if(r.has(s))return r.get(s);let[o,l]=Vc(s);switch(o){case Ry:{let p=s;switch(l){case"bigint":o=cq,p=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);p=null;break;case"undefined":return i([lq],s)}return i([o,p],s)}case sf:{if(l){let d=s;return l==="DataView"?d=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(s)),i([l,[...d]],s)}const p=[],f=i([o,p],s);for(const d of s)p.push(a(d));return f}case Pm:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const p=[],f=i([o,p],s);for(const d of Fhe(s))(e||!Qd(Vc(s[d])))&&p.push([a(d),a(s[d])]);return f}case TA:return i([o,s.toISOString()],s);case SA:{const{source:p,flags:f}=s;return i([o,{source:p,flags:f}],s)}case EA:{const p=[],f=i([o,p],s);for(const[d,h]of s)(e||!(Qd(Vc(d))||Qd(Vc(h))))&&p.push([a(d),a(h)]);return f}case PA:{const p=[],f=i([o,p],s);for(const d of s)(e||!Qd(Vc(d)))&&p.push(a(d));return f}}const{message:c}=s;return i([o,{name:l,message:c}],s)};return a},UL=(e,{json:t,lossy:r}={})=>{const n=[];return qhe(!(t||r),!!t,new Map,n)(e),n},Am=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?$L(UL(e,t)):structuredClone(e):(e,t)=>$L(UL(e,t));function $he(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Uhe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Vhe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||$he,n=e.options.footnoteBackLabel||Uhe,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const p=e.all(c),f=String(c.identifier).toUpperCase(),d=Nu(f.toLowerCase());let h=0;const v=[],x=e.footnoteCounts.get(f);for(;x!==void 0&&++h<=x;){v.length>0&&v.push({type:"text",value:" "});let T=typeof r=="string"?r:r(l,h);typeof T=="string"&&(T={type:"text",value:T}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const y=p[p.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const T=y.children[y.children.length-1];T&&T.type==="text"?T.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...v)}else p.push(...v);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(p,!0)};e.patch(c,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Am(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
`}]}}const fq=(function(e){if(e==null)return Hhe;if(typeof e=="function")return By(e);if(typeof e=="object")return Array.isArray(e)?Khe(e):zhe(e);if(typeof e=="string")return Whe(e);throw new Error("Expected function, string, or object as test")});function Khe(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=fq(e[r]);return By(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function zhe(e){const t=e;return By(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Whe(e){return By(t);function t(r){return r&&r.type===e}}function By(e){return t;function t(r,n,i){return!!(Yhe(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function Hhe(){return!0}function Yhe(e){return e!==null&&typeof e=="object"&&"type"in e}const pq=[],Xhe=!0,VL=!1,Ghe="skip";function Jhe(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=fq(i),s=n?-1:1;o(e,void 0,[])();function o(l,c,p){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=pq,v,x,y;if((!t||a(l,c,p[p.length-1]||void 0))&&(h=Qhe(r(l,p)),h[0]===VL))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==Ghe)for(x=(n?m.children.length:-1)+s,y=p.concat(m);x>-1&&x<m.children.length;){const T=m.children[x];if(v=o(T,x,y)(),v[0]===VL)return v;x=typeof v[1]=="number"?v[1]:x+s}}return h}}}function Qhe(e){return Array.isArray(e)?e:typeof e=="number"?[Xhe,e]:e==null?pq:[e]}function dq(e,t,r,n){let i,a,s;typeof t=="function"&&typeof r!="function"?(a=void 0,s=t,i=r):(a=t,s=r,i=n),Jhe(e,a,o,i);function o(l,c){const p=c[c.length-1],f=p?p.children.indexOf(l):void 0;return s(l,f,p)}}const l1={}.hasOwnProperty,Zhe={};function eme(e,t){const r=t||Zhe,n=new Map,i=new Map,a=new Map,s={...jhe,...r.handlers},o={all:c,applyData:rme,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:r,patch:tme,wrap:ime};return dq(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const f=p.type==="definition"?n:i,d=String(p.identifier).toUpperCase();f.has(d)||f.set(d,p)}}),o;function l(p,f){const d=p.type,h=o.handlers[d];if(l1.call(o.handlers,d)&&h)return h(o,p,f);if(o.options.passThrough&&o.options.passThrough.includes(d)){if("children"in p){const{children:x,...y}=p,m=Am(y);return m.children=o.all(p),m}return Am(p)}return(o.options.unknownHandler||nme)(o,p,f)}function c(p){const f=[];if("children"in p){const d=p.children;let h=-1;for(;++h<d.length;){const v=o.one(d[h],p);if(v){if(h&&d[h-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=KL(v.value)),!Array.isArray(v)&&v.type==="element")){const x=v.children[0];x&&x.type==="text"&&(x.value=KL(x.value))}Array.isArray(v)?f.push(...v):f.push(v)}}}return f}}function tme(e,t){e.position&&(t.position=Bfe(e))}function rme(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&a&&Object.assign(r.properties,Am(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function nme(e,t){const r=t.data||{},n="value"in t&&!(l1.call(r,"hProperties")||l1.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ime(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
`});++n<e.length;)n&&r.push({type:"text",value:`
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
`}),r}function KL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function zL(e,t){const r=eme(e,t),n=r.one(e,void 0),i=Vhe(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
`},i),a}function ame(e,t){return e&&"run"in e?async function(r,n){const i=zL(r,{file:n,...t});await e.run(i,n)}:function(r,n){return zL(r,{file:n,...e||t})}}function WL(e){if(e)throw e}var yT,HL;function sme(){if(HL)return yT;HL=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var p=e.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!p&&!f)return!1;var d;for(d in c);return typeof d>"u"||e.call(c,d)},s=function(c,p){r&&p.name==="__proto__"?r(c,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):c[p.name]=p.newValue},o=function(c,p){if(p==="__proto__")if(e.call(c,p)){if(n)return n(c,p).value}else return;return c[p]};return yT=function l(){var c,p,f,d,h,v,x=arguments[0],y=1,m=arguments.length,T=!1;for(typeof x=="boolean"&&(T=x,x=arguments[1]||{},y=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});y<m;++y)if(c=arguments[y],c!=null)for(p in c)f=o(x,p),d=o(c,p),x!==d&&(T&&d&&(a(d)||(h=i(d)))?(h?(h=!1,v=f&&i(f)?f:[]):v=f&&a(f)?f:{},s(x,{name:p,newValue:l(T,v,d)})):typeof d<"u"&&s(x,{name:p,newValue:d}));return x},yT}var ome=sme();const gT=Mt(ome);function u1(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function lme(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(l,...c){const p=e[++a];let f=-1;if(l){s(l);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,p?ume(p,o)(...c):s(null,...c)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function ume(e,t){let r;return n;function n(...s){const o=e.length>s.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(c){const p=c;if(o&&r)throw p;return i(p)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){r||(r=!0,t(s,...o))}function a(s){i(null,s)}}const bi={basename:cme,dirname:fme,extname:pme,join:dme,sep:"/"};function cme(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');gp(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(n=i):(o=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function fme(e){if(gp(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function pme(e){gp(e);let t=e.length,r=-1,n=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function dme(...e){let t=-1,r;for(;++t<e.length;)gp(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":hme(r)}function hme(e){gp(e);const t=e.codePointAt(0)===47;let r=mme(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function mme(e,t){let r="",n=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,a=0;continue}}else if(r.length>0){r="",n=0,i=s,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return r}function gp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yme={cwd:gme};function gme(){return"/"}function c1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function vme(e){if(typeof e=="string")e=new URL(e);else if(!c1(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return bme(e)}function bme(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const vT=["history","path","basename","stem","extname","dirname"];class hq{constructor(t){let r;t?c1(t)?r={path:t}:typeof t=="string"||xme(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":yme.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<vT.length;){const a=vT[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)vT.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?bi.basename(this.path):void 0}set basename(t){xT(t,"basename"),bT(t,"basename"),this.path=bi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?bi.dirname(this.path):void 0}set dirname(t){YL(this.basename,"dirname"),this.path=bi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?bi.extname(this.path):void 0}set extname(t){if(bT(t,"extname"),YL(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=bi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){c1(t)&&(t=vme(t)),xT(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?bi.basename(this.path,this.extname):void 0}set stem(t){xT(t,"stem"),bT(t,"stem"),this.path=bi.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new qr(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function bT(e,t){if(e&&e.includes(bi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+bi.sep+"`")}function xT(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function YL(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function xme(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Tme=(function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a}),Sme={}.hasOwnProperty;class AA extends Tme{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=lme()}copy(){const t=new AA;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(gT(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(ET("data",this.frozen),this.namespace[t]=r,this):Sme.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ET("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Zd(t),n=this.parser||this.Parser;return TT("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),TT("process",this.parser||this.Parser),ST("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,s){const o=Zd(t),l=n.parse(o);n.run(l,o,function(p,f,d){if(p||!f||!d)return c(p);const h=f,v=n.stringify(h,d);Ame(v)?d.value=v:d.result=v,c(p,d)});function c(p,f){p||!f?s(p):a?a(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),TT("processSync",this.parser||this.Parser),ST("processSync",this.compiler||this.Compiler),this.process(t,i),GL("processSync","process",r),n;function i(a,s){r=!0,WL(a),n=s}}run(t,r,n){XL(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(s,o){const l=Zd(r);i.run(t,l,c);function c(p,f,d){const h=f||t;p?o(p):s?s(h):n(void 0,h,d)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),GL("runSync","run",n),i;function a(s,o){WL(s),i=o,n=!0}}stringify(t,r){this.freeze();const n=Zd(r),i=this.compiler||this.Compiler;return ST("stringify",i),XL(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(ET("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[p,...f]=c;l(p,f)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(c.plugins),c.settings&&(i.settings=gT(!0,i.settings,c.settings))}function o(c){let p=-1;if(c!=null)if(Array.isArray(c))for(;++p<c.length;){const f=c[p];a(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,p){let f=-1,d=-1;for(;++f<n.length;)if(n[f][0]===c){d=f;break}if(d===-1)n.push([c,...p]);else if(p.length>0){let[h,...v]=p;const x=n[d][1];u1(x)&&u1(h)&&(h=gT(!0,x,h)),n[d]=[c,h,...v]}}}}const Eme=new AA().freeze();function TT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ST(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ET(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function XL(e){if(!u1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function GL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zd(e){return Pme(e)?e:new hq(e)}function Pme(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ame(e){return typeof e=="string"||wme(e)}function wme(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _me="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",JL=[],QL={allowDangerousHtml:!0},Ome=/^(https?|ircs?|mailto|xmpp)$/i,Cme=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function mge(e){const t=wA(e),r=_A(e);return OA(t.runSync(t.parse(r),r),e)}async function yge(e){const t=wA(e),r=_A(e),n=await t.run(t.parse(r),r);return OA(n,e)}function gge(e){const t=wA(e),[r,n]=te.useState(void 0),[i,a]=te.useState(void 0);if(te.useEffect(function(){const s=_A(e);t.run(t.parse(s),s,function(o,l){n(o),a(l)})},[e.children,e.rehypePlugins,e.remarkPlugins,e.remarkRehypeOptions]),r)throw r;return i?OA(i,e):te.createElement(ce.Fragment)}function wA(e){const t=e.rehypePlugins||JL,r=e.remarkPlugins||JL,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...QL}:QL;return Eme().use(che).use(r).use(ame,n).use(t)}function _A(e){const t=e.children||"",r=new hq;return typeof t=="string"&&(r.value=t),r}function OA(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||Ime;for(const p of Cme)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+_me+p.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),dq(e,c),Vfe(e,{Fragment:ce.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ce.jsx,jsxs:ce.jsxs,passKeys:!0,passNode:!0});function c(p,f,d){if(p.type==="raw"&&d&&typeof f=="number")return s?d.children.splice(f,1):d.children[f]={type:"text",value:p.value},f;if(p.type==="element"){let h;for(h in dT)if(Object.hasOwn(dT,h)&&Object.hasOwn(p.properties,h)){const v=p.properties[h],x=dT[h];(x===null||x.includes(p.tagName))&&(p.properties[h]=l(String(v||""),h,p))}}if(p.type==="element"){let h=r?!r.includes(p.tagName):a?a.includes(p.tagName):!1;if(!h&&n&&typeof f=="number"&&(h=!n(p,f,d)),h&&d&&typeof f=="number")return o&&p.children?d.children.splice(f,1,...p.children):d.children.splice(f,1),f}}}function Ime(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||n!==-1&&t>n||Ome.test(e.slice(0,t))?e:""}var CA={};(function e(t,r,n,i){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),s=typeof Path2D=="function"&&typeof DOMMatrix=="function",o=(function(){if(!t.OffscreenCanvas)return!1;try{var N=new OffscreenCanvas(1,1),j=N.getContext("2d");j.fillRect(0,0,1,1);var F=N.transferToImageBitmap();j.createPattern(F,"no-repeat")}catch{return!1}return!0})();function l(){}function c(N){var j=r.exports.Promise,F=j!==void 0?j:t.Promise;return typeof F=="function"?new F(N):(N(l,l),null)}var p=(function(N,j){return{transform:function(F){if(N)return F;if(j.has(F))return j.get(F);var R=new OffscreenCanvas(F.width,F.height),J=R.getContext("2d");return J.drawImage(F,0,0),j.set(F,R),R},clear:function(){j.clear()}}})(o,new Map),f=(function(){var N=Math.floor(16.666666666666668),j,F,R={},J=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(j=function(se){var ie=Math.random();return R[ie]=requestAnimationFrame(function ae(fe){J===fe||J+N-1<fe?(J=fe,delete R[ie],se()):R[ie]=requestAnimationFrame(ae)}),ie},F=function(se){R[se]&&cancelAnimationFrame(R[se])}):(j=function(se){return setTimeout(se,N)},F=function(se){return clearTimeout(se)}),{frame:j,cancel:F}})(),d=(function(){var N,j,F={};function R(J){function se(ie,ae){J.postMessage({options:ie||{},callback:ae})}J.init=function(ae){var fe=ae.transferControlToOffscreen();J.postMessage({canvas:fe},[fe])},J.fire=function(ae,fe,de){if(j)return se(ae,null),j;var Se=Math.random().toString(36).slice(2);return j=c(function(Ce){function xe(Be){Be.data.callback===Se&&(delete F[Se],J.removeEventListener("message",xe),j=null,p.clear(),de(),Ce())}J.addEventListener("message",xe),se(ae,Se),F[Se]=xe.bind(null,{data:{callback:Se}})}),j},J.reset=function(){J.postMessage({reset:!0});for(var ae in F)F[ae](),delete F[ae]}}return function(){if(N)return N;if(!n&&a){var J=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
`);try{N=new Worker(URL.createObjectURL(new Blob([J])))}catch{return typeof console<"u",null}R(N)}return N}})(),h={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function v(N,j){return j?j(N):N}function x(N){return N!=null}function y(N,j,F){return v(N&&x(N[j])?N[j]:h[j],F)}function m(N){return N<0?0:Math.floor(N)}function T(N,j){return Math.floor(Math.random()*(j-N))+N}function A(N){return parseInt(N,16)}function E(N){return N.map(P)}function P(N){var j=String(N).replace(/[^0-9a-f]/gi,"");return j.length<6&&(j=j[0]+j[0]+j[1]+j[1]+j[2]+j[2]),{r:A(j.substring(0,2)),g:A(j.substring(2,4)),b:A(j.substring(4,6))}}function _(N){var j=y(N,"origin",Object);return j.x=y(j,"x",Number),j.y=y(j,"y",Number),j}function I(N){N.width=document.documentElement.clientWidth,N.height=document.documentElement.clientHeight}function k(N){var j=N.getBoundingClientRect();N.width=j.width,N.height=j.height}function M(N){var j=document.createElement("canvas");return j.style.position="fixed",j.style.top="0px",j.style.left="0px",j.style.pointerEvents="none",j.style.zIndex=N,j}function D(N,j,F,R,J,se,ie,ae,fe){N.save(),N.translate(j,F),N.rotate(se),N.scale(R,J),N.arc(0,0,1,ie,ae,fe),N.restore()}function C(N){var j=N.angle*(Math.PI/180),F=N.spread*(Math.PI/180);return{x:N.x,y:N.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:N.startVelocity*.5+Math.random()*N.startVelocity,angle2D:-j+(.5*F-Math.random()*F),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:N.color,shape:N.shape,tick:0,totalTicks:N.ticks,decay:N.decay,drift:N.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:N.gravity*3,ovalScalar:.6,scalar:N.scalar,flat:N.flat}}function L(N,j){j.x+=Math.cos(j.angle2D)*j.velocity+j.drift,j.y+=Math.sin(j.angle2D)*j.velocity+j.gravity,j.velocity*=j.decay,j.flat?(j.wobble=0,j.wobbleX=j.x+10*j.scalar,j.wobbleY=j.y+10*j.scalar,j.tiltSin=0,j.tiltCos=0,j.random=1):(j.wobble+=j.wobbleSpeed,j.wobbleX=j.x+10*j.scalar*Math.cos(j.wobble),j.wobbleY=j.y+10*j.scalar*Math.sin(j.wobble),j.tiltAngle+=.1,j.tiltSin=Math.sin(j.tiltAngle),j.tiltCos=Math.cos(j.tiltAngle),j.random=Math.random()+2);var F=j.tick++/j.totalTicks,R=j.x+j.random*j.tiltCos,J=j.y+j.random*j.tiltSin,se=j.wobbleX+j.random*j.tiltCos,ie=j.wobbleY+j.random*j.tiltSin;if(N.fillStyle="rgba("+j.color.r+", "+j.color.g+", "+j.color.b+", "+(1-F)+")",N.beginPath(),s&&j.shape.type==="path"&&typeof j.shape.path=="string"&&Array.isArray(j.shape.matrix))N.fill(V(j.shape.path,j.shape.matrix,j.x,j.y,Math.abs(se-R)*.1,Math.abs(ie-J)*.1,Math.PI/10*j.wobble));else if(j.shape.type==="bitmap"){var ae=Math.PI/10*j.wobble,fe=Math.abs(se-R)*.1,de=Math.abs(ie-J)*.1,Se=j.shape.bitmap.width*j.scalar,Ce=j.shape.bitmap.height*j.scalar,xe=new DOMMatrix([Math.cos(ae)*fe,Math.sin(ae)*fe,-Math.sin(ae)*de,Math.cos(ae)*de,j.x,j.y]);xe.multiplySelf(new DOMMatrix(j.shape.matrix));var Be=N.createPattern(p.transform(j.shape.bitmap),"no-repeat");Be.setTransform(xe),N.globalAlpha=1-F,N.fillStyle=Be,N.fillRect(j.x-Se/2,j.y-Ce/2,Se,Ce),N.globalAlpha=1}else if(j.shape==="circle")N.ellipse?N.ellipse(j.x,j.y,Math.abs(se-R)*j.ovalScalar,Math.abs(ie-J)*j.ovalScalar,Math.PI/10*j.wobble,0,2*Math.PI):D(N,j.x,j.y,Math.abs(se-R)*j.ovalScalar,Math.abs(ie-J)*j.ovalScalar,Math.PI/10*j.wobble,0,2*Math.PI);else if(j.shape==="star")for(var Re=Math.PI/2*3,He=4*j.scalar,ze=8*j.scalar,je=j.x,re=j.y,ue=5,Te=Math.PI/ue;ue--;)je=j.x+Math.cos(Re)*ze,re=j.y+Math.sin(Re)*ze,N.lineTo(je,re),Re+=Te,je=j.x+Math.cos(Re)*He,re=j.y+Math.sin(Re)*He,N.lineTo(je,re),Re+=Te;else N.moveTo(Math.floor(j.x),Math.floor(j.y)),N.lineTo(Math.floor(j.wobbleX),Math.floor(J)),N.lineTo(Math.floor(se),Math.floor(ie)),N.lineTo(Math.floor(R),Math.floor(j.wobbleY));return N.closePath(),N.fill(),j.tick<j.totalTicks}function q(N,j,F,R,J){var se=j.slice(),ie=N.getContext("2d"),ae,fe,de=c(function(Se){function Ce(){ae=fe=null,ie.clearRect(0,0,R.width,R.height),p.clear(),J(),Se()}function xe(){n&&!(R.width===i.width&&R.height===i.height)&&(R.width=N.width=i.width,R.height=N.height=i.height),!R.width&&!R.height&&(F(N),R.width=N.width,R.height=N.height),ie.clearRect(0,0,R.width,R.height),se=se.filter(function(Be){return L(ie,Be)}),se.length?ae=f.frame(xe):Ce()}ae=f.frame(xe),fe=Ce});return{addFettis:function(Se){return se=se.concat(Se),de},canvas:N,promise:de,reset:function(){ae&&f.cancel(ae),fe&&fe()}}}function $(N,j){var F=!N,R=!!y(j||{},"resize"),J=!1,se=y(j,"disableForReducedMotion",Boolean),ie=a&&!!y(j||{},"useWorker"),ae=ie?d():null,fe=F?I:k,de=N&&ae?!!N.__confetti_initialized:!1,Se=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,Ce;function xe(Re,He,ze){for(var je=y(Re,"particleCount",m),re=y(Re,"angle",Number),ue=y(Re,"spread",Number),Te=y(Re,"startVelocity",Number),ke=y(Re,"decay",Number),Oe=y(Re,"gravity",Number),Me=y(Re,"drift",Number),Ke=y(Re,"colors",E),_e=y(Re,"ticks",Number),pe=y(Re,"shapes"),ne=y(Re,"scalar"),me=!!y(Re,"flat"),Ie=_(Re),De=je,Ue=[],We=N.width*Ie.x,lt=N.height*Ie.y;De--;)Ue.push(C({x:We,y:lt,angle:re,spread:ue,startVelocity:Te,color:Ke[De%Ke.length],shape:pe[T(0,pe.length)],ticks:_e,decay:ke,gravity:Oe,drift:Me,scalar:ne,flat:me}));return Ce?Ce.addFettis(Ue):(Ce=q(N,Ue,fe,He,ze),Ce.promise)}function Be(Re){var He=se||y(Re,"disableForReducedMotion",Boolean),ze=y(Re,"zIndex",Number);if(He&&Se)return c(function(Te){Te()});F&&Ce?N=Ce.canvas:F&&!N&&(N=M(ze),document.body.appendChild(N)),R&&!de&&fe(N);var je={width:N.width,height:N.height};ae&&!de&&ae.init(N),de=!0,ae&&(N.__confetti_initialized=!0);function re(){if(ae){var Te={getBoundingClientRect:function(){if(!F)return N.getBoundingClientRect()}};fe(Te),ae.postMessage({resize:{width:Te.width,height:Te.height}});return}je.width=je.height=null}function ue(){Ce=null,R&&(J=!1,t.removeEventListener("resize",re)),F&&N&&(document.body.contains(N)&&document.body.removeChild(N),N=null,de=!1)}return R&&!J&&(J=!0,t.addEventListener("resize",re,!1)),ae?ae.fire(Re,je,ue):xe(Re,je,ue)}return Be.reset=function(){ae&&ae.reset(),Ce&&Ce.reset()},Be}var z;function Q(){return z||(z=$(null,{useWorker:!0,resize:!0})),z}function V(N,j,F,R,J,se,ie){var ae=new Path2D(N),fe=new Path2D;fe.addPath(ae,new DOMMatrix(j));var de=new Path2D;return de.addPath(fe,new DOMMatrix([Math.cos(ie)*J,Math.sin(ie)*J,-Math.sin(ie)*se,Math.cos(ie)*se,F,R])),de}function X(N){if(!s)throw new Error("path confetti are not supported in this browser");var j,F;typeof N=="string"?j=N:(j=N.path,F=N.matrix);var R=new Path2D(j),J=document.createElement("canvas"),se=J.getContext("2d");if(!F){for(var ie=1e3,ae=ie,fe=ie,de=0,Se=0,Ce,xe,Be=0;Be<ie;Be+=2)for(var Re=0;Re<ie;Re+=2)se.isPointInPath(R,Be,Re,"nonzero")&&(ae=Math.min(ae,Be),fe=Math.min(fe,Re),de=Math.max(de,Be),Se=Math.max(Se,Re));Ce=de-ae,xe=Se-fe;var He=10,ze=Math.min(He/Ce,He/xe);F=[ze,0,0,ze,-Math.round(Ce/2+ae)*ze,-Math.round(xe/2+fe)*ze]}return{type:"path",path:j,matrix:F}}function U(N){var j,F=1,R="#000000",J='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof N=="string"?j=N:(j=N.text,F="scalar"in N?N.scalar:F,J="fontFamily"in N?N.fontFamily:J,R="color"in N?N.color:R);var se=10*F,ie=""+se+"px "+J,ae=new OffscreenCanvas(se,se),fe=ae.getContext("2d");fe.font=ie;var de=fe.measureText(j),Se=Math.ceil(de.actualBoundingBoxRight+de.actualBoundingBoxLeft),Ce=Math.ceil(de.actualBoundingBoxAscent+de.actualBoundingBoxDescent),xe=2,Be=de.actualBoundingBoxLeft+xe,Re=de.actualBoundingBoxAscent+xe;Se+=xe+xe,Ce+=xe+xe,ae=new OffscreenCanvas(Se,Ce),fe=ae.getContext("2d"),fe.font=ie,fe.fillStyle=R,fe.fillText(j,Be,Re);var He=1/F;return{type:"bitmap",bitmap:ae.transferToImageBitmap(),matrix:[He,0,0,He,-Se*He/2,-Ce*He/2]}}r.exports=function(){return Q().apply(this,arguments)},r.exports.reset=function(){Q().reset()},r.exports.create=$,r.exports.shapeFromPath=X,r.exports.shapeFromText=U})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),CA,!1);const kme=CA.exports;var Nme=CA.exports.create;const vge=Object.freeze(Object.defineProperty({__proto__:null,create:Nme,default:kme},Symbol.toStringTag,{value:"Module"})),bge={TOGGLE_VISUAL_EDIT_MODE:"toggle-visual-edit-mode",UPDATE_CLASSES:"update-classes",UPDATE_CONTENT:"update-content",UPDATE_ATTRIBUTE:"update-attribute",UNSELECT_ELEMENT:"unselect-element",REFRESH_PAGE:"refresh-page",REQUEST_ELEMENT_POSITION:"request-element-position",POPOVER_DRAG_STATE:"popover-drag-state",DROPDOWN_STATE:"dropdown-state",INJECT_FONT_IMPORT:"inject-font-import",UPDATE_THEME_VARIABLES:"update-theme-variables",ELEMENT_SELECTED:"element-selected",ELEMENT_POSITION_UPDATE:"element-position-update",CLOSE_DROPDOWNS:"close-dropdowns",VISUAL_EDIT_AGENT_READY:"visual-edit-agent-ready",INLINE_EDIT:"inline-edit"},xge=({className:e="",width:t=36,height:r=36})=>ce.jsxs("svg",{width:t,height:r,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[ce.jsx("path",{d:"M28.2533 31.4621C28.2999 31.4621 28.3204 31.5214 28.2833 31.5498C25.3198 33.8234 21.6115 35.1751 17.5875 35.1751C13.5635 35.1751 9.85519 33.8238 6.8917 31.5498C6.85457 31.5214 6.87509 31.4621 6.92166 31.4621H28.2537H28.2533ZM32.8411 26.3487C32.2268 27.416 31.5034 28.4127 30.6869 29.3236C30.656 29.3582 30.6117 29.3777 30.5654 29.3777H4.60988C4.56364 29.3777 4.51934 29.3582 4.4884 29.3236C3.67156 28.4127 2.94852 27.416 2.33426 26.3487C2.30918 26.3054 2.34077 26.251 2.39093 26.251H32.7844C32.8346 26.251 32.8661 26.3054 32.8411 26.3487ZM34.8272 21.0855C34.6181 22.1209 34.3181 23.1234 33.9361 24.0845C33.9162 24.134 33.868 24.1666 33.8146 24.1666H1.36043C1.30702 24.1666 1.25882 24.134 1.23895 24.0845C0.856909 23.1237 0.556944 22.1212 0.347848 21.0855C0.339706 21.0451 0.370647 21.0074 0.41201 21.0074H34.763C34.804 21.0074 34.8353 21.0451 34.8272 21.0855ZM17.4686 0.000392079C27.2365 -0.0640954 35.175 7.83464 35.175 17.5876C35.175 18.0162 35.1597 18.4412 35.1297 18.8623C35.1274 18.8965 35.0988 18.9229 35.0646 18.9229H0.110743C0.076545 18.9229 0.0478839 18.8965 0.045604 18.8623C0.0156401 18.4467 0.000332489 18.0269 6.79435e-06 17.6035C-0.00846126 8.0343 7.89972 0.0639025 17.4686 0.000392079Z",fill:"black"}),ce.jsx("path",{d:"M28.2533 31.4621C28.2999 31.4621 28.3204 31.5214 28.2833 31.5498C25.3198 33.8234 21.6115 35.1751 17.5875 35.1751C13.5635 35.1751 9.85519 33.8238 6.8917 31.5498C6.85457 31.5214 6.87509 31.4621 6.92166 31.4621H28.2537H28.2533ZM32.8411 26.3487C32.2268 27.416 31.5034 28.4127 30.6869 29.3236C30.656 29.3582 30.6117 29.3777 30.5654 29.3777H4.60988C4.56364 29.3777 4.51934 29.3582 4.4884 29.3236C3.67156 28.4127 2.94852 27.416 2.33426 26.3487C2.30918 26.3054 2.34077 26.251 2.39093 26.251H32.7844C32.8346 26.251 32.8661 26.3054 32.8411 26.3487ZM34.8272 21.0855C34.6181 22.1209 34.3181 23.1234 33.9361 24.0845C33.9162 24.134 33.868 24.1666 33.8146 24.1666H1.36043C1.30702 24.1666 1.25882 24.134 1.23895 24.0845C0.856909 23.1237 0.556944 22.1212 0.347848 21.0855C0.339706 21.0451 0.370647 21.0074 0.41201 21.0074H34.763C34.804 21.0074 34.8353 21.0451 34.8272 21.0855ZM17.4686 0.000392079C27.2365 -0.0640954 35.175 7.83464 35.175 17.5876C35.175 18.0162 35.1597 18.4412 35.1297 18.8623C35.1274 18.8965 35.0988 18.9229 35.0646 18.9229H0.110743C0.076545 18.9229 0.0478839 18.8965 0.045604 18.8623C0.0156401 18.4467 0.000332489 18.0269 6.79435e-06 17.6035C-0.00846126 8.0343 7.89972 0.0639025 17.4686 0.000392079Z",fill:"#FF5500"})]});class Dme extends p1{getBaseURL(){return"/apps"}addMessage(t,r){return this.axios.post(`/${t}/chat/message`,r)}undoMessage(t,r){return this.axios.post(`/${t}/chat/message/${r}/undo`)}reportRenderOutcome(t,r,n,i,a){return this.axios.post(`/${t}/chat/messages/${r}/outcome`,{status:n,error_message:i,error_stacktrace:a})}reportRuntimeError(t,r,n){return this.axios.post(`/${t}/chat/runtime-error`,{error_message:r,error_stacktrace:n})}inviteUser(t,r,n){return this.axios.post(`/${t}/users/invite-user`,{user_email:r,role:n})}inviteUsers(t,r,n,i,a){return this.axios.post(`/${t}/users/invite-users`,{user_emails:r,role:n,collaborator_role:i||null,add_as_guest:a||!1})}getCollaborators(t){return this.axios.get(`/${t}/users/collaborators`)}removeCollaborator(t,r,n=!1){return this.axios.delete(`/${t}/users/collaborators/${r}`,{params:{also_remove_from_app:n}})}remixApp(t,r){return this.axios.post(`/${t}/remix`,r)}remixAppRequirements(t){return this.axios.get(`/${t}/remix/requirements`)}updateLogo(t,r){return this.axios.post(`/${t}/metadata/update-logo`,r)}generateLogoFromPrompt(t,r){return this.axios.post(`/${t}/metadata/generate-logo`,r)}stopChat(t){return this.axios.post(`/${t}/chat/stop`)}exitPlanMode(t){return this.axios.post(`/${t}/chat/exit-plan-mode`)}submitToolCallInput(t,r,n,i,a,s){const o=s?{headers:{"X-Request-ID":s}}:void 0;return this.axios.post(`/${t}/chat/submit-tool-call-input`,{tool_call_id:r,action:n?"approved":"rejected",extra_user_input:i,message_id:a},o)}submitToolCallInputBatch(t,r,n,i,a){const s=a?{headers:{"X-Request-ID":a}}:void 0;return this.axios.post(`/${t}/chat/submit-tool-call-input/batch`,{tool_call_ids:r,action:n?"approved":"rejected",extra_user_input:i},s)}getToolCall(t,r,n){return this.axios.get(`/${t}/chat/messages/${r}/tool_calls/${n}`)}getDomainAppId(t){return this.axios.get(`/public/prod/domain/${t}`)}getRuntimeAuthToken(t,r){return this.axios.get(`/${t}/auth/token`)}generateTokenForUser(t,r){return this.axios.post(`/${t}/util/ping`,{email:r},{headers:{"X-From-Preview":"true"}})}getLoginInfoById(t){return this.axios.get(`/public/login-info/by-id/${t}`)}getAppPublishedUrl(t){return this.axios.get(`/platform/${t}/published-url`)}getEditorAccess(t){return this.axios.get(`/platform/${t}/editor-access`)}getSuggestions(t){return this.axios.get(`/${t}/chat/suggestions/edit`)}dismissDomainSuggestion(t){return this.axios.put(`/${t}/chat/suggestions/edit/dismiss-domain-suggestion`)}deployApp(t,r){const n=r?{checkpoint_id:r}:void 0;return this.axios.post(`/${t}/deploy`,n)}undeployApp(t){return this.axios.post(`/${t}/undeploy`)}installIntegration(t,r,n){return this.axios.post(`/${t}/install-integration/${r}/${n}`)}deleteIntegration(t,r,n){return this.axios.post(`/${t}/delete-integration/${r}/${n}`)}redeployFunction(t,r,n){return this.axios.post(`/${t}/coding/redeploy-function/${r}`,{code:n})}moveToWorkspace(t,r){return this.axios.post(`/${t}/metadata/move-to-workspace`,{target_workspace_id:r})}updateSlug({appId:t,slug:r}){return this.axios.patch(`/${t}/metadata/slug`,{slug:r})}loadFullConversation({appId:t,limit:r,skip:n}){return this.axios.get(`/${t}/chat/full-conversation`,{params:{limit:r,skip:n}})}getUsersInfo(t,r){return this.axios.post(`/${t}/users/info`,r)}getOwnerEmail(t){return this.axios.get(`/${t}/metadata/owner-email`)}getAgentConversations(t,r=1){return this.axios.get(`/${t}/user-agent/conversations`,{params:{sort:"-updated_date",limit:r}})}getAgentConversation(t,r){return this.axios.get(`/${t}/user-agent/conversations/${r}`)}getAgentConversationMessages(t,r,n={}){return this.axios.get(`/${t}/user-agent/conversations/${r}/messages`,{params:n})}createAgentConversation(t,r={}){return this.axios.post(`/${t}/user-agent/conversations`,{metadata:r})}addAgentMessage(t,r,n){return this.axios.post(`/${t}/user-agent/conversations/${r}/messages`,n)}cloneAgent(t,r){return this.axios.post(`/${t}/user-agent/clone`,r)}stopAgentConversation(t,r){return this.axios.post(`/${t}/user-agent/conversations/${r}/stop`)}getQueuedMessages(t,r){return this.axios.get(`/${t}/user-agent/conversations/${r}/queued-messages`)}editQueuedMessage(t,r,n,i){return this.axios.put(`/${t}/user-agent/conversations/${r}/queued-messages/${n}`,{content:i})}deleteQueuedMessage(t,r,n){return this.axios.delete(`/${t}/user-agent/conversations/${r}/queued-messages/${n}`)}deleteAgentMessage(t,r,n){return this.axios.delete(`/${t}/user-agent/conversations/${r}/messages/${n}`)}submitAgentToolCallInput(t,r,n,i,a,s){const o=s?{headers:{"X-Request-ID":s}}:void 0;return this.axios.post(`/${t}/user-agent/conversations/${r}/submit-tool-call-input`,{tool_call_id:n,action:i?"approved":"rejected",extra_user_input:a},o)}getAgentMemoryItems(t,r){return this.axios.get(`/${t}/agent-configs/${encodeURIComponent(r)}/memory`)}deleteAgentMemoryItem(t,r,n){return this.axios.delete(`/${t}/agent-configs/${encodeURIComponent(r)}/memory/${encodeURIComponent(n)}`)}listAgentConversations(t,r){return this.axios.get(`/${t}/agent-configs/conversations`,{params:r})}getAgentConversationDetail(t,r){return this.axios.get(`/${t}/agent-configs/conversations/${encodeURIComponent(r)}`)}getAgentUsage(t){return this.axios.get(`/${t}/agent-configs/usage`)}updateAgentConfig(t,r,n){return this.axios.put(`/${t}/agent-configs/${encodeURIComponent(r)}`,n)}listAgentSkills(t){return this.axios.get(`/${t}/agent-skills`)}listAvailableWorkspaceSkills(t){return this.axios.get(`/${t}/agent-skills/available-workspace-skills`)}getAgentSkill(t,r){return this.axios.get(`/${t}/agent-skills/${encodeURIComponent(r)}`)}createAgentSkill(t,r){return this.axios.post(`/${t}/agent-skills`,r)}updateAgentSkill(t,r,n){return this.axios.put(`/${t}/agent-skills/${encodeURIComponent(r)}`,n)}deleteAgentSkill(t,r){return this.axios.delete(`/${t}/agent-skills/${encodeURIComponent(r)}`)}filter(t={},r,n,i,a,s,o,l,c){const p=super.filterParams(t,r,n,i,a);return s&&(p.filter_mode=s),o&&(p.folder_id=o),l&&(p.search=l),c&&(p.include_folder_ids="true"),this.axios.get("",{params:p}).then(f=>f.map(d=>this.parseInstance(d)))}createFromUrl(t,r,n,i="full"){return this.axios.post("/url-capture/create-from-url",{url:t,name:r,message:n,mode:i})}createFromFigma(t,r,n){return this.axios.post("/figma-import/create-from-figma",{figma_url:t,name:r,message:n})}}const Tge=new Dme,mq=te.forwardRef(({className:e,type:t,...r},n)=>ce.jsx("input",{type:t,className:et("flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));mq.displayName="Input";const Sge=te.forwardRef(function({value:t,onChange:r,groupSize:n,mode:i="numeric",autoFocus:a=!1,hasError:s=!1,disabled:o=!1,separator:l=!0,cellClassName:c="w-10 h-11 text-base font-semibold",separatorClassName:p,className:f,onSubmit:d},h){const v=te.useRef([]),x=te.useRef(d);x.current=d;const y=t.length,m=n??Math.ceil(y/2),T=i!=="numeric",A=i==="hex"?/^[0-9A-Fa-f]$/:i==="alphanumeric"?/^[A-Za-z0-9]$/:i==="alpha"?/^[A-Za-z]$/:/^\d$/,E=q=>(i==="numeric"?q.replace(/\D/g,""):i==="hex"?q.replace(/[^0-9A-Fa-f]/g,"").toUpperCase():i==="alpha"?q.replace(/[^A-Za-z]/g,"").toUpperCase():q.replace(/[^A-Za-z0-9]/g,"").toUpperCase()).slice(0,y),P=()=>setTimeout(()=>{var q;return(q=x.current)==null?void 0:q.call(x)},0),_=q=>{var $;r(q),($=v.current[y-1])==null||$.focus(),P()};te.useImperativeHandle(h,()=>({focus:()=>{var q;return(q=v.current[0])==null?void 0:q.focus()}})),te.useEffect(()=>{if(!a)return;const q=setTimeout(()=>{var $,z,Q;($=v.current[0])==null||$.focus(),(Q=(z=v.current[0])==null?void 0:z.scrollIntoView)==null||Q.call(z,{block:"center",behavior:"smooth"})},350);return()=>clearTimeout(q)},[]);const I=(q,$)=>{var U;const z=E(T?$.toUpperCase():$);if(z.length>=y){_(z.slice(0,y).split(""));return}const Q=$.length>1?$.slice(-1):$,V=T?Q.toUpperCase():Q;if(V&&!A.test(V))return;const X=[...t];X[q]=V,r(X),V&&q<y-1?(U=v.current[q+1])==null||U.focus():V&&q===y-1&&X.every(Boolean)&&P()},k=(q,$)=>{var z;$.key==="Backspace"&&!t[q]&&q>0&&((z=v.current[q-1])==null||z.focus()),$.key==="Enter"&&x.current&&($.preventDefault(),x.current())},M=(q,$)=>{var V;$.preventDefault();const z=E($.clipboardData.getData("text").replace(/[-\s]/g,""));if(!z)return;if(z.length===y){_(z.split(""));return}const Q=[...t];for(let X=0;X<z.length&&q+X<y;X++)Q[q+X]=z[X];r(Q),(V=v.current[Math.min(q+z.length,y-1)])==null||V.focus(),Q.every(Boolean)&&P()},D=q=>q.target.select(),C=[];for(let q=0;q<y;q+=m)C.push(Array.from({length:Math.min(m,y-q)},($,z)=>q+z));const L=q=>ce.jsx(mq,{ref:$=>{v.current[q]=$},type:"text",inputMode:T?"text":"numeric",autoComplete:q===0&&!T?"one-time-code":"off",value:t[q],onChange:$=>I(q,$.target.value),onKeyDown:$=>k(q,$),onPaste:$=>M(q,$),onFocus:D,autoFocus:!1,disabled:o,className:et("text-center",c,s&&"border-red-500 focus-visible:ring-red-500")},q);return ce.jsx("div",{className:et("flex items-center justify-center gap-1.5",f),children:C.map((q,$)=>ce.jsxs(Pe.Fragment,{children:[$>0&&l&&ce.jsx("span",{className:et("text-slate-400 font-bold text-lg mx-0.5",p),children:"—"}),q.map(L)]},$))})});function Ege(e){return(e==null?void 0:e.auth_config)||{enable_username_password:!1,enable_google_login:!0,enable_microsoft_login:!1,enable_facebook_login:!1,enable_sso_login:!1,sso_provider_name:null}}const yq={MUTATION:{staleTime:0,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1},REALTIME:{staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,refetchOnReconnect:!0},REALTIME_NO_REFETCH:{staleTime:0,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1},DEFAULT:{staleTime:120*1e3,refetchOnMount:!0,refetchOnWindowFocus:!0,refetchOnReconnect:!1},DYNAMIC:{staleTime:600*1e3,refetchOnMount:!0,refetchOnWindowFocus:!0,refetchOnReconnect:!1},STATIC:{staleTime:3600*1e3,refetchOnMount:!0,refetchOnWindowFocus:!1,refetchOnReconnect:!1},FIXED:{staleTime:1440*60*1e3,refetchOnMount:!0,refetchOnWindowFocus:!1,refetchOnReconnect:!1}},Mme=e=>{var t,r;return new T9({defaultOptions:{queries:{meta:{},...yq.DEFAULT,retryDelay:3e4,retryOnMount:!1,retry:!1,refetchIntervalInBackground:!1,refetchInterval:!1,...(t=e==null?void 0:e.defaultOptions)==null?void 0:t.queries},mutations:{retryDelay:3e4,retry:!1,...(r=e==null?void 0:e.defaultOptions)==null?void 0:r.mutations}}})},eh=Mme();function Lme({requestId:e}){const[t,r]=te.useState(!1);return ce.jsx("span",{className:"block mt-1 cursor-pointer select-all",onClick:async()=>{try{await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),2e3)}catch{}},children:t?"Copied!":`Request ID: ${e}`})}const jme=({query:e,caching:t,enabled:r,initialData:n,throwErrorToBoundary:i,onError:a,logErrorMsg:s,onSuccess:o,onLoading:l,toastSuccess:c,toastError:p,retry:f},d)=>{var X,U;const[h,v]=te.useState(n),[x,y]=te.useState(!1),[m,T]=te.useState(void 0),{toast:A}=Aq(),E=te.useRef(!1),P=Array.isArray(t)?{groupIds:t}:t,_=!!((X=P==null?void 0:P.groupIds)!=null&&X.length),I=typeof c=="string"?{title:"Success",description:c}:c,k=typeof p=="string"?{title:"Error",description:p}:p;te.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);const{queryFn:M,invalidateQuery:D,invalidateQueries:C}=te.useMemo(()=>_?{queryFn:async j=>eh.fetchQuery({...yq[(P==null?void 0:P.configuration)??"DEFAULT"],queryKey:[...P==null?void 0:P.groupIds,...d??[]],queryFn:async()=>await e(j),meta:{deps:d,configuration:(P==null?void 0:P.configuration)??"DEFAULT",tags:P==null?void 0:P.tags}}),invalidateQueries:()=>{eh.invalidateQueries({queryKey:P==null?void 0:P.groupIds,exact:!1})},invalidateQuery:()=>{eh.invalidateQueries({queryKey:[...P==null?void 0:P.groupIds,...d??[]],exact:!0})}}:{queryFn:e,invalidateQuery:()=>{},invalidateQueries:()=>{}},[e,P==null?void 0:P.configuration,(U=P==null?void 0:P.groupIds)==null?void 0:U.join(","),...d??[]]),L=te.useCallback(async N=>{var j;y(!0),l==null||l(!0,N);try{const F=await M(N);return E.current&&v(F),E.current&&T(void 0),E.current&&y(!1),o==null||o(F,N),l==null||l(!1,N),I&&A(I),{data:F}}catch(F){const R=((j=N==null?void 0:N.retryData)==null?void 0:j.retries)??(f==null?void 0:f.retries)??0,J=Math.max((f==null?void 0:f.delay)??100,100);if(R>0)return setTimeout(()=>{L({refetchData:N==null?void 0:N.refetchData,retryData:{retries:R-1}})},J),{data:h,error:F,retries:R};a==null||a(F,N),E.current&&T(F);const se=F==null?void 0:F.requestId;return k&&A({...k,description:se&&k.description?ce.jsxs(ce.Fragment,{children:[k.description,ce.jsx(Lme,{requestId:se})]}):k.description,variant:"destructive"}),E.current&&y(!1),l==null||l(!1,N),{data:h,error:F}}},[M,o,a]);if(te.useEffect(()=>{r!==!1&&L()},[...d??[],r]),m&&i)throw m;const q=te.useCallback(N=>(D(),L({refetchData:N})),[L]),$=te.useCallback(N=>{r!==!1&&q(N)},[r,L]),z=te.useCallback(async()=>r!==!1?await L():h,[L,h,r]),Q=te.useRef(h);Q.current=h;const V=te.useCallback(N=>{const j=typeof N=="function"?N(Q.current):N;j!==!1&&(v((j==null?void 0:j.data)??n),_&&eh.setQueryData([...P==null?void 0:P.groupIds,...d??[]],j==null?void 0:j.data),j!=null&&j.refetch&&q(j==null?void 0:j.refetchData))},[n,q,r]);return{data:h,isLoading:x,error:m,refetch:q,refetchIfEnabled:$,resetData:V,setData:v,invalidateQueries:C,fetchData:z}},Pge=({mutate:e,...t})=>{const{refetch:r,data:n,isLoading:i,error:a,resetData:s}=jme({...t,query:async o=>await e(o==null?void 0:o.refetchData),enabled:!1},[]);return{resetData:s,data:n,isLoading:i,error:a,mutate:o=>r(o)}},gq=te.createContext(void 0);function Age({ns:e,children:t}){return ce.jsx(gq.Provider,{value:e,children:t})}function wge(e){const t=te.useContext(gq),r=e??t,{t:n,i18n:i}=V9(r),a=wq(i.language);if(!r)throw new Error('useTranslations: no namespace provided. Wrap with <TranslationProvider ns="..."> or pass a namespace argument.');const s=te.useMemo(()=>function(l){return ce.jsx(q9,{...l,ns:r,t:n})},[r,n]);return{t:n,Trans:s,currentLang:a}}class Rme extends d1{getBaseURL(){return"/apps"}requestAccess(t,r){return this.axios.post(`/${t}/access-requests`,{confirmation_token:r})}listAccessRequests(t,r=null,n=null){const i={};return r&&r!=="all"&&(i.role=r),n&&(i.q=JSON.stringify(n)),this.axios.get(`/${t}/access-requests/all`,{params:i})}reviewAccessRequest(t,r,n){return this.axios.post(`/${t}/access-requests/${r}/${n}`)}}const _ge=new Rme,Bme=o9,Fme=l9,qme=u9,$me=_s("z-50 overflow-hidden font-base44 rounded-md border px-3 py-1.5 text-sm shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",{variants:{variant:{default:"bg-popover text-popover-foreground",dark:"border-gray-900 bg-gray-900 text-white",light:"border-gray-200 bg-white text-gray-900"}},defaultVariants:{variant:"default"}}),IA=te.forwardRef(({className:e,sideOffset:t=4,variant:r,...n},i)=>ce.jsx(c9,{children:ce.jsx(Ij,{ref:i,sideOffset:t,className:et($me({variant:r}),e),...n})}));IA.displayName=Ij.displayName;const Ume=te.forwardRef(({className:e,...t},r)=>ce.jsx(kj,{ref:r,className:et("fill-current",e),...t}));Ume.displayName=kj.displayName;const Vme=e=>te.forwardRef(({tooltip:t,...r},n)=>{if(!(t!=null&&t.content))return ce.jsx(e,{ref:n,...r});const{theme:i,content:a,open:s,onOpenChange:o,className:l,disabled:c,...p}=t;return ce.jsx(Bme,{children:ce.jsxs(Fme,{open:c===!0?!1:s,onOpenChange:o,...p,children:[ce.jsx(qme,{asChild:!0,children:ce.jsx(e,{ref:n,...r})}),ce.jsx(IA,{variant:i==="light"?"light":"dark",className:l,children:a})]})})}),Kme=te.forwardRef(({className:e,...t},r)=>ce.jsx(IA,{ref:r,variant:"dark",className:e,...t}));Kme.displayName="DarkTooltipContent";const zme=_s("inline-flex items-center rounded-lg justify-center gap-2 whitespace-nowrap text-sm font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground shadow-sm",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm",ghost:"hover:bg-slate-200 group-data-[theme=white]:hover:bg-muted hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 px-3",lg:"h-11 px-8",icon:"h-10 w-10",tiny:"h-8 px-2",xTiny:"h-6 w-6 px-1"}},defaultVariants:{variant:"default",size:"default"}}),vq=te.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const s=n?pm:"button";return ce.jsx(s,{className:et(zme({variant:t,size:r,className:e})),ref:a,...i})});vq.displayName="ButtonBase";const Oge=Vme(vq);export{Yce as $,y5 as A,vq as B,Sge as C,w8 as D,_8 as E,Ms as F,rE as G,Qi as H,mq as I,bye as J,Tie as K,Ou as L,mge as M,Tye as N,sl as O,xye as P,eh as Q,vye as R,u8 as S,Age as T,Tge as U,Qme as V,Y9 as W,my as X,yy as Y,Pge as Z,qE as _,nye as a,y8 as a$,Xce as a0,q6 as a1,U5 as a2,F6 as a3,g8 as a4,v8 as a5,T8 as a6,S8 as a7,b8 as a8,E8 as a9,BE as aA,vF as aB,On as aC,Wse as aD,Koe as aE,T5 as aF,S5 as aG,P5 as aH,A5 as aI,E5 as aJ,_5 as aK,w5 as aL,dfe as aM,Dl as aN,Nye as aO,xge as aP,t8 as aQ,r8 as aR,Y5 as aS,jce as aT,S7 as aU,ufe as aV,f8 as aW,Ume as aX,Iu as aY,Doe as aZ,zoe as a_,m6 as aa,aA as ab,g6 as ac,b6 as ad,x6 as ae,R6 as af,O8 as ag,v6 as ah,Hj as ai,St as aj,ny as ak,$n as al,ry as am,Lt as an,yt as ao,jl as ap,Ii as aq,rn as ar,Gl as as,At as at,hV as au,sa as av,Ar as aw,Ai as ax,Eu as ay,U2 as az,wge as b,d3 as b$,Cue as b0,Iue as b1,kue as b2,l8 as b3,ofe as b4,s8 as b5,p8 as b6,h8 as b7,sA as b8,T6 as b9,sF as bA,Wo as bB,Hr as bC,yJ as bD,EJ as bE,gJ as bF,V2 as bG,UB as bH,W1 as bI,yye as bJ,yre as bK,R1 as bL,Vm as bM,Is as bN,GK as bO,XK as bP,np as bQ,Ni as bR,VK as bS,f3 as bT,cte as bU,UK as bV,qK as bW,RK as bX,rp as bY,iz as bZ,ha as b_,S6 as ba,E6 as bb,P6 as bc,w6 as bd,LE as be,z9 as bf,iye as bg,_h as bh,xf as bi,e2 as bj,cY as bk,Au as bl,fh as bm,K9 as bn,Uj as bo,Gme as bp,Jme as bq,_7 as br,mye as bs,pye as bt,hye as bu,dye as bv,ni as bw,er as bx,Iee as by,sQ as bz,pm as c,oge as c$,YK as c0,s3 as c1,ZK as c2,ln as c3,p3 as c4,$1 as c5,PV as c6,jR as c7,iQ as c8,Rm as c9,nu as cA,Cu as cB,Fee as cC,H1 as cD,cW as cE,kr as cF,hy as cG,py as cH,wte as cI,ht as cJ,Xo as cK,Mye as cL,Bye as cM,Lye as cN,jye as cO,Rye as cP,s6 as cQ,goe as cR,voe as cS,m8 as cT,yge as cU,gge as cV,Ime as cW,fge as cX,cge as cY,uge as cZ,lge as c_,fte as ca,E3 as cb,Hz as cc,Jz as cd,q1 as ce,Xc as cf,OE as cg,Sn as ch,wn as ci,sI as cj,kT as ck,gye as cl,Su as cm,Di as cn,Nl as co,Uee as cp,Zm as cq,oy as cr,ay as cs,MJ as ct,kh as cu,YB as cv,Ho as cw,Lte as cx,rV as cy,zo as cz,Bme as d,lP as d$,sge as d0,age as d1,ige as d2,nge as d3,rge as d4,tge as d5,ege as d6,Jye as d7,Zye as d8,Qye as d9,Ege as dA,O5 as dB,C5 as dC,I5 as dD,_ge as dE,Xse as dF,NP as dG,DP as dH,MP as dI,Fce as dJ,qce as dK,I6 as dL,k6 as dM,Lme as dN,rye as dO,fP as dP,TP as dQ,O4 as dR,C4 as dS,lp as dT,Sy as dU,QP as dV,Q5 as dW,$E as dX,d4 as dY,m4 as dZ,aP as d_,Gye as da,Yye as db,Xye as dc,Hye as dd,Wye as de,zye as df,Kye as dg,qye as dh,Vye as di,Uye as dj,$ye as dk,Fye as dl,vge as dm,Dye as dn,kye as dp,Iye as dq,Cye as dr,Oye as ds,_ye as dt,wye as du,Aye as dv,Pye as dw,Eye as dx,Sye as dy,bge as dz,Fme as e,N8 as e$,uP as e0,oP as e1,mu as e2,sP as e3,iP as e4,h4 as e5,L6 as e6,Vj as e7,fq as e8,Jhe as e9,kfe as eA,hA as eB,$8 as eC,Am as eD,tye as eE,_P as eF,wy as eG,_y as eH,n8 as eI,Z6 as eJ,e8 as eK,afe as eL,un as eM,yq as eN,kme as eO,Vme as eP,Wce as eQ,Hce as eR,B6 as eS,o4 as eT,l4 as eU,YE as eV,Oge as eW,Wae as eX,hP as eY,b4 as eZ,I8 as e_,pge as ea,mpe as eb,hpe as ec,ql as ed,CL as ee,dq as ef,spe as eg,VL as eh,Pn as ei,Ti as ej,on as ek,a1 as el,jy as em,Zt as en,ki as eo,bA as ep,Pt as eq,qt as er,lpe as es,_fe as et,hge as eu,dge as ev,t1 as ew,Ife as ex,dA as ey,mfe as ez,qme as f,zme as f0,a7 as f1,at as f2,Kt as f3,J4 as f4,V9 as f5,cfe as f6,IA as g,b5 as h,jme as i,V5 as j,K5 as k,z5 as l,W5 as m,H5 as n,Woe as o,g5 as p,v5 as q,r6 as r,sfe as s,i8 as t,Zme as u,lfe as v,a8 as w,o8 as x,hfe as y,A8 as z};