@billgangcom/theme-lib 1.125.4 → 1.125.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{builder-B5L_sXTT.js → builder-CQv65ONw.js} +5 -5
- package/dist/{builder-l3Mn4viI.cjs → builder-DajwWRB4.cjs} +2 -2
- package/dist/{builder-components-BIfe6RPT.js → builder-components-BR6CyOIi.js} +4 -4
- package/dist/{builder-components-X1GAfroW.cjs → builder-components-Cy-VmxAd.cjs} +1 -1
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +23 -23
- package/dist/{charge-Di-4QINM.js → charge-BIOFTYrp.js} +402 -396
- package/dist/{charge-9VEQkwem.cjs → charge-BOfQrkLv.cjs} +12 -12
- package/dist/{checkout-DCuFIAUp.cjs → checkout-B1l5LksI.cjs} +1 -1
- package/dist/{checkout-DsCj-O1M.js → checkout-g545jGLZ.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-78ELLFPJ.cjs → index-B1ymclv0.cjs} +1 -1
- package/dist/{index-CcSUuqaw.cjs → index-B7-PVkQx.cjs} +1 -1
- package/dist/{index-x0UXGxZZ.js → index-BhSh0O1l.js} +1 -1
- package/dist/{index-BEH-iY-2.js → index-C3lnL6j6.js} +5 -5
- package/dist/{index-B98dVJaK.cjs → index-C65UzOoU.cjs} +1 -1
- package/dist/{index-DymofhMw.js → index-CidKvUav.js} +2 -2
- package/dist/{index-F6Vdi_NY.js → index-Cm8S5Gki.js} +5 -5
- package/dist/{index-IAZX-Ulk.cjs → index-DCaryi7j.cjs} +1 -1
- package/dist/{index-CEGNqpya.js → index-DPIhmGN5.js} +5 -5
- package/dist/{index-DFDIsooy.cjs → index-DXzoPSoa.cjs} +1 -1
- package/dist/{index-_V3o_Cpe.cjs → index-WT_hm-vy.cjs} +1 -1
- package/dist/{index-BpyYli2C.js → index-r6UXCC-e.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-BDBX80KD.js → order-CCmQ1de6.js} +5 -5
- package/dist/{order-DPalIxS2.cjs → order-DUfIq98T.cjs} +1 -1
- package/dist/{subscription-6YfhKXW6.cjs → subscription-BU1AfEvj.cjs} +1 -1
- package/dist/{subscription-aL3jcYCi.js → subscription-Cr4tlTfV.js} +5 -5
- package/dist/{ticket-CjFb8U_g.cjs → ticket-D-hMXIqO.cjs} +1 -1
- package/dist/{ticket-D73mbXt4.js → ticket-UPvqJdN6.js} +5 -5
- package/dist/{top-up-BTDWKfwy.js → top-up-BG4dnsZh.js} +5 -5
- package/dist/{top-up-DRjxtNDd.cjs → top-up-C3qZGkbN.cjs} +1 -1
- package/dist/{ui-components-D2keDJbK.js → ui-components-Bc8Z_6jF.js} +45 -44
- package/dist/{ui-components-CvWzKgkI.cjs → ui-components-cdIfqSzy.cjs} +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-BeyWmqN7.js → validation-B5t0eZSV.js} +5 -5
- package/dist/{validation-BIkz39RU.cjs → validation-CGW91G0m.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const g=require("./builder-l3Mn4viI.cjs"),i=require("react/jsx-runtime"),L=require("react"),N=require("./ui-components-CvWzKgkI.cjs"),nl=require("./builder-components-X1GAfroW.cjs");require("react-dom");const rl=require("./ticket-CjFb8U_g.cjs"),ul=require("./order-DPalIxS2.cjs"),n2=require("./subscription-6YfhKXW6.cjs");function r2(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const me=r2(L);async function u2(e){const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.storeApi}/shops/${n}/general`+(e?`?password=${e}`:"");return(await g.request({method:"get",url:r,withToken:!1})).data}const a2=async()=>{const e=g.useApiStore.getState().apiUrls,t=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"flagship-theme.pages.dev":window.location.hostname,n=`${e.storeApi}/v2/shops/${t}/settings-theme`;return await g.request({url:n,withToken:!0,method:"get"})},s2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/balance/top-up/${n}`;return await g.request({url:r,method:"post",body:e,withToken:!1})},i2=async(e,t)=>{const r=`${g.useApiStore.getState().apiUrls.cashappApi}/v1/${t}/cashapp/link`;return await g.request({url:r,method:"post",body:e,withToken:!1})},Nr=async e=>{const t=g.useApiStore.getState().apiUrls;if(!localStorage.getItem("token"))throw new Error("No access token");const r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${t.customersApi}/v2/${r}/customers/${e}`;return await g.request({url:u,withToken:!0,method:"get",typeToken:"customer"})},o2=()=>Nr("dash/info"),al=()=>Nr("dash/dashboard/home"),c2=()=>Nr("rewards"),l2=()=>Nr("balance"),d2=()=>Nr("balance/top-up/settings"),f2=()=>Nr("referral-system"),Ks=e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.storeApi}/shops/${n}/${e}`;return g.request({url:r,withToken:!1,method:"get"})},h2=()=>Ks("terms"),p2=()=>Ks("refund-policy"),m2=()=>Ks("privacy-policy"),Yu=10,sa=async({url:e,PageNumber:t})=>{var o;const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.customersApi}/v2/${r}/${e}?PageNumber=${t}&PageSize=${Yu}`,a=await g.request({url:u,withToken:!0,method:"get",typeToken:"customer"}),s=Number((o=a.headers)==null?void 0:o["x-pagination-total"]);return{list:a.data,totalCount:s}},ia=async(e,t="get",n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/orders/${u}/${e}`;return await g.request({url:a,method:t,withToken:!0,body:n,typeToken:"customer"})},g2=e=>ia("","post",e),b2=({PageNumber:e})=>sa({url:"customers/orders",PageNumber:e}),_2=e=>ia(e),x2=e=>ia(e),C2=(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v2/orders/${u}/${e}/${t}/replacement-requests`;return g.request({url:a,method:"post",withToken:!0,body:n,typeToken:"customer"})},E2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/public/${n}/images`,u=new FormData;return u.append("file",e),g.request({url:r,method:"post",withToken:!1,body:u})},y2=(e,t,n)=>ia(`${e}/${t}/replacement-requests/${n}/cancel`,"post"),T2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/${n}/subscriptions`;return await g.request({url:r,method:"post",withToken:!1,body:e})},k2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/${t}`;return await g.request({url:u,method:"get",withToken:!1})},A2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v1/${r}/subscriptions/${e}/${t}/upgrades`;return await g.request({url:u,method:"get",withToken:!1})},S2=async(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/${u}/subscriptions/${e}/${t}/cancel`;return await g.request({url:a,method:"post",withToken:!1,body:n})},I2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/change-gateway`;return await g.request({url:u,method:"post",withToken:!1,body:{gateway:t}})},N2=({PageNumber:e})=>sa({url:"customers/subscriptions",PageNumber:e}),v2=async({id:e,accessToken:t})=>await A2(e,t),w2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/order`;return await g.request({url:u,method:"post",withToken:!1,body:t})},D2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v1/public/${r}/tickets/${e}/${t}`;return await g.request({url:u,method:"get",withToken:!1})},L2=async(e,t,n,r,u,a)=>{const s=g.useApiStore.getState().apiUrls,o=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,c=`${s.slApi}/v1/public/${o}/tickets/${e}/${t}/answer`;return(await g.request({url:c,method:"post",body:{message:n,recaptcha:r,tsId:u,...a&&a.length>0&&{imageIds:a.map(h=>h.imageId)}},withToken:!1})).data},P2=({PageNumber:e})=>sa({url:"customers/tickets",PageNumber:e}),R2=({PageNumber:e})=>sa({url:"customers/balance/transactions",PageNumber:e}),M2=async(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/reviews/${u}/${t}/${n}`;return await g.request({url:a,method:"post",withToken:!1,body:e})},O2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/charges/${n}/${e}`;return await g.request({url:r,method:"get",withToken:!1})},j2=async e=>{const t=g.useApiStore.getState().apiUrls,n=e.map(s=>["names",s]),r=new URLSearchParams(n),u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${t.slApi}/v2/gateways?shopDomain=${u}&${r.toString()}`;return await g.request({url:a,method:"get",withToken:!1})},Au=new Map,sl=async e=>{const t=g.useApiStore.getState().apiUrls,r=Array.from(new Set(e)).sort().map(l=>["names",l]),u=new URLSearchParams(r),a=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,s=`${t.slApi}/v2/checkout?shopDomain=${a}&${u.toString()}`,o=`${s}`;if(Au.has(o))return Au.get(o);const c=g.request({url:s,method:"get",withToken:!1}).catch(l=>{throw Au.delete(o),l});return Au.set(o,c),c},il=async({email:e,recaptcha:t,tsId:n})=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.customersApi}/v2/${u}/auth/otp/request`;return(await g.request({url:a,body:{email:e,recaptcha:t,tsId:n},method:"post",withToken:!1})).data?{requested:!0,email:e}:{requested:!1,email:void 0}},ol=async({email:e,otp:t,recaptcha:n,tsId:r})=>{const u=g.useApiStore.getState().apiUrls,a=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,s=`${u.customersApi}/v2/${a}/auth/otp/login`,{data:o}=await g.request({url:s,method:"post",body:{email:e,otp:t,recaptcha:n,tsId:r},withToken:!1});return g.useStorefrontStore.getState().setToken(o.data),localStorage.setItem("token",o.data),{token:o.data,requested:!1}},ys=async()=>{g.useStorefrontStore.getState().setToken(""),g.useCustomerDashboardStore.getState().setDashInfo(null),localStorage.removeItem("token")},F2=Object.freeze(Object.defineProperty({__proto__:null,loginCustomer:ol,logoutCustomer:ys,requestOtp:il},Symbol.toStringTag,{value:"Module"})),B2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v2/coupons/${n}/validate`;return await g.request({url:r,method:"post",body:e,withToken:!1})},H2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.customersApi}/v2/${n}/customers/referral-system/signup`;return(await g.request({url:r,withToken:!0,method:"post",body:e,typeToken:"customer"})).data},U2=async()=>{const{data:e}=await f2();return e},V2=async e=>{const{data:t}=await H2(e);return t},$2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/discord/${n}`;return await g.request({url:r,method:"post",body:e,withToken:!1})},z2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/discord/${n}/${e.id}?customerEmail=${e.customerEmail}`;return await g.request({url:r,method:"get",withToken:!1})};async function q2(e){const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.customersApi}/v2/${n}/customers/rewards/${e.id}/claim`;return g.request({url:r,method:"post",withToken:!0,typeToken:"customer"})}const Z2=async(e,t,n,r)=>{const a=`${g.useApiStore.getState().apiUrls.slApi}/v1/vouches/${t}/${n}/${r}`;return await g.request({url:a,method:"post",withToken:!1,body:e})},cl=()=>g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,W2=async()=>{const e=g.useApiStore.getState().apiUrls,t=cl(),n=`${e.customersApi}/v2/${t}/api-key`;return g.request({url:n,method:"get",withToken:!0,typeToken:"customer"})},Y2=async()=>{const e=g.useApiStore.getState().apiUrls,t=cl(),n=`${e.customersApi}/v2/${t}/api-key/regenerate`;return g.request({url:n,method:"post",withToken:!0,typeToken:"customer"})},G2=()=>typeof document<"u"?document.documentElement.hasAttribute("translated")||document.documentElement.querySelector(".translated-ltr, .translated-rtl")!==null||document.head.querySelector('meta[name="_translator"]')!==null:!1,ll=({children:e,className:t,as:n="span",...r})=>{const[u,a]=L.useState(!1);return L.useEffect(()=>{typeof window<"u"&&a(G2())},[]),u?i.jsx(n,{className:t,...r,"data-stable-text":e,dangerouslySetInnerHTML:{__html:""}}):i.jsx(n,{className:t,...r,children:e})},X2="_statItem_fzeec_1",K2="_content_fzeec_44",Q2="_withChildren_fzeec_50",J2="_info_fzeec_56",ef="_iconWrapper_fzeec_68",tf="_text_fzeec_78",nf="_title_fzeec_84",rf="_value_fzeec_88",uf="_emptyImage_fzeec_94",af="_image_fzeec_11",sf="_imageTitle_fzeec_112",of="_emptyImageText_fzeec_122",cf="_hoverable_fzeec_147",rt={statItem:X2,content:K2,withChildren:Q2,info:J2,iconWrapper:ef,text:tf,title:nf,value:rf,emptyImage:uf,image:af,imageTitle:sf,emptyImageText:of,hoverable:cf},vt=({iconName:e,title:t,value:n,image:r,imageName:u,children:a,className:s,logo:o,customLogo:c,productSlug:l})=>{const h=g.useNavigate();return i.jsxs("div",{className:`${rt.statItem} ${s}`,children:[r&&r!=="empty"&&i.jsxs("div",{style:{position:"relative"},onClick:()=>{l&&h(`/${l}`)},children:[i.jsx("div",{style:{background:"#000000"},children:i.jsx("img",{src:r,alt:u,className:g.clx(rt.image,rt.emptyImage,{[rt.hoverable]:l})})}),i.jsx("div",{className:rt.emptyImageText,children:i.jsx("div",{className:g.clx(rt.title,rt.imageTitle),id:"h5",children:u})})]}),r==="empty"&&i.jsx("div",{style:{background:"#000000"},children:i.jsxs("div",{className:g.clx(rt.emptyImage,{[rt.hoverable]:l}),onClick:()=>{l&&h(`/${l}`)},children:[i.jsx(N.Icon,{name:"Image",width:64,height:64,fill:"var(--text-secondary)"}),i.jsx("div",{className:rt.emptyImageText,children:i.jsx("div",{className:rt.title,id:"h5",children:u||"No Product"})})]})}),i.jsxs("div",{className:`${rt.content} ${a?rt.withChildren:""}`,children:[i.jsxs("div",{className:rt.info,children:[c?i.jsx("div",{style:{color:"var(--text-action)"},children:c}):o?i.jsx("div",{className:rt.iconWrapper,children:i.jsx("img",{src:o,width:28,height:28,style:{objectFit:"contain"}})}):i.jsx(N.Icon,{name:e||"File",className:rt.iconWrapper,width:28,height:28,fill:"var(--text-action)"}),i.jsxs("div",{className:rt.text,children:[i.jsx("div",{className:rt.title,id:"h5",children:t}),i.jsx("div",{className:rt.value,id:"h5-bold",children:n})]})]}),a]})]})},lf="_card_8m277_2",df="_mobile_8m277_15",ff="_email_8m277_19",hf="_balance_8m277_25",pf="_sidebar_8m277_32",mf="_sidebarAntistock_8m277_33",gf="_navList_8m277_68",bf="_navListAntistock_8m277_86",_f="_navItem_8m277_91",xf="_antistockNavItem_8m277_92",Cf="_activeNavItem_8m277_116",Ef="_antistockActiveNavItem_8m277_121",yf="_antistockInactiveNavItem_8m277_139",Tf="_inactiveNavItem_8m277_140",kf="_logoutNavItem_8m277_150",Af="_logoutNavItemAntistock_8m277_159",Sf="_logoutNavItemContentAntistock_8m277_173",If="_iconWrapper_8m277_185",Nf="_skeleton_8m277_190",Ze={card:lf,mobile:df,email:ff,balance:hf,sidebar:pf,sidebarAntistock:mf,navList:gf,navListAntistock:bf,navItem:_f,antistockNavItem:xf,activeNavItem:Cf,antistockActiveNavItem:Ef,antistockInactiveNavItem:yf,inactiveNavItem:Tf,logoutNavItem:kf,logoutNavItemAntistock:Af,logoutNavItemContentAntistock:Sf,iconWrapper:If,skeleton:Nf},vf=({email:e,balance:t,adaptiveStyles:n})=>i.jsxs("div",{className:g.clx(Ze.card,{[Ze.mobile]:n!=="desktop"}),children:[i.jsx("div",{className:Ze.email,id:"h5",children:e}),i.jsxs("div",{className:Ze.balance,id:"md",children:["Balance: ",t]})]}),wf=()=>typeof g.Routes>"u"||!g.Routes.Home?(console.warn("Routes not available"),[]):[[g.Routes.Home,"House"],[g.Routes.Orders,"CurrencyCircleDollar"],[g.Routes.Rewards,"Medal"],[g.Routes.Balance,"Wallet"],[g.Routes.Subscriptions,"CalendarCheck"],[g.Routes.Tickets,"Question"],[g.Routes.Api,"Code"]],Df=()=>typeof g.AntistockRoutes>"u"||!g.AntistockRoutes.Home?(console.warn("AntistockRoutes not available"),[]):[[g.AntistockRoutes.Home,"House"],[g.AntistockRoutes.Orders,"CurrencyCircleDollar"],[g.AntistockRoutes.Rewards,"Medal"],[g.AntistockRoutes.Balance,"Wallet"],[g.AntistockRoutes.Tickets,"Question"],[g.AntistockRoutes.Api,"Code"]],Wi=({children:e,className:t="",onClick:n})=>{const{isAntistock:r}=g.useGeneralStore();return i.jsx("button",{type:"button",className:g.clx(r?Ze.antistockNavItem:Ze.navItem,t),onClick:n,children:e})},Lf=({adaptiveStyles:e})=>{const{route:t,setRoute:n,dashboardSettings:r}=g.useCustomerDashboardStore(),{resetPage:u}=g.usePaginationPagesStore(),{isAntistock:a}=g.useGeneralStore(),s=L.useMemo(()=>{if(a){const l=Df();return r!=null&&r.isApiPageEnabled?l:l.filter(([h])=>h!==g.AntistockRoutes.Api)}const c=wf();return r!=null&&r.isApiPageEnabled?c:c.filter(([l])=>l!==g.Routes.Api)},[a,r]),o=c=>{t!==c&&u(),n(c)};return i.jsxs("div",{className:g.clx(Ze.navList,{[Ze.mobile]:e!=="desktop",[Ze.navListAntistock]:a}),children:[s.map(([c,l])=>{const h=c===t;return i.jsxs(Wi,{onClick:()=>o(c),className:g.clx(h?a?Ze.antistockActiveNavItem:Ze.activeNavItem:a?Ze.antistockInactiveNavItem:Ze.inactiveNavItem),children:[a?null:i.jsx("div",{className:Ze.iconWrapper,children:i.jsx(N.Icon,{name:l})}),i.jsx("div",{children:c})]},c)}),i.jsx(Wi,{className:g.clx(Ze.logoutNavItem,{[Ze.logoutNavItemAntistock]:a}),onClick:()=>{a||ys()},children:a?i.jsxs("div",{className:g.clx({[Ze.logoutNavItemContentAntistock]:a}),onClick:()=>{ys()},children:[i.jsx("div",{className:Ze.iconWrapper,children:i.jsx(N.Icon,{name:"SignOut"})}),i.jsx("div",{children:"Sign Out"})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:Ze.iconWrapper,children:i.jsx(N.Icon,{name:"SignOut"})}),i.jsx("div",{children:"Sign Out"})]})})]})};var be=(e=>(e.New="NEW",e.Pending="PENDING",e.Processing="PROCESSING",e.Completed="COMPLETED",e.Cancelled="CANCELLED",e.Expired="EXPIRED",e.FullDeliveryFailure="FULL_DELIVERY_FAILURE",e.PartiallyDelivered="PARTIALLY_DELIVERED",e.PartiallyRefunded="PARTIALLY_REFUNDED",e.Refunded="REFUNDED",e.Failed="FAILED",e))(be||{}),he=(e=>(e.PENDING="PENDING",e.APPROVED="APPROVED",e.DECLINED="DECLINED",e.AUTO_APPROVED="AUTO_APPROVED",e.CANCELLED="CANCELLED",e.EXPIRED="EXPIRED",e.PROCESSING="PROCESSING",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e))(he||{}),Pe=(e=>(e.Text="TEXT",e.Serial="SERIALS",e.Ebook="EBOOK",e.Link="LINK",e.Download="DOWNLOAD",e.Discord="DISCORD",e.Telegram="TELEGRAM",e.Custom="CUSTOM",e))(Pe||{}),kn=(e=>(e.RIAL="RIAL",e.AWAITING_PAYMENT="AWAITING_PAYMENT",e.ACTIVE="ACTIVE",e.PAST_DUE="PAST_DUE",e.CANCELLED="CANCELLED",e.EXPIRED="EXPIRED",e.CHANGED_GATEWAY="CHANGED_GATEWAY",e.REPLACED="REPLACED",e))(kn||{});const fu=async e=>(await j2(e)).data,dl=async()=>{var n;const t=(await d2()).data;if(t.isEnabled){const r=(n=t==null?void 0:t.topUpSettings)==null?void 0:n.gateways;r&&fu(r)}return t},oa=async()=>{const t=(await l2()).data;return{amount:t.realBalance+t.manualBalance,currency:t.currency}};var qr=(e=>(e.ADDED="ADDED",e.REMOVED="REMOVED",e))(qr||{}),ke=(e=>(e.NotPaid="NOT_PAID",e.Pending="PENDING",e.Paid="PAID",e.Expired="EXPIRED",e.Cancelled="CANCELLED",e.Refunded="REFUNDED",e))(ke||{}),ru=(e=>(e.Balance="BALANCE",e.Product="PRODUCT",e))(ru||{}),_t=(e=>(e.Spend="SPEND_AMOUNT",e.Order="ORDER_COUNT",e.Referral="REFER_FRIEND",e.Review="LEAVE_REVIEW",e.Vouch="LEAVE_VOUCH",e))(_t||{});const Pf=async()=>(await c2()).data;/*! *****************************************************************************
|
|
1
|
+
"use strict";const g=require("./builder-DajwWRB4.cjs"),i=require("react/jsx-runtime"),L=require("react"),N=require("./ui-components-cdIfqSzy.cjs"),nl=require("./builder-components-Cy-VmxAd.cjs");require("react-dom");const rl=require("./ticket-D-hMXIqO.cjs"),ul=require("./order-DUfIq98T.cjs"),n2=require("./subscription-BU1AfEvj.cjs");function r2(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const me=r2(L);async function u2(e){const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.storeApi}/shops/${n}/general`+(e?`?password=${e}`:"");return(await g.request({method:"get",url:r,withToken:!1})).data}const a2=async()=>{const e=g.useApiStore.getState().apiUrls,t=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"flagship-theme.pages.dev":window.location.hostname,n=`${e.storeApi}/v2/shops/${t}/settings-theme`;return await g.request({url:n,withToken:!0,method:"get"})},s2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/balance/top-up/${n}`;return await g.request({url:r,method:"post",body:e,withToken:!1})},i2=async(e,t)=>{const r=`${g.useApiStore.getState().apiUrls.cashappApi}/v1/${t}/cashapp/link`;return await g.request({url:r,method:"post",body:e,withToken:!1})},Nr=async e=>{const t=g.useApiStore.getState().apiUrls;if(!localStorage.getItem("token"))throw new Error("No access token");const r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${t.customersApi}/v2/${r}/customers/${e}`;return await g.request({url:u,withToken:!0,method:"get",typeToken:"customer"})},o2=()=>Nr("dash/info"),al=()=>Nr("dash/dashboard/home"),c2=()=>Nr("rewards"),l2=()=>Nr("balance"),d2=()=>Nr("balance/top-up/settings"),f2=()=>Nr("referral-system"),Ks=e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.storeApi}/shops/${n}/${e}`;return g.request({url:r,withToken:!1,method:"get"})},h2=()=>Ks("terms"),p2=()=>Ks("refund-policy"),m2=()=>Ks("privacy-policy"),Yu=10,sa=async({url:e,PageNumber:t})=>{var o;const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.customersApi}/v2/${r}/${e}?PageNumber=${t}&PageSize=${Yu}`,a=await g.request({url:u,withToken:!0,method:"get",typeToken:"customer"}),s=Number((o=a.headers)==null?void 0:o["x-pagination-total"]);return{list:a.data,totalCount:s}},ia=async(e,t="get",n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/orders/${u}/${e}`;return await g.request({url:a,method:t,withToken:!0,body:n,typeToken:"customer"})},g2=e=>ia("","post",e),b2=({PageNumber:e})=>sa({url:"customers/orders",PageNumber:e}),_2=e=>ia(e),x2=e=>ia(e),C2=(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v2/orders/${u}/${e}/${t}/replacement-requests`;return g.request({url:a,method:"post",withToken:!0,body:n,typeToken:"customer"})},E2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/public/${n}/images`,u=new FormData;return u.append("file",e),g.request({url:r,method:"post",withToken:!1,body:u})},y2=(e,t,n)=>ia(`${e}/${t}/replacement-requests/${n}/cancel`,"post"),T2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/${n}/subscriptions`;return await g.request({url:r,method:"post",withToken:!1,body:e})},k2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/${t}`;return await g.request({url:u,method:"get",withToken:!1})},A2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v1/${r}/subscriptions/${e}/${t}/upgrades`;return await g.request({url:u,method:"get",withToken:!1})},S2=async(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/${u}/subscriptions/${e}/${t}/cancel`;return await g.request({url:a,method:"post",withToken:!1,body:n})},I2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/change-gateway`;return await g.request({url:u,method:"post",withToken:!1,body:{gateway:t}})},N2=({PageNumber:e})=>sa({url:"customers/subscriptions",PageNumber:e}),v2=async({id:e,accessToken:t})=>await A2(e,t),w2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/order`;return await g.request({url:u,method:"post",withToken:!1,body:t})},D2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v1/public/${r}/tickets/${e}/${t}`;return await g.request({url:u,method:"get",withToken:!1})},L2=async(e,t,n,r,u,a)=>{const s=g.useApiStore.getState().apiUrls,o=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,c=`${s.slApi}/v1/public/${o}/tickets/${e}/${t}/answer`;return(await g.request({url:c,method:"post",body:{message:n,recaptcha:r,tsId:u,...a&&a.length>0&&{imageIds:a.map(h=>h.imageId)}},withToken:!1})).data},P2=({PageNumber:e})=>sa({url:"customers/tickets",PageNumber:e}),R2=({PageNumber:e})=>sa({url:"customers/balance/transactions",PageNumber:e}),M2=async(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/reviews/${u}/${t}/${n}`;return await g.request({url:a,method:"post",withToken:!1,body:e})},O2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/charges/${n}/${e}`;return await g.request({url:r,method:"get",withToken:!1})},j2=async e=>{const t=g.useApiStore.getState().apiUrls,n=e.map(s=>["names",s]),r=new URLSearchParams(n),u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${t.slApi}/v2/gateways?shopDomain=${u}&${r.toString()}`;return await g.request({url:a,method:"get",withToken:!1})},Au=new Map,sl=async e=>{const t=g.useApiStore.getState().apiUrls,r=Array.from(new Set(e)).sort().map(l=>["names",l]),u=new URLSearchParams(r),a=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,s=`${t.slApi}/v2/checkout?shopDomain=${a}&${u.toString()}`,o=`${s}`;if(Au.has(o))return Au.get(o);const c=g.request({url:s,method:"get",withToken:!1}).catch(l=>{throw Au.delete(o),l});return Au.set(o,c),c},il=async({email:e,recaptcha:t,tsId:n})=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.customersApi}/v2/${u}/auth/otp/request`;return(await g.request({url:a,body:{email:e,recaptcha:t,tsId:n},method:"post",withToken:!1})).data?{requested:!0,email:e}:{requested:!1,email:void 0}},ol=async({email:e,otp:t,recaptcha:n,tsId:r})=>{const u=g.useApiStore.getState().apiUrls,a=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,s=`${u.customersApi}/v2/${a}/auth/otp/login`,{data:o}=await g.request({url:s,method:"post",body:{email:e,otp:t,recaptcha:n,tsId:r},withToken:!1});return g.useStorefrontStore.getState().setToken(o.data),localStorage.setItem("token",o.data),{token:o.data,requested:!1}},ys=async()=>{g.useStorefrontStore.getState().setToken(""),g.useCustomerDashboardStore.getState().setDashInfo(null),localStorage.removeItem("token")},F2=Object.freeze(Object.defineProperty({__proto__:null,loginCustomer:ol,logoutCustomer:ys,requestOtp:il},Symbol.toStringTag,{value:"Module"})),B2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v2/coupons/${n}/validate`;return await g.request({url:r,method:"post",body:e,withToken:!1})},H2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.customersApi}/v2/${n}/customers/referral-system/signup`;return(await g.request({url:r,withToken:!0,method:"post",body:e,typeToken:"customer"})).data},U2=async()=>{const{data:e}=await f2();return e},V2=async e=>{const{data:t}=await H2(e);return t},$2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/discord/${n}`;return await g.request({url:r,method:"post",body:e,withToken:!1})},z2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/discord/${n}/${e.id}?customerEmail=${e.customerEmail}`;return await g.request({url:r,method:"get",withToken:!1})};async function q2(e){const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.customersApi}/v2/${n}/customers/rewards/${e.id}/claim`;return g.request({url:r,method:"post",withToken:!0,typeToken:"customer"})}const Z2=async(e,t,n,r)=>{const a=`${g.useApiStore.getState().apiUrls.slApi}/v1/vouches/${t}/${n}/${r}`;return await g.request({url:a,method:"post",withToken:!1,body:e})},cl=()=>g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,W2=async()=>{const e=g.useApiStore.getState().apiUrls,t=cl(),n=`${e.customersApi}/v2/${t}/api-key`;return g.request({url:n,method:"get",withToken:!0,typeToken:"customer"})},Y2=async()=>{const e=g.useApiStore.getState().apiUrls,t=cl(),n=`${e.customersApi}/v2/${t}/api-key/regenerate`;return g.request({url:n,method:"post",withToken:!0,typeToken:"customer"})},G2=()=>typeof document<"u"?document.documentElement.hasAttribute("translated")||document.documentElement.querySelector(".translated-ltr, .translated-rtl")!==null||document.head.querySelector('meta[name="_translator"]')!==null:!1,ll=({children:e,className:t,as:n="span",...r})=>{const[u,a]=L.useState(!1);return L.useEffect(()=>{typeof window<"u"&&a(G2())},[]),u?i.jsx(n,{className:t,...r,"data-stable-text":e,dangerouslySetInnerHTML:{__html:""}}):i.jsx(n,{className:t,...r,children:e})},X2="_statItem_fzeec_1",K2="_content_fzeec_44",Q2="_withChildren_fzeec_50",J2="_info_fzeec_56",ef="_iconWrapper_fzeec_68",tf="_text_fzeec_78",nf="_title_fzeec_84",rf="_value_fzeec_88",uf="_emptyImage_fzeec_94",af="_image_fzeec_11",sf="_imageTitle_fzeec_112",of="_emptyImageText_fzeec_122",cf="_hoverable_fzeec_147",rt={statItem:X2,content:K2,withChildren:Q2,info:J2,iconWrapper:ef,text:tf,title:nf,value:rf,emptyImage:uf,image:af,imageTitle:sf,emptyImageText:of,hoverable:cf},vt=({iconName:e,title:t,value:n,image:r,imageName:u,children:a,className:s,logo:o,customLogo:c,productSlug:l})=>{const h=g.useNavigate();return i.jsxs("div",{className:`${rt.statItem} ${s}`,children:[r&&r!=="empty"&&i.jsxs("div",{style:{position:"relative"},onClick:()=>{l&&h(`/${l}`)},children:[i.jsx("div",{style:{background:"#000000"},children:i.jsx("img",{src:r,alt:u,className:g.clx(rt.image,rt.emptyImage,{[rt.hoverable]:l})})}),i.jsx("div",{className:rt.emptyImageText,children:i.jsx("div",{className:g.clx(rt.title,rt.imageTitle),id:"h5",children:u})})]}),r==="empty"&&i.jsx("div",{style:{background:"#000000"},children:i.jsxs("div",{className:g.clx(rt.emptyImage,{[rt.hoverable]:l}),onClick:()=>{l&&h(`/${l}`)},children:[i.jsx(N.Icon,{name:"Image",width:64,height:64,fill:"var(--text-secondary)"}),i.jsx("div",{className:rt.emptyImageText,children:i.jsx("div",{className:rt.title,id:"h5",children:u||"No Product"})})]})}),i.jsxs("div",{className:`${rt.content} ${a?rt.withChildren:""}`,children:[i.jsxs("div",{className:rt.info,children:[c?i.jsx("div",{style:{color:"var(--text-action)"},children:c}):o?i.jsx("div",{className:rt.iconWrapper,children:i.jsx("img",{src:o,width:28,height:28,style:{objectFit:"contain"}})}):i.jsx(N.Icon,{name:e||"File",className:rt.iconWrapper,width:28,height:28,fill:"var(--text-action)"}),i.jsxs("div",{className:rt.text,children:[i.jsx("div",{className:rt.title,id:"h5",children:t}),i.jsx("div",{className:rt.value,id:"h5-bold",children:n})]})]}),a]})]})},lf="_card_8m277_2",df="_mobile_8m277_15",ff="_email_8m277_19",hf="_balance_8m277_25",pf="_sidebar_8m277_32",mf="_sidebarAntistock_8m277_33",gf="_navList_8m277_68",bf="_navListAntistock_8m277_86",_f="_navItem_8m277_91",xf="_antistockNavItem_8m277_92",Cf="_activeNavItem_8m277_116",Ef="_antistockActiveNavItem_8m277_121",yf="_antistockInactiveNavItem_8m277_139",Tf="_inactiveNavItem_8m277_140",kf="_logoutNavItem_8m277_150",Af="_logoutNavItemAntistock_8m277_159",Sf="_logoutNavItemContentAntistock_8m277_173",If="_iconWrapper_8m277_185",Nf="_skeleton_8m277_190",Ze={card:lf,mobile:df,email:ff,balance:hf,sidebar:pf,sidebarAntistock:mf,navList:gf,navListAntistock:bf,navItem:_f,antistockNavItem:xf,activeNavItem:Cf,antistockActiveNavItem:Ef,antistockInactiveNavItem:yf,inactiveNavItem:Tf,logoutNavItem:kf,logoutNavItemAntistock:Af,logoutNavItemContentAntistock:Sf,iconWrapper:If,skeleton:Nf},vf=({email:e,balance:t,adaptiveStyles:n})=>i.jsxs("div",{className:g.clx(Ze.card,{[Ze.mobile]:n!=="desktop"}),children:[i.jsx("div",{className:Ze.email,id:"h5",children:e}),i.jsxs("div",{className:Ze.balance,id:"md",children:["Balance: ",t]})]}),wf=()=>typeof g.Routes>"u"||!g.Routes.Home?(console.warn("Routes not available"),[]):[[g.Routes.Home,"House"],[g.Routes.Orders,"CurrencyCircleDollar"],[g.Routes.Rewards,"Medal"],[g.Routes.Balance,"Wallet"],[g.Routes.Subscriptions,"CalendarCheck"],[g.Routes.Tickets,"Question"],[g.Routes.Api,"Code"]],Df=()=>typeof g.AntistockRoutes>"u"||!g.AntistockRoutes.Home?(console.warn("AntistockRoutes not available"),[]):[[g.AntistockRoutes.Home,"House"],[g.AntistockRoutes.Orders,"CurrencyCircleDollar"],[g.AntistockRoutes.Rewards,"Medal"],[g.AntistockRoutes.Balance,"Wallet"],[g.AntistockRoutes.Tickets,"Question"],[g.AntistockRoutes.Api,"Code"]],Wi=({children:e,className:t="",onClick:n})=>{const{isAntistock:r}=g.useGeneralStore();return i.jsx("button",{type:"button",className:g.clx(r?Ze.antistockNavItem:Ze.navItem,t),onClick:n,children:e})},Lf=({adaptiveStyles:e})=>{const{route:t,setRoute:n,dashboardSettings:r}=g.useCustomerDashboardStore(),{resetPage:u}=g.usePaginationPagesStore(),{isAntistock:a}=g.useGeneralStore(),s=L.useMemo(()=>{if(a){const l=Df();return r!=null&&r.isApiPageEnabled?l:l.filter(([h])=>h!==g.AntistockRoutes.Api)}const c=wf();return r!=null&&r.isApiPageEnabled?c:c.filter(([l])=>l!==g.Routes.Api)},[a,r]),o=c=>{t!==c&&u(),n(c)};return i.jsxs("div",{className:g.clx(Ze.navList,{[Ze.mobile]:e!=="desktop",[Ze.navListAntistock]:a}),children:[s.map(([c,l])=>{const h=c===t;return i.jsxs(Wi,{onClick:()=>o(c),className:g.clx(h?a?Ze.antistockActiveNavItem:Ze.activeNavItem:a?Ze.antistockInactiveNavItem:Ze.inactiveNavItem),children:[a?null:i.jsx("div",{className:Ze.iconWrapper,children:i.jsx(N.Icon,{name:l})}),i.jsx("div",{children:c})]},c)}),i.jsx(Wi,{className:g.clx(Ze.logoutNavItem,{[Ze.logoutNavItemAntistock]:a}),onClick:()=>{a||ys()},children:a?i.jsxs("div",{className:g.clx({[Ze.logoutNavItemContentAntistock]:a}),onClick:()=>{ys()},children:[i.jsx("div",{className:Ze.iconWrapper,children:i.jsx(N.Icon,{name:"SignOut"})}),i.jsx("div",{children:"Sign Out"})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:Ze.iconWrapper,children:i.jsx(N.Icon,{name:"SignOut"})}),i.jsx("div",{children:"Sign Out"})]})})]})};var be=(e=>(e.New="NEW",e.Pending="PENDING",e.Processing="PROCESSING",e.Completed="COMPLETED",e.Cancelled="CANCELLED",e.Expired="EXPIRED",e.FullDeliveryFailure="FULL_DELIVERY_FAILURE",e.PartiallyDelivered="PARTIALLY_DELIVERED",e.PartiallyRefunded="PARTIALLY_REFUNDED",e.Refunded="REFUNDED",e.Failed="FAILED",e))(be||{}),he=(e=>(e.PENDING="PENDING",e.APPROVED="APPROVED",e.DECLINED="DECLINED",e.AUTO_APPROVED="AUTO_APPROVED",e.CANCELLED="CANCELLED",e.EXPIRED="EXPIRED",e.PROCESSING="PROCESSING",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e))(he||{}),Pe=(e=>(e.Text="TEXT",e.Serial="SERIALS",e.Ebook="EBOOK",e.Link="LINK",e.Download="DOWNLOAD",e.Discord="DISCORD",e.Telegram="TELEGRAM",e.Custom="CUSTOM",e))(Pe||{}),kn=(e=>(e.RIAL="RIAL",e.AWAITING_PAYMENT="AWAITING_PAYMENT",e.ACTIVE="ACTIVE",e.PAST_DUE="PAST_DUE",e.CANCELLED="CANCELLED",e.EXPIRED="EXPIRED",e.CHANGED_GATEWAY="CHANGED_GATEWAY",e.REPLACED="REPLACED",e))(kn||{});const fu=async e=>(await j2(e)).data,dl=async()=>{var n;const t=(await d2()).data;if(t.isEnabled){const r=(n=t==null?void 0:t.topUpSettings)==null?void 0:n.gateways;r&&fu(r)}return t},oa=async()=>{const t=(await l2()).data;return{amount:t.realBalance+t.manualBalance,currency:t.currency}};var qr=(e=>(e.ADDED="ADDED",e.REMOVED="REMOVED",e))(qr||{}),Ae=(e=>(e.NotPaid="NOT_PAID",e.Pending="PENDING",e.Paid="PAID",e.Expired="EXPIRED",e.Cancelled="CANCELLED",e.Refunded="REFUNDED",e))(Ae||{}),ru=(e=>(e.Balance="BALANCE",e.Product="PRODUCT",e))(ru||{}),_t=(e=>(e.Spend="SPEND_AMOUNT",e.Order="ORDER_COUNT",e.Referral="REFER_FRIEND",e.Review="LEAVE_REVIEW",e.Vouch="LEAVE_VOUCH",e))(_t||{});const Pf=async()=>(await c2()).data;/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
4
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -11,7 +11,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
11
11
|
|
|
12
12
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
13
|
and limitations under the License.
|
|
14
|
-
***************************************************************************** */var $n=function(){return $n=Object.assign||function(t){for(var n,r=1,u=arguments.length;r<u;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},$n.apply(this,arguments)};function Rf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]]);return n}var Mf=function(){return Math.random().toString(36).substring(6)},Of=function(e){var t=e.animate,n=t===void 0?!0:t,r=e.backgroundColor,u=r===void 0?"#f5f6f7":r,a=e.backgroundOpacity,s=a===void 0?1:a,o=e.baseUrl,c=o===void 0?"":o,l=e.children,h=e.foregroundColor,f=h===void 0?"#eee":h,m=e.foregroundOpacity,p=m===void 0?1:m,b=e.gradientRatio,_=b===void 0?2:b,E=e.uniqueKey,x=e.rtl,k=x===void 0?!1:x,y=e.speed,D=y===void 0?1.2:y,S=e.style,I=S===void 0?{}:S,M=e.title,H=M===void 0?"Loading...":M,U=e.beforeMask,P=U===void 0?null:U,B=Rf(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","rtl","speed","style","title","beforeMask"]),O=E||Mf(),X="".concat(O,"-diff"),Y="".concat(O,"-animated-diff"),K="".concat(O,"-aria"),ue=k?{transform:"scaleX(-1)"}:null,ae="".concat(D,"s"),se="".concat(_*-1," 0"),_e="".concat(_," 0");return L.createElement("svg",$n({"aria-labelledby":K,role:"img",style:$n($n({},I),ue)},B),H?L.createElement("title",{id:K},H):null,P&&L.isValidElement(P)?P:null,L.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(c,"#").concat(X,")"),style:{fill:"url(".concat(c,"#").concat(Y,")")}}),L.createElement("defs",null,L.createElement("clipPath",{id:X},l),L.createElement("linearGradient",{id:Y,gradientTransform:"translate(".concat(se,")")},L.createElement("stop",{offset:"0%",stopColor:u,stopOpacity:s}),L.createElement("stop",{offset:"50%",stopColor:f,stopOpacity:p}),L.createElement("stop",{offset:"100%",stopColor:u,stopOpacity:s}),n&&L.createElement("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"".concat(se,"; 0 0; ").concat(_e),dur:ae,repeatCount:"indefinite"}))))},ir=function(e){return e.children?L.createElement(Of,$n({},e)):L.createElement(jf,$n({},e))},jf=function(e){return L.createElement(ir,$n({viewBox:"0 0 476 124"},e),L.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),L.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),L.createElement("circle",{cx:"20",cy:"20",r:"20"}))};const fl=({adaptiveStyles:e})=>{const{dashInfo:t,balance:n,setBalance:r,setDashInfo:u,setDashboardSettings:a}=g.useCustomerDashboardStore(),{isAntistock:s}=g.useGeneralStore();return L.useEffect(()=>{(async()=>{var c;try{const[l,h,f]=await Promise.all([o2(),al(),oa()]);u(l.data),r(f);const m=(c=h==null?void 0:h.data)==null?void 0:c.dashboardSettings;m&&a(m)}catch{}})()},[]),i.jsxs("div",{className:g.clx(s?Ze.sidebarAntistock:Ze.sidebar,{[Ze.mobile]:e!=="desktop"}),style:{paddingTop:s?"48px":void 0},children:[!t||!n?i.jsx(i.Fragment,{children:s?i.jsx(N.Loader,{}):i.jsx(Ff,{adaptiveStyles:e})}):!s&&i.jsx(vf,{email:t.email,balance:g.formatPrice(n),adaptiveStyles:e}),i.jsx(Lf,{adaptiveStyles:e})]})},Ff=({adaptiveStyles:e})=>i.jsx(ir,{speed:2,width:320,height:120,viewBox:"0 0 320 120",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:g.clx(Ze.skeleton,{[Ze.mobile]:e!=="desktop"}),style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"280",height:"100"})}),Bf="_balanceContainer_lnfgz_1",Hf="_headerTitle_lnfgz_12",Uf="_balanceHeader_lnfgz_16",Vf="_balanceAmount_lnfgz_23",$f="_balanceAmountTitle_lnfgz_36",zf="_balanceAmountValue_lnfgz_41",qf="_transactionDate_lnfgz_69",Zf="_transactionItem_lnfgz_76",Wf="_transactionDetails_lnfgz_84",Yf="_iconWrapper_lnfgz_89",Gf="_transactionInfo_lnfgz_100",Xf="_transactionTitle_lnfgz_105",Kf="_transactionId_lnfgz_109",Qf="_transactionAmount_lnfgz_115",Jf="_added_lnfgz_120",eh="_removed_lnfgz_123",th="_noItemsBlock_lnfgz_127",nh="_pagination_lnfgz_136",rh="_antistock_lnfgz_142",uh="_modal_lnfgz_153",ah="_header_lnfgz_12",sh="_form_lnfgz_165",ih="_label_lnfgz_171",oh="_bonusBlock_lnfgz_184",ch="_gatewayList_lnfgz_198",lh="_gatewayButton_lnfgz_205",dh="_selected_lnfgz_215",fh="_gatewayName_lnfgz_218",hh="_error_lnfgz_221",ph="_submitButton_lnfgz_226",mh="_addBalanceButton_lnfgz_248",gh="_gatewayIcon_lnfgz_267",bh="_loaderContainer_lnfgz_291",_h="_transactionsContainer_lnfgz_299",xh="_transactionsHeader_lnfgz_8",Ch="_transactionsContent_lnfgz_313",Ae={balanceContainer:Bf,headerTitle:Hf,balanceHeader:Uf,balanceAmount:Vf,balanceAmountTitle:$f,balanceAmountValue:zf,transactionDate:qf,transactionItem:Zf,transactionDetails:Wf,iconWrapper:Yf,transactionInfo:Gf,transactionTitle:Xf,transactionId:Kf,transactionAmount:Qf,added:Jf,removed:eh,noItemsBlock:th,pagination:nh,antistock:rh,modal:uh,header:ah,form:sh,label:ih,bonusBlock:oh,gatewayList:ch,gatewayButton:lh,selected:dh,gatewayName:fh,error:hh,submitButton:ph,addBalanceButton:mh,gatewayIcon:gh,loaderContainer:bh,transactionsContainer:_h,transactionsHeader:xh,transactionsContent:Ch},Eh=async(e=1)=>await R2({PageNumber:e}),yh=async({price:e,gateway:t,customerEmail:n})=>await s2({customerEmail:n,price:e,gateway:t,tsId:g.useGetTsId()}),Yi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABcCAYAAAD50zLWAAAVdklEQVR4nM2da4hs2VXHf2ufU1XdffvOnfdN5pmZTGYm88xjMuRhkBAUgyIoBNHgp3wV/CAoYgQ/KQQi+SAiShQ1QhCNCuoXjYqIiZiJ7zFGY5QQNWHIa3K7u6rOXn8/7L3Po+pUdfWde/veBaer6jz22Xvt9V5r7zZ770coYGaA4xbac0jGlQV87VjhSoOkdwMfIthTQAAHMM4HlD+XwEvA14HP5eNTwCeAK8AMOFEwuGVfNg3Y3oQwrc0BKTVjDm7IzLT6IgDlUSW8jEN9SoeN9DLDhYyHEB8B7gVCHtB5Ia8PE+DVwGXg8dwXgAj8JfBrwF8hfYmT5VJeA5hjUBshI8QD2Cvsfth6SkoocpHn6D3AgzIqOmq4nqCVYxUCaQLLtQp4G/DrwL8Av8rCX8PRXHp5bv7yXH5lIS1dSowjgtEeVwEDBBbSHgzABa5CaU8BCzLfrgz0WsNZ2yxInuXfU+CHkD5H5KPM/QmunMDREh3NsWWUuTAzZJbYdASJ29gXRimw97BIVOiOJeQ+SjfrcGPYd1doTChxkd6H+8dZ+Ps5Wk50ZYG/PEdXTsBFHQI2gsSww/C2IhBIZOlSps6nzazpXz37uM4M/XdY7zitD5PeMxF4LfCLuD7AUuhkYbqyCH48R9FbBPaROMKRazCKwCAwV2pAwqIj6U7ggozpyPPXgxJLm32KH+3uyDPdd2GZuYWogJ/G9Rs03MIyGkdL4tGJxRhxerIpGLLTkbiGQEndQxI0QhEz8VqSXFGSGwTZuSqSTUgsfRgTK0OKLSpXeh/Sb+HaY9GIkwU6mhvu68+cAttZWEDjhRqfB4KkIBtovuspB7cNpn9+9Xr7OysBA8wwTMiEIb0L168wX0w5WVQcz9F8YSanp/RPHVvYRKKFfYMrI9EekNTXSgaYrif6doNNPWiRn6F/DhP75vpeXD9C49Ear1k0KIkrAO0i4gNs5nMD3N1wF/BMunV477gNf1PCGKIPTPpxi/4E7tGWEYtJCkqyVqlsgZaFNwrLZAcGEgLX4CagwKuHJO8vm+vnLUpEhyYmx+EUxBXYqkSUbEAz16tx3X1te39TgHCh6N+pJr7Loot5Q/Ad7JcMLQILxgeYd4EbEJ4ot12ty3OzgplJyVT7CUWv5Y430fAiB7dDYBvrAkFI0hMUU2Lt/o6IdyX7mwSSmhUN4JLeGqIusYyiicXzKrBxYJ0MtHV5FhJ5A9xDsEVqanhTUiIBsyp/7obEIip2sfavB1gym4ut0ij6ocf4HUiVOTiGpFVTaTA4mVGDZ6QYJAMZooMLP15AdBH0dnPZqj1rSvgfIi1gBlLc2HlJKbik0rPrSbmrcY8OzMyEB4Qb7hyfvLvam34MsJh7NsLFBkghXavXLyWEyCNEgVSTojC1mSm3Z13nhnrIe7gYM3GKfYnHNB1l8mTnotHbSTOzzKcBk0mYgj1Ps9yXpougXgxqrJ0s4uqWJYtyKP5fzAOFS8DFkTba5lcM7O6GEvm1vnMeQUuIC8wTpRc8nwcCh5ItWD2bSlalLobwkJaLKJ95RxyWwnmhZelBE4kCx+SWWgS+iSHvbnDh0guDul/D5hLbEpcwP4JmjmIDvhwZ2XmAYVTEuIftHWB17UzqfZp4UeZftRBMdZC5WuJqNXYbKlhlYehMl2RAA7yezT5zQZclxydmZZJYZQ0nMcLyBBZH0CzSBJmvtXZ+IGx5ArGRTyaYHUi33zKzO2+pONwH96iFwzJLxGJg95Rfhxj1RuyeWNiFpdzDepgIVJBFb+hrrl7fvjSHlupihzyFdHC+hyxH3Jsl4ejI7BvfND1w+Wd0352Pc9uFhr0JXNiDvUkKb4VO3BU3r4fAgjy1Wjhj+s09xLWIzPJqwKktZkdsRVlICio2aYL6ExaUxMh5H5D6Qg69L+YVd178YWaTFzStf5a9ibgwgYv7sD/FqgBVaJEo64KVRcqnBIHLiG64YWplYB9PBpgbhWXXhKh67KnQdVjEId7NEvUFGwavrvdBtjZyuLWaTYIqg0k1RU2N8ZMczP6L/embOJjBwQzNJhDMqILJMIJZXwYaEuag6AGpxnWnpDtGrd2EkOBAIuSClKH6SHorJGQWymufr9LUhNBv85xARatiwppvXIFX3QZghFZrPIjx50zD+2D2hyQSg+NFQqQXJaLMQsJaO20Zl0gPt3nhlbebi86OTh7eZhZOXNqitiCqIE+np2auOXgx5mVCKXT3yAMZF1XBiZAOQB9nWv0gzH4n9VvGydIwhbqN1RaR5HmkLiE9C6MGcSK/9EA6YRWseh8KLVal2FJfQnjPKrLu2rlBLguQ5f5Ma3jVHWlCW2tPpPR7MCz+MtPqX2H2YmviLZrB1Ge14Ebj2TnmyT7yTjN0N6EgkKO8Wq7HeUtnShT9PI8ycDPs9otw6RBCVU6Cl4l1IbsVmj9iEu4rMpG9iUJf7ljBgrtwVeZ6vB1nTxF0Y49bgwHZvO88EC9mi2gZuj+Ya02F7eSMHH1YNPhr74e6GloH/XZwkN2LxY8yrTwhcNpSYMltiJIPkG4BHtlk13XgvWvV4IqyeIDsgcRmnc2HjW++djVwmgnT7+fD9wGhtWiKGUdx3yQHr5A9B837mVbiwkyDnGvxUPKD9wJrUWgfGeMYkgv1hTJHEuYRtDk6cu6Q5Bh68mGYzTrq9B6VKjunJfwC+xB+DvxeJtW06FFIiEvxluTCXQamuyRWwDeycjJTI8QG+SkUeB4wcAfAZlN47MEOcd4X+mXyQ3pKISblyl2I94LPS4laMobMRHSCI8SzpJKITHWDvP0I+CAGmNhXqbcuiIvkwrWzfH42n7Vx0b75ZLBYorc+AWHSu7u4euVh652nxkwQhFXfQwqotko7a2GZpEPgjcOWXgHIoZn3lEg4F6M5+aqBSAreyugozCo43Ie7Lyd/d0V+j1StqB/AB96CwtMDLdyG2KVvAY+sduaqwXMQ4dyhEz8pxhkBg7qGxRKeegwOL6wjL4wrm7bRBBeAbwut8JKlKKvkSrx4Pz0j46y5i85+zOzb/jxPr0M4SmVqRucyLpbYG5+kevCB9ZrA5JGd3nA6vr115UwJSeYyXI8J7mG70Nv+hk2Td06ib0B5lt9dvj/8APWzjxPL70IcYSPyNqH0zW0wQZLMRYjIV9j3FYPHITuoypGa6+e+DQOeiR0lYfdcZvLON6c3h96Etu7bKPT1RP/z9i6YIKFGeBOR9HqwE7py2VcAsYyo1xdWznHdlIokQl1h0yncckh4x1uIFtY55OxzacBtoTxsLqzJ9pzr7ebaK3eGqyQUa+0q76RGMVK95/+eirwtQb1yR2lj5ZIEOonYpYvU73gLmtVt4aT32Xfzi/ug1Wt1icIkLZVjdoRH11sOhIyInfCZcwdWv5xTpDnL1feLzaDukvHrcnMFSUVOa/V69rRseA4M7riEP3I//tgjaH+G5svM3jspi9XOtF57/v21OgfzJFcSEi4z52GSAinzqaCz57/NDJZLWCzARQiBaAAVhIDldRptsnnDgERokZe6M/R8Ur6l90AVksY9PIS3PYvdfRdIxPmiQ8UZhtF2Y11SvlRn28+IYI2waI8JTVtpOcJetmI7jkHL9qHG9qaoJNJbUVi0pLdd3BQ665DXk/lZKbR9MBJVVxXccSs8+hDh/lfDbC9xWKH4axPxKd34z7p/Rk1E7k+1aF7F3hlsuHZwX3kptR867yM5BMKKlZS9g8HQVn60ZDAoF+iZH3sT7J674aH7CK+6C59MUrVpswTrAhr08rxtScvpAY412Zc/P9PlRFzKacwncibeBkSwUmWwCxigaZ0UVI+KEvL6psZG3k3eUW/AFkIXRQ417E0ID94DD92H3XYrqgMel6hZjLhndF7GtYFPdBSYfGCX9FiRKP25vhqQhC1jmwpURlwIgVBXSDWxWWzkKpEoxjyivRkcHqBLh3DxAtqfwWxGdfkOONhP9wfHi789YFd1SCvn27zMmXyFvi32ZeCTdZEl2ZA2wetknUOzqe5lJwhCj74O7rkN3XUr7M9QCChk5vWYtXovW7feSBYn6fsAEYC3Y+py2eW5nsDsoeDMMlAbPv8AOKmBKdHnil546hmS9TtaP72K0L4wH4WnH0qJabPkzHvOt1ihghIdWZmk5Crka/2T+f5c/FTNZrg7UkClvdMM9LNQ37risfQyfh+oandvcKBxgOcwm5If2UR3u1ClzAl3X0K3Xchte2cUued0Zo9a1jq+8eWd8W1GE5sebWxC3sgE70KJ62MsweYvEP1PidFrJG/LOaS7y9ty1j593fCuEhPdeH1SDSO80P324sifPo4hrNh8q+3vIm52ZePV+1wGBFwfpIkNTbSaXKNH9AA8SUireWRrBuTOUJaQcjAbIkgaRjyuiUl2rmDAf+P+SzZvqpQXLusjXBG355F2Wn0kiaBSF1RIdeXBi3sdWxVKSX7jNR3VOUEE5hb9+20ZjUUDi4aAZL0U3huLV5X+DqT3ADbJQDPr0h2Heyu5YFZk1Csc0vWH/rgnwIdp/DM6WaL5Ulo2BCJF/u0j7gcKrwNb/FMNK+wLQj0buUwqmJ62JQM3MxJ79hEy8UWi/xTzZcXJApooXAq5BgZcr6FbpAw7DG2bJg4Hs4TE8Qd3HcT1hF3liANflvRumugsGrNlXg7mUjBXShyI++yMeyH0KXA1S6nDHE7chqyeWXdOIIZvTd/NRLBuaXYHBpyY+D5cnyf6RPNlVPRSpW+pUjAKc3sXUBktZTXWmQgbsdD6s+qxL6BbD67RmK8JbJ6qfihsKPPL3jTfreh/w8lCfPO4oYn08EKt6ITGcenh8mRuprJUln723hpJgbQWv65lKOnM3dlyLvuxg/PFOv2iie9SEz/PycJ4+QTmS6wZMmmoFhGWAniqlHHI8qYq6rzQjb1bUSap1ZBtwBuucbXyvR8M6JvxS8o6DVfA9Ulc71ETP8/xAl4+MY4Xa8gDqLVsTNLUzF4jiGYW1MbJtlNMia60oalCcbM6KZC+419uvDGwaSAGNEhTUk3Q14EPIn2I6A3HC7PjBTpeyFY9ngw1TQxg9wB7yYZzARY0vtRjFwj7s/HSlzHXrY/46wenOO4I15+Y9KM0/m800TheoKO5egqju7vXZo0bBs9gJrVefVhnyy29KtSX6qAFB9Otz50jlClbZd0OXH+B68Mm/bGW0ZgvjeOF2aLJy14Hd6+KBKtJvP+81hvf6gMX9oWseft5kj4CW993RZG0imXbW14BDGOAq379/wG/Z+J3JX3CJDhZwnwpjhdGEyXXNuS15+pMaa8r9kcpiNTwoVMVycCornsGdFsNBW1pRQlHbWkSsBwHahd5txVWu0CZqNSxrwB/b+KvgT8DPgMcAXssGnSyhJMlNl/CMp5pSuu8O8WzSGfagKP/Buvhpaoq4h0XSWtAjG45l60wwErsLp8d+S7gJVy/KXiRqCtmNpENtt8L6YUYaXO0b5nZy8CxuT4bXF+16G6NoyZa3lzCFP2kOTpOzDFObVsCiglqMzuUdG9bpdo9WHT29g3KbJguVhWwqkSH+xdG4naFtbcrK5l4j1wvWHRTimESzBpJVe6nSQPajMrvVHS88W71QXRl37+tjthCOafSVC24LDgoBged0L0qyWT7U0TCuq9WP63dPN7FdkDpuY9Z9BeYLyudLN2iR1zmUshGKFBKE1Zal2jjne1Obu31Actdbe6nBt5gZutLz4ewhtDRhDvgh7M2T9Lah9taDaPz33Oy9aIvmpqTpXOyMCVq6pfjpQfWF0OXC628TWkY05gcvdrEWS3pHTDYkdJyg5IUGKERM2sxmr73NPKFvS6Pexrkwvd2AbO11NepGulFxRhtGYOWMdVw5yRiKwTUCvB+Xzum6l1TpsLN9Thng5q0B+kqSIU1VmBQ1sE6n+sV2IBWEJO1ryRDeglR4x7JRu2KhUDa/yD1ude/rfLrqjyEEajN7OEd2hudp9X6FDNrZeCOkGYpU15RBD2FcGTiUynd0LWazZkyf63EvBH71tTAQ0BDt6Pvqgpf61WLuBX5JsCnNRZMreyTTt3taIMWPDHxBaWUgxTdwtC3NDOTnypoz/zeM0Ews78zs0XeIs6tA5XozOqRe5/zQ5I3S5yIHrwdaiQiaUGNw1Vs0pjfUwGflbRU3sO1XxtoG5Ot5wu1mb0V+AHgnSQqnJCUyqhmXs2DSHFBHSbhYC/4wfQNBHuy2xAIbTGIBggYKV6qgX+nLfzscv39LWYG65BH4HqjuY4TBPx2PvrW/5hv3J7qSmpnzsEUv3RwwK0HHwSezLfpVEsyiwGt6CMZaRmp8bcaGrrrrotGrZJzg9ruPIT1SbTesW2Cpbo2btkXt104Yn/6zMi6i53Hl220trTJ0T8V1kXj83Fqbc51hlr7o6nHHXsUUury9kPj0oGQnk610OTahrPRRrc8Nvm0Jv4n7aKeTRfvjOKbBWrSerm0DqtEPzrwzW5Yj8OntQh2iahLmEXcdyllHXgOWSm1ml/Sf+B+hWU0i+0ucjcd1Jj115+uy7zTZty9JObfnmXaWSjPiiun/ruSo/+PWkasiXjTrbMbpA5uAqgZbne5Zoz2ZfRg+RR0OlqCZXyEUle46yC7+sCC9MIBUdIXLDoqkRMGrl7bPV8/d65Qm1UaMSGAgijT6rWWUMzMDvbSfe7PvSLKGCK9Al7IKyxT51LVWMsjg9rpGwg7FK/AmmQsECzt5lOFCWYP0FHSWaCThcMS/C92d1iKCVi3fKJUh53juu1RaDfiNnVHH7axh5mlAvIqHJL+08MZh7PWeNEUc5IR3fkxecOvPsK85YSzvfVaQruYYVMnxs4PWGdSGVW4Hbi8gfo2TIFWv3TU5/pfk75OWj3VGdgrFkGhxhsqA8uXNsY3QoGyLvYHOWQdzCwEqC2A7scsYPId/I9tUNTSP+MyNiSz+4pjU8L7vCBAh5ixrFf/dy/Ckp/OLGyW3LfNyNs0ypEAKA58Wu6p/Lilz+7WUhV7Iz2Qti/9H6fJkhJGD1iKhgQTITjGm66S7kZ8bYTrH9L2eyp72Fy7COg1hjWPYXUNyKbrMlBageSYPbR62ym/x6B/z5dwOT0bsA9uVx0CvOZwqsu1uvFO32YMZRMH8RzrCZ2+SbJttKvIPTHp00SPXX31ygM3WO71YRSBOwVQQrsd5oNI9Qb5t4sDO5SDrhfzDpphTYmMJ+NvKAwQuGvkKf1/grRyklTF+VK+pJXP02B4v9kVM/uEyv8wyVsG5O1YRu3UGw2jFLhNvuSNjyj/zM7EEfBjJM+h316f+rbNTGH3bwG/AHygrRrt++E3GeIK/D/1R7dpRZ4HDAAAAABJRU5ErkJggg==",Th="_antistockLogoWrapper_ax6a6_1",kh="_applePayGooglePay_ax6a6_13",Ah="_debitCreditCard_ax6a6_20",Sh="_cryptocurrency_ax6a6_27",ca={antistockLogoWrapper:Th,applePayGooglePay:kh,debitCreditCard:Ah,cryptocurrency:Sh},Ih="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%20-34.55%20120.3%20120.3'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.8%206.6c1.4-1.8%202.4-4.2%202.1-6.6-2.1.1-4.6%201.4-6.1%203.1-1.3%201.5-2.5%204-2.2%206.3%202.4.3%204.7-1%206.2-2.8M24.9%2010c-3.4-.2-6.3%201.9-7.9%201.9-1.6%200-4.1-1.8-6.8-1.8-3.5.1-6.7%202-8.5%205.2-3.6%206.3-1%2015.6%202.6%2020.7%201.7%202.5%203.8%205.3%206.5%205.2%202.6-.1%203.6-1.7%206.7-1.7s4%201.7%206.8%201.6%204.6-2.5%206.3-5.1c2-2.9%202.8-5.7%202.8-5.8-.1-.1-5.5-2.1-5.5-8.3-.1-5.2%204.2-7.7%204.4-7.8-2.3-3.6-6.1-4-7.4-4.1'/%3e%3cg%3e%3cpath%20d='M54.3%202.9c7.4%200%2012.5%205.1%2012.5%2012.4%200%207.4-5.2%2012.5-12.7%2012.5H46v12.9h-5.9V2.9h14.2zm-8.3%2020h6.7c5.1%200%208-2.8%208-7.5%200-4.8-2.9-7.5-8-7.5h-6.8v15h.1zM68.3%2033c0-4.8%203.7-7.8%2010.3-8.2l7.6-.4v-2.1c0-3.1-2.1-4.9-5.5-4.9-3.3%200-5.3%201.6-5.8%204h-5.4c.3-5%204.6-8.7%2011.4-8.7%206.7%200%2011%203.5%2011%209.1v19h-5.4v-4.5h-.1c-1.6%203.1-5.1%205-8.7%205-5.6%200-9.4-3.4-9.4-8.3zm17.9-2.5v-2.2l-6.8.4c-3.4.2-5.3%201.7-5.3%204.1%200%202.4%202%204%205%204%204%200%207.1-2.7%207.1-6.3zM96.9%2051v-4.6c.4.1%201.4.1%201.8.1%202.6%200%204-1.1%204.9-3.9%200-.1.5-1.7.5-1.7l-10-27.6h6.1l7%2022.5h.1l7-22.5h6L110%2042.4c-2.4%206.7-5.1%208.8-10.8%208.8-.4-.1-1.8-.1-2.3-.2z'/%3e%3c/g%3e%3c/svg%3e",Nh=()=>i.jsx("svg",{width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M20.9852 9.72294L16.7571 13.4129L18.0236 18.9067C18.0906 19.1939 18.0715 19.4945 17.9686 19.7709C17.8658 20.0472 17.6837 20.2872 17.4452 20.4606C17.2067 20.6341 16.9223 20.7334 16.6277 20.7462C16.3331 20.7589 16.0412 20.6845 15.7886 20.5323L10.9971 17.6261L6.2158 20.5323C5.96321 20.6845 5.67135 20.7589 5.37671 20.7462C5.08208 20.7334 4.79773 20.6341 4.55923 20.4606C4.32074 20.2872 4.13866 20.0472 4.03578 19.7709C3.9329 19.4945 3.91378 19.1939 3.9808 18.9067L5.24549 13.4186L1.01643 9.72294C0.792748 9.53002 0.631004 9.27536 0.55148 8.99089C0.471955 8.70642 0.478189 8.4048 0.569401 8.12385C0.660612 7.84291 0.832741 7.59515 1.0642 7.41164C1.29566 7.22813 1.57615 7.11705 1.87049 7.09231L7.44486 6.6095L9.6208 1.4195C9.73443 1.14717 9.9261 0.914551 10.1717 0.750929C10.4172 0.587308 10.7057 0.5 11.0008 0.5C11.2959 0.5 11.5844 0.587308 11.8299 0.750929C12.0755 0.914551 12.2672 1.14717 12.3808 1.4195L14.5633 6.6095L20.1358 7.09231C20.4301 7.11705 20.7106 7.22813 20.9421 7.41164C21.1736 7.59515 21.3457 7.84291 21.4369 8.12385C21.5281 8.4048 21.5343 8.70642 21.4548 8.99089C21.3753 9.27536 21.2135 9.53002 20.9899 9.72294H20.9852Z",fill:"currentColor"})}),hl=({isAntistock:e=!1})=>e?i.jsxs("div",{className:ca.cryptocurrency,children:[i.jsx($t,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})})}),i.jsx($t,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.3837 16.4017C13.6027 16.4483 15.781 16.4937 18 16.5857C17.9187 16.9525 17.8362 17.2727 17.7956 17.5941C17.6712 18.0529 17.5481 18.4664 17.4668 18.9252C17.4249 19.1546 17.3424 19.2 17.138 19.2H6.53438C6.90513 17.5941 7.27452 16.0815 7.64386 14.4756C7.06883 14.705 6.57507 14.9344 6 15.2092C6.16497 14.5223 6.32877 13.9261 6.53438 13.2832C6.53438 13.1924 6.65762 13.1458 6.74007 13.1458C7.11071 12.963 7.52084 12.8243 7.89018 12.6403C8.01344 12.5962 8.13773 12.4588 8.13773 12.3201L9.86171 5.16681C9.90358 4.89203 9.98489 4.8 10.273 4.8H14.0128C13.5608 6.67939 13.1495 8.56137 12.6976 10.5328C13.3552 10.2126 13.9721 9.93657 14.6703 9.66179C14.5878 10.0286 14.4647 10.3487 14.424 10.6702C14.3415 11.4051 13.9721 11.8172 13.3145 12.0013C13.0276 12.092 12.7383 12.2294 12.4513 12.3681C12.3494 12.436 12.2648 12.5305 12.205 12.6429C11.9169 13.8807 11.6288 15.0731 11.3825 16.3109V16.403L11.3837 16.4017Z",fill:"#345D9D"})})}),i.jsx($t,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M19.9946 3.6L19.8636 3.98284V15.0909L19.9946 15.2034L25.9879 12.1555L19.9946 3.6Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9946 3.6L14 12.1555L19.9946 15.2034L19.9934 9.81181L19.9946 3.6Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9948 16.1802L19.9209 16.2577V20.2146L19.9948 20.4L25.9917 13.134L19.9948 16.1802Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9948 20.4V16.1802L14 13.134L19.9948 20.4Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M20.0067 15.2052L26 12.1574L20.0067 9.81369V15.2052Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M14 12.1555L19.9934 15.2044V9.81181L14 12.1555Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}})]})}),i.jsx($t,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M7.4623 17V13.962H4.6763V12.898H7.4623V9.846H8.5123V12.898H11.2843V13.962H8.5123V17H7.4623ZM16.3943 17.168C15.6476 17.168 15.0176 17.056 14.5043 16.832C13.991 16.5987 13.6036 16.272 13.3423 15.852C13.081 15.432 12.9503 14.9327 12.9503 14.354V14.172H14.1963V14.354C14.1963 14.9327 14.3783 15.376 14.7423 15.684C15.1156 15.9827 15.629 16.132 16.2823 16.132C16.9356 16.132 17.463 15.992 17.8643 15.712C18.2656 15.4227 18.4663 14.9653 18.4663 14.34C18.4663 13.8827 18.359 13.5327 18.1443 13.29C17.9296 13.0473 17.6496 12.8793 17.3043 12.786C16.9683 12.6833 16.609 12.632 16.2263 12.632H15.2183V11.596H16.2683C16.623 11.596 16.9496 11.54 17.2483 11.428C17.547 11.316 17.785 11.134 17.9623 10.882C18.149 10.6207 18.2423 10.2847 18.2423 9.874C18.2423 9.50067 18.1583 9.19733 17.9903 8.964C17.8316 8.73067 17.6123 8.558 17.3323 8.446C17.0523 8.32467 16.7443 8.264 16.4083 8.264C16.035 8.264 15.699 8.32933 15.4003 8.46C15.1016 8.58133 14.8636 8.768 14.6863 9.02C14.5183 9.272 14.4343 9.58933 14.4343 9.972V10.154H13.1743V9.902C13.1743 9.37 13.3096 8.90333 13.5803 8.502C13.8603 8.10067 14.2383 7.788 14.7143 7.564C15.1996 7.34 15.755 7.228 16.3803 7.228C16.9963 7.228 17.5376 7.326 18.0043 7.522C18.4803 7.718 18.8536 8.00733 19.1243 8.39C19.395 8.77267 19.5303 9.244 19.5303 9.804C19.5303 10.2147 19.4556 10.5647 19.3063 10.854C19.157 11.134 18.961 11.3673 18.7183 11.554C18.4756 11.7407 18.2143 11.8947 17.9343 12.016V12.072C18.4476 12.2213 18.877 12.492 19.2223 12.884C19.5676 13.276 19.7403 13.7893 19.7403 14.424C19.7403 14.9933 19.5956 15.4833 19.3063 15.894C19.0263 16.3047 18.6296 16.622 18.1163 16.846C17.6123 17.0607 17.0383 17.168 16.3943 17.168Z",fill:"#757575"})})})]}):i.jsxs("svg",{width:"72",height:"24",viewBox:"0 0 72 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsxs("g",{clipPath:"url(#clip0_1466_4561)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})]}),i.jsxs("g",{clipPath:"url(#clip1_1466_4561)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M27.3837 16.4017C29.6027 16.4483 31.781 16.4937 34 16.5857C33.9187 16.9525 33.8362 17.2727 33.7956 17.5941C33.6712 18.0529 33.5481 18.4664 33.4668 18.9252C33.4249 19.1546 33.3424 19.2 33.138 19.2H22.5344C22.9051 17.5941 23.2745 16.0815 23.6439 14.4756C23.0688 14.705 22.5751 14.9344 22 15.2092C22.165 14.5223 22.3288 13.9261 22.5344 13.2832C22.5344 13.1924 22.6576 13.1458 22.7401 13.1458C23.1107 12.963 23.5208 12.8243 23.8902 12.6403C24.0134 12.5962 24.1377 12.4588 24.1377 12.3201L25.8617 5.16681C25.9036 4.89203 25.9849 4.8 26.273 4.8H30.0128C29.5608 6.67939 29.1495 8.56137 28.6976 10.5328C29.3552 10.2126 29.9721 9.93657 30.6703 9.66179C30.5878 10.0286 30.4647 10.3487 30.424 10.6702C30.3415 11.4051 29.9721 11.8172 29.3145 12.0013C29.0276 12.092 28.7383 12.2294 28.4513 12.3681C28.3494 12.436 28.2648 12.5305 28.205 12.6429C27.9169 13.8807 27.6288 15.0731 27.3825 16.3109V16.403L27.3837 16.4017Z",fill:"#345D9D"})]}),i.jsxs("g",{clipPath:"url(#clip2_1466_4561)",children:[i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M43.9946 3.59961L43.8636 3.98245V15.0905L43.9946 15.203L49.9879 12.1551L43.9946 3.59961Z",fill:"#252525"}),i.jsx("path",{d:"M43.9946 3.59961L38 12.1551L43.9946 15.203L43.9934 9.81142L43.9946 3.59961Z",fill:"#252525"}),i.jsx("path",{d:"M43.9948 16.1798L43.9209 16.2573V20.2142L43.9948 20.3996L49.9917 13.1336L43.9948 16.1798Z",fill:"#252525"}),i.jsx("path",{d:"M43.9948 20.3996V16.1798L38 13.1336L43.9948 20.3996Z",fill:"#252525"}),i.jsx("path",{d:"M44.0067 15.2049L50 12.157L44.0067 9.8133V15.2049Z",fill:"#252525"}),i.jsx("path",{d:"M38 12.1551L43.9934 15.204V9.81142L38 12.1551Z",fill:"#252525"})]}),i.jsx("rect",{x:"48",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("rect",{x:"48",width:"24",height:"24",rx:"12",stroke:"#F0F0F0"}),i.jsx("path",{d:"M55.4623 17V13.962H52.6763V12.898H55.4623V9.846H56.5123V12.898H59.2843V13.962H56.5123V17H55.4623ZM64.3943 17.168C63.6476 17.168 63.0176 17.056 62.5043 16.832C61.991 16.5987 61.6036 16.272 61.3423 15.852C61.081 15.432 60.9503 14.9327 60.9503 14.354V14.172H62.1963V14.354C62.1963 14.9327 62.3783 15.376 62.7423 15.684C63.1156 15.9827 63.629 16.132 64.2823 16.132C64.9356 16.132 65.463 15.992 65.8643 15.712C66.2656 15.4227 66.4663 14.9653 66.4663 14.34C66.4663 13.8827 66.359 13.5327 66.1443 13.29C65.9296 13.0473 65.6496 12.8793 65.3043 12.786C64.9683 12.6833 64.609 12.632 64.2263 12.632H63.2183V11.596H64.2683C64.623 11.596 64.9496 11.54 65.2483 11.428C65.547 11.316 65.785 11.134 65.9623 10.882C66.149 10.6207 66.2423 10.2847 66.2423 9.874C66.2423 9.50067 66.1583 9.19733 65.9903 8.964C65.8316 8.73067 65.6123 8.558 65.3323 8.446C65.0523 8.32467 64.7443 8.264 64.4083 8.264C64.035 8.264 63.699 8.32933 63.4003 8.46C63.1016 8.58133 62.8636 8.768 62.6863 9.02C62.5183 9.272 62.4343 9.58933 62.4343 9.972V10.154H61.1743V9.902C61.1743 9.37 61.3096 8.90333 61.5803 8.502C61.8603 8.10067 62.2383 7.788 62.7143 7.564C63.1996 7.34 63.755 7.228 64.3803 7.228C64.9963 7.228 65.5376 7.326 66.0043 7.522C66.4803 7.718 66.8536 8.00733 67.1243 8.39C67.395 8.77267 67.5303 9.244 67.5303 9.804C67.5303 10.2147 67.4556 10.5647 67.3063 10.854C67.157 11.134 66.961 11.3673 66.7183 11.554C66.4756 11.7407 66.2143 11.8947 65.9343 12.016V12.072C66.4476 12.2213 66.877 12.492 67.2223 12.884C67.5676 13.276 67.7403 13.7893 67.7403 14.424C67.7403 14.9933 67.5956 15.4833 67.3063 15.894C67.0263 16.3047 66.6296 16.622 66.1163 16.846C65.6123 17.0607 65.0383 17.168 64.3943 17.168Z",fill:"#757575"}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_1466_4561",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_1466_4561",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip2_1466_4561",children:i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),pl=()=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})}),ml=({isAntistock:e=!1})=>e?i.jsxs("div",{className:ca.debitCreditCard,children:[i.jsx($t,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M12.371 10.7018C12.3586 11.7047 13.2368 12.2645 13.8984 12.5972C14.5782 12.9387 14.8065 13.1576 14.8039 13.4629C14.7987 13.9302 14.2616 14.1364 13.759 14.1445C12.8821 14.1585 12.3722 13.9001 11.9669 13.7046L11.651 15.2304C12.0577 15.4239 12.8107 15.5926 13.5916 15.6C15.4246 15.6 16.6239 14.666 16.6304 13.2179C16.6375 11.38 14.1676 11.2783 14.1845 10.4568C14.1903 10.2077 14.4206 9.9419 14.9252 9.87428C15.1749 9.84013 15.8644 9.81402 16.6459 10.1856L16.9527 8.70932C16.5324 8.55131 15.9921 8.4 15.3195 8.4C13.5942 8.4 12.3807 9.3467 12.371 10.7018ZM19.9007 8.52721C19.566 8.52721 19.2838 8.72873 19.158 9.03805L16.5396 15.4915H18.3712L18.7358 14.4518H20.9741L21.1856 15.4915H22.7999L21.3912 8.52721H19.9007ZM20.1569 10.4086L20.6855 13.0237H19.2378L20.1569 10.4086ZM10.1501 8.52721L8.70631 15.4915H10.4517L11.8949 8.52721H10.1501ZM7.568 8.52721L5.75124 13.2674L5.01637 9.2369C4.93011 8.78698 4.58959 8.52721 4.21145 8.52721H1.24147L1.19995 8.7294C1.80964 8.86598 2.50236 9.08626 2.92201 9.32193C3.17886 9.46587 3.25215 9.59174 3.33647 9.93386L4.72839 15.4915H6.57303L9.40097 8.52721H7.568Z",fill:"#254AA5"})})}),i.jsx($t,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M14.5901 7.2835H9.39431V16.7165H14.5901V7.2835Z",fill:"#FF5A00"}),i.jsx("path",{d:"M9.74021 12C9.74021 10.0835 10.6318 8.38252 11.9999 7.2835C10.993 6.4835 9.72288 6 8.33751 6C5.05551 6 2.39991 8.6835 2.39991 12C2.39991 15.3165 5.05551 18 8.33751 18C9.72288 18 10.993 17.5165 11.9999 16.7165C10.6298 15.633 9.74021 13.9165 9.74021 12Z",fill:"#EB001B"}),i.jsx("path",{d:"M21.5999 12C21.5999 15.3165 18.9443 18 15.6624 18C14.2769 18 13.0068 17.5165 11.9999 16.7165C13.3853 15.6155 14.2596 13.9165 14.2596 12C14.2596 10.0835 13.368 8.38252 11.9999 7.2835C13.0049 6.4835 14.275 6 15.6604 6C18.9443 6 21.5999 8.70097 21.5999 12Z",fill:"#F79E1B"})]})}),i.jsx($t,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.6377 9.6L9.2 15.5923H12.1183L12.48 14.6369H13.307L13.6688 15.5923H16.881V14.8631L17.1673 15.5923H18.8289L19.1151 14.8477V15.5923H25.7957L26.608 14.6617L27.3687 15.5923L30.7999 15.6L28.3545 12.6129L30.7999 9.6H27.4219L26.6311 10.5134L25.8944 9.6H18.6268L18.0028 11.1467L17.3641 9.6H14.4518V10.3044L14.1279 9.6H11.6377ZM12.2024 10.4509H13.6249L15.2418 14.5143V10.4509H16.8001L18.0491 13.3644L19.2001 10.4509H20.7506V14.7508H19.8071L19.7994 11.3814L18.424 14.7508H17.58L16.1968 11.3814V14.7508H14.2559L13.8879 13.7868H11.9L11.5328 14.7499H10.4929L12.2024 10.4509ZM21.6138 10.4509H25.4501L26.6234 11.8588L27.8346 10.4509H29.0079L27.2252 12.612L29.0079 14.7482H27.7814L26.608 13.324L25.3907 14.7482H21.6138V10.4509ZM12.8944 11.1784L12.2394 12.8957H13.5486L12.8944 11.1784ZM22.5611 12.1261H24.654V13.001H22.5611V13.8579H24.9086L25.9994 12.5958L24.9549 11.3405H22.5611V12.1261Z",fill:"#26A6D1",style:{transform:"translateX(-8px)"}})})})]}):i.jsxs("svg",{width:"56",height:"24",viewBox:"0 0 56 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsxs("g",{clipPath:"url(#clip0_1466_4573)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M12.371 10.7018C12.3586 11.7047 13.2368 12.2645 13.8984 12.5972C14.5782 12.9387 14.8065 13.1576 14.8039 13.4629C14.7987 13.9302 14.2616 14.1364 13.759 14.1445C12.8821 14.1585 12.3722 13.9001 11.9669 13.7046L11.651 15.2304C12.0577 15.4239 12.8107 15.5926 13.5916 15.6C15.4246 15.6 16.6239 14.666 16.6304 13.2179C16.6375 11.38 14.1676 11.2783 14.1845 10.4568C14.1903 10.2077 14.4206 9.9419 14.9252 9.87428C15.1749 9.84013 15.8644 9.81402 16.6459 10.1856L16.9527 8.70932C16.5324 8.55131 15.9921 8.4 15.3195 8.4C13.5942 8.4 12.3807 9.3467 12.371 10.7018ZM19.9007 8.52721C19.566 8.52721 19.2838 8.72873 19.158 9.03805L16.5396 15.4915H18.3712L18.7358 14.4518H20.9741L21.1856 15.4915H22.7999L21.3912 8.52721H19.9007ZM20.1569 10.4086L20.6855 13.0237H19.2378L20.1569 10.4086ZM10.1501 8.52721L8.70631 15.4915H10.4517L11.8949 8.52721H10.1501ZM7.568 8.52721L5.75124 13.2674L5.01637 9.2369C4.93011 8.78698 4.58959 8.52721 4.21145 8.52721H1.24147L1.19995 8.7294C1.80964 8.86598 2.50236 9.08626 2.92201 9.32193C3.17886 9.46587 3.25215 9.59174 3.33647 9.93386L4.72839 15.4915H6.57303L9.40097 8.52721H7.568Z",fill:"#254AA5"})]}),i.jsxs("g",{clipPath:"url(#clip1_1466_4573)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M30.5901 7.2835H25.3943V16.7165H30.5901V7.2835Z",fill:"#FF5A00"}),i.jsx("path",{d:"M25.7402 12C25.7402 10.0835 26.6318 8.38252 27.9999 7.2835C26.993 6.4835 25.7229 6 24.3375 6C21.0555 6 18.3999 8.6835 18.3999 12C18.3999 15.3165 21.0555 18 24.3375 18C25.7229 18 26.993 17.5165 27.9999 16.7165C26.6298 15.633 25.7402 13.9165 25.7402 12Z",fill:"#EB001B"}),i.jsx("path",{d:"M37.5999 12C37.5999 15.3165 34.9443 18 31.6624 18C30.2769 18 29.0068 17.5165 27.9999 16.7165C29.3853 15.6155 30.2596 13.9165 30.2596 12C30.2596 10.0835 29.368 8.38252 27.9999 7.2835C29.0049 6.4835 30.275 6 31.6604 6C34.9443 6 37.5999 8.70097 37.5999 12Z",fill:"#F79E1B"})]}),i.jsxs("g",{clipPath:"url(#clip2_1466_4573)",children:[i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M35.6377 9.6L33.2 15.5923H36.1183L36.48 14.6369H37.307L37.6688 15.5923H40.881V14.8631L41.1673 15.5923H42.8289L43.1151 14.8477V15.5923H49.7957L50.608 14.6617L51.3687 15.5923L54.7999 15.6L52.3545 12.6129L54.7999 9.6H51.4219L50.6311 10.5134L49.8944 9.6H42.6268L42.0028 11.1467L41.3641 9.6H38.4518V10.3044L38.1279 9.6H35.6377ZM36.2024 10.4509H37.6249L39.2418 14.5143V10.4509H40.8001L42.0491 13.3644L43.2001 10.4509H44.7506V14.7508H43.8071L43.7994 11.3814L42.424 14.7508H41.58L40.1968 11.3814V14.7508H38.2559L37.8879 13.7868H35.9L35.5328 14.7499H34.4929L36.2024 10.4509ZM45.6138 10.4509H49.4501L50.6234 11.8588L51.8346 10.4509H53.0079L51.2252 12.612L53.0079 14.7482H51.7814L50.608 13.324L49.3907 14.7482H45.6138V10.4509ZM36.8944 11.1784L36.2394 12.8957H37.5486L36.8944 11.1784ZM46.5611 12.1261H48.654V13.001H46.5611V13.8579H48.9086L49.9994 12.5958L48.9549 11.3405H46.5611V12.1261Z",fill:"#26A6D1"})]}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_1466_4573",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_1466_4573",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip2_1466_4573",children:i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),gl=({isAntistock:e=!1})=>e?i.jsx($t,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("g",{clipPath:"url(#clip0_13_4480)",children:i.jsx("path",{d:"M15.1258 8.86178C15.3047 9.05256 15.6016 9.05256 15.7698 8.86178L16.6642 7.86973C16.8539 7.67895 16.8431 7.33555 16.6428 7.12951C15.9399 6.47662 15.1228 5.97865 14.2385 5.66433L14.5211 4.21441C14.582 3.89771 14.3601 3.6001 14.0632 3.6001H12.3315C12.2233 3.60134 12.1187 3.64219 12.0354 3.71581C11.952 3.78944 11.8949 3.89137 11.8736 4.00455L11.6231 5.29421C9.31901 5.42013 7.36553 6.66782 7.36553 9.22426C7.36553 11.4373 8.97912 12.3874 10.6857 13.0398C12.2993 13.6961 13.1544 13.9403 13.1544 14.8637C13.1544 15.8138 12.3029 16.3708 11.0435 16.3708C9.89861 16.3708 8.69647 15.9626 7.76624 14.9667C7.72304 14.9206 7.67174 14.8839 7.61526 14.859C7.55878 14.834 7.49823 14.8211 7.43709 14.8211C7.37594 14.8211 7.3154 14.834 7.25892 14.859C7.20244 14.8839 7.15113 14.9206 7.10793 14.9667L6.14192 15.9969C6.05103 16.0942 6 16.2259 6 16.3632C6 16.5005 6.05103 16.6322 6.14192 16.7295C6.89326 17.5193 7.84496 18.0917 8.92975 18.4084L8.66499 19.7705C8.60417 20.0872 8.82241 20.381 9.11937 20.3848L10.8546 20.4001C10.9641 20.4006 11.0703 20.3606 11.1551 20.2868C11.24 20.213 11.2982 20.1101 11.3197 19.9956L11.5702 18.7022C14.3422 18.5037 16.031 16.8745 16.031 14.4974C16.031 12.3072 14.3494 11.3839 12.3101 10.6322C11.1437 10.1705 10.1347 9.85383 10.1347 8.90375C10.1347 7.98038 11.0757 7.61409 12.0203 7.61409C13.2224 7.61409 14.378 8.14445 15.1329 8.86941L15.1258 8.86178Z",fill:"#00D249"})}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_13_4480",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]})}):i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_13_4480)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M15.1258 8.86178C15.3047 9.05256 15.6016 9.05256 15.7698 8.86178L16.6642 7.86973C16.8539 7.67895 16.8431 7.33555 16.6428 7.12951C15.9399 6.47662 15.1228 5.97865 14.2385 5.66433L14.5211 4.21441C14.582 3.89771 14.3601 3.6001 14.0632 3.6001H12.3315C12.2233 3.60134 12.1187 3.64219 12.0354 3.71581C11.952 3.78944 11.8949 3.89137 11.8736 4.00455L11.6231 5.29421C9.31901 5.42013 7.36553 6.66782 7.36553 9.22426C7.36553 11.4373 8.97912 12.3874 10.6857 13.0398C12.2993 13.6961 13.1544 13.9403 13.1544 14.8637C13.1544 15.8138 12.3029 16.3708 11.0435 16.3708C9.89861 16.3708 8.69647 15.9626 7.76624 14.9667C7.72304 14.9206 7.67174 14.8839 7.61526 14.859C7.55878 14.834 7.49823 14.8211 7.43709 14.8211C7.37594 14.8211 7.3154 14.834 7.25892 14.859C7.20244 14.8839 7.15113 14.9206 7.10793 14.9667L6.14192 15.9969C6.05103 16.0942 6 16.2259 6 16.3632C6 16.5005 6.05103 16.6322 6.14192 16.7295C6.89326 17.5193 7.84496 18.0917 8.92975 18.4084L8.66499 19.7705C8.60417 20.0872 8.82241 20.381 9.11937 20.3848L10.8546 20.4001C10.9641 20.4006 11.0703 20.3606 11.1551 20.2868C11.24 20.213 11.2982 20.1101 11.3197 19.9956L11.5702 18.7022C14.3422 18.5037 16.031 16.8745 16.031 14.4974C16.031 12.3072 14.3494 11.3839 12.3101 10.6322C11.1437 10.1705 10.1347 9.85383 10.1347 8.90375C10.1347 7.98038 11.0757 7.61409 12.0203 7.61409C13.2224 7.61409 14.378 8.14445 15.1329 8.86941L15.1258 8.86178Z",fill:"#00D249"})]}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_13_4480",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]}),bl=({isAntistock:e=!1})=>e?i.jsx($t,{children:i.jsx("img",{src:Yi,alt:"PayPal",width:14,height:18})}):i.jsx("img",{src:Yi,alt:"PayPal",height:24}),$t=({children:e})=>i.jsx("div",{className:ca.antistockLogoWrapper,children:e}),_l=({isAntistock:e=!1})=>{const t=i.jsx("svg",{className:"sc-e8500097-0 iYIDDF",width:"91",height:"22",viewBox:"0 0 91 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M82.2782 17.9579C80.1693 17.9579 78.5256 16.23 78.5256 14.1318C78.5256 12.0337 80.1693 10.3057 82.2782 10.3057C84.3871 10.3057 86.0308 12.0337 86.0308 14.1318C86.0308 16.23 84.3871 17.9579 82.2782 17.9579ZM81.2238 22C83.0225 22 85.3176 21.3212 86.5891 18.6676L86.7131 18.7293C86.1549 20.1795 86.1549 21.0435 86.1549 21.2595V21.5989H90.6828V6.6648H86.1549V7.00421C86.1549 7.2202 86.1549 8.08415 86.7131 9.53436L86.5891 9.59607C85.3176 6.9425 83.0225 6.26367 81.2238 6.26367C76.9129 6.26367 73.8736 9.65778 73.8736 14.1318C73.8736 18.6059 76.9129 22 81.2238 22ZM65.9963 6.26367C63.9494 6.26367 62.3367 6.97335 61.0341 9.59607L60.9101 9.53436C61.4683 8.08415 61.4683 7.2202 61.4683 7.00421V6.6648H56.9404V21.5989H61.5924V13.7307C61.5924 11.6634 62.8019 10.3675 64.7557 10.3675C66.7096 10.3675 67.671 11.4783 67.671 13.6999V21.5989H72.323V12.0954C72.323 8.70126 69.6558 6.26367 65.9963 6.26367ZM50.2105 9.59607L50.0864 9.53436C50.6447 8.08415 50.6447 7.2202 50.6447 7.00421V6.6648H46.1168V21.5989H50.7687L50.7998 14.4095C50.7998 12.3114 51.9162 11.0463 53.746 11.0463C54.2422 11.0463 54.6454 11.108 55.1106 11.2314V6.6648C53.0637 6.23282 51.2339 7.00421 50.2105 9.59607ZM35.4172 17.9579C33.3083 17.9579 31.6646 16.23 31.6646 14.1318C31.6646 12.0337 33.3083 10.3057 35.4172 10.3057C37.5261 10.3057 39.1698 12.0337 39.1698 14.1318C39.1698 16.23 37.5261 17.9579 35.4172 17.9579ZM34.3627 22C36.1615 22 38.4565 21.3212 39.728 18.6676L39.8521 18.7293C39.2938 20.1795 39.2938 21.0435 39.2938 21.2595V21.5989H43.8218V6.6648H39.2938V7.00421C39.2938 7.2202 39.2938 8.08415 39.8521 9.53436L39.728 9.59607C38.4565 6.9425 36.1615 6.26367 34.3627 6.26367C30.0519 6.26367 27.0126 9.65778 27.0126 14.1318C27.0126 18.6059 30.0519 22 34.3627 22ZM20.5308 21.5989H25.1828V0H20.5308V21.5989ZM17.1193 0H12.3743C12.3743 3.85694 9.98628 7.31276 6.35772 9.78121L4.93111 10.7686V0H0V21.5989H4.93111V10.892L13.0876 21.5989H19.1042L11.2578 11.3548C14.8243 8.79383 17.1503 4.81346 17.1193 0Z",fill:"currentColor"})});return e?i.jsx($t,{children:t}):t},xl=({isAntistock:e=!1})=>e?i.jsxs("div",{className:ca.applePayGooglePay,children:[i.jsx($t,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_12_1508)",children:[i.jsx("path",{d:"M11.4098 12.495V14.9512H10.6V8.87671H12.7053C13.2182 8.87671 13.704 9.06159 14.0819 9.40493C14.4598 9.72185 14.6487 10.1972 14.6487 10.699C14.6487 11.2008 14.4598 11.6498 14.0819 11.9932C13.704 12.3365 13.2452 12.5214 12.7053 12.5214L11.4098 12.495ZM11.4098 9.61621V11.7291H12.7593C13.0562 11.7291 13.3531 11.6234 13.5421 11.4121C13.974 11.016 13.974 10.3557 13.5691 9.95955L13.5421 9.93314C13.3262 9.72185 13.0562 9.5898 12.7593 9.61621H11.4098Z",fill:"#5F6368"}),i.jsx("path",{d:"M16.5112 10.6726C17.105 10.6726 17.5638 10.8311 17.9147 11.148C18.2656 11.465 18.4276 11.8875 18.4276 12.4157V14.9512H17.6718V14.3701H17.6448C17.3209 14.8455 16.8621 15.0832 16.3222 15.0832C15.8634 15.0832 15.4585 14.9512 15.1346 14.6871C14.8377 14.4229 14.6487 14.0532 14.6487 13.657C14.6487 13.2345 14.8107 12.8911 15.1346 12.627C15.4585 12.3629 15.9173 12.2573 16.4572 12.2573C16.943 12.2573 17.3209 12.3365 17.6178 12.5214V12.3365C17.6178 12.0724 17.5098 11.8083 17.2939 11.6498C17.078 11.465 16.8081 11.3593 16.5112 11.3593C16.0523 11.3593 15.7014 11.5442 15.4585 11.9139L14.7567 11.4914C15.1886 10.9367 15.7554 10.6726 16.5112 10.6726ZM15.4855 13.6834C15.4855 13.8947 15.5934 14.0796 15.7554 14.1852C15.9443 14.3173 16.1603 14.3965 16.3762 14.3965C16.7001 14.3965 17.024 14.2645 17.2669 14.0268C17.5368 13.7891 17.6718 13.4986 17.6718 13.1816C17.4289 12.9968 17.078 12.8911 16.6191 12.8911C16.2952 12.8911 16.0253 12.9704 15.8094 13.1288C15.5934 13.2609 15.4855 13.4458 15.4855 13.6834Z",fill:"#5F6368"}),i.jsx("path",{d:"M22.8002 10.8047L20.128 16.7999H19.3183L20.317 14.7135L18.5625 10.8311H19.4262L20.6949 13.8155H20.7218L21.9635 10.8311H22.8002V10.8047Z",fill:"#5F6368"}),i.jsx("path",{d:"M8.19776 11.9668C8.19776 11.7291 8.17077 11.4914 8.14378 11.2537H4.76983V12.6006H6.68623C6.60526 13.0232 6.36233 13.4193 5.98445 13.657V14.5286H7.14509C7.81988 13.9211 8.19776 13.0232 8.19776 11.9668Z",fill:"#4285F4"}),i.jsx("path",{d:"M4.76983 15.3737C5.74153 15.3737 6.55127 15.0568 7.14509 14.5286L5.98445 13.657C5.66055 13.8683 5.25568 14.0004 4.76983 14.0004C3.85212 14.0004 3.04237 13.3929 2.77245 12.5478H1.58483V13.4458C2.20563 14.6342 3.42025 15.3737 4.76983 15.3737Z",fill:"#34A853"}),i.jsx("path",{d:"M2.77245 12.5478C2.6105 12.1252 2.6105 11.6498 2.77245 11.2008V10.3029H1.58483C1.07199 11.2801 1.07199 12.4421 1.58483 13.4458L2.77245 12.5478Z",fill:"#FBBC04"}),i.jsx("path",{d:"M4.76983 9.77468C5.28267 9.77468 5.76852 9.95955 6.1464 10.3029L7.17208 9.29928C6.52428 8.71825 5.66055 8.37491 4.79682 8.40132C3.44724 8.40132 2.20563 9.14082 1.61182 10.3293L2.79945 11.2273C3.04237 10.3821 3.85212 9.77468 4.76983 9.77468Z",fill:"#EA4335"})]}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_12_1508",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]})}),i.jsx($t,{children:i.jsx("img",{src:Ih,alt:"Apple Pay",width:18,height:24})})]}):i.jsxs("svg",{width:"40",height:"24",viewBox:"0 0 40 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_12_1508)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M11.4098 12.495V14.9512H10.6V8.87671H12.7053C13.2182 8.87671 13.704 9.06159 14.0819 9.40493C14.4598 9.72185 14.6487 10.1972 14.6487 10.699C14.6487 11.2008 14.4598 11.6498 14.0819 11.9932C13.704 12.3365 13.2452 12.5214 12.7053 12.5214L11.4098 12.495ZM11.4098 9.61621V11.7291H12.7593C13.0562 11.7291 13.3531 11.6234 13.5421 11.4121C13.974 11.016 13.974 10.3557 13.5691 9.95955L13.5421 9.93314C13.3262 9.72185 13.0562 9.5898 12.7593 9.61621H11.4098Z",fill:"#5F6368"}),i.jsx("path",{d:"M16.5112 10.6726C17.105 10.6726 17.5638 10.8311 17.9147 11.148C18.2656 11.465 18.4276 11.8875 18.4276 12.4157V14.9512H17.6718V14.3701H17.6448C17.3209 14.8455 16.8621 15.0832 16.3222 15.0832C15.8634 15.0832 15.4585 14.9512 15.1346 14.6871C14.8377 14.4229 14.6487 14.0532 14.6487 13.657C14.6487 13.2345 14.8107 12.8911 15.1346 12.627C15.4585 12.3629 15.9173 12.2573 16.4572 12.2573C16.943 12.2573 17.3209 12.3365 17.6178 12.5214V12.3365C17.6178 12.0724 17.5098 11.8083 17.2939 11.6498C17.078 11.465 16.8081 11.3593 16.5112 11.3593C16.0523 11.3593 15.7014 11.5442 15.4585 11.9139L14.7567 11.4914C15.1886 10.9367 15.7554 10.6726 16.5112 10.6726ZM15.4855 13.6834C15.4855 13.8947 15.5934 14.0796 15.7554 14.1852C15.9443 14.3173 16.1603 14.3965 16.3762 14.3965C16.7001 14.3965 17.024 14.2645 17.2669 14.0268C17.5368 13.7891 17.6718 13.4986 17.6718 13.1816C17.4289 12.9968 17.078 12.8911 16.6191 12.8911C16.2952 12.8911 16.0253 12.9704 15.8094 13.1288C15.5934 13.2609 15.4855 13.4458 15.4855 13.6834Z",fill:"#5F6368"}),i.jsx("path",{d:"M22.8002 10.8047L20.128 16.7999H19.3183L20.317 14.7135L18.5625 10.8311H19.4262L20.6949 13.8155H20.7218L21.9635 10.8311H22.8002V10.8047Z",fill:"#5F6368"}),i.jsx("path",{d:"M8.19776 11.9668C8.19776 11.7291 8.17077 11.4914 8.14378 11.2537H4.76983V12.6006H6.68623C6.60526 13.0232 6.36233 13.4193 5.98445 13.657V14.5286H7.14509C7.81988 13.9211 8.19776 13.0232 8.19776 11.9668Z",fill:"#4285F4"}),i.jsx("path",{d:"M4.76983 15.3737C5.74153 15.3737 6.55127 15.0568 7.14509 14.5286L5.98445 13.657C5.66055 13.8683 5.25568 14.0004 4.76983 14.0004C3.85212 14.0004 3.04237 13.3929 2.77245 12.5478H1.58483V13.4458C2.20563 14.6342 3.42025 15.3737 4.76983 15.3737Z",fill:"#34A853"}),i.jsx("path",{d:"M2.77245 12.5478C2.6105 12.1252 2.6105 11.6498 2.77245 11.2008V10.3029H1.58483C1.07199 11.2801 1.07199 12.4421 1.58483 13.4458L2.77245 12.5478Z",fill:"#FBBC04"}),i.jsx("path",{d:"M4.76983 9.77468C5.28267 9.77468 5.76852 9.95955 6.1464 10.3029L7.17208 9.29928C6.52428 8.71825 5.66055 8.37491 4.79682 8.40132C3.44724 8.40132 2.20563 9.14082 1.61182 10.3293L2.79945 11.2273C3.04237 10.3821 3.85212 9.77468 4.76983 9.77468Z",fill:"#EA4335"})]}),i.jsxs("g",{clipPath:"url(#clip1_12_1508)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M21.1469 9.48287C20.8938 9.7666 20.4887 9.99039 20.0837 9.95842C20.033 9.57478 20.2313 9.16717 20.4634 8.91541C20.7166 8.62369 21.1596 8.41589 21.5182 8.3999C21.5604 8.79952 21.3959 9.19115 21.1469 9.48287ZM21.514 10.0343C20.9275 10.0024 20.4254 10.35 20.147 10.35C19.8643 10.35 19.4381 10.0503 18.974 10.0583C18.3707 10.0663 17.8095 10.39 17.5015 10.9055C16.8686 11.9365 17.337 13.4631 17.9487 14.3023C18.2483 14.7179 18.6069 15.1735 19.0795 15.1575C19.5267 15.1415 19.7039 14.8817 20.244 14.8817C20.7883 14.8817 20.9444 15.1575 21.417 15.1495C21.9064 15.1415 22.2144 14.7339 22.514 14.3183C22.8557 13.8467 22.9949 13.3872 23.0034 13.3632C22.9949 13.3552 22.0583 13.0155 22.0498 11.9925C22.0414 11.1373 22.7882 10.7297 22.822 10.7057C22.4 10.1143 21.7418 10.0503 21.514 10.0343ZM24.902 8.87545V15.1055H25.9231V12.9755H27.3365C28.6276 12.9755 29.5348 12.1363 29.5348 10.9215C29.5348 9.70666 28.6445 8.87545 27.3703 8.87545H24.902ZM25.9231 9.69067H27.1003C27.9863 9.69067 28.4926 10.1382 28.4926 10.9255C28.4926 11.7127 27.9863 12.1643 27.096 12.1643H25.9231V9.69067ZM31.3997 15.1535C32.041 15.1535 32.6359 14.8458 32.9059 14.3582H32.927V15.1055H33.8721V12.0045C33.8721 11.1053 33.1127 10.5259 31.9439 10.5259C30.8596 10.5259 30.0579 11.1133 30.0284 11.9205H30.9482C31.0241 11.5369 31.3997 11.2852 31.9144 11.2852C32.5389 11.2852 32.889 11.5609 32.889 12.0684V12.4121L31.6148 12.484C30.4292 12.5519 29.7879 13.0115 29.7879 13.8107C29.7879 14.618 30.4503 15.1535 31.3997 15.1535ZM31.6739 14.4142C31.1296 14.4142 30.7837 14.1664 30.7837 13.7868C30.7837 13.3951 31.117 13.1674 31.7541 13.1314L32.889 13.0635V13.4151C32.889 13.9986 32.3659 14.4142 31.6739 14.4142ZM35.1337 16.7999C36.1294 16.7999 36.5978 16.4402 37.007 15.3493L38.8002 10.5858H37.7623L36.5598 14.2663H36.5387L35.3362 10.5858H34.2687L35.9986 15.1215L35.9058 15.3972C35.7497 15.8648 35.4965 16.0446 35.0451 16.0446C34.9649 16.0446 34.8088 16.0366 34.7455 16.0286V16.7759C34.8046 16.7919 35.0577 16.7999 35.1337 16.7999Z",fill:"black"})]}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_12_1508",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_12_1508",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),Cl=({isAntistock:e=!1})=>e?i.jsx($t,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M18.6917 16.192L16.1917 18.692C16.0744 18.8093 15.9154 18.8752 15.7495 18.8752C15.5837 18.8752 15.4246 18.8093 15.3073 18.692C15.1901 18.5748 15.1242 18.4157 15.1242 18.2499C15.1242 18.084 15.1901 17.9249 15.3073 17.8077L16.7409 16.3749H5.74952C5.58375 16.3749 5.42478 16.309 5.30757 16.1918C5.19036 16.0746 5.12452 15.9156 5.12452 15.7499C5.12452 15.5841 5.19036 15.4251 5.30757 15.3079C5.42478 15.1907 5.58375 15.1249 5.74952 15.1249H16.7409L15.3073 13.692C15.1901 13.5748 15.1242 13.4157 15.1242 13.2499C15.1242 13.084 15.1901 12.9249 15.3073 12.8077C15.4246 12.6904 15.5837 12.6245 15.7495 12.6245C15.9154 12.6245 16.0744 12.6904 16.1917 12.8077L18.6917 15.3077C18.7498 15.3657 18.7959 15.4346 18.8274 15.5105C18.8588 15.5864 18.875 15.6677 18.875 15.7499C18.875 15.832 18.8588 15.9133 18.8274 15.9892C18.7959 16.0651 18.7498 16.134 18.6917 16.192ZM7.80733 11.192C7.9246 11.3093 8.08366 11.3752 8.24952 11.3752C8.41537 11.3752 8.57443 11.3093 8.6917 11.192C8.80898 11.0748 8.87486 10.9157 8.87486 10.7499C8.87486 10.584 8.80898 10.4249 8.6917 10.3077L7.25811 8.87486H18.2495C18.4153 8.87486 18.5742 8.80901 18.6915 8.6918C18.8087 8.57459 18.8745 8.41562 18.8745 8.24986C18.8745 8.0841 18.8087 7.92513 18.6915 7.80792C18.5742 7.69071 18.4153 7.62486 18.2495 7.62486H7.25811L8.6917 6.19205C8.80898 6.07477 8.87486 5.91571 8.87486 5.74986C8.87486 5.58401 8.80898 5.42495 8.6917 5.30767C8.57443 5.1904 8.41537 5.12451 8.24952 5.12451C8.08366 5.12451 7.9246 5.1904 7.80733 5.30767L5.30733 7.80767C5.24922 7.86572 5.20312 7.93465 5.17167 8.01052C5.14021 8.0864 5.12402 8.16772 5.12402 8.24986C5.12402 8.33199 5.14021 8.41332 5.17167 8.4892C5.20312 8.56507 5.24922 8.634 5.30733 8.69205L7.80733 11.192Z",fill:"#252525"})]})}):i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("rect",{width:"24",height:"24",rx:"12",stroke:"#F0F0F0"}),i.jsx("path",{d:"M18.6917 16.192L16.1917 18.692C16.0744 18.8093 15.9154 18.8752 15.7495 18.8752C15.5837 18.8752 15.4246 18.8093 15.3073 18.692C15.1901 18.5748 15.1242 18.4157 15.1242 18.2499C15.1242 18.084 15.1901 17.9249 15.3073 17.8077L16.7409 16.3749H5.74952C5.58375 16.3749 5.42478 16.309 5.30757 16.1918C5.19036 16.0746 5.12452 15.9156 5.12452 15.7499C5.12452 15.5841 5.19036 15.4251 5.30757 15.3079C5.42478 15.1907 5.58375 15.1249 5.74952 15.1249H16.7409L15.3073 13.692C15.1901 13.5748 15.1242 13.4157 15.1242 13.2499C15.1242 13.084 15.1901 12.9249 15.3073 12.8077C15.4246 12.6904 15.5837 12.6245 15.7495 12.6245C15.9154 12.6245 16.0744 12.6904 16.1917 12.8077L18.6917 15.3077C18.7498 15.3657 18.7959 15.4346 18.8274 15.5105C18.8588 15.5864 18.875 15.6677 18.875 15.7499C18.875 15.832 18.8588 15.9133 18.8274 15.9892C18.7959 16.0651 18.7498 16.134 18.6917 16.192ZM7.80733 11.192C7.9246 11.3093 8.08366 11.3752 8.24952 11.3752C8.41537 11.3752 8.57443 11.3093 8.6917 11.192C8.80898 11.0748 8.87486 10.9157 8.87486 10.7499C8.87486 10.584 8.80898 10.4249 8.6917 10.3077L7.25811 8.87486H18.2495C18.4153 8.87486 18.5742 8.80901 18.6915 8.6918C18.8087 8.57459 18.8745 8.41562 18.8745 8.24986C18.8745 8.0841 18.8087 7.92513 18.6915 7.80792C18.5742 7.69071 18.4153 7.62486 18.2495 7.62486H7.25811L8.6917 6.19205C8.80898 6.07477 8.87486 5.91571 8.87486 5.74986C8.87486 5.58401 8.80898 5.42495 8.6917 5.30767C8.57443 5.1904 8.41537 5.12451 8.24952 5.12451C8.08366 5.12451 7.9246 5.1904 7.80733 5.30767L5.30733 7.80767C5.24922 7.86572 5.20312 7.93465 5.17167 8.01052C5.14021 8.0864 5.12402 8.16772 5.12402 8.24986C5.12402 8.33199 5.14021 8.41332 5.17167 8.4892C5.20312 8.56507 5.24922 8.634 5.30733 8.69205L7.80733 11.192Z",fill:"#252525"})]}),vh=()=>i.jsx("svg",{width:"22",height:"8",viewBox:"0 0 22 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M11.3712 2.7019C11.3589 3.70484 12.2371 4.26456 12.8987 4.59731C13.5784 4.93876 13.8067 5.15769 13.8041 5.46299C13.7989 5.93032 13.2619 6.13653 12.7592 6.14456C11.8823 6.15862 11.3725 5.90019 10.9671 5.70469L10.6512 7.23052C11.0579 7.42401 11.811 7.59273 12.5919 7.6001C14.4249 7.6001 15.6241 6.66612 15.6306 5.21795C15.6378 3.38012 13.1678 3.27836 13.1847 2.45686C13.1905 2.2078 13.4208 1.942 13.9254 1.87438C14.1751 1.84023 14.8646 1.81412 15.6462 2.1857L15.953 0.709415C15.5327 0.551409 14.9924 0.400097 14.3198 0.400097C12.5945 0.400097 11.3809 1.3468 11.3712 2.7019ZM18.9009 0.527306C18.5662 0.527306 18.2841 0.728831 18.1583 1.03815L15.5398 7.49164H17.3715L17.736 6.45187H19.9744L20.1858 7.49164H21.8002L20.3914 0.527306H18.9009ZM19.1571 2.40865L19.6857 5.02379H18.238L19.1571 2.40865ZM9.15036 0.527306L7.70655 7.49164H9.45196L10.8951 0.527306H9.15036ZM6.56825 0.527306L4.75149 5.26749L4.01662 1.237C3.93035 0.787079 3.58983 0.527306 3.21169 0.527306H0.24171L0.200195 0.7295C0.80964 0.865981 1.50236 1.08626 1.92201 1.32193C2.17886 1.46587 2.25215 1.59174 2.33647 1.93386L3.72839 7.49164H5.57303L8.40122 0.527306H6.56825Z",fill:"#254AA5"})}),wh=({enterAnother:e,bonusPercent:t,currency:n,isAntistock:r})=>i.jsxs("div",{className:Ae.bonusBlock,children:[!r&&i.jsx(N.Icon,{name:"Fire"}),i.jsx("div",{children:r?e>0?`Deposit an additional ${g.formatPrice({amount:e,currency:n})} and receive a ${t}% bonus.`:`Congratulations! You just unlocked a ${t}% bonus!`:e>0?`Enter another ${g.formatPrice({amount:e,currency:n})} and receive an additional bonus of ${t}%`:`You will receive an additional bonus of ${t}%`})]}),El=({isModal:e=!0})=>{const[t,n]=L.useState({amount:"100",gateway:""}),[r,u]=L.useState({}),[a,s]=L.useState(!1),{isAntistock:o}=g.useGeneralStore(),{gatewaysDetail:c,setGatewaysDetail:l,dashInfo:h,balanceSettings:f,setIsBalanceModalOpen:m}=g.useCustomerDashboardStore(),p=g.useNavigate(),{notifications:b,setNotifications:_}=g.useNotificationStore(),{setIsOpen:E}=g.useModalStore(),x=g.useGetTsId();L.useEffect(()=>{c||(async()=>{var Y;const O=f!=null&&f.isEnabled?(Y=f==null?void 0:f.topUpSettings)==null?void 0:Y.gateways:[],X=await fu(O);l(X)})()},[f,c]);const k=()=>{const B={};return(!t.amount||Number(t.amount)<1)&&(B.amount="The balance field cannot be empty."),t.gateway||(B.gateway="Select pay method"),u(B),Object.keys(B).length===0},y=async B=>{if(B.preventDefault(),!!k()){s(!0);try{const{data:O}=await yh({price:{amount:Number(t.amount),currency:f!=null&&f.isEnabled?f.topUpSettings.currency:"USD"},gateway:t.gateway,customerEmail:(h==null?void 0:h.email)||"",tsId:x});_([...b,{message:"Order created successfully",status:"success",id:g.v4()}]),p(`/charges/${O.data.chargeId}`)}catch(O){const X=O;_([...b,{message:`Order creation failed: ${X.message}`,status:"error",id:g.v4()}])}finally{m(!1),s(!1)}}},D=()=>{E(!1),setTimeout(()=>{m(!1)},300)};if(!f||!f.isEnabled)return null;const{topUpSettings:{currency:S,topUpBonusEnabled:I,bonusPercent:M,minimumTopUpForBonus:H}}=f,U=Number(t.amount),P=I&&!Number.isNaN(U)?H-U:H;return i.jsx(i.Fragment,{children:a?i.jsx(Zi,{}):i.jsxs("div",{className:g.clx(Ae.modal,{[Ae.antistock]:o}),onClick:B=>B.stopPropagation(),id:o?"randomId":void 0,children:[i.jsxs("div",{className:Ae.header,children:[i.jsx("h2",{id:"h3",className:Ae.headerTitle,children:"Top Up Account Balance"}),e&&i.jsx(N.Icon,{name:"X",onClick:D,className:Ae.closeIcon,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("form",{onSubmit:y,className:Ae.form,children:[i.jsxs("label",{className:Ae.label,children:[i.jsx(N.Input,{label:"Enter Amount",type:"number",placeholder:"1000",value:t.amount,onChange:B=>n(O=>({...O,amount:B})),required:!0}),r.amount&&i.jsx("span",{className:Ae.error,children:r.amount})]}),I&&P!==void 0&&i.jsx(wh,{enterAnother:P,bonusPercent:M,currency:S,isAntistock:o}),c&&i.jsx("div",{className:Ae.gatewayList,children:c.length>0?c.map(B=>i.jsxs("div",{className:g.clx(Ae.gatewayButton,{[Ae.selected]:t.gateway===B.name}),onClick:()=>n(O=>({...O,gateway:B.name})),children:[B.name==="ForebitPayments"?i.jsx("div",{className:Ae.gatewayIcon,children:i.jsx(pl,{})}):i.jsx("img",{alt:B.displayName,src:g.convertCfImageIdToUrl(B.logoCfImageId,"100"),className:Ae.gatewayIcon}),i.jsx("div",{className:Ae.gatewayName,children:B.displayName})]},B.name)):i.jsx("span",{children:"Gateways not found"})}),!c&&(o?i.jsx(N.Loader,{}):i.jsx(ir,{speed:2,width:"100%",height:"220px",viewBox:"0 0 600 220",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"})})),r.gateway&&i.jsx("span",{className:Ae.error,children:r.gateway}),i.jsx(N.Button,{type:"Primary",disabled:!t.gateway||a,className:Ae.submitButton,children:"Continue to Checkout"}),i.jsxs("div",{children:[i.jsx(Pi,{}),i.jsx(Ri,{isAntistock:o})]})]})]})})},yl=()=>{const[e,t]=L.useState([]),{balanceSettings:n,balance:r,isBalanceModalOpen:u,setIsBalanceModalOpen:a}=g.useCustomerDashboardStore(),{page:s,setPage:o}=g.usePaginationPagesStore(),{setIsOpen:c}=g.useModalStore(),[l,h]=L.useState(!0),[f,m]=L.useState(0),[p,b]=L.useState("Newest");L.useEffect(()=>{o(1)},[]),L.useEffect(()=>{(async()=>{h(!0);const{list:S,totalCount:I}=await Eh(s);t(S),m(I),h(!1)})()},[s]);const _=(D,S)=>{var U;const I={},M=new Date,H=[...D].sort((P,B)=>{const O=new Date(P.createdAt).getTime(),X=new Date(B.createdAt).getTime();return S==="Newest"?X-O:O-X});for(const P of H){const B=new Date(P.createdAt),O=B.toDateString()===M.toDateString()?"Today":B.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});I[O]||(I[O]=[]),(U=I[O])==null||U.push(P)}return I},E=({id:D,price:S,status:I,description:M})=>{const H=g.formatPrice({amount:Math.abs(S.amount),currency:S.currency});return i.jsxs("div",{className:Ae.transactionItem,children:[i.jsxs("div",{className:Ae.transactionDetails,children:[i.jsx(N.Icon,{className:Ae.iconWrapper,name:I===qr.ADDED?"Plus":"Minus",width:20,height:20}),i.jsxs("div",{className:Ae.transactionInfo,children:[i.jsx("div",{className:Ae.transactionTitle,id:"h4",children:M}),i.jsxs("div",{className:Ae.transactionId,id:"md",children:["ID: ",D]})]})]}),i.jsxs("div",{className:g.clx(Ae.transactionAmount,{[Ae.added]:I===qr.ADDED,[Ae.removed]:I===qr.REMOVED}),id:"lg",children:[I===qr.ADDED?"+":"-"," ",H]})]},D)},x=()=>{if(e!=null&&e.length){const D=_(e,p);return i.jsxs("div",{className:Ae.transactionsContainer,children:[i.jsx("div",{className:Ae.transactionsContent,children:Object.entries(D).map(([S,I])=>i.jsxs("div",{id:"lg",children:[i.jsx("div",{className:Ae.transactionDate,id:"md",children:S}),I.map(E)]},S))}),i.jsx(mu,{className:Ae.pagination,currentPage:s,totalCount:f,onPageChange:o})]})}return i.jsx(ha,{title:"Transaction History",description:"When you top up your account balance or receive a refund from our team, you'll see a history of transactions here.",className:Ae.noItemsBlock})},k=()=>{a(!0),c(!0)},y=()=>{a(!1),c(!1)};return i.jsxs(i.Fragment,{children:[(n==null?void 0:n.isEnabled)&&i.jsx("div",{className:Ae.balanceContainer,children:i.jsxs("div",{className:Ae.balanceHeader,children:[r&&i.jsxs("div",{className:Ae.balanceAmount,children:[i.jsx("span",{className:Ae.balanceAmountTitle,id:"lg",children:"Your balance"}),i.jsx("span",{className:Ae.balanceAmountValue,id:"h4",children:g.formatPrice(r)})]}),i.jsxs(N.Button,{onClick:D=>{D.stopPropagation(),k()},className:Ae.addBalanceButton,children:[i.jsx(N.Icon,{name:"Plus"}),i.jsx("span",{children:"Add balance"})]})]})}),i.jsxs("div",{className:Ae.transactionsHeader,children:[(e==null?void 0:e.length)>0?i.jsx(fa,{title:"Transactions"}):null,(e==null?void 0:e.length)>0&&i.jsx(N.Select,{options:["Newest","Oldest"],value:p,onChange:D=>{b(D)},style:{width:"110px"}})]}),l?i.jsx("div",{className:Ae.loaderContainer,children:i.jsx(N.Loader,{})}):i.jsx("div",{children:x()}),u&&(n==null?void 0:n.isEnabled)&&i.jsx(N.Modal,{close:y,children:i.jsx(El,{})})]})},Dh="_home_1uch5_1",Lh="_content_1uch5_13",Ph="_tablet_1uch5_28",Rh="_mobile_1uch5_31",Mh="_statContainer_1uch5_35",Oh="_text_1uch5_47",jh="_iconWrapper_1uch5_53",Fh="_loader_1uch5_57",Bh="_title_1uch5_65",cn={home:Dh,content:Lh,tablet:Ph,mobile:Rh,statContainer:Mh,text:Oh,iconWrapper:jh,loader:Fh,title:Bh},Hh="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%202V9.85233L13.5806%2010.9427V6.58116L6.41169%208.82252V4.89257L17%202Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M13.5806%2010.9427L13.5805%2014.691L3%2018V9.79935L6.41169%208.82252L6.41152%2013.2598L13.5806%2010.9427Z'%20fill='%23FF3F19'/%3e%3c/svg%3e",Tl=e=>me.createElement("svg",{width:20,height:20,viewBox:"0 0 19 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},me.createElement("path",{d:"M0.0103662 23.5362C0.0538052 22.4425 0.370173 21.4309 1.08058 20.6127C1.92699 19.6379 2.91375 19.2329 4.14841 19.1732C4.162 20.1401 4.15111 21.1085 4.15091 22.0756L4.70583 22.0747L7.42027 22.0755C7.95952 22.0752 8.50027 22.0844 9.03933 22.0742L9.17755 22.0731L10.6132 22.0759C10.8265 22.0759 11.0767 22.1021 11.2852 22.0658C11.3052 22.0703 11.3534 22.0735 11.3625 22.0928C11.3917 22.1543 11.3688 31.0517 11.3725 31.9631C11.1563 32.0856 10.2676 31.8701 10.0303 31.7947C9.89866 31.7528 9.644 31.6914 9.54946 31.5874L9.51914 31.584C9.46943 31.5736 9.44171 31.5537 9.40126 31.5222C9.30218 31.5131 9.14954 31.4132 9.07718 31.343C9.00129 31.3163 8.92757 31.2576 8.85921 31.2134L8.85617 31.2002C8.5748 31.0715 8.14929 30.6244 7.94318 30.376C7.35205 29.6639 6.93892 28.7659 6.83493 27.8203C6.78763 27.3904 6.7994 26.9595 6.80055 26.5277C6.80084 26.4202 6.82996 26.126 6.78242 26.0387L6.71237 26.023C6.54382 26.0528 6.34316 26.0328 6.17124 26.0324L1.0194 26.0325L0.942306 26.0307C0.74237 26.0326 0.173082 26.0689 0.0224192 26.0192L0.00848581 26.0029C0.022853 25.8597 0.0136924 25.7065 0.013837 25.562L0.0113299 24.6651L0.0117161 24.5253C0.0150266 24.1956 0.0145767 23.8659 0.0103662 23.5362Z",fill:"currentColor"}),me.createElement("path",{d:"M6.79824 0.00127802C6.88001 -0.000781892 6.96176 -0.000351703 7.04349 0.00256876C7.12523 0.00549261 7.20682 0.0108998 7.28827 0.0187905C7.36968 0.0266845 7.45082 0.0370518 7.53169 0.0498924C7.61259 0.0627296 7.69305 0.078018 7.77309 0.0957576C7.85312 0.113501 7.93259 0.133663 8.0115 0.156244C8.09044 0.178828 8.16868 0.203796 8.24624 0.231148C8.3238 0.258499 8.40053 0.28819 8.47645 0.32022C8.55237 0.352247 8.62736 0.386559 8.70141 0.423156L8.71428 0.423492C8.76476 0.450874 8.815 0.479135 8.8661 0.50516C8.947 0.550491 9.03065 0.593185 9.10687 0.646856L9.24939 0.733144C9.31674 0.78126 9.38361 0.83049 9.45202 0.87695C10.462 1.67615 11.1434 2.77146 11.325 4.10211C11.4076 4.70784 11.3729 5.34243 11.372 5.9541C11.4625 5.96599 11.5526 5.9664 11.6436 5.96762C12.6033 5.93794 13.5708 5.96289 14.5314 5.96294C15.459 5.96305 16.3927 5.93758 17.3195 5.9633C17.5874 5.96523 17.9062 6.00101 18.1677 5.95273C18.1496 6.13096 18.1583 6.31472 18.1585 6.49401L18.1598 7.38388L18.1595 7.51855C18.1591 7.83084 18.14 8.15609 18.1607 8.46685C18.109 9.73893 17.6972 10.8198 16.8003 11.6891C15.9969 12.4676 15.0894 12.76 14.0228 12.8194L14.021 10.9083C14.0209 10.5892 14.0389 10.2573 14.0163 9.93952C14.0002 9.92849 13.9879 9.91884 13.9692 9.9133C13.7941 9.93418 13.6055 9.92148 13.4293 9.92133H9.15258L9.04077 9.92082L7.56664 9.92209C7.31676 9.92224 7.04528 9.94526 6.79858 9.90893L6.79824 0.00127802Z",fill:"currentColor"}),me.createElement("path",{d:"M4.13987 5.96279C4.65941 5.9653 5.17894 5.96467 5.69847 5.96091C5.70059 7.27995 5.71757 8.60219 5.69833 9.92082L4.15072 9.92046L4.15106 11.4065C4.15096 11.6783 4.1406 11.9555 4.15443 12.2266C4.73799 12.8393 5.31307 13.4655 5.90921 14.0644L5.98321 14.0407C6.25311 14.0833 6.6928 14.0501 6.97981 14.0499L12.7386 14.0492L13.5943 14.0482C13.7363 14.0479 13.9068 14.0286 14.0457 14.0577L15.8019 15.9078L15.8915 15.997L15.9615 16.0784L15.9955 16.1093L17.4221 17.6163C17.6528 17.8599 17.9077 18.0979 18.1211 18.3569C18.1463 18.3875 18.1599 18.4086 18.1691 18.4477C18.1415 18.6757 18.1577 18.9211 18.1579 19.1514L18.1594 20.4531C18.1597 21.8112 18.142 23.1721 18.1599 24.5297L18.1589 24.6625L18.158 25.5556C18.158 25.7089 18.1437 25.8808 18.1676 26.0315L18.0995 26.031L17.2568 26.0329L17.2101 26.0308C16.2512 26.0486 15.2892 26.0305 14.3299 26.0308C13.7488 26.031 13.0694 26.064 12.4959 26.0258L12.4831 26.0202C12.4481 25.9239 12.4717 22.4806 12.47 22.075L14.0216 22.0744C14.0024 21.3241 14.0324 20.5711 14.0173 19.8203C13.4629 19.2116 12.887 18.6041 12.3052 18.0244L12.293 17.9978C12.0554 18.0392 11.5401 18.0054 11.2777 18.0053L8.9362 18.0074C7.75375 17.9793 6.56306 18.0065 5.37994 18.0069C5.13497 18.007 4.32737 18.0401 4.13472 17.9962L2.36331 16.1262L2.29219 16.0566L2.21959 15.9758L2.15074 15.9102C1.93803 15.6694 1.70849 15.441 1.48797 15.2079L0 13.631C0.0383768 13.4512 0.014078 13.2231 0.013837 13.0369L0.0121494 11.9198L0.0113299 7.52017L0.0122943 7.34622C0.0134032 6.9143 0.0453199 6.37479 0.00371286 5.95329C0.115854 5.96772 0.229056 5.9664 0.341872 5.96777C0.589393 5.96198 0.836946 5.96042 1.08453 5.9631L3.10905 5.96548C3.44789 5.96554 3.80282 5.98825 4.13987 5.96279Z",fill:"currentColor"})),Gi=({children:e})=>i.jsx("div",{className:cn.statContainer,children:e}),kl=({adaptiveStyles:e})=>{var f,m,p;const[t,n]=L.useState(null),{setBalanceSettings:r}=g.useCustomerDashboardStore(),{pageContext:u}=g.usePagesStore(),{general:a,isAntistock:s}=g.useGeneralStore();console.log(a);const{header:o}=g.useLayersStore(),{settings:c}=g.useSettingsStore(),l=s?"Antistock":"Billgang";console.log(c);function h(b){var x,k;const _=b==null?void 0:b.name,E=(k=(x=u==null?void 0:u.listings)==null?void 0:x.filter(y=>y.type==="PRODUCT"))==null?void 0:k.find(y=>y.productData.name===_);return E==null?void 0:E.link.to}return L.useEffect(()=>{const b=async()=>{const{data:E}=await al();n(E)},_=async()=>{const E=await dl();r(E)};b(),_()},[]),t?i.jsxs("div",{className:cn.home,children:[i.jsx(Vl,{adaptiveStyles:e}),i.jsx("h3",{id:"h3",className:cn.title,children:s?"Home":"Your Statistics"}),i.jsxs("div",{className:g.clx(cn.content,{[cn.desktop]:e==="desktop",[cn.tablet]:e==="tablet",[cn.mobile]:e==="mobile"}),children:[i.jsxs(Gi,{children:[i.jsx(vt,{iconName:"Calendar",title:"Customer since",value:g.formatTimestamp(t.createdAt)}),i.jsx(vt,{iconName:"CurrencyCircleDollar",title:"Total spent",value:g.formatPrice({amount:t.totalSpent})}),i.jsx(vt,{iconName:"Medal",title:"Top",value:`#${t.ratingPlacement}`,children:t.ratingPlacement>1&&i.jsxs("div",{className:cn.text,id:"md-bold",children:[i.jsx(N.Icon,{name:"ArrowUp",className:cn.iconWrapper,width:16,height:16,fill:"var(--text-secondary)"}),"Spend"," ",g.formatPrice({amount:t.spendMoreDefaultCurrencyForNextPlace??t.spendMoreUsdForNextPlace??0,currency:(f=t.balance)==null?void 0:f.currency})," ","more to be #",t.ratingPlacement-1]})}),s?null:i.jsx(vt,{iconName:"Star",title:"Average review",value:t.averageReview})]}),t.topSpenderProduct?i.jsx(vt,{image:g.convertCfImageIdToUrl(t.topSpenderProduct.image.cfId),imageName:t.topSpenderProduct.name,iconName:"Crown",title:"Top spent",value:`${g.formatPrice({amount:t.topSpenderProduct.amountSpentUsd||0})} spent`,productSlug:h(t.topSpenderProduct)}):i.jsx(vt,{image:"empty",iconName:"Crown",title:"Top spent",value:`${g.formatPrice({amount:0})} spent`}),i.jsxs(Gi,{children:[i.jsx(vt,{iconName:"Bag",title:"Purchases",value:t.totalPurchases}),i.jsx(vt,{iconName:"Eye",title:"Visits",value:t.visits}),s&&i.jsx(vt,{title:"Powered by",value:c!=null&&c.showPoweredBy?"Antistock":(a==null?void 0:a.info.name)||"",logo:c!=null&&c.showPoweredBy?void 0:g.convertCfImageIdToUrl(((m=a==null?void 0:a.info.logo)==null?void 0:m.cfId)||"A5gbiev6F8AaBvp6M146Kw/4ecd0fb9-8ebc-44e9-fa1c-c36f61f4bd00"),customLogo:c!=null&&c.showPoweredBy?i.jsx("div",{style:{width:"48px",height:"48px",padding:"10px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--border-radius)",backgroundColor:"var(--surface-secondary)"},children:i.jsx(Tl,{width:22,height:22})}):void 0}),!s&&i.jsx(vt,{title:"Powered by",value:l,logo:Hh}),s?null:i.jsx(vt,{title:"Store",value:(a==null?void 0:a.info.name)||"",logo:g.convertCfImageIdToUrl((o==null?void 0:o.blockSettings.logo.url)||((p=a==null?void 0:a.info.logo)==null?void 0:p.cfId)||"A5gbiev6F8AaBvp6M146Kw/4ecd0fb9-8ebc-44e9-fa1c-c36f61f4bd00")})]}),t.favoriteProduct?i.jsx(vt,{image:g.convertCfImageIdToUrl(t.favoriteProduct.image.cfId),imageName:t.favoriteProduct.name,iconName:"Heart",title:"Favorite product",value:`bought ${t.favoriteProduct.purchasedTimes} times`,productSlug:h(t.favoriteProduct)}):i.jsx(vt,{image:"empty",iconName:"Heart",title:"Favorite product",value:"bought 0 times"})]})]}):i.jsx("div",{className:cn.loader,children:i.jsx(N.Loader,{})})},Uh="_container_caax0_1",Vh="_tablet_caax0_15",$h="_mobile_caax0_18",zh="_progress_caax0_22",qh="_status_caax0_26",Zh="_name_caax0_37",Wh="_completed_caax0_44",Yh="_title_caax0_50",Gh="_description_caax0_58",Xh="_button_caax0_65",Kh="_achievement_caax0_73",Qh="_progressText_caax0_92",Jh="_progressTextStart_caax0_99",e3="_progressBackground_caax0_103",t3="_progressForeground_caax0_107",n3="_icon_caax0_111",bt={container:Uh,tablet:Vh,mobile:$h,progress:zh,status:qh,name:Zh,completed:Wh,title:Yh,description:Gh,button:Xh,achievement:Kh,progressText:Qh,progressTextStart:Jh,progressBackground:e3,progressForeground:t3,icon:n3},Ut=(e,t,n)=>e===1?t:n??`${t}s`,Al=({adaptiveStyles:e})=>{const{notifications:t,setNotifications:n}=g.useNotificationStore(),{setBalance:r}=g.useCustomerDashboardStore(),[u,a]=L.useState(null),s=async()=>{const f=(await Pf()).map(m=>({...m,isClaimed:!1}));a(f)};L.useEffect(()=>{s()},[]);async function o(h){try{if(await q2(h),u){const m=u==null?void 0:u.map(p=>p.id===h.id?{...p,isClaimed:!0}:p);a(m)}n([...t,{message:"Reward claimed successfully",status:"success",id:g.v4()}]);const f=await oa();a(null),r(f),s()}catch{n([...t,{message:"Failed to claim reward",status:"error",id:g.v4()}])}}const c=u&&u.length===0,l=u&&u.length>0;return i.jsx(i.Fragment,{children:c?i.jsx(ha,{title:"Rewards Unavailable",description:"Check back in the future to join our reward program."}):i.jsxs(i.Fragment,{children:[i.jsx(fa,{title:"Rewards",description:"To unlock an exclusive reward, complete everything on this checklist"}),i.jsxs("div",{className:g.clx(bt.container,{[bt.tablet]:e==="tablet",[bt.mobile]:e==="mobile"}),children:[l&&u.map(h=>i.jsx(r3,{achievement:h,onClick:f=>o(f)},h.id)),!l&&[...new Array(6)].map((h,f)=>i.jsx(ir,{speed:2,width:"100%",height:400,viewBox:"0 0 300 300",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"100%",height:"300px"})},f))]})]})})},r3=({achievement:e,onClick:t})=>{const{isAntistock:n}=g.useGeneralStore(),[r,u]=o3(e),[a,s,o]=c3(e),[c,l]=L.useState(!1),h=s>=o;return i.jsxs("div",{className:bt.achievement,children:[i.jsx(u3,{percentage:Math.min(a,100)}),i.jsx("div",{className:`${bt.status} ${h&&!n?bt.completed:""}`,id:"md",children:h?i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"Confetti"}),i.jsx("span",{id:"md",children:"Completed!"})]}):`Done: ${s} / ${o}`}),i.jsxs("div",{className:bt.title,children:[i.jsx(N.Icon,{name:"Bag",className:bt.icon,fill:"var(--text-action)",width:18,height:18}),i.jsx("div",{className:bt.name,id:"h5",children:r})]}),i.jsx("span",{className:bt.description,id:"md",children:u}),i.jsx(N.Button,{type:h&&!e.isClaimed?"Primary":"Secondary",className:bt.button,disabled:!h,onClick:async()=>{l(!0),await t(e),l(!1)},children:e.isClaimed?i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"CheckCircle",fill:"var(--text-secondary)"}),i.jsxs("span",{children:["Your claimed ",Xi(e)," bonus"]})]}):i.jsxs(i.Fragment,{children:[!c&&(h?i.jsx("span",{children:"Claim"}):Xi(e)),c&&i.jsx(N.Loader,{})]})})]})},u3=({percentage:e,radius:t=40,strokeWidth:n=8})=>{const r=t+n/2,u=r*2,a=2*Math.PI*t,s=a-e/100*a;return i.jsxs("div",{style:{width:u,height:u},className:bt.progress,children:[i.jsxs("svg",{"aria-hidden":"true",width:u,height:u,children:[i.jsx("circle",{cx:r,cy:r,r:t,fill:"transparent",className:bt.progressBackground,strokeWidth:n}),i.jsx("circle",{cx:r,cy:r,r:t,fill:"transparent",strokeWidth:n,strokeDasharray:`${a} ${a}`,strokeDashoffset:s,className:bt.progressForeground})]}),i.jsxs("span",{className:g.clx(bt.progressText,{[bt.progressTextStart]:e!==0}),id:"md",children:[Math.min(e,100),"%"]})]})},a3=e=>{switch(e.rewardRule.rewardType){case ru.Balance:return`${g.formatPrice(e.rewardRule.rewardOptions.balance)} on the balance`;case ru.Product:return`products: ${e.rewardRule.rewardOptions.productsWithVariants.map(t=>`${t.quantity} ${t.productName} (${t.variantName})`).join(", ")}`}},Xi=e=>{switch(e.rewardRule.rewardType){case ru.Balance:return g.formatPrice(e.rewardRule.rewardOptions.balance);case ru.Product:return`${e.rewardRule.rewardOptions.productsWithVariants.map(t=>`${t.quantity} ${t.productName} (${t.variantName})`).join()}`}},s3=e=>{const{ruleType:t,ruleOptions:n}=e.rewardRule,r=a3(e),u=e.progress;switch(t){case _t.Spend:return`Spend $${n.forEach} in total purchases to receive ${r}. You've spent $${u} so far.`;case _t.Order:{const a=n.ordersCount;return`Place ${a} ${Ut(a,"order")} to receive ${r}. You've made ${u} ${Ut(u,"order")} so far.`}case _t.Referral:{const a=n.minReferrals,s=n.minCompletedOrders;return`Have ${a} ${Ut(a,"person")} sign up via your referral link and make at least ${s} ${Ut(s,"purchase")} to receive ${r}. You've referred ${u} ${Ut(u,"friend")} so far.`}case _t.Review:{const a=n.minReviews,s=n.minStars;return`Leave ${a} ${Ut(a,"review")} with a minimum rating of ${s} to receive ${r}. You've left ${u} ${Ut(u,"review")} so far.`}case _t.Vouch:{const a=n.minVouches;return`Leave ${a} ${Ut(a,"vouch","vouches")} to receive ${r}. You've left ${u} ${Ut(u,"vouch","vouches")} so far.`}}},i3=e=>{const{ruleType:t,ruleOptions:n}=e.rewardRule;switch(t){case _t.Spend:return`Spend $${n.forEach} at our store`;case _t.Order:{const r=n.ordersCount;return`Place ${r} ${Ut(r,"order")}`}case _t.Referral:{const r=n.minReferrals;return`Refer ${r} ${Ut(r,"friend")}`}case _t.Review:{const r=n.minReviews,u=n.minStars;return`Leave ${r} ${Ut(r,"review")} with a minimum rating of ${u}`}case _t.Vouch:{const r=n.minVouches;return`Leave ${r} ${Ut(r,"vouch","vouches")}`}}},o3=e=>[i3(e),s3(e)],c3=e=>{let t;switch(e.rewardRule.ruleType){case _t.Spend:t=e.rewardRule.ruleOptions.forEach;break;case _t.Order:t=e.rewardRule.ruleOptions.ordersCount;break;case _t.Referral:t=e.rewardRule.ruleOptions.minReferrals;break;case _t.Review:t=e.rewardRule.ruleOptions.minReviews;break;case _t.Vouch:t=e.rewardRule.ruleOptions.minVouches;break;default:t=0}const n=Math.round((e.progress/Math.max(t,1)*100+Number.EPSILON)*100)/100;return[t===0?100:n,e.progress,t]},l3="_appContainer_1bj0v_1",d3="_noAnimation_1bj0v_11",f3="_mobile_1bj0v_19",h3="_appContainerAntistock_1bj0v_28",p3="_contentContainer_1bj0v_44",m3="_contentContainerAntistock_1bj0v_64",Gn={appContainer:l3,noAnimation:d3,mobile:f3,appContainerAntistock:h3,contentContainer:p3,contentContainerAntistock:m3},g3="_apiPage_pkays_1",b3="_cards_pkays_8",_3="_card_pkays_8",x3="_cardHeader_pkays_24",C3="_cardHeaderRow_pkays_30",E3="_cardTitle_pkays_37",y3="_cardDescription_pkays_42",T3="_apiKeyMeta_pkays_47",k3="_regenerateButton_pkays_62",A3="_fieldRow_pkays_68",S3="_fieldLabel_pkays_75",I3="_fieldValueWrapper_pkays_80",N3="_fieldValue_pkays_80",v3="_copyButton_pkays_98",w3="_twoColumn_pkays_116",D3="_selectorGroup_pkays_127",L3="_selectorLabel_pkays_133",P3="_codeBlockGroup_pkays_145",R3="_codeBlock_pkays_145",M3="_codeHeader_pkays_160",O3="_codeTitle_pkays_169",j3="_codeMethod_pkays_175",F3="_codeBody_pkays_185",B3="_jsonString_pkays_197",H3="_jsonNumber_pkays_201",U3="_jsonBoolean_pkays_205",V3="_endpointDescriptionList_pkays_209",re={apiPage:g3,cards:b3,card:_3,cardHeader:x3,cardHeaderRow:C3,cardTitle:E3,cardDescription:y3,apiKeyMeta:T3,regenerateButton:k3,fieldRow:A3,fieldLabel:S3,fieldValueWrapper:I3,fieldValue:N3,copyButton:v3,twoColumn:w3,selectorGroup:D3,selectorLabel:L3,codeBlockGroup:P3,codeBlock:R3,codeHeader:M3,codeTitle:O3,codeMethod:j3,codeBody:F3,jsonString:B3,jsonNumber:H3,jsonBoolean:U3,endpointDescriptionList:V3},Oa="Balance",jn={Number:"NUMBER",Textarea:"LARGE_TEXT",Checkbox:"CHECK_BOX",Hidden:"HIDDEN"},$3={customerEmail:"",recaptcha:"",gateway:"",paymentMethod:"",parts:[],customFields:{},discordSocialConnectId:null,coupon:null,tsId:""},Ki=(e,t)=>{var l;const{productId:n,productVariantId:r,quantity:u,chargeType:a}=t,s=e.find(h=>h.id===n);if(!s)throw new Error("Product does not exist");const o=s.variants.find(h=>h.id===r);if(!o)throw new Error("Variant does not exist");if(a==="RECURRING"&&!o.subscriptionSettings)throw new Error("Variant does not have subscription settings");if(u!==void 0&&((l=o.quantity)!=null&&l.available)&&o.quantity.available<u)throw new Error("Not enough quantity available");const c=g.useCartStore.getState().cart;if(c.parts.length>0){const h=e.find(m=>m.id===c.parts[0].productId),f=h==null?void 0:h.variants.find(m=>m.id===c.parts[0].productVariantId);if(f&&o.price.currency!==f.price.currency)throw new Error("Product have different currency")}return o},z3=(e,t)=>{if(!e.volumeDiscounts||e.volumeDiscounts.length===0)return 0;const n=e.volumeDiscounts.filter(u=>t>=u.amount);return n.length===0?0:n.reduce((u,a)=>a.amount>u.amount?a:u).percentage},q3=(e,t)=>{let n=0,r=0;return e.forEach(u=>{var m,p;const a=t.find(b=>(b==null?void 0:b.id)===u.productId),s=a==null?void 0:a.variants.find(b=>b.id===u.productVariantId);if(!s)return;const{gateway:o}=g.useCartStore.getState().cart,c=(s==null?void 0:s.gateways)||[],l=c.some(b=>b.name===o&&b.overrodePrice)?(m=c.find(b=>b.name===o))==null?void 0:m.overrodePrice:null;let h=0,f=0;if(u.chargeType==="ONE_TIME"?(h=(l==null?void 0:l.amount)||(s==null?void 0:s.price.amount)||0,f=h*u.quantity):f=s!=null&&s.subscriptionSettings?s.subscriptionSettings.price.amount+(((p=s.subscriptionSettings.entryFee)==null?void 0:p.amount)||0):0,n+=f,u.chargeType==="ONE_TIME"){const b=z3(s,u.quantity),_=f*(1-b/100);r+=_}else r+=f}),{total:n,totalWithVolumeDiscounts:r}},Z3=(e,t)=>({isRequired:t.some(r=>{var a;const u=e.find(s=>(s==null?void 0:s.id)===r.productId);return(a=u==null?void 0:u.variants.find(s=>s.id===r.productVariantId))==null?void 0:a.discordSettings.isRequired}),isEnabled:t.some(r=>{var a;const u=e.find(s=>(s==null?void 0:s.id)===r.productId);return(a=u==null?void 0:u.variants.find(s=>s.id===r.productVariantId))==null?void 0:a.discordSettings.isEnabled})}),Qi=e=>new Set(e.gateways.map(t=>t.name)),ja={availableGateways:[],requiresSignInGateways:[]},Ji=(e,t)=>{if(t.length===0)return ja;const n=e[0];if(!n)return ja;const r=t.find(o=>o.id===n.productId),u=r==null?void 0:r.variants.find(o=>o.id===n.productVariantId);if(!u)return ja;const a=Qi(u);for(const o of e){const c=t.find(f=>f.id===o.productId);if(!c)continue;const l=c.variants.find(f=>f.id===o.productVariantId);if(!l)continue;const h=Qi(l);for(const f of a)h.has(f)||a.delete(f)}return!localStorage.getItem("token")&&a.has(Oa)?(a.delete(Oa),{availableGateways:[...a],requiresSignInGateways:[Oa]}):{availableGateways:[...a],requiresSignInGateways:[]}},eo=(e,t)=>{if(e.length===0)return[];const r=e.map(a=>{const s=t.find(c=>c.id===a.productId),o=s==null?void 0:s.variants.find(c=>c.id===a.productVariantId);return(o==null?void 0:o.customFields)??[]}).flat().reduce((a,s)=>{const o=a[s.name];return o?(s.required&&!o.required&&(a[s.name]={...s,value:s.defaultValue}),a):(a[s.name]={...s,value:s.defaultValue},a)},{});return Object.values(r).map(a=>({...a,value:""}))},W3=(e,t)=>{const n=t.find(u=>u.id===e.productId),r=n==null?void 0:n.variants.find(u=>u.id===e.productVariantId);return e.chargeType==="RECURRING"?!!(r!=null&&r.subscriptionSettings):!1},hu=()=>{const{cart:e,products:t,coupon:n,pending:r,applyCouponPending:u,customerEmail:a,setCart:s,setProducts:o,setCoupon:c,setPending:l,setApplyCouponPending:h}=g.useCartStore(),f=async _=>{var M;h(!0);const{cart:E}=g.useCartStore.getState(),{gateway:x,parts:k}=E,{notifications:y,setNotifications:D}=g.useNotificationStore.getState();x||(h(!1),D([...y,{message:"There should be a gateway for the coupon",status:"error",id:g.v4()}]));const S=k.map(H=>H.productId);let I=null;try{const{data:H}=await B2({gateway:x,couponName:_,productIds:S});I=H.data,D([...y,{message:"Coupon is applied",status:"success",id:g.v4()}]),s(U=>({...U,coupon:_}))}catch(H){const U=H;D([...y,{message:`Coupon is not applied: ${U.message}`,status:"error",id:g.v4()}]),s(P=>({...P,coupon:null})),c(null),h(!1)}if(h(!1),(M=I==null?void 0:I.restrictToProductIds)!=null&&M.length&&!S.every(H=>{var U;return(U=I==null?void 0:I.restrictToProductIds)==null?void 0:U.includes(H)}))throw new Error("Coupon can't be applied to such products");return c(I),I},b={reset(){s({...$3})},addProducts:_=>{const E=g.useCartStore.getState().products,x=_.filter(k=>!E.some(y=>y.id===k.id));o([...E,...x])},addProductToCart:_=>{const E=g.useCartStore.getState().cart;try{Ki(t,_)}catch(k){throw new Error(k)}const x=E.parts.find(k=>k.productId===_.productId&&k.productVariantId===_.productVariantId&&k.chargeType===_.chargeType);if(x)return b.updateQuantityOfProduct({...x,quantity:(x.quantity||1)+(_.quantity||1),chargeType:_.chargeType});if(E.parts.length&&Ji([...E.parts,_],t).availableGateways.length===0)throw new Error("No common payment gateways available");s({...E,parts:[...E.parts,_]}),E.coupon&&f(E.coupon)},removeProduct({productId:_,productVariantId:E}){s(x=>({...x,parts:x.parts.filter(k=>k.productId!==_||k.productVariantId!==E)})),e.coupon&&f(e.coupon)},getPossibleGateways(){return Ji(e.parts,t)},removeCoupon(){c(null)},getDiscordSettings(){return Z3(t,e.parts)},updateQuantityOfProduct(_){Ki(t,_),s(E=>({...E,parts:E.parts.map(x=>x.productId===_.productId&&x.productVariantId===_.productVariantId?{...x,quantity:_.quantity,chargeType:_.chargeType}:x)})),e.coupon&&f(e.coupon)},getTotalAndDiscount(){const{coupon:_}=g.useCartStore.getState(),{total:E,totalWithVolumeDiscounts:x}=q3(e.parts,t);let k;const y=x;return _&&_.discount?!_.isFixed&&_.discount===100?k=0:k=_.isFixed?Math.max(0,y-_.discount):y*(1-_.discount/100):x!==E&&(k=x),{total:E,totalWithVolumeDiscounts:x!==E?x:void 0,totalWithDiscount:k}},setGateway(_){s(x=>({...x,gateway:_}));const{isAntistock:E}=g.useGeneralStore.getState();e.coupon&&!E&&f(e.coupon)},setPaymentMethod(_){s(E=>({...E,paymentMethod:_}))},async submitCart(_){l(!0);const{cart:E}=g.useCartStore.getState(),{discordInfo:x}=g.useDiscordStore.getState();let k;if(E.parts&&a&&W3(E.parts[0],t))try{const{data:y}=await T2({gateway:E.gateway,coupon:E.coupon,partOrder:E.parts[0],referralCode:localStorage.getItem("referralCode"),discordSocialConnectId:x!=null&&x.authorized?x.id:null,customerEmail:a,recaptcha:_,customFields:{...E.customFields},tsId:g.useGetTsId()});k=y.data}catch(y){console.error(y)}else try{const{data:y}=await g2({gateway:E.gateway,parts:[...E.parts],coupon:E.coupon,customerEmail:E.customerEmail,referralCode:localStorage.getItem("referralCode"),recaptcha:_,customFields:{...E.customFields},tsId:g.useGetTsId(),discordSocialConnectId:x!=null&&x.authorized?x.id:null,usePriorityReplacement:E.usePriorityReplacement===!0});k=y.data}catch(y){const D=y,{notifications:S,setNotifications:I}=g.useNotificationStore.getState();I([...S,{message:`Failed to create order: ${D.message}`,status:"error",id:g.v4()}])}if(l(!1),k)return k;throw new Error("Failed to create order")},setDiscordSocialConnectId(_){s(E=>({...E,discordSocialConnectId:_}))},setCustomFields(_){s(E=>({...E,customFields:{..._}}))}};return L.useEffect(()=>{s(_=>({..._,customerEmail:a??""}))},[a,s]),{cart:e,products:t,coupon:n,pending:r,applyCouponPending:u,applyCoupon:f,...b}},Zn=()=>{const{notifications:e,setNotifications:t}=g.useNotificationStore();return n=>{navigator.clipboard.writeText(n),t([...e,{status:"success",message:"Successfully copied",id:g.v4()}])}},Fa=" ",Ts=(e,t=0)=>{const n=[],r=Fa.repeat(t);if(Array.isArray(e))return n.push(`[
|
|
14
|
+
***************************************************************************** */var $n=function(){return $n=Object.assign||function(t){for(var n,r=1,u=arguments.length;r<u;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},$n.apply(this,arguments)};function Rf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]]);return n}var Mf=function(){return Math.random().toString(36).substring(6)},Of=function(e){var t=e.animate,n=t===void 0?!0:t,r=e.backgroundColor,u=r===void 0?"#f5f6f7":r,a=e.backgroundOpacity,s=a===void 0?1:a,o=e.baseUrl,c=o===void 0?"":o,l=e.children,h=e.foregroundColor,f=h===void 0?"#eee":h,m=e.foregroundOpacity,p=m===void 0?1:m,b=e.gradientRatio,_=b===void 0?2:b,E=e.uniqueKey,x=e.rtl,k=x===void 0?!1:x,y=e.speed,D=y===void 0?1.2:y,S=e.style,I=S===void 0?{}:S,M=e.title,H=M===void 0?"Loading...":M,U=e.beforeMask,P=U===void 0?null:U,B=Rf(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","rtl","speed","style","title","beforeMask"]),O=E||Mf(),X="".concat(O,"-diff"),Y="".concat(O,"-animated-diff"),K="".concat(O,"-aria"),ue=k?{transform:"scaleX(-1)"}:null,ae="".concat(D,"s"),se="".concat(_*-1," 0"),_e="".concat(_," 0");return L.createElement("svg",$n({"aria-labelledby":K,role:"img",style:$n($n({},I),ue)},B),H?L.createElement("title",{id:K},H):null,P&&L.isValidElement(P)?P:null,L.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(c,"#").concat(X,")"),style:{fill:"url(".concat(c,"#").concat(Y,")")}}),L.createElement("defs",null,L.createElement("clipPath",{id:X},l),L.createElement("linearGradient",{id:Y,gradientTransform:"translate(".concat(se,")")},L.createElement("stop",{offset:"0%",stopColor:u,stopOpacity:s}),L.createElement("stop",{offset:"50%",stopColor:f,stopOpacity:p}),L.createElement("stop",{offset:"100%",stopColor:u,stopOpacity:s}),n&&L.createElement("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"".concat(se,"; 0 0; ").concat(_e),dur:ae,repeatCount:"indefinite"}))))},ir=function(e){return e.children?L.createElement(Of,$n({},e)):L.createElement(jf,$n({},e))},jf=function(e){return L.createElement(ir,$n({viewBox:"0 0 476 124"},e),L.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),L.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),L.createElement("circle",{cx:"20",cy:"20",r:"20"}))};const fl=({adaptiveStyles:e})=>{const{dashInfo:t,balance:n,setBalance:r,setDashInfo:u,setDashboardSettings:a}=g.useCustomerDashboardStore(),{isAntistock:s}=g.useGeneralStore();return L.useEffect(()=>{(async()=>{var c;try{const[l,h,f]=await Promise.all([o2(),al(),oa()]);u(l.data),r(f);const m=(c=h==null?void 0:h.data)==null?void 0:c.dashboardSettings;m&&a(m)}catch{}})()},[]),i.jsxs("div",{className:g.clx(s?Ze.sidebarAntistock:Ze.sidebar,{[Ze.mobile]:e!=="desktop"}),style:{paddingTop:s?"48px":void 0},children:[!t||!n?i.jsx(i.Fragment,{children:s?i.jsx(N.Loader,{}):i.jsx(Ff,{adaptiveStyles:e})}):!s&&i.jsx(vf,{email:t.email,balance:g.formatPrice(n),adaptiveStyles:e}),i.jsx(Lf,{adaptiveStyles:e})]})},Ff=({adaptiveStyles:e})=>i.jsx(ir,{speed:2,width:320,height:120,viewBox:"0 0 320 120",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:g.clx(Ze.skeleton,{[Ze.mobile]:e!=="desktop"}),style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"280",height:"100"})}),Bf="_balanceContainer_lnfgz_1",Hf="_headerTitle_lnfgz_12",Uf="_balanceHeader_lnfgz_16",Vf="_balanceAmount_lnfgz_23",$f="_balanceAmountTitle_lnfgz_36",zf="_balanceAmountValue_lnfgz_41",qf="_transactionDate_lnfgz_69",Zf="_transactionItem_lnfgz_76",Wf="_transactionDetails_lnfgz_84",Yf="_iconWrapper_lnfgz_89",Gf="_transactionInfo_lnfgz_100",Xf="_transactionTitle_lnfgz_105",Kf="_transactionId_lnfgz_109",Qf="_transactionAmount_lnfgz_115",Jf="_added_lnfgz_120",eh="_removed_lnfgz_123",th="_noItemsBlock_lnfgz_127",nh="_pagination_lnfgz_136",rh="_antistock_lnfgz_142",uh="_modal_lnfgz_153",ah="_header_lnfgz_12",sh="_form_lnfgz_165",ih="_label_lnfgz_171",oh="_bonusBlock_lnfgz_184",ch="_gatewayList_lnfgz_198",lh="_gatewayButton_lnfgz_205",dh="_selected_lnfgz_215",fh="_gatewayName_lnfgz_218",hh="_error_lnfgz_221",ph="_submitButton_lnfgz_226",mh="_addBalanceButton_lnfgz_248",gh="_gatewayIcon_lnfgz_267",bh="_loaderContainer_lnfgz_291",_h="_transactionsContainer_lnfgz_299",xh="_transactionsHeader_lnfgz_8",Ch="_transactionsContent_lnfgz_313",Se={balanceContainer:Bf,headerTitle:Hf,balanceHeader:Uf,balanceAmount:Vf,balanceAmountTitle:$f,balanceAmountValue:zf,transactionDate:qf,transactionItem:Zf,transactionDetails:Wf,iconWrapper:Yf,transactionInfo:Gf,transactionTitle:Xf,transactionId:Kf,transactionAmount:Qf,added:Jf,removed:eh,noItemsBlock:th,pagination:nh,antistock:rh,modal:uh,header:ah,form:sh,label:ih,bonusBlock:oh,gatewayList:ch,gatewayButton:lh,selected:dh,gatewayName:fh,error:hh,submitButton:ph,addBalanceButton:mh,gatewayIcon:gh,loaderContainer:bh,transactionsContainer:_h,transactionsHeader:xh,transactionsContent:Ch},Eh=async(e=1)=>await R2({PageNumber:e}),yh=async({price:e,gateway:t,customerEmail:n})=>await s2({customerEmail:n,price:e,gateway:t,tsId:g.useGetTsId()}),Yi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABcCAYAAAD50zLWAAAVdklEQVR4nM2da4hs2VXHf2ufU1XdffvOnfdN5pmZTGYm88xjMuRhkBAUgyIoBNHgp3wV/CAoYgQ/KQQi+SAiShQ1QhCNCuoXjYqIiZiJ7zFGY5QQNWHIa3K7u6rOXn8/7L3Po+pUdfWde/veBaer6jz22Xvt9V5r7zZ770coYGaA4xbac0jGlQV87VjhSoOkdwMfIthTQAAHMM4HlD+XwEvA14HP5eNTwCeAK8AMOFEwuGVfNg3Y3oQwrc0BKTVjDm7IzLT6IgDlUSW8jEN9SoeN9DLDhYyHEB8B7gVCHtB5Ia8PE+DVwGXg8dwXgAj8JfBrwF8hfYmT5VJeA5hjUBshI8QD2Cvsfth6SkoocpHn6D3AgzIqOmq4nqCVYxUCaQLLtQp4G/DrwL8Av8rCX8PRXHp5bv7yXH5lIS1dSowjgtEeVwEDBBbSHgzABa5CaU8BCzLfrgz0WsNZ2yxInuXfU+CHkD5H5KPM/QmunMDREh3NsWWUuTAzZJbYdASJ29gXRimw97BIVOiOJeQ+SjfrcGPYd1doTChxkd6H+8dZ+Ps5Wk50ZYG/PEdXTsBFHQI2gsSww/C2IhBIZOlSps6nzazpXz37uM4M/XdY7zitD5PeMxF4LfCLuD7AUuhkYbqyCH48R9FbBPaROMKRazCKwCAwV2pAwqIj6U7ggozpyPPXgxJLm32KH+3uyDPdd2GZuYWogJ/G9Rs03MIyGkdL4tGJxRhxerIpGLLTkbiGQEndQxI0QhEz8VqSXFGSGwTZuSqSTUgsfRgTK0OKLSpXeh/Sb+HaY9GIkwU6mhvu68+cAttZWEDjhRqfB4KkIBtovuspB7cNpn9+9Xr7OysBA8wwTMiEIb0L168wX0w5WVQcz9F8YSanp/RPHVvYRKKFfYMrI9EekNTXSgaYrif6doNNPWiRn6F/DhP75vpeXD9C49Ear1k0KIkrAO0i4gNs5nMD3N1wF/BMunV477gNf1PCGKIPTPpxi/4E7tGWEYtJCkqyVqlsgZaFNwrLZAcGEgLX4CagwKuHJO8vm+vnLUpEhyYmx+EUxBXYqkSUbEAz16tx3X1te39TgHCh6N+pJr7Loot5Q/Ad7JcMLQILxgeYd4EbEJ4ot12ty3OzgplJyVT7CUWv5Y430fAiB7dDYBvrAkFI0hMUU2Lt/o6IdyX7mwSSmhUN4JLeGqIusYyiicXzKrBxYJ0MtHV5FhJ5A9xDsEVqanhTUiIBsyp/7obEIip2sfavB1gym4ut0ij6ocf4HUiVOTiGpFVTaTA4mVGDZ6QYJAMZooMLP15AdBH0dnPZqj1rSvgfIi1gBlLc2HlJKbik0rPrSbmrcY8OzMyEB4Qb7hyfvLvam34MsJh7NsLFBkghXavXLyWEyCNEgVSTojC1mSm3Z13nhnrIe7gYM3GKfYnHNB1l8mTnotHbSTOzzKcBk0mYgj1Ps9yXpougXgxqrJ0s4uqWJYtyKP5fzAOFS8DFkTba5lcM7O6GEvm1vnMeQUuIC8wTpRc8nwcCh5ItWD2bSlalLobwkJaLKJ95RxyWwnmhZelBE4kCx+SWWgS+iSHvbnDh0guDul/D5hLbEpcwP4JmjmIDvhwZ2XmAYVTEuIftHWB17UzqfZp4UeZftRBMdZC5WuJqNXYbKlhlYehMl2RAA7yezT5zQZclxydmZZJYZQ0nMcLyBBZH0CzSBJmvtXZ+IGx5ArGRTyaYHUi33zKzO2+pONwH96iFwzJLxGJg95Rfhxj1RuyeWNiFpdzDepgIVJBFb+hrrl7fvjSHlupihzyFdHC+hyxH3Jsl4ejI7BvfND1w+Wd0352Pc9uFhr0JXNiDvUkKb4VO3BU3r4fAgjy1Wjhj+s09xLWIzPJqwKktZkdsRVlICio2aYL6ExaUxMh5H5D6Qg69L+YVd178YWaTFzStf5a9ibgwgYv7sD/FqgBVaJEo64KVRcqnBIHLiG64YWplYB9PBpgbhWXXhKh67KnQdVjEId7NEvUFGwavrvdBtjZyuLWaTYIqg0k1RU2N8ZMczP6L/embOJjBwQzNJhDMqILJMIJZXwYaEuag6AGpxnWnpDtGrd2EkOBAIuSClKH6SHorJGQWymufr9LUhNBv85xARatiwppvXIFX3QZghFZrPIjx50zD+2D2hyQSg+NFQqQXJaLMQsJaO20Zl0gPt3nhlbebi86OTh7eZhZOXNqitiCqIE+np2auOXgx5mVCKXT3yAMZF1XBiZAOQB9nWv0gzH4n9VvGydIwhbqN1RaR5HmkLiE9C6MGcSK/9EA6YRWseh8KLVal2FJfQnjPKrLu2rlBLguQ5f5Ma3jVHWlCW2tPpPR7MCz+MtPqX2H2YmviLZrB1Ge14Ebj2TnmyT7yTjN0N6EgkKO8Wq7HeUtnShT9PI8ycDPs9otw6RBCVU6Cl4l1IbsVmj9iEu4rMpG9iUJf7ljBgrtwVeZ6vB1nTxF0Y49bgwHZvO88EC9mi2gZuj+Ya02F7eSMHH1YNPhr74e6GloH/XZwkN2LxY8yrTwhcNpSYMltiJIPkG4BHtlk13XgvWvV4IqyeIDsgcRmnc2HjW++djVwmgnT7+fD9wGhtWiKGUdx3yQHr5A9B837mVbiwkyDnGvxUPKD9wJrUWgfGeMYkgv1hTJHEuYRtDk6cu6Q5Bh68mGYzTrq9B6VKjunJfwC+xB+DvxeJtW06FFIiEvxluTCXQamuyRWwDeycjJTI8QG+SkUeB4wcAfAZlN47MEOcd4X+mXyQ3pKISblyl2I94LPS4laMobMRHSCI8SzpJKITHWDvP0I+CAGmNhXqbcuiIvkwrWzfH42n7Vx0b75ZLBYorc+AWHSu7u4euVh652nxkwQhFXfQwqotko7a2GZpEPgjcOWXgHIoZn3lEg4F6M5+aqBSAreyugozCo43Ie7Lyd/d0V+j1StqB/AB96CwtMDLdyG2KVvAY+sduaqwXMQ4dyhEz8pxhkBg7qGxRKeegwOL6wjL4wrm7bRBBeAbwut8JKlKKvkSrx4Pz0j46y5i85+zOzb/jxPr0M4SmVqRucyLpbYG5+kevCB9ZrA5JGd3nA6vr115UwJSeYyXI8J7mG70Nv+hk2Td06ib0B5lt9dvj/8APWzjxPL70IcYSPyNqH0zW0wQZLMRYjIV9j3FYPHITuoypGa6+e+DQOeiR0lYfdcZvLON6c3h96Etu7bKPT1RP/z9i6YIKFGeBOR9HqwE7py2VcAsYyo1xdWznHdlIokQl1h0yncckh4x1uIFtY55OxzacBtoTxsLqzJ9pzr7ebaK3eGqyQUa+0q76RGMVK95/+eirwtQb1yR2lj5ZIEOonYpYvU73gLmtVt4aT32Xfzi/ug1Wt1icIkLZVjdoRH11sOhIyInfCZcwdWv5xTpDnL1feLzaDukvHrcnMFSUVOa/V69rRseA4M7riEP3I//tgjaH+G5svM3jspi9XOtF57/v21OgfzJFcSEi4z52GSAinzqaCz57/NDJZLWCzARQiBaAAVhIDldRptsnnDgERokZe6M/R8Ur6l90AVksY9PIS3PYvdfRdIxPmiQ8UZhtF2Y11SvlRn28+IYI2waI8JTVtpOcJetmI7jkHL9qHG9qaoJNJbUVi0pLdd3BQ665DXk/lZKbR9MBJVVxXccSs8+hDh/lfDbC9xWKH4axPxKd34z7p/Rk1E7k+1aF7F3hlsuHZwX3kptR867yM5BMKKlZS9g8HQVn60ZDAoF+iZH3sT7J674aH7CK+6C59MUrVpswTrAhr08rxtScvpAY412Zc/P9PlRFzKacwncibeBkSwUmWwCxigaZ0UVI+KEvL6psZG3k3eUW/AFkIXRQ417E0ID94DD92H3XYrqgMel6hZjLhndF7GtYFPdBSYfGCX9FiRKP25vhqQhC1jmwpURlwIgVBXSDWxWWzkKpEoxjyivRkcHqBLh3DxAtqfwWxGdfkOONhP9wfHi789YFd1SCvn27zMmXyFvi32ZeCTdZEl2ZA2wetknUOzqe5lJwhCj74O7rkN3XUr7M9QCChk5vWYtXovW7feSBYn6fsAEYC3Y+py2eW5nsDsoeDMMlAbPv8AOKmBKdHnil546hmS9TtaP72K0L4wH4WnH0qJabPkzHvOt1ihghIdWZmk5Crka/2T+f5c/FTNZrg7UkClvdMM9LNQ37risfQyfh+oandvcKBxgOcwm5If2UR3u1ClzAl3X0K3Xchte2cUued0Zo9a1jq+8eWd8W1GE5sebWxC3sgE70KJ62MsweYvEP1PidFrJG/LOaS7y9ty1j593fCuEhPdeH1SDSO80P324sifPo4hrNh8q+3vIm52ZePV+1wGBFwfpIkNTbSaXKNH9AA8SUireWRrBuTOUJaQcjAbIkgaRjyuiUl2rmDAf+P+SzZvqpQXLusjXBG355F2Wn0kiaBSF1RIdeXBi3sdWxVKSX7jNR3VOUEE5hb9+20ZjUUDi4aAZL0U3huLV5X+DqT3ADbJQDPr0h2Heyu5YFZk1Csc0vWH/rgnwIdp/DM6WaL5Ulo2BCJF/u0j7gcKrwNb/FMNK+wLQj0buUwqmJ62JQM3MxJ79hEy8UWi/xTzZcXJApooXAq5BgZcr6FbpAw7DG2bJg4Hs4TE8Qd3HcT1hF3liANflvRumugsGrNlXg7mUjBXShyI++yMeyH0KXA1S6nDHE7chqyeWXdOIIZvTd/NRLBuaXYHBpyY+D5cnyf6RPNlVPRSpW+pUjAKc3sXUBktZTXWmQgbsdD6s+qxL6BbD67RmK8JbJ6qfihsKPPL3jTfreh/w8lCfPO4oYn08EKt6ITGcenh8mRuprJUln723hpJgbQWv65lKOnM3dlyLvuxg/PFOv2iie9SEz/PycJ4+QTmS6wZMmmoFhGWAniqlHHI8qYq6rzQjb1bUSap1ZBtwBuucbXyvR8M6JvxS8o6DVfA9Ulc71ETP8/xAl4+MY4Xa8gDqLVsTNLUzF4jiGYW1MbJtlNMia60oalCcbM6KZC+419uvDGwaSAGNEhTUk3Q14EPIn2I6A3HC7PjBTpeyFY9ngw1TQxg9wB7yYZzARY0vtRjFwj7s/HSlzHXrY/46wenOO4I15+Y9KM0/m800TheoKO5egqju7vXZo0bBs9gJrVefVhnyy29KtSX6qAFB9Otz50jlClbZd0OXH+B68Mm/bGW0ZgvjeOF2aLJy14Hd6+KBKtJvP+81hvf6gMX9oWseft5kj4CW993RZG0imXbW14BDGOAq379/wG/Z+J3JX3CJDhZwnwpjhdGEyXXNuS15+pMaa8r9kcpiNTwoVMVycCornsGdFsNBW1pRQlHbWkSsBwHahd5txVWu0CZqNSxrwB/b+KvgT8DPgMcAXssGnSyhJMlNl/CMp5pSuu8O8WzSGfagKP/Buvhpaoq4h0XSWtAjG45l60wwErsLp8d+S7gJVy/KXiRqCtmNpENtt8L6YUYaXO0b5nZy8CxuT4bXF+16G6NoyZa3lzCFP2kOTpOzDFObVsCiglqMzuUdG9bpdo9WHT29g3KbJguVhWwqkSH+xdG4naFtbcrK5l4j1wvWHRTimESzBpJVe6nSQPajMrvVHS88W71QXRl37+tjthCOafSVC24LDgoBged0L0qyWT7U0TCuq9WP63dPN7FdkDpuY9Z9BeYLyudLN2iR1zmUshGKFBKE1Zal2jjne1Obu31Actdbe6nBt5gZutLz4ewhtDRhDvgh7M2T9Lah9taDaPz33Oy9aIvmpqTpXOyMCVq6pfjpQfWF0OXC628TWkY05gcvdrEWS3pHTDYkdJyg5IUGKERM2sxmr73NPKFvS6Pexrkwvd2AbO11NepGulFxRhtGYOWMdVw5yRiKwTUCvB+Xzum6l1TpsLN9Thng5q0B+kqSIU1VmBQ1sE6n+sV2IBWEJO1ryRDeglR4x7JRu2KhUDa/yD1ude/rfLrqjyEEajN7OEd2hudp9X6FDNrZeCOkGYpU15RBD2FcGTiUynd0LWazZkyf63EvBH71tTAQ0BDt6Pvqgpf61WLuBX5JsCnNRZMreyTTt3taIMWPDHxBaWUgxTdwtC3NDOTnypoz/zeM0Ews78zs0XeIs6tA5XozOqRe5/zQ5I3S5yIHrwdaiQiaUGNw1Vs0pjfUwGflbRU3sO1XxtoG5Ot5wu1mb0V+AHgnSQqnJCUyqhmXs2DSHFBHSbhYC/4wfQNBHuy2xAIbTGIBggYKV6qgX+nLfzscv39LWYG65BH4HqjuY4TBPx2PvrW/5hv3J7qSmpnzsEUv3RwwK0HHwSezLfpVEsyiwGt6CMZaRmp8bcaGrrrrotGrZJzg9ruPIT1SbTesW2Cpbo2btkXt104Yn/6zMi6i53Hl220trTJ0T8V1kXj83Fqbc51hlr7o6nHHXsUUury9kPj0oGQnk610OTahrPRRrc8Nvm0Jv4n7aKeTRfvjOKbBWrSerm0DqtEPzrwzW5Yj8OntQh2iahLmEXcdyllHXgOWSm1ml/Sf+B+hWU0i+0ucjcd1Jj115+uy7zTZty9JObfnmXaWSjPiiun/ruSo/+PWkasiXjTrbMbpA5uAqgZbne5Zoz2ZfRg+RR0OlqCZXyEUle46yC7+sCC9MIBUdIXLDoqkRMGrl7bPV8/d65Qm1UaMSGAgijT6rWWUMzMDvbSfe7PvSLKGCK9Al7IKyxT51LVWMsjg9rpGwg7FK/AmmQsECzt5lOFCWYP0FHSWaCThcMS/C92d1iKCVi3fKJUh53juu1RaDfiNnVHH7axh5mlAvIqHJL+08MZh7PWeNEUc5IR3fkxecOvPsK85YSzvfVaQruYYVMnxs4PWGdSGVW4Hbi8gfo2TIFWv3TU5/pfk75OWj3VGdgrFkGhxhsqA8uXNsY3QoGyLvYHOWQdzCwEqC2A7scsYPId/I9tUNTSP+MyNiSz+4pjU8L7vCBAh5ixrFf/dy/Ckp/OLGyW3LfNyNs0ypEAKA58Wu6p/Lilz+7WUhV7Iz2Qti/9H6fJkhJGD1iKhgQTITjGm66S7kZ8bYTrH9L2eyp72Fy7COg1hjWPYXUNyKbrMlBageSYPbR62ym/x6B/z5dwOT0bsA9uVx0CvOZwqsu1uvFO32YMZRMH8RzrCZ2+SbJttKvIPTHp00SPXX31ygM3WO71YRSBOwVQQrsd5oNI9Qb5t4sDO5SDrhfzDpphTYmMJ+NvKAwQuGvkKf1/grRyklTF+VK+pJXP02B4v9kVM/uEyv8wyVsG5O1YRu3UGw2jFLhNvuSNjyj/zM7EEfBjJM+h316f+rbNTGH3bwG/AHygrRrt++E3GeIK/D/1R7dpRZ4HDAAAAABJRU5ErkJggg==",Th="_antistockLogoWrapper_ax6a6_1",kh="_applePayGooglePay_ax6a6_13",Ah="_debitCreditCard_ax6a6_20",Sh="_cryptocurrency_ax6a6_27",ca={antistockLogoWrapper:Th,applePayGooglePay:kh,debitCreditCard:Ah,cryptocurrency:Sh},Ih="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%20-34.55%20120.3%20120.3'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.8%206.6c1.4-1.8%202.4-4.2%202.1-6.6-2.1.1-4.6%201.4-6.1%203.1-1.3%201.5-2.5%204-2.2%206.3%202.4.3%204.7-1%206.2-2.8M24.9%2010c-3.4-.2-6.3%201.9-7.9%201.9-1.6%200-4.1-1.8-6.8-1.8-3.5.1-6.7%202-8.5%205.2-3.6%206.3-1%2015.6%202.6%2020.7%201.7%202.5%203.8%205.3%206.5%205.2%202.6-.1%203.6-1.7%206.7-1.7s4%201.7%206.8%201.6%204.6-2.5%206.3-5.1c2-2.9%202.8-5.7%202.8-5.8-.1-.1-5.5-2.1-5.5-8.3-.1-5.2%204.2-7.7%204.4-7.8-2.3-3.6-6.1-4-7.4-4.1'/%3e%3cg%3e%3cpath%20d='M54.3%202.9c7.4%200%2012.5%205.1%2012.5%2012.4%200%207.4-5.2%2012.5-12.7%2012.5H46v12.9h-5.9V2.9h14.2zm-8.3%2020h6.7c5.1%200%208-2.8%208-7.5%200-4.8-2.9-7.5-8-7.5h-6.8v15h.1zM68.3%2033c0-4.8%203.7-7.8%2010.3-8.2l7.6-.4v-2.1c0-3.1-2.1-4.9-5.5-4.9-3.3%200-5.3%201.6-5.8%204h-5.4c.3-5%204.6-8.7%2011.4-8.7%206.7%200%2011%203.5%2011%209.1v19h-5.4v-4.5h-.1c-1.6%203.1-5.1%205-8.7%205-5.6%200-9.4-3.4-9.4-8.3zm17.9-2.5v-2.2l-6.8.4c-3.4.2-5.3%201.7-5.3%204.1%200%202.4%202%204%205%204%204%200%207.1-2.7%207.1-6.3zM96.9%2051v-4.6c.4.1%201.4.1%201.8.1%202.6%200%204-1.1%204.9-3.9%200-.1.5-1.7.5-1.7l-10-27.6h6.1l7%2022.5h.1l7-22.5h6L110%2042.4c-2.4%206.7-5.1%208.8-10.8%208.8-.4-.1-1.8-.1-2.3-.2z'/%3e%3c/g%3e%3c/svg%3e",Nh=()=>i.jsx("svg",{width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M20.9852 9.72294L16.7571 13.4129L18.0236 18.9067C18.0906 19.1939 18.0715 19.4945 17.9686 19.7709C17.8658 20.0472 17.6837 20.2872 17.4452 20.4606C17.2067 20.6341 16.9223 20.7334 16.6277 20.7462C16.3331 20.7589 16.0412 20.6845 15.7886 20.5323L10.9971 17.6261L6.2158 20.5323C5.96321 20.6845 5.67135 20.7589 5.37671 20.7462C5.08208 20.7334 4.79773 20.6341 4.55923 20.4606C4.32074 20.2872 4.13866 20.0472 4.03578 19.7709C3.9329 19.4945 3.91378 19.1939 3.9808 18.9067L5.24549 13.4186L1.01643 9.72294C0.792748 9.53002 0.631004 9.27536 0.55148 8.99089C0.471955 8.70642 0.478189 8.4048 0.569401 8.12385C0.660612 7.84291 0.832741 7.59515 1.0642 7.41164C1.29566 7.22813 1.57615 7.11705 1.87049 7.09231L7.44486 6.6095L9.6208 1.4195C9.73443 1.14717 9.9261 0.914551 10.1717 0.750929C10.4172 0.587308 10.7057 0.5 11.0008 0.5C11.2959 0.5 11.5844 0.587308 11.8299 0.750929C12.0755 0.914551 12.2672 1.14717 12.3808 1.4195L14.5633 6.6095L20.1358 7.09231C20.4301 7.11705 20.7106 7.22813 20.9421 7.41164C21.1736 7.59515 21.3457 7.84291 21.4369 8.12385C21.5281 8.4048 21.5343 8.70642 21.4548 8.99089C21.3753 9.27536 21.2135 9.53002 20.9899 9.72294H20.9852Z",fill:"currentColor"})}),hl=({isAntistock:e=!1})=>e?i.jsxs("div",{className:ca.cryptocurrency,children:[i.jsx($t,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})})}),i.jsx($t,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.3837 16.4017C13.6027 16.4483 15.781 16.4937 18 16.5857C17.9187 16.9525 17.8362 17.2727 17.7956 17.5941C17.6712 18.0529 17.5481 18.4664 17.4668 18.9252C17.4249 19.1546 17.3424 19.2 17.138 19.2H6.53438C6.90513 17.5941 7.27452 16.0815 7.64386 14.4756C7.06883 14.705 6.57507 14.9344 6 15.2092C6.16497 14.5223 6.32877 13.9261 6.53438 13.2832C6.53438 13.1924 6.65762 13.1458 6.74007 13.1458C7.11071 12.963 7.52084 12.8243 7.89018 12.6403C8.01344 12.5962 8.13773 12.4588 8.13773 12.3201L9.86171 5.16681C9.90358 4.89203 9.98489 4.8 10.273 4.8H14.0128C13.5608 6.67939 13.1495 8.56137 12.6976 10.5328C13.3552 10.2126 13.9721 9.93657 14.6703 9.66179C14.5878 10.0286 14.4647 10.3487 14.424 10.6702C14.3415 11.4051 13.9721 11.8172 13.3145 12.0013C13.0276 12.092 12.7383 12.2294 12.4513 12.3681C12.3494 12.436 12.2648 12.5305 12.205 12.6429C11.9169 13.8807 11.6288 15.0731 11.3825 16.3109V16.403L11.3837 16.4017Z",fill:"#345D9D"})})}),i.jsx($t,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M19.9946 3.6L19.8636 3.98284V15.0909L19.9946 15.2034L25.9879 12.1555L19.9946 3.6Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9946 3.6L14 12.1555L19.9946 15.2034L19.9934 9.81181L19.9946 3.6Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9948 16.1802L19.9209 16.2577V20.2146L19.9948 20.4L25.9917 13.134L19.9948 16.1802Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9948 20.4V16.1802L14 13.134L19.9948 20.4Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M20.0067 15.2052L26 12.1574L20.0067 9.81369V15.2052Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M14 12.1555L19.9934 15.2044V9.81181L14 12.1555Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}})]})}),i.jsx($t,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M7.4623 17V13.962H4.6763V12.898H7.4623V9.846H8.5123V12.898H11.2843V13.962H8.5123V17H7.4623ZM16.3943 17.168C15.6476 17.168 15.0176 17.056 14.5043 16.832C13.991 16.5987 13.6036 16.272 13.3423 15.852C13.081 15.432 12.9503 14.9327 12.9503 14.354V14.172H14.1963V14.354C14.1963 14.9327 14.3783 15.376 14.7423 15.684C15.1156 15.9827 15.629 16.132 16.2823 16.132C16.9356 16.132 17.463 15.992 17.8643 15.712C18.2656 15.4227 18.4663 14.9653 18.4663 14.34C18.4663 13.8827 18.359 13.5327 18.1443 13.29C17.9296 13.0473 17.6496 12.8793 17.3043 12.786C16.9683 12.6833 16.609 12.632 16.2263 12.632H15.2183V11.596H16.2683C16.623 11.596 16.9496 11.54 17.2483 11.428C17.547 11.316 17.785 11.134 17.9623 10.882C18.149 10.6207 18.2423 10.2847 18.2423 9.874C18.2423 9.50067 18.1583 9.19733 17.9903 8.964C17.8316 8.73067 17.6123 8.558 17.3323 8.446C17.0523 8.32467 16.7443 8.264 16.4083 8.264C16.035 8.264 15.699 8.32933 15.4003 8.46C15.1016 8.58133 14.8636 8.768 14.6863 9.02C14.5183 9.272 14.4343 9.58933 14.4343 9.972V10.154H13.1743V9.902C13.1743 9.37 13.3096 8.90333 13.5803 8.502C13.8603 8.10067 14.2383 7.788 14.7143 7.564C15.1996 7.34 15.755 7.228 16.3803 7.228C16.9963 7.228 17.5376 7.326 18.0043 7.522C18.4803 7.718 18.8536 8.00733 19.1243 8.39C19.395 8.77267 19.5303 9.244 19.5303 9.804C19.5303 10.2147 19.4556 10.5647 19.3063 10.854C19.157 11.134 18.961 11.3673 18.7183 11.554C18.4756 11.7407 18.2143 11.8947 17.9343 12.016V12.072C18.4476 12.2213 18.877 12.492 19.2223 12.884C19.5676 13.276 19.7403 13.7893 19.7403 14.424C19.7403 14.9933 19.5956 15.4833 19.3063 15.894C19.0263 16.3047 18.6296 16.622 18.1163 16.846C17.6123 17.0607 17.0383 17.168 16.3943 17.168Z",fill:"#757575"})})})]}):i.jsxs("svg",{width:"72",height:"24",viewBox:"0 0 72 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsxs("g",{clipPath:"url(#clip0_1466_4561)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})]}),i.jsxs("g",{clipPath:"url(#clip1_1466_4561)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M27.3837 16.4017C29.6027 16.4483 31.781 16.4937 34 16.5857C33.9187 16.9525 33.8362 17.2727 33.7956 17.5941C33.6712 18.0529 33.5481 18.4664 33.4668 18.9252C33.4249 19.1546 33.3424 19.2 33.138 19.2H22.5344C22.9051 17.5941 23.2745 16.0815 23.6439 14.4756C23.0688 14.705 22.5751 14.9344 22 15.2092C22.165 14.5223 22.3288 13.9261 22.5344 13.2832C22.5344 13.1924 22.6576 13.1458 22.7401 13.1458C23.1107 12.963 23.5208 12.8243 23.8902 12.6403C24.0134 12.5962 24.1377 12.4588 24.1377 12.3201L25.8617 5.16681C25.9036 4.89203 25.9849 4.8 26.273 4.8H30.0128C29.5608 6.67939 29.1495 8.56137 28.6976 10.5328C29.3552 10.2126 29.9721 9.93657 30.6703 9.66179C30.5878 10.0286 30.4647 10.3487 30.424 10.6702C30.3415 11.4051 29.9721 11.8172 29.3145 12.0013C29.0276 12.092 28.7383 12.2294 28.4513 12.3681C28.3494 12.436 28.2648 12.5305 28.205 12.6429C27.9169 13.8807 27.6288 15.0731 27.3825 16.3109V16.403L27.3837 16.4017Z",fill:"#345D9D"})]}),i.jsxs("g",{clipPath:"url(#clip2_1466_4561)",children:[i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M43.9946 3.59961L43.8636 3.98245V15.0905L43.9946 15.203L49.9879 12.1551L43.9946 3.59961Z",fill:"#252525"}),i.jsx("path",{d:"M43.9946 3.59961L38 12.1551L43.9946 15.203L43.9934 9.81142L43.9946 3.59961Z",fill:"#252525"}),i.jsx("path",{d:"M43.9948 16.1798L43.9209 16.2573V20.2142L43.9948 20.3996L49.9917 13.1336L43.9948 16.1798Z",fill:"#252525"}),i.jsx("path",{d:"M43.9948 20.3996V16.1798L38 13.1336L43.9948 20.3996Z",fill:"#252525"}),i.jsx("path",{d:"M44.0067 15.2049L50 12.157L44.0067 9.8133V15.2049Z",fill:"#252525"}),i.jsx("path",{d:"M38 12.1551L43.9934 15.204V9.81142L38 12.1551Z",fill:"#252525"})]}),i.jsx("rect",{x:"48",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("rect",{x:"48",width:"24",height:"24",rx:"12",stroke:"#F0F0F0"}),i.jsx("path",{d:"M55.4623 17V13.962H52.6763V12.898H55.4623V9.846H56.5123V12.898H59.2843V13.962H56.5123V17H55.4623ZM64.3943 17.168C63.6476 17.168 63.0176 17.056 62.5043 16.832C61.991 16.5987 61.6036 16.272 61.3423 15.852C61.081 15.432 60.9503 14.9327 60.9503 14.354V14.172H62.1963V14.354C62.1963 14.9327 62.3783 15.376 62.7423 15.684C63.1156 15.9827 63.629 16.132 64.2823 16.132C64.9356 16.132 65.463 15.992 65.8643 15.712C66.2656 15.4227 66.4663 14.9653 66.4663 14.34C66.4663 13.8827 66.359 13.5327 66.1443 13.29C65.9296 13.0473 65.6496 12.8793 65.3043 12.786C64.9683 12.6833 64.609 12.632 64.2263 12.632H63.2183V11.596H64.2683C64.623 11.596 64.9496 11.54 65.2483 11.428C65.547 11.316 65.785 11.134 65.9623 10.882C66.149 10.6207 66.2423 10.2847 66.2423 9.874C66.2423 9.50067 66.1583 9.19733 65.9903 8.964C65.8316 8.73067 65.6123 8.558 65.3323 8.446C65.0523 8.32467 64.7443 8.264 64.4083 8.264C64.035 8.264 63.699 8.32933 63.4003 8.46C63.1016 8.58133 62.8636 8.768 62.6863 9.02C62.5183 9.272 62.4343 9.58933 62.4343 9.972V10.154H61.1743V9.902C61.1743 9.37 61.3096 8.90333 61.5803 8.502C61.8603 8.10067 62.2383 7.788 62.7143 7.564C63.1996 7.34 63.755 7.228 64.3803 7.228C64.9963 7.228 65.5376 7.326 66.0043 7.522C66.4803 7.718 66.8536 8.00733 67.1243 8.39C67.395 8.77267 67.5303 9.244 67.5303 9.804C67.5303 10.2147 67.4556 10.5647 67.3063 10.854C67.157 11.134 66.961 11.3673 66.7183 11.554C66.4756 11.7407 66.2143 11.8947 65.9343 12.016V12.072C66.4476 12.2213 66.877 12.492 67.2223 12.884C67.5676 13.276 67.7403 13.7893 67.7403 14.424C67.7403 14.9933 67.5956 15.4833 67.3063 15.894C67.0263 16.3047 66.6296 16.622 66.1163 16.846C65.6123 17.0607 65.0383 17.168 64.3943 17.168Z",fill:"#757575"}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_1466_4561",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_1466_4561",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip2_1466_4561",children:i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),pl=()=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})}),ml=({isAntistock:e=!1})=>e?i.jsxs("div",{className:ca.debitCreditCard,children:[i.jsx($t,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M12.371 10.7018C12.3586 11.7047 13.2368 12.2645 13.8984 12.5972C14.5782 12.9387 14.8065 13.1576 14.8039 13.4629C14.7987 13.9302 14.2616 14.1364 13.759 14.1445C12.8821 14.1585 12.3722 13.9001 11.9669 13.7046L11.651 15.2304C12.0577 15.4239 12.8107 15.5926 13.5916 15.6C15.4246 15.6 16.6239 14.666 16.6304 13.2179C16.6375 11.38 14.1676 11.2783 14.1845 10.4568C14.1903 10.2077 14.4206 9.9419 14.9252 9.87428C15.1749 9.84013 15.8644 9.81402 16.6459 10.1856L16.9527 8.70932C16.5324 8.55131 15.9921 8.4 15.3195 8.4C13.5942 8.4 12.3807 9.3467 12.371 10.7018ZM19.9007 8.52721C19.566 8.52721 19.2838 8.72873 19.158 9.03805L16.5396 15.4915H18.3712L18.7358 14.4518H20.9741L21.1856 15.4915H22.7999L21.3912 8.52721H19.9007ZM20.1569 10.4086L20.6855 13.0237H19.2378L20.1569 10.4086ZM10.1501 8.52721L8.70631 15.4915H10.4517L11.8949 8.52721H10.1501ZM7.568 8.52721L5.75124 13.2674L5.01637 9.2369C4.93011 8.78698 4.58959 8.52721 4.21145 8.52721H1.24147L1.19995 8.7294C1.80964 8.86598 2.50236 9.08626 2.92201 9.32193C3.17886 9.46587 3.25215 9.59174 3.33647 9.93386L4.72839 15.4915H6.57303L9.40097 8.52721H7.568Z",fill:"#254AA5"})})}),i.jsx($t,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M14.5901 7.2835H9.39431V16.7165H14.5901V7.2835Z",fill:"#FF5A00"}),i.jsx("path",{d:"M9.74021 12C9.74021 10.0835 10.6318 8.38252 11.9999 7.2835C10.993 6.4835 9.72288 6 8.33751 6C5.05551 6 2.39991 8.6835 2.39991 12C2.39991 15.3165 5.05551 18 8.33751 18C9.72288 18 10.993 17.5165 11.9999 16.7165C10.6298 15.633 9.74021 13.9165 9.74021 12Z",fill:"#EB001B"}),i.jsx("path",{d:"M21.5999 12C21.5999 15.3165 18.9443 18 15.6624 18C14.2769 18 13.0068 17.5165 11.9999 16.7165C13.3853 15.6155 14.2596 13.9165 14.2596 12C14.2596 10.0835 13.368 8.38252 11.9999 7.2835C13.0049 6.4835 14.275 6 15.6604 6C18.9443 6 21.5999 8.70097 21.5999 12Z",fill:"#F79E1B"})]})}),i.jsx($t,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.6377 9.6L9.2 15.5923H12.1183L12.48 14.6369H13.307L13.6688 15.5923H16.881V14.8631L17.1673 15.5923H18.8289L19.1151 14.8477V15.5923H25.7957L26.608 14.6617L27.3687 15.5923L30.7999 15.6L28.3545 12.6129L30.7999 9.6H27.4219L26.6311 10.5134L25.8944 9.6H18.6268L18.0028 11.1467L17.3641 9.6H14.4518V10.3044L14.1279 9.6H11.6377ZM12.2024 10.4509H13.6249L15.2418 14.5143V10.4509H16.8001L18.0491 13.3644L19.2001 10.4509H20.7506V14.7508H19.8071L19.7994 11.3814L18.424 14.7508H17.58L16.1968 11.3814V14.7508H14.2559L13.8879 13.7868H11.9L11.5328 14.7499H10.4929L12.2024 10.4509ZM21.6138 10.4509H25.4501L26.6234 11.8588L27.8346 10.4509H29.0079L27.2252 12.612L29.0079 14.7482H27.7814L26.608 13.324L25.3907 14.7482H21.6138V10.4509ZM12.8944 11.1784L12.2394 12.8957H13.5486L12.8944 11.1784ZM22.5611 12.1261H24.654V13.001H22.5611V13.8579H24.9086L25.9994 12.5958L24.9549 11.3405H22.5611V12.1261Z",fill:"#26A6D1",style:{transform:"translateX(-8px)"}})})})]}):i.jsxs("svg",{width:"56",height:"24",viewBox:"0 0 56 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsxs("g",{clipPath:"url(#clip0_1466_4573)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M12.371 10.7018C12.3586 11.7047 13.2368 12.2645 13.8984 12.5972C14.5782 12.9387 14.8065 13.1576 14.8039 13.4629C14.7987 13.9302 14.2616 14.1364 13.759 14.1445C12.8821 14.1585 12.3722 13.9001 11.9669 13.7046L11.651 15.2304C12.0577 15.4239 12.8107 15.5926 13.5916 15.6C15.4246 15.6 16.6239 14.666 16.6304 13.2179C16.6375 11.38 14.1676 11.2783 14.1845 10.4568C14.1903 10.2077 14.4206 9.9419 14.9252 9.87428C15.1749 9.84013 15.8644 9.81402 16.6459 10.1856L16.9527 8.70932C16.5324 8.55131 15.9921 8.4 15.3195 8.4C13.5942 8.4 12.3807 9.3467 12.371 10.7018ZM19.9007 8.52721C19.566 8.52721 19.2838 8.72873 19.158 9.03805L16.5396 15.4915H18.3712L18.7358 14.4518H20.9741L21.1856 15.4915H22.7999L21.3912 8.52721H19.9007ZM20.1569 10.4086L20.6855 13.0237H19.2378L20.1569 10.4086ZM10.1501 8.52721L8.70631 15.4915H10.4517L11.8949 8.52721H10.1501ZM7.568 8.52721L5.75124 13.2674L5.01637 9.2369C4.93011 8.78698 4.58959 8.52721 4.21145 8.52721H1.24147L1.19995 8.7294C1.80964 8.86598 2.50236 9.08626 2.92201 9.32193C3.17886 9.46587 3.25215 9.59174 3.33647 9.93386L4.72839 15.4915H6.57303L9.40097 8.52721H7.568Z",fill:"#254AA5"})]}),i.jsxs("g",{clipPath:"url(#clip1_1466_4573)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M30.5901 7.2835H25.3943V16.7165H30.5901V7.2835Z",fill:"#FF5A00"}),i.jsx("path",{d:"M25.7402 12C25.7402 10.0835 26.6318 8.38252 27.9999 7.2835C26.993 6.4835 25.7229 6 24.3375 6C21.0555 6 18.3999 8.6835 18.3999 12C18.3999 15.3165 21.0555 18 24.3375 18C25.7229 18 26.993 17.5165 27.9999 16.7165C26.6298 15.633 25.7402 13.9165 25.7402 12Z",fill:"#EB001B"}),i.jsx("path",{d:"M37.5999 12C37.5999 15.3165 34.9443 18 31.6624 18C30.2769 18 29.0068 17.5165 27.9999 16.7165C29.3853 15.6155 30.2596 13.9165 30.2596 12C30.2596 10.0835 29.368 8.38252 27.9999 7.2835C29.0049 6.4835 30.275 6 31.6604 6C34.9443 6 37.5999 8.70097 37.5999 12Z",fill:"#F79E1B"})]}),i.jsxs("g",{clipPath:"url(#clip2_1466_4573)",children:[i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M35.6377 9.6L33.2 15.5923H36.1183L36.48 14.6369H37.307L37.6688 15.5923H40.881V14.8631L41.1673 15.5923H42.8289L43.1151 14.8477V15.5923H49.7957L50.608 14.6617L51.3687 15.5923L54.7999 15.6L52.3545 12.6129L54.7999 9.6H51.4219L50.6311 10.5134L49.8944 9.6H42.6268L42.0028 11.1467L41.3641 9.6H38.4518V10.3044L38.1279 9.6H35.6377ZM36.2024 10.4509H37.6249L39.2418 14.5143V10.4509H40.8001L42.0491 13.3644L43.2001 10.4509H44.7506V14.7508H43.8071L43.7994 11.3814L42.424 14.7508H41.58L40.1968 11.3814V14.7508H38.2559L37.8879 13.7868H35.9L35.5328 14.7499H34.4929L36.2024 10.4509ZM45.6138 10.4509H49.4501L50.6234 11.8588L51.8346 10.4509H53.0079L51.2252 12.612L53.0079 14.7482H51.7814L50.608 13.324L49.3907 14.7482H45.6138V10.4509ZM36.8944 11.1784L36.2394 12.8957H37.5486L36.8944 11.1784ZM46.5611 12.1261H48.654V13.001H46.5611V13.8579H48.9086L49.9994 12.5958L48.9549 11.3405H46.5611V12.1261Z",fill:"#26A6D1"})]}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_1466_4573",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_1466_4573",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip2_1466_4573",children:i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),gl=({isAntistock:e=!1})=>e?i.jsx($t,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("g",{clipPath:"url(#clip0_13_4480)",children:i.jsx("path",{d:"M15.1258 8.86178C15.3047 9.05256 15.6016 9.05256 15.7698 8.86178L16.6642 7.86973C16.8539 7.67895 16.8431 7.33555 16.6428 7.12951C15.9399 6.47662 15.1228 5.97865 14.2385 5.66433L14.5211 4.21441C14.582 3.89771 14.3601 3.6001 14.0632 3.6001H12.3315C12.2233 3.60134 12.1187 3.64219 12.0354 3.71581C11.952 3.78944 11.8949 3.89137 11.8736 4.00455L11.6231 5.29421C9.31901 5.42013 7.36553 6.66782 7.36553 9.22426C7.36553 11.4373 8.97912 12.3874 10.6857 13.0398C12.2993 13.6961 13.1544 13.9403 13.1544 14.8637C13.1544 15.8138 12.3029 16.3708 11.0435 16.3708C9.89861 16.3708 8.69647 15.9626 7.76624 14.9667C7.72304 14.9206 7.67174 14.8839 7.61526 14.859C7.55878 14.834 7.49823 14.8211 7.43709 14.8211C7.37594 14.8211 7.3154 14.834 7.25892 14.859C7.20244 14.8839 7.15113 14.9206 7.10793 14.9667L6.14192 15.9969C6.05103 16.0942 6 16.2259 6 16.3632C6 16.5005 6.05103 16.6322 6.14192 16.7295C6.89326 17.5193 7.84496 18.0917 8.92975 18.4084L8.66499 19.7705C8.60417 20.0872 8.82241 20.381 9.11937 20.3848L10.8546 20.4001C10.9641 20.4006 11.0703 20.3606 11.1551 20.2868C11.24 20.213 11.2982 20.1101 11.3197 19.9956L11.5702 18.7022C14.3422 18.5037 16.031 16.8745 16.031 14.4974C16.031 12.3072 14.3494 11.3839 12.3101 10.6322C11.1437 10.1705 10.1347 9.85383 10.1347 8.90375C10.1347 7.98038 11.0757 7.61409 12.0203 7.61409C13.2224 7.61409 14.378 8.14445 15.1329 8.86941L15.1258 8.86178Z",fill:"#00D249"})}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_13_4480",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]})}):i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_13_4480)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M15.1258 8.86178C15.3047 9.05256 15.6016 9.05256 15.7698 8.86178L16.6642 7.86973C16.8539 7.67895 16.8431 7.33555 16.6428 7.12951C15.9399 6.47662 15.1228 5.97865 14.2385 5.66433L14.5211 4.21441C14.582 3.89771 14.3601 3.6001 14.0632 3.6001H12.3315C12.2233 3.60134 12.1187 3.64219 12.0354 3.71581C11.952 3.78944 11.8949 3.89137 11.8736 4.00455L11.6231 5.29421C9.31901 5.42013 7.36553 6.66782 7.36553 9.22426C7.36553 11.4373 8.97912 12.3874 10.6857 13.0398C12.2993 13.6961 13.1544 13.9403 13.1544 14.8637C13.1544 15.8138 12.3029 16.3708 11.0435 16.3708C9.89861 16.3708 8.69647 15.9626 7.76624 14.9667C7.72304 14.9206 7.67174 14.8839 7.61526 14.859C7.55878 14.834 7.49823 14.8211 7.43709 14.8211C7.37594 14.8211 7.3154 14.834 7.25892 14.859C7.20244 14.8839 7.15113 14.9206 7.10793 14.9667L6.14192 15.9969C6.05103 16.0942 6 16.2259 6 16.3632C6 16.5005 6.05103 16.6322 6.14192 16.7295C6.89326 17.5193 7.84496 18.0917 8.92975 18.4084L8.66499 19.7705C8.60417 20.0872 8.82241 20.381 9.11937 20.3848L10.8546 20.4001C10.9641 20.4006 11.0703 20.3606 11.1551 20.2868C11.24 20.213 11.2982 20.1101 11.3197 19.9956L11.5702 18.7022C14.3422 18.5037 16.031 16.8745 16.031 14.4974C16.031 12.3072 14.3494 11.3839 12.3101 10.6322C11.1437 10.1705 10.1347 9.85383 10.1347 8.90375C10.1347 7.98038 11.0757 7.61409 12.0203 7.61409C13.2224 7.61409 14.378 8.14445 15.1329 8.86941L15.1258 8.86178Z",fill:"#00D249"})]}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_13_4480",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]}),bl=({isAntistock:e=!1})=>e?i.jsx($t,{children:i.jsx("img",{src:Yi,alt:"PayPal",width:14,height:18})}):i.jsx("img",{src:Yi,alt:"PayPal",height:24}),$t=({children:e})=>i.jsx("div",{className:ca.antistockLogoWrapper,children:e}),_l=({isAntistock:e=!1})=>{const t=i.jsx("svg",{className:"sc-e8500097-0 iYIDDF",width:"91",height:"22",viewBox:"0 0 91 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M82.2782 17.9579C80.1693 17.9579 78.5256 16.23 78.5256 14.1318C78.5256 12.0337 80.1693 10.3057 82.2782 10.3057C84.3871 10.3057 86.0308 12.0337 86.0308 14.1318C86.0308 16.23 84.3871 17.9579 82.2782 17.9579ZM81.2238 22C83.0225 22 85.3176 21.3212 86.5891 18.6676L86.7131 18.7293C86.1549 20.1795 86.1549 21.0435 86.1549 21.2595V21.5989H90.6828V6.6648H86.1549V7.00421C86.1549 7.2202 86.1549 8.08415 86.7131 9.53436L86.5891 9.59607C85.3176 6.9425 83.0225 6.26367 81.2238 6.26367C76.9129 6.26367 73.8736 9.65778 73.8736 14.1318C73.8736 18.6059 76.9129 22 81.2238 22ZM65.9963 6.26367C63.9494 6.26367 62.3367 6.97335 61.0341 9.59607L60.9101 9.53436C61.4683 8.08415 61.4683 7.2202 61.4683 7.00421V6.6648H56.9404V21.5989H61.5924V13.7307C61.5924 11.6634 62.8019 10.3675 64.7557 10.3675C66.7096 10.3675 67.671 11.4783 67.671 13.6999V21.5989H72.323V12.0954C72.323 8.70126 69.6558 6.26367 65.9963 6.26367ZM50.2105 9.59607L50.0864 9.53436C50.6447 8.08415 50.6447 7.2202 50.6447 7.00421V6.6648H46.1168V21.5989H50.7687L50.7998 14.4095C50.7998 12.3114 51.9162 11.0463 53.746 11.0463C54.2422 11.0463 54.6454 11.108 55.1106 11.2314V6.6648C53.0637 6.23282 51.2339 7.00421 50.2105 9.59607ZM35.4172 17.9579C33.3083 17.9579 31.6646 16.23 31.6646 14.1318C31.6646 12.0337 33.3083 10.3057 35.4172 10.3057C37.5261 10.3057 39.1698 12.0337 39.1698 14.1318C39.1698 16.23 37.5261 17.9579 35.4172 17.9579ZM34.3627 22C36.1615 22 38.4565 21.3212 39.728 18.6676L39.8521 18.7293C39.2938 20.1795 39.2938 21.0435 39.2938 21.2595V21.5989H43.8218V6.6648H39.2938V7.00421C39.2938 7.2202 39.2938 8.08415 39.8521 9.53436L39.728 9.59607C38.4565 6.9425 36.1615 6.26367 34.3627 6.26367C30.0519 6.26367 27.0126 9.65778 27.0126 14.1318C27.0126 18.6059 30.0519 22 34.3627 22ZM20.5308 21.5989H25.1828V0H20.5308V21.5989ZM17.1193 0H12.3743C12.3743 3.85694 9.98628 7.31276 6.35772 9.78121L4.93111 10.7686V0H0V21.5989H4.93111V10.892L13.0876 21.5989H19.1042L11.2578 11.3548C14.8243 8.79383 17.1503 4.81346 17.1193 0Z",fill:"currentColor"})});return e?i.jsx($t,{children:t}):t},xl=({isAntistock:e=!1})=>e?i.jsxs("div",{className:ca.applePayGooglePay,children:[i.jsx($t,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_12_1508)",children:[i.jsx("path",{d:"M11.4098 12.495V14.9512H10.6V8.87671H12.7053C13.2182 8.87671 13.704 9.06159 14.0819 9.40493C14.4598 9.72185 14.6487 10.1972 14.6487 10.699C14.6487 11.2008 14.4598 11.6498 14.0819 11.9932C13.704 12.3365 13.2452 12.5214 12.7053 12.5214L11.4098 12.495ZM11.4098 9.61621V11.7291H12.7593C13.0562 11.7291 13.3531 11.6234 13.5421 11.4121C13.974 11.016 13.974 10.3557 13.5691 9.95955L13.5421 9.93314C13.3262 9.72185 13.0562 9.5898 12.7593 9.61621H11.4098Z",fill:"#5F6368"}),i.jsx("path",{d:"M16.5112 10.6726C17.105 10.6726 17.5638 10.8311 17.9147 11.148C18.2656 11.465 18.4276 11.8875 18.4276 12.4157V14.9512H17.6718V14.3701H17.6448C17.3209 14.8455 16.8621 15.0832 16.3222 15.0832C15.8634 15.0832 15.4585 14.9512 15.1346 14.6871C14.8377 14.4229 14.6487 14.0532 14.6487 13.657C14.6487 13.2345 14.8107 12.8911 15.1346 12.627C15.4585 12.3629 15.9173 12.2573 16.4572 12.2573C16.943 12.2573 17.3209 12.3365 17.6178 12.5214V12.3365C17.6178 12.0724 17.5098 11.8083 17.2939 11.6498C17.078 11.465 16.8081 11.3593 16.5112 11.3593C16.0523 11.3593 15.7014 11.5442 15.4585 11.9139L14.7567 11.4914C15.1886 10.9367 15.7554 10.6726 16.5112 10.6726ZM15.4855 13.6834C15.4855 13.8947 15.5934 14.0796 15.7554 14.1852C15.9443 14.3173 16.1603 14.3965 16.3762 14.3965C16.7001 14.3965 17.024 14.2645 17.2669 14.0268C17.5368 13.7891 17.6718 13.4986 17.6718 13.1816C17.4289 12.9968 17.078 12.8911 16.6191 12.8911C16.2952 12.8911 16.0253 12.9704 15.8094 13.1288C15.5934 13.2609 15.4855 13.4458 15.4855 13.6834Z",fill:"#5F6368"}),i.jsx("path",{d:"M22.8002 10.8047L20.128 16.7999H19.3183L20.317 14.7135L18.5625 10.8311H19.4262L20.6949 13.8155H20.7218L21.9635 10.8311H22.8002V10.8047Z",fill:"#5F6368"}),i.jsx("path",{d:"M8.19776 11.9668C8.19776 11.7291 8.17077 11.4914 8.14378 11.2537H4.76983V12.6006H6.68623C6.60526 13.0232 6.36233 13.4193 5.98445 13.657V14.5286H7.14509C7.81988 13.9211 8.19776 13.0232 8.19776 11.9668Z",fill:"#4285F4"}),i.jsx("path",{d:"M4.76983 15.3737C5.74153 15.3737 6.55127 15.0568 7.14509 14.5286L5.98445 13.657C5.66055 13.8683 5.25568 14.0004 4.76983 14.0004C3.85212 14.0004 3.04237 13.3929 2.77245 12.5478H1.58483V13.4458C2.20563 14.6342 3.42025 15.3737 4.76983 15.3737Z",fill:"#34A853"}),i.jsx("path",{d:"M2.77245 12.5478C2.6105 12.1252 2.6105 11.6498 2.77245 11.2008V10.3029H1.58483C1.07199 11.2801 1.07199 12.4421 1.58483 13.4458L2.77245 12.5478Z",fill:"#FBBC04"}),i.jsx("path",{d:"M4.76983 9.77468C5.28267 9.77468 5.76852 9.95955 6.1464 10.3029L7.17208 9.29928C6.52428 8.71825 5.66055 8.37491 4.79682 8.40132C3.44724 8.40132 2.20563 9.14082 1.61182 10.3293L2.79945 11.2273C3.04237 10.3821 3.85212 9.77468 4.76983 9.77468Z",fill:"#EA4335"})]}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_12_1508",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]})}),i.jsx($t,{children:i.jsx("img",{src:Ih,alt:"Apple Pay",width:18,height:24})})]}):i.jsxs("svg",{width:"40",height:"24",viewBox:"0 0 40 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_12_1508)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M11.4098 12.495V14.9512H10.6V8.87671H12.7053C13.2182 8.87671 13.704 9.06159 14.0819 9.40493C14.4598 9.72185 14.6487 10.1972 14.6487 10.699C14.6487 11.2008 14.4598 11.6498 14.0819 11.9932C13.704 12.3365 13.2452 12.5214 12.7053 12.5214L11.4098 12.495ZM11.4098 9.61621V11.7291H12.7593C13.0562 11.7291 13.3531 11.6234 13.5421 11.4121C13.974 11.016 13.974 10.3557 13.5691 9.95955L13.5421 9.93314C13.3262 9.72185 13.0562 9.5898 12.7593 9.61621H11.4098Z",fill:"#5F6368"}),i.jsx("path",{d:"M16.5112 10.6726C17.105 10.6726 17.5638 10.8311 17.9147 11.148C18.2656 11.465 18.4276 11.8875 18.4276 12.4157V14.9512H17.6718V14.3701H17.6448C17.3209 14.8455 16.8621 15.0832 16.3222 15.0832C15.8634 15.0832 15.4585 14.9512 15.1346 14.6871C14.8377 14.4229 14.6487 14.0532 14.6487 13.657C14.6487 13.2345 14.8107 12.8911 15.1346 12.627C15.4585 12.3629 15.9173 12.2573 16.4572 12.2573C16.943 12.2573 17.3209 12.3365 17.6178 12.5214V12.3365C17.6178 12.0724 17.5098 11.8083 17.2939 11.6498C17.078 11.465 16.8081 11.3593 16.5112 11.3593C16.0523 11.3593 15.7014 11.5442 15.4585 11.9139L14.7567 11.4914C15.1886 10.9367 15.7554 10.6726 16.5112 10.6726ZM15.4855 13.6834C15.4855 13.8947 15.5934 14.0796 15.7554 14.1852C15.9443 14.3173 16.1603 14.3965 16.3762 14.3965C16.7001 14.3965 17.024 14.2645 17.2669 14.0268C17.5368 13.7891 17.6718 13.4986 17.6718 13.1816C17.4289 12.9968 17.078 12.8911 16.6191 12.8911C16.2952 12.8911 16.0253 12.9704 15.8094 13.1288C15.5934 13.2609 15.4855 13.4458 15.4855 13.6834Z",fill:"#5F6368"}),i.jsx("path",{d:"M22.8002 10.8047L20.128 16.7999H19.3183L20.317 14.7135L18.5625 10.8311H19.4262L20.6949 13.8155H20.7218L21.9635 10.8311H22.8002V10.8047Z",fill:"#5F6368"}),i.jsx("path",{d:"M8.19776 11.9668C8.19776 11.7291 8.17077 11.4914 8.14378 11.2537H4.76983V12.6006H6.68623C6.60526 13.0232 6.36233 13.4193 5.98445 13.657V14.5286H7.14509C7.81988 13.9211 8.19776 13.0232 8.19776 11.9668Z",fill:"#4285F4"}),i.jsx("path",{d:"M4.76983 15.3737C5.74153 15.3737 6.55127 15.0568 7.14509 14.5286L5.98445 13.657C5.66055 13.8683 5.25568 14.0004 4.76983 14.0004C3.85212 14.0004 3.04237 13.3929 2.77245 12.5478H1.58483V13.4458C2.20563 14.6342 3.42025 15.3737 4.76983 15.3737Z",fill:"#34A853"}),i.jsx("path",{d:"M2.77245 12.5478C2.6105 12.1252 2.6105 11.6498 2.77245 11.2008V10.3029H1.58483C1.07199 11.2801 1.07199 12.4421 1.58483 13.4458L2.77245 12.5478Z",fill:"#FBBC04"}),i.jsx("path",{d:"M4.76983 9.77468C5.28267 9.77468 5.76852 9.95955 6.1464 10.3029L7.17208 9.29928C6.52428 8.71825 5.66055 8.37491 4.79682 8.40132C3.44724 8.40132 2.20563 9.14082 1.61182 10.3293L2.79945 11.2273C3.04237 10.3821 3.85212 9.77468 4.76983 9.77468Z",fill:"#EA4335"})]}),i.jsxs("g",{clipPath:"url(#clip1_12_1508)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M21.1469 9.48287C20.8938 9.7666 20.4887 9.99039 20.0837 9.95842C20.033 9.57478 20.2313 9.16717 20.4634 8.91541C20.7166 8.62369 21.1596 8.41589 21.5182 8.3999C21.5604 8.79952 21.3959 9.19115 21.1469 9.48287ZM21.514 10.0343C20.9275 10.0024 20.4254 10.35 20.147 10.35C19.8643 10.35 19.4381 10.0503 18.974 10.0583C18.3707 10.0663 17.8095 10.39 17.5015 10.9055C16.8686 11.9365 17.337 13.4631 17.9487 14.3023C18.2483 14.7179 18.6069 15.1735 19.0795 15.1575C19.5267 15.1415 19.7039 14.8817 20.244 14.8817C20.7883 14.8817 20.9444 15.1575 21.417 15.1495C21.9064 15.1415 22.2144 14.7339 22.514 14.3183C22.8557 13.8467 22.9949 13.3872 23.0034 13.3632C22.9949 13.3552 22.0583 13.0155 22.0498 11.9925C22.0414 11.1373 22.7882 10.7297 22.822 10.7057C22.4 10.1143 21.7418 10.0503 21.514 10.0343ZM24.902 8.87545V15.1055H25.9231V12.9755H27.3365C28.6276 12.9755 29.5348 12.1363 29.5348 10.9215C29.5348 9.70666 28.6445 8.87545 27.3703 8.87545H24.902ZM25.9231 9.69067H27.1003C27.9863 9.69067 28.4926 10.1382 28.4926 10.9255C28.4926 11.7127 27.9863 12.1643 27.096 12.1643H25.9231V9.69067ZM31.3997 15.1535C32.041 15.1535 32.6359 14.8458 32.9059 14.3582H32.927V15.1055H33.8721V12.0045C33.8721 11.1053 33.1127 10.5259 31.9439 10.5259C30.8596 10.5259 30.0579 11.1133 30.0284 11.9205H30.9482C31.0241 11.5369 31.3997 11.2852 31.9144 11.2852C32.5389 11.2852 32.889 11.5609 32.889 12.0684V12.4121L31.6148 12.484C30.4292 12.5519 29.7879 13.0115 29.7879 13.8107C29.7879 14.618 30.4503 15.1535 31.3997 15.1535ZM31.6739 14.4142C31.1296 14.4142 30.7837 14.1664 30.7837 13.7868C30.7837 13.3951 31.117 13.1674 31.7541 13.1314L32.889 13.0635V13.4151C32.889 13.9986 32.3659 14.4142 31.6739 14.4142ZM35.1337 16.7999C36.1294 16.7999 36.5978 16.4402 37.007 15.3493L38.8002 10.5858H37.7623L36.5598 14.2663H36.5387L35.3362 10.5858H34.2687L35.9986 15.1215L35.9058 15.3972C35.7497 15.8648 35.4965 16.0446 35.0451 16.0446C34.9649 16.0446 34.8088 16.0366 34.7455 16.0286V16.7759C34.8046 16.7919 35.0577 16.7999 35.1337 16.7999Z",fill:"black"})]}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_12_1508",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_12_1508",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),Cl=({isAntistock:e=!1})=>e?i.jsx($t,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M18.6917 16.192L16.1917 18.692C16.0744 18.8093 15.9154 18.8752 15.7495 18.8752C15.5837 18.8752 15.4246 18.8093 15.3073 18.692C15.1901 18.5748 15.1242 18.4157 15.1242 18.2499C15.1242 18.084 15.1901 17.9249 15.3073 17.8077L16.7409 16.3749H5.74952C5.58375 16.3749 5.42478 16.309 5.30757 16.1918C5.19036 16.0746 5.12452 15.9156 5.12452 15.7499C5.12452 15.5841 5.19036 15.4251 5.30757 15.3079C5.42478 15.1907 5.58375 15.1249 5.74952 15.1249H16.7409L15.3073 13.692C15.1901 13.5748 15.1242 13.4157 15.1242 13.2499C15.1242 13.084 15.1901 12.9249 15.3073 12.8077C15.4246 12.6904 15.5837 12.6245 15.7495 12.6245C15.9154 12.6245 16.0744 12.6904 16.1917 12.8077L18.6917 15.3077C18.7498 15.3657 18.7959 15.4346 18.8274 15.5105C18.8588 15.5864 18.875 15.6677 18.875 15.7499C18.875 15.832 18.8588 15.9133 18.8274 15.9892C18.7959 16.0651 18.7498 16.134 18.6917 16.192ZM7.80733 11.192C7.9246 11.3093 8.08366 11.3752 8.24952 11.3752C8.41537 11.3752 8.57443 11.3093 8.6917 11.192C8.80898 11.0748 8.87486 10.9157 8.87486 10.7499C8.87486 10.584 8.80898 10.4249 8.6917 10.3077L7.25811 8.87486H18.2495C18.4153 8.87486 18.5742 8.80901 18.6915 8.6918C18.8087 8.57459 18.8745 8.41562 18.8745 8.24986C18.8745 8.0841 18.8087 7.92513 18.6915 7.80792C18.5742 7.69071 18.4153 7.62486 18.2495 7.62486H7.25811L8.6917 6.19205C8.80898 6.07477 8.87486 5.91571 8.87486 5.74986C8.87486 5.58401 8.80898 5.42495 8.6917 5.30767C8.57443 5.1904 8.41537 5.12451 8.24952 5.12451C8.08366 5.12451 7.9246 5.1904 7.80733 5.30767L5.30733 7.80767C5.24922 7.86572 5.20312 7.93465 5.17167 8.01052C5.14021 8.0864 5.12402 8.16772 5.12402 8.24986C5.12402 8.33199 5.14021 8.41332 5.17167 8.4892C5.20312 8.56507 5.24922 8.634 5.30733 8.69205L7.80733 11.192Z",fill:"#252525"})]})}):i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("rect",{width:"24",height:"24",rx:"12",stroke:"#F0F0F0"}),i.jsx("path",{d:"M18.6917 16.192L16.1917 18.692C16.0744 18.8093 15.9154 18.8752 15.7495 18.8752C15.5837 18.8752 15.4246 18.8093 15.3073 18.692C15.1901 18.5748 15.1242 18.4157 15.1242 18.2499C15.1242 18.084 15.1901 17.9249 15.3073 17.8077L16.7409 16.3749H5.74952C5.58375 16.3749 5.42478 16.309 5.30757 16.1918C5.19036 16.0746 5.12452 15.9156 5.12452 15.7499C5.12452 15.5841 5.19036 15.4251 5.30757 15.3079C5.42478 15.1907 5.58375 15.1249 5.74952 15.1249H16.7409L15.3073 13.692C15.1901 13.5748 15.1242 13.4157 15.1242 13.2499C15.1242 13.084 15.1901 12.9249 15.3073 12.8077C15.4246 12.6904 15.5837 12.6245 15.7495 12.6245C15.9154 12.6245 16.0744 12.6904 16.1917 12.8077L18.6917 15.3077C18.7498 15.3657 18.7959 15.4346 18.8274 15.5105C18.8588 15.5864 18.875 15.6677 18.875 15.7499C18.875 15.832 18.8588 15.9133 18.8274 15.9892C18.7959 16.0651 18.7498 16.134 18.6917 16.192ZM7.80733 11.192C7.9246 11.3093 8.08366 11.3752 8.24952 11.3752C8.41537 11.3752 8.57443 11.3093 8.6917 11.192C8.80898 11.0748 8.87486 10.9157 8.87486 10.7499C8.87486 10.584 8.80898 10.4249 8.6917 10.3077L7.25811 8.87486H18.2495C18.4153 8.87486 18.5742 8.80901 18.6915 8.6918C18.8087 8.57459 18.8745 8.41562 18.8745 8.24986C18.8745 8.0841 18.8087 7.92513 18.6915 7.80792C18.5742 7.69071 18.4153 7.62486 18.2495 7.62486H7.25811L8.6917 6.19205C8.80898 6.07477 8.87486 5.91571 8.87486 5.74986C8.87486 5.58401 8.80898 5.42495 8.6917 5.30767C8.57443 5.1904 8.41537 5.12451 8.24952 5.12451C8.08366 5.12451 7.9246 5.1904 7.80733 5.30767L5.30733 7.80767C5.24922 7.86572 5.20312 7.93465 5.17167 8.01052C5.14021 8.0864 5.12402 8.16772 5.12402 8.24986C5.12402 8.33199 5.14021 8.41332 5.17167 8.4892C5.20312 8.56507 5.24922 8.634 5.30733 8.69205L7.80733 11.192Z",fill:"#252525"})]}),vh=()=>i.jsx("svg",{width:"22",height:"8",viewBox:"0 0 22 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M11.3712 2.7019C11.3589 3.70484 12.2371 4.26456 12.8987 4.59731C13.5784 4.93876 13.8067 5.15769 13.8041 5.46299C13.7989 5.93032 13.2619 6.13653 12.7592 6.14456C11.8823 6.15862 11.3725 5.90019 10.9671 5.70469L10.6512 7.23052C11.0579 7.42401 11.811 7.59273 12.5919 7.6001C14.4249 7.6001 15.6241 6.66612 15.6306 5.21795C15.6378 3.38012 13.1678 3.27836 13.1847 2.45686C13.1905 2.2078 13.4208 1.942 13.9254 1.87438C14.1751 1.84023 14.8646 1.81412 15.6462 2.1857L15.953 0.709415C15.5327 0.551409 14.9924 0.400097 14.3198 0.400097C12.5945 0.400097 11.3809 1.3468 11.3712 2.7019ZM18.9009 0.527306C18.5662 0.527306 18.2841 0.728831 18.1583 1.03815L15.5398 7.49164H17.3715L17.736 6.45187H19.9744L20.1858 7.49164H21.8002L20.3914 0.527306H18.9009ZM19.1571 2.40865L19.6857 5.02379H18.238L19.1571 2.40865ZM9.15036 0.527306L7.70655 7.49164H9.45196L10.8951 0.527306H9.15036ZM6.56825 0.527306L4.75149 5.26749L4.01662 1.237C3.93035 0.787079 3.58983 0.527306 3.21169 0.527306H0.24171L0.200195 0.7295C0.80964 0.865981 1.50236 1.08626 1.92201 1.32193C2.17886 1.46587 2.25215 1.59174 2.33647 1.93386L3.72839 7.49164H5.57303L8.40122 0.527306H6.56825Z",fill:"#254AA5"})}),wh=({enterAnother:e,bonusPercent:t,currency:n,isAntistock:r})=>i.jsxs("div",{className:Se.bonusBlock,children:[!r&&i.jsx(N.Icon,{name:"Fire"}),i.jsx("div",{children:r?e>0?`Deposit an additional ${g.formatPrice({amount:e,currency:n})} and receive a ${t}% bonus.`:`Congratulations! You just unlocked a ${t}% bonus!`:e>0?`Enter another ${g.formatPrice({amount:e,currency:n})} and receive an additional bonus of ${t}%`:`You will receive an additional bonus of ${t}%`})]}),El=({isModal:e=!0})=>{const[t,n]=L.useState({amount:"100",gateway:""}),[r,u]=L.useState({}),[a,s]=L.useState(!1),{isAntistock:o}=g.useGeneralStore(),{gatewaysDetail:c,setGatewaysDetail:l,dashInfo:h,balanceSettings:f,setIsBalanceModalOpen:m}=g.useCustomerDashboardStore(),p=g.useNavigate(),{notifications:b,setNotifications:_}=g.useNotificationStore(),{setIsOpen:E}=g.useModalStore(),x=g.useGetTsId();L.useEffect(()=>{c||(async()=>{var Y;const O=f!=null&&f.isEnabled?(Y=f==null?void 0:f.topUpSettings)==null?void 0:Y.gateways:[],X=await fu(O);l(X)})()},[f,c]);const k=()=>{const B={};return(!t.amount||Number(t.amount)<1)&&(B.amount="The balance field cannot be empty."),t.gateway||(B.gateway="Select pay method"),u(B),Object.keys(B).length===0},y=async B=>{if(B.preventDefault(),!!k()){s(!0);try{const{data:O}=await yh({price:{amount:Number(t.amount),currency:f!=null&&f.isEnabled?f.topUpSettings.currency:"USD"},gateway:t.gateway,customerEmail:(h==null?void 0:h.email)||"",tsId:x});_([...b,{message:"Order created successfully",status:"success",id:g.v4()}]),p(`/charges/${O.data.chargeId}`)}catch(O){const X=O;_([...b,{message:`Order creation failed: ${X.message}`,status:"error",id:g.v4()}])}finally{m(!1),s(!1)}}},D=()=>{E(!1),setTimeout(()=>{m(!1)},300)};if(!f||!f.isEnabled)return null;const{topUpSettings:{currency:S,topUpBonusEnabled:I,bonusPercent:M,minimumTopUpForBonus:H}}=f,U=Number(t.amount),P=I&&!Number.isNaN(U)?H-U:H;return i.jsx(i.Fragment,{children:a?i.jsx(Zi,{}):i.jsxs("div",{className:g.clx(Se.modal,{[Se.antistock]:o}),onClick:B=>B.stopPropagation(),id:o?"randomId":void 0,children:[i.jsxs("div",{className:Se.header,children:[i.jsx("h2",{id:"h3",className:Se.headerTitle,children:"Top Up Account Balance"}),e&&i.jsx(N.Icon,{name:"X",onClick:D,className:Se.closeIcon,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("form",{onSubmit:y,className:Se.form,children:[i.jsxs("label",{className:Se.label,children:[i.jsx(N.Input,{label:"Enter Amount",type:"number",placeholder:"1000",value:t.amount,onChange:B=>n(O=>({...O,amount:B})),required:!0}),r.amount&&i.jsx("span",{className:Se.error,children:r.amount})]}),I&&P!==void 0&&i.jsx(wh,{enterAnother:P,bonusPercent:M,currency:S,isAntistock:o}),c&&i.jsx("div",{className:Se.gatewayList,children:c.length>0?c.map(B=>i.jsxs("div",{className:g.clx(Se.gatewayButton,{[Se.selected]:t.gateway===B.name}),onClick:()=>n(O=>({...O,gateway:B.name})),children:[B.name==="ForebitPayments"?i.jsx("div",{className:Se.gatewayIcon,children:i.jsx(pl,{})}):i.jsx("img",{alt:B.displayName,src:g.convertCfImageIdToUrl(B.logoCfImageId,"100"),className:Se.gatewayIcon}),i.jsx("div",{className:Se.gatewayName,children:B.displayName})]},B.name)):i.jsx("span",{children:"Gateways not found"})}),!c&&(o?i.jsx(N.Loader,{}):i.jsx(ir,{speed:2,width:"100%",height:"220px",viewBox:"0 0 600 220",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"})})),r.gateway&&i.jsx("span",{className:Se.error,children:r.gateway}),i.jsx(N.Button,{type:"Primary",disabled:!t.gateway||a,className:Se.submitButton,children:"Continue to Checkout"}),i.jsxs("div",{children:[i.jsx(Pi,{}),i.jsx(Ri,{isAntistock:o})]})]})]})})},yl=()=>{const[e,t]=L.useState([]),{balanceSettings:n,balance:r,isBalanceModalOpen:u,setIsBalanceModalOpen:a}=g.useCustomerDashboardStore(),{page:s,setPage:o}=g.usePaginationPagesStore(),{setIsOpen:c}=g.useModalStore(),[l,h]=L.useState(!0),[f,m]=L.useState(0),[p,b]=L.useState("Newest");L.useEffect(()=>{o(1)},[]),L.useEffect(()=>{(async()=>{h(!0);const{list:S,totalCount:I}=await Eh(s);t(S),m(I),h(!1)})()},[s]);const _=(D,S)=>{var U;const I={},M=new Date,H=[...D].sort((P,B)=>{const O=new Date(P.createdAt).getTime(),X=new Date(B.createdAt).getTime();return S==="Newest"?X-O:O-X});for(const P of H){const B=new Date(P.createdAt),O=B.toDateString()===M.toDateString()?"Today":B.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});I[O]||(I[O]=[]),(U=I[O])==null||U.push(P)}return I},E=({id:D,price:S,status:I,description:M})=>{const H=g.formatPrice({amount:Math.abs(S.amount),currency:S.currency});return i.jsxs("div",{className:Se.transactionItem,children:[i.jsxs("div",{className:Se.transactionDetails,children:[i.jsx(N.Icon,{className:Se.iconWrapper,name:I===qr.ADDED?"Plus":"Minus",width:20,height:20}),i.jsxs("div",{className:Se.transactionInfo,children:[i.jsx("div",{className:Se.transactionTitle,id:"h4",children:M}),i.jsxs("div",{className:Se.transactionId,id:"md",children:["ID: ",D]})]})]}),i.jsxs("div",{className:g.clx(Se.transactionAmount,{[Se.added]:I===qr.ADDED,[Se.removed]:I===qr.REMOVED}),id:"lg",children:[I===qr.ADDED?"+":"-"," ",H]})]},D)},x=()=>{if(e!=null&&e.length){const D=_(e,p);return i.jsxs("div",{className:Se.transactionsContainer,children:[i.jsx("div",{className:Se.transactionsContent,children:Object.entries(D).map(([S,I])=>i.jsxs("div",{id:"lg",children:[i.jsx("div",{className:Se.transactionDate,id:"md",children:S}),I.map(E)]},S))}),i.jsx(mu,{className:Se.pagination,currentPage:s,totalCount:f,onPageChange:o})]})}return i.jsx(ha,{title:"Transaction History",description:"When you top up your account balance or receive a refund from our team, you'll see a history of transactions here.",className:Se.noItemsBlock})},k=()=>{a(!0),c(!0)},y=()=>{a(!1),c(!1)};return i.jsxs(i.Fragment,{children:[(n==null?void 0:n.isEnabled)&&i.jsx("div",{className:Se.balanceContainer,children:i.jsxs("div",{className:Se.balanceHeader,children:[r&&i.jsxs("div",{className:Se.balanceAmount,children:[i.jsx("span",{className:Se.balanceAmountTitle,id:"lg",children:"Your balance"}),i.jsx("span",{className:Se.balanceAmountValue,id:"h4",children:g.formatPrice(r)})]}),i.jsxs(N.Button,{onClick:D=>{D.stopPropagation(),k()},className:Se.addBalanceButton,children:[i.jsx(N.Icon,{name:"Plus"}),i.jsx("span",{children:"Add balance"})]})]})}),i.jsxs("div",{className:Se.transactionsHeader,children:[(e==null?void 0:e.length)>0?i.jsx(fa,{title:"Transactions"}):null,(e==null?void 0:e.length)>0&&i.jsx(N.Select,{options:["Newest","Oldest"],value:p,onChange:D=>{b(D)},style:{width:"110px"}})]}),l?i.jsx("div",{className:Se.loaderContainer,children:i.jsx(N.Loader,{})}):i.jsx("div",{children:x()}),u&&(n==null?void 0:n.isEnabled)&&i.jsx(N.Modal,{close:y,children:i.jsx(El,{})})]})},Dh="_home_1uch5_1",Lh="_content_1uch5_13",Ph="_tablet_1uch5_28",Rh="_mobile_1uch5_31",Mh="_statContainer_1uch5_35",Oh="_text_1uch5_47",jh="_iconWrapper_1uch5_53",Fh="_loader_1uch5_57",Bh="_title_1uch5_65",cn={home:Dh,content:Lh,tablet:Ph,mobile:Rh,statContainer:Mh,text:Oh,iconWrapper:jh,loader:Fh,title:Bh},Hh="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%202V9.85233L13.5806%2010.9427V6.58116L6.41169%208.82252V4.89257L17%202Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M13.5806%2010.9427L13.5805%2014.691L3%2018V9.79935L6.41169%208.82252L6.41152%2013.2598L13.5806%2010.9427Z'%20fill='%23FF3F19'/%3e%3c/svg%3e",Tl=e=>me.createElement("svg",{width:20,height:20,viewBox:"0 0 19 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},me.createElement("path",{d:"M0.0103662 23.5362C0.0538052 22.4425 0.370173 21.4309 1.08058 20.6127C1.92699 19.6379 2.91375 19.2329 4.14841 19.1732C4.162 20.1401 4.15111 21.1085 4.15091 22.0756L4.70583 22.0747L7.42027 22.0755C7.95952 22.0752 8.50027 22.0844 9.03933 22.0742L9.17755 22.0731L10.6132 22.0759C10.8265 22.0759 11.0767 22.1021 11.2852 22.0658C11.3052 22.0703 11.3534 22.0735 11.3625 22.0928C11.3917 22.1543 11.3688 31.0517 11.3725 31.9631C11.1563 32.0856 10.2676 31.8701 10.0303 31.7947C9.89866 31.7528 9.644 31.6914 9.54946 31.5874L9.51914 31.584C9.46943 31.5736 9.44171 31.5537 9.40126 31.5222C9.30218 31.5131 9.14954 31.4132 9.07718 31.343C9.00129 31.3163 8.92757 31.2576 8.85921 31.2134L8.85617 31.2002C8.5748 31.0715 8.14929 30.6244 7.94318 30.376C7.35205 29.6639 6.93892 28.7659 6.83493 27.8203C6.78763 27.3904 6.7994 26.9595 6.80055 26.5277C6.80084 26.4202 6.82996 26.126 6.78242 26.0387L6.71237 26.023C6.54382 26.0528 6.34316 26.0328 6.17124 26.0324L1.0194 26.0325L0.942306 26.0307C0.74237 26.0326 0.173082 26.0689 0.0224192 26.0192L0.00848581 26.0029C0.022853 25.8597 0.0136924 25.7065 0.013837 25.562L0.0113299 24.6651L0.0117161 24.5253C0.0150266 24.1956 0.0145767 23.8659 0.0103662 23.5362Z",fill:"currentColor"}),me.createElement("path",{d:"M6.79824 0.00127802C6.88001 -0.000781892 6.96176 -0.000351703 7.04349 0.00256876C7.12523 0.00549261 7.20682 0.0108998 7.28827 0.0187905C7.36968 0.0266845 7.45082 0.0370518 7.53169 0.0498924C7.61259 0.0627296 7.69305 0.078018 7.77309 0.0957576C7.85312 0.113501 7.93259 0.133663 8.0115 0.156244C8.09044 0.178828 8.16868 0.203796 8.24624 0.231148C8.3238 0.258499 8.40053 0.28819 8.47645 0.32022C8.55237 0.352247 8.62736 0.386559 8.70141 0.423156L8.71428 0.423492C8.76476 0.450874 8.815 0.479135 8.8661 0.50516C8.947 0.550491 9.03065 0.593185 9.10687 0.646856L9.24939 0.733144C9.31674 0.78126 9.38361 0.83049 9.45202 0.87695C10.462 1.67615 11.1434 2.77146 11.325 4.10211C11.4076 4.70784 11.3729 5.34243 11.372 5.9541C11.4625 5.96599 11.5526 5.9664 11.6436 5.96762C12.6033 5.93794 13.5708 5.96289 14.5314 5.96294C15.459 5.96305 16.3927 5.93758 17.3195 5.9633C17.5874 5.96523 17.9062 6.00101 18.1677 5.95273C18.1496 6.13096 18.1583 6.31472 18.1585 6.49401L18.1598 7.38388L18.1595 7.51855C18.1591 7.83084 18.14 8.15609 18.1607 8.46685C18.109 9.73893 17.6972 10.8198 16.8003 11.6891C15.9969 12.4676 15.0894 12.76 14.0228 12.8194L14.021 10.9083C14.0209 10.5892 14.0389 10.2573 14.0163 9.93952C14.0002 9.92849 13.9879 9.91884 13.9692 9.9133C13.7941 9.93418 13.6055 9.92148 13.4293 9.92133H9.15258L9.04077 9.92082L7.56664 9.92209C7.31676 9.92224 7.04528 9.94526 6.79858 9.90893L6.79824 0.00127802Z",fill:"currentColor"}),me.createElement("path",{d:"M4.13987 5.96279C4.65941 5.9653 5.17894 5.96467 5.69847 5.96091C5.70059 7.27995 5.71757 8.60219 5.69833 9.92082L4.15072 9.92046L4.15106 11.4065C4.15096 11.6783 4.1406 11.9555 4.15443 12.2266C4.73799 12.8393 5.31307 13.4655 5.90921 14.0644L5.98321 14.0407C6.25311 14.0833 6.6928 14.0501 6.97981 14.0499L12.7386 14.0492L13.5943 14.0482C13.7363 14.0479 13.9068 14.0286 14.0457 14.0577L15.8019 15.9078L15.8915 15.997L15.9615 16.0784L15.9955 16.1093L17.4221 17.6163C17.6528 17.8599 17.9077 18.0979 18.1211 18.3569C18.1463 18.3875 18.1599 18.4086 18.1691 18.4477C18.1415 18.6757 18.1577 18.9211 18.1579 19.1514L18.1594 20.4531C18.1597 21.8112 18.142 23.1721 18.1599 24.5297L18.1589 24.6625L18.158 25.5556C18.158 25.7089 18.1437 25.8808 18.1676 26.0315L18.0995 26.031L17.2568 26.0329L17.2101 26.0308C16.2512 26.0486 15.2892 26.0305 14.3299 26.0308C13.7488 26.031 13.0694 26.064 12.4959 26.0258L12.4831 26.0202C12.4481 25.9239 12.4717 22.4806 12.47 22.075L14.0216 22.0744C14.0024 21.3241 14.0324 20.5711 14.0173 19.8203C13.4629 19.2116 12.887 18.6041 12.3052 18.0244L12.293 17.9978C12.0554 18.0392 11.5401 18.0054 11.2777 18.0053L8.9362 18.0074C7.75375 17.9793 6.56306 18.0065 5.37994 18.0069C5.13497 18.007 4.32737 18.0401 4.13472 17.9962L2.36331 16.1262L2.29219 16.0566L2.21959 15.9758L2.15074 15.9102C1.93803 15.6694 1.70849 15.441 1.48797 15.2079L0 13.631C0.0383768 13.4512 0.014078 13.2231 0.013837 13.0369L0.0121494 11.9198L0.0113299 7.52017L0.0122943 7.34622C0.0134032 6.9143 0.0453199 6.37479 0.00371286 5.95329C0.115854 5.96772 0.229056 5.9664 0.341872 5.96777C0.589393 5.96198 0.836946 5.96042 1.08453 5.9631L3.10905 5.96548C3.44789 5.96554 3.80282 5.98825 4.13987 5.96279Z",fill:"currentColor"})),Gi=({children:e})=>i.jsx("div",{className:cn.statContainer,children:e}),kl=({adaptiveStyles:e})=>{var f,m,p;const[t,n]=L.useState(null),{setBalanceSettings:r}=g.useCustomerDashboardStore(),{pageContext:u}=g.usePagesStore(),{general:a,isAntistock:s}=g.useGeneralStore();console.log(a);const{header:o}=g.useLayersStore(),{settings:c}=g.useSettingsStore(),l=s?"Antistock":"Billgang";console.log(c);function h(b){var x,k;const _=b==null?void 0:b.name,E=(k=(x=u==null?void 0:u.listings)==null?void 0:x.filter(y=>y.type==="PRODUCT"))==null?void 0:k.find(y=>y.productData.name===_);return E==null?void 0:E.link.to}return L.useEffect(()=>{const b=async()=>{const{data:E}=await al();n(E)},_=async()=>{const E=await dl();r(E)};b(),_()},[]),t?i.jsxs("div",{className:cn.home,children:[i.jsx(Vl,{adaptiveStyles:e}),i.jsx("h3",{id:"h3",className:cn.title,children:s?"Home":"Your Statistics"}),i.jsxs("div",{className:g.clx(cn.content,{[cn.desktop]:e==="desktop",[cn.tablet]:e==="tablet",[cn.mobile]:e==="mobile"}),children:[i.jsxs(Gi,{children:[i.jsx(vt,{iconName:"Calendar",title:"Customer since",value:g.formatTimestamp(t.createdAt)}),i.jsx(vt,{iconName:"CurrencyCircleDollar",title:"Total spent",value:g.formatPrice({amount:t.totalSpent})}),i.jsx(vt,{iconName:"Medal",title:"Top",value:`#${t.ratingPlacement}`,children:t.ratingPlacement>1&&i.jsxs("div",{className:cn.text,id:"md-bold",children:[i.jsx(N.Icon,{name:"ArrowUp",className:cn.iconWrapper,width:16,height:16,fill:"var(--text-secondary)"}),"Spend"," ",g.formatPrice({amount:t.spendMoreDefaultCurrencyForNextPlace??t.spendMoreUsdForNextPlace??0,currency:(f=t.balance)==null?void 0:f.currency})," ","more to be #",t.ratingPlacement-1]})}),s?null:i.jsx(vt,{iconName:"Star",title:"Average review",value:t.averageReview})]}),t.topSpenderProduct?i.jsx(vt,{image:g.convertCfImageIdToUrl(t.topSpenderProduct.image.cfId),imageName:t.topSpenderProduct.name,iconName:"Crown",title:"Top spent",value:`${g.formatPrice({amount:t.topSpenderProduct.amountSpentUsd||0})} spent`,productSlug:h(t.topSpenderProduct)}):i.jsx(vt,{image:"empty",iconName:"Crown",title:"Top spent",value:`${g.formatPrice({amount:0})} spent`}),i.jsxs(Gi,{children:[i.jsx(vt,{iconName:"Bag",title:"Purchases",value:t.totalPurchases}),i.jsx(vt,{iconName:"Eye",title:"Visits",value:t.visits}),s&&i.jsx(vt,{title:"Powered by",value:c!=null&&c.showPoweredBy?"Antistock":(a==null?void 0:a.info.name)||"",logo:c!=null&&c.showPoweredBy?void 0:g.convertCfImageIdToUrl(((m=a==null?void 0:a.info.logo)==null?void 0:m.cfId)||"A5gbiev6F8AaBvp6M146Kw/4ecd0fb9-8ebc-44e9-fa1c-c36f61f4bd00"),customLogo:c!=null&&c.showPoweredBy?i.jsx("div",{style:{width:"48px",height:"48px",padding:"10px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--border-radius)",backgroundColor:"var(--surface-secondary)"},children:i.jsx(Tl,{width:22,height:22})}):void 0}),!s&&i.jsx(vt,{title:"Powered by",value:l,logo:Hh}),s?null:i.jsx(vt,{title:"Store",value:(a==null?void 0:a.info.name)||"",logo:g.convertCfImageIdToUrl((o==null?void 0:o.blockSettings.logo.url)||((p=a==null?void 0:a.info.logo)==null?void 0:p.cfId)||"A5gbiev6F8AaBvp6M146Kw/4ecd0fb9-8ebc-44e9-fa1c-c36f61f4bd00")})]}),t.favoriteProduct?i.jsx(vt,{image:g.convertCfImageIdToUrl(t.favoriteProduct.image.cfId),imageName:t.favoriteProduct.name,iconName:"Heart",title:"Favorite product",value:`bought ${t.favoriteProduct.purchasedTimes} times`,productSlug:h(t.favoriteProduct)}):i.jsx(vt,{image:"empty",iconName:"Heart",title:"Favorite product",value:"bought 0 times"})]})]}):i.jsx("div",{className:cn.loader,children:i.jsx(N.Loader,{})})},Uh="_container_caax0_1",Vh="_tablet_caax0_15",$h="_mobile_caax0_18",zh="_progress_caax0_22",qh="_status_caax0_26",Zh="_name_caax0_37",Wh="_completed_caax0_44",Yh="_title_caax0_50",Gh="_description_caax0_58",Xh="_button_caax0_65",Kh="_achievement_caax0_73",Qh="_progressText_caax0_92",Jh="_progressTextStart_caax0_99",e3="_progressBackground_caax0_103",t3="_progressForeground_caax0_107",n3="_icon_caax0_111",bt={container:Uh,tablet:Vh,mobile:$h,progress:zh,status:qh,name:Zh,completed:Wh,title:Yh,description:Gh,button:Xh,achievement:Kh,progressText:Qh,progressTextStart:Jh,progressBackground:e3,progressForeground:t3,icon:n3},Ut=(e,t,n)=>e===1?t:n??`${t}s`,Al=({adaptiveStyles:e})=>{const{notifications:t,setNotifications:n}=g.useNotificationStore(),{setBalance:r}=g.useCustomerDashboardStore(),[u,a]=L.useState(null),s=async()=>{const f=(await Pf()).map(m=>({...m,isClaimed:!1}));a(f)};L.useEffect(()=>{s()},[]);async function o(h){try{if(await q2(h),u){const m=u==null?void 0:u.map(p=>p.id===h.id?{...p,isClaimed:!0}:p);a(m)}n([...t,{message:"Reward claimed successfully",status:"success",id:g.v4()}]);const f=await oa();a(null),r(f),s()}catch{n([...t,{message:"Failed to claim reward",status:"error",id:g.v4()}])}}const c=u&&u.length===0,l=u&&u.length>0;return i.jsx(i.Fragment,{children:c?i.jsx(ha,{title:"Rewards Unavailable",description:"Check back in the future to join our reward program."}):i.jsxs(i.Fragment,{children:[i.jsx(fa,{title:"Rewards",description:"To unlock an exclusive reward, complete everything on this checklist"}),i.jsxs("div",{className:g.clx(bt.container,{[bt.tablet]:e==="tablet",[bt.mobile]:e==="mobile"}),children:[l&&u.map(h=>i.jsx(r3,{achievement:h,onClick:f=>o(f)},h.id)),!l&&[...new Array(6)].map((h,f)=>i.jsx(ir,{speed:2,width:"100%",height:400,viewBox:"0 0 300 300",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"100%",height:"300px"})},f))]})]})})},r3=({achievement:e,onClick:t})=>{const{isAntistock:n}=g.useGeneralStore(),[r,u]=o3(e),[a,s,o]=c3(e),[c,l]=L.useState(!1),h=s>=o;return i.jsxs("div",{className:bt.achievement,children:[i.jsx(u3,{percentage:Math.min(a,100)}),i.jsx("div",{className:`${bt.status} ${h&&!n?bt.completed:""}`,id:"md",children:h?i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"Confetti"}),i.jsx("span",{id:"md",children:"Completed!"})]}):`Done: ${s} / ${o}`}),i.jsxs("div",{className:bt.title,children:[i.jsx(N.Icon,{name:"Bag",className:bt.icon,fill:"var(--text-action)",width:18,height:18}),i.jsx("div",{className:bt.name,id:"h5",children:r})]}),i.jsx("span",{className:bt.description,id:"md",children:u}),i.jsx(N.Button,{type:h&&!e.isClaimed?"Primary":"Secondary",className:bt.button,disabled:!h,onClick:async()=>{l(!0),await t(e),l(!1)},children:e.isClaimed?i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"CheckCircle",fill:"var(--text-secondary)"}),i.jsxs("span",{children:["Your claimed ",Xi(e)," bonus"]})]}):i.jsxs(i.Fragment,{children:[!c&&(h?i.jsx("span",{children:"Claim"}):Xi(e)),c&&i.jsx(N.Loader,{})]})})]})},u3=({percentage:e,radius:t=40,strokeWidth:n=8})=>{const r=t+n/2,u=r*2,a=2*Math.PI*t,s=a-e/100*a;return i.jsxs("div",{style:{width:u,height:u},className:bt.progress,children:[i.jsxs("svg",{"aria-hidden":"true",width:u,height:u,children:[i.jsx("circle",{cx:r,cy:r,r:t,fill:"transparent",className:bt.progressBackground,strokeWidth:n}),i.jsx("circle",{cx:r,cy:r,r:t,fill:"transparent",strokeWidth:n,strokeDasharray:`${a} ${a}`,strokeDashoffset:s,className:bt.progressForeground})]}),i.jsxs("span",{className:g.clx(bt.progressText,{[bt.progressTextStart]:e!==0}),id:"md",children:[Math.min(e,100),"%"]})]})},a3=e=>{switch(e.rewardRule.rewardType){case ru.Balance:return`${g.formatPrice(e.rewardRule.rewardOptions.balance)} on the balance`;case ru.Product:return`products: ${e.rewardRule.rewardOptions.productsWithVariants.map(t=>`${t.quantity} ${t.productName} (${t.variantName})`).join(", ")}`}},Xi=e=>{switch(e.rewardRule.rewardType){case ru.Balance:return g.formatPrice(e.rewardRule.rewardOptions.balance);case ru.Product:return`${e.rewardRule.rewardOptions.productsWithVariants.map(t=>`${t.quantity} ${t.productName} (${t.variantName})`).join()}`}},s3=e=>{const{ruleType:t,ruleOptions:n}=e.rewardRule,r=a3(e),u=e.progress;switch(t){case _t.Spend:return`Spend $${n.forEach} in total purchases to receive ${r}. You've spent $${u} so far.`;case _t.Order:{const a=n.ordersCount;return`Place ${a} ${Ut(a,"order")} to receive ${r}. You've made ${u} ${Ut(u,"order")} so far.`}case _t.Referral:{const a=n.minReferrals,s=n.minCompletedOrders;return`Have ${a} ${Ut(a,"person")} sign up via your referral link and make at least ${s} ${Ut(s,"purchase")} to receive ${r}. You've referred ${u} ${Ut(u,"friend")} so far.`}case _t.Review:{const a=n.minReviews,s=n.minStars;return`Leave ${a} ${Ut(a,"review")} with a minimum rating of ${s} to receive ${r}. You've left ${u} ${Ut(u,"review")} so far.`}case _t.Vouch:{const a=n.minVouches;return`Leave ${a} ${Ut(a,"vouch","vouches")} to receive ${r}. You've left ${u} ${Ut(u,"vouch","vouches")} so far.`}}},i3=e=>{const{ruleType:t,ruleOptions:n}=e.rewardRule;switch(t){case _t.Spend:return`Spend $${n.forEach} at our store`;case _t.Order:{const r=n.ordersCount;return`Place ${r} ${Ut(r,"order")}`}case _t.Referral:{const r=n.minReferrals;return`Refer ${r} ${Ut(r,"friend")}`}case _t.Review:{const r=n.minReviews,u=n.minStars;return`Leave ${r} ${Ut(r,"review")} with a minimum rating of ${u}`}case _t.Vouch:{const r=n.minVouches;return`Leave ${r} ${Ut(r,"vouch","vouches")}`}}},o3=e=>[i3(e),s3(e)],c3=e=>{let t;switch(e.rewardRule.ruleType){case _t.Spend:t=e.rewardRule.ruleOptions.forEach;break;case _t.Order:t=e.rewardRule.ruleOptions.ordersCount;break;case _t.Referral:t=e.rewardRule.ruleOptions.minReferrals;break;case _t.Review:t=e.rewardRule.ruleOptions.minReviews;break;case _t.Vouch:t=e.rewardRule.ruleOptions.minVouches;break;default:t=0}const n=Math.round((e.progress/Math.max(t,1)*100+Number.EPSILON)*100)/100;return[t===0?100:n,e.progress,t]},l3="_appContainer_1bj0v_1",d3="_noAnimation_1bj0v_11",f3="_mobile_1bj0v_19",h3="_appContainerAntistock_1bj0v_28",p3="_contentContainer_1bj0v_44",m3="_contentContainerAntistock_1bj0v_64",Gn={appContainer:l3,noAnimation:d3,mobile:f3,appContainerAntistock:h3,contentContainer:p3,contentContainerAntistock:m3},g3="_apiPage_pkays_1",b3="_cards_pkays_8",_3="_card_pkays_8",x3="_cardHeader_pkays_24",C3="_cardHeaderRow_pkays_30",E3="_cardTitle_pkays_37",y3="_cardDescription_pkays_42",T3="_apiKeyMeta_pkays_47",k3="_regenerateButton_pkays_62",A3="_fieldRow_pkays_68",S3="_fieldLabel_pkays_75",I3="_fieldValueWrapper_pkays_80",N3="_fieldValue_pkays_80",v3="_copyButton_pkays_98",w3="_twoColumn_pkays_116",D3="_selectorGroup_pkays_127",L3="_selectorLabel_pkays_133",P3="_codeBlockGroup_pkays_145",R3="_codeBlock_pkays_145",M3="_codeHeader_pkays_160",O3="_codeTitle_pkays_169",j3="_codeMethod_pkays_175",F3="_codeBody_pkays_185",B3="_jsonString_pkays_197",H3="_jsonNumber_pkays_201",U3="_jsonBoolean_pkays_205",V3="_endpointDescriptionList_pkays_209",re={apiPage:g3,cards:b3,card:_3,cardHeader:x3,cardHeaderRow:C3,cardTitle:E3,cardDescription:y3,apiKeyMeta:T3,regenerateButton:k3,fieldRow:A3,fieldLabel:S3,fieldValueWrapper:I3,fieldValue:N3,copyButton:v3,twoColumn:w3,selectorGroup:D3,selectorLabel:L3,codeBlockGroup:P3,codeBlock:R3,codeHeader:M3,codeTitle:O3,codeMethod:j3,codeBody:F3,jsonString:B3,jsonNumber:H3,jsonBoolean:U3,endpointDescriptionList:V3},Oa="Balance",Sn={Number:"NUMBER",Textarea:"LARGE_TEXT",Checkbox:"CHECK_BOX",Hidden:"HIDDEN"},$3={customerEmail:"",recaptcha:"",gateway:"",paymentMethod:"",parts:[],customFields:{},discordSocialConnectId:null,coupon:null,tsId:""},Ki=(e,t)=>{var l;const{productId:n,productVariantId:r,quantity:u,chargeType:a}=t,s=e.find(h=>h.id===n);if(!s)throw new Error("Product does not exist");const o=s.variants.find(h=>h.id===r);if(!o)throw new Error("Variant does not exist");if(a==="RECURRING"&&!o.subscriptionSettings)throw new Error("Variant does not have subscription settings");if(u!==void 0&&((l=o.quantity)!=null&&l.available)&&o.quantity.available<u)throw new Error("Not enough quantity available");const c=g.useCartStore.getState().cart;if(c.parts.length>0){const h=e.find(m=>m.id===c.parts[0].productId),f=h==null?void 0:h.variants.find(m=>m.id===c.parts[0].productVariantId);if(f&&o.price.currency!==f.price.currency)throw new Error("Product have different currency")}return o},z3=(e,t)=>{if(!e.volumeDiscounts||e.volumeDiscounts.length===0)return 0;const n=e.volumeDiscounts.filter(u=>t>=u.amount);return n.length===0?0:n.reduce((u,a)=>a.amount>u.amount?a:u).percentage},q3=(e,t)=>{let n=0,r=0;return e.forEach(u=>{var m,p;const a=t.find(b=>(b==null?void 0:b.id)===u.productId),s=a==null?void 0:a.variants.find(b=>b.id===u.productVariantId);if(!s)return;const{gateway:o}=g.useCartStore.getState().cart,c=(s==null?void 0:s.gateways)||[],l=c.some(b=>b.name===o&&b.overrodePrice)?(m=c.find(b=>b.name===o))==null?void 0:m.overrodePrice:null;let h=0,f=0;if(u.chargeType==="ONE_TIME"?(h=(l==null?void 0:l.amount)||(s==null?void 0:s.price.amount)||0,f=h*u.quantity):f=s!=null&&s.subscriptionSettings?s.subscriptionSettings.price.amount+(((p=s.subscriptionSettings.entryFee)==null?void 0:p.amount)||0):0,n+=f,u.chargeType==="ONE_TIME"){const b=z3(s,u.quantity),_=f*(1-b/100);r+=_}else r+=f}),{total:n,totalWithVolumeDiscounts:r}},Z3=(e,t)=>({isRequired:t.some(r=>{var a;const u=e.find(s=>(s==null?void 0:s.id)===r.productId);return(a=u==null?void 0:u.variants.find(s=>s.id===r.productVariantId))==null?void 0:a.discordSettings.isRequired}),isEnabled:t.some(r=>{var a;const u=e.find(s=>(s==null?void 0:s.id)===r.productId);return(a=u==null?void 0:u.variants.find(s=>s.id===r.productVariantId))==null?void 0:a.discordSettings.isEnabled})}),Qi=e=>new Set(e.gateways.map(t=>t.name)),ja={availableGateways:[],requiresSignInGateways:[]},Ji=(e,t)=>{if(t.length===0)return ja;const n=e[0];if(!n)return ja;const r=t.find(o=>o.id===n.productId),u=r==null?void 0:r.variants.find(o=>o.id===n.productVariantId);if(!u)return ja;const a=Qi(u);for(const o of e){const c=t.find(f=>f.id===o.productId);if(!c)continue;const l=c.variants.find(f=>f.id===o.productVariantId);if(!l)continue;const h=Qi(l);for(const f of a)h.has(f)||a.delete(f)}return!localStorage.getItem("token")&&a.has(Oa)?(a.delete(Oa),{availableGateways:[...a],requiresSignInGateways:[Oa]}):{availableGateways:[...a],requiresSignInGateways:[]}},eo=(e,t)=>{if(e.length===0)return[];const r=e.map(a=>{const s=t.find(c=>c.id===a.productId),o=s==null?void 0:s.variants.find(c=>c.id===a.productVariantId);return(o==null?void 0:o.customFields)??[]}).flat().reduce((a,s)=>{const o=a[s.name];return o?(s.required&&!o.required&&(a[s.name]={...s,value:s.defaultValue}),a):(a[s.name]={...s,value:s.defaultValue},a)},{});return Object.values(r).map(a=>({...a,value:""}))},W3=(e,t)=>{const n=t.find(u=>u.id===e.productId),r=n==null?void 0:n.variants.find(u=>u.id===e.productVariantId);return e.chargeType==="RECURRING"?!!(r!=null&&r.subscriptionSettings):!1},hu=()=>{const{cart:e,products:t,coupon:n,pending:r,applyCouponPending:u,customerEmail:a,setCart:s,setProducts:o,setCoupon:c,setPending:l,setApplyCouponPending:h}=g.useCartStore(),f=async _=>{var M;h(!0);const{cart:E}=g.useCartStore.getState(),{gateway:x,parts:k}=E,{notifications:y,setNotifications:D}=g.useNotificationStore.getState();x||(h(!1),D([...y,{message:"There should be a gateway for the coupon",status:"error",id:g.v4()}]));const S=k.map(H=>H.productId);let I=null;try{const{data:H}=await B2({gateway:x,couponName:_,productIds:S});I=H.data,D([...y,{message:"Coupon is applied",status:"success",id:g.v4()}]),s(U=>({...U,coupon:_}))}catch(H){const U=H;D([...y,{message:`Coupon is not applied: ${U.message}`,status:"error",id:g.v4()}]),s(P=>({...P,coupon:null})),c(null),h(!1)}if(h(!1),(M=I==null?void 0:I.restrictToProductIds)!=null&&M.length&&!S.every(H=>{var U;return(U=I==null?void 0:I.restrictToProductIds)==null?void 0:U.includes(H)}))throw new Error("Coupon can't be applied to such products");return c(I),I},b={reset(){s({...$3}),c(null)},addProducts:_=>{const E=g.useCartStore.getState().products,x=_.filter(k=>!E.some(y=>y.id===k.id));o([...E,...x])},addProductToCart:_=>{const E=g.useCartStore.getState().cart;try{Ki(t,_)}catch(k){throw new Error(k)}const x=E.parts.find(k=>k.productId===_.productId&&k.productVariantId===_.productVariantId&&k.chargeType===_.chargeType);if(x)return b.updateQuantityOfProduct({...x,quantity:(x.quantity||1)+(_.quantity||1),chargeType:_.chargeType});if(E.parts.length&&Ji([...E.parts,_],t).availableGateways.length===0)throw new Error("No common payment gateways available");s({...E,parts:[...E.parts,_]}),E.coupon&&f(E.coupon)},removeProduct({productId:_,productVariantId:E}){s(x=>({...x,parts:x.parts.filter(k=>k.productId!==_||k.productVariantId!==E)})),e.coupon&&f(e.coupon)},getPossibleGateways(){return Ji(e.parts,t)},removeCoupon(){c(null)},getDiscordSettings(){return Z3(t,e.parts)},updateQuantityOfProduct(_){Ki(t,_),s(E=>({...E,parts:E.parts.map(x=>x.productId===_.productId&&x.productVariantId===_.productVariantId?{...x,quantity:_.quantity,chargeType:_.chargeType}:x)})),e.coupon&&f(e.coupon)},getTotalAndDiscount(){const{coupon:_}=g.useCartStore.getState(),{total:E,totalWithVolumeDiscounts:x}=q3(e.parts,t);let k;const y=x;return _&&_.discount?!_.isFixed&&_.discount===100?k=0:k=_.isFixed?Math.max(0,y-_.discount):y*(1-_.discount/100):x!==E&&(k=x),{total:E,totalWithVolumeDiscounts:x!==E?x:void 0,totalWithDiscount:k}},setGateway(_){s(x=>({...x,gateway:_}));const{isAntistock:E}=g.useGeneralStore.getState();e.coupon&&!E&&f(e.coupon)},setPaymentMethod(_){s(E=>({...E,paymentMethod:_,coupon:null})),c(null)},async submitCart(_){l(!0);const{cart:E}=g.useCartStore.getState(),{discordInfo:x}=g.useDiscordStore.getState();let k;if(E.parts&&a&&W3(E.parts[0],t))try{const{data:y}=await T2({gateway:E.gateway,coupon:E.coupon,partOrder:E.parts[0],referralCode:localStorage.getItem("referralCode"),discordSocialConnectId:x!=null&&x.authorized?x.id:null,customerEmail:a,recaptcha:_,customFields:{...E.customFields},tsId:g.useGetTsId()});k=y.data}catch(y){console.error(y)}else try{const{data:y}=await g2({gateway:E.gateway,parts:[...E.parts],coupon:E.coupon,customerEmail:E.customerEmail,referralCode:localStorage.getItem("referralCode"),recaptcha:_,customFields:{...E.customFields},tsId:g.useGetTsId(),discordSocialConnectId:x!=null&&x.authorized?x.id:null,usePriorityReplacement:E.usePriorityReplacement===!0});k=y.data}catch(y){const D=y,{notifications:S,setNotifications:I}=g.useNotificationStore.getState();I([...S,{message:`Failed to create order: ${D.message}`,status:"error",id:g.v4()}])}if(l(!1),k)return k;throw new Error("Failed to create order")},setDiscordSocialConnectId(_){s(E=>({...E,discordSocialConnectId:_}))},setCustomFields(_){s(E=>({...E,customFields:{..._}}))}};return L.useEffect(()=>{s(_=>({..._,customerEmail:a??""}))},[a,s]),{cart:e,products:t,coupon:n,pending:r,applyCouponPending:u,applyCoupon:f,...b}},Zn=()=>{const{notifications:e,setNotifications:t}=g.useNotificationStore();return n=>{navigator.clipboard.writeText(n),t([...e,{status:"success",message:"Successfully copied",id:g.v4()}])}},Fa=" ",Ts=(e,t=0)=>{const n=[],r=Fa.repeat(t);if(Array.isArray(e))return n.push(`[
|
|
15
15
|
`),e.forEach((u,a)=>{n.push(Fa.repeat(t+1)),n.push(...Ts(u,t+1)),n.push(a<e.length-1?`,
|
|
16
16
|
`:`
|
|
17
17
|
`)}),n.push(r+"]"),n;if(e!==null&&typeof e=="object"){const u=Object.entries(e);return n.push(`{
|
|
@@ -36,7 +36,7 @@ object-assign
|
|
|
36
36
|
(c) Sindre Sorhus
|
|
37
37
|
@license MIT
|
|
38
38
|
*/var Ba,uo;function X3(){if(uo)return Ba;uo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function u(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var c=Object.getOwnPropertyNames(s).map(function(h){return s[h]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ba=u()?Object.assign:function(a,s){for(var o,c=r(a),l,h=1;h<arguments.length;h++){o=Object(arguments[h]);for(var f in o)t.call(o,f)&&(c[f]=o[f]);if(e){l=e(o);for(var m=0;m<l.length;m++)n.call(o,l[m])&&(c[l[m]]=o[l[m]])}}return c},Ba}var Ha,ao;function Js(){if(ao)return Ha;ao=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ha=e,Ha}var Ua,so;function Il(){return so||(so=1,Ua=Function.call.bind(Object.prototype.hasOwnProperty)),Ua}var Va,io;function K3(){if(io)return Va;io=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Js(),n={},r=Il();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function u(a,s,o,c,l){if(process.env.NODE_ENV!=="production"){for(var h in a)if(r(a,h)){var f;try{if(typeof a[h]!="function"){var m=Error((c||"React class")+": "+o+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=a[h](s,h,c,o,null,t)}catch(b){f=b}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+o+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=l?l():"";e("Failed "+o+" type: "+f.message+(p??""))}}}}return u.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Va=u,Va}var $a,oo;function Q3(){if(oo)return $a;oo=1;var e=Qs(),t=X3(),n=Js(),r=Il(),u=K3(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(o){var c="Warning: "+o;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return $a=function(o,c){var l=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function f(C){var V=C&&(l&&C[l]||C[h]);if(typeof V=="function")return V}var m="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:k(),arrayOf:y,element:D(),elementType:S(),instanceOf:I,node:P(),objectOf:H,oneOf:M,oneOfType:U,shape:O,exact:X};function b(C,V){return C===V?C!==0||1/C===1/V:C!==C&&V!==V}function _(C,V){this.message=C,this.data=V&&typeof V=="object"?V:{},this.stack=""}_.prototype=Error.prototype;function E(C){if(process.env.NODE_ENV!=="production")var V={},te=0;function v(ne,Q,de,le,ie,xe,ze){if(le=le||m,xe=xe||de,ze!==n){if(c){var G=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 G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pt=le+":"+de;!V[pt]&&te<3&&(a("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+le+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[pt]=!0,te++)}}return Q[de]==null?ne?Q[de]===null?new _("The "+ie+" `"+xe+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new _("The "+ie+" `"+xe+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:C(Q,de,le,ie,xe)}var J=v.bind(null,!1);return J.isRequired=v.bind(null,!0),J}function x(C){function V(te,v,J,ne,Q,de){var le=te[v],ie=ue(le);if(ie!==C){var xe=ae(le);return new _("Invalid "+ne+" `"+Q+"` of type "+("`"+xe+"` supplied to `"+J+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return E(V)}function k(){return E(s)}function y(C){function V(te,v,J,ne,Q){if(typeof C!="function")return new _("Property `"+Q+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var de=te[v];if(!Array.isArray(de)){var le=ue(de);return new _("Invalid "+ne+" `"+Q+"` of type "+("`"+le+"` supplied to `"+J+"`, expected an array."))}for(var ie=0;ie<de.length;ie++){var xe=C(de,ie,J,ne,Q+"["+ie+"]",n);if(xe instanceof Error)return xe}return null}return E(V)}function D(){function C(V,te,v,J,ne){var Q=V[te];if(!o(Q)){var de=ue(Q);return new _("Invalid "+J+" `"+ne+"` of type "+("`"+de+"` supplied to `"+v+"`, expected a single ReactElement."))}return null}return E(C)}function S(){function C(V,te,v,J,ne){var Q=V[te];if(!e.isValidElementType(Q)){var de=ue(Q);return new _("Invalid "+J+" `"+ne+"` of type "+("`"+de+"` supplied to `"+v+"`, expected a single ReactElement type."))}return null}return E(C)}function I(C){function V(te,v,J,ne,Q){if(!(te[v]instanceof C)){var de=C.name||m,le=_e(te[v]);return new _("Invalid "+ne+" `"+Q+"` of type "+("`"+le+"` supplied to `"+J+"`, expected ")+("instance of `"+de+"`."))}return null}return E(V)}function M(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function V(te,v,J,ne,Q){for(var de=te[v],le=0;le<C.length;le++)if(b(de,C[le]))return null;var ie=JSON.stringify(C,function(ze,G){var pt=ae(G);return pt==="symbol"?String(G):G});return new _("Invalid "+ne+" `"+Q+"` of value `"+String(de)+"` "+("supplied to `"+J+"`, expected one of "+ie+"."))}return E(V)}function H(C){function V(te,v,J,ne,Q){if(typeof C!="function")return new _("Property `"+Q+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var de=te[v],le=ue(de);if(le!=="object")return new _("Invalid "+ne+" `"+Q+"` of type "+("`"+le+"` supplied to `"+J+"`, expected an object."));for(var ie in de)if(r(de,ie)){var xe=C(de,ie,J,ne,Q+"."+ie,n);if(xe instanceof Error)return xe}return null}return E(V)}function U(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var V=0;V<C.length;V++){var te=C[V];if(typeof te!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(te)+" at index "+V+"."),s}function v(J,ne,Q,de,le){for(var ie=[],xe=0;xe<C.length;xe++){var ze=C[xe],G=ze(J,ne,Q,de,le,n);if(G==null)return null;G.data&&r(G.data,"expectedType")&&ie.push(G.data.expectedType)}var pt=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new _("Invalid "+de+" `"+le+"` supplied to "+("`"+Q+"`"+pt+"."))}return E(v)}function P(){function C(V,te,v,J,ne){return Y(V[te])?null:new _("Invalid "+J+" `"+ne+"` supplied to "+("`"+v+"`, expected a ReactNode."))}return E(C)}function B(C,V,te,v,J){return new _((C||"React class")+": "+V+" type `"+te+"."+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function O(C){function V(te,v,J,ne,Q){var de=te[v],le=ue(de);if(le!=="object")return new _("Invalid "+ne+" `"+Q+"` of type `"+le+"` "+("supplied to `"+J+"`, expected `object`."));for(var ie in C){var xe=C[ie];if(typeof xe!="function")return B(J,ne,Q,ie,ae(xe));var ze=xe(de,ie,J,ne,Q+"."+ie,n);if(ze)return ze}return null}return E(V)}function X(C){function V(te,v,J,ne,Q){var de=te[v],le=ue(de);if(le!=="object")return new _("Invalid "+ne+" `"+Q+"` of type `"+le+"` "+("supplied to `"+J+"`, expected `object`."));var ie=t({},te[v],C);for(var xe in ie){var ze=C[xe];if(r(C,xe)&&typeof ze!="function")return B(J,ne,Q,xe,ae(ze));if(!ze)return new _("Invalid "+ne+" `"+Q+"` key `"+xe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(te[v],null," ")+`
|
|
39
|
-
Valid keys: `+JSON.stringify(Object.keys(C),null," "));var G=ze(de,xe,J,ne,Q+"."+xe,n);if(G)return G}return null}return E(V)}function Y(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(Y);if(C===null||o(C))return!0;var V=f(C);if(V){var te=V.call(C),v;if(V!==C.entries){for(;!(v=te.next()).done;)if(!Y(v.value))return!1}else for(;!(v=te.next()).done;){var J=v.value;if(J&&!Y(J[1]))return!1}}else return!1;return!0;default:return!1}}function K(C,V){return C==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function ue(C){var V=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":K(V,C)?"symbol":V}function ae(C){if(typeof C>"u"||C===null)return""+C;var V=ue(C);if(V==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return V}function se(C){var V=ae(C);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function _e(C){return!C.constructor||!C.constructor.name?m:C.constructor.name}return p.checkPropTypes=u,p.resetWarningCache=u.resetWarningCache,p.PropTypes=p,p},$a}var za,co;function J3(){if(co)return za;co=1;var e=Js();function t(){}function n(){}return n.resetWarningCache=t,za=function(){function r(s,o,c,l,h,f){if(f!==e){var m=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 m.name="Invariant Violation",m}}r.isRequired=r;function u(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:u,element:r,elementType:r,instanceOf:u,node:r,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},za}if(process.env.NODE_ENV!=="production"){var ep=Qs(),tp=!0;ks.exports=Q3()(ep.isElement,tp)}else ks.exports=J3()();var np=ks.exports;const wt=g.getDefaultExportFromCjs(np);var rp=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},As.apply(this,arguments)}function up(e,t){if(e==null)return{};var n={},r=Object.keys(e),u,a;for(a=0;a<r.length;a++)u=r[a],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}function Iu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ap(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ss(e,t)}function Ss(e,t){return Ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,u){return r.__proto__=u,r},Ss(e,t)}var la=function(e){ap(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Iu(r)),r.handleErrored=r.handleErrored.bind(Iu(r)),r.handleChange=r.handleChange.bind(Iu(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Iu(r)),r}var n=t.prototype;return n.getCaptchaFunction=function(u){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[u]:this.props.grecaptcha[u]:null},n.getValue=function(){var u=this.getCaptchaFunction("getResponse");return u&&this._widgetId!==void 0?u(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var u=this.getCaptchaFunction("execute");if(u&&this._widgetId!==void 0)return u(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var u=this;return new Promise(function(a,s){u.executionResolve=a,u.executionReject=s,u.execute()})},n.reset=function(){var u=this.getCaptchaFunction("reset");u&&this._widgetId!==void 0&&u(this._widgetId)},n.forceReset=function(){var u=this.getCaptchaFunction("reset");u&&u()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(u){this.props.onChange&&this.props.onChange(u),this.executionResolve&&(this.executionResolve(u),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var u=this.getCaptchaFunction("render");if(u&&this._widgetId===void 0){var a=document.createElement("div");this._widgetId=u(a,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(a)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(u){this.captcha=u},n.render=function(){var u=this.props;u.sitekey,u.onChange,u.theme,u.type,u.tabindex,u.onExpired,u.onErrored,u.size,u.stoken,u.grecaptcha,u.badge,u.hl,u.isolated;var a=up(u,rp);return me.createElement("div",As({},a,{ref:this.handleRecaptchaRef}))},t}(me.Component);la.displayName="ReCAPTCHA";la.propTypes={sitekey:wt.string.isRequired,onChange:wt.func,grecaptcha:wt.object,theme:wt.oneOf(["dark","light"]),type:wt.oneOf(["image","audio"]),tabindex:wt.number,onExpired:wt.func,onErrored:wt.func,size:wt.oneOf(["compact","normal","invisible"]),stoken:wt.string,hl:wt.string,badge:wt.oneOf(["bottomright","bottomleft","inline"]),isolated:wt.bool};la.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var ei=Qs(),sp={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ip={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},op={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Nl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ti={};ti[ei.ForwardRef]=op;ti[ei.Memo]=Nl;function lo(e){return ei.isMemo(e)?Nl:ti[e.$$typeof]||sp}var cp=Object.defineProperty,lp=Object.getOwnPropertyNames,fo=Object.getOwnPropertySymbols,dp=Object.getOwnPropertyDescriptor,fp=Object.getPrototypeOf,ho=Object.prototype;function vl(e,t,n){if(typeof t!="string"){if(ho){var r=fp(t);r&&r!==ho&&vl(e,r,n)}var u=lp(t);fo&&(u=u.concat(fo(t)));for(var a=lo(e),s=lo(t),o=0;o<u.length;++o){var c=u[o];if(!ip[c]&&!(n&&n[c])&&!(s&&s[c])&&!(a&&a[c])){var l=dp(t,c);try{cp(e,c,l)}catch{}}}}return e}var hp=vl;const pp=g.getDefaultExportFromCjs(hp);function Is(){return Is=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Is.apply(this,arguments)}function mp(e,t){if(e==null)return{};var n={},r=Object.keys(e),u,a;for(a=0;a<r.length;a++)u=r[a],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}function gp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var en={},bp=0;function _p(e,t){return t=t||{},function(r){var u=r.displayName||r.name||"Component",a=function(o){gp(c,o);function c(h,f){var m;return m=o.call(this,h,f)||this,m.state={},m.__scriptURL="",m}var l=c.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+bp++),this.__scriptLoaderID},l.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},l.asyncScriptLoaderHandleLoad=function(f){var m=this;this.setState(f,function(){return m.props.asyncScriptOnLoad&&m.props.asyncScriptOnLoad(m.state)})},l.asyncScriptLoaderTriggerOnScriptLoaded=function(){var f=en[this.__scriptURL];if(!f||!f.loaded)throw new Error("Script is not loaded.");for(var m in f.observers)f.observers[m](f);delete window[t.callbackName]},l.componentDidMount=function(){var f=this,m=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),b=t,_=b.globalName,E=b.callbackName,x=b.scriptId;if(_&&typeof window[_]<"u"&&(en[m]={loaded:!0,observers:{}}),en[m]){var k=en[m];if(k&&(k.loaded||k.errored)){this.asyncScriptLoaderHandleLoad(k);return}k.observers[p]=function(M){return f.asyncScriptLoaderHandleLoad(M)};return}var y={};y[p]=function(M){return f.asyncScriptLoaderHandleLoad(M)},en[m]={loaded:!1,observers:y};var D=document.createElement("script");D.src=m,D.async=!0;for(var S in t.attributes)D.setAttribute(S,t.attributes[S]);x&&(D.id=x);var I=function(H){if(en[m]){var U=en[m],P=U.observers;for(var B in P)H(P[B])&&delete P[B]}};E&&typeof window<"u"&&(window[E]=function(){return f.asyncScriptLoaderTriggerOnScriptLoaded()}),D.onload=function(){var M=en[m];M&&(M.loaded=!0,I(function(H){return E?!1:(H(M),!0)}))},D.onerror=function(){var M=en[m];M&&(M.errored=!0,I(function(H){return H(M),!0}))},document.body.appendChild(D)},l.componentWillUnmount=function(){var f=this.__scriptURL;if(t.removeOnUnmount===!0)for(var m=document.getElementsByTagName("script"),p=0;p<m.length;p+=1)m[p].src.indexOf(f)>-1&&m[p].parentNode&&m[p].parentNode.removeChild(m[p]);var b=en[f];b&&(delete b.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete en[f])},l.render=function(){var f=t.globalName,m=this.props;m.asyncScriptOnLoad;var p=m.forwardedRef,b=mp(m,["asyncScriptOnLoad","forwardedRef"]);return f&&typeof window<"u"&&(b[f]=typeof window[f]<"u"?window[f]:void 0),b.ref=p,L.createElement(r,b)},c}(L.Component),s=L.forwardRef(function(o,c){return L.createElement(a,Is({},o,{forwardedRef:c}))});return s.displayName="AsyncScriptLoader("+u+")",s.propTypes={asyncScriptOnLoad:wt.func},pp(s,r)}}var Ns="onloadcallback",xp="grecaptcha";function vs(){return typeof window<"u"&&window.recaptchaOptions||{}}function Cp(){var e=vs(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Ns+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Ns+"&render=explicit"}const Ep=_p(Cp,{callbackName:Ns,globalName:xp,attributes:vs().nonce?{nonce:vs().nonce}:{}})(la),wl=()=>{const{isAntistock:e,general:t}=g.useGeneralStore();return{isAntistock:e,general:t}},Dl="6LdQiIIpAAAAAAkhvhS9zuo5WNS5mAzZrALD9cCa",Ll="6Ld0EgYrAAAAAF5_Zqm8S4ZrbCZu6s1u7evUlL3l",Pl=L.createContext(void 0),ni=({children:e})=>{const t=L.useRef(null),{isAntistock:n}=wl(),{notifications:r,setNotifications:u}=g.useNotificationStore();L.useEffect(()=>{typeof window<"u"&&yp()},[]);const a=async()=>{try{if(!t.current)return u([...r,{message:"[ReCAPTCHA] executeRecaptcha called before ref is ready",status:"error",id:g.v4()}]),null;const s=await t.current.executeAsync();return t.current.reset(),s||(u([...r,{message:"[ReCAPTCHA] Received empty token",status:"error",id:g.v4()}]),null)}catch{return u([...r,{message:"[ReCAPTCHA] executeRecaptcha error",status:"error",id:g.v4()}]),null}};return i.jsxs(Pl.Provider,{value:{recaptchaRef:t,executeRecaptcha:a},children:[e,i.jsx("div",{style:{visibility:"hidden",opacity:0},children:i.jsx(Ep,{sitekey:n?Ll:Dl,size:"invisible",ref:t,badge:"inline"})})]})},pu=()=>{const e=L.useContext(Pl);if(e===void 0)throw new Error("useReCaptcha must be used within a ReCaptchaProvider");return e};function yp(){var t,n;if(typeof window>"u")return;const e=(n=(t=[...document.getElementsByTagName("iframe")].find(r=>r.src.includes("google.com/recaptcha/api2/bframe")))==null?void 0:t.parentNode)==null?void 0:n.parentNode;e&&new MutationObserver(()=>{(e.style.visibility!=="visible"||e.style.opacity!=="1")&&(e.style.opacity="1",e.style.visibility="visible")}).observe(e,{attributeFilter:["style"]})}const Tp=Object.freeze(Object.defineProperty({__proto__:null,ANTISTOCK_SITE_KEY:Ll,ReCaptchaProvider:ni,SITE_KEY:Dl,useReCaptcha:pu},Symbol.toStringTag,{value:"Module"}));var kp=Object.defineProperty,Ap=Object.defineProperties,Sp=Object.getOwnPropertyDescriptors,Gu=Object.getOwnPropertySymbols,Rl=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable,po=(e,t,n)=>t in e?kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ip=(e,t)=>{for(var n in t||(t={}))Rl.call(t,n)&&po(e,n,t[n]);if(Gu)for(var n of Gu(t))Ml.call(t,n)&&po(e,n,t[n]);return e},Np=(e,t)=>Ap(e,Sp(t)),vp=(e,t)=>{var n={};for(var r in e)Rl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Gu)for(var r of Gu(e))t.indexOf(r)<0&&Ml.call(e,r)&&(n[r]=e[r]);return n};function wp(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function Dp(e){let t=me.useRef();return me.useEffect(()=>{t.current=e}),t.current}var Lp=18,Ol=40,Pp=`${Ol}px`,Rp=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function Mp({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[u,a]=me.useState(!1),[s,o]=me.useState(!1),[c,l]=me.useState(!1),h=me.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&u&&s,[u,s,n]),f=me.useCallback(()=>{let m=e.current,p=t.current;if(!m||!p||c||n==="none")return;let b=m,_=b.getBoundingClientRect().left+b.offsetWidth,E=b.getBoundingClientRect().top+b.offsetHeight/2,x=_-Lp,k=E;document.querySelectorAll(Rp).length===0&&document.elementFromPoint(x,k)===m||(a(!0),l(!0))},[e,t,c,n]);return me.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function p(){let _=window.innerWidth-m.getBoundingClientRect().right;o(_>=Ol)}p();let b=setInterval(p,1e3);return()=>{clearInterval(b)}},[e,n]),me.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let p=setTimeout(f,0),b=setTimeout(f,2e3),_=setTimeout(f,5e3),E=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(p),clearTimeout(b),clearTimeout(_),clearTimeout(E)}},[t,r,n,f]),{hasPWMBadge:u,willPushPWMBadge:h,PWM_BADGE_SPACE_WIDTH:Pp}}var Op=me.createContext({}),jl=me.forwardRef((e,t)=>{var n=e,{value:r,onChange:u,maxLength:a,textAlign:s="left",pattern:o,placeholder:c,inputMode:l="numeric",onComplete:h,pushPasswordManagerStrategy:f="increase-width",pasteTransformer:m,containerClassName:p,noScriptCSSFallback:b=jp,render:_,children:E}=n,x=vp(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),k,y,D,S,I;let[M,H]=me.useState(typeof x.defaultValue=="string"?x.defaultValue:""),U=r??M,P=Dp(U),B=me.useCallback(oe=>{u==null||u(oe),H(oe)},[u]),O=me.useMemo(()=>o?typeof o=="string"?new RegExp(o):o:null,[o]),X=me.useRef(null),Y=me.useRef(null),K=me.useRef({value:U,onChange:B,isIOS:typeof window<"u"&&((y=(k=window==null?void 0:window.CSS)==null?void 0:k.supports)==null?void 0:y.call(k,"-webkit-touch-callout","none"))}),ue=me.useRef({prev:[(D=X.current)==null?void 0:D.selectionStart,(S=X.current)==null?void 0:S.selectionEnd,(I=X.current)==null?void 0:I.selectionDirection]});me.useImperativeHandle(t,()=>X.current,[]),me.useEffect(()=>{let oe=X.current,pe=Y.current;if(!oe||!pe)return;K.current.value!==oe.value&&K.current.onChange(oe.value),ue.current.prev=[oe.selectionStart,oe.selectionEnd,oe.selectionDirection];function Qe(){if(document.activeElement!==oe){te(null),J(null);return}let ee=oe.selectionStart,ge=oe.selectionEnd,mt=oe.selectionDirection,gt=oe.maxLength,Zt=oe.value,At=ue.current.prev,$e=-1,j=-1,W;if(Zt.length!==0&&ee!==null&&ge!==null){let Ot=ee===ge,_n=ee===Zt.length&&Zt.length<gt;if(Ot&&!_n){let dt=ee;if(dt===0)$e=0,j=1,W="forward";else if(dt===gt)$e=dt-1,j=dt,W="backward";else if(gt>1&&Zt.length>1){let xn=0;if(At[0]!==null&&At[1]!==null){W=dt<At[1]?"backward":"forward";let Yn=At[0]===At[1]&&At[0]<gt;W==="backward"&&!Yn&&(xn=-1)}$e=xn+dt,j=xn+dt+1}}$e!==-1&&j!==-1&&$e!==j&&X.current.setSelectionRange($e,j,W)}let fe=$e!==-1?$e:ee,Se=j!==-1?j:ge,Oe=W??mt;te(fe),J(Se),ue.current.prev=[fe,Se,Oe]}if(document.addEventListener("selectionchange",Qe,{capture:!0}),Qe(),document.activeElement===oe&&C(!0),!document.getElementById("input-otp-style")){let ee=document.createElement("style");if(ee.id="input-otp-style",document.head.appendChild(ee),ee.sheet){let ge="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Fr(ee.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Fr(ee.sheet,`[data-input-otp]:autofill { ${ge} }`),Fr(ee.sheet,`[data-input-otp]:-webkit-autofill { ${ge} }`),Fr(ee.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Fr(ee.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Ee=()=>{pe&&pe.style.setProperty("--root-height",`${oe.clientHeight}px`)};Ee();let Ne=new ResizeObserver(Ee);return Ne.observe(oe),()=>{document.removeEventListener("selectionchange",Qe,{capture:!0}),Ne.disconnect()}},[]);let[ae,se]=me.useState(!1),[_e,C]=me.useState(!1),[V,te]=me.useState(null),[v,J]=me.useState(null);me.useEffect(()=>{wp(()=>{var oe,pe,Qe,Ee;(oe=X.current)==null||oe.dispatchEvent(new Event("input"));let Ne=(pe=X.current)==null?void 0:pe.selectionStart,ee=(Qe=X.current)==null?void 0:Qe.selectionEnd,ge=(Ee=X.current)==null?void 0:Ee.selectionDirection;Ne!==null&&ee!==null&&(te(Ne),J(ee),ue.current.prev=[Ne,ee,ge])})},[U,_e]),me.useEffect(()=>{P!==void 0&&U!==P&&P.length<a&&U.length===a&&(h==null||h(U))},[a,h,P,U]);let ne=Mp({containerRef:Y,inputRef:X,pushPasswordManagerStrategy:f,isFocused:_e}),Q=me.useCallback(oe=>{let pe=oe.currentTarget.value.slice(0,a);if(pe.length>0&&O&&!O.test(pe)){oe.preventDefault();return}typeof P=="string"&&pe.length<P.length&&document.dispatchEvent(new Event("selectionchange")),B(pe)},[a,B,P,O]),de=me.useCallback(()=>{var oe;if(X.current){let pe=Math.min(X.current.value.length,a-1),Qe=X.current.value.length;(oe=X.current)==null||oe.setSelectionRange(pe,Qe),te(pe),J(Qe)}C(!0)},[a]),le=me.useCallback(oe=>{var pe,Qe;let Ee=X.current;if(!m&&(!K.current.isIOS||!oe.clipboardData||!Ee))return;let Ne=oe.clipboardData.getData("text/plain"),ee=m?m(Ne):Ne;oe.preventDefault();let ge=(pe=X.current)==null?void 0:pe.selectionStart,mt=(Qe=X.current)==null?void 0:Qe.selectionEnd,gt=(ge!==mt?U.slice(0,ge)+ee+U.slice(mt):U.slice(0,ge)+ee+U.slice(ge)).slice(0,a);if(gt.length>0&&O&&!O.test(gt))return;Ee.value=gt,B(gt);let Zt=Math.min(gt.length,a-1),At=gt.length;Ee.setSelectionRange(Zt,At),te(Zt),J(At)},[a,B,O,U]),ie=me.useMemo(()=>({position:"relative",cursor:x.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[x.disabled]),xe=me.useMemo(()=>({position:"absolute",inset:0,width:ne.willPushPWMBadge?`calc(100% + ${ne.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ne.willPushPWMBadge?`inset(0 ${ne.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:s,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[ne.PWM_BADGE_SPACE_WIDTH,ne.willPushPWMBadge,s]),ze=me.useMemo(()=>me.createElement("input",Np(Ip({autoComplete:x.autoComplete||"one-time-code"},x),{"data-input-otp":!0,"data-input-otp-placeholder-shown":U.length===0||void 0,"data-input-otp-mss":V,"data-input-otp-mse":v,inputMode:l,pattern:O==null?void 0:O.source,"aria-placeholder":c,style:xe,maxLength:a,value:U,ref:X,onPaste:oe=>{var pe;le(oe),(pe=x.onPaste)==null||pe.call(x,oe)},onChange:Q,onMouseOver:oe=>{var pe;se(!0),(pe=x.onMouseOver)==null||pe.call(x,oe)},onMouseLeave:oe=>{var pe;se(!1),(pe=x.onMouseLeave)==null||pe.call(x,oe)},onFocus:oe=>{var pe;de(),(pe=x.onFocus)==null||pe.call(x,oe)},onBlur:oe=>{var pe;C(!1),(pe=x.onBlur)==null||pe.call(x,oe)}})),[Q,de,le,l,xe,a,v,V,x,O==null?void 0:O.source,U]),G=me.useMemo(()=>({slots:Array.from({length:a}).map((oe,pe)=>{var Qe;let Ee=_e&&V!==null&&v!==null&&(V===v&&pe===V||pe>=V&&pe<v),Ne=U[pe]!==void 0?U[pe]:null,ee=U[0]!==void 0?null:(Qe=c==null?void 0:c[pe])!=null?Qe:null;return{char:Ne,placeholderChar:ee,isActive:Ee,hasFakeCaret:Ee&&Ne===null}}),isFocused:_e,isHovering:!x.disabled&&ae}),[_e,ae,a,v,V,x.disabled,U]),pt=me.useMemo(()=>_?_(G):me.createElement(Op.Provider,{value:G},E),[E,G,_]);return me.createElement(me.Fragment,null,b!==null&&me.createElement("noscript",null,me.createElement("style",null,b)),me.createElement("div",{ref:Y,"data-input-otp-container":!0,style:ie,className:p},pt,me.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ze)))});jl.displayName="Input";function Fr(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var jp=`
|
|
39
|
+
Valid keys: `+JSON.stringify(Object.keys(C),null," "));var G=ze(de,xe,J,ne,Q+"."+xe,n);if(G)return G}return null}return E(V)}function Y(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(Y);if(C===null||o(C))return!0;var V=f(C);if(V){var te=V.call(C),v;if(V!==C.entries){for(;!(v=te.next()).done;)if(!Y(v.value))return!1}else for(;!(v=te.next()).done;){var J=v.value;if(J&&!Y(J[1]))return!1}}else return!1;return!0;default:return!1}}function K(C,V){return C==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function ue(C){var V=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":K(V,C)?"symbol":V}function ae(C){if(typeof C>"u"||C===null)return""+C;var V=ue(C);if(V==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return V}function se(C){var V=ae(C);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function _e(C){return!C.constructor||!C.constructor.name?m:C.constructor.name}return p.checkPropTypes=u,p.resetWarningCache=u.resetWarningCache,p.PropTypes=p,p},$a}var za,co;function J3(){if(co)return za;co=1;var e=Js();function t(){}function n(){}return n.resetWarningCache=t,za=function(){function r(s,o,c,l,h,f){if(f!==e){var m=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 m.name="Invariant Violation",m}}r.isRequired=r;function u(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:u,element:r,elementType:r,instanceOf:u,node:r,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},za}if(process.env.NODE_ENV!=="production"){var ep=Qs(),tp=!0;ks.exports=Q3()(ep.isElement,tp)}else ks.exports=J3()();var np=ks.exports;const wt=g.getDefaultExportFromCjs(np);var rp=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},As.apply(this,arguments)}function up(e,t){if(e==null)return{};var n={},r=Object.keys(e),u,a;for(a=0;a<r.length;a++)u=r[a],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}function Iu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ap(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ss(e,t)}function Ss(e,t){return Ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,u){return r.__proto__=u,r},Ss(e,t)}var la=function(e){ap(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Iu(r)),r.handleErrored=r.handleErrored.bind(Iu(r)),r.handleChange=r.handleChange.bind(Iu(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Iu(r)),r}var n=t.prototype;return n.getCaptchaFunction=function(u){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[u]:this.props.grecaptcha[u]:null},n.getValue=function(){var u=this.getCaptchaFunction("getResponse");return u&&this._widgetId!==void 0?u(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var u=this.getCaptchaFunction("execute");if(u&&this._widgetId!==void 0)return u(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var u=this;return new Promise(function(a,s){u.executionResolve=a,u.executionReject=s,u.execute()})},n.reset=function(){var u=this.getCaptchaFunction("reset");u&&this._widgetId!==void 0&&u(this._widgetId)},n.forceReset=function(){var u=this.getCaptchaFunction("reset");u&&u()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(u){this.props.onChange&&this.props.onChange(u),this.executionResolve&&(this.executionResolve(u),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var u=this.getCaptchaFunction("render");if(u&&this._widgetId===void 0){var a=document.createElement("div");this._widgetId=u(a,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(a)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(u){this.captcha=u},n.render=function(){var u=this.props;u.sitekey,u.onChange,u.theme,u.type,u.tabindex,u.onExpired,u.onErrored,u.size,u.stoken,u.grecaptcha,u.badge,u.hl,u.isolated;var a=up(u,rp);return me.createElement("div",As({},a,{ref:this.handleRecaptchaRef}))},t}(me.Component);la.displayName="ReCAPTCHA";la.propTypes={sitekey:wt.string.isRequired,onChange:wt.func,grecaptcha:wt.object,theme:wt.oneOf(["dark","light"]),type:wt.oneOf(["image","audio"]),tabindex:wt.number,onExpired:wt.func,onErrored:wt.func,size:wt.oneOf(["compact","normal","invisible"]),stoken:wt.string,hl:wt.string,badge:wt.oneOf(["bottomright","bottomleft","inline"]),isolated:wt.bool};la.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var ei=Qs(),sp={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ip={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},op={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Nl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ti={};ti[ei.ForwardRef]=op;ti[ei.Memo]=Nl;function lo(e){return ei.isMemo(e)?Nl:ti[e.$$typeof]||sp}var cp=Object.defineProperty,lp=Object.getOwnPropertyNames,fo=Object.getOwnPropertySymbols,dp=Object.getOwnPropertyDescriptor,fp=Object.getPrototypeOf,ho=Object.prototype;function vl(e,t,n){if(typeof t!="string"){if(ho){var r=fp(t);r&&r!==ho&&vl(e,r,n)}var u=lp(t);fo&&(u=u.concat(fo(t)));for(var a=lo(e),s=lo(t),o=0;o<u.length;++o){var c=u[o];if(!ip[c]&&!(n&&n[c])&&!(s&&s[c])&&!(a&&a[c])){var l=dp(t,c);try{cp(e,c,l)}catch{}}}}return e}var hp=vl;const pp=g.getDefaultExportFromCjs(hp);function Is(){return Is=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Is.apply(this,arguments)}function mp(e,t){if(e==null)return{};var n={},r=Object.keys(e),u,a;for(a=0;a<r.length;a++)u=r[a],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}function gp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var en={},bp=0;function _p(e,t){return t=t||{},function(r){var u=r.displayName||r.name||"Component",a=function(o){gp(c,o);function c(h,f){var m;return m=o.call(this,h,f)||this,m.state={},m.__scriptURL="",m}var l=c.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+bp++),this.__scriptLoaderID},l.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},l.asyncScriptLoaderHandleLoad=function(f){var m=this;this.setState(f,function(){return m.props.asyncScriptOnLoad&&m.props.asyncScriptOnLoad(m.state)})},l.asyncScriptLoaderTriggerOnScriptLoaded=function(){var f=en[this.__scriptURL];if(!f||!f.loaded)throw new Error("Script is not loaded.");for(var m in f.observers)f.observers[m](f);delete window[t.callbackName]},l.componentDidMount=function(){var f=this,m=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),b=t,_=b.globalName,E=b.callbackName,x=b.scriptId;if(_&&typeof window[_]<"u"&&(en[m]={loaded:!0,observers:{}}),en[m]){var k=en[m];if(k&&(k.loaded||k.errored)){this.asyncScriptLoaderHandleLoad(k);return}k.observers[p]=function(M){return f.asyncScriptLoaderHandleLoad(M)};return}var y={};y[p]=function(M){return f.asyncScriptLoaderHandleLoad(M)},en[m]={loaded:!1,observers:y};var D=document.createElement("script");D.src=m,D.async=!0;for(var S in t.attributes)D.setAttribute(S,t.attributes[S]);x&&(D.id=x);var I=function(H){if(en[m]){var U=en[m],P=U.observers;for(var B in P)H(P[B])&&delete P[B]}};E&&typeof window<"u"&&(window[E]=function(){return f.asyncScriptLoaderTriggerOnScriptLoaded()}),D.onload=function(){var M=en[m];M&&(M.loaded=!0,I(function(H){return E?!1:(H(M),!0)}))},D.onerror=function(){var M=en[m];M&&(M.errored=!0,I(function(H){return H(M),!0}))},document.body.appendChild(D)},l.componentWillUnmount=function(){var f=this.__scriptURL;if(t.removeOnUnmount===!0)for(var m=document.getElementsByTagName("script"),p=0;p<m.length;p+=1)m[p].src.indexOf(f)>-1&&m[p].parentNode&&m[p].parentNode.removeChild(m[p]);var b=en[f];b&&(delete b.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete en[f])},l.render=function(){var f=t.globalName,m=this.props;m.asyncScriptOnLoad;var p=m.forwardedRef,b=mp(m,["asyncScriptOnLoad","forwardedRef"]);return f&&typeof window<"u"&&(b[f]=typeof window[f]<"u"?window[f]:void 0),b.ref=p,L.createElement(r,b)},c}(L.Component),s=L.forwardRef(function(o,c){return L.createElement(a,Is({},o,{forwardedRef:c}))});return s.displayName="AsyncScriptLoader("+u+")",s.propTypes={asyncScriptOnLoad:wt.func},pp(s,r)}}var Ns="onloadcallback",xp="grecaptcha";function vs(){return typeof window<"u"&&window.recaptchaOptions||{}}function Cp(){var e=vs(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Ns+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Ns+"&render=explicit"}const Ep=_p(Cp,{callbackName:Ns,globalName:xp,attributes:vs().nonce?{nonce:vs().nonce}:{}})(la),wl=()=>{const{isAntistock:e,general:t}=g.useGeneralStore();return{isAntistock:e,general:t}},Dl="6LdQiIIpAAAAAAkhvhS9zuo5WNS5mAzZrALD9cCa",Ll="6Ld0EgYrAAAAAF5_Zqm8S4ZrbCZu6s1u7evUlL3l",Pl=L.createContext(void 0),ni=({children:e})=>{const t=L.useRef(null),{isAntistock:n}=wl(),{notifications:r,setNotifications:u}=g.useNotificationStore();L.useEffect(()=>{typeof window<"u"&&yp()},[]);const a=async()=>{try{if(!t.current)return u([...r,{message:"[ReCAPTCHA] executeRecaptcha called before ref is ready",status:"error",id:g.v4()}]),null;const s=await t.current.executeAsync();return t.current.reset(),s||(u([...r,{message:"[ReCAPTCHA] Received empty token",status:"error",id:g.v4()}]),null)}catch{return u([...r,{message:"[ReCAPTCHA] executeRecaptcha error",status:"error",id:g.v4()}]),null}};return i.jsxs(Pl.Provider,{value:{recaptchaRef:t,executeRecaptcha:a},children:[e,i.jsx("div",{style:{visibility:"hidden",opacity:0},children:i.jsx(Ep,{sitekey:n?Ll:Dl,size:"invisible",ref:t,badge:"inline"})})]})},pu=()=>{const e=L.useContext(Pl);if(e===void 0)throw new Error("useReCaptcha must be used within a ReCaptchaProvider");return e};function yp(){var t,n;if(typeof window>"u")return;const e=(n=(t=[...document.getElementsByTagName("iframe")].find(r=>r.src.includes("google.com/recaptcha/api2/bframe")))==null?void 0:t.parentNode)==null?void 0:n.parentNode;e&&new MutationObserver(()=>{(e.style.visibility!=="visible"||e.style.opacity!=="1")&&(e.style.opacity="1",e.style.visibility="visible")}).observe(e,{attributeFilter:["style"]})}const Tp=Object.freeze(Object.defineProperty({__proto__:null,ANTISTOCK_SITE_KEY:Ll,ReCaptchaProvider:ni,SITE_KEY:Dl,useReCaptcha:pu},Symbol.toStringTag,{value:"Module"}));var kp=Object.defineProperty,Ap=Object.defineProperties,Sp=Object.getOwnPropertyDescriptors,Gu=Object.getOwnPropertySymbols,Rl=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable,po=(e,t,n)=>t in e?kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ip=(e,t)=>{for(var n in t||(t={}))Rl.call(t,n)&&po(e,n,t[n]);if(Gu)for(var n of Gu(t))Ml.call(t,n)&&po(e,n,t[n]);return e},Np=(e,t)=>Ap(e,Sp(t)),vp=(e,t)=>{var n={};for(var r in e)Rl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Gu)for(var r of Gu(e))t.indexOf(r)<0&&Ml.call(e,r)&&(n[r]=e[r]);return n};function wp(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function Dp(e){let t=me.useRef();return me.useEffect(()=>{t.current=e}),t.current}var Lp=18,Ol=40,Pp=`${Ol}px`,Rp=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function Mp({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[u,a]=me.useState(!1),[s,o]=me.useState(!1),[c,l]=me.useState(!1),h=me.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&u&&s,[u,s,n]),f=me.useCallback(()=>{let m=e.current,p=t.current;if(!m||!p||c||n==="none")return;let b=m,_=b.getBoundingClientRect().left+b.offsetWidth,E=b.getBoundingClientRect().top+b.offsetHeight/2,x=_-Lp,k=E;document.querySelectorAll(Rp).length===0&&document.elementFromPoint(x,k)===m||(a(!0),l(!0))},[e,t,c,n]);return me.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function p(){let _=window.innerWidth-m.getBoundingClientRect().right;o(_>=Ol)}p();let b=setInterval(p,1e3);return()=>{clearInterval(b)}},[e,n]),me.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let p=setTimeout(f,0),b=setTimeout(f,2e3),_=setTimeout(f,5e3),E=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(p),clearTimeout(b),clearTimeout(_),clearTimeout(E)}},[t,r,n,f]),{hasPWMBadge:u,willPushPWMBadge:h,PWM_BADGE_SPACE_WIDTH:Pp}}var Op=me.createContext({}),jl=me.forwardRef((e,t)=>{var n=e,{value:r,onChange:u,maxLength:a,textAlign:s="left",pattern:o,placeholder:c,inputMode:l="numeric",onComplete:h,pushPasswordManagerStrategy:f="increase-width",pasteTransformer:m,containerClassName:p,noScriptCSSFallback:b=jp,render:_,children:E}=n,x=vp(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),k,y,D,S,I;let[M,H]=me.useState(typeof x.defaultValue=="string"?x.defaultValue:""),U=r??M,P=Dp(U),B=me.useCallback(oe=>{u==null||u(oe),H(oe)},[u]),O=me.useMemo(()=>o?typeof o=="string"?new RegExp(o):o:null,[o]),X=me.useRef(null),Y=me.useRef(null),K=me.useRef({value:U,onChange:B,isIOS:typeof window<"u"&&((y=(k=window==null?void 0:window.CSS)==null?void 0:k.supports)==null?void 0:y.call(k,"-webkit-touch-callout","none"))}),ue=me.useRef({prev:[(D=X.current)==null?void 0:D.selectionStart,(S=X.current)==null?void 0:S.selectionEnd,(I=X.current)==null?void 0:I.selectionDirection]});me.useImperativeHandle(t,()=>X.current,[]),me.useEffect(()=>{let oe=X.current,pe=Y.current;if(!oe||!pe)return;K.current.value!==oe.value&&K.current.onChange(oe.value),ue.current.prev=[oe.selectionStart,oe.selectionEnd,oe.selectionDirection];function Qe(){if(document.activeElement!==oe){te(null),J(null);return}let ee=oe.selectionStart,ge=oe.selectionEnd,mt=oe.selectionDirection,gt=oe.maxLength,Zt=oe.value,At=ue.current.prev,$e=-1,j=-1,W;if(Zt.length!==0&&ee!==null&&ge!==null){let Ot=ee===ge,_n=ee===Zt.length&&Zt.length<gt;if(Ot&&!_n){let dt=ee;if(dt===0)$e=0,j=1,W="forward";else if(dt===gt)$e=dt-1,j=dt,W="backward";else if(gt>1&&Zt.length>1){let xn=0;if(At[0]!==null&&At[1]!==null){W=dt<At[1]?"backward":"forward";let Yn=At[0]===At[1]&&At[0]<gt;W==="backward"&&!Yn&&(xn=-1)}$e=xn+dt,j=xn+dt+1}}$e!==-1&&j!==-1&&$e!==j&&X.current.setSelectionRange($e,j,W)}let fe=$e!==-1?$e:ee,Ie=j!==-1?j:ge,Oe=W??mt;te(fe),J(Ie),ue.current.prev=[fe,Ie,Oe]}if(document.addEventListener("selectionchange",Qe,{capture:!0}),Qe(),document.activeElement===oe&&C(!0),!document.getElementById("input-otp-style")){let ee=document.createElement("style");if(ee.id="input-otp-style",document.head.appendChild(ee),ee.sheet){let ge="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Fr(ee.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Fr(ee.sheet,`[data-input-otp]:autofill { ${ge} }`),Fr(ee.sheet,`[data-input-otp]:-webkit-autofill { ${ge} }`),Fr(ee.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Fr(ee.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Ce=()=>{pe&&pe.style.setProperty("--root-height",`${oe.clientHeight}px`)};Ce();let ke=new ResizeObserver(Ce);return ke.observe(oe),()=>{document.removeEventListener("selectionchange",Qe,{capture:!0}),ke.disconnect()}},[]);let[ae,se]=me.useState(!1),[_e,C]=me.useState(!1),[V,te]=me.useState(null),[v,J]=me.useState(null);me.useEffect(()=>{wp(()=>{var oe,pe,Qe,Ce;(oe=X.current)==null||oe.dispatchEvent(new Event("input"));let ke=(pe=X.current)==null?void 0:pe.selectionStart,ee=(Qe=X.current)==null?void 0:Qe.selectionEnd,ge=(Ce=X.current)==null?void 0:Ce.selectionDirection;ke!==null&&ee!==null&&(te(ke),J(ee),ue.current.prev=[ke,ee,ge])})},[U,_e]),me.useEffect(()=>{P!==void 0&&U!==P&&P.length<a&&U.length===a&&(h==null||h(U))},[a,h,P,U]);let ne=Mp({containerRef:Y,inputRef:X,pushPasswordManagerStrategy:f,isFocused:_e}),Q=me.useCallback(oe=>{let pe=oe.currentTarget.value.slice(0,a);if(pe.length>0&&O&&!O.test(pe)){oe.preventDefault();return}typeof P=="string"&&pe.length<P.length&&document.dispatchEvent(new Event("selectionchange")),B(pe)},[a,B,P,O]),de=me.useCallback(()=>{var oe;if(X.current){let pe=Math.min(X.current.value.length,a-1),Qe=X.current.value.length;(oe=X.current)==null||oe.setSelectionRange(pe,Qe),te(pe),J(Qe)}C(!0)},[a]),le=me.useCallback(oe=>{var pe,Qe;let Ce=X.current;if(!m&&(!K.current.isIOS||!oe.clipboardData||!Ce))return;let ke=oe.clipboardData.getData("text/plain"),ee=m?m(ke):ke;oe.preventDefault();let ge=(pe=X.current)==null?void 0:pe.selectionStart,mt=(Qe=X.current)==null?void 0:Qe.selectionEnd,gt=(ge!==mt?U.slice(0,ge)+ee+U.slice(mt):U.slice(0,ge)+ee+U.slice(ge)).slice(0,a);if(gt.length>0&&O&&!O.test(gt))return;Ce.value=gt,B(gt);let Zt=Math.min(gt.length,a-1),At=gt.length;Ce.setSelectionRange(Zt,At),te(Zt),J(At)},[a,B,O,U]),ie=me.useMemo(()=>({position:"relative",cursor:x.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[x.disabled]),xe=me.useMemo(()=>({position:"absolute",inset:0,width:ne.willPushPWMBadge?`calc(100% + ${ne.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ne.willPushPWMBadge?`inset(0 ${ne.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:s,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[ne.PWM_BADGE_SPACE_WIDTH,ne.willPushPWMBadge,s]),ze=me.useMemo(()=>me.createElement("input",Np(Ip({autoComplete:x.autoComplete||"one-time-code"},x),{"data-input-otp":!0,"data-input-otp-placeholder-shown":U.length===0||void 0,"data-input-otp-mss":V,"data-input-otp-mse":v,inputMode:l,pattern:O==null?void 0:O.source,"aria-placeholder":c,style:xe,maxLength:a,value:U,ref:X,onPaste:oe=>{var pe;le(oe),(pe=x.onPaste)==null||pe.call(x,oe)},onChange:Q,onMouseOver:oe=>{var pe;se(!0),(pe=x.onMouseOver)==null||pe.call(x,oe)},onMouseLeave:oe=>{var pe;se(!1),(pe=x.onMouseLeave)==null||pe.call(x,oe)},onFocus:oe=>{var pe;de(),(pe=x.onFocus)==null||pe.call(x,oe)},onBlur:oe=>{var pe;C(!1),(pe=x.onBlur)==null||pe.call(x,oe)}})),[Q,de,le,l,xe,a,v,V,x,O==null?void 0:O.source,U]),G=me.useMemo(()=>({slots:Array.from({length:a}).map((oe,pe)=>{var Qe;let Ce=_e&&V!==null&&v!==null&&(V===v&&pe===V||pe>=V&&pe<v),ke=U[pe]!==void 0?U[pe]:null,ee=U[0]!==void 0?null:(Qe=c==null?void 0:c[pe])!=null?Qe:null;return{char:ke,placeholderChar:ee,isActive:Ce,hasFakeCaret:Ce&&ke===null}}),isFocused:_e,isHovering:!x.disabled&&ae}),[_e,ae,a,v,V,x.disabled,U]),pt=me.useMemo(()=>_?_(G):me.createElement(Op.Provider,{value:G},E),[E,G,_]);return me.createElement(me.Fragment,null,b!==null&&me.createElement("noscript",null,me.createElement("style",null,b)),me.createElement("div",{ref:Y,"data-input-otp-container":!0,style:ie,className:p},pt,me.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ze)))});jl.displayName="Input";function Fr(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var jp=`
|
|
40
40
|
[data-input-otp] {
|
|
41
41
|
--nojs-bg: white !important;
|
|
42
42
|
--nojs-fg: black !important;
|
|
@@ -55,12 +55,12 @@ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var G=ze(de,xe,J,ne,Q+".
|
|
|
55
55
|
--nojs-bg: black !important;
|
|
56
56
|
--nojs-fg: white !important;
|
|
57
57
|
}
|
|
58
|
-
}`;const Fp="_authContainer_1uyf7_2",Bp="_authWrapper_1uyf7_12",Hp="_inModal_1uyf7_19",Up="_formHeaderTitle_1uyf7_26",Vp="_formHeaderSubtitle_1uyf7_33",$p="_formLabel_1uyf7_39",zp="_formError_1uyf7_51",qp="_submitButton_1uyf7_57",Zp="_submitButtonAntistock_1uyf7_57",Wp="_backButton_1uyf7_67",Yp="_otpContainer_1uyf7_78",Gp="_otpSlots_1uyf7_85",Xp="_otpSlot_1uyf7_85",Kp="_active_1uyf7_108",Qp="_otpSlotEmpty_1uyf7_113",Jp="_actionRow_1uyf7_117",e6="_authForm_1uyf7_124",t6="_formHeader_1uyf7_26",n6="_input_1uyf7_135",Ke={authContainer:Fp,authWrapper:Bp,inModal:Hp,formHeaderTitle:Up,formHeaderSubtitle:Vp,formLabel:$p,formError:zp,submitButton:qp,submitButtonAntistock:Zp,backButton:Wp,otpContainer:Yp,otpSlots:Gp,otpSlot:Xp,active:Kp,otpSlotEmpty:Qp,actionRow:Jp,authForm:e6,formHeader:t6,input:n6},r6=L.forwardRef(({value:e,onChange:t,onComplete:n},r)=>i.jsx(jl,{ref:r,value:e,onChange:t,onComplete:n,maxLength:6,containerClassName:Ke.otpContainer,render:({slots:u})=>i.jsx("div",{className:Ke.otpSlots,children:u.map(a=>i.jsx(u6,{...a},crypto.randomUUID()))})}));function u6({char:e,isActive:t}){return i.jsx("div",{className:g.clx(Ke.otpSlot,{[Ke.active]:t}),children:e?i.jsx("div",{children:e}):i.jsx("div",{className:Ke.otpSlotEmpty,children:"0"})})}const a6=e=>{const t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return e.trim()?t.test(e)?null:"Please enter a valid email.":"The email field cannot be empty."},s6=e=>/^[0-9]{6}$/.test(e)?null:"Invalid verification code. The code should be a six-digit number. Please try again",Fl=({title:e,subtitle:t,isAntistock:n})=>i.jsxs("div",{className:Ke.formHeader,style:{textAlign:n?"center":void 0},children:[i.jsx("h3",{id:"h3",className:Ke.formHeaderTitle,children:e}),t?i.jsx("div",{className:Ke.formHeaderSubtitle,children:t}):null]}),Bl=({error:e})=>e?i.jsx("div",{className:Ke.formError,children:e}):null,Hl=()=>{const[e,t]=L.useState(""),[n,r]=L.useState(null),[u,a]=L.useState(!1),{executeRecaptcha:s}=pu(),{setOtpRequest:o}=g.useCustomerDashboardStore(),{isAntistock:c}=g.useGeneralStore(),l=async h=>{h.preventDefault(),r(null);const f=a6(e);if(f){r(f);return}a(!0);try{const m=await s();if(!m)throw new Error("ReCaptcha verification failed");await il({email:e,recaptcha:m,tsId:g.useGetTsId()}),o({requested:!0,email:e})}catch{r("Failed to request OTP. Please try again.")}finally{a(!1)}};return i.jsxs("form",{onSubmit:l,className:Ke.authForm,children:[i.jsx(Fl,{title:c?"My Account":"Sign In",subtitle:c?"":"To continue, enter your email address below.",isAntistock:c}),i.jsxs("div",{className:Ke.input,children:[i.jsx(N.Input,{label:c?"Email":"Email Address",placeholder:"your@email.com",value:e,onChange:h=>{t(h),r(null)}}),i.jsx(Bl,{error:n})]}),i.jsx(N.Button,{type:"Primary",className:c?Ke.submitButtonAntistock:Ke.submitButton,disabled:u,children:u?c?i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx(N.Loader,{}),i.jsx("span",{children:"Continue"})]}):i.jsx(N.Loader,{}):c?"Continue":"Sign In"}),i.jsx("span",{style:{color:"var(--text-secondary)",paddingTop:"8px",fontSize:"var(--font-body-md-size)",textAlign:"center"},children:"You will receive a 6-digit account code via email."})]})},Ul=({onSignIn:e})=>{const{otpRequest:t,setOtpRequest:n}=g.useCustomerDashboardStore(),{isAntistock:r}=g.useGeneralStore(),[u,a]=L.useState(""),[s,o]=L.useState(null),[c,l]=L.useState(!1),{executeRecaptcha:h}=pu(),f=async()=>{o(null);const p=s6(u);if(p){o(p);return}l(!0);try{const b=await h();if(!b)throw new Error("ReCaptcha verification failed");await ol({email:t.email,otp:u,recaptcha:b||"",tsId:g.useGetTsId()}),e&&e()}catch{o("Invalid OTP. Please try again.")}finally{l(!1)}},m=()=>n({requested:!1,email:""});return i.jsxs("form",{onSubmit:f,className:Ke.authForm,children:[i.jsx(Fl,{title:"Check Your Email",subtitle:`Enter the 6-digit code we sent to ${t.email}`,isAntistock:r}),i.jsxs("label",{className:Ke.formLabel,children:["Code",i.jsx(r6,{onChange:p=>{a(p),o(null)},value:u,onComplete:f})]}),i.jsx(Bl,{error:s}),i.jsxs("div",{className:Ke.actionRow,children:[i.jsx(N.Button,{onClick:m,type:"Secondary",className:Ke.backButton,children:"Back"}),i.jsx(N.Button,{type:"Primary",className:r?Ke.submitButtonAntistock:Ke.submitButton,disabled:c,children:c?i.jsx(N.Loader,{}):r?"Continue":"Sign In"})]})]})},da=({inModal:e,onSignIn:t})=>{const{otpRequest:n,setOtpRequest:r}=g.useCustomerDashboardStore();return L.useEffect(()=>{n.requested&&r({requested:!1,email:""})},[]),i.jsx("div",{className:Ke.authContainer,children:n?i.jsx("div",{className:g.clx(Ke.authWrapper,e&&Ke.inModal),children:n.requested?i.jsx(Ul,{onSignIn:t}):i.jsx(Hl,{})}):i.jsx(N.Loader,{})})};function i6(){const e=new URL(window.location.href);window.history.replaceState(null,"",e.pathname+e.hash)}var ri=(e=>(e.ADD_BALANCE="AddBalance",e))(ri||{});function o6(){const e=new URLSearchParams(document.location.search),t=e.get("page"),n=e.get("action");return{page:t,action:n}}function c6(){const{page:e,action:t}=o6(),{setRoute:n,setAction:r}=g.useCustomerDashboardStore.getState();e&&Object.values(g.Routes).includes(e)&&n(e),t&&Object.values(ri).includes(t)&&r(t),i6()}const l6=()=>typeof g.Routes>"u"?(console.warn("Routes not available for RouteToRouteComponent"),{}):{[g.Routes.Home]:kl,[g.Routes.Orders]:ul.Orders,[g.Routes.Rewards]:Al,[g.Routes.Balance]:yl,[g.Routes.Subscriptions]:n2.Subscriptions,[g.Routes.Api]:Sl,[g.Routes.Tickets]:rl.Tickets},d6=()=>typeof g.AntistockRoutes>"u"?(console.warn("AntistockRoutes not available for RouteToAntistockRouteComponent"),{}):{[g.AntistockRoutes.Home]:kl,[g.AntistockRoutes.Orders]:ul.Orders,[g.AntistockRoutes.Rewards]:Al,[g.AntistockRoutes.Balance]:yl,[g.AntistockRoutes.Api]:Sl,[g.AntistockRoutes.Tickets]:rl.Tickets},f6=()=>{var l;const{route:e,action:t,setRoute:n,setIsBalanceModalOpen:r}=g.useCustomerDashboardStore(),{resetPage:u}=g.usePaginationPagesStore(),{token:a}=g.useStorefrontStore(),{isAntistock:s,general:o}=g.useGeneralStore(),c=s?d6()[e]:l6()[e];return L.useEffect(()=>{u(),c6()},[a,e,u]),L.useEffect(()=>{t===ri.ADD_BALANCE&&e===g.Routes.Balance&&r(!0)},[e,t]),L.useEffect(()=>{window.location.pathname.includes("/ticket")&&n(g.Routes.Tickets)},[window.location.pathname]),(l=o==null?void 0:o.info)!=null&&l.customerAccountSettings&&(o.info.customerAccountSettings??"OPTIONAL")==="DISABLED"?i.jsx(g.Navigate,{to:"/",replace:!0}):a?i.jsx("div",{style:{maxWidth:"var(--max-width-store)",margin:"0 auto",height:"100%"},children:i.jsx(N.Wrapper,{notPadding:!0,style:{height:"100%"},maxWidth:"var(--max-width-store)",children:h=>i.jsxs("main",{className:g.clx(Gn.appContainer,{[Gn.mobile]:h!=="desktop",[Gn.noAnimation]:s,[Gn.appContainerAntistock]:s}),children:[i.jsx(fl,{adaptiveStyles:h}),i.jsx("div",{className:g.clx(Gn.contentContainer,{[Gn.mobile]:h!=="desktop",[Gn.contentContainerAntistock]:s}),children:i.jsx(c,{adaptiveStyles:h})})]})})}):i.jsx(da,{})},h6=()=>i.jsx(ni,{children:i.jsx(f6,{})}),p6="_referralBlock_kla2r_2",m6="_skeleton_kla2r_3",g6="_mobile_kla2r_13",b6="_referralContainer_kla2r_18",_6="_title_kla2r_30",x6="_description_kla2r_36",C6="_linkContainer_kla2r_56",E6="_modalContainer_kla2r_77",y6="_steps_kla2r_86",T6="_joinButton_kla2r_92",k6="_stepItem_kla2r_97",A6="_iconContainer_kla2r_103",S6="_index_kla2r_111",I6="_bar_kla2r_123",N6="_content_kla2r_130",v6="_caption_kla2r_135",w6="_descriptionStep_kla2r_141",D6="_error_kla2r_151",L6="_infoBlock_kla2r_155",P6="_infoIcon_kla2r_164",R6="_infoText_kla2r_173",M6="_actions_kla2r_178",O6="_cancelButton_kla2r_183",j6="_referralStats_kla2r_187",F6="_referralInfo_kla2r_204",B6="_referralStatsItem_kla2r_210",H6="_referralStatsItemValue_kla2r_220",U6="_referralStatsItemLabel_kla2r_225",V6="_referral_kla2r_2",$6="_header_kla2r_244",z6="_contentModal_kla2r_254",Ce={referralBlock:p6,skeleton:m6,mobile:g6,referralContainer:b6,title:_6,description:x6,linkContainer:C6,modalContainer:E6,steps:y6,joinButton:T6,stepItem:k6,iconContainer:A6,index:S6,bar:I6,content:N6,caption:v6,descriptionStep:w6,error:D6,infoBlock:L6,infoIcon:P6,infoText:R6,actions:M6,cancelButton:O6,referralStats:j6,referralInfo:F6,referralStatsItem:B6,referralStatsItemValue:H6,referralStatsItemLabel:U6,referral:V6,header:$6,contentModal:z6},q6=({caption:e,description:t,index:n,bar:r=!0})=>i.jsxs("div",{className:Ce.stepItem,children:[i.jsxs("div",{className:Ce.iconContainer,children:[i.jsx("div",{className:Ce.index,children:n}),r&&i.jsx("div",{className:Ce.bar})]}),i.jsxs("div",{className:Ce.content,children:[i.jsx("div",{className:Ce.caption,children:e}),i.jsx("div",{className:Ce.descriptionStep,children:t})]})]}),Z6=({setIsOpen:e,setIsLoading:t})=>{const[n,r]=L.useState(""),[u,a]=L.useState(""),{notifications:s,setNotifications:o}=g.useNotificationStore(),{setIsOpen:c}=g.useModalStore(),l=async f=>{if(f.preventDefault(),n.length<3){a("Referral Code should have minimum length of 3");return}t(!0),h();try{await V2({referralCode:n}),o([...s,{message:"Referral Code has been applied",status:"success",id:g.v4()}])}catch(m){const p=m;o([...s,{message:p.message,status:"error",id:g.v4()}])}t(!1),e(!1),r(""),a("")},h=()=>{c(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{onClick:f=>f.stopPropagation(),className:Ce.modalContainer,children:[i.jsxs("div",{className:Ce.header,children:[i.jsx("div",{id:"h3",children:"Create an affiliate code"}),i.jsx(N.Icon,{name:"X",onClick:h,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Ce.contentModal,children:[i.jsx(N.Input,{value:n,onChange:f=>r(f),placeholder:"Enter code here (e.g., Join)",label:"Affiliate Code"}),u&&i.jsx("div",{className:Ce.error,children:u}),i.jsxs("div",{className:Ce.infoBlock,children:[i.jsx("div",{className:Ce.infoIcon,children:i.jsx(N.Icon,{name:"Info"})}),i.jsx("div",{className:Ce.infoText,children:"Once you join our referral program, you'll gain access to special deals, rewards, and potentially earn a percentage (%) of revenue."})]}),i.jsxs("div",{className:Ce.actions,children:[i.jsx(N.Button,{type:"Secondary",className:Ce.cancelButton,onClick:h,children:"Cancel"}),i.jsx(N.Button,{type:"Primary",onClick:l,children:"Create"})]})]})]})},Nu=()=>i.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:i.jsxs("svg",{width:"100%",height:"64",viewBox:"0 0 208 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_2098_5511)",children:[i.jsx("mask",{id:"path-1-inside-1_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 0H208V16H0V0Z"})}),i.jsx("path",{d:"M208 16.5C208.276 16.5 208.5 16.2761 208.5 16C208.5 15.7239 208.276 15.5 208 15.5V16.5ZM0 15.5C-0.276142 15.5 -0.5 15.7239 -0.5 16C-0.5 16.2761 -0.276142 16.5 0 16.5V15.5ZM4 16.5C4.27614 16.5 4.5 16.2761 4.5 16C4.5 15.7239 4.27614 15.5 4 15.5V16.5ZM12 15.5C11.7239 15.5 11.5 15.7239 11.5 16C11.5 16.2761 11.7239 16.5 12 16.5V15.5ZM20 16.5C20.2761 16.5 20.5 16.2761 20.5 16C20.5 15.7239 20.2761 15.5 20 15.5V16.5ZM28 15.5C27.7239 15.5 27.5 15.7239 27.5 16C27.5 16.2761 27.7239 16.5 28 16.5V15.5ZM36 16.5C36.2761 16.5 36.5 16.2761 36.5 16C36.5 15.7239 36.2761 15.5 36 15.5V16.5ZM44 15.5C43.7239 15.5 43.5 15.7239 43.5 16C43.5 16.2761 43.7239 16.5 44 16.5V15.5ZM52 16.5C52.2761 16.5 52.5 16.2761 52.5 16C52.5 15.7239 52.2761 15.5 52 15.5V16.5ZM60 15.5C59.7239 15.5 59.5 15.7239 59.5 16C59.5 16.2761 59.7239 16.5 60 16.5V15.5ZM68 16.5C68.2761 16.5 68.5 16.2761 68.5 16C68.5 15.7239 68.2761 15.5 68 15.5V16.5ZM76 15.5C75.7239 15.5 75.5 15.7239 75.5 16C75.5 16.2761 75.7239 16.5 76 16.5V15.5ZM84 16.5C84.2761 16.5 84.5 16.2761 84.5 16C84.5 15.7239 84.2761 15.5 84 15.5V16.5ZM92 15.5C91.7239 15.5 91.5 15.7239 91.5 16C91.5 16.2761 91.7239 16.5 92 16.5V15.5ZM100 16.5C100.276 16.5 100.5 16.2761 100.5 16C100.5 15.7239 100.276 15.5 100 15.5V16.5ZM108 15.5C107.724 15.5 107.5 15.7239 107.5 16C107.5 16.2761 107.724 16.5 108 16.5V15.5ZM116 16.5C116.276 16.5 116.5 16.2761 116.5 16C116.5 15.7239 116.276 15.5 116 15.5V16.5ZM124 15.5C123.724 15.5 123.5 15.7239 123.5 16C123.5 16.2761 123.724 16.5 124 16.5V15.5ZM132 16.5C132.276 16.5 132.5 16.2761 132.5 16C132.5 15.7239 132.276 15.5 132 15.5V16.5ZM140 15.5C139.724 15.5 139.5 15.7239 139.5 16C139.5 16.2761 139.724 16.5 140 16.5V15.5ZM148 16.5C148.276 16.5 148.5 16.2761 148.5 16C148.5 15.7239 148.276 15.5 148 15.5V16.5ZM156 15.5C155.724 15.5 155.5 15.7239 155.5 16C155.5 16.2761 155.724 16.5 156 16.5V15.5ZM164 16.5C164.276 16.5 164.5 16.2761 164.5 16C164.5 15.7239 164.276 15.5 164 15.5V16.5ZM172 15.5C171.724 15.5 171.5 15.7239 171.5 16C171.5 16.2761 171.724 16.5 172 16.5V15.5ZM180 16.5C180.276 16.5 180.5 16.2761 180.5 16C180.5 15.7239 180.276 15.5 180 15.5V16.5ZM188 15.5C187.724 15.5 187.5 15.7239 187.5 16C187.5 16.2761 187.724 16.5 188 16.5V15.5ZM196 16.5C196.276 16.5 196.5 16.2761 196.5 16C196.5 15.7239 196.276 15.5 196 15.5V16.5ZM204 15.5C203.724 15.5 203.5 15.7239 203.5 16C203.5 16.2761 203.724 16.5 204 16.5V15.5ZM0 16.5H4V15.5H0V16.5ZM12 16.5H20V15.5H12V16.5ZM28 16.5H36V15.5H28V16.5ZM44 16.5H52V15.5H44V16.5ZM60 16.5H68V15.5H60V16.5ZM76 16.5H84V15.5H76V16.5ZM92 16.5H100V15.5H92V16.5ZM108 16.5H116V15.5H108V16.5ZM124 16.5H132V15.5H124V16.5ZM140 16.5H148V15.5H140V16.5ZM156 16.5H164V15.5H156V16.5ZM172 16.5H180V15.5H172V16.5ZM188 16.5H196V15.5H188V16.5ZM204 16.5H208V15.5H204V16.5ZM208 17C208.552 17 209 16.5523 209 16C209 15.4477 208.552 15 208 15V17ZM0 15C-0.552285 15 -1 15.4477 -1 16C-1 16.5523 -0.552285 17 0 17V15ZM4 17C4.55228 17 5 16.5523 5 16C5 15.4477 4.55228 15 4 15V17ZM12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17V15ZM20 17C20.5523 17 21 16.5523 21 16C21 15.4477 20.5523 15 20 15V17ZM28 15C27.4477 15 27 15.4477 27 16C27 16.5523 27.4477 17 28 17V15ZM36 17C36.5523 17 37 16.5523 37 16C37 15.4477 36.5523 15 36 15V17ZM44 15C43.4477 15 43 15.4477 43 16C43 16.5523 43.4477 17 44 17V15ZM52 17C52.5523 17 53 16.5523 53 16C53 15.4477 52.5523 15 52 15V17ZM60 15C59.4477 15 59 15.4477 59 16C59 16.5523 59.4477 17 60 17V15ZM68 17C68.5523 17 69 16.5523 69 16C69 15.4477 68.5523 15 68 15V17ZM76 15C75.4477 15 75 15.4477 75 16C75 16.5523 75.4477 17 76 17V15ZM84 17C84.5523 17 85 16.5523 85 16C85 15.4477 84.5523 15 84 15V17ZM92 15C91.4477 15 91 15.4477 91 16C91 16.5523 91.4477 17 92 17V15ZM100 17C100.552 17 101 16.5523 101 16C101 15.4477 100.552 15 100 15V17ZM108 15C107.448 15 107 15.4477 107 16C107 16.5523 107.448 17 108 17V15ZM116 17C116.552 17 117 16.5523 117 16C117 15.4477 116.552 15 116 15V17ZM124 15C123.448 15 123 15.4477 123 16C123 16.5523 123.448 17 124 17V15ZM132 17C132.552 17 133 16.5523 133 16C133 15.4477 132.552 15 132 15V17ZM140 15C139.448 15 139 15.4477 139 16C139 16.5523 139.448 17 140 17V15ZM148 17C148.552 17 149 16.5523 149 16C149 15.4477 148.552 15 148 15V17ZM156 15C155.448 15 155 15.4477 155 16C155 16.5523 155.448 17 156 17V15ZM164 17C164.552 17 165 16.5523 165 16C165 15.4477 164.552 15 164 15V17ZM172 15C171.448 15 171 15.4477 171 16C171 16.5523 171.448 17 172 17V15ZM180 17C180.552 17 181 16.5523 181 16C181 15.4477 180.552 15 180 15V17ZM188 15C187.448 15 187 15.4477 187 16C187 16.5523 187.448 17 188 17V15ZM196 17C196.552 17 197 16.5523 197 16C197 15.4477 196.552 15 196 15V17ZM204 15C203.448 15 203 15.4477 203 16C203 16.5523 203.448 17 204 17V15ZM0 17H4V15H0V17ZM12 17H20V15H12V17ZM28 17H36V15H28V17ZM44 17H52V15H44V17ZM60 17H68V15H60V17ZM76 17H84V15H76V17ZM92 17H100V15H92V17ZM108 17H116V15H108V17ZM124 17H132V15H124V17ZM140 17H148V15H140V17ZM156 17H164V15H156V17ZM172 17H180V15H172V17ZM188 17H196V15H188V17ZM204 17H208V15H204V17Z",fill:"#F8F8F8",mask:"url(#path-1-inside-1_2098_5511)"}),i.jsx("mask",{id:"path-3-inside-2_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 16H208V32H0V16Z"})}),i.jsx("path",{d:"M208 32.5C208.276 32.5 208.5 32.2761 208.5 32C208.5 31.7239 208.276 31.5 208 31.5V32.5ZM0 31.5C-0.276142 31.5 -0.5 31.7239 -0.5 32C-0.5 32.2761 -0.276142 32.5 0 32.5V31.5ZM4 32.5C4.27614 32.5 4.5 32.2761 4.5 32C4.5 31.7239 4.27614 31.5 4 31.5V32.5ZM12 31.5C11.7239 31.5 11.5 31.7239 11.5 32C11.5 32.2761 11.7239 32.5 12 32.5V31.5ZM20 32.5C20.2761 32.5 20.5 32.2761 20.5 32C20.5 31.7239 20.2761 31.5 20 31.5V32.5ZM28 31.5C27.7239 31.5 27.5 31.7239 27.5 32C27.5 32.2761 27.7239 32.5 28 32.5V31.5ZM36 32.5C36.2761 32.5 36.5 32.2761 36.5 32C36.5 31.7239 36.2761 31.5 36 31.5V32.5ZM44 31.5C43.7239 31.5 43.5 31.7239 43.5 32C43.5 32.2761 43.7239 32.5 44 32.5V31.5ZM52 32.5C52.2761 32.5 52.5 32.2761 52.5 32C52.5 31.7239 52.2761 31.5 52 31.5V32.5ZM60 31.5C59.7239 31.5 59.5 31.7239 59.5 32C59.5 32.2761 59.7239 32.5 60 32.5V31.5ZM68 32.5C68.2761 32.5 68.5 32.2761 68.5 32C68.5 31.7239 68.2761 31.5 68 31.5V32.5ZM76 31.5C75.7239 31.5 75.5 31.7239 75.5 32C75.5 32.2761 75.7239 32.5 76 32.5V31.5ZM84 32.5C84.2761 32.5 84.5 32.2761 84.5 32C84.5 31.7239 84.2761 31.5 84 31.5V32.5ZM92 31.5C91.7239 31.5 91.5 31.7239 91.5 32C91.5 32.2761 91.7239 32.5 92 32.5V31.5ZM100 32.5C100.276 32.5 100.5 32.2761 100.5 32C100.5 31.7239 100.276 31.5 100 31.5V32.5ZM108 31.5C107.724 31.5 107.5 31.7239 107.5 32C107.5 32.2761 107.724 32.5 108 32.5V31.5ZM116 32.5C116.276 32.5 116.5 32.2761 116.5 32C116.5 31.7239 116.276 31.5 116 31.5V32.5ZM124 31.5C123.724 31.5 123.5 31.7239 123.5 32C123.5 32.2761 123.724 32.5 124 32.5V31.5ZM132 32.5C132.276 32.5 132.5 32.2761 132.5 32C132.5 31.7239 132.276 31.5 132 31.5V32.5ZM140 31.5C139.724 31.5 139.5 31.7239 139.5 32C139.5 32.2761 139.724 32.5 140 32.5V31.5ZM148 32.5C148.276 32.5 148.5 32.2761 148.5 32C148.5 31.7239 148.276 31.5 148 31.5V32.5ZM156 31.5C155.724 31.5 155.5 31.7239 155.5 32C155.5 32.2761 155.724 32.5 156 32.5V31.5ZM164 32.5C164.276 32.5 164.5 32.2761 164.5 32C164.5 31.7239 164.276 31.5 164 31.5V32.5ZM172 31.5C171.724 31.5 171.5 31.7239 171.5 32C171.5 32.2761 171.724 32.5 172 32.5V31.5ZM180 32.5C180.276 32.5 180.5 32.2761 180.5 32C180.5 31.7239 180.276 31.5 180 31.5V32.5ZM188 31.5C187.724 31.5 187.5 31.7239 187.5 32C187.5 32.2761 187.724 32.5 188 32.5V31.5ZM196 32.5C196.276 32.5 196.5 32.2761 196.5 32C196.5 31.7239 196.276 31.5 196 31.5V32.5ZM204 31.5C203.724 31.5 203.5 31.7239 203.5 32C203.5 32.2761 203.724 32.5 204 32.5V31.5ZM0 32.5H4V31.5H0V32.5ZM12 32.5H20V31.5H12V32.5ZM28 32.5H36V31.5H28V32.5ZM44 32.5H52V31.5H44V32.5ZM60 32.5H68V31.5H60V32.5ZM76 32.5H84V31.5H76V32.5ZM92 32.5H100V31.5H92V32.5ZM108 32.5H116V31.5H108V32.5ZM124 32.5H132V31.5H124V32.5ZM140 32.5H148V31.5H140V32.5ZM156 32.5H164V31.5H156V32.5ZM172 32.5H180V31.5H172V32.5ZM188 32.5H196V31.5H188V32.5ZM204 32.5H208V31.5H204V32.5ZM208 33C208.552 33 209 32.5523 209 32C209 31.4477 208.552 31 208 31V33ZM0 31C-0.552285 31 -1 31.4477 -1 32C-1 32.5523 -0.552285 33 0 33V31ZM4 33C4.55228 33 5 32.5523 5 32C5 31.4477 4.55228 31 4 31V33ZM12 31C11.4477 31 11 31.4477 11 32C11 32.5523 11.4477 33 12 33V31ZM20 33C20.5523 33 21 32.5523 21 32C21 31.4477 20.5523 31 20 31V33ZM28 31C27.4477 31 27 31.4477 27 32C27 32.5523 27.4477 33 28 33V31ZM36 33C36.5523 33 37 32.5523 37 32C37 31.4477 36.5523 31 36 31V33ZM44 31C43.4477 31 43 31.4477 43 32C43 32.5523 43.4477 33 44 33V31ZM52 33C52.5523 33 53 32.5523 53 32C53 31.4477 52.5523 31 52 31V33ZM60 31C59.4477 31 59 31.4477 59 32C59 32.5523 59.4477 33 60 33V31ZM68 33C68.5523 33 69 32.5523 69 32C69 31.4477 68.5523 31 68 31V33ZM76 31C75.4477 31 75 31.4477 75 32C75 32.5523 75.4477 33 76 33V31ZM84 33C84.5523 33 85 32.5523 85 32C85 31.4477 84.5523 31 84 31V33ZM92 31C91.4477 31 91 31.4477 91 32C91 32.5523 91.4477 33 92 33V31ZM100 33C100.552 33 101 32.5523 101 32C101 31.4477 100.552 31 100 31V33ZM108 31C107.448 31 107 31.4477 107 32C107 32.5523 107.448 33 108 33V31ZM116 33C116.552 33 117 32.5523 117 32C117 31.4477 116.552 31 116 31V33ZM124 31C123.448 31 123 31.4477 123 32C123 32.5523 123.448 33 124 33V31ZM132 33C132.552 33 133 32.5523 133 32C133 31.4477 132.552 31 132 31V33ZM140 31C139.448 31 139 31.4477 139 32C139 32.5523 139.448 33 140 33V31ZM148 33C148.552 33 149 32.5523 149 32C149 31.4477 148.552 31 148 31V33ZM156 31C155.448 31 155 31.4477 155 32C155 32.5523 155.448 33 156 33V31ZM164 33C164.552 33 165 32.5523 165 32C165 31.4477 164.552 31 164 31V33ZM172 31C171.448 31 171 31.4477 171 32C171 32.5523 171.448 33 172 33V31ZM180 33C180.552 33 181 32.5523 181 32C181 31.4477 180.552 31 180 31V33ZM188 31C187.448 31 187 31.4477 187 32C187 32.5523 187.448 33 188 33V31ZM196 33C196.552 33 197 32.5523 197 32C197 31.4477 196.552 31 196 31V33ZM204 31C203.448 31 203 31.4477 203 32C203 32.5523 203.448 33 204 33V31ZM0 33H4V31H0V33ZM12 33H20V31H12V33ZM28 33H36V31H28V33ZM44 33H52V31H44V33ZM60 33H68V31H60V33ZM76 33H84V31H76V33ZM92 33H100V31H92V33ZM108 33H116V31H108V33ZM124 33H132V31H124V33ZM140 33H148V31H140V33ZM156 33H164V31H156V33ZM172 33H180V31H172V33ZM188 33H196V31H188V33ZM204 33H208V31H204V33Z",fill:"#F8F8F8",mask:"url(#path-3-inside-2_2098_5511)"}),i.jsx("mask",{id:"path-5-inside-3_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 32H208V48H0V32Z"})}),i.jsx("path",{d:"M208 48.5C208.276 48.5 208.5 48.2761 208.5 48C208.5 47.7239 208.276 47.5 208 47.5V48.5ZM0 47.5C-0.276142 47.5 -0.5 47.7239 -0.5 48C-0.5 48.2761 -0.276142 48.5 0 48.5V47.5ZM4 48.5C4.27614 48.5 4.5 48.2761 4.5 48C4.5 47.7239 4.27614 47.5 4 47.5V48.5ZM12 47.5C11.7239 47.5 11.5 47.7239 11.5 48C11.5 48.2761 11.7239 48.5 12 48.5V47.5ZM20 48.5C20.2761 48.5 20.5 48.2761 20.5 48C20.5 47.7239 20.2761 47.5 20 47.5V48.5ZM28 47.5C27.7239 47.5 27.5 47.7239 27.5 48C27.5 48.2761 27.7239 48.5 28 48.5V47.5ZM36 48.5C36.2761 48.5 36.5 48.2761 36.5 48C36.5 47.7239 36.2761 47.5 36 47.5V48.5ZM44 47.5C43.7239 47.5 43.5 47.7239 43.5 48C43.5 48.2761 43.7239 48.5 44 48.5V47.5ZM52 48.5C52.2761 48.5 52.5 48.2761 52.5 48C52.5 47.7239 52.2761 47.5 52 47.5V48.5ZM60 47.5C59.7239 47.5 59.5 47.7239 59.5 48C59.5 48.2761 59.7239 48.5 60 48.5V47.5ZM68 48.5C68.2761 48.5 68.5 48.2761 68.5 48C68.5 47.7239 68.2761 47.5 68 47.5V48.5ZM76 47.5C75.7239 47.5 75.5 47.7239 75.5 48C75.5 48.2761 75.7239 48.5 76 48.5V47.5ZM84 48.5C84.2761 48.5 84.5 48.2761 84.5 48C84.5 47.7239 84.2761 47.5 84 47.5V48.5ZM92 47.5C91.7239 47.5 91.5 47.7239 91.5 48C91.5 48.2761 91.7239 48.5 92 48.5V47.5ZM100 48.5C100.276 48.5 100.5 48.2761 100.5 48C100.5 47.7239 100.276 47.5 100 47.5V48.5ZM108 47.5C107.724 47.5 107.5 47.7239 107.5 48C107.5 48.2761 107.724 48.5 108 48.5V47.5ZM116 48.5C116.276 48.5 116.5 48.2761 116.5 48C116.5 47.7239 116.276 47.5 116 47.5V48.5ZM124 47.5C123.724 47.5 123.5 47.7239 123.5 48C123.5 48.2761 123.724 48.5 124 48.5V47.5ZM132 48.5C132.276 48.5 132.5 48.2761 132.5 48C132.5 47.7239 132.276 47.5 132 47.5V48.5ZM140 47.5C139.724 47.5 139.5 47.7239 139.5 48C139.5 48.2761 139.724 48.5 140 48.5V47.5ZM148 48.5C148.276 48.5 148.5 48.2761 148.5 48C148.5 47.7239 148.276 47.5 148 47.5V48.5ZM156 47.5C155.724 47.5 155.5 47.7239 155.5 48C155.5 48.2761 155.724 48.5 156 48.5V47.5ZM164 48.5C164.276 48.5 164.5 48.2761 164.5 48C164.5 47.7239 164.276 47.5 164 47.5V48.5ZM172 47.5C171.724 47.5 171.5 47.7239 171.5 48C171.5 48.2761 171.724 48.5 172 48.5V47.5ZM180 48.5C180.276 48.5 180.5 48.2761 180.5 48C180.5 47.7239 180.276 47.5 180 47.5V48.5ZM188 47.5C187.724 47.5 187.5 47.7239 187.5 48C187.5 48.2761 187.724 48.5 188 48.5V47.5ZM196 48.5C196.276 48.5 196.5 48.2761 196.5 48C196.5 47.7239 196.276 47.5 196 47.5V48.5ZM204 47.5C203.724 47.5 203.5 47.7239 203.5 48C203.5 48.2761 203.724 48.5 204 48.5V47.5ZM0 48.5H4V47.5H0V48.5ZM12 48.5H20V47.5H12V48.5ZM28 48.5H36V47.5H28V48.5ZM44 48.5H52V47.5H44V48.5ZM60 48.5H68V47.5H60V48.5ZM76 48.5H84V47.5H76V48.5ZM92 48.5H100V47.5H92V48.5ZM108 48.5H116V47.5H108V48.5ZM124 48.5H132V47.5H124V48.5ZM140 48.5H148V47.5H140V48.5ZM156 48.5H164V47.5H156V48.5ZM172 48.5H180V47.5H172V48.5ZM188 48.5H196V47.5H188V48.5ZM204 48.5H208V47.5H204V48.5ZM208 49C208.552 49 209 48.5523 209 48C209 47.4477 208.552 47 208 47V49ZM0 47C-0.552285 47 -1 47.4477 -1 48C-1 48.5523 -0.552285 49 0 49V47ZM4 49C4.55228 49 5 48.5523 5 48C5 47.4477 4.55228 47 4 47V49ZM12 47C11.4477 47 11 47.4477 11 48C11 48.5523 11.4477 49 12 49V47ZM20 49C20.5523 49 21 48.5523 21 48C21 47.4477 20.5523 47 20 47V49ZM28 47C27.4477 47 27 47.4477 27 48C27 48.5523 27.4477 49 28 49V47ZM36 49C36.5523 49 37 48.5523 37 48C37 47.4477 36.5523 47 36 47V49ZM44 47C43.4477 47 43 47.4477 43 48C43 48.5523 43.4477 49 44 49V47ZM52 49C52.5523 49 53 48.5523 53 48C53 47.4477 52.5523 47 52 47V49ZM60 47C59.4477 47 59 47.4477 59 48C59 48.5523 59.4477 49 60 49V47ZM68 49C68.5523 49 69 48.5523 69 48C69 47.4477 68.5523 47 68 47V49ZM76 47C75.4477 47 75 47.4477 75 48C75 48.5523 75.4477 49 76 49V47ZM84 49C84.5523 49 85 48.5523 85 48C85 47.4477 84.5523 47 84 47V49ZM92 47C91.4477 47 91 47.4477 91 48C91 48.5523 91.4477 49 92 49V47ZM100 49C100.552 49 101 48.5523 101 48C101 47.4477 100.552 47 100 47V49ZM108 47C107.448 47 107 47.4477 107 48C107 48.5523 107.448 49 108 49V47ZM116 49C116.552 49 117 48.5523 117 48C117 47.4477 116.552 47 116 47V49ZM124 47C123.448 47 123 47.4477 123 48C123 48.5523 123.448 49 124 49V47ZM132 49C132.552 49 133 48.5523 133 48C133 47.4477 132.552 47 132 47V49ZM140 47C139.448 47 139 47.4477 139 48C139 48.5523 139.448 49 140 49V47ZM148 49C148.552 49 149 48.5523 149 48C149 47.4477 148.552 47 148 47V49ZM156 47C155.448 47 155 47.4477 155 48C155 48.5523 155.448 49 156 49V47ZM164 49C164.552 49 165 48.5523 165 48C165 47.4477 164.552 47 164 47V49ZM172 47C171.448 47 171 47.4477 171 48C171 48.5523 171.448 49 172 49V47ZM180 49C180.552 49 181 48.5523 181 48C181 47.4477 180.552 47 180 47V49ZM188 47C187.448 47 187 47.4477 187 48C187 48.5523 187.448 49 188 49V47ZM196 49C196.552 49 197 48.5523 197 48C197 47.4477 196.552 47 196 47V49ZM204 47C203.448 47 203 47.4477 203 48C203 48.5523 203.448 49 204 49V47ZM0 49H4V47H0V49ZM12 49H20V47H12V49ZM28 49H36V47H28V49ZM44 49H52V47H44V49ZM60 49H68V47H60V49ZM76 49H84V47H76V49ZM92 49H100V47H92V49ZM108 49H116V47H108V49ZM124 49H132V47H124V49ZM140 49H148V47H140V49ZM156 49H164V47H156V49ZM172 49H180V47H172V49ZM188 49H196V47H188V49ZM204 49H208V47H204V49Z",fill:"#F8F8F8",mask:"url(#path-5-inside-3_2098_5511)"}),i.jsx("mask",{id:"path-7-inside-4_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 48H208V64H0V48Z"})}),i.jsx("path",{d:"M208 64.5C208.276 64.5 208.5 64.2761 208.5 64C208.5 63.7239 208.276 63.5 208 63.5V64.5ZM0 63.5C-0.276142 63.5 -0.5 63.7239 -0.5 64C-0.5 64.2761 -0.276142 64.5 0 64.5V63.5ZM4 64.5C4.27614 64.5 4.5 64.2761 4.5 64C4.5 63.7239 4.27614 63.5 4 63.5V64.5ZM12 63.5C11.7239 63.5 11.5 63.7239 11.5 64C11.5 64.2761 11.7239 64.5 12 64.5V63.5ZM20 64.5C20.2761 64.5 20.5 64.2761 20.5 64C20.5 63.7239 20.2761 63.5 20 63.5V64.5ZM28 63.5C27.7239 63.5 27.5 63.7239 27.5 64C27.5 64.2761 27.7239 64.5 28 64.5V63.5ZM36 64.5C36.2761 64.5 36.5 64.2761 36.5 64C36.5 63.7239 36.2761 63.5 36 63.5V64.5ZM44 63.5C43.7239 63.5 43.5 63.7239 43.5 64C43.5 64.2761 43.7239 64.5 44 64.5V63.5ZM52 64.5C52.2761 64.5 52.5 64.2761 52.5 64C52.5 63.7239 52.2761 63.5 52 63.5V64.5ZM60 63.5C59.7239 63.5 59.5 63.7239 59.5 64C59.5 64.2761 59.7239 64.5 60 64.5V63.5ZM68 64.5C68.2761 64.5 68.5 64.2761 68.5 64C68.5 63.7239 68.2761 63.5 68 63.5V64.5ZM76 63.5C75.7239 63.5 75.5 63.7239 75.5 64C75.5 64.2761 75.7239 64.5 76 64.5V63.5ZM84 64.5C84.2761 64.5 84.5 64.2761 84.5 64C84.5 63.7239 84.2761 63.5 84 63.5V64.5ZM92 63.5C91.7239 63.5 91.5 63.7239 91.5 64C91.5 64.2761 91.7239 64.5 92 64.5V63.5ZM100 64.5C100.276 64.5 100.5 64.2761 100.5 64C100.5 63.7239 100.276 63.5 100 63.5V64.5ZM108 63.5C107.724 63.5 107.5 63.7239 107.5 64C107.5 64.2761 107.724 64.5 108 64.5V63.5ZM116 64.5C116.276 64.5 116.5 64.2761 116.5 64C116.5 63.7239 116.276 63.5 116 63.5V64.5ZM124 63.5C123.724 63.5 123.5 63.7239 123.5 64C123.5 64.2761 123.724 64.5 124 64.5V63.5ZM132 64.5C132.276 64.5 132.5 64.2761 132.5 64C132.5 63.7239 132.276 63.5 132 63.5V64.5ZM140 63.5C139.724 63.5 139.5 63.7239 139.5 64C139.5 64.2761 139.724 64.5 140 64.5V63.5ZM148 64.5C148.276 64.5 148.5 64.2761 148.5 64C148.5 63.7239 148.276 63.5 148 63.5V64.5ZM156 63.5C155.724 63.5 155.5 63.7239 155.5 64C155.5 64.2761 155.724 64.5 156 64.5V63.5ZM164 64.5C164.276 64.5 164.5 64.2761 164.5 64C164.5 63.7239 164.276 63.5 164 63.5V64.5ZM172 63.5C171.724 63.5 171.5 63.7239 171.5 64C171.5 64.2761 171.724 64.5 172 64.5V63.5ZM180 64.5C180.276 64.5 180.5 64.2761 180.5 64C180.5 63.7239 180.276 63.5 180 63.5V64.5ZM188 63.5C187.724 63.5 187.5 63.7239 187.5 64C187.5 64.2761 187.724 64.5 188 64.5V63.5ZM196 64.5C196.276 64.5 196.5 64.2761 196.5 64C196.5 63.7239 196.276 63.5 196 63.5V64.5ZM204 63.5C203.724 63.5 203.5 63.7239 203.5 64C203.5 64.2761 203.724 64.5 204 64.5V63.5ZM0 64.5H4V63.5H0V64.5ZM12 64.5H20V63.5H12V64.5ZM28 64.5H36V63.5H28V64.5ZM44 64.5H52V63.5H44V64.5ZM60 64.5H68V63.5H60V64.5ZM76 64.5H84V63.5H76V64.5ZM92 64.5H100V63.5H92V64.5ZM108 64.5H116V63.5H108V64.5ZM124 64.5H132V63.5H124V64.5ZM140 64.5H148V63.5H140V64.5ZM156 64.5H164V63.5H156V64.5ZM172 64.5H180V63.5H172V64.5ZM188 64.5H196V63.5H188V64.5ZM204 64.5H208V63.5H204V64.5ZM208 65C208.552 65 209 64.5523 209 64C209 63.4477 208.552 63 208 63V65ZM0 63C-0.552285 63 -1 63.4477 -1 64C-1 64.5523 -0.552285 65 0 65V63ZM4 65C4.55228 65 5 64.5523 5 64C5 63.4477 4.55228 63 4 63V65ZM12 63C11.4477 63 11 63.4477 11 64C11 64.5523 11.4477 65 12 65V63ZM20 65C20.5523 65 21 64.5523 21 64C21 63.4477 20.5523 63 20 63V65ZM28 63C27.4477 63 27 63.4477 27 64C27 64.5523 27.4477 65 28 65V63ZM36 65C36.5523 65 37 64.5523 37 64C37 63.4477 36.5523 63 36 63V65ZM44 63C43.4477 63 43 63.4477 43 64C43 64.5523 43.4477 65 44 65V63ZM52 65C52.5523 65 53 64.5523 53 64C53 63.4477 52.5523 63 52 63V65ZM60 63C59.4477 63 59 63.4477 59 64C59 64.5523 59.4477 65 60 65V63ZM68 65C68.5523 65 69 64.5523 69 64C69 63.4477 68.5523 63 68 63V65ZM76 63C75.4477 63 75 63.4477 75 64C75 64.5523 75.4477 65 76 65V63ZM84 65C84.5523 65 85 64.5523 85 64C85 63.4477 84.5523 63 84 63V65ZM92 63C91.4477 63 91 63.4477 91 64C91 64.5523 91.4477 65 92 65V63ZM100 65C100.552 65 101 64.5523 101 64C101 63.4477 100.552 63 100 63V65ZM108 63C107.448 63 107 63.4477 107 64C107 64.5523 107.448 65 108 65V63ZM116 65C116.552 65 117 64.5523 117 64C117 63.4477 116.552 63 116 63V65ZM124 63C123.448 63 123 63.4477 123 64C123 64.5523 123.448 65 124 65V63ZM132 65C132.552 65 133 64.5523 133 64C133 63.4477 132.552 63 132 63V65ZM140 63C139.448 63 139 63.4477 139 64C139 64.5523 139.448 65 140 65V63ZM148 65C148.552 65 149 64.5523 149 64C149 63.4477 148.552 63 148 63V65ZM156 63C155.448 63 155 63.4477 155 64C155 64.5523 155.448 65 156 65V63ZM164 65C164.552 65 165 64.5523 165 64C165 63.4477 164.552 63 164 63V65ZM172 63C171.448 63 171 63.4477 171 64C171 64.5523 171.448 65 172 65V63ZM180 65C180.552 65 181 64.5523 181 64C181 63.4477 180.552 63 180 63V65ZM188 63C187.448 63 187 63.4477 187 64C187 64.5523 187.448 65 188 65V63ZM196 65C196.552 65 197 64.5523 197 64C197 63.4477 196.552 63 196 63V65ZM204 63C203.448 63 203 63.4477 203 64C203 64.5523 203.448 65 204 65V63ZM0 65H4V63H0V65ZM12 65H20V63H12V65ZM28 65H36V63H28V65ZM44 65H52V63H44V65ZM60 65H68V63H60V65ZM76 65H84V63H76V65ZM92 65H100V63H92V65ZM108 65H116V63H108V65ZM124 65H132V63H124V65ZM140 65H148V63H140V65ZM156 65H164V63H156V65ZM172 65H180V63H172V65ZM188 65H196V63H188V65ZM204 65H208V63H204V65Z",fill:"#F8F8F8",mask:"url(#path-7-inside-4_2098_5511)"}),i.jsx("path",{opacity:"0.25",d:"M188.216 21.8308L192.267 33.3363C192.984 35.3729 195.553 36.0079 197.136 34.5401L200.346 31.5644C200.704 31.2324 200.976 30.8179 201.137 30.357L202.893 25.3492L207.891 8.63898C207.962 8.40249 207.998 8.15696 207.998 7.91011V61C207.998 62.6569 206.655 64 204.998 64H2.99805C1.34119 64 -0.00195312 62.6569 -0.00195312 61V38.199C-0.00195312 37.5477 0.209976 36.9142 0.601822 36.394L4.07924 31.7775C5.46086 29.9434 8.30679 30.2781 9.22513 32.3828L13.7407 42.7321C14.1196 43.6005 14.8865 44.2389 15.8092 44.454L20.4905 45.5454C21.1539 45.7 21.8501 45.6244 22.4647 45.3308L27.6593 42.8495C28.3218 42.533 28.8452 41.9846 29.1305 41.3081L33.0958 31.9045C34.1272 29.4587 37.593 29.4587 38.6244 31.9045L39.704 34.4648C40.8065 37.0793 44.5863 36.8438 45.3559 34.1128L49.5889 19.0897C49.9533 17.7966 51.133 16.9033 52.4765 16.9033H56.4941C57.0707 16.9033 57.6351 16.7372 58.1197 16.4247L61.1576 14.466C62.8476 13.3764 65.11 14.2251 65.6662 16.1575L70.599 33.2936C71.1572 35.2328 73.4323 36.079 75.122 34.9758L75.9273 34.45C77.4802 33.4361 79.5719 34.0601 80.3156 35.7591L84.8676 46.1586C85.5306 47.6733 87.2942 48.366 88.8108 47.7074L91.9453 46.3462C92.765 45.9903 93.3833 45.2875 93.632 44.4292L99.0729 25.6458C99.6874 23.5244 102.321 22.7938 103.941 24.2955C105.587 25.8222 108.267 25.0377 108.831 22.864L112.541 8.54954C113.26 5.77543 117.087 5.49227 118.207 8.13037L120.305 13.0767C121.105 14.9603 123.513 15.5086 125.049 14.1567L125.58 13.6896C127.224 12.2425 129.814 12.9875 130.438 15.0869L134.329 28.1818C135.073 30.6853 138.439 31.1086 139.779 28.8673L142.671 24.0333C143.159 23.2175 144.004 22.6813 144.95 22.5878L149.822 22.1065C150.344 22.0549 150.843 21.8672 151.271 21.5621L154.984 18.9089C156.467 17.8494 158.544 18.346 159.388 19.9617L161.285 23.5972C162.565 26.0491 166.199 25.6102 166.858 22.9241L169.511 12.1165C170.239 9.14844 174.421 9.04274 175.298 11.9702L177.723 20.0592C178.406 22.3382 181.343 22.9532 182.883 21.1398L183.099 20.8852C184.598 19.1202 187.447 19.6467 188.216 21.8308Z",fill:"url(#paint0_linear_2098_5511)"}),i.jsx("path",{d:"M207.998 8.42336L201.106 31.2146C200.924 31.8169 200.557 32.3467 200.057 32.729L196.94 35.1136C195.319 36.3534 192.96 35.6482 192.286 33.7223L188.181 22.0024C187.422 19.8338 184.606 19.289 183.092 21.0179L182.846 21.2991C181.3 23.0654 178.416 22.4516 177.723 20.2087L175.29 12.336C174.395 9.4396 170.259 9.54691 169.515 12.4858L166.857 22.9946C166.185 25.6477 162.603 26.0903 161.306 23.6803L159.382 20.1042C158.534 18.5278 156.503 18.0404 155.031 19.0601L151.262 21.6725C150.84 21.9649 150.35 22.1442 149.839 22.1931L144.931 22.6636C143.996 22.7532 143.157 23.2757 142.664 24.0754L139.754 28.7942C138.4 30.9907 135.088 30.5657 134.332 28.0982L130.441 15.3948C129.808 13.3298 127.267 12.5895 125.624 13.9921L125.005 14.5209C123.474 15.8283 121.115 15.2863 120.308 13.4417L118.191 8.60225C117.054 6.00226 113.277 6.28847 112.544 9.03014L108.848 22.8647C108.27 25.0292 105.606 25.8158 103.94 24.3175V24.3175C102.303 22.8447 99.6856 23.5762 99.0555 25.6864L93.6445 43.8072C93.388 44.6663 92.7608 45.3656 91.9346 45.7136L88.763 47.0496C87.2632 47.6814 85.5332 47.0022 84.8638 45.5188L80.3156 35.4387C79.5653 33.7759 77.517 33.1621 75.9758 34.1381L75.0745 34.709C73.393 35.774 71.1595 34.9362 70.5933 33.028L65.672 16.4433C65.1078 14.5419 62.8867 13.7015 61.2051 14.7533L58.1073 16.6909C57.6303 16.9892 57.079 17.1474 56.5164 17.1474H52.4575C51.123 17.1474 49.9489 18.029 49.5766 19.3106L45.3511 33.8582C44.5676 36.5556 40.8386 36.7934 39.7188 34.2174L38.6114 31.6698C37.5658 29.2644 34.1544 29.2644 33.1088 31.6698L29.1425 40.7941C28.8495 41.4681 28.3193 42.0111 27.6525 42.3201L22.4421 44.7345C21.8411 45.0129 21.165 45.0847 20.519 44.9386L15.803 43.872C14.8836 43.6641 14.1154 43.0362 13.7288 42.1765L9.21662 32.1447C8.28874 30.0817 5.49845 29.7487 4.11113 31.5353L-0.00196201 36.8322",stroke:"#FF3F19"})]}),i.jsxs("defs",{children:[i.jsxs("linearGradient",{id:"paint0_linear_2098_5511",x1:"103.998",y1:"0",x2:"103.998",y2:"64",gradientUnits:"userSpaceOnUse",children:[i.jsx("stop",{stopColor:"#FF3F19"}),i.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),i.jsx("clipPath",{id:"clip0_2098_5511",children:i.jsx("rect",{width:"208",height:"64",fill:"white"})})]})]})}),Vl=({adaptiveStyles:e})=>{const[t,n]=L.useState(null),[r,u]=L.useState(!1),[a,s]=L.useState(!1),[o,c]=L.useState(!1);if(L.useEffect(()=>{u(!0),s(!0),(async()=>{const p=await U2();n(p)})(),u(!1),s(!1)},[]),!t)return i.jsx(N.Loader,{});const{isAvailable:l,isActivated:h,info:f}=t.data;return l?i.jsxs("div",{children:[i.jsxs("div",{className:g.clx(Ce.referral,{[Ce.mobile]:e!=="desktop"}),children:[i.jsx("div",{className:g.clx(Ce.referralBlock,{[Ce.mobile]:e!=="desktop"}),children:r?i.jsx(ql,{adaptiveStyles:e}):i.jsxs("div",{className:Ce.referralContainer,children:[i.jsx("div",{id:"h2",className:Ce.title,children:"Refer friends"}),i.jsx("div",{className:Ce.description,id:"lg",children:"Refer friends. Earn rewards. Make bank."}),h?i.jsx(i.Fragment,{children:i.jsx(zl,{referral:t})}):i.jsx(i.Fragment,{children:i.jsx($l,{setIsOpen:c})})]})}),a?i.jsx("div",{className:Ce.referralStats}):i.jsxs("div",{className:g.clx(Ce.referralStats,{[Ce.mobile]:e!=="desktop"}),children:[i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Referrals"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:f!=null&&f.totalReferrals?`${f.totalReferrals} person`:"-"}),i.jsx(Nu,{})]}),i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Earned"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:"-"}),i.jsx(Nu,{})]}),i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Total Revenue"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:g.formatPrice({amount:(f==null?void 0:f.totalRevenueUsd)||0})}),i.jsx(Nu,{})]}),i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Earn Procent"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:`${t.data.earnPercent}%`||"-"}),i.jsx(Nu,{})]})]})]}),o&&i.jsx(N.Modal,{close:()=>c(!1),children:i.jsx(Z6,{setIsOpen:c,setIsLoading:u})})]}):null},$l=({setIsOpen:e})=>{const{setIsOpen:t}=g.useModalStore();return i.jsxs("div",{className:Ce.steps,onClick:n=>n.stopPropagation(),children:[i.jsx(N.Button,{type:"Primary",className:Ce.joinButton,onClick:()=>{e(!0),t(!0)},children:"Join the referral Program"}),i.jsx("div",{children:g.referralSteps.map(({caption:n,description:r},u,a)=>i.jsx(q6,{caption:n,description:r,index:u+1,bar:u+1!==a.length},n))})]})},zl=({referral:e})=>{var a,s;const{shopDomain:t}=g.useStorefrontStore(),n=`https://${t}/?r=${(a=e.data.info)==null?void 0:a.referralCode}`,{notifications:r,setNotifications:u}=g.useNotificationStore();return i.jsxs("div",{className:Ce.referralInfo,children:[i.jsx(N.Input,{onChange:()=>{},label:"Affiliate Code",value:((s=e.data.info)==null?void 0:s.referralCode)||"",disabled:!0}),i.jsx("div",{className:Ce.linkContainer,children:i.jsx(N.Input,{onChange:()=>{},label:"Affiliate Link",value:n,disabled:!0,rightIcon:i.jsx(N.Icon,{name:"Copy",fill:"var(--text-action)",onClick:()=>{navigator.clipboard.writeText(n),u([...r,{message:"Link copied to clipboard",status:"success",id:g.v4()}])},hoverable:!0})})})]})},ql=({adaptiveStyles:e})=>i.jsxs(ir,{speed:2,width:500,height:"100%",viewBox:"0 0 500 305",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:g.clx(Ce.skeleton,{[Ce.mobile]:e!=="desktop"}),style:{borderRadius:"var(--border-radius)"},children:[i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"264",height:"40"}),i.jsx("rect",{x:"0",y:"45",rx:"10",ry:"10",width:"160",height:"24"}),i.jsx("rect",{x:"0",y:"100",rx:"10",ry:"10",width:"100",height:"40"}),i.jsx("rect",{x:"0",y:"150",rx:"10",ry:"10",width:"476",height:"40"}),i.jsx("rect",{x:"0",y:"220",rx:"10",ry:"10",width:"428",height:"50"})]}),W6="_title_u8oqs_1",Y6="_heading_u8oqs_10",G6="_description_u8oqs_15",qa={title:W6,heading:Y6,description:G6},fa=({title:e,description:t})=>i.jsxs("div",{className:qa.title,children:[i.jsx("div",{id:"h3",className:qa.heading,children:e}),t&&i.jsx("div",{className:qa.description,id:"lg",children:t})]}),X6="_noItemsBlock_yefnm_4",K6="_noItemsBlockIcon_yefnm_13",Q6="_noItemsBlockTitle_yefnm_21",J6="_noItemsBlockDescription_yefnm_31",em="_centered_yefnm_37",Br={noItemsBlock:X6,noItemsBlockIcon:K6,noItemsBlockTitle:Q6,noItemsBlockDescription:J6,centered:em},ha=({title:e,description:t,className:n,centered:r=!1})=>i.jsxs("div",{className:g.clx(Br.noItemsBlock,n,{[Br.centered]:r}),children:[i.jsx("div",{className:Br.noItemsBlockIcon,children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),i.jsx("div",{className:Br.noItemsBlockTitle,id:"h4",children:e}),i.jsx("div",{className:Br.noItemsBlockDescription,id:"md",children:t})]}),tm="_ordersTable_1btyq_2",nm="_gatewayItem_1btyq_10",rm="_gatewayIcon_1btyq_15",um="_orderTime_1btyq_20",am="_reviewContainer_1btyq_25",sm="_reviewRating_1btyq_35",im="_tableLoader_1btyq_39",om="_tableItem_1btyq_48",Vt={ordersTable:tm,gatewayItem:nm,gatewayIcon:rm,orderTime:um,reviewContainer:am,reviewRating:sm,tableLoader:im,tableItem:om};var In=(e=>(e[e.SUCCESS=1]="SUCCESS",e[e.WARNING=2]="WARNING",e[e.ERROR=3]="ERROR",e))(In||{});const cm={[be.New]:2,[be.Pending]:2,[be.Processing]:2,[be.Completed]:1,[be.Cancelled]:3,[be.Expired]:3,[be.FullDeliveryFailure]:3,[be.PartiallyDelivered]:2,[be.Refunded]:2,[be.Failed]:3,[be.PartiallyRefunded]:2},lm=(e,t)=>{const n=t.find(r=>r.name===e);return n?i.jsxs("div",{className:Vt.gatewayItem,children:[(n==null?void 0:n.name)==="ForebitPayments"?i.jsx(pl,{}):n.name==="Balance"?i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20,style:{marginRight:"0.25rem"}}):i.jsx("img",{alt:n.displayName,src:g.convertCfImageIdToUrl(n.logoCfImageId,"100"),className:Vt.gatewayIcon}),i.jsx("div",{id:"md",children:n.displayName})]}):null},dm=({item:e,gatewaysDetail:t})=>{const[n,r]=g.extractDateAndTime(e.time),{isAntistock:u}=g.useGeneralStore();return i.jsxs(L.Fragment,{children:[i.jsx(ot,{copyText:e.id,children:i.jsx(g.NavLink,{to:`/orders/${e.id}/${e.accessToken}`,id:"md",children:e.id})}),i.jsx(ot,{children:i.jsx(g.NavLink,{to:`/orders/${e.id}/${e.accessToken}`,children:i.jsx(Gl,{status:e.status,variant:cm[e.status]})})}),i.jsx(ot,{children:g.formatPrice(e.price)}),i.jsx(ot,{children:lm(e.gatewayName,t)}),i.jsx(ot,{children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:n}),i.jsx("div",{className:Vt.orderTime,id:"md",children:r})]})}),!u&&i.jsx(ot,{children:e.review?i.jsxs("div",{className:Vt.reviewContainer,children:[i.jsx(N.Icon,{name:"Star",fill:"var(--text-secondary)"}),i.jsx("div",{className:Vt.reviewRating,id:"md",children:e.review.rating})]}):i.jsx("span",{id:"md",children:"None"})})]},e.id)},Zl=({orders:e,gatewaysDetail:t,totalCount:n,isLoading:r})=>{const{page:u,setPage:a}=g.usePaginationPagesStore(),{isAntistock:s}=g.useGeneralStore(),c=!(!(e!=null&&e.length)||!t)&&e.length>0;return i.jsxs("div",{className:Vt.ordersTable,children:[i.jsxs(pa,{children:[i.jsx(Pt,{className:Vt.tableItem,children:"Invoice ID"}),i.jsx(Pt,{className:Vt.tableItem,children:"Status"}),i.jsx(Pt,{className:Vt.tableItem,children:"Value"}),i.jsx(Pt,{className:Vt.tableItem,children:"Payment"}),i.jsx(Pt,{className:Vt.tableItem,children:"Date"}),!s&&i.jsx(Pt,{className:Vt.tableItem,children:"Review"}),c&&!r&&e.map(l=>i.jsx(dm,{item:l,gatewaysDetail:t},l.id))]}),(!c||r)&&i.jsx("div",{className:Vt.tableLoader,children:i.jsx(N.Loader,{})}),c&&!r&&i.jsx(mu,{currentPage:u,totalCount:n,onPageChange:a})]})},fm="_ticketsTable_1m2oy_4",hm="_antistockTable_1m2oy_4",pm="_table_1m2oy_4",mm="_tableItem_1m2oy_22",gm="_text_1m2oy_47",bm="_tableItemTitle_1m2oy_54",_m="_copyIcon_1m2oy_85",ur={ticketsTable:fm,antistockTable:hm,table:pm,tableItem:mm,text:gm,tableItemTitle:bm,copyIcon:_m},ot=({children:e,className:t,onClick:n,copyText:r,id:u})=>{const a=Zn();return i.jsxs("div",{className:g.clx(ur.tableItem,t),onClick:n,style:{cursor:n?"pointer":"default"},children:[i.jsx("span",{className:ur.text,id:u||"md",children:e})," ",r&&i.jsx("div",{className:ur.copyIcon,children:i.jsx(N.Icon,{name:"Copy",onClick:()=>a(r),width:20,height:20})})]})},Pt=({children:e,className:t})=>i.jsx(ot,{className:g.clx(ur.tableItemTitle,t),id:"lg",children:e}),pa=({children:e,className:t})=>{const{isAntistock:n}=g.useGeneralStore(),r=t==null?void 0:t.includes("ticketsTable");return i.jsx("div",{className:g.clx(t,r?ur.ticketsTable:n?ur.antistockTable:ur.table),children:e})},xm="_paginationContainer_1txk9_3",Cm="_paginationWithRange_1txk9_15",Em="_paginationWithRangeText_1txk9_25",ym="_paginationWithRangePagination_1txk9_33",Tm="_notIsAntistock_1txk9_41",Zr={paginationContainer:xm,paginationWithRange:Cm,paginationWithRangeText:Em,paginationWithRangePagination:ym,notIsAntistock:Tm},vu=(e,t)=>Array.from({length:t-e+1},(n,r)=>e+r),km=(e,t,n)=>{const r=n*2+3+2;if(t<=r)return vu(1,t);const u=Math.max(e-n,1),a=Math.min(e+n,t),s=u>2,o=a<t-2;return!s&&o?[...vu(1,3+2*n),"right-ellipsis",t]:s&&!o?[1,"left-ellipsis",...vu(t-(3+2*n)+1,t)]:[1,"left-ellipsis",...vu(u,a),"right-ellipsis",t]},Wl=({currentPage:e,totalPages:t,onPageChange:n,siblingCount:r=1})=>{const u=c=>{const l=r*2+1;n(c?Math.max(e-l,1):Math.min(e+l,t))},a=e===1,s=e===t,o=c=>i.jsx(N.Button,{type:typeof c=="number"&&c===e?"Primary":"Secondary",onClick:()=>typeof c=="string"?u(c==="left-ellipsis"):n(c),"aria-current":typeof c=="number"&&c===e?"page":void 0,children:typeof c=="string"?"…":c},c);return i.jsxs("div",{className:Zr.paginationContainer,children:[i.jsx(N.Button,{type:"Secondary",onClick:()=>!a&&n(e-1),disabled:a,children:i.jsx(N.Icon,{name:"ArrowLeft"})}),km(e,t,r).map(o),i.jsx(N.Button,{type:"Secondary",onClick:()=>!s&&n(e+1),disabled:s,children:i.jsx(N.Icon,{name:"ArrowRight"})})]})},Yl=(e,t,n)=>{const r=(e-1)*n+1,u=Math.min(e*n,t);return`Showing ${r}-${u} entries of ${t}`},mu=({className:e,totalCount:t,...n})=>{const{isAntistock:r}=g.useGeneralStore(),u=Math.ceil(t/Yu);return u<2?null:i.jsxs("div",{className:g.clx(Zr.paginationWithRange,e,{[Zr.notIsAntistock]:!r}),children:[i.jsx("div",{className:Zr.paginationWithRangeText,id:"md",children:Yl(n.currentPage,t,Yu)}),i.jsx("div",{className:Zr.paginationWithRangePagination,children:i.jsx(Wl,{...n,totalPages:u})})]})},Am="_statusIndicator_1gt2z_4",Sm="_antistockStatus_1gt2z_11",Im="_statusIndicatorSuccess_1gt2z_16",Nm="_statusIndicatorWarning_1gt2z_20",vm="_statusIndicatorError_1gt2z_24",wm="_statusIndicatorText_1gt2z_28",xr={statusIndicator:Am,antistockStatus:Sm,statusIndicatorSuccess:Im,statusIndicatorWarning:Nm,statusIndicatorError:vm,statusIndicatorText:wm},Dm=()=>i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.2105 5.91453C11.2628 5.96677 11.3043 6.02881 11.3326 6.0971C11.3609 6.16538 11.3754 6.23858 11.3754 6.3125C11.3754 6.38642 11.3609 6.45962 11.3326 6.5279C11.3043 6.59619 11.2628 6.65823 11.2105 6.71047L7.27297 10.648C7.22073 10.7003 7.15869 10.7418 7.09041 10.7701C7.02212 10.7984 6.94892 10.8129 6.875 10.8129C6.80108 10.8129 6.72789 10.7984 6.6596 10.7701C6.59131 10.7418 6.52928 10.7003 6.47703 10.648L4.78953 8.96047C4.68399 8.85492 4.62469 8.71177 4.62469 8.5625C4.62469 8.41323 4.68399 8.27008 4.78953 8.16453C4.89508 8.05898 5.03824 7.99969 5.1875 7.99969C5.33677 7.99969 5.47992 8.05898 5.58547 8.16453L6.875 9.45477L10.4145 5.91453C10.4668 5.86223 10.5288 5.82074 10.5971 5.79244C10.6654 5.76413 10.7386 5.74956 10.8125 5.74956C10.8864 5.74956 10.9596 5.76413 11.0279 5.79244C11.0962 5.82074 11.1582 5.86223 11.2105 5.91453ZM15.3125 8C15.3125 9.44628 14.8836 10.8601 14.0801 12.0626C13.2766 13.2651 12.1346 14.2024 10.7984 14.7559C9.46219 15.3093 7.99189 15.4541 6.57341 15.172C5.15492 14.8898 3.85196 14.1934 2.82928 13.1707C1.80661 12.148 1.11017 10.8451 0.828011 9.4266C0.545857 8.00811 0.690668 6.53781 1.24413 5.20163C1.7976 3.86544 2.73486 2.72339 3.9374 1.91988C5.13993 1.11637 6.55373 0.6875 8 0.6875C9.93877 0.689547 11.7975 1.46063 13.1685 2.83154C14.5394 4.20246 15.3105 6.06123 15.3125 8ZM14.1875 8C14.1875 6.77623 13.8246 5.57994 13.1447 4.56241C12.4648 3.54488 11.4985 2.75181 10.3679 2.2835C9.23724 1.81518 7.99314 1.69264 6.79288 1.93139C5.59262 2.17014 4.49012 2.75944 3.62478 3.62478C2.75944 4.49011 2.17014 5.59262 1.93139 6.79288C1.69265 7.99314 1.81518 9.23724 2.2835 10.3679C2.75182 11.4985 3.54488 12.4648 4.56241 13.1447C5.57994 13.8246 6.77623 14.1875 8 14.1875C9.64046 14.1856 11.2132 13.5331 12.3732 12.3732C13.5331 11.2132 14.1856 9.64046 14.1875 8Z",fill:"#338B13"})}),Lm=()=>i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M8 0.6875C6.55373 0.6875 5.13993 1.11637 3.9374 1.91988C2.73486 2.72339 1.7976 3.86544 1.24413 5.20163C0.690668 6.53781 0.545857 8.00811 0.828011 9.4266C1.11017 10.8451 1.80661 12.148 2.82928 13.1707C3.85196 14.1934 5.15492 14.8898 6.57341 15.172C7.99189 15.4541 9.46219 15.3093 10.7984 14.7559C12.1346 14.2024 13.2766 13.2651 14.0801 12.0626C14.8836 10.8601 15.3125 9.44628 15.3125 8C15.3105 6.06123 14.5394 4.20246 13.1685 2.83154C11.7975 1.46063 9.93877 0.689547 8 0.6875ZM8 14.1875C6.77623 14.1875 5.57994 13.8246 4.56241 13.1447C3.54488 12.4648 2.75182 11.4985 2.2835 10.3679C1.81518 9.23724 1.69265 7.99314 1.93139 6.79288C2.17014 5.59262 2.75944 4.49011 3.62478 3.62478C4.49012 2.75944 5.59262 2.17014 6.79288 1.93139C7.99314 1.69264 9.23724 1.81518 10.3679 2.2835C11.4985 2.75181 12.4648 3.54488 13.1447 4.56241C13.8246 5.57994 14.1875 6.77623 14.1875 8C14.1856 9.64046 13.5331 11.2132 12.3732 12.3732C11.2132 13.5331 9.64046 14.1856 8 14.1875ZM12.5 8C12.5 8.14918 12.4407 8.29226 12.3353 8.39775C12.2298 8.50324 12.0867 8.5625 11.9375 8.5625H8C7.85082 8.5625 7.70775 8.50324 7.60226 8.39775C7.49677 8.29226 7.4375 8.14918 7.4375 8V4.0625C7.4375 3.91332 7.49677 3.77024 7.60226 3.66475C7.70775 3.55926 7.85082 3.5 8 3.5C8.14919 3.5 8.29226 3.55926 8.39775 3.66475C8.50324 3.77024 8.5625 3.91332 8.5625 4.0625V7.4375H11.9375C12.0867 7.4375 12.2298 7.49676 12.3353 7.60225C12.4407 7.70774 12.5 7.85082 12.5 8Z",fill:"#C1972A"})}),Pm=()=>i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M9 17.0625C4.5525 17.0625 0.9375 13.4475 0.9375 9C0.9375 4.5525 4.5525 0.9375 9 0.9375C13.4475 0.9375 17.0625 4.5525 17.0625 9C17.0625 13.4475 13.4475 17.0625 9 17.0625ZM9 2.0625C5.175 2.0625 2.0625 5.175 2.0625 9C2.0625 12.825 5.175 15.9375 9 15.9375C12.825 15.9375 15.9375 12.825 15.9375 9C15.9375 5.175 12.825 2.0625 9 2.0625Z",fill:"#C12A2A"}),i.jsx("path",{d:"M6.87752 11.685C6.73502 11.685 6.59252 11.6325 6.48002 11.52C6.26252 11.3025 6.26252 10.9425 6.48002 10.725L10.725 6.48C10.9425 6.2625 11.3025 6.2625 11.52 6.48C11.7375 6.6975 11.7375 7.0575 11.52 7.275L7.27502 11.52C7.17002 11.6325 7.02002 11.685 6.87752 11.685Z",fill:"#C12A2A"}),i.jsx("path",{d:"M11.1225 11.685C10.98 11.685 10.8375 11.6325 10.725 11.52L6.48002 7.275C6.26252 7.0575 6.26252 6.6975 6.48002 6.48C6.69752 6.2625 7.05752 6.2625 7.27502 6.48L11.52 10.725C11.7375 10.9425 11.7375 11.3025 11.52 11.52C11.4075 11.6325 11.265 11.685 11.1225 11.685Z",fill:"#C12A2A"})]}),Rm={[In.SUCCESS]:Dm,[In.WARNING]:Lm,[In.ERROR]:Pm},Mm={[In.SUCCESS]:xr.statusIndicatorSuccess,[In.WARNING]:xr.statusIndicatorWarning,[In.ERROR]:xr.statusIndicatorError},Om=e=>{switch(e){case"NEW":return"New";case"COMPLETED":return"Completed";case"CANCELLED":return"Cancelled";case"EXPIRED":return"Expired";case"FAILED":return"Failed";case"FULL_DELIVERY_FAILURE":return"Delivery Failed";case"PARTIALLY_DELIVERED":return"Partial Delivery Failed";case"REFUNDED":return"Refunded";case"PENDING":return"Pending";case"PROCESSING":return"Processing";case"APPROVED":return"Approved";case"DECLINED":return"Declined";case"AUTO_APPROVED":return"Auto Approved";case"PARTIALLY_REFUNDED":return"Partial Refunded"}return e},Gl=({status:e,variant:t=In.WARNING})=>{const{isAntistock:n}=g.useGeneralStore(),r=Rm[t];return i.jsxs("div",{className:g.clx(xr.statusIndicator,Mm[t],{[xr.antistockStatus]:n}),children:[i.jsx(r,{}),i.jsx("span",{className:xr.statusIndicatorText,id:"md",children:Om(e)})]})},jm="_checkoutItemsContainer_1kn61_2",Fm="_innerContainer_1kn61_16",Bm="_headerSection_1kn61_22",Hm="_header_1kn61_22",Um="_productsContainer_1kn61_47",Vm="_couponContainer_1kn61_54",$m="_checkoutFooter_1kn61_58",Xn={checkoutItemsContainer:jm,innerContainer:Fm,headerSection:Bm,header:Hm,productsContainer:Um,couponContainer:Vm,checkoutFooter:$m},zm="_checkoutFooter_sum4s_1",qm="_antistock_sum4s_12",Zm="_footerBranding_sum4s_22",Wm="_poweredText_sum4s_27",Ym="_antistockLink_sum4s_31",Gm="_footerNav_sum4s_39",vn={checkoutFooter:zm,antistock:qm,footerBranding:Zm,poweredText:Wm,antistockLink:Ym,footerNav:Gm},Xm="data:image/svg+xml,%3csvg%20width='100'%20height='26'%20viewBox='0%200%20100%2026'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.3996%203.39999V12.8228L16.2964%2014.1313V8.89738L7.69363%2011.587V6.87107L20.3996%203.39999Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M16.2964%2014.1313L16.2962%2018.6292L3.59961%2022.6V12.7592L7.69363%2011.587L7.69344%2016.9118L16.2964%2014.1313Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M95.6308%2022C93.4931%2022%2091.8804%2020.882%2091.4678%2019.1776L93.118%2019.0676C93.4181%2019.984%2094.0931%2020.5338%2095.6308%2020.5338C97.4311%2020.5338%2098.4249%2019.8373%2098.4249%2018.4078V16.8316C97.9374%2017.858%2096.8122%2018.5178%2095.5183%2018.5178C92.9868%2018.5178%2091.1865%2016.575%2091.1865%2013.8076C91.1865%2011.0401%2092.9492%209.09737%2095.4433%209.09737C96.831%209.09737%2098.0499%209.77549%2098.5%2010.8568V9.3173H100V18.3711C100%2020.6438%2098.3687%2022%2095.6308%2022ZM95.5933%2017.0515C97.2998%2017.0515%2098.4062%2015.8053%2098.4249%2013.8076C98.4624%2011.8099%2097.3186%2010.5636%2095.5933%2010.5636C93.8494%2010.5636%2092.8367%2011.8099%2092.8367%2013.8076C92.8367%2015.8053%2093.8869%2017.0515%2095.5933%2017.0515Z'%20fill='%23252525'/%3e%3cpath%20d='M81.1836%2019.0309V9.3173H82.6275L82.665%2011.0584C83.1901%209.72051%2084.3527%209.09737%2085.7217%209.09737C87.9907%209.09737%2089.0783%2010.7285%2089.0783%2012.7812V19.0309H87.5031V13.2211C87.5031%2011.425%2086.8843%2010.4536%2085.3841%2010.4536C83.8464%2010.4536%2082.7588%2011.425%2082.7588%2013.2211V19.0309H81.1836Z'%20fill='%23252525'/%3e%3cpath%20d='M73.3176%2019.2509C71.2549%2019.2509%2069.9609%2018.2795%2069.9609%2016.6117C69.9609%2014.9622%2070.9173%2014.0458%2073.0926%2013.6426L76.618%2013.0011C76.618%2011.37%2075.8304%2010.5636%2074.2552%2010.5636C72.8676%2010.5636%2072.0987%2011.1867%2071.7987%2012.3047L70.1297%2012.1764C70.5048%2010.3436%2072.0049%209.09737%2074.2552%209.09737C76.8056%209.09737%2078.1932%2010.6002%2078.1932%2013.0561V17.0699C78.1932%2017.5097%2078.3433%2017.6747%2078.7183%2017.6747H79.1121V19.0309C78.9996%2019.0493%2078.7558%2019.0676%2078.512%2019.0676C77.3119%2019.0676%2076.7681%2018.6094%2076.6368%2017.5281C76.1492%2018.5361%2074.7803%2019.2509%2073.3176%2019.2509ZM73.4676%2017.8946C75.4554%2017.8946%2076.618%2016.6483%2076.618%2015.0355V14.3391L73.3926%2014.9255C72.0425%2015.1638%2071.6111%2015.6586%2071.6111%2016.4651C71.6111%2017.3814%2072.305%2017.8946%2073.4676%2017.8946Z'%20fill='%23252525'/%3e%3cpath%20d='M63.2168%2022C61.079%2022%2059.4663%2020.882%2059.0537%2019.1776L60.704%2019.0676C61.004%2019.984%2061.6791%2020.5338%2063.2168%2020.5338C65.017%2020.5338%2066.0109%2019.8373%2066.0109%2018.4078V16.8316C65.5233%2017.858%2064.3982%2018.5178%2063.1043%2018.5178C60.5727%2018.5178%2058.7725%2016.575%2058.7725%2013.8076C58.7725%2011.0401%2060.5352%209.09737%2063.0293%209.09737C64.4169%209.09737%2065.6358%209.77549%2066.0859%2010.8568V9.3173H67.5861V18.3711C67.5861%2020.6438%2065.9546%2022%2063.2168%2022ZM63.1793%2017.0515C64.8857%2017.0515%2065.9921%2015.8053%2066.0109%2013.8076C66.0484%2011.8099%2064.9045%2010.5636%2063.1793%2010.5636C61.4353%2010.5636%2060.4227%2011.8099%2060.4227%2013.8076C60.4227%2015.8053%2061.4728%2017.0515%2063.1793%2017.0515Z'%20fill='%23252525'/%3e%3cpath%20d='M56.2141%2019.0309C55.0515%2019.0309%2054.2451%2018.4811%2054.2451%2017.1982L54.2639%206.01834H55.8391V17.0699C55.8391%2017.4731%2056.0453%2017.6747%2056.4579%2017.6747H57.3205V19.0309H56.2141Z'%20fill='%23252525'/%3e%3cpath%20d='M51.0686%2019.0309C49.906%2019.0309%2049.0996%2018.4811%2049.0996%2017.1982L49.1184%206.01834H50.6936V17.0699C50.6936%2017.4731%2050.8998%2017.6747%2051.3124%2017.6747H52.175V19.0309H51.0686Z'%20fill='%23252525'/%3e%3cpath%20d='M44.5209%2019.0309V9.3173H46.0961V19.0309H44.5209ZM44.4834%207.79611V6H46.1336V7.79611H44.4834Z'%20fill='%23252525'/%3e%3cpath%20d='M32%2019.0309V6.01834H36.5756C39.726%206.01834%2041.3012%207.09967%2041.3012%209.51891C41.3012%2010.9851%2040.4198%2012.0481%2038.9384%2012.3047C40.7574%2012.5613%2041.8638%2013.7709%2041.8638%2015.4571C41.8638%2017.8213%2040.2323%2019.0309%2037.3257%2019.0309H32ZM37.3257%2017.4914C39.1447%2017.4914%2040.176%2016.74%2040.176%2015.3654C40.176%2013.9908%2039.1447%2013.1844%2037.3257%2013.1844H33.6127V17.4914H37.3257ZM36.5756%2011.6449C38.5258%2011.6449%2039.6135%2010.8935%2039.6135%209.59222C39.6135%208.21765%2038.6008%207.55786%2036.5756%207.55786H33.6127V11.6449H36.5756Z'%20fill='%23252525'/%3e%3c/svg%3e",zn=({className:e})=>{const{shopTerms:t,shopPrivacyPolicy:n,shopRefundPolicy:r,shopLogo:u}=g.useStorefrontStore(),{isAntistock:a}=g.useGeneralStore(),{settings:s}=g.useSettingsStore();return i.jsxs("footer",{className:`${vn.checkoutFooter} ${e} ${a?vn.antistock:""}`,children:[a&&(s==null?void 0:s.showPoweredBy)&&i.jsxs("div",{className:vn.footerBranding,children:[i.jsx("p",{className:vn.poweredText,id:"md",style:{color:"var(--text-action)"},children:"Powered by"}),i.jsxs("a",{className:vn.antistockLink,href:"https://antistock.io",target:"_blank",rel:"noopener noreferrer",children:[i.jsx(Tl,{width:14,height:18}),"Antistock"]})]}),!a&&i.jsxs("div",{className:vn.footerBranding,children:[i.jsx("p",{className:vn.poweredText,id:"md",children:"Powered by"}),u||i.jsx("img",{src:Xm,alt:"Billgang"})]}),i.jsx("nav",{children:i.jsxs("ul",{className:vn.footerNav,children:[(t==null?void 0:t.showTermsOfServiceOnProduct)&&!a&&i.jsx("li",{children:i.jsx("a",{href:"/terms",children:"Terms"})}),(n==null?void 0:n.showPrivacyPolicyOnProduct)&&i.jsx("li",{children:i.jsx("a",{href:n.privacyPolicy,target:"_blank",rel:"noopener noreferrer",children:"Privacy"})}),(r==null?void 0:r.showRefundPolicyOnProduct)&&i.jsx("li",{children:i.jsx("a",{href:r.refundPolicy,target:"_blank",rel:"noopener noreferrer",children:"Refund"})})]})})]})},Km="_checkoutHeader_1stm3_1",Qm="_leftContainer_1stm3_20",Jm="_backArrow_1stm3_26",e5="_logoContainer_1stm3_38",t5="_logo_1stm3_38",n5="_antistockLink_1stm3_48",fr={checkoutHeader:Km,leftContainer:Qm,backArrow:Jm,logoContainer:e5,logo:t5,antistockLink:n5},r5="_activeBadge_1yb5i_1",u5="_activeBadgeText_1yb5i_12",mo={activeBadge:r5,activeBadgeText:u5},a5=({className:e})=>i.jsxs("div",{className:g.clx(mo.activeBadge,e),children:[i.jsx(N.Icon,{name:"Check",width:20,height:20}),i.jsx("p",{className:mo.activeBadgeText,children:"Active"})]}),s5="_timerContainer_rh66p_2",i5="_timerText_rh66p_12",o5="_timerContainerAntistock_rh66p_16",Za={timerContainer:s5,timerText:i5,timerContainerAntistock:o5},c5=({expiresAt:e})=>{const[t,n]=L.useState(u()),{isAntistock:r}=g.useGeneralStore();function u(){const a=new Date,s=new Date(e).getTime()-a.getTime();if(s<=0)return{hours:"00",minutes:"00",seconds:"00"};const o=Math.floor(s/(1e3*60*60)),c=Math.floor(s%(1e3*60*60)/(1e3*60)),l=Math.floor(s%(1e3*60)/1e3);return{hours:String(o).padStart(2,"0"),minutes:String(c).padStart(2,"0"),seconds:String(l).padStart(2,"0")}}return L.useEffect(()=>{const a=setInterval(()=>{n(u())},1e3);return()=>clearInterval(a)},[e]),t.hours==="00"&&t.minutes==="00"&&t.seconds==="00"?null:r?i.jsxs("div",{className:Za.timerContainerAntistock,children:[i.jsxs("span",{children:[t.hours,":",t.minutes,":",t.seconds]}),i.jsx("span",{children:"remaining"})]}):i.jsxs("div",{className:Za.timerContainer,children:[i.jsx(N.Icon,{name:"Clock"}),i.jsxs("p",{className:Za.timerText,id:"md",children:[t.hours,":",t.minutes,":",t.seconds]})]})},l5="_progressBar_18ijf_4",d5="_progressBarLabel_18ijf_12",f5="_progressBarTrack_18ijf_18",h5="_progressBarFill_18ijf_29",wu={progressBar:l5,progressBarLabel:d5,progressBarTrack:f5,progressBarFill:h5},ui=({color:e,percent:t,disablePercentLabel:n})=>i.jsxs("div",{className:wu.progressBar,children:[!n&&i.jsxs("p",{className:wu.progressBarLabel,children:[t,"%"]}),i.jsx("div",{className:wu.progressBarTrack,children:i.jsx("div",{style:{width:`${t}%`,background:e||void 0},className:wu.progressBarFill})})]}),p5="_rating_1bpps_4",m5="_disabled_1bpps_9",g5="_ratingStar_1bpps_14",b5="_inactive_1bpps_22",Du={rating:p5,disabled:m5,ratingStar:g5,inactive:b5},_5=({setRating:e,rating:t,disabled:n})=>{const[r,u]=L.useState(0),a=o=>{n||u(+o.currentTarget.id)},s=o=>{n||e(o)};return i.jsx("div",{className:g.clx(Du.rating,{[Du.disabled]:n}),onMouseLeave:()=>u(0),children:[1,2,3,4,5].map(o=>i.jsx("div",{id:o.toString(),className:g.clx(Du.ratingStar,{[Du.inactive]:!(t>=o||r>=o)}),onMouseEnter:a,onClick:()=>s(o),children:t>=o||r>=o?i.jsx(Nh,{}):i.jsx(N.Icon,{name:"Star",fill:"var(--text-secondary)",width:22,height:21})},o))})},x5="_inputRange_iv6ow_4",C5="_inputRangeLabel_iv6ow_14",E5="_progressBar_iv6ow_22",y5="_progressBarFill_iv6ow_29",T5="_stepsContainer_iv6ow_40",k5="_step_iv6ow_40",A5="_stepDot_iv6ow_57",S5="_current_iv6ow_61",I5="_active_iv6ow_69",N5="_inactive_iv6ow_72",v5="_tooltip_iv6ow_77",Wt={inputRange:x5,inputRangeLabel:C5,progressBar:E5,progressBarFill:y5,stepsContainer:T5,step:k5,stepDot:A5,current:S5,default:"_default_iv6ow_65",active:I5,inactive:N5,tooltip:v5},w5=({totalSteps:e,step:t,onStepChange:n,label:r})=>{const[u,a]=L.useState(t),s=u===1?0:(u-1)/(e-1)*100,o=c=>{a(c),n(c)};return i.jsxs("div",{className:Wt.inputRange,children:[r&&i.jsx("div",{className:Wt.inputRangeLabel,children:r}),i.jsxs("div",{className:Wt.progressBar,children:[i.jsx("div",{className:Wt.progressBarFill,style:{width:`${Math.ceil(s)}%`}}),i.jsx("div",{className:Wt.stepsContainer,children:[...Array(e)].map((c,l)=>{const h=l+1,f=h<=u,m=h===u;return i.jsxs("div",{className:Wt.step,onClick:()=>o(h),children:[i.jsx("div",{className:g.clx(Wt.stepDot,m?Wt.current:Wt.default,f?Wt.active:Wt.inactive)}),m&&i.jsxs("div",{className:Wt.tooltip,style:{transform:`translateX(calc(50% - ${s<99?"40px":"70px"}))`},children:[i.jsx("span",{children:u}),i.jsx("span",{children:u===1?"month":"months"})]})]},h)})})]})]})},ma=({className:e,expiresAt:t})=>{const{shopGeneral:n}=g.useStorefrontStore(),r=g.useNavigate(),{isAntistock:u}=g.useGeneralStore();return i.jsxs("header",{className:`${fr.checkoutHeader} ${e}`,children:[i.jsxs("div",{className:fr.leftContainer,children:[i.jsx("div",{className:fr.backArrow,onClick:()=>{window.history.length>2?r(-1):r("/")},children:i.jsx(N.Icon,{name:"ArrowUp"})}),(n==null?void 0:n.info.logo)&&i.jsx("div",{className:fr.logoContainer,children:u?i.jsx("a",{className:fr.antistockLink,href:"https://antistock.io",target:"_blank",rel:"noopener noreferrer",children:"Antistock"}):i.jsx("img",{className:fr.logo,src:g.convertCfImageIdToUrl(n.info.logo.cfId,"200")})})]}),t&&i.jsx(c5,{expiresAt:t})]})},D5="_checkoutPrices_7fn88_1",L5="_priceRow_7fn88_12",P5="_label_7fn88_22",R5="_labelContainer_7fn88_26",M5="_tooltipContainer_7fn88_34",O5="_infoIcon_7fn88_40",j5="_tooltip_7fn88_34",F5="_totalRow_7fn88_94",B5="_totalLabel_7fn88_105",H5="_totalValue_7fn88_110",Ge={checkoutPrices:D5,priceRow:L5,label:P5,labelContainer:R5,tooltipContainer:M5,infoIcon:O5,tooltip:j5,totalRow:F5,totalLabel:B5,totalValue:H5},vr=({formatter:e,coupon:t,discount:n,totalWithDiscount:r,total:u,className:a,isShowSubtotal:s=!0,feeOrDiscount:o,serviceFeeAmount:c,replacementLabel:l,replacementAmount:h})=>{const f=Math.max(0,n),[m,p]=L.useState(!1),[b,_]=L.useState(!1),{priceAdjustment:E}=g.useCartStore(),{isAntistock:x}=g.useGeneralStore(),{settings:k}=g.useSettingsStore(),y={isDiscount:!1,fixedAmount:10,percentage:10},S=(()=>{const I=r!==void 0?r:u-f;if((!E||o===null||o===void 0)&&h==null&&(!y||c===null||c===void 0))return Math.max(I,0);let M=I;return E&&o!==null&&o!==void 0&&(E.isDiscount?M=Math.max(M-o,0):M=Math.max(M+o,0)),h!=null&&(M=Math.max(M+h,0)),y&&c!==null&&c!==void 0&&(y.isDiscount?M=Math.max(M-c,0):M=Math.max(M+c,0)),M})();return i.jsxs("div",{className:`${Ge.checkoutPrices} ${a||""}`,style:{border:x?"1px solid var(--border-secondary)":void 0},children:[s&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsx("p",{className:Ge.label,id:"md",children:"Subtotal"}),i.jsx("p",{id:"md",children:e.format(u)})]}),(t||f>0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("p",{className:Ge.label,id:"md",children:["Discount ",t&&!(t!=null&&t.isFixed)&&`(${t==null?void 0:t.discount}%)`]}),i.jsx("p",{id:"md",children:t&&!(t!=null&&t.isFixed)&&(t==null?void 0:t.discount)===100?`-${e.format(u)}`:`-${e.format(f)}`})]}),o!=null&&o!==0&&E&&(E.fixedAmount!==0||E.percentage!==0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsx("p",{className:Ge.label,id:"md",children:E.isDiscount?"Gateway Discount":"Gateway Fee"}),i.jsx("p",{id:"md",children:e.format(o)})]}),h!=null&&h!==0&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("div",{className:Ge.labelContainer,children:[i.jsx("p",{className:Ge.label,id:"md",children:l||"Priority Replacement"}),x&&i.jsxs("div",{className:Ge.tooltipContainer,children:[i.jsx("div",{className:Ge.infoIcon,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),m&&i.jsx("div",{className:Ge.tooltip,children:"This is an optional add-on you enabled to protect your checkout."})]})]}),i.jsx("p",{id:"md",children:e.format(h)})]}),c!=null&&c!==0&&y&&(y.fixedAmount!==0||y.percentage!==0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("div",{className:Ge.labelContainer,children:[i.jsx("p",{className:Ge.label,id:"md",children:y.isDiscount?"Platform Discount":"Platform Fee"}),x&&i.jsxs("div",{className:Ge.tooltipContainer,children:[i.jsx("div",{className:Ge.infoIcon,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),b&&i.jsxs("div",{className:Ge.tooltip,children:["Platform ",y.isDiscount?"discount":"fee",(k==null?void 0:k.showPoweredBy)&&" charged by Antistock"," for processing your payment."]})]})]}),i.jsx("p",{id:"md",children:e.format(c)})]}),i.jsxs("div",{className:Ge.totalRow,children:[i.jsx("p",{className:Ge.totalLabel,id:"md-bold",children:"Total Due"}),i.jsx("p",{className:Ge.totalValue,id:"md-bold",children:e.format(S)})]})]})},U5="_checkoutProduct_8yrle_1",V5="_isOrder_8yrle_1",$5="_productDetails_8yrle_14",z5="_productImage_8yrle_20",q5="_isOrderImage_8yrle_30",Z5="_productImageAntistock_8yrle_34",W5="_image_8yrle_39",Y5="_productInfo_8yrle_44",G5="_productInfoOverrodePrice_8yrle_51",X5="_productHeader_8yrle_55",K5="_quantityBadge_8yrle_61",Q5="_productPrice_8yrle_79",J5="_priceContainer_8yrle_88",e4="_originalPrice_8yrle_97",t4="_overridePrice_8yrle_103",n4="_deliveryCategories_8yrle_107",r4="_customerNote_8yrle_115",u4="_noteHeader_8yrle_122",a4="_logoContainer_8yrle_128",s4="_shopName_8yrle_140",i4="_noteContent_8yrle_144",o4="_productName_8yrle_150",c4="_replacementRequests_8yrle_165",l4="_replacementRequestsTitle_8yrle_175",d4="_replacementButton_8yrle_182",f4="_replacementButtonText_8yrle_186",h4="_replacementRequestsList_8yrle_190",je={checkoutProduct:U5,isOrder:V5,productDetails:$5,productImage:z5,isOrderImage:q5,productImageAntistock:Z5,image:W5,productInfo:Y5,productInfoOverrodePrice:G5,productHeader:X5,quantityBadge:K5,productPrice:Q5,priceContainer:J5,originalPrice:e4,overridePrice:t4,deliveryCategories:n4,customerNote:r4,noteHeader:u4,logoContainer:a4,shopName:s4,noteContent:i4,productName:o4,replacementRequests:c4,replacementRequestsTitle:l4,replacementButton:d4,replacementButtonText:f4,replacementRequestsList:h4},p4="_deliveryItem_1x3fg_1",m4="_deliveryItemText_1x3fg_10",Yr={deliveryItem:p4,deliveryItemText:m4},ws={[Pe.Text]:"View",[Pe.Serial]:"View",[Pe.Ebook]:"View",[Pe.Link]:"Visit",[Pe.Download]:"",[Pe.Custom]:"View",[Pe.Discord]:"Access",[Pe.Telegram]:"Telegram"},Ds={[Pe.Text]:"Content",[Pe.Serial]:"Content",[Pe.Ebook]:"Ebook",[Pe.Link]:"Link",[Pe.Download]:"Download",[Pe.Custom]:"Content",[Pe.Discord]:"Discord",[Pe.Telegram]:"Telegram"},Xl=()=>({[Pe.Text]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Serial]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Ebook]:i.jsx(N.Icon,{name:"BookOpen",fill:"var(--text-secondary)"}),[Pe.Link]:i.jsx(N.Icon,{name:"ArrowLineUpRight",fill:"var(--text-secondary)"}),[Pe.Download]:i.jsx(N.Icon,{name:"DownloadSimple",fill:"var(--text-secondary)"}),[Pe.Custom]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Discord]:i.jsx(N.Icon,{name:"DiscordLogo",fill:"var(--text-secondary)"}),[Pe.Telegram]:i.jsx(N.Icon,{name:"TelegramLogo",fill:"var(--text-secondary)"})}),g4=({deliveryConfiguration:e})=>{const t=e.type;return t===Pe.Text||t===Pe.Custom||t===Pe.Serial||t===Pe.Discord?i.jsx(b4,{deliveryConfiguration:e}):i.jsx(_4,{deliveryConfiguration:e})},b4=({deliveryConfiguration:e})=>{const t=e.type,[n,r]=L.useState(!1),{setIsOpen:u}=g.useModalStore(),{isAntistock:a}=g.useGeneralStore(),s=()=>{u(!0),r(!0)};return i.jsxs(i.Fragment,{children:[a?i.jsx(N.Button,{type:"Secondary",onClick:o=>{o.stopPropagation(),s()},children:i.jsx("p",{className:Yr.deliveryItemText,children:e.customName??`${ws[t]} ${Ds[t]}`})}):i.jsxs(N.Button,{type:"Secondary",className:Yr.deliveryItem,onClick:o=>{o.stopPropagation(),s()},children:[Xl()[t],i.jsx("p",{className:Yr.deliveryItemText,children:e.customName??`${ws[t]} ${Ds[t]}`})]}),n&&i.jsx(N.Modal,{close:()=>r(!1),withAnimation:!a,children:i.jsx(Dd,{deliveryConfiguration:e,setIsOpen:r})})]})},_4=({deliveryConfiguration:e})=>{const t=e.type;return i.jsxs(N.Button,{type:"Secondary",className:Yr.deliveryItem,style:{display:"flex",alignItems:"center",gap:"0.5rem"},onClick:()=>window.open(e.deliveryItems[0].textData,"_blank"),children:[Xl()[t],i.jsx("p",{className:Yr.deliveryItemText,children:e.customName??`${ws[t]} ${Ds[t]}`})]})},x4="_replacementRequestItem_1sd2r_1",C4="_replacementRequestHeader_1sd2r_11",E4="_replacementRequestId_1sd2r_18",y4="_replacementRequestDescription_1sd2r_24",T4="_statusBadge_1sd2r_30",k4="_statusPending_1sd2r_38",A4="_statusApproved_1sd2r_43",S4="_statusDeclined_1sd2r_48",I4="_statusCancelled_1sd2r_53",N4="_replacementModal_1sd2r_58",v4="_replacementModalAntistock_1sd2r_68",w4="_replacementModalHeader_1sd2r_73",D4="_closeButton_1sd2r_87",L4="_replacementModalContent_1sd2r_101",P4="_statusSection_1sd2r_110",R4="_statusTitle_1sd2r_116",M4="_statusDescription_1sd2r_123",O4="_actionButtons_1sd2r_130",j4="_productsSection_1sd2r_137",F4="_productsList_1sd2r_151",B4="_productItem_1sd2r_157",H4="_noProducts_1sd2r_164",U4="_previouslyDeliveredSection_1sd2r_171",V4="_previouslyDeliveredHeader_1sd2r_179",$4="_previouslyDeliveredTitle_1sd2r_186",z4="_caretIcon_1sd2r_192",q4="_caretIconRotated_1sd2r_196",Z4="_previouslyDeliveredContent_1sd2r_200",W4="_previouslyDeliveredProductItem_1sd2r_209",Le={replacementRequestItem:x4,replacementRequestHeader:C4,replacementRequestId:E4,replacementRequestDescription:y4,statusBadge:T4,statusPending:k4,statusApproved:A4,statusDeclined:S4,statusCancelled:I4,replacementModal:N4,replacementModalAntistock:v4,replacementModalHeader:w4,closeButton:D4,replacementModalContent:L4,statusSection:P4,statusTitle:R4,statusDescription:M4,actionButtons:O4,productsSection:j4,productsList:F4,productItem:B4,noProducts:H4,previouslyDeliveredSection:U4,previouslyDeliveredHeader:V4,previouslyDeliveredTitle:$4,caretIcon:z4,caretIconRotated:q4,previouslyDeliveredContent:Z4,previouslyDeliveredProductItem:W4},Y4=({item:e,orderId:t,accessToken:n,onCancel:r})=>{var D,S;const[u,a]=L.useState(!1),[s,o]=L.useState(!1),[c,l]=L.useState(!1),{setIsOpen:h}=g.useModalStore(),{isAntistock:f}=g.useGeneralStore(),{setNotifications:m,notifications:p}=g.useNotificationStore(),b=()=>{h(!0),a(!0)},_=async()=>{var I,M;if(!t||!n){m([...p,{id:g.v4(),message:"Missing order information",status:"error"}]);return}o(!0);try{const H=await y2(t,n,e.id);m([...p,{id:g.v4(),message:((I=H.data)==null?void 0:I.message)||"Replacement request cancelled successfully",status:"success"}]),r==null||r(),a(!1)}catch(H){let U="Failed to cancel replacement request",P="";const B=H;if((M=B==null?void 0:B.response)!=null&&M.data){const O=B.response.data;O.message&&O.errors&&Array.isArray(O.errors)?(P=O.message,U=O.errors.join(", ")):O.errors&&Array.isArray(O.errors)?U=O.errors.join(", "):O.message&&(U=O.message)}else H instanceof Error&&(U=H.message);m([...p,{id:g.v4(),message:U,status:"error",label:P}])}finally{o(!1)}},E=()=>{if(!e.replacementItems||e.replacementItems.length===0){m([...p,{id:g.v4(),message:"No products to copy",status:"error"}]);return}const I=e.replacementItems.map(M=>`${M.originalSerialKey} -> ${M.replacementSerialKey}`).join(`
|
|
58
|
+
}`;const Fp="_authContainer_1uyf7_2",Bp="_authWrapper_1uyf7_12",Hp="_inModal_1uyf7_19",Up="_formHeaderTitle_1uyf7_26",Vp="_formHeaderSubtitle_1uyf7_33",$p="_formLabel_1uyf7_39",zp="_formError_1uyf7_51",qp="_submitButton_1uyf7_57",Zp="_submitButtonAntistock_1uyf7_57",Wp="_backButton_1uyf7_67",Yp="_otpContainer_1uyf7_78",Gp="_otpSlots_1uyf7_85",Xp="_otpSlot_1uyf7_85",Kp="_active_1uyf7_108",Qp="_otpSlotEmpty_1uyf7_113",Jp="_actionRow_1uyf7_117",e6="_authForm_1uyf7_124",t6="_formHeader_1uyf7_26",n6="_input_1uyf7_135",Ke={authContainer:Fp,authWrapper:Bp,inModal:Hp,formHeaderTitle:Up,formHeaderSubtitle:Vp,formLabel:$p,formError:zp,submitButton:qp,submitButtonAntistock:Zp,backButton:Wp,otpContainer:Yp,otpSlots:Gp,otpSlot:Xp,active:Kp,otpSlotEmpty:Qp,actionRow:Jp,authForm:e6,formHeader:t6,input:n6},r6=L.forwardRef(({value:e,onChange:t,onComplete:n},r)=>i.jsx(jl,{ref:r,value:e,onChange:t,onComplete:n,maxLength:6,containerClassName:Ke.otpContainer,render:({slots:u})=>i.jsx("div",{className:Ke.otpSlots,children:u.map(a=>i.jsx(u6,{...a},crypto.randomUUID()))})}));function u6({char:e,isActive:t}){return i.jsx("div",{className:g.clx(Ke.otpSlot,{[Ke.active]:t}),children:e?i.jsx("div",{children:e}):i.jsx("div",{className:Ke.otpSlotEmpty,children:"0"})})}const a6=e=>{const t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return e.trim()?t.test(e)?null:"Please enter a valid email.":"The email field cannot be empty."},s6=e=>/^[0-9]{6}$/.test(e)?null:"Invalid verification code. The code should be a six-digit number. Please try again",Fl=({title:e,subtitle:t,isAntistock:n})=>i.jsxs("div",{className:Ke.formHeader,style:{textAlign:n?"center":void 0},children:[i.jsx("h3",{id:"h3",className:Ke.formHeaderTitle,children:e}),t?i.jsx("div",{className:Ke.formHeaderSubtitle,children:t}):null]}),Bl=({error:e})=>e?i.jsx("div",{className:Ke.formError,children:e}):null,Hl=()=>{const[e,t]=L.useState(""),[n,r]=L.useState(null),[u,a]=L.useState(!1),{executeRecaptcha:s}=pu(),{setOtpRequest:o}=g.useCustomerDashboardStore(),{isAntistock:c}=g.useGeneralStore(),l=async h=>{h.preventDefault(),r(null);const f=a6(e);if(f){r(f);return}a(!0);try{const m=await s();if(!m)throw new Error("ReCaptcha verification failed");await il({email:e,recaptcha:m,tsId:g.useGetTsId()}),o({requested:!0,email:e})}catch{r("Failed to request OTP. Please try again.")}finally{a(!1)}};return i.jsxs("form",{onSubmit:l,className:Ke.authForm,children:[i.jsx(Fl,{title:c?"My Account":"Sign In",subtitle:c?"":"To continue, enter your email address below.",isAntistock:c}),i.jsxs("div",{className:Ke.input,children:[i.jsx(N.Input,{label:c?"Email":"Email Address",placeholder:"your@email.com",value:e,onChange:h=>{t(h),r(null)}}),i.jsx(Bl,{error:n})]}),i.jsx(N.Button,{type:"Primary",className:c?Ke.submitButtonAntistock:Ke.submitButton,disabled:u,children:u?c?i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx(N.Loader,{}),i.jsx("span",{children:"Continue"})]}):i.jsx(N.Loader,{}):c?"Continue":"Sign In"}),i.jsx("span",{style:{color:"var(--text-secondary)",paddingTop:"8px",fontSize:"var(--font-body-md-size)",textAlign:"center"},children:"You will receive a 6-digit account code via email."})]})},Ul=({onSignIn:e})=>{const{otpRequest:t,setOtpRequest:n}=g.useCustomerDashboardStore(),{isAntistock:r}=g.useGeneralStore(),[u,a]=L.useState(""),[s,o]=L.useState(null),[c,l]=L.useState(!1),{executeRecaptcha:h}=pu(),f=async()=>{o(null);const p=s6(u);if(p){o(p);return}l(!0);try{const b=await h();if(!b)throw new Error("ReCaptcha verification failed");await ol({email:t.email,otp:u,recaptcha:b||"",tsId:g.useGetTsId()}),e&&e()}catch{o("Invalid OTP. Please try again.")}finally{l(!1)}},m=()=>n({requested:!1,email:""});return i.jsxs("form",{onSubmit:f,className:Ke.authForm,children:[i.jsx(Fl,{title:"Check Your Email",subtitle:`Enter the 6-digit code we sent to ${t.email}`,isAntistock:r}),i.jsxs("label",{className:Ke.formLabel,children:["Code",i.jsx(r6,{onChange:p=>{a(p),o(null)},value:u,onComplete:f})]}),i.jsx(Bl,{error:s}),i.jsxs("div",{className:Ke.actionRow,children:[i.jsx(N.Button,{onClick:m,type:"Secondary",className:Ke.backButton,children:"Back"}),i.jsx(N.Button,{type:"Primary",className:r?Ke.submitButtonAntistock:Ke.submitButton,disabled:c,children:c?i.jsx(N.Loader,{}):r?"Continue":"Sign In"})]})]})},da=({inModal:e,onSignIn:t})=>{const{otpRequest:n,setOtpRequest:r}=g.useCustomerDashboardStore();return L.useEffect(()=>{n.requested&&r({requested:!1,email:""})},[]),i.jsx("div",{className:Ke.authContainer,children:n?i.jsx("div",{className:g.clx(Ke.authWrapper,e&&Ke.inModal),children:n.requested?i.jsx(Ul,{onSignIn:t}):i.jsx(Hl,{})}):i.jsx(N.Loader,{})})};function i6(){const e=new URL(window.location.href);window.history.replaceState(null,"",e.pathname+e.hash)}var ri=(e=>(e.ADD_BALANCE="AddBalance",e))(ri||{});function o6(){const e=new URLSearchParams(document.location.search),t=e.get("page"),n=e.get("action");return{page:t,action:n}}function c6(){const{page:e,action:t}=o6(),{setRoute:n,setAction:r}=g.useCustomerDashboardStore.getState();e&&Object.values(g.Routes).includes(e)&&n(e),t&&Object.values(ri).includes(t)&&r(t),i6()}const l6=()=>typeof g.Routes>"u"?(console.warn("Routes not available for RouteToRouteComponent"),{}):{[g.Routes.Home]:kl,[g.Routes.Orders]:ul.Orders,[g.Routes.Rewards]:Al,[g.Routes.Balance]:yl,[g.Routes.Subscriptions]:n2.Subscriptions,[g.Routes.Api]:Sl,[g.Routes.Tickets]:rl.Tickets},d6=()=>typeof g.AntistockRoutes>"u"?(console.warn("AntistockRoutes not available for RouteToAntistockRouteComponent"),{}):{[g.AntistockRoutes.Home]:kl,[g.AntistockRoutes.Orders]:ul.Orders,[g.AntistockRoutes.Rewards]:Al,[g.AntistockRoutes.Balance]:yl,[g.AntistockRoutes.Api]:Sl,[g.AntistockRoutes.Tickets]:rl.Tickets},f6=()=>{var l;const{route:e,action:t,setRoute:n,setIsBalanceModalOpen:r}=g.useCustomerDashboardStore(),{resetPage:u}=g.usePaginationPagesStore(),{token:a}=g.useStorefrontStore(),{isAntistock:s,general:o}=g.useGeneralStore(),c=s?d6()[e]:l6()[e];return L.useEffect(()=>{u(),c6()},[a,e,u]),L.useEffect(()=>{t===ri.ADD_BALANCE&&e===g.Routes.Balance&&r(!0)},[e,t]),L.useEffect(()=>{window.location.pathname.includes("/ticket")&&n(g.Routes.Tickets)},[window.location.pathname]),(l=o==null?void 0:o.info)!=null&&l.customerAccountSettings&&(o.info.customerAccountSettings??"OPTIONAL")==="DISABLED"?i.jsx(g.Navigate,{to:"/",replace:!0}):a?i.jsx("div",{style:{maxWidth:"var(--max-width-store)",margin:"0 auto",height:"100%"},children:i.jsx(N.Wrapper,{notPadding:!0,style:{height:"100%"},maxWidth:"var(--max-width-store)",children:h=>i.jsxs("main",{className:g.clx(Gn.appContainer,{[Gn.mobile]:h!=="desktop",[Gn.noAnimation]:s,[Gn.appContainerAntistock]:s}),children:[i.jsx(fl,{adaptiveStyles:h}),i.jsx("div",{className:g.clx(Gn.contentContainer,{[Gn.mobile]:h!=="desktop",[Gn.contentContainerAntistock]:s}),children:i.jsx(c,{adaptiveStyles:h})})]})})}):i.jsx(da,{})},h6=()=>i.jsx(ni,{children:i.jsx(f6,{})}),p6="_referralBlock_kla2r_2",m6="_skeleton_kla2r_3",g6="_mobile_kla2r_13",b6="_referralContainer_kla2r_18",_6="_title_kla2r_30",x6="_description_kla2r_36",C6="_linkContainer_kla2r_56",E6="_modalContainer_kla2r_77",y6="_steps_kla2r_86",T6="_joinButton_kla2r_92",k6="_stepItem_kla2r_97",A6="_iconContainer_kla2r_103",S6="_index_kla2r_111",I6="_bar_kla2r_123",N6="_content_kla2r_130",v6="_caption_kla2r_135",w6="_descriptionStep_kla2r_141",D6="_error_kla2r_151",L6="_infoBlock_kla2r_155",P6="_infoIcon_kla2r_164",R6="_infoText_kla2r_173",M6="_actions_kla2r_178",O6="_cancelButton_kla2r_183",j6="_referralStats_kla2r_187",F6="_referralInfo_kla2r_204",B6="_referralStatsItem_kla2r_210",H6="_referralStatsItemValue_kla2r_220",U6="_referralStatsItemLabel_kla2r_225",V6="_referral_kla2r_2",$6="_header_kla2r_244",z6="_contentModal_kla2r_254",Ee={referralBlock:p6,skeleton:m6,mobile:g6,referralContainer:b6,title:_6,description:x6,linkContainer:C6,modalContainer:E6,steps:y6,joinButton:T6,stepItem:k6,iconContainer:A6,index:S6,bar:I6,content:N6,caption:v6,descriptionStep:w6,error:D6,infoBlock:L6,infoIcon:P6,infoText:R6,actions:M6,cancelButton:O6,referralStats:j6,referralInfo:F6,referralStatsItem:B6,referralStatsItemValue:H6,referralStatsItemLabel:U6,referral:V6,header:$6,contentModal:z6},q6=({caption:e,description:t,index:n,bar:r=!0})=>i.jsxs("div",{className:Ee.stepItem,children:[i.jsxs("div",{className:Ee.iconContainer,children:[i.jsx("div",{className:Ee.index,children:n}),r&&i.jsx("div",{className:Ee.bar})]}),i.jsxs("div",{className:Ee.content,children:[i.jsx("div",{className:Ee.caption,children:e}),i.jsx("div",{className:Ee.descriptionStep,children:t})]})]}),Z6=({setIsOpen:e,setIsLoading:t})=>{const[n,r]=L.useState(""),[u,a]=L.useState(""),{notifications:s,setNotifications:o}=g.useNotificationStore(),{setIsOpen:c}=g.useModalStore(),l=async f=>{if(f.preventDefault(),n.length<3){a("Referral Code should have minimum length of 3");return}t(!0),h();try{await V2({referralCode:n}),o([...s,{message:"Referral Code has been applied",status:"success",id:g.v4()}])}catch(m){const p=m;o([...s,{message:p.message,status:"error",id:g.v4()}])}t(!1),e(!1),r(""),a("")},h=()=>{c(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{onClick:f=>f.stopPropagation(),className:Ee.modalContainer,children:[i.jsxs("div",{className:Ee.header,children:[i.jsx("div",{id:"h3",children:"Create an affiliate code"}),i.jsx(N.Icon,{name:"X",onClick:h,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Ee.contentModal,children:[i.jsx(N.Input,{value:n,onChange:f=>r(f),placeholder:"Enter code here (e.g., Join)",label:"Affiliate Code"}),u&&i.jsx("div",{className:Ee.error,children:u}),i.jsxs("div",{className:Ee.infoBlock,children:[i.jsx("div",{className:Ee.infoIcon,children:i.jsx(N.Icon,{name:"Info"})}),i.jsx("div",{className:Ee.infoText,children:"Once you join our referral program, you'll gain access to special deals, rewards, and potentially earn a percentage (%) of revenue."})]}),i.jsxs("div",{className:Ee.actions,children:[i.jsx(N.Button,{type:"Secondary",className:Ee.cancelButton,onClick:h,children:"Cancel"}),i.jsx(N.Button,{type:"Primary",onClick:l,children:"Create"})]})]})]})},Nu=()=>i.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:i.jsxs("svg",{width:"100%",height:"64",viewBox:"0 0 208 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_2098_5511)",children:[i.jsx("mask",{id:"path-1-inside-1_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 0H208V16H0V0Z"})}),i.jsx("path",{d:"M208 16.5C208.276 16.5 208.5 16.2761 208.5 16C208.5 15.7239 208.276 15.5 208 15.5V16.5ZM0 15.5C-0.276142 15.5 -0.5 15.7239 -0.5 16C-0.5 16.2761 -0.276142 16.5 0 16.5V15.5ZM4 16.5C4.27614 16.5 4.5 16.2761 4.5 16C4.5 15.7239 4.27614 15.5 4 15.5V16.5ZM12 15.5C11.7239 15.5 11.5 15.7239 11.5 16C11.5 16.2761 11.7239 16.5 12 16.5V15.5ZM20 16.5C20.2761 16.5 20.5 16.2761 20.5 16C20.5 15.7239 20.2761 15.5 20 15.5V16.5ZM28 15.5C27.7239 15.5 27.5 15.7239 27.5 16C27.5 16.2761 27.7239 16.5 28 16.5V15.5ZM36 16.5C36.2761 16.5 36.5 16.2761 36.5 16C36.5 15.7239 36.2761 15.5 36 15.5V16.5ZM44 15.5C43.7239 15.5 43.5 15.7239 43.5 16C43.5 16.2761 43.7239 16.5 44 16.5V15.5ZM52 16.5C52.2761 16.5 52.5 16.2761 52.5 16C52.5 15.7239 52.2761 15.5 52 15.5V16.5ZM60 15.5C59.7239 15.5 59.5 15.7239 59.5 16C59.5 16.2761 59.7239 16.5 60 16.5V15.5ZM68 16.5C68.2761 16.5 68.5 16.2761 68.5 16C68.5 15.7239 68.2761 15.5 68 15.5V16.5ZM76 15.5C75.7239 15.5 75.5 15.7239 75.5 16C75.5 16.2761 75.7239 16.5 76 16.5V15.5ZM84 16.5C84.2761 16.5 84.5 16.2761 84.5 16C84.5 15.7239 84.2761 15.5 84 15.5V16.5ZM92 15.5C91.7239 15.5 91.5 15.7239 91.5 16C91.5 16.2761 91.7239 16.5 92 16.5V15.5ZM100 16.5C100.276 16.5 100.5 16.2761 100.5 16C100.5 15.7239 100.276 15.5 100 15.5V16.5ZM108 15.5C107.724 15.5 107.5 15.7239 107.5 16C107.5 16.2761 107.724 16.5 108 16.5V15.5ZM116 16.5C116.276 16.5 116.5 16.2761 116.5 16C116.5 15.7239 116.276 15.5 116 15.5V16.5ZM124 15.5C123.724 15.5 123.5 15.7239 123.5 16C123.5 16.2761 123.724 16.5 124 16.5V15.5ZM132 16.5C132.276 16.5 132.5 16.2761 132.5 16C132.5 15.7239 132.276 15.5 132 15.5V16.5ZM140 15.5C139.724 15.5 139.5 15.7239 139.5 16C139.5 16.2761 139.724 16.5 140 16.5V15.5ZM148 16.5C148.276 16.5 148.5 16.2761 148.5 16C148.5 15.7239 148.276 15.5 148 15.5V16.5ZM156 15.5C155.724 15.5 155.5 15.7239 155.5 16C155.5 16.2761 155.724 16.5 156 16.5V15.5ZM164 16.5C164.276 16.5 164.5 16.2761 164.5 16C164.5 15.7239 164.276 15.5 164 15.5V16.5ZM172 15.5C171.724 15.5 171.5 15.7239 171.5 16C171.5 16.2761 171.724 16.5 172 16.5V15.5ZM180 16.5C180.276 16.5 180.5 16.2761 180.5 16C180.5 15.7239 180.276 15.5 180 15.5V16.5ZM188 15.5C187.724 15.5 187.5 15.7239 187.5 16C187.5 16.2761 187.724 16.5 188 16.5V15.5ZM196 16.5C196.276 16.5 196.5 16.2761 196.5 16C196.5 15.7239 196.276 15.5 196 15.5V16.5ZM204 15.5C203.724 15.5 203.5 15.7239 203.5 16C203.5 16.2761 203.724 16.5 204 16.5V15.5ZM0 16.5H4V15.5H0V16.5ZM12 16.5H20V15.5H12V16.5ZM28 16.5H36V15.5H28V16.5ZM44 16.5H52V15.5H44V16.5ZM60 16.5H68V15.5H60V16.5ZM76 16.5H84V15.5H76V16.5ZM92 16.5H100V15.5H92V16.5ZM108 16.5H116V15.5H108V16.5ZM124 16.5H132V15.5H124V16.5ZM140 16.5H148V15.5H140V16.5ZM156 16.5H164V15.5H156V16.5ZM172 16.5H180V15.5H172V16.5ZM188 16.5H196V15.5H188V16.5ZM204 16.5H208V15.5H204V16.5ZM208 17C208.552 17 209 16.5523 209 16C209 15.4477 208.552 15 208 15V17ZM0 15C-0.552285 15 -1 15.4477 -1 16C-1 16.5523 -0.552285 17 0 17V15ZM4 17C4.55228 17 5 16.5523 5 16C5 15.4477 4.55228 15 4 15V17ZM12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17V15ZM20 17C20.5523 17 21 16.5523 21 16C21 15.4477 20.5523 15 20 15V17ZM28 15C27.4477 15 27 15.4477 27 16C27 16.5523 27.4477 17 28 17V15ZM36 17C36.5523 17 37 16.5523 37 16C37 15.4477 36.5523 15 36 15V17ZM44 15C43.4477 15 43 15.4477 43 16C43 16.5523 43.4477 17 44 17V15ZM52 17C52.5523 17 53 16.5523 53 16C53 15.4477 52.5523 15 52 15V17ZM60 15C59.4477 15 59 15.4477 59 16C59 16.5523 59.4477 17 60 17V15ZM68 17C68.5523 17 69 16.5523 69 16C69 15.4477 68.5523 15 68 15V17ZM76 15C75.4477 15 75 15.4477 75 16C75 16.5523 75.4477 17 76 17V15ZM84 17C84.5523 17 85 16.5523 85 16C85 15.4477 84.5523 15 84 15V17ZM92 15C91.4477 15 91 15.4477 91 16C91 16.5523 91.4477 17 92 17V15ZM100 17C100.552 17 101 16.5523 101 16C101 15.4477 100.552 15 100 15V17ZM108 15C107.448 15 107 15.4477 107 16C107 16.5523 107.448 17 108 17V15ZM116 17C116.552 17 117 16.5523 117 16C117 15.4477 116.552 15 116 15V17ZM124 15C123.448 15 123 15.4477 123 16C123 16.5523 123.448 17 124 17V15ZM132 17C132.552 17 133 16.5523 133 16C133 15.4477 132.552 15 132 15V17ZM140 15C139.448 15 139 15.4477 139 16C139 16.5523 139.448 17 140 17V15ZM148 17C148.552 17 149 16.5523 149 16C149 15.4477 148.552 15 148 15V17ZM156 15C155.448 15 155 15.4477 155 16C155 16.5523 155.448 17 156 17V15ZM164 17C164.552 17 165 16.5523 165 16C165 15.4477 164.552 15 164 15V17ZM172 15C171.448 15 171 15.4477 171 16C171 16.5523 171.448 17 172 17V15ZM180 17C180.552 17 181 16.5523 181 16C181 15.4477 180.552 15 180 15V17ZM188 15C187.448 15 187 15.4477 187 16C187 16.5523 187.448 17 188 17V15ZM196 17C196.552 17 197 16.5523 197 16C197 15.4477 196.552 15 196 15V17ZM204 15C203.448 15 203 15.4477 203 16C203 16.5523 203.448 17 204 17V15ZM0 17H4V15H0V17ZM12 17H20V15H12V17ZM28 17H36V15H28V17ZM44 17H52V15H44V17ZM60 17H68V15H60V17ZM76 17H84V15H76V17ZM92 17H100V15H92V17ZM108 17H116V15H108V17ZM124 17H132V15H124V17ZM140 17H148V15H140V17ZM156 17H164V15H156V17ZM172 17H180V15H172V17ZM188 17H196V15H188V17ZM204 17H208V15H204V17Z",fill:"#F8F8F8",mask:"url(#path-1-inside-1_2098_5511)"}),i.jsx("mask",{id:"path-3-inside-2_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 16H208V32H0V16Z"})}),i.jsx("path",{d:"M208 32.5C208.276 32.5 208.5 32.2761 208.5 32C208.5 31.7239 208.276 31.5 208 31.5V32.5ZM0 31.5C-0.276142 31.5 -0.5 31.7239 -0.5 32C-0.5 32.2761 -0.276142 32.5 0 32.5V31.5ZM4 32.5C4.27614 32.5 4.5 32.2761 4.5 32C4.5 31.7239 4.27614 31.5 4 31.5V32.5ZM12 31.5C11.7239 31.5 11.5 31.7239 11.5 32C11.5 32.2761 11.7239 32.5 12 32.5V31.5ZM20 32.5C20.2761 32.5 20.5 32.2761 20.5 32C20.5 31.7239 20.2761 31.5 20 31.5V32.5ZM28 31.5C27.7239 31.5 27.5 31.7239 27.5 32C27.5 32.2761 27.7239 32.5 28 32.5V31.5ZM36 32.5C36.2761 32.5 36.5 32.2761 36.5 32C36.5 31.7239 36.2761 31.5 36 31.5V32.5ZM44 31.5C43.7239 31.5 43.5 31.7239 43.5 32C43.5 32.2761 43.7239 32.5 44 32.5V31.5ZM52 32.5C52.2761 32.5 52.5 32.2761 52.5 32C52.5 31.7239 52.2761 31.5 52 31.5V32.5ZM60 31.5C59.7239 31.5 59.5 31.7239 59.5 32C59.5 32.2761 59.7239 32.5 60 32.5V31.5ZM68 32.5C68.2761 32.5 68.5 32.2761 68.5 32C68.5 31.7239 68.2761 31.5 68 31.5V32.5ZM76 31.5C75.7239 31.5 75.5 31.7239 75.5 32C75.5 32.2761 75.7239 32.5 76 32.5V31.5ZM84 32.5C84.2761 32.5 84.5 32.2761 84.5 32C84.5 31.7239 84.2761 31.5 84 31.5V32.5ZM92 31.5C91.7239 31.5 91.5 31.7239 91.5 32C91.5 32.2761 91.7239 32.5 92 32.5V31.5ZM100 32.5C100.276 32.5 100.5 32.2761 100.5 32C100.5 31.7239 100.276 31.5 100 31.5V32.5ZM108 31.5C107.724 31.5 107.5 31.7239 107.5 32C107.5 32.2761 107.724 32.5 108 32.5V31.5ZM116 32.5C116.276 32.5 116.5 32.2761 116.5 32C116.5 31.7239 116.276 31.5 116 31.5V32.5ZM124 31.5C123.724 31.5 123.5 31.7239 123.5 32C123.5 32.2761 123.724 32.5 124 32.5V31.5ZM132 32.5C132.276 32.5 132.5 32.2761 132.5 32C132.5 31.7239 132.276 31.5 132 31.5V32.5ZM140 31.5C139.724 31.5 139.5 31.7239 139.5 32C139.5 32.2761 139.724 32.5 140 32.5V31.5ZM148 32.5C148.276 32.5 148.5 32.2761 148.5 32C148.5 31.7239 148.276 31.5 148 31.5V32.5ZM156 31.5C155.724 31.5 155.5 31.7239 155.5 32C155.5 32.2761 155.724 32.5 156 32.5V31.5ZM164 32.5C164.276 32.5 164.5 32.2761 164.5 32C164.5 31.7239 164.276 31.5 164 31.5V32.5ZM172 31.5C171.724 31.5 171.5 31.7239 171.5 32C171.5 32.2761 171.724 32.5 172 32.5V31.5ZM180 32.5C180.276 32.5 180.5 32.2761 180.5 32C180.5 31.7239 180.276 31.5 180 31.5V32.5ZM188 31.5C187.724 31.5 187.5 31.7239 187.5 32C187.5 32.2761 187.724 32.5 188 32.5V31.5ZM196 32.5C196.276 32.5 196.5 32.2761 196.5 32C196.5 31.7239 196.276 31.5 196 31.5V32.5ZM204 31.5C203.724 31.5 203.5 31.7239 203.5 32C203.5 32.2761 203.724 32.5 204 32.5V31.5ZM0 32.5H4V31.5H0V32.5ZM12 32.5H20V31.5H12V32.5ZM28 32.5H36V31.5H28V32.5ZM44 32.5H52V31.5H44V32.5ZM60 32.5H68V31.5H60V32.5ZM76 32.5H84V31.5H76V32.5ZM92 32.5H100V31.5H92V32.5ZM108 32.5H116V31.5H108V32.5ZM124 32.5H132V31.5H124V32.5ZM140 32.5H148V31.5H140V32.5ZM156 32.5H164V31.5H156V32.5ZM172 32.5H180V31.5H172V32.5ZM188 32.5H196V31.5H188V32.5ZM204 32.5H208V31.5H204V32.5ZM208 33C208.552 33 209 32.5523 209 32C209 31.4477 208.552 31 208 31V33ZM0 31C-0.552285 31 -1 31.4477 -1 32C-1 32.5523 -0.552285 33 0 33V31ZM4 33C4.55228 33 5 32.5523 5 32C5 31.4477 4.55228 31 4 31V33ZM12 31C11.4477 31 11 31.4477 11 32C11 32.5523 11.4477 33 12 33V31ZM20 33C20.5523 33 21 32.5523 21 32C21 31.4477 20.5523 31 20 31V33ZM28 31C27.4477 31 27 31.4477 27 32C27 32.5523 27.4477 33 28 33V31ZM36 33C36.5523 33 37 32.5523 37 32C37 31.4477 36.5523 31 36 31V33ZM44 31C43.4477 31 43 31.4477 43 32C43 32.5523 43.4477 33 44 33V31ZM52 33C52.5523 33 53 32.5523 53 32C53 31.4477 52.5523 31 52 31V33ZM60 31C59.4477 31 59 31.4477 59 32C59 32.5523 59.4477 33 60 33V31ZM68 33C68.5523 33 69 32.5523 69 32C69 31.4477 68.5523 31 68 31V33ZM76 31C75.4477 31 75 31.4477 75 32C75 32.5523 75.4477 33 76 33V31ZM84 33C84.5523 33 85 32.5523 85 32C85 31.4477 84.5523 31 84 31V33ZM92 31C91.4477 31 91 31.4477 91 32C91 32.5523 91.4477 33 92 33V31ZM100 33C100.552 33 101 32.5523 101 32C101 31.4477 100.552 31 100 31V33ZM108 31C107.448 31 107 31.4477 107 32C107 32.5523 107.448 33 108 33V31ZM116 33C116.552 33 117 32.5523 117 32C117 31.4477 116.552 31 116 31V33ZM124 31C123.448 31 123 31.4477 123 32C123 32.5523 123.448 33 124 33V31ZM132 33C132.552 33 133 32.5523 133 32C133 31.4477 132.552 31 132 31V33ZM140 31C139.448 31 139 31.4477 139 32C139 32.5523 139.448 33 140 33V31ZM148 33C148.552 33 149 32.5523 149 32C149 31.4477 148.552 31 148 31V33ZM156 31C155.448 31 155 31.4477 155 32C155 32.5523 155.448 33 156 33V31ZM164 33C164.552 33 165 32.5523 165 32C165 31.4477 164.552 31 164 31V33ZM172 31C171.448 31 171 31.4477 171 32C171 32.5523 171.448 33 172 33V31ZM180 33C180.552 33 181 32.5523 181 32C181 31.4477 180.552 31 180 31V33ZM188 31C187.448 31 187 31.4477 187 32C187 32.5523 187.448 33 188 33V31ZM196 33C196.552 33 197 32.5523 197 32C197 31.4477 196.552 31 196 31V33ZM204 31C203.448 31 203 31.4477 203 32C203 32.5523 203.448 33 204 33V31ZM0 33H4V31H0V33ZM12 33H20V31H12V33ZM28 33H36V31H28V33ZM44 33H52V31H44V33ZM60 33H68V31H60V33ZM76 33H84V31H76V33ZM92 33H100V31H92V33ZM108 33H116V31H108V33ZM124 33H132V31H124V33ZM140 33H148V31H140V33ZM156 33H164V31H156V33ZM172 33H180V31H172V33ZM188 33H196V31H188V33ZM204 33H208V31H204V33Z",fill:"#F8F8F8",mask:"url(#path-3-inside-2_2098_5511)"}),i.jsx("mask",{id:"path-5-inside-3_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 32H208V48H0V32Z"})}),i.jsx("path",{d:"M208 48.5C208.276 48.5 208.5 48.2761 208.5 48C208.5 47.7239 208.276 47.5 208 47.5V48.5ZM0 47.5C-0.276142 47.5 -0.5 47.7239 -0.5 48C-0.5 48.2761 -0.276142 48.5 0 48.5V47.5ZM4 48.5C4.27614 48.5 4.5 48.2761 4.5 48C4.5 47.7239 4.27614 47.5 4 47.5V48.5ZM12 47.5C11.7239 47.5 11.5 47.7239 11.5 48C11.5 48.2761 11.7239 48.5 12 48.5V47.5ZM20 48.5C20.2761 48.5 20.5 48.2761 20.5 48C20.5 47.7239 20.2761 47.5 20 47.5V48.5ZM28 47.5C27.7239 47.5 27.5 47.7239 27.5 48C27.5 48.2761 27.7239 48.5 28 48.5V47.5ZM36 48.5C36.2761 48.5 36.5 48.2761 36.5 48C36.5 47.7239 36.2761 47.5 36 47.5V48.5ZM44 47.5C43.7239 47.5 43.5 47.7239 43.5 48C43.5 48.2761 43.7239 48.5 44 48.5V47.5ZM52 48.5C52.2761 48.5 52.5 48.2761 52.5 48C52.5 47.7239 52.2761 47.5 52 47.5V48.5ZM60 47.5C59.7239 47.5 59.5 47.7239 59.5 48C59.5 48.2761 59.7239 48.5 60 48.5V47.5ZM68 48.5C68.2761 48.5 68.5 48.2761 68.5 48C68.5 47.7239 68.2761 47.5 68 47.5V48.5ZM76 47.5C75.7239 47.5 75.5 47.7239 75.5 48C75.5 48.2761 75.7239 48.5 76 48.5V47.5ZM84 48.5C84.2761 48.5 84.5 48.2761 84.5 48C84.5 47.7239 84.2761 47.5 84 47.5V48.5ZM92 47.5C91.7239 47.5 91.5 47.7239 91.5 48C91.5 48.2761 91.7239 48.5 92 48.5V47.5ZM100 48.5C100.276 48.5 100.5 48.2761 100.5 48C100.5 47.7239 100.276 47.5 100 47.5V48.5ZM108 47.5C107.724 47.5 107.5 47.7239 107.5 48C107.5 48.2761 107.724 48.5 108 48.5V47.5ZM116 48.5C116.276 48.5 116.5 48.2761 116.5 48C116.5 47.7239 116.276 47.5 116 47.5V48.5ZM124 47.5C123.724 47.5 123.5 47.7239 123.5 48C123.5 48.2761 123.724 48.5 124 48.5V47.5ZM132 48.5C132.276 48.5 132.5 48.2761 132.5 48C132.5 47.7239 132.276 47.5 132 47.5V48.5ZM140 47.5C139.724 47.5 139.5 47.7239 139.5 48C139.5 48.2761 139.724 48.5 140 48.5V47.5ZM148 48.5C148.276 48.5 148.5 48.2761 148.5 48C148.5 47.7239 148.276 47.5 148 47.5V48.5ZM156 47.5C155.724 47.5 155.5 47.7239 155.5 48C155.5 48.2761 155.724 48.5 156 48.5V47.5ZM164 48.5C164.276 48.5 164.5 48.2761 164.5 48C164.5 47.7239 164.276 47.5 164 47.5V48.5ZM172 47.5C171.724 47.5 171.5 47.7239 171.5 48C171.5 48.2761 171.724 48.5 172 48.5V47.5ZM180 48.5C180.276 48.5 180.5 48.2761 180.5 48C180.5 47.7239 180.276 47.5 180 47.5V48.5ZM188 47.5C187.724 47.5 187.5 47.7239 187.5 48C187.5 48.2761 187.724 48.5 188 48.5V47.5ZM196 48.5C196.276 48.5 196.5 48.2761 196.5 48C196.5 47.7239 196.276 47.5 196 47.5V48.5ZM204 47.5C203.724 47.5 203.5 47.7239 203.5 48C203.5 48.2761 203.724 48.5 204 48.5V47.5ZM0 48.5H4V47.5H0V48.5ZM12 48.5H20V47.5H12V48.5ZM28 48.5H36V47.5H28V48.5ZM44 48.5H52V47.5H44V48.5ZM60 48.5H68V47.5H60V48.5ZM76 48.5H84V47.5H76V48.5ZM92 48.5H100V47.5H92V48.5ZM108 48.5H116V47.5H108V48.5ZM124 48.5H132V47.5H124V48.5ZM140 48.5H148V47.5H140V48.5ZM156 48.5H164V47.5H156V48.5ZM172 48.5H180V47.5H172V48.5ZM188 48.5H196V47.5H188V48.5ZM204 48.5H208V47.5H204V48.5ZM208 49C208.552 49 209 48.5523 209 48C209 47.4477 208.552 47 208 47V49ZM0 47C-0.552285 47 -1 47.4477 -1 48C-1 48.5523 -0.552285 49 0 49V47ZM4 49C4.55228 49 5 48.5523 5 48C5 47.4477 4.55228 47 4 47V49ZM12 47C11.4477 47 11 47.4477 11 48C11 48.5523 11.4477 49 12 49V47ZM20 49C20.5523 49 21 48.5523 21 48C21 47.4477 20.5523 47 20 47V49ZM28 47C27.4477 47 27 47.4477 27 48C27 48.5523 27.4477 49 28 49V47ZM36 49C36.5523 49 37 48.5523 37 48C37 47.4477 36.5523 47 36 47V49ZM44 47C43.4477 47 43 47.4477 43 48C43 48.5523 43.4477 49 44 49V47ZM52 49C52.5523 49 53 48.5523 53 48C53 47.4477 52.5523 47 52 47V49ZM60 47C59.4477 47 59 47.4477 59 48C59 48.5523 59.4477 49 60 49V47ZM68 49C68.5523 49 69 48.5523 69 48C69 47.4477 68.5523 47 68 47V49ZM76 47C75.4477 47 75 47.4477 75 48C75 48.5523 75.4477 49 76 49V47ZM84 49C84.5523 49 85 48.5523 85 48C85 47.4477 84.5523 47 84 47V49ZM92 47C91.4477 47 91 47.4477 91 48C91 48.5523 91.4477 49 92 49V47ZM100 49C100.552 49 101 48.5523 101 48C101 47.4477 100.552 47 100 47V49ZM108 47C107.448 47 107 47.4477 107 48C107 48.5523 107.448 49 108 49V47ZM116 49C116.552 49 117 48.5523 117 48C117 47.4477 116.552 47 116 47V49ZM124 47C123.448 47 123 47.4477 123 48C123 48.5523 123.448 49 124 49V47ZM132 49C132.552 49 133 48.5523 133 48C133 47.4477 132.552 47 132 47V49ZM140 47C139.448 47 139 47.4477 139 48C139 48.5523 139.448 49 140 49V47ZM148 49C148.552 49 149 48.5523 149 48C149 47.4477 148.552 47 148 47V49ZM156 47C155.448 47 155 47.4477 155 48C155 48.5523 155.448 49 156 49V47ZM164 49C164.552 49 165 48.5523 165 48C165 47.4477 164.552 47 164 47V49ZM172 47C171.448 47 171 47.4477 171 48C171 48.5523 171.448 49 172 49V47ZM180 49C180.552 49 181 48.5523 181 48C181 47.4477 180.552 47 180 47V49ZM188 47C187.448 47 187 47.4477 187 48C187 48.5523 187.448 49 188 49V47ZM196 49C196.552 49 197 48.5523 197 48C197 47.4477 196.552 47 196 47V49ZM204 47C203.448 47 203 47.4477 203 48C203 48.5523 203.448 49 204 49V47ZM0 49H4V47H0V49ZM12 49H20V47H12V49ZM28 49H36V47H28V49ZM44 49H52V47H44V49ZM60 49H68V47H60V49ZM76 49H84V47H76V49ZM92 49H100V47H92V49ZM108 49H116V47H108V49ZM124 49H132V47H124V49ZM140 49H148V47H140V49ZM156 49H164V47H156V49ZM172 49H180V47H172V49ZM188 49H196V47H188V49ZM204 49H208V47H204V49Z",fill:"#F8F8F8",mask:"url(#path-5-inside-3_2098_5511)"}),i.jsx("mask",{id:"path-7-inside-4_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 48H208V64H0V48Z"})}),i.jsx("path",{d:"M208 64.5C208.276 64.5 208.5 64.2761 208.5 64C208.5 63.7239 208.276 63.5 208 63.5V64.5ZM0 63.5C-0.276142 63.5 -0.5 63.7239 -0.5 64C-0.5 64.2761 -0.276142 64.5 0 64.5V63.5ZM4 64.5C4.27614 64.5 4.5 64.2761 4.5 64C4.5 63.7239 4.27614 63.5 4 63.5V64.5ZM12 63.5C11.7239 63.5 11.5 63.7239 11.5 64C11.5 64.2761 11.7239 64.5 12 64.5V63.5ZM20 64.5C20.2761 64.5 20.5 64.2761 20.5 64C20.5 63.7239 20.2761 63.5 20 63.5V64.5ZM28 63.5C27.7239 63.5 27.5 63.7239 27.5 64C27.5 64.2761 27.7239 64.5 28 64.5V63.5ZM36 64.5C36.2761 64.5 36.5 64.2761 36.5 64C36.5 63.7239 36.2761 63.5 36 63.5V64.5ZM44 63.5C43.7239 63.5 43.5 63.7239 43.5 64C43.5 64.2761 43.7239 64.5 44 64.5V63.5ZM52 64.5C52.2761 64.5 52.5 64.2761 52.5 64C52.5 63.7239 52.2761 63.5 52 63.5V64.5ZM60 63.5C59.7239 63.5 59.5 63.7239 59.5 64C59.5 64.2761 59.7239 64.5 60 64.5V63.5ZM68 64.5C68.2761 64.5 68.5 64.2761 68.5 64C68.5 63.7239 68.2761 63.5 68 63.5V64.5ZM76 63.5C75.7239 63.5 75.5 63.7239 75.5 64C75.5 64.2761 75.7239 64.5 76 64.5V63.5ZM84 64.5C84.2761 64.5 84.5 64.2761 84.5 64C84.5 63.7239 84.2761 63.5 84 63.5V64.5ZM92 63.5C91.7239 63.5 91.5 63.7239 91.5 64C91.5 64.2761 91.7239 64.5 92 64.5V63.5ZM100 64.5C100.276 64.5 100.5 64.2761 100.5 64C100.5 63.7239 100.276 63.5 100 63.5V64.5ZM108 63.5C107.724 63.5 107.5 63.7239 107.5 64C107.5 64.2761 107.724 64.5 108 64.5V63.5ZM116 64.5C116.276 64.5 116.5 64.2761 116.5 64C116.5 63.7239 116.276 63.5 116 63.5V64.5ZM124 63.5C123.724 63.5 123.5 63.7239 123.5 64C123.5 64.2761 123.724 64.5 124 64.5V63.5ZM132 64.5C132.276 64.5 132.5 64.2761 132.5 64C132.5 63.7239 132.276 63.5 132 63.5V64.5ZM140 63.5C139.724 63.5 139.5 63.7239 139.5 64C139.5 64.2761 139.724 64.5 140 64.5V63.5ZM148 64.5C148.276 64.5 148.5 64.2761 148.5 64C148.5 63.7239 148.276 63.5 148 63.5V64.5ZM156 63.5C155.724 63.5 155.5 63.7239 155.5 64C155.5 64.2761 155.724 64.5 156 64.5V63.5ZM164 64.5C164.276 64.5 164.5 64.2761 164.5 64C164.5 63.7239 164.276 63.5 164 63.5V64.5ZM172 63.5C171.724 63.5 171.5 63.7239 171.5 64C171.5 64.2761 171.724 64.5 172 64.5V63.5ZM180 64.5C180.276 64.5 180.5 64.2761 180.5 64C180.5 63.7239 180.276 63.5 180 63.5V64.5ZM188 63.5C187.724 63.5 187.5 63.7239 187.5 64C187.5 64.2761 187.724 64.5 188 64.5V63.5ZM196 64.5C196.276 64.5 196.5 64.2761 196.5 64C196.5 63.7239 196.276 63.5 196 63.5V64.5ZM204 63.5C203.724 63.5 203.5 63.7239 203.5 64C203.5 64.2761 203.724 64.5 204 64.5V63.5ZM0 64.5H4V63.5H0V64.5ZM12 64.5H20V63.5H12V64.5ZM28 64.5H36V63.5H28V64.5ZM44 64.5H52V63.5H44V64.5ZM60 64.5H68V63.5H60V64.5ZM76 64.5H84V63.5H76V64.5ZM92 64.5H100V63.5H92V64.5ZM108 64.5H116V63.5H108V64.5ZM124 64.5H132V63.5H124V64.5ZM140 64.5H148V63.5H140V64.5ZM156 64.5H164V63.5H156V64.5ZM172 64.5H180V63.5H172V64.5ZM188 64.5H196V63.5H188V64.5ZM204 64.5H208V63.5H204V64.5ZM208 65C208.552 65 209 64.5523 209 64C209 63.4477 208.552 63 208 63V65ZM0 63C-0.552285 63 -1 63.4477 -1 64C-1 64.5523 -0.552285 65 0 65V63ZM4 65C4.55228 65 5 64.5523 5 64C5 63.4477 4.55228 63 4 63V65ZM12 63C11.4477 63 11 63.4477 11 64C11 64.5523 11.4477 65 12 65V63ZM20 65C20.5523 65 21 64.5523 21 64C21 63.4477 20.5523 63 20 63V65ZM28 63C27.4477 63 27 63.4477 27 64C27 64.5523 27.4477 65 28 65V63ZM36 65C36.5523 65 37 64.5523 37 64C37 63.4477 36.5523 63 36 63V65ZM44 63C43.4477 63 43 63.4477 43 64C43 64.5523 43.4477 65 44 65V63ZM52 65C52.5523 65 53 64.5523 53 64C53 63.4477 52.5523 63 52 63V65ZM60 63C59.4477 63 59 63.4477 59 64C59 64.5523 59.4477 65 60 65V63ZM68 65C68.5523 65 69 64.5523 69 64C69 63.4477 68.5523 63 68 63V65ZM76 63C75.4477 63 75 63.4477 75 64C75 64.5523 75.4477 65 76 65V63ZM84 65C84.5523 65 85 64.5523 85 64C85 63.4477 84.5523 63 84 63V65ZM92 63C91.4477 63 91 63.4477 91 64C91 64.5523 91.4477 65 92 65V63ZM100 65C100.552 65 101 64.5523 101 64C101 63.4477 100.552 63 100 63V65ZM108 63C107.448 63 107 63.4477 107 64C107 64.5523 107.448 65 108 65V63ZM116 65C116.552 65 117 64.5523 117 64C117 63.4477 116.552 63 116 63V65ZM124 63C123.448 63 123 63.4477 123 64C123 64.5523 123.448 65 124 65V63ZM132 65C132.552 65 133 64.5523 133 64C133 63.4477 132.552 63 132 63V65ZM140 63C139.448 63 139 63.4477 139 64C139 64.5523 139.448 65 140 65V63ZM148 65C148.552 65 149 64.5523 149 64C149 63.4477 148.552 63 148 63V65ZM156 63C155.448 63 155 63.4477 155 64C155 64.5523 155.448 65 156 65V63ZM164 65C164.552 65 165 64.5523 165 64C165 63.4477 164.552 63 164 63V65ZM172 63C171.448 63 171 63.4477 171 64C171 64.5523 171.448 65 172 65V63ZM180 65C180.552 65 181 64.5523 181 64C181 63.4477 180.552 63 180 63V65ZM188 63C187.448 63 187 63.4477 187 64C187 64.5523 187.448 65 188 65V63ZM196 65C196.552 65 197 64.5523 197 64C197 63.4477 196.552 63 196 63V65ZM204 63C203.448 63 203 63.4477 203 64C203 64.5523 203.448 65 204 65V63ZM0 65H4V63H0V65ZM12 65H20V63H12V65ZM28 65H36V63H28V65ZM44 65H52V63H44V65ZM60 65H68V63H60V65ZM76 65H84V63H76V65ZM92 65H100V63H92V65ZM108 65H116V63H108V65ZM124 65H132V63H124V65ZM140 65H148V63H140V65ZM156 65H164V63H156V65ZM172 65H180V63H172V65ZM188 65H196V63H188V65ZM204 65H208V63H204V65Z",fill:"#F8F8F8",mask:"url(#path-7-inside-4_2098_5511)"}),i.jsx("path",{opacity:"0.25",d:"M188.216 21.8308L192.267 33.3363C192.984 35.3729 195.553 36.0079 197.136 34.5401L200.346 31.5644C200.704 31.2324 200.976 30.8179 201.137 30.357L202.893 25.3492L207.891 8.63898C207.962 8.40249 207.998 8.15696 207.998 7.91011V61C207.998 62.6569 206.655 64 204.998 64H2.99805C1.34119 64 -0.00195312 62.6569 -0.00195312 61V38.199C-0.00195312 37.5477 0.209976 36.9142 0.601822 36.394L4.07924 31.7775C5.46086 29.9434 8.30679 30.2781 9.22513 32.3828L13.7407 42.7321C14.1196 43.6005 14.8865 44.2389 15.8092 44.454L20.4905 45.5454C21.1539 45.7 21.8501 45.6244 22.4647 45.3308L27.6593 42.8495C28.3218 42.533 28.8452 41.9846 29.1305 41.3081L33.0958 31.9045C34.1272 29.4587 37.593 29.4587 38.6244 31.9045L39.704 34.4648C40.8065 37.0793 44.5863 36.8438 45.3559 34.1128L49.5889 19.0897C49.9533 17.7966 51.133 16.9033 52.4765 16.9033H56.4941C57.0707 16.9033 57.6351 16.7372 58.1197 16.4247L61.1576 14.466C62.8476 13.3764 65.11 14.2251 65.6662 16.1575L70.599 33.2936C71.1572 35.2328 73.4323 36.079 75.122 34.9758L75.9273 34.45C77.4802 33.4361 79.5719 34.0601 80.3156 35.7591L84.8676 46.1586C85.5306 47.6733 87.2942 48.366 88.8108 47.7074L91.9453 46.3462C92.765 45.9903 93.3833 45.2875 93.632 44.4292L99.0729 25.6458C99.6874 23.5244 102.321 22.7938 103.941 24.2955C105.587 25.8222 108.267 25.0377 108.831 22.864L112.541 8.54954C113.26 5.77543 117.087 5.49227 118.207 8.13037L120.305 13.0767C121.105 14.9603 123.513 15.5086 125.049 14.1567L125.58 13.6896C127.224 12.2425 129.814 12.9875 130.438 15.0869L134.329 28.1818C135.073 30.6853 138.439 31.1086 139.779 28.8673L142.671 24.0333C143.159 23.2175 144.004 22.6813 144.95 22.5878L149.822 22.1065C150.344 22.0549 150.843 21.8672 151.271 21.5621L154.984 18.9089C156.467 17.8494 158.544 18.346 159.388 19.9617L161.285 23.5972C162.565 26.0491 166.199 25.6102 166.858 22.9241L169.511 12.1165C170.239 9.14844 174.421 9.04274 175.298 11.9702L177.723 20.0592C178.406 22.3382 181.343 22.9532 182.883 21.1398L183.099 20.8852C184.598 19.1202 187.447 19.6467 188.216 21.8308Z",fill:"url(#paint0_linear_2098_5511)"}),i.jsx("path",{d:"M207.998 8.42336L201.106 31.2146C200.924 31.8169 200.557 32.3467 200.057 32.729L196.94 35.1136C195.319 36.3534 192.96 35.6482 192.286 33.7223L188.181 22.0024C187.422 19.8338 184.606 19.289 183.092 21.0179L182.846 21.2991C181.3 23.0654 178.416 22.4516 177.723 20.2087L175.29 12.336C174.395 9.4396 170.259 9.54691 169.515 12.4858L166.857 22.9946C166.185 25.6477 162.603 26.0903 161.306 23.6803L159.382 20.1042C158.534 18.5278 156.503 18.0404 155.031 19.0601L151.262 21.6725C150.84 21.9649 150.35 22.1442 149.839 22.1931L144.931 22.6636C143.996 22.7532 143.157 23.2757 142.664 24.0754L139.754 28.7942C138.4 30.9907 135.088 30.5657 134.332 28.0982L130.441 15.3948C129.808 13.3298 127.267 12.5895 125.624 13.9921L125.005 14.5209C123.474 15.8283 121.115 15.2863 120.308 13.4417L118.191 8.60225C117.054 6.00226 113.277 6.28847 112.544 9.03014L108.848 22.8647C108.27 25.0292 105.606 25.8158 103.94 24.3175V24.3175C102.303 22.8447 99.6856 23.5762 99.0555 25.6864L93.6445 43.8072C93.388 44.6663 92.7608 45.3656 91.9346 45.7136L88.763 47.0496C87.2632 47.6814 85.5332 47.0022 84.8638 45.5188L80.3156 35.4387C79.5653 33.7759 77.517 33.1621 75.9758 34.1381L75.0745 34.709C73.393 35.774 71.1595 34.9362 70.5933 33.028L65.672 16.4433C65.1078 14.5419 62.8867 13.7015 61.2051 14.7533L58.1073 16.6909C57.6303 16.9892 57.079 17.1474 56.5164 17.1474H52.4575C51.123 17.1474 49.9489 18.029 49.5766 19.3106L45.3511 33.8582C44.5676 36.5556 40.8386 36.7934 39.7188 34.2174L38.6114 31.6698C37.5658 29.2644 34.1544 29.2644 33.1088 31.6698L29.1425 40.7941C28.8495 41.4681 28.3193 42.0111 27.6525 42.3201L22.4421 44.7345C21.8411 45.0129 21.165 45.0847 20.519 44.9386L15.803 43.872C14.8836 43.6641 14.1154 43.0362 13.7288 42.1765L9.21662 32.1447C8.28874 30.0817 5.49845 29.7487 4.11113 31.5353L-0.00196201 36.8322",stroke:"#FF3F19"})]}),i.jsxs("defs",{children:[i.jsxs("linearGradient",{id:"paint0_linear_2098_5511",x1:"103.998",y1:"0",x2:"103.998",y2:"64",gradientUnits:"userSpaceOnUse",children:[i.jsx("stop",{stopColor:"#FF3F19"}),i.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),i.jsx("clipPath",{id:"clip0_2098_5511",children:i.jsx("rect",{width:"208",height:"64",fill:"white"})})]})]})}),Vl=({adaptiveStyles:e})=>{const[t,n]=L.useState(null),[r,u]=L.useState(!1),[a,s]=L.useState(!1),[o,c]=L.useState(!1);if(L.useEffect(()=>{u(!0),s(!0),(async()=>{const p=await U2();n(p)})(),u(!1),s(!1)},[]),!t)return i.jsx(N.Loader,{});const{isAvailable:l,isActivated:h,info:f}=t.data;return l?i.jsxs("div",{children:[i.jsxs("div",{className:g.clx(Ee.referral,{[Ee.mobile]:e!=="desktop"}),children:[i.jsx("div",{className:g.clx(Ee.referralBlock,{[Ee.mobile]:e!=="desktop"}),children:r?i.jsx(ql,{adaptiveStyles:e}):i.jsxs("div",{className:Ee.referralContainer,children:[i.jsx("div",{id:"h2",className:Ee.title,children:"Refer friends"}),i.jsx("div",{className:Ee.description,id:"lg",children:"Refer friends. Earn rewards. Make bank."}),h?i.jsx(i.Fragment,{children:i.jsx(zl,{referral:t})}):i.jsx(i.Fragment,{children:i.jsx($l,{setIsOpen:c})})]})}),a?i.jsx("div",{className:Ee.referralStats}):i.jsxs("div",{className:g.clx(Ee.referralStats,{[Ee.mobile]:e!=="desktop"}),children:[i.jsxs("div",{className:Ee.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ee.referralStatsItemLabel,children:"Referrals"}),i.jsx("div",{id:"h2",className:Ee.referralStatsItemValue,children:f!=null&&f.totalReferrals?`${f.totalReferrals} person`:"-"}),i.jsx(Nu,{})]}),i.jsxs("div",{className:Ee.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ee.referralStatsItemLabel,children:"Earned"}),i.jsx("div",{id:"h2",className:Ee.referralStatsItemValue,children:"-"}),i.jsx(Nu,{})]}),i.jsxs("div",{className:Ee.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ee.referralStatsItemLabel,children:"Total Revenue"}),i.jsx("div",{id:"h2",className:Ee.referralStatsItemValue,children:g.formatPrice({amount:(f==null?void 0:f.totalRevenueUsd)||0})}),i.jsx(Nu,{})]}),i.jsxs("div",{className:Ee.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ee.referralStatsItemLabel,children:"Earn Procent"}),i.jsx("div",{id:"h2",className:Ee.referralStatsItemValue,children:`${t.data.earnPercent}%`||"-"}),i.jsx(Nu,{})]})]})]}),o&&i.jsx(N.Modal,{close:()=>c(!1),children:i.jsx(Z6,{setIsOpen:c,setIsLoading:u})})]}):null},$l=({setIsOpen:e})=>{const{setIsOpen:t}=g.useModalStore();return i.jsxs("div",{className:Ee.steps,onClick:n=>n.stopPropagation(),children:[i.jsx(N.Button,{type:"Primary",className:Ee.joinButton,onClick:()=>{e(!0),t(!0)},children:"Join the referral Program"}),i.jsx("div",{children:g.referralSteps.map(({caption:n,description:r},u,a)=>i.jsx(q6,{caption:n,description:r,index:u+1,bar:u+1!==a.length},n))})]})},zl=({referral:e})=>{var a,s;const{shopDomain:t}=g.useStorefrontStore(),n=`https://${t}/?r=${(a=e.data.info)==null?void 0:a.referralCode}`,{notifications:r,setNotifications:u}=g.useNotificationStore();return i.jsxs("div",{className:Ee.referralInfo,children:[i.jsx(N.Input,{onChange:()=>{},label:"Affiliate Code",value:((s=e.data.info)==null?void 0:s.referralCode)||"",disabled:!0}),i.jsx("div",{className:Ee.linkContainer,children:i.jsx(N.Input,{onChange:()=>{},label:"Affiliate Link",value:n,disabled:!0,rightIcon:i.jsx(N.Icon,{name:"Copy",fill:"var(--text-action)",onClick:()=>{navigator.clipboard.writeText(n),u([...r,{message:"Link copied to clipboard",status:"success",id:g.v4()}])},hoverable:!0})})})]})},ql=({adaptiveStyles:e})=>i.jsxs(ir,{speed:2,width:500,height:"100%",viewBox:"0 0 500 305",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:g.clx(Ee.skeleton,{[Ee.mobile]:e!=="desktop"}),style:{borderRadius:"var(--border-radius)"},children:[i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"264",height:"40"}),i.jsx("rect",{x:"0",y:"45",rx:"10",ry:"10",width:"160",height:"24"}),i.jsx("rect",{x:"0",y:"100",rx:"10",ry:"10",width:"100",height:"40"}),i.jsx("rect",{x:"0",y:"150",rx:"10",ry:"10",width:"476",height:"40"}),i.jsx("rect",{x:"0",y:"220",rx:"10",ry:"10",width:"428",height:"50"})]}),W6="_title_u8oqs_1",Y6="_heading_u8oqs_10",G6="_description_u8oqs_15",qa={title:W6,heading:Y6,description:G6},fa=({title:e,description:t})=>i.jsxs("div",{className:qa.title,children:[i.jsx("div",{id:"h3",className:qa.heading,children:e}),t&&i.jsx("div",{className:qa.description,id:"lg",children:t})]}),X6="_noItemsBlock_yefnm_4",K6="_noItemsBlockIcon_yefnm_13",Q6="_noItemsBlockTitle_yefnm_21",J6="_noItemsBlockDescription_yefnm_31",em="_centered_yefnm_37",Br={noItemsBlock:X6,noItemsBlockIcon:K6,noItemsBlockTitle:Q6,noItemsBlockDescription:J6,centered:em},ha=({title:e,description:t,className:n,centered:r=!1})=>i.jsxs("div",{className:g.clx(Br.noItemsBlock,n,{[Br.centered]:r}),children:[i.jsx("div",{className:Br.noItemsBlockIcon,children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),i.jsx("div",{className:Br.noItemsBlockTitle,id:"h4",children:e}),i.jsx("div",{className:Br.noItemsBlockDescription,id:"md",children:t})]}),tm="_ordersTable_1btyq_2",nm="_gatewayItem_1btyq_10",rm="_gatewayIcon_1btyq_15",um="_orderTime_1btyq_20",am="_reviewContainer_1btyq_25",sm="_reviewRating_1btyq_35",im="_tableLoader_1btyq_39",om="_tableItem_1btyq_48",Vt={ordersTable:tm,gatewayItem:nm,gatewayIcon:rm,orderTime:um,reviewContainer:am,reviewRating:sm,tableLoader:im,tableItem:om};var Nn=(e=>(e[e.SUCCESS=1]="SUCCESS",e[e.WARNING=2]="WARNING",e[e.ERROR=3]="ERROR",e))(Nn||{});const cm={[be.New]:2,[be.Pending]:2,[be.Processing]:2,[be.Completed]:1,[be.Cancelled]:3,[be.Expired]:3,[be.FullDeliveryFailure]:3,[be.PartiallyDelivered]:2,[be.Refunded]:2,[be.Failed]:3,[be.PartiallyRefunded]:2},lm=(e,t)=>{const n=t.find(r=>r.name===e);return n?i.jsxs("div",{className:Vt.gatewayItem,children:[(n==null?void 0:n.name)==="ForebitPayments"?i.jsx(pl,{}):n.name==="Balance"?i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20,style:{marginRight:"0.25rem"}}):i.jsx("img",{alt:n.displayName,src:g.convertCfImageIdToUrl(n.logoCfImageId,"100"),className:Vt.gatewayIcon}),i.jsx("div",{id:"md",children:n.displayName})]}):null},dm=({item:e,gatewaysDetail:t})=>{const[n,r]=g.extractDateAndTime(e.time),{isAntistock:u}=g.useGeneralStore();return i.jsxs(L.Fragment,{children:[i.jsx(ot,{copyText:e.id,children:i.jsx(g.NavLink,{to:`/orders/${e.id}/${e.accessToken}`,id:"md",children:e.id})}),i.jsx(ot,{children:i.jsx(g.NavLink,{to:`/orders/${e.id}/${e.accessToken}`,children:i.jsx(Gl,{status:e.status,variant:cm[e.status]})})}),i.jsx(ot,{children:g.formatPrice(e.price)}),i.jsx(ot,{children:lm(e.gatewayName,t)}),i.jsx(ot,{children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:n}),i.jsx("div",{className:Vt.orderTime,id:"md",children:r})]})}),!u&&i.jsx(ot,{children:e.review?i.jsxs("div",{className:Vt.reviewContainer,children:[i.jsx(N.Icon,{name:"Star",fill:"var(--text-secondary)"}),i.jsx("div",{className:Vt.reviewRating,id:"md",children:e.review.rating})]}):i.jsx("span",{id:"md",children:"None"})})]},e.id)},Zl=({orders:e,gatewaysDetail:t,totalCount:n,isLoading:r})=>{const{page:u,setPage:a}=g.usePaginationPagesStore(),{isAntistock:s}=g.useGeneralStore(),c=!(!(e!=null&&e.length)||!t)&&e.length>0;return i.jsxs("div",{className:Vt.ordersTable,children:[i.jsxs(pa,{children:[i.jsx(Pt,{className:Vt.tableItem,children:"Invoice ID"}),i.jsx(Pt,{className:Vt.tableItem,children:"Status"}),i.jsx(Pt,{className:Vt.tableItem,children:"Value"}),i.jsx(Pt,{className:Vt.tableItem,children:"Payment"}),i.jsx(Pt,{className:Vt.tableItem,children:"Date"}),!s&&i.jsx(Pt,{className:Vt.tableItem,children:"Review"}),c&&!r&&e.map(l=>i.jsx(dm,{item:l,gatewaysDetail:t},l.id))]}),(!c||r)&&i.jsx("div",{className:Vt.tableLoader,children:i.jsx(N.Loader,{})}),c&&!r&&i.jsx(mu,{currentPage:u,totalCount:n,onPageChange:a})]})},fm="_ticketsTable_1m2oy_4",hm="_antistockTable_1m2oy_4",pm="_table_1m2oy_4",mm="_tableItem_1m2oy_22",gm="_text_1m2oy_47",bm="_tableItemTitle_1m2oy_54",_m="_copyIcon_1m2oy_85",ur={ticketsTable:fm,antistockTable:hm,table:pm,tableItem:mm,text:gm,tableItemTitle:bm,copyIcon:_m},ot=({children:e,className:t,onClick:n,copyText:r,id:u})=>{const a=Zn();return i.jsxs("div",{className:g.clx(ur.tableItem,t),onClick:n,style:{cursor:n?"pointer":"default"},children:[i.jsx("span",{className:ur.text,id:u||"md",children:e})," ",r&&i.jsx("div",{className:ur.copyIcon,children:i.jsx(N.Icon,{name:"Copy",onClick:()=>a(r),width:20,height:20})})]})},Pt=({children:e,className:t})=>i.jsx(ot,{className:g.clx(ur.tableItemTitle,t),id:"lg",children:e}),pa=({children:e,className:t})=>{const{isAntistock:n}=g.useGeneralStore(),r=t==null?void 0:t.includes("ticketsTable");return i.jsx("div",{className:g.clx(t,r?ur.ticketsTable:n?ur.antistockTable:ur.table),children:e})},xm="_paginationContainer_1txk9_3",Cm="_paginationWithRange_1txk9_15",Em="_paginationWithRangeText_1txk9_25",ym="_paginationWithRangePagination_1txk9_33",Tm="_notIsAntistock_1txk9_41",Zr={paginationContainer:xm,paginationWithRange:Cm,paginationWithRangeText:Em,paginationWithRangePagination:ym,notIsAntistock:Tm},vu=(e,t)=>Array.from({length:t-e+1},(n,r)=>e+r),km=(e,t,n)=>{const r=n*2+3+2;if(t<=r)return vu(1,t);const u=Math.max(e-n,1),a=Math.min(e+n,t),s=u>2,o=a<t-2;return!s&&o?[...vu(1,3+2*n),"right-ellipsis",t]:s&&!o?[1,"left-ellipsis",...vu(t-(3+2*n)+1,t)]:[1,"left-ellipsis",...vu(u,a),"right-ellipsis",t]},Wl=({currentPage:e,totalPages:t,onPageChange:n,siblingCount:r=1})=>{const u=c=>{const l=r*2+1;n(c?Math.max(e-l,1):Math.min(e+l,t))},a=e===1,s=e===t,o=c=>i.jsx(N.Button,{type:typeof c=="number"&&c===e?"Primary":"Secondary",onClick:()=>typeof c=="string"?u(c==="left-ellipsis"):n(c),"aria-current":typeof c=="number"&&c===e?"page":void 0,children:typeof c=="string"?"…":c},c);return i.jsxs("div",{className:Zr.paginationContainer,children:[i.jsx(N.Button,{type:"Secondary",onClick:()=>!a&&n(e-1),disabled:a,children:i.jsx(N.Icon,{name:"ArrowLeft"})}),km(e,t,r).map(o),i.jsx(N.Button,{type:"Secondary",onClick:()=>!s&&n(e+1),disabled:s,children:i.jsx(N.Icon,{name:"ArrowRight"})})]})},Yl=(e,t,n)=>{const r=(e-1)*n+1,u=Math.min(e*n,t);return`Showing ${r}-${u} entries of ${t}`},mu=({className:e,totalCount:t,...n})=>{const{isAntistock:r}=g.useGeneralStore(),u=Math.ceil(t/Yu);return u<2?null:i.jsxs("div",{className:g.clx(Zr.paginationWithRange,e,{[Zr.notIsAntistock]:!r}),children:[i.jsx("div",{className:Zr.paginationWithRangeText,id:"md",children:Yl(n.currentPage,t,Yu)}),i.jsx("div",{className:Zr.paginationWithRangePagination,children:i.jsx(Wl,{...n,totalPages:u})})]})},Am="_statusIndicator_1gt2z_4",Sm="_antistockStatus_1gt2z_11",Im="_statusIndicatorSuccess_1gt2z_16",Nm="_statusIndicatorWarning_1gt2z_20",vm="_statusIndicatorError_1gt2z_24",wm="_statusIndicatorText_1gt2z_28",xr={statusIndicator:Am,antistockStatus:Sm,statusIndicatorSuccess:Im,statusIndicatorWarning:Nm,statusIndicatorError:vm,statusIndicatorText:wm},Dm=()=>i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.2105 5.91453C11.2628 5.96677 11.3043 6.02881 11.3326 6.0971C11.3609 6.16538 11.3754 6.23858 11.3754 6.3125C11.3754 6.38642 11.3609 6.45962 11.3326 6.5279C11.3043 6.59619 11.2628 6.65823 11.2105 6.71047L7.27297 10.648C7.22073 10.7003 7.15869 10.7418 7.09041 10.7701C7.02212 10.7984 6.94892 10.8129 6.875 10.8129C6.80108 10.8129 6.72789 10.7984 6.6596 10.7701C6.59131 10.7418 6.52928 10.7003 6.47703 10.648L4.78953 8.96047C4.68399 8.85492 4.62469 8.71177 4.62469 8.5625C4.62469 8.41323 4.68399 8.27008 4.78953 8.16453C4.89508 8.05898 5.03824 7.99969 5.1875 7.99969C5.33677 7.99969 5.47992 8.05898 5.58547 8.16453L6.875 9.45477L10.4145 5.91453C10.4668 5.86223 10.5288 5.82074 10.5971 5.79244C10.6654 5.76413 10.7386 5.74956 10.8125 5.74956C10.8864 5.74956 10.9596 5.76413 11.0279 5.79244C11.0962 5.82074 11.1582 5.86223 11.2105 5.91453ZM15.3125 8C15.3125 9.44628 14.8836 10.8601 14.0801 12.0626C13.2766 13.2651 12.1346 14.2024 10.7984 14.7559C9.46219 15.3093 7.99189 15.4541 6.57341 15.172C5.15492 14.8898 3.85196 14.1934 2.82928 13.1707C1.80661 12.148 1.11017 10.8451 0.828011 9.4266C0.545857 8.00811 0.690668 6.53781 1.24413 5.20163C1.7976 3.86544 2.73486 2.72339 3.9374 1.91988C5.13993 1.11637 6.55373 0.6875 8 0.6875C9.93877 0.689547 11.7975 1.46063 13.1685 2.83154C14.5394 4.20246 15.3105 6.06123 15.3125 8ZM14.1875 8C14.1875 6.77623 13.8246 5.57994 13.1447 4.56241C12.4648 3.54488 11.4985 2.75181 10.3679 2.2835C9.23724 1.81518 7.99314 1.69264 6.79288 1.93139C5.59262 2.17014 4.49012 2.75944 3.62478 3.62478C2.75944 4.49011 2.17014 5.59262 1.93139 6.79288C1.69265 7.99314 1.81518 9.23724 2.2835 10.3679C2.75182 11.4985 3.54488 12.4648 4.56241 13.1447C5.57994 13.8246 6.77623 14.1875 8 14.1875C9.64046 14.1856 11.2132 13.5331 12.3732 12.3732C13.5331 11.2132 14.1856 9.64046 14.1875 8Z",fill:"#338B13"})}),Lm=()=>i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M8 0.6875C6.55373 0.6875 5.13993 1.11637 3.9374 1.91988C2.73486 2.72339 1.7976 3.86544 1.24413 5.20163C0.690668 6.53781 0.545857 8.00811 0.828011 9.4266C1.11017 10.8451 1.80661 12.148 2.82928 13.1707C3.85196 14.1934 5.15492 14.8898 6.57341 15.172C7.99189 15.4541 9.46219 15.3093 10.7984 14.7559C12.1346 14.2024 13.2766 13.2651 14.0801 12.0626C14.8836 10.8601 15.3125 9.44628 15.3125 8C15.3105 6.06123 14.5394 4.20246 13.1685 2.83154C11.7975 1.46063 9.93877 0.689547 8 0.6875ZM8 14.1875C6.77623 14.1875 5.57994 13.8246 4.56241 13.1447C3.54488 12.4648 2.75182 11.4985 2.2835 10.3679C1.81518 9.23724 1.69265 7.99314 1.93139 6.79288C2.17014 5.59262 2.75944 4.49011 3.62478 3.62478C4.49012 2.75944 5.59262 2.17014 6.79288 1.93139C7.99314 1.69264 9.23724 1.81518 10.3679 2.2835C11.4985 2.75181 12.4648 3.54488 13.1447 4.56241C13.8246 5.57994 14.1875 6.77623 14.1875 8C14.1856 9.64046 13.5331 11.2132 12.3732 12.3732C11.2132 13.5331 9.64046 14.1856 8 14.1875ZM12.5 8C12.5 8.14918 12.4407 8.29226 12.3353 8.39775C12.2298 8.50324 12.0867 8.5625 11.9375 8.5625H8C7.85082 8.5625 7.70775 8.50324 7.60226 8.39775C7.49677 8.29226 7.4375 8.14918 7.4375 8V4.0625C7.4375 3.91332 7.49677 3.77024 7.60226 3.66475C7.70775 3.55926 7.85082 3.5 8 3.5C8.14919 3.5 8.29226 3.55926 8.39775 3.66475C8.50324 3.77024 8.5625 3.91332 8.5625 4.0625V7.4375H11.9375C12.0867 7.4375 12.2298 7.49676 12.3353 7.60225C12.4407 7.70774 12.5 7.85082 12.5 8Z",fill:"#C1972A"})}),Pm=()=>i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M9 17.0625C4.5525 17.0625 0.9375 13.4475 0.9375 9C0.9375 4.5525 4.5525 0.9375 9 0.9375C13.4475 0.9375 17.0625 4.5525 17.0625 9C17.0625 13.4475 13.4475 17.0625 9 17.0625ZM9 2.0625C5.175 2.0625 2.0625 5.175 2.0625 9C2.0625 12.825 5.175 15.9375 9 15.9375C12.825 15.9375 15.9375 12.825 15.9375 9C15.9375 5.175 12.825 2.0625 9 2.0625Z",fill:"#C12A2A"}),i.jsx("path",{d:"M6.87752 11.685C6.73502 11.685 6.59252 11.6325 6.48002 11.52C6.26252 11.3025 6.26252 10.9425 6.48002 10.725L10.725 6.48C10.9425 6.2625 11.3025 6.2625 11.52 6.48C11.7375 6.6975 11.7375 7.0575 11.52 7.275L7.27502 11.52C7.17002 11.6325 7.02002 11.685 6.87752 11.685Z",fill:"#C12A2A"}),i.jsx("path",{d:"M11.1225 11.685C10.98 11.685 10.8375 11.6325 10.725 11.52L6.48002 7.275C6.26252 7.0575 6.26252 6.6975 6.48002 6.48C6.69752 6.2625 7.05752 6.2625 7.27502 6.48L11.52 10.725C11.7375 10.9425 11.7375 11.3025 11.52 11.52C11.4075 11.6325 11.265 11.685 11.1225 11.685Z",fill:"#C12A2A"})]}),Rm={[Nn.SUCCESS]:Dm,[Nn.WARNING]:Lm,[Nn.ERROR]:Pm},Mm={[Nn.SUCCESS]:xr.statusIndicatorSuccess,[Nn.WARNING]:xr.statusIndicatorWarning,[Nn.ERROR]:xr.statusIndicatorError},Om=e=>{switch(e){case"NEW":return"New";case"COMPLETED":return"Completed";case"CANCELLED":return"Cancelled";case"EXPIRED":return"Expired";case"FAILED":return"Failed";case"FULL_DELIVERY_FAILURE":return"Delivery Failed";case"PARTIALLY_DELIVERED":return"Partial Delivery Failed";case"REFUNDED":return"Refunded";case"PENDING":return"Pending";case"PROCESSING":return"Processing";case"APPROVED":return"Approved";case"DECLINED":return"Declined";case"AUTO_APPROVED":return"Auto Approved";case"PARTIALLY_REFUNDED":return"Partial Refunded"}return e},Gl=({status:e,variant:t=Nn.WARNING})=>{const{isAntistock:n}=g.useGeneralStore(),r=Rm[t];return i.jsxs("div",{className:g.clx(xr.statusIndicator,Mm[t],{[xr.antistockStatus]:n}),children:[i.jsx(r,{}),i.jsx("span",{className:xr.statusIndicatorText,id:"md",children:Om(e)})]})},jm="_checkoutItemsContainer_1kn61_2",Fm="_innerContainer_1kn61_16",Bm="_headerSection_1kn61_22",Hm="_header_1kn61_22",Um="_productsContainer_1kn61_47",Vm="_couponContainer_1kn61_54",$m="_checkoutFooter_1kn61_58",Xn={checkoutItemsContainer:jm,innerContainer:Fm,headerSection:Bm,header:Hm,productsContainer:Um,couponContainer:Vm,checkoutFooter:$m},zm="_checkoutFooter_sum4s_1",qm="_antistock_sum4s_12",Zm="_footerBranding_sum4s_22",Wm="_poweredText_sum4s_27",Ym="_antistockLink_sum4s_31",Gm="_footerNav_sum4s_39",wn={checkoutFooter:zm,antistock:qm,footerBranding:Zm,poweredText:Wm,antistockLink:Ym,footerNav:Gm},Xm="data:image/svg+xml,%3csvg%20width='100'%20height='26'%20viewBox='0%200%20100%2026'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.3996%203.39999V12.8228L16.2964%2014.1313V8.89738L7.69363%2011.587V6.87107L20.3996%203.39999Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M16.2964%2014.1313L16.2962%2018.6292L3.59961%2022.6V12.7592L7.69363%2011.587L7.69344%2016.9118L16.2964%2014.1313Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M95.6308%2022C93.4931%2022%2091.8804%2020.882%2091.4678%2019.1776L93.118%2019.0676C93.4181%2019.984%2094.0931%2020.5338%2095.6308%2020.5338C97.4311%2020.5338%2098.4249%2019.8373%2098.4249%2018.4078V16.8316C97.9374%2017.858%2096.8122%2018.5178%2095.5183%2018.5178C92.9868%2018.5178%2091.1865%2016.575%2091.1865%2013.8076C91.1865%2011.0401%2092.9492%209.09737%2095.4433%209.09737C96.831%209.09737%2098.0499%209.77549%2098.5%2010.8568V9.3173H100V18.3711C100%2020.6438%2098.3687%2022%2095.6308%2022ZM95.5933%2017.0515C97.2998%2017.0515%2098.4062%2015.8053%2098.4249%2013.8076C98.4624%2011.8099%2097.3186%2010.5636%2095.5933%2010.5636C93.8494%2010.5636%2092.8367%2011.8099%2092.8367%2013.8076C92.8367%2015.8053%2093.8869%2017.0515%2095.5933%2017.0515Z'%20fill='%23252525'/%3e%3cpath%20d='M81.1836%2019.0309V9.3173H82.6275L82.665%2011.0584C83.1901%209.72051%2084.3527%209.09737%2085.7217%209.09737C87.9907%209.09737%2089.0783%2010.7285%2089.0783%2012.7812V19.0309H87.5031V13.2211C87.5031%2011.425%2086.8843%2010.4536%2085.3841%2010.4536C83.8464%2010.4536%2082.7588%2011.425%2082.7588%2013.2211V19.0309H81.1836Z'%20fill='%23252525'/%3e%3cpath%20d='M73.3176%2019.2509C71.2549%2019.2509%2069.9609%2018.2795%2069.9609%2016.6117C69.9609%2014.9622%2070.9173%2014.0458%2073.0926%2013.6426L76.618%2013.0011C76.618%2011.37%2075.8304%2010.5636%2074.2552%2010.5636C72.8676%2010.5636%2072.0987%2011.1867%2071.7987%2012.3047L70.1297%2012.1764C70.5048%2010.3436%2072.0049%209.09737%2074.2552%209.09737C76.8056%209.09737%2078.1932%2010.6002%2078.1932%2013.0561V17.0699C78.1932%2017.5097%2078.3433%2017.6747%2078.7183%2017.6747H79.1121V19.0309C78.9996%2019.0493%2078.7558%2019.0676%2078.512%2019.0676C77.3119%2019.0676%2076.7681%2018.6094%2076.6368%2017.5281C76.1492%2018.5361%2074.7803%2019.2509%2073.3176%2019.2509ZM73.4676%2017.8946C75.4554%2017.8946%2076.618%2016.6483%2076.618%2015.0355V14.3391L73.3926%2014.9255C72.0425%2015.1638%2071.6111%2015.6586%2071.6111%2016.4651C71.6111%2017.3814%2072.305%2017.8946%2073.4676%2017.8946Z'%20fill='%23252525'/%3e%3cpath%20d='M63.2168%2022C61.079%2022%2059.4663%2020.882%2059.0537%2019.1776L60.704%2019.0676C61.004%2019.984%2061.6791%2020.5338%2063.2168%2020.5338C65.017%2020.5338%2066.0109%2019.8373%2066.0109%2018.4078V16.8316C65.5233%2017.858%2064.3982%2018.5178%2063.1043%2018.5178C60.5727%2018.5178%2058.7725%2016.575%2058.7725%2013.8076C58.7725%2011.0401%2060.5352%209.09737%2063.0293%209.09737C64.4169%209.09737%2065.6358%209.77549%2066.0859%2010.8568V9.3173H67.5861V18.3711C67.5861%2020.6438%2065.9546%2022%2063.2168%2022ZM63.1793%2017.0515C64.8857%2017.0515%2065.9921%2015.8053%2066.0109%2013.8076C66.0484%2011.8099%2064.9045%2010.5636%2063.1793%2010.5636C61.4353%2010.5636%2060.4227%2011.8099%2060.4227%2013.8076C60.4227%2015.8053%2061.4728%2017.0515%2063.1793%2017.0515Z'%20fill='%23252525'/%3e%3cpath%20d='M56.2141%2019.0309C55.0515%2019.0309%2054.2451%2018.4811%2054.2451%2017.1982L54.2639%206.01834H55.8391V17.0699C55.8391%2017.4731%2056.0453%2017.6747%2056.4579%2017.6747H57.3205V19.0309H56.2141Z'%20fill='%23252525'/%3e%3cpath%20d='M51.0686%2019.0309C49.906%2019.0309%2049.0996%2018.4811%2049.0996%2017.1982L49.1184%206.01834H50.6936V17.0699C50.6936%2017.4731%2050.8998%2017.6747%2051.3124%2017.6747H52.175V19.0309H51.0686Z'%20fill='%23252525'/%3e%3cpath%20d='M44.5209%2019.0309V9.3173H46.0961V19.0309H44.5209ZM44.4834%207.79611V6H46.1336V7.79611H44.4834Z'%20fill='%23252525'/%3e%3cpath%20d='M32%2019.0309V6.01834H36.5756C39.726%206.01834%2041.3012%207.09967%2041.3012%209.51891C41.3012%2010.9851%2040.4198%2012.0481%2038.9384%2012.3047C40.7574%2012.5613%2041.8638%2013.7709%2041.8638%2015.4571C41.8638%2017.8213%2040.2323%2019.0309%2037.3257%2019.0309H32ZM37.3257%2017.4914C39.1447%2017.4914%2040.176%2016.74%2040.176%2015.3654C40.176%2013.9908%2039.1447%2013.1844%2037.3257%2013.1844H33.6127V17.4914H37.3257ZM36.5756%2011.6449C38.5258%2011.6449%2039.6135%2010.8935%2039.6135%209.59222C39.6135%208.21765%2038.6008%207.55786%2036.5756%207.55786H33.6127V11.6449H36.5756Z'%20fill='%23252525'/%3e%3c/svg%3e",zn=({className:e})=>{const{shopTerms:t,shopPrivacyPolicy:n,shopRefundPolicy:r,shopLogo:u}=g.useStorefrontStore(),{isAntistock:a}=g.useGeneralStore(),{settings:s}=g.useSettingsStore();return i.jsxs("footer",{className:`${wn.checkoutFooter} ${e} ${a?wn.antistock:""}`,children:[a&&(s==null?void 0:s.showPoweredBy)&&i.jsxs("div",{className:wn.footerBranding,children:[i.jsx("p",{className:wn.poweredText,id:"md",style:{color:"var(--text-action)"},children:"Powered by"}),i.jsxs("a",{className:wn.antistockLink,href:"https://antistock.io",target:"_blank",rel:"noopener noreferrer",children:[i.jsx(Tl,{width:14,height:18}),"Antistock"]})]}),!a&&i.jsxs("div",{className:wn.footerBranding,children:[i.jsx("p",{className:wn.poweredText,id:"md",children:"Powered by"}),u||i.jsx("img",{src:Xm,alt:"Billgang"})]}),i.jsx("nav",{children:i.jsxs("ul",{className:wn.footerNav,children:[(t==null?void 0:t.showTermsOfServiceOnProduct)&&!a&&i.jsx("li",{children:i.jsx("a",{href:"/terms",children:"Terms"})}),(n==null?void 0:n.showPrivacyPolicyOnProduct)&&i.jsx("li",{children:i.jsx("a",{href:n.privacyPolicy,target:"_blank",rel:"noopener noreferrer",children:"Privacy"})}),(r==null?void 0:r.showRefundPolicyOnProduct)&&i.jsx("li",{children:i.jsx("a",{href:r.refundPolicy,target:"_blank",rel:"noopener noreferrer",children:"Refund"})})]})})]})},Km="_checkoutHeader_1stm3_1",Qm="_leftContainer_1stm3_20",Jm="_backArrow_1stm3_26",e5="_logoContainer_1stm3_38",t5="_logo_1stm3_38",n5="_antistockLink_1stm3_48",fr={checkoutHeader:Km,leftContainer:Qm,backArrow:Jm,logoContainer:e5,logo:t5,antistockLink:n5},r5="_activeBadge_1yb5i_1",u5="_activeBadgeText_1yb5i_12",mo={activeBadge:r5,activeBadgeText:u5},a5=({className:e})=>i.jsxs("div",{className:g.clx(mo.activeBadge,e),children:[i.jsx(N.Icon,{name:"Check",width:20,height:20}),i.jsx("p",{className:mo.activeBadgeText,children:"Active"})]}),s5="_timerContainer_rh66p_2",i5="_timerText_rh66p_12",o5="_timerContainerAntistock_rh66p_16",Za={timerContainer:s5,timerText:i5,timerContainerAntistock:o5},c5=({expiresAt:e})=>{const[t,n]=L.useState(u()),{isAntistock:r}=g.useGeneralStore();function u(){const a=new Date,s=new Date(e).getTime()-a.getTime();if(s<=0)return{hours:"00",minutes:"00",seconds:"00"};const o=Math.floor(s/(1e3*60*60)),c=Math.floor(s%(1e3*60*60)/(1e3*60)),l=Math.floor(s%(1e3*60)/1e3);return{hours:String(o).padStart(2,"0"),minutes:String(c).padStart(2,"0"),seconds:String(l).padStart(2,"0")}}return L.useEffect(()=>{const a=setInterval(()=>{n(u())},1e3);return()=>clearInterval(a)},[e]),t.hours==="00"&&t.minutes==="00"&&t.seconds==="00"?null:r?i.jsxs("div",{className:Za.timerContainerAntistock,children:[i.jsxs("span",{children:[t.hours,":",t.minutes,":",t.seconds]}),i.jsx("span",{children:"remaining"})]}):i.jsxs("div",{className:Za.timerContainer,children:[i.jsx(N.Icon,{name:"Clock"}),i.jsxs("p",{className:Za.timerText,id:"md",children:[t.hours,":",t.minutes,":",t.seconds]})]})},l5="_progressBar_18ijf_4",d5="_progressBarLabel_18ijf_12",f5="_progressBarTrack_18ijf_18",h5="_progressBarFill_18ijf_29",wu={progressBar:l5,progressBarLabel:d5,progressBarTrack:f5,progressBarFill:h5},ui=({color:e,percent:t,disablePercentLabel:n})=>i.jsxs("div",{className:wu.progressBar,children:[!n&&i.jsxs("p",{className:wu.progressBarLabel,children:[t,"%"]}),i.jsx("div",{className:wu.progressBarTrack,children:i.jsx("div",{style:{width:`${t}%`,background:e||void 0},className:wu.progressBarFill})})]}),p5="_rating_1bpps_4",m5="_disabled_1bpps_9",g5="_ratingStar_1bpps_14",b5="_inactive_1bpps_22",Du={rating:p5,disabled:m5,ratingStar:g5,inactive:b5},_5=({setRating:e,rating:t,disabled:n})=>{const[r,u]=L.useState(0),a=o=>{n||u(+o.currentTarget.id)},s=o=>{n||e(o)};return i.jsx("div",{className:g.clx(Du.rating,{[Du.disabled]:n}),onMouseLeave:()=>u(0),children:[1,2,3,4,5].map(o=>i.jsx("div",{id:o.toString(),className:g.clx(Du.ratingStar,{[Du.inactive]:!(t>=o||r>=o)}),onMouseEnter:a,onClick:()=>s(o),children:t>=o||r>=o?i.jsx(Nh,{}):i.jsx(N.Icon,{name:"Star",fill:"var(--text-secondary)",width:22,height:21})},o))})},x5="_inputRange_iv6ow_4",C5="_inputRangeLabel_iv6ow_14",E5="_progressBar_iv6ow_22",y5="_progressBarFill_iv6ow_29",T5="_stepsContainer_iv6ow_40",k5="_step_iv6ow_40",A5="_stepDot_iv6ow_57",S5="_current_iv6ow_61",I5="_active_iv6ow_69",N5="_inactive_iv6ow_72",v5="_tooltip_iv6ow_77",Wt={inputRange:x5,inputRangeLabel:C5,progressBar:E5,progressBarFill:y5,stepsContainer:T5,step:k5,stepDot:A5,current:S5,default:"_default_iv6ow_65",active:I5,inactive:N5,tooltip:v5},w5=({totalSteps:e,step:t,onStepChange:n,label:r})=>{const[u,a]=L.useState(t),s=u===1?0:(u-1)/(e-1)*100,o=c=>{a(c),n(c)};return i.jsxs("div",{className:Wt.inputRange,children:[r&&i.jsx("div",{className:Wt.inputRangeLabel,children:r}),i.jsxs("div",{className:Wt.progressBar,children:[i.jsx("div",{className:Wt.progressBarFill,style:{width:`${Math.ceil(s)}%`}}),i.jsx("div",{className:Wt.stepsContainer,children:[...Array(e)].map((c,l)=>{const h=l+1,f=h<=u,m=h===u;return i.jsxs("div",{className:Wt.step,onClick:()=>o(h),children:[i.jsx("div",{className:g.clx(Wt.stepDot,m?Wt.current:Wt.default,f?Wt.active:Wt.inactive)}),m&&i.jsxs("div",{className:Wt.tooltip,style:{transform:`translateX(calc(50% - ${s<99?"40px":"70px"}))`},children:[i.jsx("span",{children:u}),i.jsx("span",{children:u===1?"month":"months"})]})]},h)})})]})]})},ma=({className:e,expiresAt:t})=>{const{shopGeneral:n}=g.useStorefrontStore(),r=g.useNavigate(),{isAntistock:u}=g.useGeneralStore();return i.jsxs("header",{className:`${fr.checkoutHeader} ${e}`,children:[i.jsxs("div",{className:fr.leftContainer,children:[i.jsx("div",{className:fr.backArrow,onClick:()=>{window.history.length>2?r(-1):r("/")},children:i.jsx(N.Icon,{name:"ArrowUp"})}),(n==null?void 0:n.info.logo)&&i.jsx("div",{className:fr.logoContainer,children:u?i.jsx("a",{className:fr.antistockLink,href:"https://antistock.io",target:"_blank",rel:"noopener noreferrer",children:"Antistock"}):i.jsx("img",{className:fr.logo,src:g.convertCfImageIdToUrl(n.info.logo.cfId,"200")})})]}),t&&i.jsx(c5,{expiresAt:t})]})},D5="_checkoutPrices_7fn88_1",L5="_priceRow_7fn88_12",P5="_label_7fn88_22",R5="_labelContainer_7fn88_26",M5="_tooltipContainer_7fn88_34",O5="_infoIcon_7fn88_40",j5="_tooltip_7fn88_34",F5="_totalRow_7fn88_94",B5="_totalLabel_7fn88_105",H5="_totalValue_7fn88_110",Ge={checkoutPrices:D5,priceRow:L5,label:P5,labelContainer:R5,tooltipContainer:M5,infoIcon:O5,tooltip:j5,totalRow:F5,totalLabel:B5,totalValue:H5},vr=({formatter:e,coupon:t,discount:n,totalWithDiscount:r,total:u,className:a,isShowSubtotal:s=!0,feeOrDiscount:o,serviceFeeAmount:c,replacementLabel:l,replacementAmount:h})=>{const f=Math.max(0,n),[m,p]=L.useState(!1),[b,_]=L.useState(!1),{priceAdjustment:E}=g.useCartStore(),{isAntistock:x}=g.useGeneralStore(),{settings:k}=g.useSettingsStore(),y={isDiscount:!1,fixedAmount:10,percentage:10},S=(()=>{const I=r!==void 0?r:u-f;if((!E||o===null||o===void 0)&&h==null&&(!y||c===null||c===void 0))return Math.max(I,0);let M=I;return E&&o!==null&&o!==void 0&&(E.isDiscount?M=Math.max(M-o,0):M=Math.max(M+o,0)),h!=null&&(M=Math.max(M+h,0)),y&&c!==null&&c!==void 0&&(y.isDiscount?M=Math.max(M-c,0):M=Math.max(M+c,0)),M})();return i.jsxs("div",{className:`${Ge.checkoutPrices} ${a||""}`,style:{border:x?"1px solid var(--border-secondary)":void 0},children:[s&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsx("p",{className:Ge.label,id:"md",children:"Subtotal"}),i.jsx("p",{id:"md",children:e.format(u)})]}),(t||f>0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("p",{className:Ge.label,id:"md",children:["Discount ",t&&!(t!=null&&t.isFixed)&&`(${t==null?void 0:t.discount}%)`]}),i.jsx("p",{id:"md",children:t&&!(t!=null&&t.isFixed)&&(t==null?void 0:t.discount)===100?`-${e.format(u)}`:`-${e.format(f)}`})]}),o!=null&&o!==0&&E&&(E.fixedAmount!==0||E.percentage!==0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsx("p",{className:Ge.label,id:"md",children:E.isDiscount?"Gateway Discount":"Gateway Fee"}),i.jsx("p",{id:"md",children:e.format(o)})]}),h!=null&&h!==0&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("div",{className:Ge.labelContainer,children:[i.jsx("p",{className:Ge.label,id:"md",children:l||"Priority Replacement"}),x&&i.jsxs("div",{className:Ge.tooltipContainer,children:[i.jsx("div",{className:Ge.infoIcon,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),m&&i.jsx("div",{className:Ge.tooltip,children:"This is an optional add-on you enabled to protect your checkout."})]})]}),i.jsx("p",{id:"md",children:e.format(h)})]}),c!=null&&c!==0&&y&&(y.fixedAmount!==0||y.percentage!==0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("div",{className:Ge.labelContainer,children:[i.jsx("p",{className:Ge.label,id:"md",children:y.isDiscount?"Platform Discount":"Platform Fee"}),x&&i.jsxs("div",{className:Ge.tooltipContainer,children:[i.jsx("div",{className:Ge.infoIcon,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),b&&i.jsxs("div",{className:Ge.tooltip,children:["Platform ",y.isDiscount?"discount":"fee",(k==null?void 0:k.showPoweredBy)&&" charged by Antistock"," for processing your payment."]})]})]}),i.jsx("p",{id:"md",children:e.format(c)})]}),i.jsxs("div",{className:Ge.totalRow,children:[i.jsx("p",{className:Ge.totalLabel,id:"md-bold",children:"Total Due"}),i.jsx("p",{className:Ge.totalValue,id:"md-bold",children:e.format(S)})]})]})},U5="_checkoutProduct_8yrle_1",V5="_isOrder_8yrle_1",$5="_productDetails_8yrle_14",z5="_productImage_8yrle_20",q5="_isOrderImage_8yrle_30",Z5="_productImageAntistock_8yrle_34",W5="_image_8yrle_39",Y5="_productInfo_8yrle_44",G5="_productInfoOverrodePrice_8yrle_51",X5="_productHeader_8yrle_55",K5="_quantityBadge_8yrle_61",Q5="_productPrice_8yrle_79",J5="_priceContainer_8yrle_88",e4="_originalPrice_8yrle_97",t4="_overridePrice_8yrle_103",n4="_deliveryCategories_8yrle_107",r4="_customerNote_8yrle_115",u4="_noteHeader_8yrle_122",a4="_logoContainer_8yrle_128",s4="_shopName_8yrle_140",i4="_noteContent_8yrle_144",o4="_productName_8yrle_150",c4="_replacementRequests_8yrle_165",l4="_replacementRequestsTitle_8yrle_175",d4="_replacementButton_8yrle_182",f4="_replacementButtonText_8yrle_186",h4="_replacementRequestsList_8yrle_190",je={checkoutProduct:U5,isOrder:V5,productDetails:$5,productImage:z5,isOrderImage:q5,productImageAntistock:Z5,image:W5,productInfo:Y5,productInfoOverrodePrice:G5,productHeader:X5,quantityBadge:K5,productPrice:Q5,priceContainer:J5,originalPrice:e4,overridePrice:t4,deliveryCategories:n4,customerNote:r4,noteHeader:u4,logoContainer:a4,shopName:s4,noteContent:i4,productName:o4,replacementRequests:c4,replacementRequestsTitle:l4,replacementButton:d4,replacementButtonText:f4,replacementRequestsList:h4},p4="_deliveryItem_1x3fg_1",m4="_deliveryItemText_1x3fg_10",Yr={deliveryItem:p4,deliveryItemText:m4},ws={[Pe.Text]:"View",[Pe.Serial]:"View",[Pe.Ebook]:"View",[Pe.Link]:"Visit",[Pe.Download]:"",[Pe.Custom]:"View",[Pe.Discord]:"Access",[Pe.Telegram]:"Telegram"},Ds={[Pe.Text]:"Content",[Pe.Serial]:"Content",[Pe.Ebook]:"Ebook",[Pe.Link]:"Link",[Pe.Download]:"Download",[Pe.Custom]:"Content",[Pe.Discord]:"Discord",[Pe.Telegram]:"Telegram"},Xl=()=>({[Pe.Text]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Serial]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Ebook]:i.jsx(N.Icon,{name:"BookOpen",fill:"var(--text-secondary)"}),[Pe.Link]:i.jsx(N.Icon,{name:"ArrowLineUpRight",fill:"var(--text-secondary)"}),[Pe.Download]:i.jsx(N.Icon,{name:"DownloadSimple",fill:"var(--text-secondary)"}),[Pe.Custom]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Discord]:i.jsx(N.Icon,{name:"DiscordLogo",fill:"var(--text-secondary)"}),[Pe.Telegram]:i.jsx(N.Icon,{name:"TelegramLogo",fill:"var(--text-secondary)"})}),g4=({deliveryConfiguration:e})=>{const t=e.type;return t===Pe.Text||t===Pe.Custom||t===Pe.Serial||t===Pe.Discord?i.jsx(b4,{deliveryConfiguration:e}):i.jsx(_4,{deliveryConfiguration:e})},b4=({deliveryConfiguration:e})=>{const t=e.type,[n,r]=L.useState(!1),{setIsOpen:u}=g.useModalStore(),{isAntistock:a}=g.useGeneralStore(),s=()=>{u(!0),r(!0)};return i.jsxs(i.Fragment,{children:[a?i.jsx(N.Button,{type:"Secondary",onClick:o=>{o.stopPropagation(),s()},children:i.jsx("p",{className:Yr.deliveryItemText,children:e.customName??`${ws[t]} ${Ds[t]}`})}):i.jsxs(N.Button,{type:"Secondary",className:Yr.deliveryItem,onClick:o=>{o.stopPropagation(),s()},children:[Xl()[t],i.jsx("p",{className:Yr.deliveryItemText,children:e.customName??`${ws[t]} ${Ds[t]}`})]}),n&&i.jsx(N.Modal,{close:()=>r(!1),withAnimation:!a,children:i.jsx(Dd,{deliveryConfiguration:e,setIsOpen:r})})]})},_4=({deliveryConfiguration:e})=>{const t=e.type;return i.jsxs(N.Button,{type:"Secondary",className:Yr.deliveryItem,style:{display:"flex",alignItems:"center",gap:"0.5rem"},onClick:()=>window.open(e.deliveryItems[0].textData,"_blank"),children:[Xl()[t],i.jsx("p",{className:Yr.deliveryItemText,children:e.customName??`${ws[t]} ${Ds[t]}`})]})},x4="_replacementRequestItem_1sd2r_1",C4="_replacementRequestHeader_1sd2r_11",E4="_replacementRequestId_1sd2r_18",y4="_replacementRequestDescription_1sd2r_24",T4="_statusBadge_1sd2r_30",k4="_statusPending_1sd2r_38",A4="_statusApproved_1sd2r_43",S4="_statusDeclined_1sd2r_48",I4="_statusCancelled_1sd2r_53",N4="_replacementModal_1sd2r_58",v4="_replacementModalAntistock_1sd2r_68",w4="_replacementModalHeader_1sd2r_73",D4="_closeButton_1sd2r_87",L4="_replacementModalContent_1sd2r_101",P4="_statusSection_1sd2r_110",R4="_statusTitle_1sd2r_116",M4="_statusDescription_1sd2r_123",O4="_actionButtons_1sd2r_130",j4="_productsSection_1sd2r_137",F4="_productsList_1sd2r_151",B4="_productItem_1sd2r_157",H4="_noProducts_1sd2r_164",U4="_previouslyDeliveredSection_1sd2r_171",V4="_previouslyDeliveredHeader_1sd2r_179",$4="_previouslyDeliveredTitle_1sd2r_186",z4="_caretIcon_1sd2r_192",q4="_caretIconRotated_1sd2r_196",Z4="_previouslyDeliveredContent_1sd2r_200",W4="_previouslyDeliveredProductItem_1sd2r_209",Le={replacementRequestItem:x4,replacementRequestHeader:C4,replacementRequestId:E4,replacementRequestDescription:y4,statusBadge:T4,statusPending:k4,statusApproved:A4,statusDeclined:S4,statusCancelled:I4,replacementModal:N4,replacementModalAntistock:v4,replacementModalHeader:w4,closeButton:D4,replacementModalContent:L4,statusSection:P4,statusTitle:R4,statusDescription:M4,actionButtons:O4,productsSection:j4,productsList:F4,productItem:B4,noProducts:H4,previouslyDeliveredSection:U4,previouslyDeliveredHeader:V4,previouslyDeliveredTitle:$4,caretIcon:z4,caretIconRotated:q4,previouslyDeliveredContent:Z4,previouslyDeliveredProductItem:W4},Y4=({item:e,orderId:t,accessToken:n,onCancel:r})=>{var D,S;const[u,a]=L.useState(!1),[s,o]=L.useState(!1),[c,l]=L.useState(!1),{setIsOpen:h}=g.useModalStore(),{isAntistock:f}=g.useGeneralStore(),{setNotifications:m,notifications:p}=g.useNotificationStore(),b=()=>{h(!0),a(!0)},_=async()=>{var I,M;if(!t||!n){m([...p,{id:g.v4(),message:"Missing order information",status:"error"}]);return}o(!0);try{const H=await y2(t,n,e.id);m([...p,{id:g.v4(),message:((I=H.data)==null?void 0:I.message)||"Replacement request cancelled successfully",status:"success"}]),r==null||r(),a(!1)}catch(H){let U="Failed to cancel replacement request",P="";const B=H;if((M=B==null?void 0:B.response)!=null&&M.data){const O=B.response.data;O.message&&O.errors&&Array.isArray(O.errors)?(P=O.message,U=O.errors.join(", ")):O.errors&&Array.isArray(O.errors)?U=O.errors.join(", "):O.message&&(U=O.message)}else H instanceof Error&&(U=H.message);m([...p,{id:g.v4(),message:U,status:"error",label:P}])}finally{o(!1)}},E=()=>{if(!e.replacementItems||e.replacementItems.length===0){m([...p,{id:g.v4(),message:"No products to copy",status:"error"}]);return}const I=e.replacementItems.map(M=>`${M.originalSerialKey} -> ${M.replacementSerialKey}`).join(`
|
|
59
59
|
`);navigator.clipboard.writeText(I).then(()=>{m([...p,{id:g.v4(),message:"Copied to clipboard",status:"success"}])})},x=()=>{if(!e.replacementItems||e.replacementItems.length===0){m([...p,{id:g.v4(),message:"No products to download",status:"error"}]);return}const I=e.replacementItems.map(P=>`${P.originalSerialKey} -> ${P.replacementSerialKey}`).join(`
|
|
60
|
-
`),M=new Blob([I],{type:"text/plain"}),H=URL.createObjectURL(M),U=document.createElement("a");U.href=H,U.download=`replacement-request-${e.id}.txt`,document.body.appendChild(U),U.click(),document.body.removeChild(U),URL.revokeObjectURL(H)},k=I=>{switch(I){case he.PENDING:case he.PROCESSING:return Le.statusPending;case he.APPROVED:case he.AUTO_APPROVED:case he.COMPLETED:return Le.statusApproved;case he.DECLINED:case he.FAILED:return Le.statusDeclined;case he.CANCELLED:case he.EXPIRED:return Le.statusCancelled;default:return Le.statusPending}},y=I=>{switch(I){case he.PENDING:case he.PROCESSING:return"In Progress";case he.APPROVED:case he.AUTO_APPROVED:case he.COMPLETED:return"Approved";case he.DECLINED:return"Denied";case he.FAILED:return"Failed";case he.CANCELLED:case he.EXPIRED:return"Cancelled";default:return"In Progress"}};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Le.replacementRequestItem,onClick:I=>{I.stopPropagation(),b()},children:[i.jsxs("div",{className:Le.replacementRequestHeader,children:[i.jsxs("span",{className:Le.replacementRequestId,children:["ID: ",e.id]}),i.jsx("span",{className:g.clx(Le.statusBadge,k(e.status)),children:y(e.status)})]}),i.jsxs("div",{className:Le.replacementRequestDescription,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"We're currently investigating your replacement. It may take a minimum of 24-48 hours for our team to get back to you.",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"We've approved your replacement request. Your replaced products are attached to this section.",e.status===he.DECLINED&&"We've denied your replacement request. You will not be able to request a replacement for these products in the future.",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your replacement request has been cancelled."]})]}),u&&i.jsx(N.Modal,{close:()=>a(!1),withAnimation:!f,children:i.jsxs("div",{className:g.clx(Le.replacementModal,{[Le.replacementModalAntistock]:f}),onClick:I=>I.stopPropagation(),children:[i.jsxs("div",{className:Le.replacementModalHeader,children:[i.jsx("h3",{id:"h3",children:"Replacement Request"}),i.jsx("button",{className:Le.closeButton,onClick:()=>a(!1),children:i.jsx(N.Icon,{name:"X"})})]}),i.jsxs("div",{className:Le.replacementModalContent,children:[i.jsxs("div",{className:Le.statusSection,children:[i.jsx("span",{className:g.clx(Le.statusBadge,k(e.status)),children:y(e.status)}),i.jsxs("h4",{className:Le.statusTitle,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"Your Replacement Is In Progress",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"Your Replacement Was Approved",e.status===he.DECLINED&&"Your Replacement Was Denied",e.status===he.FAILED&&"Your Replacement Was Failed",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your Replacement Was Cancelled"]}),i.jsxs("p",{className:Le.statusDescription,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"We're currently investigating your request. It may take a minimum of 24-48 hours for our team to get back to you.",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"We've approved your replacement request. Your replaced products are attached below.",e.status===he.DECLINED&&"We've denied your replacement request. You will not be able to request a replacement for these products in the future.",e.status===he.FAILED&&"We've failed your replacement request. You will not be able to request a replacement for these products in the future.",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your replacement request has been cancelled."]})]}),(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Le.productsSection,children:[i.jsxs("div",{className:Le.actionButtons,children:[i.jsxs(N.Button,{type:"Secondary",onClick:E,style:{display:"flex",alignItems:"center",gap:"5px",height:"32px"},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy"]}),i.jsxs(N.Button,{type:"Secondary",onClick:x,style:{display:"flex",alignItems:"center",gap:"5px",height:"32px"},children:[i.jsx(N.Icon,{name:"ArrowLineDown"}),"Download"]})]}),i.jsx("div",{className:Le.productsList,children:(D=e.replacementItems)==null?void 0:D.map((I,M)=>i.jsx("div",{className:Le.productItem,children:i.jsx("span",{children:I.replacementSerialKey})},M))})]}),i.jsxs("div",{className:Le.previouslyDeliveredSection,children:[i.jsxs("div",{className:Le.previouslyDeliveredHeader,onClick:()=>l(!c),children:[i.jsx("span",{className:Le.previouslyDeliveredTitle,children:"Previously Delivered Products"}),i.jsx(N.Icon,{name:"CaretDown",width:16,height:16,fill:"var(--text-secondary)",className:g.clx(Le.caretIcon,{[Le.caretIconRotated]:c})})]}),c&&i.jsx("div",{className:Le.previouslyDeliveredContent,children:((S=e.replacementItems)==null?void 0:S.map((I,M)=>i.jsx("div",{className:Le.previouslyDeliveredProductItem,children:i.jsx("span",{children:I.originalSerialKey})},M)))||i.jsx("div",{className:Le.noProducts,children:"No products found"})})]})]})]}),i.jsx("div",{className:Le.replacementModalFooter,children:e.status===he.PENDING&&i.jsx(N.Button,{type:"Secondary",onClick:_,disabled:s,style:{width:"fit-content",margin:"0 auto 8px"},children:s?"CANCELLING...":"CANCEL REPLACEMENT REQUEST"})})]})})]})},G4="_replacementModal_1f8b8_1",X4="_replacementModalAntistock_1f8b8_12",K4="_replacementModalHeader_1f8b8_17",Q4="_title_1f8b8_25",J4="_closeButton_1f8b8_32",e8="_replacementModalContent_1f8b8_46",t8="_bottomSheet_1f8b8_53",n8="_content_1f8b8_61",r8="_productReplaceContainer_1f8b8_65",u8="_scrollableBox_1f8b8_76",a8="_searchContainer_1f8b8_90",s8="_productItem_1f8b8_94",i8="_productItemError_1f8b8_125",o8="_scrollIndicator_1f8b8_129",c8="_noResults_1f8b8_138",l8="_replacementForm_1f8b8_148",d8="_formField_1f8b8_155",f8="_replacementModalFooter_1f8b8_355",h8="_fieldError_1f8b8_361",p8="_requestButton_1f8b8_367",We={replacementModal:G4,replacementModalAntistock:X4,replacementModalHeader:K4,title:Q4,closeButton:J4,replacementModalContent:e8,bottomSheet:t8,content:n8,productReplaceContainer:r8,scrollableBox:u8,searchContainer:a8,productItem:s8,productItemError:i8,scrollIndicator:o8,noResults:c8,replacementForm:l8,formField:d8,replacementModalFooter:f8,fieldError:h8,requestButton:p8},m8=({isOpen:e,onClose:t,product:n,orderId:r,accessToken:u,onSuccess:a,allowedReplacementReasons:s})=>{const{isAntistock:o}=g.useGeneralStore(),{setNotifications:c,notifications:l}=g.useNotificationStore(),[h,f]=L.useState(null),[m,p]=L.useState((s==null?void 0:s[0])||""),[b,_]=L.useState(""),[E,x]=L.useState(""),[k,y]=L.useState([]),[D,S]=L.useState(!1),[I,M]=L.useState({}),H=L.useRef(null),U=L.useRef(null),P=L.useRef(null),B=L.useMemo(()=>{var C;return((C=n.deliveryCategories)==null?void 0:C.filter(V=>V.type==="SERIALS").flatMap(V=>V.deliveryItems))||[]},[n.deliveryCategories]),O=L.useMemo(()=>n.replacementRequests?new Set(n.replacementRequests.flatMap(C=>C.replacementItems||[]).map(C=>C.originalSerialKey)):new Set,[n.replacementRequests]),X=L.useMemo(()=>B.filter(C=>!O.has(C.serialKey)),[B,O]),Y=L.useMemo(()=>new nl.Fuse(X,{keys:["serialKey"],threshold:.4}),[X]),K=L.useMemo(()=>E.trim()?Y.search(E).map(C=>C.item):X,[E,Y,X]),ue=C=>{y(V=>V.includes(C)?V.filter(te=>te!==C):[...V,C]),I.selectedItems&&M(V=>({...V,selectedItems:void 0}))},ae=()=>{y([]),f(null),p((s==null?void 0:s[0])||""),_(""),x(""),M({})},se=()=>{ae(),t()},_e=async()=>{var V,te,v,J;M({});const C={};if(k.length===0&&(C.selectedItems="Please select at least one item to replace"),(!h||h.length===0)&&(C.images="Please add at least one image"),m.trim()||(C.reason="Please select a reason for replacement"),Object.keys(C).length>0){M(C),setTimeout(()=>{C.selectedItems&&H.current?H.current.scrollIntoView({behavior:"smooth",block:"center"}):C.images&&U.current?U.current.scrollIntoView({behavior:"smooth",block:"center"}):C.reason&&P.current&&P.current.scrollIntoView({behavior:"smooth",block:"center"})},100);return}if(!r||!u){c([...l,{id:g.v4(),message:"Missing order information",status:"error"}]);return}S(!0);try{if(!n.partOrderId){c([...l,{id:g.v4(),message:"Part order ID is required",status:"error"}]);return}const ne=await C2(r,u,{partOrderId:n.partOrderId,deliveryItemIds:k,imageIds:(h==null?void 0:h.map(Q=>Q.id))||[],reason:m,message:b});c([...l,{id:g.v4(),message:((V=ne.data)==null?void 0:V.message)||"Replacement request submitted successfully",status:"success"}]),(te=ne.data)!=null&&te.id&&((v=ne.data)!=null&&v.status)&&(a==null||a({id:ne.data.id,status:ne.data.status})),se()}catch(ne){console.log({error:ne});let Q="Failed to submit replacement request",de="";const le=ne;if((J=le==null?void 0:le.response)!=null&&J.data){const ie=le.response.data;ie.message&&ie.errors&&Array.isArray(ie.errors)?(de=ie.message,Q=ie.errors.join(", ")):ie.errors&&Array.isArray(ie.errors)?Q=ie.errors.join(", "):ie.message&&(Q=ie.message)}else ne instanceof Error&&(Q=ne.message);c([...l,{id:g.v4(),message:Q,status:"error",label:de}])}finally{S(!1)}};return!e||X.length===0?null:i.jsx(N.Modal,{close:se,withAnimation:!o,children:i.jsxs("div",{className:g.clx(We.replacementModal,{[We.replacementModalAntistock]:o}),onClick:C=>C.stopPropagation(),children:[i.jsxs("div",{className:We.replacementModalHeader,children:[i.jsx("h3",{id:"h3 ",className:We.title,children:"Request Replacement"}),i.jsx("button",{className:We.closeButton,onClick:se,children:i.jsx(N.Icon,{name:"X"})})]}),i.jsx("div",{className:We.replacementModalContent,children:i.jsx("div",{className:We.bottomSheet,children:i.jsxs("div",{className:We.content,children:[i.jsx(N.Tip,{type:"info",message:"Info: Based on your replacement policy, it may take up to 24-48 hours for our team to review your request.",showCloseButton:!1,style:{marginBottom:"16px"}}),i.jsxs("div",{className:We.productReplaceContainer,children:[i.jsx("div",{className:We.searchContainer,children:i.jsx(N.Input,{onChange:C=>{x(C)},isSearch:!0,value:E,placeholder:"Search for delivered stock",label:"Product Replace List *"})}),i.jsx("div",{ref:H,className:g.clx(We.scrollableBox,{[We.scrollableBoxAntistock]:o}),children:K.length>0?K.map(C=>i.jsxs("div",{className:g.clx(We.productItem,{[We.productItemError]:I.selectedItems&&!k.includes(C.id)}),onClick:()=>ue(C.id),children:[i.jsx(N.Checkbox,{value:k.includes(C.id),onChange:()=>ue(C.id)}),i.jsx("span",{children:C.serialKey})]},C.id)):i.jsx("div",{className:We.noResults,children:i.jsxs("p",{children:['No items found matching "',E,'"']})})}),I.selectedItems&&i.jsx("div",{className:We.fieldError,children:I.selectedItems}),i.jsx("div",{className:We.scrollIndicator,children:i.jsx("p",{children:"To continue with your replacement request, scroll down."})})]}),i.jsxs("div",{className:We.replacementForm,children:[i.jsx("div",{className:We.formField,ref:U,children:i.jsx(N.ImagesLoader,{images:h,onChange:C=>{f(C),I.images&&M(V=>({...V,images:void 0}))},multiple:!0,label:"Images",required:!0,enablePaste:e})}),i.jsx("div",{className:We.formField,ref:P,children:i.jsx(N.Select,{options:(s==null?void 0:s.filter(C=>C!==m))||[],onChange:C=>{p(C),I.reason&&M(V=>({...V,reason:void 0}))},value:m,isSearch:!1,label:"Reason *",isMaxLength:!1,error:I.reason})}),i.jsx("div",{className:We.formField,children:i.jsx(N.Textarea,{placeholder:"Use this space to provide our team with additional details regarding your replacement request.",onChange:_,label:"Your Message (Optional)",value:b})})]})]})})}),i.jsx("div",{className:We.replacementModalFooter,children:i.jsx(N.Button,{type:"Primary",className:We.requestButton,onClick:_e,disabled:D,children:D?"SUBMITTING...":"REQUEST REPLACEMENT"})})]})})},ga=({isOrder:e,product:t,isApplicableForReplacement:n,orderId:r,accessToken:u,allowedReplacementReasons:a})=>{var M;const{shopGeneral:s}=g.useStorefrontStore(),o=t.subscriptionSettings,{cart:c}=hu(),{isAntistock:l}=g.useGeneralStore(),[h,f]=L.useState(!1),{setIsOpen:m}=g.useModalStore(),p=L.useMemo(()=>t.replacementRequests?new Set(t.replacementRequests.flatMap(H=>H.replacementItems||[]).map(H=>H.originalSerialKey)):new Set,[t.replacementRequests]),b=L.useMemo(()=>{var U;return(((U=t.deliveryCategories)==null?void 0:U.filter(P=>P.type==="SERIALS").flatMap(P=>P.deliveryItems))||[]).filter(P=>!p.has(P.serialKey)).length},[t.deliveryCategories,p]),_=t.processingInfo,[E,x]=L.useState(null),[k,y]=L.useState(!1),[D,S]=L.useState(null);L.useEffect(()=>{if(!_){x(null),y(!1),S(null);return}const H=()=>{const P=Date.now(),B=new Date(_.processingStartTime).getTime(),O=P-B,X=_.expectedProcessingMs;if(S(O>0?O:0),O<=0||X<=0){x(0),y(!1);return}if(O<X){const Y=Math.min(100,Math.max(0,O/X*100));x(Math.round(Y)),y(!1)}else x(100),y(!0)};H();const U=window.setInterval(H,1e3);return()=>{window.clearInterval(U)}},[_]);const I=()=>{m(!0),f(!0)};return i.jsxs("div",{className:`${je.checkoutProduct} ${e?je.isOrder:""}`,children:[i.jsxs("div",{className:je.productDetails,children:[i.jsx("div",{className:`${je.productImage} ${e?je.isOrderImage:""} ${l?je.productImageAntistock:""}`,children:t!=null&&t.image?i.jsx("img",{className:je.image,src:g.convertCfImageIdToUrl(t.image.cfId,"100")}):i.jsx(N.Icon,{name:"Image",fill:"var(--text-secondary)"})}),i.jsx("div",{className:g.clx(je.productInfo,{[je.productInfoOverrodePrice]:t.variantsGateways&&c.gateway&&t.variantsGateways.some(H=>H.name===c.gateway&&H.overrodePrice)}),children:i.jsxs("div",{className:je.productHeader,children:[i.jsx("h2",{className:je.productName,id:"h5",children:t.name}),i.jsxs("span",{className:je.quantityBadge,id:"md",children:[t.price.quantity,"x"]})]})}),t.chargeType==="RECURRING"&&i.jsx("p",{className:je.productPrice,id:"md",children:o&&`${g.formatPrice(o.price)} / ${g.normalizeInterval(o.recurringIntervalDays||0)}${o.entryFee?" + "+g.formatPrice(o.entryFee):""}`}),t.chargeType==="ONE_TIME"&&i.jsx(i.Fragment,{children:t.variantsGateways&&c.gateway&&t.variantsGateways.some(H=>H.name===c.gateway&&H.overrodePrice)?i.jsxs("div",{className:je.priceContainer,children:[i.jsx("span",{className:je.originalPrice,id:"md",children:g.formatPrice(t.price)}),i.jsx("span",{className:je.overridePrice,id:"md",children:g.formatPrice(((M=t.variantsGateways.find(H=>H.name===c.gateway))==null?void 0:M.overrodePrice)||t.price)})]}):i.jsx("p",{className:je.productPrice,id:"md",children:g.formatPrice(t.price)})})]}),_&&i.jsx("div",{style:{marginTop:"1.5rem",marginBottom:"0.5rem",width:"100%"},children:!k&&E!==null?i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",color:"var(--text-secondary)",fontSize:"var(--font-size-sm)"},children:[i.jsx("span",{children:"Processing..."}),i.jsxs("span",{children:["Time Passed:"," ",(()=>{if(D===null||D<0)return"00:00:00";const H=Math.floor(D/1e3),U=Math.floor(H/3600).toString().padStart(2,"0"),P=Math.floor(H%3600/60).toString().padStart(2,"0"),B=(H%60).toString().padStart(2,"0");return`${U}:${P}:${B}`})()]})]}),i.jsx(ui,{percent:E})]}):i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[i.jsx(N.Loader,{style:{color:"var(--text-primary)"}}),i.jsx(N.Tip,{id:"processing-tip",type:"info",padding:0,showCloseButton:!1,message:`This order is taking longer than expected, but we are still working on your delivery. If it is not processed before ${_.processingExpiresAt?new Date(_.processingExpiresAt).toLocaleString():""}, your payment will be automatically refunded.`})]})}),t.deliveryCategories&&i.jsx("div",{className:je.deliveryCategories,children:t.deliveryCategories.map(H=>i.jsx(g4,{deliveryConfiguration:H},H.id))}),t.customerNote&&i.jsxs("div",{className:je.customerNote,style:l?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsxs("div",{className:je.noteHeader,children:[(s==null?void 0:s.info.logo)&&i.jsx("div",{className:je.logoContainer,children:i.jsx("img",{src:g.convertCfImageIdToUrl(s==null?void 0:s.info.logo.cfId,"200")})}),i.jsx("p",{className:je.shopName,id:"md",children:s==null?void 0:s.info.name})]}),i.jsx("p",{className:je.noteContent,id:"md",children:t.customerNote})]}),t.replacementRequests&&t.replacementRequests.length===0&&n&&b>0&&i.jsx(N.Button,{type:"Secondary",className:je.replacementButton,onClick:H=>{H.stopPropagation(),I()},children:i.jsx("p",{className:je.replacementButtonText,children:"Request Replacement"})}),t.replacementRequests&&t.replacementRequests.length>0&&n&&i.jsxs("div",{className:je.replacementRequests,children:[i.jsx("h4",{className:je.replacementRequestsTitle,children:"Replacements"}),i.jsx("div",{className:je.replacementRequestsList,children:t.replacementRequests.map(H=>i.jsx(Y4,{item:H,orderId:r,accessToken:u,onCancel:()=>{}},H.id))}),b>0&&i.jsx(N.Button,{type:"Secondary",onClick:H=>{H.stopPropagation(),I()},children:i.jsx("p",{className:je.replacementButtonText,children:"Request New Replacement"})})]}),i.jsx(m8,{isOpen:h,onClose:()=>f(!1),product:t,orderId:r,accessToken:u,allowedReplacementReasons:a})]})},g8="_coupon_dkjzv_1",b8="_couponApplied_dkjzv_7",_8="_discount_dkjzv_17",x8="_removeButton_dkjzv_23",C8="_removeButtonText_dkjzv_27",E8="_couponInput_dkjzv_31",y8="_couponInputContainer_dkjzv_37",wn={coupon:g8,couponApplied:b8,discount:_8,removeButton:x8,removeButtonText:C8,couponInput:E8,couponInputContainer:y8},T8=({applyCoupon:e,couponData:t,discount:n,removeCoupon:r,gateway:u})=>{const[a,s]=L.useState(null),[o,c]=L.useState(!1),{isAntistock:l}=g.useGeneralStore();return i.jsxs("div",{className:wn.coupon,children:[o&&i.jsx(ir,{speed:2,width:500,height:48,viewBox:"0 0 500 48",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:wn.skeleton,style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"100%",height:"48"})}),!o&&(t?i.jsxs("div",{className:wn.couponApplied,style:l?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"}),i.jsxs("p",{id:"md",style:{color:l?"var(--text-primary)":void 0},children:[a," is applied"," ",i.jsxs("span",{className:wn.discount,children:["-",n," ",!t.isFixed&&`(${t.discount}%)`]})]}),i.jsx("button",{className:wn.removeButton,onClick:r,children:i.jsx("span",{className:wn.removeButtonText,children:"Remove"})})]}):i.jsxs("div",{className:wn.couponInput,children:[i.jsxs("div",{className:wn.couponInputContainer,children:[i.jsx(N.Input,{placeholder:"Enter a discount code",value:a||"",onChange:h=>{s(h===""?null:h)}}),i.jsx(N.Button,{onClick:async()=>{c(!0),a&&await e(a),c(!1)},disabled:!u||!a,type:"Primary",children:"Apply"})]}),!l&&!u&&i.jsx(N.Tip,{type:"warning",message:"The discount is related to the method of payment. Select to enter.",id:"md"})]}))]})},Kl=({cart:e,products:t,applyCoupon:n,applyCouponPending:r,coupon:u,totalAndDiscount:a,removeCoupon:s})=>{const{priceAdjustment:o,serviceFee:c,replacementConfig:l}=g.useCartStore(),[h,f]=L.useState(!1),m=L.useMemo(()=>e.parts.map(y=>{const D=t.find(I=>I.id===y.productId),S=D==null?void 0:D.variants.find(I=>I.id===y.productVariantId);return y.chargeType==="RECURRING"&&f(!0),{id:(D==null?void 0:D.id)||0,image:D==null?void 0:D.images[0],name:(()=>{const I=(D==null?void 0:D.name)||"",M=(S==null?void 0:S.name)||"";return!I&&!M?"":!M||I===M?I:I?`${I} (${M})`:M})(),description:"",price:{quantity:y.quantity,amount:(S==null?void 0:S.price.amount)||0,currency:S==null?void 0:S.price.currency},subscriptionSettings:S==null?void 0:S.subscriptionSettings,chargeType:y.chargeType,variantsGateways:S==null?void 0:S.gateways}}),[e,t]),p=L.useMemo(()=>{const y=m[0];if(y!=null&&y.variantsGateways&&e.gateway){const D=y.variantsGateways.find(S=>S.name===e.gateway&&S.overrodePrice);if(D!=null&&D.overrodePrice)return D.overrodePrice.currency}return(y==null?void 0:y.price.currency)||"USD"},[m,e.gateway]),b=new Intl.NumberFormat("en-US",{style:"currency",currency:p}),_=L.useMemo(()=>u&&!u.isFixed&&u.discount===100||u&&u.isFixed&&u.discount&&u.discount>=a.total?a.total:a.totalWithDiscount?a.total-a.totalWithDiscount:0,[a,u]),E=o?(o==null?void 0:o.fixedAmount)+Math.round((a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_)*((o==null?void 0:o.percentage)/100)):null,x=L.useMemo(()=>{const y=e.usePriorityReplacement===!0,D=y?l==null?void 0:l.priorityReplacement:null;if(!y||!(D!=null&&D.enabled))return{label:"",amount:null};const S=a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_,I=(D.fixedFee||0)+S*(D.feePercentage||0)/100;return{label:D.name||"Priority Replacement",amount:I}},[e.usePriorityReplacement,l,a,_]),k=L.useMemo(()=>{if(!c)return null;const y=a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_,I=((o&&E!==null&&E!==void 0?o.isDiscount?y-E:y+E:y)+(x.amount||0))*(c.percentage/100);return c.fixedAmount+I},[c,a,_,o,E,x]);return i.jsx("div",{className:Xn.checkoutItemsContainer,children:i.jsxs("div",{className:Xn.innerContainer,children:[i.jsx(ma,{}),i.jsxs("div",{className:Xn.headerSection,children:[i.jsx("header",{className:Xn.header,children:i.jsx("h1",{id:"h3",children:"Checkout"})}),i.jsx("div",{className:Xn.productsContainer,children:m.map(y=>i.jsx(ga,{product:y},y.id))}),i.jsx("div",{className:Xn.couponContainer,children:i.jsx(T8,{applyCoupon:n,applyCouponPending:r,couponData:u,discount:b.format(_),removeCoupon:s,gateway:e.gateway})}),i.jsx(vr,{formatter:b,coupon:u,total:a.total,discount:_,totalWithDiscount:a.totalWithDiscount,feeOrDiscount:h?null:E,serviceFeeAmount:h?null:k,replacementLabel:x.amount?x.label:"",replacementAmount:h?null:x.amount})]}),i.jsx("div",{className:Xn.checkoutFooter,children:i.jsx(zn,{})})]})})},k8="_checkoutOperational_a8jyy_1",A8="_innerContainer_a8jyy_16",S8="_innerContainerAntistock_a8jyy_26",I8="_paymentMethodsSectionAntistock_a8jyy_38",N8="_continueButtonAntistock_a8jyy_48",v8="_checkoutFooterAntistock_a8jyy_58",w8="_antistock_a8jyy_69",D8="_checkoutOperationalAntistock_a8jyy_74",L8="_loginSection_a8jyy_85",P8="_paymentMethodsSection_a8jyy_38",R8="_socialConnectSection_a8jyy_99",M8="_socialConnectLabel_a8jyy_102",O8="_socialConnectContent_a8jyy_106",j8="_continueButton_a8jyy_48",F8="_button_a8jyy_114",B8="_checkoutFooter_a8jyy_58",ft={checkoutOperational:k8,innerContainer:A8,innerContainerAntistock:S8,paymentMethodsSectionAntistock:I8,continueButtonAntistock:N8,checkoutFooterAntistock:v8,antistock:w8,checkoutOperationalAntistock:D8,loginSection:L8,paymentMethodsSection:P8,socialConnectSection:R8,socialConnectLabel:M8,socialConnectContent:O8,continueButton:j8,button:F8,checkoutFooter:B8},H8="_customFields_uhcib_2",U8="_checkboxWrapper_uhcib_9",V8="_textareaWrapper_uhcib_16",$8="_inputWrapper_uhcib_17",z8="_requiredStar_uhcib_27",gr={customFields:H8,checkboxWrapper:U8,textareaWrapper:V8,inputWrapper:$8,requiredStar:z8},Ql=({customFields:e,setCustomFields:t})=>{if(e.length===0)return null;const n=e.map(r=>i.jsx(Jl,{customField:r,setCustomFields:t},r.name));return i.jsx("div",{className:gr.customFields,children:n})},Jl=({customField:e,setCustomFields:t})=>{const n=r=>{t(u=>u.map(a=>a.name===e.name?{...a,value:r}:a))};return i.jsx(q8,{value:e.value??"",placeholder:e.placeholder,required:e.required,defaultValue:e.defaultValue,type:e.type,onValueChange:n,label:e.name,regex:e.regex})},q8=({label:e,type:t,defaultValue:n,value:r,placeholder:u,regex:a,required:s,onValueChange:o})=>{if(L.useEffect(()=>{r===""&&n!==void 0&&o(String(n))},[]),t===jn.Checkbox)return i.jsxs("label",{className:gr.checkboxWrapper,children:[i.jsx(N.CheckboxSettings,{value:r==="true",onChange:l=>o(l?"true":"false")}),i.jsxs("p",{className:gr.checkboxLabel,children:[e,s&&i.jsx("span",{className:gr.requiredStar,children:"*"})]})]});if(t===jn.Hidden)return i.jsx("input",{type:"hidden",value:String(n??""),required:s});const c=l=>{let h;if(t===jn.Number)h=/^\d*$/;else if(a)try{h=new RegExp(a)}catch(f){console.error("Invalid regex pattern:",a,f),h=/.*/}else h=/.*/;h.test(l)&&o(l)};return t===jn.Textarea?i.jsx("div",{className:gr.textareaWrapper,children:i.jsx(N.Textarea,{label:e,value:r,placeholder:u,onChange:c,required:s})}):i.jsx("div",{className:gr.inputWrapper,children:i.jsx(N.Input,{type:t===jn.Number?"number":"text",placeholder:t===jn.Number?"Type something number...":u,label:e,value:r,required:s,onChange:c})})},Z8="_connectedContainer_1rxr8_1",W8="_userInfo_1rxr8_10",Y8="_avatar_1rxr8_16",G8="_avatarImage_1rxr8_26",Lu={connectedContainer:Z8,userInfo:W8,avatar:Y8,avatarImage:G8},e0=({customerEmail:e})=>{const{discordInfo:t,setDiscordInfo:n}=g.useDiscordStore(),{notifications:r,setNotifications:u}=g.useNotificationStore(),[a,s]=L.useState(!1),[o,c]=L.useState(0),[l,h]=L.useState(null),f=20,m=_=>{var E,x,k,y;return(x=(E=_==null?void 0:_.response)==null?void 0:E.data)!=null&&x.error?_.response.data.error:(y=(k=_==null?void 0:_.response)==null?void 0:k.data)!=null&&y.message?_.response.data.message:_!=null&&_.message?_.message:"Failed to connect to Discord. Please try again later."},p=(_,E)=>{u([...r,{id:g.v4(),message:_,status:E}])};L.useEffect(()=>{if(l&&a){const _=setInterval(()=>{l.closed&&(clearInterval(_),s(!1),h(null))},1e3);return()=>clearInterval(_)}},[l,a]);const b=()=>{e.trim()!==""&&(s(!0),c(0),$2({customerEmail:e,tsId:g.useGetTsId()}).then(({data:_})=>{const E=window.open(_.redirectUrl);h(E),(!E||E.closed||typeof E.closed>"u")&&setTimeout(()=>{const y=document.createElement("a");y.href=_.redirectUrl,y.target="_blank",y.click()});let x;const k=()=>{if(c(y=>y+1),o>=f||E&&E.closed){o>=f&&p("Authorization timeout. Please try again.","error"),s(!1),clearTimeout(x);return}z2({id:_.id,customerEmail:e}).then(({data:y})=>{n({authorized:!0,id:_.id,avatar:y.avatar,username:y.username}),E&&E.close(),s(!1),h(null),p("Discord successfully connected!","success"),clearTimeout(x)}).catch(y=>{var D;if(console.log("Waiting for authorization...",y,{newWindow:E}),E&&E.closed){s(!1),clearTimeout(x);return}if((D=y==null?void 0:y.response)!=null&&D.status&&y.response.status!==404&&y.response.status>=400){p(m(y),"error"),s(!1),clearTimeout(x);return}clearTimeout(x),x=setTimeout(k,1500)})};k()}).catch(_=>{console.log("Could not initiate Discord authorization",_),p(m(_),"error"),s(!1)}))};return t!=null&&t.authorized?i.jsxs("div",{className:Lu.connectedContainer,children:[i.jsxs("div",{className:Lu.userInfo,children:[i.jsx("div",{className:Lu.avatar,children:t.avatar?i.jsx("img",{className:Lu.avatarImage,src:`https://cdn.discordapp.com/avatars/${t.id}/${t.avatar}.png?size=256`}):i.jsx(N.Icon,{name:"UserCircle"})}),i.jsx("p",{children:t.username}),i.jsx(a5,{})]}),i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Reconnect"})]}):i.jsx(N.Button,{type:"Secondary",onClick:b,style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px"},disabled:a,children:a?i.jsx(N.Loader,{}):i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"DiscordLogo"}),i.jsx(ll,{children:"Connect Your Discord"})]})})},X8="_paymentMethodsContainer_1pfqr_2",K8="_antistock_1pfqr_15",go={paymentMethodsContainer:X8,antistock:K8},Q8="_paymentMethod_1it0n_3",J8="_selected_1it0n_16",e7="_alignColumn_1it0n_19",t7="_reversed_1it0n_25",n7="_antistock_1it0n_29",r7="_paymentText_1it0n_36",u7="_balanceText_1it0n_50",a7="_signInLink_1it0n_54",s7="_iconContainer_1it0n_63",i7="_gatewayLogo_1it0n_76",o7="_poweredByLogo_1it0n_77",c7="_logo_1it0n_82",De={paymentMethod:Q8,selected:J8,alignColumn:e7,reversed:t7,antistock:n7,paymentText:r7,balanceText:u7,signInLink:a7,iconContainer:s7,gatewayLogo:i7,poweredByLogo:o7,logo:c7},l7="_bottomSheet_1x8kc_1",d7="_content_1x8kc_8",f7="_description_1x8kc_11",h7="_title_1x8kc_15",p7="_buttonGroup_1x8kc_19",m7="_buttonWrapper_1x8kc_29",g7="_fullWidthButton_1x8kc_32",b7="_modal_1x8kc_36",_7="_header_1x8kc_43",En={bottomSheet:l7,content:d7,description:f7,title:h7,buttonGroup:p7,buttonWrapper:m7,fullWidthButton:g7,modal:b7,header:_7},x7=({setIsOpen:e,balance:t})=>{const n=g.useNavigate(),{setIsOpen:r}=g.useModalStore(),u=()=>{n("/top-up?redirectRoute=checkout")};function a(){r(!1),setTimeout(()=>{e(!1)},300)}return i.jsxs("div",{className:En.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:En.header,children:[i.jsx("h3",{id:"h3",className:En.title,children:"Insufficient Customer Balance"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:En.bottomSheet,children:[i.jsx("div",{className:En.content,children:i.jsxs("p",{className:En.description,children:["You currently have ",t&&g.formatPrice(t)," in your balance. After topping up the required amount, you can continue to checkout."]})}),i.jsxs("div",{className:En.buttonGroup,children:[i.jsx("div",{className:En.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:a,children:"Cancel"})}),i.jsx("div",{className:En.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",onClick:u,children:"Add Balance"})})]})]})]})},ai=({align:e,gateway:t,gatewayDisplayName:n,selected:r,onSelect:u,total:a,onSignInClick:s,reversed:o,isAntistock:c=!1})=>{const{token:l}=g.useStorefrontStore(),{balance:h}=g.useCustomerDashboardStore(),[f,m]=L.useState(!1),{setIsOpen:p}=g.useModalStore(),b=_=>{_.stopPropagation(),u==null||u(t),h&&h.amount<a&&(m(!0),p(!0))};return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:g.clx(De.paymentMethod,{[De.selected]:r,[De.alignColumn]:e==="column",[De.reversed]:o&&!c,[De.antistock]:c}),onClick:b,children:c?i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:De.paymentText,id:"md",children:[n," ",i.jsxs("span",{className:De.balanceText,id:"md",children:["(",l?h&&g.formatPrice(h):i.jsx("a",{className:De.signInLink,onClick:s,id:"md",children:"Sign in"}),")"]})]}),i.jsx("div",{className:De.iconContainer,children:i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20})})]}):i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:De.paymentText,id:"md",children:[n," ",i.jsxs("span",{className:De.balanceText,id:"md",children:["(",l?h&&g.formatPrice(h):i.jsx("a",{className:De.signInLink,onClick:s,id:"md",children:"Sign in"}),")"]})]}),i.jsx("div",{className:De.iconContainer,children:i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20})})]})}),f&&i.jsx(N.Modal,{close:()=>m(!1),children:i.jsx(x7,{setIsOpen:m,balance:h})})]})};var Ue=(e=>(e.BankCard="BANK_CARD",e.BankTransfer="BANK_TRANSFER",e.PayPal="PAYPAL",e.CashApp="CASHAPP",e.Crypto="CRYPTO",e.AppleGooglePay="APPLE_AND_GOOGLE_PAY",e.Custom="CUSTOM",e.Klarna="KLARNA",e))(Ue||{});const C7={[Ue.CashApp]:i.jsx(gl,{}),[Ue.AppleGooglePay]:i.jsx(xl,{}),[Ue.BankCard]:i.jsx(ml,{}),[Ue.Crypto]:i.jsx(hl,{}),[Ue.PayPal]:i.jsx(bl,{}),[Ue.Custom]:i.jsx("div",{}),[Ue.BankTransfer]:i.jsx(Cl,{}),[Ue.Klarna]:i.jsx(_l,{})},E7={[Ue.CashApp]:i.jsx(gl,{isAntistock:!0}),[Ue.AppleGooglePay]:i.jsx(xl,{isAntistock:!0}),[Ue.BankCard]:i.jsx(ml,{isAntistock:!0}),[Ue.Crypto]:i.jsx(hl,{isAntistock:!0}),[Ue.PayPal]:i.jsx(bl,{isAntistock:!0}),[Ue.Custom]:i.jsx("div",{}),[Ue.BankTransfer]:i.jsx(Cl,{isAntistock:!0}),[Ue.Klarna]:i.jsx(_l,{isAntistock:!0})},bo={[Ue.CashApp]:"Cash App",[Ue.AppleGooglePay]:"Apple Pay / Google Pay",[Ue.BankCard]:"Debit / Credit Card",[Ue.Crypto]:"Cryptocurrency",[Ue.PayPal]:"PayPal",[Ue.Custom]:"",[Ue.BankTransfer]:"Bank Transfer",[Ue.Klarna]:"Klarna"},si=({align:e,paymentMethod:t,gatewayDisplayName:n,gatewayLogoCfId:r,poweredByLogoCfId:u,selected:a,onSelect:s,className:o,isAntistock:c=!1})=>{const l=t===Ue.Custom;return t?i.jsx("div",{className:g.clx(De.paymentMethod,{[De.selected]:a,[De.alignColumn]:e==="column",[De.antistock]:c},o),onClick:()=>s&&s(t),children:c?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:De.paymentText,id:"md",children:l?n:bo[t]}),i.jsxs("div",{className:De.iconContainer,children:[l?i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}):E7[t],u&&i.jsx("div",{className:De.poweredByLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(u,"100"),alt:n})})]})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:De.paymentText,id:"md",children:l?n:bo[t]}),i.jsxs("div",{className:De.iconContainer,children:[l?i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}):C7[t],u&&i.jsx("div",{className:De.poweredByLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(u,"100"),alt:n})})]})]})}):i.jsxs("div",{className:g.clx(De.paymentMethod,o),children:[i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}),i.jsx("p",{className:De.paymentText,children:n})]})},ii=({possibleGateways:e,setGateway:t,totalAndDiscount:n,onSignInClick:r,setPaymentMethod:u,isAntistock:a=!1,hideBalance:s=!1})=>{const[o,c]=L.useState(),[l,h]=L.useState(),{setPriceAdjustment:f,setServiceFee:m}=g.useCartStore(),[p,b]=L.useState(null),_=L.useMemo(()=>p?s?p.filter(k=>k.name!=="Balance"):p:null,[p,s]),E=k=>{t(k);const y=p==null?void 0:p.find(D=>D.name===k);f((y==null?void 0:y.priceAdjustment)||null),m((y==null?void 0:y.serviceFee)||null)},x=(k,y)=>{l!==y&&E(y),u(k),c(k),h(y)};return L.useEffect(()=>{if(_&&_.length>0){const k=_[0];if(k.name==="Balance")h(k.name),t(k.name),f(k.priceAdjustment||null),m(k.serviceFee||null);else if(k.paymentMethods&&k.paymentMethods.length>0){const y=k.paymentMethods[0];c(y),h(k.name),t(k.name),u(y),f(k.priceAdjustment||null),m(k.serviceFee||null)}}},[_]),L.useEffect(()=>{const k=async()=>{const{data:y}=await sl([...e.availableGateways,...e.requiresSignInGateways]),D=Array.isArray(y)?y:y.gateways;b(D)};(e.availableGateways.length||e.requiresSignInGateways.length)&&k()},[]),L.useLayoutEffect(()=>{f(null),m(null)},[]),i.jsxs(i.Fragment,{children:[_&&i.jsx("div",{className:g.clx(go.paymentMethodsContainer,{[go.antistock]:a}),children:_==null?void 0:_.map(k=>k.name==="Balance"?i.jsx(ai,{gateway:k.name,gatewayDisplayName:k.displayName,onSelect:y=>{h(y),l!==y&&E(y)},selected:k.name===l,total:n.totalWithDiscount??n.total,onSignInClick:r,reversed:!0,isAntistock:a},k.name):k.paymentMethods.map(y=>i.jsx(si,{paymentMethod:y,gateway:k.name,gatewayDisplayName:k.displayName,gatewayLogoCfId:k.logoCfImageId,poweredByLogoCfId:k.poweredByImageCfImageId,onSelect:D=>x(D,k.name),selected:o===y&&l===k.name,isAntistock:a},`${k.name}-${y}`)))}),!p&&(a?i.jsx(N.Loader,{}):i.jsx(ir,{speed:2,width:"100%",height:"220px",viewBox:"0 0 600 220",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"})}))]})},y7="_modal_1htd8_1",T7={modal:y7},t0=({setIsOpen:e})=>{const{token:t}=g.useStorefrontStore(),{setIsOpen:n}=g.useModalStore();L.useEffect(()=>{t&&r()},[t]);const r=()=>{n(!1),setTimeout(()=>{e(!1)},300)};return i.jsx("div",{className:T7.modal,onClick:u=>u.stopPropagation(),children:i.jsx(da,{inModal:!0})})},k7="_container_r8mpd_1",A7="_text_r8mpd_9",S7="_link_r8mpd_14",Kn={container:k7,text:A7,link:S7};function _o(e){const t=[],n=String(e||"");let r=n.indexOf(","),u=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(u,r).trim();(s||!a)&&t.push(s),u=r+1,r=n.indexOf(",",u)}return t}function n0(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const I7=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,N7=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,v7={};function xo(e,t){return(v7.jsx?N7:I7).test(e)}const w7=/[ \t\n\f\r]/g;function D7(e){return typeof e=="object"?e.type==="text"?Co(e.value):!1:Co(e)}function Co(e){return e.replace(w7,"")===""}let gu=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};gu.prototype.normal={};gu.prototype.property={};gu.prototype.space=void 0;function r0(e,t){const n={},r={};for(const u of e)Object.assign(n,u.property),Object.assign(r,u.normal);return new gu(n,r,t)}function uu(e){return e.toLowerCase()}let Mt=class{constructor(t,n){this.attribute=n,this.property=t}};Mt.prototype.attribute="";Mt.prototype.booleanish=!1;Mt.prototype.boolean=!1;Mt.prototype.commaOrSpaceSeparated=!1;Mt.prototype.commaSeparated=!1;Mt.prototype.defined=!1;Mt.prototype.mustUseProperty=!1;Mt.prototype.number=!1;Mt.prototype.overloadedBoolean=!1;Mt.prototype.property="";Mt.prototype.spaceSeparated=!1;Mt.prototype.space=void 0;let L7=0;const ye=or(),tt=or(),u0=or(),q=or(),Be=or(),Cr=or(),Bt=or();function or(){return 2**++L7}const Ls=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:tt,commaOrSpaceSeparated:Bt,commaSeparated:Cr,number:q,overloadedBoolean:u0,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),Wa=Object.keys(Ls);let oi=class extends Mt{constructor(t,n,r,u){let a=-1;if(super(t,n),Eo(this,"space",u),typeof r=="number")for(;++a<Wa.length;){const s=Wa[a];Eo(this,Wa[a],(r&Ls[s])===Ls[s])}}};oi.prototype.defined=!0;function Eo(e,t,n){n&&(e[t]=n)}function wr(e){const t={},n={};for(const[r,u]of Object.entries(e.properties)){const a=new oi(r,e.transform(e.attributes||{},r),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[uu(r)]=r,n[uu(a.attribute)]=r}return new gu(t,n,e.space)}const a0=wr({properties:{ariaActiveDescendant:null,ariaAtomic:tt,ariaAutoComplete:null,ariaBusy:tt,ariaChecked:tt,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:tt,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:tt,ariaFlowTo:Be,ariaGrabbed:tt,ariaHasPopup:null,ariaHidden:tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:q,ariaLive:null,ariaModal:tt,ariaMultiLine:tt,ariaMultiSelectable:tt,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:tt,ariaReadOnly:tt,ariaRelevant:null,ariaRequired:tt,ariaRoleDescription:Be,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:tt,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function s0(e,t){return t in e?e[t]:t}function i0(e,t){return s0(e,t.toLowerCase())}const P7=wr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cr,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Be,autoFocus:ye,autoPlay:ye,blocking:Be,capture:null,charSet:null,checked:ye,cite:null,className:Be,cols:q,colSpan:null,content:null,contentEditable:tt,controls:ye,controlsList:Be,coords:q|Cr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:u0,draggable:tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Be,height:q,hidden:ye,high:q,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Be,itemRef:Be,itemScope:ye,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,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:ye,optimum:q,pattern:null,ping:Be,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Be,required:ye,reversed:ye,rows:q,rowSpan:q,sandbox:Be,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:tt,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:tt,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:i0}),R7=wr({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:Bt,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:Be,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:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,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:Cr,g2:Cr,glyphName:Cr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:Bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,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:q,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:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bt,rev:Bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bt,requiredFeatures:Bt,requiredFonts:Bt,requiredFormats:Bt,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:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:Bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bt,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:s0}),o0=wr({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()}}),c0=wr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:i0}),l0=wr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),M7={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"},O7=/[A-Z]/g,yo=/-[a-z]/g,j7=/^data[-\w.:]+$/i;function ci(e,t){const n=uu(t);let r=t,u=Mt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&j7.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(yo,B7);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!yo.test(a)){let s=a.replace(O7,F7);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}u=oi}return new u(r,t)}function F7(e){return"-"+e.toLowerCase()}function B7(e){return e.charAt(1).toUpperCase()}const ba=r0([a0,P7,o0,c0,l0],"html"),Dr=r0([a0,R7,o0,c0,l0],"svg");function To(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function d0(e){return e.join(" ").trim()}var f0={},ko=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,H7=/\n/g,U7=/^\s*/,V7=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$7=/^:\s*/,z7=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,q7=/^[;\s]*/,Z7=/^\s+|\s+$/g,W7=`
|
|
60
|
+
`),M=new Blob([I],{type:"text/plain"}),H=URL.createObjectURL(M),U=document.createElement("a");U.href=H,U.download=`replacement-request-${e.id}.txt`,document.body.appendChild(U),U.click(),document.body.removeChild(U),URL.revokeObjectURL(H)},k=I=>{switch(I){case he.PENDING:case he.PROCESSING:return Le.statusPending;case he.APPROVED:case he.AUTO_APPROVED:case he.COMPLETED:return Le.statusApproved;case he.DECLINED:case he.FAILED:return Le.statusDeclined;case he.CANCELLED:case he.EXPIRED:return Le.statusCancelled;default:return Le.statusPending}},y=I=>{switch(I){case he.PENDING:case he.PROCESSING:return"In Progress";case he.APPROVED:case he.AUTO_APPROVED:case he.COMPLETED:return"Approved";case he.DECLINED:return"Denied";case he.FAILED:return"Failed";case he.CANCELLED:case he.EXPIRED:return"Cancelled";default:return"In Progress"}};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Le.replacementRequestItem,onClick:I=>{I.stopPropagation(),b()},children:[i.jsxs("div",{className:Le.replacementRequestHeader,children:[i.jsxs("span",{className:Le.replacementRequestId,children:["ID: ",e.id]}),i.jsx("span",{className:g.clx(Le.statusBadge,k(e.status)),children:y(e.status)})]}),i.jsxs("div",{className:Le.replacementRequestDescription,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"We're currently investigating your replacement. It may take a minimum of 24-48 hours for our team to get back to you.",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"We've approved your replacement request. Your replaced products are attached to this section.",e.status===he.DECLINED&&"We've denied your replacement request. You will not be able to request a replacement for these products in the future.",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your replacement request has been cancelled."]})]}),u&&i.jsx(N.Modal,{close:()=>a(!1),withAnimation:!f,children:i.jsxs("div",{className:g.clx(Le.replacementModal,{[Le.replacementModalAntistock]:f}),onClick:I=>I.stopPropagation(),children:[i.jsxs("div",{className:Le.replacementModalHeader,children:[i.jsx("h3",{id:"h3",children:"Replacement Request"}),i.jsx("button",{className:Le.closeButton,onClick:()=>a(!1),children:i.jsx(N.Icon,{name:"X"})})]}),i.jsxs("div",{className:Le.replacementModalContent,children:[i.jsxs("div",{className:Le.statusSection,children:[i.jsx("span",{className:g.clx(Le.statusBadge,k(e.status)),children:y(e.status)}),i.jsxs("h4",{className:Le.statusTitle,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"Your Replacement Is In Progress",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"Your Replacement Was Approved",e.status===he.DECLINED&&"Your Replacement Was Denied",e.status===he.FAILED&&"Your Replacement Was Failed",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your Replacement Was Cancelled"]}),i.jsxs("p",{className:Le.statusDescription,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"We're currently investigating your request. It may take a minimum of 24-48 hours for our team to get back to you.",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"We've approved your replacement request. Your replaced products are attached below.",e.status===he.DECLINED&&"We've denied your replacement request. You will not be able to request a replacement for these products in the future.",e.status===he.FAILED&&"We've failed your replacement request. You will not be able to request a replacement for these products in the future.",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your replacement request has been cancelled."]})]}),(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Le.productsSection,children:[i.jsxs("div",{className:Le.actionButtons,children:[i.jsxs(N.Button,{type:"Secondary",onClick:E,style:{display:"flex",alignItems:"center",gap:"5px",height:"32px"},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy"]}),i.jsxs(N.Button,{type:"Secondary",onClick:x,style:{display:"flex",alignItems:"center",gap:"5px",height:"32px"},children:[i.jsx(N.Icon,{name:"ArrowLineDown"}),"Download"]})]}),i.jsx("div",{className:Le.productsList,children:(D=e.replacementItems)==null?void 0:D.map((I,M)=>i.jsx("div",{className:Le.productItem,children:i.jsx("span",{children:I.replacementSerialKey})},M))})]}),i.jsxs("div",{className:Le.previouslyDeliveredSection,children:[i.jsxs("div",{className:Le.previouslyDeliveredHeader,onClick:()=>l(!c),children:[i.jsx("span",{className:Le.previouslyDeliveredTitle,children:"Previously Delivered Products"}),i.jsx(N.Icon,{name:"CaretDown",width:16,height:16,fill:"var(--text-secondary)",className:g.clx(Le.caretIcon,{[Le.caretIconRotated]:c})})]}),c&&i.jsx("div",{className:Le.previouslyDeliveredContent,children:((S=e.replacementItems)==null?void 0:S.map((I,M)=>i.jsx("div",{className:Le.previouslyDeliveredProductItem,children:i.jsx("span",{children:I.originalSerialKey})},M)))||i.jsx("div",{className:Le.noProducts,children:"No products found"})})]})]})]}),i.jsx("div",{className:Le.replacementModalFooter,children:e.status===he.PENDING&&i.jsx(N.Button,{type:"Secondary",onClick:_,disabled:s,style:{width:"fit-content",margin:"0 auto 8px"},children:s?"CANCELLING...":"CANCEL REPLACEMENT REQUEST"})})]})})]})},G4="_replacementModal_1f8b8_1",X4="_replacementModalAntistock_1f8b8_12",K4="_replacementModalHeader_1f8b8_17",Q4="_title_1f8b8_25",J4="_closeButton_1f8b8_32",e8="_replacementModalContent_1f8b8_46",t8="_bottomSheet_1f8b8_53",n8="_content_1f8b8_61",r8="_productReplaceContainer_1f8b8_65",u8="_scrollableBox_1f8b8_76",a8="_searchContainer_1f8b8_90",s8="_productItem_1f8b8_94",i8="_productItemError_1f8b8_125",o8="_scrollIndicator_1f8b8_129",c8="_noResults_1f8b8_138",l8="_replacementForm_1f8b8_148",d8="_formField_1f8b8_155",f8="_replacementModalFooter_1f8b8_355",h8="_fieldError_1f8b8_361",p8="_requestButton_1f8b8_367",We={replacementModal:G4,replacementModalAntistock:X4,replacementModalHeader:K4,title:Q4,closeButton:J4,replacementModalContent:e8,bottomSheet:t8,content:n8,productReplaceContainer:r8,scrollableBox:u8,searchContainer:a8,productItem:s8,productItemError:i8,scrollIndicator:o8,noResults:c8,replacementForm:l8,formField:d8,replacementModalFooter:f8,fieldError:h8,requestButton:p8},m8=({isOpen:e,onClose:t,product:n,orderId:r,accessToken:u,onSuccess:a,allowedReplacementReasons:s})=>{const{isAntistock:o}=g.useGeneralStore(),{setNotifications:c,notifications:l}=g.useNotificationStore(),[h,f]=L.useState(null),[m,p]=L.useState((s==null?void 0:s[0])||""),[b,_]=L.useState(""),[E,x]=L.useState(""),[k,y]=L.useState([]),[D,S]=L.useState(!1),[I,M]=L.useState({}),H=L.useRef(null),U=L.useRef(null),P=L.useRef(null),B=L.useMemo(()=>{var C;return((C=n.deliveryCategories)==null?void 0:C.filter(V=>V.type==="SERIALS").flatMap(V=>V.deliveryItems))||[]},[n.deliveryCategories]),O=L.useMemo(()=>n.replacementRequests?new Set(n.replacementRequests.flatMap(C=>C.replacementItems||[]).map(C=>C.originalSerialKey)):new Set,[n.replacementRequests]),X=L.useMemo(()=>B.filter(C=>!O.has(C.serialKey)),[B,O]),Y=L.useMemo(()=>new nl.Fuse(X,{keys:["serialKey"],threshold:.4}),[X]),K=L.useMemo(()=>E.trim()?Y.search(E).map(C=>C.item):X,[E,Y,X]),ue=C=>{y(V=>V.includes(C)?V.filter(te=>te!==C):[...V,C]),I.selectedItems&&M(V=>({...V,selectedItems:void 0}))},ae=()=>{y([]),f(null),p((s==null?void 0:s[0])||""),_(""),x(""),M({})},se=()=>{ae(),t()},_e=async()=>{var V,te,v,J;M({});const C={};if(k.length===0&&(C.selectedItems="Please select at least one item to replace"),(!h||h.length===0)&&(C.images="Please add at least one image"),m.trim()||(C.reason="Please select a reason for replacement"),Object.keys(C).length>0){M(C),setTimeout(()=>{C.selectedItems&&H.current?H.current.scrollIntoView({behavior:"smooth",block:"center"}):C.images&&U.current?U.current.scrollIntoView({behavior:"smooth",block:"center"}):C.reason&&P.current&&P.current.scrollIntoView({behavior:"smooth",block:"center"})},100);return}if(!r||!u){c([...l,{id:g.v4(),message:"Missing order information",status:"error"}]);return}S(!0);try{if(!n.partOrderId){c([...l,{id:g.v4(),message:"Part order ID is required",status:"error"}]);return}const ne=await C2(r,u,{partOrderId:n.partOrderId,deliveryItemIds:k,imageIds:(h==null?void 0:h.map(Q=>Q.id))||[],reason:m,message:b});c([...l,{id:g.v4(),message:((V=ne.data)==null?void 0:V.message)||"Replacement request submitted successfully",status:"success"}]),(te=ne.data)!=null&&te.id&&((v=ne.data)!=null&&v.status)&&(a==null||a({id:ne.data.id,status:ne.data.status})),se()}catch(ne){console.log({error:ne});let Q="Failed to submit replacement request",de="";const le=ne;if((J=le==null?void 0:le.response)!=null&&J.data){const ie=le.response.data;ie.message&&ie.errors&&Array.isArray(ie.errors)?(de=ie.message,Q=ie.errors.join(", ")):ie.errors&&Array.isArray(ie.errors)?Q=ie.errors.join(", "):ie.message&&(Q=ie.message)}else ne instanceof Error&&(Q=ne.message);c([...l,{id:g.v4(),message:Q,status:"error",label:de}])}finally{S(!1)}};return!e||X.length===0?null:i.jsx(N.Modal,{close:se,withAnimation:!o,children:i.jsxs("div",{className:g.clx(We.replacementModal,{[We.replacementModalAntistock]:o}),onClick:C=>C.stopPropagation(),children:[i.jsxs("div",{className:We.replacementModalHeader,children:[i.jsx("h3",{id:"h3 ",className:We.title,children:"Request Replacement"}),i.jsx("button",{className:We.closeButton,onClick:se,children:i.jsx(N.Icon,{name:"X"})})]}),i.jsx("div",{className:We.replacementModalContent,children:i.jsx("div",{className:We.bottomSheet,children:i.jsxs("div",{className:We.content,children:[i.jsx(N.Tip,{type:"info",message:"Info: Based on your replacement policy, it may take up to 24-48 hours for our team to review your request.",showCloseButton:!1,style:{marginBottom:"16px"}}),i.jsxs("div",{className:We.productReplaceContainer,children:[i.jsx("div",{className:We.searchContainer,children:i.jsx(N.Input,{onChange:C=>{x(C)},isSearch:!0,value:E,placeholder:"Search for delivered stock",label:"Product Replace List *"})}),i.jsx("div",{ref:H,className:g.clx(We.scrollableBox,{[We.scrollableBoxAntistock]:o}),children:K.length>0?K.map(C=>i.jsxs("div",{className:g.clx(We.productItem,{[We.productItemError]:I.selectedItems&&!k.includes(C.id)}),onClick:()=>ue(C.id),children:[i.jsx(N.Checkbox,{value:k.includes(C.id),onChange:()=>ue(C.id)}),i.jsx("span",{children:C.serialKey})]},C.id)):i.jsx("div",{className:We.noResults,children:i.jsxs("p",{children:['No items found matching "',E,'"']})})}),I.selectedItems&&i.jsx("div",{className:We.fieldError,children:I.selectedItems}),i.jsx("div",{className:We.scrollIndicator,children:i.jsx("p",{children:"To continue with your replacement request, scroll down."})})]}),i.jsxs("div",{className:We.replacementForm,children:[i.jsx("div",{className:We.formField,ref:U,children:i.jsx(N.ImagesLoader,{images:h,onChange:C=>{f(C),I.images&&M(V=>({...V,images:void 0}))},multiple:!0,label:"Images",required:!0,enablePaste:e})}),i.jsx("div",{className:We.formField,ref:P,children:i.jsx(N.Select,{options:(s==null?void 0:s.filter(C=>C!==m))||[],onChange:C=>{p(C),I.reason&&M(V=>({...V,reason:void 0}))},value:m,isSearch:!1,label:"Reason *",isMaxLength:!1,error:I.reason})}),i.jsx("div",{className:We.formField,children:i.jsx(N.Textarea,{placeholder:"Use this space to provide our team with additional details regarding your replacement request.",onChange:_,label:"Your Message (Optional)",value:b})})]})]})})}),i.jsx("div",{className:We.replacementModalFooter,children:i.jsx(N.Button,{type:"Primary",className:We.requestButton,onClick:_e,disabled:D,children:D?"SUBMITTING...":"REQUEST REPLACEMENT"})})]})})},ga=({isOrder:e,product:t,isApplicableForReplacement:n,orderId:r,accessToken:u,allowedReplacementReasons:a})=>{var M;const{shopGeneral:s}=g.useStorefrontStore(),o=t.subscriptionSettings,{cart:c}=hu(),{isAntistock:l}=g.useGeneralStore(),[h,f]=L.useState(!1),{setIsOpen:m}=g.useModalStore(),p=L.useMemo(()=>t.replacementRequests?new Set(t.replacementRequests.flatMap(H=>H.replacementItems||[]).map(H=>H.originalSerialKey)):new Set,[t.replacementRequests]),b=L.useMemo(()=>{var U;return(((U=t.deliveryCategories)==null?void 0:U.filter(P=>P.type==="SERIALS").flatMap(P=>P.deliveryItems))||[]).filter(P=>!p.has(P.serialKey)).length},[t.deliveryCategories,p]),_=t.processingInfo,[E,x]=L.useState(null),[k,y]=L.useState(!1),[D,S]=L.useState(null);L.useEffect(()=>{if(!_){x(null),y(!1),S(null);return}const H=()=>{const P=Date.now(),B=new Date(_.processingStartTime).getTime(),O=P-B,X=_.expectedProcessingMs;if(S(O>0?O:0),O<=0||X<=0){x(0),y(!1);return}if(O<X){const Y=Math.min(100,Math.max(0,O/X*100));x(Math.round(Y)),y(!1)}else x(100),y(!0)};H();const U=window.setInterval(H,1e3);return()=>{window.clearInterval(U)}},[_]);const I=()=>{m(!0),f(!0)};return i.jsxs("div",{className:`${je.checkoutProduct} ${e?je.isOrder:""}`,children:[i.jsxs("div",{className:je.productDetails,children:[i.jsx("div",{className:`${je.productImage} ${e?je.isOrderImage:""} ${l?je.productImageAntistock:""}`,children:t!=null&&t.image?i.jsx("img",{className:je.image,src:g.convertCfImageIdToUrl(t.image.cfId,"100")}):i.jsx(N.Icon,{name:"Image",fill:"var(--text-secondary)"})}),i.jsx("div",{className:g.clx(je.productInfo,{[je.productInfoOverrodePrice]:t.variantsGateways&&c.gateway&&t.variantsGateways.some(H=>H.name===c.gateway&&H.overrodePrice)}),children:i.jsxs("div",{className:je.productHeader,children:[i.jsx("h2",{className:je.productName,id:"h5",children:t.name}),i.jsxs("span",{className:je.quantityBadge,id:"md",children:[t.price.quantity,"x"]})]})}),t.chargeType==="RECURRING"&&i.jsx("p",{className:je.productPrice,id:"md",children:o&&`${g.formatPrice(o.price)} / ${g.normalizeInterval(o.recurringIntervalDays||0)}${o.entryFee?" + "+g.formatPrice(o.entryFee):""}`}),t.chargeType==="ONE_TIME"&&i.jsx(i.Fragment,{children:t.variantsGateways&&c.gateway&&t.variantsGateways.some(H=>H.name===c.gateway&&H.overrodePrice)?i.jsxs("div",{className:je.priceContainer,children:[i.jsx("span",{className:je.originalPrice,id:"md",children:g.formatPrice(t.price)}),i.jsx("span",{className:je.overridePrice,id:"md",children:g.formatPrice(((M=t.variantsGateways.find(H=>H.name===c.gateway))==null?void 0:M.overrodePrice)||t.price)})]}):i.jsx("p",{className:je.productPrice,id:"md",children:g.formatPrice(t.price)})})]}),_&&i.jsx("div",{style:{marginTop:"1.5rem",marginBottom:"0.5rem",width:"100%"},children:!k&&E!==null?i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",color:"var(--text-secondary)",fontSize:"var(--font-size-sm)"},children:[i.jsx("span",{children:"Processing..."}),i.jsxs("span",{children:["Time Passed:"," ",(()=>{if(D===null||D<0)return"00:00:00";const H=Math.floor(D/1e3),U=Math.floor(H/3600).toString().padStart(2,"0"),P=Math.floor(H%3600/60).toString().padStart(2,"0"),B=(H%60).toString().padStart(2,"0");return`${U}:${P}:${B}`})()]})]}),i.jsx(ui,{percent:E})]}):i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[i.jsx(N.Loader,{style:{color:"var(--text-primary)"}}),i.jsx(N.Tip,{id:"processing-tip",type:"info",padding:0,showCloseButton:!1,message:`This order is taking longer than expected, but we are still working on your delivery. If it is not processed before ${_.processingExpiresAt?new Date(_.processingExpiresAt).toLocaleString():""}, your payment will be automatically refunded.`})]})}),t.deliveryCategories&&i.jsx("div",{className:je.deliveryCategories,children:t.deliveryCategories.map(H=>i.jsx(g4,{deliveryConfiguration:H},H.id))}),t.customerNote&&i.jsxs("div",{className:je.customerNote,style:l?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsxs("div",{className:je.noteHeader,children:[(s==null?void 0:s.info.logo)&&i.jsx("div",{className:je.logoContainer,children:i.jsx("img",{src:g.convertCfImageIdToUrl(s==null?void 0:s.info.logo.cfId,"200")})}),i.jsx("p",{className:je.shopName,id:"md",children:s==null?void 0:s.info.name})]}),i.jsx("p",{className:je.noteContent,id:"md",children:t.customerNote})]}),t.replacementRequests&&t.replacementRequests.length===0&&n&&b>0&&i.jsx(N.Button,{type:"Secondary",className:je.replacementButton,onClick:H=>{H.stopPropagation(),I()},children:i.jsx("p",{className:je.replacementButtonText,children:"Request Replacement"})}),t.replacementRequests&&t.replacementRequests.length>0&&n&&i.jsxs("div",{className:je.replacementRequests,children:[i.jsx("h4",{className:je.replacementRequestsTitle,children:"Replacements"}),i.jsx("div",{className:je.replacementRequestsList,children:t.replacementRequests.map(H=>i.jsx(Y4,{item:H,orderId:r,accessToken:u,onCancel:()=>{}},H.id))}),b>0&&i.jsx(N.Button,{type:"Secondary",onClick:H=>{H.stopPropagation(),I()},children:i.jsx("p",{className:je.replacementButtonText,children:"Request New Replacement"})})]}),i.jsx(m8,{isOpen:h,onClose:()=>f(!1),product:t,orderId:r,accessToken:u,allowedReplacementReasons:a})]})},g8="_coupon_dkjzv_1",b8="_couponApplied_dkjzv_7",_8="_discount_dkjzv_17",x8="_removeButton_dkjzv_23",C8="_removeButtonText_dkjzv_27",E8="_couponInput_dkjzv_31",y8="_couponInputContainer_dkjzv_37",Dn={coupon:g8,couponApplied:b8,discount:_8,removeButton:x8,removeButtonText:C8,couponInput:E8,couponInputContainer:y8},T8=({applyCoupon:e,couponData:t,discount:n,removeCoupon:r,gateway:u})=>{const[a,s]=L.useState(null),[o,c]=L.useState(!1),{isAntistock:l}=g.useGeneralStore();return i.jsxs("div",{className:Dn.coupon,children:[o&&i.jsx(ir,{speed:2,width:500,height:48,viewBox:"0 0 500 48",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:Dn.skeleton,style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"100%",height:"48"})}),!o&&(t?i.jsxs("div",{className:Dn.couponApplied,style:l?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"}),i.jsxs("p",{id:"md",style:{color:l?"var(--text-primary)":void 0},children:[a," is applied"," ",i.jsxs("span",{className:Dn.discount,children:["-",n," ",!t.isFixed&&`(${t.discount}%)`]})]}),i.jsx("button",{className:Dn.removeButton,onClick:r,children:i.jsx("span",{className:Dn.removeButtonText,children:"Remove"})})]}):i.jsxs("div",{className:Dn.couponInput,children:[i.jsxs("div",{className:Dn.couponInputContainer,children:[i.jsx(N.Input,{placeholder:"Enter a discount code",value:a||"",onChange:h=>{s(h===""?null:h)}}),i.jsx(N.Button,{onClick:async()=>{c(!0),a&&await e(a),c(!1)},disabled:!u||!a,type:"Primary",children:"Apply"})]}),!l&&!u&&i.jsx(N.Tip,{type:"warning",message:"The discount is related to the method of payment. Select to enter.",id:"md"})]}))]})},Kl=({cart:e,products:t,applyCoupon:n,applyCouponPending:r,coupon:u,totalAndDiscount:a,removeCoupon:s})=>{const{priceAdjustment:o,serviceFee:c,replacementConfig:l}=g.useCartStore(),[h,f]=L.useState(!1),m=L.useMemo(()=>e.parts.map(y=>{const D=t.find(I=>I.id===y.productId),S=D==null?void 0:D.variants.find(I=>I.id===y.productVariantId);return y.chargeType==="RECURRING"&&f(!0),{id:(D==null?void 0:D.id)||0,image:D==null?void 0:D.images[0],name:(()=>{const I=(D==null?void 0:D.name)||"",M=(S==null?void 0:S.name)||"";return!I&&!M?"":!M||I===M?I:I?`${I} (${M})`:M})(),description:"",price:{quantity:y.quantity,amount:(S==null?void 0:S.price.amount)||0,currency:S==null?void 0:S.price.currency},subscriptionSettings:S==null?void 0:S.subscriptionSettings,chargeType:y.chargeType,variantsGateways:S==null?void 0:S.gateways}}),[e,t]),p=L.useMemo(()=>{const y=m[0];if(y!=null&&y.variantsGateways&&e.gateway){const D=y.variantsGateways.find(S=>S.name===e.gateway&&S.overrodePrice);if(D!=null&&D.overrodePrice)return D.overrodePrice.currency}return(y==null?void 0:y.price.currency)||"USD"},[m,e.gateway]),b=new Intl.NumberFormat("en-US",{style:"currency",currency:p}),_=L.useMemo(()=>u&&!u.isFixed&&u.discount===100||u&&u.isFixed&&u.discount&&u.discount>=a.total?a.total:a.totalWithDiscount?a.total-a.totalWithDiscount:0,[a,u]),E=o?(o==null?void 0:o.fixedAmount)+Math.round((a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_)*((o==null?void 0:o.percentage)/100)):null,x=L.useMemo(()=>{const y=e.usePriorityReplacement===!0,D=y?l==null?void 0:l.priorityReplacement:null;if(!y||!(D!=null&&D.enabled))return{label:"",amount:null};const S=a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_,I=(D.fixedFee||0)+S*(D.feePercentage||0)/100;return{label:D.name||"Priority Replacement",amount:I}},[e.usePriorityReplacement,l,a,_]),k=L.useMemo(()=>{if(!c)return null;const y=a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_,I=((o&&E!==null&&E!==void 0?o.isDiscount?y-E:y+E:y)+(x.amount||0))*(c.percentage/100);return c.fixedAmount+I},[c,a,_,o,E,x]);return i.jsx("div",{className:Xn.checkoutItemsContainer,children:i.jsxs("div",{className:Xn.innerContainer,children:[i.jsx(ma,{}),i.jsxs("div",{className:Xn.headerSection,children:[i.jsx("header",{className:Xn.header,children:i.jsx("h1",{id:"h3",children:"Checkout"})}),i.jsx("div",{className:Xn.productsContainer,children:m.map(y=>i.jsx(ga,{product:y},y.id))}),i.jsx("div",{className:Xn.couponContainer,children:i.jsx(T8,{applyCoupon:n,applyCouponPending:r,couponData:u,discount:b.format(_),removeCoupon:s,gateway:e.gateway})}),i.jsx(vr,{formatter:b,coupon:u,total:a.total,discount:_,totalWithDiscount:a.totalWithDiscount,feeOrDiscount:h?null:E,serviceFeeAmount:h?null:k,replacementLabel:x.amount?x.label:"",replacementAmount:h?null:x.amount})]}),i.jsx("div",{className:Xn.checkoutFooter,children:i.jsx(zn,{})})]})})},k8="_checkoutOperational_a8jyy_1",A8="_innerContainer_a8jyy_16",S8="_innerContainerAntistock_a8jyy_26",I8="_paymentMethodsSectionAntistock_a8jyy_38",N8="_continueButtonAntistock_a8jyy_48",v8="_checkoutFooterAntistock_a8jyy_58",w8="_antistock_a8jyy_69",D8="_checkoutOperationalAntistock_a8jyy_74",L8="_loginSection_a8jyy_85",P8="_paymentMethodsSection_a8jyy_38",R8="_socialConnectSection_a8jyy_99",M8="_socialConnectLabel_a8jyy_102",O8="_socialConnectContent_a8jyy_106",j8="_continueButton_a8jyy_48",F8="_button_a8jyy_114",B8="_checkoutFooter_a8jyy_58",ft={checkoutOperational:k8,innerContainer:A8,innerContainerAntistock:S8,paymentMethodsSectionAntistock:I8,continueButtonAntistock:N8,checkoutFooterAntistock:v8,antistock:w8,checkoutOperationalAntistock:D8,loginSection:L8,paymentMethodsSection:P8,socialConnectSection:R8,socialConnectLabel:M8,socialConnectContent:O8,continueButton:j8,button:F8,checkoutFooter:B8},H8="_customFields_uhcib_2",U8="_checkboxWrapper_uhcib_9",V8="_textareaWrapper_uhcib_16",$8="_inputWrapper_uhcib_17",z8="_requiredStar_uhcib_27",gr={customFields:H8,checkboxWrapper:U8,textareaWrapper:V8,inputWrapper:$8,requiredStar:z8},Ql=({customFields:e,setCustomFields:t})=>{if(e.length===0)return null;const n=e.map(r=>i.jsx(Jl,{customField:r,setCustomFields:t},r.name));return i.jsx("div",{className:gr.customFields,children:n})},Jl=({customField:e,setCustomFields:t})=>{const n=r=>{t(u=>u.map(a=>a.name===e.name?{...a,value:r}:a))};return i.jsx(q8,{value:e.value??"",placeholder:e.placeholder,required:e.required,defaultValue:e.defaultValue,type:e.type,onValueChange:n,label:e.name,regex:e.regex})},q8=({label:e,type:t,defaultValue:n,value:r,placeholder:u,regex:a,required:s,onValueChange:o})=>{if(L.useEffect(()=>{r===""&&n!==void 0&&o(String(n))},[]),t===Sn.Checkbox)return i.jsxs("label",{className:gr.checkboxWrapper,children:[i.jsx(N.CheckboxSettings,{value:r==="true",onChange:l=>o(l?"true":"false")}),i.jsxs("p",{className:gr.checkboxLabel,children:[e,s&&i.jsx("span",{className:gr.requiredStar,children:"*"})]})]});if(t===Sn.Hidden)return i.jsx("input",{type:"hidden",value:String(n??""),required:s});const c=l=>{let h;if(t===Sn.Number)h=/^\d*$/;else if(a)try{h=new RegExp(a)}catch(f){console.error("Invalid regex pattern:",a,f),h=/.*/}else h=/.*/;h.test(l)&&o(l)};return t===Sn.Textarea?i.jsx("div",{className:gr.textareaWrapper,children:i.jsx(N.Textarea,{label:e,value:r,placeholder:u,onChange:c,required:s})}):i.jsx("div",{className:gr.inputWrapper,children:i.jsx(N.Input,{type:t===Sn.Number?"number":"text",placeholder:t===Sn.Number?"Type something number...":u,label:e,value:r,required:s,onChange:c})})},Z8="_connectedContainer_1rxr8_1",W8="_userInfo_1rxr8_10",Y8="_avatar_1rxr8_16",G8="_avatarImage_1rxr8_26",Lu={connectedContainer:Z8,userInfo:W8,avatar:Y8,avatarImage:G8},e0=({customerEmail:e})=>{const{discordInfo:t,setDiscordInfo:n}=g.useDiscordStore(),{notifications:r,setNotifications:u}=g.useNotificationStore(),[a,s]=L.useState(!1),[o,c]=L.useState(0),[l,h]=L.useState(null),f=20,m=_=>{var E,x,k,y;return(x=(E=_==null?void 0:_.response)==null?void 0:E.data)!=null&&x.error?_.response.data.error:(y=(k=_==null?void 0:_.response)==null?void 0:k.data)!=null&&y.message?_.response.data.message:_!=null&&_.message?_.message:"Failed to connect to Discord. Please try again later."},p=(_,E)=>{u([...r,{id:g.v4(),message:_,status:E}])};L.useEffect(()=>{if(l&&a){const _=setInterval(()=>{l.closed&&(clearInterval(_),s(!1),h(null))},1e3);return()=>clearInterval(_)}},[l,a]);const b=()=>{e.trim()!==""&&(s(!0),c(0),$2({customerEmail:e,tsId:g.useGetTsId()}).then(({data:_})=>{const E=window.open(_.redirectUrl);h(E),(!E||E.closed||typeof E.closed>"u")&&setTimeout(()=>{const y=document.createElement("a");y.href=_.redirectUrl,y.target="_blank",y.click()});let x;const k=()=>{if(c(y=>y+1),o>=f||E&&E.closed){o>=f&&p("Authorization timeout. Please try again.","error"),s(!1),clearTimeout(x);return}z2({id:_.id,customerEmail:e}).then(({data:y})=>{n({authorized:!0,id:_.id,avatar:y.avatar,username:y.username}),E&&E.close(),s(!1),h(null),p("Discord successfully connected!","success"),clearTimeout(x)}).catch(y=>{var D;if(console.log("Waiting for authorization...",y,{newWindow:E}),E&&E.closed){s(!1),clearTimeout(x);return}if((D=y==null?void 0:y.response)!=null&&D.status&&y.response.status!==404&&y.response.status>=400){p(m(y),"error"),s(!1),clearTimeout(x);return}clearTimeout(x),x=setTimeout(k,1500)})};k()}).catch(_=>{console.log("Could not initiate Discord authorization",_),p(m(_),"error"),s(!1)}))};return t!=null&&t.authorized?i.jsxs("div",{className:Lu.connectedContainer,children:[i.jsxs("div",{className:Lu.userInfo,children:[i.jsx("div",{className:Lu.avatar,children:t.avatar?i.jsx("img",{className:Lu.avatarImage,src:`https://cdn.discordapp.com/avatars/${t.id}/${t.avatar}.png?size=256`}):i.jsx(N.Icon,{name:"UserCircle"})}),i.jsx("p",{children:t.username}),i.jsx(a5,{})]}),i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Reconnect"})]}):i.jsx(N.Button,{type:"Secondary",onClick:b,style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px"},disabled:a,children:a?i.jsx(N.Loader,{}):i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"DiscordLogo"}),i.jsx(ll,{children:"Connect Your Discord"})]})})},X8="_paymentMethodsContainer_1pfqr_2",K8="_antistock_1pfqr_15",go={paymentMethodsContainer:X8,antistock:K8},Q8="_paymentMethod_1it0n_3",J8="_selected_1it0n_16",e7="_alignColumn_1it0n_19",t7="_reversed_1it0n_25",n7="_antistock_1it0n_29",r7="_paymentText_1it0n_36",u7="_balanceText_1it0n_50",a7="_signInLink_1it0n_54",s7="_iconContainer_1it0n_63",i7="_gatewayLogo_1it0n_76",o7="_poweredByLogo_1it0n_77",c7="_logo_1it0n_82",De={paymentMethod:Q8,selected:J8,alignColumn:e7,reversed:t7,antistock:n7,paymentText:r7,balanceText:u7,signInLink:a7,iconContainer:s7,gatewayLogo:i7,poweredByLogo:o7,logo:c7},l7="_bottomSheet_1x8kc_1",d7="_content_1x8kc_8",f7="_description_1x8kc_11",h7="_title_1x8kc_15",p7="_buttonGroup_1x8kc_19",m7="_buttonWrapper_1x8kc_29",g7="_fullWidthButton_1x8kc_32",b7="_modal_1x8kc_36",_7="_header_1x8kc_43",En={bottomSheet:l7,content:d7,description:f7,title:h7,buttonGroup:p7,buttonWrapper:m7,fullWidthButton:g7,modal:b7,header:_7},x7=({setIsOpen:e,balance:t})=>{const n=g.useNavigate(),{setIsOpen:r}=g.useModalStore(),u=()=>{n("/top-up?redirectRoute=checkout")};function a(){r(!1),setTimeout(()=>{e(!1)},300)}return i.jsxs("div",{className:En.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:En.header,children:[i.jsx("h3",{id:"h3",className:En.title,children:"Insufficient Customer Balance"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:En.bottomSheet,children:[i.jsx("div",{className:En.content,children:i.jsxs("p",{className:En.description,children:["You currently have ",t&&g.formatPrice(t)," in your balance. After topping up the required amount, you can continue to checkout."]})}),i.jsxs("div",{className:En.buttonGroup,children:[i.jsx("div",{className:En.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:a,children:"Cancel"})}),i.jsx("div",{className:En.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",onClick:u,children:"Add Balance"})})]})]})]})},ai=({align:e,gateway:t,gatewayDisplayName:n,selected:r,onSelect:u,total:a,onSignInClick:s,reversed:o,isAntistock:c=!1})=>{const{token:l}=g.useStorefrontStore(),{balance:h}=g.useCustomerDashboardStore(),[f,m]=L.useState(!1),{setIsOpen:p}=g.useModalStore(),b=_=>{_.stopPropagation(),u==null||u(t),h&&h.amount<a&&(m(!0),p(!0))};return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:g.clx(De.paymentMethod,{[De.selected]:r,[De.alignColumn]:e==="column",[De.reversed]:o&&!c,[De.antistock]:c}),onClick:b,children:c?i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:De.paymentText,id:"md",children:[n," ",i.jsxs("span",{className:De.balanceText,id:"md",children:["(",l?h&&g.formatPrice(h):i.jsx("a",{className:De.signInLink,onClick:s,id:"md",children:"Sign in"}),")"]})]}),i.jsx("div",{className:De.iconContainer,children:i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20})})]}):i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:De.paymentText,id:"md",children:[n," ",i.jsxs("span",{className:De.balanceText,id:"md",children:["(",l?h&&g.formatPrice(h):i.jsx("a",{className:De.signInLink,onClick:s,id:"md",children:"Sign in"}),")"]})]}),i.jsx("div",{className:De.iconContainer,children:i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20})})]})}),f&&i.jsx(N.Modal,{close:()=>m(!1),children:i.jsx(x7,{setIsOpen:m,balance:h})})]})};var Ue=(e=>(e.BankCard="BANK_CARD",e.BankTransfer="BANK_TRANSFER",e.PayPal="PAYPAL",e.CashApp="CASHAPP",e.Crypto="CRYPTO",e.AppleGooglePay="APPLE_AND_GOOGLE_PAY",e.Custom="CUSTOM",e.Klarna="KLARNA",e))(Ue||{});const C7={[Ue.CashApp]:i.jsx(gl,{}),[Ue.AppleGooglePay]:i.jsx(xl,{}),[Ue.BankCard]:i.jsx(ml,{}),[Ue.Crypto]:i.jsx(hl,{}),[Ue.PayPal]:i.jsx(bl,{}),[Ue.Custom]:i.jsx("div",{}),[Ue.BankTransfer]:i.jsx(Cl,{}),[Ue.Klarna]:i.jsx(_l,{})},E7={[Ue.CashApp]:i.jsx(gl,{isAntistock:!0}),[Ue.AppleGooglePay]:i.jsx(xl,{isAntistock:!0}),[Ue.BankCard]:i.jsx(ml,{isAntistock:!0}),[Ue.Crypto]:i.jsx(hl,{isAntistock:!0}),[Ue.PayPal]:i.jsx(bl,{isAntistock:!0}),[Ue.Custom]:i.jsx("div",{}),[Ue.BankTransfer]:i.jsx(Cl,{isAntistock:!0}),[Ue.Klarna]:i.jsx(_l,{isAntistock:!0})},bo={[Ue.CashApp]:"Cash App",[Ue.AppleGooglePay]:"Apple Pay / Google Pay",[Ue.BankCard]:"Debit / Credit Card",[Ue.Crypto]:"Cryptocurrency",[Ue.PayPal]:"PayPal",[Ue.Custom]:"",[Ue.BankTransfer]:"Bank Transfer",[Ue.Klarna]:"Klarna"},si=({align:e,paymentMethod:t,gatewayDisplayName:n,gatewayLogoCfId:r,poweredByLogoCfId:u,selected:a,onSelect:s,className:o,isAntistock:c=!1})=>{const l=t===Ue.Custom;return t?i.jsx("div",{className:g.clx(De.paymentMethod,{[De.selected]:a,[De.alignColumn]:e==="column",[De.antistock]:c},o),onClick:()=>s&&s(t),children:c?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:De.paymentText,id:"md",children:l?n:bo[t]}),i.jsxs("div",{className:De.iconContainer,children:[l?i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}):E7[t],u&&i.jsx("div",{className:De.poweredByLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(u,"100"),alt:n})})]})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:De.paymentText,id:"md",children:l?n:bo[t]}),i.jsxs("div",{className:De.iconContainer,children:[l?i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}):C7[t],u&&i.jsx("div",{className:De.poweredByLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(u,"100"),alt:n})})]})]})}):i.jsxs("div",{className:g.clx(De.paymentMethod,o),children:[i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}),i.jsx("p",{className:De.paymentText,children:n})]})},ii=({possibleGateways:e,setGateway:t,totalAndDiscount:n,onSignInClick:r,setPaymentMethod:u,isAntistock:a=!1,hideBalance:s=!1})=>{const[o,c]=L.useState(),[l,h]=L.useState(),{setPriceAdjustment:f,setServiceFee:m}=g.useCartStore(),[p,b]=L.useState(null),_=L.useMemo(()=>p?s?p.filter(k=>k.name!=="Balance"):p:null,[p,s]),E=k=>{t(k);const y=p==null?void 0:p.find(D=>D.name===k);f((y==null?void 0:y.priceAdjustment)||null),m((y==null?void 0:y.serviceFee)||null)},x=(k,y)=>{l!==y&&E(y),u(k),c(k),h(y)};return L.useEffect(()=>{if(_&&_.length>0){const k=_[0];if(k.name==="Balance")h(k.name),t(k.name),f(k.priceAdjustment||null),m(k.serviceFee||null);else if(k.paymentMethods&&k.paymentMethods.length>0){const y=k.paymentMethods[0];c(y),h(k.name),t(k.name),u(y),f(k.priceAdjustment||null),m(k.serviceFee||null)}}},[_]),L.useEffect(()=>{const k=async()=>{const{data:y}=await sl([...e.availableGateways,...e.requiresSignInGateways]),D=Array.isArray(y)?y:y.gateways;b(D)};(e.availableGateways.length||e.requiresSignInGateways.length)&&k()},[]),L.useLayoutEffect(()=>{f(null),m(null)},[]),i.jsxs(i.Fragment,{children:[_&&i.jsx("div",{className:g.clx(go.paymentMethodsContainer,{[go.antistock]:a}),children:_==null?void 0:_.map(k=>k.name==="Balance"?i.jsx(ai,{gateway:k.name,gatewayDisplayName:k.displayName,onSelect:y=>{h(y),l!==y&&E(y)},selected:k.name===l,total:n.totalWithDiscount??n.total,onSignInClick:r,reversed:!0,isAntistock:a},k.name):k.paymentMethods.map(y=>i.jsx(si,{paymentMethod:y,gateway:k.name,gatewayDisplayName:k.displayName,gatewayLogoCfId:k.logoCfImageId,poweredByLogoCfId:k.poweredByImageCfImageId,onSelect:D=>x(D,k.name),selected:o===y&&l===k.name,isAntistock:a},`${k.name}-${y}`)))}),!p&&(a?i.jsx(N.Loader,{}):i.jsx(ir,{speed:2,width:"100%",height:"220px",viewBox:"0 0 600 220",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"})}))]})},y7="_modal_1htd8_1",T7={modal:y7},t0=({setIsOpen:e})=>{const{token:t}=g.useStorefrontStore(),{setIsOpen:n}=g.useModalStore();L.useEffect(()=>{t&&r()},[t]);const r=()=>{n(!1),setTimeout(()=>{e(!1)},300)};return i.jsx("div",{className:T7.modal,onClick:u=>u.stopPropagation(),children:i.jsx(da,{inModal:!0})})},k7="_container_r8mpd_1",A7="_text_r8mpd_9",S7="_link_r8mpd_14",Kn={container:k7,text:A7,link:S7};function _o(e){const t=[],n=String(e||"");let r=n.indexOf(","),u=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(u,r).trim();(s||!a)&&t.push(s),u=r+1,r=n.indexOf(",",u)}return t}function n0(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const I7=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,N7=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,v7={};function xo(e,t){return(v7.jsx?N7:I7).test(e)}const w7=/[ \t\n\f\r]/g;function D7(e){return typeof e=="object"?e.type==="text"?Co(e.value):!1:Co(e)}function Co(e){return e.replace(w7,"")===""}let gu=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};gu.prototype.normal={};gu.prototype.property={};gu.prototype.space=void 0;function r0(e,t){const n={},r={};for(const u of e)Object.assign(n,u.property),Object.assign(r,u.normal);return new gu(n,r,t)}function uu(e){return e.toLowerCase()}let Mt=class{constructor(t,n){this.attribute=n,this.property=t}};Mt.prototype.attribute="";Mt.prototype.booleanish=!1;Mt.prototype.boolean=!1;Mt.prototype.commaOrSpaceSeparated=!1;Mt.prototype.commaSeparated=!1;Mt.prototype.defined=!1;Mt.prototype.mustUseProperty=!1;Mt.prototype.number=!1;Mt.prototype.overloadedBoolean=!1;Mt.prototype.property="";Mt.prototype.spaceSeparated=!1;Mt.prototype.space=void 0;let L7=0;const ye=or(),tt=or(),u0=or(),q=or(),Be=or(),Cr=or(),Bt=or();function or(){return 2**++L7}const Ls=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:tt,commaOrSpaceSeparated:Bt,commaSeparated:Cr,number:q,overloadedBoolean:u0,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),Wa=Object.keys(Ls);let oi=class extends Mt{constructor(t,n,r,u){let a=-1;if(super(t,n),Eo(this,"space",u),typeof r=="number")for(;++a<Wa.length;){const s=Wa[a];Eo(this,Wa[a],(r&Ls[s])===Ls[s])}}};oi.prototype.defined=!0;function Eo(e,t,n){n&&(e[t]=n)}function wr(e){const t={},n={};for(const[r,u]of Object.entries(e.properties)){const a=new oi(r,e.transform(e.attributes||{},r),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[uu(r)]=r,n[uu(a.attribute)]=r}return new gu(t,n,e.space)}const a0=wr({properties:{ariaActiveDescendant:null,ariaAtomic:tt,ariaAutoComplete:null,ariaBusy:tt,ariaChecked:tt,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:tt,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:tt,ariaFlowTo:Be,ariaGrabbed:tt,ariaHasPopup:null,ariaHidden:tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:q,ariaLive:null,ariaModal:tt,ariaMultiLine:tt,ariaMultiSelectable:tt,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:tt,ariaReadOnly:tt,ariaRelevant:null,ariaRequired:tt,ariaRoleDescription:Be,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:tt,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function s0(e,t){return t in e?e[t]:t}function i0(e,t){return s0(e,t.toLowerCase())}const P7=wr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cr,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Be,autoFocus:ye,autoPlay:ye,blocking:Be,capture:null,charSet:null,checked:ye,cite:null,className:Be,cols:q,colSpan:null,content:null,contentEditable:tt,controls:ye,controlsList:Be,coords:q|Cr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:u0,draggable:tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Be,height:q,hidden:ye,high:q,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Be,itemRef:Be,itemScope:ye,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,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:ye,optimum:q,pattern:null,ping:Be,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Be,required:ye,reversed:ye,rows:q,rowSpan:q,sandbox:Be,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:tt,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:tt,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:i0}),R7=wr({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:Bt,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:Be,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:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,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:Cr,g2:Cr,glyphName:Cr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:Bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,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:q,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:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bt,rev:Bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bt,requiredFeatures:Bt,requiredFonts:Bt,requiredFormats:Bt,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:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:Bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bt,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:s0}),o0=wr({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()}}),c0=wr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:i0}),l0=wr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),M7={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"},O7=/[A-Z]/g,yo=/-[a-z]/g,j7=/^data[-\w.:]+$/i;function ci(e,t){const n=uu(t);let r=t,u=Mt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&j7.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(yo,B7);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!yo.test(a)){let s=a.replace(O7,F7);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}u=oi}return new u(r,t)}function F7(e){return"-"+e.toLowerCase()}function B7(e){return e.charAt(1).toUpperCase()}const ba=r0([a0,P7,o0,c0,l0],"html"),Dr=r0([a0,R7,o0,c0,l0],"svg");function To(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function d0(e){return e.join(" ").trim()}var f0={},ko=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,H7=/\n/g,U7=/^\s*/,V7=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$7=/^:\s*/,z7=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,q7=/^[;\s]*/,Z7=/^\s+|\s+$/g,W7=`
|
|
61
61
|
`,Ao="/",So="*",tr="",Y7="comment",G7="declaration",X7=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function u(b){var _=b.match(H7);_&&(n+=_.length);var E=b.lastIndexOf(W7);r=~E?b.length-E:r+b.length}function a(){var b={line:n,column:r};return function(_){return _.position=new s(b),l(),_}}function s(b){this.start=b,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(b){var _=new Error(t.source+":"+n+":"+r+": "+b);if(_.reason=b,_.filename=t.source,_.line=n,_.column=r,_.source=e,!t.silent)throw _}function c(b){var _=b.exec(e);if(_){var E=_[0];return u(E),e=e.slice(E.length),_}}function l(){c(U7)}function h(b){var _;for(b=b||[];_=f();)_!==!1&&b.push(_);return b}function f(){var b=a();if(!(Ao!=e.charAt(0)||So!=e.charAt(1))){for(var _=2;tr!=e.charAt(_)&&(So!=e.charAt(_)||Ao!=e.charAt(_+1));)++_;if(_+=2,tr===e.charAt(_-1))return o("End of comment missing");var E=e.slice(2,_-2);return r+=2,u(E),e=e.slice(_),r+=2,b({type:Y7,comment:E})}}function m(){var b=a(),_=c(V7);if(_){if(f(),!c($7))return o("property missing ':'");var E=c(z7),x=b({type:G7,property:Io(_[0].replace(ko,tr)),value:E?Io(E[0].replace(ko,tr)):tr});return c(q7),x}}function p(){var b=[];h(b);for(var _;_=m();)_!==!1&&(b.push(_),h(b));return b}return l(),p()};function Io(e){return e?e.replace(Z7,tr):tr}var K7=g.commonjsGlobal&&g.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(f0,"__esModule",{value:!0});var No=f0.default=J7,Q7=K7(X7);function J7(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Q7.default)(e),u=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;u?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}const e9=No.default||No,_a=h0("end"),pn=h0("start");function h0(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function t9(e){const t=pn(e),n=_a(e);if(t&&n)return{start:t,end:n}}function Gr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vo(e.position):"start"in e||"end"in e?vo(e):"line"in e||"column"in e?Ps(e):""}function Ps(e){return wo(e&&e.line)+":"+wo(e&&e.column)}function vo(e){return Ps(e&&e.start)+"-"+Ps(e&&e.end)}function wo(e){return e&&typeof e=="number"?e:1}class Ct extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let u="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?u=t:!a.cause&&t&&(s=!0,u=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?a.ruleId=r:(a.source=r.slice(0,c),a.ruleId=r.slice(c+1))}if(!a.place&&a.ancestors&&a.ancestors){const c=a.ancestors[a.ancestors.length-1];c&&(a.place=c.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=u,this.line=o?o.line:void 0,this.name=Gr(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,this.expected,this.note,this.url}}Ct.prototype.file="";Ct.prototype.name="";Ct.prototype.reason="";Ct.prototype.message="";Ct.prototype.stack="";Ct.prototype.column=void 0;Ct.prototype.line=void 0;Ct.prototype.ancestors=void 0;Ct.prototype.cause=void 0;Ct.prototype.fatal=void 0;Ct.prototype.place=void 0;Ct.prototype.ruleId=void 0;Ct.prototype.source=void 0;const li={}.hasOwnProperty,n9=new Map,r9=/[A-Z]/g,u9=/-([a-z])/g,a9=new Set(["table","tbody","thead","tfoot","tr"]),s9=new Set(["td","th"]),p0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function i9(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=m9(n,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");r=p9(n,t.jsx,t.jsxs)}const u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Dr:ba,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=m0(u,e,void 0);return a&&typeof a!="string"?a:u.create(e,u.Fragment,{children:a||void 0},void 0)}function m0(e,t,n){if(t.type==="element")return o9(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return c9(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return d9(e,t,n);if(t.type==="mdxjsEsm")return l9(e,t);if(t.type==="root")return f9(e,t,n);if(t.type==="text")return h9(e,t)}function o9(e,t,n){const r=e.schema;let u=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(u=Dr,e.schema=u),e.ancestors.push(t);const a=b0(e,t.tagName,!1),s=g9(e,t);let o=fi(e,t);return a9.has(t.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!D7(c):!0})),g0(e,s,a,t),di(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function c9(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}au(e,t.position)}function l9(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);au(e,t.position)}function d9(e,t,n){const r=e.schema;let u=r;t.name==="svg"&&r.space==="html"&&(u=Dr,e.schema=u),e.ancestors.push(t);const a=t.name===null?e.Fragment:b0(e,t.name,!0),s=b9(e,t),o=fi(e,t);return g0(e,s,a,t),di(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function f9(e,t,n){const r={};return di(r,fi(e,t)),e.create(t,e.Fragment,r,n)}function h9(e,t){return t.value}function g0(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function di(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function p9(e,t,n){return r;function r(u,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function m9(e,t){return n;function n(r,u,a,s){const o=Array.isArray(a.children),c=pn(r);return t(u,a,s,o,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function g9(e,t){const n={};let r,u;for(u in t.properties)if(u!=="children"&&li.call(t.properties,u)){const a=_9(e,u,t.properties[u]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&s9.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function b9(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else au(e,t.position);else{const u=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else au(e,t.position);else a=r.value===null?!0:r.value;n[u]=a}return n}function fi(e,t){const n=[];let r=-1;const u=e.passKeys?new Map:n9;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const c=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(c){const l=u.get(c)||0;s=c+"-"+l,u.set(c,l+1)}}const o=m0(e,a,s);o!==void 0&&n.push(o)}return n}function _9(e,t,n){const r=ci(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?n0(n):d0(n)),r.property==="style"){let u=typeof n=="object"?n:x9(e,String(n));return e.stylePropertyNameCase==="css"&&(u=C9(u)),["style",u]}return[e.elementAttributeNameCase==="react"&&r.space?M7[r.property]||r.property:r.attribute,n]}}function x9(e,t){const n={};try{e9(t,r)}catch(u){if(!e.ignoreInvalidStyle){const a=u,s=new Ct("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=p0+"#cannot-parse-style-attribute",s}}return n;function r(u,a){let s=u;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(u9,y9)),n[s]=a}}function b0(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const u=t.split(".");let a=-1,s;for(;++a<u.length;){const o=xo(u[a])?{type:"Identifier",name:u[a]}:{type:"Literal",value:u[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=xo(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const u=r.value;return li.call(e.components,u)?e.components[u]:u}if(e.evaluater)return e.evaluater.evaluateExpression(r);au(e)}function au(e,t){const n=new Ct("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=p0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function C9(e){const t={};let n;for(n in e)li.call(e,n)&&(t[E9(n)]=e[n]);return t}function E9(e){let t=e.replace(r9,T9);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function y9(e,t){return t.toUpperCase()}function T9(e){return"-"+e.toLowerCase()}const Ya={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"]},k9={};function hi(e,t){const n=k9,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,u=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return _0(e,r,u)}function _0(e,t,n){if(A9(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Do(e.children,t,n)}return Array.isArray(e)?Do(e,t,n):""}function Do(e,t,n){const r=[];let u=-1;for(;++u<e.length;)r[u]=_0(e[u],t,n);return r.join("")}function A9(e){return!!(e&&typeof e=="object")}const Lo=document.createElement("i");function pi(e){const t="&"+e+";";Lo.innerHTML=t;const n=Lo.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function zt(e,t,n,r){const u=e.length;let a=0,s;if(t<0?t=-t>u?0:u+t:t=t>u?u:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Xt(e,t){return e.length>0?(zt(e,e.length,0,t),e):t}const Po={}.hasOwnProperty;function x0(e){const t={};let n=-1;for(;++n<e.length;)S9(t,e[n]);return t}function S9(e,t){let n;for(n in t){const u=(Po.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){Po.call(u,s)||(u[s]=[]);const o=a[s];I9(u[s],Array.isArray(o)?o:o?[o]:[])}}}function I9(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);zt(e,0,0,r)}function C0(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function nn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const kt=Wn(/[A-Za-z]/),xt=Wn(/[\dA-Za-z]/),N9=Wn(/[#-'*+\--9=?A-Z^-~]/);function Xu(e){return e!==null&&(e<32||e===127)}const Rs=Wn(/\d/),v9=Wn(/[\dA-Fa-f]/),w9=Wn(/[!-/:-@[-`{-~]/);function ce(e){return e!==null&&e<-2}function Fe(e){return e!==null&&(e<0||e===32)}function ve(e){return e===-2||e===-1||e===32}const xa=Wn(new RegExp("\\p{P}|\\p{S}","u")),sr=Wn(/\s/);function Wn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Lr(e){const t=[];let n=-1,r=0,u=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&xt(e.charCodeAt(n+1))&&xt(e.charCodeAt(n+2)))u=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(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),u=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+u+1,s=""),u&&(n+=u,u=0)}return t.join("")+e.slice(r)}function we(e,t,n,r){const u=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(c){return ve(c)?(e.enter(n),o(c)):t(c)}function o(c){return ve(c)&&a++<u?(e.consume(c),o):(e.exit(n),t(c))}}const D9={tokenize:L9};function L9(e){const t=e.attempt(this.parser.constructs.contentInitial,r,u);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),we(e,t,"linePrefix")}function u(o){return e.enter("paragraph"),a(o)}function a(o){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ce(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const P9={tokenize:R9},Ro={tokenize:M9};function R9(e){const t=this,n=[];let r=0,u,a,s;return o;function o(y){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,c,l)(y)}return l(y)}function c(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,u&&k();const D=t.events.length;let S=D,I;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){I=t.events[S][1].end;break}x(r);let M=D;for(;M<t.events.length;)t.events[M][1].end={...I},M++;return zt(t.events,S+1,0,t.events.slice(D)),t.events.length=M,l(y)}return o(y)}function l(y){if(r===n.length){if(!u)return m(y);if(u.currentConstruct&&u.currentConstruct.concrete)return b(y);t.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ro,h,f)(y)}function h(y){return u&&k(),x(r),m(y)}function f(y){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(y)}function m(y){return t.containerState={},e.attempt(Ro,p,b)(y)}function p(y){return r++,n.push([t.currentConstruct,t.containerState]),m(y)}function b(y){if(y===null){u&&k(),x(0),e.consume(y);return}return u=u||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:a}),_(y)}function _(y){if(y===null){E(e.exit("chunkFlow"),!0),x(0),e.consume(y);return}return ce(y)?(e.consume(y),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(y),_)}function E(y,D){const S=t.sliceStream(y);if(D&&S.push(null),y.previous=a,a&&(a.next=y),a=y,u.defineSkip(y.start),u.write(S),t.parser.lazy[y.start.line]){let I=u.events.length;for(;I--;)if(u.events[I][1].start.offset<s&&(!u.events[I][1].end||u.events[I][1].end.offset>s))return;const M=t.events.length;let H=M,U,P;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(U){P=t.events[H][1].end;break}U=!0}for(x(r),I=M;I<t.events.length;)t.events[I][1].end={...P},I++;zt(t.events,H+1,0,t.events.slice(M)),t.events.length=I}}function x(y){let D=n.length;for(;D-- >y;){const S=n[D];t.containerState=S[1],S[0].exit.call(t,e)}n.length=y}function k(){u.write([null]),a=void 0,u=void 0,t.containerState._closeFlow=void 0}}function M9(e,t,n){return we(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Tr(e){if(e===null||Fe(e)||sr(e))return 1;if(xa(e))return 2}function Ca(e,t,n){const r=[];let u=-1;for(;++u<e.length;){const a=e[u].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Ms={name:"attention",resolveAll:O9,tokenize:j9};function O9(e,t){let n=-1,r,u,a,s,o,c,l,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},m={...e[n][1].start};Mo(f,-c),Mo(m,c),s={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},o={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},a={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},u={type:c>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Xt(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Xt(l,[["enter",u,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=Xt(l,Ca(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Xt(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",u,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,l=Xt(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,zt(e,r-1,n-r+3,l),n=r+l.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function j9(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,u=Tr(r);let a;return s;function s(c){return a=c,e.enter("attentionSequence"),o(c)}function o(c){if(c===a)return e.consume(c),o;const l=e.exit("attentionSequence"),h=Tr(c),f=!h||h===2&&u||n.includes(c),m=!u||u===2&&h||n.includes(r);return l._open=!!(a===42?f:f&&(u||!m)),l._close=!!(a===42?m:m&&(h||!f)),t(c)}}function Mo(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const F9={name:"autolink",tokenize:B9};function B9(e,t,n){let r=0;return u;function u(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return kt(p)?(e.consume(p),s):p===64?n(p):l(p)}function s(p){return p===43||p===45||p===46||xt(p)?(r=1,o(p)):l(p)}function o(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||xt(p))&&r++<32?(e.consume(p),o):(r=0,l(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Xu(p)?n(p):(e.consume(p),c)}function l(p){return p===64?(e.consume(p),h):N9(p)?(e.consume(p),l):n(p)}function h(p){return xt(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,h):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):m(p)}function m(p){if((p===45||xt(p))&&r++<63){const b=p===45?m:f;return e.consume(p),b}return n(p)}}const bu={partial:!0,tokenize:H9};function H9(e,t,n){return r;function r(a){return ve(a)?we(e,u,"linePrefix")(a):u(a)}function u(a){return a===null||ce(a)?t(a):n(a)}}const E0={continuation:{tokenize:V9},exit:$9,name:"blockQuote",tokenize:U9};function U9(e,t,n){const r=this;return u;function u(s){if(s===62){const o=r.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 n(s)}function a(s){return ve(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function V9(e,t,n){const r=this;return u;function u(s){return ve(s)?we(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(E0,t,n)(s)}}function $9(e){e.exit("blockQuote")}const y0={name:"characterEscape",tokenize:z9};function z9(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),u}function u(a){return w9(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const T0={name:"characterReference",tokenize:q9};function q9(e,t,n){const r=this;let u=0,a,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=xt,h(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=v9,h):(e.enter("characterReferenceValue"),a=7,s=Rs,h(f))}function h(f){if(f===59&&u){const m=e.exit("characterReferenceValue");return s===xt&&!pi(r.sliceSerialize(m))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&u++<a?(e.consume(f),h):n(f)}}const Oo={partial:!0,tokenize:W9},jo={concrete:!0,name:"codeFenced",tokenize:Z9};function Z9(e,t,n){const r=this,u={partial:!0,tokenize:S};let a=0,s=0,o;return c;function c(I){return l(I)}function l(I){const M=r.events[r.events.length-1];return a=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,o=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(I)}function h(I){return I===o?(s++,e.consume(I),h):s<3?n(I):(e.exit("codeFencedFenceSequence"),ve(I)?we(e,f,"whitespace")(I):f(I))}function f(I){return I===null||ce(I)?(e.exit("codeFencedFence"),r.interrupt?t(I):e.check(Oo,_,D)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(I))}function m(I){return I===null||ce(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(I)):ve(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),we(e,p,"whitespace")(I)):I===96&&I===o?n(I):(e.consume(I),m)}function p(I){return I===null||ce(I)?f(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(I))}function b(I){return I===null||ce(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(I)):I===96&&I===o?n(I):(e.consume(I),b)}function _(I){return e.attempt(u,D,E)(I)}function E(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),x}function x(I){return a>0&&ve(I)?we(e,k,"linePrefix",a+1)(I):k(I)}function k(I){return I===null||ce(I)?e.check(Oo,_,D)(I):(e.enter("codeFlowValue"),y(I))}function y(I){return I===null||ce(I)?(e.exit("codeFlowValue"),k(I)):(e.consume(I),y)}function D(I){return e.exit("codeFenced"),t(I)}function S(I,M,H){let U=0;return P;function P(K){return I.enter("lineEnding"),I.consume(K),I.exit("lineEnding"),B}function B(K){return I.enter("codeFencedFence"),ve(K)?we(I,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):O(K)}function O(K){return K===o?(I.enter("codeFencedFenceSequence"),X(K)):H(K)}function X(K){return K===o?(U++,I.consume(K),X):U>=s?(I.exit("codeFencedFenceSequence"),ve(K)?we(I,Y,"whitespace")(K):Y(K)):H(K)}function Y(K){return K===null||ce(K)?(I.exit("codeFencedFence"),M(K)):H(K)}}}function W9(e,t,n){const r=this;return u;function u(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Ga={name:"codeIndented",tokenize:G9},Y9={partial:!0,tokenize:X9};function G9(e,t,n){const r=this;return u;function u(l){return e.enter("codeIndented"),we(e,a,"linePrefix",5)(l)}function a(l){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?c(l):ce(l)?e.attempt(Y9,s,c)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||ce(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function c(l){return e.exit("codeIndented"),t(l)}}function X9(e,t,n){const r=this;return u;function u(s){return r.parser.lazy[r.now().line]?n(s):ce(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u):we(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ce(s)?u(s):n(s)}}const K9={name:"codeText",previous:J9,resolve:Q9,tokenize:eg};function Q9(e){let t=e.length-4,n=3,r,u;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)u===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(u=r):(r===t||e[r][1].type==="lineEnding")&&(e[u][1].type="codeTextData",r!==u+2&&(e[u][1].end=e[r-1][1].end,e.splice(u+2,r-u-2),t-=r-u-2,r=u+2),u=void 0);return e}function J9(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function eg(e,t,n){let r=0,u,a;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(a=e.enter("codeTextSequence"),u=0,h(f)):ce(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),l(f))}function l(f){return f===null||f===32||f===96||ce(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),l)}function h(f){return f===96?(e.consume(f),u++,h):u===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",l(f))}}class tg{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,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const u=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return r&&Hr(this.left,r),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),Hr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Hr(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 n=this.left.splice(t,Number.POSITIVE_INFINITY);Hr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Hr(this.left,n.reverse())}}}function Hr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function k0(e){const t={};let n=-1,r,u,a,s,o,c,l;const h=new tg(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type==="lineEndingBlank"&&(a+=2),a<c.length&&c[a][1].type==="content"))for(;++a<c.length&&c[a][1].type!=="content";)c[a][1].type==="chunkText"&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,ng(h,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,u=void 0;a--;)if(s=h.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(u&&(h.get(u)[1].type="lineEndingBlank"),s[1].type="lineEnding",u=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;u&&(r[1].end={...h.get(u)[1].start},o=h.slice(u,n),o.unshift(r),h.splice(u,n-u+1,o))}}return zt(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!l}function ng(e,t){const n=e.get(t)[1],r=e.get(t)[2];let u=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,c=[],l={};let h,f,m=-1,p=n,b=0,_=0;const E=[_];for(;p;){for(;e.get(++u)[1]!==p;);a.push(u),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(_=m+1,E.push(_),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):E.pop(),m=E.length;m--;){const x=o.slice(E[m],E[m+1]),k=a.pop();c.push([k,k+x.length-1]),e.splice(k,2,x)}for(c.reverse(),m=-1;++m<c.length;)l[b+c[m][0]]=b+c[m][1],b+=c[m][1]-c[m][0]-1;return l}const rg={resolve:ag,tokenize:sg},ug={partial:!0,tokenize:ig};function ag(e){return k0(e),e}function sg(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),u(o)}function u(o){return o===null?a(o):ce(o)?e.check(ug,s,a)(o):(e.consume(o),u)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,u}}function ig(e,t,n){const r=this;return u;function u(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),we(e,a,"linePrefix")}function a(s){if(s===null||ce(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function A0(e,t,n,r,u,a,s,o,c){const l=c||Number.POSITIVE_INFINITY;let h=0;return f;function f(x){return x===60?(e.enter(r),e.enter(u),e.enter(a),e.consume(x),e.exit(a),m):x===null||x===32||x===41||Xu(x)?n(x):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),_(x))}function m(x){return x===62?(e.enter(a),e.consume(x),e.exit(a),e.exit(u),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(o),m(x)):x===null||x===60||ce(x)?n(x):(e.consume(x),x===92?b:p)}function b(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function _(x){return!h&&(x===null||x===41||Fe(x))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(x)):h<l&&x===40?(e.consume(x),h++,_):x===41?(e.consume(x),h--,_):x===null||x===32||x===40||Xu(x)?n(x):(e.consume(x),x===92?E:_)}function E(x){return x===40||x===41||x===92?(e.consume(x),_):_(x)}}function S0(e,t,n,r,u,a){const s=this;let o=0,c;return l;function l(p){return e.enter(r),e.enter(u),e.consume(p),e.exit(u),e.enter(a),h}function h(p){return o>999||p===null||p===91||p===93&&!c||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(u),e.consume(p),e.exit(u),e.exit(r),t):ce(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||ce(p)||o++>999?(e.exit("chunkString"),h(p)):(e.consume(p),c||(c=!ve(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}}function I0(e,t,n,r,u,a){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(u),e.consume(m),e.exit(u),s=m===40?41:m,c):n(m)}function c(m){return m===s?(e.enter(u),e.consume(m),e.exit(u),e.exit(r),t):(e.enter(a),l(m))}function l(m){return m===s?(e.exit(a),c(s)):m===null?n(m):ce(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),we(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===s||m===null||ce(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?f:h)}function f(m){return m===s||m===92?(e.consume(m),h):h(m)}}function Xr(e,t){let n;return r;function r(u){return ce(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n=!0,r):ve(u)?we(e,r,n?"linePrefix":"lineSuffix")(u):t(u)}}const og={name:"definition",tokenize:lg},cg={partial:!0,tokenize:dg};function lg(e,t,n){const r=this;let u;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return S0.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return u=nn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):n(p)}function c(p){return Fe(p)?Xr(e,l)(p):l(p)}function l(p){return A0(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(cg,f,f)(p)}function f(p){return ve(p)?we(e,m,"whitespace")(p):m(p)}function m(p){return p===null||ce(p)?(e.exit("definition"),r.parser.defined.push(u),t(p)):n(p)}}function dg(e,t,n){return r;function r(o){return Fe(o)?Xr(e,u)(o):n(o)}function u(o){return I0(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return ve(o)?we(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ce(o)?t(o):n(o)}}const fg={name:"hardBreakEscape",tokenize:hg};function hg(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),u}function u(a){return ce(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const pg={name:"headingAtx",resolve:mg,tokenize:gg};function mg(e,t){let n=e.length-2,r=3,u,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(u={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},zt(e,r,n-r+1,[["enter",u,t],["enter",a,t],["exit",a,t],["exit",u,t]])),e}function gg(e,t,n){let r=0;return u;function u(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&r++<6?(e.consume(h),s):h===null||Fe(h)?(e.exit("atxHeadingSequence"),o(h)):n(h)}function o(h){return h===35?(e.enter("atxHeadingSequence"),c(h)):h===null||ce(h)?(e.exit("atxHeading"),t(h)):ve(h)?we(e,o,"whitespace")(h):(e.enter("atxHeadingText"),l(h))}function c(h){return h===35?(e.consume(h),c):(e.exit("atxHeadingSequence"),o(h))}function l(h){return h===null||h===35||Fe(h)?(e.exit("atxHeadingText"),o(h)):(e.consume(h),l)}}const bg=["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"],Fo=["pre","script","style","textarea"],_g={concrete:!0,name:"htmlFlow",resolveTo:Eg,tokenize:yg},xg={partial:!0,tokenize:kg},Cg={partial:!0,tokenize:Tg};function Eg(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 yg(e,t,n){const r=this;let u,a,s,o,c;return l;function l(v){return h(v)}function h(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),f}function f(v){return v===33?(e.consume(v),m):v===47?(e.consume(v),a=!0,_):v===63?(e.consume(v),u=3,r.interrupt?t:C):kt(v)?(e.consume(v),s=String.fromCharCode(v),E):n(v)}function m(v){return v===45?(e.consume(v),u=2,p):v===91?(e.consume(v),u=5,o=0,b):kt(v)?(e.consume(v),u=4,r.interrupt?t:C):n(v)}function p(v){return v===45?(e.consume(v),r.interrupt?t:C):n(v)}function b(v){const J="CDATA[";return v===J.charCodeAt(o++)?(e.consume(v),o===J.length?r.interrupt?t:O:b):n(v)}function _(v){return kt(v)?(e.consume(v),s=String.fromCharCode(v),E):n(v)}function E(v){if(v===null||v===47||v===62||Fe(v)){const J=v===47,ne=s.toLowerCase();return!J&&!a&&Fo.includes(ne)?(u=1,r.interrupt?t(v):O(v)):bg.includes(s.toLowerCase())?(u=6,J?(e.consume(v),x):r.interrupt?t(v):O(v)):(u=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(v):a?k(v):y(v))}return v===45||xt(v)?(e.consume(v),s+=String.fromCharCode(v),E):n(v)}function x(v){return v===62?(e.consume(v),r.interrupt?t:O):n(v)}function k(v){return ve(v)?(e.consume(v),k):P(v)}function y(v){return v===47?(e.consume(v),P):v===58||v===95||kt(v)?(e.consume(v),D):ve(v)?(e.consume(v),y):P(v)}function D(v){return v===45||v===46||v===58||v===95||xt(v)?(e.consume(v),D):S(v)}function S(v){return v===61?(e.consume(v),I):ve(v)?(e.consume(v),S):y(v)}function I(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),c=v,M):ve(v)?(e.consume(v),I):H(v)}function M(v){return v===c?(e.consume(v),c=null,U):v===null||ce(v)?n(v):(e.consume(v),M)}function H(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||Fe(v)?S(v):(e.consume(v),H)}function U(v){return v===47||v===62||ve(v)?y(v):n(v)}function P(v){return v===62?(e.consume(v),B):n(v)}function B(v){return v===null||ce(v)?O(v):ve(v)?(e.consume(v),B):n(v)}function O(v){return v===45&&u===2?(e.consume(v),ue):v===60&&u===1?(e.consume(v),ae):v===62&&u===4?(e.consume(v),V):v===63&&u===3?(e.consume(v),C):v===93&&u===5?(e.consume(v),_e):ce(v)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(xg,te,X)(v)):v===null||ce(v)?(e.exit("htmlFlowData"),X(v)):(e.consume(v),O)}function X(v){return e.check(Cg,Y,te)(v)}function Y(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),K}function K(v){return v===null||ce(v)?X(v):(e.enter("htmlFlowData"),O(v))}function ue(v){return v===45?(e.consume(v),C):O(v)}function ae(v){return v===47?(e.consume(v),s="",se):O(v)}function se(v){if(v===62){const J=s.toLowerCase();return Fo.includes(J)?(e.consume(v),V):O(v)}return kt(v)&&s.length<8?(e.consume(v),s+=String.fromCharCode(v),se):O(v)}function _e(v){return v===93?(e.consume(v),C):O(v)}function C(v){return v===62?(e.consume(v),V):v===45&&u===2?(e.consume(v),C):O(v)}function V(v){return v===null||ce(v)?(e.exit("htmlFlowData"),te(v)):(e.consume(v),V)}function te(v){return e.exit("htmlFlow"),t(v)}}function Tg(e,t,n){const r=this;return u;function u(s){return ce(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function kg(e,t,n){return r;function r(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(bu,t,n)}}const Ag={name:"htmlText",tokenize:Sg};function Sg(e,t,n){const r=this;let u,a,s;return o;function o(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),c}function c(C){return C===33?(e.consume(C),l):C===47?(e.consume(C),S):C===63?(e.consume(C),y):kt(C)?(e.consume(C),H):n(C)}function l(C){return C===45?(e.consume(C),h):C===91?(e.consume(C),a=0,b):kt(C)?(e.consume(C),k):n(C)}function h(C){return C===45?(e.consume(C),p):n(C)}function f(C){return C===null?n(C):C===45?(e.consume(C),m):ce(C)?(s=f,ae(C)):(e.consume(C),f)}function m(C){return C===45?(e.consume(C),p):f(C)}function p(C){return C===62?ue(C):C===45?m(C):f(C)}function b(C){const V="CDATA[";return C===V.charCodeAt(a++)?(e.consume(C),a===V.length?_:b):n(C)}function _(C){return C===null?n(C):C===93?(e.consume(C),E):ce(C)?(s=_,ae(C)):(e.consume(C),_)}function E(C){return C===93?(e.consume(C),x):_(C)}function x(C){return C===62?ue(C):C===93?(e.consume(C),x):_(C)}function k(C){return C===null||C===62?ue(C):ce(C)?(s=k,ae(C)):(e.consume(C),k)}function y(C){return C===null?n(C):C===63?(e.consume(C),D):ce(C)?(s=y,ae(C)):(e.consume(C),y)}function D(C){return C===62?ue(C):y(C)}function S(C){return kt(C)?(e.consume(C),I):n(C)}function I(C){return C===45||xt(C)?(e.consume(C),I):M(C)}function M(C){return ce(C)?(s=M,ae(C)):ve(C)?(e.consume(C),M):ue(C)}function H(C){return C===45||xt(C)?(e.consume(C),H):C===47||C===62||Fe(C)?U(C):n(C)}function U(C){return C===47?(e.consume(C),ue):C===58||C===95||kt(C)?(e.consume(C),P):ce(C)?(s=U,ae(C)):ve(C)?(e.consume(C),U):ue(C)}function P(C){return C===45||C===46||C===58||C===95||xt(C)?(e.consume(C),P):B(C)}function B(C){return C===61?(e.consume(C),O):ce(C)?(s=B,ae(C)):ve(C)?(e.consume(C),B):U(C)}function O(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),u=C,X):ce(C)?(s=O,ae(C)):ve(C)?(e.consume(C),O):(e.consume(C),Y)}function X(C){return C===u?(e.consume(C),u=void 0,K):C===null?n(C):ce(C)?(s=X,ae(C)):(e.consume(C),X)}function Y(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||Fe(C)?U(C):(e.consume(C),Y)}function K(C){return C===47||C===62||Fe(C)?U(C):n(C)}function ue(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function ae(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),se}function se(C){return ve(C)?we(e,_e,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):_e(C)}function _e(C){return e.enter("htmlTextData"),s(C)}}const mi={name:"labelEnd",resolveAll:wg,resolveTo:Dg,tokenize:Lg},Ig={tokenize:Pg},Ng={tokenize:Rg},vg={tokenize:Mg};function wg(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const u=r.type==="labelImage"?4:2;r.type="data",t+=u}}return e.length!==n.length&&zt(e,0,e.length,n),e}function Dg(e,t){let n=e.length,r=0,u,a,s,o;for(;n--;)if(u=e[n][1],a){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[n][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(a=n,u.type!=="labelLink")){r=2;break}}else u.type==="labelEnd"&&(s=n);const c={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",c,t],["enter",l,t]],o=Xt(o,e.slice(a+1,a+r+3)),o=Xt(o,[["enter",h,t]]),o=Xt(o,Ca(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=Xt(o,[["exit",h,t],e[s-2],e[s-1],["exit",l,t]]),o=Xt(o,e.slice(s+1)),o=Xt(o,[["exit",c,t]]),zt(e,a,e.length,o),e}function Lg(e,t,n){const r=this;let u=r.events.length,a,s;for(;u--;)if((r.events[u][1].type==="labelImage"||r.events[u][1].type==="labelLink")&&!r.events[u][1]._balanced){a=r.events[u][1];break}return o;function o(m){return a?a._inactive?f(m):(s=r.parser.defined.includes(nn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):n(m)}function c(m){return m===40?e.attempt(Ig,h,s?h:f)(m):m===91?e.attempt(Ng,h,s?l:f)(m):s?h(m):f(m)}function l(m){return e.attempt(vg,h,f)(m)}function h(m){return t(m)}function f(m){return a._balanced=!0,n(m)}}function Pg(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),u}function u(f){return Fe(f)?Xr(e,a)(f):a(f)}function a(f){return f===41?h(f):A0(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Fe(f)?Xr(e,c)(f):h(f)}function o(f){return n(f)}function c(f){return f===34||f===39||f===40?I0(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):h(f)}function l(f){return Fe(f)?Xr(e,h)(f):h(f)}function h(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Rg(e,t,n){const r=this;return u;function u(o){return S0.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(nn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Mg(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),u}function u(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Og={name:"labelStartImage",resolveAll:mi.resolveAll,tokenize:jg};function jg(e,t,n){const r=this;return u;function u(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):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Fg={name:"labelStartLink",resolveAll:mi.resolveAll,tokenize:Bg};function Bg(e,t,n){const r=this;return u;function u(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 r.parser.constructs?n(s):t(s)}}const Xa={name:"lineEnding",tokenize:Hg};function Hg(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),we(e,t,"linePrefix")}}const zu={name:"thematicBreak",tokenize:Ug};function Ug(e,t,n){let r=0,u;return a;function a(l){return e.enter("thematicBreak"),s(l)}function s(l){return u=l,o(l)}function o(l){return l===u?(e.enter("thematicBreakSequence"),c(l)):r>=3&&(l===null||ce(l))?(e.exit("thematicBreak"),t(l)):n(l)}function c(l){return l===u?(e.consume(l),r++,c):(e.exit("thematicBreakSequence"),ve(l)?we(e,o,"whitespace")(l):o(l))}}const Dt={continuation:{tokenize:qg},exit:Wg,name:"list",tokenize:zg},Vg={partial:!0,tokenize:Yg},$g={partial:!0,tokenize:Zg};function zg(e,t,n){const r=this,u=r.events[r.events.length-1];let a=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,s=0;return o;function o(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Rs(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(zu,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return n(p)}function c(p){return Rs(p)&&++s<10?(e.consume(p),c):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(bu,r.interrupt?n:h,e.attempt(Vg,m,f))}function h(p){return r.containerState.initialBlankLine=!0,a++,m(p)}function f(p){return ve(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function qg(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(bu,u,a);function u(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,we(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!ve(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($g,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,we(e,e.attempt(Dt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Zg(e,t,n){const r=this;return we(e,u,"listItemIndent",r.containerState.size+1);function u(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function Wg(e){e.exit(this.containerState.type)}function Yg(e,t,n){const r=this;return we(e,u,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(a){const s=r.events[r.events.length-1];return!ve(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Bo={name:"setextUnderline",resolveTo:Gg,tokenize:Xg};function Gg(e,t){let n=e.length,r,u,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(u=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[u][1].type="setextHeadingText",a?(e.splice(u,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Xg(e,t,n){const r=this;let u;return a;function a(l){let h=r.events.length,f;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){f=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),u=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===u?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),ve(l)?we(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||ce(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Kg={tokenize:Qg};function Qg(e){const t=this,n=e.attempt(bu,r,e.attempt(this.parser.constructs.flowInitial,u,we(e,e.attempt(this.parser.constructs.flow,u,e.attempt(rg,u)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function u(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Jg={resolveAll:v0()},eb=N0("string"),tb=N0("text");function N0(e){return{resolveAll:v0(e==="text"?nb:void 0),tokenize:t};function t(n){const r=this,u=this.parser.constructs[e],a=n.attempt(u,s,o);return s;function s(h){return l(h)?a(h):o(h)}function o(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),c}function c(h){return l(h)?(n.exit("data"),a(h)):(n.consume(h),c)}function l(h){if(h===null)return!0;const f=u[h];let m=-1;if(f)for(;++m<f.length;){const p=f[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function v0(e){return t;function t(n,r){let u=-1,a;for(;++u<=n.length;)a===void 0?n[u]&&n[u][1].type==="data"&&(a=u,u++):(!n[u]||n[u][1].type!=="data")&&(u!==a+2&&(n[a][1].end=n[u-1][1].end,n.splice(a+2,u-a-2),u=a+2),a=void 0);return e?e(n,r):n}}function nb(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],u=t.sliceStream(r);let a=u.length,s=-1,o=0,c;for(;a--;){const l=u[a];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)c=!0,o++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const l={type:n===e.length||c||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const rb={42:Dt,43:Dt,45:Dt,48:Dt,49:Dt,50:Dt,51:Dt,52:Dt,53:Dt,54:Dt,55:Dt,56:Dt,57:Dt,62:E0},ub={91:og},ab={[-2]:Ga,[-1]:Ga,32:Ga},sb={35:pg,42:zu,45:[Bo,zu],60:_g,61:Bo,95:zu,96:jo,126:jo},ib={38:T0,92:y0},ob={[-5]:Xa,[-4]:Xa,[-3]:Xa,33:Og,38:T0,42:Ms,60:[F9,Ag],91:Fg,92:[fg,y0],93:mi,95:Ms,96:K9},cb={null:[Ms,Jg]},lb={null:[42,95]},db={null:[]},fb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:lb,contentInitial:ub,disable:db,document:rb,flow:sb,flowInitial:ab,insideSpan:cb,string:ib,text:ob},Symbol.toStringTag,{value:"Module"}));function hb(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const u={},a=[];let s=[],o=[];const c={attempt:M(S),check:M(I),consume:k,enter:y,exit:D,interrupt:M(I,{interrupt:!0})},l={code:null,containerState:{},defineSkip:_,events:[],now:b,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:f};let h=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function f(B){return s=Xt(s,B),E(),s[s.length-1]!==null?[]:(H(t,0),l.events=Ca(a,l.events,l),l.events)}function m(B,O){return mb(p(B),O)}function p(B){return pb(s,B)}function b(){const{_bufferIndex:B,_index:O,line:X,column:Y,offset:K}=r;return{_bufferIndex:B,_index:O,line:X,column:Y,offset:K}}function _(B){u[B.line]=B.column,P()}function E(){let B;for(;r._index<s.length;){const O=s[r._index];if(typeof O=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<O.length;)x(O.charCodeAt(r._bufferIndex));else x(O)}}function x(B){h=h(B)}function k(B){ce(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,P()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=B}function y(B,O){const X=O||{};return X.type=B,X.start=b(),l.events.push(["enter",X,l]),o.push(X),X}function D(B){const O=o.pop();return O.end=b(),l.events.push(["exit",O,l]),O}function S(B,O){H(B,O.from)}function I(B,O){O.restore()}function M(B,O){return X;function X(Y,K,ue){let ae,se,_e,C;return Array.isArray(Y)?te(Y):"tokenize"in Y?te([Y]):V(Y);function V(Q){return de;function de(le){const ie=le!==null&&Q[le],xe=le!==null&&Q.null,ze=[...Array.isArray(ie)?ie:ie?[ie]:[],...Array.isArray(xe)?xe:xe?[xe]:[]];return te(ze)(le)}}function te(Q){return ae=Q,se=0,Q.length===0?ue:v(Q[se])}function v(Q){return de;function de(le){return C=U(),_e=Q,Q.partial||(l.currentConstruct=Q),Q.name&&l.parser.constructs.disable.null.includes(Q.name)?ne():Q.tokenize.call(O?Object.assign(Object.create(l),O):l,c,J,ne)(le)}}function J(Q){return B(_e,C),K}function ne(Q){return C.restore(),++se<ae.length?v(ae[se]):ue}}}function H(B,O){B.resolveAll&&!a.includes(B)&&a.push(B),B.resolve&&zt(l.events,O,l.events.length-O,B.resolve(l.events.slice(O),l)),B.resolveTo&&(l.events=B.resolveTo(l.events,l))}function U(){const B=b(),O=l.previous,X=l.currentConstruct,Y=l.events.length,K=Array.from(o);return{from:Y,restore:ue};function ue(){r=B,l.previous=O,l.currentConstruct=X,l.events.length=Y,o=K,P()}}function P(){r.line in u&&r.column<2&&(r.column=u[r.line],r.offset+=u[r.line]-1)}}function pb(e,t){const n=t.start._index,r=t.start._bufferIndex,u=t.end._index,a=t.end._bufferIndex;let s;if(n===u)s=[e[n].slice(r,a)];else{if(s=e.slice(n,u),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[u].slice(0,a))}return s}function mb(e,t){let n=-1;const r=[];let u;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
62
62
|
`;break}case-3:{s=`\r
|
|
63
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&u)continue;s=" ";break}default:s=String.fromCharCode(a)}u=a===-2,r.push(s)}return r.join("")}function gb(e){const r={constructs:x0([fb,...(e||{}).extensions||[]]),content:u(D9),defined:[],document:u(P9),flow:u(Kg),lazy:{},string:u(eb),text:u(tb)};return r;function u(a){return s;function s(o){return hb(r,a,o)}}}function bb(e){for(;!k0(e););return e}const Ho=/[\0\t\n\r]/g;function _b(){let e=1,t="",n=!0,r;return u;function u(a,s,o){const c=[];let l,h,f,m,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(Ho.lastIndex=f,l=Ho.exec(a),m=l&&l.index!==void 0?l.index:a.length,p=a.charCodeAt(m),!l){t=a.slice(f);break}if(p===10&&f===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<m&&(c.push(a.slice(f,m)),e+=m-f),p){case 0:{c.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,c.push(-2);e++<h;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}f=m+1}return o&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const xb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Cb(e){return e.replace(xb,Eb)}function Eb(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const u=n.charCodeAt(1),a=u===120||u===88;return C0(n.slice(a?2:1),a?16:10)}return pi(n)||e}const w0={}.hasOwnProperty;function yb(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Tb(n)(bb(gb(n).document().write(_b()(e,t,!0))))}function Tb(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ee),autolinkProtocol:U,autolinkEmail:U,atxHeading:a(pe),blockQuote:a(xe),characterEscape:U,characterReference:U,codeFenced:a(ze),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(ze,s),codeText:a(G,s),codeTextData:U,data:U,codeFlowValue:U,definition:a(pt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(oe),hardBreakEscape:a(Qe),hardBreakTrailing:a(Qe),htmlFlow:a(Ee,s),htmlFlowData:U,htmlText:a(Ee,s),htmlTextData:U,image:a(Ne),label:s,link:a(ee),listItem:a(mt),listItemValue:m,listOrdered:a(ge,f),listUnordered:a(ge),paragraph:a(gt),reference:v,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(pe),strong:a(Zt),thematicBreak:a($e)},exit:{atxHeading:c(),atxHeadingSequence:S,autolink:c(),autolinkEmail:ie,autolinkProtocol:le,blockQuote:c(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:Q,characterReference:de,codeFenced:c(E),codeFencedFence:_,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:P,codeIndented:c(x),codeText:c(K),codeTextData:P,data:P,definition:c(),definitionDestinationString:D,definitionLabelString:k,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(X),htmlFlowData:P,htmlText:c(Y),htmlTextData:P,image:c(ae),label:_e,labelText:se,lineEnding:B,link:c(ue),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:J,resourceDestinationString:C,resourceTitleString:V,resource:te,setextHeading:c(H),setextHeadingLineSequence:M,setextHeadingText:I,strong:c(),thematicBreak:c()}};D0(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(j){let W={type:"root",children:[]};const fe={stack:[W],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:h,data:n},Se=[];let Oe=-1;for(;++Oe<j.length;)if(j[Oe][1].type==="listOrdered"||j[Oe][1].type==="listUnordered")if(j[Oe][0]==="enter")Se.push(Oe);else{const Ot=Se.pop();Oe=u(j,Ot,Oe)}for(Oe=-1;++Oe<j.length;){const Ot=t[j[Oe][0]];w0.call(Ot,j[Oe][1].type)&&Ot[j[Oe][1].type].call(Object.assign({sliceSerialize:j[Oe][2].sliceSerialize},fe),j[Oe][1])}if(fe.tokenStack.length>0){const Ot=fe.tokenStack[fe.tokenStack.length-1];(Ot[1]||Uo).call(fe,void 0,Ot[0])}for(W.position={start:Dn(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Dn(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<t.transforms.length;)W=t.transforms[Oe](W)||W;return W}function u(j,W,fe){let Se=W-1,Oe=-1,Ot=!1,_n,dt,xn,Yn;for(;++Se<=fe;){const jt=j[Se];switch(jt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{jt[0]==="enter"?Oe++:Oe--,Yn=void 0;break}case"lineEndingBlank":{jt[0]==="enter"&&(_n&&!Yn&&!Oe&&!xn&&(xn=Se),Yn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Yn=void 0}if(!Oe&&jt[0]==="enter"&&jt[1].type==="listItemPrefix"||Oe===-1&&jt[0]==="exit"&&(jt[1].type==="listUnordered"||jt[1].type==="listOrdered")){if(_n){let dr=Se;for(dt=void 0;dr--;){const Cn=j[dr];if(Cn[1].type==="lineEnding"||Cn[1].type==="lineEndingBlank"){if(Cn[0]==="exit")continue;dt&&(j[dt][1].type="lineEndingBlank",Ot=!0),Cn[1].type="lineEnding",dt=dr}else if(!(Cn[1].type==="linePrefix"||Cn[1].type==="blockQuotePrefix"||Cn[1].type==="blockQuotePrefixWhitespace"||Cn[1].type==="blockQuoteMarker"||Cn[1].type==="listItemIndent"))break}xn&&(!dt||xn<dt)&&(_n._spread=!0),_n.end=Object.assign({},dt?j[dt][1].start:jt[1].end),j.splice(dt||Se,0,["exit",_n,jt[2]]),Se++,fe++}if(jt[1].type==="listItemPrefix"){const dr={type:"listItem",_spread:!1,start:Object.assign({},jt[1].start),end:void 0};_n=dr,j.splice(Se,0,["enter",dr,jt[2]]),Se++,fe++,xn=void 0,Yn=!0}}}return j[W][1]._spread=Ot,fe}function a(j,W){return fe;function fe(Se){o.call(this,j(Se),Se),W&&W.call(this,Se)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,W,fe){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([W,fe||void 0]),j.position={start:Dn(W.start),end:void 0}}function c(j){return W;function W(fe){j&&j.call(this,fe),l.call(this,fe)}}function l(j,W){const fe=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==j.type&&(W?W.call(this,j,Se[0]):(Se[1]||Uo).call(this,j,Se[0]));else throw new Error("Cannot close `"+j.type+"` ("+Gr({start:j.start,end:j.end})+"): it’s not open");fe.position.end=Dn(j.end)}function h(){return hi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(j){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function p(){const j=this.resume(),W=this.stack[this.stack.length-1];W.lang=j}function b(){const j=this.resume(),W=this.stack[this.stack.length-1];W.meta=j}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j.replace(/(\r?\n|\r)$/g,"")}function k(j){const W=this.resume(),fe=this.stack[this.stack.length-1];fe.label=W,fe.identifier=nn(this.sliceSerialize(j)).toLowerCase()}function y(){const j=this.resume(),W=this.stack[this.stack.length-1];W.title=j}function D(){const j=this.resume(),W=this.stack[this.stack.length-1];W.url=j}function S(j){const W=this.stack[this.stack.length-1];if(!W.depth){const fe=this.sliceSerialize(j).length;W.depth=fe}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function M(j){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function U(j){const fe=this.stack[this.stack.length-1].children;let Se=fe[fe.length-1];(!Se||Se.type!=="text")&&(Se=At(),Se.position={start:Dn(j.start),end:void 0},fe.push(Se)),this.stack.push(Se)}function P(j){const W=this.stack.pop();W.value+=this.sliceSerialize(j),W.position.end=Dn(j.end)}function B(j){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const fe=W.children[W.children.length-1];fe.position.end=Dn(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(U.call(this,j),P.call(this,j))}function O(){this.data.atHardBreak=!0}function X(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function Y(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function K(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function ue(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=W,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function ae(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=W,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function se(j){const W=this.sliceSerialize(j),fe=this.stack[this.stack.length-2];fe.label=Cb(W),fe.identifier=nn(W).toLowerCase()}function _e(){const j=this.stack[this.stack.length-1],W=this.resume(),fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,fe.type==="link"){const Se=j.children;fe.children=Se}else fe.alt=W}function C(){const j=this.resume(),W=this.stack[this.stack.length-1];W.url=j}function V(){const j=this.resume(),W=this.stack[this.stack.length-1];W.title=j}function te(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function J(j){const W=this.resume(),fe=this.stack[this.stack.length-1];fe.label=W,fe.identifier=nn(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function ne(j){this.data.characterReferenceType=j.type}function Q(j){const W=this.sliceSerialize(j),fe=this.data.characterReferenceType;let Se;fe?(Se=C0(W,fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Se=pi(W);const Oe=this.stack[this.stack.length-1];Oe.value+=Se}function de(j){const W=this.stack.pop();W.position.end=Dn(j.end)}function le(j){P.call(this,j);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(j)}function ie(j){P.call(this,j);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(j)}function xe(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function pt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function oe(){return{type:"emphasis",children:[]}}function pe(){return{type:"heading",depth:0,children:[]}}function Qe(){return{type:"break"}}function Ee(){return{type:"html",value:""}}function Ne(){return{type:"image",title:null,url:"",alt:null}}function ee(){return{type:"link",title:null,url:"",children:[]}}function ge(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function mt(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function gt(){return{type:"paragraph",children:[]}}function Zt(){return{type:"strong",children:[]}}function At(){return{type:"text",value:""}}function $e(){return{type:"thematicBreak"}}}function Dn(e){return{line:e.line,column:e.column,offset:e.offset}}function D0(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?D0(e,r):kb(e,r)}}function kb(e,t){let n;for(n in t)if(w0.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Uo(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Gr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Gr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Gr({start:t.start,end:t.end})+") is still open")}function Ab(e){const t=this;t.parser=n;function n(r){return yb(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Sb(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Ib(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
63
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&u)continue;s=" ";break}default:s=String.fromCharCode(a)}u=a===-2,r.push(s)}return r.join("")}function gb(e){const r={constructs:x0([fb,...(e||{}).extensions||[]]),content:u(D9),defined:[],document:u(P9),flow:u(Kg),lazy:{},string:u(eb),text:u(tb)};return r;function u(a){return s;function s(o){return hb(r,a,o)}}}function bb(e){for(;!k0(e););return e}const Ho=/[\0\t\n\r]/g;function _b(){let e=1,t="",n=!0,r;return u;function u(a,s,o){const c=[];let l,h,f,m,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(Ho.lastIndex=f,l=Ho.exec(a),m=l&&l.index!==void 0?l.index:a.length,p=a.charCodeAt(m),!l){t=a.slice(f);break}if(p===10&&f===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<m&&(c.push(a.slice(f,m)),e+=m-f),p){case 0:{c.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,c.push(-2);e++<h;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}f=m+1}return o&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const xb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Cb(e){return e.replace(xb,Eb)}function Eb(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const u=n.charCodeAt(1),a=u===120||u===88;return C0(n.slice(a?2:1),a?16:10)}return pi(n)||e}const w0={}.hasOwnProperty;function yb(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Tb(n)(bb(gb(n).document().write(_b()(e,t,!0))))}function Tb(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ee),autolinkProtocol:U,autolinkEmail:U,atxHeading:a(pe),blockQuote:a(xe),characterEscape:U,characterReference:U,codeFenced:a(ze),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(ze,s),codeText:a(G,s),codeTextData:U,data:U,codeFlowValue:U,definition:a(pt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(oe),hardBreakEscape:a(Qe),hardBreakTrailing:a(Qe),htmlFlow:a(Ce,s),htmlFlowData:U,htmlText:a(Ce,s),htmlTextData:U,image:a(ke),label:s,link:a(ee),listItem:a(mt),listItemValue:m,listOrdered:a(ge,f),listUnordered:a(ge),paragraph:a(gt),reference:v,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(pe),strong:a(Zt),thematicBreak:a($e)},exit:{atxHeading:c(),atxHeadingSequence:S,autolink:c(),autolinkEmail:ie,autolinkProtocol:le,blockQuote:c(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:Q,characterReference:de,codeFenced:c(E),codeFencedFence:_,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:P,codeIndented:c(x),codeText:c(K),codeTextData:P,data:P,definition:c(),definitionDestinationString:D,definitionLabelString:k,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(X),htmlFlowData:P,htmlText:c(Y),htmlTextData:P,image:c(ae),label:_e,labelText:se,lineEnding:B,link:c(ue),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:J,resourceDestinationString:C,resourceTitleString:V,resource:te,setextHeading:c(H),setextHeadingLineSequence:M,setextHeadingText:I,strong:c(),thematicBreak:c()}};D0(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(j){let W={type:"root",children:[]};const fe={stack:[W],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:h,data:n},Ie=[];let Oe=-1;for(;++Oe<j.length;)if(j[Oe][1].type==="listOrdered"||j[Oe][1].type==="listUnordered")if(j[Oe][0]==="enter")Ie.push(Oe);else{const Ot=Ie.pop();Oe=u(j,Ot,Oe)}for(Oe=-1;++Oe<j.length;){const Ot=t[j[Oe][0]];w0.call(Ot,j[Oe][1].type)&&Ot[j[Oe][1].type].call(Object.assign({sliceSerialize:j[Oe][2].sliceSerialize},fe),j[Oe][1])}if(fe.tokenStack.length>0){const Ot=fe.tokenStack[fe.tokenStack.length-1];(Ot[1]||Uo).call(fe,void 0,Ot[0])}for(W.position={start:Ln(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Ln(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<t.transforms.length;)W=t.transforms[Oe](W)||W;return W}function u(j,W,fe){let Ie=W-1,Oe=-1,Ot=!1,_n,dt,xn,Yn;for(;++Ie<=fe;){const jt=j[Ie];switch(jt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{jt[0]==="enter"?Oe++:Oe--,Yn=void 0;break}case"lineEndingBlank":{jt[0]==="enter"&&(_n&&!Yn&&!Oe&&!xn&&(xn=Ie),Yn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Yn=void 0}if(!Oe&&jt[0]==="enter"&&jt[1].type==="listItemPrefix"||Oe===-1&&jt[0]==="exit"&&(jt[1].type==="listUnordered"||jt[1].type==="listOrdered")){if(_n){let dr=Ie;for(dt=void 0;dr--;){const Cn=j[dr];if(Cn[1].type==="lineEnding"||Cn[1].type==="lineEndingBlank"){if(Cn[0]==="exit")continue;dt&&(j[dt][1].type="lineEndingBlank",Ot=!0),Cn[1].type="lineEnding",dt=dr}else if(!(Cn[1].type==="linePrefix"||Cn[1].type==="blockQuotePrefix"||Cn[1].type==="blockQuotePrefixWhitespace"||Cn[1].type==="blockQuoteMarker"||Cn[1].type==="listItemIndent"))break}xn&&(!dt||xn<dt)&&(_n._spread=!0),_n.end=Object.assign({},dt?j[dt][1].start:jt[1].end),j.splice(dt||Ie,0,["exit",_n,jt[2]]),Ie++,fe++}if(jt[1].type==="listItemPrefix"){const dr={type:"listItem",_spread:!1,start:Object.assign({},jt[1].start),end:void 0};_n=dr,j.splice(Ie,0,["enter",dr,jt[2]]),Ie++,fe++,xn=void 0,Yn=!0}}}return j[W][1]._spread=Ot,fe}function a(j,W){return fe;function fe(Ie){o.call(this,j(Ie),Ie),W&&W.call(this,Ie)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,W,fe){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([W,fe||void 0]),j.position={start:Ln(W.start),end:void 0}}function c(j){return W;function W(fe){j&&j.call(this,fe),l.call(this,fe)}}function l(j,W){const fe=this.stack.pop(),Ie=this.tokenStack.pop();if(Ie)Ie[0].type!==j.type&&(W?W.call(this,j,Ie[0]):(Ie[1]||Uo).call(this,j,Ie[0]));else throw new Error("Cannot close `"+j.type+"` ("+Gr({start:j.start,end:j.end})+"): it’s not open");fe.position.end=Ln(j.end)}function h(){return hi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(j){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function p(){const j=this.resume(),W=this.stack[this.stack.length-1];W.lang=j}function b(){const j=this.resume(),W=this.stack[this.stack.length-1];W.meta=j}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j.replace(/(\r?\n|\r)$/g,"")}function k(j){const W=this.resume(),fe=this.stack[this.stack.length-1];fe.label=W,fe.identifier=nn(this.sliceSerialize(j)).toLowerCase()}function y(){const j=this.resume(),W=this.stack[this.stack.length-1];W.title=j}function D(){const j=this.resume(),W=this.stack[this.stack.length-1];W.url=j}function S(j){const W=this.stack[this.stack.length-1];if(!W.depth){const fe=this.sliceSerialize(j).length;W.depth=fe}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function M(j){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function U(j){const fe=this.stack[this.stack.length-1].children;let Ie=fe[fe.length-1];(!Ie||Ie.type!=="text")&&(Ie=At(),Ie.position={start:Ln(j.start),end:void 0},fe.push(Ie)),this.stack.push(Ie)}function P(j){const W=this.stack.pop();W.value+=this.sliceSerialize(j),W.position.end=Ln(j.end)}function B(j){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const fe=W.children[W.children.length-1];fe.position.end=Ln(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(U.call(this,j),P.call(this,j))}function O(){this.data.atHardBreak=!0}function X(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function Y(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function K(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function ue(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=W,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function ae(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=W,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function se(j){const W=this.sliceSerialize(j),fe=this.stack[this.stack.length-2];fe.label=Cb(W),fe.identifier=nn(W).toLowerCase()}function _e(){const j=this.stack[this.stack.length-1],W=this.resume(),fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,fe.type==="link"){const Ie=j.children;fe.children=Ie}else fe.alt=W}function C(){const j=this.resume(),W=this.stack[this.stack.length-1];W.url=j}function V(){const j=this.resume(),W=this.stack[this.stack.length-1];W.title=j}function te(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function J(j){const W=this.resume(),fe=this.stack[this.stack.length-1];fe.label=W,fe.identifier=nn(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function ne(j){this.data.characterReferenceType=j.type}function Q(j){const W=this.sliceSerialize(j),fe=this.data.characterReferenceType;let Ie;fe?(Ie=C0(W,fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ie=pi(W);const Oe=this.stack[this.stack.length-1];Oe.value+=Ie}function de(j){const W=this.stack.pop();W.position.end=Ln(j.end)}function le(j){P.call(this,j);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(j)}function ie(j){P.call(this,j);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(j)}function xe(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function pt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function oe(){return{type:"emphasis",children:[]}}function pe(){return{type:"heading",depth:0,children:[]}}function Qe(){return{type:"break"}}function Ce(){return{type:"html",value:""}}function ke(){return{type:"image",title:null,url:"",alt:null}}function ee(){return{type:"link",title:null,url:"",children:[]}}function ge(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function mt(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function gt(){return{type:"paragraph",children:[]}}function Zt(){return{type:"strong",children:[]}}function At(){return{type:"text",value:""}}function $e(){return{type:"thematicBreak"}}}function Ln(e){return{line:e.line,column:e.column,offset:e.offset}}function D0(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?D0(e,r):kb(e,r)}}function kb(e,t){let n;for(n in t)if(w0.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Uo(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Gr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Gr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Gr({start:t.start,end:t.end})+") is still open")}function Ab(e){const t=this;t.parser=n;function n(r){return yb(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Sb(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Ib(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
64
64
|
`}]}function Nb(e,t){const n=t.value?t.value+`
|
|
65
65
|
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(u.data={meta:t.meta}),e.patch(t,u),u=e.applyData(t,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(t,u),u}function vb(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wb(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Db(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),u=Lr(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(r,o);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+u,id:n+"fnref-"+u+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Lb(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pb(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function L0(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const u=e.all(t),a=u[0];a&&a.type==="text"?a.value="["+a.value:u.unshift({type:"text",value:"["});const s=u[u.length-1];return s&&s.type==="text"?s.value+=r:u.push({type:"text",value:r}),u}function Rb(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return L0(e,t);const u={src:Lr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(u.title=r.title);const a={type:"element",tagName:"img",properties:u,children:[]};return e.patch(t,a),e.applyData(t,a)}function Mb(e,t){const n={src:Lr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ob(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function jb(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return L0(e,t);const u={href:Lr(r.url||"")};r.title!==null&&r.title!==void 0&&(u.title=r.title);const a={type:"element",tagName:"a",properties:u,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Fb(e,t){const n={href:Lr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Bb(e,t,n){const r=e.all(t),u=n?Hb(n):P0(t),a={},s=[];if(typeof t.checked=="boolean"){const h=r[0];let f;h&&h.type==="element"&&h.tagName==="p"?f=h:(f={type:"element",tagName:"p",properties:{},children:[]},r.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<r.length;){const h=r[o];(u||o!==0||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
|
|
66
66
|
`}),h.type==="element"&&h.tagName==="p"&&!u?s.push(...h.children):s.push(h)}const c=r[r.length-1];c&&(u||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
@@ -85,8 +85,8 @@ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var G=ze(de,xe,J,ne,Q+".
|
|
|
85
85
|
`))+1))}const s="#".repeat(u),o=n.enter("headingAtx"),c=n.enter("phrasing");a.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:`
|
|
86
86
|
`,...a.current()});return/^[\t ]/.test(l)&&(l=su(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),c(),o(),l}W0.peek=zx;function W0(e){return e.value||""}function zx(){return"<"}Y0.peek=qx;function Y0(e,t,n,r){const u=Ei(n),a=u==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const c=n.createTracker(r);let l=c.move("![");return l+=c.move(n.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(o=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=c.move(" "+u),l+=c.move(n.safe(e.title,{before:l,after:u,...c.current()})),l+=c.move(u),o()),l+=c.move(")"),s(),l}function qx(){return"!"}G0.peek=Zx;function G0(e,t,n,r){const u=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let c=o.move("![");const l=n.safe(e.alt,{before:c,after:"]",...o.current()});c+=o.move(l+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:c,after:"]",...o.current()});return s(),n.stack=h,a(),u==="full"||!l||l!==f?c+=o.move(f+"]"):u==="shortcut"?c=c.slice(0,-1):c+=o.move("]"),c}function Zx(){return"!"}X0.peek=Wx;function X0(e,t,n){let r=e.value||"",u="`",a=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(r);)u+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],o=n.compilePattern(s);let c;if(s.atBreak)for(;c=o.exec(r);){let l=c.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(c.index+1)}}return u+r+u}function Wx(){return"`"}function K0(e,t){const n=hi(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Q0.peek=Yx;function Q0(e,t,n,r){const u=Ei(n),a=u==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,c;if(K0(e,n)){const h=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=h,f}o=n.enter("link"),c=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(c=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=s.move(" "+u),l+=s.move(n.safe(e.title,{before:l,after:u,...s.current()})),l+=s.move(u),c()),l+=s.move(")"),o(),l}function Yx(e,t,n){return K0(e,n)?"<":"["}J0.peek=Gx;function J0(e,t,n,r){const u=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let c=o.move("[");const l=n.containerPhrasing(e,{before:c,after:"]",...o.current()});c+=o.move(l+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:c,after:"]",...o.current()});return s(),n.stack=h,a(),u==="full"||!l||l!==f?c+=o.move(f+"]"):u==="shortcut"?c=c.slice(0,-1):c+=o.move("]"),c}function Gx(){return"["}function yi(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Xx(e){const t=yi(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Kx(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function e1(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Qx(e,t,n,r){const u=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?Kx(n):yi(n);const o=e.ordered?s==="."?")":".":Xx(n);let c=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),e1(n)===s&&h){let f=-1;for(;++f<e.children.length;){const m=e.children[f];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(s=o),n.bulletCurrent=s;const l=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,u(),l}function Jx(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function eC(e,t,n,r){const u=Jx(n);let a=n.bulletCurrent||yi(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(u==="tab"||u==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,o.current()),h);return c(),l;function h(f,m,p){return m?(p?"":" ".repeat(s))+f:(p?a:a+" ".repeat(s-a.length))+f}}function tC(e,t,n,r){const u=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),u(),s}const nC=ya(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rC(e,t,n,r){return(e.children.some(function(s){return nC(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function uC(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}t1.peek=aC;function t1(e,t,n,r){const u=uC(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(u+u);let c=s.move(n.containerPhrasing(e,{after:u,before:o,...s.current()}));const l=c.charCodeAt(0),h=Qu(r.before.charCodeAt(r.before.length-1),l,u);h.inside&&(c=su(l)+c.slice(1));const f=c.charCodeAt(c.length-1),m=Qu(r.after.charCodeAt(0),f,u);m.inside&&(c=c.slice(0,-1)+su(f));const p=s.move(u+u);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},o+c+p}function aC(e,t,n){return n.options.strong||"*"}function sC(e,t,n,r){return n.safe(e.value,r)}function iC(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function oC(e,t,n){const r=(e1(n)+(n.options.ruleSpaces?" ":"")).repeat(iC(n));return n.options.ruleSpaces?r.slice(0,-1):r}const n1={blockquote:Dx,break:fc,code:jx,definition:Bx,emphasis:Z0,hardBreak:fc,heading:$x,html:W0,image:Y0,imageReference:G0,inlineCode:X0,link:Q0,linkReference:J0,list:Qx,listItem:eC,paragraph:tC,root:rC,strong:t1,text:sC,thematicBreak:oC};function cC(){return{enter:{table:lC,tableData:hc,tableHeader:hc,tableRow:fC},exit:{codeText:hC,table:dC,tableData:is,tableHeader:is,tableRow:is}}}function lC(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function dC(e){this.exit(e),this.data.inTable=void 0}function fC(e){this.enter({type:"tableRow",children:[]},e)}function is(e){this.exit(e)}function hc(e){this.enter({type:"tableCell",children:[]},e)}function hC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,pC));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function pC(e,t){return t==="|"?t:e}function mC(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,u=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
87
87
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:c,tableRow:o}};function s(p,b,_,E){return l(h(p,_,E),p.align)}function o(p,b,_,E){const x=f(p,_,E),k=l([x]);return k.slice(0,k.indexOf(`
|
|
88
|
-
`))}function c(p,b,_,E){const x=_.enter("tableCell"),k=_.enter("phrasing"),y=_.containerPhrasing(p,{...E,before:a,after:a});return k(),x(),y}function l(p,b){return vx(p,{align:b,alignDelimiters:r,padding:n,stringLength:u})}function h(p,b,_){const E=p.children;let x=-1;const k=[],y=b.enter("table");for(;++x<E.length;)k[x]=f(E[x],b,_);return y(),k}function f(p,b,_){const E=p.children;let x=-1;const k=[],y=b.enter("tableRow");for(;++x<E.length;)k[x]=c(E[x],p,b,_);return y(),k}function m(p,b,_){let E=n1.inlineCode(p,b,_);return _.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function gC(){return{exit:{taskListCheckValueChecked:pc,taskListCheckValueUnchecked:pc,paragraph:_C}}}function bC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xC}}}function pc(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function _C(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const u=t.children;let a=-1,s;for(;++a<u.length;){const o=u[a];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function xC(e,t,n,r){const u=e.children[0],a=typeof e.checked=="boolean"&&u&&u.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let c=n1.listItem(e,t,n,{...r,...o.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(h){return h+s}}function CC(){return[Q_(),xx(),Tx(),cC(),gC()]}function EC(e){return{extensions:[J_(),Cx(e),kx(),mC(e),bC()]}}const yC={tokenize:NC,partial:!0},r1={tokenize:vC,partial:!0},u1={tokenize:wC,partial:!0},a1={tokenize:DC,partial:!0},TC={tokenize:LC,partial:!0},s1={name:"wwwAutolink",tokenize:SC,previous:o1},i1={name:"protocolAutolink",tokenize:IC,previous:c1},Nn={name:"emailAutolink",tokenize:AC,previous:l1},mn={};function kC(){return{text:mn}}let Qn=48;for(;Qn<123;)mn[Qn]=Nn,Qn++,Qn===58?Qn=65:Qn===91&&(Qn=97);mn[43]=Nn;mn[45]=Nn;mn[46]=Nn;mn[95]=Nn;mn[72]=[Nn,i1];mn[104]=[Nn,i1];mn[87]=[Nn,s1];mn[119]=[Nn,s1];function AC(e,t,n){const r=this;let u,a;return s;function s(f){return!Hs(f)||!l1.call(r,r.previous)||Ti(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return Hs(f)?(e.consume(f),o):f===64?(e.consume(f),c):n(f)}function c(f){return f===46?e.check(TC,h,l)(f):f===45||f===95||xt(f)?(a=!0,e.consume(f),c):h(f)}function l(f){return e.consume(f),u=!0,c}function h(f){return a&&u&&kt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function SC(e,t,n){const r=this;return u;function u(s){return s!==87&&s!==119||!o1.call(r,r.previous)||Ti(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(yC,e.attempt(r1,e.attempt(u1,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function IC(e,t,n){const r=this;let u="",a=!1;return s;function s(f){return(f===72||f===104)&&c1.call(r,r.previous)&&!Ti(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),u+=String.fromCodePoint(f),e.consume(f),o):n(f)}function o(f){if(kt(f)&&u.length<5)return u+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const m=u.toLowerCase();if(m==="http"||m==="https")return e.consume(f),c}return n(f)}function c(f){return f===47?(e.consume(f),a?l:(a=!0,c)):n(f)}function l(f){return f===null||Xu(f)||Fe(f)||sr(f)||xa(f)?n(f):e.attempt(r1,e.attempt(u1,h),n)(f)}function h(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function NC(e,t,n){let r=0;return u;function u(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),u):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function vC(e,t,n){let r,u,a;return s;function s(l){return l===46||l===95?e.check(a1,c,o)(l):l===null||Fe(l)||sr(l)||l!==45&&xa(l)?c(l):(a=!0,e.consume(l),s)}function o(l){return l===95?r=!0:(u=r,r=void 0),e.consume(l),s}function c(l){return u||r||!a?n(l):t(l)}}function wC(e,t){let n=0,r=0;return u;function u(s){return s===40?(n++,e.consume(s),u):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(a1,t,a)(s):s===null||Fe(s)||sr(s)?t(s):(e.consume(s),u)}function a(s){return s===41&&r++,e.consume(s),u}}function DC(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),u):o===60||o===null||Fe(o)||sr(o)?t(o):n(o)}function u(o){return o===null||o===40||o===91||Fe(o)||sr(o)?t(o):r(o)}function a(o){return kt(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):kt(o)?(e.consume(o),s):n(o)}}function LC(e,t,n){return r;function r(a){return e.consume(a),u}function u(a){return xt(a)?n(a):t(a)}}function o1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Fe(e)}function c1(e){return!kt(e)}function l1(e){return!(e===47||Hs(e))}function Hs(e){return e===43||e===45||e===46||e===95||xt(e)}function Ti(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const PC={tokenize:UC,partial:!0};function RC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FC,continuation:{tokenize:BC},exit:HC}},text:{91:{name:"gfmFootnoteCall",tokenize:jC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:MC,resolveTo:OC}}}}function MC(e,t,n){const r=this;let u=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;u--;){const c=r.events[u][1];if(c.type==="labelImage"){s=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return o;function o(c){if(!s||!s._balanced)return n(c);const l=nn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function OC(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",u,t],["exit",u,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function jC(e,t,n){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),c}function c(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(f){if(a>999||f===93&&!s||f===null||f===91||Fe(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return u.includes(nn(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Fe(f)||(s=!0),a++,e.consume(f),f===92?h:l}function h(f){return f===91||f===92||f===93?(e.consume(f),a++,l):l(f)}}function FC(e,t,n){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return c;function c(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(b)}function h(b){if(s>999||b===93&&!o||b===null||b===91||Fe(b))return n(b);if(b===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return a=nn(r.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Fe(b)||(o=!0),s++,e.consume(b),b===92?f:h}function f(b){return b===91||b===92||b===93?(e.consume(b),s++,h):h(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),u.includes(a)||u.push(a),we(e,p,"gfmFootnoteDefinitionWhitespace")):n(b)}function p(b){return t(b)}}function BC(e,t,n){return e.check(bu,t,e.attempt(PC,t,n))}function HC(e){e.exit("gfmFootnoteDefinition")}function UC(e,t,n){const r=this;return we(e,u,"gfmFootnoteDefinitionIndent",5);function u(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function VC(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:u};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function u(s,o){let c=-1;for(;++c<s.length;)if(s[c][0]==="enter"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._close){let l=c;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[c][1].end.offset-s[c][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[c][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[c][1].end)},f={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[c][1].start)},m=[["enter",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["enter",f,o]],p=o.parser.constructs.insideSpan.null;p&&zt(m,m.length,0,Ca(p,s.slice(l+1,c),o)),zt(m,m.length,0,[["exit",f,o],["enter",s[c][1],o],["exit",s[c][1],o],["exit",h,o]]),zt(s,l-1,c-l+3,m),c=l+m.length-2;break}}for(c=-1;++c<s.length;)s[c][1].type==="strikethroughSequenceTemporary"&&(s[c][1].type="data");return s}function a(s,o,c){const l=this.previous,h=this.events;let f=0;return m;function m(b){return l===126&&h[h.length-1][1].type!=="characterEscape"?c(b):(s.enter("strikethroughSequenceTemporary"),p(b))}function p(b){const _=Tr(l);if(b===126)return f>1?c(b):(s.consume(b),f++,p);if(f<2&&!n)return c(b);const E=s.exit("strikethroughSequenceTemporary"),x=Tr(b);return E._open=!x||x===2&&!!_,E._close=!_||_===2&&!!x,o(b)}}}class $C{constructor(){this.map=[]}add(t,n,r){zC(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let u=r.pop();for(;u;){for(const a of u)t.push(a);u=r.pop()}this.map.length=0}}function zC(e,t,n,r){let u=0;if(!(n===0&&r.length===0)){for(;u<e.map.length;){if(e.map[u][0]===t){e.map[u][1]+=n,e.map[u][2].push(...r);return}u+=1}e.map.push([t,n,r])}}function qC(e,t){let n=!1;const r=[];for(;t<e.length;){const u=e[t];if(n){if(u[0]==="enter")u[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function ZC(){return{flow:{null:{name:"table",tokenize:WC,resolveAll:YC}}}}function WC(e,t,n){const r=this;let u=0,a=0,s;return o;function o(P){let B=r.events.length-1;for(;B>-1;){const Y=r.events[B][1].type;if(Y==="lineEnding"||Y==="linePrefix")B--;else break}const O=B>-1?r.events[B][1].type:null,X=O==="tableHead"||O==="tableRow"?I:c;return X===I&&r.parser.lazy[r.now().line]?n(P):X(P)}function c(P){return e.enter("tableHead"),e.enter("tableRow"),l(P)}function l(P){return P===124||(s=!0,a+=1),h(P)}function h(P){return P===null?n(P):ce(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),p):n(P):ve(P)?we(e,h,"whitespace")(P):(a+=1,s&&(s=!1,u+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||Fe(P)?(e.exit("data"),h(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function p(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),s=!1,ve(P)?we(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?E(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),_):S(P)}function _(P){return ve(P)?we(e,E,"whitespace")(P):E(P)}function E(P){return P===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),x):P===45?(a+=1,x(P)):P===null||ce(P)?D(P):S(P)}function x(P){return P===45?(e.enter("tableDelimiterFiller"),k(P)):S(P)}function k(P){return P===45?(e.consume(P),k):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(P))}function y(P){return ve(P)?we(e,D,"whitespace")(P):D(P)}function D(P){return P===124?b(P):P===null||ce(P)?!s||u!==a?S(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):S(P)}function S(P){return n(P)}function I(P){return e.enter("tableRow"),M(P)}function M(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),M):P===null||ce(P)?(e.exit("tableRow"),t(P)):ve(P)?we(e,M,"whitespace")(P):(e.enter("data"),H(P))}function H(P){return P===null||P===124||Fe(P)?(e.exit("data"),M(P)):(e.consume(P),P===92?U:H)}function U(P){return P===92||P===124?(e.consume(P),H):H(P)}}function YC(e,t){let n=-1,r=!0,u=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,c=0,l,h,f;const m=new $C;for(;++n<e.length;){const p=e[n],b=p[1];p[0]==="enter"?b.type==="tableHead"?(o=!1,c!==0&&(mc(m,t,c,l,h),h=void 0,c=0),l={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",l,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,f=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,h={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",h,t]])),u=b.type==="tableDelimiterRow"?2:h?3:1):u&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],f=Ou(m,t,a,u,void 0,f),a=[0,0,0,0]),s[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],f=Ou(m,t,a,u,void 0,f)),a=s,s=[a[1],n,0,0])):b.type==="tableHead"?(o=!0,c=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(c=n,a[1]!==0?(s[0]=s[1],f=Ou(m,t,a,u,n,f)):s[1]!==0&&(f=Ou(m,t,s,u,n,f)),u=0):u&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(c!==0&&mc(m,t,c,l,h),m.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=qC(t.events,n))}return e}function Ou(e,t,n,r,u,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},br(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=br(t.events,n[1]);if(a={type:s,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=br(t.events,n[2]),h=br(t.events,n[3]),f={type:o,start:Object.assign({},l),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const m=t.events[n[2]],p=t.events[n[3]];if(m[1].end=Object.assign({},p[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,_=n[3]-n[2]-1;e.add(b,_,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return u!==void 0&&(a.end=Object.assign({},br(t.events,u)),e.add(u,0,[["exit",a,t]]),a=void 0),a}function mc(e,t,n,r,u){const a=[],s=br(t.events,n);u&&(u.end=Object.assign({},s),a.push(["exit",u,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function br(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const GC={name:"tasklistCheck",tokenize:KC};function XC(){return{text:{91:GC}}}function KC(e,t,n){const r=this;return u;function u(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return Fe(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),s):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),s):n(c)}function s(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(c)}function o(c){return ce(c)?t(c):ve(c)?e.check({tokenize:QC},t,n)(c):n(c)}}function QC(e,t,n){return we(e,r,"whitespace");function r(u){return u===null?n(u):t(u)}}function JC(e){return x0([kC(),RC(),VC(e),ZC(),XC()])}const eE={};function ki(e){const t=this,n=e||eE,r=t.data(),u=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);u.push(JC(n)),a.push(CC()),s.push(EC(n))}const gc=/[#.]/g;function tE(e,t){const n=e||"",r={};let u=0,a,s;for(;u<n.length;){gc.lastIndex=u;const o=gc.exec(n),c=n.slice(u,o?o.index:n.length);c&&(a?a==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:s=c,u+=c.length),o&&(a=o[0],u++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function d1(e,t,n){const r=n?aE(n):void 0;function u(a,s,...o){let c;if(a==null){c={type:"root",children:[]};const l=s;o.unshift(l)}else{c=tE(a,t);const l=c.tagName.toLowerCase(),h=r?r.get(l):void 0;if(c.tagName=h||l,nE(s))o.unshift(s);else for(const[f,m]of Object.entries(s))rE(e,c.properties,f,m)}for(const l of o)Us(c.children,l);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return u}function nE(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const u=t[r];if(u&&typeof u=="object"){if(!Array.isArray(u))return!0;const a=u;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function rE(e,t,n,r){const u=ci(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?u.spaceSeparated?a=To(r):u.commaSeparated?a=_o(r):u.commaOrSpaceSeparated?a=To(_o(r).join(" ")):a=bc(u,u.property,r):Array.isArray(r)?a=[...r]:a=u.property==="style"?uE(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(bc(u,u.property,o));a=s}u.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[u.property]=a}}function Us(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Us(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Us(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function bc(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||uu(n)===uu(t)))return!0}return n}function uE(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function aE(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const sE=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],iE=d1(ba,"div"),oE=d1(Dr,"g",sE);function cE(e){const t=String(e),n=[];return{toOffset:u,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const c=_c(t,n[s-1]);o=c===-1?t.length+1:c+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function u(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],c=_c(t,o),l=c===-1?t.length+1:c+1;if(o===l)break;n.push(l)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function _c(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
89
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const rr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},f1={}.hasOwnProperty,lE=Object.prototype;function dE(e,t){const n=t||{};return Ai({file:n.file||void 0,location:!1,schema:n.space==="svg"?Dr:ba,verbose:n.verbose||!1},e)}function Ai(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Zu(e,r,n),n}case"#document":case"#document-fragment":{const r=t,u="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:h1(e,t.childNodes),data:{quirksMode:u}},e.file&&e.location){const a=String(e.file),s=cE(a),o=s.toPoint(0),c=s.toPoint(a.length);n.position={start:o,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Zu(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Zu(e,r,n),n}default:return n=fE(e,t),n}}function h1(e,t){let n=-1;const r=[];for(;++n<t.length;){const u=Ai(e,t[n]);r.push(u)}return r}function fE(e,t){const n=e.schema;e.schema=t.namespaceURI===rr.svg?Dr:ba;let r=-1;const u={};for(;++r<t.attrs.length;){const o=t.attrs[r],c=(o.prefix?o.prefix+":":"")+o.name;f1.call(lE,c)||(u[c]=o.value)}const s=(e.schema.space==="svg"?oE:iE)(t.tagName,u,h1(e,t.childNodes));if(Zu(e,t,s),s.tagName==="template"){const o=t,c=o.sourceCodeLocation,l=c&&c.startTag&&_r(c.startTag),h=c&&c.endTag&&_r(c.endTag),f=Ai(e,o.content);l&&h&&e.file&&(f.position={start:l.end,end:h.start}),s.content=f}return e.schema=n,s}function Zu(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=hE(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function hE(e,t,n){const r=_r(n);if(t.type==="element"){const u=t.children[t.children.length-1];if(r&&!n.endTag&&u&&u.position&&u.position.end&&(r.end=Object.assign({},u.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)f1.call(n.attrs,s)&&(a[ci(e.schema,s).property]=_r(n.attrs[s]));n.startTag;const o=_r(n.startTag),c=n.endTag?_r(n.endTag):void 0,l={opening:o};c&&(l.closing=c),l.properties=a,t.data={position:l}}}return r}function _r(e){const t=xc({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=xc({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function xc(e){return e.line&&e.column?e:void 0}class xu{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}xu.prototype.property={};xu.prototype.normal={};xu.prototype.space=null;function p1(e,t){const n={},r={};let u=-1;for(;++u<e.length;)Object.assign(n,e[u].property),Object.assign(r,e[u].normal);return new xu(n,r,t)}function Vs(e){return e.toLowerCase()}class Jt{constructor(t,n){this.property=t,this.attribute=n}}Jt.prototype.space=null;Jt.prototype.boolean=!1;Jt.prototype.booleanish=!1;Jt.prototype.overloadedBoolean=!1;Jt.prototype.number=!1;Jt.prototype.commaSeparated=!1;Jt.prototype.spaceSeparated=!1;Jt.prototype.commaOrSpaceSeparated=!1;Jt.prototype.mustUseProperty=!1;Jt.prototype.defined=!1;let pE=0;const Te=cr(),nt=cr(),m1=cr(),Z=cr(),He=cr(),Er=cr(),Ht=cr();function cr(){return 2**++pE}const $s=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:nt,commaOrSpaceSeparated:Ht,commaSeparated:Er,number:Z,overloadedBoolean:m1,spaceSeparated:He},Symbol.toStringTag,{value:"Module"})),os=Object.keys($s);class Si extends Jt{constructor(t,n,r,u){let a=-1;if(super(t,n),Cc(this,"space",u),typeof r=="number")for(;++a<os.length;){const s=os[a];Cc(this,os[a],(r&$s[s])===$s[s])}}}Si.prototype.defined=!0;function Cc(e,t,n){n&&(e[t]=n)}const mE={}.hasOwnProperty;function Pr(e){const t={},n={};let r;for(r in e.properties)if(mE.call(e.properties,r)){const u=e.properties[r],a=new Si(r,e.transform(e.attributes||{},r),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Vs(r)]=r,n[Vs(a.attribute)]=r}return new xu(t,n,e.space)}const g1=Pr({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),b1=Pr({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function _1(e,t){return t in e?e[t]:t}function x1(e,t){return _1(e,t.toLowerCase())}const C1=Pr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:x1,properties:{xmlns:null,xmlnsXLink:null}}),E1=Pr({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:nt,ariaAutoComplete:null,ariaBusy:nt,ariaChecked:nt,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:He,ariaCurrent:null,ariaDescribedBy:He,ariaDetails:null,ariaDisabled:nt,ariaDropEffect:He,ariaErrorMessage:null,ariaExpanded:nt,ariaFlowTo:He,ariaGrabbed:nt,ariaHasPopup:null,ariaHidden:nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:He,ariaLevel:Z,ariaLive:null,ariaModal:nt,ariaMultiLine:nt,ariaMultiSelectable:nt,ariaOrientation:null,ariaOwns:He,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:nt,ariaReadOnly:nt,ariaRelevant:null,ariaRequired:nt,ariaRoleDescription:He,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:nt,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null}}),gE=Pr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:x1,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Er,acceptCharset:He,accessKey:He,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:He,autoFocus:Te,autoPlay:Te,blocking:He,capture:null,charSet:null,checked:Te,cite:null,className:He,cols:Z,colSpan:null,content:null,contentEditable:nt,controls:Te,controlsList:He,coords:Z|Er,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:m1,draggable:nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:He,height:Z,hidden:Te,high:Z,href:null,hrefLang:null,htmlFor:He,httpEquiv:He,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:He,itemRef:He,itemScope:Te,itemType:He,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,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:Te,optimum:Z,pattern:null,ping:He,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:He,required:Te,reversed:Te,rows:Z,rowSpan:Z,sandbox:He,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:nt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:nt,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:He,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:nt,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:Z,security:null,unselectable:null}}),bE=Pr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:_1,properties:{about:Ht,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:He,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:Er,g2:Er,glyphName:Er,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:He,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ht,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ht,rev:Ht,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ht,requiredFeatures:Ht,requiredFonts:Ht,requiredFormats:Ht,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ht,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),_E=/^data[-\w.:]+$/i,Ec=/-[a-z]/g,xE=/[A-Z]/g;function CE(e,t){const n=Vs(t);let r=t,u=Jt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_E.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ec,yE);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ec.test(a)){let s=a.replace(xE,EE);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}u=Si}return new u(r,t)}function EE(e){return"-"+e.toLowerCase()}function yE(e){return e.charAt(1).toUpperCase()}const TE=p1([b1,g1,C1,E1,gE],"html"),y1=p1([b1,g1,C1,E1,bE],"svg"),kE={},AE={}.hasOwnProperty,T1=q0("type",{handlers:{root:IE,element:LE,text:wE,comment:DE,doctype:vE}});function SE(e,t){const r=(t||kE).space;return T1(e,r==="svg"?y1:TE)}function IE(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ii(e.children,n,t),Rr(e,n),n}function NE(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ii(e.children,n,t),Rr(e,n),n}function vE(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Rr(e,t),t}function wE(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Rr(e,t),t}function DE(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Rr(e,t),t}function LE(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=y1);const u=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&AE.call(e.properties,a)){const c=PE(r,a,e.properties[a]);c&&u.push(c)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:u,namespaceURI:rr[s],childNodes:[],parentNode:null};return o.childNodes=Ii(e.children,o,r),Rr(e,o),e.tagName==="template"&&e.content&&(o.content=NE(e.content,r)),o}function PE(e,t,n){const r=CE(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?n0(n):d0(n));const u={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=u.name.indexOf(":");a<0?u.prefix="":(u.name=u.name.slice(a+1),u.prefix=r.attribute.slice(0,a)),u.namespace=rr[r.space]}return u}function Ii(e,t,n){let r=-1;const u=[];if(e)for(;++r<e.length;){const a=T1(e[r],n);a.parentNode=t,u.push(a)}return u}function Rr(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const RE=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ME=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),qe="�";var T;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(T||(T={}));const St={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function k1(e){return e>=55296&&e<=57343}function OE(e){return e>=56320&&e<=57343}function jE(e,t){return(e-55296)*1024+9216+t}function A1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function S1(e){return e>=64976&&e<=65007||ME.has(e)}var F;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(F||(F={}));const FE=65536;class BE{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=FE,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:u,offset:a}=this,s=u+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(OE(n))return this.pos++,this._addGap(),jE(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,T.EOF;return this._err(F.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;const r=this.html.charCodeAt(n);return r===T.CARRIAGE_RETURN?T.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;let t=this.html.charCodeAt(this.pos);return t===T.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,T.LINE_FEED):t===T.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,k1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===T.LINE_FEED||t===T.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){A1(t)?this._err(F.controlCharacterInInputStream):S1(t)&&this._err(F.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ie;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ie||(Ie={}));function I1(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const HE=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),UE=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function VE(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=UE.get(e))!==null&&t!==void 0?t:e}var ct;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ct||(ct={}));const $E=32;var Un;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Un||(Un={}));function zs(e){return e>=ct.ZERO&&e<=ct.NINE}function zE(e){return e>=ct.UPPER_A&&e<=ct.UPPER_F||e>=ct.LOWER_A&&e<=ct.LOWER_F}function qE(e){return e>=ct.UPPER_A&&e<=ct.UPPER_Z||e>=ct.LOWER_A&&e<=ct.LOWER_Z||zs(e)}function ZE(e){return e===ct.EQUALS||qE(e)}var st;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(st||(st={}));var Sn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Sn||(Sn={}));let WE=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=st.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Sn.Strict}startEntity(t){this.decodeMode=t,this.state=st.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case st.EntityStart:return t.charCodeAt(n)===ct.NUM?(this.state=st.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=st.NamedEntity,this.stateNamedEntity(t,n));case st.NumericStart:return this.stateNumericStart(t,n);case st.NumericDecimal:return this.stateNumericDecimal(t,n);case st.NumericHex:return this.stateNumericHex(t,n);case st.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|$E)===ct.LOWER_X?(this.state=st.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=st.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const a=r-n;this.result=this.result*Math.pow(u,a)+Number.parseInt(t.substr(n,a),u),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(zs(u)||zE(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(zs(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ct.SEMI)this.consumed+=1;else if(this.decodeMode===Sn.Strict)return 0;return this.emitCodePoint(VE(this.result),this.consumed),this.errors&&(t!==ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],a=(u&Un.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=YE(r,u,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Sn.Attribute&&(a===0||ZE(s))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],a=(u&Un.VALUE_LENGTH)>>14,a!==0){if(s===ct.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Sn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&Un.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~Un.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case st.NamedEntity:return this.result!==0&&(this.decodeMode!==Sn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case st.NumericDecimal:return this.emitNumericEntity(0,2);case st.NumericHex:return this.emitNumericEntity(0,3);case st.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case st.EntityStart:return 0}}};function YE(e,t,n,r){const u=(t&Un.BRANCH_LENGTH)>>7,a=t&Un.JUMP_TABLE;if(u===0)return a!==0&&r===a?n:-1;if(a){const c=r-a;return c<0||c>=u?-1:e[n+c]-1}let s=n,o=s+u-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<r)s=c+1;else if(l>r)o=c-1;else return e[c+u]}return-1}var $;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})($||($={}));var ar;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ar||(ar={}));var Kt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Kt||(Kt={}));var R;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(R||(R={}));var d;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const GE=new Map([[R.A,d.A],[R.ADDRESS,d.ADDRESS],[R.ANNOTATION_XML,d.ANNOTATION_XML],[R.APPLET,d.APPLET],[R.AREA,d.AREA],[R.ARTICLE,d.ARTICLE],[R.ASIDE,d.ASIDE],[R.B,d.B],[R.BASE,d.BASE],[R.BASEFONT,d.BASEFONT],[R.BGSOUND,d.BGSOUND],[R.BIG,d.BIG],[R.BLOCKQUOTE,d.BLOCKQUOTE],[R.BODY,d.BODY],[R.BR,d.BR],[R.BUTTON,d.BUTTON],[R.CAPTION,d.CAPTION],[R.CENTER,d.CENTER],[R.CODE,d.CODE],[R.COL,d.COL],[R.COLGROUP,d.COLGROUP],[R.DD,d.DD],[R.DESC,d.DESC],[R.DETAILS,d.DETAILS],[R.DIALOG,d.DIALOG],[R.DIR,d.DIR],[R.DIV,d.DIV],[R.DL,d.DL],[R.DT,d.DT],[R.EM,d.EM],[R.EMBED,d.EMBED],[R.FIELDSET,d.FIELDSET],[R.FIGCAPTION,d.FIGCAPTION],[R.FIGURE,d.FIGURE],[R.FONT,d.FONT],[R.FOOTER,d.FOOTER],[R.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[R.FORM,d.FORM],[R.FRAME,d.FRAME],[R.FRAMESET,d.FRAMESET],[R.H1,d.H1],[R.H2,d.H2],[R.H3,d.H3],[R.H4,d.H4],[R.H5,d.H5],[R.H6,d.H6],[R.HEAD,d.HEAD],[R.HEADER,d.HEADER],[R.HGROUP,d.HGROUP],[R.HR,d.HR],[R.HTML,d.HTML],[R.I,d.I],[R.IMG,d.IMG],[R.IMAGE,d.IMAGE],[R.INPUT,d.INPUT],[R.IFRAME,d.IFRAME],[R.KEYGEN,d.KEYGEN],[R.LABEL,d.LABEL],[R.LI,d.LI],[R.LINK,d.LINK],[R.LISTING,d.LISTING],[R.MAIN,d.MAIN],[R.MALIGNMARK,d.MALIGNMARK],[R.MARQUEE,d.MARQUEE],[R.MATH,d.MATH],[R.MENU,d.MENU],[R.META,d.META],[R.MGLYPH,d.MGLYPH],[R.MI,d.MI],[R.MO,d.MO],[R.MN,d.MN],[R.MS,d.MS],[R.MTEXT,d.MTEXT],[R.NAV,d.NAV],[R.NOBR,d.NOBR],[R.NOFRAMES,d.NOFRAMES],[R.NOEMBED,d.NOEMBED],[R.NOSCRIPT,d.NOSCRIPT],[R.OBJECT,d.OBJECT],[R.OL,d.OL],[R.OPTGROUP,d.OPTGROUP],[R.OPTION,d.OPTION],[R.P,d.P],[R.PARAM,d.PARAM],[R.PLAINTEXT,d.PLAINTEXT],[R.PRE,d.PRE],[R.RB,d.RB],[R.RP,d.RP],[R.RT,d.RT],[R.RTC,d.RTC],[R.RUBY,d.RUBY],[R.S,d.S],[R.SCRIPT,d.SCRIPT],[R.SEARCH,d.SEARCH],[R.SECTION,d.SECTION],[R.SELECT,d.SELECT],[R.SOURCE,d.SOURCE],[R.SMALL,d.SMALL],[R.SPAN,d.SPAN],[R.STRIKE,d.STRIKE],[R.STRONG,d.STRONG],[R.STYLE,d.STYLE],[R.SUB,d.SUB],[R.SUMMARY,d.SUMMARY],[R.SUP,d.SUP],[R.TABLE,d.TABLE],[R.TBODY,d.TBODY],[R.TEMPLATE,d.TEMPLATE],[R.TEXTAREA,d.TEXTAREA],[R.TFOOT,d.TFOOT],[R.TD,d.TD],[R.TH,d.TH],[R.THEAD,d.THEAD],[R.TITLE,d.TITLE],[R.TR,d.TR],[R.TRACK,d.TRACK],[R.TT,d.TT],[R.U,d.U],[R.UL,d.UL],[R.SVG,d.SVG],[R.VAR,d.VAR],[R.WBR,d.WBR],[R.XMP,d.XMP]]);function Mr(e){var t;return(t=GE.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const z=d,XE={[$.HTML]:new Set([z.ADDRESS,z.APPLET,z.AREA,z.ARTICLE,z.ASIDE,z.BASE,z.BASEFONT,z.BGSOUND,z.BLOCKQUOTE,z.BODY,z.BR,z.BUTTON,z.CAPTION,z.CENTER,z.COL,z.COLGROUP,z.DD,z.DETAILS,z.DIR,z.DIV,z.DL,z.DT,z.EMBED,z.FIELDSET,z.FIGCAPTION,z.FIGURE,z.FOOTER,z.FORM,z.FRAME,z.FRAMESET,z.H1,z.H2,z.H3,z.H4,z.H5,z.H6,z.HEAD,z.HEADER,z.HGROUP,z.HR,z.HTML,z.IFRAME,z.IMG,z.INPUT,z.LI,z.LINK,z.LISTING,z.MAIN,z.MARQUEE,z.MENU,z.META,z.NAV,z.NOEMBED,z.NOFRAMES,z.NOSCRIPT,z.OBJECT,z.OL,z.P,z.PARAM,z.PLAINTEXT,z.PRE,z.SCRIPT,z.SECTION,z.SELECT,z.SOURCE,z.STYLE,z.SUMMARY,z.TABLE,z.TBODY,z.TD,z.TEMPLATE,z.TEXTAREA,z.TFOOT,z.TH,z.THEAD,z.TITLE,z.TR,z.TRACK,z.UL,z.WBR,z.XMP]),[$.MATHML]:new Set([z.MI,z.MO,z.MN,z.MS,z.MTEXT,z.ANNOTATION_XML]),[$.SVG]:new Set([z.TITLE,z.FOREIGN_OBJECT,z.DESC]),[$.XLINK]:new Set,[$.XML]:new Set,[$.XMLNS]:new Set},qs=new Set([z.H1,z.H2,z.H3,z.H4,z.H5,z.H6]);R.STYLE,R.SCRIPT,R.XMP,R.IFRAME,R.NOEMBED,R.NOFRAMES,R.PLAINTEXT;var A;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(A||(A={}));const Je={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function KE(e){return e>=T.DIGIT_0&&e<=T.DIGIT_9}function Wr(e){return e>=T.LATIN_CAPITAL_A&&e<=T.LATIN_CAPITAL_Z}function QE(e){return e>=T.LATIN_SMALL_A&&e<=T.LATIN_SMALL_Z}function Rn(e){return QE(e)||Wr(e)}function yc(e){return Rn(e)||KE(e)}function ju(e){return e+32}function N1(e){return e===T.SPACE||e===T.LINE_FEED||e===T.TABULATION||e===T.FORM_FEED}function Tc(e){return N1(e)||e===T.SOLIDUS||e===T.GREATER_THAN_SIGN}function JE(e){return e===T.NULL?F.nullCharacterReference:e>1114111?F.characterReferenceOutsideUnicodeRange:k1(e)?F.surrogateCharacterReference:S1(e)?F.noncharacterCharacterReference:A1(e)||e===T.CARRIAGE_RETURN?F.controlCharacterReference:null}class ey{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=A.DATA,this.returnState=A.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new BE(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new WE(HE,(r,u)=>{this.preprocessor.pos=this.entityStartPos+u-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(F.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(F.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const u=JE(r);u&&this._err(u,1)}}:void 0)}_err(t,n=0){var r,u;(u=(r=this.handler).onParseError)===null||u===void 0||u.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ie.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ie.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ie.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ie.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(I1(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const u=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);u[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(F.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Mr(t.tagName),t.type===Ie.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(F.endTagWithAttributes),t.selfClosing&&this._err(F.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ie.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ie.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ie.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ie.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=N1(t)?Ie.WHITESPACE_CHARACTER:t===T.NULL?Ie.NULL_CHARACTER:Ie.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ie.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=A.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Sn.Attribute:Sn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case A.DATA:{this._stateData(t);break}case A.RCDATA:{this._stateRcdata(t);break}case A.RAWTEXT:{this._stateRawtext(t);break}case A.SCRIPT_DATA:{this._stateScriptData(t);break}case A.PLAINTEXT:{this._statePlaintext(t);break}case A.TAG_OPEN:{this._stateTagOpen(t);break}case A.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case A.TAG_NAME:{this._stateTagName(t);break}case A.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case A.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case A.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case A.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case A.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case A.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case A.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case A.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case A.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case A.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case A.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case A.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case A.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case A.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case A.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case A.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case A.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case A.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case A.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case A.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case A.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case A.BOGUS_COMMENT:{this._stateBogusComment(t);break}case A.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case A.COMMENT_START:{this._stateCommentStart(t);break}case A.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case A.COMMENT:{this._stateComment(t);break}case A.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case A.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case A.COMMENT_END:{this._stateCommentEnd(t);break}case A.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case A.DOCTYPE:{this._stateDoctype(t);break}case A.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case A.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case A.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case A.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case A.CDATA_SECTION:{this._stateCdataSection(t);break}case A.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case A.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case A.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case A.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.TAG_OPEN;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitCodePoint(t);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case T.AMPERSAND:{this._startCharacterReference();break}case T.LESS_THAN_SIGN:{this.state=A.RCDATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.RAWTEXT_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Rn(t))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case T.EXCLAMATION_MARK:{this.state=A.MARKUP_DECLARATION_OPEN;break}case T.SOLIDUS:{this.state=A.END_TAG_OPEN;break}case T.QUESTION_MARK:{this._err(F.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t);break}case T.EOF:{this._err(F.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Rn(t))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case T.GREATER_THAN_SIGN:{this._err(F.missingEndTagName),this.state=A.DATA;break}case T.EOF:{this._err(F.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.tagName+=qe;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Wr(t)?ju(t):t)}}_stateRcdataLessThanSign(t){t===T.SOLIDUS?this.state=A.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Rn(t)?(this.state=A.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=A.BEFORE_ATTRIBUTE_NAME,!1;case T.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=A.SELF_CLOSING_START_TAG,!1;case T.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=A.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===T.SOLIDUS?this.state=A.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Rn(t)?(this.state=A.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case T.SOLIDUS:{this.state=A.SCRIPT_DATA_END_TAG_OPEN;break}case T.EXCLAMATION_MARK:{this.state=A.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=A.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Rn(t)?(this.state=A.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===T.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===T.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===T.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Rn(t)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Rn(t)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(St.SCRIPT,!1)&&Tc(this.preprocessor.peek(St.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<St.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===T.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(St.SCRIPT,!1)&&Tc(this.preprocessor.peek(St.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<St.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._err(F.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=A.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this._leaveAttrName(),this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._leaveAttrName(),this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:{this._err(F.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.name+=qe;break}default:this.currentAttr.name+=String.fromCodePoint(Wr(t)?ju(t):t)}}_stateAfterAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case T.EQUALS_SIGN:{this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{this.state=A.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this.state=A.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingAttributeValue),this.state=A.DATA,this.emitCurrentTagToken();break}default:this.state=A.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=qe;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case T.APOSTROPHE:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=qe;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=qe;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:case T.EQUALS_SIGN:case T.GRAVE_ACCENT:{this._err(F.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this._leaveAttrValue(),this.state=A.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBetweenAttributes),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case T.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.unexpectedSolidusInTag),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.data+=qe;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(St.DASH_DASH,!0)?(this._createCommentToken(St.DASH_DASH.length+1),this.state=A.COMMENT_START):this._consumeSequenceIfMatch(St.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(St.DOCTYPE.length+1),this.state=A.DOCTYPE):this._consumeSequenceIfMatch(St.CDATA_START,!0)?this.inForeignNode?this.state=A.CDATA_SECTION:(this._err(F.cdataInHtmlContent),this._createCommentToken(St.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=A.BOGUS_COMMENT):this._ensureHibernation()||(this._err(F.incorrectlyOpenedComment),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_START_DASH;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=A.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END_DASH;break}case T.LESS_THAN_SIGN:{n.data+="<",this.state=A.COMMENT_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.data+=qe;break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case T.EXCLAMATION_MARK:{n.data+="!",this.state=A.COMMENT_LESS_THAN_SIGN_BANG;break}case T.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===T.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=A.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===T.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=A.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==T.GREATER_THAN_SIGN&&t!==T.EOF&&this._err(F.nestedComment),this.state=A.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case T.EXCLAMATION_MARK:{this.state=A.COMMENT_END_BANG;break}case T.HYPHEN_MINUS:{n.data+="-";break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{n.data+="--!",this.state=A.COMMENT_END_DASH;break}case T.GREATER_THAN_SIGN:{this._err(F.incorrectlyClosedComment),this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=A.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case T.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBeforeDoctypeName),this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Wr(t))this._createDoctypeToken(String.fromCharCode(ju(t))),this.state=A.DOCTYPE_NAME;else switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.NULL:{this._err(F.unexpectedNullCharacter),this._createDoctypeToken(qe),this.state=A.DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=A.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.AFTER_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.name+=qe;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Wr(t)?ju(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(St.PUBLIC,!1)?this.state=A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(St.SYSTEM,!1)?this.state=A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(F.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=qe;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=qe;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=qe;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=qe;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.NULL:{this._err(F.unexpectedNullCharacter);break}case T.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case T.RIGHT_SQUARE_BRACKET:{this.state=A.CDATA_SECTION_BRACKET;break}case T.EOF:{this._err(F.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===T.RIGHT_SQUARE_BRACKET?this.state=A.CDATA_SECTION_END:(this._emitChars("]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA;break}case T.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(T.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&yc(this.preprocessor.peek(1))?A.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){yc(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===T.SEMICOLON&&this._err(F.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const v1=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),kc=new Set([...v1,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),Ju=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),ty=new Set([...Ju,d.OL,d.UL]),ny=new Set([...Ju,d.BUTTON]),Ac=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),Sc=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),ry=new Set([d.TR,d.TEMPLATE,d.HTML]),uy=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),ay=new Set([d.TABLE,d.TEMPLATE,d.HTML]),sy=new Set([d.TD,d.TH]);class iy{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===$.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const u=this._indexOf(t)+1;this.items.splice(u,0,n),this.tagIDs.splice(u,0,r),this.stackTop++,u===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,u===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==$.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(qs,$.HTML)}popUntilTableCellPopped(){this.popUntilPopped(sy,$.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(ay,$.HTML)}clearBackToTableBodyContext(){this.clearBackTo(uy,$.HTML)}clearBackToTableRowContext(){this.clearBackTo(ry,$.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const u=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case $.HTML:{if(u===t)return!0;if(n.has(u))return!1;break}case $.SVG:{if(Sc.has(u))return!1;break}case $.MATHML:{if(Ac.has(u))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ju)}hasInListItemScope(t){return this.hasInDynamicScope(t,ty)}hasInButtonScope(t){return this.hasInDynamicScope(t,ny)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case $.HTML:{if(qs.has(n))return!0;if(Ju.has(n))return!1;break}case $.SVG:{if(Sc.has(n))return!1;break}case $.MATHML:{if(Ac.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$.HTML)switch(this.tagIDs[n]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===$.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$.HTML)switch(this.tagIDs[n]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&v1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&kc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&kc.has(this.currentTagId);)this.pop()}}const cs=3;var dn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(dn||(dn={}));const Ic={type:dn.Marker};class oy{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],u=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const c=this.entries[o];if(c.type===dn.Marker)break;const{element:l}=c;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===s){const h=this.treeAdapter.getAttrList(l);h.length===u&&r.push({idx:o,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<cs)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<cs)return;const u=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(c=>u.get(c.name)===c.value)&&(a+=1,a>=cs&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Ic)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:dn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:dn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Ic);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===dn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===dn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===dn.Element&&n.element===t)}}const Mn={createDocument(){return{nodeName:"#document",mode:Kt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const u=e.childNodes.find(a=>a.nodeName==="#documentType");if(u)u.name=t,u.publicId=n,u.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Mn.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Mn.isTextNode(n)){n.value+=t;return}}Mn.appendChild(e,Mn.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Mn.isTextNode(r)?r.value+=t:Mn.insertBefore(e,Mn.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},w1="html",cy="about:legacy-compat",ly="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",D1=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],dy=[...D1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],fy=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),L1=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],hy=[...L1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Nc(e,t){return t.some(n=>e.startsWith(n))}function py(e){return e.name===w1&&e.publicId===null&&(e.systemId===null||e.systemId===cy)}function my(e){if(e.name!==w1)return Kt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===ly)return Kt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),fy.has(n))return Kt.QUIRKS;let r=t===null?dy:D1;if(Nc(n,r))return Kt.QUIRKS;if(r=t===null?L1:hy,Nc(n,r))return Kt.LIMITED_QUIRKS}return Kt.NO_QUIRKS}const vc={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},gy="definitionurl",by="definitionURL",_y=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),xy=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:$.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:$.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:$.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:$.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:$.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:$.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:$.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:$.XML}],["xml:space",{prefix:"xml",name:"space",namespace:$.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:$.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:$.XMLNS}]]),Cy=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Ey=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function yy(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:r})=>r===ar.COLOR||r===ar.SIZE||r===ar.FACE)||Ey.has(t)}function P1(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===gy){e.attrs[t].name=by;break}}function R1(e){for(let t=0;t<e.attrs.length;t++){const n=_y.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Ni(e){for(let t=0;t<e.attrs.length;t++){const n=xy.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Ty(e){const t=Cy.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Mr(e.tagName))}function ky(e,t){return t===$.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function Ay(e,t,n){if(t===$.MATHML&&e===d.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ar.ENCODING){const u=n[r].value.toLowerCase();return u===vc.TEXT_HTML||u===vc.APPLICATION_XML}}return t===$.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function Sy(e,t,n,r){return(!r||r===$.HTML)&&Ay(e,t,n)||(!r||r===$.MATHML)&&ky(e,t)}const Iy="hidden",Ny=8,vy=3;var w;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(w||(w={}));const wy={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},M1=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),wc={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Mn,onParseError:null};class Dc{constructor(t,n,r=null,u=null){this.fragmentContext=r,this.scriptHandler=u,this.currentToken=null,this.stopped=!1,this.insertionMode=w.INITIAL,this.originalInsertionMode=w.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...wc,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new ey(this.options,this),this.activeFormattingElements=new oy(this.treeAdapter),this.fragmentContextID=r?Mr(this.treeAdapter.getTagName(r)):d.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new iy(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...wc,...n};t??(t=r.treeAdapter.createElement(R.TEMPLATE,$.HTML,[]));const u=r.treeAdapter.createElement("documentmock",$.HTML,[]),a=new this(r,u,t);return a.fragmentContextID===d.TEMPLATE&&a.tmplInsertionModeStack.unshift(w.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var u;if(!this.onParseError)return;const a=(u=t.location)!==null&&u!==void 0?u:wy,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var u,a;(a=(u=this.treeAdapter).onItemPush)===null||a===void 0||a.call(u,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,u;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(u=(r=this.treeAdapter).onItemPop)===null||u===void 0||u.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===$.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,$.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=w.TEXT}switchToPlaintextParsing(){this.insertionMode=w.TEXT,this.originalInsertionMode=w.IN_BODY,this.tokenizer.state=Je.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===R.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==$.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=Je.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=Je.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=Je.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=Je.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",u=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,u),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,$.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,$.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(R.HTML,$.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const u=this.treeAdapter.getChildNodes(n),a=r?u.lastIndexOf(r):u.length,s=u[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:l,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:l,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,u=this.treeAdapter.getTagName(t),a=n.type===Ie.END_TAG&&u===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===d.SVG&&this.treeAdapter.getTagName(n)===R.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===$.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,$.HTML)}_processToken(t){switch(t.type){case Ie.CHARACTER:{this.onCharacter(t);break}case Ie.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ie.COMMENT:{this.onComment(t);break}case Ie.DOCTYPE:{this.onDoctype(t);break}case Ie.START_TAG:{this._processStartTag(t);break}case Ie.END_TAG:{this.onEndTag(t);break}case Ie.EOF:{this.onEof(t);break}case Ie.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const u=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Sy(t,u,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(u=>u.type===dn.Marker||this.openElements.contains(u.element)),r=n===-1?t-1:n-1;for(let u=r;u>=0;u--){const a=this.activeFormattingElements.entries[u];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=w.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=w.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=w.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=w.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=w.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=w.IN_TABLE;return}case d.BODY:{this.insertionMode=w.IN_BODY;return}case d.FRAMESET:{this.insertionMode=w.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?w.AFTER_HEAD:w.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=w.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=w.IN_HEAD;return}break}}this.insertionMode=w.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===d.TEMPLATE)break;if(r===d.TABLE){this.insertionMode=w.IN_SELECT_IN_TABLE;return}}this.insertionMode=w.IN_SELECT}_isElementCausesFosterParenting(t){return M1.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===$.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case d.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return XE[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){sk(this,t);return}switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Qr(this,t);break}case w.BEFORE_HEAD:{Jr(this,t);break}case w.IN_HEAD:{eu(this,t);break}case w.IN_HEAD_NO_SCRIPT:{tu(this,t);break}case w.AFTER_HEAD:{nu(this,t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:{j1(this,t);break}case w.TEXT:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{ls(this,t);break}case w.IN_TABLE_TEXT:{$1(this,t);break}case w.IN_COLUMN_GROUP:{ea(this,t);break}case w.AFTER_BODY:{ta(this,t);break}case w.AFTER_AFTER_BODY:{Wu(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ak(this,t);return}switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Qr(this,t);break}case w.BEFORE_HEAD:{Jr(this,t);break}case w.IN_HEAD:{eu(this,t);break}case w.IN_HEAD_NO_SCRIPT:{tu(this,t);break}case w.AFTER_HEAD:{nu(this,t);break}case w.TEXT:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{ls(this,t);break}case w.IN_COLUMN_GROUP:{ea(this,t);break}case w.AFTER_BODY:{ta(this,t);break}case w.AFTER_AFTER_BODY:{Wu(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Zs(this,t);return}switch(this.insertionMode){case w.INITIAL:case w.BEFORE_HTML:case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_TEMPLATE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{Zs(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.AFTER_BODY:{jy(this,t);break}case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{Fy(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case w.INITIAL:{By(this,t);break}case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:{this._err(t,F.misplacedDoctype);break}case w.IN_TABLE_TEXT:{$r(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,F.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?ik(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Hy(this,t);break}case w.BEFORE_HEAD:{Vy(this,t);break}case w.IN_HEAD:{un(this,t);break}case w.IN_HEAD_NO_SCRIPT:{qy(this,t);break}case w.AFTER_HEAD:{Wy(this,t);break}case w.IN_BODY:{Et(this,t);break}case w.IN_TABLE:{Ar(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_CAPTION:{$T(this,t);break}case w.IN_COLUMN_GROUP:{Di(this,t);break}case w.IN_TABLE_BODY:{Na(this,t);break}case w.IN_ROW:{va(this,t);break}case w.IN_CELL:{ZT(this,t);break}case w.IN_SELECT:{Z1(this,t);break}case w.IN_SELECT_IN_TABLE:{YT(this,t);break}case w.IN_TEMPLATE:{XT(this,t);break}case w.AFTER_BODY:{QT(this,t);break}case w.IN_FRAMESET:{JT(this,t);break}case w.AFTER_FRAMESET:{tk(this,t);break}case w.AFTER_AFTER_BODY:{rk(this,t);break}case w.AFTER_AFTER_FRAMESET:{uk(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?ok(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Uy(this,t);break}case w.BEFORE_HEAD:{$y(this,t);break}case w.IN_HEAD:{zy(this,t);break}case w.IN_HEAD_NO_SCRIPT:{Zy(this,t);break}case w.AFTER_HEAD:{Yy(this,t);break}case w.IN_BODY:{Ia(this,t);break}case w.TEXT:{PT(this,t);break}case w.IN_TABLE:{iu(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_CAPTION:{zT(this,t);break}case w.IN_COLUMN_GROUP:{qT(this,t);break}case w.IN_TABLE_BODY:{Ws(this,t);break}case w.IN_ROW:{q1(this,t);break}case w.IN_CELL:{WT(this,t);break}case w.IN_SELECT:{W1(this,t);break}case w.IN_SELECT_IN_TABLE:{GT(this,t);break}case w.IN_TEMPLATE:{KT(this,t);break}case w.AFTER_BODY:{G1(this,t);break}case w.IN_FRAMESET:{ek(this,t);break}case w.AFTER_FRAMESET:{nk(this,t);break}case w.AFTER_AFTER_BODY:{Wu(this,t);break}}}onEof(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Qr(this,t);break}case w.BEFORE_HEAD:{Jr(this,t);break}case w.IN_HEAD:{eu(this,t);break}case w.IN_HEAD_NO_SCRIPT:{tu(this,t);break}case w.AFTER_HEAD:{nu(this,t);break}case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{U1(this,t);break}case w.TEXT:{RT(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_TEMPLATE:{Y1(this,t);break}case w.AFTER_BODY:case w.IN_FRAMESET:case w.AFTER_FRAMESET:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{wi(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===T.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.TEXT:case w.IN_COLUMN_GROUP:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{this._insertCharacters(t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:case w.AFTER_BODY:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{O1(this,t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{ls(this,t);break}case w.IN_TABLE_TEXT:{V1(this,t);break}}}}function Dy(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):H1(e,t),n}function Ly(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const u=e.openElements.items[r];if(u===t.element)break;e._isSpecialElement(u,e.openElements.tagIDs[r])&&(n=u)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Py(e,t,n){let r=t,u=e.openElements.getCommonAncestor(t);for(let a=0,s=u;s!==n;a++,s=u){u=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),c=o&&a>=vy;!o||c?(c&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Ry(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Ry(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function My(e,t,n){const r=e.treeAdapter.getTagName(t),u=Mr(r);if(e._isElementCausesFosterParenting(u))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);u===d.TEMPLATE&&a===$.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Oy(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:u}=n,a=e.treeAdapter.createElement(u.tagName,r,u.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,u),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,u.tagID)}function vi(e,t){for(let n=0;n<Ny;n++){const r=Dy(e,t);if(!r)break;const u=Ly(e,r);if(!u)break;e.activeFormattingElements.bookmark=r;const a=Py(e,u,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&My(e,s,a),Oy(e,u,r)}}function Zs(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function jy(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Fy(e,t){e._appendCommentNode(t,e.document)}function wi(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],u=e.treeAdapter.getNodeSourceCodeLocation(r);if(u&&!u.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function By(e,t){e._setDocumentType(t);const n=t.forceQuirks?Kt.QUIRKS:my(t);py(t)||e._err(t,F.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=w.BEFORE_HTML}function Vr(e,t){e._err(t,F.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Kt.QUIRKS),e.insertionMode=w.BEFORE_HTML,e._processToken(t)}function Hy(e,t){t.tagID===d.HTML?(e._insertElement(t,$.HTML),e.insertionMode=w.BEFORE_HEAD):Qr(e,t)}function Uy(e,t){const n=t.tagID;(n===d.HTML||n===d.HEAD||n===d.BODY||n===d.BR)&&Qr(e,t)}function Qr(e,t){e._insertFakeRootElement(),e.insertionMode=w.BEFORE_HEAD,e._processToken(t)}function Vy(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.HEAD:{e._insertElement(t,$.HTML),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD;break}default:Jr(e,t)}}function $y(e,t){const n=t.tagID;n===d.HEAD||n===d.BODY||n===d.HTML||n===d.BR?Jr(e,t):e._err(t,F.endTagWithoutMatchingOpenElement)}function Jr(e,t){e._insertFakeElement(R.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD,e._processToken(t)}function un(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,Je.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Je.RAWTEXT):(e._insertElement(t,$.HTML),e.insertionMode=w.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,Je.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,Je.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=w.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(w.IN_TEMPLATE);break}case d.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:eu(e,t)}}function zy(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=w.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{eu(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function lr(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,F.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,F.endTagWithoutMatchingOpenElement)}function eu(e,t){e.openElements.pop(),e.insertionMode=w.AFTER_HEAD,e._processToken(t)}function qy(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{un(e,t);break}case d.NOSCRIPT:{e._err(t,F.nestedNoscriptInHead);break}default:tu(e,t)}}function Zy(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=w.IN_HEAD;break}case d.BR:{tu(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function tu(e,t){const n=t.type===Ie.EOF?F.openElementsLeftAfterEof:F.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=w.IN_HEAD,e._processToken(t)}function Wy(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BODY:{e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=w.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,$.HTML),e.insertionMode=w.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,F.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),un(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:nu(e,t)}}function Yy(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{nu(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function nu(e,t){e._insertFakeElement(R.BODY,d.BODY),e.insertionMode=w.IN_BODY,Sa(e,t)}function Sa(e,t){switch(t.type){case Ie.CHARACTER:{j1(e,t);break}case Ie.WHITESPACE_CHARACTER:{O1(e,t);break}case Ie.COMMENT:{Zs(e,t);break}case Ie.START_TAG:{Et(e,t);break}case Ie.END_TAG:{Ia(e,t);break}case Ie.EOF:{U1(e,t);break}}}function O1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function j1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Gy(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Xy(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Ky(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_FRAMESET)}function Qy(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML)}function Jy(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&qs.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,$.HTML)}function eT(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function tT(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),n||(e.formElement=e.openElements.current))}function nT(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const u=e.openElements.tagIDs[r];if(n===d.LI&&u===d.LI||(n===d.DD||n===d.DT)&&(u===d.DD||u===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(u),e.openElements.popUntilTagNamePopped(u);break}if(u!==d.ADDRESS&&u!==d.DIV&&u!==d.P&&e._isSpecialElement(e.openElements.items[r],u))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML)}function rT(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.tokenizer.state=Je.PLAINTEXT}function uT(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.framesetOk=!1}function aT(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(R.A);n&&(vi(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function sT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function iT(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(vi(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function oT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function cT(e,t){e.treeAdapter.getDocumentMode(e.document)!==Kt.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=w.IN_TABLE}function F1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function B1(e){const t=I1(e,ar.TYPE);return t!=null&&t.toLowerCase()===Iy}function lT(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$.HTML),B1(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function dT(e,t){e._appendElement(t,$.HTML),t.ackSelfClosing=!0}function fT(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,$.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function hT(e,t){t.tagName=R.IMG,t.tagID=d.IMG,F1(e,t)}function pT(e,t){e._insertElement(t,$.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Je.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=w.TEXT}function mT(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function gT(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function Lc(e,t){e._switchToTextParsing(t,Je.RAWTEXT)}function bT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===w.IN_TABLE||e.insertionMode===w.IN_CAPTION||e.insertionMode===w.IN_TABLE_BODY||e.insertionMode===w.IN_ROW||e.insertionMode===w.IN_CELL?w.IN_SELECT_IN_TABLE:w.IN_SELECT}function _T(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML)}function xT(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,$.HTML)}function CT(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,$.HTML)}function ET(e,t){e._reconstructActiveFormattingElements(),P1(t),Ni(t),t.selfClosing?e._appendElement(t,$.MATHML):e._insertElement(t,$.MATHML),t.ackSelfClosing=!0}function yT(e,t){e._reconstructActiveFormattingElements(),R1(t),Ni(t),t.selfClosing?e._appendElement(t,$.SVG):e._insertElement(t,$.SVG),t.ackSelfClosing=!0}function Pc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML)}function Et(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{sT(e,t);break}case d.A:{aT(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{Jy(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{Qy(e,t);break}case d.LI:case d.DD:case d.DT:{nT(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{F1(e,t);break}case d.HR:{fT(e,t);break}case d.RB:case d.RTC:{xT(e,t);break}case d.RT:case d.RP:{CT(e,t);break}case d.PRE:case d.LISTING:{eT(e,t);break}case d.XMP:{mT(e,t);break}case d.SVG:{yT(e,t);break}case d.HTML:{Gy(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{un(e,t);break}case d.BODY:{Xy(e,t);break}case d.FORM:{tT(e,t);break}case d.NOBR:{iT(e,t);break}case d.MATH:{ET(e,t);break}case d.TABLE:{cT(e,t);break}case d.INPUT:{lT(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{dT(e,t);break}case d.IMAGE:{hT(e,t);break}case d.BUTTON:{uT(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{oT(e,t);break}case d.IFRAME:{gT(e,t);break}case d.SELECT:{bT(e,t);break}case d.OPTION:case d.OPTGROUP:{_T(e,t);break}case d.NOEMBED:case d.NOFRAMES:{Lc(e,t);break}case d.FRAMESET:{Ky(e,t);break}case d.TEXTAREA:{pT(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?Lc(e,t):Pc(e,t);break}case d.PLAINTEXT:{rT(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:Pc(e,t)}}function TT(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=w.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function kT(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=w.AFTER_BODY,G1(e,t))}function AT(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function ST(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):n&&e.openElements.remove(n))}function IT(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(R.P,d.P),e._closePElement()}function NT(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function vT(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function wT(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function DT(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function LT(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(R.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function H1(e,t){const n=t.tagName,r=t.tagID;for(let u=e.openElements.stackTop;u>0;u--){const a=e.openElements.items[u],s=e.openElements.tagIDs[u];if(r===s&&(r!==d.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=u&&e.openElements.shortenToLength(u);break}if(e._isSpecialElement(a,s))break}}function Ia(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{vi(e,t);break}case d.P:{IT(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{AT(e,t);break}case d.LI:{NT(e);break}case d.DD:case d.DT:{vT(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{wT(e);break}case d.BR:{LT(e);break}case d.BODY:{TT(e,t);break}case d.HTML:{kT(e,t);break}case d.FORM:{ST(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{DT(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:H1(e,t)}}function U1(e,t){e.tmplInsertionModeStack.length>0?Y1(e,t):wi(e,t)}function PT(e,t){var n;t.tagID===d.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function RT(e,t){e._err(t,F.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ls(e,t){if(e.openElements.currentTagId!==void 0&&M1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=w.IN_TABLE_TEXT,t.type){case Ie.CHARACTER:{$1(e,t);break}case Ie.WHITESPACE_CHARACTER:{V1(e,t);break}}else Cu(e,t)}function MT(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_CAPTION}function OT(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_COLUMN_GROUP}function jT(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.COLGROUP,d.COLGROUP),e.insertionMode=w.IN_COLUMN_GROUP,Di(e,t)}function FT(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_TABLE_BODY}function BT(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.TBODY,d.TBODY),e.insertionMode=w.IN_TABLE_BODY,Na(e,t)}function HT(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function UT(e,t){B1(t)?e._appendElement(t,$.HTML):Cu(e,t),t.ackSelfClosing=!0}function VT(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,$.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ar(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{BT(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{un(e,t);break}case d.COL:{jT(e,t);break}case d.FORM:{VT(e,t);break}case d.TABLE:{HT(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{FT(e,t);break}case d.INPUT:{UT(e,t);break}case d.CAPTION:{MT(e,t);break}case d.COLGROUP:{OT(e,t);break}default:Cu(e,t)}}function iu(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{lr(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Cu(e,t)}}function Cu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Sa(e,t),e.fosterParentingEnabled=n}function V1(e,t){e.pendingCharacterTokens.push(t)}function $1(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function $r(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Cu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const z1=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function $T(e,t){const n=t.tagID;z1.has(n)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,Ar(e,t)):Et(e,t)}function zT(e,t){const n=t.tagID;switch(n){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,n===d.TABLE&&iu(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Ia(e,t)}}function Di(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.COL:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{un(e,t);break}default:ea(e,t)}}function qT(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case d.TEMPLATE:{lr(e,t);break}case d.COL:break;default:ea(e,t)}}function ea(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE,e._processToken(t))}function Na(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(R.TR,d.TR),e.insertionMode=w.IN_ROW,va(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,Ar(e,t));break}default:Ar(e,t)}}function Ws(e,t){const n=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,iu(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:iu(e,t)}}function va(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Na(e,t));break}default:Ar(e,t)}}function q1(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Ws(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Ws(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:iu(e,t)}}function ZT(e,t){const n=t.tagID;z1.has(n)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),va(e,t)):Et(e,t)}function WT(e,t){const n=t.tagID;switch(n){case d.TD:case d.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),q1(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:Ia(e,t)}}function Z1(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,$.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,$.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{un(e,t);break}}}function W1(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{lr(e,t);break}}}function YT(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Z1(e,t)}function GT(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):W1(e,t)}function XT(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{un(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=w.IN_TABLE,e.insertionMode=w.IN_TABLE,Ar(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=w.IN_COLUMN_GROUP,e.insertionMode=w.IN_COLUMN_GROUP,Di(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=w.IN_TABLE_BODY,e.insertionMode=w.IN_TABLE_BODY,Na(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=w.IN_ROW,e.insertionMode=w.IN_ROW,va(e,t);break}default:e.tmplInsertionModeStack[0]=w.IN_BODY,e.insertionMode=w.IN_BODY,Et(e,t)}}function KT(e,t){t.tagID===d.TEMPLATE&&lr(e,t)}function Y1(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):wi(e,t)}function QT(e,t){t.tagID===d.HTML?Et(e,t):ta(e,t)}function G1(e,t){var n;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=w.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ta(e,t)}function ta(e,t){e.insertionMode=w.IN_BODY,Sa(e,t)}function JT(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.FRAMESET:{e._insertElement(t,$.HTML);break}case d.FRAME:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{un(e,t);break}}}function ek(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=w.AFTER_FRAMESET))}function tk(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.NOFRAMES:{un(e,t);break}}}function nk(e,t){t.tagID===d.HTML&&(e.insertionMode=w.AFTER_AFTER_FRAMESET)}function rk(e,t){t.tagID===d.HTML?Et(e,t):Wu(e,t)}function Wu(e,t){e.insertionMode=w.IN_BODY,Sa(e,t)}function uk(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.NOFRAMES:{un(e,t);break}}}function ak(e,t){t.chars=qe,e._insertCharacters(t)}function sk(e,t){e._insertCharacters(t),e.framesetOk=!1}function X1(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==$.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ik(e,t){if(yy(t))X1(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===$.MATHML?P1(t):r===$.SVG&&(Ty(t),R1(t)),Ni(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function ok(e,t){if(t.tagID===d.P||t.tagID===d.BR){X1(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===$.HTML){e._endTagOutsideForeignContent(t);break}const u=e.treeAdapter.getTagName(r);if(u.toLowerCase()===t.tagName){t.tagName=u,e.openElements.shortenToLength(n);break}}}R.AREA,R.BASE,R.BASEFONT,R.BGSOUND,R.BR,R.COL,R.EMBED,R.FRAME,R.HR,R.IMG,R.INPUT,R.KEYGEN,R.LINK,R.META,R.PARAM,R.SOURCE,R.TRACK,R.WBR;const ck=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,lk=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Rc={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function K1(e,t){const n=Ck(e),r=q0("type",{handlers:{root:dk,element:fk,text:hk,comment:J1,doctype:pk,raw:gk},unknown:bk}),u={parser:n?new Dc(Rc):Dc.getFragmentParser(void 0,Rc),handle(o){r(o,u)},stitches:!1,options:t||{}};r(e,u),Or(u,pn());const a=n?u.parser.document:u.parser.getFragment(),s=dE(a,{file:u.options.file});return u.stitches&&ka(s,"comment",function(o,c,l){const h=o;if(h.value.stitch&&l&&c!==void 0){const f=l.children;return f[c]=h.value.stitch,c}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Q1(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function dk(e,t){Q1(e.children,t)}function fk(e,t){_k(e,t),Q1(e.children,t),xk(e,t)}function hk(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ie.CHARACTER,chars:e.value,location:Eu(e)};Or(t,pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function pk(e,t){const n={type:Ie.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Eu(e)};Or(t,pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function mk(e,t){t.stitches=!0;const n=Ek(e);if("children"in e&&"children"in n){const r=K1({type:"root",children:e.children},t.options);n.children=r.children}J1({type:"comment",value:{stitch:n}},t)}function J1(e,t){const n=e.value,r={type:Ie.COMMENT,data:n,location:Eu(e)};Or(t,pn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function gk(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,ed(t,pn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(ck,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function bk(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))mk(n,t);else{let r="";throw lk.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Or(e,t){ed(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Je.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function ed(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function _k(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Je.PLAINTEXT)return;Or(t,pn(e));const r=t.parser.openElements.current;let u="namespaceURI"in r?r.namespaceURI:rr.html;u===rr.html&&n==="svg"&&(u=rr.svg);const a=SE({...e,children:[]},{space:u===rr.svg?"svg":"html"}),s={type:Ie.START_TAG,tagName:n,tagID:Mr(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Eu(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function xk(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&RE.includes(n)||t.parser.tokenizer.state===Je.PLAINTEXT)return;Or(t,_a(e));const r={type:Ie.END_TAG,tagName:n,tagID:Mr(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Eu(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Je.RCDATA||t.parser.tokenizer.state===Je.RAWTEXT||t.parser.tokenizer.state===Je.SCRIPT_DATA)&&(t.parser.tokenizer.state=Je.DATA)}function Ck(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Eu(e){const t=pn(e)||{line:void 0,column:void 0,offset:void 0},n=_a(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Ek(e){return"children"in e?kr({...e,children:[]}):kr(e)}function Li(e){return function(t,n){return K1(t,{...e,file:n})}}const Pi=()=>{const{shopTerms:e}=g.useStorefrontStore(),{isAntistock:t}=g.useGeneralStore();return!(e!=null&&e.showTermsOfServiceOnProduct)||!(e!=null&&e.termsOfService)?null:i.jsxs("div",{className:Kn.container,children:[i.jsx("div",{className:Kn.icon,children:i.jsx(N.Icon,{name:"FileCloud",fill:"var(--text-secondary)"})}),t?i.jsx("p",{className:Kn.text,id:"md",children:i.jsx("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:Kn.link,children:"Terms Of Service"})}):i.jsx(Aa,{remarkPlugins:[ki],rehypePlugins:[Li],className:Kn.text,components:{a:({node:n,...r})=>i.jsx("a",{...r,target:"_blank",rel:"noopener noreferrer",className:Kn.link,id:"md"}),p:({node:n,...r})=>i.jsx("p",{...r,className:Kn.text,id:"md"})},children:e==null?void 0:e.termsOfService})]})},yk="_securedBySsl_1ng38_2",Tk="_text_1ng38_9",ds={securedBySsl:yk,text:Tk},Ri=({isAntistock:e})=>i.jsxs("div",{className:ds.securedBySsl,children:[i.jsx("div",{className:ds.iconWrapper,children:i.jsx(N.Icon,{name:"ShieldCheck",fill:"var(--text-secondary)"})}),i.jsx("p",{className:ds.text,id:"md",children:e?"Your data is secured by extended validation SSL certificates (256-bit encryption).":"Your data is secured by extended validation SSL certificates (256-bit encryption). This complies with the strongest payment security standard available today."})]}),kk="_container_152ix_1",Ak="_header_152ix_7",Sk="_backButton_152ix_13",Ik="_title_152ix_22",Nk="_cards_152ix_28",vk="_card_152ix_28",wk="_selected_152ix_46",Dk="_prioritySelected_152ix_50",Lk="_price_152ix_51",Pk="_description_152ix_61",Yt={container:kk,header:Ak,backButton:Sk,title:Ik,cards:Nk,card:vk,selected:wk,prioritySelected:Dk,price:Lk,description:Pk},Mc={};function Rk(e){let t=Mc[e];if(t)return t;t=Mc[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function Sr(e,t){typeof t!="string"&&(t=Sr.defaultChars);const n=Rk(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let u="";for(let a=0,s=r.length;a<s;a+=3){const o=parseInt(r.slice(a+1,a+3),16);if(o<128){u+=n[o];continue}if((o&224)===192&&a+3<s){const c=parseInt(r.slice(a+4,a+6),16);if((c&192)===128){const l=o<<6&1984|c&63;l<128?u+="��":u+=String.fromCharCode(l),a+=3;continue}}if((o&240)===224&&a+6<s){const c=parseInt(r.slice(a+4,a+6),16),l=parseInt(r.slice(a+7,a+9),16);if((c&192)===128&&(l&192)===128){const h=o<<12&61440|c<<6&4032|l&63;h<2048||h>=55296&&h<=57343?u+="���":u+=String.fromCharCode(h),a+=6;continue}}if((o&248)===240&&a+9<s){const c=parseInt(r.slice(a+4,a+6),16),l=parseInt(r.slice(a+7,a+9),16),h=parseInt(r.slice(a+10,a+12),16);if((c&192)===128&&(l&192)===128&&(h&192)===128){let f=o<<18&1835008|c<<12&258048|l<<6&4032|h&63;f<65536||f>1114111?u+="����":(f-=65536,u+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),a+=9;continue}}u+="�"}return u})}Sr.defaultChars=";/?:@&=+$,#";Sr.componentChars="";const Oc={};function Mk(e){let t=Oc[e];if(t)return t;t=Oc[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function yu(e,t,n){typeof t!="string"&&(n=t,t=yu.defaultChars),typeof n>"u"&&(n=!0);const r=Mk(t);let u="";for(let a=0,s=e.length;a<s;a++){const o=e.charCodeAt(a);if(n&&o===37&&a+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3))){u+=e.slice(a,a+3),a+=2;continue}if(o<128){u+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&a+1<s){const c=e.charCodeAt(a+1);if(c>=56320&&c<=57343){u+=encodeURIComponent(e[a]+e[a+1]),a++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[a])}return u}yu.defaultChars=";/?:@&=+$,-_.!~*'()#";yu.componentChars="-_.!~*'()";function Mi(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function na(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Ok=/^([a-z0-9.+-]+:)/i,jk=/:[0-9]*$/,Fk=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Bk=["<",">",'"',"`"," ","\r",`
|
|
88
|
+
`))}function c(p,b,_,E){const x=_.enter("tableCell"),k=_.enter("phrasing"),y=_.containerPhrasing(p,{...E,before:a,after:a});return k(),x(),y}function l(p,b){return vx(p,{align:b,alignDelimiters:r,padding:n,stringLength:u})}function h(p,b,_){const E=p.children;let x=-1;const k=[],y=b.enter("table");for(;++x<E.length;)k[x]=f(E[x],b,_);return y(),k}function f(p,b,_){const E=p.children;let x=-1;const k=[],y=b.enter("tableRow");for(;++x<E.length;)k[x]=c(E[x],p,b,_);return y(),k}function m(p,b,_){let E=n1.inlineCode(p,b,_);return _.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function gC(){return{exit:{taskListCheckValueChecked:pc,taskListCheckValueUnchecked:pc,paragraph:_C}}}function bC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xC}}}function pc(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function _C(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const u=t.children;let a=-1,s;for(;++a<u.length;){const o=u[a];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function xC(e,t,n,r){const u=e.children[0],a=typeof e.checked=="boolean"&&u&&u.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let c=n1.listItem(e,t,n,{...r,...o.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(h){return h+s}}function CC(){return[Q_(),xx(),Tx(),cC(),gC()]}function EC(e){return{extensions:[J_(),Cx(e),kx(),mC(e),bC()]}}const yC={tokenize:NC,partial:!0},r1={tokenize:vC,partial:!0},u1={tokenize:wC,partial:!0},a1={tokenize:DC,partial:!0},TC={tokenize:LC,partial:!0},s1={name:"wwwAutolink",tokenize:SC,previous:o1},i1={name:"protocolAutolink",tokenize:IC,previous:c1},vn={name:"emailAutolink",tokenize:AC,previous:l1},mn={};function kC(){return{text:mn}}let Qn=48;for(;Qn<123;)mn[Qn]=vn,Qn++,Qn===58?Qn=65:Qn===91&&(Qn=97);mn[43]=vn;mn[45]=vn;mn[46]=vn;mn[95]=vn;mn[72]=[vn,i1];mn[104]=[vn,i1];mn[87]=[vn,s1];mn[119]=[vn,s1];function AC(e,t,n){const r=this;let u,a;return s;function s(f){return!Hs(f)||!l1.call(r,r.previous)||Ti(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return Hs(f)?(e.consume(f),o):f===64?(e.consume(f),c):n(f)}function c(f){return f===46?e.check(TC,h,l)(f):f===45||f===95||xt(f)?(a=!0,e.consume(f),c):h(f)}function l(f){return e.consume(f),u=!0,c}function h(f){return a&&u&&kt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function SC(e,t,n){const r=this;return u;function u(s){return s!==87&&s!==119||!o1.call(r,r.previous)||Ti(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(yC,e.attempt(r1,e.attempt(u1,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function IC(e,t,n){const r=this;let u="",a=!1;return s;function s(f){return(f===72||f===104)&&c1.call(r,r.previous)&&!Ti(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),u+=String.fromCodePoint(f),e.consume(f),o):n(f)}function o(f){if(kt(f)&&u.length<5)return u+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const m=u.toLowerCase();if(m==="http"||m==="https")return e.consume(f),c}return n(f)}function c(f){return f===47?(e.consume(f),a?l:(a=!0,c)):n(f)}function l(f){return f===null||Xu(f)||Fe(f)||sr(f)||xa(f)?n(f):e.attempt(r1,e.attempt(u1,h),n)(f)}function h(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function NC(e,t,n){let r=0;return u;function u(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),u):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function vC(e,t,n){let r,u,a;return s;function s(l){return l===46||l===95?e.check(a1,c,o)(l):l===null||Fe(l)||sr(l)||l!==45&&xa(l)?c(l):(a=!0,e.consume(l),s)}function o(l){return l===95?r=!0:(u=r,r=void 0),e.consume(l),s}function c(l){return u||r||!a?n(l):t(l)}}function wC(e,t){let n=0,r=0;return u;function u(s){return s===40?(n++,e.consume(s),u):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(a1,t,a)(s):s===null||Fe(s)||sr(s)?t(s):(e.consume(s),u)}function a(s){return s===41&&r++,e.consume(s),u}}function DC(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),u):o===60||o===null||Fe(o)||sr(o)?t(o):n(o)}function u(o){return o===null||o===40||o===91||Fe(o)||sr(o)?t(o):r(o)}function a(o){return kt(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):kt(o)?(e.consume(o),s):n(o)}}function LC(e,t,n){return r;function r(a){return e.consume(a),u}function u(a){return xt(a)?n(a):t(a)}}function o1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Fe(e)}function c1(e){return!kt(e)}function l1(e){return!(e===47||Hs(e))}function Hs(e){return e===43||e===45||e===46||e===95||xt(e)}function Ti(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const PC={tokenize:UC,partial:!0};function RC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FC,continuation:{tokenize:BC},exit:HC}},text:{91:{name:"gfmFootnoteCall",tokenize:jC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:MC,resolveTo:OC}}}}function MC(e,t,n){const r=this;let u=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;u--;){const c=r.events[u][1];if(c.type==="labelImage"){s=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return o;function o(c){if(!s||!s._balanced)return n(c);const l=nn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function OC(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",u,t],["exit",u,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function jC(e,t,n){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),c}function c(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(f){if(a>999||f===93&&!s||f===null||f===91||Fe(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return u.includes(nn(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Fe(f)||(s=!0),a++,e.consume(f),f===92?h:l}function h(f){return f===91||f===92||f===93?(e.consume(f),a++,l):l(f)}}function FC(e,t,n){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return c;function c(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(b)}function h(b){if(s>999||b===93&&!o||b===null||b===91||Fe(b))return n(b);if(b===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return a=nn(r.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Fe(b)||(o=!0),s++,e.consume(b),b===92?f:h}function f(b){return b===91||b===92||b===93?(e.consume(b),s++,h):h(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),u.includes(a)||u.push(a),we(e,p,"gfmFootnoteDefinitionWhitespace")):n(b)}function p(b){return t(b)}}function BC(e,t,n){return e.check(bu,t,e.attempt(PC,t,n))}function HC(e){e.exit("gfmFootnoteDefinition")}function UC(e,t,n){const r=this;return we(e,u,"gfmFootnoteDefinitionIndent",5);function u(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function VC(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:u};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function u(s,o){let c=-1;for(;++c<s.length;)if(s[c][0]==="enter"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._close){let l=c;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[c][1].end.offset-s[c][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[c][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[c][1].end)},f={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[c][1].start)},m=[["enter",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["enter",f,o]],p=o.parser.constructs.insideSpan.null;p&&zt(m,m.length,0,Ca(p,s.slice(l+1,c),o)),zt(m,m.length,0,[["exit",f,o],["enter",s[c][1],o],["exit",s[c][1],o],["exit",h,o]]),zt(s,l-1,c-l+3,m),c=l+m.length-2;break}}for(c=-1;++c<s.length;)s[c][1].type==="strikethroughSequenceTemporary"&&(s[c][1].type="data");return s}function a(s,o,c){const l=this.previous,h=this.events;let f=0;return m;function m(b){return l===126&&h[h.length-1][1].type!=="characterEscape"?c(b):(s.enter("strikethroughSequenceTemporary"),p(b))}function p(b){const _=Tr(l);if(b===126)return f>1?c(b):(s.consume(b),f++,p);if(f<2&&!n)return c(b);const E=s.exit("strikethroughSequenceTemporary"),x=Tr(b);return E._open=!x||x===2&&!!_,E._close=!_||_===2&&!!x,o(b)}}}class $C{constructor(){this.map=[]}add(t,n,r){zC(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let u=r.pop();for(;u;){for(const a of u)t.push(a);u=r.pop()}this.map.length=0}}function zC(e,t,n,r){let u=0;if(!(n===0&&r.length===0)){for(;u<e.map.length;){if(e.map[u][0]===t){e.map[u][1]+=n,e.map[u][2].push(...r);return}u+=1}e.map.push([t,n,r])}}function qC(e,t){let n=!1;const r=[];for(;t<e.length;){const u=e[t];if(n){if(u[0]==="enter")u[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function ZC(){return{flow:{null:{name:"table",tokenize:WC,resolveAll:YC}}}}function WC(e,t,n){const r=this;let u=0,a=0,s;return o;function o(P){let B=r.events.length-1;for(;B>-1;){const Y=r.events[B][1].type;if(Y==="lineEnding"||Y==="linePrefix")B--;else break}const O=B>-1?r.events[B][1].type:null,X=O==="tableHead"||O==="tableRow"?I:c;return X===I&&r.parser.lazy[r.now().line]?n(P):X(P)}function c(P){return e.enter("tableHead"),e.enter("tableRow"),l(P)}function l(P){return P===124||(s=!0,a+=1),h(P)}function h(P){return P===null?n(P):ce(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),p):n(P):ve(P)?we(e,h,"whitespace")(P):(a+=1,s&&(s=!1,u+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||Fe(P)?(e.exit("data"),h(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function p(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),s=!1,ve(P)?we(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?E(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),_):S(P)}function _(P){return ve(P)?we(e,E,"whitespace")(P):E(P)}function E(P){return P===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),x):P===45?(a+=1,x(P)):P===null||ce(P)?D(P):S(P)}function x(P){return P===45?(e.enter("tableDelimiterFiller"),k(P)):S(P)}function k(P){return P===45?(e.consume(P),k):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(P))}function y(P){return ve(P)?we(e,D,"whitespace")(P):D(P)}function D(P){return P===124?b(P):P===null||ce(P)?!s||u!==a?S(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):S(P)}function S(P){return n(P)}function I(P){return e.enter("tableRow"),M(P)}function M(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),M):P===null||ce(P)?(e.exit("tableRow"),t(P)):ve(P)?we(e,M,"whitespace")(P):(e.enter("data"),H(P))}function H(P){return P===null||P===124||Fe(P)?(e.exit("data"),M(P)):(e.consume(P),P===92?U:H)}function U(P){return P===92||P===124?(e.consume(P),H):H(P)}}function YC(e,t){let n=-1,r=!0,u=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,c=0,l,h,f;const m=new $C;for(;++n<e.length;){const p=e[n],b=p[1];p[0]==="enter"?b.type==="tableHead"?(o=!1,c!==0&&(mc(m,t,c,l,h),h=void 0,c=0),l={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",l,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,f=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,h={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",h,t]])),u=b.type==="tableDelimiterRow"?2:h?3:1):u&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],f=Ou(m,t,a,u,void 0,f),a=[0,0,0,0]),s[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],f=Ou(m,t,a,u,void 0,f)),a=s,s=[a[1],n,0,0])):b.type==="tableHead"?(o=!0,c=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(c=n,a[1]!==0?(s[0]=s[1],f=Ou(m,t,a,u,n,f)):s[1]!==0&&(f=Ou(m,t,s,u,n,f)),u=0):u&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(c!==0&&mc(m,t,c,l,h),m.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=qC(t.events,n))}return e}function Ou(e,t,n,r,u,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},br(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=br(t.events,n[1]);if(a={type:s,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=br(t.events,n[2]),h=br(t.events,n[3]),f={type:o,start:Object.assign({},l),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const m=t.events[n[2]],p=t.events[n[3]];if(m[1].end=Object.assign({},p[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,_=n[3]-n[2]-1;e.add(b,_,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return u!==void 0&&(a.end=Object.assign({},br(t.events,u)),e.add(u,0,[["exit",a,t]]),a=void 0),a}function mc(e,t,n,r,u){const a=[],s=br(t.events,n);u&&(u.end=Object.assign({},s),a.push(["exit",u,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function br(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const GC={name:"tasklistCheck",tokenize:KC};function XC(){return{text:{91:GC}}}function KC(e,t,n){const r=this;return u;function u(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return Fe(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),s):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),s):n(c)}function s(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(c)}function o(c){return ce(c)?t(c):ve(c)?e.check({tokenize:QC},t,n)(c):n(c)}}function QC(e,t,n){return we(e,r,"whitespace");function r(u){return u===null?n(u):t(u)}}function JC(e){return x0([kC(),RC(),VC(e),ZC(),XC()])}const eE={};function ki(e){const t=this,n=e||eE,r=t.data(),u=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);u.push(JC(n)),a.push(CC()),s.push(EC(n))}const gc=/[#.]/g;function tE(e,t){const n=e||"",r={};let u=0,a,s;for(;u<n.length;){gc.lastIndex=u;const o=gc.exec(n),c=n.slice(u,o?o.index:n.length);c&&(a?a==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:s=c,u+=c.length),o&&(a=o[0],u++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function d1(e,t,n){const r=n?aE(n):void 0;function u(a,s,...o){let c;if(a==null){c={type:"root",children:[]};const l=s;o.unshift(l)}else{c=tE(a,t);const l=c.tagName.toLowerCase(),h=r?r.get(l):void 0;if(c.tagName=h||l,nE(s))o.unshift(s);else for(const[f,m]of Object.entries(s))rE(e,c.properties,f,m)}for(const l of o)Us(c.children,l);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return u}function nE(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const u=t[r];if(u&&typeof u=="object"){if(!Array.isArray(u))return!0;const a=u;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function rE(e,t,n,r){const u=ci(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?u.spaceSeparated?a=To(r):u.commaSeparated?a=_o(r):u.commaOrSpaceSeparated?a=To(_o(r).join(" ")):a=bc(u,u.property,r):Array.isArray(r)?a=[...r]:a=u.property==="style"?uE(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(bc(u,u.property,o));a=s}u.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[u.property]=a}}function Us(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Us(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Us(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function bc(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||uu(n)===uu(t)))return!0}return n}function uE(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function aE(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const sE=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],iE=d1(ba,"div"),oE=d1(Dr,"g",sE);function cE(e){const t=String(e),n=[];return{toOffset:u,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const c=_c(t,n[s-1]);o=c===-1?t.length+1:c+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function u(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],c=_c(t,o),l=c===-1?t.length+1:c+1;if(o===l)break;n.push(l)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function _c(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
89
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const rr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},f1={}.hasOwnProperty,lE=Object.prototype;function dE(e,t){const n=t||{};return Ai({file:n.file||void 0,location:!1,schema:n.space==="svg"?Dr:ba,verbose:n.verbose||!1},e)}function Ai(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Zu(e,r,n),n}case"#document":case"#document-fragment":{const r=t,u="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:h1(e,t.childNodes),data:{quirksMode:u}},e.file&&e.location){const a=String(e.file),s=cE(a),o=s.toPoint(0),c=s.toPoint(a.length);n.position={start:o,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Zu(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Zu(e,r,n),n}default:return n=fE(e,t),n}}function h1(e,t){let n=-1;const r=[];for(;++n<t.length;){const u=Ai(e,t[n]);r.push(u)}return r}function fE(e,t){const n=e.schema;e.schema=t.namespaceURI===rr.svg?Dr:ba;let r=-1;const u={};for(;++r<t.attrs.length;){const o=t.attrs[r],c=(o.prefix?o.prefix+":":"")+o.name;f1.call(lE,c)||(u[c]=o.value)}const s=(e.schema.space==="svg"?oE:iE)(t.tagName,u,h1(e,t.childNodes));if(Zu(e,t,s),s.tagName==="template"){const o=t,c=o.sourceCodeLocation,l=c&&c.startTag&&_r(c.startTag),h=c&&c.endTag&&_r(c.endTag),f=Ai(e,o.content);l&&h&&e.file&&(f.position={start:l.end,end:h.start}),s.content=f}return e.schema=n,s}function Zu(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=hE(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function hE(e,t,n){const r=_r(n);if(t.type==="element"){const u=t.children[t.children.length-1];if(r&&!n.endTag&&u&&u.position&&u.position.end&&(r.end=Object.assign({},u.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)f1.call(n.attrs,s)&&(a[ci(e.schema,s).property]=_r(n.attrs[s]));n.startTag;const o=_r(n.startTag),c=n.endTag?_r(n.endTag):void 0,l={opening:o};c&&(l.closing=c),l.properties=a,t.data={position:l}}}return r}function _r(e){const t=xc({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=xc({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function xc(e){return e.line&&e.column?e:void 0}class xu{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}xu.prototype.property={};xu.prototype.normal={};xu.prototype.space=null;function p1(e,t){const n={},r={};let u=-1;for(;++u<e.length;)Object.assign(n,e[u].property),Object.assign(r,e[u].normal);return new xu(n,r,t)}function Vs(e){return e.toLowerCase()}class Jt{constructor(t,n){this.property=t,this.attribute=n}}Jt.prototype.space=null;Jt.prototype.boolean=!1;Jt.prototype.booleanish=!1;Jt.prototype.overloadedBoolean=!1;Jt.prototype.number=!1;Jt.prototype.commaSeparated=!1;Jt.prototype.spaceSeparated=!1;Jt.prototype.commaOrSpaceSeparated=!1;Jt.prototype.mustUseProperty=!1;Jt.prototype.defined=!1;let pE=0;const Te=cr(),nt=cr(),m1=cr(),Z=cr(),He=cr(),Er=cr(),Ht=cr();function cr(){return 2**++pE}const $s=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:nt,commaOrSpaceSeparated:Ht,commaSeparated:Er,number:Z,overloadedBoolean:m1,spaceSeparated:He},Symbol.toStringTag,{value:"Module"})),os=Object.keys($s);class Si extends Jt{constructor(t,n,r,u){let a=-1;if(super(t,n),Cc(this,"space",u),typeof r=="number")for(;++a<os.length;){const s=os[a];Cc(this,os[a],(r&$s[s])===$s[s])}}}Si.prototype.defined=!0;function Cc(e,t,n){n&&(e[t]=n)}const mE={}.hasOwnProperty;function Pr(e){const t={},n={};let r;for(r in e.properties)if(mE.call(e.properties,r)){const u=e.properties[r],a=new Si(r,e.transform(e.attributes||{},r),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Vs(r)]=r,n[Vs(a.attribute)]=r}return new xu(t,n,e.space)}const g1=Pr({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),b1=Pr({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function _1(e,t){return t in e?e[t]:t}function x1(e,t){return _1(e,t.toLowerCase())}const C1=Pr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:x1,properties:{xmlns:null,xmlnsXLink:null}}),E1=Pr({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:nt,ariaAutoComplete:null,ariaBusy:nt,ariaChecked:nt,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:He,ariaCurrent:null,ariaDescribedBy:He,ariaDetails:null,ariaDisabled:nt,ariaDropEffect:He,ariaErrorMessage:null,ariaExpanded:nt,ariaFlowTo:He,ariaGrabbed:nt,ariaHasPopup:null,ariaHidden:nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:He,ariaLevel:Z,ariaLive:null,ariaModal:nt,ariaMultiLine:nt,ariaMultiSelectable:nt,ariaOrientation:null,ariaOwns:He,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:nt,ariaReadOnly:nt,ariaRelevant:null,ariaRequired:nt,ariaRoleDescription:He,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:nt,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null}}),gE=Pr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:x1,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Er,acceptCharset:He,accessKey:He,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:He,autoFocus:Te,autoPlay:Te,blocking:He,capture:null,charSet:null,checked:Te,cite:null,className:He,cols:Z,colSpan:null,content:null,contentEditable:nt,controls:Te,controlsList:He,coords:Z|Er,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:m1,draggable:nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:He,height:Z,hidden:Te,high:Z,href:null,hrefLang:null,htmlFor:He,httpEquiv:He,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:He,itemRef:He,itemScope:Te,itemType:He,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,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:Te,optimum:Z,pattern:null,ping:He,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:He,required:Te,reversed:Te,rows:Z,rowSpan:Z,sandbox:He,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:nt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:nt,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:He,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:nt,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:Z,security:null,unselectable:null}}),bE=Pr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:_1,properties:{about:Ht,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:He,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:Er,g2:Er,glyphName:Er,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:He,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ht,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ht,rev:Ht,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ht,requiredFeatures:Ht,requiredFonts:Ht,requiredFormats:Ht,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ht,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),_E=/^data[-\w.:]+$/i,Ec=/-[a-z]/g,xE=/[A-Z]/g;function CE(e,t){const n=Vs(t);let r=t,u=Jt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_E.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ec,yE);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ec.test(a)){let s=a.replace(xE,EE);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}u=Si}return new u(r,t)}function EE(e){return"-"+e.toLowerCase()}function yE(e){return e.charAt(1).toUpperCase()}const TE=p1([b1,g1,C1,E1,gE],"html"),y1=p1([b1,g1,C1,E1,bE],"svg"),kE={},AE={}.hasOwnProperty,T1=q0("type",{handlers:{root:IE,element:LE,text:wE,comment:DE,doctype:vE}});function SE(e,t){const r=(t||kE).space;return T1(e,r==="svg"?y1:TE)}function IE(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ii(e.children,n,t),Rr(e,n),n}function NE(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ii(e.children,n,t),Rr(e,n),n}function vE(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Rr(e,t),t}function wE(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Rr(e,t),t}function DE(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Rr(e,t),t}function LE(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=y1);const u=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&AE.call(e.properties,a)){const c=PE(r,a,e.properties[a]);c&&u.push(c)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:u,namespaceURI:rr[s],childNodes:[],parentNode:null};return o.childNodes=Ii(e.children,o,r),Rr(e,o),e.tagName==="template"&&e.content&&(o.content=NE(e.content,r)),o}function PE(e,t,n){const r=CE(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?n0(n):d0(n));const u={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=u.name.indexOf(":");a<0?u.prefix="":(u.name=u.name.slice(a+1),u.prefix=r.attribute.slice(0,a)),u.namespace=rr[r.space]}return u}function Ii(e,t,n){let r=-1;const u=[];if(e)for(;++r<e.length;){const a=T1(e[r],n);a.parentNode=t,u.push(a)}return u}function Rr(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const RE=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ME=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),qe="�";var T;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(T||(T={}));const St={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function k1(e){return e>=55296&&e<=57343}function OE(e){return e>=56320&&e<=57343}function jE(e,t){return(e-55296)*1024+9216+t}function A1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function S1(e){return e>=64976&&e<=65007||ME.has(e)}var F;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(F||(F={}));const FE=65536;class BE{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=FE,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:u,offset:a}=this,s=u+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(OE(n))return this.pos++,this._addGap(),jE(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,T.EOF;return this._err(F.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;const r=this.html.charCodeAt(n);return r===T.CARRIAGE_RETURN?T.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;let t=this.html.charCodeAt(this.pos);return t===T.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,T.LINE_FEED):t===T.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,k1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===T.LINE_FEED||t===T.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){A1(t)?this._err(F.controlCharacterInInputStream):S1(t)&&this._err(F.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ne;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ne||(Ne={}));function I1(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const HE=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),UE=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function VE(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=UE.get(e))!==null&&t!==void 0?t:e}var ct;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ct||(ct={}));const $E=32;var Un;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Un||(Un={}));function zs(e){return e>=ct.ZERO&&e<=ct.NINE}function zE(e){return e>=ct.UPPER_A&&e<=ct.UPPER_F||e>=ct.LOWER_A&&e<=ct.LOWER_F}function qE(e){return e>=ct.UPPER_A&&e<=ct.UPPER_Z||e>=ct.LOWER_A&&e<=ct.LOWER_Z||zs(e)}function ZE(e){return e===ct.EQUALS||qE(e)}var st;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(st||(st={}));var In;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(In||(In={}));let WE=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=st.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=In.Strict}startEntity(t){this.decodeMode=t,this.state=st.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case st.EntityStart:return t.charCodeAt(n)===ct.NUM?(this.state=st.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=st.NamedEntity,this.stateNamedEntity(t,n));case st.NumericStart:return this.stateNumericStart(t,n);case st.NumericDecimal:return this.stateNumericDecimal(t,n);case st.NumericHex:return this.stateNumericHex(t,n);case st.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|$E)===ct.LOWER_X?(this.state=st.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=st.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const a=r-n;this.result=this.result*Math.pow(u,a)+Number.parseInt(t.substr(n,a),u),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(zs(u)||zE(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(zs(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ct.SEMI)this.consumed+=1;else if(this.decodeMode===In.Strict)return 0;return this.emitCodePoint(VE(this.result),this.consumed),this.errors&&(t!==ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],a=(u&Un.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=YE(r,u,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===In.Attribute&&(a===0||ZE(s))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],a=(u&Un.VALUE_LENGTH)>>14,a!==0){if(s===ct.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==In.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&Un.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~Un.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case st.NamedEntity:return this.result!==0&&(this.decodeMode!==In.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case st.NumericDecimal:return this.emitNumericEntity(0,2);case st.NumericHex:return this.emitNumericEntity(0,3);case st.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case st.EntityStart:return 0}}};function YE(e,t,n,r){const u=(t&Un.BRANCH_LENGTH)>>7,a=t&Un.JUMP_TABLE;if(u===0)return a!==0&&r===a?n:-1;if(a){const c=r-a;return c<0||c>=u?-1:e[n+c]-1}let s=n,o=s+u-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<r)s=c+1;else if(l>r)o=c-1;else return e[c+u]}return-1}var $;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})($||($={}));var ar;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ar||(ar={}));var Kt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Kt||(Kt={}));var R;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(R||(R={}));var d;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const GE=new Map([[R.A,d.A],[R.ADDRESS,d.ADDRESS],[R.ANNOTATION_XML,d.ANNOTATION_XML],[R.APPLET,d.APPLET],[R.AREA,d.AREA],[R.ARTICLE,d.ARTICLE],[R.ASIDE,d.ASIDE],[R.B,d.B],[R.BASE,d.BASE],[R.BASEFONT,d.BASEFONT],[R.BGSOUND,d.BGSOUND],[R.BIG,d.BIG],[R.BLOCKQUOTE,d.BLOCKQUOTE],[R.BODY,d.BODY],[R.BR,d.BR],[R.BUTTON,d.BUTTON],[R.CAPTION,d.CAPTION],[R.CENTER,d.CENTER],[R.CODE,d.CODE],[R.COL,d.COL],[R.COLGROUP,d.COLGROUP],[R.DD,d.DD],[R.DESC,d.DESC],[R.DETAILS,d.DETAILS],[R.DIALOG,d.DIALOG],[R.DIR,d.DIR],[R.DIV,d.DIV],[R.DL,d.DL],[R.DT,d.DT],[R.EM,d.EM],[R.EMBED,d.EMBED],[R.FIELDSET,d.FIELDSET],[R.FIGCAPTION,d.FIGCAPTION],[R.FIGURE,d.FIGURE],[R.FONT,d.FONT],[R.FOOTER,d.FOOTER],[R.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[R.FORM,d.FORM],[R.FRAME,d.FRAME],[R.FRAMESET,d.FRAMESET],[R.H1,d.H1],[R.H2,d.H2],[R.H3,d.H3],[R.H4,d.H4],[R.H5,d.H5],[R.H6,d.H6],[R.HEAD,d.HEAD],[R.HEADER,d.HEADER],[R.HGROUP,d.HGROUP],[R.HR,d.HR],[R.HTML,d.HTML],[R.I,d.I],[R.IMG,d.IMG],[R.IMAGE,d.IMAGE],[R.INPUT,d.INPUT],[R.IFRAME,d.IFRAME],[R.KEYGEN,d.KEYGEN],[R.LABEL,d.LABEL],[R.LI,d.LI],[R.LINK,d.LINK],[R.LISTING,d.LISTING],[R.MAIN,d.MAIN],[R.MALIGNMARK,d.MALIGNMARK],[R.MARQUEE,d.MARQUEE],[R.MATH,d.MATH],[R.MENU,d.MENU],[R.META,d.META],[R.MGLYPH,d.MGLYPH],[R.MI,d.MI],[R.MO,d.MO],[R.MN,d.MN],[R.MS,d.MS],[R.MTEXT,d.MTEXT],[R.NAV,d.NAV],[R.NOBR,d.NOBR],[R.NOFRAMES,d.NOFRAMES],[R.NOEMBED,d.NOEMBED],[R.NOSCRIPT,d.NOSCRIPT],[R.OBJECT,d.OBJECT],[R.OL,d.OL],[R.OPTGROUP,d.OPTGROUP],[R.OPTION,d.OPTION],[R.P,d.P],[R.PARAM,d.PARAM],[R.PLAINTEXT,d.PLAINTEXT],[R.PRE,d.PRE],[R.RB,d.RB],[R.RP,d.RP],[R.RT,d.RT],[R.RTC,d.RTC],[R.RUBY,d.RUBY],[R.S,d.S],[R.SCRIPT,d.SCRIPT],[R.SEARCH,d.SEARCH],[R.SECTION,d.SECTION],[R.SELECT,d.SELECT],[R.SOURCE,d.SOURCE],[R.SMALL,d.SMALL],[R.SPAN,d.SPAN],[R.STRIKE,d.STRIKE],[R.STRONG,d.STRONG],[R.STYLE,d.STYLE],[R.SUB,d.SUB],[R.SUMMARY,d.SUMMARY],[R.SUP,d.SUP],[R.TABLE,d.TABLE],[R.TBODY,d.TBODY],[R.TEMPLATE,d.TEMPLATE],[R.TEXTAREA,d.TEXTAREA],[R.TFOOT,d.TFOOT],[R.TD,d.TD],[R.TH,d.TH],[R.THEAD,d.THEAD],[R.TITLE,d.TITLE],[R.TR,d.TR],[R.TRACK,d.TRACK],[R.TT,d.TT],[R.U,d.U],[R.UL,d.UL],[R.SVG,d.SVG],[R.VAR,d.VAR],[R.WBR,d.WBR],[R.XMP,d.XMP]]);function Mr(e){var t;return(t=GE.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const z=d,XE={[$.HTML]:new Set([z.ADDRESS,z.APPLET,z.AREA,z.ARTICLE,z.ASIDE,z.BASE,z.BASEFONT,z.BGSOUND,z.BLOCKQUOTE,z.BODY,z.BR,z.BUTTON,z.CAPTION,z.CENTER,z.COL,z.COLGROUP,z.DD,z.DETAILS,z.DIR,z.DIV,z.DL,z.DT,z.EMBED,z.FIELDSET,z.FIGCAPTION,z.FIGURE,z.FOOTER,z.FORM,z.FRAME,z.FRAMESET,z.H1,z.H2,z.H3,z.H4,z.H5,z.H6,z.HEAD,z.HEADER,z.HGROUP,z.HR,z.HTML,z.IFRAME,z.IMG,z.INPUT,z.LI,z.LINK,z.LISTING,z.MAIN,z.MARQUEE,z.MENU,z.META,z.NAV,z.NOEMBED,z.NOFRAMES,z.NOSCRIPT,z.OBJECT,z.OL,z.P,z.PARAM,z.PLAINTEXT,z.PRE,z.SCRIPT,z.SECTION,z.SELECT,z.SOURCE,z.STYLE,z.SUMMARY,z.TABLE,z.TBODY,z.TD,z.TEMPLATE,z.TEXTAREA,z.TFOOT,z.TH,z.THEAD,z.TITLE,z.TR,z.TRACK,z.UL,z.WBR,z.XMP]),[$.MATHML]:new Set([z.MI,z.MO,z.MN,z.MS,z.MTEXT,z.ANNOTATION_XML]),[$.SVG]:new Set([z.TITLE,z.FOREIGN_OBJECT,z.DESC]),[$.XLINK]:new Set,[$.XML]:new Set,[$.XMLNS]:new Set},qs=new Set([z.H1,z.H2,z.H3,z.H4,z.H5,z.H6]);R.STYLE,R.SCRIPT,R.XMP,R.IFRAME,R.NOEMBED,R.NOFRAMES,R.PLAINTEXT;var A;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(A||(A={}));const Je={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function KE(e){return e>=T.DIGIT_0&&e<=T.DIGIT_9}function Wr(e){return e>=T.LATIN_CAPITAL_A&&e<=T.LATIN_CAPITAL_Z}function QE(e){return e>=T.LATIN_SMALL_A&&e<=T.LATIN_SMALL_Z}function Mn(e){return QE(e)||Wr(e)}function yc(e){return Mn(e)||KE(e)}function ju(e){return e+32}function N1(e){return e===T.SPACE||e===T.LINE_FEED||e===T.TABULATION||e===T.FORM_FEED}function Tc(e){return N1(e)||e===T.SOLIDUS||e===T.GREATER_THAN_SIGN}function JE(e){return e===T.NULL?F.nullCharacterReference:e>1114111?F.characterReferenceOutsideUnicodeRange:k1(e)?F.surrogateCharacterReference:S1(e)?F.noncharacterCharacterReference:A1(e)||e===T.CARRIAGE_RETURN?F.controlCharacterReference:null}class ey{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=A.DATA,this.returnState=A.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new BE(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new WE(HE,(r,u)=>{this.preprocessor.pos=this.entityStartPos+u-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(F.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(F.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const u=JE(r);u&&this._err(u,1)}}:void 0)}_err(t,n=0){var r,u;(u=(r=this.handler).onParseError)===null||u===void 0||u.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ne.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ne.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ne.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ne.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(I1(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const u=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);u[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(F.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Mr(t.tagName),t.type===Ne.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(F.endTagWithAttributes),t.selfClosing&&this._err(F.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ne.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ne.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ne.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ne.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=N1(t)?Ne.WHITESPACE_CHARACTER:t===T.NULL?Ne.NULL_CHARACTER:Ne.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ne.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=A.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?In.Attribute:In.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case A.DATA:{this._stateData(t);break}case A.RCDATA:{this._stateRcdata(t);break}case A.RAWTEXT:{this._stateRawtext(t);break}case A.SCRIPT_DATA:{this._stateScriptData(t);break}case A.PLAINTEXT:{this._statePlaintext(t);break}case A.TAG_OPEN:{this._stateTagOpen(t);break}case A.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case A.TAG_NAME:{this._stateTagName(t);break}case A.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case A.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case A.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case A.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case A.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case A.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case A.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case A.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case A.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case A.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case A.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case A.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case A.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case A.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case A.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case A.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case A.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case A.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case A.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case A.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case A.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case A.BOGUS_COMMENT:{this._stateBogusComment(t);break}case A.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case A.COMMENT_START:{this._stateCommentStart(t);break}case A.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case A.COMMENT:{this._stateComment(t);break}case A.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case A.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case A.COMMENT_END:{this._stateCommentEnd(t);break}case A.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case A.DOCTYPE:{this._stateDoctype(t);break}case A.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case A.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case A.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case A.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case A.CDATA_SECTION:{this._stateCdataSection(t);break}case A.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case A.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case A.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case A.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.TAG_OPEN;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitCodePoint(t);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case T.AMPERSAND:{this._startCharacterReference();break}case T.LESS_THAN_SIGN:{this.state=A.RCDATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.RAWTEXT_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Mn(t))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case T.EXCLAMATION_MARK:{this.state=A.MARKUP_DECLARATION_OPEN;break}case T.SOLIDUS:{this.state=A.END_TAG_OPEN;break}case T.QUESTION_MARK:{this._err(F.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t);break}case T.EOF:{this._err(F.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Mn(t))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case T.GREATER_THAN_SIGN:{this._err(F.missingEndTagName),this.state=A.DATA;break}case T.EOF:{this._err(F.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.tagName+=qe;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Wr(t)?ju(t):t)}}_stateRcdataLessThanSign(t){t===T.SOLIDUS?this.state=A.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Mn(t)?(this.state=A.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=A.BEFORE_ATTRIBUTE_NAME,!1;case T.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=A.SELF_CLOSING_START_TAG,!1;case T.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=A.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===T.SOLIDUS?this.state=A.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Mn(t)?(this.state=A.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case T.SOLIDUS:{this.state=A.SCRIPT_DATA_END_TAG_OPEN;break}case T.EXCLAMATION_MARK:{this.state=A.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=A.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Mn(t)?(this.state=A.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===T.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===T.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===T.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Mn(t)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Mn(t)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(St.SCRIPT,!1)&&Tc(this.preprocessor.peek(St.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<St.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(qe);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===T.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(St.SCRIPT,!1)&&Tc(this.preprocessor.peek(St.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<St.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._err(F.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=A.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this._leaveAttrName(),this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._leaveAttrName(),this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:{this._err(F.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.name+=qe;break}default:this.currentAttr.name+=String.fromCodePoint(Wr(t)?ju(t):t)}}_stateAfterAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case T.EQUALS_SIGN:{this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{this.state=A.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this.state=A.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingAttributeValue),this.state=A.DATA,this.emitCurrentTagToken();break}default:this.state=A.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=qe;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case T.APOSTROPHE:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=qe;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=qe;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:case T.EQUALS_SIGN:case T.GRAVE_ACCENT:{this._err(F.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this._leaveAttrValue(),this.state=A.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBetweenAttributes),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case T.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.unexpectedSolidusInTag),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.data+=qe;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(St.DASH_DASH,!0)?(this._createCommentToken(St.DASH_DASH.length+1),this.state=A.COMMENT_START):this._consumeSequenceIfMatch(St.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(St.DOCTYPE.length+1),this.state=A.DOCTYPE):this._consumeSequenceIfMatch(St.CDATA_START,!0)?this.inForeignNode?this.state=A.CDATA_SECTION:(this._err(F.cdataInHtmlContent),this._createCommentToken(St.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=A.BOGUS_COMMENT):this._ensureHibernation()||(this._err(F.incorrectlyOpenedComment),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_START_DASH;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=A.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END_DASH;break}case T.LESS_THAN_SIGN:{n.data+="<",this.state=A.COMMENT_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.data+=qe;break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case T.EXCLAMATION_MARK:{n.data+="!",this.state=A.COMMENT_LESS_THAN_SIGN_BANG;break}case T.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===T.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=A.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===T.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=A.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==T.GREATER_THAN_SIGN&&t!==T.EOF&&this._err(F.nestedComment),this.state=A.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case T.EXCLAMATION_MARK:{this.state=A.COMMENT_END_BANG;break}case T.HYPHEN_MINUS:{n.data+="-";break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{n.data+="--!",this.state=A.COMMENT_END_DASH;break}case T.GREATER_THAN_SIGN:{this._err(F.incorrectlyClosedComment),this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=A.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case T.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBeforeDoctypeName),this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Wr(t))this._createDoctypeToken(String.fromCharCode(ju(t))),this.state=A.DOCTYPE_NAME;else switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.NULL:{this._err(F.unexpectedNullCharacter),this._createDoctypeToken(qe),this.state=A.DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=A.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.AFTER_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.name+=qe;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Wr(t)?ju(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(St.PUBLIC,!1)?this.state=A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(St.SYSTEM,!1)?this.state=A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(F.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=qe;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=qe;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=qe;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=qe;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.NULL:{this._err(F.unexpectedNullCharacter);break}case T.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case T.RIGHT_SQUARE_BRACKET:{this.state=A.CDATA_SECTION_BRACKET;break}case T.EOF:{this._err(F.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===T.RIGHT_SQUARE_BRACKET?this.state=A.CDATA_SECTION_END:(this._emitChars("]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA;break}case T.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(T.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&yc(this.preprocessor.peek(1))?A.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){yc(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===T.SEMICOLON&&this._err(F.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const v1=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),kc=new Set([...v1,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),Ju=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),ty=new Set([...Ju,d.OL,d.UL]),ny=new Set([...Ju,d.BUTTON]),Ac=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),Sc=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),ry=new Set([d.TR,d.TEMPLATE,d.HTML]),uy=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),ay=new Set([d.TABLE,d.TEMPLATE,d.HTML]),sy=new Set([d.TD,d.TH]);class iy{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===$.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const u=this._indexOf(t)+1;this.items.splice(u,0,n),this.tagIDs.splice(u,0,r),this.stackTop++,u===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,u===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==$.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(qs,$.HTML)}popUntilTableCellPopped(){this.popUntilPopped(sy,$.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(ay,$.HTML)}clearBackToTableBodyContext(){this.clearBackTo(uy,$.HTML)}clearBackToTableRowContext(){this.clearBackTo(ry,$.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const u=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case $.HTML:{if(u===t)return!0;if(n.has(u))return!1;break}case $.SVG:{if(Sc.has(u))return!1;break}case $.MATHML:{if(Ac.has(u))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ju)}hasInListItemScope(t){return this.hasInDynamicScope(t,ty)}hasInButtonScope(t){return this.hasInDynamicScope(t,ny)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case $.HTML:{if(qs.has(n))return!0;if(Ju.has(n))return!1;break}case $.SVG:{if(Sc.has(n))return!1;break}case $.MATHML:{if(Ac.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$.HTML)switch(this.tagIDs[n]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===$.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$.HTML)switch(this.tagIDs[n]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&v1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&kc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&kc.has(this.currentTagId);)this.pop()}}const cs=3;var dn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(dn||(dn={}));const Ic={type:dn.Marker};class oy{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],u=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const c=this.entries[o];if(c.type===dn.Marker)break;const{element:l}=c;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===s){const h=this.treeAdapter.getAttrList(l);h.length===u&&r.push({idx:o,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<cs)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<cs)return;const u=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(c=>u.get(c.name)===c.value)&&(a+=1,a>=cs&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Ic)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:dn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:dn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Ic);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===dn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===dn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===dn.Element&&n.element===t)}}const On={createDocument(){return{nodeName:"#document",mode:Kt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const u=e.childNodes.find(a=>a.nodeName==="#documentType");if(u)u.name=t,u.publicId=n,u.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};On.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(On.isTextNode(n)){n.value+=t;return}}On.appendChild(e,On.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&On.isTextNode(r)?r.value+=t:On.insertBefore(e,On.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},w1="html",cy="about:legacy-compat",ly="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",D1=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],dy=[...D1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],fy=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),L1=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],hy=[...L1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Nc(e,t){return t.some(n=>e.startsWith(n))}function py(e){return e.name===w1&&e.publicId===null&&(e.systemId===null||e.systemId===cy)}function my(e){if(e.name!==w1)return Kt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===ly)return Kt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),fy.has(n))return Kt.QUIRKS;let r=t===null?dy:D1;if(Nc(n,r))return Kt.QUIRKS;if(r=t===null?L1:hy,Nc(n,r))return Kt.LIMITED_QUIRKS}return Kt.NO_QUIRKS}const vc={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},gy="definitionurl",by="definitionURL",_y=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),xy=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:$.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:$.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:$.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:$.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:$.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:$.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:$.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:$.XML}],["xml:space",{prefix:"xml",name:"space",namespace:$.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:$.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:$.XMLNS}]]),Cy=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Ey=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function yy(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:r})=>r===ar.COLOR||r===ar.SIZE||r===ar.FACE)||Ey.has(t)}function P1(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===gy){e.attrs[t].name=by;break}}function R1(e){for(let t=0;t<e.attrs.length;t++){const n=_y.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Ni(e){for(let t=0;t<e.attrs.length;t++){const n=xy.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Ty(e){const t=Cy.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Mr(e.tagName))}function ky(e,t){return t===$.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function Ay(e,t,n){if(t===$.MATHML&&e===d.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ar.ENCODING){const u=n[r].value.toLowerCase();return u===vc.TEXT_HTML||u===vc.APPLICATION_XML}}return t===$.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function Sy(e,t,n,r){return(!r||r===$.HTML)&&Ay(e,t,n)||(!r||r===$.MATHML)&&ky(e,t)}const Iy="hidden",Ny=8,vy=3;var w;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(w||(w={}));const wy={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},M1=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),wc={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:On,onParseError:null};class Dc{constructor(t,n,r=null,u=null){this.fragmentContext=r,this.scriptHandler=u,this.currentToken=null,this.stopped=!1,this.insertionMode=w.INITIAL,this.originalInsertionMode=w.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...wc,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new ey(this.options,this),this.activeFormattingElements=new oy(this.treeAdapter),this.fragmentContextID=r?Mr(this.treeAdapter.getTagName(r)):d.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new iy(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...wc,...n};t??(t=r.treeAdapter.createElement(R.TEMPLATE,$.HTML,[]));const u=r.treeAdapter.createElement("documentmock",$.HTML,[]),a=new this(r,u,t);return a.fragmentContextID===d.TEMPLATE&&a.tmplInsertionModeStack.unshift(w.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var u;if(!this.onParseError)return;const a=(u=t.location)!==null&&u!==void 0?u:wy,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var u,a;(a=(u=this.treeAdapter).onItemPush)===null||a===void 0||a.call(u,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,u;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(u=(r=this.treeAdapter).onItemPop)===null||u===void 0||u.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===$.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,$.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=w.TEXT}switchToPlaintextParsing(){this.insertionMode=w.TEXT,this.originalInsertionMode=w.IN_BODY,this.tokenizer.state=Je.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===R.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==$.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=Je.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=Je.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=Je.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=Je.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",u=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,u),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,$.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,$.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(R.HTML,$.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const u=this.treeAdapter.getChildNodes(n),a=r?u.lastIndexOf(r):u.length,s=u[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:l,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:l,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,u=this.treeAdapter.getTagName(t),a=n.type===Ne.END_TAG&&u===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===d.SVG&&this.treeAdapter.getTagName(n)===R.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===$.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,$.HTML)}_processToken(t){switch(t.type){case Ne.CHARACTER:{this.onCharacter(t);break}case Ne.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ne.COMMENT:{this.onComment(t);break}case Ne.DOCTYPE:{this.onDoctype(t);break}case Ne.START_TAG:{this._processStartTag(t);break}case Ne.END_TAG:{this.onEndTag(t);break}case Ne.EOF:{this.onEof(t);break}case Ne.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const u=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Sy(t,u,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(u=>u.type===dn.Marker||this.openElements.contains(u.element)),r=n===-1?t-1:n-1;for(let u=r;u>=0;u--){const a=this.activeFormattingElements.entries[u];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=w.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=w.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=w.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=w.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=w.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=w.IN_TABLE;return}case d.BODY:{this.insertionMode=w.IN_BODY;return}case d.FRAMESET:{this.insertionMode=w.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?w.AFTER_HEAD:w.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=w.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=w.IN_HEAD;return}break}}this.insertionMode=w.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===d.TEMPLATE)break;if(r===d.TABLE){this.insertionMode=w.IN_SELECT_IN_TABLE;return}}this.insertionMode=w.IN_SELECT}_isElementCausesFosterParenting(t){return M1.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===$.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case d.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return XE[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){sk(this,t);return}switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Qr(this,t);break}case w.BEFORE_HEAD:{Jr(this,t);break}case w.IN_HEAD:{eu(this,t);break}case w.IN_HEAD_NO_SCRIPT:{tu(this,t);break}case w.AFTER_HEAD:{nu(this,t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:{j1(this,t);break}case w.TEXT:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{ls(this,t);break}case w.IN_TABLE_TEXT:{$1(this,t);break}case w.IN_COLUMN_GROUP:{ea(this,t);break}case w.AFTER_BODY:{ta(this,t);break}case w.AFTER_AFTER_BODY:{Wu(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ak(this,t);return}switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Qr(this,t);break}case w.BEFORE_HEAD:{Jr(this,t);break}case w.IN_HEAD:{eu(this,t);break}case w.IN_HEAD_NO_SCRIPT:{tu(this,t);break}case w.AFTER_HEAD:{nu(this,t);break}case w.TEXT:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{ls(this,t);break}case w.IN_COLUMN_GROUP:{ea(this,t);break}case w.AFTER_BODY:{ta(this,t);break}case w.AFTER_AFTER_BODY:{Wu(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Zs(this,t);return}switch(this.insertionMode){case w.INITIAL:case w.BEFORE_HTML:case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_TEMPLATE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{Zs(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.AFTER_BODY:{jy(this,t);break}case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{Fy(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case w.INITIAL:{By(this,t);break}case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:{this._err(t,F.misplacedDoctype);break}case w.IN_TABLE_TEXT:{$r(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,F.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?ik(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Hy(this,t);break}case w.BEFORE_HEAD:{Vy(this,t);break}case w.IN_HEAD:{un(this,t);break}case w.IN_HEAD_NO_SCRIPT:{qy(this,t);break}case w.AFTER_HEAD:{Wy(this,t);break}case w.IN_BODY:{Et(this,t);break}case w.IN_TABLE:{Ar(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_CAPTION:{$T(this,t);break}case w.IN_COLUMN_GROUP:{Di(this,t);break}case w.IN_TABLE_BODY:{Na(this,t);break}case w.IN_ROW:{va(this,t);break}case w.IN_CELL:{ZT(this,t);break}case w.IN_SELECT:{Z1(this,t);break}case w.IN_SELECT_IN_TABLE:{YT(this,t);break}case w.IN_TEMPLATE:{XT(this,t);break}case w.AFTER_BODY:{QT(this,t);break}case w.IN_FRAMESET:{JT(this,t);break}case w.AFTER_FRAMESET:{tk(this,t);break}case w.AFTER_AFTER_BODY:{rk(this,t);break}case w.AFTER_AFTER_FRAMESET:{uk(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?ok(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Uy(this,t);break}case w.BEFORE_HEAD:{$y(this,t);break}case w.IN_HEAD:{zy(this,t);break}case w.IN_HEAD_NO_SCRIPT:{Zy(this,t);break}case w.AFTER_HEAD:{Yy(this,t);break}case w.IN_BODY:{Ia(this,t);break}case w.TEXT:{PT(this,t);break}case w.IN_TABLE:{iu(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_CAPTION:{zT(this,t);break}case w.IN_COLUMN_GROUP:{qT(this,t);break}case w.IN_TABLE_BODY:{Ws(this,t);break}case w.IN_ROW:{q1(this,t);break}case w.IN_CELL:{WT(this,t);break}case w.IN_SELECT:{W1(this,t);break}case w.IN_SELECT_IN_TABLE:{GT(this,t);break}case w.IN_TEMPLATE:{KT(this,t);break}case w.AFTER_BODY:{G1(this,t);break}case w.IN_FRAMESET:{ek(this,t);break}case w.AFTER_FRAMESET:{nk(this,t);break}case w.AFTER_AFTER_BODY:{Wu(this,t);break}}}onEof(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Qr(this,t);break}case w.BEFORE_HEAD:{Jr(this,t);break}case w.IN_HEAD:{eu(this,t);break}case w.IN_HEAD_NO_SCRIPT:{tu(this,t);break}case w.AFTER_HEAD:{nu(this,t);break}case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{U1(this,t);break}case w.TEXT:{RT(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_TEMPLATE:{Y1(this,t);break}case w.AFTER_BODY:case w.IN_FRAMESET:case w.AFTER_FRAMESET:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{wi(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===T.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.TEXT:case w.IN_COLUMN_GROUP:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{this._insertCharacters(t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:case w.AFTER_BODY:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{O1(this,t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{ls(this,t);break}case w.IN_TABLE_TEXT:{V1(this,t);break}}}}function Dy(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):H1(e,t),n}function Ly(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const u=e.openElements.items[r];if(u===t.element)break;e._isSpecialElement(u,e.openElements.tagIDs[r])&&(n=u)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Py(e,t,n){let r=t,u=e.openElements.getCommonAncestor(t);for(let a=0,s=u;s!==n;a++,s=u){u=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),c=o&&a>=vy;!o||c?(c&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Ry(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Ry(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function My(e,t,n){const r=e.treeAdapter.getTagName(t),u=Mr(r);if(e._isElementCausesFosterParenting(u))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);u===d.TEMPLATE&&a===$.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Oy(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:u}=n,a=e.treeAdapter.createElement(u.tagName,r,u.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,u),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,u.tagID)}function vi(e,t){for(let n=0;n<Ny;n++){const r=Dy(e,t);if(!r)break;const u=Ly(e,r);if(!u)break;e.activeFormattingElements.bookmark=r;const a=Py(e,u,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&My(e,s,a),Oy(e,u,r)}}function Zs(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function jy(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Fy(e,t){e._appendCommentNode(t,e.document)}function wi(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],u=e.treeAdapter.getNodeSourceCodeLocation(r);if(u&&!u.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function By(e,t){e._setDocumentType(t);const n=t.forceQuirks?Kt.QUIRKS:my(t);py(t)||e._err(t,F.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=w.BEFORE_HTML}function Vr(e,t){e._err(t,F.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Kt.QUIRKS),e.insertionMode=w.BEFORE_HTML,e._processToken(t)}function Hy(e,t){t.tagID===d.HTML?(e._insertElement(t,$.HTML),e.insertionMode=w.BEFORE_HEAD):Qr(e,t)}function Uy(e,t){const n=t.tagID;(n===d.HTML||n===d.HEAD||n===d.BODY||n===d.BR)&&Qr(e,t)}function Qr(e,t){e._insertFakeRootElement(),e.insertionMode=w.BEFORE_HEAD,e._processToken(t)}function Vy(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.HEAD:{e._insertElement(t,$.HTML),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD;break}default:Jr(e,t)}}function $y(e,t){const n=t.tagID;n===d.HEAD||n===d.BODY||n===d.HTML||n===d.BR?Jr(e,t):e._err(t,F.endTagWithoutMatchingOpenElement)}function Jr(e,t){e._insertFakeElement(R.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD,e._processToken(t)}function un(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,Je.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Je.RAWTEXT):(e._insertElement(t,$.HTML),e.insertionMode=w.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,Je.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,Je.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=w.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(w.IN_TEMPLATE);break}case d.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:eu(e,t)}}function zy(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=w.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{eu(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function lr(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,F.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,F.endTagWithoutMatchingOpenElement)}function eu(e,t){e.openElements.pop(),e.insertionMode=w.AFTER_HEAD,e._processToken(t)}function qy(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{un(e,t);break}case d.NOSCRIPT:{e._err(t,F.nestedNoscriptInHead);break}default:tu(e,t)}}function Zy(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=w.IN_HEAD;break}case d.BR:{tu(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function tu(e,t){const n=t.type===Ne.EOF?F.openElementsLeftAfterEof:F.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=w.IN_HEAD,e._processToken(t)}function Wy(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BODY:{e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=w.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,$.HTML),e.insertionMode=w.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,F.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),un(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:nu(e,t)}}function Yy(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{nu(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function nu(e,t){e._insertFakeElement(R.BODY,d.BODY),e.insertionMode=w.IN_BODY,Sa(e,t)}function Sa(e,t){switch(t.type){case Ne.CHARACTER:{j1(e,t);break}case Ne.WHITESPACE_CHARACTER:{O1(e,t);break}case Ne.COMMENT:{Zs(e,t);break}case Ne.START_TAG:{Et(e,t);break}case Ne.END_TAG:{Ia(e,t);break}case Ne.EOF:{U1(e,t);break}}}function O1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function j1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Gy(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Xy(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Ky(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_FRAMESET)}function Qy(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML)}function Jy(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&qs.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,$.HTML)}function eT(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function tT(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),n||(e.formElement=e.openElements.current))}function nT(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const u=e.openElements.tagIDs[r];if(n===d.LI&&u===d.LI||(n===d.DD||n===d.DT)&&(u===d.DD||u===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(u),e.openElements.popUntilTagNamePopped(u);break}if(u!==d.ADDRESS&&u!==d.DIV&&u!==d.P&&e._isSpecialElement(e.openElements.items[r],u))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML)}function rT(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.tokenizer.state=Je.PLAINTEXT}function uT(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.framesetOk=!1}function aT(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(R.A);n&&(vi(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function sT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function iT(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(vi(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function oT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function cT(e,t){e.treeAdapter.getDocumentMode(e.document)!==Kt.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=w.IN_TABLE}function F1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function B1(e){const t=I1(e,ar.TYPE);return t!=null&&t.toLowerCase()===Iy}function lT(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$.HTML),B1(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function dT(e,t){e._appendElement(t,$.HTML),t.ackSelfClosing=!0}function fT(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,$.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function hT(e,t){t.tagName=R.IMG,t.tagID=d.IMG,F1(e,t)}function pT(e,t){e._insertElement(t,$.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Je.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=w.TEXT}function mT(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function gT(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function Lc(e,t){e._switchToTextParsing(t,Je.RAWTEXT)}function bT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===w.IN_TABLE||e.insertionMode===w.IN_CAPTION||e.insertionMode===w.IN_TABLE_BODY||e.insertionMode===w.IN_ROW||e.insertionMode===w.IN_CELL?w.IN_SELECT_IN_TABLE:w.IN_SELECT}function _T(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML)}function xT(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,$.HTML)}function CT(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,$.HTML)}function ET(e,t){e._reconstructActiveFormattingElements(),P1(t),Ni(t),t.selfClosing?e._appendElement(t,$.MATHML):e._insertElement(t,$.MATHML),t.ackSelfClosing=!0}function yT(e,t){e._reconstructActiveFormattingElements(),R1(t),Ni(t),t.selfClosing?e._appendElement(t,$.SVG):e._insertElement(t,$.SVG),t.ackSelfClosing=!0}function Pc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML)}function Et(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{sT(e,t);break}case d.A:{aT(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{Jy(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{Qy(e,t);break}case d.LI:case d.DD:case d.DT:{nT(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{F1(e,t);break}case d.HR:{fT(e,t);break}case d.RB:case d.RTC:{xT(e,t);break}case d.RT:case d.RP:{CT(e,t);break}case d.PRE:case d.LISTING:{eT(e,t);break}case d.XMP:{mT(e,t);break}case d.SVG:{yT(e,t);break}case d.HTML:{Gy(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{un(e,t);break}case d.BODY:{Xy(e,t);break}case d.FORM:{tT(e,t);break}case d.NOBR:{iT(e,t);break}case d.MATH:{ET(e,t);break}case d.TABLE:{cT(e,t);break}case d.INPUT:{lT(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{dT(e,t);break}case d.IMAGE:{hT(e,t);break}case d.BUTTON:{uT(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{oT(e,t);break}case d.IFRAME:{gT(e,t);break}case d.SELECT:{bT(e,t);break}case d.OPTION:case d.OPTGROUP:{_T(e,t);break}case d.NOEMBED:case d.NOFRAMES:{Lc(e,t);break}case d.FRAMESET:{Ky(e,t);break}case d.TEXTAREA:{pT(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?Lc(e,t):Pc(e,t);break}case d.PLAINTEXT:{rT(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:Pc(e,t)}}function TT(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=w.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function kT(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=w.AFTER_BODY,G1(e,t))}function AT(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function ST(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):n&&e.openElements.remove(n))}function IT(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(R.P,d.P),e._closePElement()}function NT(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function vT(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function wT(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function DT(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function LT(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(R.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function H1(e,t){const n=t.tagName,r=t.tagID;for(let u=e.openElements.stackTop;u>0;u--){const a=e.openElements.items[u],s=e.openElements.tagIDs[u];if(r===s&&(r!==d.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=u&&e.openElements.shortenToLength(u);break}if(e._isSpecialElement(a,s))break}}function Ia(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{vi(e,t);break}case d.P:{IT(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{AT(e,t);break}case d.LI:{NT(e);break}case d.DD:case d.DT:{vT(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{wT(e);break}case d.BR:{LT(e);break}case d.BODY:{TT(e,t);break}case d.HTML:{kT(e,t);break}case d.FORM:{ST(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{DT(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:H1(e,t)}}function U1(e,t){e.tmplInsertionModeStack.length>0?Y1(e,t):wi(e,t)}function PT(e,t){var n;t.tagID===d.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function RT(e,t){e._err(t,F.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ls(e,t){if(e.openElements.currentTagId!==void 0&&M1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=w.IN_TABLE_TEXT,t.type){case Ne.CHARACTER:{$1(e,t);break}case Ne.WHITESPACE_CHARACTER:{V1(e,t);break}}else Cu(e,t)}function MT(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_CAPTION}function OT(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_COLUMN_GROUP}function jT(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.COLGROUP,d.COLGROUP),e.insertionMode=w.IN_COLUMN_GROUP,Di(e,t)}function FT(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_TABLE_BODY}function BT(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.TBODY,d.TBODY),e.insertionMode=w.IN_TABLE_BODY,Na(e,t)}function HT(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function UT(e,t){B1(t)?e._appendElement(t,$.HTML):Cu(e,t),t.ackSelfClosing=!0}function VT(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,$.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ar(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{BT(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{un(e,t);break}case d.COL:{jT(e,t);break}case d.FORM:{VT(e,t);break}case d.TABLE:{HT(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{FT(e,t);break}case d.INPUT:{UT(e,t);break}case d.CAPTION:{MT(e,t);break}case d.COLGROUP:{OT(e,t);break}default:Cu(e,t)}}function iu(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{lr(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Cu(e,t)}}function Cu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Sa(e,t),e.fosterParentingEnabled=n}function V1(e,t){e.pendingCharacterTokens.push(t)}function $1(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function $r(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Cu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const z1=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function $T(e,t){const n=t.tagID;z1.has(n)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,Ar(e,t)):Et(e,t)}function zT(e,t){const n=t.tagID;switch(n){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,n===d.TABLE&&iu(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Ia(e,t)}}function Di(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.COL:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{un(e,t);break}default:ea(e,t)}}function qT(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case d.TEMPLATE:{lr(e,t);break}case d.COL:break;default:ea(e,t)}}function ea(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE,e._processToken(t))}function Na(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(R.TR,d.TR),e.insertionMode=w.IN_ROW,va(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,Ar(e,t));break}default:Ar(e,t)}}function Ws(e,t){const n=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,iu(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:iu(e,t)}}function va(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Na(e,t));break}default:Ar(e,t)}}function q1(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Ws(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Ws(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:iu(e,t)}}function ZT(e,t){const n=t.tagID;z1.has(n)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),va(e,t)):Et(e,t)}function WT(e,t){const n=t.tagID;switch(n){case d.TD:case d.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),q1(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:Ia(e,t)}}function Z1(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,$.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,$.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{un(e,t);break}}}function W1(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{lr(e,t);break}}}function YT(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Z1(e,t)}function GT(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):W1(e,t)}function XT(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{un(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=w.IN_TABLE,e.insertionMode=w.IN_TABLE,Ar(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=w.IN_COLUMN_GROUP,e.insertionMode=w.IN_COLUMN_GROUP,Di(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=w.IN_TABLE_BODY,e.insertionMode=w.IN_TABLE_BODY,Na(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=w.IN_ROW,e.insertionMode=w.IN_ROW,va(e,t);break}default:e.tmplInsertionModeStack[0]=w.IN_BODY,e.insertionMode=w.IN_BODY,Et(e,t)}}function KT(e,t){t.tagID===d.TEMPLATE&&lr(e,t)}function Y1(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):wi(e,t)}function QT(e,t){t.tagID===d.HTML?Et(e,t):ta(e,t)}function G1(e,t){var n;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=w.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ta(e,t)}function ta(e,t){e.insertionMode=w.IN_BODY,Sa(e,t)}function JT(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.FRAMESET:{e._insertElement(t,$.HTML);break}case d.FRAME:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{un(e,t);break}}}function ek(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=w.AFTER_FRAMESET))}function tk(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.NOFRAMES:{un(e,t);break}}}function nk(e,t){t.tagID===d.HTML&&(e.insertionMode=w.AFTER_AFTER_FRAMESET)}function rk(e,t){t.tagID===d.HTML?Et(e,t):Wu(e,t)}function Wu(e,t){e.insertionMode=w.IN_BODY,Sa(e,t)}function uk(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.NOFRAMES:{un(e,t);break}}}function ak(e,t){t.chars=qe,e._insertCharacters(t)}function sk(e,t){e._insertCharacters(t),e.framesetOk=!1}function X1(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==$.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ik(e,t){if(yy(t))X1(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===$.MATHML?P1(t):r===$.SVG&&(Ty(t),R1(t)),Ni(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function ok(e,t){if(t.tagID===d.P||t.tagID===d.BR){X1(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===$.HTML){e._endTagOutsideForeignContent(t);break}const u=e.treeAdapter.getTagName(r);if(u.toLowerCase()===t.tagName){t.tagName=u,e.openElements.shortenToLength(n);break}}}R.AREA,R.BASE,R.BASEFONT,R.BGSOUND,R.BR,R.COL,R.EMBED,R.FRAME,R.HR,R.IMG,R.INPUT,R.KEYGEN,R.LINK,R.META,R.PARAM,R.SOURCE,R.TRACK,R.WBR;const ck=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,lk=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Rc={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function K1(e,t){const n=Ck(e),r=q0("type",{handlers:{root:dk,element:fk,text:hk,comment:J1,doctype:pk,raw:gk},unknown:bk}),u={parser:n?new Dc(Rc):Dc.getFragmentParser(void 0,Rc),handle(o){r(o,u)},stitches:!1,options:t||{}};r(e,u),Or(u,pn());const a=n?u.parser.document:u.parser.getFragment(),s=dE(a,{file:u.options.file});return u.stitches&&ka(s,"comment",function(o,c,l){const h=o;if(h.value.stitch&&l&&c!==void 0){const f=l.children;return f[c]=h.value.stitch,c}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Q1(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function dk(e,t){Q1(e.children,t)}function fk(e,t){_k(e,t),Q1(e.children,t),xk(e,t)}function hk(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ne.CHARACTER,chars:e.value,location:Eu(e)};Or(t,pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function pk(e,t){const n={type:Ne.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Eu(e)};Or(t,pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function mk(e,t){t.stitches=!0;const n=Ek(e);if("children"in e&&"children"in n){const r=K1({type:"root",children:e.children},t.options);n.children=r.children}J1({type:"comment",value:{stitch:n}},t)}function J1(e,t){const n=e.value,r={type:Ne.COMMENT,data:n,location:Eu(e)};Or(t,pn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function gk(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,ed(t,pn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(ck,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function bk(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))mk(n,t);else{let r="";throw lk.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Or(e,t){ed(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Je.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function ed(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function _k(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Je.PLAINTEXT)return;Or(t,pn(e));const r=t.parser.openElements.current;let u="namespaceURI"in r?r.namespaceURI:rr.html;u===rr.html&&n==="svg"&&(u=rr.svg);const a=SE({...e,children:[]},{space:u===rr.svg?"svg":"html"}),s={type:Ne.START_TAG,tagName:n,tagID:Mr(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Eu(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function xk(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&RE.includes(n)||t.parser.tokenizer.state===Je.PLAINTEXT)return;Or(t,_a(e));const r={type:Ne.END_TAG,tagName:n,tagID:Mr(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Eu(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Je.RCDATA||t.parser.tokenizer.state===Je.RAWTEXT||t.parser.tokenizer.state===Je.SCRIPT_DATA)&&(t.parser.tokenizer.state=Je.DATA)}function Ck(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Eu(e){const t=pn(e)||{line:void 0,column:void 0,offset:void 0},n=_a(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Ek(e){return"children"in e?kr({...e,children:[]}):kr(e)}function Li(e){return function(t,n){return K1(t,{...e,file:n})}}const Pi=()=>{const{shopTerms:e}=g.useStorefrontStore(),{isAntistock:t}=g.useGeneralStore();return!(e!=null&&e.showTermsOfServiceOnProduct)||!(e!=null&&e.termsOfService)?null:i.jsxs("div",{className:Kn.container,children:[i.jsx("div",{className:Kn.icon,children:i.jsx(N.Icon,{name:"FileCloud",fill:"var(--text-secondary)"})}),t?i.jsx("p",{className:Kn.text,id:"md",children:i.jsx("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:Kn.link,children:"Terms Of Service"})}):i.jsx(Aa,{remarkPlugins:[ki],rehypePlugins:[Li],className:Kn.text,components:{a:({node:n,...r})=>i.jsx("a",{...r,target:"_blank",rel:"noopener noreferrer",className:Kn.link,id:"md"}),p:({node:n,...r})=>i.jsx("p",{...r,className:Kn.text,id:"md"})},children:e==null?void 0:e.termsOfService})]})},yk="_securedBySsl_1ng38_2",Tk="_text_1ng38_9",ds={securedBySsl:yk,text:Tk},Ri=({isAntistock:e})=>i.jsxs("div",{className:ds.securedBySsl,children:[i.jsx("div",{className:ds.iconWrapper,children:i.jsx(N.Icon,{name:"ShieldCheck",fill:"var(--text-secondary)"})}),i.jsx("p",{className:ds.text,id:"md",children:e?"Your data is secured by extended validation SSL certificates (256-bit encryption).":"Your data is secured by extended validation SSL certificates (256-bit encryption). This complies with the strongest payment security standard available today."})]}),kk="_container_152ix_1",Ak="_header_152ix_7",Sk="_backButton_152ix_13",Ik="_title_152ix_22",Nk="_cards_152ix_28",vk="_card_152ix_28",wk="_selected_152ix_46",Dk="_prioritySelected_152ix_50",Lk="_price_152ix_51",Pk="_description_152ix_61",Yt={container:kk,header:Ak,backButton:Sk,title:Ik,cards:Nk,card:vk,selected:wk,prioritySelected:Dk,price:Lk,description:Pk},Mc={};function Rk(e){let t=Mc[e];if(t)return t;t=Mc[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function Sr(e,t){typeof t!="string"&&(t=Sr.defaultChars);const n=Rk(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let u="";for(let a=0,s=r.length;a<s;a+=3){const o=parseInt(r.slice(a+1,a+3),16);if(o<128){u+=n[o];continue}if((o&224)===192&&a+3<s){const c=parseInt(r.slice(a+4,a+6),16);if((c&192)===128){const l=o<<6&1984|c&63;l<128?u+="��":u+=String.fromCharCode(l),a+=3;continue}}if((o&240)===224&&a+6<s){const c=parseInt(r.slice(a+4,a+6),16),l=parseInt(r.slice(a+7,a+9),16);if((c&192)===128&&(l&192)===128){const h=o<<12&61440|c<<6&4032|l&63;h<2048||h>=55296&&h<=57343?u+="���":u+=String.fromCharCode(h),a+=6;continue}}if((o&248)===240&&a+9<s){const c=parseInt(r.slice(a+4,a+6),16),l=parseInt(r.slice(a+7,a+9),16),h=parseInt(r.slice(a+10,a+12),16);if((c&192)===128&&(l&192)===128&&(h&192)===128){let f=o<<18&1835008|c<<12&258048|l<<6&4032|h&63;f<65536||f>1114111?u+="����":(f-=65536,u+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),a+=9;continue}}u+="�"}return u})}Sr.defaultChars=";/?:@&=+$,#";Sr.componentChars="";const Oc={};function Mk(e){let t=Oc[e];if(t)return t;t=Oc[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function yu(e,t,n){typeof t!="string"&&(n=t,t=yu.defaultChars),typeof n>"u"&&(n=!0);const r=Mk(t);let u="";for(let a=0,s=e.length;a<s;a++){const o=e.charCodeAt(a);if(n&&o===37&&a+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3))){u+=e.slice(a,a+3),a+=2;continue}if(o<128){u+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&a+1<s){const c=e.charCodeAt(a+1);if(c>=56320&&c<=57343){u+=encodeURIComponent(e[a]+e[a+1]),a++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[a])}return u}yu.defaultChars=";/?:@&=+$,-_.!~*'()#";yu.componentChars="-_.!~*'()";function Mi(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function na(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Ok=/^([a-z0-9.+-]+:)/i,jk=/:[0-9]*$/,Fk=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Bk=["<",">",'"',"`"," ","\r",`
|
|
90
90
|
`," "],Hk=["{","}","|","\\","^","`"].concat(Bk),Uk=["'"].concat(Hk),jc=["%","/","?",";","#"].concat(Uk),Fc=["/","?","#"],Vk=255,Bc=/^[+a-z0-9A-Z_-]{0,63}$/,$k=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Hc={javascript:!0,"javascript:":!0},Uc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Oi(e,t){if(e&&e instanceof na)return e;const n=new na;return n.parse(e,t),n}na.prototype.parse=function(e,t){let n,r,u,a=e;if(a=a.trim(),!t&&e.split("#").length===1){const l=Fk.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let s=Ok.exec(a);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,a=a.substr(s.length)),(t||s||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=a.substr(0,2)==="//",u&&!(s&&Hc[s])&&(a=a.substr(2),this.slashes=!0)),!Hc[s]&&(u||s&&!Uc[s])){let l=-1;for(let b=0;b<Fc.length;b++)r=a.indexOf(Fc[b]),r!==-1&&(l===-1||r<l)&&(l=r);let h,f;l===-1?f=a.lastIndexOf("@"):f=a.lastIndexOf("@",l),f!==-1&&(h=a.slice(0,f),a=a.slice(f+1),this.auth=h),l=-1;for(let b=0;b<jc.length;b++)r=a.indexOf(jc[b]),r!==-1&&(l===-1||r<l)&&(l=r);l===-1&&(l=a.length),a[l-1]===":"&&l--;const m=a.slice(0,l);a=a.slice(l),this.parseHost(m),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const b=this.hostname.split(/\./);for(let _=0,E=b.length;_<E;_++){const x=b[_];if(x&&!x.match(Bc)){let k="";for(let y=0,D=x.length;y<D;y++)x.charCodeAt(y)>127?k+="x":k+=x[y];if(!k.match(Bc)){const y=b.slice(0,_),D=b.slice(_+1),S=x.match($k);S&&(y.push(S[1]),D.unshift(S[2])),D.length&&(a=D.join(".")+a),this.hostname=y.join(".");break}}}}this.hostname.length>Vk&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=a.indexOf("#");o!==-1&&(this.hash=a.substr(o),a=a.slice(0,o));const c=a.indexOf("?");return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),Uc[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};na.prototype.parseHost=function(e){let t=jk.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const zk=Object.freeze(Object.defineProperty({__proto__:null,decode:Sr,encode:yu,format:Mi,parse:Oi},Symbol.toStringTag,{value:"Module"})),td=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,nd=/[\0-\x1F\x7F-\x9F]/,qk=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ji=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,rd=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,ud=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Zk=Object.freeze(Object.defineProperty({__proto__:null,Any:td,Cc:nd,Cf:qk,P:ji,S:rd,Z:ud},Symbol.toStringTag,{value:"Module"})),Wk=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Yk=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var fs;const Gk=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Xk=(fs=String.fromCodePoint)!==null&&fs!==void 0?fs:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Kk(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Gk.get(e))!==null&&t!==void 0?t:e}var lt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(lt||(lt={}));const Qk=32;var Vn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Vn||(Vn={}));function Ys(e){return e>=lt.ZERO&&e<=lt.NINE}function Jk(e){return e>=lt.UPPER_A&&e<=lt.UPPER_F||e>=lt.LOWER_A&&e<=lt.LOWER_F}function eA(e){return e>=lt.UPPER_A&&e<=lt.UPPER_Z||e>=lt.LOWER_A&&e<=lt.LOWER_Z||Ys(e)}function tA(e){return e===lt.EQUALS||eA(e)}var it;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(it||(it={}));var Bn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Bn||(Bn={}));class nA{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=it.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Bn.Strict}startEntity(t){this.decodeMode=t,this.state=it.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case it.EntityStart:return t.charCodeAt(n)===lt.NUM?(this.state=it.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=it.NamedEntity,this.stateNamedEntity(t,n));case it.NumericStart:return this.stateNumericStart(t,n);case it.NumericDecimal:return this.stateNumericDecimal(t,n);case it.NumericHex:return this.stateNumericHex(t,n);case it.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Qk)===lt.LOWER_X?(this.state=it.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=it.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const a=r-n;this.result=this.result*Math.pow(u,a)+parseInt(t.substr(n,a),u),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(Ys(u)||Jk(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(Ys(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===lt.SEMI)this.consumed+=1;else if(this.decodeMode===Bn.Strict)return 0;return this.emitCodePoint(Kk(this.result),this.consumed),this.errors&&(t!==lt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],a=(u&Vn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=rA(r,u,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Bn.Attribute&&(a===0||tA(s))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],a=(u&Vn.VALUE_LENGTH)>>14,a!==0){if(s===lt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Bn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&Vn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~Vn.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case it.NamedEntity:return this.result!==0&&(this.decodeMode!==Bn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case it.NumericDecimal:return this.emitNumericEntity(0,2);case it.NumericHex:return this.emitNumericEntity(0,3);case it.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case it.EntityStart:return 0}}}function ad(e){let t="";const n=new nA(e,r=>t+=Xk(r));return function(u,a){let s=0,o=0;for(;(o=u.indexOf("&",o))>=0;){t+=u.slice(s,o),n.startEntity(a);const l=n.write(u,o+1);if(l<0){s=o+n.end();break}s=o+l,o=l===0?s+1:s}const c=t+u.slice(s);return t="",c}}function rA(e,t,n,r){const u=(t&Vn.BRANCH_LENGTH)>>7,a=t&Vn.JUMP_TABLE;if(u===0)return a!==0&&r===a?n:-1;if(a){const c=r-a;return c<0||c>=u?-1:e[n+c]-1}let s=n,o=s+u-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<r)s=c+1;else if(l>r)o=c-1;else return e[c+u]}return-1}const uA=ad(Wk);ad(Yk);function sd(e,t=Bn.Legacy){return uA(e,t)}function aA(e){return Object.prototype.toString.call(e)}function Fi(e){return aA(e)==="[object String]"}const sA=Object.prototype.hasOwnProperty;function iA(e,t){return sA.call(e,t)}function wa(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function id(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Bi(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function ra(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const od=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,oA=/&([a-z#][a-z0-9]{1,31});/gi,cA=new RegExp(od.source+"|"+oA.source,"gi"),lA=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function dA(e,t){if(t.charCodeAt(0)===35&&lA.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Bi(r)?ra(r):e}const n=sd(e);return n!==e?n:e}function fA(e){return e.indexOf("\\")<0?e:e.replace(od,"$1")}function Ir(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(cA,function(t,n,r){return n||dA(t,r)})}const hA=/[&<>"]/,pA=/[&<>"]/g,mA={"&":"&","<":"<",">":">",'"':"""};function gA(e){return mA[e]}function qn(e){return hA.test(e)?e.replace(pA,gA):e}const bA=/[.?*+^$[\]\\(){}|-]/g;function _A(e){return e.replace(bA,"\\$&")}function Ve(e){switch(e){case 9:case 32:return!0}return!1}function ou(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function cu(e){return ji.test(e)||rd.test(e)}function lu(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Da(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const xA={mdurl:zk,ucmicro:Zk},CA=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:id,assign:wa,escapeHtml:qn,escapeRE:_A,fromCodePoint:ra,has:iA,isMdAsciiPunct:lu,isPunctChar:cu,isSpace:Ve,isString:Fi,isValidEntityCode:Bi,isWhiteSpace:ou,lib:xA,normalizeReference:Da,unescapeAll:Ir,unescapeMd:fA},Symbol.toStringTag,{value:"Module"}));function EA(e,t,n){let r,u,a,s;const o=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<o;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){u=!0;break}if(s=e.pos,e.md.inline.skipToken(e),a===91){if(s===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return u&&(l=e.pos),e.pos=c,l}function yA(e,t,n){let r,u=t;const a={ok:!1,pos:0,str:""};if(e.charCodeAt(u)===60){for(u++;u<n;){if(r=e.charCodeAt(u),r===10||r===60)return a;if(r===62)return a.pos=u+1,a.str=Ir(e.slice(t+1,u)),a.ok=!0,a;if(r===92&&u+1<n){u+=2;continue}u++}return a}let s=0;for(;u<n&&(r=e.charCodeAt(u),!(r===32||r<32||r===127));){if(r===92&&u+1<n){if(e.charCodeAt(u+1)===32)break;u+=2;continue}if(r===40&&(s++,s>32))return a;if(r===41){if(s===0)break;s--}u++}return t===u||s!==0||(a.str=Ir(e.slice(t,u)),a.pos=u,a.ok=!0),a}function TA(e,t,n,r){let u,a=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)s.str=r.str,s.marker=r.marker;else{if(a>=n)return s;let o=e.charCodeAt(a);if(o!==34&&o!==39&&o!==40)return s;t++,a++,o===40&&(o=41),s.marker=o}for(;a<n;){if(u=e.charCodeAt(a),u===s.marker)return s.pos=a+1,s.str+=Ir(e.slice(t,a)),s.ok=!0,s;if(u===40&&s.marker===41)return s;u===92&&a+1<n&&a++,a++}return s.can_continue=!0,s.str+=Ir(e.slice(t,a)),s}const kA=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:yA,parseLinkLabel:EA,parseLinkTitle:TA},Symbol.toStringTag,{value:"Module"})),gn={};gn.code_inline=function(e,t,n,r,u){const a=e[t];return"<code"+u.renderAttrs(a)+">"+qn(a.content)+"</code>"};gn.code_block=function(e,t,n,r,u){const a=e[t];return"<pre"+u.renderAttrs(a)+"><code>"+qn(e[t].content)+`</code></pre>
|
|
91
91
|
`};gn.fence=function(e,t,n,r,u){const a=e[t],s=a.info?Ir(a.info).trim():"";let o="",c="";if(s){const h=s.split(/(\s+)/g);o=h[0],c=h.slice(2).join("")}let l;if(n.highlight?l=n.highlight(a.content,o,c)||qn(a.content):l=qn(a.content),l.indexOf("<pre")===0)return l+`
|
|
92
92
|
`;if(s){const h=a.attrIndex("class"),f=a.attrs?a.attrs.slice():[];h<0?f.push(["class",n.langPrefix+o]):(f[h]=f[h].slice(),f[h][1]+=" "+n.langPrefix+o);const m={attrs:f};return`<pre><code${u.renderAttrs(m)}>${l}</code></pre>
|
|
@@ -101,8 +101,8 @@ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var G=ze(de,xe,J,ne,Q+".
|
|
|
101
101
|
`:">",a};jr.prototype.renderInline=function(e,t,n){let r="";const u=this.rules;for(let a=0,s=e.length;a<s;a++){const o=e[a].type;typeof u[o]<"u"?r+=u[o](e,a,t,n,this):r+=this.renderToken(e,a,t)}return r};jr.prototype.renderInlineAsText=function(e,t,n){let r="";for(let u=0,a=e.length;u<a;u++)switch(e[u].type){case"text":r+=e[u].content;break;case"image":r+=this.renderInlineAsText(e[u].children,t,n);break;case"html_inline":case"html_block":r+=e[u].content;break;case"softbreak":case"hardbreak":r+=`
|
|
102
102
|
`;break}return r};jr.prototype.render=function(e,t,n){let r="";const u=this.rules;for(let a=0,s=e.length;a<s;a++){const o=e[a].type;o==="inline"?r+=this.renderInline(e[a].children,t,n):typeof u[o]<"u"?r+=u[o](e,a,t,n,this):r+=this.renderToken(e,a,t,n)}return r};function Rt(){this.__rules__=[],this.__cache__=null}Rt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Rt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};Rt.prototype.at=function(e,t,n){const r=this.__find__(e),u=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=u.alt||[],this.__cache__=null};Rt.prototype.before=function(e,t,n,r){const u=this.__find__(e),a=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Rt.prototype.after=function(e,t,n,r){const u=this.__find__(e),a=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Rt.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Rt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!0,n.push(r)},this),this.__cache__=null,n};Rt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Rt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!1,n.push(r)},this),this.__cache__=null,n};Rt.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function an(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}an.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,u=n.length;r<u;r++)if(n[r][0]===t)return r;return-1};an.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};an.prototype.attrSet=function(t,n){const r=this.attrIndex(t),u=[t,n];r<0?this.attrPush(u):this.attrs[r]=u};an.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};an.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function cd(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}cd.prototype.Token=an;const AA=/\r\n?|\n/g,SA=/\0/g;function IA(e){let t;t=e.src.replace(AA,`
|
|
103
103
|
`),t=t.replace(SA,"�"),e.src=t}function NA(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function vA(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const u=t[n];u.type==="inline"&&e.md.inline.parse(u.content,e.md,e.env,u.children)}}function wA(e){return/^<a[>\s]/i.test(e)}function DA(e){return/^<\/a\s*>/i.test(e)}function LA(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let u=t[n].children,a=0;for(let s=u.length-1;s>=0;s--){const o=u[s];if(o.type==="link_close"){for(s--;u[s].level!==o.level&&u[s].type!=="link_open";)s--;continue}if(o.type==="html_inline"&&(wA(o.content)&&a>0&&a--,DA(o.content)&&a++),!(a>0)&&o.type==="text"&&e.md.linkify.test(o.content)){const c=o.content;let l=e.md.linkify.match(c);const h=[];let f=o.level,m=0;l.length>0&&l[0].index===0&&s>0&&u[s-1].type==="text_special"&&(l=l.slice(1));for(let p=0;p<l.length;p++){const b=l[p].url,_=e.md.normalizeLink(b);if(!e.md.validateLink(_))continue;let E=l[p].text;l[p].schema?l[p].schema==="mailto:"&&!/^mailto:/i.test(E)?E=e.md.normalizeLinkText("mailto:"+E).replace(/^mailto:/,""):E=e.md.normalizeLinkText(E):E=e.md.normalizeLinkText("http://"+E).replace(/^http:\/\//,"");const x=l[p].index;if(x>m){const S=new e.Token("text","",0);S.content=c.slice(m,x),S.level=f,h.push(S)}const k=new e.Token("link_open","a",1);k.attrs=[["href",_]],k.level=f++,k.markup="linkify",k.info="auto",h.push(k);const y=new e.Token("text","",0);y.content=E,y.level=f,h.push(y);const D=new e.Token("link_close","a",-1);D.level=--f,D.markup="linkify",D.info="auto",h.push(D),m=l[p].lastIndex}if(m<c.length){const p=new e.Token("text","",0);p.content=c.slice(m),p.level=f,h.push(p)}t[n].children=u=id(u,s,h)}}}}const ld=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,PA=/\((c|tm|r)\)/i,RA=/\((c|tm|r)\)/ig,MA={c:"©",r:"®",tm:"™"};function OA(e,t){return MA[t.toLowerCase()]}function jA(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(RA,OA)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function FA(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&ld.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function BA(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(PA.test(e.tokens[t].content)&&jA(e.tokens[t].children),ld.test(e.tokens[t].content)&&FA(e.tokens[t].children))}const HA=/['"]/,Vc=/['"]/g,$c="’";function Fu(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function UA(e,t){let n;const r=[];for(let u=0;u<e.length;u++){const a=e[u],s=e[u].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,a.type!=="text")continue;let o=a.content,c=0,l=o.length;e:for(;c<l;){Vc.lastIndex=c;const h=Vc.exec(o);if(!h)break;let f=!0,m=!0;c=h.index+1;const p=h[0]==="'";let b=32;if(h.index-1>=0)b=o.charCodeAt(h.index-1);else for(n=u-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){b=e[n].content.charCodeAt(e[n].content.length-1);break}let _=32;if(c<l)_=o.charCodeAt(c);else for(n=u+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){_=e[n].content.charCodeAt(0);break}const E=lu(b)||cu(String.fromCharCode(b)),x=lu(_)||cu(String.fromCharCode(_)),k=ou(b),y=ou(_);if(y?f=!1:x&&(k||E||(f=!1)),k?m=!1:E&&(y||x||(m=!1)),_===34&&h[0]==='"'&&b>=48&&b<=57&&(m=f=!1),f&&m&&(f=E,m=x),!f&&!m){p&&(a.content=Fu(a.content,h.index,$c));continue}if(m)for(n=r.length-1;n>=0;n--){let D=r[n];if(r[n].level<s)break;if(D.single===p&&r[n].level===s){D=r[n];let S,I;p?(S=t.md.options.quotes[2],I=t.md.options.quotes[3]):(S=t.md.options.quotes[0],I=t.md.options.quotes[1]),a.content=Fu(a.content,h.index,I),e[D.token].content=Fu(e[D.token].content,D.pos,S),c+=I.length-1,D.token===u&&(c+=S.length-1),o=a.content,l=o.length,r.length=n;continue e}}f?r.push({token:u,pos:h.index,single:p,level:s}):m&&p&&(a.content=Fu(a.content,h.index,$c))}}}function VA(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!HA.test(e.tokens[t].content)||UA(e.tokens[t].children,e)}function $A(e){let t,n;const r=e.tokens,u=r.length;for(let a=0;a<u;a++){if(r[a].type!=="inline")continue;const s=r[a].children,o=s.length;for(t=0;t<o;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<o;t++)s[t].type==="text"&&t+1<o&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}const hs=[["normalize",IA],["block",NA],["inline",vA],["linkify",LA],["replacements",BA],["smartquotes",VA],["text_join",$A]];function Hi(){this.ruler=new Rt;for(let e=0;e<hs.length;e++)this.ruler.push(hs[e][0],hs[e][1])}Hi.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};Hi.prototype.State=cd;function bn(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const u=this.src;for(let a=0,s=0,o=0,c=0,l=u.length,h=!1;s<l;s++){const f=u.charCodeAt(s);if(!h)if(Ve(f)){o++,f===9?c+=4-c%4:c++;continue}else h=!0;(f===10||s===l-1)&&(f!==10&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(o),this.sCount.push(c),this.bsCount.push(0),h=!1,o=0,c=0,a=s+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}bn.prototype.push=function(e,t,n){const r=new an(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};bn.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};bn.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};bn.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!Ve(r))break}return t};bn.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Ve(this.src.charCodeAt(--t)))return t+1;return t};bn.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};bn.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};bn.prototype.getLines=function(t,n,r,u){if(t>=n)return"";const a=new Array(n-t);for(let s=0,o=t;o<n;o++,s++){let c=0;const l=this.bMarks[o];let h=l,f;for(o+1<n||u?f=this.eMarks[o]+1:f=this.eMarks[o];h<f&&c<r;){const m=this.src.charCodeAt(h);if(Ve(m))m===9?c+=4-(c+this.bsCount[o])%4:c++;else if(h-l<this.tShift[o])c++;else break;h++}c>r?a[s]=new Array(c-r+1).join(" ")+this.src.slice(h,f):a[s]=this.src.slice(h,f)}return a.join("")};bn.prototype.Token=an;const zA=65536;function ps(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function zc(e){const t=[],n=e.length;let r=0,u=e.charCodeAt(r),a=!1,s=0,o="";for(;r<n;)u===124&&(a?(o+=e.substring(s,r-1),s=r):(t.push(o+e.substring(s,r)),o="",s=r+1)),a=u===92,r++,u=e.charCodeAt(r);return t.push(o+e.substring(s)),t}function qA(e,t,n,r){if(t+2>n)return!1;let u=t+1;if(e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)return!1;let a=e.bMarks[u]+e.tShift[u];if(a>=e.eMarks[u])return!1;const s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58||a>=e.eMarks[u])return!1;const o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58&&!Ve(o)||s===45&&Ve(o))return!1;for(;a<e.eMarks[u];){const D=e.src.charCodeAt(a);if(D!==124&&D!==45&&D!==58&&!Ve(D))return!1;a++}let c=ps(e,t+1),l=c.split("|");const h=[];for(let D=0;D<l.length;D++){const S=l[D].trim();if(!S){if(D===0||D===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(S))return!1;S.charCodeAt(S.length-1)===58?h.push(S.charCodeAt(0)===58?"center":"right"):S.charCodeAt(0)===58?h.push("left"):h.push("")}if(c=ps(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=zc(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const f=l.length;if(f===0||f!==h.length)return!1;if(r)return!0;const m=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),b=e.push("table_open","table",1),_=[t,0];b.map=_;const E=e.push("thead_open","thead",1);E.map=[t,t+1];const x=e.push("tr_open","tr",1);x.map=[t,t+1];for(let D=0;D<l.length;D++){const S=e.push("th_open","th",1);h[D]&&(S.attrs=[["style","text-align:"+h[D]]]);const I=e.push("inline","",0);I.content=l[D].trim(),I.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let k,y=0;for(u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){let D=!1;for(let I=0,M=p.length;I<M;I++)if(p[I](e,u,n,!0)){D=!0;break}if(D||(c=ps(e,u).trim(),!c)||e.sCount[u]-e.blkIndent>=4||(l=zc(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),y+=f-l.length,y>zA))break;if(u===t+2){const I=e.push("tbody_open","tbody",1);I.map=k=[t+2,0]}const S=e.push("tr_open","tr",1);S.map=[u,u+1];for(let I=0;I<f;I++){const M=e.push("td_open","td",1);h[I]&&(M.attrs=[["style","text-align:"+h[I]]]);const H=e.push("inline","",0);H.content=l[I]?l[I].trim():"",H.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return k&&(e.push("tbody_close","tbody",-1),k[1]=u),e.push("table_close","table",-1),_[1]=u,e.parentType=m,e.line=u,!0}function ZA(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,u=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,u=r;continue}break}e.line=u;const a=e.push("code_block","code",0);return a.content=e.getLines(t,u,4+e.blkIndent,!1)+`
|
|
104
|
-
`,a.map=[t,e.line],!0}function WA(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>a)return!1;const s=e.src.charCodeAt(u);if(s!==126&&s!==96)return!1;let o=u;u=e.skipChars(u,s);let c=u-o;if(c<3)return!1;const l=e.src.slice(o,u),h=e.src.slice(u,a);if(s===96&&h.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let f=t,m=!1;for(;f++,!(f>=n||(u=o=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],u<a&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(u)===s&&!(e.sCount[f]-e.blkIndent>=4)&&(u=e.skipChars(u,s),!(u-o<c)&&(u=e.skipSpaces(u),!(u<a)))){m=!0;break}c=e.sCount[t],e.line=f+(m?1:0);const p=e.push("fence","code",0);return p.info=h,p.content=e.getLines(t+1,f,c,!0),p.markup=l,p.map=[t,e.line],!0}function YA(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==62)return!1;if(r)return!0;const o=[],c=[],l=[],h=[],f=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let p=!1,b;for(b=t;b<n;b++){const y=e.sCount[b]<e.blkIndent;if(u=e.bMarks[b]+e.tShift[b],a=e.eMarks[b],u>=a)break;if(e.src.charCodeAt(u++)===62&&!y){let S=e.sCount[b]+1,I,M;e.src.charCodeAt(u)===32?(u++,S++,M=!1,I=!0):e.src.charCodeAt(u)===9?(I=!0,(e.bsCount[b]+S)%4===3?(u++,S++,M=!1):M=!0):I=!1;let H=S;for(o.push(e.bMarks[b]),e.bMarks[b]=u;u<a;){const U=e.src.charCodeAt(u);if(Ve(U))U===9?H+=4-(H+e.bsCount[b]+(M?1:0))%4:H++;else break;u++}p=u>=a,c.push(e.bsCount[b]),e.bsCount[b]=e.sCount[b]+1+(I?1:0),l.push(e.sCount[b]),e.sCount[b]=H-S,h.push(e.tShift[b]),e.tShift[b]=u-e.bMarks[b];continue}if(p)break;let D=!1;for(let S=0,I=f.length;S<I;S++)if(f[S](e,b,n,!0)){D=!0;break}if(D){e.lineMax=b,e.blkIndent!==0&&(o.push(e.bMarks[b]),c.push(e.bsCount[b]),h.push(e.tShift[b]),l.push(e.sCount[b]),e.sCount[b]-=e.blkIndent);break}o.push(e.bMarks[b]),c.push(e.bsCount[b]),h.push(e.tShift[b]),l.push(e.sCount[b]),e.sCount[b]=-1}const _=e.blkIndent;e.blkIndent=0;const E=e.push("blockquote_open","blockquote",1);E.markup=">";const x=[t,0];E.map=x,e.md.block.tokenize(e,t,b);const k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=s,e.parentType=m,x[1]=e.line;for(let y=0;y<h.length;y++)e.bMarks[y+t]=o[y],e.tShift[y+t]=h[y],e.sCount[y+t]=l[y],e.bsCount[y+t]=c[y];return e.blkIndent=_,!0}function GA(e,t,n,r){const u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(a++);if(s!==42&&s!==45&&s!==95)return!1;let o=1;for(;a<u;){const l=e.src.charCodeAt(a++);if(l!==s&&!Ve(l))return!1;l===s&&o++}if(o<3)return!1;if(r)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(s)),!0}function qc(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const a=e.src.charCodeAt(r);if(!Ve(a))return-1}return r}function Zc(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let u=n;if(u+1>=r)return-1;let a=e.src.charCodeAt(u++);if(a<48||a>57)return-1;for(;;){if(u>=r)return-1;if(a=e.src.charCodeAt(u++),a>=48&&a<=57){if(u-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return u<r&&(a=e.src.charCodeAt(u),!Ve(a))?-1:u}function XA(e,t){const n=e.level+2;for(let r=t+2,u=e.tokens.length-2;r<u;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function KA(e,t,n,r){let u,a,s,o,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let h=!1;r&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(h=!0);let f,m,p;if((p=Zc(e,c))>=0){if(f=!0,s=e.bMarks[c]+e.tShift[c],m=Number(e.src.slice(s,p-1)),h&&m!==1)return!1}else if((p=qc(e,c))>=0)f=!1;else return!1;if(h&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;const b=e.src.charCodeAt(p-1),_=e.tokens.length;f?(o=e.push("ordered_list_open","ol",1),m!==1&&(o.attrs=[["start",m]])):o=e.push("bullet_list_open","ul",1);const E=[c,0];o.map=E,o.markup=String.fromCharCode(b);let x=!1;const k=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";c<n;){a=p,u=e.eMarks[c];const D=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]);let S=D;for(;a<u;){const K=e.src.charCodeAt(a);if(K===9)S+=4-(S+e.bsCount[c])%4;else if(K===32)S++;else break;a++}const I=a;let M;I>=u?M=1:M=S-D,M>4&&(M=1);const H=D+M;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(b);const U=[c,0];o.map=U,f&&(o.info=e.src.slice(s,p-1));const P=e.tight,B=e.tShift[c],O=e.sCount[c],X=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=H,e.tight=!0,e.tShift[c]=I-e.bMarks[c],e.sCount[c]=S,I>=u&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||x)&&(l=!1),x=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=X,e.tShift[c]=B,e.sCount[c]=O,e.tight=P,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(b),c=e.line,U[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let Y=!1;for(let K=0,ue=k.length;K<ue;K++)if(k[K](e,c,n,!0)){Y=!0;break}if(Y)break;if(f){if(p=Zc(e,c),p<0)break;s=e.bMarks[c]+e.tShift[c]}else if(p=qc(e,c),p<0)break;if(b!==e.src.charCodeAt(p-1))break}return f?o=e.push("ordered_list_close","ol",-1):o=e.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(b),E[1]=c,e.line=c,e.parentType=y,l&&XA(e,_),!0}function QA(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function o(k){const y=e.lineMax;if(k>=y||e.isEmpty(k))return null;let D=!1;if(e.sCount[k]-e.blkIndent>3&&(D=!0),e.sCount[k]<0&&(D=!0),!D){const M=e.md.block.ruler.getRules("reference"),H=e.parentType;e.parentType="reference";let U=!1;for(let P=0,B=M.length;P<B;P++)if(M[P](e,k,y,!0)){U=!0;break}if(e.parentType=H,U)return null}const S=e.bMarks[k]+e.tShift[k],I=e.eMarks[k];return e.src.slice(S,I+1)}let c=e.src.slice(u,a+1);a=c.length;let l=-1;for(u=1;u<a;u++){const k=c.charCodeAt(u);if(k===91)return!1;if(k===93){l=u;break}else if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(k===92&&(u++,u<a&&c.charCodeAt(u)===10)){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(u=l+2;u<a;u++){const k=c.charCodeAt(u);if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(!Ve(k))break}const h=e.md.helpers.parseLinkDestination(c,u,a);if(!h.ok)return!1;const f=e.md.normalizeLink(h.str);if(!e.md.validateLink(f))return!1;u=h.pos;const m=u,p=s,b=u;for(;u<a;u++){const k=c.charCodeAt(u);if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(!Ve(k))break}let _=e.md.helpers.parseLinkTitle(c,u,a);for(;_.can_continue;){const k=o(s);if(k===null)break;c+=k,u=a,a=c.length,s++,_=e.md.helpers.parseLinkTitle(c,u,a,_)}let E;for(u<a&&b!==u&&_.ok?(E=_.str,u=_.pos):(E="",u=m,s=p);u<a;){const k=c.charCodeAt(u);if(!Ve(k))break;u++}if(u<a&&c.charCodeAt(u)!==10&&E)for(E="",u=m,s=p;u<a;){const k=c.charCodeAt(u);if(!Ve(k))break;u++}if(u<a&&c.charCodeAt(u)!==10)return!1;const x=Da(c.slice(1,l));return x?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[x]>"u"&&(e.env.references[x]={title:E,href:f}),e.line=s),!0):!1}const JA=["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"],eS="[a-zA-Z_:][a-zA-Z0-9:._-]*",tS="[^\"'=<>`\\x00-\\x20]+",nS="'[^']*'",rS='"[^"]*"',uS="(?:"+tS+"|"+nS+"|"+rS+")",aS="(?:\\s+"+eS+"(?:\\s*=\\s*"+uS+")?)",dd="<[A-Za-z][A-Za-z0-9\\-]*"+aS+"*\\s*\\/?>",fd="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",sS="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",iS="<[?][\\s\\S]*?[?]>",oS="<![A-Za-z][^>]*>",cS="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",lS=new RegExp("^(?:"+dd+"|"+fd+"|"+sS+"|"+iS+"|"+oS+"|"+cS+")"),dS=new RegExp("^(?:"+dd+"|"+fd+")"),pr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+JA.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(dS.source+"\\s*$"),/^$/,!1]];function fS(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let s=e.src.slice(u,a),o=0;for(;o<pr.length&&!pr[o][0].test(s);o++);if(o===pr.length)return!1;if(r)return pr[o][2];let c=t+1;if(!pr[o][1].test(s)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(u=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],s=e.src.slice(u,a),pr[o][1].test(s)){s.length!==0&&c++;break}}e.line=c;const l=e.push("html_block","",0);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function hS(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(u);if(s!==35||u>=a)return!1;let o=1;for(s=e.src.charCodeAt(++u);s===35&&u<a&&o<=6;)o++,s=e.src.charCodeAt(++u);if(o>6||u<a&&!Ve(s))return!1;if(r)return!0;a=e.skipSpacesBack(a,u);const c=e.skipCharsBack(a,35,u);c>u&&Ve(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;const l=e.push("heading_open","h"+String(o),1);l.markup="########".slice(0,o),l.map=[t,e.line];const h=e.push("inline","",0);h.content=e.src.slice(u,a).trim(),h.map=[t,e.line],h.children=[];const f=e.push("heading_close","h"+String(o),-1);return f.markup="########".slice(0,o),!0}function pS(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=e.parentType;e.parentType="paragraph";let a=0,s,o=t+1;for(;o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]>=e.blkIndent){let p=e.bMarks[o]+e.tShift[o];const b=e.eMarks[o];if(p<b&&(s=e.src.charCodeAt(p),(s===45||s===61)&&(p=e.skipChars(p,s),p=e.skipSpaces(p),p>=b))){a=s===61?1:2;break}}if(e.sCount[o]<0)continue;let m=!1;for(let p=0,b=r.length;p<b;p++)if(r[p](e,o,n,!0)){m=!0;break}if(m)break}if(!a)return!1;const c=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o+1;const l=e.push("heading_open","h"+String(a),1);l.markup=String.fromCharCode(s),l.map=[t,e.line];const h=e.push("inline","",0);h.content=c,h.map=[t,e.line-1],h.children=[];const f=e.push("heading_close","h"+String(a),-1);return f.markup=String.fromCharCode(s),e.parentType=u,!0}function mS(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),u=e.parentType;let a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let l=!1;for(let h=0,f=r.length;h<f;h++)if(r[h](e,a,n,!0)){l=!0;break}if(l)break}const s=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;const o=e.push("paragraph_open","p",1);o.map=[t,e.line];const c=e.push("inline","",0);return c.content=s,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=u,!0}const Bu=[["table",qA,["paragraph","reference"]],["code",ZA],["fence",WA,["paragraph","reference","blockquote","list"]],["blockquote",YA,["paragraph","reference","blockquote","list"]],["hr",GA,["paragraph","reference","blockquote","list"]],["list",KA,["paragraph","reference","blockquote"]],["reference",QA],["html_block",fS,["paragraph","reference","blockquote"]],["heading",hS,["paragraph","reference","blockquote"]],["lheading",pS],["paragraph",mS]];function La(){this.ruler=new Rt;for(let e=0;e<Bu.length;e++)this.ruler.push(Bu[e][0],Bu[e][1],{alt:(Bu[e][2]||[]).slice()})}La.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),u=r.length,a=e.md.options.maxNesting;let s=t,o=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=a){e.line=n;break}const c=e.line;let l=!1;for(let h=0;h<u;h++)if(l=r[h](e,s,n,!1),l){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),s=e.line,s<n&&e.isEmpty(s)&&(o=!0,s++,e.line=s)}};La.prototype.parse=function(e,t,n,r){if(!e)return;const u=new this.State(e,t,n,r);this.tokenize(u,u.line,u.lineMax)};La.prototype.State=bn;function Tu(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Tu.prototype.pushPending=function(){const e=new an("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Tu.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new an(e,t,n);let u=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r};Tu.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;const s=a-e,o=a<n?this.src.charCodeAt(a):32,c=lu(u)||cu(String.fromCharCode(u)),l=lu(o)||cu(String.fromCharCode(o)),h=ou(u),f=ou(o),m=!f&&(!l||h||c),p=!h&&(!c||f||l);return{can_open:m&&(t||!p||c),can_close:p&&(t||!m||l),length:s}};Tu.prototype.Token=an;function gS(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function bS(e,t){let n=e.pos;for(;n<e.posMax&&!gS(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const _S=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function xS(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const u=e.pending.match(_S);if(!u)return!1;const a=u[1],s=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!s)return!1;let o=s.url;if(o.length<=a.length)return!1;o=o.replace(/\*+$/,"");const c=e.md.normalizeLink(o);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);const l=e.push("link_open","a",1);l.attrs=[["href",c]],l.markup="linkify",l.info="auto";const h=e.push("text","",0);h.content=e.md.normalizeLinkText(o);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=o.length-a.length,!0}function CS(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,u=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let a=r-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<u&&Ve(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Ui=[];for(let e=0;e<256;e++)Ui.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ui[e.charCodeAt(0)]=1});function ES(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(u=e.src.charCodeAt(n),!!Ve(u));)n++;return e.pos=n,!0}let a=e.src[n];if(u>=55296&&u<=56319&&n+1<r){const o=e.src.charCodeAt(n+1);o>=56320&&o<=57343&&(a+=e.src[n+1],n++)}const s="\\"+a;if(!t){const o=e.push("text_special","",0);u<256&&Ui[u]!==0?o.content=a:o.content=s,o.markup=s,o.info="escape"}return e.pos=n+1,!0}function yS(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const a=e.posMax;for(;n<a&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(u,n),o=s.length;if(e.backticksScanned&&(e.backticks[o]||0)<=u)return t||(e.pending+=s),e.pos+=o,!0;let c=n,l;for(;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<a&&e.src.charCodeAt(c)===96;)c++;const h=c-l;if(h===o){if(!t){const f=e.push("code_inline","code",0);f.markup=s,f.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[h]=l}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=o,!0}function TS(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const u=e.scanDelims(e.pos,!0);let a=u.length;const s=String.fromCharCode(r);if(a<2)return!1;let o;a%2&&(o=e.push("text","",0),o.content=s,a--);for(let c=0;c<a;c+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function Wc(e,t){let n;const r=[],u=t.length;for(let a=0;a<u;a++){const s=t[a];if(s.marker!==126||s.end===-1)continue;const o=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[o.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&r.push(o.token-1)}for(;r.length;){const a=r.pop();let s=a+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,a!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[a],e.tokens[a]=n)}}function kS(e){const t=e.tokens_meta,n=e.tokens_meta.length;Wc(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Wc(e,t[r].delimiters)}const hd={tokenize:TS,postProcess:kS};function AS(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const u=e.scanDelims(e.pos,r===42);for(let a=0;a<u.length;a++){const s=e.push("text","",0);s.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function Yc(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const u=t[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const a=t[u.end],s=r>0&&t[r-1].end===u.end+1&&t[r-1].marker===u.marker&&t[r-1].token===u.token-1&&t[u.end+1].token===a.token+1,o=String.fromCharCode(u.marker),c=e.tokens[u.token];c.type=s?"strong_open":"em_open",c.tag=s?"strong":"em",c.nesting=1,c.markup=s?o+o:o,c.content="";const l=e.tokens[a.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?o+o:o,l.content="",s&&(e.tokens[t[r-1].token].content="",e.tokens[t[u.end+1].token].content="",r--)}}function SS(e){const t=e.tokens_meta,n=e.tokens_meta.length;Yc(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Yc(e,t[r].delimiters)}const pd={tokenize:AS,postProcess:SS};function IS(e,t){let n,r,u,a,s="",o="",c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const h=e.pos,f=e.posMax,m=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let b=p+1;if(b<f&&e.src.charCodeAt(b)===40){for(l=!1,b++;b<f&&(n=e.src.charCodeAt(b),!(!Ve(n)&&n!==10));b++);if(b>=f)return!1;if(c=b,u=e.md.helpers.parseLinkDestination(e.src,b,e.posMax),u.ok){for(s=e.md.normalizeLink(u.str),e.md.validateLink(s)?b=u.pos:s="",c=b;b<f&&(n=e.src.charCodeAt(b),!(!Ve(n)&&n!==10));b++);if(u=e.md.helpers.parseLinkTitle(e.src,b,e.posMax),b<f&&c!==b&&u.ok)for(o=u.str,b=u.pos;b<f&&(n=e.src.charCodeAt(b),!(!Ve(n)&&n!==10));b++);}(b>=f||e.src.charCodeAt(b)!==41)&&(l=!0),b++}if(l){if(typeof e.env.references>"u")return!1;if(b<f&&e.src.charCodeAt(b)===91?(c=b+1,b=e.md.helpers.parseLinkLabel(e,b),b>=0?r=e.src.slice(c,b++):b=p+1):b=p+1,r||(r=e.src.slice(m,p)),a=e.env.references[Da(r)],!a)return e.pos=h,!1;s=a.href,o=a.title}if(!t){e.pos=m,e.posMax=p;const _=e.push("link_open","a",1),E=[["href",s]];_.attrs=E,o&&E.push(["title",o]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=b,e.posMax=f,!0}function NS(e,t){let n,r,u,a,s,o,c,l,h="";const f=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,b=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(b<0)return!1;if(a=b+1,a<m&&e.src.charCodeAt(a)===40){for(a++;a<m&&(n=e.src.charCodeAt(a),!(!Ve(n)&&n!==10));a++);if(a>=m)return!1;for(l=a,o=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),o.ok&&(h=e.md.normalizeLink(o.str),e.md.validateLink(h)?a=o.pos:h=""),l=a;a<m&&(n=e.src.charCodeAt(a),!(!Ve(n)&&n!==10));a++);if(o=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<m&&l!==a&&o.ok)for(c=o.str,a=o.pos;a<m&&(n=e.src.charCodeAt(a),!(!Ve(n)&&n!==10));a++);else c="";if(a>=m||e.src.charCodeAt(a)!==41)return e.pos=f,!1;a++}else{if(typeof e.env.references>"u")return!1;if(a<m&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?u=e.src.slice(l,a++):a=b+1):a=b+1,u||(u=e.src.slice(p,b)),s=e.env.references[Da(u)],!s)return e.pos=f,!1;h=s.href,c=s.title}if(!t){r=e.src.slice(p,b);const _=[];e.md.inline.parse(r,e.md,e.env,_);const E=e.push("image","img",0),x=[["src",h],["alt",""]];E.attrs=x,E.children=_,E.content=r,c&&x.push(["title",c])}return e.pos=a,e.posMax=m,!0}const vS=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,wS=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function DS(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const a=e.src.slice(r+1,n);if(wS.test(a)){const s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(a);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=a.length+2,!0}if(vS.test(a)){const s=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(a);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=a.length+2,!0}return!1}function LS(e){return/^<a[>\s]/i.test(e)}function PS(e){return/^<\/a\s*>/i.test(e)}function RS(e){const t=e|32;return t>=97&&t<=122}function MS(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const u=e.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!RS(u))return!1;const a=e.src.slice(r).match(lS);if(!a)return!1;if(!t){const s=e.push("html_inline","",0);s.content=a[0],LS(s.content)&&e.linkLevel++,PS(s.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}const OS=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,jS=/^&([a-z][a-z0-9]{1,31});/i;function FS(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const a=e.src.slice(n).match(OS);if(a){if(!t){const s=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),o=e.push("text_special","",0);o.content=Bi(s)?ra(s):ra(65533),o.markup=a[0],o.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(n).match(jS);if(a){const s=sd(a[0]);if(s!==a[0]){if(!t){const o=e.push("text_special","",0);o.content=s,o.markup=a[0],o.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function Gc(e){const t={},n=e.length;if(!n)return;let r=0,u=-2;const a=[];for(let s=0;s<n;s++){const o=e[s];if(a.push(0),(e[r].marker!==o.marker||u!==o.token-1)&&(r=s),u=o.token,o.length=o.length||0,!o.close)continue;t.hasOwnProperty(o.marker)||(t[o.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[o.marker][(o.open?3:0)+o.length%3];let l=r-a[r]-1,h=l;for(;l>c;l-=a[l]+1){const f=e[l];if(f.marker===o.marker&&f.open&&f.end<0){let m=!1;if((f.close||o.open)&&(f.length+o.length)%3===0&&(f.length%3!==0||o.length%3!==0)&&(m=!0),!m){const p=l>0&&!e[l-1].open?a[l-1]+1:0;a[s]=s-l+p,a[l]=p,o.open=!1,f.end=s,f.close=!1,h=-1,u=-2;break}}}h!==-1&&(t[o.marker][(o.open?3:0)+(o.length||0)%3]=h)}}function BS(e){const t=e.tokens_meta,n=e.tokens_meta.length;Gc(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Gc(t[r].delimiters)}function HS(e){let t,n,r=0;const u=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)u[t].nesting<0&&r--,u[t].level=r,u[t].nesting>0&&r++,u[t].type==="text"&&t+1<a&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const ms=[["text",bS],["linkify",xS],["newline",CS],["escape",ES],["backticks",yS],["strikethrough",hd.tokenize],["emphasis",pd.tokenize],["link",IS],["image",NS],["autolink",DS],["html_inline",MS],["entity",FS]],gs=[["balance_pairs",BS],["strikethrough",hd.postProcess],["emphasis",pd.postProcess],["fragments_join",HS]];function ku(){this.ruler=new Rt;for(let e=0;e<ms.length;e++)this.ruler.push(ms[e][0],ms[e][1]);this.ruler2=new Rt;for(let e=0;e<gs.length;e++)this.ruler2.push(gs[e][0],gs[e][1])}ku.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,u=e.md.options.maxNesting,a=e.cache;if(typeof a[t]<"u"){e.pos=a[t];return}let s=!1;if(e.level<u){for(let o=0;o<r;o++)if(e.level++,s=n[o](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,a[t]=e.pos};ku.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,u=e.md.options.maxNesting;for(;e.pos<r;){const a=e.pos;let s=!1;if(e.level<u){for(let o=0;o<n;o++)if(s=t[o](e,!1),s){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};ku.prototype.parse=function(e,t,n,r){const u=new this.State(e,t,n,r);this.tokenize(u);const a=this.ruler2.getRules(""),s=a.length;for(let o=0;o<s;o++)a[o](u)};ku.prototype.State=Tu;function US(e){const t={};e=e||{},t.src_Any=td.source,t.src_Cc=nd.source,t.src_Z=ud.source,t.src_P=ji.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Gs(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Pa(e){return Object.prototype.toString.call(e)}function VS(e){return Pa(e)==="[object String]"}function $S(e){return Pa(e)==="[object Object]"}function zS(e){return Pa(e)==="[object RegExp]"}function Xc(e){return Pa(e)==="[object Function]"}function qS(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const md={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ZS(e){return Object.keys(e||{}).reduce(function(t,n){return t||md.hasOwnProperty(n)},!1)}const WS={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},YS="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",GS="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function XS(e){e.__index__=-1,e.__text_cache__=""}function KS(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Kc(){return function(e,t){t.normalize(e)}}function ua(e){const t=e.re=US(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(YS),n.push(t.src_xn),t.src_tlds=n.join("|");function r(o){return o.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const u=[];e.__compiled__={};function a(o,c){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+c)}Object.keys(e.__schemas__).forEach(function(o){const c=e.__schemas__[o];if(c===null)return;const l={validate:null,link:null};if(e.__compiled__[o]=l,$S(c)){zS(c.validate)?l.validate=KS(c.validate):Xc(c.validate)?l.validate=c.validate:a(o,c),Xc(c.normalize)?l.normalize=c.normalize:c.normalize?a(o,c):l.normalize=Kc();return}if(VS(c)){u.push(o);return}a(o,c)}),u.forEach(function(o){e.__compiled__[e.__schemas__[o]]&&(e.__compiled__[o].validate=e.__compiled__[e.__schemas__[o]].validate,e.__compiled__[o].normalize=e.__compiled__[e.__schemas__[o]].normalize)}),e.__compiled__[""]={validate:null,normalize:Kc()};const s=Object.keys(e.__compiled__).filter(function(o){return o.length>0&&e.__compiled__[o]}).map(qS).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),XS(e)}function QS(e,t){const n=e.__index__,r=e.__last_index__,u=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=u,this.text=u,this.url=u}function Xs(e,t){const n=new QS(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function qt(e,t){if(!(this instanceof qt))return new qt(e,t);t||ZS(e)&&(t=e,e={}),this.__opts__=Gs({},md,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Gs({},WS,e),this.__compiled__={},this.__tlds__=GS,this.__tlds_replaced__=!1,this.re={},ua(this)}qt.prototype.add=function(t,n){return this.__schemas__[t]=n,ua(this),this};qt.prototype.set=function(t){return this.__opts__=Gs(this.__opts__,t),this};qt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,u,a,s,o,c,l,h;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(t))!==null;)if(a=this.testSchemaAt(t,n[2],c.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(h=t.indexOf("@"),h>=0&&(u=t.match(this.re.email_fuzzy))!==null&&(s=u.index+u[1].length,o=u.index+u[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=o))),this.__index__>=0};qt.prototype.pretest=function(t){return this.re.pretest.test(t)};qt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};qt.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Xs(this,r)),r=this.__last_index__);let u=r?t.slice(r):t;for(;this.test(u);)n.push(Xs(this,r)),u=u.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};qt.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,Xs(this,0)):null};qt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,u,a){return r!==a[u-1]}).reverse(),ua(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,ua(this),this)};qt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};qt.prototype.onCompile=function(){};const yr=2147483647,fn=36,Vi=1,du=26,JS=38,eI=700,gd=72,bd=128,_d="-",tI=/^xn--/,nI=/[^\0-\x7F]/,rI=/[\x2E\u3002\uFF0E\uFF61]/g,uI={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},bs=fn-Vi,hn=Math.floor,_s=String.fromCharCode;function Fn(e){throw new RangeError(uI[e])}function aI(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function xd(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(rI,".");const u=e.split("."),a=aI(u,t).join(".");return r+a}function Cd(e){const t=[];let n=0;const r=e.length;for(;n<r;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((u&1023)<<10)+(a&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const sI=e=>String.fromCodePoint(...e),iI=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:fn},Qc=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ed=function(e,t,n){let r=0;for(e=n?hn(e/eI):e>>1,e+=hn(e/t);e>bs*du>>1;r+=fn)e=hn(e/bs);return hn(r+(bs+1)*e/(e+JS))},yd=function(e){const t=[],n=e.length;let r=0,u=bd,a=gd,s=e.lastIndexOf(_d);s<0&&(s=0);for(let o=0;o<s;++o)e.charCodeAt(o)>=128&&Fn("not-basic"),t.push(e.charCodeAt(o));for(let o=s>0?s+1:0;o<n;){const c=r;for(let h=1,f=fn;;f+=fn){o>=n&&Fn("invalid-input");const m=iI(e.charCodeAt(o++));m>=fn&&Fn("invalid-input"),m>hn((yr-r)/h)&&Fn("overflow"),r+=m*h;const p=f<=a?Vi:f>=a+du?du:f-a;if(m<p)break;const b=fn-p;h>hn(yr/b)&&Fn("overflow"),h*=b}const l=t.length+1;a=Ed(r-c,l,c==0),hn(r/l)>yr-u&&Fn("overflow"),u+=hn(r/l),r%=l,t.splice(r++,0,u)}return String.fromCodePoint(...t)},Td=function(e){const t=[];e=Cd(e);const n=e.length;let r=bd,u=0,a=gd;for(const c of e)c<128&&t.push(_s(c));const s=t.length;let o=s;for(s&&t.push(_d);o<n;){let c=yr;for(const h of e)h>=r&&h<c&&(c=h);const l=o+1;c-r>hn((yr-u)/l)&&Fn("overflow"),u+=(c-r)*l,r=c;for(const h of e)if(h<r&&++u>yr&&Fn("overflow"),h===r){let f=u;for(let m=fn;;m+=fn){const p=m<=a?Vi:m>=a+du?du:m-a;if(f<p)break;const b=f-p,_=fn-p;t.push(_s(Qc(p+b%_,0))),f=hn(b/_)}t.push(_s(Qc(f,0))),a=Ed(u,l,o===s),u=0,++o}++u,++r}return t.join("")},oI=function(e){return xd(e,function(t){return tI.test(t)?yd(t.slice(4).toLowerCase()):t})},cI=function(e){return xd(e,function(t){return nI.test(t)?"xn--"+Td(t):t})},kd={version:"2.3.1",ucs2:{decode:Cd,encode:sI},decode:yd,encode:Td,toASCII:cI,toUnicode:oI},lI={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},dI={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},fI={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},hI={default:lI,zero:dI,commonmark:fI},pI=/^(vbscript|javascript|file|data):/,mI=/^data:image\/(gif|png|jpeg|webp);/;function gI(e){const t=e.trim().toLowerCase();return pI.test(t)?mI.test(t):!0}const Ad=["http:","https:","mailto:"];function bI(e){const t=Oi(e,!0);if(t.hostname&&(!t.protocol||Ad.indexOf(t.protocol)>=0))try{t.hostname=kd.toASCII(t.hostname)}catch{}return yu(Mi(t))}function _I(e){const t=Oi(e,!0);if(t.hostname&&(!t.protocol||Ad.indexOf(t.protocol)>=0))try{t.hostname=kd.toUnicode(t.hostname)}catch{}return Sr(Mi(t),Sr.defaultChars+"%")}function Qt(e,t){if(!(this instanceof Qt))return new Qt(e,t);t||Fi(e)||(t=e||{},e="default"),this.inline=new ku,this.block=new La,this.core=new Hi,this.renderer=new jr,this.linkify=new qt,this.validateLink=gI,this.normalizeLink=bI,this.normalizeLinkText=_I,this.utils=CA,this.helpers=wa({},kA),this.options={},this.configure(e),t&&this.set(t)}Qt.prototype.set=function(e){return wa(this.options,e),this};Qt.prototype.configure=function(e){const t=this;if(Fi(e)){const n=e;if(e=hI[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Qt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Qt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Qt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Qt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Qt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Qt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Qt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Sd=()=>new Qt({html:!0,linkify:!0,typographer:!0,breaks:!0});var xI=/[ \u0020\t\n]*$/,CI=["*","_","~","`"],EI=/(\*|_|~|\\|`)/g,On={},xs=0,yn={"unordered-list-item":{open:function(){return"- "},close:function(){return""}},"ordered-list-item":{open:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return"".concat(n,". ")},close:function(){return""}},blockquote:{open:function(){return"> "},close:function(){return""}},"header-one":{open:function(){return"# "},close:function(){return""}},"header-two":{open:function(){return"## "},close:function(){return""}},"header-three":{open:function(){return"### "},close:function(){return""}},"header-four":{open:function(){return"#### "},close:function(){return""}},"header-five":{open:function(){return"##### "},close:function(){return""}},"header-six":{open:function(){return"###### "},close:function(){return""}},"code-block":{open:function(t){return"```"+(t.data.language||"")+`
|
|
105
|
-
`},close:function(){return"\n```"}},BOLD:{open:function(){return"**"},close:function(){return"**"}},ITALIC:{open:function(){return"_"},close:function(){return"_"}},STRIKETHROUGH:{open:function(){return"~~"},close:function(){return"~~"}},CODE:{open:function(){return"`"},close:function(){return"`"}}},Hu={LINK:{open:function(t){return"["},close:function(t){return"](".concat(t.data.url||t.data.href,")")}}},Uu=["unordered-list-item","ordered-list-item"];function yI(e){return e.text.length===0&&e.entityRanges.length===0&&Object.keys(e.data||{}).length===0}function TI(e,t,n,r){var u=[],a="",s=r.styleItems||{},o=r.entityItems||{},c=r.hasOwnProperty("escapeMarkdownCharacters")?r.escapeMarkdownCharacters:!0,l=e.type,h=[];yI(e)&&!r.preserveNewlines&&(l="unstyled"),s[l]||yn[l]?((l==="unordered-list-item"||l==="ordered-list-item")&&(a+=" ".repeat(e.depth*4)),l==="ordered-list-item"?(
|
|
104
|
+
`,a.map=[t,e.line],!0}function WA(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>a)return!1;const s=e.src.charCodeAt(u);if(s!==126&&s!==96)return!1;let o=u;u=e.skipChars(u,s);let c=u-o;if(c<3)return!1;const l=e.src.slice(o,u),h=e.src.slice(u,a);if(s===96&&h.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let f=t,m=!1;for(;f++,!(f>=n||(u=o=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],u<a&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(u)===s&&!(e.sCount[f]-e.blkIndent>=4)&&(u=e.skipChars(u,s),!(u-o<c)&&(u=e.skipSpaces(u),!(u<a)))){m=!0;break}c=e.sCount[t],e.line=f+(m?1:0);const p=e.push("fence","code",0);return p.info=h,p.content=e.getLines(t+1,f,c,!0),p.markup=l,p.map=[t,e.line],!0}function YA(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==62)return!1;if(r)return!0;const o=[],c=[],l=[],h=[],f=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let p=!1,b;for(b=t;b<n;b++){const y=e.sCount[b]<e.blkIndent;if(u=e.bMarks[b]+e.tShift[b],a=e.eMarks[b],u>=a)break;if(e.src.charCodeAt(u++)===62&&!y){let S=e.sCount[b]+1,I,M;e.src.charCodeAt(u)===32?(u++,S++,M=!1,I=!0):e.src.charCodeAt(u)===9?(I=!0,(e.bsCount[b]+S)%4===3?(u++,S++,M=!1):M=!0):I=!1;let H=S;for(o.push(e.bMarks[b]),e.bMarks[b]=u;u<a;){const U=e.src.charCodeAt(u);if(Ve(U))U===9?H+=4-(H+e.bsCount[b]+(M?1:0))%4:H++;else break;u++}p=u>=a,c.push(e.bsCount[b]),e.bsCount[b]=e.sCount[b]+1+(I?1:0),l.push(e.sCount[b]),e.sCount[b]=H-S,h.push(e.tShift[b]),e.tShift[b]=u-e.bMarks[b];continue}if(p)break;let D=!1;for(let S=0,I=f.length;S<I;S++)if(f[S](e,b,n,!0)){D=!0;break}if(D){e.lineMax=b,e.blkIndent!==0&&(o.push(e.bMarks[b]),c.push(e.bsCount[b]),h.push(e.tShift[b]),l.push(e.sCount[b]),e.sCount[b]-=e.blkIndent);break}o.push(e.bMarks[b]),c.push(e.bsCount[b]),h.push(e.tShift[b]),l.push(e.sCount[b]),e.sCount[b]=-1}const _=e.blkIndent;e.blkIndent=0;const E=e.push("blockquote_open","blockquote",1);E.markup=">";const x=[t,0];E.map=x,e.md.block.tokenize(e,t,b);const k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=s,e.parentType=m,x[1]=e.line;for(let y=0;y<h.length;y++)e.bMarks[y+t]=o[y],e.tShift[y+t]=h[y],e.sCount[y+t]=l[y],e.bsCount[y+t]=c[y];return e.blkIndent=_,!0}function GA(e,t,n,r){const u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(a++);if(s!==42&&s!==45&&s!==95)return!1;let o=1;for(;a<u;){const l=e.src.charCodeAt(a++);if(l!==s&&!Ve(l))return!1;l===s&&o++}if(o<3)return!1;if(r)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(s)),!0}function qc(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const a=e.src.charCodeAt(r);if(!Ve(a))return-1}return r}function Zc(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let u=n;if(u+1>=r)return-1;let a=e.src.charCodeAt(u++);if(a<48||a>57)return-1;for(;;){if(u>=r)return-1;if(a=e.src.charCodeAt(u++),a>=48&&a<=57){if(u-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return u<r&&(a=e.src.charCodeAt(u),!Ve(a))?-1:u}function XA(e,t){const n=e.level+2;for(let r=t+2,u=e.tokens.length-2;r<u;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function KA(e,t,n,r){let u,a,s,o,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let h=!1;r&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(h=!0);let f,m,p;if((p=Zc(e,c))>=0){if(f=!0,s=e.bMarks[c]+e.tShift[c],m=Number(e.src.slice(s,p-1)),h&&m!==1)return!1}else if((p=qc(e,c))>=0)f=!1;else return!1;if(h&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;const b=e.src.charCodeAt(p-1),_=e.tokens.length;f?(o=e.push("ordered_list_open","ol",1),m!==1&&(o.attrs=[["start",m]])):o=e.push("bullet_list_open","ul",1);const E=[c,0];o.map=E,o.markup=String.fromCharCode(b);let x=!1;const k=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";c<n;){a=p,u=e.eMarks[c];const D=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]);let S=D;for(;a<u;){const K=e.src.charCodeAt(a);if(K===9)S+=4-(S+e.bsCount[c])%4;else if(K===32)S++;else break;a++}const I=a;let M;I>=u?M=1:M=S-D,M>4&&(M=1);const H=D+M;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(b);const U=[c,0];o.map=U,f&&(o.info=e.src.slice(s,p-1));const P=e.tight,B=e.tShift[c],O=e.sCount[c],X=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=H,e.tight=!0,e.tShift[c]=I-e.bMarks[c],e.sCount[c]=S,I>=u&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||x)&&(l=!1),x=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=X,e.tShift[c]=B,e.sCount[c]=O,e.tight=P,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(b),c=e.line,U[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let Y=!1;for(let K=0,ue=k.length;K<ue;K++)if(k[K](e,c,n,!0)){Y=!0;break}if(Y)break;if(f){if(p=Zc(e,c),p<0)break;s=e.bMarks[c]+e.tShift[c]}else if(p=qc(e,c),p<0)break;if(b!==e.src.charCodeAt(p-1))break}return f?o=e.push("ordered_list_close","ol",-1):o=e.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(b),E[1]=c,e.line=c,e.parentType=y,l&&XA(e,_),!0}function QA(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function o(k){const y=e.lineMax;if(k>=y||e.isEmpty(k))return null;let D=!1;if(e.sCount[k]-e.blkIndent>3&&(D=!0),e.sCount[k]<0&&(D=!0),!D){const M=e.md.block.ruler.getRules("reference"),H=e.parentType;e.parentType="reference";let U=!1;for(let P=0,B=M.length;P<B;P++)if(M[P](e,k,y,!0)){U=!0;break}if(e.parentType=H,U)return null}const S=e.bMarks[k]+e.tShift[k],I=e.eMarks[k];return e.src.slice(S,I+1)}let c=e.src.slice(u,a+1);a=c.length;let l=-1;for(u=1;u<a;u++){const k=c.charCodeAt(u);if(k===91)return!1;if(k===93){l=u;break}else if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(k===92&&(u++,u<a&&c.charCodeAt(u)===10)){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(u=l+2;u<a;u++){const k=c.charCodeAt(u);if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(!Ve(k))break}const h=e.md.helpers.parseLinkDestination(c,u,a);if(!h.ok)return!1;const f=e.md.normalizeLink(h.str);if(!e.md.validateLink(f))return!1;u=h.pos;const m=u,p=s,b=u;for(;u<a;u++){const k=c.charCodeAt(u);if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(!Ve(k))break}let _=e.md.helpers.parseLinkTitle(c,u,a);for(;_.can_continue;){const k=o(s);if(k===null)break;c+=k,u=a,a=c.length,s++,_=e.md.helpers.parseLinkTitle(c,u,a,_)}let E;for(u<a&&b!==u&&_.ok?(E=_.str,u=_.pos):(E="",u=m,s=p);u<a;){const k=c.charCodeAt(u);if(!Ve(k))break;u++}if(u<a&&c.charCodeAt(u)!==10&&E)for(E="",u=m,s=p;u<a;){const k=c.charCodeAt(u);if(!Ve(k))break;u++}if(u<a&&c.charCodeAt(u)!==10)return!1;const x=Da(c.slice(1,l));return x?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[x]>"u"&&(e.env.references[x]={title:E,href:f}),e.line=s),!0):!1}const JA=["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"],eS="[a-zA-Z_:][a-zA-Z0-9:._-]*",tS="[^\"'=<>`\\x00-\\x20]+",nS="'[^']*'",rS='"[^"]*"',uS="(?:"+tS+"|"+nS+"|"+rS+")",aS="(?:\\s+"+eS+"(?:\\s*=\\s*"+uS+")?)",dd="<[A-Za-z][A-Za-z0-9\\-]*"+aS+"*\\s*\\/?>",fd="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",sS="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",iS="<[?][\\s\\S]*?[?]>",oS="<![A-Za-z][^>]*>",cS="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",lS=new RegExp("^(?:"+dd+"|"+fd+"|"+sS+"|"+iS+"|"+oS+"|"+cS+")"),dS=new RegExp("^(?:"+dd+"|"+fd+")"),pr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+JA.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(dS.source+"\\s*$"),/^$/,!1]];function fS(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let s=e.src.slice(u,a),o=0;for(;o<pr.length&&!pr[o][0].test(s);o++);if(o===pr.length)return!1;if(r)return pr[o][2];let c=t+1;if(!pr[o][1].test(s)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(u=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],s=e.src.slice(u,a),pr[o][1].test(s)){s.length!==0&&c++;break}}e.line=c;const l=e.push("html_block","",0);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function hS(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(u);if(s!==35||u>=a)return!1;let o=1;for(s=e.src.charCodeAt(++u);s===35&&u<a&&o<=6;)o++,s=e.src.charCodeAt(++u);if(o>6||u<a&&!Ve(s))return!1;if(r)return!0;a=e.skipSpacesBack(a,u);const c=e.skipCharsBack(a,35,u);c>u&&Ve(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;const l=e.push("heading_open","h"+String(o),1);l.markup="########".slice(0,o),l.map=[t,e.line];const h=e.push("inline","",0);h.content=e.src.slice(u,a).trim(),h.map=[t,e.line],h.children=[];const f=e.push("heading_close","h"+String(o),-1);return f.markup="########".slice(0,o),!0}function pS(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=e.parentType;e.parentType="paragraph";let a=0,s,o=t+1;for(;o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]>=e.blkIndent){let p=e.bMarks[o]+e.tShift[o];const b=e.eMarks[o];if(p<b&&(s=e.src.charCodeAt(p),(s===45||s===61)&&(p=e.skipChars(p,s),p=e.skipSpaces(p),p>=b))){a=s===61?1:2;break}}if(e.sCount[o]<0)continue;let m=!1;for(let p=0,b=r.length;p<b;p++)if(r[p](e,o,n,!0)){m=!0;break}if(m)break}if(!a)return!1;const c=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o+1;const l=e.push("heading_open","h"+String(a),1);l.markup=String.fromCharCode(s),l.map=[t,e.line];const h=e.push("inline","",0);h.content=c,h.map=[t,e.line-1],h.children=[];const f=e.push("heading_close","h"+String(a),-1);return f.markup=String.fromCharCode(s),e.parentType=u,!0}function mS(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),u=e.parentType;let a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let l=!1;for(let h=0,f=r.length;h<f;h++)if(r[h](e,a,n,!0)){l=!0;break}if(l)break}const s=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;const o=e.push("paragraph_open","p",1);o.map=[t,e.line];const c=e.push("inline","",0);return c.content=s,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=u,!0}const Bu=[["table",qA,["paragraph","reference"]],["code",ZA],["fence",WA,["paragraph","reference","blockquote","list"]],["blockquote",YA,["paragraph","reference","blockquote","list"]],["hr",GA,["paragraph","reference","blockquote","list"]],["list",KA,["paragraph","reference","blockquote"]],["reference",QA],["html_block",fS,["paragraph","reference","blockquote"]],["heading",hS,["paragraph","reference","blockquote"]],["lheading",pS],["paragraph",mS]];function La(){this.ruler=new Rt;for(let e=0;e<Bu.length;e++)this.ruler.push(Bu[e][0],Bu[e][1],{alt:(Bu[e][2]||[]).slice()})}La.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),u=r.length,a=e.md.options.maxNesting;let s=t,o=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=a){e.line=n;break}const c=e.line;let l=!1;for(let h=0;h<u;h++)if(l=r[h](e,s,n,!1),l){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),s=e.line,s<n&&e.isEmpty(s)&&(o=!0,s++,e.line=s)}};La.prototype.parse=function(e,t,n,r){if(!e)return;const u=new this.State(e,t,n,r);this.tokenize(u,u.line,u.lineMax)};La.prototype.State=bn;function Tu(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Tu.prototype.pushPending=function(){const e=new an("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Tu.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new an(e,t,n);let u=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r};Tu.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;const s=a-e,o=a<n?this.src.charCodeAt(a):32,c=lu(u)||cu(String.fromCharCode(u)),l=lu(o)||cu(String.fromCharCode(o)),h=ou(u),f=ou(o),m=!f&&(!l||h||c),p=!h&&(!c||f||l);return{can_open:m&&(t||!p||c),can_close:p&&(t||!m||l),length:s}};Tu.prototype.Token=an;function gS(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function bS(e,t){let n=e.pos;for(;n<e.posMax&&!gS(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const _S=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function xS(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const u=e.pending.match(_S);if(!u)return!1;const a=u[1],s=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!s)return!1;let o=s.url;if(o.length<=a.length)return!1;o=o.replace(/\*+$/,"");const c=e.md.normalizeLink(o);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);const l=e.push("link_open","a",1);l.attrs=[["href",c]],l.markup="linkify",l.info="auto";const h=e.push("text","",0);h.content=e.md.normalizeLinkText(o);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=o.length-a.length,!0}function CS(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,u=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let a=r-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<u&&Ve(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Ui=[];for(let e=0;e<256;e++)Ui.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ui[e.charCodeAt(0)]=1});function ES(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(u=e.src.charCodeAt(n),!!Ve(u));)n++;return e.pos=n,!0}let a=e.src[n];if(u>=55296&&u<=56319&&n+1<r){const o=e.src.charCodeAt(n+1);o>=56320&&o<=57343&&(a+=e.src[n+1],n++)}const s="\\"+a;if(!t){const o=e.push("text_special","",0);u<256&&Ui[u]!==0?o.content=a:o.content=s,o.markup=s,o.info="escape"}return e.pos=n+1,!0}function yS(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const a=e.posMax;for(;n<a&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(u,n),o=s.length;if(e.backticksScanned&&(e.backticks[o]||0)<=u)return t||(e.pending+=s),e.pos+=o,!0;let c=n,l;for(;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<a&&e.src.charCodeAt(c)===96;)c++;const h=c-l;if(h===o){if(!t){const f=e.push("code_inline","code",0);f.markup=s,f.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[h]=l}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=o,!0}function TS(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const u=e.scanDelims(e.pos,!0);let a=u.length;const s=String.fromCharCode(r);if(a<2)return!1;let o;a%2&&(o=e.push("text","",0),o.content=s,a--);for(let c=0;c<a;c+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function Wc(e,t){let n;const r=[],u=t.length;for(let a=0;a<u;a++){const s=t[a];if(s.marker!==126||s.end===-1)continue;const o=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[o.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&r.push(o.token-1)}for(;r.length;){const a=r.pop();let s=a+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,a!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[a],e.tokens[a]=n)}}function kS(e){const t=e.tokens_meta,n=e.tokens_meta.length;Wc(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Wc(e,t[r].delimiters)}const hd={tokenize:TS,postProcess:kS};function AS(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const u=e.scanDelims(e.pos,r===42);for(let a=0;a<u.length;a++){const s=e.push("text","",0);s.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function Yc(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const u=t[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const a=t[u.end],s=r>0&&t[r-1].end===u.end+1&&t[r-1].marker===u.marker&&t[r-1].token===u.token-1&&t[u.end+1].token===a.token+1,o=String.fromCharCode(u.marker),c=e.tokens[u.token];c.type=s?"strong_open":"em_open",c.tag=s?"strong":"em",c.nesting=1,c.markup=s?o+o:o,c.content="";const l=e.tokens[a.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?o+o:o,l.content="",s&&(e.tokens[t[r-1].token].content="",e.tokens[t[u.end+1].token].content="",r--)}}function SS(e){const t=e.tokens_meta,n=e.tokens_meta.length;Yc(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Yc(e,t[r].delimiters)}const pd={tokenize:AS,postProcess:SS};function IS(e,t){let n,r,u,a,s="",o="",c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const h=e.pos,f=e.posMax,m=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let b=p+1;if(b<f&&e.src.charCodeAt(b)===40){for(l=!1,b++;b<f&&(n=e.src.charCodeAt(b),!(!Ve(n)&&n!==10));b++);if(b>=f)return!1;if(c=b,u=e.md.helpers.parseLinkDestination(e.src,b,e.posMax),u.ok){for(s=e.md.normalizeLink(u.str),e.md.validateLink(s)?b=u.pos:s="",c=b;b<f&&(n=e.src.charCodeAt(b),!(!Ve(n)&&n!==10));b++);if(u=e.md.helpers.parseLinkTitle(e.src,b,e.posMax),b<f&&c!==b&&u.ok)for(o=u.str,b=u.pos;b<f&&(n=e.src.charCodeAt(b),!(!Ve(n)&&n!==10));b++);}(b>=f||e.src.charCodeAt(b)!==41)&&(l=!0),b++}if(l){if(typeof e.env.references>"u")return!1;if(b<f&&e.src.charCodeAt(b)===91?(c=b+1,b=e.md.helpers.parseLinkLabel(e,b),b>=0?r=e.src.slice(c,b++):b=p+1):b=p+1,r||(r=e.src.slice(m,p)),a=e.env.references[Da(r)],!a)return e.pos=h,!1;s=a.href,o=a.title}if(!t){e.pos=m,e.posMax=p;const _=e.push("link_open","a",1),E=[["href",s]];_.attrs=E,o&&E.push(["title",o]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=b,e.posMax=f,!0}function NS(e,t){let n,r,u,a,s,o,c,l,h="";const f=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,b=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(b<0)return!1;if(a=b+1,a<m&&e.src.charCodeAt(a)===40){for(a++;a<m&&(n=e.src.charCodeAt(a),!(!Ve(n)&&n!==10));a++);if(a>=m)return!1;for(l=a,o=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),o.ok&&(h=e.md.normalizeLink(o.str),e.md.validateLink(h)?a=o.pos:h=""),l=a;a<m&&(n=e.src.charCodeAt(a),!(!Ve(n)&&n!==10));a++);if(o=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<m&&l!==a&&o.ok)for(c=o.str,a=o.pos;a<m&&(n=e.src.charCodeAt(a),!(!Ve(n)&&n!==10));a++);else c="";if(a>=m||e.src.charCodeAt(a)!==41)return e.pos=f,!1;a++}else{if(typeof e.env.references>"u")return!1;if(a<m&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?u=e.src.slice(l,a++):a=b+1):a=b+1,u||(u=e.src.slice(p,b)),s=e.env.references[Da(u)],!s)return e.pos=f,!1;h=s.href,c=s.title}if(!t){r=e.src.slice(p,b);const _=[];e.md.inline.parse(r,e.md,e.env,_);const E=e.push("image","img",0),x=[["src",h],["alt",""]];E.attrs=x,E.children=_,E.content=r,c&&x.push(["title",c])}return e.pos=a,e.posMax=m,!0}const vS=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,wS=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function DS(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const a=e.src.slice(r+1,n);if(wS.test(a)){const s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(a);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=a.length+2,!0}if(vS.test(a)){const s=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(a);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=a.length+2,!0}return!1}function LS(e){return/^<a[>\s]/i.test(e)}function PS(e){return/^<\/a\s*>/i.test(e)}function RS(e){const t=e|32;return t>=97&&t<=122}function MS(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const u=e.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!RS(u))return!1;const a=e.src.slice(r).match(lS);if(!a)return!1;if(!t){const s=e.push("html_inline","",0);s.content=a[0],LS(s.content)&&e.linkLevel++,PS(s.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}const OS=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,jS=/^&([a-z][a-z0-9]{1,31});/i;function FS(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const a=e.src.slice(n).match(OS);if(a){if(!t){const s=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),o=e.push("text_special","",0);o.content=Bi(s)?ra(s):ra(65533),o.markup=a[0],o.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(n).match(jS);if(a){const s=sd(a[0]);if(s!==a[0]){if(!t){const o=e.push("text_special","",0);o.content=s,o.markup=a[0],o.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function Gc(e){const t={},n=e.length;if(!n)return;let r=0,u=-2;const a=[];for(let s=0;s<n;s++){const o=e[s];if(a.push(0),(e[r].marker!==o.marker||u!==o.token-1)&&(r=s),u=o.token,o.length=o.length||0,!o.close)continue;t.hasOwnProperty(o.marker)||(t[o.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[o.marker][(o.open?3:0)+o.length%3];let l=r-a[r]-1,h=l;for(;l>c;l-=a[l]+1){const f=e[l];if(f.marker===o.marker&&f.open&&f.end<0){let m=!1;if((f.close||o.open)&&(f.length+o.length)%3===0&&(f.length%3!==0||o.length%3!==0)&&(m=!0),!m){const p=l>0&&!e[l-1].open?a[l-1]+1:0;a[s]=s-l+p,a[l]=p,o.open=!1,f.end=s,f.close=!1,h=-1,u=-2;break}}}h!==-1&&(t[o.marker][(o.open?3:0)+(o.length||0)%3]=h)}}function BS(e){const t=e.tokens_meta,n=e.tokens_meta.length;Gc(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Gc(t[r].delimiters)}function HS(e){let t,n,r=0;const u=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)u[t].nesting<0&&r--,u[t].level=r,u[t].nesting>0&&r++,u[t].type==="text"&&t+1<a&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const ms=[["text",bS],["linkify",xS],["newline",CS],["escape",ES],["backticks",yS],["strikethrough",hd.tokenize],["emphasis",pd.tokenize],["link",IS],["image",NS],["autolink",DS],["html_inline",MS],["entity",FS]],gs=[["balance_pairs",BS],["strikethrough",hd.postProcess],["emphasis",pd.postProcess],["fragments_join",HS]];function ku(){this.ruler=new Rt;for(let e=0;e<ms.length;e++)this.ruler.push(ms[e][0],ms[e][1]);this.ruler2=new Rt;for(let e=0;e<gs.length;e++)this.ruler2.push(gs[e][0],gs[e][1])}ku.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,u=e.md.options.maxNesting,a=e.cache;if(typeof a[t]<"u"){e.pos=a[t];return}let s=!1;if(e.level<u){for(let o=0;o<r;o++)if(e.level++,s=n[o](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,a[t]=e.pos};ku.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,u=e.md.options.maxNesting;for(;e.pos<r;){const a=e.pos;let s=!1;if(e.level<u){for(let o=0;o<n;o++)if(s=t[o](e,!1),s){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};ku.prototype.parse=function(e,t,n,r){const u=new this.State(e,t,n,r);this.tokenize(u);const a=this.ruler2.getRules(""),s=a.length;for(let o=0;o<s;o++)a[o](u)};ku.prototype.State=Tu;function US(e){const t={};e=e||{},t.src_Any=td.source,t.src_Cc=nd.source,t.src_Z=ud.source,t.src_P=ji.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Gs(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Pa(e){return Object.prototype.toString.call(e)}function VS(e){return Pa(e)==="[object String]"}function $S(e){return Pa(e)==="[object Object]"}function zS(e){return Pa(e)==="[object RegExp]"}function Xc(e){return Pa(e)==="[object Function]"}function qS(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const md={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ZS(e){return Object.keys(e||{}).reduce(function(t,n){return t||md.hasOwnProperty(n)},!1)}const WS={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},YS="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",GS="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function XS(e){e.__index__=-1,e.__text_cache__=""}function KS(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Kc(){return function(e,t){t.normalize(e)}}function ua(e){const t=e.re=US(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(YS),n.push(t.src_xn),t.src_tlds=n.join("|");function r(o){return o.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const u=[];e.__compiled__={};function a(o,c){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+c)}Object.keys(e.__schemas__).forEach(function(o){const c=e.__schemas__[o];if(c===null)return;const l={validate:null,link:null};if(e.__compiled__[o]=l,$S(c)){zS(c.validate)?l.validate=KS(c.validate):Xc(c.validate)?l.validate=c.validate:a(o,c),Xc(c.normalize)?l.normalize=c.normalize:c.normalize?a(o,c):l.normalize=Kc();return}if(VS(c)){u.push(o);return}a(o,c)}),u.forEach(function(o){e.__compiled__[e.__schemas__[o]]&&(e.__compiled__[o].validate=e.__compiled__[e.__schemas__[o]].validate,e.__compiled__[o].normalize=e.__compiled__[e.__schemas__[o]].normalize)}),e.__compiled__[""]={validate:null,normalize:Kc()};const s=Object.keys(e.__compiled__).filter(function(o){return o.length>0&&e.__compiled__[o]}).map(qS).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),XS(e)}function QS(e,t){const n=e.__index__,r=e.__last_index__,u=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=u,this.text=u,this.url=u}function Xs(e,t){const n=new QS(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function qt(e,t){if(!(this instanceof qt))return new qt(e,t);t||ZS(e)&&(t=e,e={}),this.__opts__=Gs({},md,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Gs({},WS,e),this.__compiled__={},this.__tlds__=GS,this.__tlds_replaced__=!1,this.re={},ua(this)}qt.prototype.add=function(t,n){return this.__schemas__[t]=n,ua(this),this};qt.prototype.set=function(t){return this.__opts__=Gs(this.__opts__,t),this};qt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,u,a,s,o,c,l,h;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(t))!==null;)if(a=this.testSchemaAt(t,n[2],c.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(h=t.indexOf("@"),h>=0&&(u=t.match(this.re.email_fuzzy))!==null&&(s=u.index+u[1].length,o=u.index+u[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=o))),this.__index__>=0};qt.prototype.pretest=function(t){return this.re.pretest.test(t)};qt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};qt.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Xs(this,r)),r=this.__last_index__);let u=r?t.slice(r):t;for(;this.test(u);)n.push(Xs(this,r)),u=u.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};qt.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,Xs(this,0)):null};qt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,u,a){return r!==a[u-1]}).reverse(),ua(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,ua(this),this)};qt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};qt.prototype.onCompile=function(){};const yr=2147483647,fn=36,Vi=1,du=26,JS=38,eI=700,gd=72,bd=128,_d="-",tI=/^xn--/,nI=/[^\0-\x7F]/,rI=/[\x2E\u3002\uFF0E\uFF61]/g,uI={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},bs=fn-Vi,hn=Math.floor,_s=String.fromCharCode;function Fn(e){throw new RangeError(uI[e])}function aI(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function xd(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(rI,".");const u=e.split("."),a=aI(u,t).join(".");return r+a}function Cd(e){const t=[];let n=0;const r=e.length;for(;n<r;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((u&1023)<<10)+(a&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const sI=e=>String.fromCodePoint(...e),iI=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:fn},Qc=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ed=function(e,t,n){let r=0;for(e=n?hn(e/eI):e>>1,e+=hn(e/t);e>bs*du>>1;r+=fn)e=hn(e/bs);return hn(r+(bs+1)*e/(e+JS))},yd=function(e){const t=[],n=e.length;let r=0,u=bd,a=gd,s=e.lastIndexOf(_d);s<0&&(s=0);for(let o=0;o<s;++o)e.charCodeAt(o)>=128&&Fn("not-basic"),t.push(e.charCodeAt(o));for(let o=s>0?s+1:0;o<n;){const c=r;for(let h=1,f=fn;;f+=fn){o>=n&&Fn("invalid-input");const m=iI(e.charCodeAt(o++));m>=fn&&Fn("invalid-input"),m>hn((yr-r)/h)&&Fn("overflow"),r+=m*h;const p=f<=a?Vi:f>=a+du?du:f-a;if(m<p)break;const b=fn-p;h>hn(yr/b)&&Fn("overflow"),h*=b}const l=t.length+1;a=Ed(r-c,l,c==0),hn(r/l)>yr-u&&Fn("overflow"),u+=hn(r/l),r%=l,t.splice(r++,0,u)}return String.fromCodePoint(...t)},Td=function(e){const t=[];e=Cd(e);const n=e.length;let r=bd,u=0,a=gd;for(const c of e)c<128&&t.push(_s(c));const s=t.length;let o=s;for(s&&t.push(_d);o<n;){let c=yr;for(const h of e)h>=r&&h<c&&(c=h);const l=o+1;c-r>hn((yr-u)/l)&&Fn("overflow"),u+=(c-r)*l,r=c;for(const h of e)if(h<r&&++u>yr&&Fn("overflow"),h===r){let f=u;for(let m=fn;;m+=fn){const p=m<=a?Vi:m>=a+du?du:m-a;if(f<p)break;const b=f-p,_=fn-p;t.push(_s(Qc(p+b%_,0))),f=hn(b/_)}t.push(_s(Qc(f,0))),a=Ed(u,l,o===s),u=0,++o}++u,++r}return t.join("")},oI=function(e){return xd(e,function(t){return tI.test(t)?yd(t.slice(4).toLowerCase()):t})},cI=function(e){return xd(e,function(t){return nI.test(t)?"xn--"+Td(t):t})},kd={version:"2.3.1",ucs2:{decode:Cd,encode:sI},decode:yd,encode:Td,toASCII:cI,toUnicode:oI},lI={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},dI={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},fI={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},hI={default:lI,zero:dI,commonmark:fI},pI=/^(vbscript|javascript|file|data):/,mI=/^data:image\/(gif|png|jpeg|webp);/;function gI(e){const t=e.trim().toLowerCase();return pI.test(t)?mI.test(t):!0}const Ad=["http:","https:","mailto:"];function bI(e){const t=Oi(e,!0);if(t.hostname&&(!t.protocol||Ad.indexOf(t.protocol)>=0))try{t.hostname=kd.toASCII(t.hostname)}catch{}return yu(Mi(t))}function _I(e){const t=Oi(e,!0);if(t.hostname&&(!t.protocol||Ad.indexOf(t.protocol)>=0))try{t.hostname=kd.toUnicode(t.hostname)}catch{}return Sr(Mi(t),Sr.defaultChars+"%")}function Qt(e,t){if(!(this instanceof Qt))return new Qt(e,t);t||Fi(e)||(t=e||{},e="default"),this.inline=new ku,this.block=new La,this.core=new Hi,this.renderer=new jr,this.linkify=new qt,this.validateLink=gI,this.normalizeLink=bI,this.normalizeLinkText=_I,this.utils=CA,this.helpers=wa({},kA),this.options={},this.configure(e),t&&this.set(t)}Qt.prototype.set=function(e){return wa(this.options,e),this};Qt.prototype.configure=function(e){const t=this;if(Fi(e)){const n=e;if(e=hI[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Qt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Qt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Qt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Qt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Qt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Qt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Qt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Sd=()=>new Qt({html:!0,linkify:!0,typographer:!0,breaks:!0});var xI=/[ \u0020\t\n]*$/,CI=["*","_","~","`"],EI=/(\*|_|~|\\|`)/g,jn={},xs=0,yn={"unordered-list-item":{open:function(){return"- "},close:function(){return""}},"ordered-list-item":{open:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return"".concat(n,". ")},close:function(){return""}},blockquote:{open:function(){return"> "},close:function(){return""}},"header-one":{open:function(){return"# "},close:function(){return""}},"header-two":{open:function(){return"## "},close:function(){return""}},"header-three":{open:function(){return"### "},close:function(){return""}},"header-four":{open:function(){return"#### "},close:function(){return""}},"header-five":{open:function(){return"##### "},close:function(){return""}},"header-six":{open:function(){return"###### "},close:function(){return""}},"code-block":{open:function(t){return"```"+(t.data.language||"")+`
|
|
105
|
+
`},close:function(){return"\n```"}},BOLD:{open:function(){return"**"},close:function(){return"**"}},ITALIC:{open:function(){return"_"},close:function(){return"_"}},STRIKETHROUGH:{open:function(){return"~~"},close:function(){return"~~"}},CODE:{open:function(){return"`"},close:function(){return"`"}}},Hu={LINK:{open:function(t){return"["},close:function(t){return"](".concat(t.data.url||t.data.href,")")}}},Uu=["unordered-list-item","ordered-list-item"];function yI(e){return e.text.length===0&&e.entityRanges.length===0&&Object.keys(e.data||{}).length===0}function TI(e,t,n,r){var u=[],a="",s=r.styleItems||{},o=r.entityItems||{},c=r.hasOwnProperty("escapeMarkdownCharacters")?r.escapeMarkdownCharacters:!0,l=e.type,h=[];yI(e)&&!r.preserveNewlines&&(l="unstyled"),s[l]||yn[l]?((l==="unordered-list-item"||l==="ordered-list-item")&&(a+=" ".repeat(e.depth*4)),l==="ordered-list-item"?(jn[e.depth]=jn[e.depth]||1,a+=(s[l]||yn[l]).open(e,jn[e.depth]),jn[e.depth]++,xs>e.depth&&(jn[xs]=1),xs=e.depth):(jn={},a+=(s[l]||yn[l]).open(e))):jn={};var f=[];function m(E){if(f.push(E),E.style){if(s[E.style]||yn[E.style]){var x=(s[E.style]||yn[E.style]).open();u.push({type:"style",style:E,value:x})}}else{var k=n.entityMap[E.key];if(o[k.type]||Hu[k.type]){var y=(o[k.type]||Hu[k.type]).open(k,e);u.push({type:"entity",value:y})}}}function p(E){var x=f.pop();if(E!==x)throw new Error("Invariant violation: Cannot close a tag before all inner tags have been closed");if(E.style){if(s[E.style]||yn[E.style]){var k=xI.exec(a);a=a.slice(0,a.length-k[0].length),a+=(s[E.style]||yn[E.style]).close(),a+=k[0]}}else{var y=n.entityMap[E.key];(o[y.type]||Hu[y.type])&&(a+=(o[y.type]||Hu[y.type]).close(y,e))}}var b=function(x,k){return k.offset+k.length-(x.offset+x.length)},_=function(x){return x.concat().reverse()};return Array.from(e.text).some(function(E,x){_(f).forEach(function(P){if(P.offset+P.length===x){var B=f.slice(f.indexOf(P)+1);_(B).forEach(p),p(P),B.sort(b).forEach(m)}});var k=e.inlineStyleRanges.filter(function(P){return P.offset===x}),y=e.entityRanges.filter(function(P){return P.offset===x});if(k.concat(y).sort(b).forEach(m),E!==" "&&u.length&&(a+=u.map(function(P){return P.value}).join(""),u=[]),e.type!=="code-block"&&c){var D=f.find(function(P){return P.style==="CODE"});if(!D){if(x===0&&E==="#"&&e.text[1]&&e.text[1]===" "?E=E.replace("#","\\#"):x===0&&E===">"&&(E=E.replace(">","\\>")),CI.includes(E)){var S=h.find(function(P){return P.character===E});if(!S&&e.text[x-1]===" "&&e.text[x+1]!==" ")h.push({character:E,index:x,markdownStringIndexStart:a.length+E.length-1,markdownStringIndexEnd:a.length+E.length});else if(S&&e.text[x-1]===E&&x===S.index+1)S.markdownStringIndexEnd+=1;else if(S){var I=S.markdownStringIndexEnd-S.markdownStringIndexStart,M=!1,H=!1;if(I===1&&(e.text[x+1]===" "||!e.text[x+1])&&(H=!0,M=!0),I===2&&e.text[x+1]===E&&(M=!0),I===2&&e.text[x-1]===E&&(e.text[x+1]===" "||!e.text[x+1])&&(H=!0,M=!0),H){h.splice(h.indexOf(S),1);var U=a.slice(S.markdownStringIndexStart,S.markdownStringIndexEnd);U=U.replace(EI,"\\$1"),a=a.slice(0,S.markdownStringIndexStart)+U+a.slice(S.markdownStringIndexEnd)}M&&(E="\\".concat(E))}}}}E===`
|
|
106
106
|
`&&l==="blockquote"?a+=`
|
|
107
107
|
> `:a+=E}),_(f).forEach(p),(s[l]||yn[l])&&(a+=(s[l]||yn[l]).close(e)),Uu.indexOf(l)!==-1&&n.blocks[t+1]&&Uu.indexOf(n.blocks[t+1].type)!==-1?a+=`
|
|
108
108
|
`:n.blocks[t+1]&&(n.blocks[t].text?Uu.indexOf(l)!==-1&&Uu.indexOf(n.blocks[t+1].type)===-1?a+=`
|
|
@@ -111,5 +111,5 @@ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var G=ze(de,xe,J,ne,Q+".
|
|
|
111
111
|
`:a+=`
|
|
112
112
|
|
|
113
113
|
`:r.preserveNewlines&&(a+=`
|
|
114
|
-
`)),a}function kI(e,t){t=t||{};var n="";return e.blocks.forEach(function(r,u){n+=TI(r,u,e,t)}),On={},n}var Id=[];for(var Jc=0;Jc<256;Jc++)Id.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Id[e.charCodeAt(0)]=1});function Ra(e,t){return e=e.source,t=t||"",function n(r,u){return r?(u=u.source||u,e=e.replace(r,u),n):new RegExp(e,t)}}var AI=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,SI=/[^"'=<>`\x00-\x20]+/,II=/'[^']*'/,NI=/"[^"]*"/,vI=Ra(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",SI)("single_quoted",II)("double_quoted",NI)(),wI=Ra(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",AI)("attr_value",vI)(),DI=Ra(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",wI)(),LI=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,PI=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,RI=/<[?].*?[?]>/,MI=/<![A-Z]+\s+[^>]*>/,OI=/<!\[CDATA\[[\s\S]*?\]\]>/;Ra(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",DI)("close_tag",LI)("comment",PI)("processing",RI)("declaration",MI)("cdata",OI)();const Nd=e=>{try{const t=JSON.parse(e);return kI(t,{styleItems:{UNDERLINE:{open:()=>"<u>",close:()=>"</u>"}}})}catch{return e}},$i=({text:e})=>{const t=Sd(),n=Nd(e),r=t.render(n);return i.jsx("div",{className:"markdown-text",dangerouslySetInnerHTML:{__html:r}})},el=(e,t,n)=>e+n*t/100,jI=e=>{if(!e)return!0;try{const t=JSON.parse(e);if(t.blocks&&Array.isArray(t.blocks))return!t.blocks.some(n=>n.text?n.text.replace(/[\s\u00A0\u2000-\u200F\u2028-\u202F\u205F-\u206F\u3000\u3164]/g,"").length>0:!1)}catch{return e.replace(/[\s\u00A0\u2000-\u200F\u2028-\u202F\u205F-\u206F\u3000\u3164]/g,"").length===0}return!1},vd=({config:e,totalAmount:t,selected:n,onSelect:r,onBack:u,formatter:a})=>{if(!e)return null;const{priorityReplacement:s,standardReplacement:o}=e,c=!!(s!=null&&s.enabled),l=!!(o!=null&&o.enabled),f=[{key:"PRIORITY",title:(s==null?void 0:s.name)||"Priority Replacement",desc:(s==null?void 0:s.description)||"",price:el((s==null?void 0:s.fixedFee)||0,(s==null?void 0:s.feePercentage)||0,t),isPriority:!0,visible:c&&(!l||l)},{key:"STANDARD",title:(o==null?void 0:o.name)||"Standard Replacement",desc:(o==null?void 0:o.description)||"",price:el((o==null?void 0:o.fixedFee)||0,(o==null?void 0:o.feePercentage)||0,t),isPriority:!1,visible:c&&l?!0:l},{key:"NONE",title:"No Replacements",desc:i.jsxs(i.Fragment,{children:[i.jsx("p",{children:"• No guaranteed refunds or replacements."}),i.jsx("p",{children:"• No priority support."}),i.jsx("p",{children:"• No dedicated buyer resolution team."})]}),price:0,isPriority:!1,visible:c&&!l}].filter(m=>m.visible);return i.jsxs("div",{className:Yt.container,children:[i.jsxs("div",{className:Yt.header,children:[i.jsx("button",{type:"button",className:Yt.backButton,onClick:u,"aria-label":"Back to payment methods",children:"←"}),i.jsx("h4",{className:Yt.title,children:"Protect Your Checkout"})]}),i.jsx("div",{className:Yt.cards,children:f.map(m=>i.jsxs("div",{className:g.clx(Yt.card,{[Yt.selected]:n===m.key,[Yt.prioritySelected]:n==="PRIORITY"&&m.isPriority}),onClick:()=>r(m.key),role:"button",tabIndex:0,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&r(m.key)},children:[i.jsx("div",{className:Yt.title,children:m.title}),i.jsx("div",{className:Yt.price,children:a.format(m.price)}),typeof m.desc=="string"?!jI(m.desc)&&i.jsx("div",{className:Yt.description,children:i.jsx($i,{text:m.desc})}):i.jsx("div",{className:Yt.description,children:m.desc})]},m.key))})]})},wd=({getPossibleGateways:e,setGateway:t,getDiscordSettings:n,cart:r,products:u,submitCart:a,reset:s,setCustomFieldsToCart:o,totalAndDiscount:c,setDiscordSocialConnectId:l,setPaymentMethod:h,isAntistock:f})=>{var pe,Qe;const m=L.useMemo(()=>n(),[]),[p,b]=L.useState([]),{balance:_,setBalance:E}=g.useCustomerDashboardStore(),{token:x}=g.useStorefrontStore(),{general:k}=g.useGeneralStore(),{executeRecaptcha:y}=pu(),{discordInfo:D}=g.useDiscordStore(),{customerEmail:S,setCustomerEmail:I,setUsePriorityReplacement:M,setReplacementConfig:H}=g.useCartStore(),U=D!=null&&D.authorized?D.id:void 0,P=g.useNavigate(),B=L.useMemo(()=>e(),[r.parts]),[O,X]=L.useState(null),[Y,K]=L.useState(!1),[ue,ae]=L.useState(null),se=!!((pe=O==null?void 0:O.priorityReplacement)!=null&&pe.enabled),_e=Y&&se,[C,V]=L.useState(!1),{setIsOpen:te}=g.useModalStore(),{notifications:v,setNotifications:J}=g.useNotificationStore();L.useEffect(()=>{const Ne=eo(r.parts,u).map(ee=>ee.type===jn.Checkbox?{...ee,value:String(ee.defaultValue)}:ee);b([...Ne])},[]),L.useEffect(()=>{const Ee=eo(r.parts,u);b(Ne=>{const ee=new Map(Ne.map(ge=>[ge.name,ge]));return Ee.map(ge=>{const mt=ee.get(ge.name);return mt&&mt.value?{...ge,value:mt.value}:ge.type===jn.Checkbox?{...ge,value:String(ge.defaultValue)}:ge})})},[r.parts,u]),L.useEffect(()=>{x&&(async()=>{const Ne=await oa();E(Ne)})()},[x]);function ne(Ee){return Ee&&/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(Ee)}const Q=()=>{const Ee=[];return p.forEach(Ne=>{var ee;Ne.required&&!((ee=Ne.value)!=null&&ee.toString().trim())&&Ee.push({message:`Field "${Ne.name}" is required.`,status:"error",id:g.v4()})}),Ee.length>0?(J([...v,...Ee]),!1):!0},de=async Ee=>{var mt,gt,Zt,At;if(Ee.stopPropagation(),r.gateway==="Balance"&&!x){te(!0),V(!0);return}if(!Q())return;const Ne=!!(O&&((mt=O.priorityReplacement)!=null&&mt.enabled));if(Ne&&!_e){K(!0),ue===null&&((gt=O==null?void 0:O.priorityReplacement)!=null&>.enabled)&&(ae("PRIORITY"),M(!0));return}Ne||(Zt=O==null?void 0:O.standardReplacement)!=null&&Zt.enabled&&!((At=O==null?void 0:O.priorityReplacement)!=null&&At.enabled)&&(ue===null&&ae("STANDARD"),M(!1));const ee=Object.fromEntries(p.map($e=>[$e.name,$e.value||""]));o({...ee}),U&&m.isEnabled&&l(U);const ge=await y();if(ge){const $e=await a(ge),j=JSON.parse(localStorage.getItem("orders")||"{}");if(Object.keys(j).length>10){const W=Date.now()-864e5;Object.keys(j).forEach(fe=>{j[fe].createdAt<=W&&delete j[fe]})}"order"in $e?j[$e.order.id]={createdAt:Date.now(),fullAccessToken:$e.order.fullAccessToken}:j[$e.id]={createdAt:Date.now(),fullAccessToken:$e.fullAccessToken},localStorage.setItem("orders",JSON.stringify(j)),P(`/orders/${"order"in $e?$e.order.id:$e.id}/${"order"in $e?$e.order.fullAccessToken:$e.fullAccessToken}`),setTimeout(()=>s(),2e3)}};L.useEffect(()=>{const Ee=[...B.availableGateways,...B.requiresSignInGateways];if(!Ee.length)return;let Ne=!1;return(async()=>{try{const{data:ee}=await sl(Ee);if(Ne)return;let ge=null;Array.isArray(ee)||(ee&&ee.replacement?ge=ee.replacement:((ee==null?void 0:ee.priorityReplacement)!==void 0||(ee==null?void 0:ee.standardReplacement)!==void 0)&&(ge={priorityReplacement:ee.priorityReplacement,standardReplacement:ee.standardReplacement})),X(ge),H(ge)}catch{}})(),()=>{Ne=!0}},[B.availableGateways.join(","),B.requiresSignInGateways.join(",")]),L.useEffect(()=>{var ee,ge;if(!O)return;const Ee=!!((ee=O.priorityReplacement)!=null&&ee.enabled),Ne=!!((ge=O.standardReplacement)!=null&&ge.enabled);!Ee&&Ne&&(ae("STANDARD"),M(!1),K(!1))},[O]);const le=Ee=>{ae(Ee),M(Ee==="PRIORITY"?!0:Ee==="STANDARD"?!1:void 0)},ie=L.useMemo(()=>{const Ee=r.parts[0];if(!Ee)return"USD";const Ne=u.find(ge=>ge.id===Ee.productId),ee=Ne==null?void 0:Ne.variants.find(ge=>ge.id===Ee.productVariantId);if(ee!=null&&ee.gateways&&r.gateway){const ge=ee.gateways.find(mt=>mt.name===r.gateway&&mt.overrodePrice);if(ge!=null&&ge.overrodePrice)return ge.overrodePrice.currency}return(ee==null?void 0:ee.price.currency)||"USD"},[r.parts,r.gateway,u]),xe=L.useMemo(()=>new Intl.NumberFormat("en-US",{style:"currency",currency:ie}),[ie]),ze=((Qe=k==null?void 0:k.info)==null?void 0:Qe.customerAccountSettings)??"OPTIONAL",G=ze==="REQUIRED"&&!x,pt=c.totalWithDiscount??c.total,oe=r.gateway==="Balance"&&!!_&&_.amount<pt;return i.jsxs("div",{className:g.clx(ft.checkoutOperational,{[ft.checkoutOperationalAntistock]:f}),children:[i.jsxs("div",{className:`${ft.innerContainer} ${f?ft.innerContainerAntistock:""}`,children:[f&&!_e&&!G?i.jsx("h4",{style:{fontSize:"var(--input-label-size)",color:"var(--text-secondary)",paddingBottom:"12px",fontWeight:"400"},children:"Select Payment Method"}):null,r.parts.length>0&&!_e&&(G?i.jsx("div",{className:ft.loginSection,children:i.jsx(da,{onSignIn:()=>{}})}):i.jsx(ii,{possibleGateways:B,setGateway:t,setPaymentMethod:h,balance:_,totalAndDiscount:c,onSignInClick:()=>{V(!0),te(!0)},isAntistock:f,hideBalance:ze==="DISABLED"})),_e?i.jsx("div",{style:{marginTop:"12px"},children:i.jsx(vd,{config:O,totalAmount:c.totalWithDiscount??c.total,selected:ue,onSelect:le,onBack:()=>K(!1),formatter:xe})}):null,!_e&&!G&&i.jsx("div",{className:g.clx(ft.paymentMethodsSection,{[ft.antistock]:f,[ft.paymentMethodsSectionAntistock]:f}),children:i.jsx(N.Input,{placeholder:"your@email.com",value:S||"",onChange:Ee=>I(Ee),disabled:!!x,label:"Email Address"})}),!_e&&i.jsx(Ql,{customFields:p,setCustomFields:b}),m.isEnabled&&!_e&&i.jsxs("div",{className:ft.socialConnectSection,children:[i.jsx("p",{className:ft.socialConnectLabel,id:"md",children:"Social Connect"}),i.jsx("div",{className:ft.socialConnectContent,children:i.jsx(e0,{customerEmail:S||""})})]}),G?null:i.jsxs("div",{className:`${ft.continueButton} ${f?ft.continueButtonAntistock:""}`,children:[i.jsx(N.Button,{onClick:de,disabled:G||!r.gateway||!ne(S||"")||m.isRequired&&!(D!=null&&D.authorized)||oe,className:ft.button,children:"Continue to Checkout"}),_e?i.jsxs("div",{style:{marginTop:"1rem",display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("div",{className:ft.iconWrapper,children:i.jsx(N.Icon,{name:"Shield",fill:"var(--text-secondary)"})}),i.jsxs("p",{style:{color:"var(--text-secondary)",fontSize:"14px"},children:["Protected by ",(k==null?void 0:k.info.name)||"Shop"," Buyer Protection"]})]}):i.jsxs(i.Fragment,{children:[i.jsx(Pi,{}),i.jsx(Ri,{isAntistock:f})]})]}),!_e&&!G&&i.jsx(zn,{className:`${ft.checkoutFooter} ${f?ft.checkoutFooterAntistock:""}`})]}),C&&i.jsx(N.Modal,{close:()=>V(!1),children:i.jsx(t0,{setIsOpen:V})})]})},FI="_bottomSheet_1a6cu_1",BI="_title_1a6cu_8",HI="_contentTitle_1a6cu_12",UI="_contentText_1a6cu_16",VI="_discordMessageTitle_1a6cu_20",$I="_content_1a6cu_12",zI="_section_1a6cu_27",qI="_copyButton_1a6cu_32",ZI="_scrollableBox_1a6cu_37",WI="_scrollableBoxAntistock_1a6cu_47",YI="_discordMessage_1a6cu_20",GI="_link_1a6cu_61",XI="_buttonGroup_1a6cu_68",KI="_buttonWrapper_1a6cu_80",QI="_modal_1a6cu_84",JI="_modalAntistock_1a6cu_91",eN="_header_1a6cu_96",tN="_copyButtonAntistock_1a6cu_104",at={bottomSheet:FI,title:BI,contentTitle:HI,contentText:UI,discordMessageTitle:VI,content:$I,section:zI,copyButton:qI,scrollableBox:ZI,scrollableBoxAntistock:WI,discordMessage:YI,link:GI,buttonGroup:XI,buttonWrapper:KI,modal:QI,modalAntistock:JI,header:eN,copyButtonAntistock:tN},Dd=({setIsOpen:e,deliveryConfiguration:t})=>{const n=Zn(),r=t.type===Pe.Discord,{setIsOpen:u}=g.useModalStore(),{isAntistock:a}=g.useGeneralStore(),s=t.type===Pe.Serial?t.deliveryItems.map(c=>c.serialKey).join(`
|
|
115
|
-
`):t.deliveryItems[0].textData,o=()=>{u(!1),a?e(!1):setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:g.clx(at.modal,{[at.modalAntistock]:a}),onClick:c=>c.stopPropagation(),children:[i.jsxs("div",{className:at.header,children:[i.jsx("h3",{id:"h3",className:at.title,children:a?"View Content":"Thank you for the purchase!"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:o,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:at.bottomSheet,children:[i.jsx("div",{className:at.content,children:r?i.jsx("div",{className:at.discordMessage,children:i.jsx("p",{className:at.discordMessageTitle,id:"md",children:"Discord role has been granted"})}):i.jsxs("div",{children:[i.jsxs("div",{className:at.section,children:[!a&&i.jsx("p",{className:at.contentTitle,id:"md",children:"Content"}),!a&&i.jsxs(N.Button,{className:at.copyButton,type:"Secondary",onClick:()=>n(s),children:[i.jsx(N.Icon,{name:"Copy"}),"Copy to Clipboard"]})]}),i.jsx("div",{className:g.clx(at.scrollableBox,{[at.scrollableBoxAntistock]:a}),children:i.jsx("p",{className:at.contentText,id:"md",children:a?i.jsx($i,{text:s}):i.jsx(Aa,{remarkPlugins:[ki],rehypePlugins:[Li],components:{a:({node:c,...l})=>i.jsx("a",{...l,target:"_blank",rel:"noopener noreferrer",className:at.link})},children:s})})})]})}),a&&i.jsxs(N.Button,{className:at.copyButtonAntistock,type:"Secondary",onClick:()=>n(s),style:{display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy All"]}),!a&&i.jsx("div",{className:at.buttonGroup,children:i.jsx("div",{className:at.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:o,children:"Close"})})})]})]})},nN="_mt1_1l62z_1",rN="_notifyBlock_1l62z_13",uN="_notifyHeader_1l62z_19",aN="_notifyContent_1l62z_25",sN="_buttonBlock_1l62z_30",iN="_imageBlock_1l62z_34",oN="_imageContainer_1l62z_42",cN="_sectionBlock_1l62z_54",lN="_sectionTitle_1l62z_61",dN="_sectionSubtitle_1l62z_64",fN="_inputContainer_1l62z_69",rn={mt1:nN,notifyBlock:rN,notifyHeader:uN,notifyContent:aN,buttonBlock:sN,imageBlock:iN,imageContainer:oN,sectionBlock:cN,sectionTitle:lN,sectionSubtitle:dN,inputContainer:fN},hN=({props:e})=>{const t=Zn();return i.jsx("div",{className:rn.mt1,children:i.jsxs("div",{className:rn.inputContainer,children:[i.jsx(N.Input,{value:e.text,disabled:!0,onChange:()=>{}}),e.shownCopyButton&&i.jsx(N.Button,{type:"Secondary",onClick:()=>t(e.text),children:i.jsx(N.Icon,{name:"Copy"})})]})})},pN=({props:e})=>i.jsx(N.Button,{className:rn.buttonBlock,onClick:()=>window.open(e.url,"_blank","noopener"),children:e.text}),mN=({props:e})=>i.jsx("div",{className:rn.imageBlock,children:i.jsx("div",{className:rn.imageContainer,children:i.jsx("img",{src:e.src,alt:""})})}),gN=({props:e})=>i.jsxs("div",{className:rn.notifyBlock,children:[i.jsxs("div",{className:rn.notifyHeader,children:[i.jsx(N.Icon,{name:"Info",width:24,height:24,fill:"var(--text-secondary)"}),i.jsx("p",{children:e.heading})]}),i.jsx("p",{className:rn.notifyContent,children:e.content})]}),bN=({props:e})=>{var t;return i.jsxs("div",{className:rn.sectionBlock,children:[i.jsx("p",{className:rn.sectionTitle,children:e.title}),i.jsx("span",{className:rn.sectionSubtitle,children:e.subTitle}),(t=e.children)==null?void 0:t.map((n,r)=>i.jsx(aa,{block:n},r))]})},aa=({block:e})=>{switch(e.type){case"Section":return i.jsx(bN,{...e});case"ReadOnlyTextInput":return i.jsx(hN,{...e});case"Notify":return i.jsx(gN,{...e});case"Button":return i.jsx(pN,{...e});case"Image":return i.jsx(mN,{...e});default:return null}},_N="_chargeStatusBlock_12swd_4",xN="_isAntistock_12swd_13",CN="_chargeStatusIcon_12swd_19",EN="_chargeStatusTitle_12swd_27",yN="_chargeStatusDescription_12swd_33",TN="_pickUpButton_12swd_39",kN="_actionButtons_12swd_49",AN="_actionButton_12swd_49",Lt={chargeStatusBlock:_N,isAntistock:xN,chargeStatusIcon:CN,chargeStatusTitle:EN,chargeStatusDescription:yN,pickUpButton:TN,actionButtons:kN,actionButton:AN},nr={[ke.Paid]:"Payment Successful",[ke.Pending]:"Payment Pending",[ke.Expired]:"Payment Expired",[ke.Cancelled]:"Payment Cancelled",[ke.NotPaid]:"Payment Failed",[ke.Refunded]:"Payment Refunded"},Ld={[ke.Paid]:"Your payment has successfully been processed. Tap on the button below to be redirected back to our website.",[ke.Pending]:"Your payment is currently pending. We recommend checking back shortly for confirmation.",[ke.Expired]:"Your payment has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[ke.Cancelled]:"You canceled the warrant. If there are any problems, please contact support",[ke.NotPaid]:"Your payment has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[ke.Refunded]:"Your payment has been refunded. Please check your payment method for confirmation."},Pd=()=>({[ke.Paid]:i.jsx("div",{className:`${Lt.chargeStatusIcon}`,children:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"})}),[ke.Pending]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"})}),[ke.Expired]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[ke.Cancelled]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[ke.NotPaid]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[ke.Refunded]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-warning)"})})}),Rd=({charge:e})=>{var p,b;const t=e.status,n=g.useNavigate(),{shopDomain:r}=g.useStorefrontStore(),{isAntistock:u,general:a}=g.useGeneralStore(),s=L.useRef(),o=!!((p=a==null?void 0:a.info)!=null&&p.disableSupport),c=(b=a==null?void 0:a.info)==null?void 0:b.thirdPartySupportUrl,l=!(o&&!c),[h,f]=g.useSearchParams(),m=()=>{var E,x;if(!((E=e.order)!=null&&E.id))return;const _=h.get("redirectRoute");if((e==null?void 0:e.status)===ke.Paid&&e.redirectUrl&&!s.current){const y=JSON.parse(localStorage.getItem("orders")||"{}")[((x=e==null?void 0:e.order)==null?void 0:x.id)||""];y?window.open(y.fullAccessToken?`${e.redirectUrl}/${y.fullAccessToken}`:`${e.redirectUrl}`,"_self"):window.open(e.redirectUrl,"_self")}(e==null?void 0:e.status)===ke.Paid&&s.current&&n(s.current,{replace:!0}),_&&s&&(s.current=_,h.delete("redirectRoute"),f(h))};return i.jsxs("div",{className:g.clx(Lt.chargeStatusBlock,{[Lt.isAntistock]:u}),children:[Pd()[t],i.jsx("h2",{className:Lt.chargeStatusTitle,children:nr[t]}),i.jsx("p",{className:Lt.chargeStatusDescription,children:Ld[t]}),t===ke.Paid?i.jsx("div",{className:Lt.pickUpButton,style:u?{justifyContent:"flex-start"}:void 0,children:i.jsxs(N.Button,{onClick:m,style:{width:"100%",maxWidth:"250px",display:"flex",alignItems:"center",gap:"5px"},type:"Secondary",children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),u?"View Order":"Pick up Order"]})}):i.jsxs("div",{className:Lt.actionButtons,children:[i.jsx("div",{className:Lt.actionButton,children:i.jsxs(N.Button,{type:"Secondary",onClick:()=>window.open(`https://${r}`),style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),"Visit Website"]})}),l&&i.jsx("div",{className:Lt.actionButton,children:i.jsxs(N.Button,{type:"Secondary",style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},onClick:()=>{o&&c?window.open(c):u?window.open(`https://${r}/support`):n("/contact")},children:[i.jsx(N.Icon,{name:"ChatsTeardrop"}),"Contact Support"]})})]})]})},SN="_bottomSheet_1x4sq_1",IN="_content_1x4sq_8",NN="_agreementList_1x4sq_11",vN="_agreementItem_1x4sq_16",wN="_warning_1x4sq_23",DN="_buttonGroup_1x4sq_31",LN="_buttonWrapper_1x4sq_41",PN="_fullWidthButton_1x4sq_44",RN="_modal_1x4sq_48",MN="_header_1x4sq_55",Gt={bottomSheet:SN,content:IN,agreementList:NN,agreementItem:vN,warning:wN,buttonGroup:DN,buttonWrapper:LN,fullWidthButton:PN,modal:RN,header:MN},Md=({setIsOpen:e,price:t})=>{const[n,r]=L.useState({agreeToSendAsFF:!1,agreeToSend:!1,agreeToNotAddNote:!1}),{setIsOpen:u}=g.useModalStore(),a=()=>{u(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:Gt.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:Gt.header,children:[i.jsx("h3",{id:"h3",children:"Note"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Gt.bottomSheet,children:[i.jsxs("div",{className:Gt.content,children:[i.jsxs("div",{className:Gt.agreementList,children:[i.jsxs("label",{className:Gt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToSendAsFF,onChange:s=>r({...n,agreeToSendAsFF:s})}),i.jsx("p",{children:"I agree to send the payment as friends & family"})]}),i.jsxs("label",{className:Gt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToSend,onChange:s=>r({...n,agreeToSend:s})}),i.jsxs("p",{children:["I agree to send the payment of ",g.formatPrice(t)," ",t.currency]})]}),i.jsxs("label",{className:Gt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToNotAddNote,onChange:s=>r({...n,agreeToNotAddNote:s})}),i.jsx("p",{children:"I agree to not add a note to this payment"})]})]}),i.jsx("div",{className:Gt.warning,children:i.jsxs("p",{children:["Please note that you are required to send the exact payment of ",g.formatPrice(t)," ",t.currency,". If you were to send any amount over or below, your funds will be lost."]})})]}),i.jsxs("div",{className:Gt.buttonGroup,children:[i.jsx("div",{className:Gt.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",children:i.jsx("span",{className:"text-[var(--text-secondary)]",children:"Cancel"})})}),i.jsx("div",{className:Gt.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",disabled:!(n.agreeToSendAsFF&&n.agreeToNotAddNote&&n.agreeToSend),onClick:a,children:"Continue to Payment"})})]})]})]})},ON="_chargeItemsContainer_vynct_5",jN="_chargeItemsInner_vynct_18",FN="_productsContainer_vynct_25",BN="_antistockLayout_vynct_40",HN="_mainContentAntistock_vynct_53",UN="_desktopTrackPayment_vynct_64",VN="_desktopFooter_vynct_73",$N="_footerContainerAntistock_vynct_94",zN="_chargeHeader_vynct_107",qN="_chargeTitle_vynct_115",ZN="_chargeDescription_vynct_121",WN="_copyButton_vynct_127",YN="_productsList_vynct_139",GN="_footerContainer_vynct_94",It={chargeItemsContainer:ON,chargeItemsInner:jN,productsContainer:FN,antistockLayout:BN,mainContentAntistock:HN,desktopTrackPayment:UN,desktopFooter:VN,footerContainerAntistock:$N,chargeHeader:zN,chargeTitle:qN,chargeDescription:ZN,copyButton:WN,productsList:YN,footerContainer:GN},Od=({charge:e})=>{var s;const t=Zn(),{isAntistock:n}=g.useGeneralStore(),r=(e==null?void 0:e.price.currency)||"USD",u=new Intl.NumberFormat("en-US",{style:"currency",currency:r}),a=L.useMemo(()=>{var o;return((o=e==null?void 0:e.order)==null?void 0:o.partOrders.map(c=>{var l,h,f,m;return{id:(c==null?void 0:c.id)||0,image:c.productWithVariant.image,name:(()=>{var _,E;const p=((_=c.productWithVariant)==null?void 0:_.name)||"",b=((E=c.productWithVariant)==null?void 0:E.variantName)||"";return!p&&!b?"":!b||p===b?p:p?`${p} (${b})`:b})(),description:"",price:{quantity:c.quantity,amount:((l=c.productWithVariant)==null?void 0:l.price.amount)||0,currency:(h=c.productWithVariant)==null?void 0:h.price.currency},subscriptionSettings:(f=e.order)!=null&&f.subscriptionOrderId?(m=c.productWithVariant)==null?void 0:m.subscriptionSettings:null}}))||[]},[e]);return i.jsx("div",{className:It.chargeItemsContainer,children:i.jsxs("div",{className:It.chargeItemsInner,children:[i.jsx(ma,{expiresAt:e==null?void 0:e.expiresAt}),i.jsxs("div",{className:`${It.productsContainer} ${n?It.antistockLayout:""}`,children:[(e==null?void 0:e.name)&&i.jsxs("header",{className:It.chargeHeader,children:[i.jsxs("div",{children:[i.jsx("h1",{className:It.chargeTitle,id:"h5",children:e.name}),e.description&&i.jsx("p",{className:It.chargeDescription,id:"md",children:e.description})]}),((s=e.order)==null?void 0:s.id)&&!n&&i.jsxs(N.Button,{type:"Secondary",className:It.copyButton,onClick:()=>{var o;return t(((o=e.order)==null?void 0:o.id)||"")},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy Order ID"]})]}),i.jsxs("div",{className:n?It.mainContentAntistock:"",style:n?void 0:{flex:1},children:[!!a.length&&i.jsx("div",{className:It.productsList,children:a.map(o=>i.jsx(ga,{product:o},o.id))}),i.jsx(vr,{formatter:u,coupon:null,total:(e==null?void 0:e.price.amount)||0,discount:0,totalWithDiscount:(e==null?void 0:e.price.amount)||0,isShowSubtotal:!1}),n&&e&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:It.desktopTrackPayment,children:i.jsx(Ma,{timeline:e.timeline})}),i.jsx(zn,{className:It.desktopFooter})]})]}),!n&&i.jsx(zn,{className:`${It.footerContainer} ${n?It.footerContainerAntistock:""}`})]})]})})},XN="_checkoutOrderMainData_hqf60_1",KN="_orderDetailRow_hqf60_6",QN="_chargeIdRow_hqf60_16",JN="_detailLabel_hqf60_25",ev="_detailValue_hqf60_29",tv="_chargeIdContainer_hqf60_33",nv="_chargeId_hqf60_16",rv="_copyIcon_hqf60_51",et={checkoutOrderMainData:XN,orderDetailRow:KN,chargeIdRow:QN,detailLabel:JN,detailValue:ev,chargeIdContainer:tv,chargeId:nv,copyIcon:rv},zi=({lastUpdate:e,invoiceId:t,email:n,paymentType:r,orderId:u})=>{const a=Zn(),[s,o]=L.useState(null),c=s==null?void 0:s.find(h=>h.name===r);L.useEffect(()=>{s||(async()=>{if(!r)return;const m=await fu([r]);o(m)})()},[r,s]);const l=h=>{const f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m=h.getDate().toString().padStart(2,"0"),p=f[h.getMonth()],b=h.getFullYear(),_=h.getHours(),E=h.getMinutes().toString().padStart(2,"0"),x=h.getSeconds().toString().padStart(2,"0"),k=_>=12?"PM":"AM",y=(_%12||12).toString().padStart(2,"0");return`${p} ${m}, ${b} at ${y}:${E}:${x} ${k}`};return i.jsxs("div",{className:et.checkoutOrderMainData,children:[i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Last Updated"}),i.jsx("p",{className:et.detailValue,id:"md",children:l(new Date(e))})]}),r&&i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Payment Type"}),i.jsx("p",{className:et.detailValue,id:"md",children:c==null?void 0:c.displayName})]}),i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Email"}),i.jsx("p",{className:et.detailValue,id:"md",children:n})]}),t&&i.jsxs("div",{className:et.chargeIdRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Charge ID"}),i.jsxs("div",{className:et.chargeIdContainer,children:[i.jsx("p",{className:et.chargeId,id:"md",children:t}),i.jsx("div",{className:et.copyIcon,onClick:()=>a(t),children:i.jsx(N.Icon,{name:"Copy"})})]})]}),u&&i.jsxs("div",{className:et.chargeIdRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Order ID"}),i.jsxs("div",{className:et.chargeIdContainer,children:[i.jsx("p",{className:et.chargeId,id:"md",children:u}),i.jsx("div",{className:et.copyIcon,onClick:()=>a(u),children:i.jsx(N.Icon,{name:"Copy"})})]})]})]})},uv="_bottomSheet_1yai1_1",av="_formContainer_1yai1_8",sv="_error_1yai1_14",iv="_buttonGroup_1yai1_18",ov="_buttonWrapper_1yai1_28",cv="_fullWidthButton_1yai1_31",lv="_modal_1yai1_41",dv="_header_1yai1_48",Ln={bottomSheet:uv,formContainer:av,error:sv,buttonGroup:iv,buttonWrapper:ov,fullWidthButton:cv,modal:lv,header:dv},jd=({chargeId:e,setIsOpen:t})=>{const[n,r]=L.useState(""),[u,a]=L.useState(""),{setIsOpen:s}=g.useModalStore(),o=h=>{try{return new URL(h),!0}catch{return!1}},c=async h=>{if(h.preventDefault(),!n){a("The link field cannot be empty.");return}if(!o(n)){a("Please enter a valid URL");return}await i2({url:n},e)&&(alert("CashApp successfully verified"),t(!1))},l=()=>{s(!1),setTimeout(()=>{t(!1)},300)};return i.jsxs("div",{className:Ln.modal,onClick:h=>h.stopPropagation(),children:[i.jsxs("div",{className:Ln.header,children:[i.jsx("h3",{id:"h3",children:"CashApp Verify"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:l,fill:"var(--text-primary)"})]}),i.jsx("form",{onSubmit:c,children:i.jsxs("div",{className:Ln.bottomSheet,children:[i.jsx("div",{className:Ln.formContainer,children:i.jsxs("div",{children:[i.jsx(N.Input,{value:n,onChange:h=>{r(h),a("")},label:"Enter Cashapp Link",placeholder:"https://cash.app/payments/0000"}),u&&i.jsx("p",{className:Ln.error,children:u})]})}),i.jsxs("div",{className:Ln.buttonGroup,children:[i.jsx("div",{className:Ln.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:l,children:"Cancel"})}),i.jsx("div",{className:Ln.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",children:"Verify"})})]})]})})]})},fv="_trackPaymentContainer_fk3b6_1",hv="_trackPaymentBox_fk3b6_5",pv="_trackPaymentBoxActive_fk3b6_18",mv="_trackPaymentHeader_fk3b6_23",gv="_trackPaymentTitle_fk3b6_27",bv="_trackPaymentTimeline_fk3b6_33",_v="_trackPaymentItem_fk3b6_42",xv="_itemHeader_fk3b6_48",Cv="_itemDate_fk3b6_55",Ev="_itemMessage_fk3b6_59",yv="_trackPaymentToggle_fk3b6_64",Tv="_trackPaymentToggleContent_fk3b6_75",kv="_trackPaymentToggleText_fk3b6_81",Av="_antistock_fk3b6_88",yt={trackPaymentContainer:fv,trackPaymentBox:hv,trackPaymentBoxActive:pv,trackPaymentHeader:mv,trackPaymentTitle:gv,trackPaymentTimeline:bv,trackPaymentItem:_v,itemHeader:xv,itemDate:Cv,itemMessage:Ev,trackPaymentToggle:yv,trackPaymentToggleContent:Tv,trackPaymentToggleText:kv,antistock:Av},tl=(e,t)=>{const n=e.getDate().toString().padStart(2,"0"),r=(e.getMonth()+1).toString().padStart(2,"0"),u=e.getFullYear(),a=e.getHours(),s=e.getMinutes().toString().padStart(2,"0"),o=e.getSeconds().toString().padStart(2,"0"),c=a>=12?"PM":"AM",l=(a%12||12).toString().padStart(2,"0");return t==="dd.MM.yyyy"?`${n}.${r}.${u}`:t==="hh:mm:ss aa"?`${l}:${s}:${o} ${c}`:""},Sv={[ke.Paid]:{displayName:nr[ke.Paid],displayMessage:"The invoice has been completed and the product has been delivered.",type:"success"},[ke.Pending]:{displayName:nr[ke.Pending],displayMessage:"The invoice has been created and we are now waiting to receive the payment.",type:"warning"},[ke.Expired]:{displayName:nr[ke.Expired],displayMessage:"Your payment has expired due to the payment not being sent in time.",type:"error"},[ke.Cancelled]:{displayName:nr[ke.Cancelled],displayMessage:"The order has been canceled. The payment was not sent within the time limit.",type:"error"},[ke.NotPaid]:{displayName:"New",displayMessage:"The charge has been created and is awaiting payment.",type:"success"},[ke.Refunded]:{displayName:nr[ke.Refunded],displayMessage:"Your order was refunded. Please check your payment method for confirmation.",type:"warning"}},Iv=({date:e,chargeStatus:t})=>(console.log(t),i.jsxs("div",{className:yt.trackPaymentItem,children:[i.jsxs("div",{className:yt.itemHeader,children:[i.jsx("p",{className:yt.itemDate,id:"md-bold",children:tl(new Date(e),"dd.MM.yyyy")}),i.jsx("p",{className:yt.itemTime,id:"md",children:tl(new Date(e),"hh:mm:ss aa")})]}),i.jsx("p",{className:yt.itemMessage,id:"md",children:Sv[t].displayMessage})]})),Ma=({timeline:e,className:t})=>{const[n,r]=L.useState(!1),{isAntistock:u}=g.useGeneralStore();return i.jsxs("div",{className:g.clx(yt.trackPaymentContainer,t,{[yt.antistock]:u}),children:[i.jsxs("div",{className:`${yt.trackPaymentBox} ${n?yt.trackPaymentBoxActive:""}`,style:u?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsx("header",{className:yt.trackPaymentHeader,children:i.jsx("h2",{className:yt.trackPaymentTitle,id:"h4",children:"Track Payment"})}),i.jsx("div",{className:yt.trackPaymentTimeline,children:Object.keys(e).map(a=>i.jsx(Iv,{date:e[a],chargeStatus:a},a))})]}),i.jsxs("div",{className:yt.trackPaymentToggle,onClick:()=>r(!n),style:u?{padding:"1.25rem",border:"1px solid var(--border-secondary)",borderRadius:"var(--border-radius)"}:void 0,children:[i.jsxs("div",{className:yt.trackPaymentToggleContent,children:[u?null:i.jsx(N.Icon,{name:"MagnifyingGlass",fill:"var(--text-secondary)"}),i.jsx("p",{className:yt.trackPaymentToggleText,id:"h5",children:"Track Payment"})]}),i.jsx(N.Icon,{name:"CaretRight",fill:"var(--text-primary)",width:16,height:16})]})]})},Nv="_dateTime_1dnnn_11",vv="_tableItem_1dnnn_25",wv="_status_1dnnn_29",Dv="_statusInProgress_1dnnn_38",Lv="_statusText_1dnnn_42",Pv="_statusIcon_1dnnn_46",Rv="_statusInProgressText_1dnnn_52",Mv="_statusInProgressIcon_1dnnn_57",Ov="_message_1dnnn_63",Tt={dateTime:Nv,tableItem:vv,status:wv,statusInProgress:Dv,statusText:Lv,statusIcon:Pv,statusInProgressText:Rv,statusInProgressIcon:Mv,message:Ov},Fd=({item:e})=>{const[t,n]=g.extractDateAndTime(e.createdAt),r=g.useNavigate(),a=(s=>s.length>30?s.slice(0,27)+"...":s)(e.latestMessage);return i.jsxs(L.Fragment,{children:[i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsxs("span",{id:"md",children:["#",e.id]})}),i.jsx(ot,{className:g.clx(Tt.message,Tt.tableItem),onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsx("span",{id:"md",children:a})}),i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:t}),i.jsx("div",{className:Tt.dateTime,id:"md",children:n})]})}),i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsx(jv,{status:e.status})})]},e.id)},jv=({status:e})=>i.jsxs("div",{className:g.clx(Tt.status,{[Tt.statusClosed]:e==="CLOSED",[Tt.statusInProgress]:e!=="CLOSED"}),children:[i.jsx("div",{className:g.clx(Tt.statusIcon,{[Tt.statusInProgressIcon]:e!=="CLOSED"}),children:e==="CLOSED"?i.jsx(N.Icon,{name:"CheckCircle",className:Tt.statusIcon}):i.jsx(N.Icon,{name:"Clock",className:Tt.statusInProgressIcon})}),i.jsx("div",{className:g.clx(Tt.statusText,{[Tt.statusInProgressText]:e!=="CLOSED"}),id:"md",children:e==="CLOSED"?"Closed":"In Progress"})]}),Fv="_tableContainer_1eytq_1",Bv="_table_1eytq_1",Hv="_productInfo_1eytq_19",Uv="_productImage_1eytq_26",Vv="_productName_1eytq_35",$v="_expirationDate_1eytq_46",zv="_overflowItem_1eytq_51",qv="_gatewayContainer_1eytq_57",Zv="_gatewayImage_1eytq_62",Wv="_dateTime_1eytq_67",Yv="_tableLoader_1eytq_72",Gv="_tableItem_1eytq_81",ht={tableContainer:Fv,table:Bv,productInfo:Hv,productImage:Uv,productName:Vv,expirationDate:$v,overflowItem:zv,gatewayContainer:qv,gatewayImage:Zv,dateTime:Wv,tableLoader:Yv,tableItem:Gv},Xv="_badge_1oac8_1",Kv="_active_1oac8_12",Qv="_awaitingPayment_1oac8_17",Jv="_cancelled_1oac8_22",ew="_changedGateway_1oac8_27",tw="_expired_1oac8_32",nw="_rial_1oac8_37",rw="_pastDue_1oac8_42",uw="_replaced_1oac8_47",An={badge:Xv,active:Kv,awaitingPayment:Qv,cancelled:Jv,changedGateway:ew,expired:tw,rial:nw,pastDue:rw,replaced:uw},aw=()=>({[kn.ACTIVE]:{icon:i.jsx(N.Icon,{name:"CheckCircle"}),title:"Active",className:An.active},[kn.AWAITING_PAYMENT]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Awaiting Payment",className:An.awaitingPayment},[kn.CANCELLED]:{icon:i.jsx(N.Icon,{name:"XCircle"}),title:"Cancelled",className:An.cancelled},[kn.CHANGED_GATEWAY]:{icon:i.jsx(N.Icon,{name:"Warning"}),title:"Upgraded",className:An.changedGateway},[kn.EXPIRED]:{icon:i.jsx(N.Icon,{name:"XCircle"}),title:"Expired",className:An.expired},[kn.RIAL]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Active",className:An.rial},[kn.PAST_DUE]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Trial",className:An.pastDue},[kn.REPLACED]:{icon:i.jsx(N.Icon,{name:"Warning"}),title:"Replaced",className:An.replaced}}),qi=({status:e})=>{const t=aw()[e];return i.jsxs("div",{className:`${An.badge} ${t.className}`,children:[t.icon,i.jsx("p",{id:"md",children:t.title})]})},sw=(e,t)=>{const n=t.find(r=>r.name===e);return n?i.jsxs("div",{className:ht.gatewayContainer,children:[i.jsx("img",{alt:n.displayName,src:g.convertCfImageIdToUrl(n.logoCfImageId,"100"),className:ht.gatewayImage}),i.jsx("div",{children:n.displayName})]}):null},iw=({item:e,gatewaysDetail:t})=>{const[n,r]=g.extractDateAndTime(e.createdAt),[u]=g.extractDateAndTime(e.activeTo||""),a=Zn();return i.jsxs(L.Fragment,{children:[i.jsx(ot,{children:i.jsxs("div",{className:ht.productInfo,children:[i.jsx("div",{className:ht.productImage,children:i.jsx(N.Icon,{name:"Image",width:20,height:20,fill:"var(--text-secondary)"})}),i.jsxs("div",{children:[i.jsx(g.NavLink,{to:`/subscriptions/${e.id}/${e.accessToken}`,className:ht.productName,id:"md",children:e.productName}),i.jsx("p",{className:ht.expirationDate,children:e.activeTo&&`expires at ${u}`})]})]})}),i.jsx(ot,{className:ht.overflowItem,onClick:()=>a(e.id),children:e.id}),i.jsx(ot,{children:i.jsx(qi,{status:e.status})}),i.jsx(ot,{children:g.formatPrice(e.price)}),i.jsx(ot,{children:sw(e.gatewayName,t)}),i.jsx(ot,{children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:n}),i.jsx("div",{className:ht.dateTime,id:"md",children:r})]})})]},e.id)},Bd=({subscriptions:e,gatewaysDetail:t,totalCount:n,page:r,setPage:u})=>{const s=!(!(e!=null&&e.length)||!t);return i.jsxs("div",{className:ht.tableContainer,children:[i.jsxs(pa,{className:ht.table,children:[i.jsx(Pt,{className:ht.tableItem,children:"Product name"}),i.jsx(Pt,{className:ht.tableItem,children:"ID"}),i.jsx(Pt,{className:ht.tableItem,children:"Status"}),i.jsx(Pt,{className:ht.tableItem,children:"Value"}),i.jsx(Pt,{className:ht.tableItem,children:"Payment"}),i.jsx(Pt,{className:ht.tableItem,children:"Date"}),s&&(e==null?void 0:e.map(o=>i.jsx(iw,{item:o,gatewaysDetail:t},o.id)))]}),!s&&i.jsx("div",{className:ht.tableLoader,children:i.jsx(N.Loader,{})}),s&&i.jsx(mu,{currentPage:r,totalCount:n,onPageChange:u})]})},ow="_pageLoading_1rj3k_2",cw="_title_1rj3k_11",lw="_description_1rj3k_17",Cs={pageLoading:ow,title:cw,description:lw},dw=({description:e,title:t})=>i.jsxs("div",{className:Cs.pageLoading,children:[i.jsx("div",{children:i.jsx(N.Loader,{})}),i.jsx("h1",{className:Cs.title,children:t}),i.jsx("p",{className:Cs.description,children:e})]}),fw="_container_1opbn_1",hw="_productDetails_1opbn_8",pw="_imageContainer_1opbn_14",mw="_image_1opbn_14",gw="_textContainer_1opbn_32",bw="_header_1opbn_40",_w="_title_1opbn_46",xw="_price_1opbn_53",Cw="_badgeContainer_1opbn_57",Ew="_description_1opbn_61",sn={container:fw,productDetails:hw,imageContainer:pw,image:mw,textContainer:gw,header:bw,title:_w,price:xw,badgeContainer:Cw,description:Ew},Hd=({subscription:e})=>i.jsxs("div",{className:sn.container,children:[i.jsxs("div",{className:sn.productDetails,children:[i.jsx("div",{className:sn.imageContainer,children:e!=null&&e.image?i.jsx("img",{className:sn.image,src:g.convertCfImageIdToUrl(e.image.cfId),alt:e==null?void 0:e.name}):i.jsx(N.Icon,{name:"Image"})}),i.jsxs("div",{className:sn.textContainer,children:[i.jsx("div",{className:sn.header,children:i.jsx("h2",{className:sn.title,children:e.name})}),i.jsxs("p",{className:sn.price,children:[g.formatPrice(e.price)," / ",e.recurringInterval]})]}),i.jsx("div",{className:sn.badgeContainer,children:i.jsx(qi,{status:e.status})})]}),e.description&&i.jsx(Aa,{className:sn.description,children:e.description})]}),yw="_card_69liy_1",Tw="_price_69liy_10",kw="_interval_69liy_17",Aw="_name_69liy_22",Sw="_description_69liy_28",Iw="_currentPlan_69liy_32",Nw="_selectButton_69liy_45",vw="_progressSection_69liy_50",ww="_progressLabel_69liy_54",Dw="_bottomSheet_69liy_60",Lw="_title_69liy_69",Pw="_typeSelector_69liy_80",Rw="_typeOption_69liy_90",Mw="_active_69liy_100",Ow="_saveTag_69liy_108",jw="_planSelector_69liy_117",Fw="_modal_69liy_127",Bw="_inactive_69liy_148",Hw="_notMounted_69liy_151",Uw="_closeButton_69liy_157",Xe={card:yw,price:Tw,interval:kw,name:Aw,description:Sw,currentPlan:Iw,selectButton:Nw,progressSection:vw,progressLabel:ww,bottomSheet:Dw,title:Lw,typeSelector:Pw,typeOption:Rw,active:Mw,saveTag:Ow,planSelector:jw,modal:Fw,inactive:Bw,notMounted:Hw,closeButton:Uw},Vw=({variant:e,onSelect:t,isCurrent:n})=>{const r=e.subscriptionSettings.recurringIntervalDays===30?"month":e.subscriptionSettings.recurringIntervalDays===365?"year":"period",u=e.subscriptionSettings.price.amount.toFixed(2),a=e.subscriptionSettings.recurringIntervalDays,s=10;return i.jsxs("div",{className:Xe.card,onClick:t,children:[i.jsxs("h2",{className:Xe.price,children:["$",u," ",i.jsxs("span",{className:Xe.interval,children:["/ ",r]})]}),i.jsx("h3",{className:Xe.name,children:e.name}),e.description&&i.jsx("p",{className:Xe.description,children:e.description}),n?i.jsxs("div",{className:Xe.currentPlan,children:[i.jsx(N.Icon,{name:"Check"}),"Your current Plan"]}):i.jsx(N.Button,{type:"Secondary",className:Xe.selectButton,children:"Select"}),n&&i.jsxs("div",{className:Xe.progressSection,children:[i.jsx(ui,{percent:s/a*100,disablePercentLabel:!0}),i.jsxs("p",{className:Xe.progressLabel,children:["Used: ",s," of ",a," days"]})]})]})},Ud=({isOpen:e,setIsOpen:t,subscription:n})=>{const[r,u]=L.useState(null),[a,s]=L.useState(null),[o,c]=L.useState(null),{id:l,accessToken:h}=g.useParams(),[f,m]=L.useState(!1),[p,b]=L.useState(!1),{setIsOpen:_}=g.useModalStore();L.useEffect(()=>{e&&m(!0)},[e]);const E=()=>{t(!1)},[x,k]=L.useState(null);L.useEffect(()=>{l&&h&&(async()=>{if(l&&h){const{data:I}=await v2({id:l,accessToken:h});k(I)}})()},[l,h]),L.useEffect(()=>{var S;if(x!=null&&x.data.types[0]){const I=(S=x.data.types.flatMap(M=>M.productVariants).find(M=>M.data.id===(n==null?void 0:n.variantId)))==null?void 0:S.data;I&&(c(I),s(I))}},[x,n]),L.useEffect(()=>{x!=null&&x.data.types[0]&&u(x==null?void 0:x.data.types[0])},[x==null?void 0:x.data.types]);const y=S=>{u(S),s(null)},D=S=>{s(S),_(!0),b(!0)};return i.jsxs("div",{className:g.clx(Xe.modal,{[Xe.active]:e,[Xe.inactive]:!e&&f,[Xe.notMounted]:!f}),onClick:S=>S.stopPropagation(),children:[i.jsx(N.Icon,{name:"X",onClick:E,hoverable:!0,className:Xe.closeButton,fill:"var(--text-primary)"}),i.jsxs("div",{className:Xe.bottomSheet,children:[i.jsx("h3",{id:"h3",className:Xe.title,children:"Change Plan"}),i.jsx("p",{className:Xe.description,children:x==null?void 0:x.data.description}),i.jsx("div",{className:Xe.typeSelector,children:x==null?void 0:x.data.types.map(S=>i.jsxs("div",{className:g.clx(Xe.typeOption,{[Xe.active]:(r==null?void 0:r.id)===S.id}),onClick:()=>y(S),children:[S.name,S.name==="Yearly"&&i.jsx("span",{className:Xe.saveTag,children:"Save %"})]},S.id))}),r&&i.jsx("div",{className:Xe.planSelector,children:r.productVariants.map(S=>i.jsx(Vw,{variant:S.data,isSelected:(a==null?void 0:a.id)===S.data.id,isCurrent:(o==null?void 0:o.id)===S.data.id,onSelect:()=>D(S.data)},S.data.id))})]}),p&&a&&n&&i.jsx(N.Modal,{close:()=>{b(!1)},children:i.jsx(Zd,{setIsOpen:b,selectedVariant:a,subscription:n})})]})},$w="_container_nb625_1",zw="_title_nb625_11",qw="_subtitle_nb625_16",Zw="_info_nb625_20",Vu={container:$w,title:zw,subtitle:qw,info:Zw},Vd=()=>{const{subscription:e}=g.useSubscriptionStore(),[t,n]=g.extractDateAndTime((e==null?void 0:e.activeTo)||""),[r,u]=L.useState(!1),{setIsOpen:a}=g.useModalStore();return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Vu.container,children:[i.jsxs("div",{className:Vu.info,children:[i.jsx("p",{className:Vu.title,children:"Expiration Date"}),i.jsxs("p",{className:Vu.subtitle,children:[t," at ",n]})]}),i.jsx(N.Button,{type:"Special",onClick:s=>{s.stopPropagation(),a(!0),u(!0)},children:"Extend"})]}),r&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(Kd,{setIsOpen:u})})]})},Ww="_couponContainer_1sspa_1",Yw="_iconWrapper_1sspa_10",Gw="_details_1sspa_21",Xw="_title_1sspa_25",Kw="_progress_1sspa_29",Qw="_foreverText_1sspa_34",mr={couponContainer:Ww,iconWrapper:Yw,details:Gw,title:Xw,progress:Kw,foreverText:Qw},$d=({coupon:e,currency:t})=>{const n=e.isFixed?g.formatPrice({amount:e.discount,currency:t}):`${e.discount}%`,r=e.initialCouponDurationForSubscriptions?g.percentageDifference(e.initialCouponDurationForSubscriptions,e.currentCouponDurationForSubscriptions||1):100;return i.jsxs("div",{className:mr.couponContainer,children:[i.jsx("div",{className:mr.iconWrapper,children:i.jsx(N.Icon,{name:"CheckCircle"})}),i.jsxs("div",{className:mr.details,children:[i.jsxs("p",{className:mr.title,children:[e.name,", ",n," discount"]}),i.jsx("div",{className:mr.progress,children:i.jsx(ui,{color:"#C2C2C2",percent:r,disablePercentLabel:!0})}),i.jsx("p",{className:mr.foreverText,children:"Forever discount code"})]})]})},Jw="_paymentMethodContainer_1g0da_4",eD="_paymentMethodTitle_1g0da_15",tD="_activeMethod_1g0da_20",nD="_noMethod_1g0da_28",rD="_activeMethodPaymentMethod_1g0da_37",uD="_paymentMethodLogo_1g0da_47",aD="_paymentMethodNumber_1g0da_57",sD="_method_1g0da_61",Hn={paymentMethodContainer:Jw,paymentMethodTitle:eD,activeMethod:tD,noMethod:nD,activeMethodPaymentMethod:rD,paymentMethodLogo:uD,paymentMethodNumber:aD,method:sD},iD="_paymentMethods_1gev0_1",oD="_modal_1gev0_14",cD="_header_1gev0_28",lD="_content_1gev0_37",Jn={paymentMethods:iD,modal:oD,header:cD,content:lD},dD=e=>{const{setIsLoading:t,setIsOpen:n}=e,{subscription:r,setSubscription:u}=g.useSubscriptionStore();if(!r)return null;const{id:a}=g.useParams(),s=g.useNavigate(),{notifications:o,setNotifications:c}=g.useNotificationStore(),{setPaymentMethod:l,setGateway:h,cart:f}=hu(),{setIsOpen:m}=g.useModalStore();async function p(){if(b(),t(!0),a&&r){const{data:_}=await I2(a,f.gateway);_.isReconnectPaymentNeeded?s(`/charges/${_.chargeId}`):(c([...o,{status:"success",id:g.v4(),message:"Your action has been successfully completed"}]),u({...r,gatewayName:f.gateway}))}else c([...o,{status:"error",id:g.v4(),message:"Your action has been failed. Try again!"}]);t(!1)}function b(){m(!1),setTimeout(()=>{n(!1)},300)}return i.jsxs("div",{className:Jn.modal,onClick:_=>{_.stopPropagation()},children:[i.jsxs("div",{className:Jn.header,children:[i.jsx("h3",{id:"h3",className:Jn.title,children:"Choose Payment Method"}),i.jsx(N.Icon,{name:"X",onClick:b,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Jn.content,children:[(r==null?void 0:r.availableGateways)&&i.jsx(ii,{possibleGateways:{availableGateways:r.availableGateways,requiresSignInGateways:r.availableGateways},setGateway:h,setPaymentMethod:l,totalAndDiscount:{total:(r==null?void 0:r.price.amount)||0,totalWithDiscount:r==null?void 0:r.price.amount},onSignInClick:()=>s("/customer-dash")}),i.jsxs("div",{className:Jn.paymentMethods,children:[i.jsx("div",{className:Jn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Cancel"})}),i.jsx("div",{className:Jn.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",disabled:!f.gateway,onClick:()=>p(),children:"Continue"})})]})]})]})},fD="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20131.39%2086.9'%3e%3cdefs%3e%3cstyle%3e.a{opacity:0;}.b{fill:%23fff;}.c{fill:%23ff5f00;}.d{fill:%23eb001b;}.e{fill:%23f79e1b;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%201%3c/title%3e%3cg%20class='a'%3e%3crect%20class='b'%20width='131.39'%20height='86.9'/%3e%3c/g%3e%3crect%20class='c'%20x='48.37'%20y='15.14'%20width='34.66'%20height='56.61'/%3e%3cpath%20class='d'%20d='M51.94,43.45a35.94,35.94,0,0,1,13.75-28.3,36,36,0,1,0,0,56.61A35.94,35.94,0,0,1,51.94,43.45Z'/%3e%3cpath%20class='e'%20d='M120.5,65.76V64.6H121v-.24h-1.19v.24h.47v1.16Zm2.31,0v-1.4h-.36l-.42,1-.42-1h-.36v1.4h.26V64.7l.39.91h.27l.39-.91v1.06Z'/%3e%3cpath%20class='e'%20d='M123.94,43.45a36,36,0,0,1-58.25,28.3,36,36,0,0,0,0-56.61,36,36,0,0,1,58.25,28.3Z'/%3e%3c/svg%3e",zd=()=>{var b,_,E;const{subscription:e}=g.useSubscriptionStore(),{cart:t,setPaymentMethod:n}=hu(),r=g.useNavigate(),[u,a]=L.useState(null),[s,o]=L.useState(!1),[c,l]=L.useState(!1),{setIsOpen:h}=g.useModalStore();if(!e)return null;const[f,m]=L.useState(e.gatewayName||t.gateway),p=t.paymentMethod;return L.useEffect(()=>{(async()=>{const k=await fu(e.availableGateways);a(k)})()},[]),L.useEffect(()=>{t.gateway!==f&&m(t.gateway)},[t.gateway]),i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Hn.paymentMethodContainer,children:[i.jsxs("div",{children:[i.jsx("p",{className:Hn.paymentMethodTitle,children:"Active Payment Method"}),e.gatewayInfo&&Object.keys(e.gatewayInfo).length>0&&i.jsx(hD,{gatewayInfo:e.gatewayInfo}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&f==="Balance"&&i.jsx(ai,{gateway:f,gatewayDisplayName:f,total:(e==null?void 0:e.price.amount)||0,onSignInClick:()=>r("/customer-dash")}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&!f&&i.jsx("span",{className:Hn.noMethod,children:"Payment method is not set"}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&f&&i.jsx("div",{className:Hn.activeMethod,children:u&&i.jsx(si,{align:"row",gatewayLogoCfId:(b=u.find(x=>x.name===f))==null?void 0:b.logoCfImageId,gatewayDisplayName:(_=u.find(x=>x.name===f))==null?void 0:_.displayName,gateway:f,poweredByLogoCfId:(E=u.find(x=>x.name===f))==null?void 0:E.poweredByImageCfImageId,className:Hn.activeMethodPaymentMethod,selected:p===f,onSelect:x=>{n(x)}},f)})]}),i.jsx(N.Button,{type:"Special",onClick:x=>{x.stopPropagation(),h(!0),l(!0)},children:t.gateway?"Change":"Manage"})]}),c&&i.jsx(N.Modal,{close:()=>l(!1),children:i.jsx(dD,{setIsLoading:o,setIsOpen:l})})]})},hD=({gatewayInfo:e})=>{var t,n,r,u,a;return i.jsxs("div",{className:Hn.method,children:[i.jsxs("div",{className:Hn.paymentMethodLogo,children:[((t=e.card)==null?void 0:t.brand.toLowerCase())==="visa"&&i.jsx(vh,{}),((n=e.card)==null?void 0:n.brand.toLowerCase())==="mastercard"&&i.jsx("img",{src:fD,alt:"",width:22}),((r=e.card)==null?void 0:r.brand.toLowerCase())!=="visa"&&((u=e.card)==null?void 0:u.brand.toLowerCase())!=="mastercard"&&i.jsx(N.Icon,{name:"CreditCard",width:22})]}),i.jsxs("p",{className:Hn.paymentMethodNumber,children:["•••• •••• •••• ",(a=e.card)==null?void 0:a.last4]})]})},pD="_subscriptionProductContainer_83ibx_4",mD="_subscriptionProductImage_83ibx_15",gD="_subscriptionProductInfo_83ibx_32",bD="_name_83ibx_37",_D="_price_83ibx_40",zr={subscriptionProductContainer:pD,subscriptionProductImage:mD,subscriptionProductInfo:gD,name:bD,price:_D},qd=({subscription:e,id:t,accessToken:n})=>{const[r,u]=L.useState(!1),{setIsOpen:a}=g.useModalStore();return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:zr.subscriptionProductContainer,onClick:s=>s.stopPropagation(),children:[i.jsx("div",{className:zr.subscriptionProductImage,children:e!=null&&e.image?i.jsx("img",{src:g.convertCfImageIdToUrl(e.image.cfId)}):i.jsx(N.Icon,{name:"Image"})}),i.jsxs("div",{className:zr.subscriptionProductInfo,children:[i.jsx("div",{className:"flex items-center gap-2",children:i.jsx("h2",{className:zr.name,children:e.name})}),i.jsxs("p",{className:zr.price,children:[g.formatPrice(e.price)," / ",e.recurringInterval]})]}),i.jsx(N.Button,{type:"Special",onClick:s=>{s.preventDefault(),u(!0),a(!0)},children:"Cancel"})]}),r&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(Qd,{accessToken:n,id:t,isOpen:r,setIsOpen:u})})]})},xD="_content_5ctxw_1",CD="_selectedPlan_5ctxw_37",ED="_planName_5ctxw_44",yD="_description_5ctxw_48",TD="_price_5ctxw_51",kD="_buttonGroup_5ctxw_79",AD="_buttonWrapper_5ctxw_84",SD="_modal_5ctxw_88",ID="_header_5ctxw_95",tn={content:xD,selectedPlan:CD,planName:ED,description:yD,price:TD,buttonGroup:kD,buttonWrapper:AD,modal:SD,header:ID},Zd=({setIsOpen:e,selectedVariant:t,subscription:n})=>{if(!t)return null;const{setIsOpen:r}=g.useModalStore(),u=()=>{a()},a=()=>{r(!1),setTimeout(()=>{e(!1)},300)},s=(t.subscriptionSettings.compareAtPrice||t.subscriptionSettings.price).amount,o=t.subscriptionSettings.compareAtPrice?t.subscriptionSettings.compareAtPrice.amount-t.subscriptionSettings.price.amount:t.subscriptionSettings.price.amount,c=s-o,l=new Intl.NumberFormat("en-US",{style:"currency",currency:n.price.currency});return i.jsxs("div",{className:tn.modal,children:[i.jsxs("div",{className:tn.header,children:[i.jsx("h3",{id:"h3",children:"Choose upgrade method"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:()=>a(),fill:"var(--text-primary)"})]}),i.jsxs("div",{className:tn.bottomSheet,children:[i.jsxs("div",{className:tn.content,children:[i.jsxs("div",{className:tn.selectedPlan,children:[i.jsx("h2",{className:tn.planName,children:t.name}),i.jsx("p",{className:tn.description,children:t.description}),i.jsxs("p",{className:tn.price,children:["$",t.subscriptionSettings.price.amount.toFixed(2)," /"," ",t.subscriptionSettings.recurringIntervalDays===30?"month":"year"]})]}),i.jsx(vr,{formatter:l,coupon:null,total:c,discount:o})]}),i.jsxs("div",{className:tn.buttonGroup,children:[i.jsx("div",{className:tn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:()=>a(),children:"Stay with us"})}),i.jsx("div",{className:tn.buttonWrapper,children:i.jsxs(N.Button,{type:"Primary",onClick:u,children:["Upgrade for $",c.toFixed(2)]})})]})]})]})},ND="_orderStatusBlock_2wo4y_2",vD="_orderStatusBlockAntistock_2wo4y_11",wD="_iconWrapper_2wo4y_16",DD="_orderStatusTitle_2wo4y_26",LD="_orderStatusDescription_2wo4y_31",PD="_actionButtons_2wo4y_36",RD="_actionButton_2wo4y_36",MD="_button_2wo4y_47",on={orderStatusBlock:ND,orderStatusBlockAntistock:vD,iconWrapper:wD,orderStatusTitle:DD,orderStatusDescription:LD,actionButtons:PD,actionButton:RD,button:MD},OD={[be.New]:"New",[be.Pending]:"Order Pending",[be.Processing]:"Order Processing",[be.Expired]:"Order Expired",[be.Cancelled]:"Order Canceled",[be.Failed]:"Order Failed",[be.FullDeliveryFailure]:"Delivery Failure",[be.PartiallyDelivered]:"Partial Delivery Failure",[be.Refunded]:"Order Refunded",[be.Completed]:"Order Completed",[be.PartiallyRefunded]:"Partial Refund"},jD={[be.New]:"Your order has been created and is awaiting payment.",[be.Pending]:"Your order is currently pending. We recommend checking back shortly for confirmation.",[be.Processing]:"Your order is currently being processed. We are preparing your delivery - this usually only takes a short while.",[be.Expired]:"Your order has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[be.Cancelled]:"You canceled the warrant. If there are any problems, please contact support.",[be.Failed]:"Your order could not be processed due to a payment or system error. Please try again or contact support.",[be.FullDeliveryFailure]:"Your payment was successful but the product is currently out of stock. Please contact us below to get this sorted.",[be.PartiallyDelivered]:"Your payment was successful but some products were out of stock. Please contact us below to get this sorted.",[be.Refunded]:"Your order was refunded. Please check your payment method for confirmation.",[be.Completed]:"Your order has successfully been processed. View your products below or check your email for additional information.",[be.PartiallyRefunded]:"Your order was partially refunded. Please check your payment method for confirmation."},Wd=()=>({[be.Completed]:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"}),[be.Pending]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.Processing]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.New]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.Expired]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.Cancelled]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.Failed]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.FullDeliveryFailure]:i.jsx(N.Icon,{name:"Warning",fill:"var(--text-warning)"}),[be.PartiallyDelivered]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"}),[be.Refunded]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"}),[be.PartiallyRefunded]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"})}),Yd=({orderStatus:e,className:t})=>{var l,h;const{shopDomain:n}=g.useStorefrontStore(),{isAntistock:r,general:u}=g.useGeneralStore(),a=g.useNavigate(),s=!!((l=u==null?void 0:u.info)!=null&&l.disableSupport),o=(h=u==null?void 0:u.info)==null?void 0:h.thirdPartySupportUrl,c=!(s&&!o);return i.jsxs("div",{className:g.clx(on.orderStatusBlock,t,{[on.orderStatusBlockAntistock]:r}),children:[i.jsx("div",{className:on.iconWrapper,style:r?{background:"none"}:void 0,children:Wd()[e]}),i.jsx("h2",{className:on.orderStatusTitle,children:OD[e]}),i.jsx("p",{className:on.orderStatusDescription,children:jD[e]}),i.jsxs("div",{className:on.actionButtons,children:[i.jsx("div",{className:on.actionButton,children:i.jsxs(N.Button,{type:"Secondary",className:on.button,onClick:()=>window.open(`https://${n}`),style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),"Visit Website"]})}),c&&i.jsx("div",{className:on.actionButton,children:i.jsxs(N.Button,{type:"Secondary",className:on.button,onClick:()=>{s&&o?window.open(o):r?window.open(`https://${n}/support`):a("/contact")},style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ChatsTeardrop"}),"Contact Support"]})})]})]})},FD="_reviewMessage_1t8u4_1",BD="_leaveReviewContainer_1t8u4_11",HD="_leaveReviewTitle_1t8u4_20",Es={reviewMessage:FD,leaveReviewContainer:BD,leaveReviewTitle:HD},Gd=({review:e,orderId:t,className:n})=>{const[r,u]=L.useState((e==null?void 0:e.rating)||0),[a,s]=L.useState(!1),{setIsOpen:o}=g.useModalStore(),{notifications:c,setNotifications:l}=g.useNotificationStore(),h=async f=>{e&&"accessToken"in e&&(await M2({comment:f,rating:r,tsId:g.useGetTsId()},t,e.accessToken),l([...c,{status:"success",id:g.v4(),message:"Review left successfully"}]),s(!1))};return L.useEffect(()=>{e&&r&&"accessToken"in e&&!e.rating&&(o(!0),s(!0))},[r]),e?e.rating&&"accessToken"in e?i.jsxs("div",{className:Es.reviewMessage,children:["You left a ",e.rating," star rating"]}):i.jsxs("div",{className:g.clx(Es.leaveReviewContainer,n),children:[i.jsx("p",{className:Es.leaveReviewTitle,children:"Leave a review"}),i.jsx(_5,{rating:r,setRating:u,disabled:!!e.rating||!("accessToken"in e)}),a&&i.jsx(N.Modal,{close:()=>s(!1),children:i.jsx(Xd,{setIsOpen:s,onSubmit:h})})]}):null},UD="_bottomSheet_1bcyj_1",VD="_content_1bcyj_7",$D="_title_1bcyj_18",zD="_buttonGroup_1bcyj_22",qD="_buttonWrapper_1bcyj_33",ZD="_modal_1bcyj_37",WD="_header_1bcyj_44",Pn={bottomSheet:UD,content:VD,title:$D,buttonGroup:zD,buttonWrapper:qD,modal:ZD,header:WD},Xd=({setIsOpen:e,onSubmit:t})=>{const[n,r]=L.useState(""),{setIsOpen:u}=g.useModalStore(),a=()=>{u(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:Pn.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:Pn.header,children:[i.jsx("h3",{id:"h3",className:Pn.title,children:"Review Description"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Pn.bottomSheet,children:[i.jsx("div",{className:Pn.content,children:i.jsx(N.Textarea,{placeholder:"Great product and fast checkout...",value:n,onChange:s=>r(s),label:"Describe your review in detail below"})}),i.jsxs("div",{className:Pn.buttonGroup,children:[i.jsx("div",{className:Pn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:a,children:"Cancel"})}),i.jsx("div",{className:Pn.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",disabled:!n,onClick:()=>{a(),t(n)},children:"Submit"})})]})]})]})},YD="_container_1idhv_1",GD="_buttonGroup_1idhv_8",XD="_buttonWrapper_1idhv_15",KD="_header_1idhv_19",QD="_content_1idhv_28",er={container:YD,buttonGroup:GD,buttonWrapper:XD,header:KD,content:QD},JD="_modal_1rkmj_1",eL="_modalPayment_1rkmj_7",tL="_title_1rkmj_15",nL="_description_1rkmj_20",$u={modal:JD,modalPayment:eL,title:tL,description:nL},Zi=()=>i.jsxs("div",{className:g.clx($u.modal,$u.modalPayment),onClick:e=>e.stopPropagation(),children:[i.jsx(N.Loader,{style:{border:"4px solid var(--surface-action1)",borderLeftColor:"var(--surface-secondary)",width:"40px",height:"40px"}}),i.jsx("h2",{id:"h3",className:$u.title,children:"Processing Payment"}),i.jsx("p",{className:$u.description,children:"This payment is currently being processed. If you're here, it simply means that the payment was created but not complete."})]}),Kd=({setIsOpen:e})=>{const{subscription:t}=g.useSubscriptionStore(),{getTotalAndDiscount:n,cart:r,coupon:u}=hu(),[a,s]=L.useState(1),o=g.useNavigate(),{setIsOpen:c}=g.useModalStore(),{setNotifications:l,notifications:h}=g.useNotificationStore(),[f,m]=L.useState(!1),p=L.useMemo(()=>n(),[u,r]),b=L.useMemo(()=>p.totalWithDiscount?p.total-p.totalWithDiscount:0,[p]);if(f)return i.jsx(Zi,{});const _=(t==null?void 0:t.price.currency)||"USD",E=new Intl.NumberFormat("en-US",{style:"currency",currency:_});async function x(){var y;m(!0);try{const{data:D}=await w2((t==null?void 0:t.id)||"",{});l([{id:g.v4(),message:"Order created successfully",status:"success"}]),o(`/orders/${(y=D.data)==null?void 0:y.id}/${D.data.fullAccessToken}`)}catch(D){const S=D;l([...h,{id:g.v4(),message:`Order creation failed: ${S.message}`,status:"error"}]),k()}finally{m(!1)}}function k(){c(!1),setTimeout(()=>{e(!1)},300)}return i.jsxs("div",{className:er.container,onClick:y=>y.stopPropagation(),children:[i.jsxs("div",{className:er.header,children:[i.jsx("h3",{id:"h3",className:er.title,children:"Extend Subscription"}),i.jsx(N.Icon,{name:"X",onClick:k,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:er.content,children:[i.jsx(w5,{step:a,totalSteps:12,onStepChange:s,label:"How long would you like to extend your subscription for?"}),i.jsx(vr,{formatter:E,coupon:u,total:p.total,discount:b,totalWithDiscount:p.totalWithDiscount}),i.jsxs("div",{className:er.buttonGroup,children:[i.jsx("div",{className:er.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:k,children:"Cancel"})}),i.jsx("div",{className:er.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:x,children:"Extend"})})]})]})]})},rL="_bottomSheet_uw5jb_1",uL="_content_uw5jb_7",aL="_radioGroup_uw5jb_11",sL="_confirmation_uw5jb_26",iL="_iconWrapper_uw5jb_33",oL="_title_uw5jb_42",cL="_message_uw5jb_48",lL="_buttonGroup_uw5jb_54",dL="_buttonWrapper_uw5jb_64",fL="_modal_uw5jb_68",hL="_header_uw5jb_77",ut={bottomSheet:rL,content:uL,radioGroup:aL,confirmation:sL,iconWrapper:iL,title:oL,message:cL,buttonGroup:lL,buttonWrapper:dL,modal:fL,header:hL},pL={0:"Are you sure?",1:"Just making sure",2:"We're sorry to see you go"},Qd=({isOpen:e,setIsOpen:t,id:n,accessToken:r})=>{const[u,a]=L.useState(0),[s,o]=L.useState(!1),[c,l]=L.useState(""),[h,f]=L.useState(""),{setIsOpen:m}=g.useModalStore(),p=async()=>{if(!c)return;o(!0);const _=await S2(n,r,{reason:c==="Other reason"?h:c});o(!1),_&&a(2)};L.useEffect(()=>{e||(a(0),l(""),f(""))},[e]);const b=()=>{m(!1),setTimeout(()=>{t(!1)},300)};return i.jsxs("div",{className:ut.modal,onClick:_=>_.stopPropagation(),children:[i.jsxs("div",{className:ut.header,children:[i.jsx("h3",{id:"h3",children:pL[u]||""}),i.jsx(N.Icon,{name:"X",onClick:b,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:ut.content,children:[u===0&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsx("p",{children:"Before you cancel your subscription can you tell us why?"}),i.jsxs("div",{className:ut.radioGroup,children:[i.jsx(N.Radio,{defaultValue:c,onChange:_=>l(_),options:[{value:"Found another company",label:"Found another company"},{value:"Expensive",label:"Expensive"},{value:"Technical problems",label:"Technical problems"},{value:"Support problems",label:"Support problems"},{value:"Other reason",label:"Other reason"}],flexDirection:"column"}),c==="Other reason"&&i.jsx(N.Textarea,{value:h,onChange:_=>f(_),placeholder:"Describe the reason..."})]}),i.jsxs("div",{className:ut.buttonGroup,children:[i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Stay with us"})}),i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:()=>c&&a(1),disabled:!c,children:"Continue"})})]})]}),u===1&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsx("p",{children:"You'll lose access to all of the features and content available within this subscription."}),i.jsxs("div",{className:ut.buttonGroup,children:[i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Stay with us"})}),i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:p,disabled:s,children:"Cancel it anyway"})})]})]}),u===2&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsxs("div",{className:`${ut.confirmation}`,children:[i.jsx("div",{className:ut.iconWrapper,children:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"})}),i.jsx("p",{className:ut.title,children:"Subscription Cancelled"}),i.jsx("p",{className:ut.message,children:"You'll lose access to all of the features and content available within this subscription."})]}),i.jsx("div",{className:ut.buttonGroup,children:i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Close"})})})]})]})]})},mL="_vouchCard_ntutv_1",gL="_vouchContent_ntutv_13",bL="_vouchIcon_ntutv_20",_L="_vouchText_ntutv_29",xL="_vouchTitle_ntutv_35",CL="_vouchDescription_ntutv_42",EL="_addMessageButton_ntutv_48",yL="_vouchCardSubmitted_ntutv_53",Nt={vouchCard:mL,vouchContent:gL,vouchIcon:bL,vouchText:_L,vouchTitle:xL,vouchDescription:CL,addMessageButton:EL,vouchCardSubmitted:yL},Jd=({onAddMessage:e,className:t,isVouchLeft:n=!1})=>n?i.jsx("div",{className:`${Nt.vouchCard} ${Nt.vouchCardSubmitted} ${t||""}`,children:i.jsxs("div",{className:Nt.vouchContent,children:[i.jsx("div",{className:Nt.vouchIcon,children:i.jsx(N.Icon,{name:"Check"})}),i.jsxs("div",{className:Nt.vouchText,children:[i.jsx("h3",{className:Nt.vouchTitle,children:"Thank You"}),i.jsx("p",{className:Nt.vouchDescription,children:"We appreciate you sharing your experience with your purchase."})]})]})}):i.jsxs("div",{className:`${Nt.vouchCard} ${t||""}`,children:[i.jsxs("div",{className:Nt.vouchContent,children:[i.jsx("div",{className:Nt.vouchIcon,children:i.jsx(N.Icon,{name:"Star"})}),i.jsxs("div",{className:Nt.vouchText,children:[i.jsx("h3",{className:Nt.vouchTitle,children:"Leave a Vouch"}),i.jsx("p",{className:Nt.vouchDescription,children:"Share your experience with our team."})]})]}),i.jsx(N.Button,{type:"Secondary",onClick:e,className:Nt.addMessageButton,children:"Add Message"})]}),TL="_vouchModal_19vu5_1",kL="_vouchModalAntistock_19vu5_12",AL="_vouchModalHeader_19vu5_17",SL="_title_19vu5_25",IL="_closeButton_19vu5_32",NL="_vouchModalContent_19vu5_46",vL="_bottomSheet_19vu5_53",wL="_content_19vu5_61",DL="_productContainer_19vu5_65",LL="_searchContainer_19vu5_73",PL="_scrollableBox_19vu5_77",RL="_productItem_19vu5_87",ML="_productImage_19vu5_97",OL="_productName_19vu5_119",jL="_productItemError_19vu5_125",FL="_noResults_19vu5_130",BL="_fieldError_19vu5_140",HL="_vouchForm_19vu5_145",UL="_formField_19vu5_151",VL="_vouchModalFooter_19vu5_312",$L="_submitButton_19vu5_317",Ye={vouchModal:TL,vouchModalAntistock:kL,vouchModalHeader:AL,title:SL,closeButton:IL,vouchModalContent:NL,bottomSheet:vL,content:wL,productContainer:DL,searchContainer:LL,scrollableBox:PL,productItem:RL,productImage:ML,productName:OL,productItemError:jL,noResults:FL,fieldError:BL,vouchForm:HL,formField:UL,vouchModalFooter:VL,submitButton:$L},e2=({isOpen:e,onClose:t,products:n,orderId:r,accessToken:u,shopDomain:a,onSuccess:s})=>{const{isAntistock:o}=g.useGeneralStore(),{setNotifications:c,notifications:l}=g.useNotificationStore(),{setIsOpen:h}=g.useModalStore(),[f,m]=L.useState(null),[p,b]=L.useState(""),[_,E]=L.useState(""),[x,k]=L.useState(n.map(Y=>Y.id.toString())),[y,D]=L.useState(!1),[S,I]=L.useState({}),M=L.useRef(null),H=L.useRef(null),U=L.useRef(null),P=L.useMemo(()=>_.trim()?new nl.Fuse(n,{keys:["name"],threshold:.3}).search(_).map(K=>K.item):n,[n,_]),B=Y=>{k(K=>K.includes(Y)&&K.length===1?K:K.includes(Y)?K.filter(ue=>ue!==Y):[...K,Y]),I(K=>({...K,selectedProducts:void 0}))},O=async()=>{var K;I({});const Y={};if(x.length===0&&(Y.selectedProducts="Please select at least one product"),f||(Y.image="Please upload a screenshot"),p.trim()||(Y.message="Please enter a message"),Object.keys(Y).length>0){I(Y),setTimeout(()=>{Y.selectedProducts&&M.current?M.current.scrollIntoView({behavior:"smooth",block:"center"}):Y.image&&H.current?H.current.scrollIntoView({behavior:"smooth",block:"center"}):Y.message&&U.current&&U.current.scrollIntoView({behavior:"smooth",block:"center"})},100);return}if(!r||!u||!a||!f){c([...l,{id:g.v4(),message:"Missing required information",status:"error"}]);return}D(!0);try{const ue={imageId:parseInt(f.id),productIds:x.map(ae=>parseInt(ae)),comment:p.trim(),tsId:g.v4()};await Z2(ue,a,r,u),c([...l,{id:g.v4(),message:"Vouch submitted successfully",status:"success"}]),s==null||s(),t()}catch(ue){console.log({error:ue});let ae="Failed to submit vouch",se="";const _e=ue;if((K=_e==null?void 0:_e.response)!=null&&K.data){const C=_e.response.data;C.message&&C.errors&&Array.isArray(C.errors)?(se=C.message,ae=C.errors.join(", ")):C.errors&&Array.isArray(C.errors)?ae=C.errors.join(", "):C.message&&(ae=C.message)}else ue instanceof Error&&(ae=ue.message);c([...l,{id:g.v4(),message:ae,status:"error",label:se}])}finally{D(!1)}},X=()=>{b(""),m(null),E(""),k(n.map(Y=>Y.id.toString())),I({}),t()};return L.useEffect(()=>{e&&k(n.map(Y=>Y.id.toString()))},[e]),L.useEffect(()=>{e&&h(!0)},[e,h]),e?i.jsx(N.Modal,{close:X,withAnimation:!o,children:i.jsxs("div",{className:g.clx(Ye.vouchModal,{[Ye.vouchModalAntistock]:o}),onClick:Y=>Y.stopPropagation(),children:[i.jsxs("div",{className:Ye.vouchModalHeader,children:[i.jsx("h3",{className:Ye.title,children:"Vouch"}),i.jsx("button",{className:Ye.closeButton,onClick:X,children:i.jsx(N.Icon,{name:"X"})})]}),i.jsxs("div",{className:Ye.vouchModalContent,children:[i.jsx("div",{className:Ye.bottomSheet,children:i.jsxs("div",{className:Ye.content,children:[i.jsxs("div",{className:Ye.productContainer,children:[i.jsx("div",{className:Ye.searchContainer,children:i.jsx(N.Input,{onChange:E,isSearch:!0,value:_,placeholder:"Search for products",label:"Products *"})}),i.jsx("div",{ref:M,className:Ye.scrollableBox,children:P.length>0?P.map(Y=>i.jsxs("div",{className:g.clx(Ye.productItem,{[Ye.productItemError]:S.selectedProducts&&!x.includes(Y.id.toString())}),onClick:()=>B(Y.id.toString()),children:[i.jsx("div",{className:Ye.productImage,children:Y.image?i.jsx("img",{src:g.convertCfImageIdToUrl(Y.image.cfId),alt:Y.name}):i.jsx(N.Icon,{name:"Image"})}),i.jsx("span",{className:Ye.productName,children:Y.name}),i.jsx("div",{onClick:K=>K.stopPropagation(),children:i.jsx(N.Checkbox,{value:x.includes(Y.id.toString()),onChange:()=>B(Y.id.toString()),disabled:x.length===1&&x.includes(Y.id.toString())})})]},Y.id)):i.jsx("div",{className:Ye.noResults,children:i.jsx("p",{children:"No products found"})})}),S.selectedProducts&&i.jsx("div",{className:Ye.fieldError,children:S.selectedProducts})]}),i.jsxs("div",{className:Ye.vouchForm,children:[i.jsx("div",{className:Ye.formField,ref:H,children:i.jsx(N.ImagesLoader,{images:f,onChange:Y=>{m(Y),S.image&&I(K=>({...K,image:void 0}))},multiple:!1,label:"Screenshot",required:!0,showImageLoading:!0})}),i.jsxs("div",{className:Ye.formField,ref:U,children:[i.jsx(N.Textarea,{label:"Message *",value:p,onChange:b,placeholder:"Instant product delivery, paid with balance...",error:S.message,maxLength:150}),S.message&&i.jsx("div",{className:Ye.fieldError,children:S.message})]})]})]})}),i.jsx("div",{className:Ye.vouchModalFooter,children:i.jsx(N.Button,{type:"Primary",onClick:O,disabled:y,className:Ye.submitButton,children:y?i.jsx(N.Loader,{}):"LEAVE A VOUCH"})})]})]})}):null},zL="_modalContent_1a05n_1",qL="_iconContainer_1a05n_16",ZL="_warningIcon_1a05n_20",WL="_title_1a05n_25",YL="_description_1a05n_33",GL="_buttonContainer_1a05n_40",XL="_button_1a05n_40",Tn={modalContent:zL,iconContainer:qL,warningIcon:ZL,title:WL,description:YL,buttonContainer:GL,button:XL},t2=({isOpen:e,onClose:t,refundedAmount:n,currency:r})=>{var E,x;const u=g.useNavigate(),{token:a,shopDomain:s}=g.useStorefrontStore(),{isAntistock:o,general:c}=g.useGeneralStore(),l=!!((E=c==null?void 0:c.info)!=null&&E.disableSupport),h=(x=c==null?void 0:c.info)==null?void 0:x.thirdPartySupportUrl,f=!(l&&!h),m=new Intl.NumberFormat("en-US",{style:"currency",currency:r}),p=()=>{u(o?"/account":"/customer-dash")},b=async()=>{if(l&&h){window.open(h);return}o?window.open(`https://${s}/support`):u("/contact")},_=()=>{t()};return e?i.jsx(N.Modal,{close:t,children:i.jsxs("div",{className:Tn.modalContent,onClick:k=>k.stopPropagation(),children:[i.jsx("div",{className:Tn.iconContainer,children:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)",className:Tn.warningIcon})}),i.jsx("h2",{className:Tn.title,children:"Partial Delivery Failure Refund"}),i.jsxs("p",{className:Tn.description,children:["Your payment was successful but a few products were out of stock. We've automatically refunded the products that were out of stock, with a total of"," ",m.format(n),", to your account balance."]}),i.jsxs("div",{className:Tn.buttonContainer,children:[!a&&i.jsx(N.Button,{type:"Secondary",onClick:p,className:Tn.button,children:"Login"}),f&&i.jsx(N.Button,{type:"Secondary",onClick:b,className:Tn.button,children:"Contact Support"}),i.jsx(N.Button,{type:"Primary",onClick:_,className:Tn.button,children:"Continue"})]})]})}):null},KL=Object.freeze(Object.defineProperty({__proto__:null,ActivePaymentMethod:zd,ActiveSubscriptionProduct:qd,Auth:da,AuthLogin:Ul,AuthModal:t0,AuthRequestOtp:Hl,CHARGE_STATUS_DESCRIPTION:Ld,CHARGE_STATUS_DISPLAY_NAME:nr,CancelSubscription:Qd,CashAppVerify:jd,ChangeSubscriptionPlan:Ud,ChargeBlocksRenderer:aa,ChargeItems:Od,ChargeStatusBlock:Rd,CheckoutBalancePaymentMethod:ai,CheckoutFooter:zn,CheckoutHeader:ma,CheckoutItems:Kl,CheckoutOperational:wd,CheckoutOrderMainData:zi,CheckoutPaymentMethod:si,CheckoutPrices:vr,CheckoutProduct:ga,ChoosePlanUpgradeMethod:Zd,ConnectDiscord:e0,CustomField:Jl,CustomFields:Ql,CustomerDashboard:h6,LeaveAReview:Gd,NoItemsBlock:ha,OpenDelivery:Dd,OrderStatusBlock:Yd,OrdersTable:Zl,PageLoading:dw,PageTitle:fa,Pagination:Wl,PaginationWithRange:mu,PayPalFFNote:Md,PaymentMethods:ii,ProcessingPaymentModal:Zi,ProtectYourCheckout:vd,ReferralBlock:Vl,ReferralBlockInfo:zl,ReferralBlockSteps:$l,RefundNotificationModal:t2,SecuredBySsl:Ri,Sidebar:fl,SkeletonReferralBlock:ql,StatItem:vt,StatusIndicator:Gl,StatusVariant:In,SubmitReview:Xd,SubscriptionCoupon:$d,SubscriptionExpiration:Kd,SubscriptionExpirationDate:Vd,SubscriptionProduct:Hd,SubscriptionStatusBadge:qi,SubscriptionsTable:Bd,Table:pa,TableItem:ot,TableItemTitle:Pt,TermsOfService:Pi,TicketRow:Fd,TrackPayment:Ma,VouchCard:Jd,VouchModal:e2,getChargeStatusIcon:Pd,getOrderStatusIcon:Wd,getPaginationText:Yl},Symbol.toStringTag,{value:"Module"})),QL="_chargePageContainer_1azbl_1",JL="_chargeItems_1azbl_14",eP="_mainContent_1azbl_25",tP="_contentWrapper_1azbl_44",nP="_antistockContent_1azbl_53",rP="_statusBlock_1azbl_58",uP="_statusBlockAntistock_1azbl_63",aP="_notPaidSection_1azbl_68",sP="_antistockPayNow_1azbl_82",iP="_antistockFooter_1azbl_86",oP="_antistockTrackPayment_1azbl_96",cP="_footer_1azbl_106",lP="_loaderContainer_1azbl_128",Ft={chargePageContainer:QL,chargeItems:JL,mainContent:eP,contentWrapper:tP,antistockContent:nP,statusBlock:rP,statusBlockAntistock:uP,notPaidSection:aP,antistockPayNow:sP,antistockFooter:iP,antistockTrackPayment:oP,footer:cP,loaderContainer:lP},dP=()=>{const{id:e}=g.useParams(),[t,n]=g.useSearchParams(),[r,u]=L.useState(!1),[a,s]=L.useState(),[o,c]=L.useState(!0),l=g.useNavigate(),h=L.useRef(),f=L.useRef(!1),{setIsOpen:m}=g.useModalStore(),{isAntistock:p}=g.useGeneralStore();return L.useEffect(()=>{const b=async(E,x=!1)=>{x||u(!0);const{data:k}=await O2(E);u(!1),s(k)},_=setInterval(()=>{e&&b(e,!0)},5e3);return e&&b(e),()=>{clearInterval(_)}},[]),L.useEffect(()=>{const b=setTimeout(()=>{var E;console.log("charge timeout",a);const _=t.get("redirectRoute");if((a==null?void 0:a.status)===ke.Paid&&a.redirectUrl&&!h.current){const k=JSON.parse(localStorage.getItem("orders")||"{}")[((E=a==null?void 0:a.order)==null?void 0:E.id)||""];k?window.open(k.fullAccessToken?`${a.redirectUrl}/${k.fullAccessToken}`:`${a.redirectUrl}`,"_self"):window.open(a.redirectUrl,"_self")}(a==null?void 0:a.status)===ke.Paid&&h.current&&(console.log("redirectRouteRef.current",h.current),l(h.current,{replace:!0})),_&&h&&(h.current=_,t.delete("redirectRoute"),n(t))},1e3);return()=>clearTimeout(b)},[a]),L.useEffect(()=>{((a==null?void 0:a.gateway)==="PayPalFF"||(a==null?void 0:a.gateway)==="Сashapp")&&m(!0)},[a]),L.useEffect(()=>{var b;if(a!=null&&a.displayPaymentInfo&&a.displayPaymentInfo.length===1&&a.status===ke.NotPaid&&!f.current){const _=a.displayPaymentInfo[0];_.type==="Button"&&((b=_.props)!=null&&b.url)&&(window.open(_.props.url,"_blank"),f.current=!0)}},[a==null?void 0:a.displayPaymentInfo,a==null?void 0:a.status]),r?i.jsx("div",{className:Ft.loaderContainer,children:i.jsx(N.Loader,{})}):i.jsxs("div",{className:Ft.chargePageContainer,children:[i.jsx("div",{className:Ft.chargeItems,children:i.jsx(Od,{charge:a})}),i.jsx("div",{className:Ft.mainContent,style:p?{borderLeft:"1px solid var(--border-secondary)"}:void 0,children:i.jsxs("div",{className:g.clx(Ft.contentWrapper,{[Ft.antistockContent]:p}),children:[a&&(a==null?void 0:a.status)!==ke.NotPaid&&i.jsx(Rd,{charge:a}),a&&i.jsxs("div",{className:g.clx(Ft.statusBlock,{[Ft.statusBlockAntistock]:p}),children:[i.jsx(zi,{lastUpdate:a.expiresAt,email:a.customerForCharge.email,invoiceId:a.id,paymentType:a.gateway}),p&&(a==null?void 0:a.status)===ke.NotPaid&&i.jsx("div",{className:Ft.antistockPayNow,children:a==null?void 0:a.displayPaymentInfo.map((b,_)=>i.jsx(aa,{block:b},_))}),p&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:Ft.antistockTrackPayment,children:i.jsx(Ma,{timeline:a.timeline})}),i.jsx(zn,{className:Ft.antistockFooter})]})]}),!p&&(a==null?void 0:a.status)===ke.NotPaid&&i.jsx("div",{className:Ft.notPaidSection,children:a==null?void 0:a.displayPaymentInfo.map((b,_)=>i.jsx(aa,{block:b},_))}),!p&&i.jsx(zn,{className:Ft.footer})]})}),(a==null?void 0:a.gateway)==="PayPalFF"&&o&&i.jsx(N.Modal,{close:()=>c(!1),children:i.jsx(Md,{price:a.price,setIsOpen:c})}),(a==null?void 0:a.gateway)==="Сashapp"&&o&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(jd,{setIsOpen:c,chargeId:a.id})})]})},fP=Object.freeze(Object.defineProperty({__proto__:null,ChargePage:dP},Symbol.toStringTag,{value:"Module"}));exports.ActivePaymentMethod=zd;exports.ActiveSubscriptionProduct=qd;exports.BalanceModal=El;exports.ChangeSubscriptionPlan=Ud;exports.ChargeStatus=ke;exports.CheckoutFooter=zn;exports.CheckoutHeader=ma;exports.CheckoutItems=Kl;exports.CheckoutOperational=wd;exports.CheckoutOrderMainData=zi;exports.CheckoutPrices=vr;exports.CheckoutProduct=ga;exports.LeaveAReview=Gd;exports.Markdown=Aa;exports.MarkdownText=$i;exports.NoItemsBlock=ha;exports.OrderStatus=be;exports.OrderStatusBlock=Yd;exports.OrdersTable=Zl;exports.PageSize=Yu;exports.PageTitle=fa;exports.PaginationWithRange=mu;exports.ReCaptchaProvider=ni;exports.RefundNotificationModal=t2;exports.StableText=ll;exports.SubscriptionCoupon=$d;exports.SubscriptionExpirationDate=Vd;exports.SubscriptionProduct=Hd;exports.SubscriptionsTable=Bd;exports.Table=pa;exports.TableItemTitle=Pt;exports.TicketRow=Fd;exports.TrackPayment=Ma;exports.VouchCard=Jd;exports.VouchModal=e2;exports.auth=F2;exports.fetchAuthorizedOrder=x2;exports.fetchGeneral=u2;exports.fetchOrder=_2;exports.fetchOrders=b2;exports.fetchPrivacyPolicy=m2;exports.fetchRefundPolicy=p2;exports.fetchSubscription=k2;exports.fetchSubscriptions=N2;exports.fetchTerms=h2;exports.fetchThemeAndSettings=a2;exports.fetchTicket=D2;exports.fetchTickets=P2;exports.getBalance=oa;exports.getBalanceSettings=dl;exports.getGatewaysDetail=fu;exports.index=KL;exports.index$1=fP;exports.parseDraftJsText=Nd;exports.recapcha=Tp;exports.rehypeRaw=Li;exports.remarkGfm=ki;exports.sendTicketMessage=L2;exports.uploadImage=E2;exports.useCart=hu;exports.useCopy=Zn;exports.useGeneralInfo=wl;exports.useMarkdownIt=Sd;exports.useReCaptcha=pu;
|
|
114
|
+
`)),a}function kI(e,t){t=t||{};var n="";return e.blocks.forEach(function(r,u){n+=TI(r,u,e,t)}),jn={},n}var Id=[];for(var Jc=0;Jc<256;Jc++)Id.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Id[e.charCodeAt(0)]=1});function Ra(e,t){return e=e.source,t=t||"",function n(r,u){return r?(u=u.source||u,e=e.replace(r,u),n):new RegExp(e,t)}}var AI=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,SI=/[^"'=<>`\x00-\x20]+/,II=/'[^']*'/,NI=/"[^"]*"/,vI=Ra(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",SI)("single_quoted",II)("double_quoted",NI)(),wI=Ra(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",AI)("attr_value",vI)(),DI=Ra(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",wI)(),LI=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,PI=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,RI=/<[?].*?[?]>/,MI=/<![A-Z]+\s+[^>]*>/,OI=/<!\[CDATA\[[\s\S]*?\]\]>/;Ra(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",DI)("close_tag",LI)("comment",PI)("processing",RI)("declaration",MI)("cdata",OI)();const Nd=e=>{try{const t=JSON.parse(e);return kI(t,{styleItems:{UNDERLINE:{open:()=>"<u>",close:()=>"</u>"}}})}catch{return e}},$i=({text:e})=>{const t=Sd(),n=Nd(e),r=t.render(n);return i.jsx("div",{className:"markdown-text",dangerouslySetInnerHTML:{__html:r}})},el=(e,t,n)=>e+n*t/100,jI=e=>{if(!e)return!0;try{const t=JSON.parse(e);if(t.blocks&&Array.isArray(t.blocks))return!t.blocks.some(n=>n.text?n.text.replace(/[\s\u00A0\u2000-\u200F\u2028-\u202F\u205F-\u206F\u3000\u3164]/g,"").length>0:!1)}catch{return e.replace(/[\s\u00A0\u2000-\u200F\u2028-\u202F\u205F-\u206F\u3000\u3164]/g,"").length===0}return!1},vd=({config:e,totalAmount:t,selected:n,onSelect:r,onBack:u,formatter:a})=>{if(!e)return null;const{priorityReplacement:s,standardReplacement:o}=e,c=!!(s!=null&&s.enabled),l=!!(o!=null&&o.enabled),f=[{key:"PRIORITY",title:(s==null?void 0:s.name)||"Priority Replacement",desc:(s==null?void 0:s.description)||"",price:el((s==null?void 0:s.fixedFee)||0,(s==null?void 0:s.feePercentage)||0,t),isPriority:!0,visible:c&&(!l||l)},{key:"STANDARD",title:(o==null?void 0:o.name)||"Standard Replacement",desc:(o==null?void 0:o.description)||"",price:el((o==null?void 0:o.fixedFee)||0,(o==null?void 0:o.feePercentage)||0,t),isPriority:!1,visible:c&&l?!0:l},{key:"NONE",title:"No Replacements",desc:i.jsxs(i.Fragment,{children:[i.jsx("p",{children:"• No guaranteed refunds or replacements."}),i.jsx("p",{children:"• No priority support."}),i.jsx("p",{children:"• No dedicated buyer resolution team."})]}),price:0,isPriority:!1,visible:c&&!l}].filter(m=>m.visible);return i.jsxs("div",{className:Yt.container,children:[i.jsxs("div",{className:Yt.header,children:[i.jsx("button",{type:"button",className:Yt.backButton,onClick:u,"aria-label":"Back to payment methods",children:"←"}),i.jsx("h4",{className:Yt.title,children:"Protect Your Checkout"})]}),i.jsx("div",{className:Yt.cards,children:f.map(m=>i.jsxs("div",{className:g.clx(Yt.card,{[Yt.selected]:n===m.key,[Yt.prioritySelected]:n==="PRIORITY"&&m.isPriority}),onClick:()=>r(m.key),role:"button",tabIndex:0,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&r(m.key)},children:[i.jsx("div",{className:Yt.title,children:m.title}),i.jsx("div",{className:Yt.price,children:a.format(m.price)}),typeof m.desc=="string"?!jI(m.desc)&&i.jsx("div",{className:Yt.description,children:i.jsx($i,{text:m.desc})}):i.jsx("div",{className:Yt.description,children:m.desc})]},m.key))})]})},wd=({getPossibleGateways:e,setGateway:t,getDiscordSettings:n,cart:r,products:u,submitCart:a,reset:s,setCustomFieldsToCart:o,totalAndDiscount:c,setDiscordSocialConnectId:l,setPaymentMethod:h,isAntistock:f})=>{var pe,Qe;const m=L.useMemo(()=>n(),[]),[p,b]=L.useState([]),{balance:_,setBalance:E}=g.useCustomerDashboardStore(),{token:x}=g.useStorefrontStore(),{general:k}=g.useGeneralStore(),{executeRecaptcha:y}=pu(),{discordInfo:D}=g.useDiscordStore(),{customerEmail:S,setCustomerEmail:I,setUsePriorityReplacement:M,setReplacementConfig:H}=g.useCartStore(),U=D!=null&&D.authorized?D.id:void 0,P=g.useNavigate(),B=L.useMemo(()=>e(),[r.parts]),[O,X]=L.useState(null),[Y,K]=L.useState(!1),[ue,ae]=L.useState(null),se=!!((pe=O==null?void 0:O.priorityReplacement)!=null&&pe.enabled),_e=Y&&se,[C,V]=L.useState(!1),{setIsOpen:te}=g.useModalStore(),{notifications:v,setNotifications:J}=g.useNotificationStore();L.useEffect(()=>{const ke=eo(r.parts,u).map(ee=>ee.type===Sn.Checkbox?{...ee,value:String(ee.defaultValue)}:ee);b([...ke])},[]),L.useEffect(()=>{const Ce=eo(r.parts,u);b(ke=>{const ee=new Map(ke.map(ge=>[ge.name,ge]));return Ce.map(ge=>{const mt=ee.get(ge.name);return mt&&mt.value?{...ge,value:mt.value}:ge.type===Sn.Checkbox?{...ge,value:String(ge.defaultValue)}:ge})})},[r.parts,u]),L.useEffect(()=>{x&&(async()=>{const ke=await oa();E(ke)})()},[x]);function ne(Ce){return Ce&&/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(Ce)}const Q=()=>{const Ce=[];return p.forEach(ke=>{var ee;ke.required&&(ke.type===Sn.Checkbox?ke.value!=="true"&&Ce.push({message:`Field "${ke.name}" is required.`,status:"error",id:g.v4()}):(ee=ke.value)!=null&&ee.toString().trim()||Ce.push({message:`Field "${ke.name}" is required.`,status:"error",id:g.v4()}))}),Ce.length>0?(J([...v,...Ce]),!1):!0},de=async Ce=>{var mt,gt,Zt,At;if(Ce.stopPropagation(),r.gateway==="Balance"&&!x){te(!0),V(!0);return}if(!Q())return;const ke=!!(O&&((mt=O.priorityReplacement)!=null&&mt.enabled));if(ke&&!_e){K(!0),ue===null&&((gt=O==null?void 0:O.priorityReplacement)!=null&>.enabled)&&(ae("PRIORITY"),M(!0));return}ke||(Zt=O==null?void 0:O.standardReplacement)!=null&&Zt.enabled&&!((At=O==null?void 0:O.priorityReplacement)!=null&&At.enabled)&&(ue===null&&ae("STANDARD"),M(!1));const ee=Object.fromEntries(p.map($e=>[$e.name,$e.value||""]));o({...ee}),U&&m.isEnabled&&l(U);const ge=await y();if(ge){const $e=await a(ge),j=JSON.parse(localStorage.getItem("orders")||"{}");if(Object.keys(j).length>10){const W=Date.now()-864e5;Object.keys(j).forEach(fe=>{j[fe].createdAt<=W&&delete j[fe]})}"order"in $e?j[$e.order.id]={createdAt:Date.now(),fullAccessToken:$e.order.fullAccessToken}:j[$e.id]={createdAt:Date.now(),fullAccessToken:$e.fullAccessToken},localStorage.setItem("orders",JSON.stringify(j)),P(`/orders/${"order"in $e?$e.order.id:$e.id}/${"order"in $e?$e.order.fullAccessToken:$e.fullAccessToken}`),setTimeout(()=>s(),2e3)}};L.useEffect(()=>{const Ce=[...B.availableGateways,...B.requiresSignInGateways];if(!Ce.length)return;let ke=!1;return(async()=>{try{const{data:ee}=await sl(Ce);if(ke)return;let ge=null;Array.isArray(ee)||(ee&&ee.replacement?ge=ee.replacement:((ee==null?void 0:ee.priorityReplacement)!==void 0||(ee==null?void 0:ee.standardReplacement)!==void 0)&&(ge={priorityReplacement:ee.priorityReplacement,standardReplacement:ee.standardReplacement})),X(ge),H(ge)}catch{}})(),()=>{ke=!0}},[B.availableGateways.join(","),B.requiresSignInGateways.join(",")]),L.useEffect(()=>{var ee,ge;if(!O)return;const Ce=!!((ee=O.priorityReplacement)!=null&&ee.enabled),ke=!!((ge=O.standardReplacement)!=null&&ge.enabled);!Ce&&ke&&(ae("STANDARD"),M(!1),K(!1))},[O]);const le=Ce=>{ae(Ce),M(Ce==="PRIORITY"?!0:Ce==="STANDARD"?!1:void 0)},ie=L.useMemo(()=>{const Ce=r.parts[0];if(!Ce)return"USD";const ke=u.find(ge=>ge.id===Ce.productId),ee=ke==null?void 0:ke.variants.find(ge=>ge.id===Ce.productVariantId);if(ee!=null&&ee.gateways&&r.gateway){const ge=ee.gateways.find(mt=>mt.name===r.gateway&&mt.overrodePrice);if(ge!=null&&ge.overrodePrice)return ge.overrodePrice.currency}return(ee==null?void 0:ee.price.currency)||"USD"},[r.parts,r.gateway,u]),xe=L.useMemo(()=>new Intl.NumberFormat("en-US",{style:"currency",currency:ie}),[ie]),ze=((Qe=k==null?void 0:k.info)==null?void 0:Qe.customerAccountSettings)??"OPTIONAL",G=ze==="REQUIRED"&&!x,pt=c.totalWithDiscount??c.total,oe=r.gateway==="Balance"&&!!_&&_.amount<pt;return i.jsxs("div",{className:g.clx(ft.checkoutOperational,{[ft.checkoutOperationalAntistock]:f}),children:[i.jsxs("div",{className:`${ft.innerContainer} ${f?ft.innerContainerAntistock:""}`,children:[f&&!_e&&!G?i.jsx("h4",{style:{fontSize:"var(--input-label-size)",color:"var(--text-secondary)",paddingBottom:"12px",fontWeight:"400"},children:"Select Payment Method"}):null,r.parts.length>0&&!_e&&(G?i.jsx("div",{className:ft.loginSection,children:i.jsx(da,{onSignIn:()=>{}})}):i.jsx(ii,{possibleGateways:B,setGateway:t,setPaymentMethod:h,balance:_,totalAndDiscount:c,onSignInClick:()=>{V(!0),te(!0)},isAntistock:f,hideBalance:ze==="DISABLED"})),_e?i.jsx("div",{style:{marginTop:"12px"},children:i.jsx(vd,{config:O,totalAmount:c.totalWithDiscount??c.total,selected:ue,onSelect:le,onBack:()=>K(!1),formatter:xe})}):null,!_e&&!G&&i.jsx("div",{className:g.clx(ft.paymentMethodsSection,{[ft.antistock]:f,[ft.paymentMethodsSectionAntistock]:f}),children:i.jsx(N.Input,{placeholder:"your@email.com",value:S||"",onChange:Ce=>I(Ce),disabled:!!x,label:"Email Address"})}),!_e&&i.jsx(Ql,{customFields:p,setCustomFields:b}),m.isEnabled&&!_e&&i.jsxs("div",{className:ft.socialConnectSection,children:[i.jsx("p",{className:ft.socialConnectLabel,id:"md",children:"Social Connect"}),i.jsx("div",{className:ft.socialConnectContent,children:i.jsx(e0,{customerEmail:S||""})})]}),G?null:i.jsxs("div",{className:`${ft.continueButton} ${f?ft.continueButtonAntistock:""}`,children:[i.jsx(N.Button,{onClick:de,disabled:G||!r.gateway||!ne(S||"")||m.isRequired&&!(D!=null&&D.authorized)||oe,className:ft.button,children:"Continue to Checkout"}),_e?i.jsxs("div",{style:{marginTop:"1rem",display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("div",{className:ft.iconWrapper,children:i.jsx(N.Icon,{name:"Shield",fill:"var(--text-secondary)"})}),i.jsxs("p",{style:{color:"var(--text-secondary)",fontSize:"14px"},children:["Protected by ",(k==null?void 0:k.info.name)||"Shop"," Buyer Protection"]})]}):i.jsxs(i.Fragment,{children:[i.jsx(Pi,{}),i.jsx(Ri,{isAntistock:f})]})]}),!_e&&!G&&i.jsx(zn,{className:`${ft.checkoutFooter} ${f?ft.checkoutFooterAntistock:""}`})]}),C&&i.jsx(N.Modal,{close:()=>V(!1),children:i.jsx(t0,{setIsOpen:V})})]})},FI="_bottomSheet_1a6cu_1",BI="_title_1a6cu_8",HI="_contentTitle_1a6cu_12",UI="_contentText_1a6cu_16",VI="_discordMessageTitle_1a6cu_20",$I="_content_1a6cu_12",zI="_section_1a6cu_27",qI="_copyButton_1a6cu_32",ZI="_scrollableBox_1a6cu_37",WI="_scrollableBoxAntistock_1a6cu_47",YI="_discordMessage_1a6cu_20",GI="_link_1a6cu_61",XI="_buttonGroup_1a6cu_68",KI="_buttonWrapper_1a6cu_80",QI="_modal_1a6cu_84",JI="_modalAntistock_1a6cu_91",eN="_header_1a6cu_96",tN="_copyButtonAntistock_1a6cu_104",at={bottomSheet:FI,title:BI,contentTitle:HI,contentText:UI,discordMessageTitle:VI,content:$I,section:zI,copyButton:qI,scrollableBox:ZI,scrollableBoxAntistock:WI,discordMessage:YI,link:GI,buttonGroup:XI,buttonWrapper:KI,modal:QI,modalAntistock:JI,header:eN,copyButtonAntistock:tN},Dd=({setIsOpen:e,deliveryConfiguration:t})=>{const n=Zn(),r=t.type===Pe.Discord,{setIsOpen:u}=g.useModalStore(),{isAntistock:a}=g.useGeneralStore(),s=t.type===Pe.Serial?t.deliveryItems.map(c=>c.serialKey).join(`
|
|
115
|
+
`):t.deliveryItems[0].textData,o=()=>{u(!1),a?e(!1):setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:g.clx(at.modal,{[at.modalAntistock]:a}),onClick:c=>c.stopPropagation(),children:[i.jsxs("div",{className:at.header,children:[i.jsx("h3",{id:"h3",className:at.title,children:a?"View Content":"Thank you for the purchase!"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:o,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:at.bottomSheet,children:[i.jsx("div",{className:at.content,children:r?i.jsx("div",{className:at.discordMessage,children:i.jsx("p",{className:at.discordMessageTitle,id:"md",children:"Discord role has been granted"})}):i.jsxs("div",{children:[i.jsxs("div",{className:at.section,children:[!a&&i.jsx("p",{className:at.contentTitle,id:"md",children:"Content"}),!a&&i.jsxs(N.Button,{className:at.copyButton,type:"Secondary",onClick:()=>n(s),children:[i.jsx(N.Icon,{name:"Copy"}),"Copy to Clipboard"]})]}),i.jsx("div",{className:g.clx(at.scrollableBox,{[at.scrollableBoxAntistock]:a}),children:i.jsx("p",{className:at.contentText,id:"md",children:a?i.jsx($i,{text:s}):i.jsx(Aa,{remarkPlugins:[ki],rehypePlugins:[Li],components:{a:({node:c,...l})=>i.jsx("a",{...l,target:"_blank",rel:"noopener noreferrer",className:at.link})},children:s})})})]})}),a&&i.jsxs(N.Button,{className:at.copyButtonAntistock,type:"Secondary",onClick:()=>n(s),style:{display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy All"]}),!a&&i.jsx("div",{className:at.buttonGroup,children:i.jsx("div",{className:at.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:o,children:"Close"})})})]})]})},nN="_mt1_1l62z_1",rN="_notifyBlock_1l62z_13",uN="_notifyHeader_1l62z_19",aN="_notifyContent_1l62z_25",sN="_buttonBlock_1l62z_30",iN="_imageBlock_1l62z_34",oN="_imageContainer_1l62z_42",cN="_sectionBlock_1l62z_54",lN="_sectionTitle_1l62z_61",dN="_sectionSubtitle_1l62z_64",fN="_inputContainer_1l62z_69",rn={mt1:nN,notifyBlock:rN,notifyHeader:uN,notifyContent:aN,buttonBlock:sN,imageBlock:iN,imageContainer:oN,sectionBlock:cN,sectionTitle:lN,sectionSubtitle:dN,inputContainer:fN},hN=({props:e})=>{const t=Zn();return i.jsx("div",{className:rn.mt1,children:i.jsxs("div",{className:rn.inputContainer,children:[i.jsx(N.Input,{value:e.text,disabled:!0,onChange:()=>{}}),e.shownCopyButton&&i.jsx(N.Button,{type:"Secondary",onClick:()=>t(e.text),children:i.jsx(N.Icon,{name:"Copy"})})]})})},pN=({props:e})=>i.jsx(N.Button,{className:rn.buttonBlock,onClick:()=>window.open(e.url,"_blank","noopener"),children:e.text}),mN=({props:e})=>i.jsx("div",{className:rn.imageBlock,children:i.jsx("div",{className:rn.imageContainer,children:i.jsx("img",{src:e.src,alt:""})})}),gN=({props:e})=>i.jsxs("div",{className:rn.notifyBlock,children:[i.jsxs("div",{className:rn.notifyHeader,children:[i.jsx(N.Icon,{name:"Info",width:24,height:24,fill:"var(--text-secondary)"}),i.jsx("p",{children:e.heading})]}),i.jsx("p",{className:rn.notifyContent,children:e.content})]}),bN=({props:e})=>{var t;return i.jsxs("div",{className:rn.sectionBlock,children:[i.jsx("p",{className:rn.sectionTitle,children:e.title}),i.jsx("span",{className:rn.sectionSubtitle,children:e.subTitle}),(t=e.children)==null?void 0:t.map((n,r)=>i.jsx(aa,{block:n},r))]})},aa=({block:e})=>{switch(e.type){case"Section":return i.jsx(bN,{...e});case"ReadOnlyTextInput":return i.jsx(hN,{...e});case"Notify":return i.jsx(gN,{...e});case"Button":return i.jsx(pN,{...e});case"Image":return i.jsx(mN,{...e});default:return null}},_N="_chargeStatusBlock_12swd_4",xN="_isAntistock_12swd_13",CN="_chargeStatusIcon_12swd_19",EN="_chargeStatusTitle_12swd_27",yN="_chargeStatusDescription_12swd_33",TN="_pickUpButton_12swd_39",kN="_actionButtons_12swd_49",AN="_actionButton_12swd_49",Lt={chargeStatusBlock:_N,isAntistock:xN,chargeStatusIcon:CN,chargeStatusTitle:EN,chargeStatusDescription:yN,pickUpButton:TN,actionButtons:kN,actionButton:AN},nr={[Ae.Paid]:"Payment Successful",[Ae.Pending]:"Payment Pending",[Ae.Expired]:"Payment Expired",[Ae.Cancelled]:"Payment Cancelled",[Ae.NotPaid]:"Payment Failed",[Ae.Refunded]:"Payment Refunded"},Ld={[Ae.Paid]:"Your payment has successfully been processed. Tap on the button below to be redirected back to our website.",[Ae.Pending]:"Your payment is currently pending. We recommend checking back shortly for confirmation.",[Ae.Expired]:"Your payment has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[Ae.Cancelled]:"You canceled the warrant. If there are any problems, please contact support",[Ae.NotPaid]:"Your payment has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[Ae.Refunded]:"Your payment has been refunded. Please check your payment method for confirmation."},Pd=()=>({[Ae.Paid]:i.jsx("div",{className:`${Lt.chargeStatusIcon}`,children:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"})}),[Ae.Pending]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"})}),[Ae.Expired]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[Ae.Cancelled]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[Ae.NotPaid]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[Ae.Refunded]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-warning)"})})}),Rd=({charge:e})=>{var p,b;const t=e.status,n=g.useNavigate(),{shopDomain:r}=g.useStorefrontStore(),{isAntistock:u,general:a}=g.useGeneralStore(),s=L.useRef(),o=!!((p=a==null?void 0:a.info)!=null&&p.disableSupport),c=(b=a==null?void 0:a.info)==null?void 0:b.thirdPartySupportUrl,l=!(o&&!c),[h,f]=g.useSearchParams(),m=()=>{var E,x;if(!((E=e.order)!=null&&E.id))return;const _=h.get("redirectRoute");if((e==null?void 0:e.status)===Ae.Paid&&e.redirectUrl&&!s.current){const y=JSON.parse(localStorage.getItem("orders")||"{}")[((x=e==null?void 0:e.order)==null?void 0:x.id)||""];y?window.open(y.fullAccessToken?`${e.redirectUrl}/${y.fullAccessToken}`:`${e.redirectUrl}`,"_self"):window.open(e.redirectUrl,"_self")}(e==null?void 0:e.status)===Ae.Paid&&s.current&&n(s.current,{replace:!0}),_&&s&&(s.current=_,h.delete("redirectRoute"),f(h))};return i.jsxs("div",{className:g.clx(Lt.chargeStatusBlock,{[Lt.isAntistock]:u}),children:[Pd()[t],i.jsx("h2",{className:Lt.chargeStatusTitle,children:nr[t]}),i.jsx("p",{className:Lt.chargeStatusDescription,children:Ld[t]}),t===Ae.Paid?i.jsx("div",{className:Lt.pickUpButton,style:u?{justifyContent:"flex-start"}:void 0,children:i.jsxs(N.Button,{onClick:m,style:{width:"100%",maxWidth:"250px",display:"flex",alignItems:"center",gap:"5px"},type:"Secondary",children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),u?"View Order":"Pick up Order"]})}):i.jsxs("div",{className:Lt.actionButtons,children:[i.jsx("div",{className:Lt.actionButton,children:i.jsxs(N.Button,{type:"Secondary",onClick:()=>window.open(`https://${r}`),style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),"Visit Website"]})}),l&&i.jsx("div",{className:Lt.actionButton,children:i.jsxs(N.Button,{type:"Secondary",style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},onClick:()=>{o&&c?window.open(c):u?window.open(`https://${r}/support`):n("/contact")},children:[i.jsx(N.Icon,{name:"ChatsTeardrop"}),"Contact Support"]})})]})]})},SN="_bottomSheet_1x4sq_1",IN="_content_1x4sq_8",NN="_agreementList_1x4sq_11",vN="_agreementItem_1x4sq_16",wN="_warning_1x4sq_23",DN="_buttonGroup_1x4sq_31",LN="_buttonWrapper_1x4sq_41",PN="_fullWidthButton_1x4sq_44",RN="_modal_1x4sq_48",MN="_header_1x4sq_55",Gt={bottomSheet:SN,content:IN,agreementList:NN,agreementItem:vN,warning:wN,buttonGroup:DN,buttonWrapper:LN,fullWidthButton:PN,modal:RN,header:MN},Md=({setIsOpen:e,price:t})=>{const[n,r]=L.useState({agreeToSendAsFF:!1,agreeToSend:!1,agreeToNotAddNote:!1}),{setIsOpen:u}=g.useModalStore(),a=()=>{u(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:Gt.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:Gt.header,children:[i.jsx("h3",{id:"h3",children:"Note"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Gt.bottomSheet,children:[i.jsxs("div",{className:Gt.content,children:[i.jsxs("div",{className:Gt.agreementList,children:[i.jsxs("label",{className:Gt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToSendAsFF,onChange:s=>r({...n,agreeToSendAsFF:s})}),i.jsx("p",{children:"I agree to send the payment as friends & family"})]}),i.jsxs("label",{className:Gt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToSend,onChange:s=>r({...n,agreeToSend:s})}),i.jsxs("p",{children:["I agree to send the payment of ",g.formatPrice(t)," ",t.currency]})]}),i.jsxs("label",{className:Gt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToNotAddNote,onChange:s=>r({...n,agreeToNotAddNote:s})}),i.jsx("p",{children:"I agree to not add a note to this payment"})]})]}),i.jsx("div",{className:Gt.warning,children:i.jsxs("p",{children:["Please note that you are required to send the exact payment of ",g.formatPrice(t)," ",t.currency,". If you were to send any amount over or below, your funds will be lost."]})})]}),i.jsxs("div",{className:Gt.buttonGroup,children:[i.jsx("div",{className:Gt.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",children:i.jsx("span",{className:"text-[var(--text-secondary)]",children:"Cancel"})})}),i.jsx("div",{className:Gt.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",disabled:!(n.agreeToSendAsFF&&n.agreeToNotAddNote&&n.agreeToSend),onClick:a,children:"Continue to Payment"})})]})]})]})},ON="_chargeItemsContainer_vynct_5",jN="_chargeItemsInner_vynct_18",FN="_productsContainer_vynct_25",BN="_antistockLayout_vynct_40",HN="_mainContentAntistock_vynct_53",UN="_desktopTrackPayment_vynct_64",VN="_desktopFooter_vynct_73",$N="_footerContainerAntistock_vynct_94",zN="_chargeHeader_vynct_107",qN="_chargeTitle_vynct_115",ZN="_chargeDescription_vynct_121",WN="_copyButton_vynct_127",YN="_productsList_vynct_139",GN="_footerContainer_vynct_94",It={chargeItemsContainer:ON,chargeItemsInner:jN,productsContainer:FN,antistockLayout:BN,mainContentAntistock:HN,desktopTrackPayment:UN,desktopFooter:VN,footerContainerAntistock:$N,chargeHeader:zN,chargeTitle:qN,chargeDescription:ZN,copyButton:WN,productsList:YN,footerContainer:GN},Od=({charge:e})=>{var s;const t=Zn(),{isAntistock:n}=g.useGeneralStore(),r=(e==null?void 0:e.price.currency)||"USD",u=new Intl.NumberFormat("en-US",{style:"currency",currency:r}),a=L.useMemo(()=>{var o;return((o=e==null?void 0:e.order)==null?void 0:o.partOrders.map(c=>{var l,h,f,m;return{id:(c==null?void 0:c.id)||0,image:c.productWithVariant.image,name:(()=>{var _,E;const p=((_=c.productWithVariant)==null?void 0:_.name)||"",b=((E=c.productWithVariant)==null?void 0:E.variantName)||"";return!p&&!b?"":!b||p===b?p:p?`${p} (${b})`:b})(),description:"",price:{quantity:c.quantity,amount:((l=c.productWithVariant)==null?void 0:l.price.amount)||0,currency:(h=c.productWithVariant)==null?void 0:h.price.currency},subscriptionSettings:(f=e.order)!=null&&f.subscriptionOrderId?(m=c.productWithVariant)==null?void 0:m.subscriptionSettings:null}}))||[]},[e]);return i.jsx("div",{className:It.chargeItemsContainer,children:i.jsxs("div",{className:It.chargeItemsInner,children:[i.jsx(ma,{expiresAt:e==null?void 0:e.expiresAt}),i.jsxs("div",{className:`${It.productsContainer} ${n?It.antistockLayout:""}`,children:[(e==null?void 0:e.name)&&i.jsxs("header",{className:It.chargeHeader,children:[i.jsxs("div",{children:[i.jsx("h1",{className:It.chargeTitle,id:"h5",children:e.name}),e.description&&i.jsx("p",{className:It.chargeDescription,id:"md",children:e.description})]}),((s=e.order)==null?void 0:s.id)&&!n&&i.jsxs(N.Button,{type:"Secondary",className:It.copyButton,onClick:()=>{var o;return t(((o=e.order)==null?void 0:o.id)||"")},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy Order ID"]})]}),i.jsxs("div",{className:n?It.mainContentAntistock:"",style:n?void 0:{flex:1},children:[!!a.length&&i.jsx("div",{className:It.productsList,children:a.map(o=>i.jsx(ga,{product:o},o.id))}),i.jsx(vr,{formatter:u,coupon:null,total:(e==null?void 0:e.price.amount)||0,discount:0,totalWithDiscount:(e==null?void 0:e.price.amount)||0,isShowSubtotal:!1}),n&&e&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:It.desktopTrackPayment,children:i.jsx(Ma,{timeline:e.timeline})}),i.jsx(zn,{className:It.desktopFooter})]})]}),!n&&i.jsx(zn,{className:`${It.footerContainer} ${n?It.footerContainerAntistock:""}`})]})]})})},XN="_checkoutOrderMainData_hqf60_1",KN="_orderDetailRow_hqf60_6",QN="_chargeIdRow_hqf60_16",JN="_detailLabel_hqf60_25",ev="_detailValue_hqf60_29",tv="_chargeIdContainer_hqf60_33",nv="_chargeId_hqf60_16",rv="_copyIcon_hqf60_51",et={checkoutOrderMainData:XN,orderDetailRow:KN,chargeIdRow:QN,detailLabel:JN,detailValue:ev,chargeIdContainer:tv,chargeId:nv,copyIcon:rv},zi=({lastUpdate:e,invoiceId:t,email:n,paymentType:r,orderId:u})=>{const a=Zn(),[s,o]=L.useState(null),c=s==null?void 0:s.find(h=>h.name===r);L.useEffect(()=>{s||(async()=>{if(!r)return;const m=await fu([r]);o(m)})()},[r,s]);const l=h=>{const f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m=h.getDate().toString().padStart(2,"0"),p=f[h.getMonth()],b=h.getFullYear(),_=h.getHours(),E=h.getMinutes().toString().padStart(2,"0"),x=h.getSeconds().toString().padStart(2,"0"),k=_>=12?"PM":"AM",y=(_%12||12).toString().padStart(2,"0");return`${p} ${m}, ${b} at ${y}:${E}:${x} ${k}`};return i.jsxs("div",{className:et.checkoutOrderMainData,children:[i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Last Updated"}),i.jsx("p",{className:et.detailValue,id:"md",children:l(new Date(e))})]}),r&&i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Payment Type"}),i.jsx("p",{className:et.detailValue,id:"md",children:c==null?void 0:c.displayName})]}),i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Email"}),i.jsx("p",{className:et.detailValue,id:"md",children:n})]}),t&&i.jsxs("div",{className:et.chargeIdRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Charge ID"}),i.jsxs("div",{className:et.chargeIdContainer,children:[i.jsx("p",{className:et.chargeId,id:"md",children:t}),i.jsx("div",{className:et.copyIcon,onClick:()=>a(t),children:i.jsx(N.Icon,{name:"Copy"})})]})]}),u&&i.jsxs("div",{className:et.chargeIdRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Order ID"}),i.jsxs("div",{className:et.chargeIdContainer,children:[i.jsx("p",{className:et.chargeId,id:"md",children:u}),i.jsx("div",{className:et.copyIcon,onClick:()=>a(u),children:i.jsx(N.Icon,{name:"Copy"})})]})]})]})},uv="_bottomSheet_1yai1_1",av="_formContainer_1yai1_8",sv="_error_1yai1_14",iv="_buttonGroup_1yai1_18",ov="_buttonWrapper_1yai1_28",cv="_fullWidthButton_1yai1_31",lv="_modal_1yai1_41",dv="_header_1yai1_48",Pn={bottomSheet:uv,formContainer:av,error:sv,buttonGroup:iv,buttonWrapper:ov,fullWidthButton:cv,modal:lv,header:dv},jd=({chargeId:e,setIsOpen:t})=>{const[n,r]=L.useState(""),[u,a]=L.useState(""),{setIsOpen:s}=g.useModalStore(),o=h=>{try{return new URL(h),!0}catch{return!1}},c=async h=>{if(h.preventDefault(),!n){a("The link field cannot be empty.");return}if(!o(n)){a("Please enter a valid URL");return}await i2({url:n},e)&&(alert("CashApp successfully verified"),t(!1))},l=()=>{s(!1),setTimeout(()=>{t(!1)},300)};return i.jsxs("div",{className:Pn.modal,onClick:h=>h.stopPropagation(),children:[i.jsxs("div",{className:Pn.header,children:[i.jsx("h3",{id:"h3",children:"CashApp Verify"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:l,fill:"var(--text-primary)"})]}),i.jsx("form",{onSubmit:c,children:i.jsxs("div",{className:Pn.bottomSheet,children:[i.jsx("div",{className:Pn.formContainer,children:i.jsxs("div",{children:[i.jsx(N.Input,{value:n,onChange:h=>{r(h),a("")},label:"Enter Cashapp Link",placeholder:"https://cash.app/payments/0000"}),u&&i.jsx("p",{className:Pn.error,children:u})]})}),i.jsxs("div",{className:Pn.buttonGroup,children:[i.jsx("div",{className:Pn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:l,children:"Cancel"})}),i.jsx("div",{className:Pn.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",children:"Verify"})})]})]})})]})},fv="_trackPaymentContainer_fk3b6_1",hv="_trackPaymentBox_fk3b6_5",pv="_trackPaymentBoxActive_fk3b6_18",mv="_trackPaymentHeader_fk3b6_23",gv="_trackPaymentTitle_fk3b6_27",bv="_trackPaymentTimeline_fk3b6_33",_v="_trackPaymentItem_fk3b6_42",xv="_itemHeader_fk3b6_48",Cv="_itemDate_fk3b6_55",Ev="_itemMessage_fk3b6_59",yv="_trackPaymentToggle_fk3b6_64",Tv="_trackPaymentToggleContent_fk3b6_75",kv="_trackPaymentToggleText_fk3b6_81",Av="_antistock_fk3b6_88",yt={trackPaymentContainer:fv,trackPaymentBox:hv,trackPaymentBoxActive:pv,trackPaymentHeader:mv,trackPaymentTitle:gv,trackPaymentTimeline:bv,trackPaymentItem:_v,itemHeader:xv,itemDate:Cv,itemMessage:Ev,trackPaymentToggle:yv,trackPaymentToggleContent:Tv,trackPaymentToggleText:kv,antistock:Av},tl=(e,t)=>{const n=e.getDate().toString().padStart(2,"0"),r=(e.getMonth()+1).toString().padStart(2,"0"),u=e.getFullYear(),a=e.getHours(),s=e.getMinutes().toString().padStart(2,"0"),o=e.getSeconds().toString().padStart(2,"0"),c=a>=12?"PM":"AM",l=(a%12||12).toString().padStart(2,"0");return t==="dd.MM.yyyy"?`${n}.${r}.${u}`:t==="hh:mm:ss aa"?`${l}:${s}:${o} ${c}`:""},Sv={[Ae.Paid]:{displayName:nr[Ae.Paid],displayMessage:"The invoice has been completed and the product has been delivered.",type:"success"},[Ae.Pending]:{displayName:nr[Ae.Pending],displayMessage:"The invoice has been created and we are now waiting to receive the payment.",type:"warning"},[Ae.Expired]:{displayName:nr[Ae.Expired],displayMessage:"Your payment has expired due to the payment not being sent in time.",type:"error"},[Ae.Cancelled]:{displayName:nr[Ae.Cancelled],displayMessage:"The order has been canceled. The payment was not sent within the time limit.",type:"error"},[Ae.NotPaid]:{displayName:"New",displayMessage:"The charge has been created and is awaiting payment.",type:"success"},[Ae.Refunded]:{displayName:nr[Ae.Refunded],displayMessage:"Your order was refunded. Please check your payment method for confirmation.",type:"warning"}},Iv=({date:e,chargeStatus:t})=>(console.log(t),i.jsxs("div",{className:yt.trackPaymentItem,children:[i.jsxs("div",{className:yt.itemHeader,children:[i.jsx("p",{className:yt.itemDate,id:"md-bold",children:tl(new Date(e),"dd.MM.yyyy")}),i.jsx("p",{className:yt.itemTime,id:"md",children:tl(new Date(e),"hh:mm:ss aa")})]}),i.jsx("p",{className:yt.itemMessage,id:"md",children:Sv[t].displayMessage})]})),Ma=({timeline:e,className:t})=>{const[n,r]=L.useState(!1),{isAntistock:u}=g.useGeneralStore();return i.jsxs("div",{className:g.clx(yt.trackPaymentContainer,t,{[yt.antistock]:u}),children:[i.jsxs("div",{className:`${yt.trackPaymentBox} ${n?yt.trackPaymentBoxActive:""}`,style:u?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsx("header",{className:yt.trackPaymentHeader,children:i.jsx("h2",{className:yt.trackPaymentTitle,id:"h4",children:"Track Payment"})}),i.jsx("div",{className:yt.trackPaymentTimeline,children:Object.keys(e).map(a=>i.jsx(Iv,{date:e[a],chargeStatus:a},a))})]}),i.jsxs("div",{className:yt.trackPaymentToggle,onClick:()=>r(!n),style:u?{padding:"1.25rem",border:"1px solid var(--border-secondary)",borderRadius:"var(--border-radius)"}:void 0,children:[i.jsxs("div",{className:yt.trackPaymentToggleContent,children:[u?null:i.jsx(N.Icon,{name:"MagnifyingGlass",fill:"var(--text-secondary)"}),i.jsx("p",{className:yt.trackPaymentToggleText,id:"h5",children:"Track Payment"})]}),i.jsx(N.Icon,{name:"CaretRight",fill:"var(--text-primary)",width:16,height:16})]})]})},Nv="_dateTime_1dnnn_11",vv="_tableItem_1dnnn_25",wv="_status_1dnnn_29",Dv="_statusInProgress_1dnnn_38",Lv="_statusText_1dnnn_42",Pv="_statusIcon_1dnnn_46",Rv="_statusInProgressText_1dnnn_52",Mv="_statusInProgressIcon_1dnnn_57",Ov="_message_1dnnn_63",Tt={dateTime:Nv,tableItem:vv,status:wv,statusInProgress:Dv,statusText:Lv,statusIcon:Pv,statusInProgressText:Rv,statusInProgressIcon:Mv,message:Ov},Fd=({item:e})=>{const[t,n]=g.extractDateAndTime(e.createdAt),r=g.useNavigate(),a=(s=>s.length>30?s.slice(0,27)+"...":s)(e.latestMessage);return i.jsxs(L.Fragment,{children:[i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsxs("span",{id:"md",children:["#",e.id]})}),i.jsx(ot,{className:g.clx(Tt.message,Tt.tableItem),onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsx("span",{id:"md",children:a})}),i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:t}),i.jsx("div",{className:Tt.dateTime,id:"md",children:n})]})}),i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsx(jv,{status:e.status})})]},e.id)},jv=({status:e})=>i.jsxs("div",{className:g.clx(Tt.status,{[Tt.statusClosed]:e==="CLOSED",[Tt.statusInProgress]:e!=="CLOSED"}),children:[i.jsx("div",{className:g.clx(Tt.statusIcon,{[Tt.statusInProgressIcon]:e!=="CLOSED"}),children:e==="CLOSED"?i.jsx(N.Icon,{name:"CheckCircle",className:Tt.statusIcon}):i.jsx(N.Icon,{name:"Clock",className:Tt.statusInProgressIcon})}),i.jsx("div",{className:g.clx(Tt.statusText,{[Tt.statusInProgressText]:e!=="CLOSED"}),id:"md",children:e==="CLOSED"?"Closed":"In Progress"})]}),Fv="_tableContainer_1eytq_1",Bv="_table_1eytq_1",Hv="_productInfo_1eytq_19",Uv="_productImage_1eytq_26",Vv="_productName_1eytq_35",$v="_expirationDate_1eytq_46",zv="_overflowItem_1eytq_51",qv="_gatewayContainer_1eytq_57",Zv="_gatewayImage_1eytq_62",Wv="_dateTime_1eytq_67",Yv="_tableLoader_1eytq_72",Gv="_tableItem_1eytq_81",ht={tableContainer:Fv,table:Bv,productInfo:Hv,productImage:Uv,productName:Vv,expirationDate:$v,overflowItem:zv,gatewayContainer:qv,gatewayImage:Zv,dateTime:Wv,tableLoader:Yv,tableItem:Gv},Xv="_badge_1oac8_1",Kv="_active_1oac8_12",Qv="_awaitingPayment_1oac8_17",Jv="_cancelled_1oac8_22",ew="_changedGateway_1oac8_27",tw="_expired_1oac8_32",nw="_rial_1oac8_37",rw="_pastDue_1oac8_42",uw="_replaced_1oac8_47",An={badge:Xv,active:Kv,awaitingPayment:Qv,cancelled:Jv,changedGateway:ew,expired:tw,rial:nw,pastDue:rw,replaced:uw},aw=()=>({[kn.ACTIVE]:{icon:i.jsx(N.Icon,{name:"CheckCircle"}),title:"Active",className:An.active},[kn.AWAITING_PAYMENT]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Awaiting Payment",className:An.awaitingPayment},[kn.CANCELLED]:{icon:i.jsx(N.Icon,{name:"XCircle"}),title:"Cancelled",className:An.cancelled},[kn.CHANGED_GATEWAY]:{icon:i.jsx(N.Icon,{name:"Warning"}),title:"Upgraded",className:An.changedGateway},[kn.EXPIRED]:{icon:i.jsx(N.Icon,{name:"XCircle"}),title:"Expired",className:An.expired},[kn.RIAL]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Active",className:An.rial},[kn.PAST_DUE]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Trial",className:An.pastDue},[kn.REPLACED]:{icon:i.jsx(N.Icon,{name:"Warning"}),title:"Replaced",className:An.replaced}}),qi=({status:e})=>{const t=aw()[e];return i.jsxs("div",{className:`${An.badge} ${t.className}`,children:[t.icon,i.jsx("p",{id:"md",children:t.title})]})},sw=(e,t)=>{const n=t.find(r=>r.name===e);return n?i.jsxs("div",{className:ht.gatewayContainer,children:[i.jsx("img",{alt:n.displayName,src:g.convertCfImageIdToUrl(n.logoCfImageId,"100"),className:ht.gatewayImage}),i.jsx("div",{children:n.displayName})]}):null},iw=({item:e,gatewaysDetail:t})=>{const[n,r]=g.extractDateAndTime(e.createdAt),[u]=g.extractDateAndTime(e.activeTo||""),a=Zn();return i.jsxs(L.Fragment,{children:[i.jsx(ot,{children:i.jsxs("div",{className:ht.productInfo,children:[i.jsx("div",{className:ht.productImage,children:i.jsx(N.Icon,{name:"Image",width:20,height:20,fill:"var(--text-secondary)"})}),i.jsxs("div",{children:[i.jsx(g.NavLink,{to:`/subscriptions/${e.id}/${e.accessToken}`,className:ht.productName,id:"md",children:e.productName}),i.jsx("p",{className:ht.expirationDate,children:e.activeTo&&`expires at ${u}`})]})]})}),i.jsx(ot,{className:ht.overflowItem,onClick:()=>a(e.id),children:e.id}),i.jsx(ot,{children:i.jsx(qi,{status:e.status})}),i.jsx(ot,{children:g.formatPrice(e.price)}),i.jsx(ot,{children:sw(e.gatewayName,t)}),i.jsx(ot,{children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:n}),i.jsx("div",{className:ht.dateTime,id:"md",children:r})]})})]},e.id)},Bd=({subscriptions:e,gatewaysDetail:t,totalCount:n,page:r,setPage:u})=>{const s=!(!(e!=null&&e.length)||!t);return i.jsxs("div",{className:ht.tableContainer,children:[i.jsxs(pa,{className:ht.table,children:[i.jsx(Pt,{className:ht.tableItem,children:"Product name"}),i.jsx(Pt,{className:ht.tableItem,children:"ID"}),i.jsx(Pt,{className:ht.tableItem,children:"Status"}),i.jsx(Pt,{className:ht.tableItem,children:"Value"}),i.jsx(Pt,{className:ht.tableItem,children:"Payment"}),i.jsx(Pt,{className:ht.tableItem,children:"Date"}),s&&(e==null?void 0:e.map(o=>i.jsx(iw,{item:o,gatewaysDetail:t},o.id)))]}),!s&&i.jsx("div",{className:ht.tableLoader,children:i.jsx(N.Loader,{})}),s&&i.jsx(mu,{currentPage:r,totalCount:n,onPageChange:u})]})},ow="_pageLoading_1rj3k_2",cw="_title_1rj3k_11",lw="_description_1rj3k_17",Cs={pageLoading:ow,title:cw,description:lw},dw=({description:e,title:t})=>i.jsxs("div",{className:Cs.pageLoading,children:[i.jsx("div",{children:i.jsx(N.Loader,{})}),i.jsx("h1",{className:Cs.title,children:t}),i.jsx("p",{className:Cs.description,children:e})]}),fw="_container_1opbn_1",hw="_productDetails_1opbn_8",pw="_imageContainer_1opbn_14",mw="_image_1opbn_14",gw="_textContainer_1opbn_32",bw="_header_1opbn_40",_w="_title_1opbn_46",xw="_price_1opbn_53",Cw="_badgeContainer_1opbn_57",Ew="_description_1opbn_61",sn={container:fw,productDetails:hw,imageContainer:pw,image:mw,textContainer:gw,header:bw,title:_w,price:xw,badgeContainer:Cw,description:Ew},Hd=({subscription:e})=>i.jsxs("div",{className:sn.container,children:[i.jsxs("div",{className:sn.productDetails,children:[i.jsx("div",{className:sn.imageContainer,children:e!=null&&e.image?i.jsx("img",{className:sn.image,src:g.convertCfImageIdToUrl(e.image.cfId),alt:e==null?void 0:e.name}):i.jsx(N.Icon,{name:"Image"})}),i.jsxs("div",{className:sn.textContainer,children:[i.jsx("div",{className:sn.header,children:i.jsx("h2",{className:sn.title,children:e.name})}),i.jsxs("p",{className:sn.price,children:[g.formatPrice(e.price)," / ",e.recurringInterval]})]}),i.jsx("div",{className:sn.badgeContainer,children:i.jsx(qi,{status:e.status})})]}),e.description&&i.jsx(Aa,{className:sn.description,children:e.description})]}),yw="_card_69liy_1",Tw="_price_69liy_10",kw="_interval_69liy_17",Aw="_name_69liy_22",Sw="_description_69liy_28",Iw="_currentPlan_69liy_32",Nw="_selectButton_69liy_45",vw="_progressSection_69liy_50",ww="_progressLabel_69liy_54",Dw="_bottomSheet_69liy_60",Lw="_title_69liy_69",Pw="_typeSelector_69liy_80",Rw="_typeOption_69liy_90",Mw="_active_69liy_100",Ow="_saveTag_69liy_108",jw="_planSelector_69liy_117",Fw="_modal_69liy_127",Bw="_inactive_69liy_148",Hw="_notMounted_69liy_151",Uw="_closeButton_69liy_157",Xe={card:yw,price:Tw,interval:kw,name:Aw,description:Sw,currentPlan:Iw,selectButton:Nw,progressSection:vw,progressLabel:ww,bottomSheet:Dw,title:Lw,typeSelector:Pw,typeOption:Rw,active:Mw,saveTag:Ow,planSelector:jw,modal:Fw,inactive:Bw,notMounted:Hw,closeButton:Uw},Vw=({variant:e,onSelect:t,isCurrent:n})=>{const r=e.subscriptionSettings.recurringIntervalDays===30?"month":e.subscriptionSettings.recurringIntervalDays===365?"year":"period",u=e.subscriptionSettings.price.amount.toFixed(2),a=e.subscriptionSettings.recurringIntervalDays,s=10;return i.jsxs("div",{className:Xe.card,onClick:t,children:[i.jsxs("h2",{className:Xe.price,children:["$",u," ",i.jsxs("span",{className:Xe.interval,children:["/ ",r]})]}),i.jsx("h3",{className:Xe.name,children:e.name}),e.description&&i.jsx("p",{className:Xe.description,children:e.description}),n?i.jsxs("div",{className:Xe.currentPlan,children:[i.jsx(N.Icon,{name:"Check"}),"Your current Plan"]}):i.jsx(N.Button,{type:"Secondary",className:Xe.selectButton,children:"Select"}),n&&i.jsxs("div",{className:Xe.progressSection,children:[i.jsx(ui,{percent:s/a*100,disablePercentLabel:!0}),i.jsxs("p",{className:Xe.progressLabel,children:["Used: ",s," of ",a," days"]})]})]})},Ud=({isOpen:e,setIsOpen:t,subscription:n})=>{const[r,u]=L.useState(null),[a,s]=L.useState(null),[o,c]=L.useState(null),{id:l,accessToken:h}=g.useParams(),[f,m]=L.useState(!1),[p,b]=L.useState(!1),{setIsOpen:_}=g.useModalStore();L.useEffect(()=>{e&&m(!0)},[e]);const E=()=>{t(!1)},[x,k]=L.useState(null);L.useEffect(()=>{l&&h&&(async()=>{if(l&&h){const{data:I}=await v2({id:l,accessToken:h});k(I)}})()},[l,h]),L.useEffect(()=>{var S;if(x!=null&&x.data.types[0]){const I=(S=x.data.types.flatMap(M=>M.productVariants).find(M=>M.data.id===(n==null?void 0:n.variantId)))==null?void 0:S.data;I&&(c(I),s(I))}},[x,n]),L.useEffect(()=>{x!=null&&x.data.types[0]&&u(x==null?void 0:x.data.types[0])},[x==null?void 0:x.data.types]);const y=S=>{u(S),s(null)},D=S=>{s(S),_(!0),b(!0)};return i.jsxs("div",{className:g.clx(Xe.modal,{[Xe.active]:e,[Xe.inactive]:!e&&f,[Xe.notMounted]:!f}),onClick:S=>S.stopPropagation(),children:[i.jsx(N.Icon,{name:"X",onClick:E,hoverable:!0,className:Xe.closeButton,fill:"var(--text-primary)"}),i.jsxs("div",{className:Xe.bottomSheet,children:[i.jsx("h3",{id:"h3",className:Xe.title,children:"Change Plan"}),i.jsx("p",{className:Xe.description,children:x==null?void 0:x.data.description}),i.jsx("div",{className:Xe.typeSelector,children:x==null?void 0:x.data.types.map(S=>i.jsxs("div",{className:g.clx(Xe.typeOption,{[Xe.active]:(r==null?void 0:r.id)===S.id}),onClick:()=>y(S),children:[S.name,S.name==="Yearly"&&i.jsx("span",{className:Xe.saveTag,children:"Save %"})]},S.id))}),r&&i.jsx("div",{className:Xe.planSelector,children:r.productVariants.map(S=>i.jsx(Vw,{variant:S.data,isSelected:(a==null?void 0:a.id)===S.data.id,isCurrent:(o==null?void 0:o.id)===S.data.id,onSelect:()=>D(S.data)},S.data.id))})]}),p&&a&&n&&i.jsx(N.Modal,{close:()=>{b(!1)},children:i.jsx(Zd,{setIsOpen:b,selectedVariant:a,subscription:n})})]})},$w="_container_nb625_1",zw="_title_nb625_11",qw="_subtitle_nb625_16",Zw="_info_nb625_20",Vu={container:$w,title:zw,subtitle:qw,info:Zw},Vd=()=>{const{subscription:e}=g.useSubscriptionStore(),[t,n]=g.extractDateAndTime((e==null?void 0:e.activeTo)||""),[r,u]=L.useState(!1),{setIsOpen:a}=g.useModalStore();return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Vu.container,children:[i.jsxs("div",{className:Vu.info,children:[i.jsx("p",{className:Vu.title,children:"Expiration Date"}),i.jsxs("p",{className:Vu.subtitle,children:[t," at ",n]})]}),i.jsx(N.Button,{type:"Special",onClick:s=>{s.stopPropagation(),a(!0),u(!0)},children:"Extend"})]}),r&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(Kd,{setIsOpen:u})})]})},Ww="_couponContainer_1sspa_1",Yw="_iconWrapper_1sspa_10",Gw="_details_1sspa_21",Xw="_title_1sspa_25",Kw="_progress_1sspa_29",Qw="_foreverText_1sspa_34",mr={couponContainer:Ww,iconWrapper:Yw,details:Gw,title:Xw,progress:Kw,foreverText:Qw},$d=({coupon:e,currency:t})=>{const n=e.isFixed?g.formatPrice({amount:e.discount,currency:t}):`${e.discount}%`,r=e.initialCouponDurationForSubscriptions?g.percentageDifference(e.initialCouponDurationForSubscriptions,e.currentCouponDurationForSubscriptions||1):100;return i.jsxs("div",{className:mr.couponContainer,children:[i.jsx("div",{className:mr.iconWrapper,children:i.jsx(N.Icon,{name:"CheckCircle"})}),i.jsxs("div",{className:mr.details,children:[i.jsxs("p",{className:mr.title,children:[e.name,", ",n," discount"]}),i.jsx("div",{className:mr.progress,children:i.jsx(ui,{color:"#C2C2C2",percent:r,disablePercentLabel:!0})}),i.jsx("p",{className:mr.foreverText,children:"Forever discount code"})]})]})},Jw="_paymentMethodContainer_1g0da_4",eD="_paymentMethodTitle_1g0da_15",tD="_activeMethod_1g0da_20",nD="_noMethod_1g0da_28",rD="_activeMethodPaymentMethod_1g0da_37",uD="_paymentMethodLogo_1g0da_47",aD="_paymentMethodNumber_1g0da_57",sD="_method_1g0da_61",Hn={paymentMethodContainer:Jw,paymentMethodTitle:eD,activeMethod:tD,noMethod:nD,activeMethodPaymentMethod:rD,paymentMethodLogo:uD,paymentMethodNumber:aD,method:sD},iD="_paymentMethods_1gev0_1",oD="_modal_1gev0_14",cD="_header_1gev0_28",lD="_content_1gev0_37",Jn={paymentMethods:iD,modal:oD,header:cD,content:lD},dD=e=>{const{setIsLoading:t,setIsOpen:n}=e,{subscription:r,setSubscription:u}=g.useSubscriptionStore();if(!r)return null;const{id:a}=g.useParams(),s=g.useNavigate(),{notifications:o,setNotifications:c}=g.useNotificationStore(),{setPaymentMethod:l,setGateway:h,cart:f}=hu(),{setIsOpen:m}=g.useModalStore();async function p(){if(b(),t(!0),a&&r){const{data:_}=await I2(a,f.gateway);_.isReconnectPaymentNeeded?s(`/charges/${_.chargeId}`):(c([...o,{status:"success",id:g.v4(),message:"Your action has been successfully completed"}]),u({...r,gatewayName:f.gateway}))}else c([...o,{status:"error",id:g.v4(),message:"Your action has been failed. Try again!"}]);t(!1)}function b(){m(!1),setTimeout(()=>{n(!1)},300)}return i.jsxs("div",{className:Jn.modal,onClick:_=>{_.stopPropagation()},children:[i.jsxs("div",{className:Jn.header,children:[i.jsx("h3",{id:"h3",className:Jn.title,children:"Choose Payment Method"}),i.jsx(N.Icon,{name:"X",onClick:b,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Jn.content,children:[(r==null?void 0:r.availableGateways)&&i.jsx(ii,{possibleGateways:{availableGateways:r.availableGateways,requiresSignInGateways:r.availableGateways},setGateway:h,setPaymentMethod:l,totalAndDiscount:{total:(r==null?void 0:r.price.amount)||0,totalWithDiscount:r==null?void 0:r.price.amount},onSignInClick:()=>s("/customer-dash")}),i.jsxs("div",{className:Jn.paymentMethods,children:[i.jsx("div",{className:Jn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Cancel"})}),i.jsx("div",{className:Jn.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",disabled:!f.gateway,onClick:()=>p(),children:"Continue"})})]})]})]})},fD="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20131.39%2086.9'%3e%3cdefs%3e%3cstyle%3e.a{opacity:0;}.b{fill:%23fff;}.c{fill:%23ff5f00;}.d{fill:%23eb001b;}.e{fill:%23f79e1b;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%201%3c/title%3e%3cg%20class='a'%3e%3crect%20class='b'%20width='131.39'%20height='86.9'/%3e%3c/g%3e%3crect%20class='c'%20x='48.37'%20y='15.14'%20width='34.66'%20height='56.61'/%3e%3cpath%20class='d'%20d='M51.94,43.45a35.94,35.94,0,0,1,13.75-28.3,36,36,0,1,0,0,56.61A35.94,35.94,0,0,1,51.94,43.45Z'/%3e%3cpath%20class='e'%20d='M120.5,65.76V64.6H121v-.24h-1.19v.24h.47v1.16Zm2.31,0v-1.4h-.36l-.42,1-.42-1h-.36v1.4h.26V64.7l.39.91h.27l.39-.91v1.06Z'/%3e%3cpath%20class='e'%20d='M123.94,43.45a36,36,0,0,1-58.25,28.3,36,36,0,0,0,0-56.61,36,36,0,0,1,58.25,28.3Z'/%3e%3c/svg%3e",zd=()=>{var b,_,E;const{subscription:e}=g.useSubscriptionStore(),{cart:t,setPaymentMethod:n}=hu(),r=g.useNavigate(),[u,a]=L.useState(null),[s,o]=L.useState(!1),[c,l]=L.useState(!1),{setIsOpen:h}=g.useModalStore();if(!e)return null;const[f,m]=L.useState(e.gatewayName||t.gateway),p=t.paymentMethod;return L.useEffect(()=>{(async()=>{const k=await fu(e.availableGateways);a(k)})()},[]),L.useEffect(()=>{t.gateway!==f&&m(t.gateway)},[t.gateway]),i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Hn.paymentMethodContainer,children:[i.jsxs("div",{children:[i.jsx("p",{className:Hn.paymentMethodTitle,children:"Active Payment Method"}),e.gatewayInfo&&Object.keys(e.gatewayInfo).length>0&&i.jsx(hD,{gatewayInfo:e.gatewayInfo}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&f==="Balance"&&i.jsx(ai,{gateway:f,gatewayDisplayName:f,total:(e==null?void 0:e.price.amount)||0,onSignInClick:()=>r("/customer-dash")}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&!f&&i.jsx("span",{className:Hn.noMethod,children:"Payment method is not set"}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&f&&i.jsx("div",{className:Hn.activeMethod,children:u&&i.jsx(si,{align:"row",gatewayLogoCfId:(b=u.find(x=>x.name===f))==null?void 0:b.logoCfImageId,gatewayDisplayName:(_=u.find(x=>x.name===f))==null?void 0:_.displayName,gateway:f,poweredByLogoCfId:(E=u.find(x=>x.name===f))==null?void 0:E.poweredByImageCfImageId,className:Hn.activeMethodPaymentMethod,selected:p===f,onSelect:x=>{n(x)}},f)})]}),i.jsx(N.Button,{type:"Special",onClick:x=>{x.stopPropagation(),h(!0),l(!0)},children:t.gateway?"Change":"Manage"})]}),c&&i.jsx(N.Modal,{close:()=>l(!1),children:i.jsx(dD,{setIsLoading:o,setIsOpen:l})})]})},hD=({gatewayInfo:e})=>{var t,n,r,u,a;return i.jsxs("div",{className:Hn.method,children:[i.jsxs("div",{className:Hn.paymentMethodLogo,children:[((t=e.card)==null?void 0:t.brand.toLowerCase())==="visa"&&i.jsx(vh,{}),((n=e.card)==null?void 0:n.brand.toLowerCase())==="mastercard"&&i.jsx("img",{src:fD,alt:"",width:22}),((r=e.card)==null?void 0:r.brand.toLowerCase())!=="visa"&&((u=e.card)==null?void 0:u.brand.toLowerCase())!=="mastercard"&&i.jsx(N.Icon,{name:"CreditCard",width:22})]}),i.jsxs("p",{className:Hn.paymentMethodNumber,children:["•••• •••• •••• ",(a=e.card)==null?void 0:a.last4]})]})},pD="_subscriptionProductContainer_83ibx_4",mD="_subscriptionProductImage_83ibx_15",gD="_subscriptionProductInfo_83ibx_32",bD="_name_83ibx_37",_D="_price_83ibx_40",zr={subscriptionProductContainer:pD,subscriptionProductImage:mD,subscriptionProductInfo:gD,name:bD,price:_D},qd=({subscription:e,id:t,accessToken:n})=>{const[r,u]=L.useState(!1),{setIsOpen:a}=g.useModalStore();return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:zr.subscriptionProductContainer,onClick:s=>s.stopPropagation(),children:[i.jsx("div",{className:zr.subscriptionProductImage,children:e!=null&&e.image?i.jsx("img",{src:g.convertCfImageIdToUrl(e.image.cfId)}):i.jsx(N.Icon,{name:"Image"})}),i.jsxs("div",{className:zr.subscriptionProductInfo,children:[i.jsx("div",{className:"flex items-center gap-2",children:i.jsx("h2",{className:zr.name,children:e.name})}),i.jsxs("p",{className:zr.price,children:[g.formatPrice(e.price)," / ",e.recurringInterval]})]}),i.jsx(N.Button,{type:"Special",onClick:s=>{s.preventDefault(),u(!0),a(!0)},children:"Cancel"})]}),r&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(Qd,{accessToken:n,id:t,isOpen:r,setIsOpen:u})})]})},xD="_content_5ctxw_1",CD="_selectedPlan_5ctxw_37",ED="_planName_5ctxw_44",yD="_description_5ctxw_48",TD="_price_5ctxw_51",kD="_buttonGroup_5ctxw_79",AD="_buttonWrapper_5ctxw_84",SD="_modal_5ctxw_88",ID="_header_5ctxw_95",tn={content:xD,selectedPlan:CD,planName:ED,description:yD,price:TD,buttonGroup:kD,buttonWrapper:AD,modal:SD,header:ID},Zd=({setIsOpen:e,selectedVariant:t,subscription:n})=>{if(!t)return null;const{setIsOpen:r}=g.useModalStore(),u=()=>{a()},a=()=>{r(!1),setTimeout(()=>{e(!1)},300)},s=(t.subscriptionSettings.compareAtPrice||t.subscriptionSettings.price).amount,o=t.subscriptionSettings.compareAtPrice?t.subscriptionSettings.compareAtPrice.amount-t.subscriptionSettings.price.amount:t.subscriptionSettings.price.amount,c=s-o,l=new Intl.NumberFormat("en-US",{style:"currency",currency:n.price.currency});return i.jsxs("div",{className:tn.modal,children:[i.jsxs("div",{className:tn.header,children:[i.jsx("h3",{id:"h3",children:"Choose upgrade method"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:()=>a(),fill:"var(--text-primary)"})]}),i.jsxs("div",{className:tn.bottomSheet,children:[i.jsxs("div",{className:tn.content,children:[i.jsxs("div",{className:tn.selectedPlan,children:[i.jsx("h2",{className:tn.planName,children:t.name}),i.jsx("p",{className:tn.description,children:t.description}),i.jsxs("p",{className:tn.price,children:["$",t.subscriptionSettings.price.amount.toFixed(2)," /"," ",t.subscriptionSettings.recurringIntervalDays===30?"month":"year"]})]}),i.jsx(vr,{formatter:l,coupon:null,total:c,discount:o})]}),i.jsxs("div",{className:tn.buttonGroup,children:[i.jsx("div",{className:tn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:()=>a(),children:"Stay with us"})}),i.jsx("div",{className:tn.buttonWrapper,children:i.jsxs(N.Button,{type:"Primary",onClick:u,children:["Upgrade for $",c.toFixed(2)]})})]})]})]})},ND="_orderStatusBlock_2wo4y_2",vD="_orderStatusBlockAntistock_2wo4y_11",wD="_iconWrapper_2wo4y_16",DD="_orderStatusTitle_2wo4y_26",LD="_orderStatusDescription_2wo4y_31",PD="_actionButtons_2wo4y_36",RD="_actionButton_2wo4y_36",MD="_button_2wo4y_47",on={orderStatusBlock:ND,orderStatusBlockAntistock:vD,iconWrapper:wD,orderStatusTitle:DD,orderStatusDescription:LD,actionButtons:PD,actionButton:RD,button:MD},OD={[be.New]:"New",[be.Pending]:"Order Pending",[be.Processing]:"Order Processing",[be.Expired]:"Order Expired",[be.Cancelled]:"Order Canceled",[be.Failed]:"Order Failed",[be.FullDeliveryFailure]:"Delivery Failure",[be.PartiallyDelivered]:"Partial Delivery Failure",[be.Refunded]:"Order Refunded",[be.Completed]:"Order Completed",[be.PartiallyRefunded]:"Partial Refund"},jD={[be.New]:"Your order has been created and is awaiting payment.",[be.Pending]:"Your order is currently pending. We recommend checking back shortly for confirmation.",[be.Processing]:"Your order is currently being processed. We are preparing your delivery - this usually only takes a short while.",[be.Expired]:"Your order has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[be.Cancelled]:"You canceled the warrant. If there are any problems, please contact support.",[be.Failed]:"Your order could not be processed due to a payment or system error. Please try again or contact support.",[be.FullDeliveryFailure]:"Your payment was successful but the product is currently out of stock. Please contact us below to get this sorted.",[be.PartiallyDelivered]:"Your payment was successful but some products were out of stock. Please contact us below to get this sorted.",[be.Refunded]:"Your order was refunded. Please check your payment method for confirmation.",[be.Completed]:"Your order has successfully been processed. View your products below or check your email for additional information.",[be.PartiallyRefunded]:"Your order was partially refunded. Please check your payment method for confirmation."},Wd=()=>({[be.Completed]:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"}),[be.Pending]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.Processing]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.New]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.Expired]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.Cancelled]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.Failed]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.FullDeliveryFailure]:i.jsx(N.Icon,{name:"Warning",fill:"var(--text-warning)"}),[be.PartiallyDelivered]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"}),[be.Refunded]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"}),[be.PartiallyRefunded]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"})}),Yd=({orderStatus:e,className:t})=>{var l,h;const{shopDomain:n}=g.useStorefrontStore(),{isAntistock:r,general:u}=g.useGeneralStore(),a=g.useNavigate(),s=!!((l=u==null?void 0:u.info)!=null&&l.disableSupport),o=(h=u==null?void 0:u.info)==null?void 0:h.thirdPartySupportUrl,c=!(s&&!o);return i.jsxs("div",{className:g.clx(on.orderStatusBlock,t,{[on.orderStatusBlockAntistock]:r}),children:[i.jsx("div",{className:on.iconWrapper,style:r?{background:"none"}:void 0,children:Wd()[e]}),i.jsx("h2",{className:on.orderStatusTitle,children:OD[e]}),i.jsx("p",{className:on.orderStatusDescription,children:jD[e]}),i.jsxs("div",{className:on.actionButtons,children:[i.jsx("div",{className:on.actionButton,children:i.jsxs(N.Button,{type:"Secondary",className:on.button,onClick:()=>window.open(`https://${n}`),style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),"Visit Website"]})}),c&&i.jsx("div",{className:on.actionButton,children:i.jsxs(N.Button,{type:"Secondary",className:on.button,onClick:()=>{s&&o?window.open(o):r?window.open(`https://${n}/support`):a("/contact")},style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ChatsTeardrop"}),"Contact Support"]})})]})]})},FD="_reviewMessage_1t8u4_1",BD="_leaveReviewContainer_1t8u4_11",HD="_leaveReviewTitle_1t8u4_20",Es={reviewMessage:FD,leaveReviewContainer:BD,leaveReviewTitle:HD},Gd=({review:e,orderId:t,className:n})=>{const[r,u]=L.useState((e==null?void 0:e.rating)||0),[a,s]=L.useState(!1),{setIsOpen:o}=g.useModalStore(),{notifications:c,setNotifications:l}=g.useNotificationStore(),h=async f=>{e&&"accessToken"in e&&(await M2({comment:f,rating:r,tsId:g.useGetTsId()},t,e.accessToken),l([...c,{status:"success",id:g.v4(),message:"Review left successfully"}]),s(!1))};return L.useEffect(()=>{e&&r&&"accessToken"in e&&!e.rating&&(o(!0),s(!0))},[r]),e?e.rating&&"accessToken"in e?i.jsxs("div",{className:Es.reviewMessage,children:["You left a ",e.rating," star rating"]}):i.jsxs("div",{className:g.clx(Es.leaveReviewContainer,n),children:[i.jsx("p",{className:Es.leaveReviewTitle,children:"Leave a review"}),i.jsx(_5,{rating:r,setRating:u,disabled:!!e.rating||!("accessToken"in e)}),a&&i.jsx(N.Modal,{close:()=>s(!1),children:i.jsx(Xd,{setIsOpen:s,onSubmit:h})})]}):null},UD="_bottomSheet_1bcyj_1",VD="_content_1bcyj_7",$D="_title_1bcyj_18",zD="_buttonGroup_1bcyj_22",qD="_buttonWrapper_1bcyj_33",ZD="_modal_1bcyj_37",WD="_header_1bcyj_44",Rn={bottomSheet:UD,content:VD,title:$D,buttonGroup:zD,buttonWrapper:qD,modal:ZD,header:WD},Xd=({setIsOpen:e,onSubmit:t})=>{const[n,r]=L.useState(""),{setIsOpen:u}=g.useModalStore(),a=()=>{u(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:Rn.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:Rn.header,children:[i.jsx("h3",{id:"h3",className:Rn.title,children:"Review Description"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Rn.bottomSheet,children:[i.jsx("div",{className:Rn.content,children:i.jsx(N.Textarea,{placeholder:"Great product and fast checkout...",value:n,onChange:s=>r(s),label:"Describe your review in detail below"})}),i.jsxs("div",{className:Rn.buttonGroup,children:[i.jsx("div",{className:Rn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:a,children:"Cancel"})}),i.jsx("div",{className:Rn.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",disabled:!n,onClick:()=>{a(),t(n)},children:"Submit"})})]})]})]})},YD="_container_1idhv_1",GD="_buttonGroup_1idhv_8",XD="_buttonWrapper_1idhv_15",KD="_header_1idhv_19",QD="_content_1idhv_28",er={container:YD,buttonGroup:GD,buttonWrapper:XD,header:KD,content:QD},JD="_modal_1rkmj_1",eL="_modalPayment_1rkmj_7",tL="_title_1rkmj_15",nL="_description_1rkmj_20",$u={modal:JD,modalPayment:eL,title:tL,description:nL},Zi=()=>i.jsxs("div",{className:g.clx($u.modal,$u.modalPayment),onClick:e=>e.stopPropagation(),children:[i.jsx(N.Loader,{style:{border:"4px solid var(--surface-action1)",borderLeftColor:"var(--surface-secondary)",width:"40px",height:"40px"}}),i.jsx("h2",{id:"h3",className:$u.title,children:"Processing Payment"}),i.jsx("p",{className:$u.description,children:"This payment is currently being processed. If you're here, it simply means that the payment was created but not complete."})]}),Kd=({setIsOpen:e})=>{const{subscription:t}=g.useSubscriptionStore(),{getTotalAndDiscount:n,cart:r,coupon:u}=hu(),[a,s]=L.useState(1),o=g.useNavigate(),{setIsOpen:c}=g.useModalStore(),{setNotifications:l,notifications:h}=g.useNotificationStore(),[f,m]=L.useState(!1),p=L.useMemo(()=>n(),[u,r]),b=L.useMemo(()=>p.totalWithDiscount?p.total-p.totalWithDiscount:0,[p]);if(f)return i.jsx(Zi,{});const _=(t==null?void 0:t.price.currency)||"USD",E=new Intl.NumberFormat("en-US",{style:"currency",currency:_});async function x(){var y;m(!0);try{const{data:D}=await w2((t==null?void 0:t.id)||"",{});l([{id:g.v4(),message:"Order created successfully",status:"success"}]),o(`/orders/${(y=D.data)==null?void 0:y.id}/${D.data.fullAccessToken}`)}catch(D){const S=D;l([...h,{id:g.v4(),message:`Order creation failed: ${S.message}`,status:"error"}]),k()}finally{m(!1)}}function k(){c(!1),setTimeout(()=>{e(!1)},300)}return i.jsxs("div",{className:er.container,onClick:y=>y.stopPropagation(),children:[i.jsxs("div",{className:er.header,children:[i.jsx("h3",{id:"h3",className:er.title,children:"Extend Subscription"}),i.jsx(N.Icon,{name:"X",onClick:k,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:er.content,children:[i.jsx(w5,{step:a,totalSteps:12,onStepChange:s,label:"How long would you like to extend your subscription for?"}),i.jsx(vr,{formatter:E,coupon:u,total:p.total,discount:b,totalWithDiscount:p.totalWithDiscount}),i.jsxs("div",{className:er.buttonGroup,children:[i.jsx("div",{className:er.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:k,children:"Cancel"})}),i.jsx("div",{className:er.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:x,children:"Extend"})})]})]})]})},rL="_bottomSheet_uw5jb_1",uL="_content_uw5jb_7",aL="_radioGroup_uw5jb_11",sL="_confirmation_uw5jb_26",iL="_iconWrapper_uw5jb_33",oL="_title_uw5jb_42",cL="_message_uw5jb_48",lL="_buttonGroup_uw5jb_54",dL="_buttonWrapper_uw5jb_64",fL="_modal_uw5jb_68",hL="_header_uw5jb_77",ut={bottomSheet:rL,content:uL,radioGroup:aL,confirmation:sL,iconWrapper:iL,title:oL,message:cL,buttonGroup:lL,buttonWrapper:dL,modal:fL,header:hL},pL={0:"Are you sure?",1:"Just making sure",2:"We're sorry to see you go"},Qd=({isOpen:e,setIsOpen:t,id:n,accessToken:r})=>{const[u,a]=L.useState(0),[s,o]=L.useState(!1),[c,l]=L.useState(""),[h,f]=L.useState(""),{setIsOpen:m}=g.useModalStore(),p=async()=>{if(!c)return;o(!0);const _=await S2(n,r,{reason:c==="Other reason"?h:c});o(!1),_&&a(2)};L.useEffect(()=>{e||(a(0),l(""),f(""))},[e]);const b=()=>{m(!1),setTimeout(()=>{t(!1)},300)};return i.jsxs("div",{className:ut.modal,onClick:_=>_.stopPropagation(),children:[i.jsxs("div",{className:ut.header,children:[i.jsx("h3",{id:"h3",children:pL[u]||""}),i.jsx(N.Icon,{name:"X",onClick:b,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:ut.content,children:[u===0&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsx("p",{children:"Before you cancel your subscription can you tell us why?"}),i.jsxs("div",{className:ut.radioGroup,children:[i.jsx(N.Radio,{defaultValue:c,onChange:_=>l(_),options:[{value:"Found another company",label:"Found another company"},{value:"Expensive",label:"Expensive"},{value:"Technical problems",label:"Technical problems"},{value:"Support problems",label:"Support problems"},{value:"Other reason",label:"Other reason"}],flexDirection:"column"}),c==="Other reason"&&i.jsx(N.Textarea,{value:h,onChange:_=>f(_),placeholder:"Describe the reason..."})]}),i.jsxs("div",{className:ut.buttonGroup,children:[i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Stay with us"})}),i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:()=>c&&a(1),disabled:!c,children:"Continue"})})]})]}),u===1&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsx("p",{children:"You'll lose access to all of the features and content available within this subscription."}),i.jsxs("div",{className:ut.buttonGroup,children:[i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Stay with us"})}),i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:p,disabled:s,children:"Cancel it anyway"})})]})]}),u===2&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsxs("div",{className:`${ut.confirmation}`,children:[i.jsx("div",{className:ut.iconWrapper,children:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"})}),i.jsx("p",{className:ut.title,children:"Subscription Cancelled"}),i.jsx("p",{className:ut.message,children:"You'll lose access to all of the features and content available within this subscription."})]}),i.jsx("div",{className:ut.buttonGroup,children:i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Close"})})})]})]})]})},mL="_vouchCard_ntutv_1",gL="_vouchContent_ntutv_13",bL="_vouchIcon_ntutv_20",_L="_vouchText_ntutv_29",xL="_vouchTitle_ntutv_35",CL="_vouchDescription_ntutv_42",EL="_addMessageButton_ntutv_48",yL="_vouchCardSubmitted_ntutv_53",Nt={vouchCard:mL,vouchContent:gL,vouchIcon:bL,vouchText:_L,vouchTitle:xL,vouchDescription:CL,addMessageButton:EL,vouchCardSubmitted:yL},Jd=({onAddMessage:e,className:t,isVouchLeft:n=!1})=>n?i.jsx("div",{className:`${Nt.vouchCard} ${Nt.vouchCardSubmitted} ${t||""}`,children:i.jsxs("div",{className:Nt.vouchContent,children:[i.jsx("div",{className:Nt.vouchIcon,children:i.jsx(N.Icon,{name:"Check"})}),i.jsxs("div",{className:Nt.vouchText,children:[i.jsx("h3",{className:Nt.vouchTitle,children:"Thank You"}),i.jsx("p",{className:Nt.vouchDescription,children:"We appreciate you sharing your experience with your purchase."})]})]})}):i.jsxs("div",{className:`${Nt.vouchCard} ${t||""}`,children:[i.jsxs("div",{className:Nt.vouchContent,children:[i.jsx("div",{className:Nt.vouchIcon,children:i.jsx(N.Icon,{name:"Star"})}),i.jsxs("div",{className:Nt.vouchText,children:[i.jsx("h3",{className:Nt.vouchTitle,children:"Leave a Vouch"}),i.jsx("p",{className:Nt.vouchDescription,children:"Share your experience with our team."})]})]}),i.jsx(N.Button,{type:"Secondary",onClick:e,className:Nt.addMessageButton,children:"Add Message"})]}),TL="_vouchModal_19vu5_1",kL="_vouchModalAntistock_19vu5_12",AL="_vouchModalHeader_19vu5_17",SL="_title_19vu5_25",IL="_closeButton_19vu5_32",NL="_vouchModalContent_19vu5_46",vL="_bottomSheet_19vu5_53",wL="_content_19vu5_61",DL="_productContainer_19vu5_65",LL="_searchContainer_19vu5_73",PL="_scrollableBox_19vu5_77",RL="_productItem_19vu5_87",ML="_productImage_19vu5_97",OL="_productName_19vu5_119",jL="_productItemError_19vu5_125",FL="_noResults_19vu5_130",BL="_fieldError_19vu5_140",HL="_vouchForm_19vu5_145",UL="_formField_19vu5_151",VL="_vouchModalFooter_19vu5_312",$L="_submitButton_19vu5_317",Ye={vouchModal:TL,vouchModalAntistock:kL,vouchModalHeader:AL,title:SL,closeButton:IL,vouchModalContent:NL,bottomSheet:vL,content:wL,productContainer:DL,searchContainer:LL,scrollableBox:PL,productItem:RL,productImage:ML,productName:OL,productItemError:jL,noResults:FL,fieldError:BL,vouchForm:HL,formField:UL,vouchModalFooter:VL,submitButton:$L},e2=({isOpen:e,onClose:t,products:n,orderId:r,accessToken:u,shopDomain:a,onSuccess:s})=>{const{isAntistock:o}=g.useGeneralStore(),{setNotifications:c,notifications:l}=g.useNotificationStore(),{setIsOpen:h}=g.useModalStore(),[f,m]=L.useState(null),[p,b]=L.useState(""),[_,E]=L.useState(""),[x,k]=L.useState(n.map(Y=>Y.id.toString())),[y,D]=L.useState(!1),[S,I]=L.useState({}),M=L.useRef(null),H=L.useRef(null),U=L.useRef(null),P=L.useMemo(()=>_.trim()?new nl.Fuse(n,{keys:["name"],threshold:.3}).search(_).map(K=>K.item):n,[n,_]),B=Y=>{k(K=>K.includes(Y)&&K.length===1?K:K.includes(Y)?K.filter(ue=>ue!==Y):[...K,Y]),I(K=>({...K,selectedProducts:void 0}))},O=async()=>{var K;I({});const Y={};if(x.length===0&&(Y.selectedProducts="Please select at least one product"),f||(Y.image="Please upload a screenshot"),p.trim()||(Y.message="Please enter a message"),Object.keys(Y).length>0){I(Y),setTimeout(()=>{Y.selectedProducts&&M.current?M.current.scrollIntoView({behavior:"smooth",block:"center"}):Y.image&&H.current?H.current.scrollIntoView({behavior:"smooth",block:"center"}):Y.message&&U.current&&U.current.scrollIntoView({behavior:"smooth",block:"center"})},100);return}if(!r||!u||!a||!f){c([...l,{id:g.v4(),message:"Missing required information",status:"error"}]);return}D(!0);try{const ue={imageId:parseInt(f.id),productIds:x.map(ae=>parseInt(ae)),comment:p.trim(),tsId:g.v4()};await Z2(ue,a,r,u),c([...l,{id:g.v4(),message:"Vouch submitted successfully",status:"success"}]),s==null||s(),t()}catch(ue){console.log({error:ue});let ae="Failed to submit vouch",se="";const _e=ue;if((K=_e==null?void 0:_e.response)!=null&&K.data){const C=_e.response.data;C.message&&C.errors&&Array.isArray(C.errors)?(se=C.message,ae=C.errors.join(", ")):C.errors&&Array.isArray(C.errors)?ae=C.errors.join(", "):C.message&&(ae=C.message)}else ue instanceof Error&&(ae=ue.message);c([...l,{id:g.v4(),message:ae,status:"error",label:se}])}finally{D(!1)}},X=()=>{b(""),m(null),E(""),k(n.map(Y=>Y.id.toString())),I({}),t()};return L.useEffect(()=>{e&&k(n.map(Y=>Y.id.toString()))},[e]),L.useEffect(()=>{e&&h(!0)},[e,h]),e?i.jsx(N.Modal,{close:X,withAnimation:!o,children:i.jsxs("div",{className:g.clx(Ye.vouchModal,{[Ye.vouchModalAntistock]:o}),onClick:Y=>Y.stopPropagation(),children:[i.jsxs("div",{className:Ye.vouchModalHeader,children:[i.jsx("h3",{className:Ye.title,children:"Vouch"}),i.jsx("button",{className:Ye.closeButton,onClick:X,children:i.jsx(N.Icon,{name:"X"})})]}),i.jsxs("div",{className:Ye.vouchModalContent,children:[i.jsx("div",{className:Ye.bottomSheet,children:i.jsxs("div",{className:Ye.content,children:[i.jsxs("div",{className:Ye.productContainer,children:[i.jsx("div",{className:Ye.searchContainer,children:i.jsx(N.Input,{onChange:E,isSearch:!0,value:_,placeholder:"Search for products",label:"Products *"})}),i.jsx("div",{ref:M,className:Ye.scrollableBox,children:P.length>0?P.map(Y=>i.jsxs("div",{className:g.clx(Ye.productItem,{[Ye.productItemError]:S.selectedProducts&&!x.includes(Y.id.toString())}),onClick:()=>B(Y.id.toString()),children:[i.jsx("div",{className:Ye.productImage,children:Y.image?i.jsx("img",{src:g.convertCfImageIdToUrl(Y.image.cfId),alt:Y.name}):i.jsx(N.Icon,{name:"Image"})}),i.jsx("span",{className:Ye.productName,children:Y.name}),i.jsx("div",{onClick:K=>K.stopPropagation(),children:i.jsx(N.Checkbox,{value:x.includes(Y.id.toString()),onChange:()=>B(Y.id.toString()),disabled:x.length===1&&x.includes(Y.id.toString())})})]},Y.id)):i.jsx("div",{className:Ye.noResults,children:i.jsx("p",{children:"No products found"})})}),S.selectedProducts&&i.jsx("div",{className:Ye.fieldError,children:S.selectedProducts})]}),i.jsxs("div",{className:Ye.vouchForm,children:[i.jsx("div",{className:Ye.formField,ref:H,children:i.jsx(N.ImagesLoader,{images:f,onChange:Y=>{m(Y),S.image&&I(K=>({...K,image:void 0}))},multiple:!1,label:"Screenshot",required:!0,showImageLoading:!0})}),i.jsxs("div",{className:Ye.formField,ref:U,children:[i.jsx(N.Textarea,{label:"Message *",value:p,onChange:b,placeholder:"Instant product delivery, paid with balance...",error:S.message,maxLength:150}),S.message&&i.jsx("div",{className:Ye.fieldError,children:S.message})]})]})]})}),i.jsx("div",{className:Ye.vouchModalFooter,children:i.jsx(N.Button,{type:"Primary",onClick:O,disabled:y,className:Ye.submitButton,children:y?i.jsx(N.Loader,{}):"LEAVE A VOUCH"})})]})]})}):null},zL="_modalContent_1a05n_1",qL="_iconContainer_1a05n_16",ZL="_warningIcon_1a05n_20",WL="_title_1a05n_25",YL="_description_1a05n_33",GL="_buttonContainer_1a05n_40",XL="_button_1a05n_40",Tn={modalContent:zL,iconContainer:qL,warningIcon:ZL,title:WL,description:YL,buttonContainer:GL,button:XL},t2=({isOpen:e,onClose:t,refundedAmount:n,currency:r})=>{var E,x;const u=g.useNavigate(),{token:a,shopDomain:s}=g.useStorefrontStore(),{isAntistock:o,general:c}=g.useGeneralStore(),l=!!((E=c==null?void 0:c.info)!=null&&E.disableSupport),h=(x=c==null?void 0:c.info)==null?void 0:x.thirdPartySupportUrl,f=!(l&&!h),m=new Intl.NumberFormat("en-US",{style:"currency",currency:r}),p=()=>{u(o?"/account":"/customer-dash")},b=async()=>{if(l&&h){window.open(h);return}o?window.open(`https://${s}/support`):u("/contact")},_=()=>{t()};return e?i.jsx(N.Modal,{close:t,children:i.jsxs("div",{className:Tn.modalContent,onClick:k=>k.stopPropagation(),children:[i.jsx("div",{className:Tn.iconContainer,children:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)",className:Tn.warningIcon})}),i.jsx("h2",{className:Tn.title,children:"Partial Delivery Failure Refund"}),i.jsxs("p",{className:Tn.description,children:["Your payment was successful but a few products were out of stock. We've automatically refunded the products that were out of stock, with a total of"," ",m.format(n),", to your account balance."]}),i.jsxs("div",{className:Tn.buttonContainer,children:[!a&&i.jsx(N.Button,{type:"Secondary",onClick:p,className:Tn.button,children:"Login"}),f&&i.jsx(N.Button,{type:"Secondary",onClick:b,className:Tn.button,children:"Contact Support"}),i.jsx(N.Button,{type:"Primary",onClick:_,className:Tn.button,children:"Continue"})]})]})}):null},KL=Object.freeze(Object.defineProperty({__proto__:null,ActivePaymentMethod:zd,ActiveSubscriptionProduct:qd,Auth:da,AuthLogin:Ul,AuthModal:t0,AuthRequestOtp:Hl,CHARGE_STATUS_DESCRIPTION:Ld,CHARGE_STATUS_DISPLAY_NAME:nr,CancelSubscription:Qd,CashAppVerify:jd,ChangeSubscriptionPlan:Ud,ChargeBlocksRenderer:aa,ChargeItems:Od,ChargeStatusBlock:Rd,CheckoutBalancePaymentMethod:ai,CheckoutFooter:zn,CheckoutHeader:ma,CheckoutItems:Kl,CheckoutOperational:wd,CheckoutOrderMainData:zi,CheckoutPaymentMethod:si,CheckoutPrices:vr,CheckoutProduct:ga,ChoosePlanUpgradeMethod:Zd,ConnectDiscord:e0,CustomField:Jl,CustomFields:Ql,CustomerDashboard:h6,LeaveAReview:Gd,NoItemsBlock:ha,OpenDelivery:Dd,OrderStatusBlock:Yd,OrdersTable:Zl,PageLoading:dw,PageTitle:fa,Pagination:Wl,PaginationWithRange:mu,PayPalFFNote:Md,PaymentMethods:ii,ProcessingPaymentModal:Zi,ProtectYourCheckout:vd,ReferralBlock:Vl,ReferralBlockInfo:zl,ReferralBlockSteps:$l,RefundNotificationModal:t2,SecuredBySsl:Ri,Sidebar:fl,SkeletonReferralBlock:ql,StatItem:vt,StatusIndicator:Gl,StatusVariant:Nn,SubmitReview:Xd,SubscriptionCoupon:$d,SubscriptionExpiration:Kd,SubscriptionExpirationDate:Vd,SubscriptionProduct:Hd,SubscriptionStatusBadge:qi,SubscriptionsTable:Bd,Table:pa,TableItem:ot,TableItemTitle:Pt,TermsOfService:Pi,TicketRow:Fd,TrackPayment:Ma,VouchCard:Jd,VouchModal:e2,getChargeStatusIcon:Pd,getOrderStatusIcon:Wd,getPaginationText:Yl},Symbol.toStringTag,{value:"Module"})),QL="_chargePageContainer_1azbl_1",JL="_chargeItems_1azbl_14",eP="_mainContent_1azbl_25",tP="_contentWrapper_1azbl_44",nP="_antistockContent_1azbl_53",rP="_statusBlock_1azbl_58",uP="_statusBlockAntistock_1azbl_63",aP="_notPaidSection_1azbl_68",sP="_antistockPayNow_1azbl_82",iP="_antistockFooter_1azbl_86",oP="_antistockTrackPayment_1azbl_96",cP="_footer_1azbl_106",lP="_loaderContainer_1azbl_128",Ft={chargePageContainer:QL,chargeItems:JL,mainContent:eP,contentWrapper:tP,antistockContent:nP,statusBlock:rP,statusBlockAntistock:uP,notPaidSection:aP,antistockPayNow:sP,antistockFooter:iP,antistockTrackPayment:oP,footer:cP,loaderContainer:lP},dP=()=>{const{id:e}=g.useParams(),[t,n]=g.useSearchParams(),[r,u]=L.useState(!1),[a,s]=L.useState(),[o,c]=L.useState(!0),l=g.useNavigate(),h=L.useRef(),f=L.useRef(!1),{setIsOpen:m}=g.useModalStore(),{isAntistock:p}=g.useGeneralStore();return L.useEffect(()=>{const b=async(E,x=!1)=>{x||u(!0);const{data:k}=await O2(E);u(!1),s(k)},_=setInterval(()=>{e&&b(e,!0)},5e3);return e&&b(e),()=>{clearInterval(_)}},[]),L.useEffect(()=>{const b=setTimeout(()=>{var E;console.log("charge timeout",a);const _=t.get("redirectRoute");if((a==null?void 0:a.status)===Ae.Paid&&a.redirectUrl&&!h.current){const k=JSON.parse(localStorage.getItem("orders")||"{}")[((E=a==null?void 0:a.order)==null?void 0:E.id)||""];k?window.open(k.fullAccessToken?`${a.redirectUrl}/${k.fullAccessToken}`:`${a.redirectUrl}`,"_self"):window.open(a.redirectUrl,"_self")}(a==null?void 0:a.status)===Ae.Paid&&h.current&&(console.log("redirectRouteRef.current",h.current),l(h.current,{replace:!0})),_&&h&&(h.current=_,t.delete("redirectRoute"),n(t))},1e3);return()=>clearTimeout(b)},[a]),L.useEffect(()=>{((a==null?void 0:a.gateway)==="PayPalFF"||(a==null?void 0:a.gateway)==="Сashapp")&&m(!0)},[a]),L.useEffect(()=>{var b;if(a!=null&&a.displayPaymentInfo&&a.displayPaymentInfo.length===1&&a.status===Ae.NotPaid&&!f.current){const _=a.displayPaymentInfo[0];_.type==="Button"&&((b=_.props)!=null&&b.url)&&(window.open(_.props.url,"_blank"),f.current=!0)}},[a==null?void 0:a.displayPaymentInfo,a==null?void 0:a.status]),r?i.jsx("div",{className:Ft.loaderContainer,children:i.jsx(N.Loader,{})}):i.jsxs("div",{className:Ft.chargePageContainer,children:[i.jsx("div",{className:Ft.chargeItems,children:i.jsx(Od,{charge:a})}),i.jsx("div",{className:Ft.mainContent,style:p?{borderLeft:"1px solid var(--border-secondary)"}:void 0,children:i.jsxs("div",{className:g.clx(Ft.contentWrapper,{[Ft.antistockContent]:p}),children:[a&&(a==null?void 0:a.status)!==Ae.NotPaid&&i.jsx(Rd,{charge:a}),a&&i.jsxs("div",{className:g.clx(Ft.statusBlock,{[Ft.statusBlockAntistock]:p}),children:[i.jsx(zi,{lastUpdate:a.expiresAt,email:a.customerForCharge.email,invoiceId:a.id,paymentType:a.gateway}),p&&(a==null?void 0:a.status)===Ae.NotPaid&&i.jsx("div",{className:Ft.antistockPayNow,children:a==null?void 0:a.displayPaymentInfo.map((b,_)=>i.jsx(aa,{block:b},_))}),p&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:Ft.antistockTrackPayment,children:i.jsx(Ma,{timeline:a.timeline})}),i.jsx(zn,{className:Ft.antistockFooter})]})]}),!p&&(a==null?void 0:a.status)===Ae.NotPaid&&i.jsx("div",{className:Ft.notPaidSection,children:a==null?void 0:a.displayPaymentInfo.map((b,_)=>i.jsx(aa,{block:b},_))}),!p&&i.jsx(zn,{className:Ft.footer})]})}),(a==null?void 0:a.gateway)==="PayPalFF"&&o&&i.jsx(N.Modal,{close:()=>c(!1),children:i.jsx(Md,{price:a.price,setIsOpen:c})}),(a==null?void 0:a.gateway)==="Сashapp"&&o&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(jd,{setIsOpen:c,chargeId:a.id})})]})},fP=Object.freeze(Object.defineProperty({__proto__:null,ChargePage:dP},Symbol.toStringTag,{value:"Module"}));exports.ActivePaymentMethod=zd;exports.ActiveSubscriptionProduct=qd;exports.BalanceModal=El;exports.ChangeSubscriptionPlan=Ud;exports.ChargeStatus=Ae;exports.CheckoutFooter=zn;exports.CheckoutHeader=ma;exports.CheckoutItems=Kl;exports.CheckoutOperational=wd;exports.CheckoutOrderMainData=zi;exports.CheckoutPrices=vr;exports.CheckoutProduct=ga;exports.LeaveAReview=Gd;exports.Markdown=Aa;exports.MarkdownText=$i;exports.NoItemsBlock=ha;exports.OrderStatus=be;exports.OrderStatusBlock=Yd;exports.OrdersTable=Zl;exports.PageSize=Yu;exports.PageTitle=fa;exports.PaginationWithRange=mu;exports.ReCaptchaProvider=ni;exports.RefundNotificationModal=t2;exports.StableText=ll;exports.SubscriptionCoupon=$d;exports.SubscriptionExpirationDate=Vd;exports.SubscriptionProduct=Hd;exports.SubscriptionsTable=Bd;exports.Table=pa;exports.TableItemTitle=Pt;exports.TicketRow=Fd;exports.TrackPayment=Ma;exports.VouchCard=Jd;exports.VouchModal=e2;exports.auth=F2;exports.fetchAuthorizedOrder=x2;exports.fetchGeneral=u2;exports.fetchOrder=_2;exports.fetchOrders=b2;exports.fetchPrivacyPolicy=m2;exports.fetchRefundPolicy=p2;exports.fetchSubscription=k2;exports.fetchSubscriptions=N2;exports.fetchTerms=h2;exports.fetchThemeAndSettings=a2;exports.fetchTicket=D2;exports.fetchTickets=P2;exports.getBalance=oa;exports.getBalanceSettings=dl;exports.getGatewaysDetail=fu;exports.index=KL;exports.index$1=fP;exports.parseDraftJsText=Nd;exports.recapcha=Tp;exports.rehypeRaw=Li;exports.remarkGfm=ki;exports.sendTicketMessage=L2;exports.uploadImage=E2;exports.useCart=hu;exports.useCopy=Zn;exports.useGeneralInfo=wl;exports.useMarkdownIt=Sd;exports.useReCaptcha=pu;
|