try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`5cf7890f-688d-4044-a185-4c7f88a454ab`,e._sentryDebugIdIdentifier=`sentry-dbid-5cf7890f-688d-4044-a185-4c7f88a454ab`)}catch{}import{Wh as e,pg as t}from"./entry.client-mpghtlrl.js";var n=`

========== Native Application Notices ==========

`;function r(e,t){return typeof t!=`string`||t.length===0?e:e+n+t}var i=class extends e{static WEB_NOTICES_URL=`/assets/NOTICE.txt`;ROOT_QUERY_KEY=[`system`,`ossNotices`];constructor(e,t){super(e),this.deps=t,this.queries=this.createQueries(),this.processQueries(this.queries)}combineNotices(e,t){return r(e,t)}createQueries(){let e=this.createRelationalQuery({staleTime:1/0,gcTime:5*t,queryKey:this.ROOT_QUERY_KEY.concat(`ossNoticesAdaptor`),getDependencyOptions:()=>[this.deps.deviceInformation.queries.osName.getOptions()],fetcher:async([e])=>await this.getPlatformAdaptor(e)}),n=this.createQuery({staleTime:1/0,gcTime:1/0,queryKey:this.ROOT_QUERY_KEY.concat(`webNotices`),fetcher:async()=>await this.fetchWebNotices()}),r=this.ROOT_QUERY_KEY.concat(`nativeNotices`);return{ossNoticesAdaptor:e,webNotices:n,nativeNotices:this.createQuery({staleTime:1/0,gcTime:1/0,queryKey:r,fetcher:async()=>{try{return await(await this.fetchPlatformAdaptor()).getOSSNotices()}catch(e){return this.getFetcherLogger(r).warn(`Failed to fetch native OSS notices, falling back to web-only`,e),null}}})}}async fetchWebNotices(){let e=this.constructor.WEB_NOTICES_URL,t=await fetch(e);if(!t.ok)throw Error(`Failed to load ${e}: ${t.status} ${t.statusText}`);return t.text()}async fetchPlatformAdaptor(){return await this.queryClient.fetchQuery(this.queries.ossNoticesAdaptor.getOptions())}};export{r as n,i as t};