@aventurevc/mcp-server 0.8.430 → 0.8.432

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/chunks/{cli-help-policy-HiNGxO7j.js → cli-help-policy-2dQXu4md.js} +1 -1
  2. package/dist/chunks/{contract-DIpsCXsi.js → contract-CiKTVTlk.js} +1 -1
  3. package/dist/chunks/{contract-parameter-B-lAD_hQ.js → contract-parameter-CsNwtO1M.js} +1 -1
  4. package/dist/chunks/detail-Cd-_KCj-.js +1 -0
  5. package/dist/chunks/{esm-TFtkIdco.js → esm-Cl4FsZpG.js} +11 -11
  6. package/dist/chunks/{help-catalog-DfqWlTwI.js → help-catalog-CJ13PmyP.js} +1 -1
  7. package/dist/chunks/{help-intent-Dtqtu9Tt.js → help-intent-BlWJ19Py.js} +1 -1
  8. package/dist/chunks/logging-CQGQivrM.js +1 -0
  9. package/dist/chunks/{logging-CA0C5Rb9.js → logging-T2MwpHVy.js} +1 -1
  10. package/dist/chunks/mcp-generation-contract-BSHxP3NS.js +1 -0
  11. package/dist/chunks/{oauth-discovery-C_eUnOtv.js → oauth-discovery-BYUTIHU4.js} +1 -1
  12. package/dist/chunks/openapi-call-B8A5Wo7u.js +102 -0
  13. package/dist/chunks/openapi-snapshot.json +1 -1
  14. package/dist/chunks/{sentry-Kpuc8g4m.js → sentry-BLtL8XxL.js} +1 -1
  15. package/dist/chunks/{sentry-Dx9TvWss.js → sentry-D889x_Fx.js} +1 -1
  16. package/dist/chunks/{streamable-http-ButheTA0.js → streamable-http-D06kQMfQ.js} +39 -39
  17. package/dist/chunks/text-response-DJL-WUrV.js +18 -0
  18. package/dist/chunks/tool-policy-C5dHOPvT.js +1 -0
  19. package/dist/mcp-server/index.js +1 -1
  20. package/package.json +3 -3
  21. package/dist/chunks/detail-dxDKNmEu.js +0 -1
  22. package/dist/chunks/logging-CmyYoKBR.js +0 -1
  23. package/dist/chunks/mcp-generation-contract-qg1XLQWc.js +0 -1
  24. package/dist/chunks/openapi-call-CtEvaGG6.js +0 -102
  25. package/dist/chunks/text-response-nR7g26fs.js +0 -18
  26. package/dist/chunks/tool-policy-Dpu4G-J7.js +0 -1
