import{d as me,bl as it,bm as dt,Y as u,b as k,ae as ce,Z as ee,c as v,F as te,p as ut,a as t,e as Ge,o as c,n as ct,r as mt,_ as pe,h as o,l as s,i as g,w as I,E as pt,N as Q,Q as He,q as Qe,t as q,j as L,ai as ft,dJ as gt,aD as ne,aB as vt,bM as ht,$ as xt,g as ie,bJ as E,bI as D,aq as bt,aL as yt,ah as de,aw as Le,aR as wt,bG as kt,S as St,dN as Mt,b6 as _t,ad as Ct,V as P,b4 as $t}from"./Co0rzPff.js";import{_ as Tt,a as At,m as Pt}from"./D3CvyJNJ.js";import{c as It}from"./DcFkmsmp.js";import{f as Ye}from"./WM7oQQBD.js";import{_ as qt}from"./D9VsvkBY.js";import{M as zt}from"./CohJvCfI.js";import{a as V}from"./BKvmybFC.js";import{u as Z}from"./DweEgKYS.js";import{u as Bt}from"./L_4X0bf_.js";import{u as Dt}from"./DN-g_sLF.js";import{u as Ft}from"./CW8KImJr.js";import{u as Re}from"./CdDJKVfF.js";import"./DXpa0SRI.js";import"./N3sMM75Y.js";import"./B_QGMTtP.js";import"./z-xUYPp7.js";import"./B1zKQxf0.js";import"./qC9qCRM4.js";import"./wH9RihXo.js";import"./1TRkdg3x.js";const Nt=["onClick"],Ut=me({__name:"OptionGroup",props:it({options:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(F){const r=dt(F,"modelValue"),h=F,C=u(null),_=u(4),y=u(4),S=u(4),$=u(4),p=k(()=>`${_.value}px`),l=k(()=>`${y.value}px`),f=k(()=>`${S.value}px`),Y=k(()=>`${$.value}px`),N=u(),J=u(!1);function X(T){r.value=T}ce(r,()=>{R(h.options.indexOf(r.value))});function R(T){const x=N.value[T];if(!x||!x.offsetParent)return;const i={left:x.offsetLeft,top:x.offsetTop,right:x.offsetParent.offsetWidth-x.offsetLeft-x.offsetWidth,bottom:x.offsetParent.offsetHeight-x.offsetTop-x.offsetHeight};_.value===4&&S.value===4?(_.value=i.left,S.value=i.right,y.value=i.top,$.value=i.bottom):(i.left<_.value?(_.value=i.left,setTimeout(()=>{S.value=i.right},200)):(S.value=i.right,setTimeout(()=>{_.value=i.left},200)),i.top{$.value=i.bottom},200)):($.value=i.bottom,setTimeout(()=>{y.value=i.top},200))),J.value=!0}return ee(()=>{R(h.options.indexOf(r.value))}),(T,x)=>(c(),v("nav",{ref_key:"scrollContainer",ref:C,class:"card-shadow experimental-styles-within relative flex w-fit overflow-x-auto rounded-full bg-bg-raised p-1 text-sm font-bold"},[(c(!0),v(te,null,ut(T.options,(i,W)=>(c(),v("button",{key:`option-group-${W}`,ref_for:!0,ref_key:"optionButtons",ref:N,class:ct(["button-animation z-[1] flex flex-row items-center gap-2 rounded-full bg-transparent px-4 py-2 font-semibold",{"text-button-textSelected":r.value===i,"text-primary":r.value!==i}]),onClick:fe=>X(i)},[mt(T.$slots,"default",{option:i,selected:r.value===i},void 0,!0)],10,Nt))),128)),t("div",{class:"navtabs-transition pointer-events-none absolute h-[calc(100%-0.5rem)] overflow-hidden rounded-full bg-button-bgSelected p-1",style:Ge({left:p.value,top:l.value,right:f.value,bottom:Y.value,opacity:J.value?1:0}),"aria-hidden":"true"},null,4)],512))}}),Lt=pe(Ut,[["__scopeId","data-v-d1d4c4f8"]]),Rt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"7 18 57 32"};function jt(F,r){return c(),v("svg",Rt,r[0]||(r[0]=[t("path",{fill:"currentColor",d:"m22.562 46.896 8.627-4.616a.964.964 0 0 0-.013-1.722l-8.75-4.643c-.58-.307-1.288.087-1.289.717l-.005 9.464c0 .7.792 1.144 1.43.803zM48.78 47.091l-8.621-4.744c-.703-.388-.697-1.357.014-1.722l8.756-4.513c.58-.298 1.288.106 1.288.736l-.006 9.464c0 .701-.793 1.133-1.43.782z"},null,-1),t("path",{fill:"currentColor",d:"m62.174 23.588-7.255-4.21a1.77 1.77 0 0 0-1.712-.031l-16.692 8.975c-.53.285-1.182.28-1.712-.013l-16.684-9.22a1.76 1.76 0 0 0-1.712.005l-7.262 4.1c-.523.295-.843.83-.844 1.41l-.01 19.202c0 .553.297 1.071.786 1.372l6.216 3.798c.128.08.385.233.678.41.62.371 1.422-.05 1.417-.746v-.735l.043-17.093c.001-.907 1.033-1.465 1.858-1.008l15.462 8.584a1.88 1.88 0 0 0 1.797.013l15.47-8.353c.827-.445 1.855.128 1.857 1.035l.023 17.094c0 .151.003.427.005.74.005.69.804 1.119 1.42.756.276-.162.528-.309.67-.394l6.22-3.706c.49-.293.788-.804.788-1.36l.012-19.201a1.65 1.65 0 0 0-.842-1.424z"},null,-1)]))}const Et={render:jt},Vt={id:"medal",class:"medal-promotion flex w-full flex-col items-start gap-4 rounded-xl px-4 py-4 shadow-xl md:flex-row md:items-center md:justify-between md:gap-0 md:px-8 md:py-6"},Wt={class:"z-10 flex items-start gap-3 text-xl font-semibold text-contrast md:items-center md:gap-6 md:text-2xl"},Ot=me({__name:"MedalPlanPromotion",setup(F){return(r,h)=>{const C=He;return c(),v("div",Vt,[o(zt),t("div",Wt,[o(s(Et),{class:"h-8 w-auto text-contrast md:h-10"}),h[0]||(h[0]=t("div",{class:"flex flex-col items-start gap-1"},[t("span",null,[g(" Try a free "),t("span",{class:"text-medal-orange"},"3GB server"),g(" for 5 days powered by "),t("span",{class:"text-medal-orange"},"Medal")]),t("span",{class:"text-xs font-medium text-secondary md:text-sm"}," Limited-time offer. No credit card required. Available for US servers. ")],-1))]),o(s(Q),{color:"medal-promo",type:"outlined",size:"large",class:"z-10 my-auto mt-2"},{default:I(()=>[o(C,{to:"https://medal.tv/modrinth",class:"z-10 flex w-full items-center justify-center gap-1 md:mt-0 md:w-auto"},{default:I(()=>[h[1]||(h[1]=g("Learn more ")),o(s(pt))]),_:1})]),_:1})])}}}),Gt=pe(Ot,[["__scopeId","data-v-9da501e9"]]),Ht={class:"relative flex w-full flex-col justify-between"},Qt={class:"flex flex-col gap-2"},Yt={class:"flex flex-row flex-wrap items-center gap-3"},Jt={class:"m-0"},Xt={key:0,class:"rounded-full bg-brand-highlight px-2 py-1 text-xs font-bold text-brand"},Kt={class:"m-0 text-2xl font-bold text-contrast"},Zt={class:"text-lg font-semibold text-secondary"},ea={class:"m-0 max-w-[18rem]"},ta={key:0,class:"button-like disabled"},ue=me({__name:"ServerPlanSelector",props:{capacity:{},plan:{},ram:{},storage:{},cpus:{},price:{},interval:{},currency:{},isUsa:{type:Boolean}},emits:["select","scroll-to-faq"],setup(F,{emit:r}){const{formatMessage:h,locale:C}=Qe(),_=r,y={small:{buttonColor:"blue",accentText:"text-blue",accentBg:"bg-bg-blue",name:V({id:"servers.plan.small.name",defaultMessage:"Small"}),description:V({id:"servers.plan.small.description",defaultMessage:"Perfect for 1–5 friends with a few light mods."}),mostPopular:!1},medium:{buttonColor:"green",accentText:"text-green",accentBg:"bg-bg-green",name:V({id:"servers.plan.medium.name",defaultMessage:"Medium"}),description:V({id:"servers.plan.medium.description",defaultMessage:"Great for 6–15 players and multiple mods."}),mostPopular:!0},large:{buttonColor:"purple",accentText:"text-purple",accentBg:"bg-bg-purple",name:V({id:"servers.plan.large.name",defaultMessage:"Large"}),description:V({id:"servers.plan.large.description",defaultMessage:"Ideal for 15–25 players, modpacks, or heavy modding."}),mostPopular:!1}},S=F,$=k(()=>!S.capacity||S.capacity===0),p=k(()=>S.interval==="yearly"?12:S.interval==="quarterly"?3:1);return(l,f)=>(c(),v("li",Ht,[t("div",{style:Ge(y[l.plan].mostPopular?{background:`radial-gradient( 86.12% 101.64% at 95.97% 94.07%, rgba(27, 217, 106, 0.23) 0%, rgba(14, 115, 56, 0.2) 100% )`,border:"1px solid rgba(12, 107, 52, 0.55)","box-shadow":"0px 12px 38.1px rgba(27, 217, 106, 0.13)"}:void 0),class:"flex w-full flex-col justify-between gap-4 rounded-2xl bg-bg p-8 text-left"},[t("div",Qt,[t("div",Yt,[t("h1",Jt,q(s(h)(y[l.plan].name)),1),y[l.plan].mostPopular?(c(),v("div",Xt," Most popular ")):L("",!0)]),t("span",Kt,[g(q(s(Ye)(s(C),l.price/s(p),l.currency,!0))+" "+q(l.isUsa?"":l.currency)+" ",1),t("span",Zt,[f[2]||(f[2]=g(" / month")),l.interval!=="monthly"?(c(),v(te,{key:0},[g(", billed "+q(l.interval),1)],64)):L("",!0)])]),t("p",ea,q(s(h)(y[l.plan].description)),1)]),o(s(Q),{color:y[l.plan].buttonColor,type:y[l.plan].mostPopular?"standard":"highlight-colored-text",size:"large"},{default:I(()=>[s($)?(c(),v("span",ta," Out of Stock ")):(c(),v("button",{key:1,onClick:f[0]||(f[0]=()=>_("select"))},"Select plan"))]),_:1},8,["color","type"]),o(s(Tt),{ram:l.ram,storage:l.storage,cpus:l.cpus,"bursting-link":"/servers#cpu-burst",onClickBurstingLink:f[1]||(f[1]=()=>_("scroll-to-faq"))},null,8,["ram","storage","cpus"])],4)]))}}),aa={ref:"scrollListener","data-pyro":"",class:"servers-hero relative isolate -mt-44 h-full min-h-screen pt-8"},sa={class:"mx-auto mt-32 flex min-h-[calc(80vh-0px)] max-w-7xl flex-col justify-center px-5 sm:mt-20 sm:min-h-[calc(100vh-0px)] sm:pl-10 lg:pl-3"},oa={class:"z-[5] flex w-full flex-col gap-8"},ra={class:"flex flex-col gap-4"},la={class:"relative h-fit w-fit rounded-full bg-highlight-green px-3 py-1 text-sm font-bold text-brand backdrop-blur-lg"},na={class:"relative flex w-full flex-wrap items-center gap-8 align-middle sm:w-fit"},ia={class:"flex w-full flex-col items-center gap-5 text-center align-middle sm:w-fit sm:flex-row"},da={class:"relative flex flex-col bg-[radial-gradient(65%_50%_at_50%_-10%,var(--color-brand-highlight)_0%,var(--color-accent-contrast)_100%)] px-3 pt-24 md:pt-48"},ua={class:"relative mx-auto flex w-full max-w-7xl flex-col gap-8"},ca={class:"relative grid w-full grid-cols-1 gap-8 lg:grid-cols-2"},ma={class:"relative flex flex-col gap-4 rounded-2xl bg-bg p-6 text-left md:p-12"},pa={class:"grid w-full grid-cols-1 gap-8 lg:grid-cols-3"},fa={class:"relative flex flex-col gap-4 rounded-2xl bg-bg p-6 text-left md:p-12"},ga={class:"relative mt-24 flex flex-col bg-[radial-gradient(65%_50%_at_50%_-10%,var(--color-brand-highlight)_0%,var(--color-accent-contrast)_100%)] px-3 pt-24 md:mt-48 md:pt-48"},va={class:"relative mx-auto flex w-full max-w-7xl flex-col gap-8"},ha={class:"grid grid-cols-1 gap-9 lg:grid-cols-2"},xa={class:"grid w-full grid-cols-1 gap-8"},ba={class:"relative flex flex-col gap-4 rounded-2xl bg-bg p-6 text-left md:p-12"},ya={"aria-hidden":"true",class:"ooh-shiny absolute right-4 top-4 flex items-center justify-center rounded-full bg-bg-raised p-4"},wa={class:"font-bold text-contrast"},ka={class:"grid w-full grid-cols-1 gap-8 lg:grid-cols-2"},Sa={class:"relative flex flex-col gap-4 rounded-2xl bg-bg p-6 text-left md:p-12"},Ma={class:"grid w-full grid-cols-1 gap-8 lg:grid-cols-2"},_a={class:"relative flex flex-col gap-4 rounded-2xl bg-bg p-6 text-left md:p-12"},Ca={class:"relative flex flex-col gap-4 rounded-2xl bg-bg p-6 text-left md:p-12"},$a={class:"relative flex flex-col gap-4 rounded-2xl bg-bg p-6 text-left md:p-12"},Ta={class:"details-hide flex flex-col gap-1"},Aa=["open"],Pa={class:"flex cursor-pointer items-center py-3 font-medium text-contrast"},Ia={class:"mr-2 transition-transform duration-200 group-open:rotate-90"},qa=["open"],za={class:"flex cursor-pointer items-center py-3 font-medium text-contrast"},Ba={class:"mr-2 transition-transform duration-200 group-open:rotate-90"},Da=["open"],Fa={class:"flex cursor-pointer items-center py-3 font-medium text-contrast"},Na={class:"mr-2 transition-transform duration-200 group-open:rotate-90"},Ua=["open"],La={class:"flex cursor-pointer items-center py-3 font-medium text-contrast"},Ra={class:"mr-2 transition-transform duration-200 group-open:rotate-90"},ja=["open"],Ea={class:"flex cursor-pointer items-center py-3 font-medium text-contrast"},Va={class:"mr-2 transition-transform duration-200 group-open:rotate-90"},Wa=["open"],Oa={class:"flex cursor-pointer items-center py-3 font-medium text-contrast"},Ga={class:"mr-2 transition-transform duration-200 group-open:rotate-90"},Ha=["open"],Qa={class:"flex cursor-pointer items-center py-3 font-medium text-contrast"},Ya={class:"mr-2 transition-transform duration-200 group-open:rotate-90"},Ja=["open"],Xa={class:"flex cursor-pointer items-center py-3 font-medium text-contrast"},Ka={class:"mr-2 transition-transform duration-200 group-open:rotate-90"},Za={class:"relative mt-24 flex flex-col bg-[radial-gradient(65%_50%_at_50%_-10%,var(--color-brand-highlight)_0%,var(--color-accent-contrast)_100%)] px-3 pt-24 md:mt-48 md:pt-48"},es={"nav-hash":"plan",class:"mx-auto flex w-full max-w-7xl flex-col items-center gap-8 text-center"},ts={class:"grid grid-cols-[1fr_auto_1fr] items-center gap-3"},as={key:1},ss={key:2},os={key:1,class:"bg-transparent p-0 text-sm font-medium text-brand"},rs={key:1},ls={class:"m-0 flex w-full grid-cols-3 flex-col gap-8 p-0 lg:grid"},ns={class:"mb-24 flex w-full flex-col items-start justify-between gap-4 rounded-2xl bg-bg p-8 text-left lg:flex-row lg:gap-0"},is={class:"experimental-styles-within flex w-full flex-col-reverse gap-2 md:w-auto md:flex-col md:items-center"},ds={key:0,class:"m-0 text-sm"},je="Modrinth Servers",Ee="Start your own Minecraft server directly on Modrinth. Play your favorite mods, plugins, and datapacks — without the hassle of setup.",Ve=75,us=25,cs=2e3,ms="https://discord.modrinth.com",We=20,Oe=200,ps=1e3,fs={__name:"index",async setup(F){let r,h;const{addNotification:C}=ft(),{locale:_,formatMessage:y}=Qe(),S=Bt(),$=u(["monthly","quarterly"]),p=u($.value.includes("quarterly")?"quarterly":"monthly"),l=gt.filter(a=>a.metadata.type==="pyro").sort((a,e)=>a.metadata.ram-e.metadata.ram),f=l.filter(a=>a.metadata.ram===4096||a.metadata.ram===6144||a.metadata.ram===8192),Y=k(()=>{var e,d,n,M,b;const a=(b=(M=(n=(d=(e=l[0])==null?void 0:e.prices)==null?void 0:d.find(j=>j.currency_code===A.value))==null?void 0:n.prices)==null?void 0:M.intervals)==null?void 0:b[p.value];return a?a/Pt[p.value]:void 0});Dt({title:je,description:Ee,ogTitle:je,ogDescription:Ee});const N=([r,h]=ne(()=>yt()),r=await r,h(),r),J=vt(),X=$t(),R=u(null),T=Ft(),x=u(null),i=u([]),W=u(null),fe=u(!1),Je=u(!1),Xe=u(0),ge=["my-smp","medieval-masters","create-server","mega-smp","spookypack"],ae=u(0),U=u(""),se=u(!1),A=u("USD"),Ke=k(()=>!N.value.user),{data:ve}=([r,h]=ne(async()=>Re("ServerListCountCheck",async()=>{try{if(!N.value.user)return!1;const a=await Z("servers");return a.servers&&a.servers.length>0}catch{return!1}})),r=await r,h(),r);function Ze(a,e){return Z(`stock?region=${a.shortcode}`,{method:"POST",body:{...e},bypassAuth:!0}).then(d=>d.available)}async function he(a=null){try{const e=a!=null&&a.metadata?[a]:[...f,l.reduce((n,M)=>M.metadata.ramRe("ServerCapacityAll",he,{getCachedData(){return null}})),r=await r,h(),r),tt=k(()=>{var a,e;return((e=(a=z.value)==null?void 0:a.small)==null?void 0:e.available)===0}),at=k(()=>{var a,e;return((e=(a=z.value)==null?void 0:a.medium)==null?void 0:e.available)===0}),st=k(()=>{var a,e;return((e=(a=z.value)==null?void 0:a.large)==null?void 0:e.available)===0}),ot=k(()=>{var a,e;return((e=(a=z.value)==null?void 0:a.custom)==null?void 0:e.available)===0}),O=()=>{const a=ge[ae.value];se.value?U.value.length>0?(U.value=U.value.slice(0,-1),setTimeout(O,us)):(se.value=!1,ae.value=(ae.value+1)%ge.length,setTimeout(O,Ve)):U.value.length{C({title:"An error occurred",type:"error",text:a.message??(a.data?a.data.description:a)})};async function xe(){if(N.value.user)try{const[a,e]=await Promise.all([de("billing/customer",{internal:!0}),de("billing/payment_methods",{internal:!0})]);x.value=a,i.value=e}catch(a){console.error("Error fetching payment data:",a),C({title:"Error fetching payment data",type:"error",text:a.message||"An unexpected error occurred"})}}const oe=u(),B=ht(),lt=k(()=>tt.value&&at.value&&st.value),G=()=>{if(B.hash){const a=document.querySelector(`[nav-hash="${B.hash.slice(1)}"]`);if(a){a.open=!0;const e=a.getBoundingClientRect().top,d=window.innerHeight/2-a.clientHeight/2;window.scrollTo({top:window.scrollY+e-d,behavior:"smooth"})}}};ee(()=>{var a,e;G(),(a=B.query)!=null&&a.project&&(oe.value=(e=B.query)==null?void 0:e.project)}),ce(()=>B.hash,G);const w={small:f==null?void 0:f[0],medium:f==null?void 0:f[1],large:f==null?void 0:f[2],custom:l||[]},H=async a=>{var d,n;if(Ke.value){J.$router.push(`/auth/sign-in?redirect=${encodeURIComponent("/servers?plan="+a)}`);return}if(await et(),console.log(z.value),a==="custom"&&ot.value||lt.value){C({title:"Server Capacity Full",type:"error",text:"We are currently at capacity. Please try again later."});return}const e=w[a];if(e){if(a==="custom"&&!e.length||a!=="custom"&&!e.metadata){C({title:"Invalid product",type:"error",text:"The selected product was found but lacks necessary data. Please contact support."});return}l.metadata||(l.metadata={}),l.metadata.type="pyro",fe.value=a==="custom",W.value=e,Je.value=!0,Xe.value++,await Le(),a==="custom"?(d=R.value)==null||d.show(p.value,null,oe.value):(n=R.value)==null||n.show(p.value,W.value,oe.value)}},be=async()=>{if("plan"in B.query){await Le();const a=document.querySelector('[nav-hash="plan"]');a&&(a.scrollIntoView({behavior:"smooth"}),B.query.plan!==null&&await H(B.query.plan))}},re=u([]),le=u([]);function nt(){Z("regions",{method:"GET",version:1,bypassAuth:!0}).then(a=>{re.value=a,re.value.forEach(e=>{ye(e)})})}function ye(a,e=1){if(e>10){le.value.push({region:a.shortcode,ping:-1});return}const d=`wss://${a.shortcode}${e}.${a.zone}/pingtest`;try{const n=new WebSocket(d),M=[];n.onopen=()=>{for(let b=0;b{n.send(performance.now())},b*Oe);setTimeout(()=>{n.close();const b=Math.round([...M].sort((j,K)=>j-K)[Math.floor(M.length/2)]);b&&le.value.push({region:a.shortcode,ping:b})},We*Oe+ps)},n.onmessage=b=>{M.push(performance.now()-b.data)},n.onerror=b=>{console.error(`Failed to connect pingtest WebSocket with ${d}, trying index ${e+1}:`,b),ye(a,e+1)}}catch(n){console.error(`Failed to connect pingtest WebSocket with ${d}:`,n)}}return ee(()=>{O(),be(),nt()}),ce(x,a=>{a&&be()}),ee(()=>{document.body.style.background="var(--color-accent-contrast)",document.body.style.overflowX="hidden !important";const a=document.querySelector(".layout");a&&(a.style.background="var(--color-accent-contrast)"),xe()}),xt(()=>{document.body.style.background="",document.body.style.overflowX="";const a=document.querySelector(".layout");a&&(a.style.background=""),window.Stripe&&(window.Stripe=null)}),(a,e)=>{var n,M,b,j,K,we,ke,Se,Me,_e,Ce,$e,Te,Ae,Pe,Ie,qe,ze,Be,De,Fe,Ne,Ue;const d=He;return c(),v("div",aa,[s(x)?(c(),ie(s(At),{key:`purchase-modal-${s(x).id}`,ref_key:"purchaseModal",ref:R,"publishable-key":s(X).public.stripePublishableKey,"initiate-payment":async m=>await s(de)("billing/payment",{internal:!0,method:"POST",body:m}),"available-products":s(l),"on-error":rt,customer:s(x),"payment-methods":s(i),currency:s(A),"return-url":`${s(X).public.siteUrl}/servers/manage`,"server-name":`${(M=(n=s(N))==null?void 0:n.user)==null?void 0:M.username}'s server`,"out-of-stock-url":ms,"fetch-capacity-statuses":he,pings:s(le),regions:s(re),"refresh-payment-methods":xe,"fetch-stock":Ze},null,8,["publishable-key","initiate-payment","available-products","customer","payment-methods","currency","return-url","server-name","pings","regions"])):L("",!0),t("section",sa,[t("div",oa,[t("div",ra,[t("div",la,q(s(y)(s(It).betaRelease)),1),e[9]||(e[9]=t("h1",{class:"relative m-0 max-w-3xl text-3xl font-bold !leading-[110%] md:text-6xl"}," Host your next server with Modrinth Servers ",-1))]),e[11]||(e[11]=t("h2",{class:"relative m-0 max-w-2xl text-base font-normal leading-[155%] text-secondary md:text-[1.2rem]"}," Modrinth Servers is the easiest way to host your own Minecraft: Java Edition server. Seamlessly install and play your favorite mods and modpacks, all within the Modrinth platform. ",-1)),t("div",na,[t("div",ia,[o(s(Q),{color:"brand",size:"large"},{default:I(()=>[o(d,{class:"w-fit",to:"#plan"},{default:I(()=>[o(s(wt),{"aria-hidden":"true"}),g(" "+q(s(ve)?"Start a new server":"Start your server"),1)]),_:1})]),_:1}),s(ve)?(c(),ie(s(Q),{key:0,type:"outlined",size:"large"},{default:I(()=>[o(d,{class:"w-fit",to:"/servers/manage"},{default:I(()=>[o(s(kt),{"aria-hidden":"true"}),e[10]||(e[10]=g(" Manage your servers "))]),_:1})]),_:1})):L("",!0)])])]),e[12]||(e[12]=E('
',2))]),t("section",da,[e[24]||(e[24]=t("div",{class:"faded-brand-line absolute left-0 top-0 h-[1px] w-full"},null,-1)),t("div",ua,[e[19]||(e[19]=t("div",{class:"relative w-fit rounded-full bg-highlight-green px-3 py-1 text-sm font-bold text-brand backdrop-blur-lg"}," Why Modrinth Servers? ",-1)),e[20]||(e[20]=t("h1",{class:"relative m-0 max-w-2xl text-4xl leading-[120%] md:text-7xl"}," Find a modpack. Now it's a server. ",-1)),e[21]||(e[21]=t("h2",{class:"relative m-0 max-w-2xl text-base font-normal leading-[155%] text-secondary md:text-[18px]"}," Choose from the thousands of modpacks on Modrinth or create your own. Invite your friends when you're ready to play. ",-1)),e[22]||(e[22]=t("img",{src:"https://cdn.modrinth.com/servers/excitement.webp",alt:"",class:"absolute right-14 top-0 hidden max-w-[360px] lg:block"},null,-1)),t("div",ca,[e[15]||(e[15]=E('

Play where your mods are

Modrinth Servers seamlessly integrates the mod and modpack installation process into your server.

',1)),t("div",ma,[o(qt,{loader:"fabric",class:"size-8 text-brand"}),e[13]||(e[13]=t("h2",{class:"m-0 text-lg font-bold"},"All your favorite mods",-1)),e[14]||(e[14]=t("h3",{class:"m-0 text-base font-normal text-secondary"}," Choose between Vanilla, Fabric, Forge, Quilt and NeoForge. If it's on Modrinth, it can run on your server. ",-1))])]),e[23]||(e[23]=t("div",{class:"relative"},[t("img",{src:"https://cdn.modrinth.com/servers/installation-dark.webp",alt:"",class:"hidden w-full rounded-2xl sm:block"})],-1)),t("div",pa,[e[18]||(e[18]=E('

Manage it all on Modrinth

Your server, mods, players, and more are all on Modrinth. No need to switch between platforms.

Experience modern, reliable hosting

Modrinth Servers are hosted on high-performance AMD CPUs with DDR5 RAM, running on custom-built software to ensure your server performs smoothly.

',2)),t("div",fa,[o(s(St),{class:"size-8 text-brand"}),e[16]||(e[16]=t("h2",{class:"m-0 text-lg font-bold"},"Consistently fast",-1)),e[17]||(e[17]=t("h3",{class:"m-0 text-base font-normal text-secondary"}," Our infrastructure is never overloaded, meaning each server hosted with Modrinth always runs at its full performance. ",-1))])])])]),t("section",ga,[e[59]||(e[59]=t("div",{class:"faded-brand-line absolute left-0 top-0 h-[1px] w-full"},null,-1)),t("div",va,[e[55]||(e[55]=t("div",{class:"relative w-fit rounded-full bg-highlight-green px-3 py-1 text-sm font-bold text-brand backdrop-blur-lg"}," Included with your server ",-1)),e[56]||(e[56]=t("h1",{class:"relative m-0 max-w-2xl text-4xl leading-[120%] md:text-7xl"}," Comes with all the features you need. ",-1)),e[57]||(e[57]=t("h2",{class:"relative m-0 max-w-xl text-base font-normal leading-[155%] text-secondary md:text-[18px]"}," Included with every server is a suite of features designed to provide a hosting experience that only Modrinth can offer. ",-1)),e[58]||(e[58]=t("img",{src:"https://cdn.modrinth.com/servers/waving.webp",alt:"",class:"absolute right-8 top-40 hidden max-w-[480px] lg:block"},null,-1)),t("div",ha,[t("div",xa,[t("div",ba,[e[26]||(e[26]=E('

Custom URL

Share your server with a custom modrinth.gg URL.

',3)),t("div",ya,[t("span",wa,q(s(U)),1),e[25]||(e[25]=g(".modrinth.gg "))])]),e[27]||(e[27]=E('

Backups included

Every server comes with 15 backups stored securely off-site.

',1))]),e[28]||(e[28]=t("div",{style:{background:`radial-gradient( 86.12% 101.64% at 95.97% 94.07%, rgba(27, 217, 106, 0.23) 0%, rgba(14, 115, 56, 0.2) 100% )`,border:"1px solid rgba(12, 107, 52, 0.55)","box-shadow":"0px 12px 38.1px rgba(27, 217, 106, 0.13)"},class:"relative flex flex-col gap-4 overflow-hidden rounded-2xl p-6 text-left sm:backdrop-blur-xl md:p-12"},[t("h2",{class:"m-0 text-lg font-bold"},"Easy to use file manager"),t("h3",{class:"m-0 text-base font-normal"}," Search, manage, edit, and upload files directly to your server with ease. "),t("img",{src:"https://cdn.modrinth.com/servers/content-dark.webp",alt:"",class:"absolute -bottom-12 -right-[15%] hidden max-w-2xl rounded-2xl bg-brand p-4 lg:block"})],-1))]),t("div",ka,[t("div",Sa,[o(s(Mt),{class:"size-8 text-brand"}),e[29]||(e[29]=t("h2",{class:"m-0 text-lg font-bold"}," A powerful console, server properties manager, and more ",-1)),e[30]||(e[30]=t("h3",{class:"m-0 text-base font-normal text-secondary"}," Modrinth Servers come with powerful tools to manage your server. ",-1))]),e[31]||(e[31]=E('

Help when you need it

Reach out to the Modrinth team for help with your server at any time.

',1))]),t("div",Ma,[t("div",_a,[o(s(_t),{class:"size-8 text-brand"}),e[32]||(e[32]=t("h2",{class:"m-0 text-lg font-bold"},"SFTP access",-1)),e[33]||(e[33]=t("h3",{class:"m-0 text-base font-normal text-secondary"}," Access your server files directly with SFTP built into Modrinth Servers. ",-1))]),t("div",Ca,[o(s(Ct),{class:"size-8 text-brand"}),e[34]||(e[34]=t("h2",{class:"m-0 text-lg font-bold"},"Advanced networking management",-1)),e[35]||(e[35]=t("h3",{class:"m-0 text-base font-normal text-secondary"}," Add your own domain to your server, reserve up to 15 ports for mods that require them, and more. ",-1))])]),t("div",$a,[e[54]||(e[54]=t("h1",{class:"m-0 text-lg font-bold"},"Frequently Asked Questions",-1)),t("div",Ta,[t("details",{"nav-hash":"cpus",class:"group",open:(a._.provides[D]||a.$route).hash==="#cpus"},[t("summary",Pa,[t("span",Ia,[o(s(P))]),e[36]||(e[36]=g(" What kind of CPUs do Modrinth Servers run on? "))]),e[37]||(e[37]=t("p",{class:"m-0 ml-6 leading-[160%]"}," Modrinth Servers are powered by AMD Ryzen 7900 and 7950X3D equivalent CPUs at 5+ GHz, paired with DDR5 memory. ",-1))],8,Aa),t("details",{"nav-hash":"cpu-burst",class:"group",open:(a._.provides[D]||a.$route).hash==="#cpu-burst"},[t("summary",za,[t("span",Ba,[o(s(P))]),e[38]||(e[38]=g(" How do CPU burst threads work? "))]),e[39]||(e[39]=t("p",{class:"m-0 ml-6 leading-[160%]"}," When your server is under heavy load, we temporarily give it access to additional CPU threads to help mitigate lag spikes and instability. This helps prevent the TPS from going below 20, ensuring the smoothest experience possible. Since those extra CPU threads are only shortly available during high load periods, they might not show up in Spark reports or other profiling tools. ",-1))],8,qa),t("details",{"nav-hash":"ddos",class:"group",open:(a._.provides[D]||a.$route).hash==="#ddos"},[t("summary",Fa,[t("span",Na,[o(s(P))]),e[40]||(e[40]=g(" Do Modrinth Servers have DDoS protection? "))]),e[41]||(e[41]=t("p",{class:"m-0 ml-6 leading-[160%]"}," Yes. All Modrinth Servers come with DDoS protection, with up to 17Tbps capacity in some locations. ",-1))],8,Da),t("details",{"nav-hash":"region",class:"group",open:(a._.provides[D]||a.$route).hash==="#region"},[t("summary",La,[t("span",Ra,[o(s(P))]),e[42]||(e[42]=g(" Where are Modrinth Servers located? Can I choose a region? "))]),e[43]||(e[43]=t("p",{class:"m-0 ml-6 leading-[160%]"}," We have servers available in North America, Europe, and Southeast Asia at the moment that you can choose upon purchase. More regions to come in the future! If you'd like to switch your region, please contact support. ",-1))],8,Ua),t("details",{"nav-hash":"storage",class:"group",open:(a._.provides[D]||a.$route).hash==="#storage"},[t("summary",Ea,[t("span",Va,[o(s(P))]),e[44]||(e[44]=g(" Can I increase the storage on my server? "))]),e[45]||(e[45]=t("p",{class:"m-0 ml-6 leading-[160%]"}," Yes, storage can be increased on your server at no additional cost. If you need more storage, reach out to Modrinth Support. ",-1))],8,ja),t("details",{"nav-hash":"performance",class:"group",open:(a._.provides[D]||a.$route).hash==="#performance"},[t("summary",Oa,[t("span",Ga,[o(s(P))]),e[46]||(e[46]=g(" How fast are Modrinth Servers? "))]),e[47]||(e[47]=t("p",{class:"m-0 ml-6 leading-[160%]"}," Modrinth Servers are hosted on very modern high-performance hardware, but it's tough to say how exactly that will translate into how fast your server will run because there are so many factors that affect it, such as the mods, data packs, or plugins you're running on your server, and even user behavior. ",-1)),e[48]||(e[48]=t("p",{class:"mb-0 ml-6 mt-3 leading-[160%]"}," Most performance issues that arise tend to be the fault of an unoptimized modpack, mod, data pack, or plugin that causes the server to lag. Since our servers are very high-end, you shouldn't run into much trouble as long as you pick an appropriate plan for the content you're running on the server. ",-1))],8,Wa),t("details",{"nav-hash":"prices",class:"group",open:(a._.provides[D]||a.$route).hash==="#prices"},[t("summary",Qa,[t("span",Ya,[o(s(P))]),e[49]||(e[49]=g(" What currency are the prices in? "))]),e[50]||(e[50]=t("p",{class:"m-0 ml-6 leading-[160%]"}," All prices are listed in United States Dollars (USD). ",-1))],8,Ha),t("details",{"nav-hash":"versions",class:"group",open:(a._.provides[D]||a.$route).hash==="#versions"},[t("summary",Xa,[t("span",Ka,[o(s(P))]),e[51]||(e[51]=g(" What Minecraft versions and loaders can be used? "))]),e[52]||(e[52]=t("p",{class:"m-0 ml-6 leading-[160%]"}," Modrinth Servers can run any version of Minecraft: Java Edition going all the way back to version 1.2.5, including snapshot versions. ",-1)),e[53]||(e[53]=t("p",{class:"m-0 ml-6 mt-3 leading-[160%]"}," We also support a wide range of mod and plugin loaders, including Fabric, Quilt, Forge, and NeoForge for mods, as well as Paper and Purpur for plugins. Availability depends on whether the mod or plugin loader supports the selected Minecraft version. ",-1))],8,Ja)])])])]),t("section",Za,[e[65]||(e[65]=t("div",{class:"faded-brand-line absolute left-0 top-0 h-[1px] w-full"},null,-1)),t("div",es,[e[63]||(e[63]=t("h1",{class:"relative m-0 text-4xl leading-[120%] md:text-7xl"}," There's a server for everyone ",-1)),e[64]||(e[64]=t("p",{class:"m-0 flex items-center gap-1"}," Available in North America, Europe, and Southeast Asia for wide coverage. ",-1)),t("div",ts,[e[60]||(e[60]=t("span",null,null,-1)),o(Lt,{modelValue:s(p),"onUpdate:modelValue":e[0]||(e[0]=m=>bt(p)?p.value=m:null),options:s($)},{default:I(({option:m})=>[m==="monthly"?(c(),v(te,{key:0},[g(" Pay monthly ")],64)):m==="quarterly"?(c(),v("span",as," Pay quarterly ")):m==="yearly"?(c(),v("span",ss," Pay yearly ")):L("",!0)]),_:1},8,["modelValue","options"]),s($).includes("quarterly")?(c(),v(te,{key:0},[s(p)!=="quarterly"?(c(),v("button",{key:0,class:"bg-transparent p-0 text-sm font-medium text-brand hover:underline active:scale-95",onClick:e[1]||(e[1]=m=>p.value="quarterly")}," Save 16% with quarterly billing! ")):(c(),v("span",os," Save 16% with quarterly billing! "))],64)):(c(),v("span",rs))]),s(S).enableMedalPromotion?(c(),ie(Gt,{key:0})):L("",!0),t("ul",ls,[o(ue,{capacity:(j=(b=s(z))==null?void 0:b.small)==null?void 0:j.available,plan:"small",ram:w.small.metadata.ram,storage:w.small.metadata.storage,cpus:w.small.metadata.cpu,price:(Me=(Se=(ke=(we=(K=w.small)==null?void 0:K.prices)==null?void 0:we.find(m=>m.currency_code===s(A)))==null?void 0:ke.prices)==null?void 0:Se.intervals)==null?void 0:Me[s(p)],interval:s(p),currency:s(A),"is-usa":s(T).toLowerCase()==="us",onSelect:e[2]||(e[2]=m=>H("small")),onScrollToFaq:e[3]||(e[3]=m=>G())},null,8,["capacity","ram","storage","cpus","price","interval","currency","is-usa"]),o(ue,{capacity:(Ce=(_e=s(z))==null?void 0:_e.medium)==null?void 0:Ce.available,plan:"medium",ram:w.medium.metadata.ram,storage:w.medium.metadata.storage,cpus:w.medium.metadata.cpu,price:(Ie=(Pe=(Ae=(Te=($e=w.medium)==null?void 0:$e.prices)==null?void 0:Te.find(m=>m.currency_code===s(A)))==null?void 0:Ae.prices)==null?void 0:Pe.intervals)==null?void 0:Ie[s(p)],interval:s(p),currency:s(A),"is-usa":s(T).toLowerCase()==="us",onSelect:e[4]||(e[4]=m=>H("medium")),onScrollToFaq:e[5]||(e[5]=m=>G())},null,8,["capacity","ram","storage","cpus","price","interval","currency","is-usa"]),o(ue,{capacity:(ze=(qe=s(z))==null?void 0:qe.large)==null?void 0:ze.available,ram:w.large.metadata.ram,storage:w.large.metadata.storage,cpus:w.large.metadata.cpu,price:(Ue=(Ne=(Fe=(De=(Be=w.large)==null?void 0:Be.prices)==null?void 0:De.find(m=>m.currency_code===s(A)))==null?void 0:Fe.prices)==null?void 0:Ne.intervals)==null?void 0:Ue[s(p)],currency:s(A),"is-usa":s(T).toLowerCase()==="us",plan:"large",interval:s(p),onSelect:e[6]||(e[6]=m=>H("large")),onScrollToFaq:e[7]||(e[7]=m=>G())},null,8,["capacity","ram","storage","cpus","price","currency","is-usa","interval"])]),t("div",ns,[e[62]||(e[62]=t("div",{class:"flex flex-col gap-4"},[t("h1",{class:"m-0"},"Know exactly what you need?"),t("h2",{class:"m-0 text-base font-normal text-primary"}," Pick a customized plan with just the specs you need. ")],-1)),t("div",is,[o(s(Q),{color:"standard",size:"large"},{default:I(()=>[t("button",{class:"w-full md:w-fit",onClick:e[8]||(e[8]=m=>H("custom"))},[e[61]||(e[61]=g(" Get started ")),o(s(P),{class:"shrink-0"})])]),_:1}),Y.value?(c(),v("p",ds," Starting at "+q(s(Ye)(s(_),Y.value,s(A),!0))+" / month ",1)):L("",!0)])])])])],512)}}},Ds=pe(fs,[["__scopeId","data-v-4367b1a4"]]);export{Ds as default};