1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.client-DBe-BHdD.js","assets/chunk-CgkbBqyz.js","assets/hoist-non-react-statics.cjs-DRSAIjkt.js","assets/react-BlBPBdOl.js"])))=>i.map(i=>d[i]); 2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`5.638.0-7ddb52834a`}}catch{}})();try{(function(){var 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]=`16eda7ab-6dfe-4deb-a694-dabde2d2a091`,e._sentryDebugIdIdentifier=`sentry-dbid-16eda7ab-6dfe-4deb-a694-dabde2d2a091`)})()}catch{}import{o as e,t}from"./chunk-CgkbBqyz.js";import{t as n}from"./env-CVrrFuoT.js";import{t as r}from"./react-BlBPBdOl.js";import{a as i,i as a,n as o,o as s,r as c,t as l}from"./web-vitals-BRKHHNUM.js";import{n as u}from"./context-DWgZ95lX.js";import{t as ee}from"./preload-helper-B8VGwwrh.js";var d=e(r(),1),te=(e,t)=>{let n={};if(!e||t.length===0)return n;let r=t.map(e=>e.toLowerCase());if(e instanceof Headers)for(let t of r){let r=e.get(t);r!==null&&(n[t]=r)}else{let t=Object.entries(e);for(let[e,i]of t){let t=e.toLowerCase();if(r.includes(t)){let e=Array.isArray(i)?i[0]:i;e!==void 0&&(n[t]=e)}}}return n},f=(e,t)=>te(e,[t])[t.toLowerCase()],ne=e=>{if(e instanceof Headers)return new Headers(e);let t=new Headers;return e&&Object.entries(e).forEach(([e,n])=>{if(Array.isArray(n)){n.forEach(n=>{n!=null&&t.append(e,String(n))});return}n!=null&&t.set(e,String(n))}),t},re=e=>te(e,[`traceparent`,`tracestate`,`x-axiom-org-id`,`x-axiom-trace-id`,`authorization`]);function p(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`HTTPError`}function ie(e){if(!e.startsWith(`Bearer `))return e;let t=e.slice(7);return t.length<=6?e:`Bearer ${t.slice(0,6)}...`}function ae(e){if(!e||typeof e!=`object`)return{};let t={};if(`method`in e&&typeof e.method==`string`&&(t.method=e.method),`url`in e){let n=e.url;if(typeof n==`string`)try{let e=new URL(n);t.pathname=e.pathname,t.search=e.search||void 0}catch{t.pathname=n}else n&&typeof n==`object`&&(`pathname`in n&&typeof n.pathname==`string`&&(t.pathname=n.pathname),`search`in n&&typeof n.search==`string`&&n.search&&(t.search=n.search))}return t}function oe(e){if(!(!e||typeof e!=`object`)&&`status`in e&&typeof e.status==`number`)return e.status}function se(e){if(!e||typeof e!=`object`)return{name:`UnknownError`,message:String(e??`unknown error`),request:{headers:{}},response:{headers:{}}};let t=`name`in e&&typeof e.name==`string`?e.name:`Error`,n=`message`in e&&typeof e.message==`string`?e.message:`unknown error`,r=`stack`in e&&typeof e.stack==`string`?e.stack:void 0;if(!p(e))return{name:t,message:n,stack:r,request:{headers:{}},response:{headers:{}}};let i=re(`request`in e&&e.request&&typeof e.request==`object`&&`headers`in e.request&&e.request.headers?e.request.headers:void 0);i.authorization&&=ie(i.authorization);let a=re(`response`in e&&e.response&&typeof e.response==`object`&&`headers`in e.response&&e.response.headers?e.response.headers:void 0),o=`request`in e?ae(e.request):{},s=`response`in e?oe(e.response):void 0,c=`data`in e?e.data:void 0;return{name:t,message:n,stack:r,request:{headers:i,...o},response:{headers:a,status:s},data:c}}function ce(e){let t=Error(e.message);return t.name=e.name,e.stack&&(t.stack=e.stack),t.request={headers:new Headers(e.request.headers),method:e.request.method,pathname:e.request.pathname,search:e.request.search},t.response={headers:new Headers(e.response.headers),status:e.response.status},e.data!==void 0&&(t.data=e.data),t}var le=e(t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.fetchRetry=r())})(e,(function(){var e=function(e,r){if(r||={},typeof e!=`function`)throw new n(`fetch must be a function`);if(typeof r!=`object`)throw new n(`defaults must be an object`);if(r.retries!==void 0&&!t(r.retries))throw new n(`retries must be a positive integer`);if(r.retryDelay!==void 0&&!t(r.retryDelay)&&typeof r.retryDelay!=`function`)throw new n(`retryDelay must be a positive integer or a function returning a positive integer`);if(r.retryOn!==void 0&&!Array.isArray(r.retryOn)&&typeof r.retryOn!=`function`)throw new n(`retryOn property expects an array or function`);return r=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},r),function(i,a){var o=r.retries,s=r.retryDelay,c=r.retryOn;if(a&&a.retries!==void 0)if(t(a.retries))o=a.retries;else throw new n(`retries must be a positive integer`);if(a&&a.retryDelay!==void 0)if(t(a.retryDelay)||typeof a.retryDelay==`function`)s=a.retryDelay;else throw new n(`retryDelay must be a positive integer or a function returning a positive integer`);if(a&&a.retryOn)if(Array.isArray(a.retryOn)||typeof a.retryOn==`function`)c=a.retryOn;else throw new n(`retryOn property expects an array or function`);return new Promise(function(t,n){var r=function(r){e(typeof Request<`u`&&i instanceof Request?i.clone():i,a).then(function(e){if(Array.isArray(c)&&c.indexOf(e.status)===-1)t(e);else if(typeof c==`function`)try{return Promise.resolve(c(r,null,e)).then(function(n){n?l(r,null,e):t(e)}).catch(n)}catch(e){n(e)}else r<o?l(r,null,e):t(e)}).catch(function(e){if(typeof c==`function`)try{Promise.resolve(c(r,e,null)).then(function(t){t?l(r,e,null):n(e)}).catch(function(e){n(e)})}catch(e){n(e)}else r<o?l(r,e,null):n(e)})};
2function l(e,t,n){var i=typeof s==`function`?s(e,t,n):s;setTimeout(function(){r(++e)},i)}r(0)})}};function t(e){return Number.isInteger(e)&&e>=0}function n(e){this.name=`ArgumentError`,this.message=e}return e}))}))(),1),ue=`X-RateLimit-Scope`,de=`X-RateLimit-Limit`,fe=`X-RateLimit-Remaining`,pe=`X-RateLimit-Reset`,me=`X-QueryLimit-Limit`,he=`X-QueryLimit-Remaining`,ge=`X-QueryLimit-Reset`,_e=`X-IngestLimit-Limit`,ve=`X-IngestLimit-Remaining`,ye=`X-IngestLimit-Reset`,m;(function(e){e.unknown=`unknown`,e.user=`user`,e.organization=`organization`,e.anonymous=`anonymous`})(m||={});var h;(function(e){e.api=`api`,e.query=`query`,e.ingest=`ingest`})(h||={});var be=class{scope;type;value;remaining;reset;constructor(e=m.unknown,t=h.api,n=0,r=-1,i=new Date){this.scope=e,this.type=t,this.value=n,this.remaining=r,this.reset=i}};function xe(e){let t;return e.url?.endsWith(`/ingest`)?(t=g(e,``,_e,ve,ye),t.type=h.ingest):e.url?.endsWith(`/query`)||e.url?.endsWith(`/_apl`)?(t=g(e,``,me,he,ge),t.type=h.query):(t=g(e,ue,de,fe,pe),t.type=h.api),t}function g(e,t,n,r,i){let a=new be,o=e.headers.get(t.toLowerCase())||m.unknown;a.scope=m[o];let s=e.headers.get(n.toLowerCase())||``,c=parseInt(s,10);isNaN(c)||(a.value=c);let l=e.headers.get(r.toLowerCase())||``,u=parseInt(l,10);isNaN(u)||(a.remaining=u);let ee=e.headers.get(i.toLowerCase())||``,d=parseInt(ee,10);return isNaN(d)||(a.reset=new Date(d*1e3)),a}async function Se(e){let t=await e.text().catch(()=>``);if(t.length===0)return`Unknown ${e.status} error`;try{let e=JSON.parse(t);if(typeof e==`object`&&e&&`message`in e&&typeof e.message==`string`&&e.message.length>0)return e.message}catch{}return t}function Ce(e){try{return new URL(e).pathname}catch{return e.split(`?`)[0]}}var we=class e extends Error{status;method;endpoint;constructor(t,n,r,i){super(`${n} ${r} failed with ${t}: ${i}`),this.status=t,this.method=n,this.endpoint=r,this.name=`AxiomRequestError`,Object.setPrototypeOf(this,e.prototype)}},Te=class{config;constructor(e){this.config=e}async doReq(e,t,n={},r={},i=this.config.timeout,a=!1){let o=a?e:`${this.config.baseUrl}${e}`,s=this._prepareSearchParams(r);s&&(o+=`?${s.toString()}`);let c={...this.config.headers,...n.headers},l=await(0,le.default)(this.config.fetch??fetch)(o,{retries:1,retryDelay:function(e,t,n){return 2**e*1e3},retryOn:[503,502,504,500],headers:c,method:t,body:n.body?n.body:void 0,signal:AbortSignal.timeout(i),cache:`no-store`});if(l.status===204)return l;if(l.status==429){let e=xe(l);return Promise.reject(new Ee(e))}else if(l.status===401)return Promise.reject(Error(`forbidden`));else if(l.status>=400)return Promise.reject(new we(l.status,t,Ce(o),await Se(l)));return await l.json()}post(e,t={},n={},r=this.config.timeout,i=!1){return this.doReq(e,`POST`,t,n,r,i)}get(e,t={},n={},r=this.config.timeout,i=!1){return this.doReq(e,`GET`,t,n,r,i)}put(e,t={},n={},r=this.config.timeout,i=!1){return this.doReq(e,`PUT`,t,n,r,i)}delete(e,t={},n={},r=this.config.timeout,i=!1){return this.doReq(e,`DELETE`,t,n,r,i)}_prepareSearchParams=e=>{let t=new URLSearchParams,n=!1;return Object.keys(e).forEach(r=>{e[r]&&(t.append(r,e[r]),n=!0)}),n?t:null}},Ee=class e extends Error{limit;shortcircuit;message=``;constructor(t,n=!1){super(),this.limit=t,this.shortcircuit=n,Object.setPrototypeOf(this,e.prototype);let r=e.timeUntilReset(t);this.message=`${t.type} limit exceeded, try again in ${r.minutes}m${r.seconds}s`,t.type==h.api&&(this.message=`${t.scope} `+this.message)}static timeUntilReset(e){let t=e.reset.getTime()-new Date().getTime(),n=Math.floor(t/1e3%60);return{total:t,minutes:Math.floor(t/1e3/60%60),seconds:n}}},De=`https://api.axiom.co`,_=`X-Axiom-Client`;function v(e,t){try{let n=new URL(e),r=n.pathname;return r===``||r===`/`?(n.pathname=t,n.toString()):(n.pathname=r.replace(/\/+$/,``),n.toString())}catch{return`${e.replace(/\/+$/,``)}${t}`}}var Oe={"cloud.us-east-1.aws":`https://us-east-1.aws.edge.axiom.co`,"cloud.eu-central-1.aws":`https://eu-central-1.aws.edge.axiom.co`};function y(e){if(!(!e||e===`null`))return Oe[e.toLowerCase()]}function ke(e,t){if(!(!e||e===`null`||y(e)))throw Error(`Unsupported edgeDeployment "${e}". Pass edgeUrl or edge to route ${t} to that deployment.`)}function Ae(e,t,n,r){if(t?.edgeUrl)return v(t.edgeUrl,n);if(t?.edge)return`https://${t.edge}${n}`;let i=y(t?.edgeDeployment);if(i)return v(i,n);if(ke(t?.edgeDeployment,r),e.edgeUrl)return v(e.edgeUrl,n);if(e.edge)return`https://${e.edge}${n}`;throw Error(`${r} must be routed to an Axiom edge deployment. Set edge, edgeUrl, or edgeDeployment.`)}var b=class{client;clientOptions;constructor({orgId:e=``,token:t,url:n,edge:r,edgeUrl:i,axiomClient:a,onError:o,fetch:s}){t||console.warn(`Missing Axiom token`),this.clientOptions={orgId:e,token:t,url:n,edge:r,edgeUrl:i,axiomClient:a,onError:o,fetch:s};let c=n?n.replace(/\/+$/,``):De,l={Accept:`application/json`,"Content-Type":`application/json`,Authorization:`Bearer `+t,[_]:je(`axiom-js/2.0.0`,a)};e&&(l[`X-Axiom-Org-Id`]=e),this.client=new Te({baseUrl:c,headers:l,timeout:2e4,...s&&{fetch:s}})}appendAxiomClient(e){let t=this.client.config.headers;t[_]&&(t[_]=je(t[_],e))}};
2function je(e,t){let n=t?.trim().split(/\s+/).filter(Boolean)??[];if(n.length===0)return e;let r=e.trim().split(/\s+/).filter(Boolean),i=new Set(r);for(let e of n)i.has(e)||(r.push(e),i.add(e));return r.join(` `)}var Me;(function(e){class t extends b{localPath=`/v2/annotations`;list=e=>this.client.get(this.localPath,{},e);get=e=>this.client.get(this.localPath+`/`+e);create=e=>this.client.post(this.localPath,{body:JSON.stringify(e)});update=(e,t)=>this.client.put(this.localPath+`/`+e,{body:JSON.stringify(t)});delete=e=>this.client.delete(this.localPath+`/`+e)}e.Service=t})(Me||={});var Ne;(function(e){let t=e=>encodeURIComponent(e);class n extends b{localPath=`/v2/dashboards`;list=e=>this.client.get(this.localPath,{},e);get=e=>this.client.get(`${this.localPath}/uid/${t(e)}`)}e.Service=n})(Ne||={});var Pe;(function(e){e.TimestampField=`_time`;let t=e=>encodeURIComponent(e);class n extends b{localPath=`/v2/datasets`;list=()=>this.client.get(this.localPath);get=e=>this.client.get(this.datasetPath(e));create=(e,t)=>{let n=new URLSearchParams;t?.referrer&&n.set(`referrer`,t.referrer);let r=n.toString(),i=r?`${this.localPath}?${r}`:this.localPath;return this.client.post(i,{body:JSON.stringify(e)})};update=(e,t)=>this.client.put(this.datasetPath(e),{body:JSON.stringify(t)});delete=e=>this.client.delete(this.datasetPath(e));trim=(e,t)=>{let n={maxDuration:t};return this.client.post(this.datasetPath(e)+`/trim`,{body:JSON.stringify(n)})};fields=e=>this.client.get(this.datasetPath(e)+`/fields`);mapFields=e=>this.client.get(this.datasetPath(e)+`/mapfields`);metrics=(e,n)=>this.getMetricsInfo(`datasets/${t(e)}/metrics`,n);metricTags=(e,n,r)=>this.getMetricsInfo(`datasets/${t(e)}/metrics/${t(n)}/tags`,r);metricTagValues=(e,n,r,i)=>this.getMetricsInfo(`datasets/${t(e)}/metrics/${t(n)}/tags/${t(r)}/values`,i);metricDatasetTags=(e,n)=>this.getMetricsInfo(`datasets/${t(e)}/tags`,n);metricDatasetTagValues=(e,n,r)=>this.getMetricsInfo(`datasets/${t(e)}/tags/${t(n)}/values`,r);datasetPath=e=>this.localPath+`/`+t(e);getMetricsInfo=async(e,t)=>{let n=t.accept?{headers:{Accept:t.accept}}:{};return this.client.get(Ae(this.clientOptions,t,`/v1/query/metrics/info/${e.replace(/^\/+/,``)}`,`metrics metadata requests`),n,{start:t.start,end:t.end},void 0,!0)}}e.Service=n})(Pe||={});var Fe;(function(e){class t extends b{localPath=`/v2/monitors`;list=()=>this.client.get(this.localPath);get=e=>this.client.get(this.localPath+`/`+e);create=e=>this.client.post(this.localPath,{body:JSON.stringify(e)});update=(e,t)=>this.client.put(this.localPath+`/`+e,{body:JSON.stringify(t)});delete=e=>this.client.delete(this.localPath+`/`+e)}e.Service=t})(Fe||={});var Ie;(function(e){let t=e=>encodeURIComponent(e);class n extends b{localPath=`/v2/apl-starred-queries`;list=e=>this.client.get(this.localPath,{},e);get=e=>this.client.get(`${this.localPath}/${t(e)}`)}e.Service=n})(Ie||={});var Le;(function(e){let t=e=>encodeURIComponent(e);class n extends b{localPath=`/v2/users`;current=()=>this.client.get(`/v2/user`);list=()=>this.client.get(this.localPath);get=e=>this.client.get(`${this.localPath}/${t(e)}`)}e.Service=n})(Le||={}),BigInt.prototype.toJSON=function(){return this.toString()};var Re;(function(e){e.JSON=`application/json`,e.NDJSON=`application/x-ndjson`,e.CSV=`text/csv`})(Re||={});var ze;(function(e){e.Auto=`auto`,e.Identity=``,e.GZIP=`gzip`})(ze||={});var Be;(function(e){e.Count=`count`,e.Distinct=`distinct`,e.Sum=`sum`,e.Avg=`avg`,e.Min=`min`,e.Max=`max`,e.Topk=`topk`,e.Percentiles=`percentiles`,e.Histogram=`histogram`,e.Variance=`variance`,e.Stdev=`stdev`,e.ArgMin=`argmin`,e.ArgMax=`argmax`,e.MakeSet=`makeset`,e.MakeSetIf=`makesetif`,e.CountIf=`countif`,e.CountDistinctIf=`distinctif`})(Be||={});var Ve;(function(e){e.And=`and`,e.Or=`or`,e.Not=`not`,e.Equal=`==`,e.NotEqual=`!=`,e.Exists=`exists`,e.NotExists=`not-exists`,e.GreaterThan=`>`,e.GreaterThanOrEqualTo=`>=`,e.LessThan=`<`,e.LessThanOrEqualTo=`<=`,e.Gt=`gt`,e.Gte=`gte`,e.Lt=`lt`,e.Lte=`lte`,e.StartsWith=`starts-with`,e.NotStartsWith=`not-starts-with`,e.EndsWith=`ends-with`,e.NotEndsWith=`not-ends-with`,e.Contains=`contains`,e.NotContains=`not-contains`,e.Regexp=`regexp`,e.NotRegexp=`not-regexp`})(Ve||={});var x=e=>`process`in globalThis?{}[e]:void 0,He=x(`NEXT_PUBLIC_VERCEL`)||x(`VERCEL`),Ue=x(`NETLIFY`)==`true`,S=x(`NODE_ENV`),We=x(`REGION`)||void 0,Ge=`0.4.1`,Ke=typeof self<`u`&&globalThis.WorkerGlobalScope!==void 0&&self instanceof WorkerGlobalScope,C=typeof window<`u`||Ke,qe=!!globalThis.EdgeRuntime,Je=[e=>{if(He){let t=e;return t.vercel={environment:x(`VERCEL_ENV`)??S,region:x(`VERCEL_REGION`),deploymentId:x(`VERCEL_DEPLOYMENT_ID`),deploymentUrl:x(`NEXT_PUBLIC_VERCEL_URL`),project:x(`NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL`),source:e.source},t.git={commit:x(`NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA`),repo:x(`NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG`),ref:x(`NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF`)},t}if(Ue){let t=e;return t.netlify={environment:S,region:x(qe?`DENO_REGION`:`AWS_REGION`),siteId:x(`SITE_ID`),buildId:x(`BUILD_ID`),context:x(`CONTEXT`),deploymentUrl:x(`DEPLOYMENT_URL`),deploymentId:x(qe?`DENO_DEPLOYMENT_ID`:`NETLIFY_DEPLOYMENT_ID`),source:e.source},t}let t=e;return t.platform={environment:S,region:We,source:e.source},t}],Ye=`info`,w=Symbol.for(`logging.event`),T={debug:0,info:1,warn:2,error:3,off:100},E={debug:`debug`,info:`info`,warn:`warn`,error:`error`,off:`off`},Xe=class e{constructor(e){this.initConfig=e,this.initConfig.logLevel==null?this.logLevel=T[Ye]:this.logLevel=T[this.initConfig.logLevel],this.config={...e},this.config.overrideDefaultFormatters||(this.config.formatters=[...Je,...this.config.formatters??[]])}initConfig;children=[];logLevel=T.debug;config;
2raw(e){this.config.transports.forEach(t=>t.log([e]))}appendAxiomClient=e=>{this.config.transports.forEach(t=>t.appendAxiomClient?.(e))};debug=(e,...[t])=>{this._log(E.debug,e,t)};info=(e,...[t])=>{this._log(E.info,e,t)};warn=(e,...[t])=>{this._log(E.warn,e,t)};error=(e,...[t])=>{this._log(E.error,e,t)};with=t=>{let{eventFields:n,fields:r}=D(this.config.args),{eventFields:i,fields:a}=D(t),o={...n&&typeof n==`object`?n:{},...i&&typeof i==`object`?i:{}},s={...r,...a,[w]:o},c=new e({...this.config,args:s});return this.children.push(c),c};_notifyValidationError=(e,t,n,r,i,a,o={})=>{this.config.onValidationError?.({stage:e,reason:t,level:n,message:r,schema:i,value:a,...o})};_validate=(e,t,n,r,i)=>{if(!t)return{success:!0,value:i};try{let a=t[`~standard`].validate(i);return Qe(a)?(this._notifyValidationError(e,`async-unsupported`,n,r,t,i),{success:!1}):a.issues?(this._notifyValidationError(e,`validation-failed`,n,r,t,i,{issues:a.issues}),{success:!1}):{success:!0,value:a.value}}catch(a){return this._notifyValidationError(e,`validation-threw`,n,r,t,i,{error:a}),{success:!1}}};_transformEvent=(e,t,n={})=>{let{eventFields:r,fields:i}=D(this.config.args),a=r&&typeof r==`object`?r:{},o={level:E[e].toString(),message:t,_time:new Date(Date.now()).toISOString(),fields:i,"@app":{"axiom-logging-version":Ge},source:C?`browser-log`:`server-log`};if(a&&typeof a==`object`&&Object.assign(o,a),n instanceof Error&&(o.fields={...o.fields,message:n.message,stack:n.stack,name:n.name}),typeof n==`object`&&n){let{eventFields:e,fields:t}=D(n),r=JSON.parse(JSON.stringify(t,Ze));e&&typeof e==`object`&&e&&Object.assign(o,e),Object.keys(r).length>0&&(o.fields={...o.fields,...r})}else Array.isArray(n)&&(o.fields={...o.fields,args:n});let s=this._validate(`input`,this.config.schema,e,t,o.fields);if(!s.success)return null;o.fields=s.value;let c=o;this.config.formatters&&this.config.formatters.length>0&&(c=this.config.formatters.reduce((e,t)=>t(e),o));
2let l=this._validate(`output`,this.config.outputSchema,e,t,c);return l.success?l.value:null};log=(e,t,...[n])=>{this._log(e,t,n)};_log=(e,t,n={})=>{let r=this._transformEvent(e,t,n);r&&this.config.transports.forEach(e=>e.log([r]))};flush=async()=>{let e=[...this.config.transports.map(e=>e.flush()),...this.children.map(e=>e.flush())];await Promise.allSettled(e)}};function Ze(e,t){return t instanceof Error?{...t,name:t.name,message:t.message,stack:t.stack}:t}function D(e){let t={...e??{}},n=t[w];return delete t[w],{eventFields:n,fields:t}}function Qe(e){return(typeof e==`object`||typeof e==`function`)&&e!==null&&`then`in e&&typeof e.then==`function`}`${Ge}`;var $e=`[Circular]`,et=`[Unserializable]`;function tt(){let e=[];return function(t,n){if(typeof n==`bigint`)return n.toString();if(typeof n!=`object`||!n)return n;for(;e.length>0&&e.at(-1)!==this;)e.pop();return e.includes(n)?$e:(e.push(n),n)}}function nt(e){try{return JSON.stringify(e,tt())??`null`}catch{return JSON.stringify(et)}}var O={info:{terminal:`32`,browser:`lightgreen`},debug:{terminal:`36`,browser:`lightblue`},warn:{terminal:`33`,browser:`yellow`},error:{terminal:`31`,browser:`red`}},k=class{config;constructor(e){this.config={...e}}log=e=>{e.forEach(e=>{T[e.level??E.info]>=T[this.config.logLevel??E.info]&&this.prettyPrint(e)})};isStandardLogEvent(e){return typeof e==`object`&&!!e&&`level`in e&&`message`in e&&`fields`in e}prettyPrint(e){let t=e.fields&&Object.keys(e.fields).length>0;if(!this.config.prettyPrint){if(!this.isStandardLogEvent(e)){console.log(e);return}let n=`${e.level} - ${e.message}`;t&&(n+=` `+nt(e.fields)),console.log(n);return}if(!this.isStandardLogEvent(e)){C?console.log(`%c%s`,`color: ${O[E.info].browser};`,e):console.log(`\x1B[${O[E.info].terminal}m%s\x1B[0m`,e);return}let n=``,r=[e.level,e.message];C?(n=`%c%s - %s`,r=[`color: ${O[e.level].browser};`,...r]):n=`\x1B[${O[e.level].terminal}m%s\x1B[0m - %s`,t&&(n+=` %o`,r.push(e.fields)),console.log.apply(console,[n,...r])}flush(){}},rt=1e3,it=1e4,A=1e3,at=3e4,j=new Set([429,500,502,503,504]);function ot(e){if(e===null)return;if(/^\d+$/.test(e.trim())){let t=Number(e)*1e3;return Number.isFinite(t)?t:void 0}let t=Date.parse(e);return Number.isNaN(t)?void 0:Math.max(0,t-Date.now())}var st=class{fetchConfig;events=[];timer=null;flushing=!1;inFlight=[];sequence=0;requestedThrough=0;waiters=new Set;retryAfterUntil=0;lastWarningAt=-1/0;dropped={};constructor(e){this.fetchConfig=e}log=e=>{let t=0;for(let n of e)T[n.level??E.info]>=T[this.fetchConfig.logLevel??E.info]&&(this.events.length===rt&&(this.events.shift(),t+=1),this.events.push({sequence:++this.sequence,event:n}));this.settleWaiters(),t>0&&this.reportDrop(`overflow`,t);let n=this.fetchConfig.autoFlush;if(!(n===void 0||n===!1||this.events.length===0)){if(this.events.length===rt&&!this.flushing)this.flush();else if(this.timer===null){let e=typeof n==`boolean`?2e3:n.durationMs;this.timer=setTimeout(()=>{this.timer=null,this.flush()},e)}}};async flush(){this.timer!==null&&(clearTimeout(this.timer),this.timer=null);let e=this.sequence;if(e<this.oldestOutstanding())return;let t=new Promise(t=>this.waiters.add({through:e,resolve:t}));this.requestedThrough=e,this.flushing||(this.flushing=!0,this.drain()),await t}oldestOutstanding(){return this.inFlight[0]?.sequence??this.events[0]?.sequence??this.sequence+1}settleWaiters(){let e=this.oldestOutstanding();for(let t of this.waiters)t.through<e&&(this.waiters.delete(t),t.resolve())}async drain(){try{for(;this.events.length>0&&this.events[0].sequence<=this.requestedThrough;){let e=this.events.findIndex(e=>e.sequence>this.requestedThrough);this.inFlight=this.events.splice(0,e<0?this.events.length:e);let t=await this.sendBatch(this.inFlight.map(({event:e})=>e));t&&this.reportDrop(t,this.inFlight.length),this.inFlight=[],this.settleWaiters()}}finally{this.flushing=!1}}async sendBatch(e){let t=new AbortController,{input:n,init:r}=this.fetchConfig,i=r?.signal===void 0?n instanceof Request?n.signal:void 0:r.signal,a=()=>t.abort();i?.addEventListener(`abort`,a,{once:!0}),i?.aborted&&t.abort();let o=Date.now()+it,s=setTimeout(()=>t.abort(),it),c=()=>{}
2,l=new Promise((e,n)=>{c=()=>n(Error(`Log batch aborted`)),t.signal.addEventListener(`abort`,c,{once:!0})});l.catch(()=>{});let u=async e=>{let t;try{await Promise.race([new Promise(n=>t=setTimeout(n,e)),l])}finally{clearTimeout(t)}};try{let n=nt(e);for(let e=0;e<2;e+=1){if(t.signal.aborted||Date.now()>=o)return i?.aborted?`cancelled`:`timeout`;let r=Math.max(0,this.retryAfterUntil-Date.now());if(r>=o-Date.now())return`server backoff`;if(r>0&&await u(r),t.signal.aborted||Date.now()>=o)return i?.aborted?`cancelled`:`timeout`;let a;try{a=await Promise.race([Promise.resolve().then(()=>fetch(this.fetchConfig.input,{method:`POST`,headers:{"Content-Type":`application/json`},...this.fetchConfig.init,body:n,signal:t.signal})),l])}catch{if(t.signal.aborted)return i?.aborted?`cancelled`:`timeout`;if(e===1)return`network error`;if(A>=o-Date.now())return`timeout`;await u(A);continue}if(a.body?.cancel().catch(()=>{}),a.ok)return;let s=ot(a.headers.get(`Retry-After`));if(j.has(a.status)&&s!==void 0&&(this.retryAfterUntil=Math.max(this.retryAfterUntil,Date.now()+s)),!j.has(a.status)||e===1)return`HTTP ${a.status}`;let c=Math.max(A,s??0);if(c>=o-Date.now())return`server backoff`;await u(c)}}catch{return i?.aborted?`cancelled`:t.signal.aborted?`timeout`:`request error`}finally{clearTimeout(s),i?.removeEventListener(`abort`,a),t.signal.removeEventListener(`abort`,c)}}reportDrop(e,t){if(this.dropped[e]=(this.dropped[e]??0)+t,Date.now()-this.lastWarningAt<at)return;let n=this.dropped;this.dropped={},this.lastWarningAt=Date.now();try{console.warn(`[Axiom] Dropped log events:`,n)}catch{}}},ct=class extends st{constructor(e){super({input:e.url,autoFlush:e.autoFlush,logLevel:e.logLevel})}},lt=`name.entryType.startTime.duration.renderTime.loadTime.size.id.url.value.hadRecentInput.lastInputTime.processingStart.processingEnd.interactionId.cancelable.activationStart.workerStart.redirectStart.redirectEnd.fetchStart.domainLookupStart.domainLookupEnd.connectStart.secureConnectionStart.connectEnd.requestStart.responseStart.responseEnd.transferSize.encodedBodySize.decodedBodySize.nextHopProtocol.type`.split(`.`),ut=[`x`,`y`,`width`,`height`,`top`,`right`,`bottom`,`left`];function M(e,t){try{return e[t]}catch{return}}function N(e){if(typeof e!=`object`||!e)return;let t={};for(let n of[`nodeName`,`tagName`,`id`,`className`]){let r=M(e,n);typeof r==`string`&&r.length>0&&(t[n]=r)}return Object.keys(t).length>0?t:void 0}function dt(e){if(typeof e!=`object`||!e)return;let t={};for(let n of ut){let r=M(e,n);typeof r==`number`&&(t[n]=r)}return Object.keys(t).length>0?t:void 0}function ft(e){if(Array.isArray(e))return e.map(e=>typeof e!=`object`||!e?{}:{node:N(M(e,`node`)),previousRect:dt(M(e,`previousRect`)),currentRect:dt(M(e,`currentRect`))})}function pt(e){let t={};for(let n of lt){let r=M(e,n);(typeof r==`string`||typeof r==`number`||typeof r==`boolean`)&&(t[n]=r)}let n=N(M(e,`element`));n!==void 0&&(t.element=n);let r=N(M(e,`target`));r!==void 0&&(t.target=r);let i=ft(M(e,`sources`));return i!==void 0&&(t.sources=i),t}function mt(e,t){let n=d.useRef(e),r=d.useRef(t);d.useEffect(()=>{let e=()=>{r.current()};return s(n.current),a(n.current),l(n.current),i(n.current),c(n.current),o(n.current),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[])}var ht=e=>({webVital:{...e,entries:e.entries?.map(pt)??[]},_time:new Date().getTime(),source:`web-vital`,path:window.location.pathname}),gt=e=>{let t=t=>{e.raw(ht(t))},n=()=>{e.flush()};return()=>(mt(t,n),d.createElement(d.Fragment,null))};function _t(){let e=Error.prepareStackTrace;try{let e=[];return Error.prepareStackTrace=(t,n)=>{let r=n.slice(1);return e=r,r},Error().stack,e}finally{Error.prepareStackTrace=e}}var P=class extends Error{response;request;options;constructor(e,t,n){let r=`${e.status||e.status===0?e.status:``} ${e.statusText??``}`.trim(),i=r?`status code ${r}`:`an unknown error`;super(`Request failed with ${i}: ${t.method} ${t.url}`),this.name=`HTTPError`,this.response=e,this.request=t,this.options=n}},vt=class extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name=`TimeoutError`,this.request=e}},yt=(()=>{let e=!1,t=!1,n=typeof globalThis.ReadableStream==`function`,r=typeof globalThis.Request==`function`;if(n&&r)try{t=new globalThis.Request(`https://empty.invalid`,{body:new globalThis.ReadableStream,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`)}catch(e){if(e instanceof Error&&e.message===`unsupported BodyInit type`)return!1;throw e}return e&&!t}
2)(),bt=typeof globalThis.AbortController==`function`,xt=typeof globalThis.AbortSignal==`function`&&typeof globalThis.AbortSignal.any==`function`,St=typeof globalThis.ReadableStream==`function`,Ct=typeof globalThis.FormData==`function`,wt=[`get`,`post`,`put`,`patch`,`head`,`delete`],Tt={json:`application/json`,text:`text/*`,formData:`multipart/form-data`,arrayBuffer:`*/*`,blob:`*/*`,bytes:`*/*`},Et=2147483647,Dt=new TextEncoder().encode(`------WebKitFormBoundaryaxpyiPgbbPti10Rw`).length,F=Symbol(`stop`),Ot={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0},kt={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0},At=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[n,r]of e)t+=Dt,t+=new TextEncoder().encode(`Content-Disposition: form-data; name="${n}"`).length,t+=typeof r==`string`?new TextEncoder().encode(r).length:r.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if(typeof e==`string`)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if(`byteLength`in e)return e.byteLength;if(typeof e==`object`&&e)try{let t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{return 0}return 0},I=(e,t,n)=>{let r,i=0;return e.pipeThrough(new TransformStream({transform(e,a){if(a.enqueue(e),r){i+=r.byteLength;let e=t===0?0:i/t;e>=1&&(e=1-2**-52),n?.({percent:e,totalBytes:Math.max(t,i),transferredBytes:i},r)}r=e},flush(){r&&(i+=r.byteLength,n?.({percent:1,totalBytes:Math.max(t,i),transferredBytes:i},r))}}))},jt=(e,t)=>{if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});let n=Number(e.headers.get(`content-length`))||0;return new Response(I(e.body,n,t),{status:e.status,statusText:e.statusText,headers:e.headers})},Mt=(e,t,n)=>{if(!e.body)return e;let r=At(n??e.body);return new Request(e,{duplex:`half`,body:I(e.body,r,t)})},L=e=>typeof e==`object`&&!!e,R=(...e)=>{for(let t of e)if((!L(t)||Array.isArray(t))&&t!==void 0)throw TypeError("The `options` argument must be an object");return V({},...e)},Nt=(e={},t={})=>{let n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,i=new globalThis.Headers(t);for(let[e,t]of i.entries())r&&t===`undefined`||t===void 0?n.delete(e):n.set(e,t);return n};function z(e,t,n){return Object.hasOwn(t,n)&&t[n]===void 0?[]:V(e[n]??[],t[n]??[])}var B=(e={},t={})=>({beforeRequest:z(e,t,`beforeRequest`),beforeRetry:z(e,t,`beforeRetry`),afterResponse:z(e,t,`afterResponse`),beforeError:z(e,t,`beforeError`)}),V=(...e)=>{let t={},n={},r={};for(let i of e)if(Array.isArray(i))Array.isArray(t)||(t=[]),t=[...t,...i];else if(L(i)){for(let[e,n]of Object.entries(i))L(n)&&e in t&&(n=V(t[e],n)),t={...t,[e]:n};L(i.hooks)&&(r=B(r,i.hooks),t.hooks=r),L(i.headers)&&(n=Nt(n,i.headers),t.headers=n)}return t},Pt=e=>wt.includes(e)?e.toUpperCase():e,Ft={limit:2,methods:[`get`,`put`,`head`,`delete`,`options`,`trace`],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3},It=(e={})=>{if(typeof e==`number`)return{...Ft,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error(`retry.methods must be an array`);if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error(`retry.statusCodes must be an array`);return{...Ft,...e}};async function Lt(e,t,n,r){return new Promise((i,a)=>{let o=setTimeout(()=>{n&&n.abort(),a(new vt(e))},r.timeout);r.fetch(e,t).then(i).catch(a).then(()=>{clearTimeout(o)})})}async function Rt(e,{signal:t}){return new Promise((n,r)=>{t&&(t.throwIfAborted(),t.addEventListener(`abort`,i,{once:!0}));function i(){clearTimeout(a),r(t.reason)}let a=setTimeout(()=>{t?.removeEventListener(`abort`,i),n()},e)})}var zt=(e,t)=>{let n={};for(let r in t)!(r in kt)&&!(r in Ot)&&!(r in e)&&(n[r]=t[r]);return n},Bt=e=>e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:typeof e==`object`?Object.keys(e).length>0:typeof e==`string`?e.trim().length>0:!!e,Vt=class e{static create(t,n){let r=new e(t,n),i=async()=>
2{if(typeof r._options.timeout==`number`&&r._options.timeout>2147483647)throw RangeError(`The \`timeout\` option cannot be greater than ${Et}`);await Promise.resolve();let e=await r._fetch();for(let t of r._options.hooks.afterResponse){let n=await t(r.request,r._options,r._decorateResponse(e.clone()));n instanceof globalThis.Response&&(e=n)}if(r._decorateResponse(e),!e.ok&&r._options.throwHttpErrors){let t=new P(e,r.request,r._options);for(let e of r._options.hooks.beforeError)t=await e(t);throw t}if(r._options.onDownloadProgress){if(typeof r._options.onDownloadProgress!=`function`)throw TypeError("The `onDownloadProgress` option must be a function");if(!St)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return jt(e.clone(),r._options.onDownloadProgress)}return e},a=(r._options.retry.methods.includes(r.request.method.toLowerCase())?r._retry(i):i()).finally(async()=>{let e=r._originalRequest,t=[];e&&!e.bodyUsed&&t.push(e.body?.cancel()),r.request.bodyUsed||t.push(r.request.body?.cancel()),await Promise.all(t)});for(let[e,t]of Object.entries(Tt))e===`bytes`&&typeof globalThis.Response?.prototype?.bytes!=`function`||(a[e]=async()=>{r.request.headers.set(`accept`,r.request.headers.get(`accept`)||t);let i=await a;if(e===`json`){if(i.status===204)return``;let e=await i.text();return e===``?``:n.parseJson?n.parseJson(e):JSON.parse(e)}return i[e]()});return a}static#e(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!(e instanceof URLSearchParams)?Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)):e}request;abortController;_retryCount=0;_input;_options;_originalRequest;constructor(t,n={}){if(this._input=t,this._options={...n,headers:Nt(this._input.headers,n.headers),hooks:B({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:Pt(n.method??this._input.method??`GET`),prefixUrl:String(n.prefixUrl||``),retry:It(n.retry),throwHttpErrors:n.throwHttpErrors!==!1,timeout:n.timeout??1e4,fetch:n.fetch??globalThis.fetch.bind(globalThis)},typeof this._input!=`string`&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&typeof this._input==`string`){if(this._input.startsWith(`/`))throw Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith(`/`)||(this._options.prefixUrl+=`/`),this._input=this._options.prefixUrl+this._input}if(bt&&xt){let e=this._options.signal??this._input.signal;this.abortController=new globalThis.AbortController,this._options.signal=e?AbortSignal.any([e,this.abortController.signal]):this.abortController.signal}if(yt&&(this._options.duplex=`half`),this._options.json!==void 0&&(this._options.body=this._options.stringifyJson?.(this._options.json)??JSON.stringify(this._options.json),this._options.headers.set(`content-type`,this._options.headers.get(`content-type`)??`application/json`)),this.request=new globalThis.Request(this._input,this._options),Bt(this._options.searchParams)){let t=`?`+(typeof this._options.searchParams==`string`?this._options.searchParams.replace(/^\?/,``):new URLSearchParams(e.#e(this._options.searchParams)).toString()),n=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,t);(Ct&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers[`content-type`])&&this.request.headers.delete(`content-type`),this.request=new globalThis.Request(new globalThis.Request(n,{...this.request}),this._options)}if(this._options.onUploadProgress){if(typeof this._options.onUploadProgress!=`function`)throw TypeError("The `onUploadProgress` option must be a function");if(!yt)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=Mt(this.request,this._options.onUploadProgress,this._options.body))}}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount>this._options.retry.limit||e instanceof vt)throw e;if(e instanceof P){if(!this._options.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get(`Retry-After`)??e.response.headers.get(`RateLimit-Reset`)??e.response.headers.get(`X-RateLimit-Reset`)??e.response.headers.get(`X-Rate-Limit-Reset`);if(t&&this._options.retry.afterStatusCodes.includes(e.response.status)){let e=Number(t)*1e3;Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse(`2024-01-01`)&&(e-=Date.now());let n=this._options.retry.maxRetryAfter??e;return e<n?e:n}
2if(e.response.status===413)throw e}let t=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,t)}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(t){let n=Math.min(this._calculateRetryDelay(t),Et);if(this._retryCount<1)throw t;await Rt(n,{signal:this._options.signal});for(let e of this._options.hooks.beforeRetry)if(await e({request:this.request,options:this._options,error:t,retryCount:this._retryCount})===F)return;return this._retry(e)}}async _fetch(){for(let e of this._options.hooks.beforeRequest){let t=await e(this.request,this._options);if(t instanceof Request){this.request=t;break}if(t instanceof Response)return t}let e=zt(this.request,this._options);return this._originalRequest=this.request,this.request=this._originalRequest.clone(),this._options.timeout===!1?this._options.fetch(this._originalRequest,e):Lt(this._originalRequest,e,this.abortController,this._options)}},H=e=>{let t=(t,n)=>Vt.create(t,R(e,n));for(let n of wt)t[n]=(t,r)=>Vt.create(t,R(e,r,{method:n}));return t.create=e=>H(R(e)),t.extend=t=>(typeof t==`function`&&(t=t(e??{})),H(R(e,t))),t.stop=F,t},Ht=H();function Ut(e=`id`){let t=globalThis.crypto;if(typeof t?.randomUUID==`function`)return t.randomUUID();if(typeof t?.getRandomValues==`function`){let e=new Uint8Array(16);t.getRandomValues(e),e[6]=(e[6]??0)%16+64,e[8]=(e[8]??0)%64+128;let n=[...e].map(e=>e.toString(16).padStart(2,`0`)).join(``);return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}return`${e}-${Date.now().toString(36)}-${Math.random().toString(16).slice(2)}`}var Wt=typeof window<`u`,Gt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope,Kt=!Wt&&!Gt,U=null,qt=!1,Jt=null,W=[],Yt=()=>{if(U)for(let e of W.splice(0))U[e.method](...e.args)},Xt=()=>(Jt??=ee(()=>import(`./index.client-DBe-BHdD.js`).then(e=>(U=e,e)),__vite__mapDeps([0,1,2,3])),Jt),Zt=()=>{qt=!0,Yt()},G=e=>{qt&&U?U[e.method](...e.args):(W.push(e),W.length>50&&W.shift())},Qt=()=>n.PLAYWRIGHT_TESTING?`playwright`:n.SENTRY_ENVIRONMENT?n.SENTRY_ENVIRONMENT:`local`,$t=()=>{let e=Qt();return e!==`playwright`&&e!==`local`},en=e=>{let t=e.tags?.url??e.request?.url;if(typeof t==`string`)try{let e=new URL(t).hostname;return e===`localhost`||e===`127.0.0.1`}catch{return!1}return!1},tn=(...e)=>{G({method:`captureMessage`,args:e})},nn=(...e)=>{G({method:`captureException`,args:e})},rn=(...e)=>{G({method:`setUser`,args:e})},an=(...e)=>{G({method:`setTags`,args:e})},on=()=>{U?.getCurrentScope()?.clear()};u(`obs-ctx`);var sn=Kt?void 0:Ut(`session`),K={session_id:sn};function cn(){return K}var ln=()=>({...cn(),pathname:window.location.pathname}),un=e=>{let t={...cn(),...e};K=t;let{user_id:n,...r}=t;rn(n?{id:n}:null),an(r)},dn=()=>{on(),K={session_id:sn}},fn=()=>{let e={};return n.VERCEL_REGION&&(e[`vercel.region`]=n.VERCEL_REGION),n.VERCEL_DEPLOYMENT_ID&&(e[`vercel.deployment_id`]=n.VERCEL_DEPLOYMENT_ID),n.VERCEL_TARGET_ENV&&(e[`vercel.target_env`]=n.VERCEL_TARGET_ENV),e};function q(e,t=new WeakSet){if(e==null)return e;if(typeof e==`function`)return`[Function]`;if(typeof e!=`object`)return e;if(typeof window<`u`&&e instanceof Element)return`[${e.tagName}]`;if(typeof Node<`u`&&e instanceof Node)return`[Node]`;if(t.has(e))return`[Circular]`;if(t.add(e),Array.isArray(e))return e.map(e=>q(e,t));if(e instanceof Error)return e instanceof P||e.name===`HTTPError`?se(e):{name:e.name,message:e.message,stack:e.stack};let n={};for(let[r,i]of Object.entries(e))r.startsWith(`__react`)||r.startsWith(`_react`)||(n[r]=q(i,t));return n}function pn(e){return typeof e!=`object`||!e?e:`error`in e&&p(e.error)?{org_id:f(e.error.request.headers,`x-axiom-org-id`),trace_id:f(e.error.response.headers,`x-axiom-trace-id`)}:e}var mn=function(e){return e.API=`api`,e.AUTH=`auth`,e.Capabilities=`api.capabilities`,e.COMPLETION=`completion`,e.DASHBOARDS=`dashboards`,e.EDGE_QUERY=`edge_query`,e.Evaluations=`api.evaluations`,e.GENERAL=`general`,e.Issues=`api.issues`,e.NITRO=`nitro`,e.PLAYWRIGHT=`playwright`,e.PROMPT_MANAGER=`prompt_manager`,e.QUERY_BUILDER=`query_builder`,e.REQUEST=`request`,e.Reviews=`api.reviews`,e.ROUTER=`router`,e.TRACES=`traces`,e.USER_INTERESTS=`user_interests`,e}({}),J=[`debug`,`info`,`warn`,`error`],hn=n.AXIOM_LOGGING_ENABLED,Y=n.PROD?1:3;n.LOG_LEVEL!==void 0&&J.includes(n.LOG_LEVEL)&&(Y=J.indexOf(n.LOG_LEVEL));
2var X=J[Y],Z=[],Q=n.LOG_TRANSPORTS||(n.NODE_ENV===`development`?`console`:void 0);if((Q?.includes(`console`)||!Q&&n.NODE_ENV===`development`)&&Z.push(new k({prettyPrint:!0,logLevel:X})),typeof window<`u`){if(Q?.includes(`axiom`)){let e=`${window.location.origin}/frapi/instrument/logs`;Z.push(new ct({url:e,autoFlush:{durationMs:2e3}}))}if(Q?.includes(`stdout`)){let e=`${window.location.origin}/frapi/instrument/logs`;Z.push(new ct({url:e,autoFlush:{durationMs:2e3}}))}}else Q?.includes(`axiom`),Q?.includes(`stdout`)&&Z.push(new k({prettyPrint:!0,logLevel:X}));var $=new Xe({transports:Z.length>0?Z:[new k({prettyPrint:!0,logLevel:X})],logLevel:X}),gn=class{defaultLevel=Y;serviceLevels=new Map;setLevel(e){this.defaultLevel=e,this.serviceLevels.clear()}getCallsite(){try{let e=_t()[3],t=e?.getFunctionName(),n=e?.getTypeName(),r=e?.getMethodName(),i=e?.getFileName()?.split(`?`).shift()?.split(`/`).pop(),a=r?`${n}.${r}`:t;return r||t?`${i}[${a}]`:i}catch{return`unknown`}}shouldLog(e,t){return e>=(this.serviceLevels.get(t)??this.defaultLevel)}log(e,t,r,i){if(!this.shouldLog(e,t))return;let a=this.getCallsite(),o=ln()??{},s=i?q(i):void 0,c=pn(s)??void 0,l={level:e,service:t,message:r,timestamp:new Date().toISOString(),callSite:a,version:n.VERSION,...fn(),...c,...s,...o},u=`${t}: ${r}`;switch(e){case 0:$.debug(u,l);break;case 1:$.info(u,l);break;case 2:$.warn(u,l);break;case 3:if($.error(u,l),i?.error instanceof Error){let{error:e,...t}=i;nn(i.error,{extra:t});return}tn(u,{level:`error`,extra:l});break}}debug(e,t,n){this.log(0,e,t,n)}info(e,t,n){this.log(1,e,t,n)}warn(e,t,n){this.log(2,e,t,n)}error(e,t,n){this.log(3,e,t,n)}flush(){return $.flush()}},_n=gt($),vn=new gn;vn.info(`general`,`logger initialized`,{logLevel:X,loggingEnabled:hn,transports:Z.map(e=>e.constructor.name),vercelDeploymentId:n.VERCEL_DEPLOYMENT_ID,vercelRegion:n.VERCEL_REGION});export{p as _,ln as a,ne as b,en as c,Zt as d,Kt as f,ce as g,Ve as h,dn as i,$t as l,Ht as m,vn as n,un as o,Ut as p,_n as r,Qt as s,mn as t,Xt as u,se as v,f as y}; 3//# sourceMappingURL=logger-bFGQVteH.js.map
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.