@@ -0,0 +1,18 @@
1
+ import{A as e,C as t,E as n,S as r,_ as i,c as a,d as o,g as s,i as c,n as l,s as u,x as d}from"./iso-DzqMxtky.js";import{a as f,c as p,d as m,f as h,i as g,l as _,n as ee,o as v,p as y,r as te,s as ne,t as re,u as ie}from"./detail-Cd-_KCj-.js";import{t as ae}from"./person-owner-BW4xz8uH.js";import{r as oe}from"./run-Drbcnd2K.js";import{n as b}from"./allowance-type-BVr12WiL.js";import{t as x}from"./confidence-CjeYTBnf.js";import{p as S}from"./result-envelope-3T3cKKIq.js";import{a as se,s as ce}from"./tool-policy-C5dHOPvT.js";import{a as C,c as le,i as ue,l as de,n as w,r as T,s as E,t as fe}from"./text-field-jFKOGMzr.js";import{a as pe,n as me,o as he,r as ge,s as D,t as _e}from"./human-text-cap-dR2SJQJC.js";import{a as ve,b as ye,d as O,f as be,o as xe,p as Se,u as Ce}from"./help-catalog-CJ13PmyP.js";import{Buffer as we}from"node:buffer";function Te(e){if(typeof e==`object`&&e&&!Array.isArray(e)&&Array.isArray(e.column)&&e.column.every(e=>typeof e==`string`)&&Array.isArray(e.row)&&e.row.every(e=>Array.isArray(e))){let t=e.column;return{column:t,record:e.row.map(e=>new Map(t.map((t,n)=>[t,Ee(e[n]??null)])))}}let t=Array.isArray(e)?e:typeof e==`object`&&e&&Array.isArray(e.content)?e.content:typeof e==`object`&&e&&Array.isArray(e.row)?e.row:[e],n=new Set,r=t.map(e=>{let t=new Map,r=(e,n)=>{if(Array.isArray(e))t.set(n,e.some(e=>typeof e==`object`&&!!e)?JSON.stringify(e):e.map(Ee).join(`; `));else if(typeof e==`object`&&e)for(let[t,i]of Object.entries(e))i!==void 0&&r(i,n===``?t:`${n}.${t}`);else t.set(n||`value`,e===null?``:String(e))};r(e,``);for(let e of t.keys())n.add(e);return t});return{column:[...n],record:r}}function Ee(e){return e===null?``:typeof e==`string`?e:JSON.stringify(e)}function De(e){return e.map(e=>{let t=/^[=+\-@\t\r]/u.test(e)?`'${e}`:e;return/[",\r\n]/u.test(t)?`"${t.replaceAll(`"`,`""`)}"`:t}).join(`,`)+`\r
2
+ `}function Oe(e){let{column:t,record:n}=Te(e);return t.length===0?``:De(t)+n.map(e=>De(t.map(t=>e.get(t)??``))).join(``)}function ke(t){let n=S.safeParse(JSON.parse(JSON.stringify(t??null)));if(!n.success)throw Error(`Response is not JSON, so it cannot be written as CSV: ${e(n.error)}`);return Oe(n.data)}var Ae=`aventure`;function k(e,t,n=`cli`){let r=t.find(t=>t.operationId===e);if(n===`mcp`&&r?.tool!==void 0){let e=xe(r);return`${e.tool} ${JSON.stringify(e.arguments)}`}let i=r?.cliPath;return i===void 0?void 0:`${Ae} ${i.join(` `)}`}function je(e,t,n=e,r=`cli`){return r===`mcp`?k(e,t,r)??e:ye(e,t,`aventure`)??n}function Me(e,t,n=`cli`){let r=Ce.safeParse(e);if(!r.success)return null;let{answer:i,citation:a,confidence:o,resolution:s}=r.data;if(s!=null)return Ne(i,s,t,n);let c=i.trimEnd().split(`
3
+ `),l=new Set(a.flatMap(({sourceType:e,sourceId:r})=>{if(e!==Se.options[0].enum.OPERATION)return[];let i=k(r,t,n);return i===void 0?[]:[i]}));return l.size>0&&c.push(``,n===`mcp`?`MCP calls:`:`Commands:`,...[...l].map(e=>` ${e}`)),c.push(``,`Confidence: ${o}`),a.length===0||(c.push(`Sources (${a.length}):`),c.push(...a.map(({excerpt:e,sourceId:t})=>{let n=e.trim();return n.length>0?` - ${t}: ${n}`:` - ${t}`}))),c}function Ne(e,t,n,r){let{outcome:i,operationId:a,probability:o,candidate:s,taskKey:c,taskPlan:l}=t,u=[l==null?e.trimEnd():Fe(l)],d=[``,`Outcome: ${i}${o==null?``:` (probability ${o.toFixed(2)})`}`];switch(i){case O.enum.TASK_PLAN:return[...u,...l==null?[]:Ie(l,n,r),...d];case O.enum.OPERATION_ADVICE:{let e=s.filter(({sourceId:e})=>e!==a);return[...u,...a==null?[]:[``,r===`mcp`?`MCP call:`:`Command:`,` ${je(a,n,a,r)}`],...d,...e.length===0?[]:[`Alternatives: ${e.map(({sourceId:e})=>e).join(`, `)}`]]}case O.enum.CLARIFY:return[...u,...c==null?[]:[``,`Leading catalog task: ${c}`],...ze(`Candidates:`,s,n,r),...d];case O.enum.ABSTAIN:return[...u,...ze(`Nearest operations:`,s,n,r),...d];default:throw Error(`Unhandled help resolution outcome ${String(i)}`)}}function Pe(e,t,n=`cli`){let r=be.safeParse(e);return r.success?[Fe(r.data),...Ie(r.data,t,n)]:null}var Fe=({taskKey:e,catalogRevision:t})=>e===void 0?`Run these steps in order.`:`Run catalog task ${e}${t===void 0?``:` (catalog revision ${t})`}.`;function Ie(e,t,n){return[...e.input.length===0?[]:[``,`Inputs:`,...e.input.map(({key:e,type:t,description:n,required:r})=>` ${e} (${t}, ${r===!1?`optional`:`required`}): ${n}`)],...e.step.length===0?[``,`This catalog task has no planned steps yet.`]:[``,`Steps:`,...e.step.flatMap(({step:r,cliCommand:i,writeGuidance:a},o)=>[` ${o+1}. ${r.stepKey===void 0?``:`${r.stepKey}: `}${je(r.operationId,t,i,n)}`,` ${r.instruction}`,...Re(e,o,a)])],...e.gateId?.length?[``,`Completion gates: ${e.gateId.join(`, `)}`]:[],...Le(e)]}function Le({noWriteCompletion:e,noWriteOutcome:t}){return e===!0?[``,`This task may finish without a stored change when every completion gate already passes on the target.`]:t?.length?[``,`This task may finish without a stored change, reporting one of: ${t.join(`, `)}.`]:e===void 0?[]:[``,`This task declares no way to finish without a stored change; commit its required write.`]}function Re(e,t,n){if(n==null)return[];let r=JSON.stringify(n),i=e.step.findIndex(({writeGuidance:e})=>JSON.stringify(e)===r);return i===t?[` Write guidance:`,` - Expectation: ${n.expectation}`,` - Body: ${n.body}`,` - Read first: ${n.typeCatalog}`,` - Rejected when:`,...n.reject.map(e=>` - ${e}`),` - Override: ${n.override}`,` - Method: ${n.method.join(`; `)}`]:[` Write guidance: as step ${i+1}.`]}function ze(e,t,n,r){if(t.length===0)return[];let i=t.map(({sourceId:e,excerpt:t})=>({command:k(e,n,r)??e,excerpt:t})),a=Math.max(...i.map(({command:e})=>e.length));return[``,e,...i.map(({command:e,excerpt:t})=>` ${e.padEnd(a)} # ${t}`)]}var Be=/\{([^}]+)\}/gu,Ve=/(?:^r|R)evision$/u;function He(e,t,n=`cli`){let r=t.filter(e=>e.method===`GET`&&(n===`cli`||e.binaryResponse!==!0)),i=t=>e.endpoint!==void 0&&t.endsWith(e.endpoint),a=t.find(t=>t.operationId===e.operationId),o=e.ok&&a!==void 0&&se(a.intent),s=[...o&&e.endpoint!==void 0?A(e.endpoint.split(`?`)[0]??``,r,!1,n,Ge(e.data)).map(e=>n===`mcp`?e:`${e} --data --to-file <path>`):[],...e.references.filter(e=>!i(e)).flatMap(qe).flatMap(e=>A(e.pathname,r,!0,n)),...e.references.filter(i).flatMap(qe).flatMap(e=>Je(e,r,n))],c=n===`mcp`?Ue:void 0;return s.length===0?{write:o,narrowerRead:c}:{exactRecovery:`Read the full result ${s.join(`; `)}.`,write:o,narrowerRead:c}}var Ue=`Refetch a narrower result: call aventure_help with q set to the read intent, then call aventure_read with its operationId and declared query or pathParams, using ids/references, filters, or smaller query.page/query.size windows.`;function We(e){return`Inline output is truncated; full payload written to ${e}; read it with your file tool.`}function Ge(e){let t=typeof e==`object`&&e&&`response`in e?e.response:null;return typeof t==`object`&&t?new Map(Object.entries(t).flatMap(([e,t])=>Number.isInteger(t)&&Ve.test(e)?[[e,String(t)]]:[])):new Map}function Ke(e,t){let n=t.filter(e=>e.method===`GET`);return A(new URL(e,`https://status.invalid`).pathname,n,!0,`cli`)[0]}function qe(e){return URL.canParse(e)?[new URL(e)]:[]}function A(e,t,n,r,i=new Map){let a=t.filter(t=>t.path===e);return(a.length>0?a:t).flatMap(t=>{let a=[...t.path.matchAll(Be)].map(([,e])=>e),o=RegExp(`^${t.path.replace(Be,`([^/]+)`)}$`,`u`),s=n&&a.length===0?null:o.exec(e);if(s===null)return[];let c=t.parameters.flatMap(e=>{let t=e.location===`query`?i.get(e.name):void 0;return t===void 0?[]:[{parameter:e,pin:t}]});if(r===`mcp`)return[Ye(t,{pathParams:Object.fromEntries(a.map((e,t)=>[e??``,decodeURIComponent(s[t+1]??``)])),...c.length===0?{}:{query:Object.fromEntries(c.map(({parameter:e,pin:t})=>[e.name,t]))}})];let l=a.flatMap((e,n)=>{let r=t.parameters.find(t=>t.name===e);return r===void 0?[]:[j(r),s[n+1]??``]}),u=c.flatMap(({parameter:e,pin:t})=>[j(e),t]);return[`${Xe(t)}, ${Ze(t,[...l,...u])}`]})}function Je(e,t,n){let r=t.find(t=>t.path===e.pathname);return r===void 0?[]:t.flatMap(t=>{if(!t.path.startsWith(`${r.path}/`))return[];let i=t.parameters.find(({name:e})=>e.endsWith(`Offset`)),a=t.parameters.find(({name:e})=>e.endsWith(`Limit`));if(i===void 0||a===void 0)return[];if(n===`mcp`)return[`in windows: ${Ye(t,{query:{...Object.fromEntries([...e.searchParams].filter(([e])=>t.parameters.some(t=>t.location===`query`&&t.name===e))),[i.name]:`<offset>`,[a.name]:`<limit>`}})}, advancing query.${i.name} until a window returns fewer than query.${a.name} units`];let o=t.parameters.flatMap(t=>{let n=e.searchParams.get(t.name);return t.location!==`query`||n===null?[]:[j(t),Qe(n)]}),s=[j(i),`<n>`,j(a),`<n>`];return[`${Xe(t)}, in windows: ${Ze(t,[...o,...s])}, advancing ${j(i)} until a window returns fewer than ${j(a)} units`]})}function Ye(e,t){return`${ce(e)} ${JSON.stringify({operationId:e.operationId,...t})}`}function Xe(e){return e.auth===`write`?`with admin sign-in`:`with any sign-in`}function Ze(e,t){return[Ae,...e.cliPath,...t].join(` `)}function j(e){return e.flag.split(/\s+/u)[0]??e.flag}function Qe(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}var $e=i({detail:r(),field:r().nullish(),scope:c([`entity`,`person`,`news`])}),et=c([`auto`,`exact`,`keyword`,`semantic`,`natural`,`hybrid`]),M=Object.assign(t([et,r()]),{enum:et.enum}),N=i({modeRequested:M,modeUsed:M}),tt=i({answerUnavailable:a(),entity:N,incompleteScope:u(c([`entity`,`person`,`news`])).optional(),news:N,person:N,rejection:u($e),unavailable:u(c([`entity`,`person`,`news`]))}),P=c([`person`,`company`,`productService`,`investor`,`operatingCompany`,`otherOrganization`,`investmentFirm`,`fund`]),nt=Object.assign(t([P,r()]),{enum:P.enum}),rt=i({enrichmentRunId:n().nullish(),entityId:n()}),F=c([`numeric`,`overlap`,`containment`]),it=Object.assign(t([F,r()]),{enum:F.enum}),I=i({matchMode:it.nullish(),max:o().nullish(),min:o().nullish()}),L=i({sortPriority:c([`NONE`,`ANY_LOGO_FIRST`,`REAL_LOGO_FIRST`]).optional()}),R=i({max:l({offset:!0}).nullish(),min:l({offset:!0}).nullish()}),z=i({max:s().nullish(),min:s().nullish()}),B=i({max:o().nullish(),min:o().nullish()}),at=i({averageAmountInvestedUsdRange:u(z).optional(),largestAmountInvestedUsdRange:u(z).optional(),smallestAmountInvestedUsdRange:u(z).optional(),totalAmountInvestedUsdRange:u(z).optional(),totalInvestmentRange:u(B).optional()}),ot=c([`any`,`every`]),st=i({amountInvestedRange:u(z).optional(),amountRaisedRange:u(z).optional(),dateAnnouncedRange:R.nullish(),dateFundingCompleteRange:R.nullish(),investedAmountRaisedRange:u(z).optional(),investedCompanyName:u(r()).optional(),investedCountry:u(r()).optional(),investedIndustry:u(r()).optional(),investedRound:u(r()).optional(),investorActivity:at.optional(),investorEntityId:u(n()).optional(),investorName:u(r()).optional(),investorNameMatch:ot.nullish(),lastRoundYearRange:u(B).optional(),rankByInvestmentActivity:a().nullish(),round:u(r()).optional(),totalRaisedRange:u(z).optional(),valuationRange:u(z).optional()}),ct=c([`NONE`,`COMPANY_LISTING_READY`]),lt=c([`Operating`,`Acquired`,`Acquired Subsidiary`,`Closed`,`Closed (Acquihire)`,`Inactive`]),ut=i({identifier:r().max(255).nullish(),idType:r()}),dt=i({category:r(),code:o().nullish(),codeText:r().max(255).nullish(),edition:r().max(128).nullish(),hasEdition:a().nullish()}),ft=c([`hostPath`,`domain`]),pt=d({acceleratorBrand:u(r()).optional(),acceleratorCohort:u(r()).optional(),acceleratorName:u(r()).optional(),acceleratorStatus:u(r()).optional(),affinity:u(r()).optional(),closedLast:a().optional(),employeeCountRange:u(I).optional(),entityId:u(n()).optional(),entityName:u(r()).optional(),featured:a().nullish(),fundraiseActivity:st.optional(),hasFundraising:a().nullish(),headquartersCity:u(r()).optional(),headquartersCountry:u(r()).optional(),headquartersState:u(r()).optional(),industry:u(r()).optional(),investorPopulation:a().nullish(),letter:r().nullish(),location:u(r()).optional(),logoOption:L.optional(),mainProduct:u(r()).optional(),noteworthyOnly:a().optional(),operatingStatus:u(lt).optional(),originCountry:u(r()).optional(),person:u(r()).optional(),portfolioHeadquartersCity:u(r()).optional(),portfolioHeadquartersCountry:u(r()).optional(),portfolioHeadquartersState:u(r()).optional(),qualityGate:ct.optional(),rankByProminence:a().nullish(),semanticQuery:r().nullish(),slug:u(r().regex(/^[a-z0-9_-]+$/).max(255)).optional(),stage:u(r()).optional(),standardizedClassification:u(dt).max(20).optional(),suppressLateStage:a().nullish(),suppressNonOperating:a().nullish(),suppressZeroTotalRaised:a().nullish(),tag:u(r()).optional(),textSearch:r().nullish(),typeCustomer:u(r()).optional(),typeInvestor:u(r()).optional(),typeModel:u(r()).optional(),typeOwnership:u(r()).optional(),typeRecord:u(b).optional(),typeRegulatory:u(r()).optional(),typeRevenue:u(r()).optional(),typeTechnologyUsed:u(r()).optional(),uniqueId:u(ut).max(20).optional(),url:r().nullish(),urlDomain:r().nullish(),urlMatchMode:ft.nullish(),urlType:y.nullish(),yearFoundedRange:u(B).optional()}),mt=d({acceleratorBrand:u(r()).optional(),acceleratorCohort:u(r()).optional(),acceleratorName:u(r()).optional(),acceleratorStatus:u(r()).optional(),affinity:u(r()).optional(),closedLast:a().optional(),employeeCountRange:u(I).optional(),entityId:u(n()).optional(),entityName:u(r()).optional(),featured:a().nullish(),fundraiseActivity:st.optional(),hasFundraising:a().nullish(),headquartersCity:u(r()).optional(),headquartersCountry:u(r()).optional(),headquartersState:u(r()).optional(),industry:u(r()).optional(),investorPopulation:a().nullish(),letter:r().nullish(),location:u(r()).optional(),logoOption:L.optional(),mainProduct:u(r()).optional(),noteworthyOnly:a().optional(),operatingStatus:u(lt).optional(),originCountry:u(r()).optional(),person:u(r()).optional(),portfolioHeadquartersCity:u(r()).optional(),portfolioHeadquartersCountry:u(r()).optional(),portfolioHeadquartersState:u(r()).optional(),qualityGate:ct.optional(),rankByProminence:a().nullish(),slug:u(r().regex(/^[a-z0-9_-]+$/).max(255)).optional(),stage:u(r()).optional(),standardizedClassification:u(dt).max(20).optional(),suppressLateStage:a().nullish(),suppressNonOperating:a().nullish(),suppressZeroTotalRaised:a().nullish(),tag:u(r()).optional(),textSearch:r().nullish(),typeCustomer:u(r()).optional(),typeInvestor:u(r()).optional(),typeModel:u(r()).optional(),typeOwnership:u(r()).optional(),typeRecord:u(b).optional(),typeRegulatory:u(r()).optional(),typeRevenue:u(r()).optional(),typeTechnologyUsed:u(r()).optional(),uniqueId:u(ut).max(20).optional(),url:r().nullish(),urlDomain:r().nullish(),urlMatchMode:ft.nullish(),urlType:y.nullish(),yearFoundedRange:u(B).optional()}),ht=i({entityFilter:mt.nullish(),isCurrent:a().nullish(),personTitle:u(r()).optional()}),gt=c([`CURRENT`,`PAST`,`ANY`]),_t=i({amountInvestedRange:u(z).nullish(),amountRaisedRange:u(z).nullish(),entityName:u(r()).nullish(),investedCompany:u(r()).nullish(),personTitle:u(r()).nullish(),round:u(r()).nullish(),totalInvestmentCount:u(B).nullish(),typeRecord:u(b).nullish()}),vt=i({additionalAssociation:ht.nullish(),arrayFilter:_t.optional(),entityFilter:mt.optional(),entityId:n().nullish(),entitySlug:r().nullish(),firstName:r().nullish(),includeAddress:a().nullish(),includeUrl:a().nullish(),investorActivity:at.optional(),isCurrent:a().nullish(),lastName:r().nullish(),letter:r().nullish(),nameQuery:r().nullish(),personId:u(n()).max(200).optional(),personName:u(r()).optional(),rankByEmployer:a().nullish(),role:r().nullish(),search:r().nullish(),semanticQuery:r().nullish(),status:r().nullish(),tenure:gt.nullish()}),yt=c([`discovery`,`profile`,`peer`,`comparison`]),bt=c([`keyword`,`semantic`]),xt=c([`ID`,`NAME_BRAND`,`YEAR_FOUNDED`,`STATUS_OPERATING`,`UPDATED_AT`,`CREATED_AT`,`NEXT_DUE_AT`,`DATA_COMPLETION_COVERAGE`,`TOTAL_RAISED`,`AMOUNT_INVESTED`,`RECENT_INVESTMENT_AT`,`STAGE`,`MOST_RECENT_AMOUNT`,`LATEST_VALUATION`,`MOST_RECENT_DATE`,`NOTABLE_ACTIVITY_AT`,`ACCELERATOR_BRAND`,`ACCELERATOR_COHORT`,`HEADQUARTERS_COUNTRY`,`EMPLOYEE_COUNT`]),St=Object.assign(t([xt,r()]),{enum:xt.enum}),Ct=i({descending:a(),field:St,sortKey:r().nullish()}),wt=i({order:u(Ct),relevance:bt.nullish()}),Tt=i({confidence:x,execution:N,fallbackUsed:a(),filter:pt,intent:yt,interpretation:r(),personAssociation:vt.nullish(),sort:wt,subjectEntityName:u(r()),unsupported:r().nullish()}),V=i({changedAt:l({offset:!0}).nullish(),dataSourceUpdatedAt:l({offset:!0}).nullish(),pendingApproval:o().nullish(),sourceId:r().nullish(),status:r().nullish()}),Et=i({fundManagerRelationshipSource:V.nullish(),fundraiseTransaction:h,fundraiseTransactionSource:V.nullish(),investorJoinSource:V.nullish()}),Dt=i({evidence:Et,investor:ae,semanticMatch:ie.nullish()}),Ot=i({entityId:n(),matchedOffering:oe.nullish(),probability:s(),webUrl:u(r())}),kt=i({entityId:n(),label:r(),publishedAt:l({offset:!0}).nullish(),score:s(),source:te,sourceId:r(),text:r(),url:r().nullish()}),At=i({answer:ee.nullish(),filing:u(rt).nullish(),hiddenNonOperatingCount:s().int().nullish(),interpretation:Tt,investment:u(Dt),judgment:u(Ot),passage:u(kt),peer:u(p),pendingWebQuery:u(r()),personLead:a(),result:f,searchRequestId:n().nullish(),subject:u(_)}),jt=i({entity:u(m),newsId:o()}),Mt=i({descending:a(),field:c([`ID`,`FIRST_NAME`,`LAST_NAME`,`FULL_NAME`,`SLUG`,`CREATED_AT`,`UPDATED_AT`,`STATUS`,`GENDER`,`AMOUNT_INVESTED`,`TOTAL_INVESTMENTS`]),sortKey:r().nullish()}),Nt=i({order:u(Mt),relevance:bt.nullish()}),Pt=i({confidence:x,employerSemanticQuery:r().nullish(),execution:N,fallbackUsed:a(),filter:vt,interpretation:r(),sort:Nt,unsupported:r().nullish()}),Ft=i({currentCompany:r().nullish(),headline:r().nullish(),id:n(),location:r().nullish(),name:r(),named:r(),organizationEvidence:c([`headline`,`profile`,`none`]).nullish(),photoUrl:r().nullish(),profileUrl:r(),slug:r().regex(/^[a-z0-9_-]+$/).max(255)}),It=i({interpretation:Pt,investment:u(Dt),personLead:a(),profile:u(Ft),result:ne,searchRequestId:n().nullish()}),Lt=i({label:r(),query:r()}),Rt=i({key:r(),option:u(Lt),prompt:r()}),zt=i({entity:At,entityDetail:u(re),news:v,newsEntityMention:u(jt),person:It,personDetail:u(g),personLead:a(),provenance:tt,qualifier:Rt.nullish(),section:u(nt).optional()}),H=30,Bt=8,U=10,Vt=2,Ht=[`id`,`association.associationId`,`slug`,`name`,`nameBrand`,`nameFull`,`core.nameBrand`,`core.nameFull`,`core.slug`,`core.typeRecord`,`entity.core.nameBrand`,`entity.core.slug`,`title`,`sourceName`,`publishedAt`,`round`,`dateAnnounced`,`amountRaised`,`investorAttribution.amountInvested`,`stage`,`updatedAt`,`createdAt`],Ut=new Set([`page`,`size`,`sort`,`cursor`,`mode`,`projection`]);function Wt(e,t,n,{trailer:r=[],heading:i,...a}={}){let o=a.transport??`cli`,s=i===void 0?[]:[i];if(typeof t==`string`)return he([...s,t].join(`
4
+ `),a,r);let c=ve(t,r,o);if(c!==null)return ge([...s,c].join(`
5
+ `),r,a);let l=en(t);if(l===null)return null;let u=e.find(({operationId:e})=>e===l.operationId),d=de(u?.detailField,l.response),f=[...d.hiddenNote,...r],p=(e,t)=>ge(`${e.trimEnd()}\n`,t,a),m=u?.parameters??[],h={...l,response:d.response,parameters:m,transport:o},g=Me(h.response,e,o)??Pe(h.response,e,o);if(g!==null)return p([...s,...g].join(`
6
+ `),r);let _=Gt(h);if(_!==null)return p([...s,..._].join(`
7
+ `),f);let ee=h.summary??n??h.operationId??`OpenAPI call succeeded`,v=[...s,ee,`${h.method} ${h.endpoint}`],y=pe(Yt(h),120-v.length-1-f.length,_e-we.byteLength(`${[...v,...f].join(`
8
+ `)}\n`,`utf8`),a);return p([...v,...y].filter(Boolean).join(`
9
+ `),f)}function Gt({response:e,...t}){let n=zt.safeParse(e);if(!n.success)return null;let{entity:r,person:i,news:a,provenance:o}=n.data;return[...(o.incompleteScope??[]).map(e=>`${e} incomplete: partial results`),...r.answer?Kt(r.answer):[],...o.unavailable.map(e=>`${e} unavailable: retry this scope later`),...o.answerUnavailable?[`answer unavailable: retry this search later`]:[],...o.rejection.map(({scope:e,detail:t})=>C(`${e} rejected: ${t}`)),[`entities:`,...W(r.result,t)].join(`
10
+ `),[`people:`,...W(i.result,t)].join(`
11
+ `),[`news:`,...W(a,t)].join(`
12
+ `)]}function Kt(e){let t=`relatedQuery:\n${e.relatedQuery.map(e=>` - ${C(e)}`).join(`
13
+ `)}`,n=`citations:\n${e.citation.map(({source:e,sourceId:t,entityId:n})=>C(` - ${e}:${t} entity=${n}`)).join(`
14
+ `)}`;return[`answer:\n ${ue(e.text).replaceAll(`
15
+ `,`
16
+ `)}`,...e.relatedQuery.length===0?[]:[t],...e.citation.length===0?[]:[n]]}function qt(e){let t=en(e)?.response,n=Q(t)?t.interpretation:void 0;if(!Q(n))return null;let r=N.safeParse(n.execution);if(!r.success)return null;let{modeRequested:i,modeUsed:a}=r.data,o=fe(n.filter),{unsupported:s,fallbackUsed:c}=n,l=[`strategy: requested=${i} used=${a}`,...Q(o)?[`constraints:`,...Object.entries(o).flatMap(([e,t])=>t===void 0?[]:[` ${e}: ${Jt(t)}`])]:[],typeof s==`string`&&s.trim().length>0?`unsupported: ${s}`:``,c===!0?`fallback: semantic search over the original query`:``];return me(l.filter(Boolean).join(`
17
+ `),{appendNewline:!0})}var Jt=e=>$(e)?C(e):Array.isArray(e)&&e.every($)?e.map(e=>C(e)).join(`, `):JSON.stringify(e);function Yt(e){let{response:t,method:n,nextCursor:r,httpStatus:i,location:a,transport:o}=e;if(t===void 0)return a!==void 0&&i!==void 0?[`status=${i} redirect=${a}`]:i===void 0?[]:[`status=${i} no response body`];let s=i===void 0||n===`GET`?``:`status=${i}`,c=Q(t)&&!X(t)?tn(t):null,l=c===null?void 0:Q(c.context.interpretation)?fe(c.context):c.context,u=l!==void 0&&Q(l)?Object.entries(l):[],d=u.filter(e=>Array.isArray(e[1])&&e[1].length>0&&e[1].every(Q)),f=new Set(d.map(([e])=>e)),p=Object.fromEntries(u.filter(([e])=>!f.has(e)));return[s,...X(t)?W(t,e,r):c===null?rn(t)?G(t,[`filter`],t.meta,o):an(t)?G(t,[`arrayFilterEntry`,`rangeFilterEntry`],t.filtersMeta,o):on(t)?Qt(t,o):typeof t==`string`?t.split(`
18
+ `):K(t,``):[...W(c.page,e,r),...Object.keys(p).length===0?[]:K(p,``),...d.flatMap(([e,t])=>[`${e}:`].concat(Xt(t,o)))]].filter(Boolean)}function W(e,t,n){let r=$t(t),i=e.numberOfElements??e.content.length,a=Math.min(e.content.length,H),o=Math.max(1,a),s=(e.number??0)*(e.size??i),c=(e.totalElements??0)-s-i,l=e.number===void 0?``:` page=${e.number}`,u=e.size===void 0?``:` size=${e.size}`,d=e.totalElements===void 0?``:` total=${e.totalElements}`,f=e.totalPages===void 0?``:` totalPages=${e.totalPages}`,p=(e.number??0)+1,m=e.totalPages===void 0||p<e.totalPages,h=w(`page`,t.parameters);return[`rows=${i}${l}${u}${d}${f}`,a>=i?``:`page rows omitted: ${i-a} (${a}/${i} shown); ${e.content.length>a?D(t.transport,`.content`):`reread with ${w(`size`,t.parameters)} ${o} and ${h} ${Math.floor((s+a)/o)} through ${Math.floor((s+i-1)/o)} (MCP: size, page); pages start at 0`}`,r.length>0?`filters: ${r.join(` `)}`:``,n===void 0?``:`next: --cursor ${E(n)}`,c<=0||n!==void 0?``:m&&i===e.size?`more: ${c} rows not shown; use ${h} or ${w(`size`,t.parameters)} to see them`:`more: ${c} more matched but this response returns only these ${i}; narrow the query to reach them${m?` (${h} ${p} starts after this page)`:``}`,...Xt(e.content.slice(0,a),t.transport)].filter(Boolean)}function Xt(e,t){if(e.length===0)return[`(empty)`];if(!e.every(Q))return q(e,``);let n=Zt(e);if(n.length===0)return q(e,``);let r=e.slice(0,H).map(e=>{let t=J(e);return n.map(e=>t[e]??``)}),i=n.map(e=>e.split(`.`).at(-1)??e),a=i.map((e,t)=>{let n=r.map(e=>e[t]??``),i=Math.max(e.length,...n.map(e=>e.length));return e===`id`||e.endsWith(`Id`)?i:Math.min(32,i)}),o=e=>e.map((e,t)=>le(e,a[t]??12).padEnd(a[t]??12)).join(` `),s=[o(i),o(a.map(e=>`-`.repeat(e)))];return r.forEach(e=>s.push(o(e))),e.length>H&&s.push(`... ${e.length-H} more rows omitted; ${D(t)}`),s}function Zt(e){let t=e.map(e=>J(e)),n=new Set(t.flatMap(e=>Object.keys(e))),r=Ht.filter(e=>n.has(e)),i=new Set(r.map(Y)),a=[...n].filter(e=>{let n=t.every(t=>/^-?\d+(?:\.\d+)?$/u.test(t[e]??`0`));return!e.includes(`.`)||/id$/iu.test(e)||i.has(Y(e))?!1:(n&&i.add(Y(e)),n)}),o=[...n].filter(e=>/(?:^|\.)id$/u.test(e)).slice(0,1),s=[...new Set([...r,...o,...a])],c=[...n].filter(e=>!s.includes(e)).filter(e=>!e.toLowerCase().includes(`logo`)).slice(0,Bt-s.length);return[...s,...c].slice(0,Bt)}function G(e,t,n,r){let i=t.flatMap(t=>e[t].map((e,n)=>({...e,path:`.${t}[${n}].choiceOption`}))),a=n!==void 0&&Q(n)?n:{},o=[`total`,`limit`].flatMap(e=>typeof a[e]==`number`?[` ${e}=${a[e]}`]:[]).join(``),s=[`filters=${i.length}${o}`];for(let e of i){let t=e.choiceOption.length,n=e.choiceOptionTotal===null?`unknown (degraded)`:e.choiceOptionTotal??t,i=e.choiceOptionTruncated===!0?` truncated`:``;s.push(`- ${e.filterKey} (${e.label}): choices ${t}/${n}${i}`),e.choiceOption.slice(0,U).forEach(t=>{s.push(` ${w(e.filterKey)} ${E(t.value)}`)}),t>U&&s.push(` ... ${t-U} choices omitted for ${e.filterKey}; ${D(r,e.path)}`)}return s}function Qt(e,t){let n=w(e.filterKey);return[`${e.filterKey}: ${e.result.length} matches`,...e.result.slice(0,U).map(e=>`${n} ${E(e)}`),e.result.length>U?`... ${e.result.length-U} matches omitted; ${D(t,`.result`)}`:``].filter(Boolean)}function $t({endpoint:e,parameters:t}){let n=e.indexOf(`?`);return n<0?[]:[...new URLSearchParams(e.slice(n+1)).entries()].filter(([e,t])=>!Ut.has(e)&&t.length>0).map(([e,n])=>`${w(e,t)} ${E(n)}`)}function en(e){if(typeof e!=`object`||!e||Array.isArray(e))return null;let t=t=>{let n=Reflect.get(e,t);return typeof n==`string`?n:void 0},[n,r,i]=[t(`method`),t(`endpoint`),t(`nextCursor`)];if(n===void 0||r===void 0)return null;let a=Reflect.get(e,`httpStatus`),o=Reflect.get(e,`response`),s=o===void 0?void 0:S.safeParse(o);return s!==void 0&&!s.success?null:{method:n,endpoint:r,httpStatus:typeof a==`number`?a:void 0,location:t(`location`),operationId:t(`operationId`),summary:t(`statusDescription`)??t(`summary`),nextCursor:i===``?void 0:i,response:s?.data}}function K(e,t,n){if(e===void 0)return[];if($(e))return[`${t}${T(e,n)}`];if(Array.isArray(e))return q(e,t,n);let r=[];for(let[n,i]of Object.entries(e))if(i!==void 0){if($(i))r.push(`${t}${n}: ${T(i,n)}`);else{r.push(`${t}${n}:`);for(let e of K(i,`${t} `,n))r.push(e)}}return r.length===0?[`${t}(empty)`]:r}function q(e,t,n){if(e.length===0)return[`${t}(empty)`];let r=[];for(let i of e)if($(i))r.push(`${t}- ${T(i,n)}`);else{r.push(`${t}-`);for(let e of K(i,`${t} `))r.push(e)}return r}function J(e,t=``,n=0){return $(e)?t.length===0?{}:{[t]:C(e,t)}:n>Vt?{}:Array.isArray(e)?e[0]===void 0?{}:J(e[0],t,n+1):Object.fromEntries(Object.entries(e).flatMap(([e,r])=>{if(r===void 0)return[];let i=t.length===0?e:`${t}.${e}`;return $(r)?[[i,C(r,i)]]:Object.entries(J(r,i,n+1))}))}var Y=e=>e.split(`.`,1)[0],X=e=>Q(e)&&Array.isArray(e.content);function tn(e){let[t,...n]=Object.entries(e).filter(e=>X(e[1])&&typeof e[1].totalElements==`number`);if(t===void 0||n.length>0)return null;let[r,i]=t;return{page:i,context:Object.fromEntries(Object.entries(e).filter(([e])=>e!==r))}}function nn(e){return Q(e)&&typeof e.label==`string`&&typeof e.filterKey==`string`&&Array.isArray(e.choiceOption)}var rn=e=>Q(e)&&Z(e.filter),an=e=>Q(e)&&Z(e.arrayFilterEntry)&&Z(e.rangeFilterEntry),Z=e=>Array.isArray(e)&&e.every(nn),on=e=>Q(e)&&typeof e.filterKey==`string`&&Array.isArray(e.result)&&e.result.every(e=>typeof e==`string`),Q=e=>typeof e==`object`&&!!e&&!Array.isArray(e),$=e=>typeof e!=`object`||!e;export{Ke as a,He as i,qt as n,ke as o,We as r,Wt as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./commander-DEj7N1b9.js";import{a as t}from"./package-DEeHDoOT.js";import{C as n,S as r,_ as i,b as a,c as o,g as s,i as c,m as l,p as u,s as d,x as f}from"./iso-DzqMxtky.js";import{A as p,O as ee,S as te,_ as ne,b as re,d as m,h as ie,i as h,l as g,n as _,p as v,w as y,x as ae}from"./esm-lPyPa01D.js";import{c as b,p as x,r as S}from"./result-envelope-3T3cKKIq.js";import{C,G as oe,K as se,L as ce,M as le,N as ue,O as de,Q as w,R as fe,T as pe,U as me,V as T,W as he,X as ge,Y as E,_ as _e,at as ve,d as ye,f as be,g as xe,h as Se,it as Ce,j as we,k as Te,m as Ee,nt as D,ot as De,q as Oe,s as ke,tt as Ae,v as je,x as Me,y as Ne,z as O}from"./logging-CQGQivrM.js";import{basename as Pe,extname as Fe}from"node:path";import{AsyncLocalStorage as Ie}from"node:async_hooks";import{readFile as Le}from"node:fs/promises";_(),i({bodyPath:r(),valueField:d(i({path:d(r().nullable()).readonly(),type:c([`object`,`array`,`string`,`number`,`integer`,`boolean`]),nullable:o()})).readonly()});var k=n([l(``),r().regex(/^(?:\/(?:[^~/]|~[01])*)+$/)]),Re=f({readOperationId:r().min(1),writePointer:k,readPointer:k,readParameter:r().min(1).optional(),submittedMap:d(f({bodyPointer:k,readPointer:k,identityPointer:k})).min(1).optional(),fallback:f({writePointer:k,readPointer:k,readQueryName:r().min(1),readQueryValue:r().min(1)}).optional()}),ze=c([`QUEUED`,`STARTED`,`SEARCH`,`READ`,`CHECK`,`WRITE`,`FINISHED`]),A=Object.assign(n([ze,r()]),{enum:ze.enum});function Be(e){return new URL(e,`https://placeholder.invalid`).pathname}function Ve(e,t){let n=e.split(`/`).filter(Boolean),r=t.split(`/`).filter(Boolean);return n.length!==r.length||r.some(Ue)?!1:n.every((e,t)=>He(e)||e===r[t])}function He(e){let t=e.slice(1,-1);return e.startsWith(`{`)&&e.endsWith(`}`)&&t.length>0&&!t.includes(`/`)&&!t.includes(`{`)&&!t.includes(`}`)}function Ue(e){if(He(e))return!0;let t=e.toLowerCase(),n=e.slice(3,-3);return t.startsWith(`%7b`)&&t.endsWith(`%7d`)&&n.length>0&&!n.includes(`/`)&&!n.includes(`%`)&&!n.includes(`{`)&&!n.includes(`}`)}var j=[`get`,`post`,`put`,`patch`,`delete`],We=c([`GET`,`POST`,`PUT`,`PATCH`,`DELETE`]);function Ge(e){let t=We.safeParse(e.toUpperCase());if(!t.success)throw Error(`Unsupported OpenAPI method: ${e}`);return t.data}function Ke(e){let t=e.toLowerCase(),n=j.find(e=>e===t);if(n===void 0)throw Error(`Unsupported OpenAPI method: ${e}`);return n}var qe=[`oauth`,`start`,`poll`,`acknowledge`,`revoke`],Je=f({name:r().regex(/^[A-Z][A-Z0-9_]*$/u)}),M=n([l(`private`),i({scope:r().optional(),value:r().optional()})]),Ye=()=>({$ref:r().optional(),description:r().optional(),type:n([r(),d(r())]).optional(),format:r().optional(),default:x.optional(),enum:d(x).optional(),"x-extensible-enum":d(x).optional(),"x-aventure-parsed-enum":o().optional(),readOnly:o().optional(),items:N.optional(),minItems:s().int().nonnegative().optional(),maxItems:s().int().nonnegative().optional(),properties:a(r(),N).optional(),required:d(r()).optional(),oneOf:d(N).optional(),anyOf:d(N).optional(),allOf:d(N).optional(),propertyNames:N.optional(),additionalProperties:n([N,o()]).optional(),"x-aventure-visibility":M.optional(),"x-aventure-cli-conflicts":d(d(r().min(1)).min(2)).min(1).optional(),"x-aventure-env":Je.optional(),"x-aventure-detail":l(!0).optional(),"x-aventure-follow-job":l(`committed`).optional(),"x-aventure-operation-only":d(r().min(1)).min(1).optional()}),N=u(()=>i(Ye())),Xe=i({in:r(),name:r(),required:o().optional(),description:r().optional(),schema:N.optional(),"x-aventure-visibility":M.optional(),"x-aventure-legacy-name":f({name:r().trim().min(1)}).optional()}).superRefine((e,t)=>{let n=e[`x-aventure-legacy-name`]?.name;n!==void 0&&(e.in!==`path`&&t.addIssue({code:`custom`,path:[`x-aventure-legacy-name`],message:`x-aventure-legacy-name is valid only for path parameters`}),n===e.name&&t.addIssue({code:`custom`,path:[`x-aventure-legacy-name`,`name`],message:`Legacy path parameter name must differ from its canonical name`}))}),Ze=a(r(),i({schema:N.optional()})),Qe=i({$ref:r().optional(),description:r().optional(),required:o().optional(),schema:N.optional(),"x-aventure-visibility":M.optional()}),$e=i({description:r().optional(),headers:a(r(),Qe).optional(),content:Ze.optional(),"x-aventure-standard-response":o().optional()}),et=i({description:r().optional(),required:o().optional(),content:Ze.optional()}),tt=f({auth:c([`none`,`read`]).optional(),mutates:o().optional()}).optional(),nt=r().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)* [a-z0-9]+(?:-[a-z0-9]+)*$/u),rt=r().regex(/^[a-z][A-Za-z0-9]*$/u),it=r().regex(/^--(?:no-)?[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u),at=f({command:nt,role:c(qe),summary:r().trim().min(1).optional(),description:r().trim().min(1).optional(),bodyOption:d(rt).min(1).optional(),localOption:d(f({optionKey:rt,flag:it,description:r().trim().min(1)})).min(1).optional()}).superRefine((t,n)=>{let r=[t.bodyOption??[],(t.localOption??[]).map(e=>e.optionKey),(t.localOption??[]).map(e=>e.flag)].some(e=>new Set(e).size!==e.length),i=(t.localOption??[]).some(t=>new e(t.flag).attributeName()!==t.optionKey);(r||i)&&n.addIssue({code:`custom`,message:`Composite CLI options must be unique and match their local flags`})}).optional(),ot=i({operationId:r(),summary:r().optional(),description:r().optional(),tags:d(r()).optional(),deprecated:o().optional(),hidden:o().optional(),security:d(a(r(),d(r()))).optional(),parameters:d(Xe).optional(),requestBody:et.optional(),responses:a(r(),$e),"x-aventure-visibility":M.optional(),"x-aventure-tool":tt,"x-aventure-mutation-readback":Re.optional(),"x-aventure-completion-evidence":l(`response`).optional(),"x-aventure-respond-async":l(`default`).optional(),"x-aventure-run-activity":c([A.enum.SEARCH,A.enum.READ,A.enum.CHECK,A.enum.WRITE]).optional(),"x-aventure-cli-composite":at,"x-aventure-cli":f({listed:l(!1)}).optional()}).superRefine((e,t)=>{let n=e.parameters??[];for(let[e,r]of n.entries()){let i=r[`x-aventure-legacy-name`]?.name;r.in===`path`&&i!==void 0&&n.some((t,n)=>n!==e&&t.in===`path`&&(t.name===i||t[`x-aventure-legacy-name`]?.name===i))&&t.addIssue({code:`custom`,path:[`parameters`,e,`x-aventure-legacy-name`,`name`],message:`Legacy path parameter name '${i}' collides with another declared path parameter`})}}),st=i(Object.fromEntries(j.map(e=>[e,ot.optional()]))),ct=i({...Ye(),"x-aventure-noun":f({one:r().trim().min(1),other:r().trim().min(1)}).optional()});i({info:i({description:r().optional()}).optional(),tags:d(i({name:r(),description:r().optional(),"x-aventure-cli":f({section:c([`researchData`,`account`,`administration`,`cli`])}).optional()})).optional(),paths:a(r(),st),webhooks:a(r(),i({post:i({description:r(),requestBody:et})})).optional(),components:i({schemas:a(r(),ct),headers:a(r(),Qe).optional()})}).superRefine((e,t)=>{for(let[n,r]of Object.entries(e.paths))for(let i of j){for(let[a,o]of Object.entries(r[i]?.responses??{}))for(let[r,s]of Object.entries(o.headers??{}))ft(e,s)||t.addIssue({code:`custom`,path:[`paths`,n,i,`responses`,a,`headers`,r,`$ref`],message:`response header '${r}' has an unresolved or malformed $ref`});let a=r[i]?.[`x-aventure-mutation-readback`];a!==void 0&&pt(e.paths,a.readOperationId)===null&&t.addIssue({code:`custom`,path:[`paths`,n,i,`x-aventure-mutation-readback`,`readOperationId`],message:`mutation readback names '${a.readOperationId}', which no operation in this document emits`})}});var lt=new Set([`page`,`size`,`sort`]);function P(e){return dt(e?.$ref,`schemas`)}function ut(e){return dt(e?.$ref,`headers`)}function dt(e,t){let n=`#/components/${t}/`;return e?.startsWith(n)===!0&&e.slice(n.length)||void 0}function ft(e,t){let n=ut(t);if(t.$ref!==void 0&&n===void 0)return!1;let r=n===void 0?t:e.components.headers?.[n];if(r===void 0||r.$ref!==void 0)return!1;let i=P(r.schema);return r.schema?.$ref===void 0||!!(i&&e.components.schemas[i])}function pt(e,t){for(let[n,r]of Object.entries(e))for(let e of j){let i=r[e];if(i?.operationId===t)return{method:e,template:n,operation:i}}return null}function mt(e,t,n){let r=Be(n),i=e[r]?.[t];if(i)return{method:t,template:r,operation:i};for(let[n,i]of Object.entries(e)){let e=i[t];if(e&&Ve(n,r))return{method:t,template:n,operation:e}}return null}function ht(e,t,n=e){return e.replace(/\{([^}]+)}/g,(...e)=>{let r=e[1],i=t[r];if(i==null)throw Error(`Missing path parameter '${r}' for ${n}`);return encodeURIComponent(String(i))})}function gt(e,t,n){let r=t;for(let i of e.parameters??[]){let e=i[`x-aventure-legacy-name`]?.name;if(i.in!==`path`||e===void 0)continue;let a=t[e];if(Object.hasOwn(t,e)&&a!==void 0){if(Object.hasOwn(t,i.name))throw Error(`Path parameters '${i.name}' and legacy alias '${e}' were both supplied for ${n}`);r===t&&(r={...t}),r[i.name]=a,delete r[e]}}return r}function _t(e,t){let n={};for(let r of e.parameters??[]){if(r.in!==`query`||lt.has(r.name))continue;let e=t?.[r.name]??yt(r.schema?.default);e!==void 0&&(n[r.name]=e)}return Object.keys(n).length===0?void 0:n}var vt=e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`;function yt(e){return vt(e)||Array.isArray(e)&&e.every(vt)?e:void 0}var bt={name:`span`,countItems:e=>e.length},xt=256,St=512;function Ct(e,t){let n=e&255|xt;return t&&(n|=St),n}function wt(e,t){let n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:_e(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>Et(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(e=>Tt(e,t)),droppedLinksCount:e.droppedLinksCount,flags:Ct(n.traceFlags,e.parentSpanContext?.isRemote)}}function Tt(e,t){return{attributes:e.attributes?_e(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:Ct(e.context.traceFlags,e.context.isRemote)}}function Et(e,t){return{attributes:e.attributes?_e(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Dt(e,t){return{resourceSpans:kt(e,t)}}function Ot(e){let t=new Map;for(let n of e){let e=t.get(n.resource);e||(e=new Map,t.set(n.resource,e));let r=`${n.instrumentationScope.name}@${n.instrumentationScope.version||``}:${n.instrumentationScope.schemaUrl||``}`,i=e.get(r);i||(i=[],e.set(r,i)),i.push(n)}return t}function kt(e,t){let n=Ot(e),r=[],i=n.entries(),a=i.next();for(;!a.done;){let[e,n]=a.value,o=[],s=n.values(),c=s.next();for(;!c.done;){let e=c.value;if(e.length>0){let n=e.map(e=>wt(e,t));o.push({scope:Se(e[0].instrumentationScope,t),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}c=s.next()}let l=xe(e,t),u={resource:l,scopeSpans:o,schemaUrl:l.schemaUrl};r.push(u),a=i.next()}return r}var At={serializeRequest:e=>{let t=Dt(e,Ee);return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};let t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(e){return g.warn(`Failed to parse trace export response: ${e.message}. Returning empty response`),{}}}},jt=`otlp_http_span_exporter`,Mt=class extends De{constructor(e={}){super(be(ye(e,`TRACES`,`v1/traces`,{"Content-Type":`application/json`}),At,jt,bt,e.selfObsMeterProvider))}};me(),C(),je();var Nt=`exception`,F=Symbol.for(`nodejs.util.inspect.custom`);function Pt(e){let t={};for(let[n,r]of e.getRawAttributes())typeof r?.then!=`function`&&r!=null&&(t[n]??=r);return t}function Ft(e,t,n,r,i){if(typeof n==`number`&&n<0){let t=`[${e}]`;return r?.stylize?r.stylize(t,`special`):t}return typeof i!=`function`||!r?t:`${e} ${i(t,{...r,depth:r.depth==null?r.depth:r.depth-1})}`}_();var It=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:v.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){let t=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=T.now(),this._performanceOffset=t-(this._performanceStartTime+T.timeOrigin),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(let t of e.links)this.addLink(t);this.startTime=this._getTime(e.startTime??t),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(t==null||this._isSpanEnded())return this;if(e.length===0)return g.warn(`Invalid attribute key: ${e}`),this;if(!Ae(t))return g.warn(`Invalid attribute value set for key: ${e}`),this;let{attributeCountLimit:n}=this._spanLimits,r=!Object.prototype.hasOwnProperty.call(this.attributes,e);return n!==void 0&&this._attributesCount>=n&&r?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),r&&this._attributesCount++,this)}setAttributes(e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setAttribute(t,e[t]);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;let{eventCountLimit:r}=this._spanLimits;if(r===0)return g.warn(`No events allowed.`),this._droppedEventsCount++,this;r!==void 0&&this.events.length>=r&&(this._droppedEventsCount===0&&g.debug(`Dropping extra events.`),this.events.shift(),this._droppedEventsCount++),ce(t)&&(ce(n)||(n=t),t=void 0);let i=D(t),{attributePerEventCountLimit:a}=this._spanLimits,o={},s=0,c=0;for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e];a!==void 0&&c>=a?s++:(o[e]=this._truncateToSize(t),c++)}return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:s}),this}addLink(e){if(this._isSpanEnded())return this;let{linkCountLimit:t}=this._spanLimits;if(t===0)return this._droppedLinksCount++,this;t!==void 0&&this.links.length>=t&&(this._droppedLinksCount===0&&g.debug(`Dropping extra links.`),this.links.shift(),this._droppedLinksCount++);let{attributePerLinkCountLimit:n}=this._spanLimits,r=D(e.attributes),i={},a=0,o=0;for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;let t=r[e];n!==void 0&&o>=n?a++:(i[e]=this._truncateToSize(t),o++)}let s={context:e.context};return o>0&&(s.attributes=i),a>0&&(s.droppedAttributesCount=a),this.links.push(s),this}addLinks(e){for(let t of e)this.addLink(t);return this}setStatus(e){if(this._isSpanEnded()||e.code===v.UNSET||this.status.code===v.OK)return this;let t={code:e.code};return e.code===v.ERROR&&(typeof e.message==`string`?t.message=e.message:e.message!=null&&g.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=t,this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){this._isSpanEnded()?g.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`):(this.endTime=this._getTime(e),this._duration=ue(this.startTime,this.endTime),this._duration[0]<0&&(g.warn(`Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.`,this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&g.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&g.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this))}_getTime(e){if(typeof e==`number`&&e<=T.now())return le(e+this._performanceOffset);if(typeof e==`number`)return O(e);if(e instanceof Date)return O(e.getTime());if(fe(e))return e;if(this._startTimeProvided)return O(Date.now());let t=T.now()-this._performanceStartTime;return we(this.startTime,O(t))}isRecording(){return this._ended===!1}recordException(e,t){let n={};typeof e==`string`?n[oe]=e:e&&(e.code?n[Oe]=e.code.toString():e.name&&(n[Oe]=e.name),e.message&&(n[oe]=e.message),e.stack&&(n[se]=e.stack)),n[`exception.type`]||n[`exception.message`]?this.addEvent(Nt,n,t):g.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let e=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);g.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(g.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e==`string`?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>typeof e==`string`?this._truncateToLimitUtil(e,t):e):e}[F](e,t,n){return Ft(`SpanImpl`,{name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:Pt(this.resource)}},e,t,n)}},I;(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(I||={});var Lt=`otel.component.name`,Rt=`otel.component.type`,zt=`otel.span.parent.origin`,Bt=`otel.span.sampling_result`,Vt=`otel.sdk.processor.span.processed`,Ht=`otel.sdk.processor.span.queue.capacity`,Ut=`otel.sdk.processor.span.queue.size`,Wt=`otel.sdk.span.live`,Gt=`otel.sdk.span.started`,Kt=`batching_span_processor`,qt=class{startedSpans;liveSpans;constructor(e){this.startedSpans=e.createCounter(Gt,{unit:`{span}`,description:`The number of created spans.`}),this.liveSpans=e.createUpDownCounter(Wt,{unit:`{span}`,description:`The number of currently live spans.`})}startSpan(e,t){let n=Yt(t);if(this.startedSpans.add(1,{[zt]:Jt(e),[Bt]:n}),t===I.NOT_RECORD)return()=>{};let r={[Bt]:n};return this.liveSpans.add(1,r),()=>{this.liveSpans.add(-1,r)}}};function Jt(e){return e?e.isRemote?`remote`:`local`:`none`}function Yt(e){switch(e){case I.RECORD_AND_SAMPLED:return`RECORD_AND_SAMPLE`;case I.RECORD:return`RECORD_ONLY`;case I.NOT_RECORD:return`DROP`}}var Xt=`2.11.0`;_(),C();var Zt=class{_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(e,t){this.instrumentationScope=e,this._sampler=t.sampler,this._spanLimits=t.spanLimits,this._resource=t.resource,this._idGenerator=t.idGenerator,this._spanProcessor=t.spanProcessor;let n=t.meterProvider.getMeter(`@opentelemetry/sdk-trace`,Xt);this._tracerMetrics=new qt(n)}startSpan(e,t={},n=m.active()){t.root&&(n=h.deleteSpan(n));let r=h.getSpan(n);if(Ce(n))return g.debug(`Instrumentation suppressed, returning Noop Span`),h.wrapSpanContext(te);let i=r?.spanContext(),a=this._idGenerator.generateSpanId(),o,s,c;!i||!h.isSpanContextValid(i)?s=this._idGenerator.generateTraceId():(s=i.traceId,c=i.traceState,o=i);let l=t.kind??ie.INTERNAL,u=(t.links??[]).map(e=>({context:e.context,attributes:D(e.attributes)})),d=D(t.attributes),f=this._sampler.shouldSample(n,s,e,l,d,u),p=this._tracerMetrics.startSpan(i,f.decision);c=f.traceState??c;let ee=f.decision===ne.RECORD_AND_SAMPLED?y.SAMPLED:y.NONE,re={traceId:s,spanId:a,traceFlags:ee,traceState:c};if(f.decision===ne.NOT_RECORD)return g.debug(`Recording is off, propagating context in a non-recording span`),h.wrapSpanContext(re);let _=D(Object.assign(d,f.attributes));return new It({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:re,name:e,kind:l,links:u,parentSpanContext:o,attributes:_,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:p})}startActiveSpan(e,t,n,r){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);let s=a??m.active(),c=this.startSpan(e,i,s),l=h.setSpan(s,c);return m.with(l,o,void 0,c)}[F](e,t,n){return Ft(`Tracer`,{instrumentationScope:this.instrumentationScope,resource:{attributes:Pt(this._resource)},spanLimits:this._spanLimits},e,t,n)}};C();var Qt=class{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{w(e||Error(`MultiSpanProcessor: forceFlush failed`)),t()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnding(e){for(let t of this._spanProcessors)t.onEnding&&t.onEnding(e)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}},L=class{shouldSample(){return{decision:I.NOT_RECORD}}toString(){return`AlwaysOffSampler`}},R=class{shouldSample(){return{decision:I.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}};_(),C();var z=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||=(w(Error(`ParentBasedSampler must have a root sampler configured`)),new R),this._remoteParentSampled=e.remoteParentSampled??new R,this._remoteParentNotSampled=e.remoteParentNotSampled??new L,this._localParentSampled=e.localParentSampled??new R,this._localParentNotSampled=e.localParentNotSampled??new L}shouldSample(e,t,n,r,i,a){let o=h.getSpanContext(e);return!o||!re(o)?this._root.shouldSample(e,t,n,r,i,a):o.isRemote?o.traceFlags&y.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,i,a):this._remoteParentNotSampled.shouldSample(e,t,n,r,i,a):o.traceFlags&y.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,i,a):this._localParentNotSampled.shouldSample(e,t,n,r,i,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};me();var $t=new Map,en=class{processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(e,t,n){let r=$t.get(e)??0;if($t.set(e,r+1),this.standardAttrs={[Rt]:e,[Lt]:`${e}/${r}`},this.droppedAttrs={...this.standardAttrs,[he]:`queue_full`},this.processedSpans=t.createCounter(Vt,{unit:`{span}`,description:`The number of spans for which the processing has finished, either successful or failed.`}),n){let{capacity:e,getQueueSize:r}=n;t.createUpDownCounter(Ht,{unit:`{span}`,description:`The maximum number of spans the queue of a given instance of an SDK span processor can hold.`}).add(e,this.standardAttrs),this.queueSize=t.createObservableUpDownCounter(Ut,{unit:`{span}`,description:`The number of spans in the queue of a given instance of an SDK span processor.`}),this.queueSizeCallback=e=>e.observe(r(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(e){this.processedSpans.add(e,this.droppedAttrs)}finishSpans(e,t){if(!t){this.processedSpans.add(e,this.standardAttrs);return}let n={...this.standardAttrs,[he]:t.name};this.processedSpans.add(e,n)}shutdown(){this.queueSize&&this.queueSizeCallback&&this.queueSize.removeCallback(this.queueSizeCallback)}};_(),C();var tn=class{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e){this._exporter=e.exporter,this._maxExportBatchSize=e.maxExportBatchSize??512,this._maxQueueSize=e.maxQueueSize??2048,this._scheduledDelayMillis=e.scheduledDelayMillis??5e3,this._exportTimeoutMillis=e.exportTimeoutMillis??3e4,this._shutdownOnce=new pe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(g.warn(`BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize`),this._maxExportBatchSize=this._maxQueueSize);let t=e.selfObsMeterProvider?e.selfObsMeterProvider.getMeter(`@opentelemetry/sdk-trace`):ee();this._metrics=new en(Kt,t,{capacity:this._maxQueueSize,getQueueSize:()=>this._finishedSpans.length})}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&y.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>(this._metrics.shutdown(),this._exporter.shutdown()))}_addToBuffer(e){this._finishedSpans.length>=this._maxQueueSize?(this._droppedSpansCount===0&&g.debug(`maxQueueSize reached, dropping spans`),this._droppedSpansCount++,this._metrics.dropSpans(1)):(this._droppedSpansCount>0&&(g.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer())}_flushAll(){return new Promise((e,t)=>{let n=[],r=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0,t=r;e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(()=>{t(Error(`Timeout`))},this._exportTimeoutMillis);m.with(ve(m.active()),()=>{let r;this._finishedSpans.length<=this._maxExportBatchSize?(r=this._finishedSpans,this._finishedSpans=[]):r=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(r,i=>{clearTimeout(n),this._metrics.finishSpans(r.length,i.error),i.code===Te.SUCCESS?e():t(i.error??Error(`BatchSpanProcessor: span export failed`))}),a=null;for(let e=0,t=r.length;e<t;e++){let t=r[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(a??=[],a.push(t.resource.waitForAsyncAttributes()))}a===null?i():Promise.all(a).then(i,e=>{w(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,w(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),typeof this._timer!=`number`&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}},nn=class extends tn{onShutdown(){}},rn=8,an=16,on=class{generateTraceId=sn(an);generateSpanId=sn(rn)},B=Buffer.allocUnsafe(an);function sn(e){return function(){for(let t=0;t<e/4;t++)B.writeUInt32BE(Math.random()*2**32>>>0,t*4);for(let t=0;t<e&&!(B[t]>0);t++)t===e-1&&(B[e-1]=1);return B.toString(`hex`,0,e)}}_();var V;(function(e){e[e.resolved=0]=`resolved`,e[e.timeout=1]=`timeout`,e[e.error=2]=`error`,e[e.unresolved=3]=`unresolved`})(V||={});var cn=class{_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(e={}){this._forceFlushTimeoutMillis=e.forceFlushTimeoutMillis??3e4,this._resource=e.resource??Ne();let t=e.spanProcessors??[];this._activeSpanProcessor=new Qt(t),this._tracerOptions={resource:this._resource,sampler:e.sampler??new z({root:new R}),spanLimits:{attributeCountLimit:e.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:e.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:e.spanLimits?.eventCountLimit??128,linkCountLimit:e.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:e.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:e.spanLimits?.attributePerLinkCountLimit??128},idGenerator:e.idGenerator||new on,spanProcessor:this._activeSpanProcessor,meterProvider:e.meterProvider??{getMeter(){return ee()}}}}getTracer(e,t,n){let r=`${e}@${t||``}:${n?.schemaUrl||``}`;return this._tracers.has(r)||this._tracers.set(r,new Zt({name:e,version:t,schemaUrl:n?.schemaUrl},this._tracerOptions)),this._tracers.get(r)}forceFlush(e){let t=e?.timeoutMillis??this._forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(e=>new Promise(n=>{let r,i=setTimeout(()=>{n(Error(`Span processor did not completed within timeout period of ${t} ms`)),r=V.timeout},t);e.forceFlush().then(()=>{clearTimeout(i),r!==V.timeout&&(r=V.resolved,n(r))}).catch(e=>{clearTimeout(i),r=V.error,n(e)})}));return new Promise((e,t)=>{Promise.all(n).then(n=>{let r=n.filter(e=>e!==V.resolved);r.length>0?t(r):e()}).catch(e=>t([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[F](e,t,n){let r=this._activeSpanProcessor._spanProcessors;return Ft(`TracerProvider`,{resource:{attributes:Pt(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:r.map(e=>e.constructor?.name??`SpanProcessor`)},e,t,n)}};_();var ln=class{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=this._ratio===1?4294967296:Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:ae(t)&&this._accumulate(t)<this._upperBound?I.RECORD_AND_SAMPLED:I.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!=`number`||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<32;n+=8){let r=0;for(let t=0;t<8;t++){let i=e.charCodeAt(n+t),a=i<58?i-48:i<71?i-55:i-87;r=r<<4|a}t=(t^r)>>>0}return t}};_(),C();var H;(function(e){e.AlwaysOff=`always_off`,e.AlwaysOn=`always_on`,e.ParentBasedAlwaysOff=`parentbased_always_off`,e.ParentBasedAlwaysOn=`parentbased_always_on`,e.ParentBasedTraceIdRatio=`parentbased_traceidratio`,e.TraceIdRatio=`traceidratio`})(H||={});var U=1;function un(){return{sampler:dn(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:E(`OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT`)??1/0,attributeCountLimit:E(`OTEL_ATTRIBUTE_COUNT_LIMIT`)??128},spanLimits:{attributeValueLengthLimit:E(`OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT`)??1/0,attributeCountLimit:E(`OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT`)??128,linkCountLimit:E(`OTEL_SPAN_LINK_COUNT_LIMIT`)??128,eventCountLimit:E(`OTEL_SPAN_EVENT_COUNT_LIMIT`)??128,attributePerEventCountLimit:E(`OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT`)??128,attributePerLinkCountLimit:E(`OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT`)??128}}}function dn(){let e=ge(`OTEL_TRACES_SAMPLER`)??H.ParentBasedAlwaysOn;switch(e){case H.AlwaysOn:return new R;case H.AlwaysOff:return new L;case H.ParentBasedAlwaysOn:return new z({root:new R});case H.ParentBasedAlwaysOff:return new z({root:new L});case H.TraceIdRatio:return new ln(fn());case H.ParentBasedTraceIdRatio:return new z({root:new ln(fn())});default:return g.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${H.ParentBasedAlwaysOn}".`),new z({root:new R})}}function fn(){let e=E(`OTEL_TRACES_SAMPLER_ARG`);return e==null?(g.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${U}.`),U):e<0||e>1?(g.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to ${U}.`),U):e}C();function pn(e){let t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??E(`OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT`)??E(`OTEL_ATTRIBUTE_COUNT_LIMIT`)??128,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??E(`OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT`)??E(`OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT`)??1/0,Object.assign({},e,{spanLimits:t})}C();var mn=class extends cn{constructor(e={}){let t=de({},un(),pn(e));delete t.generalLimits,super(t)}};C();var hn=class extends nn{constructor(e,t){t||={};for(let[e,n]of[[`maxExportBatchSize`,`OTEL_BSP_MAX_EXPORT_BATCH_SIZE`],[`maxQueueSize`,`OTEL_BSP_MAX_QUEUE_SIZE`],[`scheduledDelayMillis`,`OTEL_BSP_SCHEDULE_DELAY`],[`exportTimeoutMillis`,`OTEL_BSP_EXPORT_TIMEOUT`]])if(t[e]===void 0){let r=E(n);r!==void 0&&(t[e]=r)}super({exporter:e,...t})}};_(),je();var gn=`aventure-mcp-server`,_n=`aventure=mcp`,vn=`langfuse.session.id`,yn=`/api/public/otel/v1/traces`,bn=5e3,xn=new Set([`langfuse.observation.input`,`langfuse.observation.output`,`langfuse.observation.status_message`]),Sn=[`OTEL_EXPORTER_OTLP_HEADERS`,`OTEL_EXPORTER_OTLP_TRACES_HEADERS`],W,G;function K(e){return e?.trim()||void 0}function Cn(){return K(process.env.GIT_SHA)??K(process.env.SENTRY_RELEASE)??t().version}function wn(){let e=K(process.env.LANGFUSE_BASE_URL),t=K(process.env.LANGFUSE_PUBLIC_KEY),n=K(process.env.LANGFUSE_SECRET_KEY);if(e!==void 0&&t!==void 0&&n!==void 0){for(let e of Sn){let t=(process.env[e]??``).split(`,`).map(e=>e.split(`=`,1)[0]?.trim().toLowerCase()??``).filter(e=>e!==``&&e!==`authorization`);if(t.length>0)throw Error(`${e} sets ${t.join(`, `)}, which the Langfuse trace exporter would forward`)}return new Mt({url:new URL(yn,e).href,headers:{Authorization:`Basic ${Buffer.from(`${t}:${n}`).toString(`base64`)}`,"x-langfuse-ingestion-version":`4`},timeoutMillis:bn})}}function Tn(e){let t={};for(let[n,r]of Object.entries(e.attributes))xn.has(n)||(t[n]=r);return{name:e.name,kind:e.kind,spanContext:()=>e.spanContext(),...e.parentSpanContext===void 0?{}:{parentSpanContext:e.parentSpanContext},startTime:e.startTime,endTime:e.endTime,status:e.status,attributes:t,links:e.links,events:e.events,duration:e.duration,ended:e.ended,resource:e.resource,instrumentationScope:e.instrumentationScope,droppedAttributesCount:e.droppedAttributesCount,droppedEventsCount:e.droppedEventsCount,droppedLinksCount:e.droppedLinksCount}}function En(e){return{export:(t,n)=>e.export(t.map(Tn),n),shutdown:()=>e.shutdown(),forceFlush:()=>e.forceFlush?.()??Promise.resolve()}}function Dn(){if(W!==void 0)return G;let e=K(process.env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT),t=[...e===void 0?[]:[En(new Mt({url:e,timeoutMillis:bn}))],...[wn()].filter(e=>e!==void 0)];return W=new mn({sampler:new R,resource:Me({...ke(),"service.version":Cn()}),spanProcessors:t.map(e=>new hn(e,{exportTimeoutMillis:bn}))}),G=t.length===0?void 0:W.getTracer(gn),G}function On(){Dn()}var kn=/^00-(?<traceId>[0-9a-f]{32})-(?<spanId>[0-9a-f]{16})-(?<flags>[0-9a-f]{2})$/u,An=/[13579bdf]$/u;function jn(e,t,n){let r=Dn();if(r===void 0)return;let i=kn.exec(n??``)?.groups,a=i?.traceId===void 0||i.spanId===void 0?p:h.setSpanContext(p,{traceId:i.traceId,spanId:i.spanId,traceFlags:An.test(i.flags??``)?y.SAMPLED:y.NONE,isRemote:!0});return r.startSpan(e,{kind:ie.SERVER,attributes:{"langfuse.trace.name":e,...t,"langfuse.environment":ke()[`deployment.environment.name`],"langfuse.release":Cn()}},a)}function Mn(e){let{traceId:t,spanId:n,traceFlags:r}=e.spanContext();return`00-${t}-${n}-${(r&y.SAMPLED)===0?`00`:`01`}`}function Nn(e,t,n){e.setAttributes(t),e.setStatus({code:n?v.ERROR:v.OK}),e.end()}async function Pn(){let e=W;W=void 0,G=void 0,await e?.shutdown()}var q=new Ie,Fn=`X-Client-Request-Id`,In=()=>q.getStore()?.requestId,Ln=()=>q.getStore()?.toolApiCall,Rn=()=>q.getStore()?.responseDeadline,zn=()=>q.getStore()?.userBearerToken;function Bn(){let e=q.getStore(),t=[...e?.sessionId===void 0?[]:[`${vn}=${encodeURIComponent(e.sessionId)}`],...e?.traceName===void 0?[]:[`langfuse.trace.name=${encodeURIComponent(e.traceName)}`],...e?.traceTag===void 0?[]:[`langfuse.trace.tags=${encodeURIComponent(e.traceTag.map(encodeURIComponent).join(`,`))}`]].join(`,`);return{...e?.requestId===void 0?{}:{[Fn]:e.requestId},...e?.traceparent===void 0?{}:{traceparent:e.traceparent,tracestate:_n,...t.length===0?{}:{baggage:t}}}}function Vn(e,t){return q.run({...q.getStore(),requestId:e,toolApiCall:{failed:!1}},t)}function Hn(e,t){return q.run({...q.getStore(),responseDeadline:e},t)}function Un(e,t){return q.run({...q.getStore(),userBearerToken:e},t)}function Wn(e,t){return q.run({...q.getStore(),...e},t)}var Gn=Object.freeze({total:8,perOrigin:2,originLimit:64,failureThreshold:3,cooldownMs:3e4,idleMs:3e4,halfOpenProbes:1}),Kn=Object.freeze({total:128,perOrigin:64,originLimit:64,failureThreshold:5,cooldownMs:15e3,idleMs:3e5,halfOpenProbes:1}),qn=new WeakMap,J=class extends Error{reason;constructor(e){super(e===`capacity`?`Origin capacity exceeded; try again later.`:`Origin circuit is open; try again later.`),this.reason=e}};function Jn(e,t){let n=Date.now(),r=qn.get(t);r===void 0&&(r={active:0,origin:new Map},qn.set(t,r));for(let[i,a]of r.origin)i!==e&&a.active===0&&a.updatedAt+t.idleMs<=n&&r.origin.delete(i);let i=r.origin.get(e);if(i===void 0){if(r.origin.size>=t.originLimit)throw new J(`capacity`);i={active:0,failures:0,openUntil:0,updatedAt:n},r.origin.set(e,i)}if(i.openUntil>n||i.failures>=t.failureThreshold&&i.active>=t.halfOpenProbes)throw new J(`circuit`);if(r.active>=t.total||i.active>=t.perOrigin)throw new J(`capacity`);return i.active++,r.active++,{finish:Yn(r,i,t)}}function Yn(e,t,n){let r=!1;return i=>{r||(r=!0,t.active--,e.active--,t.updatedAt=Date.now(),i===`failure`?(t.failures++,t.failures>=n.failureThreshold&&(t.openUntil=t.updatedAt+n.cooldownMs)):i===`success`&&(t.failures=0,t.openUntil=0))}}var Xn=3e4,Zn=20,Y=52428800;async function Qn(e,t,n,r={}){let i=rr(X(e.requestBody?.content),n);if(!i.ok||i.data===null)return S(i.summary,i.warnings);let a=i.data;if(e.requestBody?.required===!0&&t===void 0&&a?.kind!==`multipart`)return S(`Request body is required.`);if(a?.kind===`multipart`)return await ar(e.requestBody?.required===!0,a.schema,t,r);let o=a?.contentType??r.defaultContentType;return b(`Request body prepared`,{...t===void 0?{}:{body:t},...o===void 0?{}:{contentType:o}})}function $n(e){if(typeof e!=`string`)return b(`Request body unchanged`,e);let t=e.trimStart().slice(0,1);if(t!==`{`&&t!==`[`)return b(`Request body unchanged`,e);try{let t=x.safeParse(JSON.parse(e));if(!t.success)throw t.error;return b(`Request body parsed`,t.data)}catch(e){return S(`Request body string must be valid JSON: ${e instanceof Error?e.message:String(e)}`)}}function er(e,t){let n=e?.schema;if(n===void 0)return!1;let r=P(n),i=n.type??(r===void 0?void 0:t[r]?.type);return Array.isArray(i)?i.includes(`array`):i===`array`}function tr(e){return X(e)[0]?.kind??`json`}function nr(e){return e===void 0||Object.keys(e).length===0||X(e).length>0}function X(e){let t=Object.entries(e??{});return[...t.flatMap(e=>vr(e[0])?[ir(e,`json`)]:[]),...t.flatMap(e=>yr(e[0])?[ir(e,`multipart`)]:[])]}function rr(e,t){if(t===void 0)return b(`Default request content selected`,e[0]);let n=Q(t),r=e.find(e=>Q(e.contentType)===n);return r===void 0?S(`Request Content-Type '${t}' is not supported. Supported choices: ${e.map(({contentType:e})=>e).join(`, `)||`none`}.`):b(`Explicit request content selected`,r)}function ir(e,t){let n=e[1].schema;return{contentType:e[0],kind:t,...n===void 0?{}:{schema:n}}}async function ar(e,t,n,r){if(!e&&n==null)return b(`Optional multipart body omitted`,{});let i=or(n);if(!i.ok||i.data===null)return S(i.summary,i.warnings);let a=new FormData;for(let e of sr(t)){let t=i.data[e.name];if(t==null){if(e.required)return S(`Multipart body requires '${e.name}'.`)}else{if(Array.isArray(t)&&t.length<(e.schema.minItems??0))return S(`Multipart part '${e.name}' requires more entries.`);if(Array.isArray(t)&&t.length>(e.schema.maxItems??2**53-1))return S(`Multipart part '${e.name}' has too many entries.`);if(cr(e.schema)||lr(e.schema)){let n=lr(e.schema)?t:[t];if(!Array.isArray(n)||n.some(e=>typeof e!=`string`))return S(`Multipart part '${e.name}' must contain file paths or URLs.`);for(let t of n){if(typeof t!=`string`)continue;let n=await fr(t,r);if(!n.ok||n.data===null)return S(n.summary,n.warnings,{httpStatus:n.httpStatus});a.append(e.name,n.data.blob,n.data.filename)}}else if(ur(e.schema,t)){let n=JSON.stringify(t);a.append(e.name,new Blob([n],{type:`application/json`}),`${e.name}.json`)}else{let n=dr(a,e.name,t);if(!n.ok)return n}}}return b(`Multipart body prepared`,{body:a})}function or(e){if(typeof e==`object`&&e&&!Array.isArray(e)){let t=Object.fromEntries(Object.entries(e));return b(`Multipart input parsed`,t)}return S(`Multipart request body must be a JSON object keyed by form part name.`)}function sr(e){let t=new Set(e?.required??[]);return Object.entries(e?.properties??{}).map(([e,n])=>({name:e,schema:n,required:t.has(e)}))}function cr(e){return e.type===`string`&&e.format===`binary`}function lr(e){return e.type===`array`&&e.items!==void 0&&cr(e.items)}function ur(e,t){return typeof t!=`object`||!t||Array.isArray(t)?!1:e.type===`object`||typeof e.$ref==`string`&&e.$ref.length>0}function dr(e,t,n){if(Array.isArray(n)){for(let r of n){let n=dr(e,t,r);if(!n.ok)return n}return b(`Multipart scalar array appended`,null)}return typeof n==`object`?S(`Multipart part '${t}' must be scalar.`):(e.append(t,String(n)),b(`Multipart scalar appended`,null))}async function fr(e,t){if(t.signal?.aborted||(t.deadline??1/0)<=Date.now()){let e=Ln();return e!==void 0&&!Z(t.signal)&&(e.failed=!0),S(`Media preparation canceled or invocation deadline exceeded.`)}return gr(e)?In()===void 0?await pr(e,t):S(`MCP media URL fetching is disabled. Pass the page as sourceUrl in the JSON body instead.`):In()===void 0?await hr(e,t.signal):S(`MCP callers cannot upload local files: pass an http(s) URL as the multipart part, or send media by sourceUrl in a JSON body. Local file paths are CLI-only.`)}async function pr(e,t){let n=new AbortController,r=Math.min(Xn,(t.deadline??1/0)-Date.now()),i=setTimeout(()=>n.abort(),Math.max(r,1)),a=t.signal?AbortSignal.any([n.signal,t.signal]):n.signal,o,s,c=`neutral`;try{if(a.throwIfAborted(),r<=0)throw Error(`Invocation deadline exceeded.`);let t=new URL(e),n=t;for(let e=0;;e++){a.throwIfAborted(),o=Jn(n.origin,Gn),c=`failure`,s=await fetch(n.href,{signal:a,redirect:`manual`});let t=s.headers.get(`location`);if(![301,302,303,307,308].includes(s.status)||t===null)break;if(await s.body?.cancel(),e>=Zn)throw Error(`Media URL exceeded the redirect limit.`);let r=new URL(t,n);o.finish(`success`),o=void 0,s=void 0,n=r}if(c=s.status===429||s.status>=500?`failure`:`success`,!s.ok)return await s.body?.cancel(),S(`Failed to fetch media URL: ${s.status} ${s.statusText}`,[],{httpStatus:s.status});c=`failure`;let i=s.headers.get(`content-type`)?.split(`;`)[0]?.trim()??_r(t.pathname)??``,l=await mr(s,{type:i,signal:a});return c=`success`,b(`URL media fetched`,{blob:l,filename:Pe(t.pathname)||`upload`})}catch(e){(e instanceof J||a.aborted||r<=0)&&(c=`failure`),e instanceof RangeError&&(c=`success`),Z(t.signal)&&(c=`neutral`),s?.body&&!s.body.locked&&!s.bodyUsed&&await s.body.cancel();let i=Z(t.signal)?`Failed to fetch media URL: canceled.`:t.signal?.aborted?`Failed to fetch media URL: invocation deadline exceeded.`:n.signal.aborted?`Failed to fetch media URL: timed out after ${r}ms.`:`Failed to fetch media URL: ${e instanceof Error?e.message:String(e)}`;return S(i,[],{httpStatus:e instanceof RangeError?void 0:s?.status})}finally{clearTimeout(i);let e=Ln();e!==void 0&&c===`failure`&&!Z(t.signal)&&(e.failed=!0),o?.finish(c)}}function Z(e){return e?.aborted===!0&&!(e.reason instanceof DOMException&&e.reason.name===`TimeoutError`)}async function mr(e,{type:t,signal:n}){let r=e.body?.getReader();if(r===void 0)throw Error(`Media URL returned no body.`);let i=[],a=0,o=!1,s,c=new Promise(e=>{s=()=>e({done:!0,value:void 0}),n.addEventListener(`abort`,s,{once:!0})});try{if(Number(e.headers.get(`content-length`))>Y)throw RangeError(`Media exceeds the ${Y}-byte upload limit.`);for(;;){n.throwIfAborted();let e=await Promise.race([r.read(),c]);if(n.throwIfAborted(),e.done)break;if(a+=e.value.byteLength,a>Y)throw RangeError(`Media exceeds the ${Y}-byte upload limit.`);i.push(new Blob([e.value.slice()]))}return o=!0,new Blob(i,{type:t})}finally{s&&n.removeEventListener(`abort`,s),o||await r.cancel(),r.releaseLock()}}async function hr(e,t){try{let n=_r(e)??``,r=await Le(e,{signal:t});return b(`File media read`,{blob:new Blob([r],{type:n}),filename:Pe(e)})}catch(t){return S(`Failed to read media file '${e}': ${t instanceof Error?t.message:String(t)}`)}}function gr(e){return e.startsWith(`http://`)||e.startsWith(`https://`)}function _r(e){return br[Fe(e).toLowerCase()]}function vr(e){let t=Q(e);return t===`*/*`||t===`application/json`||t.endsWith(`+json`)}function yr(e){return Q(e)===`multipart/form-data`}var Q=e=>e.split(`;`)[0]?.trim().toLowerCase()??``,br={".gif":`image/gif`,".heic":`image/heic`,".heif":`image/heif`,".jpeg":`image/jpeg`,".jpg":`image/jpeg`,".png":`image/png`,".webp":`image/webp`};function xr(e,t,n){let r=new Map,i=(t,a,o)=>{let s=P(t);if(a>n||s!==void 0&&o.includes(s))return;let c=s===void 0?o:[...o,s],l=Cr(e,t);for(let e of[...l.items===void 0?[]:[l.items],...l.oneOf??[],...l.anyOf??[],...l.allOf??[]])i(e,a,c);for(let[e,t]of Object.entries(l.properties??{}))r.set(e,Math.min(r.get(e)??a,a)),i(t,a+1,c)};for(let[e,n]of Object.entries(t))e.startsWith(`2`)&&i(Sr(n.content),0,[]);return r}function Sr(e){return e?.[`application/json`]?.schema??Object.values(e??{}).find(e=>e.schema!==void 0)?.schema}function Cr(e,t){let n=P(t);return{...n===void 0?void 0:e.components.schemas[n],...t}}function wr(e){if(e===`private`||typeof e==`object`&&(e.scope===`private`||e.value===`private`))return`private`}var Tr=`format`;function Er(e){return e===`write`||e===`delete`}function Dr(e){return Er(e)||e===`job`}function Or(e,t){return e===`DELETE`||t===`delete`}var kr=`Shell-safe input: single-quote string flag values that contain $; use --from-file or stdin for JSON bodies, multiline text, and free text with currency amounts.`;function Ar(e,t){let n=e===`array`?t:e;return n===void 0||n===`string`}function jr(e){let t=e.operation[`x-aventure-tool`];if(!Rr(e.path,e.operation,e.method===`GET`&&t?.auth===`none`,e.includeBinary===!0))return null;let n=Lr(e.operation.operationId),r=Jr(e.path,n),i=Ir(r,n,e.method),a=Nr(e.method,e.operation);if(a===null)return null;let o=t?.auth===`read`&&i===`write`?`lookup`:i,s=e.method===`GET`||a===`read`||a===`none`;return{resource:Yr(e.path),intent:o,cliPath:r,scope:s&&!Er(o)?`read`:`write`,auth:a,visibility:wr(e.operation[`x-aventure-visibility`]),mutates:t?.mutates===!0||void 0,selfCredential:Mr(e.operation)||void 0,stdinBody:e.operation.requestBody!==void 0&&tr(e.operation.requestBody.content)===`json`,destructive:Or(e.method,o)}}function Mr(e){let t=e.security??[];return t.length>0&&t.every(e=>Object.keys(e).every(e=>e===`clerkApiKeyAuth`))}function Nr(e,t){let n=t[`x-aventure-tool`]?.auth;if(n===`none`)return`none`;if(n===`read`)return`read`;if(e===`GET`&&(t.security?.length??0)===0)return`none`;let r=!1,i=!1,a=!1;for(let e of t.security??[]){let t=Object.keys(e);t.includes(`clientSecretAuth`)&&(r=!0),t.includes(`adminApiKeyAuth`)&&(a=!0),(t.includes(`bearerAuth`)||t.includes(`clerkApiKeyAuth`))&&(i=!0)}return e===`GET`&&r||r&&!a&&!i?`read`:a?`write`:i?`bearer`:e===`GET`?`read`:null}var Pr={add:`write`,answer:`search`,ask:`search`,attach:`write`,audit:`read`,batch:`lookup`,convert:`write`,create:`write`,delete:`delete`,enrich:`write`,filter:`search`,get:`read`,import:`write`,join:`write`,list:`read`,lookup:`lookup`,merge:`write`,preview:`lookup`,reconcile:`write`,remove:`delete`,replace:`write`,resolve:`lookup`,search:`search`,status:`read`,suggest:`read`,update:`write`,upload:`write`},Fr=`status`;function Ir(e,t,n){if(e.length===1&&e[0]===Fr)return`status`;let r=Object.hasOwn(Pr,t)?Pr[t]:void 0;return r===void 0?n===`GET`?`read`:n===`DELETE`?`delete`:`write`:r}function Lr(e){let t=/^[a-z]+/u.exec(e)?.[0];if(t===void 0)throw Error(`operationId '${e}' has no verb`);return t}function Rr(e,t,n,r){return zr(e)&&t.hidden!==!0&&(n||!Br.some(t=>t.test(e)))&&nr(t.requestBody?.content)&&(Wr(t.responses)||r&&Ur(t))}function zr(e){return e.startsWith(`/v1/`)||e.startsWith(`/v2/`)}var Br=[/^\/v1\/auth\/(?:session|login|ui|registrations|password-resets|cli-authorizations|linkedin)(?:\/|$)/u,/^\/v1\/addresses\/locations(?:\/|$)/u,/^\/v1\/(?:chat\/completions|embeddings)$/u,/^\/v1\/observability(?:\/|$)/u,/^\/v1\/media\/identicons(?:\/|$)/u],Vr=/(?:^|-)(?:runs|jobs|turns)$/u;function Hr(e,t){let{intent:n,method:r,mutates:i}=e;if(e.selfCredential===!0||e.deprecated===!0)return null;if(!Dr(n)&&i!==!0&&r!==`PUT`&&r!==`PATCH`)return`aventure_read`;if(t===`private`)return n===`delete`?`aventure_delete`:`aventure_write`;if(n===`job`||i===!0)return`aventure_job`;let a=Lr(e.operationId),o=a===`enrich`||a===`create`&&Vr.test(e.cliPath.at(-2)??``);return n===`write`&&o?`aventure_job`:null}function Ur(e){let t=Object.entries(e.responses).filter(([e])=>e.startsWith(`2`));return t.length>0&&t.every(([,e])=>{let t=Object.values(e.content??{});return t.length>0&&t.every(e=>qr(e.schema))})}function Wr(e){return Object.entries(e).filter(([e])=>e.startsWith(`2`)).every(([,e])=>Gr(e.content))}function Gr(e){if(e===void 0)return!0;let t=Object.entries(e);return t.length===0||t.some(([e,t])=>Kr(e)&&!qr(t.schema))}function Kr(e){return e===`*/*`||e===`application/json`||e.endsWith(`+json`)}function qr(e){return e?.format===`byte`||e?.format===`binary`}function Jr(e,t){let n=Qr(e).map($),r=n.length===1&&t===`get`&&!e.includes(`{`),i=n.some(e=>e.split(`-`).includes(t));return r||i?n:[...n,t]}function Yr(e){return $(Qr(e).at(0)??`system`)}function Xr({operationId:e,tool:t}){if(t===void 0)throw Error(`Operation ${e} is not in the MCP catalog.`);return t}function $(e){return e.replace(/([a-z0-9])([A-Z])/gu,`$1-$2`).replace(/[^A-Za-z0-9]+/gu,`-`).replace(/^-+|-+$/gu,``).toLowerCase()}var Zr=e=>`--${$(e)}`;function Qr(e){return $r(e).filter(e=>!ei(e)&&!ti(e))}function $r(e){return e.split(`/`).filter(e=>e.length>0)}function ei(e){return/^v\d+$/u.test(e)}function ti(e){return e.startsWith(`{`)&&e.endsWith(`}`)}export{Hn as A,Ge as B,Fn as C,Bn as D,Ln as E,Pn as F,_t as G,gt as H,jn as I,Be as J,mt as K,On as L,Un as M,vn as N,zn as O,Nn as P,Mn as R,Jn as S,Rn as T,pt as U,ht as V,Ke as W,X as _,Dr as a,Kn as b,Zr as c,Hr as d,$ as f,Qn as g,$n as h,Ur as i,Wn as j,Vn as k,Or as l,xr as m,Pr as n,Ar as o,jr as p,P as q,Tr as r,Xr as s,kr as t,Er as u,er as v,In as w,J as x,rr as y,j as z};
@@ -11,4 +11,4 @@ Environment:
11
11
  AVENTURE_MCP_PORT Select the HTTP listening port.
12
12
  AVENTURE_MCP_PATH Select the MCP route.
13
13
  AVENTURE_MCP_JSON_LIMIT Limit request body size.
14
- `).parseAsync()).opts(),[{describeError:o,logError:s,logInfo:c,shutdownLogging:l,useServerProcessLogging:u},{AUTH_SECRET_NAME:d},{metricsScrapeSecretFromEnvironment:f},{catalogOAuthDiscovery:p},{captureSentryException:m,initializeSentry:h,shutdownSentry:g},{HOSTED_REQUEST_DEADLINE_MS:_,startStreamableHttpServer:v}]=await Promise.all([import(`../chunks/logging-CA0C5Rb9.js`),import(`../chunks/env-Bt39zuRr.js`),import(`../chunks/private-telemetry-credential-DbamSREI.js`),import(`../chunks/oauth-discovery-C_eUnOtv.js`),import(`../chunks/sentry-Dx9TvWss.js`),import(`../chunks/streamable-http-ButheTA0.js`)]),y=_+5e3;u(),await h(),delete process.env[d.authToken];var b=E(),x=process.env.AVENTURE_MCP_PATH??`/mcp`,S=process.env.AVENTURE_MCP_JSON_LIMIT??`10mb`,C=f()||void 0,w=!1;function T(e){Promise.allSettled([l(),g()]).then(e=>{for(let t of e){if(t.status!==`rejected`)continue;let e=o(t.reason);process.stderr.write(`${i.bin[0]} telemetry shutdown failed: ${e}\n`)}}).catch(e=>{let t=o(e);process.stderr.write(`${i.bin[0]} telemetry shutdown failed: ${t}\n`)}).finally(()=>process.exit(e))}v({port:b,host:a,path:x,resolveOAuthDiscovery:p(),jsonBodyLimit:S,metricsScrapeSecret:C}).then(e=>{c({component:`aventure-mcp-server`,event:`server_listening`,fields:{port:b,path:x}}),process.stdout.write(`${i.bin[0]} listening at http://localhost:${b}${x}\n`);let t=t=>{if(w)return;w=!0,c({component:`aventure-mcp-server`,event:`server_shutdown_started`,fields:{signal:t}});let n=setTimeout(()=>{s({component:`aventure-mcp-server`,event:`server_shutdown_timeout`,message:`MCP server did not drain before the platform forced-shutdown window`,fields:{signal:t,forceExitMs:y}}),T(1)},y);n.unref(),e.close().then(()=>{clearTimeout(n),c({component:`aventure-mcp-server`,event:`server_shutdown_completed`,fields:{signal:t}}),T(0)}).catch(e=>{let r=o(e);clearTimeout(n),s({component:`aventure-mcp-server`,event:`server_shutdown_failed`,message:r,fields:{signal:t},error:e}),T(1)})};for(let e of[`SIGTERM`,`SIGINT`])process.on(e,t)},async e=>{let t=o(e);m(e,`server_start_failed`),s({component:`aventure-mcp-server`,event:`server_start_failed`,message:t,error:e}),process.stderr.write(`${i.bin[0]} failed to start: ${t}\n`),T(1)});function E(){let e=process.env.AVENTURE_MCP_PORT??process.env.PORT??`3333`,t=Number(e);if(!Number.isInteger(t)||t<1||t>r)throw Error(`Invalid MCP server port: ${e}`);return t}export{};
14
+ `).parseAsync()).opts(),[{describeError:o,logError:s,logInfo:c,shutdownLogging:l,useServerProcessLogging:u},{AUTH_SECRET_NAME:d},{metricsScrapeSecretFromEnvironment:f},{catalogOAuthDiscovery:p},{captureSentryException:m,initializeSentry:h,shutdownSentry:g},{HOSTED_REQUEST_DEADLINE_MS:_,startStreamableHttpServer:v}]=await Promise.all([import(`../chunks/logging-T2MwpHVy.js`),import(`../chunks/env-Bt39zuRr.js`),import(`../chunks/private-telemetry-credential-DbamSREI.js`),import(`../chunks/oauth-discovery-BYUTIHU4.js`),import(`../chunks/sentry-D889x_Fx.js`),import(`../chunks/streamable-http-D06kQMfQ.js`)]),y=_+5e3;u(),await h(),delete process.env[d.authToken];var b=E(),x=process.env.AVENTURE_MCP_PATH??`/mcp`,S=process.env.AVENTURE_MCP_JSON_LIMIT??`10mb`,C=f()||void 0,w=!1;function T(e){Promise.allSettled([l(),g()]).then(e=>{for(let t of e){if(t.status!==`rejected`)continue;let e=o(t.reason);process.stderr.write(`${i.bin[0]} telemetry shutdown failed: ${e}\n`)}}).catch(e=>{let t=o(e);process.stderr.write(`${i.bin[0]} telemetry shutdown failed: ${t}\n`)}).finally(()=>process.exit(e))}v({port:b,host:a,path:x,resolveOAuthDiscovery:p(),jsonBodyLimit:S,metricsScrapeSecret:C}).then(e=>{c({component:`aventure-mcp-server`,event:`server_listening`,fields:{port:b,path:x}}),process.stdout.write(`${i.bin[0]} listening at http://localhost:${b}${x}\n`);let t=t=>{if(w)return;w=!0,c({component:`aventure-mcp-server`,event:`server_shutdown_started`,fields:{signal:t}});let n=setTimeout(()=>{s({component:`aventure-mcp-server`,event:`server_shutdown_timeout`,message:`MCP server did not drain before the platform forced-shutdown window`,fields:{signal:t,forceExitMs:y}}),T(1)},y);n.unref(),e.close().then(()=>{clearTimeout(n),c({component:`aventure-mcp-server`,event:`server_shutdown_completed`,fields:{signal:t}}),T(0)}).catch(e=>{let r=o(e);clearTimeout(n),s({component:`aventure-mcp-server`,event:`server_shutdown_failed`,message:r,fields:{signal:t},error:e}),T(1)})};for(let e of[`SIGTERM`,`SIGINT`])process.on(e,t)},async e=>{let t=o(e);m(e,`server_start_failed`),s({component:`aventure-mcp-server`,event:`server_start_failed`,message:t,error:e}),process.stderr.write(`${i.bin[0]} failed to start: ${t}\n`),T(1)});function E(){let e=process.env.AVENTURE_MCP_PORT??process.env.PORT??`3333`,t=Number(e);if(!Number.isInteger(t)||t<1||t>r)throw Error(`Invalid MCP server port: ${e}`);return t}export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/mcp-server",
3
- "version": "0.8.430",
3
+ "version": "0.8.432",
4
4
  "mcpName": "io.github.aventurevc/aventure-mcp",
5
5
  "private": false,
6
6
  "description": "MCP server that gives AI assistants access to aVenture research data on companies, people, funding, and news.",
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "aventurePublicApi": {
31
31
  "repository": "aventurevc/aventure-docs",
32
- "commit": "d25852d9c18b414e5ead485625ecbad1bc79d39e",
32
+ "commit": "e35180c40b9da1b9b139959bb72f8c0597cf82dd",
33
33
  "openapiPath": "openapi/openapi.json",
34
- "openapiSha256": "7d2ac79096007d890b8cccb697121ac8fa6cec977ce13eaf8226b1154c72879c"
34
+ "openapiSha256": "e987323a73fe1e8d1740c5fc9a42da669b9ce2c8ffdf446104a64bce602f7985"
35
35
  },
36
36
  "scripts": {}
37
37
  }
@@ -1 +0,0 @@
1
- import{C as e,E as t,S as n,_ as r,c as i,d as a,f as ee,g as o,i as s,n as c,p as l,s as u,t as d}from"./iso-DzqMxtky.js";import{t as f}from"./person-owner-BW4xz8uH.js";import{a as p,i as te,o as ne,r as m,t as re}from"./run-Drbcnd2K.js";import{n as ie}from"./allowance-type-BVr12WiL.js";import{t as ae}from"./confidence-CjeYTBnf.js";var oe=s([`domicile`,`dominant`,`origin`]),se=r({endDate:d().nullish(),id:a(),isCurrent:i(),role:oe.nullish(),startDate:d().nullish()}),ce=r({id:a().nullish(),name:n()}),le=r({countryCodeChar2:n().nullish(),countryCodeChar3:n().nullish(),id:a().nullish(),name:n(),unRegion:n().nullish(),unSubregion:n().nullish()}),ue=r({id:a().nullish(),name:n(),stateAbbrev:n().nullish()}),h=r({address:a().nullish(),addressLine1:n().nullish(),addressLine2:n().nullish(),association:u(se).optional(),city:ce.nullish(),country:le.nullish(),countryAbbrev:n().nullish(),createdAt:c({offset:!0}).nullish(),fullAddress:n().nullish(),id:a().nullish(),isCurrent:i().nullish(),isHq:i().nullish(),isPrimary:i().nullish(),latitude:o().nullish(),longitude:o().nullish(),postalCode:n().nullish(),state:ue.nullish(),stateAbbrev:n().nullish(),street:n().nullish(),updatedAt:c({offset:!0}).nullish()}),de=s([`editorial`,`standardized`]),fe=Object.assign(e([de,n()]),{enum:de.enum}),pe=r({isCurrent:i().nullish(),isPrimary:i().nullish(),name:n().max(255),registry:fe}),g=ee(pe,r({bucket:n().nullish(),classificationId:a().nullish(),createdAt:c({offset:!0}).nullish(),id:a(),isCurrent:i().nullish(),isPrimary:i().nullish(),name:n().max(255),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),type:n(),updatedAt:c({offset:!0}).nullish()})),me=r({category:n(),classificationId:a().nullish(),code:a().nullish(),codeText:n().max(255).nullish(),createdAt:c({offset:!0}).nullish(),edition:n().max(128).nullish(),id:a(),isCurrent:i().nullish(),isPrimary:i().nullish(),level:a().nullish(),name:n().max(255),registry:fe,updatedAt:c({offset:!0}).nullish()}),he=r({geoLocationExposure:u(g).default([]).optional(),industry:u(g).default([]).optional(),mainProduct:u(g).default([]).optional(),standardizedClassification:u(me).default([]).optional(),tag:u(g).default([]).optional(),typeCustomer:u(g).default([]).optional(),typeModel:u(g).default([]).optional(),typeOwnership:u(g).default([]).optional(),typeRevenue:u(g).default([]).optional(),typeTechnologyUsed:u(g).default([]).optional()}),ge=s([`fundraiseRound`,`researchDetail`]),_e=s([`preMoney`,`postMoney`,`reported`]),ve=r({amount:n().regex(/^-?[0-9]+(\.[0-9]+)?$/),asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),basis:_e.nullish(),currency:n().nullish(),postMoneyUsd:n().regex(/^-?[0-9]+(\.[0-9]+)?$/).nullish(),referenceValue:n().nullish(),source:ge,sourceRef:n()}),ye=s([`UNKNOWN`,`NOT_APPLICABLE`,`RECORDED`]),_=s(`Angel.Pre-Seed.Seed.Series A.Series B.Series C.Series D.Series E.Series F.Series G.Series H.Series I.Series J.Series K.Series L.Series M.Series N.Series O.Series P.Series Q.Series R.Series S.Series T.Series U.Series V.Series W.Series X.Series Y.Series Z.Late Stage Private.Investment Firm.Fund.Nonprofit.Government.Public.Acquired.Acquired Subsidiary.Bankrupt`.split(`.`)),v=Object.assign(e([_,n()]),{enum:_.enum}),y=r({applicability:ye.nullish(),currency:n().nullish(),currentValuation:ve.nullish(),disclosedStage:n().nullish(),disclosedStageTransactionId:t().nullish(),fundingRoundCount:a(),investorCount:a(),latestValuation:o().nullish(),mostRecentAmount:o().nullish(),mostRecentDate:d().nullish(),stage:v.nullish(),totalRaised:o(),totalRaisedAmountRoundCount:a().nullish(),totalRaisedRoundCount:a().nullish(),totalRaisedUsd:o().nullish(),totalRaisedUsdRoundCount:a().nullish(),unconvertedRoundCount:a()}),be=r({expanded:n().nullish(),generatedDescription:n().nullish(),short:n().nullish()}),xe=s([`cloudflare`,`akamai`,`fastly`,`awsCloudfront`,`vercel`,`netlify`,`sucuri`,`incapsula`,`bunny`,`keycdn`,`cdn77`,`gcore`,`cdnetworks`,`azureCdn`,`leaseweb`,`digitalocean`,`stackpath`,`googlecloudCdn`,`none`,`unknown`]),Se=s([`static`,`jsRequired`,`jsEnhanced`]),Ce=n(),b=r({crawlCdnProvider:xe.nullish(),crawlRenderMode:Se.nullish(),createdAt:c({offset:!0}).nullish(),id:a().nullish(),isCurrent:i().nullish(),isPrimary:i().nullish(),owner:f.nullish(),sourceId:n().nullish(),status:n().nullish(),statusChecked:c({offset:!0}).nullish(),updatedAt:c({offset:!0}).nullish(),url:n(),urlType:Ce}),we=r({address:u(h),classification:he,fundingDetail:y.nullish(),headquartersAddressId:a().nullish(),headquartersRemoteAsOf:c({offset:!0}).nullish(),publicControllingParentId:t().nullish(),text:be,urlLink:u(b)}),x=r({lastFetchedAt:c({offset:!0}).nullish(),publishedAt:c({offset:!0}).nullish(),recordedAt:c({offset:!0}),sourceDetail:n()}),Te=s([`SAFE`,`Convertible Note`,`Preferred Stock`,`Common Stock`,`Other Equity`,`Bond`,`Loan`,`Other Debt`,`Grant`,`Token`]),Ee=r({amountInvested:o().nullish(),createdAt:c({offset:!0}),financialInstrumentType:Te.nullish(),id:t(),investor:f,investorName:n().nullish(),investorSlug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),leadInvestor:i(),publicSource:x.nullish(),transactionId:t(),updatedAt:c({offset:!0})}),S=r({acquirer:m.nullish(),core:m,fundingDetail:y.nullish()}),De=s([`High`,`Medium`,`Low`,`Verified`]),Oe=s([`direct`,`managedFund`]),C=r({round:n()}),w=r({amountInvested:o().nullish(),attributionType:Oe,beneficialEntityId:t().nullish(),fundManagerRelationshipId:a().nullish(),joinId:t(),leadInvestor:i(),recordedEntityId:t().nullish(),round:C.nullish(),transactionId:t()}),ke=s([`round`,`roundType`,`financialInstrumentType`,`investorCount`,`amountRaised`,`currency`,`dateAnnounced`,`dateFundingComplete`,`valuationPostMoney`,`valuationPreMoney`,`dateInvestorExit`,`status`]),T=r({amountRaised:o().int().nullish(),createdAt:c({offset:!0}).nullish(),currency:n().nullish(),dataConfidence:De.nullish(),dateAnnounced:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),dateFundingComplete:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),dateInvestorExit:c({offset:!0}).nullish(),entity:S.nullish(),financialInstrumentType:Te.nullish(),id:t(),investor:u(Ee).nullish(),investorAttribution:w.nullish(),investorCount:a().nullish(),publicSource:x.nullish(),rawInvestorCount:a().nullish(),rawRoundLabel:n().nullish(),round:n().nullish(),roundType:n().nullish(),sourceAttribution:u(w),unsupportedField:u(ke).optional(),updatedAt:c({offset:!0}).nullish(),valuationPostMoney:o().int().nullish(),valuationPreMoney:o().int().nullish()}),Ae=s([`Company`,`Private company`,`Public company`,`Public`,`Investment Firm`,`Fund`,`Nonprofit`,`Government`,`Business Line`,`Product`,`Service`,`Acquired Subsidiary`,`Acquired`,`Closed`,`Closed (Acquihire)`,`Inactive`]),je=Object.assign(e([Ae,n()]),{enum:Ae.enum}),E=r({headline:je,isAcquired:i().nullish(),isClosed:i().nullish(),isTerminal:i().nullish()}),D=r({entity:m,headquarters:h.nullish(),relationshipType:s([`fundManagerFirm`,`productService`])}),Me=r({acquirer:m.nullish(),disclosedStage:n().nullish(),fundingStage:v.nullish(),ownership:u(n()),pricingModel:u(n()),profileStatus:E.optional(),sellsTo:u(n()),totalRaised:o().nullish(),website:n().nullish()}),O=r({asOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),comparisonSignals:Me.nullish(),createdAt:c({offset:!0}).nullish(),detail:n().nullish(),entity:m,id:a().nullish(),isCurrent:i().nullish(),isPrimary:i().nullish(),profileStatus:E.nullish(),publicSource:x.nullish(),get relationship(){return u(O)},relationshipType:n(),sourceEntityId:t().nullish(),targetEntityId:t().nullish(),updatedAt:c({offset:!0}).nullish()}),k=O,A=r({accelerator:m,acceleratorName:n(),asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/),batch:n().nullish(),id:n(),program:n().nullish(),status:n().nullish()}),Ne=r({currency:n().nullable(),entityId:t(),functionalCurrency:n().nullable(),id:a(),period:n().max(6),revenue:n().nullable(),year:a()}),j=s([`text`,`numeric`,`monetary`,`percentage`,`date`]),Pe=s([`pastDue`,`withinThreeMonths`,`threeToSixMonths`,`sixToTwelveMonths`,`twelveToTwentyFourMonths`,`beyondTwoYears`]),Fe=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/),bucket:Pe,monthsFromNow:a(),targetDate:c({offset:!0})}),M=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),currentEligible:i().nullish(),decimalValue:n().nullish(),derivedRange:Fe.nullish(),discreteValue:o().nullish(),entityId:t(),id:a(),measurementBasis:n().nullish(),publicSource:x.nullish(),reportingScope:n().nullish(),textValue:n().nullish(),typeResearchDetail:n(),updatedAt:c({offset:!0}).nullish(),valueResearchDetail:n().nullish(),valueType:j}),N=r({characterCount:a(),meetsRequirements:i(),violation:u(n()),wordCount:a()}),P=r({compliance:N.nullish(),entityId:t(),id:a(),publicSource:x.nullish(),text:n(),textType:n(),updatedAt:c({offset:!0}).nullish()}),Ie=r({acceleratorParticipation:u(A),detail:u(M),financial:u(Ne).nullish(),snippet:u(P)}),F=s([`auto-match`,`needs-review`,`approved`,`rejected`]),I=r({createdAt:c({offset:!0}),entityId:t(),href:n().nullish(),internal:i(),matchStatus:F.nullish(),mention:n().nullish(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),typeRecord:ie.nullish(),updatedAt:c({offset:!0})}),Le=r({createdAt:c({offset:!0}),href:n().nullish(),matchStatus:F.nullish(),mention:n().nullish(),personId:t(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),updatedAt:c({offset:!0})}),Re=r({end:a().min(1),entity:I.nullish(),person:Le.nullish(),start:a().min(0)}),L=r({author:n().nullish(),category:n().nullish(),createdAt:c({offset:!0}).nullish(),excerpt:n().nullish(),externalNewsArticle:i().nullish(),id:a(),newsImageThumbnail:n().nullish(),newsUrlOriginal:n().nullish(),publication:n().nullish(),publishedAt:c({offset:!0}).nullish(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),title:n(),titleMention:u(Re).optional(),updatedAt:c({offset:!0}).nullish()}),ze=s([`aventureBlog`,`personalBlog`,`employerBlog`,`linkedin`,`xTwitter`,`medium`,`substack`,`other`]),R=r({author:n().nullish(),createdAt:c({offset:!0}),externalId:n().nullish(),id:t(),isCurrent:i(),lastFetchedAt:c({offset:!0}).nullish(),mentionedEntityId:u(t()),mentionedPersonId:u(t()),owner:f,publishedAt:c({offset:!0}).nullish(),summary:n().nullish(),summaryGeneratedAt:c({offset:!0}).nullish(),title:n().nullish(),topic:n().nullish(),type:ze,updatedAt:c({offset:!0}),url:n()}),z=s([`OPERATING`,`ACQUIRED`,`CLOSED`,`PUBLIC`,`UNKNOWN`]),Be=Object.assign(e([z,n()]),{enum:z.enum}),B=s([`low`,`medium`,`high`]),Ve=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),currentEligible:i().nullish(),dataConfidence:B.nullish(),dateValue:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),decimalValue:n().nullish(),measurementBasis:n().nullish(),numericValue:o().nullish(),referenceValue:n().nullish(),reportingScope:n().nullish(),source:n().nullish(),textValue:n().nullish(),updatedAt:c({offset:!0}).nullish(),valueType:j}),V=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),fact:Ve,id:n()}),He=r({fundraiseInvestorJoin:i(),fundraiseTransaction:i(),operatingStatus:i(),relationship:i()}),Ue=s([`Acquisition`,`Acquired`,`Acquired Subsidiary`]),We=s([`Announced`,`Announced; subject to approvals and closing conditions`,`Active`,`Closed`,`Completed`,`In Progress`,`Open`]),Ge=r({acquiredEntity:m,acquirerEntity:m,amount:o().int().nullish(),announcedAt:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),asOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),completedAt:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),createdAt:c({offset:!0}).nullish(),currency:n().nullish(),dataConfidence:De.nullish(),evidence:He,fundraiseTransactionId:t().nullish(),investorJoinId:t().nullish(),isCurrent:i().nullish(),publicSource:x.nullish(),relationshipId:a(),status:Ue,transactionStatus:We.nullish(),updatedAt:c({offset:!0}).nullish()}),Ke=r({entity:l(()=>$),investorAttribution:u(w),round:u(C),roundCount:a()}),H=s([`entity`,`person`,`newsArticle`,`blogPost`,`text`,`classificationTag`,`classificationCode`,`product`,`service`,`agentHelpDoc`,`researchSnippet`,`sourceDocument`]),qe=Object.assign(e([H,n()]),{enum:H.enum}),U=r({computedAt:c({offset:!0}),cosineDistance:o(),cosineScore:o(),modelVersion:n(),rank:a(),sourceHash:n(),sourceId:n(),sourceType:qe}),Je=r({acceleratorParticipation:u(A),detail:u(M)}),W=r({acquirer:m.nullish(),core:m,coveringRunId:t().nullish(),enrichment:we,fundraiseRound:u(T),profileStatus:E.optional(),provider:D.nullish(),research:Je,semanticMatch:U.nullish()}),G=r({isMonogram:i(),picture:n().nullish(),pictureVariant:u(ne).nullish()}),K=r({associationId:a(),endDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),entityAddress:u(h),entityId:t(),entityIsPublic:i().nullish(),entityLogo:p,entityName:n().nullish(),entityOperatingStatus:n().nullish(),entitySlug:n().regex(/^[a-z0-9_-]+$/).max(255),entityType:ie.nullish(),entityUrlLink:u(b),isCurrent:i().nullish(),personAddress:u(h),personId:t(),personImage:G,personName:n(),personSlug:n().regex(/^[a-z0-9_-]+$/).max(255),personUrlLink:u(b),score:a().nullish(),startDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),titleFunction:n().nullish(),titleId:a().nullish(),titleLevel:n().nullish(),titleName:n().nullish()}),Ye=s([`curated`,`semantic`,`precomputed`,`derived`,`computed`]),Xe=r({compositeScore:o().nullish(),cosineScore:o().nullish(),curatedAsOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),curatedRelationshipType:n().nullish(),curatedSource:n().nullish(),derivedFromEntityId:t().nullish(),matchedSectionWeight:o().nullish(),origin:Ye,rank:a(),sharedSectionCount:a().nullish()}),Ze=r({entity:W,similarity:Xe}),Qe=r({core:m,fundingDetail:y.nullish(),similarity:Xe,urlLink:u(b)}),$e=r({compliance:N.nullish(),createdAt:c({offset:!0}).nullish(),get expandedText(){return $e.nullish()},expandedTextId:a().nullish(),id:a(),isCurrent:i().nullish(),isPrimary:i().nullish(),language:n().nullish(),owner:f,text:n(),textName:n().nullish(),textType:n(),updatedAt:c({offset:!0}).nullish()}),et=$e,tt=s([`stored`,`derivedFromPreAndRaised`,`derivedFromPostMinusRaised`,`reportedAssumedPost`]),nt=r({amountRaised:o().int().nullish(),asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/),confidence:B,currency:n(),decimalValue:n().nullish(),declaredBasis:_e,derivation:tt,detailId:a().nullish(),label:n().nullish(),measurementBasis:n().nullish(),reportingScope:n().nullish(),source:ge,sourceRef:n(),valuationPostMoney:o().int().nullish(),valuationPreMoney:o().int().nullish()}),rt=r({createdAt:c({offset:!0}).nullish(),description:n().nullish(),forkCount:a(),githubId:o().int(),homepageUrl:n().nullish(),id:o().int(),isArchived:i(),isFork:i(),language:n().nullish(),license:n().nullish(),name:n(),ownerLogin:n(),repoCreatedAt:c({offset:!0}).nullish(),repoPushedAt:c({offset:!0}).nullish(),stargazerCount:a(),topic:u(n()),updatedAt:c({offset:!0}).nullish(),url:n()}),it=r({entity:m,funding:y}),at=r({industry:g,recipientCount:a()}),q=r({empty:i().optional(),sorted:i().optional(),unsorted:i().optional()}),J=r({offset:o().int().optional(),paged:i().optional(),pageNumber:a().optional(),pageSize:a().optional(),sort:q.optional(),unpaged:i().optional()}),ot=r({amountRaised:o().nullish(),dateAnnounced:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),id:t(),image:p,investorCount:a().nullish(),nameBrand:n(),round:n().nullish(),status:n().nullish(),valuationPostMoney:o().nullish()}),st=r({entity:m,headquartersCity:n().nullish(),headquartersCountry:n().nullish(),headquartersRegion:n().nullish(),industry:n().nullish()}),ct=r({amount:o().nullish(),company:st,date:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),fundraiseTransaction:ot.nullish(),fundraiseTransactionId:t(),id:n(),investmentDate:c({offset:!0}),investorAttribution:w.nullish(),round:n().nullish()}),lt=r({investorAttribution:u(w),person:l(()=>Q),round:u(C),roundCount:a()}),ut=s([`maidenName`,`formerName`,`stageName`]),dt=r({displayable:i().nullish(),name:n(),type:ut.nullish()}),Y=r({createdAt:c({offset:!0}).nullish(),gender:n().nullish(),id:t(),image:G,lastModifiedAt:c({offset:!0}).nullish(),nameAlias:u(dt),nameDisplay:n(),nameFirst:n().nullish(),nameFull:n(),nameLast:n().nullish(),nameMiddle:n().nullish(),nickname:n().nullish(),publicId:n().regex(/^p[0-9A-Za-z]{12}$/).nullish(),semanticMatch:U.nullish(),slug:n().regex(/^[a-z0-9_-]+$/).max(255),suffix:n().nullish(),text:be,updatedAt:c({offset:!0}).nullish(),urlLink:u(b).nullish()}),ft=s([`precomputed`,`live`]),pt=r({compositeScore:o().nullish(),cosineScore:o().nullish(),matchedSectionWeight:o().nullish(),origin:ft,rank:a(),sharedSectionCount:a().nullish()}),mt=r({currentRole:K.nullish(),person:Y,similarity:pt}),ht=s([`by`,`about`]),gt=s([`newsArticle`,`blogPost`,`externalSocialPost`,`repositoryOwner`,`repository`,`webSite`,`webPage`,`researchPaper`]),_t=r({canonicalUrl:n().nullish(),contentId:n(),contentType:gt,createdAt:c({offset:!0}).nullish(),publishedAt:c({offset:!0}).nullish(),relation:ht.nullish(),screenshotUrl:n().nullish(),sourceDomain:n().nullish(),sourceName:n().nullish(),summary:n().nullish(),title:n(),topic:n().nullish(),updatedAt:c({offset:!0}).nullish(),url:n().nullish(),year:a().nullish()}),vt=s([`listed`,`suspended`,`delisted`]),yt=Object.assign(e([vt,n()]),{enum:vt.enum}),bt=s(`ein.secCik.israelCompanyNumber.ukCompanyNumber.irelandCompanyNumber.japanCryptoAssetExchangeRegistration.ukraineEdrpou.australiaAbn.franceSiren.belgiumEnterpriseNumber.chinaUnifiedSocialCreditCode.indiaCin.brazilCnpj.koreaBusinessRegistrationNumber.swissUid.vietnamTaxCode.ticker.lei.duns.isin.cusip.crd.firmCrd.secPrivateFundId.npi.usptoPractitioner.nyAttorneyRegistration.ipedsUnitId.ncesSchoolId.ncesLeaId.ncesPssId.orcid.fdicCert.ncuaCharter.rssd.holdingCompanyRssd.naicCompanyCode.samUei.federalAgencyCode.signalNfxFirm.signalNfxPerson.signalNfxCompany.folk`.split(`.`)),xt=Object.assign(e([bt,n()]),{enum:bt.enum}),X=r({createdAt:c({offset:!0}),effectiveFrom:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),effectiveTo:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),id:a(),identifier:n(),idType:xt,listingStanding:yt.nullish(),owner:f,shareClass:n().nullish(),source:n().nullish(),standingAsOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),updatedAt:c({offset:!0}),venue:n().nullish()});r({content:u(R).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(e([g,me])).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(V).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(m).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Ge).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>$)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Ee).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(T).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>Ke)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(W).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(K).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(k).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(M).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(P).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Ze).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Qe).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(et).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(b).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(nt).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(rt).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(re).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()});var St=r({content:u(it).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),Ct=r({content:u(at).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()});r({content:u(L).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Y).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>Q)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(ct).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>lt)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(mt).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(_t).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()});var wt=r({content:u(W),number:a(),size:a(),totalElements:o().int(),totalPages:a()}),Tt=r({content:u(L),number:a(),size:a(),totalElements:o().int(),totalPages:a()}),Et=r({content:u(Y),number:a(),size:a(),totalElements:o().int(),totalPages:a()});r({content:u(X).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:J.optional(),size:a().optional(),sort:q.optional(),totalElements:o().int().optional(),totalPages:a().optional()});var Dt=r({ambiguousSectorCount:a(),classifiedRecipientCount:a(),observedAt:c({offset:!0}),outcome:Be,rankableRecipientCount:a(),recipient:l(()=>St),recipientCount:a(),sector:l(()=>Ct),unknownSectorCount:a()}),Ot=r({count:a(),stage:n()}),kt=r({acquiredRecipientCount:a().nullish(),attributedInvestmentCount:a(),averageAmountInvestedUsd:o().nullish(),closedRecipientCount:a().nullish(),currentPortfolioCount:a(),largestAmountInvestedUsd:o().nullish(),operatingRecipientCount:a().nullish(),portfolio:l(()=>Dt).nullish(),portfolioCompanyCount:a(),publicRecipientCount:a().nullish(),smallestAmountInvestedUsd:o().nullish(),topInvestmentStage:u(Ot),totalAmountInvestedUsd:o().nullish(),totalInvestment:a(),totalPortfolioExit:a(),totalWriteOff:a()}),At=r({address:u(h),urlLink:u(b)}),Z=r({isCurrent:i().nullish(),personId:t(),personImage:G,personName:n(),personSlug:n().regex(/^[a-z0-9_-]+$/).max(255),titleName:n().nullish()}),jt=r({entity:S,keyPerson:u(Z)}),Mt=r({colleague:u(Z),employeeCount:V.nullish(),entity:S,primaryAddress:h.nullish(),recentNews:u(L),similarEntity:u(jt)}),Nt=r({overlapCount:a(),person:Z,round:n().nullish(),sharedEntity:m.nullish(),transactionId:t().nullish()}),Pt=r({careerContext:u(Mt),coInvestor:u(Nt),computedAt:c({offset:!0}).nullish()}),Q=r({articleCount:a().nullish(),association:u(K),blogPost:u(R).nullish(),core:Y,coveringRunId:t().nullish(),enrichment:At,graph:Pt.nullish(),investment:u(ct),investorActivity:l(()=>kt).nullish(),nameAlias:u(dt),similar:u(mt).nullish()}),Ft=s([`entityRecord`,`researchSnippet`,`newsArticle`,`personRecord`,`fundraiseTransaction`,`webProfile`]),It=Object.assign(e([Ft,n()]),{enum:Ft.enum}),Lt=r({entityId:t(),source:It,sourceId:n()}),Rt=r({title:n(),url:n()}),zt=r({citation:u(Lt),text:n(),topic:n().nullish(),webSource:u(Rt).optional()}),Bt=r({citation:u(Lt),confidence:ae,description:n().nullish(),heading:n().nullish(),paragraph:u(zt),relatedQuery:u(n()),shareable:i(),text:n(),title:n().nullish()}),$=r({acquirer:m.nullish(),comparisonAnswer:Bt.nullish(),core:m,coveringRunId:t().nullish(),enrichment:we,fundraiseRound:u(T),newsArticle:u(L),person:u(l(()=>Q)),profileStatus:E.optional(),provider:D.nullish(),publicUrl:n().nullish(),relationship:u(k),research:Ie,sitemap:te,uniqueId:u(X)});export{wt as a,Ze as c,I as d,T as f,Q as i,W as l,Bt as n,Tt as o,Ce as p,It as r,Et as s,$ as t,U as u};
@@ -1 +0,0 @@
1
- import{n as e,r as t}from"./rolldown-runtime-B09viugM.js";import{a as n,l as r}from"./runtime-identity-Bbg6Ewkk.js";import{a as i}from"./package-DEeHDoOT.js";import{r as a,t as o}from"./private-telemetry-credential-FZxTymON.js";import{u as s}from"./env-pZq4Dk3Y.js";import{F as c,N as ee,O as l,b as te,d as u,i as d,j as f,l as p,n as m,o as ne,w as re}from"./esm-lPyPa01D.js";import ie,{argv as ae,env as h,stderr as oe}from"node:process";import{hostname as se}from"node:os";import{inspect as ce}from"util";import*as le from"zlib";import{Readable as ue}from"stream";import*as de from"fs";import*as fe from"path";var pe=class{_delegate;constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}setMetrics(e){this._delegate.setMetrics(e)}};m();var g=class extends Error{code;name=`OTLPExporterError`;data;constructor(e,t,n){super(e),this.data=n,this.code=t}};function me(e){if(Number.isFinite(e)&&e>0)return e;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function he(e){if(e!=null)return async()=>e}function ge(e,t,n){return{timeoutMillis:me(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function _e(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:`none`}}var ve=class{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw Error(`Concurrency Limit reached`);this._sendingPromises.push(e);let t=()=>{let t=this._sendingPromises.indexOf(e);this._sendingPromises.splice(t,1)};e.then(t,t)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}};function ye(e){return new ve(e.concurrencyLimit)}function _(e){return e.setValue(y,!0)}function be(e){return e.deleteValue(y)}function v(e){return e.getValue(y)===!0}var y,b=e((()=>{y=f(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`)})),xe,Se,Ce=e((()=>{xe=`baggage`,Se=4096}));function we(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:`,`}${t}`;return n.length>8192?e:n},``)}function Te(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=`;`+t.metadata.toString()),n})}function Ee(e){if(!e)return;let t=e.indexOf(`;`),n=t===-1?e:e.substring(0,t),r=n.indexOf(`=`);if(r<=0)return;let i=n.substring(0,r).trim(),a=n.substring(r+1).trim();if(!i||!a)return;let o,s;try{o=decodeURIComponent(i),s=decodeURIComponent(a)}catch{return}let c;if(t!==-1&&t<e.length-1){let n=e.substring(t+1);c=ee(n)}return{key:o,value:s,metadata:c}}function De(e,t,n,r){let i=0;for(;i<e.length&&n<180;){let a=e.indexOf(`,`,i),o=a===-1?e.length:a,s=o-i;if(s<=4096){let a=Ee(e.substring(i,o));if(a){let e=(n===0?0:1)+s;if(r+e>8192)break;t[a.key]=a.metadata?{value:a.value,metadata:a.metadata}:{value:a.value},n++,r+=e}}if(a===-1)break;i=a+1}return[n,r]}function x(e){let t={};return typeof e==`string`&&e.length>0&&e.split(`,`).forEach(e=>{let n=Ee(e);n!==void 0&&n.value.length>0&&(t[n.key]=n.value)}),t}var Oe=e((()=>{m(),Ce()})),ke,Ae=e((()=>{m(),b(),Ce(),Oe(),ke=class{inject(e,t,n){let r=ne.getBaggage(e);if(!r||v(e))return;let i=we(Te(r).filter(e=>e.length<=Se).slice(0,180));i.length>0&&n.set(t,xe,i)}extract(e,t,n){let r=n.get(t,xe);if(!r)return e;let i={},a=0,o=0;if(Array.isArray(r))for(let e=0;e<r.length;e++)[a,o]=De(r[e],i,a,o);else[a]=De(r,i,a,o);return a===0?e:ne.setBaggage(e,ne.createBaggage(i))}fields(){return[xe]}}})),je,Me=e((()=>{je=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}}}));function Ne(e){let t={};if(typeof e!=`object`||!e)return t;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(!Pe(n)){p.warn(`Invalid attribute key: ${n}`);continue}let r=e[n];Fe(r)?t[n]=Array.isArray(r)?r.slice():r:p.warn(`Invalid attribute value set for key: ${n}`)}return t}function Pe(e){return typeof e==`string`&&e!==``}function Fe(e){return e==null?!0:Array.isArray(e)?Ie(e):Le(typeof e)}function Ie(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if(Le(e)){t=e;continue}return!1}return!1}}return!0}function Le(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}var Re=e((()=>{m()}));function ze(){return e=>{p.error(Be(e))}}function Be(e){return typeof e==`string`?e:JSON.stringify(Ve(e))}function Ve(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}var He=e((()=>{m()}));function Ue(e){We=e}function S(e){try{We(e)}catch{}}var We,Ge=e((()=>{He(),We=ze()}));function Ke(e){let t=process.env[e];if(t==null||t.trim()===``)return;let n=Number(t);if(isNaN(n))p.warn(`Unknown value ${ce(t)} for ${e}, expected a number, using defaults`);else return n}function C(e){let t=process.env[e];if(t!=null&&t.trim()!==``)return t}function qe(e){let t=process.env[e]?.trim().toLowerCase();return t==null||t===``?!1:t===`true`||(t===`false`||p.warn(`Unknown value ${ce(t)} for ${e}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}function Je(e){return C(e)?.split(`,`).map(e=>e.trim()).filter(e=>e!==``)}var Ye=e((()=>{m()})),Xe,Ze=e((()=>{Xe=globalThis})),Qe,$e=e((()=>{Qe=`2.11.0`}));function w(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];n&&(t[String(n).toUpperCase().replace(/[-.]/g,`_`)]=n)}return t}var et=e((()=>{})),tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu,hu,gu=e((()=>{et(),tt=`aws.lambda.invoked_arn`,nt=`db.system`,rt=`db.connection_string`,it=`db.user`,at=`db.jdbc.driver_classname`,ot=`db.name`,st=`db.statement`,ct=`db.operation`,lt=`db.mssql.instance_name`,ut=`db.cassandra.keyspace`,dt=`db.cassandra.page_size`,ft=`db.cassandra.consistency_level`,pt=`db.cassandra.table`,mt=`db.cassandra.idempotence`,ht=`db.cassandra.speculative_execution_count`,gt=`db.cassandra.coordinator.id`,_t=`db.cassandra.coordinator.dc`,vt=`db.hbase.namespace`,yt=`db.redis.database_index`,bt=`db.mongodb.collection`,xt=`db.sql.table`,St=`exception.type`,Ct=`exception.message`,wt=`exception.stacktrace`,Tt=`exception.escaped`,Et=`faas.trigger`,Dt=`faas.execution`,Ot=`faas.document.collection`,kt=`faas.document.operation`,At=`faas.document.time`,jt=`faas.document.name`,Mt=`faas.time`,Nt=`faas.cron`,Pt=`faas.coldstart`,Ft=`faas.invoked_name`,It=`faas.invoked_provider`,Lt=`faas.invoked_region`,Rt=`net.transport`,zt=`net.peer.ip`,Bt=`net.peer.port`,Vt=`net.peer.name`,Ht=`net.host.ip`,Ut=`net.host.port`,Wt=`net.host.name`,Gt=`net.host.connection.type`,Kt=`net.host.connection.subtype`,qt=`net.host.carrier.name`,Jt=`net.host.carrier.mcc`,Yt=`net.host.carrier.mnc`,Xt=`net.host.carrier.icc`,Zt=`peer.service`,Qt=`enduser.id`,$t=`enduser.role`,en=`enduser.scope`,tn=`thread.id`,nn=`thread.name`,rn=`code.function`,an=`code.namespace`,on=`code.filepath`,sn=`code.lineno`,cn=`http.method`,ln=`http.url`,un=`http.target`,dn=`http.host`,fn=`http.scheme`,pn=`http.status_code`,mn=`http.flavor`,hn=`http.user_agent`,gn=`http.request_content_length`,_n=`http.request_content_length_uncompressed`,vn=`http.response_content_length`,yn=`http.response_content_length_uncompressed`,bn=`http.server_name`,xn=`http.route`,Sn=`http.client_ip`,Cn=`aws.dynamodb.table_names`,wn=`aws.dynamodb.consumed_capacity`,Tn=`aws.dynamodb.item_collection_metrics`,En=`aws.dynamodb.provisioned_read_capacity`,Dn=`aws.dynamodb.provisioned_write_capacity`,On=`aws.dynamodb.consistent_read`,kn=`aws.dynamodb.projection`,An=`aws.dynamodb.limit`,jn=`aws.dynamodb.attributes_to_get`,Mn=`aws.dynamodb.index_name`,Nn=`aws.dynamodb.select`,Pn=`aws.dynamodb.global_secondary_indexes`,Fn=`aws.dynamodb.local_secondary_indexes`,In=`aws.dynamodb.exclusive_start_table`,Ln=`aws.dynamodb.table_count`,Rn=`aws.dynamodb.scan_forward`,zn=`aws.dynamodb.segment`,Bn=`aws.dynamodb.total_segments`,Vn=`aws.dynamodb.count`,Hn=`aws.dynamodb.scanned_count`,Un=`aws.dynamodb.attribute_definitions`,Wn=`aws.dynamodb.global_secondary_index_updates`,Gn=`messaging.system`,Kn=`messaging.destination`,qn=`messaging.destination_kind`,Jn=`messaging.temp_destination`,Yn=`messaging.protocol`,Xn=`messaging.protocol_version`,Zn=`messaging.url`,Qn=`messaging.message_id`,$n=`messaging.conversation_id`,er=`messaging.message_payload_size_bytes`,tr=`messaging.message_payload_compressed_size_bytes`,nr=`messaging.operation`,rr=`messaging.consumer_id`,ir=`messaging.rabbitmq.routing_key`,ar=`messaging.kafka.message_key`,or=`messaging.kafka.consumer_group`,sr=`messaging.kafka.client_id`,cr=`messaging.kafka.partition`,lr=`messaging.kafka.tombstone`,ur=`rpc.system`,dr=`rpc.service`,fr=`rpc.method`,pr=`rpc.grpc.status_code`,mr=`rpc.jsonrpc.version`,hr=`rpc.jsonrpc.request_id`,gr=`rpc.jsonrpc.error_code`,_r=`rpc.jsonrpc.error_message`,vr=`message.type`,yr=`message.id`,br=`message.compressed_size`,xr=`message.uncompressed_size`,Sr=tt,Cr=nt,wr=rt,Tr=it,Er=at,Dr=ot,Or=st,kr=ct,Ar=lt,jr=ut,Mr=dt,Nr=ft,Pr=pt,Fr=mt,Ir=ht,Lr=gt,Rr=_t,zr=vt,Br=yt,Vr=bt,Hr=xt,Ur=St,Wr=Ct,Gr=wt,Kr=Tt,qr=Et,Jr=Dt,Yr=Ot,Xr=kt,Zr=At,Qr=jt,$r=Mt,ei=Nt,ti=Pt,ni=Ft,ri=It,ii=Lt,ai=Rt,oi=zt,si=Bt,ci=Vt,li=Ht,ui=Ut,di=Wt,fi=Gt,pi=Kt,mi=qt,hi=Jt,gi=Yt,_i=Xt,vi=Zt,yi=Qt,bi=$t,xi=en,Si=tn,Ci=nn,wi=rn,Ti=an,Ei=on,Di=sn,Oi=cn,ki=ln,Ai=un,ji=dn,Mi=fn,Ni=pn,Pi=mn,Fi=hn,Ii=gn,Li=_n,Ri=vn,zi=yn,Bi=bn,Vi=xn,Hi=Sn,Ui=Cn,Wi=wn,Gi=Tn,Ki=En,qi=Dn,Ji=On,Yi=kn,Xi=An,Zi=jn,Qi=Mn,$i=Nn,ea=Pn,ta=Fn,na=In,ra=Ln,ia=Rn,aa=zn,oa=Bn,sa=Vn,ca=Hn,la=Un,ua=Wn,da=Gn,fa=Kn,pa=qn,ma=Jn,ha=Yn,ga=Xn,_a=Zn,va=Qn,ya=$n,ba=er,xa=tr,Sa=nr,Ca=rr,wa=ir,Ta=ar,Ea=or,Da=sr,Oa=cr,ka=lr,Aa=ur,ja=dr,Ma=fr,Na=pr,Pa=mr,Fa=hr,Ia=gr,La=_r,Ra=vr,za=yr,Ba=br,Va=xr,Ha=w([tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr]),Ua=`other_sql`,Wa=`mssql`,Ga=`mysql`,Ka=`oracle`,qa=`db2`,Ja=`postgresql`,Ya=`redshift`,Xa=`hive`,Za=`cloudscape`,Qa=`hsqldb`,$a=`progress`,eo=`maxdb`,to=`hanadb`,no=`ingres`,ro=`firstsql`,io=`edb`,ao=`cache`,oo=`adabas`,so=`firebird`,co=`derby`,lo=`filemaker`,uo=`informix`,fo=`instantdb`,po=`interbase`,mo=`mariadb`,ho=`netezza`,go=`pervasive`,_o=`pointbase`,vo=`sqlite`,yo=`sybase`,bo=`teradata`,xo=`vertica`,So=`h2`,Co=`coldfusion`,wo=`cassandra`,To=`hbase`,Eo=`mongodb`,Do=`redis`,Oo=`couchbase`,ko=`couchdb`,Ao=`cosmosdb`,jo=`dynamodb`,Mo=`neo4j`,No=`geode`,Po=`elasticsearch`,Fo=`memcached`,Io=`cockroachdb`,Lo=Ua,Ro=Wa,zo=Ga,Bo=Ka,Vo=Ja,Ho=Ya,Uo=Xa,Wo=Za,Go=Qa,Ko=$a,qo=eo,Jo=to,Yo=no,Xo=ro,Zo=ao,Qo=oo,$o=so,es=co,ts=lo,ns=uo,rs=fo,is=po,as=mo,os=ho,ss=go,cs=_o,ls=vo,us=yo,ds=bo,fs=xo,ps=Co,ms=wo,hs=To,gs=Eo,_s=Do,vs=Oo,ys=ko,bs=Ao,xs=jo,Ss=Mo,Cs=No,ws=Po,Ts=Fo,Es=Io,Ds=w([Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io]),Os=`all`,ks=`each_quorum`,As=`quorum`,js=`local_quorum`,Ms=`one`,Ns=`two`,Ps=`three`,Fs=`local_one`,Is=`any`,Ls=`serial`,Rs=`local_serial`,zs=ks,Bs=As,Vs=js,Hs=Ps,Us=Fs,Ws=Ls,Gs=Rs,Ks=w([Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs]),qs=`datasource`,Js=`http`,Ys=`pubsub`,Xs=`timer`,Zs=`other`,Qs=qs,$s=Js,ec=Ys,tc=Xs,nc=Zs,rc=w([qs,Js,Ys,Xs,Zs]),ic=`insert`,ac=`edit`,oc=`delete`,sc=ic,cc=ac,lc=oc,uc=w([ic,ac,oc]),dc=`alibaba_cloud`,fc=`aws`,pc=`azure`,mc=`gcp`,hc=dc,gc=pc,_c=w([dc,fc,pc,mc]),vc=`ip_tcp`,yc=`ip_udp`,bc=`ip`,xc=`unix`,Sc=`pipe`,Cc=`inproc`,wc=`other`,Tc=vc,Ec=yc,Dc=xc,Oc=Sc,kc=Cc,Ac=wc,jc=w([vc,yc,bc,xc,Sc,Cc,wc]),Mc=`wifi`,Nc=`wired`,Pc=`cell`,Fc=`unavailable`,Ic=`unknown`,Lc=Mc,Rc=Nc,zc=Pc,Bc=Fc,Vc=Ic,Hc=w([Mc,Nc,Pc,Fc,Ic]),Uc=`gprs`,Wc=`edge`,Gc=`umts`,Kc=`cdma`,qc=`evdo_0`,Jc=`evdo_a`,Yc=`cdma2000_1xrtt`,Xc=`hsdpa`,Zc=`hsupa`,Qc=`hspa`,$c=`iden`,el=`evdo_b`,tl=`lte`,nl=`ehrpd`,rl=`hspap`,il=`gsm`,al=`td_scdma`,ol=`iwlan`,sl=`nr`,cl=`nrnsa`,ll=`lte_ca`,ul=Uc,dl=Wc,fl=Gc,pl=Kc,ml=qc,hl=Jc,gl=Yc,_l=Xc,vl=Zc,yl=Qc,bl=$c,xl=el,Sl=nl,Cl=rl,wl=al,Tl=ol,El=cl,Dl=ll,Ol=w([Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll]),kl=`1.0`,Al=`1.1`,jl=`2.0`,Ml=`SPDY`,Nl=`QUIC`,Pl=Ml,Fl=Nl,Il={HTTP_1_0:kl,HTTP_1_1:Al,HTTP_2_0:jl,SPDY:Ml,QUIC:Nl},Ll=`queue`,Rl=`topic`,zl=Ll,Bl=Rl,Vl=w([Ll,Rl]),Hl=`receive`,Ul=`process`,Wl=Hl,Gl=Ul,Kl=w([Hl,Ul]),ql=0,Jl=1,Yl=2,Xl=3,Zl=4,Ql=5,$l=6,eu=7,tu=8,nu=9,ru=10,iu=11,au=12,ou=13,su=14,cu=15,lu=16,uu={OK:ql,CANCELLED:Jl,UNKNOWN:Yl,INVALID_ARGUMENT:Xl,DEADLINE_EXCEEDED:Zl,NOT_FOUND:Ql,ALREADY_EXISTS:$l,PERMISSION_DENIED:eu,RESOURCE_EXHAUSTED:tu,FAILED_PRECONDITION:nu,ABORTED:ru,OUT_OF_RANGE:iu,UNIMPLEMENTED:au,INTERNAL:ou,UNAVAILABLE:su,DATA_LOSS:cu,UNAUTHENTICATED:lu},du=`SENT`,fu=`RECEIVED`,pu=du,mu=fu,hu=w([du,fu])})),_u=e((()=>{gu()})),vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,Od,kd,Ad,jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf,af,of,sf,cf,lf,uf,df,ff,pf,mf,hf,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,hp,gp,_p,vp,yp,bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh=e((()=>{et(),vu=`cloud.provider`,yu=`cloud.account.id`,bu=`cloud.region`,xu=`cloud.availability_zone`,Su=`cloud.platform`,Cu=`aws.ecs.container.arn`,wu=`aws.ecs.cluster.arn`,Tu=`aws.ecs.launchtype`,Eu=`aws.ecs.task.arn`,Du=`aws.ecs.task.family`,Ou=`aws.ecs.task.revision`,ku=`aws.eks.cluster.arn`,Au=`aws.log.group.names`,ju=`aws.log.group.arns`,Mu=`aws.log.stream.names`,Nu=`aws.log.stream.arns`,Pu=`container.name`,Fu=`container.id`,Iu=`container.runtime`,Lu=`container.image.name`,Ru=`container.image.tag`,zu=`deployment.environment`,Bu=`device.id`,Vu=`device.model.identifier`,Hu=`device.model.name`,Uu=`faas.name`,Wu=`faas.id`,Gu=`faas.version`,Ku=`faas.instance`,qu=`faas.max_memory`,Ju=`host.id`,Yu=`host.name`,Xu=`host.type`,Zu=`host.arch`,Qu=`host.image.name`,$u=`host.image.id`,ed=`host.image.version`,td=`k8s.cluster.name`,nd=`k8s.node.name`,rd=`k8s.node.uid`,id=`k8s.namespace.name`,ad=`k8s.pod.uid`,od=`k8s.pod.name`,sd=`k8s.container.name`,cd=`k8s.replicaset.uid`,ld=`k8s.replicaset.name`,ud=`k8s.deployment.uid`,dd=`k8s.deployment.name`,fd=`k8s.statefulset.uid`,pd=`k8s.statefulset.name`,md=`k8s.daemonset.uid`,hd=`k8s.daemonset.name`,gd=`k8s.job.uid`,_d=`k8s.job.name`,vd=`k8s.cronjob.uid`,yd=`k8s.cronjob.name`,bd=`os.type`,xd=`os.description`,Sd=`os.name`,Cd=`os.version`,wd=`process.pid`,Td=`process.executable.name`,Ed=`process.executable.path`,Dd=`process.command`,Od=`process.command_line`,kd=`process.command_args`,Ad=`process.owner`,jd=`process.runtime.name`,Md=`process.runtime.version`,Nd=`process.runtime.description`,Pd=`service.name`,Fd=`service.namespace`,Id=`service.instance.id`,Ld=`service.version`,Rd=`telemetry.sdk.name`,zd=`telemetry.sdk.language`,Bd=`telemetry.sdk.version`,Vd=`telemetry.auto.version`,Hd=`webengine.name`,Ud=`webengine.version`,Wd=`webengine.description`,Gd=vu,Kd=yu,qd=bu,Jd=xu,Yd=Su,Xd=Cu,Zd=wu,Qd=Tu,$d=Eu,ef=Du,tf=Ou,nf=ku,rf=Au,af=ju,of=Mu,sf=Nu,cf=Pu,lf=Fu,uf=Iu,df=Lu,ff=Ru,pf=zu,mf=Bu,hf=Vu,gf=Hu,_f=Uu,vf=Wu,yf=Gu,bf=Ku,xf=qu,Sf=Ju,Cf=Yu,wf=Xu,Tf=Zu,Ef=Qu,Df=$u,Of=ed,kf=td,Af=nd,jf=rd,Mf=id,Nf=ad,Pf=od,Ff=sd,If=cd,Lf=ld,Rf=ud,zf=dd,Bf=fd,Vf=pd,Hf=md,Uf=hd,Wf=gd,Gf=_d,Kf=vd,qf=yd,Jf=bd,Yf=xd,Xf=Sd,Zf=Cd,Qf=wd,$f=Td,ep=Ed,tp=Dd,np=Od,rp=kd,ip=Ad,ap=jd,op=Md,sp=Nd,cp=Pd,lp=Fd,up=Id,dp=Ld,fp=Rd,pp=zd,mp=Bd,hp=Vd,gp=Hd,_p=Ud,vp=Wd,yp=w([vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,Od,kd,Ad,jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd]),bp=`alibaba_cloud`,xp=`aws`,Sp=`azure`,Cp=`gcp`,wp=bp,Tp=Sp,Ep=w([bp,xp,Sp,Cp]),Dp=`alibaba_cloud_ecs`,Op=`alibaba_cloud_fc`,kp=`aws_ec2`,Ap=`aws_ecs`,jp=`aws_eks`,Mp=`aws_lambda`,Np=`aws_elastic_beanstalk`,Pp=`azure_vm`,Fp=`azure_container_instances`,Ip=`azure_aks`,Lp=`azure_functions`,Rp=`azure_app_service`,zp=`gcp_compute_engine`,Bp=`gcp_cloud_run`,Vp=`gcp_kubernetes_engine`,Hp=`gcp_cloud_functions`,Up=`gcp_app_engine`,Wp=Dp,Gp=Op,Kp=kp,qp=Ap,Jp=jp,Yp=Mp,Xp=Np,Zp=Pp,Qp=Fp,$p=Ip,em=Lp,tm=Rp,nm=zp,rm=Bp,im=Vp,am=Hp,om=Up,sm=w([Dp,Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up]),cm=`ec2`,lm=`fargate`,um=lm,dm=w([cm,lm]),fm=`amd64`,pm=`arm32`,mm=`arm64`,hm=`ia64`,gm=`ppc32`,_m=`ppc64`,vm=`x86`,ym=fm,bm=pm,xm=mm,Sm=hm,Cm=gm,wm=_m,Tm=w([fm,pm,mm,hm,gm,_m,vm]),Em=`windows`,Dm=`linux`,Om=`darwin`,km=`freebsd`,Am=`netbsd`,jm=`openbsd`,Mm=`dragonflybsd`,Nm=`hpux`,Pm=`aix`,Fm=`solaris`,Im=`z_os`,Lm=Em,Rm=Dm,zm=Om,Bm=km,Vm=Am,Hm=jm,Um=Mm,Wm=Nm,Gm=Fm,Km=Im,qm=w([Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im]),Jm=`cpp`,Ym=`dotnet`,Xm=`erlang`,Zm=`go`,Qm=`java`,$m=`nodejs`,eh=`php`,th=`python`,nh=`ruby`,rh=`webjs`,ih=Ym,ah=Xm,oh=Qm,sh=$m,ch=th,lh=nh,uh=rh,dh=w([Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh])})),ph=e((()=>{fh()})),mh,hh,gh,_h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,Qh,$h,eg,tg,ng,rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,T,E,D,mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg,Jg,Yg,Xg,Zg,Qg,$g,e_,t_,n_,r_,i_,a_,o_,s_,c_,l_,u_,d_,f_,p_,m_,h_,g_,__,v_,y_,b_,x_,S_,C_,w_,T_,E_,D_,O_,k_,A_,j_,M_,N_,P_,F_,I_,L_,R_,z_,B_,V_,H_,U_,W_,G_,K_,q_,J_,Y_,X_,Z_,O,Q_,$_,ev,tv,nv,rv,iv,av,ov,sv,cv,lv,k,uv,dv,fv,pv,mv,hv,gv,_v,vv,yv,A,j,bv,xv,Sv,Cv,wv,Tv,Ev=e((()=>{mh=`aspnetcore.diagnostics.exception.result`,hh=`aborted`,gh=`handled`,_h=`skipped`,vh=`unhandled`,yh=`aspnetcore.diagnostics.handler.type`,bh=`aspnetcore.rate_limiting.policy`,xh=`aspnetcore.rate_limiting.result`,Sh=`acquired`,Ch=`endpoint_limiter`,wh=`global_limiter`,Th=`request_canceled`,Eh=`aspnetcore.request.is_unhandled`,Dh=`aspnetcore.routing.is_fallback`,Oh=`aspnetcore.routing.match_status`,kh=`failure`,Ah=`success`,jh=`aspnetcore.user.is_authenticated`,Mh=`client.address`,Nh=`client.port`,Ph=`code.column.number`,Fh=`code.file.path`,Ih=`code.function.name`,Lh=`code.line.number`,Rh=`code.stacktrace`,zh=`container.id`,Bh=`container.image.name`,Vh=`container.image.repo_digests`,Hh=`container.image.tags`,Uh=`db.collection.name`,Wh=`db.namespace`,Gh=`db.operation.batch.size`,Kh=`db.operation.name`,qh=`db.query.summary`,Jh=`db.query.text`,Yh=`db.response.status_code`,Xh=`db.stored_procedure.name`,Zh=`db.system.name`,Qh=`mariadb`,$h=`microsoft.sql_server`,eg=`mysql`,tg=`postgresql`,ng=`deployment.environment.name`,rg=`development`,ig=`production`,ag=`staging`,og=`test`,sg=`dotnet.gc.heap.generation`,cg=`gen0`,lg=`gen1`,ug=`gen2`,dg=`error.type`,fg=`_OTHER`,pg=`exception.escaped`,T=`exception.message`,E=`exception.stacktrace`,D=`exception.type`,mg=e=>`http.request.header.${e}`,hg=`http.request.method`,gg=`_OTHER`,_g=`CONNECT`,vg=`DELETE`,yg=`HEAD`,bg=`OPTIONS`,xg=`PATCH`,Sg=`POST`,Cg=`TRACE`,wg=`http.request.method_original`,Tg=`http.request.resend_count`,Eg=e=>`http.response.header.${e}`,Dg=`http.response.status_code`,Og=`http.route`,kg=`jvm.gc.action`,Ag=`jvm.gc.name`,jg=`jvm.memory.pool.name`,Mg=`jvm.memory.type`,Ng=`heap`,Pg=`non_heap`,Fg=`jvm.thread.daemon`,Ig=`jvm.thread.state`,Lg=`blocked`,Rg=`runnable`,zg=`terminated`,Bg=`timed_waiting`,Vg=`waiting`,Hg=`k8s.cluster.name`,Ug=`k8s.cluster.uid`,Wg=`k8s.container.name`,Gg=`k8s.container.restart_count`,Kg=e=>`k8s.cronjob.annotation.${e}`,qg=e=>`k8s.cronjob.label.${e}`,Jg=`k8s.cronjob.name`,Yg=`k8s.cronjob.uid`,Xg=e=>`k8s.daemonset.annotation.${e}`,Zg=e=>`k8s.daemonset.label.${e}`,Qg=`k8s.daemonset.name`,$g=`k8s.daemonset.uid`,e_=e=>`k8s.deployment.annotation.${e}`,t_=e=>`k8s.deployment.label.${e}`,n_=`k8s.deployment.name`,r_=`k8s.deployment.uid`,i_=e=>`k8s.job.annotation.${e}`,a_=e=>`k8s.job.label.${e}`,o_=`k8s.job.name`,s_=`k8s.job.uid`,c_=e=>`k8s.namespace.annotation.${e}`,l_=e=>`k8s.namespace.label.${e}`,u_=`k8s.namespace.name`,d_=e=>`k8s.node.annotation.${e}`,f_=e=>`k8s.node.label.${e}`,p_=`k8s.node.name`,m_=`k8s.node.uid`,h_=e=>`k8s.pod.annotation.${e}`,g_=`k8s.pod.hostname`,__=`k8s.pod.ip`,v_=e=>`k8s.pod.label.${e}`,y_=`k8s.pod.name`,b_=`k8s.pod.start_time`,x_=`k8s.pod.uid`,S_=e=>`k8s.replicaset.annotation.${e}`,C_=e=>`k8s.replicaset.label.${e}`,w_=`k8s.replicaset.name`,T_=`k8s.replicaset.uid`,E_=e=>`k8s.statefulset.annotation.${e}`,D_=e=>`k8s.statefulset.label.${e}`,O_=`k8s.statefulset.name`,k_=`k8s.statefulset.uid`,A_=`network.local.address`,j_=`network.local.port`,M_=`network.peer.address`,N_=`network.peer.port`,P_=`network.protocol.name`,F_=`network.protocol.version`,I_=`network.transport`,L_=`pipe`,R_=`quic`,z_=`unix`,B_=`network.type`,V_=`ipv4`,H_=`ipv6`,U_=`otel.event.name`,W_=`otel.scope.name`,G_=`otel.scope.version`,K_=`otel.status_code`,q_=`ERROR`,J_=`otel.status_description`,Y_=`server.address`,X_=`server.port`,Z_=`service.instance.id`,O=`service.name`,Q_=`service.namespace`,$_=`service.version`,ev=`signalr.connection.status`,tv=`app_shutdown`,nv=`normal_closure`,rv=`timeout`,iv=`signalr.transport`,av=`long_polling`,ov=`server_sent_events`,sv=`web_sockets`,cv=`telemetry.distro.name`,lv=`telemetry.distro.version`,k=`telemetry.sdk.language`,uv=`dotnet`,dv=`erlang`,fv=`java`,pv=`kotlin`,mv=`nodejs`,hv=`python`,gv=`ruby`,_v=`rust`,vv=`swift`,yv=`webjs`,A=`telemetry.sdk.name`,j=`telemetry.sdk.version`,bv=`url.fragment`,xv=`url.full`,Sv=`url.path`,Cv=`url.query`,wv=`url.scheme`,Tv=`user_agent.original`})),Dv,Ov,kv,Av,jv,Mv,Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv,Gv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy,yy,by,xy,Sy,Cy,wy=e((()=>{Dv=`aspnetcore.diagnostics.exceptions`,Ov=`aspnetcore.rate_limiting.active_request_leases`,kv=`aspnetcore.rate_limiting.queued_requests`,Av=`aspnetcore.rate_limiting.request.time_in_queue`,jv=`aspnetcore.rate_limiting.request_lease.duration`,Mv=`aspnetcore.rate_limiting.requests`,Nv=`aspnetcore.routing.match_attempts`,Pv=`db.client.operation.duration`,Fv=`dotnet.assembly.count`,Iv=`dotnet.exceptions`,Lv=`dotnet.gc.collections`,Rv=`dotnet.gc.heap.total_allocated`,zv=`dotnet.gc.last_collection.heap.fragmentation.size`,Bv=`dotnet.gc.last_collection.heap.size`,Vv=`dotnet.gc.last_collection.memory.committed_size`,Hv=`dotnet.gc.pause.time`,Uv=`dotnet.jit.compilation.time`,Wv=`dotnet.jit.compiled_il.size`,Gv=`dotnet.jit.compiled_methods`,Kv=`dotnet.monitor.lock_contentions`,qv=`dotnet.process.cpu.count`,Jv=`dotnet.process.cpu.time`,Yv=`dotnet.process.memory.working_set`,Xv=`dotnet.thread_pool.queue.length`,Zv=`dotnet.thread_pool.thread.count`,Qv=`dotnet.thread_pool.work_item.count`,$v=`dotnet.timer.count`,ey=`http.client.request.duration`,ty=`http.server.request.duration`,ny=`jvm.class.count`,ry=`jvm.class.loaded`,iy=`jvm.class.unloaded`,ay=`jvm.cpu.count`,oy=`jvm.cpu.recent_utilization`,sy=`jvm.cpu.time`,cy=`jvm.gc.duration`,ly=`jvm.memory.committed`,uy=`jvm.memory.limit`,dy=`jvm.memory.used`,fy=`jvm.memory.used_after_last_gc`,py=`jvm.thread.count`,my=`kestrel.active_connections`,hy=`kestrel.active_tls_handshakes`,gy=`kestrel.connection.duration`,_y=`kestrel.queued_connections`,vy=`kestrel.queued_requests`,yy=`kestrel.rejected_connections`,by=`kestrel.tls_handshake.duration`,xy=`kestrel.upgraded_connections`,Sy=`signalr.server.active_connections`,Cy=`signalr.server.connection.duration`})),Ty,Ey=e((()=>{Ty=`exception`})),Dy=t({ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>hh,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>gh,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>_h,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>vh,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>Sh,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>Ch,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>wh,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>Th,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>kh,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>Ah,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>mh,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>yh,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>bh,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>xh,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>Eh,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>Dh,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>Oh,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>jh,ATTR_CLIENT_ADDRESS:()=>Mh,ATTR_CLIENT_PORT:()=>Nh,ATTR_CODE_COLUMN_NUMBER:()=>Ph,ATTR_CODE_FILE_PATH:()=>Fh,ATTR_CODE_FUNCTION_NAME:()=>Ih,ATTR_CODE_LINE_NUMBER:()=>Lh,ATTR_CODE_STACKTRACE:()=>Rh,ATTR_CONTAINER_ID:()=>zh,ATTR_CONTAINER_IMAGE_NAME:()=>Bh,ATTR_CONTAINER_IMAGE_REPO_DIGESTS:()=>Vh,ATTR_CONTAINER_IMAGE_TAGS:()=>Hh,ATTR_DB_COLLECTION_NAME:()=>Uh,ATTR_DB_NAMESPACE:()=>Wh,ATTR_DB_OPERATION_BATCH_SIZE:()=>Gh,ATTR_DB_OPERATION_NAME:()=>Kh,ATTR_DB_QUERY_SUMMARY:()=>qh,ATTR_DB_QUERY_TEXT:()=>Jh,ATTR_DB_RESPONSE_STATUS_CODE:()=>Yh,ATTR_DB_STORED_PROCEDURE_NAME:()=>Xh,ATTR_DB_SYSTEM_NAME:()=>Zh,ATTR_DEPLOYMENT_ENVIRONMENT_NAME:()=>ng,ATTR_DOTNET_GC_HEAP_GENERATION:()=>sg,ATTR_ERROR_TYPE:()=>dg,ATTR_EXCEPTION_ESCAPED:()=>pg,ATTR_EXCEPTION_MESSAGE:()=>T,ATTR_EXCEPTION_STACKTRACE:()=>E,ATTR_EXCEPTION_TYPE:()=>D,ATTR_HTTP_REQUEST_HEADER:()=>mg,ATTR_HTTP_REQUEST_METHOD:()=>hg,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>wg,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>Tg,ATTR_HTTP_RESPONSE_HEADER:()=>Eg,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>Dg,ATTR_HTTP_ROUTE:()=>Og,ATTR_JVM_GC_ACTION:()=>kg,ATTR_JVM_GC_NAME:()=>Ag,ATTR_JVM_MEMORY_POOL_NAME:()=>jg,ATTR_JVM_MEMORY_TYPE:()=>Mg,ATTR_JVM_THREAD_DAEMON:()=>Fg,ATTR_JVM_THREAD_STATE:()=>Ig,ATTR_K8S_CLUSTER_NAME:()=>Hg,ATTR_K8S_CLUSTER_UID:()=>Ug,ATTR_K8S_CONTAINER_NAME:()=>Wg,ATTR_K8S_CONTAINER_RESTART_COUNT:()=>Gg,ATTR_K8S_CRONJOB_ANNOTATION:()=>Kg,ATTR_K8S_CRONJOB_LABEL:()=>qg,ATTR_K8S_CRONJOB_NAME:()=>Jg,ATTR_K8S_CRONJOB_UID:()=>Yg,ATTR_K8S_DAEMONSET_ANNOTATION:()=>Xg,ATTR_K8S_DAEMONSET_LABEL:()=>Zg,ATTR_K8S_DAEMONSET_NAME:()=>Qg,ATTR_K8S_DAEMONSET_UID:()=>$g,ATTR_K8S_DEPLOYMENT_ANNOTATION:()=>e_,ATTR_K8S_DEPLOYMENT_LABEL:()=>t_,ATTR_K8S_DEPLOYMENT_NAME:()=>n_,ATTR_K8S_DEPLOYMENT_UID:()=>r_,ATTR_K8S_JOB_ANNOTATION:()=>i_,ATTR_K8S_JOB_LABEL:()=>a_,ATTR_K8S_JOB_NAME:()=>o_,ATTR_K8S_JOB_UID:()=>s_,ATTR_K8S_NAMESPACE_ANNOTATION:()=>c_,ATTR_K8S_NAMESPACE_LABEL:()=>l_,ATTR_K8S_NAMESPACE_NAME:()=>u_,ATTR_K8S_NODE_ANNOTATION:()=>d_,ATTR_K8S_NODE_LABEL:()=>f_,ATTR_K8S_NODE_NAME:()=>p_,ATTR_K8S_NODE_UID:()=>m_,ATTR_K8S_POD_ANNOTATION:()=>h_,ATTR_K8S_POD_HOSTNAME:()=>g_,ATTR_K8S_POD_IP:()=>__,ATTR_K8S_POD_LABEL:()=>v_,ATTR_K8S_POD_NAME:()=>y_,ATTR_K8S_POD_START_TIME:()=>b_,ATTR_K8S_POD_UID:()=>x_,ATTR_K8S_REPLICASET_ANNOTATION:()=>S_,ATTR_K8S_REPLICASET_LABEL:()=>C_,ATTR_K8S_REPLICASET_NAME:()=>w_,ATTR_K8S_REPLICASET_UID:()=>T_,ATTR_K8S_STATEFULSET_ANNOTATION:()=>E_,ATTR_K8S_STATEFULSET_LABEL:()=>D_,ATTR_K8S_STATEFULSET_NAME:()=>O_,ATTR_K8S_STATEFULSET_UID:()=>k_,ATTR_NETWORK_LOCAL_ADDRESS:()=>A_,ATTR_NETWORK_LOCAL_PORT:()=>j_,ATTR_NETWORK_PEER_ADDRESS:()=>M_,ATTR_NETWORK_PEER_PORT:()=>N_,ATTR_NETWORK_PROTOCOL_NAME:()=>P_,ATTR_NETWORK_PROTOCOL_VERSION:()=>F_,ATTR_NETWORK_TRANSPORT:()=>I_,ATTR_NETWORK_TYPE:()=>B_,ATTR_OTEL_EVENT_NAME:()=>U_,ATTR_OTEL_SCOPE_NAME:()=>W_,ATTR_OTEL_SCOPE_VERSION:()=>G_,ATTR_OTEL_STATUS_CODE:()=>K_,ATTR_OTEL_STATUS_DESCRIPTION:()=>J_,ATTR_SERVER_ADDRESS:()=>Y_,ATTR_SERVER_PORT:()=>X_,ATTR_SERVICE_INSTANCE_ID:()=>Z_,ATTR_SERVICE_NAME:()=>O,ATTR_SERVICE_NAMESPACE:()=>Q_,ATTR_SERVICE_VERSION:()=>$_,ATTR_SIGNALR_CONNECTION_STATUS:()=>ev,ATTR_SIGNALR_TRANSPORT:()=>iv,ATTR_TELEMETRY_DISTRO_NAME:()=>cv,ATTR_TELEMETRY_DISTRO_VERSION:()=>lv,ATTR_TELEMETRY_SDK_LANGUAGE:()=>k,ATTR_TELEMETRY_SDK_NAME:()=>A,ATTR_TELEMETRY_SDK_VERSION:()=>j,ATTR_URL_FRAGMENT:()=>bv,ATTR_URL_FULL:()=>xv,ATTR_URL_PATH:()=>Sv,ATTR_URL_QUERY:()=>Cv,ATTR_URL_SCHEME:()=>wv,ATTR_USER_AGENT_ORIGINAL:()=>Tv,AWSECSLAUNCHTYPEVALUES_EC2:()=>`ec2`,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>um,AwsEcsLaunchtypeValues:()=>dm,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>Wp,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>Gp,CLOUDPLATFORMVALUES_AWS_EC2:()=>Kp,CLOUDPLATFORMVALUES_AWS_ECS:()=>qp,CLOUDPLATFORMVALUES_AWS_EKS:()=>Jp,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Xp,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>Yp,CLOUDPLATFORMVALUES_AZURE_AKS:()=>$p,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>tm,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>Qp,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>em,CLOUDPLATFORMVALUES_AZURE_VM:()=>Zp,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>om,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>am,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>rm,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>nm,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>im,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>wp,CLOUDPROVIDERVALUES_AWS:()=>`aws`,CLOUDPROVIDERVALUES_AZURE:()=>Tp,CLOUDPROVIDERVALUES_GCP:()=>`gcp`,CloudPlatformValues:()=>sm,CloudProviderValues:()=>Ep,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>`all`,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>`any`,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>zs,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>Us,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>Vs,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>Gs,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>`one`,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>Bs,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>Ws,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>Hs,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>`two`,DBSYSTEMVALUES_ADABAS:()=>Qo,DBSYSTEMVALUES_CACHE:()=>Zo,DBSYSTEMVALUES_CASSANDRA:()=>ms,DBSYSTEMVALUES_CLOUDSCAPE:()=>Wo,DBSYSTEMVALUES_COCKROACHDB:()=>Es,DBSYSTEMVALUES_COLDFUSION:()=>ps,DBSYSTEMVALUES_COSMOSDB:()=>bs,DBSYSTEMVALUES_COUCHBASE:()=>vs,DBSYSTEMVALUES_COUCHDB:()=>ys,DBSYSTEMVALUES_DB2:()=>`db2`,DBSYSTEMVALUES_DERBY:()=>es,DBSYSTEMVALUES_DYNAMODB:()=>xs,DBSYSTEMVALUES_EDB:()=>`edb`,DBSYSTEMVALUES_ELASTICSEARCH:()=>ws,DBSYSTEMVALUES_FILEMAKER:()=>ts,DBSYSTEMVALUES_FIREBIRD:()=>$o,DBSYSTEMVALUES_FIRSTSQL:()=>Xo,DBSYSTEMVALUES_GEODE:()=>Cs,DBSYSTEMVALUES_H2:()=>`h2`,DBSYSTEMVALUES_HANADB:()=>Jo,DBSYSTEMVALUES_HBASE:()=>hs,DBSYSTEMVALUES_HIVE:()=>Uo,DBSYSTEMVALUES_HSQLDB:()=>Go,DBSYSTEMVALUES_INFORMIX:()=>ns,DBSYSTEMVALUES_INGRES:()=>Yo,DBSYSTEMVALUES_INSTANTDB:()=>rs,DBSYSTEMVALUES_INTERBASE:()=>is,DBSYSTEMVALUES_MARIADB:()=>as,DBSYSTEMVALUES_MAXDB:()=>qo,DBSYSTEMVALUES_MEMCACHED:()=>Ts,DBSYSTEMVALUES_MONGODB:()=>gs,DBSYSTEMVALUES_MSSQL:()=>Ro,DBSYSTEMVALUES_MYSQL:()=>zo,DBSYSTEMVALUES_NEO4J:()=>Ss,DBSYSTEMVALUES_NETEZZA:()=>os,DBSYSTEMVALUES_ORACLE:()=>Bo,DBSYSTEMVALUES_OTHER_SQL:()=>Lo,DBSYSTEMVALUES_PERVASIVE:()=>ss,DBSYSTEMVALUES_POINTBASE:()=>cs,DBSYSTEMVALUES_POSTGRESQL:()=>Vo,DBSYSTEMVALUES_PROGRESS:()=>Ko,DBSYSTEMVALUES_REDIS:()=>_s,DBSYSTEMVALUES_REDSHIFT:()=>Ho,DBSYSTEMVALUES_SQLITE:()=>ls,DBSYSTEMVALUES_SYBASE:()=>us,DBSYSTEMVALUES_TERADATA:()=>ds,DBSYSTEMVALUES_VERTICA:()=>fs,DB_SYSTEM_NAME_VALUE_MARIADB:()=>Qh,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>$h,DB_SYSTEM_NAME_VALUE_MYSQL:()=>eg,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>tg,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_DEVELOPMENT:()=>rg,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_PRODUCTION:()=>ig,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_STAGING:()=>ag,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_TEST:()=>og,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>cg,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>lg,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>ug,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>`loh`,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>`poh`,DbCassandraConsistencyLevelValues:()=>Ks,DbSystemValues:()=>Ds,ERROR_TYPE_VALUE_OTHER:()=>fg,EVENT_EXCEPTION:()=>Ty,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>lc,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>cc,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>sc,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>hc,FAASINVOKEDPROVIDERVALUES_AWS:()=>`aws`,FAASINVOKEDPROVIDERVALUES_AZURE:()=>gc,FAASINVOKEDPROVIDERVALUES_GCP:()=>`gcp`,FAASTRIGGERVALUES_DATASOURCE:()=>Qs,FAASTRIGGERVALUES_HTTP:()=>$s,FAASTRIGGERVALUES_OTHER:()=>nc,FAASTRIGGERVALUES_PUBSUB:()=>ec,FAASTRIGGERVALUES_TIMER:()=>tc,FaasDocumentOperationValues:()=>uc,FaasInvokedProviderValues:()=>_c,FaasTriggerValues:()=>rc,HOSTARCHVALUES_AMD64:()=>ym,HOSTARCHVALUES_ARM32:()=>bm,HOSTARCHVALUES_ARM64:()=>xm,HOSTARCHVALUES_IA64:()=>Sm,HOSTARCHVALUES_PPC32:()=>Cm,HOSTARCHVALUES_PPC64:()=>wm,HOSTARCHVALUES_X86:()=>`x86`,HTTPFLAVORVALUES_HTTP_1_0:()=>`1.0`,HTTPFLAVORVALUES_HTTP_1_1:()=>`1.1`,HTTPFLAVORVALUES_HTTP_2_0:()=>`2.0`,HTTPFLAVORVALUES_QUIC:()=>Fl,HTTPFLAVORVALUES_SPDY:()=>Pl,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>_g,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>vg,HTTP_REQUEST_METHOD_VALUE_GET:()=>`GET`,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>yg,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>bg,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>gg,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>xg,HTTP_REQUEST_METHOD_VALUE_POST:()=>Sg,HTTP_REQUEST_METHOD_VALUE_PUT:()=>`PUT`,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>Cg,HostArchValues:()=>Tm,HttpFlavorValues:()=>Il,JVM_MEMORY_TYPE_VALUE_HEAP:()=>Ng,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>Pg,JVM_THREAD_STATE_VALUE_BLOCKED:()=>Lg,JVM_THREAD_STATE_VALUE_NEW:()=>`new`,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>Rg,JVM_THREAD_STATE_VALUE_TERMINATED:()=>zg,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>Bg,JVM_THREAD_STATE_VALUE_WAITING:()=>Vg,MESSAGETYPEVALUES_RECEIVED:()=>mu,MESSAGETYPEVALUES_SENT:()=>pu,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>zl,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>Bl,MESSAGINGOPERATIONVALUES_PROCESS:()=>Gl,MESSAGINGOPERATIONVALUES_RECEIVE:()=>Wl,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>Dv,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>Ov,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>kv,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>Mv,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>jv,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>Av,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>Nv,METRIC_DB_CLIENT_OPERATION_DURATION:()=>Pv,METRIC_DOTNET_ASSEMBLY_COUNT:()=>Fv,METRIC_DOTNET_EXCEPTIONS:()=>Iv,METRIC_DOTNET_GC_COLLECTIONS:()=>Lv,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>Rv,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>zv,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>Bv,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>Vv,METRIC_DOTNET_GC_PAUSE_TIME:()=>Hv,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>Uv,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>Wv,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>Gv,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>Kv,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>qv,METRIC_DOTNET_PROCESS_CPU_TIME:()=>Jv,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>Yv,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>Xv,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>Zv,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>Qv,METRIC_DOTNET_TIMER_COUNT:()=>$v,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>ey,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>ty,METRIC_JVM_CLASS_COUNT:()=>ny,METRIC_JVM_CLASS_LOADED:()=>ry,METRIC_JVM_CLASS_UNLOADED:()=>iy,METRIC_JVM_CPU_COUNT:()=>ay,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>oy,METRIC_JVM_CPU_TIME:()=>sy,METRIC_JVM_GC_DURATION:()=>cy,METRIC_JVM_MEMORY_COMMITTED:()=>ly,METRIC_JVM_MEMORY_LIMIT:()=>uy,METRIC_JVM_MEMORY_USED:()=>dy,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>fy,METRIC_JVM_THREAD_COUNT:()=>py,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>my,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>hy,METRIC_KESTREL_CONNECTION_DURATION:()=>gy,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>_y,METRIC_KESTREL_QUEUED_REQUESTS:()=>vy,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>yy,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>by,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>xy,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>Sy,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>Cy,MessageTypeValues:()=>hu,MessagingDestinationKindValues:()=>Vl,MessagingOperationValues:()=>Kl,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>pl,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>gl,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>dl,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>Sl,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>ml,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>hl,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>xl,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>ul,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>`gsm`,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>_l,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>yl,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Cl,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>vl,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>bl,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Tl,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>`lte`,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>Dl,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>`nr`,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>El,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>wl,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>fl,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>zc,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Bc,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>Vc,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Lc,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Rc,NETTRANSPORTVALUES_INPROC:()=>kc,NETTRANSPORTVALUES_IP:()=>`ip`,NETTRANSPORTVALUES_IP_TCP:()=>Tc,NETTRANSPORTVALUES_IP_UDP:()=>Ec,NETTRANSPORTVALUES_OTHER:()=>Ac,NETTRANSPORTVALUES_PIPE:()=>Oc,NETTRANSPORTVALUES_UNIX:()=>Dc,NETWORK_TRANSPORT_VALUE_PIPE:()=>L_,NETWORK_TRANSPORT_VALUE_QUIC:()=>R_,NETWORK_TRANSPORT_VALUE_TCP:()=>`tcp`,NETWORK_TRANSPORT_VALUE_UDP:()=>`udp`,NETWORK_TRANSPORT_VALUE_UNIX:()=>z_,NETWORK_TYPE_VALUE_IPV4:()=>V_,NETWORK_TYPE_VALUE_IPV6:()=>H_,NetHostConnectionSubtypeValues:()=>Ol,NetHostConnectionTypeValues:()=>Hc,NetTransportValues:()=>jc,OSTYPEVALUES_AIX:()=>`aix`,OSTYPEVALUES_DARWIN:()=>zm,OSTYPEVALUES_DRAGONFLYBSD:()=>Um,OSTYPEVALUES_FREEBSD:()=>Bm,OSTYPEVALUES_HPUX:()=>Wm,OSTYPEVALUES_LINUX:()=>Rm,OSTYPEVALUES_NETBSD:()=>Vm,OSTYPEVALUES_OPENBSD:()=>Hm,OSTYPEVALUES_SOLARIS:()=>Gm,OSTYPEVALUES_WINDOWS:()=>Lm,OSTYPEVALUES_Z_OS:()=>Km,OTEL_STATUS_CODE_VALUE_ERROR:()=>q_,OTEL_STATUS_CODE_VALUE_OK:()=>`OK`,OsTypeValues:()=>qm,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>10,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>6,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>1,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>15,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>4,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>9,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>13,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>3,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>5,RPCGRPCSTATUSCODEVALUES_OK:()=>0,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>11,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>7,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>8,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>16,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>14,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>12,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>2,RpcGrpcStatusCodeValues:()=>uu,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>Zi,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>la,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>Ji,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>Wi,SEMATTRS_AWS_DYNAMODB_COUNT:()=>sa,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>na,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>ea,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>ua,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>Qi,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>Gi,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>Xi,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>ta,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>Yi,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>Ki,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>qi,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>ca,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>ia,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>aa,SEMATTRS_AWS_DYNAMODB_SELECT:()=>$i,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>ra,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>Ui,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>oa,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>Sr,SEMATTRS_CODE_FILEPATH:()=>Ei,SEMATTRS_CODE_FUNCTION:()=>wi,SEMATTRS_CODE_LINENO:()=>Di,SEMATTRS_CODE_NAMESPACE:()=>Ti,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>Nr,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>Rr,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>Lr,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>Fr,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>jr,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>Mr,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>Ir,SEMATTRS_DB_CASSANDRA_TABLE:()=>Pr,SEMATTRS_DB_CONNECTION_STRING:()=>wr,SEMATTRS_DB_HBASE_NAMESPACE:()=>zr,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>Er,SEMATTRS_DB_MONGODB_COLLECTION:()=>Vr,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>Ar,SEMATTRS_DB_NAME:()=>Dr,SEMATTRS_DB_OPERATION:()=>kr,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>Br,SEMATTRS_DB_SQL_TABLE:()=>Hr,SEMATTRS_DB_STATEMENT:()=>Or,SEMATTRS_DB_SYSTEM:()=>Cr,SEMATTRS_DB_USER:()=>Tr,SEMATTRS_ENDUSER_ID:()=>yi,SEMATTRS_ENDUSER_ROLE:()=>bi,SEMATTRS_ENDUSER_SCOPE:()=>xi,SEMATTRS_EXCEPTION_ESCAPED:()=>Kr,SEMATTRS_EXCEPTION_MESSAGE:()=>Wr,SEMATTRS_EXCEPTION_STACKTRACE:()=>Gr,SEMATTRS_EXCEPTION_TYPE:()=>Ur,SEMATTRS_FAAS_COLDSTART:()=>ti,SEMATTRS_FAAS_CRON:()=>ei,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>Yr,SEMATTRS_FAAS_DOCUMENT_NAME:()=>Qr,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>Xr,SEMATTRS_FAAS_DOCUMENT_TIME:()=>Zr,SEMATTRS_FAAS_EXECUTION:()=>Jr,SEMATTRS_FAAS_INVOKED_NAME:()=>ni,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>ri,SEMATTRS_FAAS_INVOKED_REGION:()=>ii,SEMATTRS_FAAS_TIME:()=>$r,SEMATTRS_FAAS_TRIGGER:()=>qr,SEMATTRS_HTTP_CLIENT_IP:()=>Hi,SEMATTRS_HTTP_FLAVOR:()=>Pi,SEMATTRS_HTTP_HOST:()=>ji,SEMATTRS_HTTP_METHOD:()=>Oi,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>Ii,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>Li,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>Ri,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>zi,SEMATTRS_HTTP_ROUTE:()=>Vi,SEMATTRS_HTTP_SCHEME:()=>Mi,SEMATTRS_HTTP_SERVER_NAME:()=>Bi,SEMATTRS_HTTP_STATUS_CODE:()=>Ni,SEMATTRS_HTTP_TARGET:()=>Ai,SEMATTRS_HTTP_URL:()=>ki,SEMATTRS_HTTP_USER_AGENT:()=>Fi,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>Ba,SEMATTRS_MESSAGE_ID:()=>za,SEMATTRS_MESSAGE_TYPE:()=>Ra,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>Va,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Ca,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>ya,SEMATTRS_MESSAGING_DESTINATION:()=>fa,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>pa,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>Da,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>Ea,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>Ta,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>Oa,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>ka,SEMATTRS_MESSAGING_MESSAGE_ID:()=>va,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>xa,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>ba,SEMATTRS_MESSAGING_OPERATION:()=>Sa,SEMATTRS_MESSAGING_PROTOCOL:()=>ha,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>ga,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>wa,SEMATTRS_MESSAGING_SYSTEM:()=>da,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>ma,SEMATTRS_MESSAGING_URL:()=>_a,SEMATTRS_NET_HOST_CARRIER_ICC:()=>_i,SEMATTRS_NET_HOST_CARRIER_MCC:()=>hi,SEMATTRS_NET_HOST_CARRIER_MNC:()=>gi,SEMATTRS_NET_HOST_CARRIER_NAME:()=>mi,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>pi,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>fi,SEMATTRS_NET_HOST_IP:()=>li,SEMATTRS_NET_HOST_NAME:()=>di,SEMATTRS_NET_HOST_PORT:()=>ui,SEMATTRS_NET_PEER_IP:()=>oi,SEMATTRS_NET_PEER_NAME:()=>ci,SEMATTRS_NET_PEER_PORT:()=>si,SEMATTRS_NET_TRANSPORT:()=>ai,SEMATTRS_PEER_SERVICE:()=>vi,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>Na,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>Ia,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>La,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>Fa,SEMATTRS_RPC_JSONRPC_VERSION:()=>Pa,SEMATTRS_RPC_METHOD:()=>Ma,SEMATTRS_RPC_SERVICE:()=>ja,SEMATTRS_RPC_SYSTEM:()=>Aa,SEMATTRS_THREAD_ID:()=>Si,SEMATTRS_THREAD_NAME:()=>Ci,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>Zd,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>Xd,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>Qd,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>$d,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>ef,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>tf,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>nf,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>af,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>rf,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>sf,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>of,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>Kd,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>Jd,SEMRESATTRS_CLOUD_PLATFORM:()=>Yd,SEMRESATTRS_CLOUD_PROVIDER:()=>Gd,SEMRESATTRS_CLOUD_REGION:()=>qd,SEMRESATTRS_CONTAINER_ID:()=>lf,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>df,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>ff,SEMRESATTRS_CONTAINER_NAME:()=>cf,SEMRESATTRS_CONTAINER_RUNTIME:()=>uf,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>pf,SEMRESATTRS_DEVICE_ID:()=>mf,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>hf,SEMRESATTRS_DEVICE_MODEL_NAME:()=>gf,SEMRESATTRS_FAAS_ID:()=>vf,SEMRESATTRS_FAAS_INSTANCE:()=>bf,SEMRESATTRS_FAAS_MAX_MEMORY:()=>xf,SEMRESATTRS_FAAS_NAME:()=>_f,SEMRESATTRS_FAAS_VERSION:()=>yf,SEMRESATTRS_HOST_ARCH:()=>Tf,SEMRESATTRS_HOST_ID:()=>Sf,SEMRESATTRS_HOST_IMAGE_ID:()=>Df,SEMRESATTRS_HOST_IMAGE_NAME:()=>Ef,SEMRESATTRS_HOST_IMAGE_VERSION:()=>Of,SEMRESATTRS_HOST_NAME:()=>Cf,SEMRESATTRS_HOST_TYPE:()=>wf,SEMRESATTRS_K8S_CLUSTER_NAME:()=>kf,SEMRESATTRS_K8S_CONTAINER_NAME:()=>Ff,SEMRESATTRS_K8S_CRONJOB_NAME:()=>qf,SEMRESATTRS_K8S_CRONJOB_UID:()=>Kf,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>Uf,SEMRESATTRS_K8S_DAEMONSET_UID:()=>Hf,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>zf,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>Rf,SEMRESATTRS_K8S_JOB_NAME:()=>Gf,SEMRESATTRS_K8S_JOB_UID:()=>Wf,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>Mf,SEMRESATTRS_K8S_NODE_NAME:()=>Af,SEMRESATTRS_K8S_NODE_UID:()=>jf,SEMRESATTRS_K8S_POD_NAME:()=>Pf,SEMRESATTRS_K8S_POD_UID:()=>Nf,SEMRESATTRS_K8S_REPLICASET_NAME:()=>Lf,SEMRESATTRS_K8S_REPLICASET_UID:()=>If,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>Vf,SEMRESATTRS_K8S_STATEFULSET_UID:()=>Bf,SEMRESATTRS_OS_DESCRIPTION:()=>Yf,SEMRESATTRS_OS_NAME:()=>Xf,SEMRESATTRS_OS_TYPE:()=>Jf,SEMRESATTRS_OS_VERSION:()=>Zf,SEMRESATTRS_PROCESS_COMMAND:()=>tp,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>rp,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>np,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>$f,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>ep,SEMRESATTRS_PROCESS_OWNER:()=>ip,SEMRESATTRS_PROCESS_PID:()=>Qf,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>sp,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>ap,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>op,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>up,SEMRESATTRS_SERVICE_NAME:()=>cp,SEMRESATTRS_SERVICE_NAMESPACE:()=>lp,SEMRESATTRS_SERVICE_VERSION:()=>dp,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>hp,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>pp,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>fp,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>mp,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>vp,SEMRESATTRS_WEBENGINE_NAME:()=>gp,SEMRESATTRS_WEBENGINE_VERSION:()=>_p,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>tv,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>nv,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>rv,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>av,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>ov,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>sv,SemanticAttributes:()=>Ha,SemanticResourceAttributes:()=>yp,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>`cpp`,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>ih,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>ah,TELEMETRYSDKLANGUAGEVALUES_GO:()=>`go`,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>oh,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>sh,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>`php`,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>ch,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>lh,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>uh,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>`cpp`,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>uv,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>dv,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>`go`,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>fv,TELEMETRY_SDK_LANGUAGE_VALUE_KOTLIN:()=>pv,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>mv,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>`php`,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>hv,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>gv,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>_v,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>vv,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>yv,TelemetrySdkLanguageValues:()=>dh}),M=e((()=>{_u(),ph(),Ev(),wy(),Ey()})),Oy,ky=e((()=>{Oy=`process.runtime.name`})),N,Ay=e((()=>{$e(),M(),ky(),N={[A]:`opentelemetry`,[Oy]:`node`,[k]:mv,[j]:Qe}})),P,jy=e((()=>{Ye(),Ze(),Ay(),P=performance})),My=e((()=>{jy()}));function F(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*Gy)]}function Ny(){return P.timeOrigin}function I(e){return Uy(F(P.timeOrigin),F(typeof e==`number`?e:P.now()))}function Py(e){if(Vy(e))return e;if(typeof e==`number`)return e<P.timeOrigin/2?I(e):F(e);if(e instanceof Date)return F(e.getTime());throw TypeError(`Invalid input type`)}function Fy(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(--n,r+=L),[n,r]}function Iy(e){let t=Wy,n=`${`0`.repeat(t)}${e[1]}Z`,r=n.substring(n.length-t-1);return new Date(e[0]*1e3).toISOString().replace(`000Z`,r)}function Ly(e){return e[0]*L+e[1]}function Ry(e){return e[0]*1e6+e[1]/1e3}function zy(e){return e[0]*1e3+e[1]/1e6}function By(e){return e[0]+e[1]/L}function Vy(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function Hy(e){return Vy(e)||typeof e==`number`||e instanceof Date}function Uy(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=L&&(n[1]-=L,n[0]+=1),n}var Wy,Gy,L,Ky=e((()=>{My(),Wy=9,Gy=10**6,L=10**Wy}));function qy(e){typeof e!=`number`&&e.unref()}var Jy=e((()=>{})),R,Yy=e((()=>{(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(R||={})})),Xy,Zy=e((()=>{m(),Xy=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[];let t=new Set;for(let e of this._propagators){let n=typeof e.fields==`function`?e.fields():[];for(let e of n)t.add(e)}this._fields=Array.from(t)}inject(e,t,n){for(let r of this._propagators)try{r.inject(e,t,n)}catch(e){p.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){p.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}}));function Qy(e){return tb.test(e)}function $y(e){return nb.test(e)&&!rb.test(e)}var eb,tb,nb,rb,ib=e((()=>{eb=`[_0-9a-z-*/]`,tb=RegExp(`^(?:${`[a-z]${eb}{0,255}`}|${`[a-z0-9]${eb}{0,240}@[a-z]${eb}{0,13}`})$`),nb=/^[ -~]{0,255}[!-~]$/,rb=/,|=/})),ab,ob,sb,cb,lb,ub=e((()=>{ib(),ab=32,ob=512,sb=`,`,cb=`=`,lb=class e{_length;_rawTraceState;_internalState;constructor(e){this._rawTraceState=typeof e==`string`?e:``,this._length=this._rawTraceState.length}set(e,t){if(!Qy(e)||!$y(t))return this;let n=this._getState(),r=n.get(e),i=this._length;if(i+=typeof r==`string`?t.length-r.length:e.length+t.length+(n.size>0?2:1),i>ob)return this;let a=new Map(n);return a.delete(e),a.set(e,t),this._fromState(a,i)}unset(e){let t=this._getState(),n=t.get(e);if(typeof n!=`string`)return this;let r=this._length-(e.length+n.length+1);t.size>1&&--r;let i=new Map(t);return i.delete(e),this._fromState(i,r)}get(e){return this._getState().get(e)}serialize(){let e=``,t=0;for(let n of this._getState())t>0&&(e=sb+e),e=`${n[0]}${cb}${n[1]}`+e,t++;return e}_getState(){if(this._internalState)return this._internalState;let e=this._rawTraceState.split(sb),t=new Map,n=0;for(let r of e){let e=r.trim(),i=e.indexOf(cb);if(i===-1)continue;let a=e.slice(0,i),o=e.slice(i+1);if(!Qy(a)||!$y(o))continue;let s=n+e.length+ +(t.size>0);if(!(s>ob)&&(t.set(a,o),n=s,t.size>=ab))break}return this._length=n,this._internalState=new Map(Array.from(t.entries()).reverse()),this._internalState}_fromState(t,n){let r=Object.create(e.prototype);return r._internalState=t,r._length=n,r}}}));function db(e){let t=pb.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var z,B,fb,pb,mb,hb=e((()=>{m(),b(),ub(),z=`traceparent`,B=`tracestate`,fb=`00`,pb=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`),mb=class{inject(e,t,n){let r=d.getSpanContext(e);if(!r||v(e)||!te(r))return;let i=`${fb}-${r.traceId}-${r.spanId}-0${Number(r.traceFlags||re.NONE).toString(16)}`;n.set(t,z,i),r.traceState&&n.set(t,B,r.traceState.serialize())}extract(e,t,n){let r=n.get(t,z);if(!r)return e;let i=Array.isArray(r)?r[0]:r;if(typeof i!=`string`)return e;let a=db(i);if(!a)return e;a.isRemote=!0;let o=n.get(t,B);if(o){let e=Array.isArray(o)?o.join(`,`):o;a.traceState=new lb(typeof e==`string`?e:void 0)}return d.setSpanContext(e,a)}fields(){return[z,B]}}}));function gb(e,t){return e.setValue(yb,t)}function _b(e){return e.deleteValue(yb)}function vb(e){return e.getValue(yb)}var yb,bb,xb=e((()=>{m(),yb=f(`OpenTelemetry SDK Context Key RPC_METADATA`),(function(e){e.HTTP=`http`})(bb||={})}));function Sb(e){if(!Cb(e)||wb(e)!==Db)return!1;let t=Mb(e);if(t===null)return!0;let n=Pb.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Ab.call(n)===jb}function Cb(e){return typeof e==`object`&&!!e}function wb(e){return e==null?e===void 0?kb:Ob:V&&V in Object(e)?Tb(e):Eb(e)}function Tb(e){let t=Pb.call(e,V),n=e[V],r=!1;try{e[V]=void 0,r=!0}catch{}let i=Fb.call(e);return r&&(t?e[V]=n:delete e[V]),i}function Eb(e){return Fb.call(e)}var Db,Ob,kb,Ab,jb,Mb,Nb,Pb,V,Fb,Ib=e((()=>{Db=`[object Object]`,Ob=`[object Null]`,kb=`[object Undefined]`,Ab=Function.prototype.toString,jb=Ab.call(Object),Mb=Object.getPrototypeOf,Nb=Object.prototype,Pb=Nb.hasOwnProperty,V=Symbol?Symbol.toStringTag:void 0,Fb=Nb.toString}));function Lb(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=zb(t,e.shift(),0,n);return t}function Rb(e){return Vb(e)?e.slice():e}function zb(e,t,n=0,r){let i;if(!(n>Wb)){if(n++,U(e)||U(t)||Hb(t))i=Rb(t);else if(Vb(e)){if(i=e.slice(),Vb(t))for(let e=0,n=t.length;e<n;e++)i.push(Rb(t[e]));else if(H(t)){let e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){let r=e[n];r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(i[r]=Rb(t[r]))}}}else if(H(e)){if(H(t)){if(!Ub(e,t))return t;i=Object.assign({},e);let a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){let s=a[o];if(s===`__proto__`||s===`constructor`||s===`prototype`)continue;let c=t[s];if(U(c))c===void 0?delete i[s]:i[s]=c;else{let a=i[s],o=c;if(Bb(e,s,r)||Bb(t,s,r))delete i[s];else{if(H(a)&&H(o)){let n=r.get(a)||[],i=r.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),r.set(a,n),r.set(o,i)}i[s]=zb(i[s],c,n,r)}}}}else i=t}return i}}function Bb(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function Vb(e){return Array.isArray(e)}function Hb(e){return typeof e==`function`}function H(e){return!U(e)&&!Vb(e)&&!Hb(e)&&typeof e==`object`}function U(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function Ub(e,t){return!(!Sb(e)||!Sb(t))}var Wb,Gb=e((()=>{Ib(),Wb=20}));function Kb(e,t){let n,r=new Promise(function(e,r){n=setTimeout(function(){r(new qb(`Operation timed out.`))},t)});return Promise.race([e,r]).then(e=>(clearTimeout(n),e),e=>{throw clearTimeout(n),e})}var qb,Jb=e((()=>{qb=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}}));function Yb(e,t){return typeof t==`string`?e===t:!!e.match(t)}function Xb(e,t){if(!t)return!1;for(let n of t)if(Yb(e,n))return!0;return!1}var Zb=e((()=>{})),Qb,$b=e((()=>{Qb=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}})),W,ex=e((()=>{$b(),W=class{_isCalled=!1;_deferred=new Qb;_callback;_that;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}}));function tx(e){return e==null?void 0:nx[e.toUpperCase()]??(p.warn(`Unknown log level "${e}", expected one of ${Object.keys(nx)}, using default`),c.INFO)}var nx,rx=e((()=>{m(),nx={ALL:c.ALL,VERBOSE:c.VERBOSE,DEBUG:c.DEBUG,INFO:c.INFO,WARN:c.WARN,ERROR:c.ERROR,NONE:c.NONE}}));function ix(e,t){return new Promise(n=>{u.with(_(u.active()),()=>{e.export(t,n)})})}var ax=e((()=>{m(),b()})),ox=t({AnchoredClock:()=>je,BindOnceFuture:()=>W,CompositePropagator:()=>Xy,ExportResultCode:()=>R,RPCType:()=>bb,SDK_INFO:()=>N,TRACE_PARENT_HEADER:()=>z,TRACE_STATE_HEADER:()=>B,TimeoutError:()=>qb,TraceState:()=>lb,W3CBaggagePropagator:()=>ke,W3CTraceContextPropagator:()=>mb,_globalThis:()=>Xe,addHrTimes:()=>Uy,callWithTimeout:()=>Kb,deleteRPCMetadata:()=>_b,diagLogLevelFromString:()=>tx,getBooleanFromEnv:()=>qe,getNumberFromEnv:()=>Ke,getRPCMetadata:()=>vb,getStringFromEnv:()=>C,getStringListFromEnv:()=>Je,getTimeOrigin:()=>Ny,globalErrorHandler:()=>S,hrTime:()=>I,hrTimeDuration:()=>Fy,hrTimeToMicroseconds:()=>Ry,hrTimeToMilliseconds:()=>zy,hrTimeToNanoseconds:()=>Ly,hrTimeToSeconds:()=>By,hrTimeToTimeStamp:()=>Iy,internal:()=>sx,isAttributeValue:()=>Fe,isTimeInput:()=>Hy,isTimeInputHrTime:()=>Vy,isTracingSuppressed:()=>v,isUrlIgnored:()=>Xb,loggingErrorHandler:()=>ze,merge:()=>Lb,millisToHrTime:()=>F,otperformance:()=>P,parseKeyPairsIntoRecord:()=>x,parseTraceParent:()=>db,sanitizeAttributes:()=>Ne,setGlobalErrorHandler:()=>Ue,setRPCMetadata:()=>gb,suppressTracing:()=>_,timeInputToHrTime:()=>Py,unrefTimer:()=>qy,unsuppressTracing:()=>be,urlMatches:()=>Yb}),sx,G=e((()=>{Ae(),Me(),Re(),Ge(),He(),Ky(),Jy(),Yy(),Oe(),My(),Zy(),hb(),xb(),b(),ub(),Gb(),Jb(),Zb(),ex(),rx(),ax(),sx={_export:ix}}));G(),m();function cx(e){return Object.prototype.hasOwnProperty.call(e,`partialSuccess`)}function lx(){return{handleResponse(e){e!=null&&cx(e)&&e.partialSuccess!=null&&Object.keys(e.partialSuccess).length!==0&&p.warn(`Received Partial Success response:`,JSON.stringify(e.partialSuccess))}}}m();var ux=class{_metrics;_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(e,t,n,r,i,a){this._transport=e,this._serializer=t,this._responseHandler=n,this._promiseQueue=r,this._timeout=a,this._diagLogger=p.createComponentLogger({namespace:`OTLPExportDelegate`}),this._metrics=i}export(e,t){if(this._diagLogger.debug(`items to be sent`,e),this._promiseQueue.hasReachedLimit()){t({code:R.FAILED,error:Error(`Concurrent export limit reached`)});return}let n=this._serializer.serializeRequest(e);if(n==null){t({code:R.FAILED,error:Error(`Nothing to send`)});return}let r=this._metrics.startExport(e);this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(e=>{if(e.status===`success`){if(r(void 0),e.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(e.data))}catch(t){this._diagLogger.warn(`Export succeeded but could not deserialize response - is the response specification compliant?`,t,e.data)}t({code:R.SUCCESS})}else e.status===`failure`&&e.error?(r(e.error),t({code:R.FAILED,error:e.error})):e.status===`retryable`?(r(`export_max_retries`),t({code:R.FAILED,error:e.error??new g(`Export failed with retryable status`)})):(r(`export_failed`),t({code:R.FAILED,error:new g(`Export failed with unknown error`)}))},e=>{r(e),t({code:R.FAILED,error:e})}))}forceFlush(){return this._promiseQueue.awaitAll()}setMetrics(e){this._metrics=e}async shutdown(){this._diagLogger.debug(`shutdown started`),await this.forceFlush(),this._transport.shutdown()}};function dx(e,t){return new ux(e.transport,e.serializer,lx(),e.promiseHandler,e.metrics,t.timeout)}var fx=`http.response.status_code`,px=`otel.component.name`,mx=`otel.component.type`,hx=`server.address`,gx=`server.port`,_x=`error.type`,vx=`0.222.0`;m(),G();var yx=new Map,bx=class{inflight;exported;duration;standardAttrs;responseAttributesFromError;helper;constructor(e){let{componentType:t,metricsHelper:n,meterProvider:r,url:i,responseAttributesFromError:a}=e;this.responseAttributesFromError=a;let o=r?r.getMeter(`@opentelemetry/otlp-exporter`,vx):l(),s=yx.get(t)??0;if(yx.set(t,s+1),this.standardAttrs={[mx]:t,[px]:`${t}/${s}`},i){let e=i;i.includes(`://`)||(e=`http://${i}`);try{let t=new URL(e);this.standardAttrs[hx]=t.hostname;let n;t.port?n=Number(t.port):t.protocol===`http:`?n=80:t.protocol===`https:`&&(n=443),typeof n==`number`&&(this.standardAttrs[gx]=n)}catch{}}this.helper=n,this.inflight=o.createUpDownCounter(`otel.sdk.exporter.${this.helper.name}.inflight`,{unit:`{${this.helper.name}}`,description:`The number of ${this.helper.name}s which were passed to the exporter, but that have not been exported yet (neither successful, nor failed).`}),this.exported=o.createCounter(`otel.sdk.exporter.${this.helper.name}.exported`,{unit:`{${this.helper.name}}`,description:`The number of ${this.helper.name}s for which the export has finished, either successful or failed.`}),this.duration=o.createHistogram(`otel.sdk.exporter.operation.duration`,{unit:`s`,description:`The duration of exporting a batch of telemetry records.`,advice:{explicitBucketBoundaries:[]}})}startExport(e){let t=this.helper.countItems(e),n=I();return this.inflight.add(t,this.standardAttrs),e=>{let r=I();this.inflight.add(-t,this.standardAttrs);let i=e?{...this.standardAttrs,[_x]:e instanceof Error?e.name:`export_failed`}:this.standardAttrs;this.exported.add(t,i);let a={...i,...this.responseAttributesFromError(e)},o=zy(Fy(n,r))/1e3;this.duration.record(o,a)}}},xx={name:`log`,countItems:e=>e.length},K;(function(e){e[e.UNSPECIFIED=0]=`UNSPECIFIED`,e[e.TRACE=1]=`TRACE`,e[e.TRACE2=2]=`TRACE2`,e[e.TRACE3=3]=`TRACE3`,e[e.TRACE4=4]=`TRACE4`,e[e.DEBUG=5]=`DEBUG`,e[e.DEBUG2=6]=`DEBUG2`,e[e.DEBUG3=7]=`DEBUG3`,e[e.DEBUG4=8]=`DEBUG4`,e[e.INFO=9]=`INFO`,e[e.INFO2=10]=`INFO2`,e[e.INFO3=11]=`INFO3`,e[e.INFO4=12]=`INFO4`,e[e.WARN=13]=`WARN`,e[e.WARN2=14]=`WARN2`,e[e.WARN3=15]=`WARN3`,e[e.WARN4=16]=`WARN4`,e[e.ERROR=17]=`ERROR`,e[e.ERROR2=18]=`ERROR2`,e[e.ERROR3=19]=`ERROR3`,e[e.ERROR4=20]=`ERROR4`,e[e.FATAL=21]=`FATAL`,e[e.FATAL2=22]=`FATAL2`,e[e.FATAL3=23]=`FATAL3`,e[e.FATAL4=24]=`FATAL4`})(K||={});var Sx=class{emit(e){}enabled(){return!1}},Cx=new Sx;function wx(){return Cx}var Tx=Symbol.for(`io.opentelemetry.js.api.logs`),q=globalThis;function Ex(e,t,n){return r=>r===e?t:n}var Dx=new class{getLogger(e,t,n){return new Sx}},Ox=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}emit(e){this._getLogger().emit(e)}enabled(e){return this._getLogger().enabled(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Cx}},kx=class{getLogger(e,t,n){return this._getDelegateLogger(e,t,n)??new Ox(this,e,t,n)}_getDelegate(){return this._delegate??Dx}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,n){return this._delegate?.getLogger(e,t,n)}},Ax=class e{constructor(){this._proxyLoggerProvider=new kx}static getInstance(){return this._instance||=new e,this._instance}setGlobalLoggerProvider(e){return q[Tx]?this.getLoggerProvider():(q[Tx]=Ex(1,e,Dx),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){return q[Tx]?.call(q,1)??this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete q[Tx],this._proxyLoggerProvider=new kx}}.getInstance();function jx(){if(Mx===void 0)try{let e=globalThis.process.argv0;Mx=e?`unknown_service:${e}`:`unknown_service`}catch{Mx=`unknown_service`}return Mx}var Mx,Nx=e((()=>{})),J,Px=e((()=>{J=e=>typeof e==`object`&&!!e&&typeof e.then==`function`}));function Fx(e,t){return Bx.FromAttributeList(Object.entries(e),t)}function Ix(){return Fx({[O]:jx(),[k]:N[k],[A]:N[A],[j]:N[j]})}function Lx(e){return e.map(([e,t])=>J(t)?[e,t.catch(t=>{p.debug(`promise rejection for resource attribute: %s - %s`,e,t)})]:[e,t])}function Rx(e){if(typeof e==`string`||e===void 0)return e;p.warn(`Schema URL must be string or undefined, got %s. Schema URL will be ignored.`,e)}function zx(e,t){let n=e?.schemaUrl,r=t?.schemaUrl,i=n===void 0||n===``,a=r===void 0||r===``;if(i)return r;if(a||n===r)return n;p.warn(`Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.`,n,r)}var Bx,Vx=e((()=>{m(),G(),M(),Nx(),Px(),Bx=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,n){let r=new e({},n);return r._rawAttributes=Lx(t),r._asyncAttributesPending=t.filter(([e,t])=>J(t)).length>0,r}constructor(e,t){let n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([e,t])=>(J(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=Lx(this._rawAttributes),this._schemaUrl=Rx(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,n]=this._rawAttributes[e];this._rawAttributes[e]=[t,J(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&p.error(`Accessing resource attributes before async attributes settled`),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,n]of this._rawAttributes)J(n)?p.debug(`Unsettled resource attribute ${t} skipped`):n!=null&&(e[t]??=n);return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let n=zx(this,t),r=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}}})),Hx,Ux,Wx=e((()=>{m(),M(),G(),Hx=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=`,`;_LABEL_KEY_VALUE_SPLITTER=`=`;detect(e){let t={},n=C(`OTEL_RESOURCE_ATTRIBUTES`),r=C(`OTEL_SERVICE_NAME`);if(n)try{let e=this._parseResourceAttributes(n);Object.assign(t,e)}catch(e){p.debug(`EnvDetector failed: ${e instanceof Error?e.message:e}`)}return r&&(t[O]=r),{attributes:t}}_parseResourceAttributes(e){if(!e)return{};let t={},n=e.split(this._COMMA_SEPARATOR).filter(e=>e.trim()!==``);for(let e of n){let n=e.split(this._LABEL_KEY_VALUE_SPLITTER);if(n.length!==2)throw Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${e}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);let[r,i]=n,a=r.trim(),o=i.trim();if(a.length===0)throw Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${e}".`);let s,c;try{s=decodeURIComponent(a),c=decodeURIComponent(o)}catch(t){throw Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${e}": ${t instanceof Error?t.message:t}`,{cause:t})}if(s.length>this._MAX_LENGTH)throw Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${s}".`);if(c.length>this._MAX_LENGTH)throw Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${s}".`);t[s]=c}return t}},Ux=new Hx})),Gx=e((()=>{Wx()})),Kx=e((()=>{Vx(),Gx(),Nx()}));function qx(e,t){let n={attributes:Yx(e.attributes,t),droppedAttributesCount:0},r=e.schemaUrl;return r&&r!==``&&(n.schemaUrl=r),n}function Jx(e,t){let n={name:e.name,version:e.version};return e.attributes&&Object.keys(e.attributes).length>0&&(n.attributes=Yx(e.attributes,t),n.droppedAttributesCount=e.droppedAttributesCount??0),n}function Yx(e,t){return Object.keys(e).map(n=>Xx(n,e[n],t))}function Xx(e,t,n){return{key:e,value:Zx(t,n)}}function Zx(e,t){let n=typeof e;if(n===`string`)return{stringValue:e};if(n===`number`)return Number.isInteger(e)?{intValue:e}:{doubleValue:e};if(n===`boolean`)return{boolValue:e};if(e instanceof Uint8Array)return{bytesValue:t.encodeUint8Array(e)};if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=Zx(e[r],t);return{arrayValue:{values:n}}}if(n===`object`&&e!=null){let n=Object.keys(e),r=Array(n.length);for(let i=0;i<n.length;i++)r[i]={key:n[i],value:Zx(e[n[i]],t)};return{kvlistValue:{values:r}}}return{}}function Qx(e,t){return{resourceLogs:eS(e,t)}}function $x(e){let t=new Map;for(let n of e){let{resource:e,instrumentationScope:r}=n,i=t.get(e);i||(i=new Map,t.set(e,i));let a=i.get(r);a||(a=[],i.set(r,a)),a.push(n)}return t}function eS(e,t){let n=$x(e);return Array.from(n,([e,n])=>{let r=qx(e,t);return{resource:r,scopeLogs:Array.from(n,([,e])=>({scope:Jx(e[0].instrumentationScope,t),logRecords:e.map(e=>tS(e,t)),schemaUrl:e[0].instrumentationScope.schemaUrl})),schemaUrl:r.schemaUrl}})}function tS(e,t){return{timeUnixNano:t.encodeHrTime(e.hrTime),observedTimeUnixNano:t.encodeHrTime(e.hrTimeObserved),severityNumber:nS(e.severityNumber),severityText:e.severityText,body:Zx(e.body,t),eventName:e.eventName,attributes:Yx(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,flags:e.spanContext?.traceFlags,traceId:t.encodeOptionalSpanContext(e.spanContext?.traceId),spanId:t.encodeOptionalSpanContext(e.spanContext?.spanId)}}function nS(e){return e}G();function rS(e){let t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}function iS(e){return rS(e).toString()}var aS=typeof BigInt<`u`?iS:Ly;function oS(e){return e}var sS={encodeHrTime:aS,encodeSpanContext:oS,encodeOptionalSpanContext:oS,encodeUint8Array:e=>{if(typeof Buffer<`u`)return Buffer.from(e).toString(`base64`);let t=Array(e.length);for(let n=0;n<e.length;n++)t[n]=String.fromCharCode(e[n]);return btoa(t.join(``))}};m();var cS={serializeRequest:e=>{let t=Qx(e,sS);return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};let t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(e){return p.warn(`Failed to parse logs export response: ${e.message}. Returning empty response`),{}}}};m();function lS(e){let t={};return Object.entries(e??{}).forEach(([e,n])=>{n===void 0?p.warn(`Header "${e}" has invalid value (${n}) and will be ignored`):t[e]=String(n)}),t}function uS(e,t,n){return async()=>{let r={...await n()},i={};return t!=null&&Object.assign(i,await t()),e!=null&&Object.assign(i,lS(await e())),Object.assign(i,r)}}function dS(e){if(e!=null)try{let t=globalThis.location?.href;return new URL(e,t).href}catch{throw Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function fS(e,t,n){return{...ge(e,t,n),headers:uS(e.headers,t.headers,n.headers),url:dS(e.url)??t.url??n.url}}function pS(e,t){return{..._e(),headers:async()=>e,url:`http://localhost:4318/`+t}}function mS(e){return async t=>{let n=t===`http:`,{Agent:r}=await(n?import(`http`):import(`https`));if(n){let{ca:t,cert:n,key:i,...a}=e;return new r(a)}return new r(e)}}function hS(e,t,n){return{...fS(e,t,n),agentFactory:e.agentFactory??t.agentFactory??n.agentFactory,userAgent:e.userAgent}}function gS(e,t){return{...pS(e,t),agentFactory:mS({keepAlive:!0})}}function _S(e){return e===429||e===502||e===503||e===504}function vS(e){if(e==null)return;let t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;let n=new Date(e).getTime()-Date.now();return n>=0?n:0}var yS=`OTel-OTLP-Exporter-JavaScript/${vx}`,bS=4194304;function xS(e,t,n,r,i,a,o,s){return new Promise(c=>{let ee=new URL(t);n[`User-Agent`]=i?`${i} ${yS}`:yS;let l=e(ee,{method:`POST`,headers:n,agent:a},e=>{let t=[],n=0;e.on(`data`,r=>{n+=r.length,n>4194304?(c({status:`failure`,error:Error(`OTLP export response body exceeded size limit of ${bS} bytes`)}),e.destroy()):t.push(r)}),e.on(`end`,()=>{e.statusCode&&e.statusCode<=299?c({status:`success`,data:Buffer.concat(t)}):e.statusCode&&_S(e.statusCode)?c({status:`retryable`,retryInMillis:vS(e.headers[`retry-after`])}):c({status:`failure`,error:new g(e.statusMessage,e.statusCode,Buffer.concat(t).toString())})}),e.on(`error`,t=>{e.statusCode&&e.statusCode<=299?c({status:`success`}):e.statusCode&&_S(e.statusCode)?c({status:`retryable`,error:t,retryInMillis:vS(e.headers[`retry-after`])}):c({status:`failure`,error:t})})});l.setTimeout(s,()=>{l.destroy(),c({status:`retryable`,error:Error(`Request timed out`)})}),l.on(`error`,e=>{wS(e)?c({status:`retryable`,error:e}):c({status:`failure`,error:e})}),SS(l,r,o,e=>{c({status:`failure`,error:e})})})}function SS(e,t,n,r){let i=CS(n);t===`gzip`&&(e.setHeader(`Content-Encoding`,`gzip`),i=i.on(`error`,r).pipe(le.createGzip()).on(`error`,r)),i.pipe(e).on(`error`,r)}function CS(e){let t=new ue;return t.push(e),t.push(null),t}function wS(e){let t=new Set([`ECONNRESET`,`ECONNREFUSED`,`EPIPE`,`ETIMEDOUT`,`EAI_AGAIN`,`ENOTFOUND`,`ENETUNREACH`,`EHOSTUNREACH`]);return`code`in e&&typeof e.code==`string`&&t.has(e.code)}var TS=class{_utils=null;_parameters;constructor(e){this._parameters=e}async send(e,t){let{agent:n,request:r}=await this._loadUtils(),i=await this._parameters.headers();return xS(r,this._parameters.url,i,this._parameters.compression,this._parameters.userAgent,n,e,t)}shutdown(){}async _loadUtils(){let e=this._utils;if(e===null){let t=new URL(this._parameters.url).protocol,[n,r]=await Promise.all([this._parameters.agentFactory(t),ES(t)]);e=this._utils={agent:n,request:r}}return e}};async function ES(e){let{request:t}=await(e===`http:`?import(`http`):import(`https`));return t}function DS(e){return new TS(e)}m();var OS=5,kS=1e3,AS=5e3,jS=1.5,MS=.2;function NS(){return 2*MS*Math.random()-MS}var PS=class{_transport;constructor(e){this._transport=e}retry(e,t,n){return new Promise((r,i)=>{setTimeout(()=>{this._transport.send(e,t).then(r,i)},n)})}async send(e,t){let n=OS,r=kS,i=Date.now()+t,a=await this._transport.send(e,t);for(;a.status===`retryable`&&n>0;){n--;let t=Math.max(Math.min(r*(1+NS()),AS),0);r*=jS;let o=a.retryInMillis??t,s=i-Date.now();if(o>s)return p.info(`Export retry time ${Math.round(o)}ms exceeds remaining timeout ${Math.round(s)}ms, not retrying further.`),a;p.verbose(`Scheduling export retry in ${Math.round(o)}ms`),a=await this.retry(e,s,o)}return a.status===`success`?p.verbose(`Export succeeded after ${OS-n} retry attempts.`):a.status===`retryable`?p.info(`Export failed after maximum retry attempts (${OS}).`):p.info(`Export failed with non-retryable error: ${a.error}`),a}shutdown(){return this._transport.shutdown()}};function FS(e){return new PS(e.transport)}function IS(e,t,n,r){return new bx({componentType:e,metricsHelper:t,url:n,meterProvider:r,responseAttributesFromError:e=>e?e instanceof g?{[fx]:e.code}:{}:{[fx]:200}})}function LS(e,t,n,r,i){return dx({transport:FS({transport:DS(e)}),serializer:t,promiseHandler:ye(e),metrics:IS(n,r,e.url,i)},{timeout:e.timeoutMillis})}G(),m();function RS(e){let t=Ke(e);if(t!=null){if(Number.isFinite(t)&&t>0)return t;p.warn(`Configuration: ${e} is invalid, expected number greater than 0 (actual: ${t})`)}}function zS(e){let t=RS(`OTEL_EXPORTER_OTLP_${e}_TIMEOUT`),n=RS(`OTEL_EXPORTER_OTLP_TIMEOUT`);return t??n}function BS(e){let t=C(e)?.trim();if(t==null||t===`none`||t===`gzip`)return t;p.warn(`Configuration: ${e} is invalid, expected 'none' or 'gzip' (actual: '${t}')`)}function VS(e){let t=BS(`OTEL_EXPORTER_OTLP_${e}_COMPRESSION`),n=BS(`OTEL_EXPORTER_OTLP_COMPRESSION`);return t??n}function HS(e){return{timeoutMillis:zS(e),compression:VS(e)}}G(),m();function US(e){let t=C(`OTEL_EXPORTER_OTLP_${e}_HEADERS`),n=C(`OTEL_EXPORTER_OTLP_HEADERS`),r=x(t),i=x(n);if(Object.keys(r).length!==0||Object.keys(i).length!==0)return Object.assign({},x(n),x(t))}function WS(e){try{return new URL(e).toString()}catch{p.warn(`Configuration: Could not parse environment-provided export URL: '${e}', falling back to undefined`);return}}function GS(e,t){try{new URL(e)}catch{p.warn(`Configuration: Could not parse environment-provided export URL: '${e}', falling back to undefined`);return}e.endsWith(`/`)||(e+=`/`),e+=t;try{new URL(e)}catch{p.warn(`Configuration: Provided URL appended with '${t}' is not a valid URL, using 'undefined' instead of '${e}'`);return}return e}function KS(e){let t=C(`OTEL_EXPORTER_OTLP_ENDPOINT`);if(t!==void 0)return GS(t,e)}function qS(e){let t=C(`OTEL_EXPORTER_OTLP_${e}_ENDPOINT`);if(t!==void 0)return WS(t)}function JS(e,t,n){let r=C(e),i=C(t),a=r??i;if(a!=null)try{return de.readFileSync(fe.resolve(process.cwd(),a))}catch{p.warn(n);return}}function YS(e){return JS(`OTEL_EXPORTER_OTLP_${e}_CLIENT_CERTIFICATE`,`OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE`,`Failed to read client certificate chain file`)}function XS(e){return JS(`OTEL_EXPORTER_OTLP_${e}_CLIENT_KEY`,`OTEL_EXPORTER_OTLP_CLIENT_KEY`,`Failed to read client certificate private key file`)}function ZS(e){return JS(`OTEL_EXPORTER_OTLP_${e}_CERTIFICATE`,`OTEL_EXPORTER_OTLP_CERTIFICATE`,`Failed to read root certificate file`)}function QS(e,t){return{...HS(e),url:qS(e)??KS(t),headers:he(US(e)),agentFactory:mS({keepAlive:!0,ca:ZS(e),cert:YS(e),key:XS(e)})}}function $S(e){return typeof e.headers==`function`?e.headers:he(e.headers)}m();function eC(e){if(typeof e.httpAgentOptions==`function`)return e.httpAgentOptions;let t=e.httpAgentOptions;if(e.keepAlive!=null&&(t={keepAlive:e.keepAlive,...t}),t!=null)return mS(t)}function tC(e,t,n,r){return e.metadata&&p.warn(`Metadata cannot be set when using http`),hS({url:e.url,headers:$S(e),concurrencyLimit:e.concurrencyLimit,timeoutMillis:e.timeoutMillis,compression:e.compression,agentFactory:eC(e),userAgent:e.userAgent},QS(t,n),gS(r,n))}var nC=`otlp_http_log_exporter`,rC=class extends pe{constructor(e={}){super(LS(tC(e,`LOGS`,`v1/logs`,{"Content-Type":`application/json`}),cS,nC,xx,e.selfObsMeterProvider))}};Kx(),m();function iC(e){return aC(e,new WeakSet)}function aC(e,t){if(e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e instanceof Uint8Array)return!0;if(typeof e==`object`){if(t.has(e))return!1;if(t.add(e),Array.isArray(e)){for(let n of e)if(!aC(n,t))return!1;return!0}let n=e;if(n.constructor!==Object&&n.constructor!==void 0)return!1;for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&!aC(n[e],t))return!1;return!0}return!1}var Y;(function(e){e[e.DROP_INVALID=0]=`DROP_INVALID`,e[e.DROP_LIMIT_REACHED=1]=`DROP_LIMIT_REACHED`,e[e.ADD_NEW=2]=`ADD_NEW`,e[e.ADD_OVERWRITE_EXISTING=3]=`ADD_OVERWRITE_EXISTING`})(Y||={});function oC(e,t,n,r,i){if(r.length===0)return p.warn(`Invalid attribute key: ${r}`),Y.DROP_INVALID;if(!iC(i))return p.warn(`Invalid attribute value set for key: ${r}`),Y.DROP_INVALID;let a=!Object.prototype.hasOwnProperty.call(e,r);return a&&n>=t.attributeCountLimit?Y.DROP_LIMIT_REACHED:(e[r]=sC(i,t.attributeValueLengthLimit),a?Y.ADD_NEW:Y.ADD_OVERWRITE_EXISTING)}function sC(e,t){if(t<=0)return p.warn(`Attribute value limit must be positive, got ${t}`),e;if(e==null)return e;if(typeof e==`string`)return e.length<=t?e:e.substring(0,t);if(e instanceof Uint8Array)return e;if(Array.isArray(e))return e.map(e=>sC(e,t));if(typeof e==`object`){let n={};for(let[r,i]of Object.entries(e))n[r]=sC(i,t);return n}return e}function cC(e,t){if(t==null)return{};let n={},r=0,i=0;for(let[a,o]of Object.entries(t)){let t=oC(n,e,r,a,o);t===Y.ADD_NEW?r+=1:(t===Y.DROP_INVALID||t===Y.DROP_LIMIT_REACHED)&&(i+=1)}return{attributes:r>0?n:void 0,droppedAttributesCount:i}}m(),G(),M();var lC=class{resource;instrumentationScope;attributes={};_hrTime;_hrTimeObserved;_spanContext;_severityText;_severityNumber;_body;_eventName;_attributesCount=0;_droppedAttributesCount=0;_isReadonly=!1;_logRecordLimits;get hrTime(){return this._hrTime}set hrTime(e){this._isLogRecordReadonly()||(this._hrTime=e)}get hrTimeObserved(){return this._hrTimeObserved}set hrTimeObserved(e){this._isLogRecordReadonly()||(this._hrTimeObserved=e)}get spanContext(){return this._spanContext}set spanContext(e){this._isLogRecordReadonly()||(this._spanContext=e)}set severityText(e){this._isLogRecordReadonly()||(this._severityText=e)}get severityText(){return this._severityText}set severityNumber(e){this._isLogRecordReadonly()||(this._severityNumber=e)}get severityNumber(){return this._severityNumber}set body(e){this._isLogRecordReadonly()||(this._body=e)}get body(){return this._body}get eventName(){return this._eventName}set eventName(e){this._isLogRecordReadonly()||(this._eventName=e)}get droppedAttributesCount(){return this._droppedAttributesCount}constructor(e,t,n){let{timestamp:r,observedTimestamp:i,eventName:a,severityNumber:o,severityText:s,body:c,attributes:ee={},exception:l,context:u}=n,f=Date.now();if(this._hrTime=Py(r??f),this._hrTimeObserved=Py(i??f),u){let e=d.getSpanContext(u);e&&te(e)&&(this._spanContext=e)}this.severityNumber=o,this.severityText=s,this.body=c,this.resource=e.resource,this.instrumentationScope=t,this._logRecordLimits=e.logRecordLimits,this._eventName=a,this.setAttributes(ee),l!=null&&this._setException(l)}setAttribute(e,t){if(this._isLogRecordReadonly())return this;let n=oC(this.attributes,this._logRecordLimits,this._attributesCount,e,t);return n===Y.DROP_LIMIT_REACHED?(this._droppedAttributesCount++,this._droppedAttributesCount===1&&p.warn(`Dropping extra attributes.`)):n===Y.ADD_NEW&&this._attributesCount++,this}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}setBody(e){return this.body=e,this}setEventName(e){return this.eventName=e,this}setSeverityNumber(e){return this.severityNumber=e,this}setSeverityText(e){return this.severityText=e,this}_makeReadonly(){this._isReadonly=!0}_setException(e){let t=!1;if(typeof e==`string`||typeof e==`number`)Object.hasOwn(this.attributes,`exception.message`)||this.setAttribute(T,String(e)),t=!0;else if(e&&typeof e==`object`){let n=e;n.code?(Object.hasOwn(this.attributes,`exception.type`)||this.setAttribute(D,n.code.toString()),t=!0):n.name&&(Object.hasOwn(this.attributes,`exception.type`)||this.setAttribute(D,n.name),t=!0),n.message&&(Object.hasOwn(this.attributes,`exception.message`)||this.setAttribute(T,n.message),t=!0),n.stack&&(Object.hasOwn(this.attributes,`exception.stacktrace`)||this.setAttribute(E,n.stack),t=!0)}t||p.warn(`Failed to record an exception ${e}`)}_isLogRecordReadonly(){return this._isReadonly&&p.warn(`Can not execute the operation on emitted log record`),this._isReadonly}};m();var uC=class{_instrumentationScope;_sharedState;_loggerConfig;constructor(e,t){this._instrumentationScope=e,this._sharedState=t,this._loggerConfig=this._sharedState.getLoggerConfig(this._instrumentationScope)}emit(e){let t=e.context||u.active();if(!this.enabled(e))return;let n=new lC(this._sharedState,this._instrumentationScope,{context:t,...e});this._sharedState.loggerMetrics.emitLog(),this._sharedState.activeProcessor.onEmit(n,t),n._makeReadonly()}enabled(e){if(this._sharedState.hasShutdown)return!1;let t=this._loggerConfig;if(t.disabled)return!1;let n=e?.severityNumber;if(typeof n==`number`&&n!==K.UNSPECIFIED&&n<t.minimumSeverity)return!1;let r=e?.context||u.active();if(t.traceBased){let e=d.getSpanContext(r);if(e&&te(e)&&(e.traceFlags&re.SAMPLED)!==re.SAMPLED)return!1}let i={context:r,instrumentationScope:this._instrumentationScope,severityNumber:e?.severityNumber,eventName:e?.eventName};for(let e of this._sharedState.processors)if(!e.enabled||e.enabled(i))return!0;return!1}},dC=class{forceFlush(){return Promise.resolve()}onEmit(e,t){}shutdown(){return Promise.resolve()}enabled(e){return!1}};G();var fC=class{processors;constructor(e){this.processors=e}async forceFlush(e){let t=e?.timeoutMillis??3e4;await Promise.all(this.processors.map(e=>Kb(e.forceFlush(),t)))}onEmit(e,t){this.processors.forEach(n=>n.onEmit(e,t))}async shutdown(){await Promise.all(this.processors.map(e=>e.shutdown()))}enabled(e){for(let t of this.processors)if(!t.enabled||t.enabled(e))return!0;return!1}};function pC(e){if(e===void 0)return[`u`,null];if(e===null)return[`n`,null];let t=typeof e;return t===`string`?[`s`,e]:t===`boolean`?[`b`,e]:t===`number`?Number.isNaN(e)?[`nan`,null]:e===1/0?[`inf`,null]:e===-1/0?[`-inf`,null]:Object.is(e,-0)?[`n0`,null]:[`d`,e]:e instanceof Uint8Array?[`bytes`,Array.from(e)]:Array.isArray(e)?[`arr`,e.map(pC)]:[`map`,Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>[e,pC(t)])]}function mC(e){return JSON.stringify([e.name,e.version||``,e.schemaUrl||``,pC(e.attributes),e.droppedAttributesCount??0])}var hC=`otel.sdk.log.created`,gC=`otel.sdk.processor.log.processed`,_C=`otel.sdk.processor.log.queue.capacity`,vC=`otel.sdk.processor.log.queue.size`,yC=`otel.component.name`,bC=`otel.component.type`,xC=`batching_log_processor`,SC=`error.type`,CC=class{createdLogs;constructor(e){this.createdLogs=e.createCounter(hC,{unit:`{log_record}`,description:`The number of logs submitted to enabled SDK Loggers.`})}emitLog(){this.createdLogs.add(1)}},wC=`0.222.0`;m();var TC={disabled:!1,minimumSeverity:K.UNSPECIFIED,traceBased:!1},EC=()=>({...TC}),DC=class{loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];resource;logRecordLimits;processors;loggerMetrics;hasShutdown=!1;_loggerConfigurator;_loggerConfigs=new Map;constructor(e,t,n,r,i){this.resource=e,this.logRecordLimits=t,this.processors=n,n.length>0?(this.registeredLogRecordProcessors=n,this.activeProcessor=new fC(this.registeredLogRecordProcessors)):this.activeProcessor=new dC,this._loggerConfigurator=r??EC;let a=i?i.getMeter(`@opentelemetry/sdk-logs`,wC):l();this.loggerMetrics=new CC(a)}getLoggerConfig(e){let t=mC(e),n=this._loggerConfigs.get(t);return n||(n=this._loggerConfigurator(e),this._loggerConfigs.set(t,n),n)}};m(),G();var OC=class{_shutdownOnce;_sharedState;constructor(e={}){let t={resource:e.resource??Ix(),logRecordLimits:{attributeCountLimit:e.logRecordLimits?.attributeCountLimit??128,attributeValueLengthLimit:e.logRecordLimits?.attributeValueLengthLimit??1/0},loggerConfigurator:e.loggerConfigurator??EC,processors:e.processors??[],meterProvider:e.meterProvider};this._sharedState=new DC(t.resource,t.logRecordLimits,t.processors,t.loggerConfigurator,t.meterProvider),this._shutdownOnce=new W(this._shutdown,this)}getLogger(e,t,n){if(this._shutdownOnce.isCalled)return p.warn(`A shutdown LoggerProvider cannot provide a Logger`),wx();e||p.warn(`Logger requested without instrumentation scope name.`);let r={name:e||`unknown`,version:t,schemaUrl:n?.schemaUrl,...cC(this._sharedState.logRecordLimits,n?.attributes)},i=mC(r);return this._sharedState.loggers.has(i)||this._sharedState.loggers.set(i,new uC(r,this._sharedState)),this._sharedState.loggers.get(i)}forceFlush(e){return this._shutdownOnce.isCalled?(p.warn(`invalid attempt to force flush after LoggerProvider shutdown`),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush(e)}shutdown(){return this._shutdownOnce.isCalled?(p.warn(`shutdown may only be called once per LoggerProvider`),this._shutdownOnce.promise):this._shutdownOnce.call()}_shutdown(){return this._sharedState.hasShutdown=!0,this._sharedState.activeProcessor.shutdown()}},kC=new Map,AC=class{processedLogs;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(e,t,n){let r=kC.get(e)??0;if(kC.set(e,r+1),this.standardAttrs={[bC]:e,[yC]:`${e}/${r}`},this.droppedAttrs={...this.standardAttrs,[SC]:`queue_full`},this.processedLogs=t.createCounter(gC,{unit:`{log_record}`,description:`The number of log records for which the processing has finished, either successful or failed.`}),n){let{capacity:e,getQueueSize:r}=n;t.createUpDownCounter(_C,{unit:`{log_record}`,description:`The maximum number of log records the queue of a given instance of an SDK log processor can hold.`}).add(e,this.standardAttrs),this.queueSize=t.createObservableUpDownCounter(vC,{unit:`{log_record}`,description:`The number of log records in the queue of a given instance of an SDK log processor.`}),this.queueSizeCallback=e=>e.observe(r(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropLogs(e){this.processedLogs.add(e,this.droppedAttrs)}finishLogs(e,t){if(!t){this.processedLogs.add(e,this.standardAttrs);return}let n={...this.standardAttrs,[SC]:t.name};this.processedLogs.add(e,n)}shutdown(){this.queueSize&&this.queueSizeCallback&&this.queueSize.removeCallback(this.queueSizeCallback)}};m(),G();async function jC(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];r.resource.asyncAttributesPending&&r.resource.waitForAsyncAttributes&&t.push(r.resource.waitForAsyncAttributes())}t!=null&&t.length>0&&await Promise.all(t)}var MC=class{_exportCompleted;_exportScheduledPromise;_metrics;_exportScheduledResolve;constructor(e,t,n,r){this._exportScheduledPromise=new Promise(e=>{this._exportScheduledResolve=e}),this._exportCompleted=this._executeExport(e,t,n),this._metrics=r}get exportCompleted(){return this._exportCompleted}get exportScheduled(){return this._exportScheduledPromise}async _executeExport(e,t,n){try{await jC(t),await u.with(_(u.active()),async()=>this._exportWithTimeout(e,t,n))}catch(e){S(e),this._exportScheduledResolve()}}async _exportWithTimeout(e,t,n){return new Promise((r,i)=>{let a=setTimeout(()=>{i(Error(`Timeout`))},n);e.export(t,e=>{this._metrics.finishLogs(t.length,e.error),clearTimeout(a),e.code===R.SUCCESS?r():i(e.error??Error(`BatchLogRecordProcessor: log record export failed`))}),this._exportScheduledResolve()})}},NC=class{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_currentExport=null;_finishedLogRecords=[];_timer;_shutdownOnce;_flushing=!1;constructor(e){this._exporter=e.exporter,this._maxExportBatchSize=e.maxExportBatchSize??512,this._maxQueueSize=e.maxQueueSize??2048,this._scheduledDelayMillis=e.scheduledDelayMillis??1e3,this._exportTimeoutMillis=e.exportTimeoutMillis??3e4,this._shutdownOnce=new W(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(p.warn(`BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize`),this._maxExportBatchSize=this._maxQueueSize);let t=e?.selfObsMeterProvider?e.selfObsMeterProvider.getMeter(`@opentelemetry/sdk-logs`):l();this._metrics=new AC(xC,t,{capacity:this._maxQueueSize,getQueueSize:()=>this._finishedLogRecords.length})}onEmit(e){this._shutdownOnce.isCalled||this._addToBuffer(e)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}_addToBuffer(e){this._finishedLogRecords.length>=this._maxQueueSize?this._metrics.dropLogs(1):(this._finishedLogRecords.push(e),this._maybeStartTimer())}shutdown(){return this._shutdownOnce.call()}async _shutdown(){this.onShutdown(),await this._flushAll(),this._metrics.shutdown(),await this._exporter.shutdown()}async _flushAll(){if(this._flushing)return;this._flushing=!0;let e=this._finishedLogRecords;this._finishedLogRecords=[],this._clearTimer();let t=this._currentExport;for(t!==null&&(await this._exporter.forceFlush(),await t.exportCompleted,this._currentExport=null);e.length>0;){let t;e.length<=this._maxExportBatchSize?(t=e,e=[]):t=e.splice(0,this._maxExportBatchSize);let n=new MC(this._exporter,t,this._exportTimeoutMillis,this._metrics);this._currentExport=n;try{await n.exportScheduled,await this._exporter.forceFlush(),await n.exportCompleted}catch(e){S(e)}finally{this._currentExport=null}}this._flushing=!1,this._maybeStartTimer()}_extractBatch(){if(this._finishedLogRecords.length===0)return null;if(this._finishedLogRecords.length<=this._maxExportBatchSize){let e=this._finishedLogRecords;return this._finishedLogRecords=[],e}return this._finishedLogRecords.splice(0,this._maxExportBatchSize)}_exportOneBatch(){this._clearTimer();let e=this._extractBatch();if(e===null)return;let t=new MC(this._exporter,e,this._exportTimeoutMillis,this._metrics);this._currentExport=t,t.exportCompleted.then(()=>{this._currentExport=null,this._maybeStartTimer()}).catch(e=>{this._currentExport=null,S(e),this._maybeStartTimer()})}_maybeStartTimer(){this._shutdownOnce.isCalled||this._flushing||this._finishedLogRecords.length!==0&&this._currentExport===null&&(this._finishedLogRecords.length>=this._maxExportBatchSize?this._exportOneBatch():this._timer===void 0&&(this._timer=setTimeout(()=>{this._timer=void 0,this._exportOneBatch()},this._scheduledDelayMillis),typeof this._timer!=`number`&&this._timer.unref()))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}},PC=class extends NC{onShutdown(){}};Kx();var FC=!(ae.includes(`--json`)||ae.includes(`--data`)||ae.includes(`--data-full`));function IC(e){FC=e}var LC=!1;function RC(){LC=!0}var X={debug:10,info:20,warn:30,error:40,silent:50},zC={debug:K.DEBUG,info:K.INFO,warn:K.WARN,error:K.ERROR},BC=RegExp(`\\b(${[...o,`auth_token`].join(`|`)})(\\s*[:=]\\s*)(\\S+)`,`gi`),VC=/\bAuthorization(\s*[:=]\s*)([^\r\n]+)/gi,HC=/\bBearer\s+[A-Za-z0-9._~+/=-]+/gi,UC=`aventure-mcp-server`,WC=`local`,GC=3e3,KC=1e3,qC=4,JC=`Unprintable thrown value`,YC,XC,ZC=!1,QC;function Z(e){return e.replace(VC,`Authorization$1***`).replace(HC,`Bearer ***`).replace(BC,(...e)=>{let[,t,n]=e;return`${t}${n}***`})}function $C(e){uw(`debug`,e)}function ew(e){uw(`info`,e)}function tw(e){uw(`warn`,e)}function nw(e){uw(`error`,e)}function rw(e){return _w(e).message}function iw(e){let t=[],n,r,i=sw(ow(e),`cause`);for(let e=0;e<qC&&i!=null;e++){let a=ow(i),o=Q(a,`name`)??typeof i,s=aw(i),c=Q(a,`message`)??cw(i);e===0&&(n=o,r=s),t.push(s===void 0?`${o}: ${c}`:`${o}(${s}): ${c}`),i=sw(a,`cause`)}return t.length===0?{}:{causeName:n,causeCode:r,causeChain:Z(t.join(` <- `))}}function aw(e){let t=sw(e,`code`);return typeof t==`string`?t:void 0}function ow(e){try{return e instanceof Error?e:void 0}catch{return}}function sw(e,t){if(typeof e==`object`&&e||typeof e==`function`)try{return Reflect.get(e,t)}catch{return}}function Q(e,t){let n=sw(e,t);return typeof n==`string`?n:void 0}function cw(e){try{return String(e)}catch{return JC}}async function lw(){let e=YC;if(e===void 0)return;YC=void 0,XC=void 0;let t=QC;QC=void 0,await t,await e.shutdown()}function uw(e,t){if(!fw(e)&&!mw(e))return;let n=t.message?Z(t.message):void 0,r=t.fields?gw(t.fields):void 0,i=Object.hasOwn(t,`error`)?_w(t.error):void 0,a=e===`warn`||e===`error`;if((FC||a)&&fw(e)){if(a&&!pw())oe.write(`${dw(e,t,n,r,i)}\n`);else{let a={timestamp:new Date().toISOString(),level:e,component:t.component,event:t.event,...n?{message:n}:{},...r,...i?{error:i}:{}};oe.write(`${JSON.stringify(a)}\n`)}}mw(e)&&vw(e,t.component,t.event,n,r,i)}function dw(e,t,n,r,i){let a=r??{},o=[a.status,a.title].filter(e=>e!=null&&e!==``).map(String).join(` `),s=i===void 0?void 0:i.name?`${i.name}: ${i.message}`:i.message;return[`${e} ${t.component} ${t.event}`,o,typeof a.code==`string`?a.code:void 0,n,t.event!==`problem_response`&&typeof a.detail==`string`?a.detail:void 0,s,typeof a.causeChain==`string`?a.causeChain:void 0,typeof a.traceId==`string`&&a.traceId.length>0?`traceId=${a.traceId}`:void 0].filter(e=>typeof e==`string`&&e.length>0).join(` | `)}function $(){let e=h.AVENTURE_LOG_LEVEL?.toLowerCase();return e===`debug`||e===`info`||e===`warn`||e===`error`||e===`silent`?e:h.VITEST?`silent`:LC?`info`:`warn`}function fw(e){return X[e]>=X[$()]}function pw(){return LC||X[$()]<X.warn}function mw(e){return X[e]>=X[hw()]}function hw(){return $()===`debug`?`debug`:`info`}function gw(e){let t={};for(let[n,r]of Object.entries(e))t[n]=typeof r==`string`?Z(r):r;return t}function _w(e){let t=ow(e);if(t!==void 0){let e=Q(t,`name`),n=Q(t,`message`)??cw(t),r={...e?{name:Z(e)}:{},message:Z(n)},i=Q(t,`stack`);return $()===`debug`&&i&&(r.stack=Z(i)),r}return{message:Z(cw(e))}}function vw(e,t,n,r,i,a){let o=yw();o!==void 0&&o.emit({severityNumber:Dw(e),severityText:e.toUpperCase(),body:r??n,attributes:{component:t,event:n,...Tw(i),...Ew(a)}})}function yw(){if(ZC)return XC;if(ZC=!0,i().registry!==``)return;let e=a()?.trim();if(!e)return;let t=bw();if(t===void 0)return;let n=new rC({url:t,headers:{Authorization:`Bearer ${e}`}}),r=new OC({resource:Fx(xw()),processors:[new PC({exporter:n,exportTimeoutMillis:GC,scheduledDelayMillis:KC})]});return Ax.setGlobalLoggerProvider(r),YC=r,XC=Ax.getLogger(UC),ie.once(`beforeExit`,()=>{let e=YC;e!==void 0&&(QC=e.forceFlush().catch(()=>void 0))}),XC}function bw(){let e=h.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT?.trim();if(e)return e;let t=h.OTEL_EXPORTER_OTLP_ENDPOINT?.trim();if(t)return t.endsWith(`/v1/logs`)?t:`${t.replace(/\/+$/,``)}/v1/logs`}function xw(){let e=Cw()??ww();return{"service.name":h.OTEL_SERVICE_NAME?.trim()||n(i().name),"deployment.environment.name":Sw(),"service.instance.id":se(),...e?{"cloud.platform":e}:{}}}function Sw(){let e=[...r.map(e=>h[e]),h.API_ENV,h.NODE_ENV];for(let t of e){let e=s(t);if(e!==null)return e}return WC}function Cw(){let e=Ux.detect().attributes?.[`cloud.platform`];if(typeof e!=`string`)return;let t=e.trim();if(t)return t}function ww(){if(h.FLY_MACHINE_ID||h.FLY_APP_NAME)return`fly`}function Tw(e){let t={};for(let[n,r]of Object.entries(e??{}))r!=null&&(t[n]=r);return t}function Ew(e){return e===void 0?{}:{...e.name?{"exception.type":e.name}:{},...e.message?{"exception.message":e.message}:{},...e.stack?{"exception.stacktrace":e.stack}:{}}}function Dw(e){return zC[e]}export{Ge as $,Yy as A,jy as B,G as C,Gb as D,ex as E,By as F,T as G,Dy as H,Ky as I,Ev as J,E as K,Hy as L,I as M,Fy as N,Lb as O,Ry as P,S as Q,Vy as R,ox as S,W as T,M as U,P as V,dg as W,C as X,Ke as Y,Ye as Z,Yx as _,ew as a,_ as at,Vx as b,IC as c,tC as d,Re as et,LS as f,qx as g,Jx as h,nw as i,v as it,Uy as j,R as k,lw as l,sS as m,iw as n,Ne as nt,tw as o,pe as ot,IS as p,D as q,$C as r,b as rt,xw as s,rw as t,Fe as tt,RC as u,Kx as v,sx as w,Fx as x,Ix as y,F as z};