1import{t as e}from"./2jufPJo3.js";var t=function(e){return e.BestSeller=`BEST_SELLER`,e.EntryLevel=`ENTRY_LEVEL`,e.HighEnd=`HIGH_END`,e.Performance=`PERFORMANCE`,e}({}),n=function(e){return e.Eur=`EUR`,e.Gbp=`GBP`,e.Usd=`USD`,e}({}),r=function(e){return e.AccountEmailAlreadyExists=`ACCOUNT_EMAIL_ALREADY_EXISTS`,e.AccountWithDefinedEmailAlreadyExists=`ACCOUNT_WITH_DEFINED_EMAIL_ALREADY_EXISTS`,e.ByoipAdditionalAsnReasonRequired=`BYOIP_ADDITIONAL_ASN_REASON_REQUIRED`,e.ByoipAsnValidationFailed=`BYOIP_ASN_VALIDATION_FAILED`,e.ByoipIpValidationFailed=`BYOIP_IP_VALIDATION_FAILED`,e.ByoipPrefixValidationFailed=`BYOIP_PREFIX_VALIDATION_FAILED`,e.ByoipRemovalInProgress=`BYOIP_REMOVAL_IN_PROGRESS`,e.CannotAddSshKey=`CANNOT_ADD_SSH_KEY`,e.CannotPerformServerPowerActionWhenServerIsOff=`CANNOT_PERFORM_SERVER_POWER_ACTION_WHEN_SERVER_IS_OFF`,e.CannotPerformServerPowerActionWhenServerIsOn=`CANNOT_PERFORM_SERVER_POWER_ACTION_WHEN_SERVER_IS_ON`,e.CaptchaVerificationFailed=`CAPTCHA_VERIFICATION_FAILED`,e.ConfigurationNotFound=`CONFIGURATION_NOT_FOUND`,e.CurrencyAlreadySet=`CURRENCY_ALREADY_SET`,e.CustomIpxeBootEndingSession=`CUSTOM_IPXE_BOOT_ENDING_SESSION`,e.CustomIpxeBootIncompatibleNetwork=`CUSTOM_IPXE_BOOT_INCOMPATIBLE_NETWORK`,e.CustomIpxeBootServerNotCompatible=`CUSTOM_IPXE_BOOT_SERVER_NOT_COMPATIBLE`,e.CustomIpxeBootTemplateMaxLengthExceeded=`CUSTOM_IPXE_BOOT_TEMPLATE_MAX_LENGTH_EXCEEDED`,e.CustomIpxeBootTemplateNameAlreadyExists=`CUSTOM_IPXE_BOOT_TEMPLATE_NAME_ALREADY_EXISTS`,e.CustomIpxeBootTemplateNotFound=`CUSTOM_IPXE_BOOT_TEMPLATE_NOT_FOUND`,e.FailedToSendAccountEmail=`FAILED_TO_SEND_ACCOUNT_EMAIL`,e.InsufficientPasswordLength=`INSUFFICIENT_PASSWORD_LENGTH`,e.InternalServerError=`INTERNAL_SERVER_ERROR`,e.InvalidCode=`INVALID_CODE`,e.InvalidIpAddressFormat=`INVALID_IP_ADDRESS_FORMAT`,e.InvalidPasskeyName=`INVALID_PASSKEY_NAME`,e.InvalidPasskeyProcess=`INVALID_PASSKEY_PROCESS`,e.InvalidPasskeyUsed=`INVALID_PASSKEY_USED`,e.InvalidPassword=`INVALID_PASSWORD`,e.InvalidVat=`INVALID_VAT`,e.IpmiNoIpSet=`IPMI_NO_IP_SET`,e.IpmiPasswordInsufficientLength=`IPMI_PASSWORD_INSUFFICIENT_LENGTH`,e.IpmiPasswordRequirementsNotMet=`IPMI_PASSWORD_REQUIREMENTS_NOT_MET`,e.IpmiPasswordTooLong=`IPMI_PASSWORD_TOO_LONG`,e.ItemAlreadyExists=`ITEM_ALREADY_EXISTS`,e.LastPasskeyDelete=`LAST_PASSKEY_DELETE`,e.LimitReached=`LIMIT_REACHED`,e.Missing_2Fa=`MISSING_2FA`,e.MultipleAsnByoipNotAllowed=`MULTIPLE_ASN_BYOIP_NOT_ALLOWED`,e.NewPasswordIsTheSame=`NEW_PASSWORD_IS_THE_SAME`,e.NotAuthenticated=`NOT_AUTHENTICATED`,e.NotAuthorized=`NOT_AUTHORIZED`,e.NotFound=`NOT_FOUND`,e.NotOwned=`NOT_OWNED`,e.OperationAlreadyInProgress=`OPERATION_ALREADY_IN_PROGRESS`,e.OutOfStock=`OUT_OF_STOCK`,e.PasskeyNameTooLong=`PASSKEY_NAME_TOO_LONG`,e.PostInstallScriptMaxLengthExceeded=`POST_INSTALL_SCRIPT_MAX_LENGTH_EXCEEDED`,e.PostInstallScriptNameAlreadyExists=`POST_INSTALL_SCRIPT_NAME_ALREADY_EXISTS`,e.PostInstallScriptNotFound=`POST_INSTALL_SCRIPT_NOT_FOUND`,e.ProvisioningConflict=`PROVISIONING_CONFLICT`,e.QueryLimitExceeded=`QUERY_LIMIT_EXCEEDED`,e.RequestedTooManyServers=`REQUESTED_TOO_MANY_SERVERS`,e.ReverseDnsApiNotAvailable=`REVERSE_DNS_API_NOT_AVAILABLE`,e.SecondFactorMethodNotConfigured=`SECOND_FACTOR_METHOD_NOT_CONFIGURED`,e.SecondFactorNotProvidedOrInvalid=`SECOND_FACTOR_NOT_PROVIDED_OR_INVALID`,e.ServerLinksConfigurationAlreadyExists=`SERVER_LINKS_CONFIGURATION_ALREADY_EXISTS`,e.ServerNotInProduction=`SERVER_NOT_IN_PRODUCTION`,e.ServiceUnavailableInCountry=`SERVICE_UNAVAILABLE_IN_COUNTRY`,e.TooManyArguments=`TOO_MANY_ARGUMENTS`,e.TooManyLoginAttempts=`TOO_MANY_LOGIN_ATTEMPTS`,e.TooManyTokensGenerated=`TOO_MANY_TOKENS_GENERATED`,e.ValidationFailed=`VALIDATION_FAILED`,e.ValueTooLong=`VALUE_TOO_LONG`,e.WipeServerDiskBlockedByAnotherWipe=`WIPE_SERVER_DISK_BLOCKED_BY_ANOTHER_WIPE`,e.WipeServerDiskBlockedByInstallation=`WIPE_SERVER_DISK_BLOCKED_BY_INSTALLATION`,e.WipeServerDiskUninterruptible=`WIPE_SERVER_DISK_UNINTERRUPTIBLE`,e}({}),i=function(e){return e.BestSeller=`BEST_SELLER`,e.LlmScale=`LLM_SCALE`,e.Multipurpose=`MULTIPURPOSE`,e.Training=`TRAINING`,e}({}),a=function(e){return e.BestSeller=`BEST_SELLER`,e.EdgeInterface=`EDGE_INTERFACE`,e.HighPerformance=`HIGH_PERFORMANCE`,e.ModelTraining=`MODEL_TRAINING`,e}({}),o=function(e){return e.Mtr=`mtr`,e.Ping=`ping`,e.Traceroute=`traceroute`,e}({}),s=function(e){return e.InStock=`IN_STOCK`,e.OnDemand=`ON_DEMAND`,e.WithAdjustment=`WITH_ADJUSTMENT`,e}({}),c=function(e){return e.RoleAdmin=`ROLE_ADMIN`,e.RoleApplication=`ROLE_APPLICATION`,e.RoleAuthenticationOverrideFirstPhase=`ROLE_AUTHENTICATION_OVERRIDE_FIRST_PHASE`,e.RoleAuthorizedEmail=`ROLE_AUTHORIZED_EMAIL`,e.RoleOperationalAdmin=`ROLE_OPERATIONAL_ADMIN`,e.RoleReadOnlyAdmin=`ROLE_READ_ONLY_ADMIN`,e.RoleReadOnlyUser=`ROLE_READ_ONLY_USER`,e.RoleReadOnlyUserAdministrative=`ROLE_READ_ONLY_USER_ADMINISTRATIVE`,e.RoleRemote=`ROLE_REMOTE`,e.RoleRequestLoginCode=`ROLE_REQUEST_LOGIN_CODE`,e.RoleSetAuthentication=`ROLE_SET_AUTHENTICATION`,e.RoleSetBillingDetail=`ROLE_SET_BILLING_DETAIL`,e.RoleSetPasskey=`ROLE_SET_PASSKEY`,e.RoleSetPassword=`ROLE_SET_PASSWORD`,e.RoleTwoFactor=`ROLE_TWO_FACTOR`,e.RoleUser=`ROLE_USER`,e.RoleVerifyIdentity=`ROLE_VERIFY_IDENTITY`,e}({}),l=function(e){return e.Daily=`DAILY`,e.Monthly=`MONTHLY`,e.Quarterly=`QUARTERLY`,e.Semiannual=`SEMIANNUAL`,e.Yearly=`YEARLY`,e}({}),u=`mutation Logout { logout }`,d=async(e,t)=>$(u,{},e,t),ee=`mutation SaveCart($input: SaveCartInput!) { saveCart(input: $input) }`,te=async(e,t,n)=>$(ee,t,e,n),ne=(e,t)=>({mutationFn:async n=>te(e,n,t)}),re=`mutation SubmitPublicOrder($input: SubmitPublicOrderInput!) { submitPublicOrder(input: $input) { id } }`,ie=async(e,t,n)=>$(re,t,e,n),ae=(e,t)=>({mutationFn:async n=>ie(e,n,t)}),oe=`query ActiveRegions { activeRegions { ...ActiveRegion } } fragment ActiveRegion on Region { id short name slug }`,se=async(e,t)=>$(oe,{},e,t),f=`queryActiveRegions`,p=()=>[f,{}],m=(e,t)=>
1({queryKey:p(),queryFn:async({signal:n})=>se(e,{...t,abortSignal:n})}),h=`query AvailableServerConfigurationsByRegion($region: String!, $hasGpu: Boolean, $currency: Currency, $isPublic: Boolean, $billingPeriod: ServerBillingPeriod) { availableServerConfigurationsByRegion( region: $region hasGpu: $hasGpu currency: $currency isPublic: $isPublic billingPeriod: $billingPeriod ) { currency cpus { ...DeploymentConfigurationCpu } configurations { ...DeploymentServerConfiguration } storages { ...ServerStorageConfiguration } locations { ...ServerDeploymentLocation } } } fragment DeploymentConfigurationCpu on ServerConfigurationCpuType { oid count family customizable gpuManufacturer name frequency boostFrequency cores threads generation tier gpuConfigurationTier passmarkScore cheapestConfId defaultMemory substituteCpus traffic { minimum maximum } gpus { count type manufacturer tflops vramSizeGB vramBandwidthGBps tensorCores shadingUnits } priceStartingAt } fragment DeploymentServerConfiguration on ServerOfferConfiguration { id xid stockCount availableOnDemand customOnDemandInDays generalPrice priceStartingAt inStockPriceStartingAt cid memory storageId locationDistributions { ...DeploymentServerConfigurationLocationDistributon } } fragment DeploymentServerConfigurationLocationDistributon on ServerOfferConfigurationLocationDistribution { price location stockCount shippingCount adjustableCount uplinkCapacities { bandwidth serverCount } } fragment ServerDeploymentLocation on ServerDeploymentLocationInfo { countryIso countryName location locationId locationState locationShortname stockDeliveryTime onDemandDeliveryTime withAdjustmentDeliveryTime hasPooledTrafficPlan } fragment ServerStorageConfiguration on ServerStorageConfiguration { id raids { name count manufacturer } drives { isOs count size type } }`,g=async(e,t,n)=>$(h,t,e,n),_=`queryAvailableServerConfigurationsByRegion`,v=e=>[_,e],y=(e,t,n)=>({queryKey:v(t),queryFn:async({signal:r})=>g(e,t,{...n,abortSignal:r})}),b=`query AvailableServerPrices($location: String) { availableComputePricesPublic(location: $location) { cpu { ...LowestServerPrices } gpu { ...LowestServerPrices } } } fragment ConvertedPrices on CurrencyPriceSpread { EUR GBP USD } fragment LowestServerPrices on ComputePartLowestServerPrice { count name stockCount locationShortname convertedPrices { ...ConvertedPrices } }`,x=async(e,t,n)=>$(b,t,e,n),S=`queryAvailableServerPrices`,C=e=>[S,e],w=(e,t,n)=>({queryKey:C(t),queryFn:async({signal:r})=>x(e,t,{...n,abortSignal:r})}),T=`query AvailableServersForDeploymentByRegion { availableServersForDeploymentByRegion { ...ServerDeploymentRegion } } fragment ServerDeploymentRegion on ServerDeploymentAvailableServersByRegion { stockCount regionLong regionSlug regionShort }`,E=async(e,t)=>$(T,{},e,t),D=`queryAvailableServersForDeploymentByRegion`,O=()=>[D,{}],k=(e,t)=>({queryKey:O(),queryFn:async({signal:n})=>E(e,{...t,abortSignal:n})}),A=`query BillingCountries { countries(where: { showForBilling: true }, sortBy: [{ name: ASC }]) { ...BillingCountry } } fragment BillingCountry on Country { id iso shortName euMember vatPrefix vatPercent }`,j=async(e,t)=>$(A,{},e,t),M=`queryBillingCountries`,N=()=>[M,{}],P=(e,t)=>({queryKey:N(),queryFn:async({signal:n})=>j(e,{...t,abortSignal:n})}),F=`query Cart { cart { bandwidth billingPeriod cid currency is95thPercentile location memory region storage resolvedConfiguration { configurationId cpu { ...DeploymentConfigurationCpu } storage { ...ServerStorageConfiguration } memory } } } fragment DeploymentConfigurationCpu on ServerConfigurationCpuType { oid count family customizable gpuManufacturer name frequency boostFrequency cores threads generation tier gpuConfigurationTier passmarkScore cheapestConfId defaultMemory substituteCpus traffic { minimum maximum } gpus { count type manufacturer tflops vramSizeGB vramBandwidthGBps tensorCores shadingUnits } priceStartingAt } fragment ServerStorageConfiguration on ServerStorageConfiguration { id raids { name count manufacturer } drives { isOs count size type } }`,I=async(e,t)=>$(F,{},e,t),L=`queryCart`,R=()=>[L,{}],z=(e,t)=>({queryKey:R(),queryFn:async({signal:n})=>I(e,{...t,abortSignal:n})}),B=`query CheckAuth { checkAuth { id role secondFactor } }`,V=async(e,t)=>$(B,{},e,t),H=`queryCheckAuth`,U=()=>[H,{}],W=(e,t)=>({queryKey:U(),queryFn:async({signal:n})=>V(e,{...t,abortSignal:n})}),G=`query Industries { industries { id name } }`,K=async(e,t)=>$(G,{},e,t),ce=`queryIndustries`,le=()=>[ce,{}],ue=(e,t)=>
1({queryKey:le(),queryFn:async({signal:n})=>K(e,{...t,abortSignal:n})}),de=`query InitialDimension { dimension }`,fe=async(e,t)=>$(de,{},e,t),pe=`queryInitialDimension`,me=()=>[pe,{}],he=(e,t)=>({queryKey:me(),queryFn:async({signal:n})=>fe(e,{...t,abortSignal:n})}),ge=`query InitialInformation { initialInformation { account { id role email name timezone secondFactor defaultSubscriptionCurrency userHashIntercom slackId slackTeamId slackChannelName secondFactor defaultTrafficPlanSettings { bandwidthGb is95Percentile } accountExtraServices { extraService { id } } } subaccount { id email name roleOverride secondFactor timezone } aggregate { serverClient } features { isAdmin hasPasskey hasPassword deployWithoutPayment prorateFirstInvoice } } }`,_e=async(e,t)=>$(ge,{},e,t),ve=`queryInitialInformation`,ye=()=>[ve,{}],be=(e,t)=>({queryKey:ye(),queryFn:async({signal:n})=>_e(e,{...t,abortSignal:n})}),xe=`query IpAddressPriceConverted { ipAddressPriceConverted { ...IpAddressPriceConverted } } fragment ConvertedPrices on CurrencyPriceSpread { EUR GBP USD } fragment IpAddressPriceConverted on PriceIpAddressInCurrency { monthly { ...ConvertedPrices } oneTime { ...ConvertedPrices } }`,Se=async(e,t)=>$(xe,{},e,t),Ce=`queryIpAddressPriceConverted`,we=()=>[Ce,{}],Te=(e,t)=>({queryKey:we(),queryFn:async({signal:n})=>Se(e,{...t,abortSignal:n})}),Ee=`query IpTransitPortPricing { ipTransitPortPricing { ddosProtection { ...ConvertedPrices } portPricing { ...PortPricing } } } fragment ConvertedPrices on CurrencyPriceSpread { EUR GBP USD } fragment PortPricing on PortPricing { portCapacity portCount priceMonthly { ...ConvertedPrices } priceOneTime { ...ConvertedPrices } }`,De=async(e,t)=>$(Ee,{},e,t),Oe=`queryIpTransitPortPricing`,ke=()=>[Oe,{}],Ae=(e,t)=>({queryKey:ke(),queryFn:async({signal:n})=>De(e,{...t,abortSignal:n})}),je=`query Location($where: LocationWhereUniqueInput!) { location(where: $where) { ...Location } } fragment Location on Location { id ip slug location short state isNew hasSpeedTests country { shortName slug iso continent { id slug short name region { id short slug name short order } } } }`,Me=async(e,t,n)=>$(je,t,e,n),Ne=`query Locations { locations(where: { visibleOnPublic: true }) { ...Location } } fragment Location on Location { id ip slug location short state isNew hasSpeedTests country { shortName slug iso continent { id slug short name region { id short slug name short order } } } }`,q=async(e,t)=>$(Ne,{},e,t),Pe=`queryLocations`,Fe=()=>[Pe,{}],Ie=(e,t)=>({queryKey:Fe(),queryFn:async({signal:n})=>q(e,{...t,abortSignal:n})}),Le=`query PreferredCurrency { preferredCurrency }`,Re=async(e,t)=>$(Le,{},e,t),ze=`queryPreferredCurrency`,Be=()=>[ze,{}],Ve=(e,t)=>({queryKey:Be(),queryFn:async({signal:n})=>Re(e,{...t,abortSignal:n})}),He=`query PreferredLocation { preferredLocation { ...Location } } fragment Location on Location { id ip slug location short state isNew hasSpeedTests country { shortName slug iso continent { id slug short name region { id short slug name short order } } } }`,J=async(e,t)=>$(He,{},e,t),Ue=`queryPreferredLocation`,We=()=>[Ue,{}],Ge=(e,t)=>({queryKey:We(),queryFn:async({signal:n})=>J(e,{...t,abortSignal:n})}),Ke=`query PublicHwOffer { publicHwOffer { cpus { ...CpuHardwareOffer } gpus { ...GpuHardwareOffer } } } fragment ComponentsCpu on Cpu { tier manufacturer family name cores threads frequency boostFrequency oid } fragment ComponentsGpu on Gpu { id tier manufacturer type tflops tensorCores shadingUnits vramBandwidthGBps oid } fragment CpuHardwareOffer on PublicCpuOffer { count cheapestConfigurationId cpu { ...ComponentsCpu } } fragment GpuCpuOption on CpuWithCount { count cpu { ...ComponentsCpu } } fragment GpuHardwareOffer on PublicGpuOffers { cheapestConfigurationId cpuOptions { ...GpuCpuOption } gpuCount gpu { ...ComponentsGpu } }`,qe=async(e,t)=>$(Ke,{},e,t),Je=`queryPublicHwOffer`,Ye=()=>[Je,{}],Xe=(e,t)=>({queryKey:Ye(),queryFn:async({signal:n})=>qe(e,{...t,abortSignal:n})}),Ze=`query PublicServerOrderPrice($input: PublicServerOrderPriceInput!) { publicServerOrderPrice(input: $input) { availability deliveryTime resolvedTrafficRegion price { price bandwidthPrice hardwarePrice } } }`,Qe=async(e,t,n)=>$(Ze,t,e,n),$e=`queryPublicServerOrderPrice`,et=e=>[$e,e],tt=(e,t,n)=>({queryKey:et(t),queryFn:async({signal:r})=>Qe(e,t,{...n,abortSignal:r})}
1),nt=`query ServerConfigurationParts($input: ServerConfigurationPartsInput!) { serverConfigurationParts(input: $input) { cpu { ...DeploymentConfigurationCpu } memory storage { ...ServerStorageConfiguration } } } fragment DeploymentConfigurationCpu on ServerConfigurationCpuType { oid count family customizable gpuManufacturer name frequency boostFrequency cores threads generation tier gpuConfigurationTier passmarkScore cheapestConfId defaultMemory substituteCpus traffic { minimum maximum } gpus { count type manufacturer tflops vramSizeGB vramBandwidthGBps tensorCores shadingUnits } priceStartingAt } fragment ServerStorageConfiguration on ServerStorageConfiguration { id raids { name count manufacturer } drives { isOs count size type } }`,rt=async(e,t,n)=>$(nt,t,e,n),it=`queryServerConfigurationParts`,at=e=>[it,e],ot=(e,t,n)=>({queryKey:at(t),queryFn:async({signal:r})=>rt(e,t,{...n,abortSignal:r})}),st=`query ServerConfigurationsByIdPublic($configurationIds: [String!]!) { serverConfigurationsByIdPublic(configurationIds: $configurationIds) { ...ServerConfigurationPublic } } fragment ConvertedPrices on CurrencyPriceSpread { EUR GBP USD } fragment ServerConfigurationPublic on ServerConfigurationPublic { configurationId cpu { count tier manufacturer family name cores threads frequency boostFrequency oid } memory storage { ...ServerStorageConfiguration } location { slug } region price { ...ConvertedPrices } } fragment ServerStorageConfiguration on ServerStorageConfiguration { id raids { name count manufacturer } drives { isOs count size type } }`,ct=async(e,t,n)=>$(st,t,e,n),lt=`queryServerConfigurationsByIdPublic`,ut=e=>[lt,e],dt=(e,t,n)=>({queryKey:ut(t),queryFn:async({signal:r})=>ct(e,t,{...n,abortSignal:r})}),ft=`query ServersInStockCount($where: ServerWhereInput) { serversInStockCount(where: $where) }`,pt=async(e,t,n)=>$(ft,t,e,n),mt=`queryServersInStockCount`,ht=e=>[mt,e],gt=(e,t,n)=>({queryKey:ht(t),queryFn:async({signal:r})=>pt(e,t,{...n,abortSignal:r})}),_t=`query SettingsBillingDetail { billingDetail { ...SettingsBillingDetailsBillingDetail } } fragment SettingsBillingDetailsBillingDetail on BillingDetail { id company vat address fullName country { vatPercent euMember shortName } city zip }`,vt=async(e,t)=>$(_t,{},e,t),yt=`querySettingsBillingDetail`,bt=()=>[yt,{}],xt=(e,t)=>({queryKey:bt(),queryFn:async({signal:n})=>vt(e,{...t,abortSignal:n})}),St=`query SupportWidgetInformation { initialInformation { account { id email name userHashIntercom slackId slackTeamId slackChannelName secondFactor } } }`,Ct=async(e,t)=>$(St,{},e,t),wt=`querySupportWidgetInformation`,Tt=()=>[wt,{}],Et=(e,t)=>({queryKey:Tt(),queryFn:async({signal:n})=>Ct(e,{...t,abortSignal:n})}),Dt=`query TrafficLocationPricingCurve { trafficLocationPricingCurve { curve { ...Curve } locationId locationShort } } fragment ConvertedPrices on CurrencyPriceSpread { EUR GBP USD } fragment Curve on BandwidthPricePointCurrency { bandwidthGb price { ...ConvertedPrices } priceP95 { ...ConvertedPrices } }`,Ot=async(e,t)=>$(Dt,{},e,t),kt=`queryTrafficLocationPricingCurve`,At=()=>[kt,{}],Y=(e,t)=>({queryKey:At(),queryFn:async({signal:n})=>Ot(e,{...t,abortSignal:n})}),jt=class t extends Error{errorMessage;processIds;extra;constructor(e,n,r){super(`GraphQL error: ${e}`),this.errorMessage=e,this.processIds=n?Array.isArray(n)?n:[n]:[],this.extra=r??{},Object.setPrototypeOf(this,t.prototype)}getSemanticHttpStatus(){switch(this.errorMessage){case r.InvalidPassword:case r.InvalidCode:case r.NotAuthenticated:case r.NotAuthorized:return e.forbidden;case r.AccountWithDefinedEmailAlreadyExists:return e.conflict;case r.CaptchaVerificationFailed:return e.badRequest;case r.TooManyLoginAttempts:return e.tooManyRequests;default:return e.internalServerError}}},Mt=()=>new BroadcastChannel(`session_broadcast`),Nt=e=>{let t=Mt();t.postMessage(e),t.close()},X=(e,t,n)=>e instanceof File?(n.set(t,e),null):Array.isArray(e)?e.map((e,r)=>X(e,`${t}.${r}`,n)):typeof e==`object`?Object.entries(e??{}).reduce((e,[r,i])=>({...e,[r]:X(i,`${t}.${r}`,n)}),{}):e,Pt=e=>{let t=new Map;return{files:t,variables:Object.entries(e??{}).reduce((e,[n,r])=>({...e,[n]:X(r,n,t)}
1),{})}},Ft=(e,t)=>{let n=0,r={},i=new Map;e.forEach((e,t)=>{r[`${n}`]=[`variables.${t}`],i.set(`${n}`,e),n++}),t.append(`map`,JSON.stringify(r)),i.forEach((e,n)=>{t.append(n,e,e.name)})},Z=e=>e instanceof File?!0:Array.isArray(e)?e.some(e=>Z(e)):typeof e==`object`&&Object.values(e??{}).some(e=>Z(e)),It=async(e,t,n,r)=>{let i=Z(t),a={"apollographql-client-name":n,"graphql-client-version":r};if(!i)return{headers:{...a,"content-type":`application/json`},body:JSON.stringify({query:e,variables:t})};let{variables:o,files:s}=Pt(t??{}),c=new FormData;c.append(`operations`,JSON.stringify({query:e.replace(/\s+/g,` `).trim(),variables:o})),Ft(s,c);let l=(e.replace(/\s+/g,` `).trim().match(/^[a-z]+ ([a-z]+)/i)??[])[1];return{headers:{...a,"x-apollo-operation-name":l},body:c}},Q={publicApiUrl:`https://app.datapacket.com/graphql`,broadcastNotAuthorized:!1,clientName:`web`,clientVersion:`a72bf0d8`};async function $(e,t,n,{headers:i,abortSignal:a,forwardNotAuthorized:o}={}){let s,{headers:c,body:l}=await It(e,t,Q.clientName,Q.clientVersion);try{s=await n(Q.publicApiUrl,{method:`POST`,headers:{...c,...i},credentials:`include`,body:l,signal:a})}catch{throw Error()}let u;try{u=await s.json()}catch{throw Error()}if(`errors`in u&&Array.isArray(u.errors)&&u.errors.length>0){for(let{extensions:e}of u.errors)if(Object.values(r).includes(e?.code)){let t=new jt(e?.code,e?.processId,e?.extra);throw typeof window<`u`&&Q.broadcastNotAuthorized&&[r.NotAuthorized,r.NotAuthenticated].includes(t.errorMessage)&&!o&&typeof window<`u`&&(Nt(`ENCOUNTERED_INVALID_SESSION`),await new Promise(()=>{})),t}throw Error()}if(!s.ok)throw Error();return u}export{dt as A,Ae as C,Xe as D,Ge as E,d as F,Me as I,q as L,xt as M,Et as N,tt as O,Y as P,J as R,Te as S,Ve as T,R as _,o as a,he as b,l as c,m as d,y as f,z as g,P as h,a as i,gt as j,ot as k,ne as l,k as m,n,s as o,w as p,i as r,c as s,t,ae as u,W as v,Ie as w,be as x,ue as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.