{"mappings":";AAAA,WAAc,kPCiBP,SAASA,EAAKC,EAA6C,CAChE,IAAMC,EAAO,CACX,oBAAqBC,EAAuBF,CAAO,EACnD,GAAGA,CACP,EAEE,OAAAG,EAAiBF,EAAM,QAAS,CAAC,QAAS,SAAS,CAAC,EAE7CG,EAAeH,CAAI,CAC5B,CAEA,SAASC,EAAuBF,EAAwC,CAGtE,OAAI,OAAO,mBAAuB,KAAe,mBACxC,CAAC,GAAGK,EAA8BL,CAAO,EAAGM,EAAyB,CAAE,EAEvED,EAA8BL,CAAO,CAEhD","names":["init","options","opts","getDefaultIntegrations","applySdkMetadata","initBrowserSdk","getBrowserDefaultIntegrations","browserTracingIntegration"],"sources":["../esm/npm/@sentry/astro@9.17.0/node_modules/@sentry/astro/build/esm/index.client.js","../esm/npm/@sentry/astro@9.17.0/node_modules/@sentry/astro/src/client/sdk.ts"],"sourcesContent":["export * from '@sentry/browser';\nexport { init } from './client/sdk.js';\n//# sourceMappingURL=index.client.js.map\n","import type { BrowserOptions } from '@sentry/browser';\nimport {\n  browserTracingIntegration,\n  getDefaultIntegrations as getBrowserDefaultIntegrations,\n  init as initBrowserSdk,\n} from '@sentry/browser';\nimport type { Client, Integration } from '@sentry/core';\nimport { applySdkMetadata } from '@sentry/core';\n\n// Tree-shakable guard to remove all code related to tracing\ndeclare const __SENTRY_TRACING__: boolean;\n\n/**\n * Initialize the client side of the Sentry Astro SDK.\n *\n * @param options Configuration options for the SDK.\n */\nexport function init(options: BrowserOptions): Client | undefined {\n  const opts = {\n    defaultIntegrations: getDefaultIntegrations(options),\n    ...options,\n  };\n\n  applySdkMetadata(opts, 'astro', ['astro', 'browser']);\n\n  return initBrowserSdk(opts);\n}\n\nfunction getDefaultIntegrations(options: BrowserOptions): Integration[] {\n  // This evaluates to true unless __SENTRY_TRACING__ is text-replaced with \"false\",\n  // in which case everything inside will get tree-shaken away\n  if (typeof __SENTRY_TRACING__ === 'undefined' || __SENTRY_TRACING__) {\n    return [...getBrowserDefaultIntegrations(options), browserTracingIntegration()];\n  } else {\n    return getBrowserDefaultIntegrations(options);\n  }\n}\n"],"version":3}
